2 # From configure.in Revision: 1.563 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --without-manpages suppress install of manpages
710 --without-progs suppress build with programs (e.g., tic)
711 --without-tests suppress build with test-programs
712 --without-curses-h install curses.h as ncurses.h only
713 --with-pkg-config{=path} enable/disable use of pkg-config
714 --with-pkg-config-libdir=XXX use given directory for installing pc-files
715 --enable-pc-files generate and install .pc files for pkg-config
716 --enable-mixed-case tic should assume mixed-case filenames
717 --with-install-prefix prefixes actual install-location ($DESTDIR)
718 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
719 --with-build-cc=XXX the build C compiler ($BUILD_CC)
720 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
721 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
722 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
723 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
724 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
725 Options to Specify the Libraries Built/Used:
726 --disable-libtool-version enable to use libtool's incompatible naming scheme
727 --with-libtool generate libraries with libtool
728 --with-shared generate shared-libraries
729 --with-normal generate normal-libraries (default)
730 --with-debug generate debug-libraries (default)
731 --with-profile generate profile-libraries
732 --with-cxx-shared generate C++ shared-libraries
733 --with-lib-prefix override library-prefix
734 --with-termlib generate separate terminfo library
735 --with-ticlib generate separate tic library
736 --with-gpm use Alessandro Rubini's GPM library
737 --without-dlsym do not use dlsym() to load GPM dynamically
738 --with-sysmouse use sysmouse (FreeBSD console)
739 --enable-rpath use rpath option when generating shared libraries
740 --disable-relink relink shared libraries during install
741 --with-shlib-version=X Specify rel or abi version for shared libs
742 --disable-rpath-hack don't add rpath options for additional libraries
743 Fine-Tuning Your Configuration:
744 --disable-overwrite leave out the link to -lcurses
745 --disable-database do not use terminfo, only fallbacks/termcap
746 --with-database=XXX specify terminfo source to install
747 --with-hashed-db specify hashed-database library
748 --with-fallbacks=XXX specify list of fallback terminal descriptions
749 --without-xterm-new specify if xterm terminfo should be old version
750 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
751 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
752 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
753 --disable-big-core assume machine has little memory
754 --disable-big-strings assume compiler has only standard-size strings
755 --enable-termcap compile in termcap fallback support
756 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
757 --enable-getcap fast termcap load, no xrefs to terminfo
758 --enable-getcap-cache cache translated termcaps in ~/.terminfo
759 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
760 --disable-root-environ restrict environment when running as root
761 --enable-symlinks make tic use symbolic links not hard links
762 --enable-broken_linker compile with broken-linker support code
763 --enable-bsdpad recognize BSD-style prefix padding
764 --enable-widec compile with wide-char/UTF-8 code
765 --disable-lp64 allow chtype to be long (ignore _LP64)
766 --disable-largefile omit support for large files
767 --disable-tparm-varargs compile tparm() without varargs interface
768 --disable-tic-depends link tic library without explicit dependency on ncurses library
769 --with-bool=TYPE override fallback type of bool variable
770 --with-caps=alt compile with alternate Caps file
771 --with-chtype=TYPE override type of chtype
772 --with-ospeed=TYPE override type of ospeed variable
773 --with-mmask-t=TYPE override type of mmask_t
774 --with-ccharw-max=XXX override size CCHARW_MAX
775 --with-tparm-arg=TYPE override parameter type of tparm
776 --with-rcs-ids compile-in RCS identifiers
777 Options to Specify How Manpages are Installed:
778 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
779 optionally formatted/catonly, e.g., gzip,formatted
780 --with-manpage-renames specify manpage-renaming
781 --with-manpage-aliases specify manpage-aliases using .so
782 --with-manpage-symlinks specify manpage-aliases using symlinks
783 --with-manpage-tbl specify manpage processing with tbl
785 --disable-ext-funcs disable function-extensions
786 --enable-sp-funcs enable experimental SCREEN-extensions
787 --enable-term-driver enable experimental terminal-driver
788 --enable-const compile with extra/non-standard const
789 --enable-ext-colors compile for 256-color support
790 --enable-ext-mouse compile for extended mouse-encoding
791 --enable-no-padding compile with $NCURSES_NO_PADDING code
792 --enable-signed-char compile using signed Boolean's in term.h
793 --enable-sigwinch compile with SIGWINCH handler
794 --enable-tcap-names compile with user-definable terminal capabilities
796 --without-develop disable development options
797 --enable-hard-tabs compile with hard-tabs code
798 --enable-xmc-glitch compile with support for xmc (magic-cookie)
800 --disable-assumed-color do not assume anything about default-colors
801 --disable-hashmap compile without hashmap scrolling-optimization
802 --enable-colorfgbg compile-in experimental $COLORFGBG code
803 --enable-interop compile-in experimental interop bindings
804 --with-pthread use POSIX thread library
805 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
806 --enable-weak-symbols enable weak-symbols for pthreads
807 --enable-reentrant compile with experimental reentrant code
808 --with-wrap-prefix=XXX override prefix used for public variables
809 --enable-safe-sprintf compile with experimental safe-sprintf code
810 --disable-scroll-hints compile without scroll-hints code
811 --enable-wgetch-events compile with experimental wgetch-events code
812 Testing/development Options:
813 --disable-echo do not display "compiling" commands
814 --enable-warnings build: turn on GCC compiler warnings
815 --enable-string-hacks work around bogus compiler/loader warnings
816 --enable-assertions test: turn on generation of assertion code
817 --with-dmalloc test: use Gray Watson's dmalloc library
818 --with-dbmalloc test: use Conor Cahill's dbmalloc library
819 --with-valgrind test: use valgrind
820 --disable-leaks test: free permanent memory, analyze leaks
821 --enable-expanded test: generate functions for certain macros
822 --disable-macros test: use functions rather than macros
823 --with-trace test: add trace() function to all models of ncurses
824 Ada95 Binding Options:
825 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
826 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
827 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
828 --with-ada-sharedlib=XX build Ada95 shared-library
830 Some influential environment variables:
831 CC C compiler command
832 CFLAGS C compiler flags
833 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
834 nonstandard directory <lib dir>
835 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
836 headers in a nonstandard directory <include dir>
838 CXX C++ compiler command
839 CXXFLAGS C++ compiler flags
840 CXXCPP C++ preprocessor
842 Use these variables to override the choices made by `configure' or to help
843 it to find libraries and programs with nonstandard names/locations.
848 if test "$ac_init_help" = "recursive"; then
849 # If there are subdirs, report their specific --help.
851 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
853 # A "../" for each directory in /$ac_subdir.
854 ac_dots=`echo $ac_subdir |
855 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
858 .) # No --srcdir option. We are building in place.
859 ac_sub_srcdir=$srcdir ;;
860 [\\/]* | ?:[\\/]* ) # Absolute path.
861 ac_sub_srcdir=$srcdir/$ac_subdir ;;
863 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
866 # Check for guested configure; otherwise get Cygnus style configure.
867 if test -f $ac_sub_srcdir/configure.gnu; then
869 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
870 elif test -f $ac_sub_srcdir/configure; then
872 $SHELL $ac_sub_srcdir/configure --help=recursive
873 elif test -f $ac_sub_srcdir/configure.ac ||
874 test -f $ac_sub_srcdir/configure.in; then
878 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
884 test -n "$ac_init_help" && exit 0
885 if $ac_init_version; then
888 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
889 Free Software Foundation, Inc.
890 This configure script is free software; the Free Software Foundation
891 gives unlimited permission to copy, distribute and modify it.
897 This file contains any messages produced by compilers while
898 running configure, to aid debugging if configure makes a mistake.
900 It was created by $as_me, which was
901 generated by GNU Autoconf 2.52.20121002. Invocation command line was
912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
924 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
941 # Keep a trace of the command line.
942 # Strip out --no-create and --no-recursion so they do not pile up.
943 # Also quote any args containing shell meta-characters.
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c) ;;
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
957 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
960 # Get rid of the leading space.
963 # When interrupted or exit'd, cleanup temporary files, and complete
964 # config.log. We remove comments because anyway the quotes in there
965 # would cause problems or look ugly.
967 # Save into config.log some information that might help in debugging.
969 echo "## ----------------- ##" >&5
970 echo "## Cache variables. ##" >&5
971 echo "## ----------------- ##" >&5
973 # The following way of writing the cache mishandles newlines in values,
976 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
979 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
984 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
988 sed "/^$/d" confdefs.h >conftest.log
989 if test -s conftest.log; then
991 echo "## ------------ ##" >&5
992 echo "## confdefs.h. ##" >&5
993 echo "## ------------ ##" >&5
998 test "$ac_signal" != 0 &&
999 echo "$as_me: caught signal $ac_signal" >&5
1000 echo "$as_me: exit $exit_status" >&5
1001 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1004 for ac_signal in 1 2 13 15; do
1005 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1009 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1010 rm -rf conftest* confdefs.h
1011 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1014 # Let the site file select an alternate cache file if it wants to.
1015 # Prefer explicitly selected file to automatically selected ones.
1016 if test -z "$CONFIG_SITE"; then
1017 if test "x$prefix" != xNONE; then
1018 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1020 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1023 for ac_site_file in $CONFIG_SITE; do
1024 if test -r "$ac_site_file"; then
1025 { echo "$as_me:1025: loading site script $ac_site_file" >&5
1026 echo "$as_me: loading site script $ac_site_file" >&6;}
1027 cat "$ac_site_file" >&5
1032 if test -r "$cache_file"; then
1033 # Some versions of bash will fail to source /dev/null (special
1034 # files actually), so we avoid doing that.
1035 if test -f "$cache_file"; then
1036 { echo "$as_me:1036: loading cache $cache_file" >&5
1037 echo "$as_me: loading cache $cache_file" >&6;}
1039 [\\/]* | ?:[\\/]* ) . $cache_file;;
1040 *) . ./$cache_file;;
1044 { echo "$as_me:1044: creating cache $cache_file" >&5
1045 echo "$as_me: creating cache $cache_file" >&6;}
1049 # Check that the precious variables saved in the cache have kept the same
1051 ac_cache_corrupted=false
1052 for ac_var in `(set) 2>&1 |
1053 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1054 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1055 eval ac_new_set=\$ac_env_${ac_var}_set
1056 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1057 eval ac_new_val="\$ac_env_${ac_var}_value"
1058 case $ac_old_set,$ac_new_set in
1060 { echo "$as_me:1060: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1061 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1062 ac_cache_corrupted=: ;;
1064 { echo "$as_me:1064: error: \`$ac_var' was not set in the previous run" >&5
1065 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1066 ac_cache_corrupted=: ;;
1069 if test "x$ac_old_val" != "x$ac_new_val"; then
1070 { echo "$as_me:1070: error: \`$ac_var' has changed since the previous run:" >&5
1071 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1072 { echo "$as_me:1072: former value: $ac_old_val" >&5
1073 echo "$as_me: former value: $ac_old_val" >&2;}
1074 { echo "$as_me:1074: current value: $ac_new_val" >&5
1075 echo "$as_me: current value: $ac_new_val" >&2;}
1076 ac_cache_corrupted=:
1079 # Pass precious variables to config.status. It doesn't matter if
1080 # we pass some twice (in addition to the command line arguments).
1081 if test "$ac_new_set" = set; then
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1085 ac_configure_args="$ac_configure_args '$ac_arg'"
1087 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1092 if $ac_cache_corrupted; then
1093 { echo "$as_me:1093: error: changes in the environment can compromise the build" >&5
1094 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1095 { { echo "$as_me:1095: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1096 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1097 { (exit 1); exit 1; }; }
1101 ac_cpp='$CPP $CPPFLAGS'
1102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1105 ac_main_return=return
1107 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1108 *c*,-n*) ECHO_N= ECHO_C='
1110 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1111 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1113 echo "#! $SHELL" >conftest.sh
1114 echo "exit 0" >>conftest.sh
1115 chmod +x conftest.sh
1116 if { (echo "$as_me:1116: PATH=\".;.\"; conftest.sh") >&5
1117 (PATH=".;."; conftest.sh) 2>&5
1119 echo "$as_me:1119: \$? = $ac_status" >&5
1120 (exit $ac_status); }; then
1121 ac_path_separator=';'
1125 PATH_SEPARATOR="$ac_path_separator"
1128 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1132 echo "$as_me:1132: checking for egrep" >&5
1133 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1134 if test "${ac_cv_prog_egrep+set}" = set; then
1135 echo $ECHO_N "(cached) $ECHO_C" >&6
1137 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1138 then ac_cv_prog_egrep='grep -E'
1139 else ac_cv_prog_egrep='egrep'
1142 echo "$as_me:1142: result: $ac_cv_prog_egrep" >&5
1143 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1144 EGREP=$ac_cv_prog_egrep
1146 test -z "$EGREP" && { { echo "$as_me:1146: error: No egrep program found" >&5
1147 echo "$as_me: error: No egrep program found" >&2;}
1148 { (exit 1); exit 1; }; }
1150 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1151 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1152 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1153 cf_cv_abi_version=${NCURSES_MAJOR}
1154 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1155 cf_cv_timestamp=`date`
1156 echo "$as_me:1156: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1157 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1159 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1161 # Check whether --with-rel-version or --without-rel-version was given.
1162 if test "${with_rel_version+set}" = set; then
1163 withval="$with_rel_version"
1164 { echo "$as_me:1164: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1165 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1166 cf_cv_rel_version=$withval
1169 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1170 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1172 if test -n "$NCURSES_MAJOR" ; then
1173 case $NCURSES_MAJOR in #(vi
1177 { { echo "$as_me:1177: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1178 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1179 { (exit 1); exit 1; }; }
1183 { { echo "$as_me:1183: error: Release major-version value is empty" >&5
1184 echo "$as_me: error: Release major-version value is empty" >&2;}
1185 { (exit 1); exit 1; }; }
1188 if test -n "$NCURSES_MINOR" ; then
1189 case $NCURSES_MINOR in #(vi
1193 { { echo "$as_me:1193: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1194 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1195 { (exit 1); exit 1; }; }
1199 { { echo "$as_me:1199: error: Release minor-version value is empty" >&5
1200 echo "$as_me: error: Release minor-version value is empty" >&2;}
1201 { (exit 1); exit 1; }; }
1204 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1206 # Check whether --with-abi-version or --without-abi-version was given.
1207 if test "${with_abi_version+set}" = set; then
1208 withval="$with_abi_version"
1209 { echo "$as_me:1209: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1210 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1211 cf_cv_abi_version=$withval
1214 if test -n "$cf_cv_abi_version" ; then
1215 case $cf_cv_abi_version in #(vi
1219 { { echo "$as_me:1219: error: ABI version is not a number: $cf_cv_abi_version" >&5
1220 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1221 { (exit 1); exit 1; }; }
1225 { { echo "$as_me:1225: error: ABI version value is empty" >&5
1226 echo "$as_me: error: ABI version value is empty" >&2;}
1227 { (exit 1); exit 1; }; }
1231 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1232 if test -f $ac_dir/install-sh; then
1234 ac_install_sh="$ac_aux_dir/install-sh -c"
1236 elif test -f $ac_dir/install.sh; then
1238 ac_install_sh="$ac_aux_dir/install.sh -c"
1240 elif test -f $ac_dir/shtool; then
1242 ac_install_sh="$ac_aux_dir/shtool install -c"
1246 if test -z "$ac_aux_dir"; then
1247 { { echo "$as_me:1247: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1248 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1249 { (exit 1); exit 1; }; }
1251 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1252 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1253 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1255 # Make sure we can run config.sub.
1256 $ac_config_sub sun4 >/dev/null 2>&1 ||
1257 { { echo "$as_me:1257: error: cannot run $ac_config_sub" >&5
1258 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1259 { (exit 1); exit 1; }; }
1261 echo "$as_me:1261: checking build system type" >&5
1262 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1263 if test "${ac_cv_build+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 ac_cv_build_alias=$build_alias
1267 test -z "$ac_cv_build_alias" &&
1268 ac_cv_build_alias=`$ac_config_guess`
1269 test -z "$ac_cv_build_alias" &&
1270 { { echo "$as_me:1270: error: cannot guess build type; you must specify one" >&5
1271 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1272 { (exit 1); exit 1; }; }
1273 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1274 { { echo "$as_me:1274: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1275 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1276 { (exit 1); exit 1; }; }
1279 echo "$as_me:1279: result: $ac_cv_build" >&5
1280 echo "${ECHO_T}$ac_cv_build" >&6
1282 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1283 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1284 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1286 echo "$as_me:1286: checking host system type" >&5
1287 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1288 if test "${ac_cv_host+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1291 ac_cv_host_alias=$host_alias
1292 test -z "$ac_cv_host_alias" &&
1293 ac_cv_host_alias=$ac_cv_build_alias
1294 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1295 { { echo "$as_me:1295: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1296 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1297 { (exit 1); exit 1; }; }
1300 echo "$as_me:1300: result: $ac_cv_host" >&5
1301 echo "${ECHO_T}$ac_cv_host" >&6
1303 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1304 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1305 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1307 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1308 echo "$as_me:1308: checking target system type" >&5
1309 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1310 if test "${ac_cv_target+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1313 ac_cv_target_alias=$target_alias
1314 test "x$ac_cv_target_alias" = "x" &&
1315 ac_cv_target_alias=$ac_cv_host_alias
1316 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1317 { { echo "$as_me:1317: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1318 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1319 { (exit 1); exit 1; }; }
1322 echo "$as_me:1322: result: $ac_cv_target" >&5
1323 echo "${ECHO_T}$ac_cv_target" >&6
1324 target=$ac_cv_target
1325 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1326 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1327 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1329 # The aliases save the names the user supplied, while $host etc.
1330 # will get canonicalized.
1331 test -n "$target_alias" &&
1332 test "$program_prefix$program_suffix$program_transform_name" = \
1334 program_prefix=${target_alias}-
1335 system_name="$host_os"
1337 system_name="`(uname -s -r) 2>/dev/null`"
1338 if test -z "$system_name" ; then
1339 system_name="`(hostname) 2>/dev/null`"
1342 test -n "$system_name" &&
1343 cat >>confdefs.h <<EOF
1344 #define SYSTEM_NAME "$system_name"
1347 if test "${cf_cv_system_name+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 cf_cv_system_name="$system_name"
1353 test -z "$system_name" && system_name="$cf_cv_system_name"
1354 test -n "$cf_cv_system_name" && echo "$as_me:1354: result: Configuring for $cf_cv_system_name" >&5
1355 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1357 if test ".$system_name" != ".$cf_cv_system_name" ; then
1358 echo "$as_me:1358: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1359 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1360 { { echo "$as_me:1360: error: \"Please remove config.cache and try again.\"" >&5
1361 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1362 { (exit 1); exit 1; }; }
1365 # Check whether --with-system-type or --without-system-type was given.
1366 if test "${with_system_type+set}" = set; then
1367 withval="$with_system_type"
1368 { echo "$as_me:1368: WARNING: overriding system type to $withval" >&5
1369 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1370 cf_cv_system_name=$withval
1375 ### Save the given $CFLAGS to allow user-override.
1376 cf_user_CFLAGS="$CFLAGS"
1378 ### Default install-location
1380 echo "$as_me:1380: checking for prefix" >&5
1381 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1382 if test "x$prefix" = "xNONE" ; then
1383 case "$cf_cv_system_name" in
1384 # non-vendor systems don't have a conflict
1385 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1388 *) prefix=$ac_default_prefix
1392 echo "$as_me:1392: result: $prefix" >&5
1393 echo "${ECHO_T}$prefix" >&6
1395 if test "x$prefix" = "xNONE" ; then
1396 echo "$as_me:1396: checking for default include-directory" >&5
1397 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1398 test -n "$verbose" && echo 1>&6
1401 $includedir/ncurses \
1403 $prefix/include/ncurses \
1404 /usr/local/include \
1405 /usr/local/include/ncurses \
1407 /usr/include/ncurses
1409 cf_dir=`eval echo $cf_symbol`
1410 if test -f $cf_dir/curses.h ; then
1411 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1412 includedir="$cf_symbol"
1413 test -n "$verbose" && echo $ac_n " found " 1>&6
1417 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1419 echo "$as_me:1419: result: $includedir" >&5
1420 echo "${ECHO_T}$includedir" >&6
1423 ### Checks for programs.
1425 # Check whether --with-ada or --without-ada was given.
1426 if test "${with_ada+set}" = set; then
1428 cf_with_ada=$withval
1432 if test "x$cf_with_ada" = xyes
1434 cf_PROG_CC="gnatgcc gcc cc"
1440 ac_cpp='$CPP $CPPFLAGS'
1441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1444 ac_main_return=return
1445 if test -n "$ac_tool_prefix"; then
1446 for ac_prog in $cf_PROG_CC
1448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1450 echo "$as_me:1450: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_CC+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 if test -n "$CC"; then
1456 ac_cv_prog_CC="$CC" # Let the user override the test.
1458 ac_save_IFS=$IFS; IFS=$ac_path_separator
1460 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 $as_executable_p "$ac_dir/$ac_word" || continue
1464 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1465 echo "$as_me:1465: found $ac_dir/$ac_word" >&5
1472 if test -n "$CC"; then
1473 echo "$as_me:1473: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1476 echo "$as_me:1476: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1480 test -n "$CC" && break
1483 if test -z "$CC"; then
1485 for ac_prog in $cf_PROG_CC
1487 # Extract the first word of "$ac_prog", so it can be a program name with args.
1488 set dummy $ac_prog; ac_word=$2
1489 echo "$as_me:1489: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 if test -n "$ac_ct_CC"; then
1495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1497 ac_save_IFS=$IFS; IFS=$ac_path_separator
1499 for ac_dir in $ac_dummy; do
1501 test -z "$ac_dir" && ac_dir=.
1502 $as_executable_p "$ac_dir/$ac_word" || continue
1503 ac_cv_prog_ac_ct_CC="$ac_prog"
1504 echo "$as_me:1504: found $ac_dir/$ac_word" >&5
1510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512 echo "$as_me:1512: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1515 echo "$as_me:1515: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1519 test -n "$ac_ct_CC" && break
1525 test -z "$CC" && { { echo "$as_me:1525: error: no acceptable cc found in \$PATH" >&5
1526 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1527 { (exit 1); exit 1; }; }
1529 # Provide some information about the compiler.
1530 echo "$as_me:1530:" \
1531 "checking for C compiler version" >&5
1532 ac_compiler=`set X $ac_compile; echo $2`
1533 { (eval echo "$as_me:1533: \"$ac_compiler --version </dev/null >&5\"") >&5
1534 (eval $ac_compiler --version </dev/null >&5) 2>&5
1536 echo "$as_me:1536: \$? = $ac_status" >&5
1537 (exit $ac_status); }
1538 { (eval echo "$as_me:1538: \"$ac_compiler -v </dev/null >&5\"") >&5
1539 (eval $ac_compiler -v </dev/null >&5) 2>&5
1541 echo "$as_me:1541: \$? = $ac_status" >&5
1542 (exit $ac_status); }
1543 { (eval echo "$as_me:1543: \"$ac_compiler -V </dev/null >&5\"") >&5
1544 (eval $ac_compiler -V </dev/null >&5) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }
1549 cat >conftest.$ac_ext <<_ACEOF
1550 #line 1550 "configure"
1551 #include "confdefs.h"
1561 ac_clean_files_save=$ac_clean_files
1562 ac_clean_files="$ac_clean_files a.out a.exe"
1563 # Try to create an executable without -o first, disregard a.out.
1564 # It will help us diagnose broken compilers, and finding out an intuition
1566 echo "$as_me:1566: checking for C compiler default output" >&5
1567 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1568 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1569 if { (eval echo "$as_me:1569: \"$ac_link_default\"") >&5
1570 (eval $ac_link_default) 2>&5
1572 echo "$as_me:1572: \$? = $ac_status" >&5
1573 (exit $ac_status); }; then
1574 # Find the output, starting from the most likely. This scheme is
1575 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1577 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1578 ls a.out conftest 2>/dev/null;
1579 ls a.* conftest.* 2>/dev/null`; do
1581 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1582 a.out ) # We found the default executable, but exeext='' is most
1585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1586 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1593 echo "$as_me: failed program was:" >&5
1594 cat conftest.$ac_ext >&5
1595 { { echo "$as_me:1595: error: C compiler cannot create executables" >&5
1596 echo "$as_me: error: C compiler cannot create executables" >&2;}
1597 { (exit 77); exit 77; }; }
1600 ac_exeext=$ac_cv_exeext
1601 echo "$as_me:1601: result: $ac_file" >&5
1602 echo "${ECHO_T}$ac_file" >&6
1604 # Check the compiler produces executables we can run. If not, either
1605 # the compiler is broken, or we cross compile.
1606 echo "$as_me:1606: checking whether the C compiler works" >&5
1607 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1608 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1609 # If not cross compiling, check that we can run a simple program.
1610 if test "$cross_compiling" != yes; then
1611 if { ac_try='./$ac_file'
1612 { (eval echo "$as_me:1612: \"$ac_try\"") >&5
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); }; }; then
1619 if test "$cross_compiling" = maybe; then
1622 { { echo "$as_me:1622: error: cannot run C compiled programs.
1623 If you meant to cross compile, use \`--host'." >&5
1624 echo "$as_me: error: cannot run C compiled programs.
1625 If you meant to cross compile, use \`--host'." >&2;}
1626 { (exit 1); exit 1; }; }
1630 echo "$as_me:1630: result: yes" >&5
1631 echo "${ECHO_T}yes" >&6
1633 rm -f a.out a.exe conftest$ac_cv_exeext
1634 ac_clean_files=$ac_clean_files_save
1635 # Check the compiler produces executables we can run. If not, either
1636 # the compiler is broken, or we cross compile.
1637 echo "$as_me:1637: checking whether we are cross compiling" >&5
1638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1639 echo "$as_me:1639: result: $cross_compiling" >&5
1640 echo "${ECHO_T}$cross_compiling" >&6
1642 echo "$as_me:1642: checking for executable suffix" >&5
1643 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1644 if { (eval echo "$as_me:1644: \"$ac_link\"") >&5
1645 (eval $ac_link) 2>&5
1647 echo "$as_me:1647: \$? = $ac_status" >&5
1648 (exit $ac_status); }; then
1649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1651 # work properly (i.e., refer to `conftest.exe'), while it won't with
1653 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1655 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1663 { { echo "$as_me:1663: error: cannot compute EXEEXT: cannot compile and link" >&5
1664 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1665 { (exit 1); exit 1; }; }
1668 rm -f conftest$ac_cv_exeext
1669 echo "$as_me:1669: result: $ac_cv_exeext" >&5
1670 echo "${ECHO_T}$ac_cv_exeext" >&6
1672 rm -f conftest.$ac_ext
1673 EXEEXT=$ac_cv_exeext
1675 echo "$as_me:1675: checking for object suffix" >&5
1676 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1677 if test "${ac_cv_objext+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 cat >conftest.$ac_ext <<_ACEOF
1681 #line 1681 "configure"
1682 #include "confdefs.h"
1692 rm -f conftest.o conftest.obj
1693 if { (eval echo "$as_me:1693: \"$ac_compile\"") >&5
1694 (eval $ac_compile) 2>&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }; then
1698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1700 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1706 echo "$as_me: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1708 { { echo "$as_me:1708: error: cannot compute OBJEXT: cannot compile" >&5
1709 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1710 { (exit 1); exit 1; }; }
1713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1715 echo "$as_me:1715: result: $ac_cv_objext" >&5
1716 echo "${ECHO_T}$ac_cv_objext" >&6
1717 OBJEXT=$ac_cv_objext
1719 echo "$as_me:1719: checking whether we are using the GNU C compiler" >&5
1720 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1721 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 cat >conftest.$ac_ext <<_ACEOF
1725 #line 1725 "configure"
1726 #include "confdefs.h"
1739 rm -f conftest.$ac_objext
1740 if { (eval echo "$as_me:1740: \"$ac_compile\"") >&5
1741 (eval $ac_compile) 2>&5
1743 echo "$as_me:1743: \$? = $ac_status" >&5
1744 (exit $ac_status); } &&
1745 { ac_try='test -s conftest.$ac_objext'
1746 { (eval echo "$as_me:1746: \"$ac_try\"") >&5
1749 echo "$as_me:1749: \$? = $ac_status" >&5
1750 (exit $ac_status); }; }; then
1753 echo "$as_me: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1757 rm -f conftest.$ac_objext conftest.$ac_ext
1758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1761 echo "$as_me:1761: result: $ac_cv_c_compiler_gnu" >&5
1762 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1763 GCC=`test $ac_compiler_gnu = yes && echo yes`
1764 ac_test_CFLAGS=${CFLAGS+set}
1765 ac_save_CFLAGS=$CFLAGS
1767 echo "$as_me:1767: checking whether $CC accepts -g" >&5
1768 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1769 if test "${ac_cv_prog_cc_g+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 cat >conftest.$ac_ext <<_ACEOF
1773 #line 1773 "configure"
1774 #include "confdefs.h"
1784 rm -f conftest.$ac_objext
1785 if { (eval echo "$as_me:1785: \"$ac_compile\"") >&5
1786 (eval $ac_compile) 2>&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); } &&
1790 { ac_try='test -s conftest.$ac_objext'
1791 { (eval echo "$as_me:1791: \"$ac_try\"") >&5
1794 echo "$as_me:1794: \$? = $ac_status" >&5
1795 (exit $ac_status); }; }; then
1798 echo "$as_me: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1802 rm -f conftest.$ac_objext conftest.$ac_ext
1804 echo "$as_me:1804: result: $ac_cv_prog_cc_g" >&5
1805 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1806 if test "$ac_test_CFLAGS" = set; then
1807 CFLAGS=$ac_save_CFLAGS
1808 elif test $ac_cv_prog_cc_g = yes; then
1809 if test "$GCC" = yes; then
1815 if test "$GCC" = yes; then
1821 # Some people use a C++ compiler to compile C. Since we use `exit',
1822 # in C++ we need to declare it. In case someone uses the same compiler
1823 # for both compiling C and C++ we need to have the C++ compiler decide
1824 # the declaration of exit, since it's the most demanding environment.
1825 cat >conftest.$ac_ext <<_ACEOF
1830 rm -f conftest.$ac_objext
1831 if { (eval echo "$as_me:1831: \"$ac_compile\"") >&5
1832 (eval $ac_compile) 2>&5
1834 echo "$as_me:1834: \$? = $ac_status" >&5
1835 (exit $ac_status); } &&
1836 { ac_try='test -s conftest.$ac_objext'
1837 { (eval echo "$as_me:1837: \"$ac_try\"") >&5
1840 echo "$as_me:1840: \$? = $ac_status" >&5
1841 (exit $ac_status); }; }; then
1842 for ac_declaration in \
1844 '#include <stdlib.h>' \
1845 'extern "C" void std::exit (int) throw (); using std::exit;' \
1846 'extern "C" void std::exit (int); using std::exit;' \
1847 'extern "C" void exit (int) throw ();' \
1848 'extern "C" void exit (int);' \
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line 1852 "configure"
1853 #include "confdefs.h"
1864 rm -f conftest.$ac_objext
1865 if { (eval echo "$as_me:1865: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>&5
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); } &&
1870 { ac_try='test -s conftest.$ac_objext'
1871 { (eval echo "$as_me:1871: \"$ac_try\"") >&5
1874 echo "$as_me:1874: \$? = $ac_status" >&5
1875 (exit $ac_status); }; }; then
1878 echo "$as_me: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1882 rm -f conftest.$ac_objext conftest.$ac_ext
1883 cat >conftest.$ac_ext <<_ACEOF
1884 #line 1884 "configure"
1885 #include "confdefs.h"
1895 rm -f conftest.$ac_objext
1896 if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
1897 (eval $ac_compile) 2>&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); } &&
1901 { ac_try='test -s conftest.$ac_objext'
1902 { (eval echo "$as_me:1902: \"$ac_try\"") >&5
1905 echo "$as_me:1905: \$? = $ac_status" >&5
1906 (exit $ac_status); }; }; then
1909 echo "$as_me: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 rm -f conftest.$ac_objext conftest.$ac_ext
1915 if test -n "$ac_declaration"; then
1916 echo '#ifdef __cplusplus' >>confdefs.h
1917 echo $ac_declaration >>confdefs.h
1918 echo '#endif' >>confdefs.h
1922 echo "$as_me: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 rm -f conftest.$ac_objext conftest.$ac_ext
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 ac_main_return=return
1934 if test "$GCC" = yes ; then
1935 echo "$as_me:1935: checking version of $CC" >&5
1936 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1937 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1938 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1939 echo "$as_me:1939: result: $GCC_VERSION" >&5
1940 echo "${ECHO_T}$GCC_VERSION" >&6
1943 echo "$as_me:1943: checking for $CC option to accept ANSI C" >&5
1944 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1945 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 ac_cv_prog_cc_stdc=no
1950 cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1955 #include <sys/types.h>
1956 #include <sys/stat.h>
1957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1958 struct buf { int x; };
1959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1960 static char *e (p, i)
1966 static char *f (char * (*g) (char **, int), char **p, ...)
1971 s = g (p, va_arg (v,int));
1975 int test (int i, double x);
1976 struct s1 {int (*f) (int a);};
1977 struct s2 {int (*f) (double a);};
1978 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1989 # Don't try gcc -ansi; that turns off useful extensions and
1990 # breaks some systems' header files.
1991 # AIX -qlanglvl=ansi
1992 # Ultrix and OSF/1 -std1
1993 # HP-UX 10.20 and later -Ae
1994 # HP-UX older versions -Aa -D_HPUX_SOURCE
1995 # SVR4 -Xc -D__EXTENSIONS__
1996 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1998 CC="$ac_save_CC $ac_arg"
1999 rm -f conftest.$ac_objext
2000 if { (eval echo "$as_me:2000: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:2003: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:2006: \"$ac_try\"") >&5
2009 echo "$as_me:2009: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_cv_prog_cc_stdc=$ac_arg
2014 echo "$as_me: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 rm -f conftest.$ac_objext
2019 rm -f conftest.$ac_ext conftest.$ac_objext
2024 case "x$ac_cv_prog_cc_stdc" in
2026 echo "$as_me:2026: result: none needed" >&5
2027 echo "${ECHO_T}none needed" >&6 ;;
2029 echo "$as_me:2029: result: $ac_cv_prog_cc_stdc" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2031 CC="$CC $ac_cv_prog_cc_stdc" ;;
2034 # This should have been defined by AC_PROG_CC
2037 echo "$as_me:2037: checking \$CC variable" >&5
2038 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2041 echo "$as_me:2041: result: broken" >&5
2042 echo "${ECHO_T}broken" >&6
2043 { echo "$as_me:2043: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2044 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2046 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2047 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2052 cf_new_extra_cppflags=
2054 for cf_add_cflags in $cf_flags
2056 case $cf_fix_cppflags in
2058 case $cf_add_cflags in #(vi
2059 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2060 case $cf_add_cflags in
2062 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2064 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2065 && test -z "${cf_tst_cflags}" \
2066 && cf_fix_cppflags=yes
2068 if test $cf_fix_cppflags = yes ; then
2069 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2071 elif test "${cf_tst_cflags}" = "\"'" ; then
2072 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2078 *$cf_add_cflags) #(vi
2081 case $cf_add_cflags in #(vi
2083 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2085 CPPFLAGS=`echo "$CPPFLAGS" | \
2086 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2087 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2091 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2096 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2101 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2103 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2105 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2106 && test -z "${cf_tst_cflags}" \
2107 && cf_fix_cppflags=no
2112 if test -n "$cf_new_cflags" ; then
2114 CFLAGS="$CFLAGS $cf_new_cflags"
2117 if test -n "$cf_new_cppflags" ; then
2119 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2122 if test -n "$cf_new_extra_cppflags" ; then
2124 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2129 echo "$as_me:2129: result: ok" >&5
2130 echo "${ECHO_T}ok" >&6
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 ac_main_return=return
2140 echo "$as_me:2140: checking how to run the C preprocessor" >&5
2141 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2142 # On Suns, sometimes $CPP names a directory.
2143 if test -n "$CPP" && test -d "$CPP"; then
2146 if test -z "$CPP"; then
2147 if test "${ac_cv_prog_CPP+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 # Double quotes because CPP needs to be expanded
2151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2154 for ac_c_preproc_warn_flag in '' yes
2156 # Use a header file that comes with gcc, so configuring glibc
2157 # with a fresh cross-compiler works.
2158 # On the NeXT, cc -E runs the code through the compiler's parser,
2159 # not just through cpp. "Syntax error" is here to catch this case.
2160 cat >conftest.$ac_ext <<_ACEOF
2161 #line 2161 "configure"
2162 #include "confdefs.h"
2166 if { (eval echo "$as_me:2166: \"$ac_cpp conftest.$ac_ext\"") >&5
2167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2169 egrep -v '^ *\+' conftest.er1 >conftest.err
2171 cat conftest.err >&5
2172 echo "$as_me:2172: \$? = $ac_status" >&5
2173 (exit $ac_status); } >/dev/null; then
2174 if test -s conftest.err; then
2175 ac_cpp_err=$ac_c_preproc_warn_flag
2182 if test -z "$ac_cpp_err"; then
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 # Broken: fails on valid input.
2190 rm -f conftest.err conftest.$ac_ext
2192 # OK, works on sane cases. Now check whether non-existent headers
2193 # can be detected and how.
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line 2195 "configure"
2196 #include "confdefs.h"
2197 #include <ac_nonexistent.h>
2199 if { (eval echo "$as_me:2199: \"$ac_cpp conftest.$ac_ext\"") >&5
2200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2202 egrep -v '^ *\+' conftest.er1 >conftest.err
2204 cat conftest.err >&5
2205 echo "$as_me:2205: \$? = $ac_status" >&5
2206 (exit $ac_status); } >/dev/null; then
2207 if test -s conftest.err; then
2208 ac_cpp_err=$ac_c_preproc_warn_flag
2215 if test -z "$ac_cpp_err"; then
2216 # Broken: success on invalid input.
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 # Passes both tests.
2225 rm -f conftest.err conftest.$ac_ext
2228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2229 rm -f conftest.err conftest.$ac_ext
2230 if $ac_preproc_ok; then
2242 echo "$as_me:2242: result: $CPP" >&5
2243 echo "${ECHO_T}$CPP" >&6
2245 for ac_c_preproc_warn_flag in '' yes
2247 # Use a header file that comes with gcc, so configuring glibc
2248 # with a fresh cross-compiler works.
2249 # On the NeXT, cc -E runs the code through the compiler's parser,
2250 # not just through cpp. "Syntax error" is here to catch this case.
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line 2252 "configure"
2253 #include "confdefs.h"
2257 if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
2258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2260 egrep -v '^ *\+' conftest.er1 >conftest.err
2262 cat conftest.err >&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } >/dev/null; then
2265 if test -s conftest.err; then
2266 ac_cpp_err=$ac_c_preproc_warn_flag
2273 if test -z "$ac_cpp_err"; then
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 # Broken: fails on valid input.
2281 rm -f conftest.err conftest.$ac_ext
2283 # OK, works on sane cases. Now check whether non-existent headers
2284 # can be detected and how.
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line 2286 "configure"
2287 #include "confdefs.h"
2288 #include <ac_nonexistent.h>
2290 if { (eval echo "$as_me:2290: \"$ac_cpp conftest.$ac_ext\"") >&5
2291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293 egrep -v '^ *\+' conftest.er1 >conftest.err
2295 cat conftest.err >&5
2296 echo "$as_me:2296: \$? = $ac_status" >&5
2297 (exit $ac_status); } >/dev/null; then
2298 if test -s conftest.err; then
2299 ac_cpp_err=$ac_c_preproc_warn_flag
2306 if test -z "$ac_cpp_err"; then
2307 # Broken: success on invalid input.
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 # Passes both tests.
2316 rm -f conftest.err conftest.$ac_ext
2319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320 rm -f conftest.err conftest.$ac_ext
2321 if $ac_preproc_ok; then
2324 { { echo "$as_me:2324: error: C preprocessor \"$CPP\" fails sanity check" >&5
2325 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2326 { (exit 1); exit 1; }; }
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 ac_main_return=return
2336 if test $ac_cv_c_compiler_gnu = yes; then
2337 echo "$as_me:2337: checking whether $CC needs -traditional" >&5
2338 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2339 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 ac_pattern="Autoconf.*'x'"
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line 2344 "configure"
2345 #include "confdefs.h"
2347 int Autoconf = TIOCGETP;
2349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2350 egrep "$ac_pattern" >/dev/null 2>&1; then
2351 ac_cv_prog_gcc_traditional=yes
2353 ac_cv_prog_gcc_traditional=no
2357 if test $ac_cv_prog_gcc_traditional = no; then
2358 cat >conftest.$ac_ext <<_ACEOF
2359 #line 2359 "configure"
2360 #include "confdefs.h"
2362 int Autoconf = TCGETA;
2364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2365 egrep "$ac_pattern" >/dev/null 2>&1; then
2366 ac_cv_prog_gcc_traditional=yes
2372 echo "$as_me:2372: result: $ac_cv_prog_gcc_traditional" >&5
2373 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2374 if test $ac_cv_prog_gcc_traditional = yes; then
2375 CC="$CC -traditional"
2379 echo "$as_me:2379: checking whether $CC understands -c and -o together" >&5
2380 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2381 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat > conftest.$ac_ext <<CF_EOF
2389 ${cf_cv_main_return:-return}(0);
2392 # We do the test twice because some compilers refuse to overwrite an
2393 # existing .o file with -o, though they will create one.
2394 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2395 if { (eval echo "$as_me:2395: \"$ac_try\"") >&5
2398 echo "$as_me:2398: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 test -f conftest2.$ac_objext && { (eval echo "$as_me:2400: \"$ac_try\"") >&5
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); };
2406 eval cf_cv_prog_CC_c_o=yes
2408 eval cf_cv_prog_CC_c_o=no
2413 if test $cf_cv_prog_CC_c_o = yes; then
2414 echo "$as_me:2414: result: yes" >&5
2415 echo "${ECHO_T}yes" >&6
2417 echo "$as_me:2417: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2421 if test "$cross_compiling" = yes ; then
2424 case "$cf_cv_system_name" in #(vi
2425 dragonfly*|mirbsd*|freebsd*) #(vi
2426 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2428 *) LDPATH=$PATH:/sbin:/usr/sbin
2429 # Extract the first word of "ldconfig", so it can be a program name with args.
2430 set dummy ldconfig; ac_word=$2
2431 echo "$as_me:2431: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2441 ac_save_IFS=$IFS; IFS=$ac_path_separator
2443 for ac_dir in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir=.
2446 if $as_executable_p "$ac_dir/$ac_word"; then
2447 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2448 echo "$as_me:2448: found $ac_dir/$ac_word" >&5
2456 LDCONFIG=$ac_cv_path_LDCONFIG
2458 if test -n "$LDCONFIG"; then
2459 echo "$as_me:2459: result: $LDCONFIG" >&5
2460 echo "${ECHO_T}$LDCONFIG" >&6
2462 echo "$as_me:2462: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2470 echo "$as_me:2470: checking if you want to ensure bool is consistent with C++" >&5
2471 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2473 # Check whether --with-cxx or --without-cxx was given.
2474 if test "${with_cxx+set}" = set; then
2476 cf_with_cxx=$withval
2480 echo "$as_me:2480: result: $cf_with_cxx" >&5
2481 echo "${ECHO_T}$cf_with_cxx" >&6
2482 if test "X$cf_with_cxx" = Xno ; then
2486 # with autoconf 2.13, we can change the error to a warning:
2488 ac_cpp='$CXXCPP $CPPFLAGS'
2489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2492 ac_main_return=return
2493 if test -n "$ac_tool_prefix"; then
2494 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2498 echo "$as_me:2498: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500 if test "${ac_cv_prog_CXX+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CXX"; then
2504 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2506 ac_save_IFS=$IFS; IFS=$ac_path_separator
2508 for ac_dir in $ac_dummy; do
2510 test -z "$ac_dir" && ac_dir=.
2511 $as_executable_p "$ac_dir/$ac_word" || continue
2512 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2513 echo "$as_me:2513: found $ac_dir/$ac_word" >&5
2520 if test -n "$CXX"; then
2521 echo "$as_me:2521: result: $CXX" >&5
2522 echo "${ECHO_T}$CXX" >&6
2524 echo "$as_me:2524: result: no" >&5
2525 echo "${ECHO_T}no" >&6
2528 test -n "$CXX" && break
2531 if test -z "$CXX"; then
2533 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2535 # Extract the first word of "$ac_prog", so it can be a program name with args.
2536 set dummy $ac_prog; ac_word=$2
2537 echo "$as_me:2537: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2539 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$ac_ct_CXX"; then
2543 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2545 ac_save_IFS=$IFS; IFS=$ac_path_separator
2547 for ac_dir in $ac_dummy; do
2549 test -z "$ac_dir" && ac_dir=.
2550 $as_executable_p "$ac_dir/$ac_word" || continue
2551 ac_cv_prog_ac_ct_CXX="$ac_prog"
2552 echo "$as_me:2552: found $ac_dir/$ac_word" >&5
2558 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2559 if test -n "$ac_ct_CXX"; then
2560 echo "$as_me:2560: result: $ac_ct_CXX" >&5
2561 echo "${ECHO_T}$ac_ct_CXX" >&6
2563 echo "$as_me:2563: result: no" >&5
2564 echo "${ECHO_T}no" >&6
2567 test -n "$ac_ct_CXX" && break
2569 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2574 # Provide some information about the compiler.
2575 echo "$as_me:2575:" \
2576 "checking for C++ compiler version" >&5
2577 ac_compiler=`set X $ac_compile; echo $2`
2578 { (eval echo "$as_me:2578: \"$ac_compiler --version </dev/null >&5\"") >&5
2579 (eval $ac_compiler --version </dev/null >&5) 2>&5
2581 echo "$as_me:2581: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583 { (eval echo "$as_me:2583: \"$ac_compiler -v </dev/null >&5\"") >&5
2584 (eval $ac_compiler -v </dev/null >&5) 2>&5
2586 echo "$as_me:2586: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2588 { (eval echo "$as_me:2588: \"$ac_compiler -V </dev/null >&5\"") >&5
2589 (eval $ac_compiler -V </dev/null >&5) 2>&5
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2594 echo "$as_me:2594: checking whether we are using the GNU C++ compiler" >&5
2595 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2596 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line 2600 "configure"
2601 #include "confdefs.h"
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:2615: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:2618: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:2621: \"$ac_try\"") >&5
2624 echo "$as_me:2624: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2632 rm -f conftest.$ac_objext conftest.$ac_ext
2633 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2636 echo "$as_me:2636: result: $ac_cv_cxx_compiler_gnu" >&5
2637 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2638 GXX=`test $ac_compiler_gnu = yes && echo yes`
2639 ac_test_CXXFLAGS=${CXXFLAGS+set}
2640 ac_save_CXXFLAGS=$CXXFLAGS
2642 echo "$as_me:2642: checking whether $CXX accepts -g" >&5
2643 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cxx_g+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 cat >conftest.$ac_ext <<_ACEOF
2648 #line 2648 "configure"
2649 #include "confdefs.h"
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:2660: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>&5
2663 echo "$as_me:2663: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -s conftest.$ac_objext'
2666 { (eval echo "$as_me:2666: \"$ac_try\"") >&5
2669 echo "$as_me:2669: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 ac_cv_prog_cxx_g=yes
2673 echo "$as_me: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2679 echo "$as_me:2679: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682 CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684 if test "$GXX" = yes; then
2690 if test "$GXX" = yes; then
2696 for ac_declaration in \
2698 '#include <stdlib.h>' \
2699 'extern "C" void std::exit (int) throw (); using std::exit;' \
2700 'extern "C" void std::exit (int); using std::exit;' \
2701 'extern "C" void exit (int) throw ();' \
2702 'extern "C" void exit (int);' \
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #line 2706 "configure"
2707 #include "confdefs.h"
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:2719: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>&5
2722 echo "$as_me:2722: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:2725: \"$ac_try\"") >&5
2728 echo "$as_me:2728: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2736 rm -f conftest.$ac_objext conftest.$ac_ext
2737 cat >conftest.$ac_ext <<_ACEOF
2738 #line 2738 "configure"
2739 #include "confdefs.h"
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 rm -f conftest.$ac_objext conftest.$ac_ext
2769 if test -n "$ac_declaration"; then
2770 echo '#ifdef __cplusplus' >>confdefs.h
2771 echo $ac_declaration >>confdefs.h
2772 echo '#endif' >>confdefs.h
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 ac_main_return=return
2782 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2783 if test "$CXX" = "g++" ; then
2784 # Extract the first word of "g++", so it can be a program name with args.
2785 set dummy g++; ac_word=$2
2786 echo "$as_me:2786: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2788 if test "${ac_cv_path_CXX+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2796 ac_save_IFS=$IFS; IFS=$ac_path_separator
2798 for ac_dir in $ac_dummy; do
2800 test -z "$ac_dir" && ac_dir=.
2801 if $as_executable_p "$ac_dir/$ac_word"; then
2802 ac_cv_path_CXX="$ac_dir/$ac_word"
2803 echo "$as_me:2803: found $ac_dir/$ac_word" >&5
2813 if test -n "$CXX"; then
2814 echo "$as_me:2814: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6
2817 echo "$as_me:2817: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 case "x$CXX" in #(vi
2824 { echo "$as_me:2824: WARNING: You don't have any C++ compiler, too bad" >&5
2825 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2826 cf_with_cxx=no; CXX=""; GXX="";
2832 if test "$GXX" = yes; then
2833 echo "$as_me:2833: checking version of ${CXX:-g++}" >&5
2834 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2835 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2836 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2837 echo "$as_me:2837: result: $GXX_VERSION" >&5
2838 echo "${ECHO_T}$GXX_VERSION" >&6
2841 case $GXX_VERSION in
2843 # GXX=""; CXX=""; ac_cv_prog_gxx=no
2845 { echo "$as_me:2845: WARNING: templates do not work" >&5
2846 echo "$as_me: WARNING: templates do not work" >&2;}
2850 echo "$as_me:2850: checking if you want to build C++ binding and demo" >&5
2851 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2853 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2854 if test "${with_cxx_binding+set}" = set; then
2855 withval="$with_cxx_binding"
2856 cf_with_cxx_binding=$withval
2858 cf_with_cxx_binding=$cf_with_cxx
2860 echo "$as_me:2860: result: $cf_with_cxx_binding" >&5
2861 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2863 echo "$as_me:2863: checking if you want to build with Ada95" >&5
2864 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2865 echo "$as_me:2865: result: $cf_with_ada" >&5
2866 echo "${ECHO_T}$cf_with_ada" >&6
2868 echo "$as_me:2868: checking if you want to install manpages" >&5
2869 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
2871 # Check whether --with-manpages or --without-manpages was given.
2872 if test "${with_manpages+set}" = set; then
2873 withval="$with_manpages"
2874 cf_with_manpages=$withval
2876 cf_with_manpages=yes
2878 echo "$as_me:2878: result: $cf_with_manpages" >&5
2879 echo "${ECHO_T}$cf_with_manpages" >&6
2881 echo "$as_me:2881: checking if you want to build programs such as tic" >&5
2882 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2884 # Check whether --with-progs or --without-progs was given.
2885 if test "${with_progs+set}" = set; then
2886 withval="$with_progs"
2887 cf_with_progs=$withval
2891 echo "$as_me:2891: result: $cf_with_progs" >&5
2892 echo "${ECHO_T}$cf_with_progs" >&6
2894 echo "$as_me:2894: checking if you want to build test-programs" >&5
2895 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2897 # Check whether --with-tests or --without-tests was given.
2898 if test "${with_tests+set}" = set; then
2899 withval="$with_tests"
2900 cf_with_tests=$withval
2904 echo "$as_me:2904: result: $cf_with_tests" >&5
2905 echo "${ECHO_T}$cf_with_tests" >&6
2907 echo "$as_me:2907: checking if you wish to install curses.h" >&5
2908 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2910 # Check whether --with-curses-h or --without-curses-h was given.
2911 if test "${with_curses_h+set}" = set; then
2912 withval="$with_curses_h"
2913 with_curses_h=$withval
2917 echo "$as_me:2917: result: $with_curses_h" >&5
2918 echo "${ECHO_T}$with_curses_h" >&6
2920 modules_to_build="ncurses"
2921 if test "X$cf_with_progs" != Xno ; then
2922 modules_to_build="$modules_to_build progs tack"
2924 modules_to_build="$modules_to_build panel menu form"
2926 test "$program_prefix" != NONE &&
2927 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2928 # Use a double $ so make ignores it.
2929 test "$program_suffix" != NONE &&
2930 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2931 # Double any \ or $. echo might interpret backslashes.
2932 # By default was `s,x,x', remove it if useless.
2933 cat <<\_ACEOF >conftest.sed
2934 s/[\\$]/&&/g;s/;s,x,x,$//
2936 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2939 for ac_prog in mawk gawk nawk awk
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 echo "$as_me:2943: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_AWK+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$AWK"; then
2949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951 ac_save_IFS=$IFS; IFS=$ac_path_separator
2953 for ac_dir in $ac_dummy; do
2955 test -z "$ac_dir" && ac_dir=.
2956 $as_executable_p "$ac_dir/$ac_word" || continue
2957 ac_cv_prog_AWK="$ac_prog"
2958 echo "$as_me:2958: found $ac_dir/$ac_word" >&5
2965 if test -n "$AWK"; then
2966 echo "$as_me:2966: result: $AWK" >&5
2967 echo "${ECHO_T}$AWK" >&6
2969 echo "$as_me:2969: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2973 test -n "$AWK" && break
2976 test -z "$AWK" && { { echo "$as_me:2976: error: No awk program found" >&5
2977 echo "$as_me: error: No awk program found" >&2;}
2978 { (exit 1); exit 1; }; }
2980 echo "$as_me:2980: checking for egrep" >&5
2981 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2982 if test "${ac_cv_prog_egrep+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2986 then ac_cv_prog_egrep='grep -E'
2987 else ac_cv_prog_egrep='egrep'
2990 echo "$as_me:2990: result: $ac_cv_prog_egrep" >&5
2991 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2992 EGREP=$ac_cv_prog_egrep
2994 test -z "$EGREP" && { { echo "$as_me:2994: error: No egrep program found" >&5
2995 echo "$as_me: error: No egrep program found" >&2;}
2996 { (exit 1); exit 1; }; }
2998 # Find a good install program. We prefer a C program (faster),
2999 # so one script is as good as another. But avoid the broken or
3000 # incompatible versions:
3001 # SysV /etc/install, /usr/sbin/install
3002 # SunOS /usr/etc/install
3003 # IRIX /sbin/install
3005 # AmigaOS /C/install, which installs bootblocks on floppy discs
3006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009 # ./install, which can be erroneously created by make from ./install.sh.
3010 echo "$as_me:3010: checking for a BSD compatible install" >&5
3011 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3012 if test -z "$INSTALL"; then
3013 if test "${ac_cv_path_install+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_save_IFS=$IFS; IFS=$ac_path_separator
3017 for ac_dir in $PATH; do
3019 # Account for people who put trailing slashes in PATH elements.
3021 / | ./ | .// | /cC/* \
3022 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3025 # OSF1 and SCO ODT 3.0 have their own names for install.
3026 # Don't use installbsd from OSF since it installs stuff as root
3028 for ac_prog in ginstall scoinst install; do
3029 if $as_executable_p "$ac_dir/$ac_prog"; then
3030 if test $ac_prog = install &&
3031 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3032 # AIX install. It has an incompatible calling convention.
3034 elif test $ac_prog = install &&
3035 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3036 # program-specific install script used by HP pwplus--don't use.
3039 ac_cv_path_install="$ac_dir/$ac_prog -c"
3049 if test "${ac_cv_path_install+set}" = set; then
3050 INSTALL=$ac_cv_path_install
3052 # As a last resort, use the slow shell script. We don't cache a
3053 # path for INSTALL within a source directory, because that will
3054 # break other packages using the cache if that directory is
3055 # removed, or if the path is relative.
3056 INSTALL=$ac_install_sh
3059 echo "$as_me:3059: result: $INSTALL" >&5
3060 echo "${ECHO_T}$INSTALL" >&6
3062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3063 # It thinks the first close brace ends the variable substitution.
3064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3074 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3075 test -z "$cf_dir" && cf_dir=.
3076 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3080 for ac_prog in tdlint lint alint splint lclint
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 echo "$as_me:3084: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_LINT+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 if test -n "$LINT"; then
3090 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3092 ac_save_IFS=$IFS; IFS=$ac_path_separator
3094 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 $as_executable_p "$ac_dir/$ac_word" || continue
3098 ac_cv_prog_LINT="$ac_prog"
3099 echo "$as_me:3099: found $ac_dir/$ac_word" >&5
3105 LINT=$ac_cv_prog_LINT
3106 if test -n "$LINT"; then
3107 echo "$as_me:3107: result: $LINT" >&5
3108 echo "${ECHO_T}$LINT" >&6
3110 echo "$as_me:3110: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3114 test -n "$LINT" && break
3117 echo "$as_me:3117: checking whether ln -s works" >&5
3118 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3120 if test "$LN_S" = "ln -s"; then
3121 echo "$as_me:3121: result: yes" >&5
3122 echo "${ECHO_T}yes" >&6
3124 echo "$as_me:3124: result: no, using $LN_S" >&5
3125 echo "${ECHO_T}no, using $LN_S" >&6
3128 echo "$as_me:3128: checking if $LN_S -f options work" >&5
3129 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3131 rm -f conf$$.src conf$$dst
3133 echo first >conf$$.src
3134 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3139 rm -f conf$$.dst conf$$src
3140 echo "$as_me:3140: result: $cf_prog_ln_sf" >&5
3141 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3143 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3145 echo "$as_me:3145: checking for long file names" >&5
3146 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3147 if test "${ac_cv_sys_long_file_names+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_cv_sys_long_file_names=yes
3151 # Test for long file names in all the places we know might matter:
3152 # . the current directory, where building will happen
3153 # $prefix/lib where we will be installing things
3154 # $exec_prefix/lib likewise
3155 # eval it to expand exec_prefix.
3156 # $TMPDIR if set, where it might want to write temporary files
3157 # if $TMPDIR is not set:
3158 # /tmp where it might want to write temporary files
3161 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3164 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3166 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3167 test -d $ac_dir || continue
3168 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3169 ac_xdir=$ac_dir/cf$$
3170 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3171 ac_tf1=$ac_xdir/conftest9012345
3172 ac_tf2=$ac_xdir/conftest9012346
3173 (echo 1 >$ac_tf1) 2>/dev/null
3174 (echo 2 >$ac_tf2) 2>/dev/null
3175 ac_val=`cat $ac_tf1 2>/dev/null`
3176 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3177 ac_cv_sys_long_file_names=no
3178 rm -rf $ac_xdir 2>/dev/null
3181 rm -rf $ac_xdir 2>/dev/null
3184 echo "$as_me:3184: result: $ac_cv_sys_long_file_names" >&5
3185 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3186 if test $ac_cv_sys_long_file_names = yes; then
3188 cat >>confdefs.h <<\EOF
3189 #define HAVE_LONG_FILE_NAMES 1
3194 # if we find pkg-config, check if we should install the ".pc" files.
3196 echo "$as_me:3196: checking if you want to use pkg-config" >&5
3197 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3199 # Check whether --with-pkg-config or --without-pkg-config was given.
3200 if test "${with_pkg_config+set}" = set; then
3201 withval="$with_pkg_config"
3202 cf_pkg_config=$withval
3206 echo "$as_me:3206: result: $cf_pkg_config" >&5
3207 echo "${ECHO_T}$cf_pkg_config" >&6
3209 case $cf_pkg_config in #(vi
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3218 echo "$as_me:3218: checking for $ac_word" >&5
3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3228 ac_save_IFS=$IFS; IFS=$ac_path_separator
3230 for ac_dir in $ac_dummy; do
3232 test -z "$ac_dir" && ac_dir=.
3233 if $as_executable_p "$ac_dir/$ac_word"; then
3234 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3235 echo "$as_me:3235: found $ac_dir/$ac_word" >&5
3243 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3245 if test -n "$PKG_CONFIG"; then
3246 echo "$as_me:3246: result: $PKG_CONFIG" >&5
3247 echo "${ECHO_T}$PKG_CONFIG" >&6
3249 echo "$as_me:3249: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3254 if test -z "$ac_cv_path_PKG_CONFIG"; then
3255 ac_pt_PKG_CONFIG=$PKG_CONFIG
3256 # Extract the first word of "pkg-config", so it can be a program name with args.
3257 set dummy pkg-config; ac_word=$2
3258 echo "$as_me:3258: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 case $ac_pt_PKG_CONFIG in
3265 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3268 ac_save_IFS=$IFS; IFS=$ac_path_separator
3270 for ac_dir in $ac_dummy; do
3272 test -z "$ac_dir" && ac_dir=.
3273 if $as_executable_p "$ac_dir/$ac_word"; then
3274 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3275 echo "$as_me:3275: found $ac_dir/$ac_word" >&5
3280 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3284 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3286 if test -n "$ac_pt_PKG_CONFIG"; then
3287 echo "$as_me:3287: result: $ac_pt_PKG_CONFIG" >&5
3288 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3290 echo "$as_me:3290: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3294 PKG_CONFIG=$ac_pt_PKG_CONFIG
3296 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3305 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3306 if test "$PKG_CONFIG" != none ; then
3308 if test "x$prefix" != xNONE; then
3309 cf_path_syntax="$prefix"
3311 cf_path_syntax="$ac_default_prefix"
3314 case ".$PKG_CONFIG" in #(vi
3315 .\$\(*\)*|.\'*\'*) #(vi
3319 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3321 .\${*prefix}*|.\${*dir}*) #(vi
3322 eval PKG_CONFIG="$PKG_CONFIG"
3323 case ".$PKG_CONFIG" in #(vi
3325 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3330 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3333 { { echo "$as_me:3333: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3334 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3335 { (exit 1); exit 1; }; }
3341 if test "$PKG_CONFIG" != none ; then
3342 echo "$as_me:3342: checking for $PKG_CONFIG library directory" >&5
3343 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3345 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3346 if test "${with_pkg_config_libdir+set}" = set; then
3347 withval="$with_pkg_config_libdir"
3348 PKG_CONFIG_LIBDIR=$withval
3350 PKG_CONFIG_LIBDIR=yes
3353 case x$PKG_CONFIG_LIBDIR in #(vi
3357 # look for the library directory using the same prefix as the executable
3358 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3359 case x`(arch) 2>/dev/null` in #(vi
3361 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3363 if test -d $cf_config/pkgconfig
3365 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3371 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3379 echo "$as_me:3379: result: $PKG_CONFIG_LIBDIR" >&5
3380 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3383 if test "$PKG_CONFIG" != none ; then
3384 echo "$as_me:3384: checking if we should install .pc files for $PKG_CONFIG" >&5
3385 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3387 # Check whether --enable-pc-files or --disable-pc-files was given.
3388 if test "${enable_pc_files+set}" = set; then
3389 enableval="$enable_pc_files"
3390 enable_pc_files=$enableval
3394 echo "$as_me:3394: result: $enable_pc_files" >&5
3395 echo "${ECHO_T}$enable_pc_files" >&6
3396 if test "$enable_pc_files" != no
3399 if test "x$prefix" != xNONE; then
3400 cf_path_syntax="$prefix"
3402 cf_path_syntax="$ac_default_prefix"
3405 case ".$PKG_CONFIG_LIBDIR" in #(vi
3406 .\$\(*\)*|.\'*\'*) #(vi
3410 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3412 .\${*prefix}*|.\${*dir}*) #(vi
3413 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3414 case ".$PKG_CONFIG_LIBDIR" in #(vi
3416 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3421 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3424 { { echo "$as_me:3424: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3425 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3426 { (exit 1); exit 1; }; }
3435 echo "$as_me:3435: checking if we should assume mixed-case filenames" >&5
3436 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3438 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3439 if test "${enable_mixed_case+set}" = set; then
3440 enableval="$enable_mixed_case"
3441 enable_mixedcase=$enableval
3443 enable_mixedcase=auto
3445 echo "$as_me:3445: result: $enable_mixedcase" >&5
3446 echo "${ECHO_T}$enable_mixedcase" >&6
3447 if test "$enable_mixedcase" = "auto" ; then
3449 echo "$as_me:3449: checking if filesystem supports mixed-case filenames" >&5
3450 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3451 if test "${cf_cv_mixedcase+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if test "$cross_compiling" = yes ; then
3456 case $target_alias in #(vi
3457 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3465 rm -f conftest CONFTEST
3467 if test -f CONFTEST ; then
3472 rm -f conftest CONFTEST
3476 echo "$as_me:3476: result: $cf_cv_mixedcase" >&5
3477 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3478 test "$cf_cv_mixedcase" = yes &&
3479 cat >>confdefs.h <<\EOF
3480 #define MIXEDCASE_FILENAMES 1
3484 cf_cv_mixedcase=$enable_mixedcase
3485 if test "x$enable_mixedcase" = "xyes" ; then
3487 cat >>confdefs.h <<\EOF
3488 #define MIXEDCASE_FILENAMES 1
3494 # do this after mixed-case option (tags/TAGS is not as important as tic).
3495 echo "$as_me:3495: checking whether ${MAKE-make} sets \${MAKE}" >&5
3496 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3497 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3498 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 cat >conftest.make <<\EOF
3503 @echo 'ac_maketemp="${MAKE}"'
3505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3506 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3507 if test -n "$ac_maketemp"; then
3508 eval ac_cv_prog_make_${ac_make}_set=yes
3510 eval ac_cv_prog_make_${ac_make}_set=no
3514 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3515 echo "$as_me:3515: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6
3519 echo "$as_me:3519: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 SET_MAKE="MAKE=${MAKE-make}"
3524 for ac_prog in exctags ctags
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo "$as_me:3528: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_CTAGS+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 if test -n "$CTAGS"; then
3534 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3536 ac_save_IFS=$IFS; IFS=$ac_path_separator
3538 for ac_dir in $ac_dummy; do
3540 test -z "$ac_dir" && ac_dir=.
3541 $as_executable_p "$ac_dir/$ac_word" || continue
3542 ac_cv_prog_CTAGS="$ac_prog"
3543 echo "$as_me:3543: found $ac_dir/$ac_word" >&5
3549 CTAGS=$ac_cv_prog_CTAGS
3550 if test -n "$CTAGS"; then
3551 echo "$as_me:3551: result: $CTAGS" >&5
3552 echo "${ECHO_T}$CTAGS" >&6
3554 echo "$as_me:3554: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3558 test -n "$CTAGS" && break
3561 for ac_prog in exetags etags
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 echo "$as_me:3565: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_prog_ETAGS+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 if test -n "$ETAGS"; then
3571 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3573 ac_save_IFS=$IFS; IFS=$ac_path_separator
3575 for ac_dir in $ac_dummy; do
3577 test -z "$ac_dir" && ac_dir=.
3578 $as_executable_p "$ac_dir/$ac_word" || continue
3579 ac_cv_prog_ETAGS="$ac_prog"
3580 echo "$as_me:3580: found $ac_dir/$ac_word" >&5
3586 ETAGS=$ac_cv_prog_ETAGS
3587 if test -n "$ETAGS"; then
3588 echo "$as_me:3588: result: $ETAGS" >&5
3589 echo "${ECHO_T}$ETAGS" >&6
3591 echo "$as_me:3591: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3595 test -n "$ETAGS" && break
3598 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3599 set dummy ${CTAGS:-ctags}; ac_word=$2
3600 echo "$as_me:3600: checking for $ac_word" >&5
3601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if test -n "$MAKE_LOWER_TAGS"; then
3606 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3608 ac_save_IFS=$IFS; IFS=$ac_path_separator
3610 for ac_dir in $ac_dummy; do
3612 test -z "$ac_dir" && ac_dir=.
3613 $as_executable_p "$ac_dir/$ac_word" || continue
3614 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3615 echo "$as_me:3615: found $ac_dir/$ac_word" >&5
3619 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3622 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3623 if test -n "$MAKE_LOWER_TAGS"; then
3624 echo "$as_me:3624: result: $MAKE_LOWER_TAGS" >&5
3625 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3627 echo "$as_me:3627: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3631 if test "$cf_cv_mixedcase" = yes ; then
3632 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3633 set dummy ${ETAGS:-etags}; ac_word=$2
3634 echo "$as_me:3634: checking for $ac_word" >&5
3635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 if test -n "$MAKE_UPPER_TAGS"; then
3640 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3642 ac_save_IFS=$IFS; IFS=$ac_path_separator
3644 for ac_dir in $ac_dummy; do
3646 test -z "$ac_dir" && ac_dir=.
3647 $as_executable_p "$ac_dir/$ac_word" || continue
3648 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3649 echo "$as_me:3649: found $ac_dir/$ac_word" >&5
3653 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3656 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3657 if test -n "$MAKE_UPPER_TAGS"; then
3658 echo "$as_me:3658: result: $MAKE_UPPER_TAGS" >&5
3659 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3661 echo "$as_me:3661: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3669 if test "$MAKE_UPPER_TAGS" = yes ; then
3675 if test "$MAKE_LOWER_TAGS" = yes ; then
3681 echo "$as_me:3681: checking for makeflags variable" >&5
3682 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3683 if test "${cf_cv_makeflags+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3690 cat >cf_makeflags.tmp <<CF_EOF
3693 @ echo '.$cf_option'
3695 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3696 case "$cf_result" in
3698 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3699 case "$cf_result" in
3700 .*CC=*) cf_cv_makeflags=
3702 *) cf_cv_makeflags=$cf_option
3708 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3712 rm -f cf_makeflags.tmp
3715 echo "$as_me:3715: result: $cf_cv_makeflags" >&5
3716 echo "${ECHO_T}$cf_cv_makeflags" >&6
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3721 echo "$as_me:3721: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_RANLIB+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$RANLIB"; then
3727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3729 ac_save_IFS=$IFS; IFS=$ac_path_separator
3731 for ac_dir in $ac_dummy; do
3733 test -z "$ac_dir" && ac_dir=.
3734 $as_executable_p "$ac_dir/$ac_word" || continue
3735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3736 echo "$as_me:3736: found $ac_dir/$ac_word" >&5
3742 RANLIB=$ac_cv_prog_RANLIB
3743 if test -n "$RANLIB"; then
3744 echo "$as_me:3744: result: $RANLIB" >&5
3745 echo "${ECHO_T}$RANLIB" >&6
3747 echo "$as_me:3747: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3752 if test -z "$ac_cv_prog_RANLIB"; then
3753 ac_ct_RANLIB=$RANLIB
3754 # Extract the first word of "ranlib", so it can be a program name with args.
3755 set dummy ranlib; ac_word=$2
3756 echo "$as_me:3756: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$ac_ct_RANLIB"; then
3762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3764 ac_save_IFS=$IFS; IFS=$ac_path_separator
3766 for ac_dir in $ac_dummy; do
3768 test -z "$ac_dir" && ac_dir=.
3769 $as_executable_p "$ac_dir/$ac_word" || continue
3770 ac_cv_prog_ac_ct_RANLIB="ranlib"
3771 echo "$as_me:3771: found $ac_dir/$ac_word" >&5
3775 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3779 if test -n "$ac_ct_RANLIB"; then
3780 echo "$as_me:3780: result: $ac_ct_RANLIB" >&5
3781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3783 echo "$as_me:3783: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3787 RANLIB=$ac_ct_RANLIB
3789 RANLIB="$ac_cv_prog_RANLIB"
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}ld; ac_word=$2
3795 echo "$as_me:3795: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_LD+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -n "$LD"; then
3801 ac_cv_prog_LD="$LD" # Let the user override the test.
3803 ac_save_IFS=$IFS; IFS=$ac_path_separator
3805 for ac_dir in $ac_dummy; do
3807 test -z "$ac_dir" && ac_dir=.
3808 $as_executable_p "$ac_dir/$ac_word" || continue
3809 ac_cv_prog_LD="${ac_tool_prefix}ld"
3810 echo "$as_me:3810: found $ac_dir/$ac_word" >&5
3817 if test -n "$LD"; then
3818 echo "$as_me:3818: result: $LD" >&5
3819 echo "${ECHO_T}$LD" >&6
3821 echo "$as_me:3821: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3826 if test -z "$ac_cv_prog_LD"; then
3828 # Extract the first word of "ld", so it can be a program name with args.
3829 set dummy ld; ac_word=$2
3830 echo "$as_me:3830: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test -n "$ac_ct_LD"; then
3836 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3838 ac_save_IFS=$IFS; IFS=$ac_path_separator
3840 for ac_dir in $ac_dummy; do
3842 test -z "$ac_dir" && ac_dir=.
3843 $as_executable_p "$ac_dir/$ac_word" || continue
3844 ac_cv_prog_ac_ct_LD="ld"
3845 echo "$as_me:3845: found $ac_dir/$ac_word" >&5
3849 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3852 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3853 if test -n "$ac_ct_LD"; then
3854 echo "$as_me:3854: result: $ac_ct_LD" >&5
3855 echo "${ECHO_T}$ac_ct_LD" >&6
3857 echo "$as_me:3857: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3866 if test -n "$ac_tool_prefix"; then
3867 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3868 set dummy ${ac_tool_prefix}ar; ac_word=$2
3869 echo "$as_me:3869: checking for $ac_word" >&5
3870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3871 if test "${ac_cv_prog_AR+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 if test -n "$AR"; then
3875 ac_cv_prog_AR="$AR" # Let the user override the test.
3877 ac_save_IFS=$IFS; IFS=$ac_path_separator
3879 for ac_dir in $ac_dummy; do
3881 test -z "$ac_dir" && ac_dir=.
3882 $as_executable_p "$ac_dir/$ac_word" || continue
3883 ac_cv_prog_AR="${ac_tool_prefix}ar"
3884 echo "$as_me:3884: found $ac_dir/$ac_word" >&5
3891 if test -n "$AR"; then
3892 echo "$as_me:3892: result: $AR" >&5
3893 echo "${ECHO_T}$AR" >&6
3895 echo "$as_me:3895: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3900 if test -z "$ac_cv_prog_AR"; then
3902 # Extract the first word of "ar", so it can be a program name with args.
3903 set dummy ar; ac_word=$2
3904 echo "$as_me:3904: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if test -n "$ac_ct_AR"; then
3910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3912 ac_save_IFS=$IFS; IFS=$ac_path_separator
3914 for ac_dir in $ac_dummy; do
3916 test -z "$ac_dir" && ac_dir=.
3917 $as_executable_p "$ac_dir/$ac_word" || continue
3918 ac_cv_prog_ac_ct_AR="ar"
3919 echo "$as_me:3919: found $ac_dir/$ac_word" >&5
3923 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3926 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3927 if test -n "$ac_ct_AR"; then
3928 echo "$as_me:3928: result: $ac_ct_AR" >&5
3929 echo "${ECHO_T}$ac_ct_AR" >&6
3931 echo "$as_me:3931: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3940 if test -n "$ac_tool_prefix"; then
3941 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3942 set dummy ${ac_tool_prefix}ar; ac_word=$2
3943 echo "$as_me:3943: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_prog_AR+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 if test -n "$AR"; then
3949 ac_cv_prog_AR="$AR" # Let the user override the test.
3951 ac_save_IFS=$IFS; IFS=$ac_path_separator
3953 for ac_dir in $ac_dummy; do
3955 test -z "$ac_dir" && ac_dir=.
3956 $as_executable_p "$ac_dir/$ac_word" || continue
3957 ac_cv_prog_AR="${ac_tool_prefix}ar"
3958 echo "$as_me:3958: found $ac_dir/$ac_word" >&5
3965 if test -n "$AR"; then
3966 echo "$as_me:3966: result: $AR" >&5
3967 echo "${ECHO_T}$AR" >&6
3969 echo "$as_me:3969: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3974 if test -z "$ac_cv_prog_AR"; then
3976 # Extract the first word of "ar", so it can be a program name with args.
3977 set dummy ar; ac_word=$2
3978 echo "$as_me:3978: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$ac_ct_AR"; then
3984 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3986 ac_save_IFS=$IFS; IFS=$ac_path_separator
3988 for ac_dir in $ac_dummy; do
3990 test -z "$ac_dir" && ac_dir=.
3991 $as_executable_p "$ac_dir/$ac_word" || continue
3992 ac_cv_prog_ac_ct_AR="ar"
3993 echo "$as_me:3993: found $ac_dir/$ac_word" >&5
3997 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4001 if test -n "$ac_ct_AR"; then
4002 echo "$as_me:4002: result: $ac_ct_AR" >&5
4003 echo "${ECHO_T}$ac_ct_AR" >&6
4005 echo "$as_me:4005: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4014 echo "$as_me:4014: checking for options to update archives" >&5
4015 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4016 if test "${cf_cv_ar_flags+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 cf_cv_ar_flags=unknown
4021 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4024 # check if $ARFLAGS already contains this choice
4025 if test "x$ARFLAGS" != "x" ; then
4026 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4027 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4033 rm -f conftest.$ac_cv_objext
4036 cat >conftest.$ac_ext <<EOF
4037 #line 4037 "configure"
4038 int testdata[3] = { 123, 456, 789 };
4040 if { (eval echo "$as_me:4040: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4043 echo "$as_me:4043: \$? = $ac_status" >&5
4044 (exit $ac_status); } ; then
4045 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4046 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4047 if test -f conftest.a ; then
4048 cf_cv_ar_flags=$cf_ar_flags
4052 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4054 echo "${as_me:-configure}:4054: testing cannot compile test-program ..." 1>&5
4059 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4062 echo "$as_me:4062: result: $cf_cv_ar_flags" >&5
4063 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4065 if test -n "$ARFLAGS" ; then
4066 if test -n "$cf_cv_ar_flags" ; then
4067 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4070 ARFLAGS=$cf_cv_ar_flags
4073 echo "$as_me:4073: checking if you have specified an install-prefix" >&5
4074 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4076 # Check whether --with-install-prefix or --without-install-prefix was given.
4077 if test "${with_install_prefix+set}" = set; then
4078 withval="$with_install_prefix"
4079 case "x$withval" in #(vi
4082 *) DESTDIR="$withval"
4086 echo "$as_me:4086: result: $DESTDIR" >&5
4087 echo "${ECHO_T}$DESTDIR" >&6
4089 ###############################################################################
4091 # If we're cross-compiling, allow the user to override the tools and their
4092 # options. The configure script is oriented toward identifying the host
4093 # compiler, etc., but we need a build compiler to generate parts of the source.
4095 if test "$cross_compiling" = yes ; then
4097 # defaults that we might want to override
4098 : ${BUILD_CFLAGS:=''}
4099 : ${BUILD_CPPFLAGS:=''}
4100 : ${BUILD_LDFLAGS:=''}
4102 : ${BUILD_EXEEXT:='$x'}
4103 : ${BUILD_OBJEXT:='o'}
4105 # Check whether --with-build-cc or --without-build-cc was given.
4106 if test "${with_build_cc+set}" = set; then
4107 withval="$with_build_cc"
4110 for ac_prog in gcc cc cl
4112 # Extract the first word of "$ac_prog", so it can be a program name with args.
4113 set dummy $ac_prog; ac_word=$2
4114 echo "$as_me:4114: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test -n "$BUILD_CC"; then
4120 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4122 ac_save_IFS=$IFS; IFS=$ac_path_separator
4124 for ac_dir in $ac_dummy; do
4126 test -z "$ac_dir" && ac_dir=.
4127 $as_executable_p "$ac_dir/$ac_word" || continue
4128 ac_cv_prog_BUILD_CC="$ac_prog"
4129 echo "$as_me:4129: found $ac_dir/$ac_word" >&5
4135 BUILD_CC=$ac_cv_prog_BUILD_CC
4136 if test -n "$BUILD_CC"; then
4137 echo "$as_me:4137: result: $BUILD_CC" >&5
4138 echo "${ECHO_T}$BUILD_CC" >&6
4140 echo "$as_me:4140: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4144 test -n "$BUILD_CC" && break
4148 echo "$as_me:4148: checking for native build C compiler" >&5
4149 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4150 echo "$as_me:4150: result: $BUILD_CC" >&5
4151 echo "${ECHO_T}$BUILD_CC" >&6
4153 echo "$as_me:4153: checking for native build C preprocessor" >&5
4154 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4156 # Check whether --with-build-cpp or --without-build-cpp was given.
4157 if test "${with_build_cpp+set}" = set; then
4158 withval="$with_build_cpp"
4159 BUILD_CPP="$withval"
4161 BUILD_CPP='${BUILD_CC} -E'
4163 echo "$as_me:4163: result: $BUILD_CPP" >&5
4164 echo "${ECHO_T}$BUILD_CPP" >&6
4166 echo "$as_me:4166: checking for native build C flags" >&5
4167 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4169 # Check whether --with-build-cflags or --without-build-cflags was given.
4170 if test "${with_build_cflags+set}" = set; then
4171 withval="$with_build_cflags"
4172 BUILD_CFLAGS="$withval"
4174 echo "$as_me:4174: result: $BUILD_CFLAGS" >&5
4175 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4177 echo "$as_me:4177: checking for native build C preprocessor-flags" >&5
4178 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4180 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4181 if test "${with_build_cppflags+set}" = set; then
4182 withval="$with_build_cppflags"
4183 BUILD_CPPFLAGS="$withval"
4185 echo "$as_me:4185: result: $BUILD_CPPFLAGS" >&5
4186 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4188 echo "$as_me:4188: checking for native build linker-flags" >&5
4189 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4191 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4192 if test "${with_build_ldflags+set}" = set; then
4193 withval="$with_build_ldflags"
4194 BUILD_LDFLAGS="$withval"
4196 echo "$as_me:4196: result: $BUILD_LDFLAGS" >&5
4197 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4199 echo "$as_me:4199: checking for native build linker-libraries" >&5
4200 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4202 # Check whether --with-build-libs or --without-build-libs was given.
4203 if test "${with_build_libs+set}" = set; then
4204 withval="$with_build_libs"
4205 BUILD_LIBS="$withval"
4207 echo "$as_me:4207: result: $BUILD_LIBS" >&5
4208 echo "${ECHO_T}$BUILD_LIBS" >&6
4210 # this assumes we're on Unix.
4214 : ${BUILD_CC:='${CC}'}
4216 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4217 { { echo "$as_me:4217: error: Cross-build requires two compilers.
4218 Use --with-build-cc to specify the native compiler." >&5
4219 echo "$as_me: error: Cross-build requires two compilers.
4220 Use --with-build-cc to specify the native compiler." >&2;}
4221 { (exit 1); exit 1; }; }
4225 : ${BUILD_CC:='${CC}'}
4226 : ${BUILD_CPP:='${CPP}'}
4227 : ${BUILD_CFLAGS:='${CFLAGS}'}
4228 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4229 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4230 : ${BUILD_LIBS:='${LIBS}'}
4231 : ${BUILD_EXEEXT:='$x'}
4232 : ${BUILD_OBJEXT:='o'}
4235 ###############################################################################
4237 ### Options to allow the user to specify the set of libraries which are used.
4238 ### Use "--without-normal --with-shared" to allow the default model to be
4239 ### shared, for example.
4242 echo "$as_me:4242: checking if libtool -version-number should be used" >&5
4243 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4245 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4246 if test "${enable_libtool_version+set}" = set; then
4247 enableval="$enable_libtool_version"
4248 test "$enableval" != no && enableval=yes
4249 if test "$enableval" != "yes" ; then
4250 cf_libtool_version=no
4252 cf_libtool_version=yes
4256 cf_libtool_version=yes
4259 echo "$as_me:4259: result: $cf_libtool_version" >&5
4260 echo "${ECHO_T}$cf_libtool_version" >&6
4262 if test "$cf_libtool_version" = yes ; then
4263 LIBTOOL_VERSION="-version-number"
4265 LIBTOOL_VERSION="-version-info"
4270 # common library maintenance symbols that are convenient for libtool scripts:
4271 LIB_CREATE='${AR} -cr'
4272 LIB_OBJECT='${OBJECTS}'
4276 # symbols used to prop libtool up to enable it to determine what it should be
4284 echo "$as_me:4284: checking if you want to build libraries with libtool" >&5
4285 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4287 # Check whether --with-libtool or --without-libtool was given.
4288 if test "${with_libtool+set}" = set; then
4289 withval="$with_libtool"
4290 with_libtool=$withval
4294 echo "$as_me:4294: result: $with_libtool" >&5
4295 echo "${ECHO_T}$with_libtool" >&6
4296 if test "$with_libtool" != "no"; then
4298 if test "$with_libtool" != "yes" ; then
4300 if test "x$prefix" != xNONE; then
4301 cf_path_syntax="$prefix"
4303 cf_path_syntax="$ac_default_prefix"
4306 case ".$with_libtool" in #(vi
4307 .\$\(*\)*|.\'*\'*) #(vi
4311 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4313 .\${*prefix}*|.\${*dir}*) #(vi
4314 eval with_libtool="$with_libtool"
4315 case ".$with_libtool" in #(vi
4317 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4322 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4325 { { echo "$as_me:4325: error: expected a pathname, not \"$with_libtool\"" >&5
4326 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4327 { (exit 1); exit 1; }; }
4331 LIBTOOL=$with_libtool
4333 # Extract the first word of "libtool", so it can be a program name with args.
4334 set dummy libtool; ac_word=$2
4335 echo "$as_me:4335: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4345 ac_save_IFS=$IFS; IFS=$ac_path_separator
4347 for ac_dir in $ac_dummy; do
4349 test -z "$ac_dir" && ac_dir=.
4350 if $as_executable_p "$ac_dir/$ac_word"; then
4351 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4352 echo "$as_me:4352: found $ac_dir/$ac_word" >&5
4360 LIBTOOL=$ac_cv_path_LIBTOOL
4362 if test -n "$LIBTOOL"; then
4363 echo "$as_me:4363: result: $LIBTOOL" >&5
4364 echo "${ECHO_T}$LIBTOOL" >&6
4366 echo "$as_me:4366: result: no" >&5
4367 echo "${ECHO_T}no" >&6
4371 if test -z "$LIBTOOL" ; then
4372 { { echo "$as_me:4372: error: Cannot find libtool" >&5
4373 echo "$as_me: error: Cannot find libtool" >&2;}
4374 { (exit 1); exit 1; }; }
4376 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4377 LIB_OBJECT='${OBJECTS:.o=.lo}'
4379 LIB_CLEAN='${LIBTOOL} --mode=clean'
4380 LIB_COMPILE='${LIBTOOL} --mode=compile'
4381 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4382 LIB_INSTALL='${LIBTOOL} --mode=install'
4383 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4386 # Show the version of libtool
4387 echo "$as_me:4387: checking version of libtool" >&5
4388 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4390 # Save the version in a cache variable - this is not entirely a good
4391 # thing, but the version string from libtool is very ugly, and for
4392 # bug reports it might be useful to have the original string. "("
4393 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.].*//'`
4394 echo "$as_me:4394: result: $cf_cv_libtool_version" >&5
4395 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4396 if test -z "$cf_cv_libtool_version" ; then
4397 { { echo "$as_me:4397: error: This is not GNU libtool" >&5
4398 echo "$as_me: error: This is not GNU libtool" >&2;}
4399 { (exit 1); exit 1; }; }
4402 # special hack to add -no-undefined (which libtool should do for itself)
4404 case "$cf_cv_system_name" in #(vi
4405 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4406 LT_UNDEF=-no-undefined
4410 # special hack to add --tag option for C++ compiler
4411 case $cf_cv_libtool_version in #(vi
4412 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4413 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4414 LIBTOOL="$LIBTOOL --tag=CC"
4417 LIBTOOL_CXX="$LIBTOOL"
4425 test -z "$LIBTOOL" && ECHO_LT=
4427 if test "$with_libtool" != "no" ; then
4429 cf_list_models="$cf_list_models libtool"
4433 echo "$as_me:4433: checking if you want to build shared libraries" >&5
4434 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4436 # Check whether --with-shared or --without-shared was given.
4437 if test "${with_shared+set}" = set; then
4438 withval="$with_shared"
4439 with_shared=$withval
4443 echo "$as_me:4443: result: $with_shared" >&5
4444 echo "${ECHO_T}$with_shared" >&6
4445 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
4447 echo "$as_me:4447: checking if you want to build static libraries" >&5
4448 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4450 # Check whether --with-normal or --without-normal was given.
4451 if test "${with_normal+set}" = set; then
4452 withval="$with_normal"
4453 with_normal=$withval
4457 echo "$as_me:4457: result: $with_normal" >&5
4458 echo "${ECHO_T}$with_normal" >&6
4459 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
4461 echo "$as_me:4461: checking if you want to build debug libraries" >&5
4462 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4464 # Check whether --with-debug or --without-debug was given.
4465 if test "${with_debug+set}" = set; then
4466 withval="$with_debug"
4471 echo "$as_me:4471: result: $with_debug" >&5
4472 echo "${ECHO_T}$with_debug" >&6
4473 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
4475 echo "$as_me:4475: checking if you want to build profiling libraries" >&5
4476 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4478 # Check whether --with-profile or --without-profile was given.
4479 if test "${with_profile+set}" = set; then
4480 withval="$with_profile"
4481 with_profile=$withval
4485 echo "$as_me:4485: result: $with_profile" >&5
4486 echo "${ECHO_T}$with_profile" >&6
4487 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
4491 if test "X$cf_with_cxx_binding" != Xno; then
4492 if test "x$with_shared" = "xyes"; then
4493 echo "$as_me:4493: checking if you want to build C++ shared libraries" >&5
4494 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
4496 # Check whether --with-cxx-shared or --without-cxx-shared was given.
4497 if test "${with_cxx_shared+set}" = set; then
4498 withval="$with_cxx_shared"
4499 with_shared_cxx=$withval
4503 echo "$as_me:4503: result: $with_shared_cxx" >&5
4504 echo "${ECHO_T}$with_shared_cxx" >&6
4508 ###############################################################################
4510 echo "$as_me:4510: checking for specified models" >&5
4511 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4512 test -z "$cf_list_models" && cf_list_models=normal
4513 test "$with_libtool" != "no" && cf_list_models=libtool
4514 echo "$as_me:4514: result: $cf_list_models" >&5
4515 echo "${ECHO_T}$cf_list_models" >&6
4517 ### Use the first model as the default, and save its suffix for use in building
4518 ### up test-applications.
4519 echo "$as_me:4519: checking for default model" >&5
4520 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4521 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4522 echo "$as_me:4522: result: $DFT_LWR_MODEL" >&5
4523 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4525 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4536 echo "$as_me:4536: checking if you want to have a library-prefix" >&5
4537 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4539 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4540 if test "${with_lib_prefix+set}" = set; then
4541 withval="$with_lib_prefix"
4542 with_lib_prefix=$withval
4544 with_lib_prefix=auto
4546 echo "$as_me:4546: result: $with_lib_prefix" >&5
4547 echo "${ECHO_T}$with_lib_prefix" >&6
4549 if test $with_lib_prefix = auto
4552 case $cf_cv_system_name in #(vi
4559 cf_prefix=$LIB_PREFIX
4561 elif test $with_lib_prefix = no
4565 LIB_PREFIX=$with_lib_prefix
4570 echo "$as_me:4570: checking for PATH separator" >&5
4571 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
4572 case $cf_cv_system_name in
4573 os2*) PATH_SEPARATOR=';' ;;
4574 *) ${PATH_SEPARATOR:=':'} ;;
4577 echo "$as_me:4577: result: $PATH_SEPARATOR" >&5
4578 echo "${ECHO_T}$PATH_SEPARATOR" >&6
4580 ###############################################################################
4582 echo "$as_me:4582: checking if you want to build a separate terminfo library" >&5
4583 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4585 # Check whether --with-termlib or --without-termlib was given.
4586 if test "${with_termlib+set}" = set; then
4587 withval="$with_termlib"
4588 with_termlib=$withval
4592 echo "$as_me:4592: result: $with_termlib" >&5
4593 echo "${ECHO_T}$with_termlib" >&6
4595 echo "$as_me:4595: checking if you want to build a separate tic library" >&5
4596 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4598 # Check whether --with-ticlib or --without-ticlib was given.
4599 if test "${with_ticlib+set}" = set; then
4600 withval="$with_ticlib"
4601 with_ticlib=$withval
4605 echo "$as_me:4605: result: $with_ticlib" >&5
4606 echo "${ECHO_T}$with_ticlib" >&6
4608 ### Checks for special libraries, must be done up-front.
4611 echo "$as_me:4611: checking if you want to link with the GPM mouse library" >&5
4612 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4614 # Check whether --with-gpm or --without-gpm was given.
4615 if test "${with_gpm+set}" = set; then
4621 echo "$as_me:4621: result: $with_gpm" >&5
4622 echo "${ECHO_T}$with_gpm" >&6
4624 if test "$with_gpm" != no ; then
4625 echo "$as_me:4625: checking for gpm.h" >&5
4626 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4627 if test "${ac_cv_header_gpm_h+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line 4631 "configure"
4632 #include "confdefs.h"
4635 if { (eval echo "$as_me:4635: \"$ac_cpp conftest.$ac_ext\"") >&5
4636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638 egrep -v '^ *\+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 echo "$as_me:4641: \$? = $ac_status" >&5
4642 (exit $ac_status); } >/dev/null; then
4643 if test -s conftest.err; then
4644 ac_cpp_err=$ac_c_preproc_warn_flag
4651 if test -z "$ac_cpp_err"; then
4652 ac_cv_header_gpm_h=yes
4654 echo "$as_me: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4656 ac_cv_header_gpm_h=no
4658 rm -f conftest.err conftest.$ac_ext
4660 echo "$as_me:4660: result: $ac_cv_header_gpm_h" >&5
4661 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4662 if test $ac_cv_header_gpm_h = yes; then
4664 cat >>confdefs.h <<\EOF
4665 #define HAVE_GPM_H 1
4668 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4669 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4671 echo "${as_me:-configure}:4671: testing assuming we really have GPM library ..." 1>&5
4673 cat >>confdefs.h <<\EOF
4674 #define HAVE_LIBGPM 1
4678 echo "$as_me:4678: checking for Gpm_Open in -lgpm" >&5
4679 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4680 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_check_lib_save_LIBS=$LIBS
4685 cat >conftest.$ac_ext <<_ACEOF
4686 #line 4686 "configure"
4687 #include "confdefs.h"
4689 /* Override any gcc2 internal prototype to avoid an error. */
4693 /* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (eval echo "$as_me:4705: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>&5
4708 echo "$as_me:4708: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -s conftest$ac_exeext'
4711 { (eval echo "$as_me:4711: \"$ac_try\"") >&5
4714 echo "$as_me:4714: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 ac_cv_lib_gpm_Gpm_Open=yes
4718 echo "$as_me: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4720 ac_cv_lib_gpm_Gpm_Open=no
4722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4723 LIBS=$ac_check_lib_save_LIBS
4725 echo "$as_me:4725: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4726 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4727 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4731 { { echo "$as_me:4731: error: Cannot link with GPM library" >&5
4732 echo "$as_me: error: Cannot link with GPM library" >&2;}
4733 { (exit 1); exit 1; }; }
4741 test "$with_gpm" != maybe && { echo "$as_me:4741: WARNING: Cannot find GPM header" >&5
4742 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4749 if test "$with_gpm" != no ; then
4750 echo "$as_me:4750: checking if you want to load GPM dynamically" >&5
4751 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4753 # Check whether --with-dlsym or --without-dlsym was given.
4754 if test "${with_dlsym+set}" = set; then
4755 withval="$with_dlsym"
4760 echo "$as_me:4760: result: $with_dlsym" >&5
4761 echo "${ECHO_T}$with_dlsym" >&6
4762 if test "x$with_dlsym" = xyes ; then
4765 echo "$as_me:4765: checking for dlsym" >&5
4766 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4767 if test "${ac_cv_func_dlsym+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 cat >conftest.$ac_ext <<_ACEOF
4771 #line 4771 "configure"
4772 #include "confdefs.h"
4773 /* System header to define __stub macros and hopefully few prototypes,
4774 which can conflict with char dlsym (); below. */
4776 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4788 /* The GNU C library defines this for functions which it implements
4789 to always fail with ENOSYS. Some functions are actually named
4790 something starting with __ and the normal name is an alias. */
4791 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4794 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:4802: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>&5
4805 echo "$as_me:4805: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -s conftest$ac_exeext'
4808 { (eval echo "$as_me:4808: \"$ac_try\"") >&5
4811 echo "$as_me:4811: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_cv_func_dlsym=yes
4815 echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4821 echo "$as_me:4821: result: $ac_cv_func_dlsym" >&5
4822 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4823 if test $ac_cv_func_dlsym = yes; then
4828 echo "$as_me:4828: checking for dlsym in -ldl" >&5
4829 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4830 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 ac_check_lib_save_LIBS=$LIBS
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line 4836 "configure"
4837 #include "confdefs.h"
4839 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4854 rm -f conftest.$ac_objext conftest$ac_exeext
4855 if { (eval echo "$as_me:4855: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -s conftest$ac_exeext'
4861 { (eval echo "$as_me:4861: \"$ac_try\"") >&5
4864 echo "$as_me:4864: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_lib_dl_dlsym=yes
4868 echo "$as_me: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4870 ac_cv_lib_dl_dlsym=no
4872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4873 LIBS=$ac_check_lib_save_LIBS
4875 echo "$as_me:4875: result: $ac_cv_lib_dl_dlsym" >&5
4876 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4877 if test $ac_cv_lib_dl_dlsym = yes; then
4885 if test "$cf_have_dlsym" = yes ; then
4886 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4888 echo "$as_me:4888: checking whether able to link to dl*() functions" >&5
4889 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4890 cat >conftest.$ac_ext <<_ACEOF
4891 #line 4891 "configure"
4892 #include "confdefs.h"
4899 if ((obj = dlopen("filename", 0)) != 0) {
4900 if (dlsym(obj, "symbolname") == 0) {
4908 rm -f conftest.$ac_objext conftest$ac_exeext
4909 if { (eval echo "$as_me:4909: \"$ac_link\"") >&5
4910 (eval $ac_link) 2>&5
4912 echo "$as_me:4912: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -s conftest$ac_exeext'
4915 { (eval echo "$as_me:4915: \"$ac_try\"") >&5
4918 echo "$as_me:4918: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4921 cat >>confdefs.h <<\EOF
4922 #define HAVE_LIBDL 1
4926 echo "$as_me: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 { { echo "$as_me:4929: error: Cannot link test program for libdl" >&5
4930 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4931 { (exit 1); exit 1; }; }
4933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4934 echo "$as_me:4934: result: ok" >&5
4935 echo "${ECHO_T}ok" >&6
4937 { { echo "$as_me:4937: error: Cannot find dlsym function" >&5
4938 echo "$as_me: error: Cannot find dlsym function" >&2;}
4939 { (exit 1); exit 1; }; }
4942 if test "x$with_gpm" != xyes ; then
4943 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4945 echo "${as_me:-configure}:4945: testing assuming soname for gpm is $with_gpm ..." 1>&5
4947 cf_cv_gpm_soname="$with_gpm"
4950 echo "$as_me:4950: checking for soname of gpm library" >&5
4951 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4952 if test "${cf_cv_gpm_soname+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 cf_cv_gpm_soname=unknown
4957 if test "$cross_compiling" != yes ; then
4958 cat >conftest.$ac_ext <<CF_EOF
4962 if (Gpm_Open(0,0)) Gpm_Close();
4963 ${cf_cv_main_return:-return}(0);
4966 cf_save_LIBS="$LIBS"
4968 if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
4969 (eval $ac_compile) 2>&5
4971 echo "$as_me:4971: \$? = $ac_status" >&5
4972 (exit $ac_status); } ; then
4973 if { (eval echo "$as_me:4973: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4976 echo "$as_me:4976: \$? = $ac_status" >&5
4977 (exit $ac_status); } ; then
4978 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4979 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4983 LIBS="$cf_save_LIBS"
4987 echo "$as_me:4987: result: $cf_cv_gpm_soname" >&5
4988 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4991 test "$cf_cv_gpm_soname" != "unknown" &&
4992 cat >>confdefs.h <<EOF
4993 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4996 SHLIB_LIST="-ldl $SHLIB_LIST"
4998 SHLIB_LIST="-lgpm $SHLIB_LIST"
4999 TEST_LIBS="-lgpm $TEST_LIBS"
5002 cat >>confdefs.h <<\EOF
5003 #define HAVE_LIBGPM 1
5006 echo "$as_me:5006: checking for Gpm_Wgetch in -lgpm" >&5
5007 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5008 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 ac_check_lib_save_LIBS=$LIBS
5013 cat >conftest.$ac_ext <<_ACEOF
5014 #line 5014 "configure"
5015 #include "confdefs.h"
5017 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:5033: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>&5
5036 echo "$as_me:5036: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -s conftest$ac_exeext'
5039 { (eval echo "$as_me:5039: \"$ac_try\"") >&5
5042 echo "$as_me:5042: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_lib_gpm_Gpm_Wgetch=yes
5046 echo "$as_me: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 ac_cv_lib_gpm_Gpm_Wgetch=no
5050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5051 LIBS=$ac_check_lib_save_LIBS
5053 echo "$as_me:5053: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5054 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5055 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5057 echo "$as_me:5057: checking if GPM is weakly bound to curses library" >&5
5058 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5059 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 cf_cv_check_gpm_wgetch=unknown
5064 if test "$cross_compiling" != yes ; then
5066 cat >conftest.$ac_ext <<CF_EOF
5071 ${cf_cv_main_return:-return}(0);
5075 cf_save_LIBS="$LIBS"
5076 # This only works if we can look at the symbol table. If a shared
5077 # library is stripped for install, we cannot use that. So we're forced
5078 # to rely on the static library, noting that some packagers may not
5080 LIBS="-static -lgpm -dynamic $LIBS"
5081 if { (eval echo "$as_me:5081: \"$ac_compile\"") >&5
5082 (eval $ac_compile) 2>&5
5084 echo "$as_me:5084: \$? = $ac_status" >&5
5085 (exit $ac_status); } ; then
5086 if { (eval echo "$as_me:5086: \"$ac_link\"") >&5
5087 (eval $ac_link) 2>&5
5089 echo "$as_me:5089: \$? = $ac_status" >&5
5090 (exit $ac_status); } ; then
5091 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5092 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5093 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5097 LIBS="$cf_save_LIBS"
5101 echo "$as_me:5101: result: $cf_cv_check_gpm_wgetch" >&5
5102 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5104 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5105 { echo "$as_me:5105: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5106 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5113 # not everyone has "test -c"
5114 if test -c /dev/sysmouse 2>/dev/null ; then
5115 echo "$as_me:5115: checking if you want to use sysmouse" >&5
5116 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5118 # Check whether --with-sysmouse or --without-sysmouse was given.
5119 if test "${with_sysmouse+set}" = set; then
5120 withval="$with_sysmouse"
5121 cf_with_sysmouse=$withval
5123 cf_with_sysmouse=maybe
5125 if test "$cf_with_sysmouse" != no ; then
5126 cat >conftest.$ac_ext <<_ACEOF
5127 #line 5127 "configure"
5128 #include "confdefs.h"
5130 #include <osreldate.h>
5131 #if (__FreeBSD_version >= 400017)
5132 #include <sys/consio.h>
5133 #include <sys/fbio.h>
5135 #include <machine/console.h>
5142 struct mouse_info the_mouse;
5143 ioctl(0, CONS_MOUSECTL, &the_mouse);
5149 rm -f conftest.$ac_objext
5150 if { (eval echo "$as_me:5150: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>&5
5153 echo "$as_me:5153: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -s conftest.$ac_objext'
5156 { (eval echo "$as_me:5156: \"$ac_try\"") >&5
5159 echo "$as_me:5159: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 cf_with_sysmouse=yes
5163 echo "$as_me: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5167 rm -f conftest.$ac_objext conftest.$ac_ext
5169 echo "$as_me:5169: result: $cf_with_sysmouse" >&5
5170 echo "${ECHO_T}$cf_with_sysmouse" >&6
5171 test "$cf_with_sysmouse" = yes &&
5172 cat >>confdefs.h <<\EOF
5173 #define USE_SYSMOUSE 1
5178 if test X"$CC_G_OPT" = X"" ; then
5180 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5183 if test X"$CXX_G_OPT" = X"" ; then
5185 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5188 echo "$as_me:5188: checking for default loader flags" >&5
5189 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5190 case $DFT_LWR_MODEL in
5191 libtool) LD_MODEL='' ;;
5192 normal) LD_MODEL='' ;;
5193 debug) LD_MODEL=$CC_G_OPT ;;
5194 profile) LD_MODEL='-pg';;
5195 shared) LD_MODEL='' ;;
5197 echo "$as_me:5197: result: $LD_MODEL" >&5
5198 echo "${ECHO_T}$LD_MODEL" >&6
5200 case $DFT_LWR_MODEL in
5203 echo "$as_me:5203: checking if rpath option should be used" >&5
5204 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5206 # Check whether --enable-rpath or --disable-rpath was given.
5207 if test "${enable_rpath+set}" = set; then
5208 enableval="$enable_rpath"
5209 cf_cv_enable_rpath=$enableval
5211 cf_cv_enable_rpath=no
5213 echo "$as_me:5213: result: $cf_cv_enable_rpath" >&5
5214 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5216 echo "$as_me:5216: checking if shared libraries should be relinked during install" >&5
5217 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5219 # Check whether --enable-relink or --disable-relink was given.
5220 if test "${enable_relink+set}" = set; then
5221 enableval="$enable_relink"
5222 cf_cv_do_relink=$enableval
5226 echo "$as_me:5226: result: $cf_cv_do_relink" >&5
5227 echo "${ECHO_T}$cf_cv_do_relink" >&6
5232 echo "$as_me:5232: checking for an rpath option" >&5
5233 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5234 case $cf_cv_system_name in #(vi
5236 if test "$GCC" = yes; then
5237 LD_RPATH_OPT="-Wl,-rpath,"
5239 LD_RPATH_OPT="-rpath "
5242 linux*|gnu*|k*bsd*-gnu) #(vi
5243 LD_RPATH_OPT="-Wl,-rpath,"
5245 openbsd[2-9].*|mirbsd*) #(vi
5246 LD_RPATH_OPT="-Wl,-rpath,"
5248 dragonfly*|freebsd*) #(vi
5249 LD_RPATH_OPT="-rpath "
5252 LD_RPATH_OPT="-Wl,-rpath,"
5255 LD_RPATH_OPT="-rpath "
5263 echo "$as_me:5263: result: $LD_RPATH_OPT" >&5
5264 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5266 case "x$LD_RPATH_OPT" in #(vi
5268 echo "$as_me:5268: checking if we need a space after rpath option" >&5
5269 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5270 cf_save_LIBS="$LIBS"
5271 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5272 cat >conftest.$ac_ext <<_ACEOF
5273 #line 5273 "configure"
5274 #include "confdefs.h"
5284 rm -f conftest.$ac_objext conftest$ac_exeext
5285 if { (eval echo "$as_me:5285: \"$ac_link\"") >&5
5286 (eval $ac_link) 2>&5
5288 echo "$as_me:5288: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -s conftest$ac_exeext'
5291 { (eval echo "$as_me:5291: \"$ac_try\"") >&5
5294 echo "$as_me:5294: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5298 echo "$as_me: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5303 LIBS="$cf_save_LIBS"
5304 echo "$as_me:5304: result: $cf_rpath_space" >&5
5305 echo "${ECHO_T}$cf_rpath_space" >&6
5306 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5313 INSTALL_LIB="-m 644"
5315 cf_cv_do_symlinks=no
5317 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5319 echo "$as_me:5319: checking if release/abi version should be used for shared libs" >&5
5320 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5322 # Check whether --with-shlib-version or --without-shlib-version was given.
5323 if test "${with_shlib_version+set}" = set; then
5324 withval="$with_shlib_version"
5325 test -z "$withval" && withval=auto
5326 case $withval in #(vi
5328 cf_cv_shlib_version=auto
5330 rel|abi|auto|no) #(vi
5331 cf_cv_shlib_version=$withval
5334 { { echo "$as_me:5334: error: option value must be one of: rel, abi, auto or no" >&5
5335 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5336 { (exit 1); exit 1; }; }
5341 cf_cv_shlib_version=auto
5343 echo "$as_me:5343: result: $cf_cv_shlib_version" >&5
5344 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5349 # Some less-capable ports of gcc support only -fpic
5351 if test "$GCC" = yes
5353 echo "$as_me:5353: checking which $CC option to use" >&5
5354 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5355 cf_save_CFLAGS="$CFLAGS"
5356 for CC_SHARED_OPTS in -fPIC -fpic ''
5358 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line 5360 "configure"
5361 #include "confdefs.h"
5371 rm -f conftest.$ac_objext
5372 if { (eval echo "$as_me:5372: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>&5
5375 echo "$as_me:5375: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -s conftest.$ac_objext'
5378 { (eval echo "$as_me:5378: \"$ac_try\"") >&5
5381 echo "$as_me:5381: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5385 echo "$as_me: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 rm -f conftest.$ac_objext conftest.$ac_ext
5390 echo "$as_me:5390: result: $CC_SHARED_OPTS" >&5
5391 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5392 CFLAGS="$cf_save_CFLAGS"
5395 cf_cv_shlib_version_infix=no
5397 case $cf_cv_system_name in #(vi
5398 aix4.3-9*|aix[5-7]*) #(vi
5399 if test "$GCC" = yes; then
5401 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5403 # CC_SHARED_OPTS='-qpic=large -G'
5404 # perhaps "-bM:SRE -bnoentry -bexpall"
5405 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5409 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5413 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5414 cf_cv_shlib_version=cygdll
5415 cf_cv_shlib_version_infix=cygdll
5416 cat >mk_shared_lib.sh <<-CF_EOF
5419 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5422 Linking shared library
5423 ** SHARED_LIB \$SHARED_LIB
5424 ** IMPORT_LIB \$IMPORT_LIB
5426 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5428 chmod +x mk_shared_lib.sh
5431 cf_try_cflags="no-cpp-precomp"
5432 CC_SHARED_OPTS="-dynamic"
5433 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5434 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5435 cf_cv_shlib_version_infix=yes
5436 echo "$as_me:5436: checking if ld -search_paths_first works" >&5
5437 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5438 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 cf_save_LDFLAGS=$LDFLAGS
5443 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5444 cat >conftest.$ac_ext <<_ACEOF
5445 #line 5445 "configure"
5446 #include "confdefs.h"
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:5457: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5460 echo "$as_me:5460: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -s conftest$ac_exeext'
5463 { (eval echo "$as_me:5463: \"$ac_try\"") >&5
5466 echo "$as_me:5466: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 cf_cv_ldflags_search_paths_first=yes
5470 echo "$as_me: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 cf_cv_ldflags_search_paths_first=no
5474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5475 LDFLAGS=$cf_save_LDFLAGS
5477 echo "$as_me:5477: result: $cf_cv_ldflags_search_paths_first" >&5
5478 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5479 if test $cf_cv_ldflags_search_paths_first = yes; then
5480 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5484 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5485 if test "$GCC" != yes; then
5488 MK_SHARED_LIB='${LD} -b -o $@'
5489 INSTALL_LIB="-m 555"
5492 # (tested with gcc 2.7.2 -- I don't have c89)
5493 if test "$GCC" = yes; then
5494 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5497 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5499 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5500 # HP-UX shared libraries must be executable, and should be
5501 # readonly to exploit a quirk in the memory manager.
5502 INSTALL_LIB="-m 555"
5505 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5506 if test "$cf_cv_shlib_version" = rel; then
5507 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5509 cf_shared_soname='`basename `'
5512 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5515 if test "$cf_cv_enable_rpath" = yes ; then
5516 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5518 # tested with IRIX 5.2 and 'cc'.
5519 if test "$GCC" != yes; then
5520 CC_SHARED_OPTS='-KPIC'
5521 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5523 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5525 cf_cv_rm_so_locs=yes
5527 linux*|gnu*|k*bsd*-gnu) #(vi
5528 if test "$DFT_LWR_MODEL" = "shared" ; then
5529 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5530 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5532 if test "$cf_cv_enable_rpath" = yes ; then
5533 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5536 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5537 if test "$cf_cv_shlib_version" = rel; then
5538 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5540 cf_cv_shared_soname='`basename $@`'
5543 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5546 cf_cv_shlib_version=mingw
5547 cf_cv_shlib_version_infix=mingw
5549 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5550 #MK_SHARED_LIB='${CC} ${CFLAGS} -mdll -Wl,-soname,'$cf_cv_shared_soname',-stats -o $[@]'
5551 #MK_SHARED_LIB='${DLLTOOL} --export-all-symbols --output-exp --output-lib $[@]'
5552 cat >mk_shared_lib.sh <<-CF_EOF
5555 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5558 Linking shared library
5559 ** SHARED_LIB \$SHARED_LIB
5560 ** IMPORT_LIB \$IMPORT_LIB
5562 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5564 chmod +x mk_shared_lib.sh
5566 openbsd[2-9].*|mirbsd*) #(vi
5567 if test "$DFT_LWR_MODEL" = "shared" ; then
5568 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5569 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5571 if test "$cf_cv_enable_rpath" = yes ; then
5572 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5574 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5576 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5577 if test "$cf_cv_shlib_version" = rel; then
5578 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5580 cf_cv_shared_soname='`basename $@`'
5583 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5585 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5586 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5587 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5588 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5590 dragonfly*|freebsd*) #(vi
5591 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5592 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5593 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5594 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5595 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5598 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5599 if test "$cf_cv_shlib_version" = rel; then
5600 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5602 cf_cv_shared_soname='`basename $@`'
5605 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5608 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5609 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5610 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5611 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5612 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5613 if test "$cf_cv_shlib_version" = auto; then
5614 if test -f /usr/libexec/ld.elf_so; then
5615 cf_cv_shlib_version=abi
5617 cf_cv_shlib_version=rel
5621 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5622 if test "$cf_cv_shlib_version" = rel; then
5623 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5625 cf_cv_shared_soname='`basename $@`'
5628 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5630 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5634 # tested with OSF/1 V3.2 and 'cc'
5635 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5636 # link with shared libs).
5637 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5638 case $host_os in #(vi
5640 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5643 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5644 if test "$DFT_LWR_MODEL" = "shared" ; then
5645 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5646 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5648 cf_cv_rm_so_locs=yes
5650 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5651 # tested with osr5.0.5
5652 if test "$GCC" != yes; then
5653 CC_SHARED_OPTS='-belf -KPIC'
5655 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5656 if test "$cf_cv_enable_rpath" = yes ; then
5657 # only way is to set LD_RUN_PATH but no switch for it
5660 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5661 LINK_PROGS='LD_RUN_PATH=${libdir}'
5662 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5665 # tested with SunOS 4.1.1 and gcc 2.7.0
5666 if test "$GCC" != yes; then
5667 CC_SHARED_OPTS='-KPIC'
5669 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5670 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5673 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5674 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5675 if test "$DFT_LWR_MODEL" = "shared" ; then
5676 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5677 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5679 if test "$cf_cv_enable_rpath" = yes ; then
5680 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5683 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5684 if test "$cf_cv_shlib_version" = rel; then
5685 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5687 cf_cv_shared_soname='`basename $@`'
5690 if test "$GCC" != yes; then
5691 cf_save_CFLAGS="$CFLAGS"
5692 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5694 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5695 cat >conftest.$ac_ext <<_ACEOF
5696 #line 5696 "configure"
5697 #include "confdefs.h"
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:5708: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5711 echo "$as_me:5711: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:5714: \"$ac_try\"") >&5
5717 echo "$as_me:5717: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5721 echo "$as_me: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5724 rm -f conftest.$ac_objext conftest.$ac_ext
5726 CFLAGS="$cf_save_CFLAGS"
5727 CC_SHARED_OPTS=$cf_shared_opts
5728 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5730 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5733 sysv5uw7*|unix_sv*) #(vi
5734 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5735 if test "$GCC" != yes; then
5736 CC_SHARED_OPTS='-KPIC'
5738 MK_SHARED_LIB='${LD} -d y -G -o $@'
5741 CC_SHARED_OPTS='unknown'
5742 MK_SHARED_LIB='echo unknown'
5746 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5747 case "$cf_cv_shlib_version" in #(vi
5749 case "$MK_SHARED_LIB" in #(vi
5751 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5754 { echo "$as_me:5754: WARNING: ignored --with-shlib-version" >&5
5755 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5761 if test -n "$cf_try_cflags"
5763 cat > conftest.$ac_ext <<EOF
5764 #line 5764 "${as_me:-configure}"
5766 int main(int argc, char *argv[])
5769 return (argv[argc-1] == 0) ;
5772 cf_save_CFLAGS="$CFLAGS"
5773 for cf_opt in $cf_try_cflags
5775 CFLAGS="$cf_save_CFLAGS -$cf_opt"
5776 echo "$as_me:5776: checking if CFLAGS option -$cf_opt works" >&5
5777 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
5778 if { (eval echo "$as_me:5778: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>&5
5781 echo "$as_me:5781: \$? = $ac_status" >&5
5782 (exit $ac_status); }; then
5783 echo "$as_me:5783: result: yes" >&5
5784 echo "${ECHO_T}yes" >&6
5785 cf_save_CFLAGS="$CFLAGS"
5787 echo "$as_me:5787: result: no" >&5
5788 echo "${ECHO_T}no" >&6
5791 CFLAGS="$cf_save_CFLAGS"
5794 # RPATH_LIST is a colon-separated list of directories
5795 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
5796 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
5798 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
5800 echo "${as_me:-configure}:5800: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
5802 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
5804 echo "${as_me:-configure}:5804: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
5806 if test "$CC_SHARED_OPTS" = "unknown"; then
5807 for model in $cf_list_models; do
5808 if test "$model" = "shared"; then
5809 { { echo "$as_me:5809: error: Shared libraries are not supported in this version" >&5
5810 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5811 { (exit 1); exit 1; }; }
5816 ### If we're building with rpath, try to link non-standard libs that way too.
5817 if test "$DFT_LWR_MODEL" = "shared"; then
5819 echo "$as_me:5819: checking if rpath-hack should be disabled" >&5
5820 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
5822 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
5823 if test "${enable_rpath_hack+set}" = set; then
5824 enableval="$enable_rpath_hack"
5825 test "$enableval" != no && enableval=yes
5826 if test "$enableval" != "yes" ; then
5827 cf_disable_rpath_hack=yes
5829 cf_disable_rpath_hack=no
5833 cf_disable_rpath_hack=no
5836 echo "$as_me:5836: result: $cf_disable_rpath_hack" >&5
5837 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
5838 if test "$cf_disable_rpath_hack" = no ; then
5840 echo "$as_me:5840: checking for updated LDFLAGS" >&5
5841 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
5842 if test -n "$LD_RPATH_OPT" ; then
5843 echo "$as_me:5843: result: maybe" >&5
5844 echo "${ECHO_T}maybe" >&6
5848 # Extract the first word of "$ac_prog", so it can be a program name with args.
5849 set dummy $ac_prog; ac_word=$2
5850 echo "$as_me:5850: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 if test -n "$cf_ldd_prog"; then
5856 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
5858 ac_save_IFS=$IFS; IFS=$ac_path_separator
5860 for ac_dir in $ac_dummy; do
5862 test -z "$ac_dir" && ac_dir=.
5863 $as_executable_p "$ac_dir/$ac_word" || continue
5864 ac_cv_prog_cf_ldd_prog="$ac_prog"
5865 echo "$as_me:5865: found $ac_dir/$ac_word" >&5
5871 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
5872 if test -n "$cf_ldd_prog"; then
5873 echo "$as_me:5873: result: $cf_ldd_prog" >&5
5874 echo "${ECHO_T}$cf_ldd_prog" >&6
5876 echo "$as_me:5876: result: no" >&5
5877 echo "${ECHO_T}no" >&6
5880 test -n "$cf_ldd_prog" && break
5882 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
5884 cf_rpath_list="/usr/lib /lib"
5885 if test "$cf_ldd_prog" != no
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line 5890 "configure"
5891 #include "confdefs.h"
5901 rm -f conftest.$ac_objext conftest$ac_exeext
5902 if { (eval echo "$as_me:5902: \"$ac_link\"") >&5
5903 (eval $ac_link) 2>&5
5905 echo "$as_me:5905: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -s conftest$ac_exeext'
5908 { (eval echo "$as_me:5908: \"$ac_try\"") >&5
5911 echo "$as_me:5911: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
5914 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
5916 echo "$as_me: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5921 # If we passed the link-test, but get a "not found" on a given library,
5922 # this could be due to inept reconfiguration of gcc to make it only
5923 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
5924 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
5925 # /usr/local libraries.
5926 if test -n "$cf_rpath_oops"
5928 for cf_rpath_src in $cf_rpath_oops
5930 for cf_rpath_dir in \
5935 if test -f $cf_rpath_dir/lib/$cf_rpath_src
5937 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
5939 echo "${as_me:-configure}:5939: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
5941 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
5949 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
5951 echo "${as_me:-configure}:5951: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
5953 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
5955 echo "${as_me:-configure}:5955: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
5958 for cf_rpath_src in $LDFLAGS
5960 case $cf_rpath_src in #(vi
5963 # check if this refers to a directory which we will ignore
5965 if test -n "$cf_rpath_list"
5967 for cf_rpath_item in $cf_rpath_list
5969 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
5977 if test "$cf_rpath_skip" = no
5979 # transform the option
5980 if test "$LD_RPATH_OPT" = "-R " ; then
5981 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
5983 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
5986 # if we have not already added this, add it now
5987 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
5988 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
5990 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
5992 echo "${as_me:-configure}:5992: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
5994 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
5999 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6001 LDFLAGS=$cf_rpath_dst
6003 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6005 echo "${as_me:-configure}:6005: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6007 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6009 echo "${as_me:-configure}:6009: testing ...checking LIBS $LIBS ..." 1>&5
6012 for cf_rpath_src in $LIBS
6014 case $cf_rpath_src in #(vi
6017 # check if this refers to a directory which we will ignore
6019 if test -n "$cf_rpath_list"
6021 for cf_rpath_item in $cf_rpath_list
6023 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6031 if test "$cf_rpath_skip" = no
6033 # transform the option
6034 if test "$LD_RPATH_OPT" = "-R " ; then
6035 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6037 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6040 # if we have not already added this, add it now
6041 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6042 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6044 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6046 echo "${as_me:-configure}:6046: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6048 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6053 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6057 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6059 echo "${as_me:-configure}:6059: testing ...checked LIBS $LIBS ..." 1>&5
6061 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6063 echo "${as_me:-configure}:6063: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6071 ###############################################################################
6073 ### use option --disable-overwrite to leave out the link to -lcurses
6074 echo "$as_me:6074: checking if you wish to install ncurses overwriting curses" >&5
6075 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6077 # Check whether --enable-overwrite or --disable-overwrite was given.
6078 if test "${enable_overwrite+set}" = set; then
6079 enableval="$enable_overwrite"
6080 with_overwrite=$enableval
6082 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6084 echo "$as_me:6084: result: $with_overwrite" >&5
6085 echo "${ECHO_T}$with_overwrite" >&6
6087 echo "$as_me:6087: checking if external terminfo-database is used" >&5
6088 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6090 # Check whether --enable-database or --disable-database was given.
6091 if test "${enable_database+set}" = set; then
6092 enableval="$enable_database"
6093 use_database=$enableval
6097 echo "$as_me:6097: result: $use_database" >&5
6098 echo "${ECHO_T}$use_database" >&6
6100 case $host_os in #(vi
6102 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6105 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6109 if test "$use_database" != no ; then
6111 cat >>confdefs.h <<\EOF
6112 #define USE_DATABASE 1
6115 echo "$as_me:6115: checking which terminfo source-file will be installed" >&5
6116 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6118 # Check whether --with-database or --without-database was given.
6119 if test "${with_database+set}" = set; then
6120 withval="$with_database"
6121 TERMINFO_SRC=$withval
6123 echo "$as_me:6123: result: $TERMINFO_SRC" >&5
6124 echo "${ECHO_T}$TERMINFO_SRC" >&6
6126 echo "$as_me:6126: checking whether to use hashed database instead of directory/tree" >&5
6127 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6129 # Check whether --with-hashed-db or --without-hashed-db was given.
6130 if test "${with_hashed_db+set}" = set; then
6131 withval="$with_hashed_db"
6136 echo "$as_me:6136: result: $with_hashed_db" >&5
6137 echo "${ECHO_T}$with_hashed_db" >&6
6142 echo "$as_me:6142: checking for list of fallback descriptions" >&5
6143 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6145 # Check whether --with-fallbacks or --without-fallbacks was given.
6146 if test "${with_fallbacks+set}" = set; then
6147 withval="$with_fallbacks"
6148 with_fallback=$withval
6152 echo "$as_me:6152: result: $with_fallback" >&5
6153 echo "${ECHO_T}$with_fallback" >&6
6154 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6156 echo "$as_me:6156: checking if you want modern xterm or antique" >&5
6157 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6159 # Check whether --with-xterm-new or --without-xterm-new was given.
6160 if test "${with_xterm_new+set}" = set; then
6161 withval="$with_xterm_new"
6162 with_xterm_new=$withval
6166 case $with_xterm_new in
6167 no) with_xterm_new=xterm-old;;
6168 *) with_xterm_new=xterm-new;;
6170 echo "$as_me:6170: result: $with_xterm_new" >&5
6171 echo "${ECHO_T}$with_xterm_new" >&6
6172 WHICH_XTERM=$with_xterm_new
6174 echo "$as_me:6174: checking if xterm backspace sends BS or DEL" >&5
6175 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6177 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6178 if test "${with_xterm_kbs+set}" = set; then
6179 withval="$with_xterm_kbs"
6180 with_xterm_kbs=$withval
6184 case x$with_xterm_kbs in
6185 xyes|xno|xBS|xbs|x8)
6192 with_xterm_kbs=$withval
6195 echo "$as_me:6195: result: $with_xterm_kbs" >&5
6196 echo "${ECHO_T}$with_xterm_kbs" >&6
6197 XTERM_KBS=$with_xterm_kbs
6200 if test "$use_database" = no ; then
6201 TERMINFO="${datadir}/terminfo"
6205 echo "$as_me:6205: checking for list of terminfo directories" >&5
6206 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6208 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6209 if test "${with_terminfo_dirs+set}" = set; then
6210 withval="$with_terminfo_dirs"
6213 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6215 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6217 for cf_src_path in $withval
6220 if test "x$prefix" != xNONE; then
6221 cf_path_syntax="$prefix"
6223 cf_path_syntax="$ac_default_prefix"
6226 case ".$cf_src_path" in #(vi
6227 .\$\(*\)*|.\'*\'*) #(vi
6231 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6233 .\${*prefix}*|.\${*dir}*) #(vi
6234 eval cf_src_path="$cf_src_path"
6235 case ".$cf_src_path" in #(vi
6237 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6242 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6245 { { echo "$as_me:6245: error: expected a pathname, not \"$cf_src_path\"" >&5
6246 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6247 { (exit 1); exit 1; }; }
6251 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
6252 cf_dst_path="${cf_dst_path}${cf_src_path}"
6256 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
6257 # so we have to check/work around. We do prefer the result of "eval"...
6258 eval cf_dst_eval="$cf_dst_path"
6259 case "x$cf_dst_eval" in #(vi
6261 TERMINFO_DIRS=$cf_dst_path
6264 TERMINFO_DIRS="$cf_dst_eval"
6268 echo "$as_me:6268: result: $TERMINFO_DIRS" >&5
6269 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6270 test -n "$TERMINFO_DIRS" &&
6271 cat >>confdefs.h <<EOF
6272 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6275 echo "$as_me:6275: checking for default terminfo directory" >&5
6276 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6278 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6279 if test "${with_default_terminfo_dir+set}" = set; then
6280 withval="$with_default_terminfo_dir"
6283 withval="${TERMINFO:-${datadir}/terminfo}"
6284 fi; if test -n "${datadir}/terminfo" ; then
6286 if test "x$prefix" != xNONE; then
6287 cf_path_syntax="$prefix"
6289 cf_path_syntax="$ac_default_prefix"
6292 case ".$withval" in #(vi
6293 .\$\(*\)*|.\'*\'*) #(vi
6297 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6299 .\${*prefix}*|.\${*dir}*) #(vi
6300 eval withval="$withval"
6301 case ".$withval" in #(vi
6303 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6308 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6311 { { echo "$as_me:6311: error: expected a pathname, not \"$withval\"" >&5
6312 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6313 { (exit 1); exit 1; }; }
6318 eval TERMINFO="$withval"
6320 echo "$as_me:6320: result: $TERMINFO" >&5
6321 echo "${ECHO_T}$TERMINFO" >&6
6323 cat >>confdefs.h <<EOF
6324 #define TERMINFO "$TERMINFO"
6329 ### use option --disable-big-core to make tic run on small machines
6330 ### We need 4Mb, check if we can allocate 50% more than that.
6331 echo "$as_me:6331: checking if big-core option selected" >&5
6332 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6334 # Check whether --enable-big-core or --disable-big-core was given.
6335 if test "${enable_big_core+set}" = set; then
6336 enableval="$enable_big_core"
6337 with_big_core=$enableval
6339 if test "$cross_compiling" = yes; then
6342 cat >conftest.$ac_ext <<_ACEOF
6343 #line 6343 "configure"
6344 #include "confdefs.h"
6349 unsigned long n = 6000000L;
6350 char *s = malloc(n);
6353 ${cf_cv_main_return:-return}(s == 0);
6356 rm -f conftest$ac_exeext
6357 if { (eval echo "$as_me:6357: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>&5
6360 echo "$as_me:6360: \$? = $ac_status" >&5
6361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6362 { (eval echo "$as_me:6362: \"$ac_try\"") >&5
6365 echo "$as_me:6365: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6369 echo "$as_me: program exited with status $ac_status" >&5
6370 echo "$as_me: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6374 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6377 echo "$as_me:6377: result: $with_big_core" >&5
6378 echo "${ECHO_T}$with_big_core" >&6
6379 test "x$with_big_core" = "xyes" &&
6380 cat >>confdefs.h <<\EOF
6381 #define HAVE_BIG_CORE 1
6384 ### ISO C only guarantees 512-char strings, we have tables which load faster
6385 ### when constructed using "big" strings. More than the C compiler, the awk
6386 ### program is a limit on most vendor UNIX systems. Check that we can build.
6387 echo "$as_me:6387: checking if big-strings option selected" >&5
6388 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6390 # Check whether --enable-big-strings or --disable-big-strings was given.
6391 if test "${enable_big_strings+set}" = set; then
6392 enableval="$enable_big_strings"
6393 with_big_strings=$enableval
6398 eval with_big_strings=no
6401 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6402 | $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
6403 eval with_big_strings=yes
6405 eval with_big_strings=no
6411 echo "$as_me:6411: result: $with_big_strings" >&5
6412 echo "${ECHO_T}$with_big_strings" >&6
6415 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
6417 ### use option --enable-termcap to compile in the termcap fallback support
6418 echo "$as_me:6418: checking if you want termcap-fallback support" >&5
6419 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6421 # Check whether --enable-termcap or --disable-termcap was given.
6422 if test "${enable_termcap+set}" = set; then
6423 enableval="$enable_termcap"
6424 with_termcap=$enableval
6428 echo "$as_me:6428: result: $with_termcap" >&5
6429 echo "${ECHO_T}$with_termcap" >&6
6431 if test "x$with_termcap" != "xyes" ; then
6432 if test "$use_database" = no ; then
6433 if test -z "$with_fallback" ; then
6434 { { echo "$as_me:6434: error: You have disabled the database w/o specifying fallbacks" >&5
6435 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6436 { (exit 1); exit 1; }; }
6440 cat >>confdefs.h <<\EOF
6441 #define PURE_TERMINFO 1
6446 if test "$with_ticlib" != no ; then
6447 { { echo "$as_me:6447: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6448 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6449 { (exit 1); exit 1; }; }
6452 cat >>confdefs.h <<\EOF
6453 #define USE_TERMCAP 1
6456 echo "$as_me:6456: checking for list of termcap files" >&5
6457 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6459 # Check whether --with-termpath or --without-termpath was given.
6460 if test "${with_termpath+set}" = set; then
6461 withval="$with_termpath"
6464 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6466 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6468 for cf_src_path in $withval
6471 if test "x$prefix" != xNONE; then
6472 cf_path_syntax="$prefix"
6474 cf_path_syntax="$ac_default_prefix"
6477 case ".$cf_src_path" in #(vi
6478 .\$\(*\)*|.\'*\'*) #(vi
6482 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6484 .\${*prefix}*|.\${*dir}*) #(vi
6485 eval cf_src_path="$cf_src_path"
6486 case ".$cf_src_path" in #(vi
6488 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6493 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6496 { { echo "$as_me:6496: error: expected a pathname, not \"$cf_src_path\"" >&5
6497 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6498 { (exit 1); exit 1; }; }
6502 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
6503 cf_dst_path="${cf_dst_path}${cf_src_path}"
6507 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
6508 # so we have to check/work around. We do prefer the result of "eval"...
6509 eval cf_dst_eval="$cf_dst_path"
6510 case "x$cf_dst_eval" in #(vi
6512 TERMPATH=$cf_dst_path
6515 TERMPATH="$cf_dst_eval"
6519 echo "$as_me:6519: result: $TERMPATH" >&5
6520 echo "${ECHO_T}$TERMPATH" >&6
6521 test -n "$TERMPATH" &&
6522 cat >>confdefs.h <<EOF
6523 #define TERMPATH "$TERMPATH"
6526 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6527 echo "$as_me:6527: checking if fast termcap-loader is needed" >&5
6528 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6530 # Check whether --enable-getcap or --disable-getcap was given.
6531 if test "${enable_getcap+set}" = set; then
6532 enableval="$enable_getcap"
6533 with_getcap=$enableval
6537 echo "$as_me:6537: result: $with_getcap" >&5
6538 echo "${ECHO_T}$with_getcap" >&6
6539 test "x$with_getcap" = "xyes" &&
6540 cat >>confdefs.h <<\EOF
6541 #define USE_GETCAP 1
6544 echo "$as_me:6544: checking if translated termcaps will be cached in ~/.terminfo" >&5
6545 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6547 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6548 if test "${enable_getcap_cache+set}" = set; then
6549 enableval="$enable_getcap_cache"
6550 with_getcap_cache=$enableval
6552 with_getcap_cache=no
6554 echo "$as_me:6554: result: $with_getcap_cache" >&5
6555 echo "${ECHO_T}$with_getcap_cache" >&6
6556 test "x$with_getcap_cache" = "xyes" &&
6557 cat >>confdefs.h <<\EOF
6558 #define USE_GETCAP_CACHE 1
6563 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6564 echo "$as_me:6564: checking if ~/.terminfo is wanted" >&5
6565 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6567 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6568 if test "${enable_home_terminfo+set}" = set; then
6569 enableval="$enable_home_terminfo"
6570 with_home_terminfo=$enableval
6572 with_home_terminfo=yes
6574 echo "$as_me:6574: result: $with_home_terminfo" >&5
6575 echo "${ECHO_T}$with_home_terminfo" >&6
6576 test "x$with_home_terminfo" = "xyes" &&
6577 cat >>confdefs.h <<\EOF
6578 #define USE_HOME_TERMINFO 1
6581 echo "$as_me:6581: checking if you want to use restricted environment when running as root" >&5
6582 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6584 # Check whether --enable-root-environ or --disable-root-environ was given.
6585 if test "${enable_root_environ+set}" = set; then
6586 enableval="$enable_root_environ"
6587 with_root_environ=$enableval
6589 with_root_environ=yes
6591 echo "$as_me:6591: result: $with_root_environ" >&5
6592 echo "${ECHO_T}$with_root_environ" >&6
6593 test "x$with_root_environ" = xyes &&
6594 cat >>confdefs.h <<\EOF
6595 #define USE_ROOT_ENVIRON 1
6598 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6599 ### to reduce storage requirements for the terminfo database.
6605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6606 echo "$as_me:6606: checking for $ac_func" >&5
6607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6608 if eval "test \"\${$as_ac_var+set}\" = set"; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 cat >conftest.$ac_ext <<_ACEOF
6612 #line 6612 "configure"
6613 #include "confdefs.h"
6614 /* System header to define __stub macros and hopefully few prototypes,
6615 which can conflict with char $ac_func (); below. */
6617 /* Override any gcc2 internal prototype to avoid an error. */
6621 /* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */
6629 /* The GNU C library defines this for functions which it implements
6630 to always fail with ENOSYS. Some functions are actually named
6631 something starting with __ and the normal name is an alias. */
6632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6635 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:6643: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -s conftest$ac_exeext'
6649 { (eval echo "$as_me:6649: \"$ac_try\"") >&5
6652 echo "$as_me:6652: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 eval "$as_ac_var=yes"
6656 echo "$as_me: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6658 eval "$as_ac_var=no"
6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6662 echo "$as_me:6662: result: `eval echo '${'$as_ac_var'}'`" >&5
6663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6664 if test `eval echo '${'$as_ac_var'}'` = yes; then
6665 cat >>confdefs.h <<EOF
6666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6672 if test "$cross_compiling" = yes ; then
6678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6679 echo "$as_me:6679: checking for $ac_func" >&5
6680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6681 if eval "test \"\${$as_ac_var+set}\" = set"; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line 6685 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func (); below. */
6690 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6702 /* The GNU C library defines this for functions which it implements
6703 to always fail with ENOSYS. Some functions are actually named
6704 something starting with __ and the normal name is an alias. */
6705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6708 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6715 rm -f conftest.$ac_objext conftest$ac_exeext
6716 if { (eval echo "$as_me:6716: \"$ac_link\"") >&5
6717 (eval $ac_link) 2>&5
6719 echo "$as_me:6719: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -s conftest$ac_exeext'
6722 { (eval echo "$as_me:6722: \"$ac_try\"") >&5
6725 echo "$as_me:6725: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 eval "$as_ac_var=yes"
6729 echo "$as_me: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6731 eval "$as_ac_var=no"
6733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6735 echo "$as_me:6735: result: `eval echo '${'$as_ac_var'}'`" >&5
6736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6737 if test `eval echo '${'$as_ac_var'}'` = yes; then
6738 cat >>confdefs.h <<EOF
6739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6746 echo "$as_me:6746: checking if link/symlink functions work" >&5
6747 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6748 if test "${cf_cv_link_funcs+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 for cf_func in link symlink ; do
6754 if test "$cross_compiling" = yes; then
6756 eval 'ac_cv_func_'$cf_func'=error'
6758 cat >conftest.$ac_ext <<_ACEOF
6759 #line 6759 "configure"
6760 #include "confdefs.h"
6762 #include <sys/types.h>
6763 #include <sys/stat.h>
6764 #ifdef HAVE_UNISTD_H
6770 char *src = "config.log";
6771 char *dst = "conftest.chk";
6776 fail = ($cf_func("config.log", "conftest.chk") < 0)
6777 || (stat(dst, &dst_sb) < 0)
6778 || (dst_sb.st_mtime != src_sb.st_mtime);
6784 ${cf_cv_main_return:-return} (fail);
6788 rm -f conftest$ac_exeext
6789 if { (eval echo "$as_me:6789: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>&5
6792 echo "$as_me:6792: \$? = $ac_status" >&5
6793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6794 { (eval echo "$as_me:6794: \"$ac_try\"") >&5
6797 echo "$as_me:6797: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6800 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6801 eval 'ac_cv_func_'$cf_func'=yes'
6803 echo "$as_me: program exited with status $ac_status" >&5
6804 echo "$as_me: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6807 eval 'ac_cv_func_'$cf_func'=no'
6809 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6812 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6815 echo "$as_me:6815: result: $cf_cv_link_funcs" >&5
6816 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6817 test "$ac_cv_func_link" = yes &&
6818 cat >>confdefs.h <<\EOF
6822 test "$ac_cv_func_symlink" = yes &&
6823 cat >>confdefs.h <<\EOF
6824 #define HAVE_SYMLINK 1
6832 # soft links (symbolic links) are useful for some systems where hard links do
6833 # not work, or to make it simpler to copy terminfo trees around.
6834 if test "x$ac_cv_func_symlink" = xyes ; then
6835 echo "$as_me:6835: checking if tic should use symbolic links" >&5
6836 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6838 # Check whether --enable-symlinks or --disable-symlinks was given.
6839 if test "${enable_symlinks+set}" = set; then
6840 enableval="$enable_symlinks"
6841 with_symlinks=$enableval
6845 echo "$as_me:6845: result: $with_symlinks" >&5
6846 echo "${ECHO_T}$with_symlinks" >&6
6849 # If we have hard links and did not choose to use soft links instead, there is
6850 # no reason to make this choice optional - use the hard links.
6851 if test "$with_symlinks" = no ; then
6852 echo "$as_me:6852: checking if tic should use hard links" >&5
6853 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6854 if test "x$ac_cv_func_link" = xyes ; then
6859 echo "$as_me:6859: result: $with_links" >&5
6860 echo "${ECHO_T}$with_links" >&6
6863 test "x$with_links" = xyes &&
6864 cat >>confdefs.h <<\EOF
6868 test "x$with_symlinks" = xyes &&
6869 cat >>confdefs.h <<\EOF
6870 #define USE_SYMLINKS 1
6873 ### use option --enable-broken-linker to force on use of broken-linker support
6874 echo "$as_me:6874: checking if you want broken-linker support code" >&5
6875 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6877 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6878 if test "${enable_broken_linker+set}" = set; then
6879 enableval="$enable_broken_linker"
6880 with_broken_linker=$enableval
6882 with_broken_linker=${BROKEN_LINKER:-no}
6884 echo "$as_me:6884: result: $with_broken_linker" >&5
6885 echo "${ECHO_T}$with_broken_linker" >&6
6888 if test "x$with_broken_linker" = xyes ; then
6890 cat >>confdefs.h <<\EOF
6891 #define BROKEN_LINKER 1
6895 elif test "$DFT_LWR_MODEL" = shared ; then
6896 case $cf_cv_system_name in #(vi
6899 cat >>confdefs.h <<\EOF
6900 #define BROKEN_LINKER 1
6904 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6906 echo "${as_me:-configure}:6906: testing cygwin linker is broken anyway ..." 1>&5
6912 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6913 echo "$as_me:6913: checking if tputs should process BSD-style prefix padding" >&5
6914 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6916 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6917 if test "${enable_bsdpad+set}" = set; then
6918 enableval="$enable_bsdpad"
6919 with_bsdpad=$enableval
6923 echo "$as_me:6923: result: $with_bsdpad" >&5
6924 echo "${ECHO_T}$with_bsdpad" >&6
6925 test "x$with_bsdpad" = xyes &&
6926 cat >>confdefs.h <<\EOF
6930 ### use option --enable-widec to turn on use of wide-character support
6939 # Check to define _XOPEN_SOURCE "automatically"
6942 cf_POSIX_C_SOURCE=199506L
6945 case $host_os in #(vi
6947 cf_xopen_source="-D_ALL_SOURCE"
6953 cf_xopen_source="-D_APPLE_C_SOURCE"
6956 cf_xopen_source="-D_DARWIN_C_SOURCE"
6959 freebsd*|dragonfly*) #(vi
6960 # 5.x headers associate
6961 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6962 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6963 cf_POSIX_C_SOURCE=200112L
6965 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6968 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
6971 cf_xopen_source="-D_HPUX_SOURCE"
6974 cf_xopen_source="-D_SGI_SOURCE"
6977 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6979 echo "$as_me:6979: checking if we must define _GNU_SOURCE" >&5
6980 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6981 if test "${cf_cv_gnu_source+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 cat >conftest.$ac_ext <<_ACEOF
6986 #line 6986 "configure"
6987 #include "confdefs.h"
6988 #include <sys/types.h>
6993 #ifndef _XOPEN_SOURCE
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:7001: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>&5
7004 echo "$as_me:7004: \$? = $ac_status" >&5
7005 (exit $ac_status); } &&
7006 { ac_try='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:7007: \"$ac_try\"") >&5
7010 echo "$as_me:7010: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7014 echo "$as_me: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7018 cat >conftest.$ac_ext <<_ACEOF
7019 #line 7019 "configure"
7020 #include "confdefs.h"
7021 #include <sys/types.h>
7026 #ifdef _XOPEN_SOURCE
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:7034: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>&5
7037 echo "$as_me:7037: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:7040: \"$ac_try\"") >&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7047 echo "$as_me: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7049 cf_cv_gnu_source=yes
7051 rm -f conftest.$ac_objext conftest.$ac_ext
7055 rm -f conftest.$ac_objext conftest.$ac_ext
7058 echo "$as_me:7058: result: $cf_cv_gnu_source" >&5
7059 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7060 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7064 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7067 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7069 cf_save_CFLAGS="$CFLAGS"
7070 cf_save_CPPFLAGS="$CPPFLAGS"
7072 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7073 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7074 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7076 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7077 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7078 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7080 echo "$as_me:7080: checking if we should define _POSIX_C_SOURCE" >&5
7081 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7082 if test "${cf_cv_posix_c_source+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 echo "${as_me:-configure}:7086: testing if the symbol is already defined go no further ..." 1>&5
7088 cat >conftest.$ac_ext <<_ACEOF
7089 #line 7089 "configure"
7090 #include "confdefs.h"
7091 #include <sys/types.h>
7096 #ifndef _POSIX_C_SOURCE
7103 rm -f conftest.$ac_objext
7104 if { (eval echo "$as_me:7104: \"$ac_compile\"") >&5
7105 (eval $ac_compile) 2>&5
7107 echo "$as_me:7107: \$? = $ac_status" >&5
7108 (exit $ac_status); } &&
7109 { ac_try='test -s conftest.$ac_objext'
7110 { (eval echo "$as_me:7110: \"$ac_try\"") >&5
7113 echo "$as_me:7113: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 cf_cv_posix_c_source=no
7117 echo "$as_me: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7119 cf_want_posix_source=no
7120 case .$cf_POSIX_C_SOURCE in #(vi
7122 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7125 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7126 cf_want_posix_source=yes
7129 cf_want_posix_source=yes
7132 if test "$cf_want_posix_source" = yes ; then
7133 cat >conftest.$ac_ext <<_ACEOF
7134 #line 7134 "configure"
7135 #include "confdefs.h"
7136 #include <sys/types.h>
7141 #ifdef _POSIX_SOURCE
7148 rm -f conftest.$ac_objext
7149 if { (eval echo "$as_me:7149: \"$ac_compile\"") >&5
7150 (eval $ac_compile) 2>&5
7152 echo "$as_me:7152: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:7155: \"$ac_try\"") >&5
7158 echo "$as_me:7158: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7162 echo "$as_me: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7164 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7166 rm -f conftest.$ac_objext conftest.$ac_ext
7169 echo "${as_me:-configure}:7169: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7171 CFLAGS="$cf_trim_CFLAGS"
7172 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7174 echo "${as_me:-configure}:7174: testing if the second compile does not leave our definition intact error ..." 1>&5
7176 cat >conftest.$ac_ext <<_ACEOF
7177 #line 7177 "configure"
7178 #include "confdefs.h"
7179 #include <sys/types.h>
7184 #ifndef _POSIX_C_SOURCE
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:7192: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>&5
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:7198: \"$ac_try\"") >&5
7201 echo "$as_me:7201: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7205 echo "$as_me: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7207 cf_cv_posix_c_source=no
7209 rm -f conftest.$ac_objext conftest.$ac_ext
7210 CFLAGS="$cf_save_CFLAGS"
7211 CPPFLAGS="$cf_save_CPPFLAGS"
7214 rm -f conftest.$ac_objext conftest.$ac_ext
7217 echo "$as_me:7217: result: $cf_cv_posix_c_source" >&5
7218 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7220 if test "$cf_cv_posix_c_source" != no ; then
7221 CFLAGS="$cf_trim_CFLAGS"
7222 CPPFLAGS="$cf_trim_CPPFLAGS"
7227 cf_new_extra_cppflags=
7229 for cf_add_cflags in $cf_cv_posix_c_source
7231 case $cf_fix_cppflags in
7233 case $cf_add_cflags in #(vi
7234 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7235 case $cf_add_cflags in
7237 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7239 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7240 && test -z "${cf_tst_cflags}" \
7241 && cf_fix_cppflags=yes
7243 if test $cf_fix_cppflags = yes ; then
7244 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7246 elif test "${cf_tst_cflags}" = "\"'" ; then
7247 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7253 *$cf_add_cflags) #(vi
7256 case $cf_add_cflags in #(vi
7258 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7260 CPPFLAGS=`echo "$CPPFLAGS" | \
7261 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7262 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7266 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7271 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7276 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7278 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7280 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7281 && test -z "${cf_tst_cflags}" \
7282 && cf_fix_cppflags=no
7287 if test -n "$cf_new_cflags" ; then
7289 CFLAGS="$CFLAGS $cf_new_cflags"
7292 if test -n "$cf_new_cppflags" ; then
7294 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7297 if test -n "$cf_new_extra_cppflags" ; then
7299 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7306 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7309 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7310 cf_xopen_source="-D_BSD_SOURCE"
7314 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7317 cf_xopen_source="-D_OSF_SOURCE"
7320 cf_xopen_source="-D_QNX_SOURCE"
7323 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7326 cf_xopen_source="-D__EXTENSIONS__"
7330 echo "$as_me:7330: checking if we should define _XOPEN_SOURCE" >&5
7331 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7332 if test "${cf_cv_xopen_source+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 cat >conftest.$ac_ext <<_ACEOF
7337 #line 7337 "configure"
7338 #include "confdefs.h"
7342 #include <sys/types.h>
7348 #ifndef _XOPEN_SOURCE
7355 rm -f conftest.$ac_objext
7356 if { (eval echo "$as_me:7356: \"$ac_compile\"") >&5
7357 (eval $ac_compile) 2>&5
7359 echo "$as_me:7359: \$? = $ac_status" >&5
7360 (exit $ac_status); } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:7362: \"$ac_try\"") >&5
7365 echo "$as_me:7365: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 cf_cv_xopen_source=no
7369 echo "$as_me: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7372 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7373 cat >conftest.$ac_ext <<_ACEOF
7374 #line 7374 "configure"
7375 #include "confdefs.h"
7379 #include <sys/types.h>
7385 #ifdef _XOPEN_SOURCE
7392 rm -f conftest.$ac_objext
7393 if { (eval echo "$as_me:7393: \"$ac_compile\"") >&5
7394 (eval $ac_compile) 2>&5
7396 echo "$as_me:7396: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -s conftest.$ac_objext'
7399 { (eval echo "$as_me:7399: \"$ac_try\"") >&5
7402 echo "$as_me:7402: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 cf_cv_xopen_source=no
7406 echo "$as_me: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7410 rm -f conftest.$ac_objext conftest.$ac_ext
7414 rm -f conftest.$ac_objext conftest.$ac_ext
7417 echo "$as_me:7417: result: $cf_cv_xopen_source" >&5
7418 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7420 if test "$cf_cv_xopen_source" != no ; then
7422 CFLAGS=`echo "$CFLAGS" | \
7423 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7424 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7426 CPPFLAGS=`echo "$CPPFLAGS" | \
7427 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7428 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7430 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7435 cf_new_extra_cppflags=
7437 for cf_add_cflags in $cf_temp_xopen_source
7439 case $cf_fix_cppflags in
7441 case $cf_add_cflags in #(vi
7442 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7443 case $cf_add_cflags in
7445 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7447 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7448 && test -z "${cf_tst_cflags}" \
7449 && cf_fix_cppflags=yes
7451 if test $cf_fix_cppflags = yes ; then
7452 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7454 elif test "${cf_tst_cflags}" = "\"'" ; then
7455 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7461 *$cf_add_cflags) #(vi
7464 case $cf_add_cflags in #(vi
7466 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7468 CPPFLAGS=`echo "$CPPFLAGS" | \
7469 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7470 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7474 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7479 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7484 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7486 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7488 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7489 && test -z "${cf_tst_cflags}" \
7490 && cf_fix_cppflags=no
7495 if test -n "$cf_new_cflags" ; then
7497 CFLAGS="$CFLAGS $cf_new_cflags"
7500 if test -n "$cf_new_cppflags" ; then
7502 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7505 if test -n "$cf_new_extra_cppflags" ; then
7507 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7512 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7514 cf_save_CFLAGS="$CFLAGS"
7515 cf_save_CPPFLAGS="$CPPFLAGS"
7517 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7518 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7519 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7521 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7522 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7523 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7525 echo "$as_me:7525: checking if we should define _POSIX_C_SOURCE" >&5
7526 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7527 if test "${cf_cv_posix_c_source+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 echo "${as_me:-configure}:7531: testing if the symbol is already defined go no further ..." 1>&5
7533 cat >conftest.$ac_ext <<_ACEOF
7534 #line 7534 "configure"
7535 #include "confdefs.h"
7536 #include <sys/types.h>
7541 #ifndef _POSIX_C_SOURCE
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:7549: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>&5
7552 echo "$as_me:7552: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:7555: \"$ac_try\"") >&5
7558 echo "$as_me:7558: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 cf_cv_posix_c_source=no
7562 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7564 cf_want_posix_source=no
7565 case .$cf_POSIX_C_SOURCE in #(vi
7567 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7570 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7571 cf_want_posix_source=yes
7574 cf_want_posix_source=yes
7577 if test "$cf_want_posix_source" = yes ; then
7578 cat >conftest.$ac_ext <<_ACEOF
7579 #line 7579 "configure"
7580 #include "confdefs.h"
7581 #include <sys/types.h>
7586 #ifdef _POSIX_SOURCE
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:7594: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>&5
7597 echo "$as_me:7597: \$? = $ac_status" >&5
7598 (exit $ac_status); } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:7600: \"$ac_try\"") >&5
7603 echo "$as_me:7603: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7607 echo "$as_me: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7609 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7611 rm -f conftest.$ac_objext conftest.$ac_ext
7614 echo "${as_me:-configure}:7614: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7616 CFLAGS="$cf_trim_CFLAGS"
7617 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7619 echo "${as_me:-configure}:7619: testing if the second compile does not leave our definition intact error ..." 1>&5
7621 cat >conftest.$ac_ext <<_ACEOF
7622 #line 7622 "configure"
7623 #include "confdefs.h"
7624 #include <sys/types.h>
7629 #ifndef _POSIX_C_SOURCE
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:7637: \"$ac_compile\"") >&5
7638 (eval $ac_compile) 2>&5
7640 echo "$as_me:7640: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:7643: \"$ac_try\"") >&5
7646 echo "$as_me:7646: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7650 echo "$as_me: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7652 cf_cv_posix_c_source=no
7654 rm -f conftest.$ac_objext conftest.$ac_ext
7655 CFLAGS="$cf_save_CFLAGS"
7656 CPPFLAGS="$cf_save_CPPFLAGS"
7659 rm -f conftest.$ac_objext conftest.$ac_ext
7662 echo "$as_me:7662: result: $cf_cv_posix_c_source" >&5
7663 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7665 if test "$cf_cv_posix_c_source" != no ; then
7666 CFLAGS="$cf_trim_CFLAGS"
7667 CPPFLAGS="$cf_trim_CPPFLAGS"
7672 cf_new_extra_cppflags=
7674 for cf_add_cflags in $cf_cv_posix_c_source
7676 case $cf_fix_cppflags in
7678 case $cf_add_cflags in #(vi
7679 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7680 case $cf_add_cflags in
7682 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7684 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7685 && test -z "${cf_tst_cflags}" \
7686 && cf_fix_cppflags=yes
7688 if test $cf_fix_cppflags = yes ; then
7689 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7691 elif test "${cf_tst_cflags}" = "\"'" ; then
7692 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7698 *$cf_add_cflags) #(vi
7701 case $cf_add_cflags in #(vi
7703 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7705 CPPFLAGS=`echo "$CPPFLAGS" | \
7706 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7707 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7711 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7716 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7721 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7723 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7725 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7726 && test -z "${cf_tst_cflags}" \
7727 && cf_fix_cppflags=no
7732 if test -n "$cf_new_cflags" ; then
7734 CFLAGS="$CFLAGS $cf_new_cflags"
7737 if test -n "$cf_new_cppflags" ; then
7739 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7742 if test -n "$cf_new_extra_cppflags" ; then
7744 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7752 if test -n "$cf_xopen_source" ; then
7757 cf_new_extra_cppflags=
7759 for cf_add_cflags in $cf_xopen_source
7761 case $cf_fix_cppflags in
7763 case $cf_add_cflags in #(vi
7764 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7765 case $cf_add_cflags in
7767 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7769 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7770 && test -z "${cf_tst_cflags}" \
7771 && cf_fix_cppflags=yes
7773 if test $cf_fix_cppflags = yes ; then
7774 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7776 elif test "${cf_tst_cflags}" = "\"'" ; then
7777 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7783 *$cf_add_cflags) #(vi
7786 case $cf_add_cflags in #(vi
7788 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7790 CPPFLAGS=`echo "$CPPFLAGS" | \
7791 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7792 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7796 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7801 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7806 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7808 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7810 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7811 && test -z "${cf_tst_cflags}" \
7812 && cf_fix_cppflags=no
7817 if test -n "$cf_new_cflags" ; then
7819 CFLAGS="$CFLAGS $cf_new_cflags"
7822 if test -n "$cf_new_cppflags" ; then
7824 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7827 if test -n "$cf_new_extra_cppflags" ; then
7829 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7834 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
7835 echo "$as_me:7835: checking if _XOPEN_SOURCE really is set" >&5
7836 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7838 #line 7838 "configure"
7839 #include "confdefs.h"
7845 #ifndef _XOPEN_SOURCE
7852 rm -f conftest.$ac_objext
7853 if { (eval echo "$as_me:7853: \"$ac_compile\"") >&5
7854 (eval $ac_compile) 2>&5
7856 echo "$as_me:7856: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -s conftest.$ac_objext'
7859 { (eval echo "$as_me:7859: \"$ac_try\"") >&5
7862 echo "$as_me:7862: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 cf_XOPEN_SOURCE_set=yes
7866 echo "$as_me: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7868 cf_XOPEN_SOURCE_set=no
7870 rm -f conftest.$ac_objext conftest.$ac_ext
7871 echo "$as_me:7871: result: $cf_XOPEN_SOURCE_set" >&5
7872 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
7873 if test $cf_XOPEN_SOURCE_set = yes
7875 cat >conftest.$ac_ext <<_ACEOF
7876 #line 7876 "configure"
7877 #include "confdefs.h"
7883 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:7891: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>&5
7894 echo "$as_me:7894: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:7897: \"$ac_try\"") >&5
7900 echo "$as_me:7900: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 cf_XOPEN_SOURCE_set_ok=yes
7904 echo "$as_me: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 cf_XOPEN_SOURCE_set_ok=no
7908 rm -f conftest.$ac_objext conftest.$ac_ext
7909 if test $cf_XOPEN_SOURCE_set_ok = no
7911 { echo "$as_me:7911: WARNING: _XOPEN_SOURCE is lower than requested" >&5
7912 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
7916 echo "$as_me:7916: checking if we should define _XOPEN_SOURCE" >&5
7917 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7918 if test "${cf_cv_xopen_source+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 cat >conftest.$ac_ext <<_ACEOF
7923 #line 7923 "configure"
7924 #include "confdefs.h"
7928 #include <sys/types.h>
7934 #ifndef _XOPEN_SOURCE
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:7942: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>&5
7945 echo "$as_me:7945: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:7948: \"$ac_try\"") >&5
7951 echo "$as_me:7951: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 cf_cv_xopen_source=no
7955 echo "$as_me: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7958 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7959 cat >conftest.$ac_ext <<_ACEOF
7960 #line 7960 "configure"
7961 #include "confdefs.h"
7965 #include <sys/types.h>
7971 #ifdef _XOPEN_SOURCE
7978 rm -f conftest.$ac_objext
7979 if { (eval echo "$as_me:7979: \"$ac_compile\"") >&5
7980 (eval $ac_compile) 2>&5
7982 echo "$as_me:7982: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -s conftest.$ac_objext'
7985 { (eval echo "$as_me:7985: \"$ac_try\"") >&5
7988 echo "$as_me:7988: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 cf_cv_xopen_source=no
7992 echo "$as_me: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7994 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7996 rm -f conftest.$ac_objext conftest.$ac_ext
8000 rm -f conftest.$ac_objext conftest.$ac_ext
8003 echo "$as_me:8003: result: $cf_cv_xopen_source" >&5
8004 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8006 if test "$cf_cv_xopen_source" != no ; then
8008 CFLAGS=`echo "$CFLAGS" | \
8009 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8010 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8012 CPPFLAGS=`echo "$CPPFLAGS" | \
8013 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8014 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8016 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8021 cf_new_extra_cppflags=
8023 for cf_add_cflags in $cf_temp_xopen_source
8025 case $cf_fix_cppflags in
8027 case $cf_add_cflags in #(vi
8028 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8029 case $cf_add_cflags in
8031 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8033 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8034 && test -z "${cf_tst_cflags}" \
8035 && cf_fix_cppflags=yes
8037 if test $cf_fix_cppflags = yes ; then
8038 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8040 elif test "${cf_tst_cflags}" = "\"'" ; then
8041 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8047 *$cf_add_cflags) #(vi
8050 case $cf_add_cflags in #(vi
8052 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8054 CPPFLAGS=`echo "$CPPFLAGS" | \
8055 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8056 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8060 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8065 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8070 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8072 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8074 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8075 && test -z "${cf_tst_cflags}" \
8076 && cf_fix_cppflags=no
8081 if test -n "$cf_new_cflags" ; then
8083 CFLAGS="$CFLAGS $cf_new_cflags"
8086 if test -n "$cf_new_cppflags" ; then
8088 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8091 if test -n "$cf_new_extra_cppflags" ; then
8093 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8101 # Work around breakage on OS X
8103 echo "$as_me:8103: checking if SIGWINCH is defined" >&5
8104 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8105 if test "${cf_cv_define_sigwinch+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8110 #line 8110 "configure"
8111 #include "confdefs.h"
8113 #include <sys/types.h>
8114 #include <sys/signal.h>
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:8125: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>&5
8128 echo "$as_me:8128: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:8131: \"$ac_try\"") >&5
8134 echo "$as_me:8134: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 cf_cv_define_sigwinch=yes
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 cat >conftest.$ac_ext <<_ACEOF
8141 #line 8141 "configure"
8142 #include "confdefs.h"
8144 #undef _XOPEN_SOURCE
8145 #undef _POSIX_SOURCE
8146 #undef _POSIX_C_SOURCE
8147 #include <sys/types.h>
8148 #include <sys/signal.h>
8158 rm -f conftest.$ac_objext
8159 if { (eval echo "$as_me:8159: \"$ac_compile\"") >&5
8160 (eval $ac_compile) 2>&5
8162 echo "$as_me:8162: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -s conftest.$ac_objext'
8165 { (eval echo "$as_me:8165: \"$ac_try\"") >&5
8168 echo "$as_me:8168: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 cf_cv_define_sigwinch=maybe
8172 echo "$as_me: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8174 cf_cv_define_sigwinch=no
8176 rm -f conftest.$ac_objext conftest.$ac_ext
8179 rm -f conftest.$ac_objext conftest.$ac_ext
8182 echo "$as_me:8182: result: $cf_cv_define_sigwinch" >&5
8183 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8185 if test "$cf_cv_define_sigwinch" = maybe ; then
8186 echo "$as_me:8186: checking for actual SIGWINCH definition" >&5
8187 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8188 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 cf_cv_fixup_sigwinch=unknown
8194 while test $cf_sigwinch != 1
8196 cat >conftest.$ac_ext <<_ACEOF
8197 #line 8197 "configure"
8198 #include "confdefs.h"
8200 #undef _XOPEN_SOURCE
8201 #undef _POSIX_SOURCE
8202 #undef _POSIX_C_SOURCE
8203 #include <sys/types.h>
8204 #include <sys/signal.h>
8210 #if SIGWINCH != $cf_sigwinch
8218 rm -f conftest.$ac_objext
8219 if { (eval echo "$as_me:8219: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>&5
8222 echo "$as_me:8222: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:8225: \"$ac_try\"") >&5
8228 echo "$as_me:8228: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 cf_cv_fixup_sigwinch=$cf_sigwinch
8233 echo "$as_me: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8236 rm -f conftest.$ac_objext conftest.$ac_ext
8238 cf_sigwinch=`expr $cf_sigwinch - 1`
8242 echo "$as_me:8242: result: $cf_cv_fixup_sigwinch" >&5
8243 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8245 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8246 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8250 # Checks for CODESET support.
8252 echo "$as_me:8252: checking for nl_langinfo and CODESET" >&5
8253 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8254 if test "${am_cv_langinfo_codeset+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 cat >conftest.$ac_ext <<_ACEOF
8258 #line 8258 "configure"
8259 #include "confdefs.h"
8260 #include <langinfo.h>
8264 char* cs = nl_langinfo(CODESET);
8269 rm -f conftest.$ac_objext conftest$ac_exeext
8270 if { (eval echo "$as_me:8270: \"$ac_link\"") >&5
8271 (eval $ac_link) 2>&5
8273 echo "$as_me:8273: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -s conftest$ac_exeext'
8276 { (eval echo "$as_me:8276: \"$ac_try\"") >&5
8279 echo "$as_me:8279: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 am_cv_langinfo_codeset=yes
8283 echo "$as_me: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8285 am_cv_langinfo_codeset=no
8287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8290 echo "$as_me:8290: result: $am_cv_langinfo_codeset" >&5
8291 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8292 if test $am_cv_langinfo_codeset = yes; then
8294 cat >>confdefs.h <<\EOF
8295 #define HAVE_LANGINFO_CODESET 1
8300 # use these variables to work around a defect in gcc's fixincludes.
8304 echo "$as_me:8304: checking if you want wide-character code" >&5
8305 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8307 # Check whether --enable-widec or --disable-widec was given.
8308 if test "${enable_widec+set}" = set; then
8309 enableval="$enable_widec"
8310 with_widec=$enableval
8314 echo "$as_me:8314: result: $with_widec" >&5
8315 echo "${ECHO_T}$with_widec" >&6
8316 if test "x$with_widec" = xyes ; then
8317 LIB_SUFFIX="w${LIB_SUFFIX}"
8319 cat >>confdefs.h <<\EOF
8320 #define USE_WIDEC_SUPPORT 1
8323 cat >>confdefs.h <<\EOF
8324 #define NCURSES_WIDECHAR 1
8327 echo "$as_me:8327: checking if wchar.h can be used as is" >&5
8328 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8329 if test "${cf_cv_wchar_h_okay+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8334 #line 8334 "configure"
8335 #include "confdefs.h"
8345 int bar = iswpunct(foo)
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:8351: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8354 echo "$as_me:8354: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -s conftest.$ac_objext'
8357 { (eval echo "$as_me:8357: \"$ac_try\"") >&5
8360 echo "$as_me:8360: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 cf_cv_wchar_h_okay=yes
8364 echo "$as_me: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 cf_cv_wchar_h_okay=no
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8370 echo "$as_me:8370: result: $cf_cv_wchar_h_okay" >&5
8371 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8373 if test $cf_cv_wchar_h_okay = no
8376 echo "$as_me:8376: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8377 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8378 cat >conftest.$ac_ext <<_ACEOF
8379 #line 8379 "configure"
8380 #include "confdefs.h"
8381 #include <sys/types.h>
8387 #ifndef _XOPEN_SOURCE_EXTENDED
8394 rm -f conftest.$ac_objext
8395 if { (eval echo "$as_me:8395: \"$ac_compile\"") >&5
8396 (eval $ac_compile) 2>&5
8398 echo "$as_me:8398: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (eval echo "$as_me:8401: \"$ac_try\"") >&5
8404 echo "$as_me:8404: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8408 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8412 rm -f conftest.$ac_objext conftest.$ac_ext
8413 echo "$as_me:8413: result: $cf_result" >&5
8414 echo "${ECHO_T}$cf_result" >&6
8416 if test "$cf_result" = yes ; then
8417 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8418 elif test "x" != "x" ; then
8419 echo "$as_me:8419: checking checking for compatible value versus " >&5
8420 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8421 cat >conftest.$ac_ext <<_ACEOF
8422 #line 8422 "configure"
8423 #include "confdefs.h"
8424 #include <sys/types.h>
8430 #if _XOPEN_SOURCE_EXTENDED- < 0
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:8438: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>&5
8441 echo "$as_me:8441: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (eval echo "$as_me:8444: \"$ac_try\"") >&5
8447 echo "$as_me:8447: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8451 echo "$as_me: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8455 rm -f conftest.$ac_objext conftest.$ac_ext
8456 echo "$as_me:8456: result: $cf_result" >&5
8457 echo "${ECHO_T}$cf_result" >&6
8458 if test "$cf_result" = no ; then
8459 # perhaps we can override it - try...
8460 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8467 NCURSES_CH_T=cchar_t
8469 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8472 echo "$as_me:8472: checking for $ac_func" >&5
8473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8474 if eval "test \"\${$as_ac_var+set}\" = set"; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 cat >conftest.$ac_ext <<_ACEOF
8478 #line 8478 "configure"
8479 #include "confdefs.h"
8480 /* System header to define __stub macros and hopefully few prototypes,
8481 which can conflict with char $ac_func (); below. */
8483 /* Override any gcc2 internal prototype to avoid an error. */
8487 /* We use char because int might match the return type of a gcc2
8488 builtin and then its argument prototype would still apply. */
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8501 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8508 rm -f conftest.$ac_objext conftest$ac_exeext
8509 if { (eval echo "$as_me:8509: \"$ac_link\"") >&5
8510 (eval $ac_link) 2>&5
8512 echo "$as_me:8512: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -s conftest$ac_exeext'
8515 { (eval echo "$as_me:8515: \"$ac_try\"") >&5
8518 echo "$as_me:8518: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 eval "$as_ac_var=yes"
8522 echo "$as_me: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8524 eval "$as_ac_var=no"
8526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8528 echo "$as_me:8528: result: `eval echo '${'$as_ac_var'}'`" >&5
8529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8530 if test `eval echo '${'$as_ac_var'}'` = yes; then
8531 cat >>confdefs.h <<EOF
8532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8538 if test "x$ac_cv_func_putwc" != xyes ; then
8540 echo "$as_me:8540: checking for multibyte character support" >&5
8541 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8542 if test "${cf_cv_utf8_lib+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 cf_save_LIBS="$LIBS"
8547 cat >conftest.$ac_ext <<_ACEOF
8548 #line 8548 "configure"
8549 #include "confdefs.h"
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:8561: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>&5
8564 echo "$as_me:8564: \$? = $ac_status" >&5
8565 (exit $ac_status); } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:8567: \"$ac_try\"") >&5
8570 echo "$as_me:8570: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8574 echo "$as_me: failed program was:" >&5
8575 cat conftest.$ac_ext >&5
8577 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8578 # will be set on completion of the AC_TRY_LINK below.
8579 cf_cv_header_path_utf8=
8580 cf_cv_library_path_utf8=
8582 echo "${as_me:-configure}:8582: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8584 cf_save_LIBS="$LIBS"
8586 cat >conftest.$ac_ext <<_ACEOF
8587 #line 8587 "configure"
8588 #include "confdefs.h"
8590 #include <libutf8.h>
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (eval echo "$as_me:8600: \"$ac_link\"") >&5
8601 (eval $ac_link) 2>&5
8603 echo "$as_me:8603: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -s conftest$ac_exeext'
8606 { (eval echo "$as_me:8606: \"$ac_try\"") >&5
8609 echo "$as_me:8609: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8612 cf_cv_find_linkage_utf8=yes
8613 cf_cv_header_path_utf8=/usr/include
8614 cf_cv_library_path_utf8=/usr/lib
8617 echo "$as_me: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 LIBS="-lutf8 $cf_save_LIBS"
8622 cat >conftest.$ac_ext <<_ACEOF
8623 #line 8623 "configure"
8624 #include "confdefs.h"
8626 #include <libutf8.h>
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (eval echo "$as_me:8636: \"$ac_link\"") >&5
8637 (eval $ac_link) 2>&5
8639 echo "$as_me:8639: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -s conftest$ac_exeext'
8642 { (eval echo "$as_me:8642: \"$ac_try\"") >&5
8645 echo "$as_me:8645: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8648 cf_cv_find_linkage_utf8=yes
8649 cf_cv_header_path_utf8=/usr/include
8650 cf_cv_library_path_utf8=/usr/lib
8651 cf_cv_library_file_utf8="-lutf8"
8654 echo "$as_me: failed program was:" >&5
8655 cat conftest.$ac_ext >&5
8657 cf_cv_find_linkage_utf8=no
8658 LIBS="$cf_save_LIBS"
8660 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8662 echo "${as_me:-configure}:8662: testing find linkage for utf8 library ..." 1>&5
8664 echo "${as_me:-configure}:8664: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8666 cf_save_CPPFLAGS="$CPPFLAGS"
8667 cf_test_CPPFLAGS="$CPPFLAGS"
8671 # collect the current set of include-directories from compiler flags
8672 cf_header_path_list=""
8673 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8674 for cf_header_path in $CPPFLAGS $CFLAGS
8676 case $cf_header_path in #(vi
8678 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8680 test "$cf_header_path" != "NONE" && \
8681 test -d "$cf_header_path" && \
8683 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8684 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8685 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8686 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8687 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8688 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8691 cf_header_path_list="$cf_header_path_list $cf_search"
8697 # add the variations for the package we are looking for
8701 test "/usr" != "$prefix" && \
8703 (test $prefix = NONE || test "/usr" != "$prefix") && {
8704 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8705 test -d /usr/include && cf_search="$cf_search /usr/include"
8706 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8707 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8708 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8709 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8712 test "$prefix" != "NONE" && \
8713 test -d "$prefix" && \
8715 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8716 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8717 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8718 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8719 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8720 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8723 test "/usr/local" != "$prefix" && \
8724 test -d "/usr/local" && \
8725 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8726 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8727 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8728 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8729 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8730 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8731 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8734 test "/opt" != "$prefix" && \
8736 (test $prefix = NONE || test "/opt" != "$prefix") && {
8737 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8738 test -d /opt/include && cf_search="$cf_search /opt/include"
8739 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8740 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8741 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8742 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8745 test "$HOME" != "$prefix" && \
8746 test -d "$HOME" && \
8747 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8748 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8749 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8750 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8751 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8752 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8753 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8756 test "$includedir" != NONE && \
8757 test "$includedir" != "/usr/include" && \
8758 test -d "$includedir" && {
8759 test -d $includedir && cf_search="$cf_search $includedir"
8760 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8763 test "$oldincludedir" != NONE && \
8764 test "$oldincludedir" != "/usr/include" && \
8765 test -d "$oldincludedir" && {
8766 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8767 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8770 cf_search="$cf_search $cf_header_path_list"
8772 for cf_cv_header_path_utf8 in $cf_search
8774 if test -d $cf_cv_header_path_utf8 ; then
8775 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8777 echo "${as_me:-configure}:8777: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8779 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line 8781 "configure"
8782 #include "confdefs.h"
8784 #include <libutf8.h>
8793 rm -f conftest.$ac_objext
8794 if { (eval echo "$as_me:8794: \"$ac_compile\"") >&5
8795 (eval $ac_compile) 2>&5
8797 echo "$as_me:8797: \$? = $ac_status" >&5
8798 (exit $ac_status); } &&
8799 { ac_try='test -s conftest.$ac_objext'
8800 { (eval echo "$as_me:8800: \"$ac_try\"") >&5
8803 echo "$as_me:8803: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8806 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8808 echo "${as_me:-configure}:8808: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8810 cf_cv_find_linkage_utf8=maybe
8811 cf_test_CPPFLAGS="$CPPFLAGS"
8814 echo "$as_me: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8817 CPPFLAGS="$cf_save_CPPFLAGS"
8820 rm -f conftest.$ac_objext conftest.$ac_ext
8824 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8826 echo "${as_me:-configure}:8826: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8828 cf_save_LIBS="$LIBS"
8829 cf_save_LDFLAGS="$LDFLAGS"
8831 if test "$cf_cv_find_linkage_utf8" != yes ; then
8834 cf_library_path_list=""
8835 if test -n "${LDFLAGS}${LIBS}" ; then
8836 for cf_library_path in $LDFLAGS $LIBS
8838 case $cf_library_path in #(vi
8840 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8842 test "$cf_library_path" != "NONE" && \
8843 test -d "$cf_library_path" && \
8845 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8846 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8847 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
8848 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8849 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
8850 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8853 cf_library_path_list="$cf_library_path_list $cf_search"
8861 test "/usr" != "$prefix" && \
8863 (test $prefix = NONE || test "/usr" != "$prefix") && {
8864 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8865 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8866 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
8867 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
8868 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
8869 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
8872 test "$prefix" != "NONE" && \
8873 test -d "$prefix" && \
8875 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8876 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8877 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
8878 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
8879 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
8880 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
8883 test "/usr/local" != "$prefix" && \
8884 test -d "/usr/local" && \
8885 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8886 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8887 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8888 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
8889 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
8890 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
8891 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
8894 test "/opt" != "$prefix" && \
8896 (test $prefix = NONE || test "/opt" != "$prefix") && {
8897 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8898 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8899 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
8900 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
8901 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
8902 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
8905 test "$HOME" != "$prefix" && \
8906 test -d "$HOME" && \
8907 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8908 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8909 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8910 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
8911 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
8912 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
8913 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
8916 cf_search="$cf_library_path_list $cf_search"
8918 for cf_cv_library_path_utf8 in $cf_search
8920 if test -d $cf_cv_library_path_utf8 ; then
8921 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
8923 echo "${as_me:-configure}:8923: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8925 CPPFLAGS="$cf_test_CPPFLAGS"
8926 LIBS="-lutf8 $cf_save_LIBS"
8927 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8928 cat >conftest.$ac_ext <<_ACEOF
8929 #line 8929 "configure"
8930 #include "confdefs.h"
8932 #include <libutf8.h>
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:8942: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
8945 echo "$as_me:8945: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:8948: \"$ac_try\"") >&5
8951 echo "$as_me:8951: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8954 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
8956 echo "${as_me:-configure}:8956: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
8958 cf_cv_find_linkage_utf8=yes
8959 cf_cv_library_file_utf8="-lutf8"
8962 echo "$as_me: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8965 CPPFLAGS="$cf_save_CPPFLAGS"
8966 LIBS="$cf_save_LIBS"
8967 LDFLAGS="$cf_save_LDFLAGS"
8970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8973 CPPFLAGS="$cf_save_CPPFLAGS"
8974 LDFLAGS="$cf_save_LDFLAGS"
8978 cf_cv_find_linkage_utf8=no
8982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8987 LIBS="$cf_save_LIBS"
8989 if test "$cf_cv_find_linkage_utf8" = yes ; then
8990 cf_cv_utf8_lib=add-on
8996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8998 echo "$as_me:8998: result: $cf_cv_utf8_lib" >&5
8999 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9001 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9003 if test "$cf_cv_utf8_lib" = "add-on" ; then
9005 cat >>confdefs.h <<\EOF
9006 #define HAVE_LIBUTF8_H 1
9009 if test -n "$cf_cv_header_path_utf8" ; then
9010 for cf_add_incdir in $cf_cv_header_path_utf8
9012 while test $cf_add_incdir != /usr/include
9014 if test -d $cf_add_incdir
9017 if test -n "$CFLAGS$CPPFLAGS" ; then
9018 # a loop is needed to ensure we can add subdirs of existing dirs
9019 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9020 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9021 cf_have_incdir=yes; break
9026 if test "$cf_have_incdir" = no ; then
9027 if test "$cf_add_incdir" = /usr/local/include ; then
9028 if test "$GCC" = yes
9030 cf_save_CPPFLAGS=$CPPFLAGS
9031 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9032 cat >conftest.$ac_ext <<_ACEOF
9033 #line 9033 "configure"
9034 #include "confdefs.h"
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:9045: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>&5
9048 echo "$as_me:9048: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:9051: \"$ac_try\"") >&5
9054 echo "$as_me:9054: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9058 echo "$as_me: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9062 rm -f conftest.$ac_objext conftest.$ac_ext
9063 CPPFLAGS=$cf_save_CPPFLAGS
9068 if test "$cf_have_incdir" = no ; then
9069 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9071 echo "${as_me:-configure}:9071: testing adding $cf_add_incdir to include-path ..." 1>&5
9073 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9075 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9076 test "$cf_top_incdir" = "$cf_add_incdir" && break
9077 cf_add_incdir="$cf_top_incdir"
9086 if test -n "$cf_cv_library_path_utf8" ; then
9087 for cf_add_libdir in $cf_cv_library_path_utf8
9089 if test $cf_add_libdir = /usr/lib ; then
9091 elif test -d $cf_add_libdir
9094 if test -n "$LDFLAGS$LIBS" ; then
9095 # a loop is needed to ensure we can add subdirs of existing dirs
9096 for cf_test_libdir in $LDFLAGS $LIBS ; do
9097 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9098 cf_have_libdir=yes; break
9102 if test "$cf_have_libdir" = no ; then
9103 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9105 echo "${as_me:-configure}:9105: testing adding $cf_add_libdir to library-path ..." 1>&5
9107 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9113 LIBS="$cf_cv_library_file_utf8 $LIBS"
9116 if test "$cf_cv_utf8_lib" != no ; then
9121 # This is needed on Tru64 5.0 to declare mbstate_t
9122 echo "$as_me:9122: checking if we must include wchar.h to declare mbstate_t" >&5
9123 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9124 if test "${cf_cv_mbstate_t+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 cat >conftest.$ac_ext <<_ACEOF
9129 #line 9129 "configure"
9130 #include "confdefs.h"
9135 #ifdef HAVE_LIBUTF8_H
9136 #include <libutf8.h>
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:9147: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>&5
9150 echo "$as_me:9150: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -s conftest.$ac_objext'
9153 { (eval echo "$as_me:9153: \"$ac_try\"") >&5
9156 echo "$as_me:9156: \$? = $ac_status" >&5
9157 (exit $ac_status); }; }; then
9160 echo "$as_me: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9162 cat >conftest.$ac_ext <<_ACEOF
9163 #line 9163 "configure"
9164 #include "confdefs.h"
9170 #ifdef HAVE_LIBUTF8_H
9171 #include <libutf8.h>
9181 rm -f conftest.$ac_objext
9182 if { (eval echo "$as_me:9182: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>&5
9185 echo "$as_me:9185: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -s conftest.$ac_objext'
9188 { (eval echo "$as_me:9188: \"$ac_try\"") >&5
9191 echo "$as_me:9191: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9195 echo "$as_me: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 cf_cv_mbstate_t=unknown
9199 rm -f conftest.$ac_objext conftest.$ac_ext
9201 rm -f conftest.$ac_objext conftest.$ac_ext
9203 echo "$as_me:9203: result: $cf_cv_mbstate_t" >&5
9204 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9206 if test "$cf_cv_mbstate_t" = yes ; then
9208 cat >>confdefs.h <<\EOF
9209 #define NEED_WCHAR_H 1
9215 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9216 if test "$cf_cv_mbstate_t" = unknown ; then
9220 # This is needed on Tru64 5.0 to declare wchar_t
9221 echo "$as_me:9221: checking if we must include wchar.h to declare wchar_t" >&5
9222 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9223 if test "${cf_cv_wchar_t+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 cat >conftest.$ac_ext <<_ACEOF
9228 #line 9228 "configure"
9229 #include "confdefs.h"
9234 #ifdef HAVE_LIBUTF8_H
9235 #include <libutf8.h>
9245 rm -f conftest.$ac_objext
9246 if { (eval echo "$as_me:9246: \"$ac_compile\"") >&5
9247 (eval $ac_compile) 2>&5
9249 echo "$as_me:9249: \$? = $ac_status" >&5
9250 (exit $ac_status); } &&
9251 { ac_try='test -s conftest.$ac_objext'
9252 { (eval echo "$as_me:9252: \"$ac_try\"") >&5
9255 echo "$as_me:9255: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
9259 echo "$as_me: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9261 cat >conftest.$ac_ext <<_ACEOF
9262 #line 9262 "configure"
9263 #include "confdefs.h"
9269 #ifdef HAVE_LIBUTF8_H
9270 #include <libutf8.h>
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:9281: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>&5
9284 echo "$as_me:9284: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -s conftest.$ac_objext'
9287 { (eval echo "$as_me:9287: \"$ac_try\"") >&5
9290 echo "$as_me:9290: \$? = $ac_status" >&5
9291 (exit $ac_status); }; }; then
9294 echo "$as_me: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9296 cf_cv_wchar_t=unknown
9298 rm -f conftest.$ac_objext conftest.$ac_ext
9300 rm -f conftest.$ac_objext conftest.$ac_ext
9302 echo "$as_me:9302: result: $cf_cv_wchar_t" >&5
9303 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9305 if test "$cf_cv_wchar_t" = yes ; then
9307 cat >>confdefs.h <<\EOF
9308 #define NEED_WCHAR_H 1
9314 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9315 if test "$cf_cv_wchar_t" = unknown ; then
9319 # if we find wchar_t in either place, use substitution to provide a fallback.
9320 if test "$cf_cv_wchar_t" != unknown ; then
9321 NCURSES_OK_WCHAR_T=1
9324 # This is needed on Tru64 5.0 to declare wint_t
9325 echo "$as_me:9325: checking if we must include wchar.h to declare wint_t" >&5
9326 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9327 if test "${cf_cv_wint_t+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 cat >conftest.$ac_ext <<_ACEOF
9332 #line 9332 "configure"
9333 #include "confdefs.h"
9338 #ifdef HAVE_LIBUTF8_H
9339 #include <libutf8.h>
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:9350: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>&5
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:9356: \"$ac_try\"") >&5
9359 echo "$as_me:9359: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9363 echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 cat >conftest.$ac_ext <<_ACEOF
9366 #line 9366 "configure"
9367 #include "confdefs.h"
9373 #ifdef HAVE_LIBUTF8_H
9374 #include <libutf8.h>
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:9385: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>&5
9388 echo "$as_me:9388: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:9391: \"$ac_try\"") >&5
9394 echo "$as_me:9394: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9398 echo "$as_me: failed program was:" >&5
9399 cat conftest.$ac_ext >&5
9400 cf_cv_wint_t=unknown
9402 rm -f conftest.$ac_objext conftest.$ac_ext
9404 rm -f conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:9406: result: $cf_cv_wint_t" >&5
9407 echo "${ECHO_T}$cf_cv_wint_t" >&6
9409 if test "$cf_cv_wint_t" = yes ; then
9411 cat >>confdefs.h <<\EOF
9412 #define NEED_WCHAR_H 1
9418 # if we do not find wint_t in either place, use substitution to provide a fallback.
9419 if test "$cf_cv_wint_t" = unknown ; then
9423 # if we find wint_t in either place, use substitution to provide a fallback.
9424 if test "$cf_cv_wint_t" != unknown ; then
9428 if test "$NCURSES_MBSTATE_T" != 0; then
9430 cat >>confdefs.h <<\EOF
9431 #define NEED_MBSTATE_T_DEF 1
9437 ### use option --disable-lp64 to allow long chtype
9438 case $cf_cv_abi_version in
9440 default_with_lp64=no
9443 default_with_lp64=yes
9447 echo "$as_me:9447: checking whether to enable _LP64 definition in curses.h" >&5
9448 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9450 # Check whether --enable-lp64 or --disable-lp64 was given.
9451 if test "${enable_lp64+set}" = set; then
9452 enableval="$enable_lp64"
9453 with_lp64=$enableval
9455 with_lp64=$default_with_lp64
9457 echo "$as_me:9457: result: $with_lp64" >&5
9458 echo "${ECHO_T}$with_lp64" >&6
9460 if test "x$with_lp64" = xyes ; then
9466 # Check whether --enable-largefile or --disable-largefile was given.
9467 if test "${enable_largefile+set}" = set; then
9468 enableval="$enable_largefile"
9471 if test "$enable_largefile" != no; then
9473 echo "$as_me:9473: checking for special C compiler options needed for large files" >&5
9474 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9475 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 ac_cv_sys_largefile_CC=no
9479 if test "$GCC" != yes; then
9482 # IRIX 6.2 and later do not support large files by default,
9483 # so use the C compiler's -n32 option if that helps.
9484 cat >conftest.$ac_ext <<_ACEOF
9485 #line 9485 "configure"
9486 #include "confdefs.h"
9487 #include <sys/types.h>
9488 /* Check that off_t can represent 2**63 - 1 correctly.
9489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9490 since some C++ compilers masquerading as C compilers
9491 incorrectly reject 9223372036854775807. */
9492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9494 && LARGE_OFF_T % 2147483647 == 1)
9504 rm -f conftest.$ac_objext
9505 if { (eval echo "$as_me:9505: \"$ac_compile\"") >&5
9506 (eval $ac_compile) 2>&5
9508 echo "$as_me:9508: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -s conftest.$ac_objext'
9511 { (eval echo "$as_me:9511: \"$ac_try\"") >&5
9514 echo "$as_me:9514: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9518 echo "$as_me: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9521 rm -f conftest.$ac_objext
9523 rm -f conftest.$ac_objext
9524 if { (eval echo "$as_me:9524: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>&5
9527 echo "$as_me:9527: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try='test -s conftest.$ac_objext'
9530 { (eval echo "$as_me:9530: \"$ac_try\"") >&5
9533 echo "$as_me:9533: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_sys_largefile_CC=' -n32'; break
9537 echo "$as_me: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9540 rm -f conftest.$ac_objext
9544 rm -f conftest.$ac_ext
9547 echo "$as_me:9547: result: $ac_cv_sys_largefile_CC" >&5
9548 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9549 if test "$ac_cv_sys_largefile_CC" != no; then
9550 CC=$CC$ac_cv_sys_largefile_CC
9553 echo "$as_me:9553: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9554 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9555 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 ac_cv_sys_file_offset_bits=no
9560 cat >conftest.$ac_ext <<_ACEOF
9561 #line 9561 "configure"
9562 #include "confdefs.h"
9563 #include <sys/types.h>
9564 /* Check that off_t can represent 2**63 - 1 correctly.
9565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9566 since some C++ compilers masquerading as C compilers
9567 incorrectly reject 9223372036854775807. */
9568 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9570 && LARGE_OFF_T % 2147483647 == 1)
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:9581: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9584 echo "$as_me:9584: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -s conftest.$ac_objext'
9587 { (eval echo "$as_me:9587: \"$ac_try\"") >&5
9590 echo "$as_me:9590: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9594 echo "$as_me: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9597 rm -f conftest.$ac_objext conftest.$ac_ext
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line 9599 "configure"
9600 #include "confdefs.h"
9601 #define _FILE_OFFSET_BITS 64
9602 #include <sys/types.h>
9603 /* Check that off_t can represent 2**63 - 1 correctly.
9604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9605 since some C++ compilers masquerading as C compilers
9606 incorrectly reject 9223372036854775807. */
9607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9609 && LARGE_OFF_T % 2147483647 == 1)
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:9620: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>&5
9623 echo "$as_me:9623: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:9626: \"$ac_try\"") >&5
9629 echo "$as_me:9629: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_sys_file_offset_bits=64; break
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9636 rm -f conftest.$ac_objext conftest.$ac_ext
9640 echo "$as_me:9640: result: $ac_cv_sys_file_offset_bits" >&5
9641 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9642 if test "$ac_cv_sys_file_offset_bits" != no; then
9644 cat >>confdefs.h <<EOF
9645 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9650 echo "$as_me:9650: checking for _LARGE_FILES value needed for large files" >&5
9651 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9652 if test "${ac_cv_sys_large_files+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 ac_cv_sys_large_files=no
9657 cat >conftest.$ac_ext <<_ACEOF
9658 #line 9658 "configure"
9659 #include "confdefs.h"
9660 #include <sys/types.h>
9661 /* Check that off_t can represent 2**63 - 1 correctly.
9662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9663 since some C++ compilers masquerading as C compilers
9664 incorrectly reject 9223372036854775807. */
9665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9667 && LARGE_OFF_T % 2147483647 == 1)
9677 rm -f conftest.$ac_objext
9678 if { (eval echo "$as_me:9678: \"$ac_compile\"") >&5
9679 (eval $ac_compile) 2>&5
9681 echo "$as_me:9681: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -s conftest.$ac_objext'
9684 { (eval echo "$as_me:9684: \"$ac_try\"") >&5
9687 echo "$as_me:9687: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9691 echo "$as_me: failed program was:" >&5
9692 cat conftest.$ac_ext >&5
9694 rm -f conftest.$ac_objext conftest.$ac_ext
9695 cat >conftest.$ac_ext <<_ACEOF
9696 #line 9696 "configure"
9697 #include "confdefs.h"
9698 #define _LARGE_FILES 1
9699 #include <sys/types.h>
9700 /* Check that off_t can represent 2**63 - 1 correctly.
9701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9702 since some C++ compilers masquerading as C compilers
9703 incorrectly reject 9223372036854775807. */
9704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9706 && LARGE_OFF_T % 2147483647 == 1)
9716 rm -f conftest.$ac_objext
9717 if { (eval echo "$as_me:9717: \"$ac_compile\"") >&5
9718 (eval $ac_compile) 2>&5
9720 echo "$as_me:9720: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -s conftest.$ac_objext'
9723 { (eval echo "$as_me:9723: \"$ac_try\"") >&5
9726 echo "$as_me:9726: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_sys_large_files=1; break
9730 echo "$as_me: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9733 rm -f conftest.$ac_objext conftest.$ac_ext
9737 echo "$as_me:9737: result: $ac_cv_sys_large_files" >&5
9738 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9739 if test "$ac_cv_sys_large_files" != no; then
9741 cat >>confdefs.h <<EOF
9742 #define _LARGE_FILES $ac_cv_sys_large_files
9749 if test "$enable_largefile" != no ; then
9750 echo "$as_me:9750: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9751 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9752 if test "${ac_cv_sys_largefile_source+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 ac_cv_sys_largefile_source=no
9757 cat >conftest.$ac_ext <<_ACEOF
9758 #line 9758 "configure"
9759 #include "confdefs.h"
9769 rm -f conftest.$ac_objext
9770 if { (eval echo "$as_me:9770: \"$ac_compile\"") >&5
9771 (eval $ac_compile) 2>&5
9773 echo "$as_me:9773: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -s conftest.$ac_objext'
9776 { (eval echo "$as_me:9776: \"$ac_try\"") >&5
9779 echo "$as_me:9779: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9783 echo "$as_me: failed program was:" >&5
9784 cat conftest.$ac_ext >&5
9786 rm -f conftest.$ac_objext conftest.$ac_ext
9787 cat >conftest.$ac_ext <<_ACEOF
9788 #line 9788 "configure"
9789 #include "confdefs.h"
9790 #define _LARGEFILE_SOURCE 1
9800 rm -f conftest.$ac_objext
9801 if { (eval echo "$as_me:9801: \"$ac_compile\"") >&5
9802 (eval $ac_compile) 2>&5
9804 echo "$as_me:9804: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:9807: \"$ac_try\"") >&5
9810 echo "$as_me:9810: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 ac_cv_sys_largefile_source=1; break
9814 echo "$as_me: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9817 rm -f conftest.$ac_objext conftest.$ac_ext
9821 echo "$as_me:9821: result: $ac_cv_sys_largefile_source" >&5
9822 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9823 if test "$ac_cv_sys_largefile_source" != no; then
9825 cat >>confdefs.h <<EOF
9826 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9832 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9833 # in glibc 2.1.3, but that breaks too many other things.
9834 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9835 echo "$as_me:9835: checking for fseeko" >&5
9836 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9837 if test "${ac_cv_func_fseeko+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 cat >conftest.$ac_ext <<_ACEOF
9841 #line 9841 "configure"
9842 #include "confdefs.h"
9847 return fseeko && fseeko (stdin, 0, 0);
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (eval echo "$as_me:9853: \"$ac_link\"") >&5
9854 (eval $ac_link) 2>&5
9856 echo "$as_me:9856: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -s conftest$ac_exeext'
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_func_fseeko=yes
9866 echo "$as_me: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 ac_cv_func_fseeko=no
9870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9872 echo "$as_me:9872: result: $ac_cv_func_fseeko" >&5
9873 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9874 if test $ac_cv_func_fseeko = yes; then
9876 cat >>confdefs.h <<\EOF
9877 #define HAVE_FSEEKO 1
9882 # Normally we would collect these definitions in the config.h,
9883 # but (like _XOPEN_SOURCE), some environments rely on having these
9884 # defined before any of the system headers are included. Another
9885 # case comes up with C++, e.g., on AIX the compiler compiles the
9886 # header files by themselves before looking at the body files it is
9887 # told to compile. For ncurses, those header files do not include
9889 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9890 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9891 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9893 echo "$as_me:9893: checking whether to use struct dirent64" >&5
9894 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9895 if test "${cf_cv_struct_dirent64+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 cat >conftest.$ac_ext <<_ACEOF
9900 #line 9900 "configure"
9901 #include "confdefs.h"
9903 #include <sys/types.h>
9910 /* if transitional largefile support is setup, this is true */
9911 extern struct dirent64 * readdir(DIR *);
9912 struct dirent64 *x = readdir((DIR *)0);
9913 struct dirent *y = readdir((DIR *)0);
9920 rm -f conftest.$ac_objext
9921 if { (eval echo "$as_me:9921: \"$ac_compile\"") >&5
9922 (eval $ac_compile) 2>&5
9924 echo "$as_me:9924: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -s conftest.$ac_objext'
9927 { (eval echo "$as_me:9927: \"$ac_try\"") >&5
9930 echo "$as_me:9930: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 cf_cv_struct_dirent64=yes
9934 echo "$as_me: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9936 cf_cv_struct_dirent64=no
9938 rm -f conftest.$ac_objext conftest.$ac_ext
9941 echo "$as_me:9941: result: $cf_cv_struct_dirent64" >&5
9942 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9943 test "$cf_cv_struct_dirent64" = yes &&
9944 cat >>confdefs.h <<\EOF
9945 #define HAVE_STRUCT_DIRENT64 1
9950 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
9951 echo "$as_me:9951: checking if you want tparm not to use X/Open fixed-parameter list" >&5
9952 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
9954 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
9955 if test "${enable_tparm_varargs+set}" = set; then
9956 enableval="$enable_tparm_varargs"
9957 with_tparm_varargs=$enableval
9959 with_tparm_varargs=yes
9961 echo "$as_me:9961: result: $with_tparm_varargs" >&5
9962 echo "${ECHO_T}$with_tparm_varargs" >&6
9963 NCURSES_TPARM_VARARGS=0
9964 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
9966 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
9967 if test "$with_ticlib" != no ; then
9968 echo "$as_me:9968: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
9969 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
9971 # Check whether --enable-tic-depends or --disable-tic-depends was given.
9972 if test "${enable_tic_depends+set}" = set; then
9973 enableval="$enable_tic_depends"
9974 with_tic_depends=$enableval
9976 with_tic_depends=yes
9978 echo "$as_me:9978: result: $with_tic_depends" >&5
9979 echo "${ECHO_T}$with_tic_depends" >&6
9984 ### use option --with-bool to override bool's type
9985 echo "$as_me:9985: checking for type of bool" >&5
9986 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
9988 # Check whether --with-bool or --without-bool was given.
9989 if test "${with_bool+set}" = set; then
9990 withval="$with_bool"
9991 NCURSES_BOOL="$withval"
9995 echo "$as_me:9995: result: $NCURSES_BOOL" >&5
9996 echo "${ECHO_T}$NCURSES_BOOL" >&6
9998 echo "$as_me:9998: checking for alternate terminal capabilities file" >&5
9999 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10001 # Check whether --with-caps or --without-caps was given.
10002 if test "${with_caps+set}" = set; then
10003 withval="$with_caps"
10004 TERMINFO_CAPS=Caps.$withval
10008 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10009 echo "$as_me:10009: result: $TERMINFO_CAPS" >&5
10010 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10012 ### use option --with-chtype to override chtype's type
10013 echo "$as_me:10013: checking for type of chtype" >&5
10014 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10016 # Check whether --with-chtype or --without-chtype was given.
10017 if test "${with_chtype+set}" = set; then
10018 withval="$with_chtype"
10019 NCURSES_CHTYPE="$withval"
10021 NCURSES_CHTYPE=auto
10023 echo "$as_me:10023: result: $NCURSES_CHTYPE" >&5
10024 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10026 ### use option --with-ospeed to override ospeed's type
10027 echo "$as_me:10027: checking for type of ospeed" >&5
10028 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10030 # Check whether --with-ospeed or --without-ospeed was given.
10031 if test "${with_ospeed+set}" = set; then
10032 withval="$with_ospeed"
10033 NCURSES_OSPEED="$withval"
10035 NCURSES_OSPEED=short
10037 echo "$as_me:10037: result: $NCURSES_OSPEED" >&5
10038 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10040 ### use option --with-mmask-t to override mmask_t's type
10041 echo "$as_me:10041: checking for type of mmask_t" >&5
10042 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10044 # Check whether --with-mmask-t or --without-mmask-t was given.
10045 if test "${with_mmask_t+set}" = set; then
10046 withval="$with_mmask_t"
10047 NCURSES_MMASK_T="$withval"
10049 NCURSES_MMASK_T=auto
10051 echo "$as_me:10051: result: $NCURSES_MMASK_T" >&5
10052 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10054 ### use option --with-ccharw-max to override CCHARW_MAX size
10055 echo "$as_me:10055: checking for size CCHARW_MAX" >&5
10056 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10058 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10059 if test "${with_ccharw_max+set}" = set; then
10060 withval="$with_ccharw_max"
10061 NCURSES_CCHARW_MAX="$withval"
10063 NCURSES_CCHARW_MAX=5
10065 echo "$as_me:10065: result: $NCURSES_CCHARW_MAX" >&5
10066 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10068 ### use option --with-tparm-arg to override tparm's argument type
10069 echo "$as_me:10069: checking for type of tparm args" >&5
10070 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10072 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10073 if test "${with_tparm_arg+set}" = set; then
10074 withval="$with_tparm_arg"
10075 NCURSES_TPARM_ARG="$withval"
10077 NCURSES_TPARM_ARG=long
10079 echo "$as_me:10079: result: $NCURSES_TPARM_ARG" >&5
10080 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10082 ### Enable compiling-in rcs id's
10083 echo "$as_me:10083: checking if RCS identifiers should be compiled-in" >&5
10084 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10086 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10087 if test "${with_rcs_ids+set}" = set; then
10088 withval="$with_rcs_ids"
10089 with_rcs_ids=$withval
10093 echo "$as_me:10093: result: $with_rcs_ids" >&5
10094 echo "${ECHO_T}$with_rcs_ids" >&6
10095 test "x$with_rcs_ids" = xyes &&
10096 cat >>confdefs.h <<\EOF
10097 #define USE_RCS_IDS 1
10100 ###############################################################################
10102 echo "$as_me:10102: checking format of man-pages" >&5
10103 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10105 # Check whether --with-manpage-format or --without-manpage-format was given.
10106 if test "${with_manpage_format+set}" = set; then
10107 withval="$with_manpage_format"
10108 MANPAGE_FORMAT=$withval
10110 MANPAGE_FORMAT=unknown
10113 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10114 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10118 case $MANPAGE_FORMAT in
10120 if test -z "$MANPATH" ; then
10121 MANPATH="/usr/man:/usr/share/man"
10124 # look for the 'date' man-page (it's most likely to be installed!)
10130 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10131 for cf_dir in $MANPATH; do
10132 test -z "$cf_dir" && cf_dir=/usr/man
10133 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
10135 cf_test=`echo $cf_name | sed -e 's/*//'`
10136 if test "x$cf_test" = "x$cf_name" ; then
10139 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10140 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10141 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10142 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10156 # if we found a match in either man* or cat*, stop looking
10157 if test -n "$MANPAGE_FORMAT" ; then
10159 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10160 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10166 test $cf_found=yes && break
10169 # only check the first directory in $MANPATH where we find manpages
10170 if test -n "$MANPAGE_FORMAT" ; then
10174 # if we did not find the example, just assume it is normal
10175 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10179 for cf_option in $MANPAGE_FORMAT; do
10180 case $cf_option in #(vi
10181 gzip|compress|BSDI|normal|formatted|catonly)
10184 cf_unknown="$cf_unknown $cf_option"
10191 echo "$as_me:10191: result: $MANPAGE_FORMAT" >&5
10192 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10193 if test -n "$cf_unknown" ; then
10194 { echo "$as_me:10194: WARNING: Unexpected manpage-format $cf_unknown" >&5
10195 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10198 echo "$as_me:10198: checking for manpage renaming" >&5
10199 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10201 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10202 if test "${with_manpage_renames+set}" = set; then
10203 withval="$with_manpage_renames"
10204 MANPAGE_RENAMES=$withval
10206 MANPAGE_RENAMES=yes
10209 case ".$MANPAGE_RENAMES" in #(vi
10213 # Debian 'man' program?
10214 if test -f /etc/debian_version ; then
10215 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10222 if test "$MANPAGE_RENAMES" != no ; then
10223 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10224 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10225 elif test ! -f $MANPAGE_RENAMES ; then
10226 { { echo "$as_me:10226: error: not a filename: $MANPAGE_RENAMES" >&5
10227 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10228 { (exit 1); exit 1; }; }
10231 test ! -d man && mkdir man
10233 # Construct a sed-script to perform renaming within man-pages
10234 if test -n "$MANPAGE_RENAMES" ; then
10235 test ! -d man && mkdir man
10236 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10240 echo "$as_me:10240: result: $MANPAGE_RENAMES" >&5
10241 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10243 echo "$as_me:10243: checking if manpage aliases will be installed" >&5
10244 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10246 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10247 if test "${with_manpage_aliases+set}" = set; then
10248 withval="$with_manpage_aliases"
10249 MANPAGE_ALIASES=$withval
10251 MANPAGE_ALIASES=yes
10254 echo "$as_me:10254: result: $MANPAGE_ALIASES" >&5
10255 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10257 case "x$LN_S" in #(vi
10259 cf_use_symlinks=yes
10266 MANPAGE_SYMLINKS=no
10267 if test "$MANPAGE_ALIASES" = yes ; then
10268 echo "$as_me:10268: checking if manpage symlinks should be used" >&5
10269 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10271 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10272 if test "${with_manpage_symlinks+set}" = set; then
10273 withval="$with_manpage_symlinks"
10274 MANPAGE_SYMLINKS=$withval
10276 MANPAGE_SYMLINKS=$cf_use_symlinks
10279 if test "$$cf_use_symlinks" = no; then
10280 if test "$MANPAGE_SYMLINKS" = yes ; then
10281 { echo "$as_me:10281: WARNING: cannot make symlinks" >&5
10282 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10283 MANPAGE_SYMLINKS=no
10287 echo "$as_me:10287: result: $MANPAGE_SYMLINKS" >&5
10288 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10291 echo "$as_me:10291: checking for manpage tbl" >&5
10292 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10294 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10295 if test "${with_manpage_tbl+set}" = set; then
10296 withval="$with_manpage_tbl"
10297 MANPAGE_TBL=$withval
10302 echo "$as_me:10302: result: $MANPAGE_TBL" >&5
10303 echo "${ECHO_T}$MANPAGE_TBL" >&6
10305 if test "$prefix" = "NONE" ; then
10306 cf_prefix="$ac_default_prefix"
10308 cf_prefix="$prefix"
10311 case "$MANPAGE_FORMAT" in # (vi
10326 test ! -d man && mkdir man
10330 case "$MANPAGE_FORMAT" in #(vi
10333 cf_compress=compress
10341 cf_edit_man=./edit_man.sh
10342 cf_man_alias=`pwd`/man_alias.sed
10344 cat >$cf_edit_man <<CF_EOF
10346 # this script is generated by the configure-script CF_MAN_PAGES macro.
10348 prefix="$cf_prefix"
10349 datarootdir="$datarootdir"
10352 NCURSES_MAJOR="$NCURSES_MAJOR"
10353 NCURSES_MINOR="$NCURSES_MINOR"
10354 NCURSES_PATCH="$NCURSES_PATCH"
10356 NCURSES_OSPEED="$NCURSES_OSPEED"
10357 TERMINFO="$TERMINFO"
10360 INSTALL_DATA="$INSTALL_DATA"
10362 transform="$program_transform_name"
10364 TMP=\${TMPDIR:=/tmp}/man\$\$
10365 trap "rm -f \$TMP" 0 1 2 5 15
10377 top_srcdir=\$srcdir/..
10380 if test "\$form" = normal ; then
10381 if test "$cf_format" = yes ; then
10382 if test "$cf_inboth" = no ; then
10383 sh \$0 format \$verb \$mandir \$srcdir \$*
10387 cf_subdir=\$mandir/man
10388 cf_tables=$MANPAGE_TBL
10390 cf_subdir=\$mandir/cat
10394 # process the list of source-files
10397 *.orig|*.rej) ;; #(vi
10399 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10400 if test \$verb = installing ; then
10401 if test ! -d \$cf_subdir\${section} ; then
10402 mkdir -p \$cf_subdir\$section
10406 # replace variables in man page
10407 if test ! -f $cf_man_alias ; then
10408 cat >>$cf_man_alias <<-CF_EOF2
10409 s,@DATADIR@,\$datadir,g
10410 s,@TERMINFO@,\${TERMINFO:="no default value"},g
10411 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
10412 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
10413 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
10414 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
10415 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
10418 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10420 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10421 cf_name=`echo $cf_name|sed "$program_transform_name"`
10422 cat >>$cf_edit_man <<-CF_EOF
10423 s,@$cf_NAME@,$cf_name,g
10427 cat >>$cf_edit_man <<CF_EOF
10429 echo "...made $cf_man_alias"
10433 cf_source=\`basename \$i\`
10434 inalias=\$cf_source
10435 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10436 if test ! -f \$inalias ; then
10437 echo .. skipped \$cf_source
10442 if test "$MANPAGE_ALIASES" != no ; then
10443 cat >>$cf_edit_man <<CF_EOF
10445 test $with_curses_h = yes && nCurses=ncurses.3x
10446 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10450 if test "$MANPAGE_RENAMES" = no ; then
10451 cat >>$cf_edit_man <<CF_EOF
10452 # perform program transformations for section 1 man pages
10453 if test \$section = 1 ; then
10454 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10456 cf_target=\$cf_subdir\${section}/\$cf_source
10460 cat >>$cf_edit_man <<CF_EOF
10461 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10462 if test -z "\$cf_target" ; then
10463 echo '? missing rename for '\$cf_source
10464 cf_target="\$cf_source"
10466 cf_target="\$cf_subdir\${section}/\${cf_target}"
10471 cat >>$cf_edit_man <<CF_EOF
10472 sed -f $cf_man_alias \\
10475 if test -f $MANPAGE_RENAMES ; then
10476 cat >>$cf_edit_man <<CF_EOF
10477 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10480 cat >>$cf_edit_man <<CF_EOF
10485 cat >>$cf_edit_man <<CF_EOF
10486 if test \$cf_tables = yes ; then
10487 tbl \$TMP >\$TMP.out
10492 if test $with_overwrite != yes ; then
10493 cat >>$cf_edit_man <<CF_EOF
10494 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10499 if test $with_curses_h != yes ; then
10500 cat >>$cf_edit_man <<CF_EOF
10501 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10506 cat >>$cf_edit_man <<CF_EOF
10507 if test \$form = format ; then
10508 nroff -man \$TMP >\$TMP.out
10513 if test -n "$cf_compress" ; then
10514 cat >>$cf_edit_man <<CF_EOF
10515 if test \$verb = installing ; then
10516 if ( $cf_compress -f \$TMP )
10518 mv \$TMP.$cf_so_strip \$TMP
10521 cf_target="\$cf_target.$cf_so_strip"
10525 case "$MANPAGE_FORMAT" in #(vi
10527 cat >>$cf_edit_man <<CF_EOF
10528 if test \$form = format ; then
10529 # BSDI installs only .0 suffixes in the cat directories
10530 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10536 cat >>$cf_edit_man <<CF_EOF
10537 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10538 if test \$verb = installing ; then
10539 echo \$verb \$cf_target
10540 \$INSTALL_DATA \$TMP \$cf_target
10541 test -d \$cf_subdir\${section} &&
10542 test -n "\$aliases" && (
10543 cd \$cf_subdir\${section} && (
10544 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10545 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10546 cf_target=\`basename \$cf_target\`
10547 for cf_alias in \$aliases
10549 if test \$section = 1 ; then
10550 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10553 if test "$MANPAGE_SYMLINKS" = yes ; then
10554 if test -f \$cf_alias\${suffix} ; then
10555 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10560 echo .. \$verb alias \$cf_alias\${suffix}
10562 case "x$LN_S" in #(vi
10564 cat >>$cf_edit_man <<CF_EOF
10565 $LN_S \$cf_target \$cf_alias\${suffix}
10569 cat >>$cf_edit_man <<CF_EOF
10570 rm -f \$cf_alias\${suffix}
10571 $LN_S \$cf_target \$cf_alias\${suffix}
10575 cat >>$cf_edit_man <<CF_EOF
10576 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10577 echo ".so \$cf_source" >\$TMP
10579 if test -n "$cf_compress" ; then
10580 cat >>$cf_edit_man <<CF_EOF
10581 if test -n "$cf_so_strip" ; then
10582 $cf_compress -f \$TMP
10583 mv \$TMP.$cf_so_strip \$TMP
10587 cat >>$cf_edit_man <<CF_EOF
10588 echo .. \$verb alias \$cf_alias\${suffix}
10589 rm -f \$cf_alias\${suffix}
10590 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10595 elif test \$verb = removing ; then
10596 test -f \$cf_target && (
10597 echo \$verb \$cf_target
10600 test -d \$cf_subdir\${section} &&
10601 test -n "\$aliases" && (
10602 cd \$cf_subdir\${section} && (
10603 for cf_alias in \$aliases
10605 if test \$section = 1 ; then
10606 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10609 echo .. \$verb alias \$cf_alias\${suffix}
10610 rm -f \$cf_alias\${suffix}
10622 if test $cf_inboth = yes ; then
10623 if test \$form != format ; then
10624 sh \$0 format \$verb \$mandir \$srcdir \$*
10630 chmod 755 $cf_edit_man
10632 ###############################################################################
10634 ### Note that some functions (such as const) are normally disabled anyway.
10635 echo "$as_me:10635: checking if you want to build with function extensions" >&5
10636 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10638 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10639 if test "${enable_ext_funcs+set}" = set; then
10640 enableval="$enable_ext_funcs"
10641 with_ext_funcs=$enableval
10645 echo "$as_me:10645: result: $with_ext_funcs" >&5
10646 echo "${ECHO_T}$with_ext_funcs" >&6
10647 if test "x$with_ext_funcs" = xyes ; then
10648 NCURSES_EXT_FUNCS=1
10650 cat >>confdefs.h <<\EOF
10651 #define HAVE_ASSUME_DEFAULT_COLORS 1
10654 cat >>confdefs.h <<\EOF
10655 #define HAVE_CURSES_VERSION 1
10658 cat >>confdefs.h <<\EOF
10659 #define HAVE_HAS_KEY 1
10662 cat >>confdefs.h <<\EOF
10663 #define HAVE_RESIZETERM 1
10666 cat >>confdefs.h <<\EOF
10667 #define HAVE_RESIZE_TERM 1
10670 cat >>confdefs.h <<\EOF
10671 #define HAVE_TERM_ENTRY_H 1
10674 cat >>confdefs.h <<\EOF
10675 #define HAVE_USE_DEFAULT_COLORS 1
10678 cat >>confdefs.h <<\EOF
10679 #define HAVE_USE_SCREEN 1
10682 cat >>confdefs.h <<\EOF
10683 #define HAVE_USE_WINDOW 1
10686 cat >>confdefs.h <<\EOF
10687 #define HAVE_WRESIZE 1
10690 cat >>confdefs.h <<\EOF
10691 #define NCURSES_EXT_FUNCS 1
10694 GENERATED_EXT_FUNCS=generated
10696 NCURSES_EXT_FUNCS=0
10697 GENERATED_EXT_FUNCS=
10700 echo "$as_me:10700: checking if you want to build with experimental SCREEN extensions" >&5
10701 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10703 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10704 if test "${enable_sp_funcs+set}" = set; then
10705 enableval="$enable_sp_funcs"
10706 with_sp_funcs=$enableval
10710 echo "$as_me:10710: result: $with_sp_funcs" >&5
10711 echo "${ECHO_T}$with_sp_funcs" >&6
10712 if test "x$with_sp_funcs" = xyes ; then
10715 cat >>confdefs.h <<\EOF
10716 #define NCURSES_SP_FUNCS 1
10719 GENERATED_SP_FUNCS=generated
10722 GENERATED_SP_FUNCS=
10725 echo "$as_me:10725: checking if you want to build with experimental terminal-driver" >&5
10726 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10728 # Check whether --enable-term-driver or --disable-term-driver was given.
10729 if test "${enable_term_driver+set}" = set; then
10730 enableval="$enable_term_driver"
10731 with_term_driver=$enableval
10733 with_term_driver=no
10735 echo "$as_me:10735: result: $with_term_driver" >&5
10736 echo "${ECHO_T}$with_term_driver" >&6
10737 if test "x$with_term_driver" = xyes ; then
10739 cat >>confdefs.h <<\EOF
10740 #define USE_TERM_DRIVER 1
10743 if test "x$with_sp_funcs" != xyes ; then
10744 { { echo "$as_me:10744: error: The term-driver option relies upon sp-funcs" >&5
10745 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10746 { (exit 1); exit 1; }; }
10750 ### use option --enable-const to turn on use of const beyond that in XSI.
10751 echo "$as_me:10751: checking for extended use of const keyword" >&5
10752 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10754 # Check whether --enable-const or --disable-const was given.
10755 if test "${enable_const+set}" = set; then
10756 enableval="$enable_const"
10757 with_ext_const=$enableval
10761 echo "$as_me:10761: result: $with_ext_const" >&5
10762 echo "${ECHO_T}$with_ext_const" >&6
10763 NCURSES_CONST='/*nothing*/'
10764 if test "x$with_ext_const" = xyes ; then
10765 NCURSES_CONST=const
10768 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10769 echo "$as_me:10769: checking if you want to use extended colors" >&5
10770 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10772 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10773 if test "${enable_ext_colors+set}" = set; then
10774 enableval="$enable_ext_colors"
10775 with_ext_colors=$enableval
10779 echo "$as_me:10779: result: $with_ext_colors" >&5
10780 echo "${ECHO_T}$with_ext_colors" >&6
10781 NCURSES_EXT_COLORS=0
10782 if test "x$with_ext_colors" = xyes ; then
10783 if test "x$with_widec" != xyes ; then
10784 { { echo "$as_me:10784: error: This option applies only to wide-character library" >&5
10785 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10786 { (exit 1); exit 1; }; }
10788 # cannot be ABI 5 since it changes sizeof(cchar_t)
10790 if test "${with_abi_version+set}" != set; then
10791 case $cf_cv_rel_version in
10793 cf_cv_rel_version=6.0
10794 cf_cv_abi_version=6
10795 { echo "$as_me:10795: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10796 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10802 NCURSES_EXT_COLORS=1
10804 cat >>confdefs.h <<\EOF
10805 #define NCURSES_EXT_COLORS 1
10810 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10811 echo "$as_me:10811: checking if you want to use extended mouse encoding" >&5
10812 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10814 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10815 if test "${enable_ext_mouse+set}" = set; then
10816 enableval="$enable_ext_mouse"
10817 with_ext_mouse=$enableval
10821 echo "$as_me:10821: result: $with_ext_mouse" >&5
10822 echo "${ECHO_T}$with_ext_mouse" >&6
10823 NCURSES_MOUSE_VERSION=1
10824 if test "x$with_ext_mouse" = xyes ; then
10825 NCURSES_MOUSE_VERSION=2
10827 if test "${with_abi_version+set}" != set; then
10828 case $cf_cv_rel_version in
10830 cf_cv_rel_version=6.0
10831 cf_cv_abi_version=6
10832 { echo "$as_me:10832: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10833 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10840 echo "$as_me:10840: checking if you want \$NCURSES_NO_PADDING code" >&5
10841 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10843 # Check whether --enable-no-padding or --disable-no-padding was given.
10844 if test "${enable_no_padding+set}" = set; then
10845 enableval="$enable_no_padding"
10846 with_no_padding=$enableval
10848 with_no_padding=$with_ext_funcs
10850 echo "$as_me:10850: result: $with_no_padding" >&5
10851 echo "${ECHO_T}$with_no_padding" >&6
10852 test "x$with_no_padding" = xyes &&
10853 cat >>confdefs.h <<\EOF
10854 #define NCURSES_NO_PADDING 1
10857 echo "$as_me:10857: checking for ANSI C header files" >&5
10858 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10859 if test "${ac_cv_header_stdc+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 cat >conftest.$ac_ext <<_ACEOF
10863 #line 10863 "configure"
10864 #include "confdefs.h"
10865 #include <stdlib.h>
10866 #include <stdarg.h>
10867 #include <string.h>
10871 if { (eval echo "$as_me:10871: \"$ac_cpp conftest.$ac_ext\"") >&5
10872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10874 egrep -v '^ *\+' conftest.er1 >conftest.err
10876 cat conftest.err >&5
10877 echo "$as_me:10877: \$? = $ac_status" >&5
10878 (exit $ac_status); } >/dev/null; then
10879 if test -s conftest.err; then
10880 ac_cpp_err=$ac_c_preproc_warn_flag
10887 if test -z "$ac_cpp_err"; then
10888 ac_cv_header_stdc=yes
10890 echo "$as_me: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10892 ac_cv_header_stdc=no
10894 rm -f conftest.err conftest.$ac_ext
10896 if test $ac_cv_header_stdc = yes; then
10897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10898 cat >conftest.$ac_ext <<_ACEOF
10899 #line 10899 "configure"
10900 #include "confdefs.h"
10901 #include <string.h>
10904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10905 egrep "memchr" >/dev/null 2>&1; then
10908 ac_cv_header_stdc=no
10914 if test $ac_cv_header_stdc = yes; then
10915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10916 cat >conftest.$ac_ext <<_ACEOF
10917 #line 10917 "configure"
10918 #include "confdefs.h"
10919 #include <stdlib.h>
10922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10923 egrep "free" >/dev/null 2>&1; then
10926 ac_cv_header_stdc=no
10932 if test $ac_cv_header_stdc = yes; then
10933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10934 if test "$cross_compiling" = yes; then
10937 cat >conftest.$ac_ext <<_ACEOF
10938 #line 10938 "configure"
10939 #include "confdefs.h"
10941 #if ((' ' & 0x0FF) == 0x020)
10942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10945 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10946 || ('j' <= (c) && (c) <= 'r') \
10947 || ('s' <= (c) && (c) <= 'z'))
10948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10956 for (i = 0; i < 256; i++)
10957 if (XOR (islower (i), ISLOWER (i))
10958 || toupper (i) != TOUPPER (i))
10959 $ac_main_return(2);
10960 $ac_main_return (0);
10963 rm -f conftest$ac_exeext
10964 if { (eval echo "$as_me:10964: \"$ac_link\"") >&5
10965 (eval $ac_link) 2>&5
10967 echo "$as_me:10967: \$? = $ac_status" >&5
10968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10969 { (eval echo "$as_me:10969: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10972 echo "$as_me:10972: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10976 echo "$as_me: program exited with status $ac_status" >&5
10977 echo "$as_me: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 ac_cv_header_stdc=no
10981 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10985 echo "$as_me:10985: result: $ac_cv_header_stdc" >&5
10986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10987 if test $ac_cv_header_stdc = yes; then
10989 cat >>confdefs.h <<\EOF
10990 #define STDC_HEADERS 1
10995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10998 inttypes.h stdint.h unistd.h
11000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11001 echo "$as_me:11001: checking for $ac_header" >&5
11002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 cat >conftest.$ac_ext <<_ACEOF
11007 #line 11007 "configure"
11008 #include "confdefs.h"
11009 $ac_includes_default
11010 #include <$ac_header>
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:11013: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>&5
11016 echo "$as_me:11016: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -s conftest.$ac_objext'
11019 { (eval echo "$as_me:11019: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:11022: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 eval "$as_ac_Header=yes"
11026 echo "$as_me: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 eval "$as_ac_Header=no"
11030 rm -f conftest.$ac_objext conftest.$ac_ext
11032 echo "$as_me:11032: result: `eval echo '${'$as_ac_Header'}'`" >&5
11033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11035 cat >>confdefs.h <<EOF
11036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11042 echo "$as_me:11042: checking for signed char" >&5
11043 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11044 if test "${ac_cv_type_signed_char+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 cat >conftest.$ac_ext <<_ACEOF
11048 #line 11048 "configure"
11049 #include "confdefs.h"
11050 $ac_includes_default
11054 if ((signed char *) 0)
11056 if (sizeof (signed char))
11062 rm -f conftest.$ac_objext
11063 if { (eval echo "$as_me:11063: \"$ac_compile\"") >&5
11064 (eval $ac_compile) 2>&5
11066 echo "$as_me:11066: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -s conftest.$ac_objext'
11069 { (eval echo "$as_me:11069: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:11072: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_cv_type_signed_char=yes
11076 echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 ac_cv_type_signed_char=no
11080 rm -f conftest.$ac_objext conftest.$ac_ext
11082 echo "$as_me:11082: result: $ac_cv_type_signed_char" >&5
11083 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11085 echo "$as_me:11085: checking size of signed char" >&5
11086 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11087 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 if test "$ac_cv_type_signed_char" = yes; then
11091 if test "$cross_compiling" = yes; then
11092 # Depending upon the size, compute the lo and hi bounds.
11093 cat >conftest.$ac_ext <<_ACEOF
11094 #line 11094 "configure"
11095 #include "confdefs.h"
11096 $ac_includes_default
11100 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
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
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line 11120 "configure"
11121 #include "confdefs.h"
11122 $ac_includes_default
11126 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:11132: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 2>&5
11135 echo "$as_me:11135: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:11138: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:11141: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_hi=$ac_mid; break
11145 echo "$as_me: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11147 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11149 rm -f conftest.$ac_objext conftest.$ac_ext
11152 echo "$as_me: failed program was:" >&5
11153 cat conftest.$ac_ext >&5
11156 cat >conftest.$ac_ext <<_ACEOF
11157 #line 11157 "configure"
11158 #include "confdefs.h"
11159 $ac_includes_default
11163 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11168 rm -f conftest.$ac_objext
11169 if { (eval echo "$as_me:11169: \"$ac_compile\"") >&5
11170 (eval $ac_compile) 2>&5
11172 echo "$as_me:11172: \$? = $ac_status" >&5
11173 (exit $ac_status); } &&
11174 { ac_try='test -s conftest.$ac_objext'
11175 { (eval echo "$as_me:11175: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11178 echo "$as_me:11178: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 ac_lo=$ac_mid; break
11182 echo "$as_me: failed program was:" >&5
11183 cat conftest.$ac_ext >&5
11184 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11186 rm -f conftest.$ac_objext conftest.$ac_ext
11189 rm -f conftest.$ac_objext conftest.$ac_ext
11190 # Binary search between lo and hi bounds.
11191 while test "x$ac_lo" != "x$ac_hi"; do
11192 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11193 cat >conftest.$ac_ext <<_ACEOF
11194 #line 11194 "configure"
11195 #include "confdefs.h"
11196 $ac_includes_default
11200 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11205 rm -f conftest.$ac_objext
11206 if { (eval echo "$as_me:11206: \"$ac_compile\"") >&5
11207 (eval $ac_compile) 2>&5
11209 echo "$as_me:11209: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -s conftest.$ac_objext'
11212 { (eval echo "$as_me:11212: \"$ac_try\"") >&5
11213 (eval $ac_try) 2>&5
11215 echo "$as_me:11215: \$? = $ac_status" >&5
11216 (exit $ac_status); }; }; then
11219 echo "$as_me: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11221 ac_lo=`expr $ac_mid + 1`
11223 rm -f conftest.$ac_objext conftest.$ac_ext
11225 ac_cv_sizeof_signed_char=$ac_lo
11227 if test "$cross_compiling" = yes; then
11228 { { echo "$as_me:11228: error: cannot run test program while cross compiling" >&5
11229 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11230 { (exit 1); exit 1; }; }
11232 cat >conftest.$ac_ext <<_ACEOF
11233 #line 11233 "configure"
11234 #include "confdefs.h"
11235 $ac_includes_default
11239 FILE *f = fopen ("conftest.val", "w");
11241 $ac_main_return (1);
11242 fprintf (f, "%d", (sizeof (signed char)));
11248 rm -f conftest$ac_exeext
11249 if { (eval echo "$as_me:11249: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11252 echo "$as_me:11252: \$? = $ac_status" >&5
11253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11254 { (eval echo "$as_me:11254: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:11257: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 ac_cv_sizeof_signed_char=`cat conftest.val`
11261 echo "$as_me: program exited with status $ac_status" >&5
11262 echo "$as_me: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11265 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11270 ac_cv_sizeof_signed_char=0
11273 echo "$as_me:11273: result: $ac_cv_sizeof_signed_char" >&5
11274 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11275 cat >>confdefs.h <<EOF
11276 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11279 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11280 NCURSES_SBOOL="signed char"
11282 NCURSES_SBOOL="char"
11284 echo "$as_me:11284: checking if you want to use signed Boolean array in term.h" >&5
11285 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11287 # Check whether --enable-signed-char or --disable-signed-char was given.
11288 if test "${enable_signed_char+set}" = set; then
11289 enableval="$enable_signed_char"
11290 with_signed_char=$enableval
11292 with_signed_char=no
11294 echo "$as_me:11294: result: $with_signed_char" >&5
11295 echo "${ECHO_T}$with_signed_char" >&6
11296 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
11298 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11299 echo "$as_me:11299: checking if you want SIGWINCH handler" >&5
11300 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11302 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11303 if test "${enable_sigwinch+set}" = set; then
11304 enableval="$enable_sigwinch"
11305 with_sigwinch=$enableval
11307 with_sigwinch=$with_ext_funcs
11309 echo "$as_me:11309: result: $with_sigwinch" >&5
11310 echo "${ECHO_T}$with_sigwinch" >&6
11311 test "x$with_sigwinch" = xyes &&
11312 cat >>confdefs.h <<\EOF
11313 #define USE_SIGWINCH 1
11316 ### use option --enable-tcap-names to allow user to define new capabilities
11317 echo "$as_me:11317: checking if you want user-definable terminal capabilities like termcap" >&5
11318 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11320 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11321 if test "${enable_tcap_names+set}" = set; then
11322 enableval="$enable_tcap_names"
11323 with_tcap_names=$enableval
11325 with_tcap_names=$with_ext_funcs
11327 echo "$as_me:11327: result: $with_tcap_names" >&5
11328 echo "${ECHO_T}$with_tcap_names" >&6
11330 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
11332 ###############################################################################
11333 # These options are relatively safe to experiment with.
11335 echo "$as_me:11335: checking if you want all development code" >&5
11336 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11338 # Check whether --with-develop or --without-develop was given.
11339 if test "${with_develop+set}" = set; then
11340 withval="$with_develop"
11341 with_develop=$withval
11345 echo "$as_me:11345: result: $with_develop" >&5
11346 echo "${ECHO_T}$with_develop" >&6
11348 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11349 echo "$as_me:11349: checking if you want hard-tabs code" >&5
11350 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11352 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11353 if test "${enable_hard_tabs+set}" = set; then
11354 enableval="$enable_hard_tabs"
11357 enable_hard_tabs=$with_develop
11359 echo "$as_me:11359: result: $enable_hard_tabs" >&5
11360 echo "${ECHO_T}$enable_hard_tabs" >&6
11361 test "x$enable_hard_tabs" = xyes &&
11362 cat >>confdefs.h <<\EOF
11363 #define USE_HARD_TABS 1
11366 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11367 echo "$as_me:11367: checking if you want limited support for xmc" >&5
11368 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11370 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11371 if test "${enable_xmc_glitch+set}" = set; then
11372 enableval="$enable_xmc_glitch"
11375 enable_xmc_glitch=$with_develop
11377 echo "$as_me:11377: result: $enable_xmc_glitch" >&5
11378 echo "${ECHO_T}$enable_xmc_glitch" >&6
11379 test "x$enable_xmc_glitch" = xyes &&
11380 cat >>confdefs.h <<\EOF
11381 #define USE_XMC_SUPPORT 1
11384 ###############################################################################
11385 # These are just experimental, probably should not be in a package:
11387 echo "$as_me:11387: checking if you do not want to assume colors are white-on-black" >&5
11388 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11390 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11391 if test "${enable_assumed_color+set}" = set; then
11392 enableval="$enable_assumed_color"
11393 with_assumed_color=$enableval
11395 with_assumed_color=yes
11397 echo "$as_me:11397: result: $with_assumed_color" >&5
11398 echo "${ECHO_T}$with_assumed_color" >&6
11399 test "x$with_assumed_color" = xyes &&
11400 cat >>confdefs.h <<\EOF
11401 #define USE_ASSUMED_COLOR 1
11404 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11405 echo "$as_me:11405: checking if you want hashmap scrolling-optimization code" >&5
11406 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11408 # Check whether --enable-hashmap or --disable-hashmap was given.
11409 if test "${enable_hashmap+set}" = set; then
11410 enableval="$enable_hashmap"
11411 with_hashmap=$enableval
11415 echo "$as_me:11415: result: $with_hashmap" >&5
11416 echo "${ECHO_T}$with_hashmap" >&6
11417 test "x$with_hashmap" = xyes &&
11418 cat >>confdefs.h <<\EOF
11419 #define USE_HASHMAP 1
11422 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11423 echo "$as_me:11423: checking if you want colorfgbg code" >&5
11424 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11426 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11427 if test "${enable_colorfgbg+set}" = set; then
11428 enableval="$enable_colorfgbg"
11429 with_colorfgbg=$enableval
11433 echo "$as_me:11433: result: $with_colorfgbg" >&5
11434 echo "${ECHO_T}$with_colorfgbg" >&6
11435 test "x$with_colorfgbg" = xyes &&
11436 cat >>confdefs.h <<\EOF
11437 #define USE_COLORFGBG 1
11440 ### use option --enable-interop to turn on use of bindings used for interop
11441 echo "$as_me:11441: checking if you want interop bindings" >&5
11442 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11444 # Check whether --enable-interop or --disable-interop was given.
11445 if test "${enable_interop+set}" = set; then
11446 enableval="$enable_interop"
11447 with_exp_interop=$enableval
11449 with_exp_interop=no
11451 echo "$as_me:11451: result: $with_exp_interop" >&5
11452 echo "${ECHO_T}$with_exp_interop" >&6
11454 NCURSES_INTEROP_FUNCS=0
11455 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
11457 # This is still experimental (20080329), but should ultimately be moved to
11458 # the script-block --with-normal, etc.
11460 echo "$as_me:11460: checking if you want to link with the pthread library" >&5
11461 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11463 # Check whether --with-pthread or --without-pthread was given.
11464 if test "${with_pthread+set}" = set; then
11465 withval="$with_pthread"
11466 with_pthread=$withval
11470 echo "$as_me:11470: result: $with_pthread" >&5
11471 echo "${ECHO_T}$with_pthread" >&6
11473 if test "$with_pthread" != no ; then
11474 echo "$as_me:11474: checking for pthread.h" >&5
11475 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11476 if test "${ac_cv_header_pthread_h+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11480 #line 11480 "configure"
11481 #include "confdefs.h"
11482 #include <pthread.h>
11484 if { (eval echo "$as_me:11484: \"$ac_cpp conftest.$ac_ext\"") >&5
11485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11487 egrep -v '^ *\+' conftest.er1 >conftest.err
11489 cat conftest.err >&5
11490 echo "$as_me:11490: \$? = $ac_status" >&5
11491 (exit $ac_status); } >/dev/null; then
11492 if test -s conftest.err; then
11493 ac_cpp_err=$ac_c_preproc_warn_flag
11500 if test -z "$ac_cpp_err"; then
11501 ac_cv_header_pthread_h=yes
11503 echo "$as_me: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11505 ac_cv_header_pthread_h=no
11507 rm -f conftest.err conftest.$ac_ext
11509 echo "$as_me:11509: result: $ac_cv_header_pthread_h" >&5
11510 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11511 if test $ac_cv_header_pthread_h = yes; then
11513 cat >>confdefs.h <<\EOF
11514 #define HAVE_PTHREADS_H 1
11517 for cf_lib_pthread in pthread c_r
11519 echo "$as_me:11519: checking if we can link with the $cf_lib_pthread library" >&5
11520 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11521 cf_save_LIBS="$LIBS"
11522 LIBS="-l$cf_lib_pthread $LIBS"
11523 cat >conftest.$ac_ext <<_ACEOF
11524 #line 11524 "configure"
11525 #include "confdefs.h"
11527 #include <pthread.h>
11533 int rc = pthread_create(0,0,0,0);
11534 int r2 = pthread_mutexattr_settype(0, 0);
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (eval echo "$as_me:11541: \"$ac_link\"") >&5
11542 (eval $ac_link) 2>&5
11544 echo "$as_me:11544: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -s conftest$ac_exeext'
11547 { (eval echo "$as_me:11547: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11550 echo "$as_me:11550: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11554 echo "$as_me: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11559 LIBS="$cf_save_LIBS"
11560 echo "$as_me:11560: result: $with_pthread" >&5
11561 echo "${ECHO_T}$with_pthread" >&6
11562 test "$with_pthread" = yes && break
11565 if test "$with_pthread" = yes ; then
11566 LIBS="-l$cf_lib_pthread $LIBS"
11568 cat >>confdefs.h <<\EOF
11569 #define HAVE_LIBPTHREADS 1
11573 { { echo "$as_me:11573: error: Cannot link with pthread library" >&5
11574 echo "$as_me: error: Cannot link with pthread library" >&2;}
11575 { (exit 1); exit 1; }; }
11582 if test "x$with_pthread" != xno; then
11583 echo "$as_me:11583: checking for pthread_kill" >&5
11584 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11585 if test "${ac_cv_func_pthread_kill+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 cat >conftest.$ac_ext <<_ACEOF
11589 #line 11589 "configure"
11590 #include "confdefs.h"
11591 /* System header to define __stub macros and hopefully few prototypes,
11592 which can conflict with char pthread_kill (); below. */
11593 #include <assert.h>
11594 /* Override any gcc2 internal prototype to avoid an error. */
11598 /* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11600 char pthread_kill ();
11606 /* The GNU C library defines this for functions which it implements
11607 to always fail with ENOSYS. Some functions are actually named
11608 something starting with __ and the normal name is an alias. */
11609 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11612 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (eval echo "$as_me:11620: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11623 echo "$as_me:11623: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:11626: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:11629: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_cv_func_pthread_kill=yes
11633 echo "$as_me: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11635 ac_cv_func_pthread_kill=no
11637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11639 echo "$as_me:11639: result: $ac_cv_func_pthread_kill" >&5
11640 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11641 if test $ac_cv_func_pthread_kill = yes; then
11643 echo "$as_me:11643: checking if you want to allow EINTR in wgetch with pthreads" >&5
11644 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11646 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11647 if test "${enable_pthreads_eintr+set}" = set; then
11648 enableval="$enable_pthreads_eintr"
11649 use_pthreads_eintr=$enableval
11651 use_pthreads_eintr=no
11653 echo "$as_me:11653: result: $use_pthreads_eintr" >&5
11654 echo "${ECHO_T}$use_pthreads_eintr" >&6
11655 if test "x$use_pthreads_eintr" = xyes ; then
11657 cat >>confdefs.h <<\EOF
11658 #define USE_PTHREADS_EINTR 1
11664 echo "$as_me:11664: checking if you want to use weak-symbols for pthreads" >&5
11665 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11667 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11668 if test "${enable_weak_symbols+set}" = set; then
11669 enableval="$enable_weak_symbols"
11670 use_weak_symbols=$enableval
11672 use_weak_symbols=no
11674 echo "$as_me:11674: result: $use_weak_symbols" >&5
11675 echo "${ECHO_T}$use_weak_symbols" >&6
11676 if test "x$use_weak_symbols" = xyes ; then
11678 echo "$as_me:11678: checking if $CC supports weak symbols" >&5
11679 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11680 if test "${cf_cv_weak_symbols+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 cat >conftest.$ac_ext <<_ACEOF
11685 #line 11685 "configure"
11686 #include "confdefs.h"
11693 #if defined(__GNUC__)
11694 # if defined __USE_ISOC99
11695 # define _cat_pragma(exp) _Pragma(#exp)
11696 # define _weak_pragma(exp) _cat_pragma(weak name)
11698 # define _weak_pragma(exp)
11700 # define _declare(name) __extension__ extern __typeof__(name) name
11701 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11704 weak_symbol(fopen);
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:11711: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>&5
11714 echo "$as_me:11714: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:11717: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:11720: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 cf_cv_weak_symbols=yes
11724 echo "$as_me: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11726 cf_cv_weak_symbols=no
11728 rm -f conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:11731: result: $cf_cv_weak_symbols" >&5
11732 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11735 cf_cv_weak_symbols=no
11738 if test "x$cf_cv_weak_symbols" = xyes ; then
11740 cat >>confdefs.h <<\EOF
11741 #define USE_WEAK_SYMBOLS 1
11748 if test "x$with_pthread" = "xyes" ; then
11750 cat >>confdefs.h <<\EOF
11751 #define USE_PTHREADS 1
11754 enable_reentrant=yes
11755 if test "x$cf_cv_weak_symbols" = xyes ; then
11760 # Reentrant code has to be opaque; there's little advantage to making ncurses
11761 # opaque outside of that, so there is no --enable-opaque option. We can use
11762 # this option without --with-pthreads, but this will be always set for
11764 echo "$as_me:11764: checking if you want experimental reentrant code" >&5
11765 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11767 # Check whether --enable-reentrant or --disable-reentrant was given.
11768 if test "${enable_reentrant+set}" = set; then
11769 enableval="$enable_reentrant"
11770 with_reentrant=$enableval
11774 echo "$as_me:11774: result: $with_reentrant" >&5
11775 echo "${ECHO_T}$with_reentrant" >&6
11776 if test "x$with_reentrant" = xyes ; then
11777 cf_cv_enable_reentrant=1
11778 cf_cv_enable_opaque="NCURSES_INTERNALS"
11781 if test "x$cf_cv_weak_symbols" = xyes ; then
11783 # remove pthread library from $LIBS
11784 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11786 TEST_LIBS="-lpthread $TEST_LIBS"
11787 TEST_LIBS2="-lpthread $TEST_LIBS2"
11789 LIB_SUFFIX="t${LIB_SUFFIX}"
11792 cat >>confdefs.h <<\EOF
11793 #define USE_REENTRANT 1
11796 if test "${with_abi_version+set}" != set; then
11797 case $cf_cv_rel_version in
11799 cf_cv_rel_version=6.0
11800 cf_cv_abi_version=6
11801 { echo "$as_me:11801: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11802 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11808 cf_cv_enable_reentrant=0
11809 cf_cv_enable_opaque="NCURSES_OPAQUE"
11811 NCURSES_SIZE_T=short
11814 ### Allow using a different wrap-prefix
11815 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11816 echo "$as_me:11816: checking for prefix used to wrap public variables" >&5
11817 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11819 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11820 if test "${with_wrap_prefix+set}" = set; then
11821 withval="$with_wrap_prefix"
11822 NCURSES_WRAP_PREFIX=$withval
11824 NCURSES_WRAP_PREFIX=_nc_
11826 echo "$as_me:11826: result: $NCURSES_WRAP_PREFIX" >&5
11827 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11829 NCURSES_WRAP_PREFIX=_nc_
11832 cat >>confdefs.h <<EOF
11833 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11836 echo "$as_me:11836: checking if you want experimental safe-sprintf code" >&5
11837 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11839 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11840 if test "${enable_safe_sprintf+set}" = set; then
11841 enableval="$enable_safe_sprintf"
11842 with_safe_sprintf=$enableval
11844 with_safe_sprintf=no
11846 echo "$as_me:11846: result: $with_safe_sprintf" >&5
11847 echo "${ECHO_T}$with_safe_sprintf" >&6
11848 test "x$with_safe_sprintf" = xyes &&
11849 cat >>confdefs.h <<\EOF
11850 #define USE_SAFE_SPRINTF 1
11853 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11854 # when hashmap is used scroll hints are useless
11855 if test "$with_hashmap" = no ; then
11856 echo "$as_me:11856: checking if you want to experiment without scrolling-hints code" >&5
11857 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11859 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11860 if test "${enable_scroll_hints+set}" = set; then
11861 enableval="$enable_scroll_hints"
11862 with_scroll_hints=$enableval
11864 with_scroll_hints=yes
11866 echo "$as_me:11866: result: $with_scroll_hints" >&5
11867 echo "${ECHO_T}$with_scroll_hints" >&6
11868 test "x$with_scroll_hints" = xyes &&
11869 cat >>confdefs.h <<\EOF
11870 #define USE_SCROLL_HINTS 1
11875 echo "$as_me:11875: checking if you want experimental wgetch-events code" >&5
11876 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
11878 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
11879 if test "${enable_wgetch_events+set}" = set; then
11880 enableval="$enable_wgetch_events"
11881 with_wgetch_events=$enableval
11883 with_wgetch_events=no
11885 echo "$as_me:11885: result: $with_wgetch_events" >&5
11886 echo "${ECHO_T}$with_wgetch_events" >&6
11887 test "x$with_wgetch_events" = xyes &&
11888 cat >>confdefs.h <<\EOF
11889 #define NCURSES_WGETCH_EVENTS 1
11892 ###############################################################################
11894 ### use option --disable-echo to suppress full display compiling commands
11896 echo "$as_me:11896: checking if you want to see long compiling messages" >&5
11897 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
11899 # Check whether --enable-echo or --disable-echo was given.
11900 if test "${enable_echo+set}" = set; then
11901 enableval="$enable_echo"
11902 test "$enableval" != no && enableval=yes
11903 if test "$enableval" != "yes" ; then
11906 ECHO_LD='@echo linking $@;'
11907 RULE_CC='@echo compiling $<'
11908 SHOW_CC='@echo compiling $@'
11930 echo "$as_me:11930: result: $enableval" >&5
11931 echo "${ECHO_T}$enableval" >&6
11933 if test "x$enable_echo" = xyes; then
11936 ECHO_LINK='@ echo linking $@ ... ;'
11937 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
11938 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
11941 ### use option --enable-warnings to turn on all gcc warnings
11942 echo "$as_me:11942: checking if you want to see compiler warnings" >&5
11943 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
11945 # Check whether --enable-warnings or --disable-warnings was given.
11946 if test "${enable_warnings+set}" = set; then
11947 enableval="$enable_warnings"
11948 with_warnings=$enableval
11950 echo "$as_me:11950: result: $with_warnings" >&5
11951 echo "${ECHO_T}$with_warnings" >&6
11953 if test "x$with_warnings" = "xyes"; then
11955 ADAFLAGS="$ADAFLAGS -gnatg"
11959 if test "$GCC" = yes ; then
11962 echo "$as_me:11962: checking if this is really Intel C compiler" >&5
11963 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
11964 cf_save_CFLAGS="$CFLAGS"
11965 CFLAGS="$CFLAGS -no-gcc"
11966 cat >conftest.$ac_ext <<_ACEOF
11967 #line 11967 "configure"
11968 #include "confdefs.h"
11974 #ifdef __INTEL_COMPILER
11983 rm -f conftest.$ac_objext
11984 if { (eval echo "$as_me:11984: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>&5
11987 echo "$as_me:11987: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:11990: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:11993: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11996 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11999 echo "$as_me: failed program was:" >&5
12000 cat conftest.$ac_ext >&5
12002 rm -f conftest.$ac_objext conftest.$ac_ext
12003 CFLAGS="$cf_save_CFLAGS"
12004 echo "$as_me:12004: result: $INTEL_COMPILER" >&5
12005 echo "${ECHO_T}$INTEL_COMPILER" >&6
12012 if test "$GCC" = yes ; then
12013 echo "$as_me:12013: checking if this is really Clang C compiler" >&5
12014 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
12015 cf_save_CFLAGS="$CFLAGS"
12016 CFLAGS="$CFLAGS -Qunused-arguments"
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line 12018 "configure"
12019 #include "confdefs.h"
12034 rm -f conftest.$ac_objext
12035 if { (eval echo "$as_me:12035: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>&5
12038 echo "$as_me:12038: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -s conftest.$ac_objext'
12041 { (eval echo "$as_me:12041: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:12044: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12047 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12050 echo "$as_me: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12053 rm -f conftest.$ac_objext conftest.$ac_ext
12054 CFLAGS="$cf_save_CFLAGS"
12055 echo "$as_me:12055: result: $CLANG_COMPILER" >&5
12056 echo "${ECHO_T}$CLANG_COMPILER" >&6
12059 cat > conftest.$ac_ext <<EOF
12060 #line 12060 "${as_me:-configure}"
12061 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12064 if test "$INTEL_COMPILER" = yes
12066 # The "-wdXXX" options suppress warnings:
12067 # remark #1419: external declaration in primary source file
12068 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12069 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12070 # remark #193: zero used for undefined preprocessing identifier
12071 # remark #593: variable "curs_sb_left_arrow" was set but never used
12072 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12073 # remark #869: parameter "tw" was never referenced
12074 # remark #981: operands are evaluated in unspecified order
12075 # warning #279: controlling expression is constant
12077 { echo "$as_me:12077: checking for $CC warning options..." >&5
12078 echo "$as_me: checking for $CC warning options..." >&6;}
12079 cf_save_CFLAGS="$CFLAGS"
12080 EXTRA_CFLAGS="-Wall"
12092 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12093 if { (eval echo "$as_me:12093: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>&5
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); }; then
12098 test -n "$verbose" && echo "$as_me:12098: result: ... -$cf_opt" >&5
12099 echo "${ECHO_T}... -$cf_opt" >&6
12100 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12103 CFLAGS="$cf_save_CFLAGS"
12105 elif test "$GCC" = yes
12107 { echo "$as_me:12107: checking for $CC warning options..." >&5
12108 echo "$as_me: checking for $CC warning options..." >&6;}
12109 cf_save_CFLAGS="$CFLAGS"
12112 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12113 for cf_opt in W Wall \
12114 Wbad-function-cast \
12118 Wmissing-declarations \
12119 Wmissing-prototypes \
12123 Wstrict-prototypes \
12124 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12126 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12127 if { (eval echo "$as_me:12127: \"$ac_compile\"") >&5
12128 (eval $ac_compile) 2>&5
12130 echo "$as_me:12130: \$? = $ac_status" >&5
12131 (exit $ac_status); }; then
12132 test -n "$verbose" && echo "$as_me:12132: result: ... -$cf_opt" >&5
12133 echo "${ECHO_T}... -$cf_opt" >&6
12134 case $cf_opt in #(vi
12136 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12139 case $GCC_VERSION in
12141 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12143 echo "${as_me:-configure}:12143: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12148 Wpointer-arith) #(vi
12149 case $GCC_VERSION in
12151 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12153 echo "${as_me:-configure}:12153: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12159 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12162 CFLAGS="$cf_save_CFLAGS"
12166 if test "x$cf_with_cxx" = xyes ; then
12170 if test "$GCC" = yes ; then
12173 echo "$as_me:12173: checking if this is really Intel C++ compiler" >&5
12174 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12175 cf_save_CFLAGS="$CXXFLAGS"
12176 CXXFLAGS="$CXXFLAGS -no-gcc"
12177 cat >conftest.$ac_ext <<_ACEOF
12178 #line 12178 "configure"
12179 #include "confdefs.h"
12185 #ifdef __INTEL_COMPILER
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:12195: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>&5
12198 echo "$as_me:12198: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:12201: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:12204: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 INTEL_CPLUSPLUS=yes
12207 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12210 echo "$as_me: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12213 rm -f conftest.$ac_objext conftest.$ac_ext
12214 CXXFLAGS="$cf_save_CFLAGS"
12215 echo "$as_me:12215: result: $INTEL_CPLUSPLUS" >&5
12216 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12223 if test "$GCC" = yes ; then
12224 echo "$as_me:12224: checking if this is really Clang C++ compiler" >&5
12225 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
12226 cf_save_CFLAGS="$CXXFLAGS"
12227 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
12228 cat >conftest.$ac_ext <<_ACEOF
12229 #line 12229 "configure"
12230 #include "confdefs.h"
12245 rm -f conftest.$ac_objext
12246 if { (eval echo "$as_me:12246: \"$ac_compile\"") >&5
12247 (eval $ac_compile) 2>&5
12249 echo "$as_me:12249: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -s conftest.$ac_objext'
12252 { (eval echo "$as_me:12252: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:12255: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 CLANG_CPLUSPLUS=yes
12258 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12261 echo "$as_me: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12264 rm -f conftest.$ac_objext conftest.$ac_ext
12265 CXXFLAGS="$cf_save_CFLAGS"
12266 echo "$as_me:12266: result: $CLANG_CPLUSPLUS" >&5
12267 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
12271 ac_cpp='$CXXCPP $CPPFLAGS'
12272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12275 ac_main_return=return
12277 cat > conftest.$ac_ext <<EOF
12278 #line 12278 "configure"
12279 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12282 if test "$INTEL_CPLUSPLUS" = yes
12284 # The "-wdXXX" options suppress warnings:
12285 # remark #1419: external declaration in primary source file
12286 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12287 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12288 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12289 # remark #193: zero used for undefined preprocessing identifier
12290 # remark #593: variable "curs_sb_left_arrow" was set but never used
12291 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12292 # remark #869: parameter "tw" was never referenced
12293 # remark #981: operands are evaluated in unspecified order
12294 # warning #269: invalid format string conversion
12296 { echo "$as_me:12296: checking for $CC warning options..." >&5
12297 echo "$as_me: checking for $CC warning options..." >&6;}
12298 cf_save_CXXFLAGS="$CXXFLAGS"
12299 EXTRA_CXXFLAGS="-Wall"
12312 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12313 if { (eval echo "$as_me:12313: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>&5
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit $ac_status); }; then
12318 test -n "$verbose" && echo "$as_me:12318: result: ... -$cf_opt" >&5
12319 echo "${ECHO_T}... -$cf_opt" >&6
12320 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12323 CXXFLAGS="$cf_save_CXXFLAGS"
12325 elif test "$GXX" = yes
12327 { echo "$as_me:12327: checking for $CXX warning options..." >&5
12328 echo "$as_me: checking for $CXX warning options..." >&6;}
12329 cf_save_CXXFLAGS="$CXXFLAGS"
12330 EXTRA_CXXFLAGS="-W -Wall"
12331 cf_gxx_extra_warnings=""
12332 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12333 case "$GCC_VERSION" in
12337 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12343 Woverloaded-virtual \
12349 Wmissing-prototypes \
12352 Wstrict-prototypes \
12353 Wundef $cf_gxx_extra_warnings Wno-unused
12355 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12356 if { (eval echo "$as_me:12356: \"$ac_compile\"") >&5
12357 (eval $ac_compile) 2>&5
12359 echo "$as_me:12359: \$? = $ac_status" >&5
12360 (exit $ac_status); }; then
12361 test -n "$verbose" && echo "$as_me:12361: result: ... -$cf_opt" >&5
12362 echo "${ECHO_T}... -$cf_opt" >&6
12363 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12365 test -n "$verbose" && echo "$as_me:12365: result: ... no -$cf_opt" >&5
12366 echo "${ECHO_T}... no -$cf_opt" >&6
12369 CXXFLAGS="$cf_save_CXXFLAGS"
12374 ac_cpp='$CPP $CPPFLAGS'
12375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12378 ac_main_return=return
12383 if test "$GCC" = yes
12385 cat > conftest.i <<EOF
12387 #define GCC_PRINTF 0
12390 #define GCC_SCANF 0
12392 #ifndef GCC_NORETURN
12393 #define GCC_NORETURN /* nothing */
12396 #define GCC_UNUSED /* nothing */
12399 if test "$GCC" = yes
12401 { echo "$as_me:12401: checking for $CC __attribute__ directives..." >&5
12402 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12403 cat > conftest.$ac_ext <<EOF
12404 #line 12404 "${as_me:-configure}"
12405 #include "confdefs.h"
12406 #include "conftest.h"
12407 #include "conftest.i"
12409 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12411 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12414 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12416 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12418 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12419 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12420 extern void foo(void) GCC_NORETURN;
12421 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12423 cf_printf_attribute=no
12424 cf_scanf_attribute=no
12425 for cf_attribute in scanf printf unused noreturn
12428 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12430 cf_directive="__attribute__(($cf_attribute))"
12431 echo "checking for $CC $cf_directive" 1>&5
12433 case $cf_attribute in #(vi
12435 cf_printf_attribute=yes
12436 cat >conftest.h <<EOF
12437 #define GCC_$cf_ATTRIBUTE 1
12441 cf_scanf_attribute=yes
12442 cat >conftest.h <<EOF
12443 #define GCC_$cf_ATTRIBUTE 1
12447 cat >conftest.h <<EOF
12448 #define GCC_$cf_ATTRIBUTE $cf_directive
12453 if { (eval echo "$as_me:12453: \"$ac_compile\"") >&5
12454 (eval $ac_compile) 2>&5
12456 echo "$as_me:12456: \$? = $ac_status" >&5
12457 (exit $ac_status); }; then
12458 test -n "$verbose" && echo "$as_me:12458: result: ... $cf_attribute" >&5
12459 echo "${ECHO_T}... $cf_attribute" >&6
12460 cat conftest.h >>confdefs.h
12461 case $cf_attribute in #(vi
12464 cat >>confdefs.h <<EOF
12465 #define GCC_NORETURN $cf_directive
12470 cf_value='/* nothing */'
12471 if test "$cf_printf_attribute" != no ; then
12472 cf_value='__attribute__((format(printf,fmt,var)))'
12474 cat >>confdefs.h <<\EOF
12475 #define GCC_PRINTF 1
12480 cat >>confdefs.h <<EOF
12481 #define GCC_PRINTFLIKE(fmt,var) $cf_value
12486 cf_value='/* nothing */'
12487 if test "$cf_scanf_attribute" != no ; then
12488 cf_value='__attribute__((format(scanf,fmt,var)))'
12490 cat >>confdefs.h <<\EOF
12491 #define GCC_SCANF 1
12496 cat >>confdefs.h <<EOF
12497 #define GCC_SCANFLIKE(fmt,var) $cf_value
12503 cat >>confdefs.h <<EOF
12504 #define GCC_UNUSED $cf_directive
12512 fgrep define conftest.i >>confdefs.h
12517 echo "$as_me:12517: checking if you want to work around bogus compiler/loader warnings" >&5
12518 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
12520 # Check whether --enable-string-hacks or --disable-string-hacks was given.
12521 if test "${enable_string_hacks+set}" = set; then
12522 enableval="$enable_string_hacks"
12523 with_string_hacks=$enableval
12525 with_string_hacks=no
12527 echo "$as_me:12527: result: $with_string_hacks" >&5
12528 echo "${ECHO_T}$with_string_hacks" >&6
12530 if test "x$with_string_hacks" = "xyes"; then
12532 cat >>confdefs.h <<\EOF
12533 #define USE_STRING_HACKS 1
12536 { echo "$as_me:12536: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
12537 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
12539 for ac_func in strlcat strlcpy snprintf
12541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12542 echo "$as_me:12542: checking for $ac_func" >&5
12543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12544 if eval "test \"\${$as_ac_var+set}\" = set"; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 cat >conftest.$ac_ext <<_ACEOF
12548 #line 12548 "configure"
12549 #include "confdefs.h"
12550 /* System header to define __stub macros and hopefully few prototypes,
12551 which can conflict with char $ac_func (); below. */
12552 #include <assert.h>
12553 /* Override any gcc2 internal prototype to avoid an error. */
12557 /* We use char because int might match the return type of a gcc2
12558 builtin and then its argument prototype would still apply. */
12565 /* The GNU C library defines this for functions which it implements
12566 to always fail with ENOSYS. Some functions are actually named
12567 something starting with __ and the normal name is an alias. */
12568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12571 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (eval echo "$as_me:12579: \"$ac_link\"") >&5
12580 (eval $ac_link) 2>&5
12582 echo "$as_me:12582: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -s conftest$ac_exeext'
12585 { (eval echo "$as_me:12585: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:12588: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 eval "$as_ac_var=yes"
12592 echo "$as_me: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12594 eval "$as_ac_var=no"
12596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12598 echo "$as_me:12598: result: `eval echo '${'$as_ac_var'}'`" >&5
12599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12600 if test `eval echo '${'$as_ac_var'}'` = yes; then
12601 cat >>confdefs.h <<EOF
12602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12610 ### use option --enable-assertions to turn on generation of assertion code
12611 echo "$as_me:12611: checking if you want to enable runtime assertions" >&5
12612 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
12614 # Check whether --enable-assertions or --disable-assertions was given.
12615 if test "${enable_assertions+set}" = set; then
12616 enableval="$enable_assertions"
12617 with_assertions=$enableval
12621 echo "$as_me:12621: result: $with_assertions" >&5
12622 echo "${ECHO_T}$with_assertions" >&6
12625 if test "$with_assertions" = no
12627 CPPFLAGS="$CPPFLAGS -DNDEBUG"
12630 ADAFLAGS="$ADAFLAGS -gnata"
12635 ### use option --disable-leaks to suppress "permanent" leaks, for testing
12637 echo "$as_me:12637: checking if you want to use dmalloc for testing" >&5
12638 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
12640 # Check whether --with-dmalloc or --without-dmalloc was given.
12641 if test "${with_dmalloc+set}" = set; then
12642 withval="$with_dmalloc"
12644 cat >>confdefs.h <<EOF
12645 #define USE_DMALLOC 1
12648 : ${with_cflags:=-g}
12649 : ${with_no_leaks:=yes}
12654 echo "$as_me:12654: result: ${with_dmalloc:-no}" >&5
12655 echo "${ECHO_T}${with_dmalloc:-no}" >&6
12657 case .$with_cflags in #(vi
12659 case .$CFLAGS in #(vi
12667 cf_new_extra_cppflags=
12669 for cf_add_cflags in -g
12671 case $cf_fix_cppflags in
12673 case $cf_add_cflags in #(vi
12674 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12675 case $cf_add_cflags in
12677 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12679 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12680 && test -z "${cf_tst_cflags}" \
12681 && cf_fix_cppflags=yes
12683 if test $cf_fix_cppflags = yes ; then
12684 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12686 elif test "${cf_tst_cflags}" = "\"'" ; then
12687 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12692 case "$CPPFLAGS" in
12693 *$cf_add_cflags) #(vi
12696 case $cf_add_cflags in #(vi
12698 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12700 CPPFLAGS=`echo "$CPPFLAGS" | \
12701 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12702 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12706 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12711 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12716 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12718 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12720 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12721 && test -z "${cf_tst_cflags}" \
12722 && cf_fix_cppflags=no
12727 if test -n "$cf_new_cflags" ; then
12729 CFLAGS="$CFLAGS $cf_new_cflags"
12732 if test -n "$cf_new_cppflags" ; then
12734 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12737 if test -n "$cf_new_extra_cppflags" ; then
12739 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12747 if test "$with_dmalloc" = yes ; then
12748 echo "$as_me:12748: checking for dmalloc.h" >&5
12749 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
12750 if test "${ac_cv_header_dmalloc_h+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 cat >conftest.$ac_ext <<_ACEOF
12754 #line 12754 "configure"
12755 #include "confdefs.h"
12756 #include <dmalloc.h>
12758 if { (eval echo "$as_me:12758: \"$ac_cpp conftest.$ac_ext\"") >&5
12759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12761 egrep -v '^ *\+' conftest.er1 >conftest.err
12763 cat conftest.err >&5
12764 echo "$as_me:12764: \$? = $ac_status" >&5
12765 (exit $ac_status); } >/dev/null; then
12766 if test -s conftest.err; then
12767 ac_cpp_err=$ac_c_preproc_warn_flag
12774 if test -z "$ac_cpp_err"; then
12775 ac_cv_header_dmalloc_h=yes
12777 echo "$as_me: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12779 ac_cv_header_dmalloc_h=no
12781 rm -f conftest.err conftest.$ac_ext
12783 echo "$as_me:12783: result: $ac_cv_header_dmalloc_h" >&5
12784 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
12785 if test $ac_cv_header_dmalloc_h = yes; then
12787 echo "$as_me:12787: checking for dmalloc_debug in -ldmalloc" >&5
12788 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
12789 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 ac_check_lib_save_LIBS=$LIBS
12793 LIBS="-ldmalloc $LIBS"
12794 cat >conftest.$ac_ext <<_ACEOF
12795 #line 12795 "configure"
12796 #include "confdefs.h"
12798 /* Override any gcc2 internal prototype to avoid an error. */
12802 /* We use char because int might match the return type of a gcc2
12803 builtin and then its argument prototype would still apply. */
12804 char dmalloc_debug ();
12813 rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (eval echo "$as_me:12814: \"$ac_link\"") >&5
12815 (eval $ac_link) 2>&5
12817 echo "$as_me:12817: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -s conftest$ac_exeext'
12820 { (eval echo "$as_me:12820: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:12823: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_cv_lib_dmalloc_dmalloc_debug=yes
12827 echo "$as_me: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12829 ac_cv_lib_dmalloc_dmalloc_debug=no
12831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12834 echo "$as_me:12834: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
12835 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
12836 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
12837 cat >>confdefs.h <<EOF
12838 #define HAVE_LIBDMALLOC 1
12841 LIBS="-ldmalloc $LIBS"
12849 echo "$as_me:12849: checking if you want to use dbmalloc for testing" >&5
12850 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
12852 # Check whether --with-dbmalloc or --without-dbmalloc was given.
12853 if test "${with_dbmalloc+set}" = set; then
12854 withval="$with_dbmalloc"
12856 cat >>confdefs.h <<EOF
12857 #define USE_DBMALLOC 1
12860 : ${with_cflags:=-g}
12861 : ${with_no_leaks:=yes}
12866 echo "$as_me:12866: result: ${with_dbmalloc:-no}" >&5
12867 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
12869 case .$with_cflags in #(vi
12871 case .$CFLAGS in #(vi
12879 cf_new_extra_cppflags=
12881 for cf_add_cflags in -g
12883 case $cf_fix_cppflags in
12885 case $cf_add_cflags in #(vi
12886 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12887 case $cf_add_cflags in
12889 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12891 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12892 && test -z "${cf_tst_cflags}" \
12893 && cf_fix_cppflags=yes
12895 if test $cf_fix_cppflags = yes ; then
12896 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12898 elif test "${cf_tst_cflags}" = "\"'" ; then
12899 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12904 case "$CPPFLAGS" in
12905 *$cf_add_cflags) #(vi
12908 case $cf_add_cflags in #(vi
12910 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12912 CPPFLAGS=`echo "$CPPFLAGS" | \
12913 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12914 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12918 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12923 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12928 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12930 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12932 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12933 && test -z "${cf_tst_cflags}" \
12934 && cf_fix_cppflags=no
12939 if test -n "$cf_new_cflags" ; then
12941 CFLAGS="$CFLAGS $cf_new_cflags"
12944 if test -n "$cf_new_cppflags" ; then
12946 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12949 if test -n "$cf_new_extra_cppflags" ; then
12951 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12959 if test "$with_dbmalloc" = yes ; then
12960 echo "$as_me:12960: checking for dbmalloc.h" >&5
12961 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
12962 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 cat >conftest.$ac_ext <<_ACEOF
12966 #line 12966 "configure"
12967 #include "confdefs.h"
12968 #include <dbmalloc.h>
12970 if { (eval echo "$as_me:12970: \"$ac_cpp conftest.$ac_ext\"") >&5
12971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12973 egrep -v '^ *\+' conftest.er1 >conftest.err
12975 cat conftest.err >&5
12976 echo "$as_me:12976: \$? = $ac_status" >&5
12977 (exit $ac_status); } >/dev/null; then
12978 if test -s conftest.err; then
12979 ac_cpp_err=$ac_c_preproc_warn_flag
12986 if test -z "$ac_cpp_err"; then
12987 ac_cv_header_dbmalloc_h=yes
12989 echo "$as_me: failed program was:" >&5
12990 cat conftest.$ac_ext >&5
12991 ac_cv_header_dbmalloc_h=no
12993 rm -f conftest.err conftest.$ac_ext
12995 echo "$as_me:12995: result: $ac_cv_header_dbmalloc_h" >&5
12996 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
12997 if test $ac_cv_header_dbmalloc_h = yes; then
12999 echo "$as_me:12999: checking for debug_malloc in -ldbmalloc" >&5
13000 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
13001 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 ac_check_lib_save_LIBS=$LIBS
13005 LIBS="-ldbmalloc $LIBS"
13006 cat >conftest.$ac_ext <<_ACEOF
13007 #line 13007 "configure"
13008 #include "confdefs.h"
13010 /* Override any gcc2 internal prototype to avoid an error. */
13014 /* We use char because int might match the return type of a gcc2
13015 builtin and then its argument prototype would still apply. */
13016 char debug_malloc ();
13025 rm -f conftest.$ac_objext conftest$ac_exeext
13026 if { (eval echo "$as_me:13026: \"$ac_link\"") >&5
13027 (eval $ac_link) 2>&5
13029 echo "$as_me:13029: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:13032: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:13035: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_lib_dbmalloc_debug_malloc=yes
13039 echo "$as_me: failed program was:" >&5
13040 cat conftest.$ac_ext >&5
13041 ac_cv_lib_dbmalloc_debug_malloc=no
13043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13046 echo "$as_me:13046: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
13047 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
13048 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
13049 cat >>confdefs.h <<EOF
13050 #define HAVE_LIBDBMALLOC 1
13053 LIBS="-ldbmalloc $LIBS"
13061 echo "$as_me:13061: checking if you want to use valgrind for testing" >&5
13062 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
13064 # Check whether --with-valgrind or --without-valgrind was given.
13065 if test "${with_valgrind+set}" = set; then
13066 withval="$with_valgrind"
13068 cat >>confdefs.h <<EOF
13069 #define USE_VALGRIND 1
13072 : ${with_cflags:=-g}
13073 : ${with_no_leaks:=yes}
13078 echo "$as_me:13078: result: ${with_valgrind:-no}" >&5
13079 echo "${ECHO_T}${with_valgrind:-no}" >&6
13081 case .$with_cflags in #(vi
13083 case .$CFLAGS in #(vi
13091 cf_new_extra_cppflags=
13093 for cf_add_cflags in -g
13095 case $cf_fix_cppflags in
13097 case $cf_add_cflags in #(vi
13098 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13099 case $cf_add_cflags in
13101 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13103 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13104 && test -z "${cf_tst_cflags}" \
13105 && cf_fix_cppflags=yes
13107 if test $cf_fix_cppflags = yes ; then
13108 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13110 elif test "${cf_tst_cflags}" = "\"'" ; then
13111 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13116 case "$CPPFLAGS" in
13117 *$cf_add_cflags) #(vi
13120 case $cf_add_cflags in #(vi
13122 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13124 CPPFLAGS=`echo "$CPPFLAGS" | \
13125 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13126 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13130 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13135 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13140 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13142 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13144 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13145 && test -z "${cf_tst_cflags}" \
13146 && cf_fix_cppflags=no
13151 if test -n "$cf_new_cflags" ; then
13153 CFLAGS="$CFLAGS $cf_new_cflags"
13156 if test -n "$cf_new_cppflags" ; then
13158 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13161 if test -n "$cf_new_extra_cppflags" ; then
13163 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13171 echo "$as_me:13171: checking if you want to perform memory-leak testing" >&5
13172 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13174 # Check whether --enable-leaks or --disable-leaks was given.
13175 if test "${enable_leaks+set}" = set; then
13176 enableval="$enable_leaks"
13177 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13179 : ${with_no_leaks:=no}
13181 echo "$as_me:13181: result: $with_no_leaks" >&5
13182 echo "${ECHO_T}$with_no_leaks" >&6
13184 if test "$with_no_leaks" = yes ; then
13186 cat >>confdefs.h <<\EOF
13190 cat >>confdefs.h <<\EOF
13191 #define YY_NO_LEAKS 1
13196 cat >>confdefs.h <<\EOF
13197 #define HAVE_NC_ALLOC_H 1
13200 ### use option --enable-expanded to generate certain macros as functions
13202 # Check whether --enable-expanded or --disable-expanded was given.
13203 if test "${enable_expanded+set}" = set; then
13204 enableval="$enable_expanded"
13205 test "x$enableval" = xyes &&
13206 cat >>confdefs.h <<\EOF
13207 #define NCURSES_EXPANDED 1
13212 ### use option --disable-macros to suppress macros in favor of functions
13214 # Check whether --enable-macros or --disable-macros was given.
13215 if test "${enable_macros+set}" = set; then
13216 enableval="$enable_macros"
13217 test "$enableval" = no &&
13218 cat >>confdefs.h <<\EOF
13219 #define NCURSES_NOMACROS 1
13224 # Normally we only add trace() to the debug-library. Allow this to be
13225 # extended to all models of the ncurses library:
13227 case "$CFLAGS $CPPFLAGS" in
13233 echo "$as_me:13233: checking whether to add trace feature to all models" >&5
13234 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13236 # Check whether --with-trace or --without-trace was given.
13237 if test "${with_trace+set}" = set; then
13238 withval="$with_trace"
13239 cf_with_trace=$withval
13241 cf_with_trace=$cf_all_traces
13243 echo "$as_me:13243: result: $cf_with_trace" >&5
13244 echo "${ECHO_T}$cf_with_trace" >&6
13246 if test "x$cf_with_trace" = xyes ; then
13253 cf_new_extra_cppflags=
13255 for cf_add_cflags in -DTRACE
13257 case $cf_fix_cppflags in
13259 case $cf_add_cflags in #(vi
13260 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13261 case $cf_add_cflags in
13263 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13265 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13266 && test -z "${cf_tst_cflags}" \
13267 && cf_fix_cppflags=yes
13269 if test $cf_fix_cppflags = yes ; then
13270 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13272 elif test "${cf_tst_cflags}" = "\"'" ; then
13273 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13278 case "$CPPFLAGS" in
13279 *$cf_add_cflags) #(vi
13282 case $cf_add_cflags in #(vi
13284 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13286 CPPFLAGS=`echo "$CPPFLAGS" | \
13287 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13288 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13292 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13297 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13302 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13304 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13306 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13307 && test -z "${cf_tst_cflags}" \
13308 && cf_fix_cppflags=no
13313 if test -n "$cf_new_cflags" ; then
13315 CFLAGS="$CFLAGS $cf_new_cflags"
13318 if test -n "$cf_new_cppflags" ; then
13320 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13323 if test -n "$cf_new_extra_cppflags" ; then
13325 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13333 ### Checks for libraries.
13334 case $cf_cv_system_name in #(vi
13338 echo "$as_me:13338: checking for gettimeofday" >&5
13339 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13340 if test "${ac_cv_func_gettimeofday+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 cat >conftest.$ac_ext <<_ACEOF
13344 #line 13344 "configure"
13345 #include "confdefs.h"
13346 /* System header to define __stub macros and hopefully few prototypes,
13347 which can conflict with char gettimeofday (); below. */
13348 #include <assert.h>
13349 /* Override any gcc2 internal prototype to avoid an error. */
13353 /* We use char because int might match the return type of a gcc2
13354 builtin and then its argument prototype would still apply. */
13355 char gettimeofday ();
13361 /* The GNU C library defines this for functions which it implements
13362 to always fail with ENOSYS. Some functions are actually named
13363 something starting with __ and the normal name is an alias. */
13364 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13367 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (eval echo "$as_me:13375: \"$ac_link\"") >&5
13376 (eval $ac_link) 2>&5
13378 echo "$as_me:13378: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (eval echo "$as_me:13381: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13384 echo "$as_me:13384: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_func_gettimeofday=yes
13388 echo "$as_me: failed program was:" >&5
13389 cat conftest.$ac_ext >&5
13390 ac_cv_func_gettimeofday=no
13392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13394 echo "$as_me:13394: result: $ac_cv_func_gettimeofday" >&5
13395 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13396 if test $ac_cv_func_gettimeofday = yes; then
13398 cat >>confdefs.h <<\EOF
13399 #define HAVE_GETTIMEOFDAY 1
13404 echo "$as_me:13404: checking for gettimeofday in -lbsd" >&5
13405 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13406 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 ac_check_lib_save_LIBS=$LIBS
13411 cat >conftest.$ac_ext <<_ACEOF
13412 #line 13412 "configure"
13413 #include "confdefs.h"
13415 /* Override any gcc2 internal prototype to avoid an error. */
13419 /* We use char because int might match the return type of a gcc2
13420 builtin and then its argument prototype would still apply. */
13421 char gettimeofday ();
13430 rm -f conftest.$ac_objext conftest$ac_exeext
13431 if { (eval echo "$as_me:13431: \"$ac_link\"") >&5
13432 (eval $ac_link) 2>&5
13434 echo "$as_me:13434: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (eval echo "$as_me:13437: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:13440: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_lib_bsd_gettimeofday=yes
13444 echo "$as_me: failed program was:" >&5
13445 cat conftest.$ac_ext >&5
13446 ac_cv_lib_bsd_gettimeofday=no
13448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13449 LIBS=$ac_check_lib_save_LIBS
13451 echo "$as_me:13451: result: $ac_cv_lib_bsd_gettimeofday" >&5
13452 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
13453 if test $ac_cv_lib_bsd_gettimeofday = yes; then
13455 cat >>confdefs.h <<\EOF
13456 #define HAVE_GETTIMEOFDAY 1
13466 echo "$as_me:13466: checking if -lm needed for math functions" >&5
13467 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
13468 if test "${cf_cv_need_libm+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 cat >conftest.$ac_ext <<_ACEOF
13473 #line 13473 "configure"
13474 #include "confdefs.h"
13482 double x = rand(); printf("result = %g\n", sin(x))
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:13488: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13491 echo "$as_me:13491: \$? = $ac_status" >&5
13492 (exit $ac_status); } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:13494: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:13497: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13501 echo "$as_me: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13503 cf_cv_need_libm=yes
13505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13507 echo "$as_me:13507: result: $cf_cv_need_libm" >&5
13508 echo "${ECHO_T}$cf_cv_need_libm" >&6
13509 if test "$cf_cv_need_libm" = yes
13514 ### Checks for header files.
13515 echo "$as_me:13515: checking for ANSI C header files" >&5
13516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13517 if test "${ac_cv_header_stdc+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 cat >conftest.$ac_ext <<_ACEOF
13521 #line 13521 "configure"
13522 #include "confdefs.h"
13523 #include <stdlib.h>
13524 #include <stdarg.h>
13525 #include <string.h>
13529 if { (eval echo "$as_me:13529: \"$ac_cpp conftest.$ac_ext\"") >&5
13530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13532 egrep -v '^ *\+' conftest.er1 >conftest.err
13534 cat conftest.err >&5
13535 echo "$as_me:13535: \$? = $ac_status" >&5
13536 (exit $ac_status); } >/dev/null; then
13537 if test -s conftest.err; then
13538 ac_cpp_err=$ac_c_preproc_warn_flag
13545 if test -z "$ac_cpp_err"; then
13546 ac_cv_header_stdc=yes
13548 echo "$as_me: failed program was:" >&5
13549 cat conftest.$ac_ext >&5
13550 ac_cv_header_stdc=no
13552 rm -f conftest.err conftest.$ac_ext
13554 if test $ac_cv_header_stdc = yes; then
13555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13556 cat >conftest.$ac_ext <<_ACEOF
13557 #line 13557 "configure"
13558 #include "confdefs.h"
13559 #include <string.h>
13562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13563 egrep "memchr" >/dev/null 2>&1; then
13566 ac_cv_header_stdc=no
13572 if test $ac_cv_header_stdc = yes; then
13573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13574 cat >conftest.$ac_ext <<_ACEOF
13575 #line 13575 "configure"
13576 #include "confdefs.h"
13577 #include <stdlib.h>
13580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13581 egrep "free" >/dev/null 2>&1; then
13584 ac_cv_header_stdc=no
13590 if test $ac_cv_header_stdc = yes; then
13591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13592 if test "$cross_compiling" = yes; then
13595 cat >conftest.$ac_ext <<_ACEOF
13596 #line 13596 "configure"
13597 #include "confdefs.h"
13599 #if ((' ' & 0x0FF) == 0x020)
13600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13603 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13604 || ('j' <= (c) && (c) <= 'r') \
13605 || ('s' <= (c) && (c) <= 'z'))
13606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13614 for (i = 0; i < 256; i++)
13615 if (XOR (islower (i), ISLOWER (i))
13616 || toupper (i) != TOUPPER (i))
13617 $ac_main_return(2);
13618 $ac_main_return (0);
13621 rm -f conftest$ac_exeext
13622 if { (eval echo "$as_me:13622: \"$ac_link\"") >&5
13623 (eval $ac_link) 2>&5
13625 echo "$as_me:13625: \$? = $ac_status" >&5
13626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13627 { (eval echo "$as_me:13627: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:13630: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13634 echo "$as_me: program exited with status $ac_status" >&5
13635 echo "$as_me: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13637 ac_cv_header_stdc=no
13639 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13643 echo "$as_me:13643: result: $ac_cv_header_stdc" >&5
13644 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13645 if test $ac_cv_header_stdc = yes; then
13647 cat >>confdefs.h <<\EOF
13648 #define STDC_HEADERS 1
13653 ac_header_dirent=no
13654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13655 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13656 echo "$as_me:13656: checking for $ac_hdr that defines DIR" >&5
13657 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 cat >conftest.$ac_ext <<_ACEOF
13662 #line 13662 "configure"
13663 #include "confdefs.h"
13664 #include <sys/types.h>
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:13677: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>&5
13680 echo "$as_me:13680: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:13683: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:13686: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 eval "$as_ac_Header=yes"
13690 echo "$as_me: failed program was:" >&5
13691 cat conftest.$ac_ext >&5
13692 eval "$as_ac_Header=no"
13694 rm -f conftest.$ac_objext conftest.$ac_ext
13696 echo "$as_me:13696: result: `eval echo '${'$as_ac_Header'}'`" >&5
13697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13699 cat >>confdefs.h <<EOF
13700 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13703 ac_header_dirent=$ac_hdr; break
13707 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13708 if test $ac_header_dirent = dirent.h; then
13709 echo "$as_me:13709: checking for opendir in -ldir" >&5
13710 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13711 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 ac_check_lib_save_LIBS=$LIBS
13716 cat >conftest.$ac_ext <<_ACEOF
13717 #line 13717 "configure"
13718 #include "confdefs.h"
13720 /* Override any gcc2 internal prototype to avoid an error. */
13724 /* We use char because int might match the return type of a gcc2
13725 builtin and then its argument prototype would still apply. */
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (eval echo "$as_me:13736: \"$ac_link\"") >&5
13737 (eval $ac_link) 2>&5
13739 echo "$as_me:13739: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -s conftest$ac_exeext'
13742 { (eval echo "$as_me:13742: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:13745: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_lib_dir_opendir=yes
13749 echo "$as_me: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13751 ac_cv_lib_dir_opendir=no
13753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13754 LIBS=$ac_check_lib_save_LIBS
13756 echo "$as_me:13756: result: $ac_cv_lib_dir_opendir" >&5
13757 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
13758 if test $ac_cv_lib_dir_opendir = yes; then
13763 echo "$as_me:13763: checking for opendir in -lx" >&5
13764 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
13765 if test "${ac_cv_lib_x_opendir+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 ac_check_lib_save_LIBS=$LIBS
13770 cat >conftest.$ac_ext <<_ACEOF
13771 #line 13771 "configure"
13772 #include "confdefs.h"
13774 /* Override any gcc2 internal prototype to avoid an error. */
13778 /* We use char because int might match the return type of a gcc2
13779 builtin and then its argument prototype would still apply. */
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (eval echo "$as_me:13790: \"$ac_link\"") >&5
13791 (eval $ac_link) 2>&5
13793 echo "$as_me:13793: \$? = $ac_status" >&5
13794 (exit $ac_status); } &&
13795 { ac_try='test -s conftest$ac_exeext'
13796 { (eval echo "$as_me:13796: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:13799: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_cv_lib_x_opendir=yes
13803 echo "$as_me: failed program was:" >&5
13804 cat conftest.$ac_ext >&5
13805 ac_cv_lib_x_opendir=no
13807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13810 echo "$as_me:13810: result: $ac_cv_lib_x_opendir" >&5
13811 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
13812 if test $ac_cv_lib_x_opendir = yes; then
13818 echo "$as_me:13818: checking whether time.h and sys/time.h may both be included" >&5
13819 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13820 if test "${ac_cv_header_time+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 cat >conftest.$ac_ext <<_ACEOF
13824 #line 13824 "configure"
13825 #include "confdefs.h"
13826 #include <sys/types.h>
13827 #include <sys/time.h>
13833 if ((struct tm *) 0)
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:13840: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>&5
13843 echo "$as_me:13843: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:13846: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:13849: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 ac_cv_header_time=yes
13853 echo "$as_me: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 ac_cv_header_time=no
13857 rm -f conftest.$ac_objext conftest.$ac_ext
13859 echo "$as_me:13859: result: $ac_cv_header_time" >&5
13860 echo "${ECHO_T}$ac_cv_header_time" >&6
13861 if test $ac_cv_header_time = yes; then
13863 cat >>confdefs.h <<\EOF
13864 #define TIME_WITH_SYS_TIME 1
13871 cf_regex_libs="regex re"
13872 case $host_os in #(vi
13874 cf_regex_libs="gnurx $cf_regex_libs"
13878 echo "$as_me:13878: checking for regcomp" >&5
13879 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
13880 if test "${ac_cv_func_regcomp+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 cat >conftest.$ac_ext <<_ACEOF
13884 #line 13884 "configure"
13885 #include "confdefs.h"
13886 /* System header to define __stub macros and hopefully few prototypes,
13887 which can conflict with char regcomp (); below. */
13888 #include <assert.h>
13889 /* Override any gcc2 internal prototype to avoid an error. */
13893 /* We use char because int might match the return type of a gcc2
13894 builtin and then its argument prototype would still apply. */
13901 /* The GNU C library defines this for functions which it implements
13902 to always fail with ENOSYS. Some functions are actually named
13903 something starting with __ and the normal name is an alias. */
13904 #if defined (__stub_regcomp) || defined (__stub___regcomp)
13907 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:13915: \"$ac_link\"") >&5
13916 (eval $ac_link) 2>&5
13918 echo "$as_me:13918: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -s conftest$ac_exeext'
13921 { (eval echo "$as_me:13921: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:13924: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_func_regcomp=yes
13928 echo "$as_me: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 ac_cv_func_regcomp=no
13932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13934 echo "$as_me:13934: result: $ac_cv_func_regcomp" >&5
13935 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
13936 if test $ac_cv_func_regcomp = yes; then
13937 cf_regex_func=regcomp
13940 for cf_regex_lib in $cf_regex_libs
13942 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
13943 echo "$as_me:13943: checking for regcomp in -l$cf_regex_lib" >&5
13944 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
13945 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 ac_check_lib_save_LIBS=$LIBS
13949 LIBS="-l$cf_regex_lib $LIBS"
13950 cat >conftest.$ac_ext <<_ACEOF
13951 #line 13951 "configure"
13952 #include "confdefs.h"
13954 /* Override any gcc2 internal prototype to avoid an error. */
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13969 rm -f conftest.$ac_objext conftest$ac_exeext
13970 if { (eval echo "$as_me:13970: \"$ac_link\"") >&5
13971 (eval $ac_link) 2>&5
13973 echo "$as_me:13973: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -s conftest$ac_exeext'
13976 { (eval echo "$as_me:13976: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:13979: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 eval "$as_ac_Lib=yes"
13983 echo "$as_me: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 eval "$as_ac_Lib=no"
13987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13988 LIBS=$ac_check_lib_save_LIBS
13990 echo "$as_me:13990: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13991 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13992 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13994 LIBS="-l$cf_regex_lib $LIBS"
13995 cf_regex_func=regcomp
14003 if test "$cf_regex_func" = no ; then
14004 echo "$as_me:14004: checking for compile" >&5
14005 echo $ECHO_N "checking for compile... $ECHO_C" >&6
14006 if test "${ac_cv_func_compile+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 cat >conftest.$ac_ext <<_ACEOF
14010 #line 14010 "configure"
14011 #include "confdefs.h"
14012 /* System header to define __stub macros and hopefully few prototypes,
14013 which can conflict with char compile (); below. */
14014 #include <assert.h>
14015 /* Override any gcc2 internal prototype to avoid an error. */
14019 /* We use char because int might match the return type of a gcc2
14020 builtin and then its argument prototype would still apply. */
14027 /* The GNU C library defines this for functions which it implements
14028 to always fail with ENOSYS. Some functions are actually named
14029 something starting with __ and the normal name is an alias. */
14030 #if defined (__stub_compile) || defined (__stub___compile)
14033 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14040 rm -f conftest.$ac_objext conftest$ac_exeext
14041 if { (eval echo "$as_me:14041: \"$ac_link\"") >&5
14042 (eval $ac_link) 2>&5
14044 echo "$as_me:14044: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -s conftest$ac_exeext'
14047 { (eval echo "$as_me:14047: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:14050: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_cv_func_compile=yes
14054 echo "$as_me: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14056 ac_cv_func_compile=no
14058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14060 echo "$as_me:14060: result: $ac_cv_func_compile" >&5
14061 echo "${ECHO_T}$ac_cv_func_compile" >&6
14062 if test $ac_cv_func_compile = yes; then
14063 cf_regex_func=compile
14066 echo "$as_me:14066: checking for compile in -lgen" >&5
14067 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
14068 if test "${ac_cv_lib_gen_compile+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 ac_check_lib_save_LIBS=$LIBS
14073 cat >conftest.$ac_ext <<_ACEOF
14074 #line 14074 "configure"
14075 #include "confdefs.h"
14077 /* Override any gcc2 internal prototype to avoid an error. */
14081 /* We use char because int might match the return type of a gcc2
14082 builtin and then its argument prototype would still apply. */
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:14093: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>&5
14096 echo "$as_me:14096: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -s conftest$ac_exeext'
14099 { (eval echo "$as_me:14099: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:14102: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_cv_lib_gen_compile=yes
14106 echo "$as_me: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 ac_cv_lib_gen_compile=no
14110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14113 echo "$as_me:14113: result: $ac_cv_lib_gen_compile" >&5
14114 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
14115 if test $ac_cv_lib_gen_compile = yes; then
14118 cf_regex_func=compile
14125 if test "$cf_regex_func" = no ; then
14126 { echo "$as_me:14126: WARNING: cannot find regular expression library" >&5
14127 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14130 echo "$as_me:14130: checking for regular-expression headers" >&5
14131 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14132 if test "${cf_cv_regex_hdrs+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 cf_cv_regex_hdrs=no
14137 case $cf_regex_func in #(vi
14139 for cf_regex_hdr in regexp.h regexpr.h
14141 cat >conftest.$ac_ext <<_ACEOF
14142 #line 14142 "configure"
14143 #include "confdefs.h"
14144 #include <$cf_regex_hdr>
14149 char *p = compile("", "", "", 0);
14150 int x = step("", "");
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (eval echo "$as_me:14157: \"$ac_link\"") >&5
14158 (eval $ac_link) 2>&5
14160 echo "$as_me:14160: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -s conftest$ac_exeext'
14163 { (eval echo "$as_me:14163: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:14166: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14169 cf_cv_regex_hdrs=$cf_regex_hdr
14173 echo "$as_me: failed program was:" >&5
14174 cat conftest.$ac_ext >&5
14176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14180 for cf_regex_hdr in regex.h
14182 cat >conftest.$ac_ext <<_ACEOF
14183 #line 14183 "configure"
14184 #include "confdefs.h"
14185 #include <sys/types.h>
14186 #include <$cf_regex_hdr>
14192 int x = regcomp(p, "", 0);
14193 int y = regexec(p, "", 0, 0, 0);
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (eval echo "$as_me:14201: \"$ac_link\"") >&5
14202 (eval $ac_link) 2>&5
14204 echo "$as_me:14204: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -s conftest$ac_exeext'
14207 { (eval echo "$as_me:14207: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:14210: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14213 cf_cv_regex_hdrs=$cf_regex_hdr
14217 echo "$as_me: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14226 echo "$as_me:14226: result: $cf_cv_regex_hdrs" >&5
14227 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14229 case $cf_cv_regex_hdrs in #(vi
14230 no) { echo "$as_me:14230: WARNING: no regular expression header found" >&5
14231 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14233 cat >>confdefs.h <<\EOF
14234 #define HAVE_REGEX_H_FUNCS 1
14238 cat >>confdefs.h <<\EOF
14239 #define HAVE_REGEXP_H_FUNCS 1
14243 cat >>confdefs.h <<\EOF
14244 #define HAVE_REGEXPR_H_FUNCS 1
14268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14269 echo "$as_me:14269: checking for $ac_header" >&5
14270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14275 #line 14275 "configure"
14276 #include "confdefs.h"
14277 #include <$ac_header>
14279 if { (eval echo "$as_me:14279: \"$ac_cpp conftest.$ac_ext\"") >&5
14280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14282 egrep -v '^ *\+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 echo "$as_me:14285: \$? = $ac_status" >&5
14286 (exit $ac_status); } >/dev/null; then
14287 if test -s conftest.err; then
14288 ac_cpp_err=$ac_c_preproc_warn_flag
14295 if test -z "$ac_cpp_err"; then
14296 eval "$as_ac_Header=yes"
14298 echo "$as_me: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 eval "$as_ac_Header=no"
14302 rm -f conftest.err conftest.$ac_ext
14304 echo "$as_me:14304: result: `eval echo '${'$as_ac_Header'}'`" >&5
14305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14307 cat >>confdefs.h <<EOF
14308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14314 for ac_header in unistd.h getopt.h
14316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14317 echo "$as_me:14317: checking for $ac_header" >&5
14318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 cat >conftest.$ac_ext <<_ACEOF
14323 #line 14323 "configure"
14324 #include "confdefs.h"
14325 #include <$ac_header>
14327 if { (eval echo "$as_me:14327: \"$ac_cpp conftest.$ac_ext\"") >&5
14328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14330 egrep -v '^ *\+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:14333: \$? = $ac_status" >&5
14334 (exit $ac_status); } >/dev/null; then
14335 if test -s conftest.err; then
14336 ac_cpp_err=$ac_c_preproc_warn_flag
14343 if test -z "$ac_cpp_err"; then
14344 eval "$as_ac_Header=yes"
14346 echo "$as_me: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14348 eval "$as_ac_Header=no"
14350 rm -f conftest.err conftest.$ac_ext
14352 echo "$as_me:14352: result: `eval echo '${'$as_ac_Header'}'`" >&5
14353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355 cat >>confdefs.h <<EOF
14356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14362 echo "$as_me:14362: checking for header declaring getopt variables" >&5
14363 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14364 if test "${cf_cv_getopt_header+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 cf_cv_getopt_header=none
14369 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14371 cat >conftest.$ac_ext <<_ACEOF
14372 #line 14372 "configure"
14373 #include "confdefs.h"
14375 #include <$cf_header>
14379 int x = optind; char *y = optarg
14384 rm -f conftest.$ac_objext
14385 if { (eval echo "$as_me:14385: \"$ac_compile\"") >&5
14386 (eval $ac_compile) 2>&5
14388 echo "$as_me:14388: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:14391: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:14394: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 cf_cv_getopt_header=$cf_header
14399 echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14402 rm -f conftest.$ac_objext conftest.$ac_ext
14406 echo "$as_me:14406: result: $cf_cv_getopt_header" >&5
14407 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14408 if test $cf_cv_getopt_header != none ; then
14410 cat >>confdefs.h <<\EOF
14411 #define HAVE_GETOPT_HEADER 1
14416 # check for ISC (this may also define _POSIX_SOURCE)
14417 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
14418 if test "x$ISC" = xyes ; then
14420 echo "$as_me:14420: checking for main in -lcposix" >&5
14421 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
14422 if test "${ac_cv_lib_cposix_main+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 ac_check_lib_save_LIBS=$LIBS
14426 LIBS="-lcposix $LIBS"
14427 cat >conftest.$ac_ext <<_ACEOF
14428 #line 14428 "configure"
14429 #include "confdefs.h"
14439 rm -f conftest.$ac_objext conftest$ac_exeext
14440 if { (eval echo "$as_me:14440: \"$ac_link\"") >&5
14441 (eval $ac_link) 2>&5
14443 echo "$as_me:14443: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -s conftest$ac_exeext'
14446 { (eval echo "$as_me:14446: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 echo "$as_me:14449: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 ac_cv_lib_cposix_main=yes
14453 echo "$as_me: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 ac_cv_lib_cposix_main=no
14457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS
14460 echo "$as_me:14460: result: $ac_cv_lib_cposix_main" >&5
14461 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
14462 if test $ac_cv_lib_cposix_main = yes; then
14463 cat >>confdefs.h <<EOF
14464 #define HAVE_LIBCPOSIX 1
14467 LIBS="-lcposix $LIBS"
14471 echo "$as_me:14471: checking for bzero in -linet" >&5
14472 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
14473 if test "${ac_cv_lib_inet_bzero+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 ac_check_lib_save_LIBS=$LIBS
14477 LIBS="-linet $LIBS"
14478 cat >conftest.$ac_ext <<_ACEOF
14479 #line 14479 "configure"
14480 #include "confdefs.h"
14482 /* Override any gcc2 internal prototype to avoid an error. */
14486 /* We use char because int might match the return type of a gcc2
14487 builtin and then its argument prototype would still apply. */
14497 rm -f conftest.$ac_objext conftest$ac_exeext
14498 if { (eval echo "$as_me:14498: \"$ac_link\"") >&5
14499 (eval $ac_link) 2>&5
14501 echo "$as_me:14501: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -s conftest$ac_exeext'
14504 { (eval echo "$as_me:14504: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14507 echo "$as_me:14507: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14509 ac_cv_lib_inet_bzero=yes
14511 echo "$as_me: failed program was:" >&5
14512 cat conftest.$ac_ext >&5
14513 ac_cv_lib_inet_bzero=no
14515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14516 LIBS=$ac_check_lib_save_LIBS
14518 echo "$as_me:14518: result: $ac_cv_lib_inet_bzero" >&5
14519 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
14520 if test $ac_cv_lib_inet_bzero = yes; then
14521 LIBS="-linet $LIBS"
14525 echo "$as_me:14525: checking if sys/time.h works with sys/select.h" >&5
14526 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14527 if test "${cf_cv_sys_time_select+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.$ac_ext <<_ACEOF
14532 #line 14532 "configure"
14533 #include "confdefs.h"
14535 #include <sys/types.h>
14536 #ifdef HAVE_SYS_TIME_H
14537 #include <sys/time.h>
14539 #ifdef HAVE_SYS_SELECT_H
14540 #include <sys/select.h>
14551 rm -f conftest.$ac_objext
14552 if { (eval echo "$as_me:14552: \"$ac_compile\"") >&5
14553 (eval $ac_compile) 2>&5
14555 echo "$as_me:14555: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try='test -s conftest.$ac_objext'
14558 { (eval echo "$as_me:14558: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:14561: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 cf_cv_sys_time_select=yes
14565 echo "$as_me: failed program was:" >&5
14566 cat conftest.$ac_ext >&5
14567 cf_cv_sys_time_select=no
14569 rm -f conftest.$ac_objext conftest.$ac_ext
14573 echo "$as_me:14573: result: $cf_cv_sys_time_select" >&5
14574 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14575 test "$cf_cv_sys_time_select" = yes &&
14576 cat >>confdefs.h <<\EOF
14577 #define HAVE_SYS_TIME_SELECT 1
14580 ### checks for compiler characteristics
14582 ac_cpp='$CPP $CPPFLAGS'
14583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14586 ac_main_return=return
14588 echo "$as_me:14588: checking for an ANSI C-conforming const" >&5
14589 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14590 if test "${ac_cv_c_const+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 cat >conftest.$ac_ext <<_ACEOF
14594 #line 14594 "configure"
14595 #include "confdefs.h"
14600 /* FIXME: Include the comments suggested by Paul. */
14601 #ifndef __cplusplus
14602 /* Ultrix mips cc rejects this. */
14603 typedef int charset[2];
14605 /* SunOS 4.1.1 cc rejects this. */
14606 char const *const *ccp;
14608 /* NEC SVR4.0.2 mips cc rejects this. */
14609 struct point {int x, y;};
14610 static struct point const zero = {0,0};
14611 /* AIX XL C 1.02.0.0 rejects this.
14612 It does not let you subtract one const X* pointer from another in
14613 an arm of an if-expression whose if-part is not a constant
14615 const char *g = "string";
14616 ccp = &g + (g ? g-g : 0);
14617 /* HPUX 7.0 cc rejects these. */
14620 ccp = (char const *const *) p;
14621 { /* SCO 3.2v4 cc rejects this. */
14623 char const *s = 0 ? (char *) 0 : (char const *) 0;
14627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14628 int x[] = {25, 17};
14629 const int *foo = &x[0];
14632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14633 typedef const int *iptr;
14637 { /* AIX XL C 1.02.0.0 rejects this saying
14638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14639 struct s { int j; const int *ap[3]; };
14640 struct s *b; b->j = 5;
14642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14643 const int foo = 10;
14651 rm -f conftest.$ac_objext
14652 if { (eval echo "$as_me:14652: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>&5
14655 echo "$as_me:14655: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -s conftest.$ac_objext'
14658 { (eval echo "$as_me:14658: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:14661: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14665 echo "$as_me: failed program was:" >&5
14666 cat conftest.$ac_ext >&5
14669 rm -f conftest.$ac_objext conftest.$ac_ext
14671 echo "$as_me:14671: result: $ac_cv_c_const" >&5
14672 echo "${ECHO_T}$ac_cv_c_const" >&6
14673 if test $ac_cv_c_const = no; then
14675 cat >>confdefs.h <<\EOF
14681 echo "$as_me:14681: checking for inline" >&5
14682 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14683 if test "${ac_cv_c_inline+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 for ac_kw in inline __inline__ __inline; do
14688 cat >conftest.$ac_ext <<_ACEOF
14689 #line 14689 "configure"
14690 #include "confdefs.h"
14691 #ifndef __cplusplus
14692 static $ac_kw int static_foo () {return 0; }
14693 $ac_kw int foo () {return 0; }
14697 rm -f conftest.$ac_objext
14698 if { (eval echo "$as_me:14698: \"$ac_compile\"") >&5
14699 (eval $ac_compile) 2>&5
14701 echo "$as_me:14701: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -s conftest.$ac_objext'
14704 { (eval echo "$as_me:14704: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:14707: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 ac_cv_c_inline=$ac_kw; break
14711 echo "$as_me: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14714 rm -f conftest.$ac_objext conftest.$ac_ext
14718 echo "$as_me:14718: result: $ac_cv_c_inline" >&5
14719 echo "${ECHO_T}$ac_cv_c_inline" >&6
14720 case $ac_cv_c_inline in
14723 cat >>confdefs.h <<\EOF
14727 *) cat >>confdefs.h <<EOF
14728 #define inline $ac_cv_c_inline
14734 if test "$ac_cv_c_inline" != no ; then
14735 NCURSES_INLINE=inline
14736 if test "$INTEL_COMPILER" = yes
14739 elif test "$CLANG_COMPILER" = yes
14742 elif test "$GCC" = yes
14744 echo "$as_me:14744: checking if $CC supports options to tune inlining" >&5
14745 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
14746 if test "${cf_cv_gcc_inline+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 cf_save_CFLAGS=$CFLAGS
14751 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
14752 cat >conftest.$ac_ext <<_ACEOF
14753 #line 14753 "configure"
14754 #include "confdefs.h"
14755 inline int foo(void) { return 1; }
14759 ${cf_cv_main_return:-return} foo()
14764 rm -f conftest.$ac_objext
14765 if { (eval echo "$as_me:14765: \"$ac_compile\"") >&5
14766 (eval $ac_compile) 2>&5
14768 echo "$as_me:14768: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
14770 { ac_try='test -s conftest.$ac_objext'
14771 { (eval echo "$as_me:14771: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14774 echo "$as_me:14774: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 cf_cv_gcc_inline=yes
14778 echo "$as_me: failed program was:" >&5
14779 cat conftest.$ac_ext >&5
14780 cf_cv_gcc_inline=no
14782 rm -f conftest.$ac_objext conftest.$ac_ext
14783 CFLAGS=$cf_save_CFLAGS
14786 echo "$as_me:14786: result: $cf_cv_gcc_inline" >&5
14787 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
14788 if test "$cf_cv_gcc_inline" = yes ; then
14793 cf_new_extra_cppflags=
14795 for cf_add_cflags in --param max-inline-insns-single=1200
14797 case $cf_fix_cppflags in
14799 case $cf_add_cflags in #(vi
14800 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14801 case $cf_add_cflags in
14803 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14805 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14806 && test -z "${cf_tst_cflags}" \
14807 && cf_fix_cppflags=yes
14809 if test $cf_fix_cppflags = yes ; then
14810 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14812 elif test "${cf_tst_cflags}" = "\"'" ; then
14813 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14818 case "$CPPFLAGS" in
14819 *$cf_add_cflags) #(vi
14822 case $cf_add_cflags in #(vi
14824 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14826 CPPFLAGS=`echo "$CPPFLAGS" | \
14827 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14828 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14832 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14837 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14842 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14844 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14846 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14847 && test -z "${cf_tst_cflags}" \
14848 && cf_fix_cppflags=no
14853 if test -n "$cf_new_cflags" ; then
14855 CFLAGS="$CFLAGS $cf_new_cflags"
14858 if test -n "$cf_new_cppflags" ; then
14860 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14863 if test -n "$cf_new_extra_cppflags" ; then
14865 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14872 echo "$as_me:14872: checking for signal global datatype" >&5
14873 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
14874 if test "${cf_cv_sig_atomic_t+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 "volatile sig_atomic_t" \
14883 cat >conftest.$ac_ext <<_ACEOF
14884 #line 14884 "configure"
14885 #include "confdefs.h"
14887 #include <sys/types.h>
14888 #include <signal.h>
14893 static void handler(int sig)
14900 signal(SIGINT, handler);
14906 rm -f conftest.$ac_objext
14907 if { (eval echo "$as_me:14907: \"$ac_compile\"") >&5
14908 (eval $ac_compile) 2>&5
14910 echo "$as_me:14910: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (eval echo "$as_me:14913: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:14916: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 cf_cv_sig_atomic_t=$cf_type
14920 echo "$as_me: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 cf_cv_sig_atomic_t=no
14924 rm -f conftest.$ac_objext conftest.$ac_ext
14925 test "$cf_cv_sig_atomic_t" != no && break
14930 echo "$as_me:14930: result: $cf_cv_sig_atomic_t" >&5
14931 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
14932 test "$cf_cv_sig_atomic_t" != no &&
14933 cat >>confdefs.h <<EOF
14934 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
14937 if test $NCURSES_CHTYPE = auto ; then
14939 echo "$as_me:14939: checking for type of chtype" >&5
14940 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14941 if test "${cf_cv_typeof_chtype+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 if test "$cross_compiling" = yes; then
14946 cf_cv_typeof_chtype=long
14948 cat >conftest.$ac_ext <<_ACEOF
14949 #line 14949 "configure"
14950 #include "confdefs.h"
14952 #define WANT_BITS 31
14956 FILE *fp = fopen("cf_test.out", "w");
14958 char *result = "long";
14959 if (sizeof(unsigned long) > sizeof(unsigned int)) {
14962 for (n = 0; n < WANT_BITS; n++) {
14965 if (y != 1 || x == 0) {
14971 * If x is nonzero, an int is big enough for the bits
14974 result = (x != 0) ? "int" : "long";
14979 ${cf_cv_main_return:-return}(0);
14983 rm -f conftest$ac_exeext
14984 if { (eval echo "$as_me:14984: \"$ac_link\"") >&5
14985 (eval $ac_link) 2>&5
14987 echo "$as_me:14987: \$? = $ac_status" >&5
14988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14989 { (eval echo "$as_me:14989: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14992 echo "$as_me:14992: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 cf_cv_typeof_chtype=`cat cf_test.out`
14996 echo "$as_me: program exited with status $ac_status" >&5
14997 echo "$as_me: failed program was:" >&5
14998 cat conftest.$ac_ext >&5
14999 cf_cv_typeof_chtype=long
15001 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15007 echo "$as_me:15007: result: $cf_cv_typeof_chtype" >&5
15008 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
15010 cat >>confdefs.h <<EOF
15011 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
15015 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15017 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15019 echo "$as_me:15019: checking if unsigned literals are legal" >&5
15020 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15021 if test "${cf_cv_unsigned_literals+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 cat >conftest.$ac_ext <<_ACEOF
15026 #line 15026 "configure"
15027 #include "confdefs.h"
15032 long x = 1L + 1UL + 1U + 1
15037 rm -f conftest.$ac_objext
15038 if { (eval echo "$as_me:15038: \"$ac_compile\"") >&5
15039 (eval $ac_compile) 2>&5
15041 echo "$as_me:15041: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -s conftest.$ac_objext'
15044 { (eval echo "$as_me:15044: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:15047: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 cf_cv_unsigned_literals=yes
15051 echo "$as_me: failed program was:" >&5
15052 cat conftest.$ac_ext >&5
15053 cf_cv_unsigned_literals=no
15055 rm -f conftest.$ac_objext conftest.$ac_ext
15059 echo "$as_me:15059: result: $cf_cv_unsigned_literals" >&5
15060 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15063 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15064 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15066 if test $NCURSES_MMASK_T = auto ; then
15067 cf_cv_typeof_mmask_t=long
15069 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15071 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15073 ### Checks for external-data
15075 echo "$as_me:15075: checking if external errno is declared" >&5
15076 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15077 if test "${cf_cv_dcl_errno+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #line 15082 "configure"
15083 #include "confdefs.h"
15085 #ifdef HAVE_STDLIB_H
15086 #include <stdlib.h>
15089 #include <sys/types.h>
15094 int x = (int) errno
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:15100: \"$ac_compile\"") >&5
15101 (eval $ac_compile) 2>&5
15103 echo "$as_me:15103: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -s conftest.$ac_objext'
15106 { (eval echo "$as_me:15106: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:15109: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 cf_cv_dcl_errno=yes
15113 echo "$as_me: failed program was:" >&5
15114 cat conftest.$ac_ext >&5
15117 rm -f conftest.$ac_objext conftest.$ac_ext
15120 echo "$as_me:15120: result: $cf_cv_dcl_errno" >&5
15121 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15123 if test "$cf_cv_dcl_errno" = no ; then
15125 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15127 cat >>confdefs.h <<EOF
15128 #define $cf_result 1
15133 # It's possible (for near-UNIX clones) that the data doesn't exist
15135 echo "$as_me:15135: checking if external errno exists" >&5
15136 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15137 if test "${cf_cv_have_errno+set}" = set; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 cat >conftest.$ac_ext <<_ACEOF
15142 #line 15142 "configure"
15143 #include "confdefs.h"
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (eval echo "$as_me:15157: \"$ac_link\"") >&5
15158 (eval $ac_link) 2>&5
15160 echo "$as_me:15160: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
15162 { ac_try='test -s conftest$ac_exeext'
15163 { (eval echo "$as_me:15163: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:15166: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 cf_cv_have_errno=yes
15170 echo "$as_me: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15172 cf_cv_have_errno=no
15174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15177 echo "$as_me:15177: result: $cf_cv_have_errno" >&5
15178 echo "${ECHO_T}$cf_cv_have_errno" >&6
15180 if test "$cf_cv_have_errno" = yes ; then
15182 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15184 cat >>confdefs.h <<EOF
15185 #define $cf_result 1
15190 echo "$as_me:15190: checking if data-only library module links" >&5
15191 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15192 if test "${cf_cv_link_dataonly+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 cat >conftest.$ac_ext <<EOF
15198 #line 15198 "configure"
15199 int testdata[3] = { 123, 456, 789 };
15201 if { (eval echo "$as_me:15201: \"$ac_compile\"") >&5
15202 (eval $ac_compile) 2>&5
15204 echo "$as_me:15204: \$? = $ac_status" >&5
15205 (exit $ac_status); } ; then
15206 mv conftest.o data.o && \
15207 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15209 rm -f conftest.$ac_ext data.o
15210 cat >conftest.$ac_ext <<EOF
15211 #line 15211 "configure"
15215 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15217 extern int testdata[3];
15218 return testdata[0] == 123
15219 && testdata[1] == 456
15220 && testdata[2] == 789;
15224 if { (eval echo "$as_me:15224: \"$ac_compile\"") >&5
15225 (eval $ac_compile) 2>&5
15227 echo "$as_me:15227: \$? = $ac_status" >&5
15228 (exit $ac_status); }; then
15229 mv conftest.o func.o && \
15230 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15232 rm -f conftest.$ac_ext func.o
15233 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15234 cf_saveLIBS="$LIBS"
15235 LIBS="conftest.a $LIBS"
15236 if test "$cross_compiling" = yes; then
15237 cf_cv_link_dataonly=unknown
15239 cat >conftest.$ac_ext <<_ACEOF
15240 #line 15240 "configure"
15241 #include "confdefs.h"
15245 extern int testfunc();
15246 ${cf_cv_main_return:-return} (!testfunc());
15250 rm -f conftest$ac_exeext
15251 if { (eval echo "$as_me:15251: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>&5
15254 echo "$as_me:15254: \$? = $ac_status" >&5
15255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15256 { (eval echo "$as_me:15256: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:15259: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 cf_cv_link_dataonly=yes
15263 echo "$as_me: program exited with status $ac_status" >&5
15264 echo "$as_me: failed program was:" >&5
15265 cat conftest.$ac_ext >&5
15266 cf_cv_link_dataonly=no
15268 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15270 LIBS="$cf_saveLIBS"
15274 echo "$as_me:15274: result: $cf_cv_link_dataonly" >&5
15275 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15277 if test "$cf_cv_link_dataonly" = no ; then
15279 cat >>confdefs.h <<\EOF
15280 #define BROKEN_LINKER 1
15286 ### Checks for library functions.
15311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15312 echo "$as_me:15312: checking for $ac_func" >&5
15313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15314 if eval "test \"\${$as_ac_var+set}\" = set"; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 cat >conftest.$ac_ext <<_ACEOF
15318 #line 15318 "configure"
15319 #include "confdefs.h"
15320 /* System header to define __stub macros and hopefully few prototypes,
15321 which can conflict with char $ac_func (); below. */
15322 #include <assert.h>
15323 /* Override any gcc2 internal prototype to avoid an error. */
15327 /* We use char because int might match the return type of a gcc2
15328 builtin and then its argument prototype would still apply. */
15335 /* The GNU C library defines this for functions which it implements
15336 to always fail with ENOSYS. Some functions are actually named
15337 something starting with __ and the normal name is an alias. */
15338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15341 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:15349: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>&5
15352 echo "$as_me:15352: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
15354 { ac_try='test -s conftest$ac_exeext'
15355 { (eval echo "$as_me:15355: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15358 echo "$as_me:15358: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 eval "$as_ac_var=yes"
15362 echo "$as_me: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15364 eval "$as_ac_var=no"
15366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15368 echo "$as_me:15368: result: `eval echo '${'$as_ac_var'}'`" >&5
15369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15370 if test `eval echo '${'$as_ac_var'}'` = yes; then
15371 cat >>confdefs.h <<EOF
15372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15378 if test "x$with_getcap" = "xyes" ; then
15380 echo "$as_me:15380: checking for terminal-capability database functions" >&5
15381 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
15382 if test "${cf_cv_cgetent+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 cat >conftest.$ac_ext <<_ACEOF
15387 #line 15387 "configure"
15388 #include "confdefs.h"
15390 #include <stdlib.h>
15397 char *db_array = temp;
15398 cgetent(&buf, &db_array, "vt100");
15399 cgetcap(buf, "tc", '=');
15400 cgetmatch(buf, "tc");
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (eval echo "$as_me:15407: \"$ac_link\"") >&5
15408 (eval $ac_link) 2>&5
15410 echo "$as_me:15410: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -s conftest$ac_exeext'
15413 { (eval echo "$as_me:15413: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15416 echo "$as_me:15416: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15420 echo "$as_me: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15427 echo "$as_me:15427: result: $cf_cv_cgetent" >&5
15428 echo "${ECHO_T}$cf_cv_cgetent" >&6
15430 if test "$cf_cv_cgetent" = yes
15433 cat >>confdefs.h <<\EOF
15434 #define HAVE_BSD_CGETENT 1
15437 echo "$as_me:15437: checking if cgetent uses const parameter" >&5
15438 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
15439 if test "${cf_cv_cgetent_const+set}" = set; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15443 cat >conftest.$ac_ext <<_ACEOF
15444 #line 15444 "configure"
15445 #include "confdefs.h"
15447 #include <stdlib.h>
15454 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
15455 const char *db_array = temp;
15456 cgetent(&buf, &db_array, "vt100");
15458 cgetcap(buf, "tc", '=');
15459 cgetmatch(buf, "tc");
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (eval echo "$as_me:15466: \"$ac_link\"") >&5
15467 (eval $ac_link) 2>&5
15469 echo "$as_me:15469: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try='test -s conftest$ac_exeext'
15472 { (eval echo "$as_me:15472: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:15475: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 cf_cv_cgetent_const=yes
15479 echo "$as_me: failed program was:" >&5
15480 cat conftest.$ac_ext >&5
15481 cf_cv_cgetent_const=no
15483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15486 echo "$as_me:15486: result: $cf_cv_cgetent_const" >&5
15487 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
15488 if test "$cf_cv_cgetent_const" = yes
15491 cat >>confdefs.h <<EOF
15492 #define CGETENT_CONST const
15500 echo "$as_me:15500: checking for isascii" >&5
15501 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
15502 if test "${cf_cv_have_isascii+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 cat >conftest.$ac_ext <<_ACEOF
15507 #line 15507 "configure"
15508 #include "confdefs.h"
15513 int x = isascii(' ')
15518 rm -f conftest.$ac_objext conftest$ac_exeext
15519 if { (eval echo "$as_me:15519: \"$ac_link\"") >&5
15520 (eval $ac_link) 2>&5
15522 echo "$as_me:15522: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
15524 { ac_try='test -s conftest$ac_exeext'
15525 { (eval echo "$as_me:15525: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15528 echo "$as_me:15528: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 cf_cv_have_isascii=yes
15532 echo "$as_me: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15534 cf_cv_have_isascii=no
15536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15539 echo "$as_me:15539: result: $cf_cv_have_isascii" >&5
15540 echo "${ECHO_T}$cf_cv_have_isascii" >&6
15541 test "$cf_cv_have_isascii" = yes &&
15542 cat >>confdefs.h <<\EOF
15543 #define HAVE_ISASCII 1
15546 if test "$ac_cv_func_sigaction" = yes; then
15547 echo "$as_me:15547: checking whether sigaction needs _POSIX_SOURCE" >&5
15548 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
15549 cat >conftest.$ac_ext <<_ACEOF
15550 #line 15550 "configure"
15551 #include "confdefs.h"
15553 #include <sys/types.h>
15554 #include <signal.h>
15558 struct sigaction act
15563 rm -f conftest.$ac_objext
15564 if { (eval echo "$as_me:15564: \"$ac_compile\"") >&5
15565 (eval $ac_compile) 2>&5
15567 echo "$as_me:15567: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -s conftest.$ac_objext'
15570 { (eval echo "$as_me:15570: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:15573: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15577 echo "$as_me: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15580 cat >conftest.$ac_ext <<_ACEOF
15581 #line 15581 "configure"
15582 #include "confdefs.h"
15584 #define _POSIX_SOURCE
15585 #include <sys/types.h>
15586 #include <signal.h>
15590 struct sigaction act
15595 rm -f conftest.$ac_objext
15596 if { (eval echo "$as_me:15596: \"$ac_compile\"") >&5
15597 (eval $ac_compile) 2>&5
15599 echo "$as_me:15599: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -s conftest.$ac_objext'
15602 { (eval echo "$as_me:15602: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15605 echo "$as_me:15605: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15609 cat >>confdefs.h <<\EOF
15610 #define _POSIX_SOURCE 1
15614 echo "$as_me: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15618 rm -f conftest.$ac_objext conftest.$ac_ext
15620 rm -f conftest.$ac_objext conftest.$ac_ext
15621 echo "$as_me:15621: result: $sigact_bad" >&5
15622 echo "${ECHO_T}$sigact_bad" >&6
15625 echo "$as_me:15625: checking if nanosleep really works" >&5
15626 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15627 if test "${cf_cv_func_nanosleep+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 if test "$cross_compiling" = yes; then
15632 cf_cv_func_nanosleep=unknown
15634 cat >conftest.$ac_ext <<_ACEOF
15635 #line 15635 "configure"
15636 #include "confdefs.h"
15642 #ifdef HAVE_SYS_TIME_H
15643 #include <sys/time.h>
15647 struct timespec ts1, ts2;
15650 ts1.tv_nsec = 750000000;
15654 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
15655 ${cf_cv_main_return:-return}(code != 0);
15659 rm -f conftest$ac_exeext
15660 if { (eval echo "$as_me:15660: \"$ac_link\"") >&5
15661 (eval $ac_link) 2>&5
15663 echo "$as_me:15663: \$? = $ac_status" >&5
15664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15665 { (eval echo "$as_me:15665: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:15668: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 cf_cv_func_nanosleep=yes
15672 echo "$as_me: program exited with status $ac_status" >&5
15673 echo "$as_me: failed program was:" >&5
15674 cat conftest.$ac_ext >&5
15675 cf_cv_func_nanosleep=no
15677 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15680 echo "$as_me:15680: result: $cf_cv_func_nanosleep" >&5
15681 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
15683 test "$cf_cv_func_nanosleep" = "yes" &&
15684 cat >>confdefs.h <<\EOF
15685 #define HAVE_NANOSLEEP 1
15694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15695 echo "$as_me:15695: checking for $ac_header" >&5
15696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 cat >conftest.$ac_ext <<_ACEOF
15701 #line 15701 "configure"
15702 #include "confdefs.h"
15703 #include <$ac_header>
15705 if { (eval echo "$as_me:15705: \"$ac_cpp conftest.$ac_ext\"") >&5
15706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15708 egrep -v '^ *\+' conftest.er1 >conftest.err
15710 cat conftest.err >&5
15711 echo "$as_me:15711: \$? = $ac_status" >&5
15712 (exit $ac_status); } >/dev/null; then
15713 if test -s conftest.err; then
15714 ac_cpp_err=$ac_c_preproc_warn_flag
15721 if test -z "$ac_cpp_err"; then
15722 eval "$as_ac_Header=yes"
15724 echo "$as_me: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15726 eval "$as_ac_Header=no"
15728 rm -f conftest.err conftest.$ac_ext
15730 echo "$as_me:15730: result: `eval echo '${'$as_ac_Header'}'`" >&5
15731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15733 cat >>confdefs.h <<EOF
15734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15740 if test "$ISC" = yes ; then
15742 for ac_header in sys/termio.h
15744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15745 echo "$as_me:15745: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 cat >conftest.$ac_ext <<_ACEOF
15751 #line 15751 "configure"
15752 #include "confdefs.h"
15753 #include <$ac_header>
15755 if { (eval echo "$as_me:15755: \"$ac_cpp conftest.$ac_ext\"") >&5
15756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15758 egrep -v '^ *\+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:15761: \$? = $ac_status" >&5
15762 (exit $ac_status); } >/dev/null; then
15763 if test -s conftest.err; then
15764 ac_cpp_err=$ac_c_preproc_warn_flag
15771 if test -z "$ac_cpp_err"; then
15772 eval "$as_ac_Header=yes"
15774 echo "$as_me: failed program was:" >&5
15775 cat conftest.$ac_ext >&5
15776 eval "$as_ac_Header=no"
15778 rm -f conftest.err conftest.$ac_ext
15780 echo "$as_me:15780: result: `eval echo '${'$as_ac_Header'}'`" >&5
15781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<EOF
15784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15791 if test "$ac_cv_header_termios_h" = yes ; then
15792 case "$CFLAGS $CPPFLAGS" in
15794 termios_bad=dunno ;;
15795 *) termios_bad=maybe ;;
15797 if test "$termios_bad" = maybe ; then
15798 echo "$as_me:15798: checking whether termios.h needs _POSIX_SOURCE" >&5
15799 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
15800 cat >conftest.$ac_ext <<_ACEOF
15801 #line 15801 "configure"
15802 #include "confdefs.h"
15803 #include <termios.h>
15807 struct termios foo; int x = foo.c_iflag
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:15813: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>&5
15816 echo "$as_me:15816: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -s conftest.$ac_objext'
15819 { (eval echo "$as_me:15819: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:15822: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15826 echo "$as_me: failed program was:" >&5
15827 cat conftest.$ac_ext >&5
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line 15830 "configure"
15831 #include "confdefs.h"
15833 #define _POSIX_SOURCE
15834 #include <termios.h>
15838 struct termios foo; int x = foo.c_iflag
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:15844: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>&5
15847 echo "$as_me:15847: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:15850: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:15853: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 termios_bad=unknown
15857 echo "$as_me: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15860 cat >>confdefs.h <<\EOF
15861 #define _POSIX_SOURCE 1
15865 rm -f conftest.$ac_objext conftest.$ac_ext
15868 rm -f conftest.$ac_objext conftest.$ac_ext
15869 echo "$as_me:15869: result: $termios_bad" >&5
15870 echo "${ECHO_T}$termios_bad" >&6
15874 echo "$as_me:15874: checking for tcgetattr" >&5
15875 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
15876 if test "${cf_cv_have_tcgetattr+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 cat >conftest.$ac_ext <<_ACEOF
15881 #line 15881 "configure"
15882 #include "confdefs.h"
15884 #include <sys/types.h>
15885 #ifdef HAVE_UNISTD_H
15886 #include <unistd.h>
15888 #ifdef HAVE_TERMIOS_H
15889 #include <termios.h>
15890 #define TTY struct termios
15892 #ifdef HAVE_TERMIO_H
15893 #include <termio.h>
15894 #define TTY struct termio
15903 tcgetattr(1, &foo);
15908 rm -f conftest.$ac_objext conftest$ac_exeext
15909 if { (eval echo "$as_me:15909: \"$ac_link\"") >&5
15910 (eval $ac_link) 2>&5
15912 echo "$as_me:15912: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -s conftest$ac_exeext'
15915 { (eval echo "$as_me:15915: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15918 echo "$as_me:15918: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 cf_cv_have_tcgetattr=yes
15922 echo "$as_me: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 cf_cv_have_tcgetattr=no
15926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15928 echo "$as_me:15928: result: $cf_cv_have_tcgetattr" >&5
15929 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
15930 test "$cf_cv_have_tcgetattr" = yes &&
15931 cat >>confdefs.h <<\EOF
15932 #define HAVE_TCGETATTR 1
15935 echo "$as_me:15935: checking for vsscanf function or workaround" >&5
15936 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
15937 if test "${cf_cv_func_vsscanf+set}" = set; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 cat >conftest.$ac_ext <<_ACEOF
15942 #line 15942 "configure"
15943 #include "confdefs.h"
15945 #include <stdarg.h>
15952 vsscanf("from", "%d", ap)
15957 rm -f conftest.$ac_objext conftest$ac_exeext
15958 if { (eval echo "$as_me:15958: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>&5
15961 echo "$as_me:15961: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -s conftest$ac_exeext'
15964 { (eval echo "$as_me:15964: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15967 echo "$as_me:15967: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 cf_cv_func_vsscanf=vsscanf
15971 echo "$as_me: failed program was:" >&5
15972 cat conftest.$ac_ext >&5
15974 cat >conftest.$ac_ext <<_ACEOF
15975 #line 15975 "configure"
15976 #include "confdefs.h"
15978 #include <stdarg.h>
15985 char *str = "from";
15987 strbuf._flag = _IOREAD;
15988 strbuf._ptr = strbuf._base = (unsigned char *) str;
15989 strbuf._cnt = strlen(str);
15990 strbuf._file = _NFILE;
15991 return (vfscanf(&strbuf, "%d", ap))
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (eval echo "$as_me:15997: \"$ac_link\"") >&5
15998 (eval $ac_link) 2>&5
16000 echo "$as_me:16000: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -s conftest$ac_exeext'
16003 { (eval echo "$as_me:16003: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:16006: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 cf_cv_func_vsscanf=vfscanf
16010 echo "$as_me: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16013 cat >conftest.$ac_ext <<_ACEOF
16014 #line 16014 "configure"
16015 #include "confdefs.h"
16017 #include <stdarg.h>
16024 char *str = "from";
16026 strbuf._flag = _IOREAD;
16027 strbuf._ptr = strbuf._base = (unsigned char *) str;
16028 strbuf._cnt = strlen(str);
16029 strbuf._file = _NFILE;
16030 return (_doscan(&strbuf, "%d", ap))
16035 rm -f conftest.$ac_objext conftest$ac_exeext
16036 if { (eval echo "$as_me:16036: \"$ac_link\"") >&5
16037 (eval $ac_link) 2>&5
16039 echo "$as_me:16039: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
16041 { ac_try='test -s conftest$ac_exeext'
16042 { (eval echo "$as_me:16042: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:16045: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 cf_cv_func_vsscanf=_doscan
16049 echo "$as_me: failed program was:" >&5
16050 cat conftest.$ac_ext >&5
16052 cf_cv_func_vsscanf=no
16054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16060 echo "$as_me:16060: result: $cf_cv_func_vsscanf" >&5
16061 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16063 case $cf_cv_func_vsscanf in #(vi
16065 cat >>confdefs.h <<\EOF
16066 #define HAVE_VSSCANF 1
16070 cat >>confdefs.h <<\EOF
16071 #define HAVE_VFSCANF 1
16075 cat >>confdefs.h <<\EOF
16076 #define HAVE__DOSCAN 1
16081 echo "$as_me:16081: checking for working mkstemp" >&5
16082 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16083 if test "${cf_cv_func_mkstemp+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 if test "$cross_compiling" = yes; then
16089 cf_cv_func_mkstemp=maybe
16091 cat >conftest.$ac_ext <<_ACEOF
16092 #line 16092 "configure"
16093 #include "confdefs.h"
16095 #include <sys/types.h>
16096 #include <stdlib.h>
16098 #include <string.h>
16099 #include <sys/stat.h>
16102 char *tmpl = "conftestXXXXXX";
16110 for (n = 0; n < 2; ++n) {
16111 strcpy(name[n], tmpl);
16112 if ((fd = mkstemp(name[n])) >= 0) {
16113 if (!strcmp(name[n], tmpl)
16114 || stat(name[n], &sb) != 0
16115 || (sb.st_mode & S_IFMT) != S_IFREG
16116 || (sb.st_mode & 077) != 0) {
16123 && !strcmp(name[0], name[1]))
16125 ${cf_cv_main_return:-return}(result);
16129 rm -f conftest$ac_exeext
16130 if { (eval echo "$as_me:16130: \"$ac_link\"") >&5
16131 (eval $ac_link) 2>&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16135 { (eval echo "$as_me:16135: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:16138: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 cf_cv_func_mkstemp=yes
16143 echo "$as_me: program exited with status $ac_status" >&5
16144 echo "$as_me: failed program was:" >&5
16145 cat conftest.$ac_ext >&5
16146 cf_cv_func_mkstemp=no
16149 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16153 echo "$as_me:16153: result: $cf_cv_func_mkstemp" >&5
16154 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16155 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
16156 echo "$as_me:16156: checking for mkstemp" >&5
16157 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16158 if test "${ac_cv_func_mkstemp+set}" = set; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16161 cat >conftest.$ac_ext <<_ACEOF
16162 #line 16162 "configure"
16163 #include "confdefs.h"
16164 /* System header to define __stub macros and hopefully few prototypes,
16165 which can conflict with char mkstemp (); below. */
16166 #include <assert.h>
16167 /* Override any gcc2 internal prototype to avoid an error. */
16171 /* We use char because int might match the return type of a gcc2
16172 builtin and then its argument prototype would still apply. */
16179 /* The GNU C library defines this for functions which it implements
16180 to always fail with ENOSYS. Some functions are actually named
16181 something starting with __ and the normal name is an alias. */
16182 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16185 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:16193: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16196 echo "$as_me:16196: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -s conftest$ac_exeext'
16199 { (eval echo "$as_me:16199: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:16202: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 ac_cv_func_mkstemp=yes
16206 echo "$as_me: failed program was:" >&5
16207 cat conftest.$ac_ext >&5
16208 ac_cv_func_mkstemp=no
16210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16212 echo "$as_me:16212: result: $ac_cv_func_mkstemp" >&5
16213 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16216 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16218 cat >>confdefs.h <<\EOF
16219 #define HAVE_MKSTEMP 1
16224 # setup for prototype of fallback for vsscanf()
16226 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16232 if test "x$cross_compiling" = xyes ; then
16233 { echo "$as_me:16233: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16234 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16236 echo "$as_me:16236: checking whether setvbuf arguments are reversed" >&5
16237 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16238 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 if test "$cross_compiling" = yes; then
16242 { { echo "$as_me:16242: error: cannot run test program while cross compiling" >&5
16243 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16244 { (exit 1); exit 1; }; }
16246 cat >conftest.$ac_ext <<_ACEOF
16247 #line 16247 "configure"
16248 #include "confdefs.h"
16250 /* If setvbuf has the reversed format, exit 0. */
16254 /* This call has the arguments reversed.
16255 A reversed system may check and see that the address of main
16256 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16257 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16258 $ac_main_return(1);
16259 putc('\r', stdout);
16260 $ac_main_return(0); /* Non-reversed systems segv here. */
16263 rm -f conftest$ac_exeext
16264 if { (eval echo "$as_me:16264: \"$ac_link\"") >&5
16265 (eval $ac_link) 2>&5
16267 echo "$as_me:16267: \$? = $ac_status" >&5
16268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16269 { (eval echo "$as_me:16269: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16272 echo "$as_me:16272: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_cv_func_setvbuf_reversed=yes
16276 echo "$as_me: program exited with status $ac_status" >&5
16277 echo "$as_me: failed program was:" >&5
16278 cat conftest.$ac_ext >&5
16279 ac_cv_func_setvbuf_reversed=no
16281 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16283 rm -f core core.* *.core
16285 echo "$as_me:16285: result: $ac_cv_func_setvbuf_reversed" >&5
16286 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16287 if test $ac_cv_func_setvbuf_reversed = yes; then
16289 cat >>confdefs.h <<\EOF
16290 #define SETVBUF_REVERSED 1
16296 echo "$as_me:16296: checking return type of signal handlers" >&5
16297 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16298 if test "${ac_cv_type_signal+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 cat >conftest.$ac_ext <<_ACEOF
16302 #line 16302 "configure"
16303 #include "confdefs.h"
16304 #include <sys/types.h>
16305 #include <signal.h>
16310 extern "C" void (*signal (int, void (*)(int)))(int);
16312 void (*signal ()) ();
16323 rm -f conftest.$ac_objext
16324 if { (eval echo "$as_me:16324: \"$ac_compile\"") >&5
16325 (eval $ac_compile) 2>&5
16327 echo "$as_me:16327: \$? = $ac_status" >&5
16328 (exit $ac_status); } &&
16329 { ac_try='test -s conftest.$ac_objext'
16330 { (eval echo "$as_me:16330: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16333 echo "$as_me:16333: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_cv_type_signal=void
16337 echo "$as_me: failed program was:" >&5
16338 cat conftest.$ac_ext >&5
16339 ac_cv_type_signal=int
16341 rm -f conftest.$ac_objext conftest.$ac_ext
16343 echo "$as_me:16343: result: $ac_cv_type_signal" >&5
16344 echo "${ECHO_T}$ac_cv_type_signal" >&6
16346 cat >>confdefs.h <<EOF
16347 #define RETSIGTYPE $ac_cv_type_signal
16350 echo "$as_me:16350: checking for intptr_t" >&5
16351 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16352 if test "${ac_cv_type_intptr_t+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 cat >conftest.$ac_ext <<_ACEOF
16356 #line 16356 "configure"
16357 #include "confdefs.h"
16358 $ac_includes_default
16362 if ((intptr_t *) 0)
16364 if (sizeof (intptr_t))
16370 rm -f conftest.$ac_objext
16371 if { (eval echo "$as_me:16371: \"$ac_compile\"") >&5
16372 (eval $ac_compile) 2>&5
16374 echo "$as_me:16374: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -s conftest.$ac_objext'
16377 { (eval echo "$as_me:16377: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16380 echo "$as_me:16380: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_cv_type_intptr_t=yes
16384 echo "$as_me: failed program was:" >&5
16385 cat conftest.$ac_ext >&5
16386 ac_cv_type_intptr_t=no
16388 rm -f conftest.$ac_objext conftest.$ac_ext
16390 echo "$as_me:16390: result: $ac_cv_type_intptr_t" >&5
16391 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16392 if test $ac_cv_type_intptr_t = yes; then
16396 cat >>confdefs.h <<EOF
16397 #define intptr_t long
16402 echo "$as_me:16402: checking for type sigaction_t" >&5
16403 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
16404 if test "${cf_cv_type_sigaction+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 cat >conftest.$ac_ext <<_ACEOF
16409 #line 16409 "configure"
16410 #include "confdefs.h"
16412 #include <signal.h>
16421 rm -f conftest.$ac_objext
16422 if { (eval echo "$as_me:16422: \"$ac_compile\"") >&5
16423 (eval $ac_compile) 2>&5
16425 echo "$as_me:16425: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (eval echo "$as_me:16428: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16431 echo "$as_me:16431: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 cf_cv_type_sigaction=yes
16435 echo "$as_me: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16437 cf_cv_type_sigaction=no
16439 rm -f conftest.$ac_objext conftest.$ac_ext
16442 echo "$as_me:16442: result: $cf_cv_type_sigaction" >&5
16443 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
16444 test "$cf_cv_type_sigaction" = yes &&
16445 cat >>confdefs.h <<\EOF
16446 #define HAVE_TYPE_SIGACTION 1
16449 echo "$as_me:16449: checking declaration of size-change" >&5
16450 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
16451 if test "${cf_cv_sizechange+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 cf_cv_sizechange=unknown
16456 cf_save_CPPFLAGS="$CPPFLAGS"
16458 for cf_opts in "" "NEED_PTEM_H"
16461 CPPFLAGS="$cf_save_CPPFLAGS"
16462 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
16463 cat >conftest.$ac_ext <<_ACEOF
16464 #line 16464 "configure"
16465 #include "confdefs.h"
16466 #include <sys/types.h>
16467 #ifdef HAVE_TERMIOS_H
16468 #include <termios.h>
16470 #ifdef HAVE_TERMIO_H
16471 #include <termio.h>
16475 /* This is a workaround for SCO: they neglected to define struct winsize in
16476 * termios.h -- it's only in termio.h and ptem.h
16478 #include <sys/stream.h>
16479 #include <sys/ptem.h>
16481 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
16482 #include <sys/ioctl.h>
16490 struct ttysize win; /* FIXME: what system is this? */
16491 int y = win.ts_lines;
16492 int x = win.ts_cols;
16495 struct winsize win;
16496 int y = win.ws_row;
16497 int x = win.ws_col;
16499 no TIOCGSIZE or TIOCGWINSZ
16500 #endif /* TIOCGWINSZ */
16501 #endif /* TIOCGSIZE */
16507 rm -f conftest.$ac_objext
16508 if { (eval echo "$as_me:16508: \"$ac_compile\"") >&5
16509 (eval $ac_compile) 2>&5
16511 echo "$as_me:16511: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try='test -s conftest.$ac_objext'
16514 { (eval echo "$as_me:16514: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16517 echo "$as_me:16517: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 cf_cv_sizechange=yes
16521 echo "$as_me: failed program was:" >&5
16522 cat conftest.$ac_ext >&5
16523 cf_cv_sizechange=no
16525 rm -f conftest.$ac_objext conftest.$ac_ext
16527 CPPFLAGS="$cf_save_CPPFLAGS"
16528 if test "$cf_cv_sizechange" = yes ; then
16529 echo "size-change succeeded ($cf_opts)" >&5
16530 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
16536 echo "$as_me:16536: result: $cf_cv_sizechange" >&5
16537 echo "${ECHO_T}$cf_cv_sizechange" >&6
16538 if test "$cf_cv_sizechange" != no ; then
16540 cat >>confdefs.h <<\EOF
16541 #define HAVE_SIZECHANGE 1
16544 case $cf_cv_sizechange in #(vi
16546 cat >>confdefs.h <<EOF
16547 #define $cf_cv_sizechange 1
16554 echo "$as_me:16554: checking for memmove" >&5
16555 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
16556 if test "${ac_cv_func_memmove+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 cat >conftest.$ac_ext <<_ACEOF
16560 #line 16560 "configure"
16561 #include "confdefs.h"
16562 /* System header to define __stub macros and hopefully few prototypes,
16563 which can conflict with char memmove (); below. */
16564 #include <assert.h>
16565 /* Override any gcc2 internal prototype to avoid an error. */
16569 /* We use char because int might match the return type of a gcc2
16570 builtin and then its argument prototype would still apply. */
16577 /* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580 #if defined (__stub_memmove) || defined (__stub___memmove)
16583 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (eval echo "$as_me:16591: \"$ac_link\"") >&5
16592 (eval $ac_link) 2>&5
16594 echo "$as_me:16594: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -s conftest$ac_exeext'
16597 { (eval echo "$as_me:16597: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16600 echo "$as_me:16600: \$? = $ac_status" >&5
16601 (exit $ac_status); }; }; then
16602 ac_cv_func_memmove=yes
16604 echo "$as_me: failed program was:" >&5
16605 cat conftest.$ac_ext >&5
16606 ac_cv_func_memmove=no
16608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16610 echo "$as_me:16610: result: $ac_cv_func_memmove" >&5
16611 echo "${ECHO_T}$ac_cv_func_memmove" >&6
16612 if test $ac_cv_func_memmove = yes; then
16616 echo "$as_me:16616: checking for bcopy" >&5
16617 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
16618 if test "${ac_cv_func_bcopy+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 cat >conftest.$ac_ext <<_ACEOF
16622 #line 16622 "configure"
16623 #include "confdefs.h"
16624 /* System header to define __stub macros and hopefully few prototypes,
16625 which can conflict with char bcopy (); below. */
16626 #include <assert.h>
16627 /* Override any gcc2 internal prototype to avoid an error. */
16631 /* We use char because int might match the return type of a gcc2
16632 builtin and then its argument prototype would still apply. */
16639 /* The GNU C library defines this for functions which it implements
16640 to always fail with ENOSYS. Some functions are actually named
16641 something starting with __ and the normal name is an alias. */
16642 #if defined (__stub_bcopy) || defined (__stub___bcopy)
16645 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16652 rm -f conftest.$ac_objext conftest$ac_exeext
16653 if { (eval echo "$as_me:16653: \"$ac_link\"") >&5
16654 (eval $ac_link) 2>&5
16656 echo "$as_me:16656: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
16658 { ac_try='test -s conftest$ac_exeext'
16659 { (eval echo "$as_me:16659: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16662 echo "$as_me:16662: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_func_bcopy=yes
16666 echo "$as_me: failed program was:" >&5
16667 cat conftest.$ac_ext >&5
16668 ac_cv_func_bcopy=no
16670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16672 echo "$as_me:16672: result: $ac_cv_func_bcopy" >&5
16673 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
16674 if test $ac_cv_func_bcopy = yes; then
16676 echo "$as_me:16676: checking if bcopy does overlapping moves" >&5
16677 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
16678 if test "${cf_cv_good_bcopy+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 if test "$cross_compiling" = yes; then
16683 cf_cv_good_bcopy=unknown
16685 cat >conftest.$ac_ext <<_ACEOF
16686 #line 16686 "configure"
16687 #include "confdefs.h"
16690 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16692 bcopy(data, temp, sizeof(data));
16693 bcopy(temp+10, temp, 15);
16694 bcopy(temp+5, temp+15, 10);
16695 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16699 rm -f conftest$ac_exeext
16700 if { (eval echo "$as_me:16700: \"$ac_link\"") >&5
16701 (eval $ac_link) 2>&5
16703 echo "$as_me:16703: \$? = $ac_status" >&5
16704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16705 { (eval echo "$as_me:16705: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 echo "$as_me:16708: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 cf_cv_good_bcopy=yes
16712 echo "$as_me: program exited with status $ac_status" >&5
16713 echo "$as_me: failed program was:" >&5
16714 cat conftest.$ac_ext >&5
16715 cf_cv_good_bcopy=no
16717 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16721 echo "$as_me:16721: result: $cf_cv_good_bcopy" >&5
16722 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
16725 cf_cv_good_bcopy=no
16728 if test "$cf_cv_good_bcopy" = yes ; then
16730 cat >>confdefs.h <<\EOF
16731 #define USE_OK_BCOPY 1
16736 cat >>confdefs.h <<\EOF
16737 #define USE_MY_MEMMOVE 1
16744 echo "$as_me:16744: checking if poll really works" >&5
16745 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
16746 if test "${cf_cv_working_poll+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 if test "$cross_compiling" = yes; then
16751 cf_cv_working_poll=unknown
16753 cat >conftest.$ac_ext <<_ACEOF
16754 #line 16754 "configure"
16755 #include "confdefs.h"
16757 #include <stdlib.h>
16759 #include <unistd.h>
16764 #include <sys/poll.h>
16767 struct pollfd myfds;
16770 /* check for Darwin bug with respect to "devices" */
16771 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
16774 myfds.events = POLLIN;
16777 ret = poll(&myfds, 1, 100);
16779 if (ret < 0 || (myfds.revents & POLLNVAL)) {
16784 fd = open("/dev/tty", 2); /* O_RDWR */
16788 /* also check with standard input */
16790 myfds.events = POLLIN;
16792 ret = poll(&myfds, 1, 100);
16797 ${cf_cv_main_return:-return}(ret < 0);
16800 rm -f conftest$ac_exeext
16801 if { (eval echo "$as_me:16801: \"$ac_link\"") >&5
16802 (eval $ac_link) 2>&5
16804 echo "$as_me:16804: \$? = $ac_status" >&5
16805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16806 { (eval echo "$as_me:16806: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:16809: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 cf_cv_working_poll=yes
16813 echo "$as_me: program exited with status $ac_status" >&5
16814 echo "$as_me: failed program was:" >&5
16815 cat conftest.$ac_ext >&5
16816 cf_cv_working_poll=no
16818 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16821 echo "$as_me:16821: result: $cf_cv_working_poll" >&5
16822 echo "${ECHO_T}$cf_cv_working_poll" >&6
16823 test "$cf_cv_working_poll" = "yes" &&
16824 cat >>confdefs.h <<\EOF
16825 #define HAVE_WORKING_POLL 1
16828 echo "$as_me:16828: checking for va_copy" >&5
16829 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
16830 if test "${cf_cv_have_va_copy+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 cat >conftest.$ac_ext <<_ACEOF
16835 #line 16835 "configure"
16836 #include "confdefs.h"
16838 #include <stdarg.h>
16844 static va_list dst;
16845 static va_list src;
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (eval echo "$as_me:16852: \"$ac_link\"") >&5
16853 (eval $ac_link) 2>&5
16855 echo "$as_me:16855: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -s conftest$ac_exeext'
16858 { (eval echo "$as_me:16858: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:16861: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 cf_cv_have_va_copy=yes
16865 echo "$as_me: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16867 cf_cv_have_va_copy=no
16869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16871 echo "$as_me:16871: result: $cf_cv_have_va_copy" >&5
16872 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
16874 test "$cf_cv_have_va_copy" = yes &&
16875 cat >>confdefs.h <<\EOF
16876 #define HAVE_VA_COPY 1
16879 echo "$as_me:16879: checking for __va_copy" >&5
16880 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16881 if test "${cf_cv_have___va_copy+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line 16886 "configure"
16887 #include "confdefs.h"
16889 #include <stdarg.h>
16895 static va_list dst;
16896 static va_list src;
16897 __va_copy(dst, src)
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (eval echo "$as_me:16903: \"$ac_link\"") >&5
16904 (eval $ac_link) 2>&5
16906 echo "$as_me:16906: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (eval echo "$as_me:16909: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16912 echo "$as_me:16912: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 cf_cv_have___va_copy=yes
16916 echo "$as_me: failed program was:" >&5
16917 cat conftest.$ac_ext >&5
16918 cf_cv_have___va_copy=no
16920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16922 echo "$as_me:16922: result: $cf_cv_have___va_copy" >&5
16923 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
16925 test "$cf_cv_have___va_copy" = yes &&
16926 cat >>confdefs.h <<\EOF
16927 #define HAVE___VA_COPY 1
16930 echo "$as_me:16930: checking for pid_t" >&5
16931 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16932 if test "${ac_cv_type_pid_t+set}" = set; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 cat >conftest.$ac_ext <<_ACEOF
16936 #line 16936 "configure"
16937 #include "confdefs.h"
16938 $ac_includes_default
16944 if (sizeof (pid_t))
16950 rm -f conftest.$ac_objext
16951 if { (eval echo "$as_me:16951: \"$ac_compile\"") >&5
16952 (eval $ac_compile) 2>&5
16954 echo "$as_me:16954: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -s conftest.$ac_objext'
16957 { (eval echo "$as_me:16957: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:16960: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_type_pid_t=yes
16964 echo "$as_me: failed program was:" >&5
16965 cat conftest.$ac_ext >&5
16966 ac_cv_type_pid_t=no
16968 rm -f conftest.$ac_objext conftest.$ac_ext
16970 echo "$as_me:16970: result: $ac_cv_type_pid_t" >&5
16971 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16972 if test $ac_cv_type_pid_t = yes; then
16976 cat >>confdefs.h <<EOF
16982 for ac_header in unistd.h vfork.h
16984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16985 echo "$as_me:16985: checking for $ac_header" >&5
16986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 cat >conftest.$ac_ext <<_ACEOF
16991 #line 16991 "configure"
16992 #include "confdefs.h"
16993 #include <$ac_header>
16995 if { (eval echo "$as_me:16995: \"$ac_cpp conftest.$ac_ext\"") >&5
16996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16998 egrep -v '^ *\+' conftest.er1 >conftest.err
17000 cat conftest.err >&5
17001 echo "$as_me:17001: \$? = $ac_status" >&5
17002 (exit $ac_status); } >/dev/null; then
17003 if test -s conftest.err; then
17004 ac_cpp_err=$ac_c_preproc_warn_flag
17011 if test -z "$ac_cpp_err"; then
17012 eval "$as_ac_Header=yes"
17014 echo "$as_me: failed program was:" >&5
17015 cat conftest.$ac_ext >&5
17016 eval "$as_ac_Header=no"
17018 rm -f conftest.err conftest.$ac_ext
17020 echo "$as_me:17020: result: `eval echo '${'$as_ac_Header'}'`" >&5
17021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17023 cat >>confdefs.h <<EOF
17024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030 for ac_func in fork vfork
17032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17033 echo "$as_me:17033: checking for $ac_func" >&5
17034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17035 if eval "test \"\${$as_ac_var+set}\" = set"; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 cat >conftest.$ac_ext <<_ACEOF
17039 #line 17039 "configure"
17040 #include "confdefs.h"
17041 /* System header to define __stub macros and hopefully few prototypes,
17042 which can conflict with char $ac_func (); below. */
17043 #include <assert.h>
17044 /* Override any gcc2 internal prototype to avoid an error. */
17048 /* We use char because int might match the return type of a gcc2
17049 builtin and then its argument prototype would still apply. */
17056 /* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17062 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (eval echo "$as_me:17070: \"$ac_link\"") >&5
17071 (eval $ac_link) 2>&5
17073 echo "$as_me:17073: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -s conftest$ac_exeext'
17076 { (eval echo "$as_me:17076: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:17079: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 eval "$as_ac_var=yes"
17083 echo "$as_me: failed program was:" >&5
17084 cat conftest.$ac_ext >&5
17085 eval "$as_ac_var=no"
17087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17089 echo "$as_me:17089: result: `eval echo '${'$as_ac_var'}'`" >&5
17090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17091 if test `eval echo '${'$as_ac_var'}'` = yes; then
17092 cat >>confdefs.h <<EOF
17093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17099 ac_cv_func_fork_works=$ac_cv_func_fork
17100 if test "x$ac_cv_func_fork" = xyes; then
17101 echo "$as_me:17101: checking for working fork" >&5
17102 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17103 if test "${ac_cv_func_fork_works+set}" = set; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 if test "$cross_compiling" = yes; then
17107 ac_cv_func_fork_works=cross
17109 cat >conftest.$ac_ext <<_ACEOF
17110 /* By Rüdiger Kuhlmann. */
17111 #include <sys/types.h>
17113 # include <unistd.h>
17115 /* Some systems only have a dummy stub for fork() */
17119 $ac_main_return (1);
17120 $ac_main_return (0);
17123 rm -f conftest$ac_exeext
17124 if { (eval echo "$as_me:17124: \"$ac_link\"") >&5
17125 (eval $ac_link) 2>&5
17127 echo "$as_me:17127: \$? = $ac_status" >&5
17128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17129 { (eval echo "$as_me:17129: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:17132: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_func_fork_works=yes
17136 echo "$as_me: program exited with status $ac_status" >&5
17137 echo "$as_me: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 ac_cv_func_fork_works=no
17141 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17144 echo "$as_me:17144: result: $ac_cv_func_fork_works" >&5
17145 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17148 if test "x$ac_cv_func_fork_works" = xcross; then
17150 *-*-amigaos* | *-*-msdosdjgpp*)
17151 # Override, as these systems have only a dummy fork() stub
17152 ac_cv_func_fork_works=no
17155 ac_cv_func_fork_works=yes
17158 { echo "$as_me:17158: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17159 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17161 ac_cv_func_vfork_works=$ac_cv_func_vfork
17162 if test "x$ac_cv_func_vfork" = xyes; then
17163 echo "$as_me:17163: checking for working vfork" >&5
17164 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17165 if test "${ac_cv_func_vfork_works+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 if test "$cross_compiling" = yes; then
17169 ac_cv_func_vfork_works=cross
17171 cat >conftest.$ac_ext <<_ACEOF
17172 #line 17172 "configure"
17173 #include "confdefs.h"
17174 /* Thanks to Paul Eggert for this test. */
17176 #include <sys/types.h>
17177 #include <sys/stat.h>
17179 # include <unistd.h>
17182 # include <vfork.h>
17184 /* On some sparc systems, changes by the child to local and incoming
17185 argument registers are propagated back to the parent. The compiler
17186 is told about this with #include <vfork.h>, but some compilers
17187 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17188 static variable whose address is put into a register that is
17189 clobbered by the vfork. */
17192 sparc_address_test (int arg)
17194 sparc_address_test (arg) int arg;
17197 static pid_t child;
17215 pid_t parent = getpid ();
17218 sparc_address_test ();
17223 /* Here is another test for sparc vfork register problems. This
17224 test uses lots of local variables, at least as many local
17225 variables as main has allocated so far including compiler
17226 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17227 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17228 reuse the register of parent for one of the local variables,
17229 since it will think that parent can't possibly be used any more
17230 in this routine. Assigning to the local variable will thus
17231 munge parent in the parent process. */
17233 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17234 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17235 /* Convince the compiler that p..p7 are live; otherwise, it might
17236 use the same hardware register for all 8 local variables. */
17237 if (p != p1 || p != p2 || p != p3 || p != p4
17238 || p != p5 || p != p6 || p != p7)
17241 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17242 from child file descriptors. If the child closes a descriptor
17243 before it execs or exits, this munges the parent's descriptor
17244 as well. Test for this by closing stdout in the child. */
17245 _exit(close(fileno(stdout)) != 0);
17250 while (wait(&status) != child)
17253 /* Was there some problem with vforking? */
17256 /* Did the child fail? (This shouldn't happen.) */
17259 /* Did the vfork/compiler bug occur? */
17260 || parent != getpid()
17262 /* Did the file descriptor bug occur? */
17263 || fstat(fileno(stdout), &st) != 0
17268 rm -f conftest$ac_exeext
17269 if { (eval echo "$as_me:17269: \"$ac_link\"") >&5
17270 (eval $ac_link) 2>&5
17272 echo "$as_me:17272: \$? = $ac_status" >&5
17273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17274 { (eval echo "$as_me:17274: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17277 echo "$as_me:17277: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 ac_cv_func_vfork_works=yes
17281 echo "$as_me: program exited with status $ac_status" >&5
17282 echo "$as_me: failed program was:" >&5
17283 cat conftest.$ac_ext >&5
17284 ac_cv_func_vfork_works=no
17286 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17289 echo "$as_me:17289: result: $ac_cv_func_vfork_works" >&5
17290 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17293 if test "x$ac_cv_func_fork_works" = xcross; then
17294 ac_cv_func_vfork_works=ac_cv_func_vfork
17295 { echo "$as_me:17295: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17296 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17299 if test "x$ac_cv_func_vfork_works" = xyes; then
17301 cat >>confdefs.h <<\EOF
17302 #define HAVE_WORKING_VFORK 1
17307 cat >>confdefs.h <<\EOF
17312 if test "x$ac_cv_func_fork_works" = xyes; then
17314 cat >>confdefs.h <<\EOF
17315 #define HAVE_WORKING_FORK 1
17320 # special check for test/ditto.c
17322 echo "$as_me:17322: checking for openpty in -lutil" >&5
17323 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17324 if test "${ac_cv_lib_util_openpty+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 ac_check_lib_save_LIBS=$LIBS
17328 LIBS="-lutil $LIBS"
17329 cat >conftest.$ac_ext <<_ACEOF
17330 #line 17330 "configure"
17331 #include "confdefs.h"
17333 /* Override any gcc2 internal prototype to avoid an error. */
17337 /* We use char because int might match the return type of a gcc2
17338 builtin and then its argument prototype would still apply. */
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (eval echo "$as_me:17349: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>&5
17352 echo "$as_me:17352: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -s conftest$ac_exeext'
17355 { (eval echo "$as_me:17355: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17358 echo "$as_me:17358: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_cv_lib_util_openpty=yes
17362 echo "$as_me: failed program was:" >&5
17363 cat conftest.$ac_ext >&5
17364 ac_cv_lib_util_openpty=no
17366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17367 LIBS=$ac_check_lib_save_LIBS
17369 echo "$as_me:17369: result: $ac_cv_lib_util_openpty" >&5
17370 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17371 if test $ac_cv_lib_util_openpty = yes; then
17377 echo "$as_me:17377: checking for openpty header" >&5
17378 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17379 if test "${cf_cv_func_openpty+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 cf_save_LIBS="$LIBS"
17384 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
17385 for cf_header in pty.h libutil.h util.h
17387 cat >conftest.$ac_ext <<_ACEOF
17388 #line 17388 "configure"
17389 #include "confdefs.h"
17391 #include <$cf_header>
17397 int x = openpty((int *)0, (int *)0, (char *)0,
17398 (struct termios *)0, (struct winsize *)0);
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (eval echo "$as_me:17405: \"$ac_link\"") >&5
17406 (eval $ac_link) 2>&5
17408 echo "$as_me:17408: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -s conftest$ac_exeext'
17411 { (eval echo "$as_me:17411: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:17414: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17417 cf_cv_func_openpty=$cf_header
17421 echo "$as_me: failed program was:" >&5
17422 cat conftest.$ac_ext >&5
17424 cf_cv_func_openpty=no
17427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17429 LIBS="$cf_save_LIBS"
17432 echo "$as_me:17432: result: $cf_cv_func_openpty" >&5
17433 echo "${ECHO_T}$cf_cv_func_openpty" >&6
17435 if test "$cf_cv_func_openpty" != no ; then
17437 cat >>confdefs.h <<EOF
17438 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
17441 cat >>confdefs.h <<\EOF
17442 #define USE_XTERM_PTY 1
17445 if test "x$cf_cv_lib_util" = xyes ; then
17446 TEST_LIBS="-lutil $TEST_LIBS"
17450 if test "$with_hashed_db" != no ; then
17452 cat >>confdefs.h <<\EOF
17453 #define USE_HASHED_DB 1
17456 case $with_hashed_db in #(vi
17460 if test -d "$with_hashed_db" ; then
17462 if test -n "$with_hashed_db/include" ; then
17463 for cf_add_incdir in $with_hashed_db/include
17465 while test $cf_add_incdir != /usr/include
17467 if test -d $cf_add_incdir
17470 if test -n "$CFLAGS$CPPFLAGS" ; then
17471 # a loop is needed to ensure we can add subdirs of existing dirs
17472 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17473 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17474 cf_have_incdir=yes; break
17479 if test "$cf_have_incdir" = no ; then
17480 if test "$cf_add_incdir" = /usr/local/include ; then
17481 if test "$GCC" = yes
17483 cf_save_CPPFLAGS=$CPPFLAGS
17484 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17485 cat >conftest.$ac_ext <<_ACEOF
17486 #line 17486 "configure"
17487 #include "confdefs.h"
17497 rm -f conftest.$ac_objext
17498 if { (eval echo "$as_me:17498: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>&5
17501 echo "$as_me:17501: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -s conftest.$ac_objext'
17504 { (eval echo "$as_me:17504: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17507 echo "$as_me:17507: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17511 echo "$as_me: failed program was:" >&5
17512 cat conftest.$ac_ext >&5
17515 rm -f conftest.$ac_objext conftest.$ac_ext
17516 CPPFLAGS=$cf_save_CPPFLAGS
17521 if test "$cf_have_incdir" = no ; then
17522 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17524 echo "${as_me:-configure}:17524: testing adding $cf_add_incdir to include-path ..." 1>&5
17526 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17528 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17529 test "$cf_top_incdir" = "$cf_add_incdir" && break
17530 cf_add_incdir="$cf_top_incdir"
17539 if test -n "$with_hashed_db/lib" ; then
17540 for cf_add_libdir in $with_hashed_db/lib
17542 if test $cf_add_libdir = /usr/lib ; then
17544 elif test -d $cf_add_libdir
17547 if test -n "$LDFLAGS$LIBS" ; then
17548 # a loop is needed to ensure we can add subdirs of existing dirs
17549 for cf_test_libdir in $LDFLAGS $LIBS ; do
17550 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
17551 cf_have_libdir=yes; break
17555 if test "$cf_have_libdir" = no ; then
17556 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
17558 echo "${as_me:-configure}:17558: testing adding $cf_add_libdir to library-path ..." 1>&5
17560 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
17569 echo "$as_me:17569: checking for db.h" >&5
17570 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
17571 if test "${ac_cv_header_db_h+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 cat >conftest.$ac_ext <<_ACEOF
17575 #line 17575 "configure"
17576 #include "confdefs.h"
17579 if { (eval echo "$as_me:17579: \"$ac_cpp conftest.$ac_ext\"") >&5
17580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17582 egrep -v '^ *\+' conftest.er1 >conftest.err
17584 cat conftest.err >&5
17585 echo "$as_me:17585: \$? = $ac_status" >&5
17586 (exit $ac_status); } >/dev/null; then
17587 if test -s conftest.err; then
17588 ac_cpp_err=$ac_c_preproc_warn_flag
17595 if test -z "$ac_cpp_err"; then
17596 ac_cv_header_db_h=yes
17598 echo "$as_me: failed program was:" >&5
17599 cat conftest.$ac_ext >&5
17600 ac_cv_header_db_h=no
17602 rm -f conftest.err conftest.$ac_ext
17604 echo "$as_me:17604: result: $ac_cv_header_db_h" >&5
17605 echo "${ECHO_T}$ac_cv_header_db_h" >&6
17606 if test $ac_cv_header_db_h = yes; then
17608 echo "$as_me:17608: checking for version of db" >&5
17609 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
17610 if test "${cf_cv_hashed_db_version+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 cf_cv_hashed_db_version=unknown
17616 for cf_db_version in 1 2 3 4 5
17619 echo "${as_me:-configure}:17619: testing checking for db version $cf_db_version ..." 1>&5
17621 cat >conftest.$ac_ext <<_ACEOF
17622 #line 17622 "configure"
17623 #include "confdefs.h"
17625 $ac_includes_default
17628 #ifdef DB_VERSION_MAJOR
17629 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
17630 #if $cf_db_version == DB_VERSION_MAJOR
17636 #if $cf_db_version == 1
17637 /* ok: assuming this is DB 1.8.5 */
17651 rm -f conftest.$ac_objext
17652 if { (eval echo "$as_me:17652: \"$ac_compile\"") >&5
17653 (eval $ac_compile) 2>&5
17655 echo "$as_me:17655: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -s conftest.$ac_objext'
17658 { (eval echo "$as_me:17658: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:17661: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17664 cf_cv_hashed_db_version=$cf_db_version
17668 echo "$as_me: failed program was:" >&5
17669 cat conftest.$ac_ext >&5
17671 rm -f conftest.$ac_objext conftest.$ac_ext
17675 echo "$as_me:17675: result: $cf_cv_hashed_db_version" >&5
17676 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
17678 if test "$cf_cv_hashed_db_version" = unknown ; then
17679 { { echo "$as_me:17679: error: Cannot determine version of db" >&5
17680 echo "$as_me: error: Cannot determine version of db" >&2;}
17681 { (exit 1); exit 1; }; }
17684 echo "$as_me:17684: checking for db libraries" >&5
17685 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
17686 if test "${cf_cv_hashed_db_libs+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 cf_cv_hashed_db_libs=unknown
17691 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
17693 cf_save_libs="$LIBS"
17694 if test -n "$cf_db_libs"; then
17695 LIBS="-l$cf_db_libs $LIBS"
17698 echo "${as_me:-configure}:17698: testing checking for library "$cf_db_libs" ..." 1>&5
17700 cat >conftest.$ac_ext <<_ACEOF
17701 #line 17701 "configure"
17702 #include "confdefs.h"
17704 $ac_includes_default
17711 char *path = "/tmp/foo";
17712 #ifdef DB_VERSION_MAJOR
17713 #if DB_VERSION_MAJOR >= 4
17715 db_create(&result, NULL, 0);
17716 result->open(result,
17723 #elif DB_VERSION_MAJOR >= 3
17725 db_create(&result, NULL, 0);
17726 result->open(result,
17732 #elif DB_VERSION_MAJOR >= 2
17741 #endif /* DB_VERSION_MAJOR */
17743 DB *result = dbopen(path,
17749 ${cf_cv_main_return:-return}(result != 0)
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (eval echo "$as_me:17756: \"$ac_link\"") >&5
17757 (eval $ac_link) 2>&5
17759 echo "$as_me:17759: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -s conftest$ac_exeext'
17762 { (eval echo "$as_me:17762: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:17765: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17768 if test -n "$cf_db_libs" ; then
17769 cf_cv_hashed_db_libs=$cf_db_libs
17771 cf_cv_hashed_db_libs=default
17773 LIBS="$cf_save_libs"
17777 echo "$as_me: failed program was:" >&5
17778 cat conftest.$ac_ext >&5
17780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17781 LIBS="$cf_save_libs"
17785 echo "$as_me:17785: result: $cf_cv_hashed_db_libs" >&5
17786 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
17788 if test "$cf_cv_hashed_db_libs" = unknown ; then
17789 { { echo "$as_me:17789: error: Cannot determine library for db" >&5
17790 echo "$as_me: error: Cannot determine library for db" >&2;}
17791 { (exit 1); exit 1; }; }
17792 elif test "$cf_cv_hashed_db_libs" != default ; then
17793 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
17799 { { echo "$as_me:17799: error: Cannot find db.h" >&5
17800 echo "$as_me: error: Cannot find db.h" >&2;}
17801 { (exit 1); exit 1; }; }
17807 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17808 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17809 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17812 # Just in case, check if the C compiler has a bool type.
17814 echo "$as_me:17814: checking if we should include stdbool.h" >&5
17815 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17817 if test "${cf_cv_header_stdbool_h+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 cat >conftest.$ac_ext <<_ACEOF
17822 #line 17822 "configure"
17823 #include "confdefs.h"
17833 rm -f conftest.$ac_objext
17834 if { (eval echo "$as_me:17834: \"$ac_compile\"") >&5
17835 (eval $ac_compile) 2>&5
17837 echo "$as_me:17837: \$? = $ac_status" >&5
17838 (exit $ac_status); } &&
17839 { ac_try='test -s conftest.$ac_objext'
17840 { (eval echo "$as_me:17840: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17843 echo "$as_me:17843: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 cf_cv_header_stdbool_h=0
17847 echo "$as_me: failed program was:" >&5
17848 cat conftest.$ac_ext >&5
17849 cat >conftest.$ac_ext <<_ACEOF
17850 #line 17850 "configure"
17851 #include "confdefs.h"
17854 #include <stdbool.h>
17865 rm -f conftest.$ac_objext
17866 if { (eval echo "$as_me:17866: \"$ac_compile\"") >&5
17867 (eval $ac_compile) 2>&5
17869 echo "$as_me:17869: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:17872: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17875 echo "$as_me:17875: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17877 cf_cv_header_stdbool_h=1
17879 echo "$as_me: failed program was:" >&5
17880 cat conftest.$ac_ext >&5
17881 cf_cv_header_stdbool_h=0
17883 rm -f conftest.$ac_objext conftest.$ac_ext
17885 rm -f conftest.$ac_objext conftest.$ac_ext
17888 if test "$cf_cv_header_stdbool_h" = 1
17889 then echo "$as_me:17889: result: yes" >&5
17890 echo "${ECHO_T}yes" >&6
17891 else echo "$as_me:17891: result: no" >&5
17892 echo "${ECHO_T}no" >&6
17895 echo "$as_me:17895: checking for builtin bool type" >&5
17896 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17898 if test "${cf_cv_cc_bool_type+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 cat >conftest.$ac_ext <<_ACEOF
17903 #line 17903 "configure"
17904 #include "confdefs.h"
17907 #include <sys/types.h>
17917 rm -f conftest.$ac_objext
17918 if { (eval echo "$as_me:17918: \"$ac_compile\"") >&5
17919 (eval $ac_compile) 2>&5
17921 echo "$as_me:17921: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try='test -s conftest.$ac_objext'
17924 { (eval echo "$as_me:17924: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17927 echo "$as_me:17927: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 cf_cv_cc_bool_type=1
17931 echo "$as_me: failed program was:" >&5
17932 cat conftest.$ac_ext >&5
17933 cf_cv_cc_bool_type=0
17935 rm -f conftest.$ac_objext conftest.$ac_ext
17939 if test "$cf_cv_cc_bool_type" = 1
17940 then echo "$as_me:17940: result: yes" >&5
17941 echo "${ECHO_T}yes" >&6
17942 else echo "$as_me:17942: result: no" >&5
17943 echo "${ECHO_T}no" >&6
17946 # Check for C++ compiler characteristics (and ensure that it's there!)
17947 if test -n "$CXX" ; then
17949 ac_cpp='$CXXCPP $CPPFLAGS'
17950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17953 ac_main_return=return
17955 if test -n "$GXX" ; then
17956 case $cf_cv_system_name in #(vi
17958 cf_stdcpp_libname=stdcpp
17961 cf_stdcpp_libname=stdc++
17964 echo "$as_me:17964: checking for library $cf_stdcpp_libname" >&5
17965 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
17966 if test "${cf_cv_libstdcpp+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 LIBS="-l$cf_stdcpp_libname $LIBS"
17972 cat >conftest.$ac_ext <<_ACEOF
17973 #line 17973 "configure"
17974 #include "confdefs.h"
17976 #include <strstream.h>
17982 strstreambuf foo(buf, sizeof(buf))
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (eval echo "$as_me:17989: \"$ac_link\"") >&5
17990 (eval $ac_link) 2>&5
17992 echo "$as_me:17992: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -s conftest$ac_exeext'
17995 { (eval echo "$as_me:17995: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:17998: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 cf_cv_libstdcpp=yes
18002 echo "$as_me: failed program was:" >&5
18003 cat conftest.$ac_ext >&5
18006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18010 echo "$as_me:18010: result: $cf_cv_libstdcpp" >&5
18011 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
18012 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
18015 echo "$as_me:18015: checking whether $CXX understands -c and -o together" >&5
18016 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
18017 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 cat > conftest.$ac_ext <<CF_EOF
18025 ${cf_cv_main_return:-return}(0);
18028 # We do the test twice because some compilers refuse to overwrite an
18029 # existing .o file with -o, though they will create one.
18030 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18031 if { (eval echo "$as_me:18031: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:18034: \$? = $ac_status" >&5
18035 (exit $ac_status); } &&
18036 test -f conftest2.$ac_objext && { (eval echo "$as_me:18036: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:18039: \$? = $ac_status" >&5
18040 (exit $ac_status); };
18042 eval cf_cv_prog_CXX_c_o=yes
18044 eval cf_cv_prog_CXX_c_o=no
18049 if test $cf_cv_prog_CXX_c_o = yes; then
18050 echo "$as_me:18050: result: yes" >&5
18051 echo "${ECHO_T}yes" >&6
18053 echo "$as_me:18053: result: no" >&5
18054 echo "${ECHO_T}no" >&6
18057 case $GXX_VERSION in
18063 cf_cxx_library=unknown
18064 case $cf_cv_system_name in #(vi
18072 if test "$GXX" = yes; then
18073 echo "$as_me:18073: checking for lib$cf_gpp_libname" >&5
18074 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
18076 LIBS="-l$cf_gpp_libname $LIBS"
18077 cat >conftest.$ac_ext <<_ACEOF
18078 #line 18078 "configure"
18079 #include "confdefs.h"
18081 #include <$cf_gpp_libname/builtin.h>
18086 two_arg_error_handler_t foo2 = lib_error_handler
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (eval echo "$as_me:18092: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>&5
18095 echo "$as_me:18095: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try='test -s conftest$ac_exeext'
18098 { (eval echo "$as_me:18098: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18101 echo "$as_me:18101: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18104 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18105 if test "$cf_gpp_libname" = cpp ; then
18107 cat >>confdefs.h <<\EOF
18108 #define HAVE_GPP_BUILTIN_H 1
18113 cat >>confdefs.h <<\EOF
18114 #define HAVE_GXX_BUILTIN_H 1
18119 echo "$as_me: failed program was:" >&5
18120 cat conftest.$ac_ext >&5
18121 cat >conftest.$ac_ext <<_ACEOF
18122 #line 18122 "configure"
18123 #include "confdefs.h"
18125 #include <builtin.h>
18130 two_arg_error_handler_t foo2 = lib_error_handler
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (eval echo "$as_me:18136: \"$ac_link\"") >&5
18137 (eval $ac_link) 2>&5
18139 echo "$as_me:18139: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -s conftest$ac_exeext'
18142 { (eval echo "$as_me:18142: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18145 echo "$as_me:18145: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18148 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18150 cat >>confdefs.h <<\EOF
18151 #define HAVE_BUILTIN_H 1
18155 echo "$as_me: failed program was:" >&5
18156 cat conftest.$ac_ext >&5
18159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18163 echo "$as_me:18163: result: $cf_cxx_library" >&5
18164 echo "${ECHO_T}$cf_cxx_library" >&6
18174 ac_cpp='$CXXCPP $CPPFLAGS'
18175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18178 ac_main_return=return
18179 echo "$as_me:18179: checking how to run the C++ preprocessor" >&5
18180 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18181 if test -z "$CXXCPP"; then
18182 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 # Double quotes because CXXCPP needs to be expanded
18186 for CXXCPP in "$CXX -E" "/lib/cpp"
18188 ac_preproc_ok=false
18189 for ac_cxx_preproc_warn_flag in '' yes
18191 # Use a header file that comes with gcc, so configuring glibc
18192 # with a fresh cross-compiler works.
18193 # On the NeXT, cc -E runs the code through the compiler's parser,
18194 # not just through cpp. "Syntax error" is here to catch this case.
18195 cat >conftest.$ac_ext <<_ACEOF
18196 #line 18196 "configure"
18197 #include "confdefs.h"
18198 #include <assert.h>
18201 if { (eval echo "$as_me:18201: \"$ac_cpp conftest.$ac_ext\"") >&5
18202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18204 egrep -v '^ *\+' conftest.er1 >conftest.err
18206 cat conftest.err >&5
18207 echo "$as_me:18207: \$? = $ac_status" >&5
18208 (exit $ac_status); } >/dev/null; then
18209 if test -s conftest.err; then
18210 ac_cpp_err=$ac_cxx_preproc_warn_flag
18217 if test -z "$ac_cpp_err"; then
18220 echo "$as_me: failed program was:" >&5
18221 cat conftest.$ac_ext >&5
18222 # Broken: fails on valid input.
18225 rm -f conftest.err conftest.$ac_ext
18227 # OK, works on sane cases. Now check whether non-existent headers
18228 # can be detected and how.
18229 cat >conftest.$ac_ext <<_ACEOF
18230 #line 18230 "configure"
18231 #include "confdefs.h"
18232 #include <ac_nonexistent.h>
18234 if { (eval echo "$as_me:18234: \"$ac_cpp conftest.$ac_ext\"") >&5
18235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18237 egrep -v '^ *\+' conftest.er1 >conftest.err
18239 cat conftest.err >&5
18240 echo "$as_me:18240: \$? = $ac_status" >&5
18241 (exit $ac_status); } >/dev/null; then
18242 if test -s conftest.err; then
18243 ac_cpp_err=$ac_cxx_preproc_warn_flag
18250 if test -z "$ac_cpp_err"; then
18251 # Broken: success on invalid input.
18254 echo "$as_me: failed program was:" >&5
18255 cat conftest.$ac_ext >&5
18256 # Passes both tests.
18260 rm -f conftest.err conftest.$ac_ext
18263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18264 rm -f conftest.err conftest.$ac_ext
18265 if $ac_preproc_ok; then
18270 ac_cv_prog_CXXCPP=$CXXCPP
18273 CXXCPP=$ac_cv_prog_CXXCPP
18275 ac_cv_prog_CXXCPP=$CXXCPP
18277 echo "$as_me:18277: result: $CXXCPP" >&5
18278 echo "${ECHO_T}$CXXCPP" >&6
18279 ac_preproc_ok=false
18280 for ac_cxx_preproc_warn_flag in '' yes
18282 # Use a header file that comes with gcc, so configuring glibc
18283 # with a fresh cross-compiler works.
18284 # On the NeXT, cc -E runs the code through the compiler's parser,
18285 # not just through cpp. "Syntax error" is here to catch this case.
18286 cat >conftest.$ac_ext <<_ACEOF
18287 #line 18287 "configure"
18288 #include "confdefs.h"
18289 #include <assert.h>
18292 if { (eval echo "$as_me:18292: \"$ac_cpp conftest.$ac_ext\"") >&5
18293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18295 egrep -v '^ *\+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:18298: \$? = $ac_status" >&5
18299 (exit $ac_status); } >/dev/null; then
18300 if test -s conftest.err; then
18301 ac_cpp_err=$ac_cxx_preproc_warn_flag
18308 if test -z "$ac_cpp_err"; then
18311 echo "$as_me: failed program was:" >&5
18312 cat conftest.$ac_ext >&5
18313 # Broken: fails on valid input.
18316 rm -f conftest.err conftest.$ac_ext
18318 # OK, works on sane cases. Now check whether non-existent headers
18319 # can be detected and how.
18320 cat >conftest.$ac_ext <<_ACEOF
18321 #line 18321 "configure"
18322 #include "confdefs.h"
18323 #include <ac_nonexistent.h>
18325 if { (eval echo "$as_me:18325: \"$ac_cpp conftest.$ac_ext\"") >&5
18326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18328 egrep -v '^ *\+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 echo "$as_me:18331: \$? = $ac_status" >&5
18332 (exit $ac_status); } >/dev/null; then
18333 if test -s conftest.err; then
18334 ac_cpp_err=$ac_cxx_preproc_warn_flag
18341 if test -z "$ac_cpp_err"; then
18342 # Broken: success on invalid input.
18345 echo "$as_me: failed program was:" >&5
18346 cat conftest.$ac_ext >&5
18347 # Passes both tests.
18351 rm -f conftest.err conftest.$ac_ext
18354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18355 rm -f conftest.err conftest.$ac_ext
18356 if $ac_preproc_ok; then
18359 { { echo "$as_me:18359: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
18360 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
18361 { (exit 1); exit 1; }; }
18365 ac_cpp='$CXXCPP $CPPFLAGS'
18366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18369 ac_main_return=return
18371 for ac_header in typeinfo
18373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18374 echo "$as_me:18374: checking for $ac_header" >&5
18375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 cat >conftest.$ac_ext <<_ACEOF
18380 #line 18380 "configure"
18381 #include "confdefs.h"
18382 #include <$ac_header>
18384 if { (eval echo "$as_me:18384: \"$ac_cpp conftest.$ac_ext\"") >&5
18385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18387 egrep -v '^ *\+' conftest.er1 >conftest.err
18389 cat conftest.err >&5
18390 echo "$as_me:18390: \$? = $ac_status" >&5
18391 (exit $ac_status); } >/dev/null; then
18392 if test -s conftest.err; then
18393 ac_cpp_err=$ac_cxx_preproc_warn_flag
18400 if test -z "$ac_cpp_err"; then
18401 eval "$as_ac_Header=yes"
18403 echo "$as_me: failed program was:" >&5
18404 cat conftest.$ac_ext >&5
18405 eval "$as_ac_Header=no"
18407 rm -f conftest.err conftest.$ac_ext
18409 echo "$as_me:18409: result: `eval echo '${'$as_ac_Header'}'`" >&5
18410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18412 cat >>confdefs.h <<EOF
18413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18419 for ac_header in iostream
18421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18422 echo "$as_me:18422: checking for $ac_header" >&5
18423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 cat >conftest.$ac_ext <<_ACEOF
18428 #line 18428 "configure"
18429 #include "confdefs.h"
18430 #include <$ac_header>
18432 if { (eval echo "$as_me:18432: \"$ac_cpp conftest.$ac_ext\"") >&5
18433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18435 egrep -v '^ *\+' conftest.er1 >conftest.err
18437 cat conftest.err >&5
18438 echo "$as_me:18438: \$? = $ac_status" >&5
18439 (exit $ac_status); } >/dev/null; then
18440 if test -s conftest.err; then
18441 ac_cpp_err=$ac_cxx_preproc_warn_flag
18448 if test -z "$ac_cpp_err"; then
18449 eval "$as_ac_Header=yes"
18451 echo "$as_me: failed program was:" >&5
18452 cat conftest.$ac_ext >&5
18453 eval "$as_ac_Header=no"
18455 rm -f conftest.err conftest.$ac_ext
18457 echo "$as_me:18457: result: `eval echo '${'$as_ac_Header'}'`" >&5
18458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18460 cat >>confdefs.h <<EOF
18461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18467 if test x"$ac_cv_header_iostream" = xyes ; then
18468 echo "$as_me:18468: checking if iostream uses std-namespace" >&5
18469 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
18470 cat >conftest.$ac_ext <<_ACEOF
18471 #line 18471 "configure"
18472 #include "confdefs.h"
18474 #include <iostream>
18481 cerr << "testing" << endl;
18487 rm -f conftest.$ac_objext
18488 if { (eval echo "$as_me:18488: \"$ac_compile\"") >&5
18489 (eval $ac_compile) 2>&5
18491 echo "$as_me:18491: \$? = $ac_status" >&5
18492 (exit $ac_status); } &&
18493 { ac_try='test -s conftest.$ac_objext'
18494 { (eval echo "$as_me:18494: \"$ac_try\"") >&5
18495 (eval $ac_try) 2>&5
18497 echo "$as_me:18497: \$? = $ac_status" >&5
18498 (exit $ac_status); }; }; then
18499 cf_iostream_namespace=yes
18501 echo "$as_me: failed program was:" >&5
18502 cat conftest.$ac_ext >&5
18503 cf_iostream_namespace=no
18505 rm -f conftest.$ac_objext conftest.$ac_ext
18506 echo "$as_me:18506: result: $cf_iostream_namespace" >&5
18507 echo "${ECHO_T}$cf_iostream_namespace" >&6
18508 if test "$cf_iostream_namespace" = yes ; then
18510 cat >>confdefs.h <<\EOF
18511 #define IOSTREAM_NAMESPACE 1
18517 echo "$as_me:18517: checking if we should include stdbool.h" >&5
18518 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18520 if test "${cf_cv_header_stdbool_h+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18524 cat >conftest.$ac_ext <<_ACEOF
18525 #line 18525 "configure"
18526 #include "confdefs.h"
18536 rm -f conftest.$ac_objext
18537 if { (eval echo "$as_me:18537: \"$ac_compile\"") >&5
18538 (eval $ac_compile) 2>&5
18540 echo "$as_me:18540: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -s conftest.$ac_objext'
18543 { (eval echo "$as_me:18543: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:18546: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 cf_cv_header_stdbool_h=0
18550 echo "$as_me: failed program was:" >&5
18551 cat conftest.$ac_ext >&5
18552 cat >conftest.$ac_ext <<_ACEOF
18553 #line 18553 "configure"
18554 #include "confdefs.h"
18557 #include <stdbool.h>
18568 rm -f conftest.$ac_objext
18569 if { (eval echo "$as_me:18569: \"$ac_compile\"") >&5
18570 (eval $ac_compile) 2>&5
18572 echo "$as_me:18572: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -s conftest.$ac_objext'
18575 { (eval echo "$as_me:18575: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18578 echo "$as_me:18578: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 cf_cv_header_stdbool_h=1
18582 echo "$as_me: failed program was:" >&5
18583 cat conftest.$ac_ext >&5
18584 cf_cv_header_stdbool_h=0
18586 rm -f conftest.$ac_objext conftest.$ac_ext
18588 rm -f conftest.$ac_objext conftest.$ac_ext
18591 if test "$cf_cv_header_stdbool_h" = 1
18592 then echo "$as_me:18592: result: yes" >&5
18593 echo "${ECHO_T}yes" >&6
18594 else echo "$as_me:18594: result: no" >&5
18595 echo "${ECHO_T}no" >&6
18598 echo "$as_me:18598: checking for builtin bool type" >&5
18599 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18601 if test "${cf_cv_builtin_bool+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 cat >conftest.$ac_ext <<_ACEOF
18606 #line 18606 "configure"
18607 #include "confdefs.h"
18610 #include <sys/types.h>
18620 rm -f conftest.$ac_objext
18621 if { (eval echo "$as_me:18621: \"$ac_compile\"") >&5
18622 (eval $ac_compile) 2>&5
18624 echo "$as_me:18624: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -s conftest.$ac_objext'
18627 { (eval echo "$as_me:18627: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18630 echo "$as_me:18630: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 cf_cv_builtin_bool=1
18634 echo "$as_me: failed program was:" >&5
18635 cat conftest.$ac_ext >&5
18636 cf_cv_builtin_bool=0
18638 rm -f conftest.$ac_objext conftest.$ac_ext
18642 if test "$cf_cv_builtin_bool" = 1
18643 then echo "$as_me:18643: result: yes" >&5
18644 echo "${ECHO_T}yes" >&6
18645 else echo "$as_me:18645: result: no" >&5
18646 echo "${ECHO_T}no" >&6
18649 echo "$as_me:18649: checking for size of bool" >&5
18650 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18651 if test "${cf_cv_type_of_bool+set}" = set; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 if test "$cross_compiling" = yes; then
18657 cf_cv_type_of_bool=unknown
18659 cat >conftest.$ac_ext <<_ACEOF
18660 #line 18660 "configure"
18661 #include "confdefs.h"
18663 #include <stdlib.h>
18666 #if defined(__cplusplus)
18668 #ifdef HAVE_GXX_BUILTIN_H
18669 #include <g++/builtin.h>
18670 #elif HAVE_GPP_BUILTIN_H
18671 #include <gpp/builtin.h>
18672 #elif HAVE_BUILTIN_H
18673 #include <builtin.h>
18678 #if $cf_cv_header_stdbool_h
18679 #include <stdbool.h>
18686 FILE *fp = fopen("cf_test.out", "w");
18689 if ((bool)(-x) >= 0)
18690 fputs("unsigned ", fp);
18691 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18692 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18693 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18694 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18697 ${cf_cv_main_return:-return}(0);
18701 rm -f conftest$ac_exeext
18702 if { (eval echo "$as_me:18702: \"$ac_link\"") >&5
18703 (eval $ac_link) 2>&5
18705 echo "$as_me:18705: \$? = $ac_status" >&5
18706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18707 { (eval echo "$as_me:18707: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:18710: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 cf_cv_type_of_bool=`cat cf_test.out`
18713 if test -z "$cf_cv_type_of_bool"; then
18714 cf_cv_type_of_bool=unknown
18717 echo "$as_me: program exited with status $ac_status" >&5
18718 echo "$as_me: failed program was:" >&5
18719 cat conftest.$ac_ext >&5
18720 cf_cv_type_of_bool=unknown
18722 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18728 echo "$as_me:18728: result: $cf_cv_type_of_bool" >&5
18729 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18730 if test "$cf_cv_type_of_bool" = unknown ; then
18731 case .$NCURSES_BOOL in #(vi
18732 .auto|.) NCURSES_BOOL=unsigned;;
18734 { echo "$as_me:18734: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18735 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18736 cf_cv_type_of_bool=$NCURSES_BOOL
18739 echo "$as_me:18739: checking for special defines needed for etip.h" >&5
18740 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
18741 cf_save_CXXFLAGS="$CXXFLAGS"
18744 # etip.h includes ncurses.h which includes ncurses_dll.h
18745 # But ncurses_dll.h is generated - fix here.
18746 test -d include || mkdir include
18747 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
18749 for cf_math in "" MATH_H
18751 for cf_excp in "" MATH_EXCEPTION
18753 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
18754 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
18755 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
18756 cat >conftest.$ac_ext <<_ACEOF
18757 #line 18757 "configure"
18758 #include "confdefs.h"
18760 #include <etip.h.in>
18770 rm -f conftest.$ac_objext
18771 if { (eval echo "$as_me:18771: \"$ac_compile\"") >&5
18772 (eval $ac_compile) 2>&5
18774 echo "$as_me:18774: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -s conftest.$ac_objext'
18777 { (eval echo "$as_me:18777: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18780 echo "$as_me:18780: \$? = $ac_status" >&5
18781 (exit $ac_status); }; }; then
18783 test -n "$cf_math" && cat >>confdefs.h <<EOF
18784 #define ETIP_NEEDS_${cf_math} 1
18787 test -n "$cf_excp" && cat >>confdefs.h <<EOF
18788 #define ETIP_NEEDS_${cf_excp} 1
18791 cf_result="$cf_math $cf_excp"
18795 echo "$as_me: failed program was:" >&5
18796 cat conftest.$ac_ext >&5
18798 rm -f conftest.$ac_objext conftest.$ac_ext
18801 echo "$as_me:18801: result: $cf_result" >&5
18802 echo "${ECHO_T}$cf_result" >&6
18803 CXXFLAGS="$cf_save_CXXFLAGS"
18805 if test -n "$CXX"; then
18806 echo "$as_me:18806: checking if $CXX accepts parameter initialization" >&5
18807 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
18808 if test "${cf_cv_cpp_param_init+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 ac_cpp='$CXXCPP $CPPFLAGS'
18814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18817 ac_main_return=return
18819 if test "$cross_compiling" = yes; then
18820 cf_cv_cpp_param_init=unknown
18822 cat >conftest.$ac_ext <<_ACEOF
18823 #line 18823 "configure"
18824 #include "confdefs.h"
18834 TEST::TEST(int x = 1) // some compilers do not like second initializer
18841 rm -f conftest$ac_exeext
18842 if { (eval echo "$as_me:18842: \"$ac_link\"") >&5
18843 (eval $ac_link) 2>&5
18845 echo "$as_me:18845: \$? = $ac_status" >&5
18846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18847 { (eval echo "$as_me:18847: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18850 echo "$as_me:18850: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 cf_cv_cpp_param_init=yes
18854 echo "$as_me: program exited with status $ac_status" >&5
18855 echo "$as_me: failed program was:" >&5
18856 cat conftest.$ac_ext >&5
18857 cf_cv_cpp_param_init=no
18859 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18862 ac_cpp='$CXXCPP $CPPFLAGS'
18863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18866 ac_main_return=return
18869 echo "$as_me:18869: result: $cf_cv_cpp_param_init" >&5
18870 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
18872 test "$cf_cv_cpp_param_init" = yes &&
18873 cat >>confdefs.h <<\EOF
18874 #define CPP_HAS_PARAM_INIT 1
18877 if test -n "$CXX"; then
18879 echo "$as_me:18879: checking if $CXX accepts static_cast" >&5
18880 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
18881 if test "${cf_cv_cpp_static_cast+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 ac_cpp='$CXXCPP $CPPFLAGS'
18887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18890 ac_main_return=return
18892 cat >conftest.$ac_ext <<_ACEOF
18893 #line 18893 "configure"
18894 #include "confdefs.h"
18899 NCursesPanel(int nlines,
18909 template<class T> class NCursesUserPanel : public NCursesPanel
18912 NCursesUserPanel (int nlines,
18916 const T* p_UserData = static_cast<T*>(0))
18917 : NCursesPanel (nlines, ncols, begin_y, begin_x)
18920 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
18924 virtual ~NCursesUserPanel() {};
18931 const char* p_UserData = static_cast<char*>(0)
18936 rm -f conftest.$ac_objext
18937 if { (eval echo "$as_me:18937: \"$ac_compile\"") >&5
18938 (eval $ac_compile) 2>&5
18940 echo "$as_me:18940: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -s conftest.$ac_objext'
18943 { (eval echo "$as_me:18943: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18946 echo "$as_me:18946: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 cf_cv_cpp_static_cast=yes
18950 echo "$as_me: failed program was:" >&5
18951 cat conftest.$ac_ext >&5
18952 cf_cv_cpp_static_cast=no
18954 rm -f conftest.$ac_objext conftest.$ac_ext
18957 ac_cpp='$CXXCPP $CPPFLAGS'
18958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18961 ac_main_return=return
18964 echo "$as_me:18964: result: $cf_cv_cpp_static_cast" >&5
18965 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
18969 test "$cf_cv_cpp_static_cast" = yes &&
18970 cat >>confdefs.h <<\EOF
18971 #define CPP_HAS_STATIC_CAST 1
18975 CXX_ARFLAGS='$(ARFLAGS)'
18976 case $cf_cv_system_name in #(vi
18978 if test "$GXX" != yes ; then
18980 CXX_ARFLAGS='-ar -o'
18984 CXXLDFLAGS="-u main"
18987 if test "$GXX" != yes ; then
18989 CXX_ARFLAGS='-xar -o'
18996 cf_cv_builtin_bool=1
18998 # Just because we are not configuring against C++ right now does not
18999 # mean that a user will not want to use C++. Some distributors disable
19000 # the C++ portion of this configuration as a shortcut (or just to avoid
19001 # compiling the demo in the c++ directory). So we need a reasonable
19002 # default for the 'bool' type.
19004 # Caveat: since the storage of the bool type is not standardized, it
19007 if test "$NCURSES_BOOL" != auto ; then
19008 cf_cv_type_of_bool=$NCURSES_BOOL
19009 cf_cv_header_stdbool_h=0
19011 if test "$cf_cv_header_stdbool_h" = 1 ; then
19013 echo "$as_me:19013: checking for size of bool" >&5
19014 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19015 if test "${cf_cv_type_of_bool+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19020 if test "$cross_compiling" = yes; then
19021 cf_cv_type_of_bool=unknown
19023 cat >conftest.$ac_ext <<_ACEOF
19024 #line 19024 "configure"
19025 #include "confdefs.h"
19027 #include <stdlib.h>
19030 #if defined(__cplusplus)
19032 #ifdef HAVE_GXX_BUILTIN_H
19033 #include <g++/builtin.h>
19034 #elif HAVE_GPP_BUILTIN_H
19035 #include <gpp/builtin.h>
19036 #elif HAVE_BUILTIN_H
19037 #include <builtin.h>
19042 #if $cf_cv_header_stdbool_h
19043 #include <stdbool.h>
19050 FILE *fp = fopen("cf_test.out", "w");
19053 if ((bool)(-x) >= 0)
19054 fputs("unsigned ", fp);
19055 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19056 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19057 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19058 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19061 ${cf_cv_main_return:-return}(0);
19065 rm -f conftest$ac_exeext
19066 if { (eval echo "$as_me:19066: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>&5
19069 echo "$as_me:19069: \$? = $ac_status" >&5
19070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19071 { (eval echo "$as_me:19071: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:19074: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 cf_cv_type_of_bool=`cat cf_test.out`
19077 if test -z "$cf_cv_type_of_bool"; then
19078 cf_cv_type_of_bool=unknown
19081 echo "$as_me: program exited with status $ac_status" >&5
19082 echo "$as_me: failed program was:" >&5
19083 cat conftest.$ac_ext >&5
19084 cf_cv_type_of_bool=unknown
19086 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19092 echo "$as_me:19092: result: $cf_cv_type_of_bool" >&5
19093 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19094 if test "$cf_cv_type_of_bool" = unknown ; then
19095 case .$NCURSES_BOOL in #(vi
19096 .auto|.) NCURSES_BOOL=unsigned;;
19098 { echo "$as_me:19098: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19099 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19100 cf_cv_type_of_bool=$NCURSES_BOOL
19104 echo "$as_me:19104: checking for fallback type of bool" >&5
19105 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
19106 case "$host_cpu" in #(vi
19107 i?86) cf_cv_type_of_bool=char ;; #(vi
19108 *) cf_cv_type_of_bool=int ;;
19110 echo "$as_me:19110: result: $cf_cv_type_of_bool" >&5
19111 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19116 # If the C compiler did not declare bool, and we did not determine that the C++
19117 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
19118 # ncurses library use the same type as C++ bool. Note that this allows one to
19119 # specify the type of bool in a configure-script option and postpone
19120 # integration with the C++ compiler provided that the types are compatible.
19122 if test $cf_cv_cc_bool_type = 1
19124 # oops: C has a bool. Unlikely, but C++ could differ.
19126 elif test $cf_cv_builtin_bool = 0
19131 # this is the normal case
19132 USE_CXX_BOOL='defined(__cplusplus)'
19135 if test -f "${srcdir}/Ada95/Makefile.in" ; then
19137 if test "$cf_with_ada" != "no" ; then
19138 if test "$with_libtool" != "no"; then
19139 { echo "$as_me:19139: WARNING: libtool does not support Ada - disabling feature" >&5
19140 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
19145 if test "$cf_with_ada" != "no" ; then
19147 cf_ada_make=gnatmake
19148 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
19149 set dummy $cf_ada_make; ac_word=$2
19150 echo "$as_me:19150: checking for $ac_word" >&5
19151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19152 if test "${ac_cv_prog_gnat_exists+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 if test -n "$gnat_exists"; then
19156 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
19158 ac_save_IFS=$IFS; IFS=$ac_path_separator
19160 for ac_dir in $ac_dummy; do
19162 test -z "$ac_dir" && ac_dir=.
19163 $as_executable_p "$ac_dir/$ac_word" || continue
19164 ac_cv_prog_gnat_exists="yes"
19165 echo "$as_me:19165: found $ac_dir/$ac_word" >&5
19169 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
19172 gnat_exists=$ac_cv_prog_gnat_exists
19173 if test -n "$gnat_exists"; then
19174 echo "$as_me:19174: result: $gnat_exists" >&5
19175 echo "${ECHO_T}$gnat_exists" >&6
19177 echo "$as_me:19177: result: no" >&5
19178 echo "${ECHO_T}no" >&6
19181 if test "$ac_cv_prog_gnat_exists" = no; then
19183 cf_cv_prog_gnat_correct=no
19186 echo "$as_me:19186: checking for gnat version" >&5
19187 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
19188 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
19189 grep '[0-9].[0-9][0-9]*' |\
19190 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
19191 echo "$as_me:19191: result: $cf_gnat_version" >&5
19192 echo "${ECHO_T}$cf_gnat_version" >&6
19194 case $cf_gnat_version in #(vi
19195 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
19196 cf_cv_prog_gnat_correct=yes
19199 { echo "$as_me:19199: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
19200 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
19201 cf_cv_prog_gnat_correct=no
19205 # Extract the first word of "m4", so it can be a program name with args.
19206 set dummy m4; ac_word=$2
19207 echo "$as_me:19207: checking for $ac_word" >&5
19208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19209 if test "${ac_cv_prog_M4_exists+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 if test -n "$M4_exists"; then
19213 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
19215 ac_save_IFS=$IFS; IFS=$ac_path_separator
19217 for ac_dir in $ac_dummy; do
19219 test -z "$ac_dir" && ac_dir=.
19220 $as_executable_p "$ac_dir/$ac_word" || continue
19221 ac_cv_prog_M4_exists="yes"
19222 echo "$as_me:19222: found $ac_dir/$ac_word" >&5
19226 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
19229 M4_exists=$ac_cv_prog_M4_exists
19230 if test -n "$M4_exists"; then
19231 echo "$as_me:19231: result: $M4_exists" >&5
19232 echo "${ECHO_T}$M4_exists" >&6
19234 echo "$as_me:19234: result: no" >&5
19235 echo "${ECHO_T}no" >&6
19238 if test "$ac_cv_prog_M4_exists" = no; then
19239 cf_cv_prog_gnat_correct=no
19240 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
19242 if test "$cf_cv_prog_gnat_correct" = yes; then
19243 echo "$as_me:19243: checking if GNAT works" >&5
19244 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
19246 rm -rf conftest* *~conftest*
19247 cat >>conftest.ads <<CF_EOF
19248 procedure conftest;
19250 cat >>conftest.adb <<CF_EOF
19253 procedure conftest is
19255 Text_IO.Put ("Hello World");
19257 GNAT.OS_Lib.OS_Exit (0);
19260 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19261 if ( ./conftest 1>&5 2>&1 ) ; then
19262 cf_cv_prog_gnat_correct=yes
19264 cf_cv_prog_gnat_correct=no
19267 cf_cv_prog_gnat_correct=no
19269 rm -rf conftest* *~conftest*
19271 echo "$as_me:19271: result: $cf_cv_prog_gnat_correct" >&5
19272 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
19276 if test "x$cf_cv_prog_gnat_correct" = xyes; then
19278 ADAFLAGS="$ADAFLAGS -gnatpn"
19280 echo "$as_me:19280: checking optimization options for ADAFLAGS" >&5
19281 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
19285 ADAFLAGS="$ADAFLAGS -g"
19291 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
19293 ADAFLAGS="$ADAFLAGS $cf_O_flag"
19297 echo "$as_me:19297: result: $ADAFLAGS" >&5
19298 echo "${ECHO_T}$ADAFLAGS" >&6
19300 echo "$as_me:19300: checking if GNAT supports generics" >&5
19301 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19302 case $cf_gnat_version in #(vi
19303 3.[1-9]*|[4-9].*) #(vi
19304 cf_gnat_generics=yes
19307 cf_gnat_generics=no
19310 echo "$as_me:19310: result: $cf_gnat_generics" >&5
19311 echo "${ECHO_T}$cf_gnat_generics" >&6
19313 if test "$cf_gnat_generics" = yes
19315 cf_compile_generics=generics
19316 cf_generic_objects="\${GENOBJS}"
19318 cf_compile_generics=
19319 cf_generic_objects=
19322 echo "$as_me:19322: checking if GNAT supports SIGINT" >&5
19323 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19324 if test "${cf_cv_gnat_sigint+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 rm -rf conftest* *~conftest*
19329 cat >>conftest.ads <<CF_EOF
19330 with Ada.Interrupts.Names;
19332 package ConfTest is
19334 pragma Warnings (Off); -- the next pragma exists since 3.11p
19335 pragma Unreserve_All_Interrupts;
19336 pragma Warnings (On);
19338 protected Process is
19340 function Continue return Boolean;
19341 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19343 Done : Boolean := False;
19348 cat >>conftest.adb <<CF_EOF
19349 package body ConfTest is
19350 protected body Process is
19355 function Continue return Boolean is
19362 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19363 cf_cv_gnat_sigint=yes
19365 cf_cv_gnat_sigint=no
19367 rm -rf conftest* *~conftest*
19370 echo "$as_me:19370: result: $cf_cv_gnat_sigint" >&5
19371 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
19373 if test $cf_cv_gnat_sigint = yes ; then
19376 USE_GNAT_SIGINT="#"
19379 echo "$as_me:19379: checking if GNAT pragma Unreferenced works" >&5
19380 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
19381 if test "${cf_cv_pragma_unreferenced+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 rm -rf conftest* *~conftest*
19386 cat >>conftest.ads <<CF_EOF
19387 procedure conftest;
19389 cat >>conftest.adb <<CF_EOF
19392 procedure conftest is
19394 pragma Unreferenced (test);
19397 Text_IO.Put ("Hello World");
19399 GNAT.OS_Lib.OS_Exit (0);
19402 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19403 cf_cv_pragma_unreferenced=yes
19405 cf_cv_pragma_unreferenced=no
19407 rm -rf conftest* *~conftest*
19410 echo "$as_me:19410: result: $cf_cv_pragma_unreferenced" >&5
19411 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
19413 # if the pragma is supported, use it (needed in the Trace code).
19414 if test $cf_cv_pragma_unreferenced = yes ; then
19420 cf_gnat_libraries=no
19421 cf_gnat_projects=no
19423 echo "$as_me:19423: checking if GNAT supports project files" >&5
19424 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19425 case $cf_gnat_version in #(vi
19429 case $cf_cv_system_name in #(vi
19433 mkdir conftest.src conftest.bin conftest.lib
19435 rm -rf conftest* *~conftest*
19436 cat >>library.gpr <<CF_EOF
19438 Kind := External ("LIB_KIND");
19439 for Library_Name use "ConfTest";
19440 for Object_Dir use ".";
19441 for Library_ALI_Dir use External("LIBRARY_DIR");
19442 for Library_Version use External ("SONAME");
19443 for Library_Kind use Kind;
19444 for Library_Dir use External("BUILD_DIR");
19445 Source_Dir := External ("SOURCE_DIR");
19446 for Source_Dirs use (Source_Dir);
19447 package Compiler is
19448 for Default_Switches ("Ada") use
19452 "-gnatVa", -- All validity checks
19453 "-gnatwa"); -- Activate all optional errors
19457 cat >>confpackage.ads <<CF_EOF
19458 package ConfPackage is
19459 procedure conftest;
19462 cat >>confpackage.adb <<CF_EOF
19464 package body ConfPackage is
19465 procedure conftest is
19467 Text_IO.Put ("Hello World");
19472 if ( $cf_ada_make $ADAFLAGS \
19474 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
19475 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
19476 -XSOURCE_DIR=`pwd` \
19477 -XSONAME=libConfTest.so.1 \
19478 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19479 cf_gnat_projects=yes
19482 if test -f conftest.lib/confpackage.ali
19484 cf_gnat_libraries=yes
19486 rm -rf conftest* *~conftest*
19491 echo "$as_me:19491: result: $cf_gnat_projects" >&5
19492 echo "${ECHO_T}$cf_gnat_projects" >&6
19494 if test $cf_gnat_projects = yes
19496 echo "$as_me:19496: checking if GNAT supports libraries" >&5
19497 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19498 echo "$as_me:19498: result: $cf_gnat_libraries" >&5
19499 echo "${ECHO_T}$cf_gnat_libraries" >&6
19502 if test "$cf_gnat_projects" = yes
19504 USE_OLD_MAKERULES="#"
19505 USE_GNAT_PROJECTS=""
19507 USE_OLD_MAKERULES=""
19508 USE_GNAT_PROJECTS="#"
19511 if test "$cf_gnat_libraries" = yes
19513 USE_GNAT_LIBRARIES=""
19515 USE_GNAT_LIBRARIES="#"
19518 echo "$as_me:19518: checking for ada-compiler" >&5
19519 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
19521 # Check whether --with-ada-compiler or --without-ada-compiler was given.
19522 if test "${with_ada_compiler+set}" = set; then
19523 withval="$with_ada_compiler"
19524 cf_ada_compiler=$withval
19526 cf_ada_compiler=gnatmake
19529 echo "$as_me:19529: result: $cf_ada_compiler" >&5
19530 echo "${ECHO_T}$cf_ada_compiler" >&6
19532 cf_ada_package=terminal_interface
19534 echo "$as_me:19534: checking for ada-include" >&5
19535 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
19537 # Check whether --with-ada-include or --without-ada-include was given.
19538 if test "${with_ada_include+set}" = set; then
19539 withval="$with_ada_include"
19542 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
19543 fi; if test -n "$prefix/share/ada/adainclude" ; then
19545 if test "x$prefix" != xNONE; then
19546 cf_path_syntax="$prefix"
19548 cf_path_syntax="$ac_default_prefix"
19551 case ".$withval" in #(vi
19552 .\$\(*\)*|.\'*\'*) #(vi
19556 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19558 .\${*prefix}*|.\${*dir}*) #(vi
19559 eval withval="$withval"
19560 case ".$withval" in #(vi
19562 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19567 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19570 { { echo "$as_me:19570: error: expected a pathname, not \"$withval\"" >&5
19571 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19572 { (exit 1); exit 1; }; }
19577 eval ADA_INCLUDE="$withval"
19579 echo "$as_me:19579: result: $ADA_INCLUDE" >&5
19580 echo "${ECHO_T}$ADA_INCLUDE" >&6
19582 echo "$as_me:19582: checking for ada-objects" >&5
19583 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
19585 # Check whether --with-ada-objects or --without-ada-objects was given.
19586 if test "${with_ada_objects+set}" = set; then
19587 withval="$with_ada_objects"
19590 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
19591 fi; if test -n "$prefix/lib/ada/adalib" ; then
19593 if test "x$prefix" != xNONE; then
19594 cf_path_syntax="$prefix"
19596 cf_path_syntax="$ac_default_prefix"
19599 case ".$withval" in #(vi
19600 .\$\(*\)*|.\'*\'*) #(vi
19604 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19606 .\${*prefix}*|.\${*dir}*) #(vi
19607 eval withval="$withval"
19608 case ".$withval" in #(vi
19610 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19615 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19618 { { echo "$as_me:19618: error: expected a pathname, not \"$withval\"" >&5
19619 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19620 { (exit 1); exit 1; }; }
19625 eval ADA_OBJECTS="$withval"
19627 echo "$as_me:19627: result: $ADA_OBJECTS" >&5
19628 echo "${ECHO_T}$ADA_OBJECTS" >&6
19630 echo "$as_me:19630: checking if an Ada95 shared-library should be built" >&5
19631 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
19633 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
19634 if test "${with_ada_sharedlib+set}" = set; then
19635 withval="$with_ada_sharedlib"
19636 with_ada_sharedlib=$withval
19638 with_ada_sharedlib=no
19640 echo "$as_me:19640: result: $with_ada_sharedlib" >&5
19641 echo "${ECHO_T}$with_ada_sharedlib" >&6
19643 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
19644 MAKE_ADA_SHAREDLIB="#"
19646 if test "x$with_ada_sharedlib" != xno
19648 MAKE_ADA_SHAREDLIB=
19649 if test "x$with_ada_sharedlib" != xyes
19651 ADA_SHAREDLIB="$with_ada_sharedlib"
19661 ### Construct the ncurses library-subsets, if any, from this set of keywords:
19662 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
19664 ### ticlib modules may be a separate library, otherwise contained in termlib.
19665 ### termlib modules may be a separate library, otherwise contained in ncurses.
19667 ### The of "+" or " " between the tokens controls the way the script
19668 ### chooses to split module lists into libraries.
19670 ### (see CF_LIB_RULES).
19671 echo "$as_me:19671: checking for library subsets" >&5
19672 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
19675 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
19676 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
19677 if test "$with_ticlib" != no ; then
19678 LIB_SUBSETS="${LIB_SUBSETS} "
19680 LIB_SUBSETS="${LIB_SUBSETS}+"
19684 LIB_SUBSETS="${LIB_SUBSETS}termlib"
19685 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
19687 if test "$with_termlib" != no ; then
19688 LIB_SUBSETS="${LIB_SUBSETS} "
19690 LIB_SUBSETS="${LIB_SUBSETS}+"
19693 LIB_SUBSETS="${LIB_SUBSETS}base"
19695 # Most term-driver calls are to tinfo, but some like init_pair are to the
19696 # base library (so it resides in base).
19697 if test "$with_term_driver" != no ; then
19698 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
19699 case $cf_cv_system_name in #(vi
19701 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
19704 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
19709 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
19710 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
19712 echo "$as_me:19712: result: $LIB_SUBSETS" >&5
19713 echo "${ECHO_T}$LIB_SUBSETS" >&6
19715 ### Construct the list of include-directories to be generated
19717 if test "$GCC" != yes; then
19718 CPPFLAGS="-I\${includedir} $CPPFLAGS"
19719 elif test "$includedir" != "/usr/include"; then
19720 if test "$includedir" = '${prefix}/include' ; then
19721 if test $prefix != /usr ; then
19722 CPPFLAGS="-I\${includedir} $CPPFLAGS"
19725 CPPFLAGS="-I\${includedir} $CPPFLAGS"
19728 if test "$srcdir" != "."; then
19729 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
19731 CPPFLAGS="-I. -I../include $CPPFLAGS"
19733 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
19734 if test "$srcdir" != "."; then
19735 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
19737 if test "$GCC" != yes; then
19738 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19739 elif test "$includedir" != "/usr/include"; then
19740 if test "$includedir" = '${prefix}/include' ; then
19741 if test $prefix != /usr ; then
19742 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19745 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19749 ### Build up pieces for makefile rules
19750 echo "$as_me:19750: checking default library suffix" >&5
19751 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
19753 case $DFT_LWR_MODEL in
19754 libtool) DFT_ARG_SUFFIX='' ;;
19755 normal) DFT_ARG_SUFFIX='' ;;
19756 debug) DFT_ARG_SUFFIX='_g' ;;
19757 profile) DFT_ARG_SUFFIX='_p' ;;
19758 shared) DFT_ARG_SUFFIX='' ;;
19760 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
19761 echo "$as_me:19761: result: $DFT_ARG_SUFFIX" >&5
19762 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
19764 echo "$as_me:19764: checking default library-dependency suffix" >&5
19765 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
19767 case $DFT_LWR_MODEL in #(vi
19769 DFT_LIB_SUFFIX='.la'
19770 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19773 DFT_LIB_SUFFIX='.a'
19774 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19777 DFT_LIB_SUFFIX='_g.a'
19778 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19781 DFT_LIB_SUFFIX='_p.a'
19782 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19785 case $cf_cv_system_name in
19787 DFT_LIB_SUFFIX='.a'
19788 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19790 cygwin*|mingw*) #(vi
19791 DFT_LIB_SUFFIX='.dll'
19792 DFT_DEP_SUFFIX='.dll.a'
19795 DFT_LIB_SUFFIX='.dylib'
19796 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19801 DFT_LIB_SUFFIX='.so'
19802 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19805 DFT_LIB_SUFFIX='.sl'
19806 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19810 *) DFT_LIB_SUFFIX='.so'
19811 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19815 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
19816 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
19817 echo "$as_me:19817: result: $DFT_DEP_SUFFIX" >&5
19818 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
19820 echo "$as_me:19820: checking default object directory" >&5
19821 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
19823 case $DFT_LWR_MODEL in
19824 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
19825 normal) DFT_OBJ_SUBDIR='objects' ;;
19826 debug) DFT_OBJ_SUBDIR='obj_g' ;;
19827 profile) DFT_OBJ_SUBDIR='obj_p' ;;
19829 case $cf_cv_system_name in #(vi
19831 DFT_OBJ_SUBDIR='objects' ;;
19833 DFT_OBJ_SUBDIR='obj_s' ;;
19836 echo "$as_me:19836: result: $DFT_OBJ_SUBDIR" >&5
19837 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
19839 if test "x$cf_with_cxx" = xyes ; then
19840 echo "$as_me:19840: checking c++ library-dependency suffix" >&5
19841 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
19842 if test "$with_libtool" != "no"; then
19843 # libtool thinks it can make c++ shared libraries (perhaps only g++)
19844 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
19845 elif test "$with_shared_cxx" != "no"; then
19846 # also for g++ users...
19847 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
19849 # we normally make a static library because C/C++ library rules differ
19851 case normal in #(vi
19853 CXX_LIB_SUFFIX='.la'
19854 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19857 CXX_LIB_SUFFIX='.a'
19858 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19861 CXX_LIB_SUFFIX='_g.a'
19862 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19865 CXX_LIB_SUFFIX='_p.a'
19866 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19869 case $cf_cv_system_name in
19871 CXX_LIB_SUFFIX='.a'
19872 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19874 cygwin*|mingw*) #(vi
19875 CXX_LIB_SUFFIX='.dll'
19876 CXX_DEP_SUFFIX='.dll.a'
19879 CXX_LIB_SUFFIX='.dylib'
19880 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19885 CXX_LIB_SUFFIX='.so'
19886 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19889 CXX_LIB_SUFFIX='.sl'
19890 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19894 *) CXX_LIB_SUFFIX='.so'
19895 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19899 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
19900 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
19903 echo "$as_me:19903: result: $CXX_LIB_SUFFIX" >&5
19904 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
19908 # do not want -ldl in build except as needed for -lncurses dependency
19909 if test "x$with_dlsym" = xyes ; then
19910 if test $DFT_LWR_MODEL = shared || \
19911 test $DFT_LWR_MODEL = libtool ; then
19913 # remove dl library from $LIBS
19914 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19918 ### Set up low-level terminfo dependencies for makefiles.
19920 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
19921 # do not need libdl
19923 if test "x$with_dlsym" = xyes ; then
19925 # remove dl library from $SHLIB_LIST
19926 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19930 if test "$with_ticlib" != no ; then
19932 if test "x$with_ticlib" != xyes ; then
19933 TICS_NAME=$with_ticlib
19934 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19935 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19936 TICS_LIB_SUFFIX="${with_ticlib}"
19938 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
19939 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
19940 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
19942 TICS_LDFLAGS="-L${LIB_DIR}"
19943 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
19945 TICS_LDFLAGS="-L${LIB_DIR}"
19946 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19949 if test "$with_termlib" != no ; then
19951 if test "x$with_termlib" != xyes ; then
19952 TINFO_NAME=$with_termlib
19953 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19954 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19955 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19956 TINFO_LIB_SUFFIX="${with_termlib}"
19958 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19959 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
19960 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
19961 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
19964 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19965 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19966 if test "$DFT_LWR_MODEL" = "libtool"; then
19967 TEST_ARGS="${TEST_DEPS}"
19968 TEST_ARG2="${TEST_DEP2}"
19969 TINFO_LDFLAGS="-L${LIB_DIR}"
19970 TINFO_LIBS="$TEST_ARGS"
19971 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
19972 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
19974 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
19975 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
19976 if test "x$with_term_driver" != xno ; then
19977 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19978 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19979 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
19981 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19982 TINFO_LIBS="$TEST_ARGS"
19984 TINFO_LDFLAGS="-L${LIB_DIR}"
19985 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19988 # the next lines are needed for linking libtic over libncurses
19989 TINFO_NAME=${LIB_NAME}
19990 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19991 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
19992 if test "x$with_tic_depends" = xyes ; then
19993 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19995 TICS_LIST="$SHLIB_LIST"
19998 TINFO_LDFLAGS="-L${LIB_DIR}"
19999 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20002 if test "$DFT_LWR_MODEL" = shared ; then
20003 case $cf_cv_system_name in #(vi
20005 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
20011 if test "x$with_dlsym" = xyes ; then
20013 # remove dl library from $TICS_LIST
20014 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20018 if test "$DFT_LWR_MODEL" = "libtool"; then
20023 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
20025 case $DFT_LWR_MODEL in
20026 normal|debug|profile)
20028 if test "$GCC" = yes ; then
20029 case $cf_cv_system_name in #(
20030 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
20034 *) #( normally, except when broken
20035 LDFLAGS_STATIC=-static
20036 LDFLAGS_SHARED=-dynamic
20040 case $cf_cv_system_name in #(
20041 aix[4-7]*) #( from ld manpage
20042 LDFLAGS_STATIC=-bstatic
20043 LDFLAGS_SHARED=-bdynamic
20045 hpux*) #( from ld manpage for hpux10.20, hpux11.11
20046 # We could also use just "archive" and "shared".
20047 LDFLAGS_STATIC=-Wl,-a,archive_shared
20048 LDFLAGS_SHARED=-Wl,-a,shared_archive
20050 irix*) #( from ld manpage IRIX64
20051 LDFLAGS_STATIC=-Bstatic
20052 LDFLAGS_SHARED=-Bdynamic
20054 osf[45]*) #( from ld manpage osf4.0d, osf5.1
20055 # alternative "-oldstyle_liblookup" (not in cc manpage)
20056 LDFLAGS_STATIC=-noso
20057 LDFLAGS_SHARED=-so_archive
20060 LDFLAGS_STATIC=-Bstatic
20061 LDFLAGS_SHARED=-Bdynamic
20066 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
20068 echo "$as_me:20068: checking if linker supports switching between static/dynamic" >&5
20069 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
20071 rm -f libconftest.a
20072 cat >conftest.$ac_ext <<EOF
20073 #line 20073 "configure"
20075 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
20077 if { (eval echo "$as_me:20077: \"$ac_compile\"") >&5
20078 (eval $ac_compile) 2>&5
20080 echo "$as_me:20080: \$? = $ac_status" >&5
20081 (exit $ac_status); } ; then
20082 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
20083 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
20087 cf_save_LIBS="$LIBS"
20089 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
20090 cat >conftest.$ac_ext <<_ACEOF
20091 #line 20091 "configure"
20092 #include "confdefs.h"
20094 #line 20094 "configure"
20096 int cf_ldflags_static(FILE *fp);
20102 return cf_ldflags_static(stdin);
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (eval echo "$as_me:20109: \"$ac_link\"") >&5
20110 (eval $ac_link) 2>&5
20112 echo "$as_me:20112: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -s conftest$ac_exeext'
20115 { (eval echo "$as_me:20115: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 echo "$as_me:20118: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20121 # some linkers simply ignore the -dynamic
20122 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
20124 cf_ldflags_static=no
20127 cf_ldflags_static=yes
20132 echo "$as_me: failed program was:" >&5
20133 cat conftest.$ac_ext >&5
20134 cf_ldflags_static=no
20136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20138 rm -f libconftest.*
20139 LIBS="$cf_save_LIBS"
20141 echo "$as_me:20141: result: $cf_ldflags_static" >&5
20142 echo "${ECHO_T}$cf_ldflags_static" >&6
20144 if test $cf_ldflags_static != yes
20157 echo "$as_me:20157: checking where we will install curses.h" >&5
20158 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
20159 test "$with_overwrite" = no && \
20160 test "x$includedir" = 'x${prefix}/include' && \
20161 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
20162 echo "$as_me:20162: result: $includedir" >&5
20163 echo "${ECHO_T}$includedir" >&6
20165 ### Resolve a conflict between normal and wide-curses by forcing applications
20166 ### that will need libutf8 to add it to their configure script.
20167 if test "$with_overwrite" != no ; then
20168 if test "$NCURSES_LIBUTF8" = 1 ; then
20169 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
20170 { echo "$as_me:20170: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
20171 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
20174 WITH_OVERWRITE=$with_overwrite
20176 # used to separate tack out of the tree
20179 ### predefined stuff for the test programs
20181 cat >>confdefs.h <<\EOF
20182 #define HAVE_SLK_COLOR 1
20185 ### Construct the list of subdirectories for which we'll customize makefiles
20186 ### with the appropriate compile-rules.
20188 echo "$as_me:20188: checking for src modules" >&5
20189 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
20191 # dependencies and linker-arguments for test-programs
20192 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
20193 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
20194 if test "$DFT_LWR_MODEL" = "libtool"; then
20195 TEST_ARGS="${TEST_DEPS}"
20196 TEST_ARG2="${TEST_DEP2}"
20198 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20199 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
20202 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
20204 for cf_dir in $modules_to_build
20206 if test -f $srcdir/$cf_dir/modules; then
20208 # We may/may not have tack in the distribution, though the
20210 if test $cf_dir = tack ; then
20211 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
20216 if test -z "$cf_cv_src_modules"; then
20217 cf_cv_src_modules=$cf_dir
20219 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
20222 # Make the ncurses_cfg.h file record the library interface files as
20223 # well. These are header files that are the same name as their
20224 # directory. Ncurses is the only library that does not follow
20226 if test $cf_dir = tack ; then
20228 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
20230 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20232 cat >>confdefs.h <<EOF
20233 #define HAVE_${cf_have_include}_H 1
20236 cat >>confdefs.h <<EOF
20237 #define HAVE_LIB${cf_have_include} 1
20240 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
20241 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
20242 if test "$DFT_LWR_MODEL" = "libtool"; then
20243 TEST_ARGS="${TEST_DEPS}"
20244 TEST_ARG2="${TEST_DEP2}"
20246 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
20247 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
20249 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
20253 echo "$as_me:20253: result: $cf_cv_src_modules" >&5
20254 echo "${ECHO_T}$cf_cv_src_modules" >&6
20256 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
20257 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
20260 if test "x$cf_with_manpages" != xno ; then
20261 SRC_SUBDIRS="$SRC_SUBDIRS man"
20263 SRC_SUBDIRS="$SRC_SUBDIRS include"
20264 for cf_dir in $cf_cv_src_modules
20266 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
20268 if test "x$cf_with_tests" != "xno" ; then
20269 SRC_SUBDIRS="$SRC_SUBDIRS test"
20271 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
20272 if test "$cf_with_cxx_binding" != no; then
20273 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
20274 SRC_SUBDIRS="$SRC_SUBDIRS c++"
20277 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
20278 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
20281 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
20282 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
20283 ADA_SUBDIRS="gen src"
20284 if test "x$cf_with_tests" != "xno" ; then
20285 ADA_SUBDIRS="$ADA_SUBDIRS samples"
20290 for cf_dir in $SRC_SUBDIRS
20292 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
20295 if test -n "$ADA_SUBDIRS"; then
20296 for cf_dir in $ADA_SUBDIRS
20298 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
20303 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
20304 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
20305 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
20309 for cf_item in $cf_list_models
20313 libtool) cf_subdir='obj_lo' ;;
20314 normal) cf_subdir='objects' ;;
20315 debug) cf_subdir='obj_g' ;;
20316 profile) cf_subdir='obj_p' ;;
20318 case $cf_cv_system_name in #(vi
20320 cf_subdir='objects' ;;
20322 cf_subdir='obj_s' ;;
20326 for cf_item2 in $DIRS_TO_MAKE
20328 test $cf_item2 = $cf_subdir && break
20330 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
20332 for cf_dir in $DIRS_TO_MAKE
20334 test ! -d $cf_dir && mkdir $cf_dir
20337 # symbols that differ when compiling Ada95 by itself.
20338 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
20340 # values to use as strings
20342 cat >>confdefs.h <<EOF
20343 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
20346 cat >>confdefs.h <<EOF
20347 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
20350 ### Now that we're done running tests, add the compiler-warnings, if any
20355 cf_new_extra_cppflags=
20357 for cf_add_cflags in $EXTRA_CFLAGS
20359 case $cf_fix_cppflags in
20361 case $cf_add_cflags in #(vi
20362 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
20363 case $cf_add_cflags in
20365 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20367 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20368 && test -z "${cf_tst_cflags}" \
20369 && cf_fix_cppflags=yes
20371 if test $cf_fix_cppflags = yes ; then
20372 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20374 elif test "${cf_tst_cflags}" = "\"'" ; then
20375 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20380 case "$CPPFLAGS" in
20381 *$cf_add_cflags) #(vi
20384 case $cf_add_cflags in #(vi
20386 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20388 CPPFLAGS=`echo "$CPPFLAGS" | \
20389 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20390 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20394 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
20399 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
20404 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20406 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20408 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20409 && test -z "${cf_tst_cflags}" \
20410 && cf_fix_cppflags=no
20415 if test -n "$cf_new_cflags" ; then
20417 CFLAGS="$CFLAGS $cf_new_cflags"
20420 if test -n "$cf_new_cppflags" ; then
20422 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
20425 if test -n "$cf_new_extra_cppflags" ; then
20427 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
20430 ### Define substitutions for header files to avoid name-pollution
20432 if test "x$cf_cv_have_tcgetattr" = xyes ; then
20438 if test "x$ac_cv_header_termio_h" = xyes ; then
20444 if test "x$ac_cv_header_termios_h" = xyes ; then
20450 ################################################################################
20451 test "x$use_database" = xyes && \
20452 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
20454 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
20455 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
20457 if test "x$enable_pc_files" = xyes ; then \
20458 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
20464 # Extract the first word of "tic", so it can be a program name with args.
20465 set dummy tic; ac_word=$2
20466 echo "$as_me:20466: checking for $ac_word" >&5
20467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20468 if test "${ac_cv_path_TIC_PATH+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
20476 ac_save_IFS=$IFS; IFS=$ac_path_separator
20477 ac_dummy="$PATH:/usr/local/ncurses/bin"
20478 for ac_dir in $ac_dummy; do
20480 test -z "$ac_dir" && ac_dir=.
20481 if $as_executable_p "$ac_dir/$ac_word"; then
20482 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
20483 echo "$as_me:20483: found $ac_dir/$ac_word" >&5
20488 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
20492 TIC_PATH=$ac_cv_path_TIC_PATH
20494 if test -n "$TIC_PATH"; then
20495 echo "$as_me:20495: result: $TIC_PATH" >&5
20496 echo "${ECHO_T}$TIC_PATH" >&6
20498 echo "$as_me:20498: result: no" >&5
20499 echo "${ECHO_T}no" >&6
20502 if test -n "$FALLBACK_LIST"
20504 if test "$TIC_PATH" = unknown
20506 { echo "$as_me:20506: WARNING: no tic program found for fallbacks" >&5
20507 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
20511 if test "x$cf_with_tests" != xno ; then
20517 ADAHTML_DIR=../../doc/html/ada
20521 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"
20522 ac_config_commands="$ac_config_commands default"
20523 cat >confcache <<\_ACEOF
20524 # This file is a shell script that caches the results of configure
20525 # tests run on this system so they can be shared between configure
20526 # scripts and configure runs, see configure's option --config-cache.
20527 # It is not useful on other systems. If it contains results you don't
20528 # want to keep, you may remove or edit it.
20530 # config.status only pays attention to the cache file if you give it
20531 # the --recheck option to rerun configure.
20533 # `ac_cv_env_foo' variables (set or unset) will be overriden when
20534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20535 # following values.
20539 # The following way of writing the cache mishandles newlines in values,
20540 # but we know of no workaround that is simple, portable, and efficient.
20541 # So, don't put newlines in cache variables' values.
20542 # Ultrix sh set writes to stderr and can't be redirected directly,
20543 # and sets the high bit in the cache file unless we assign to the vars.
20546 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20548 # `set' does not quote correctly, so add quotes (double-quote
20549 # substitution turns \\\\ into \\, and sed turns \\ into \).
20552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20555 # `set' quotes correctly as required by POSIX, so do not add quotes.
20557 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20566 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20568 if cmp -s $cache_file confcache; then :; else
20569 if test -w $cache_file; then
20570 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20571 cat confcache >$cache_file
20573 echo "not updating unwritable cache $cache_file"
20578 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20579 # Let make expand exec_prefix.
20580 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20582 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20583 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20584 # trailing colons and then remove the whole line if VPATH becomes empty
20585 # (actually we leave an empty line to preserve line numbers).
20586 if test "x$srcdir" = x.; then
20587 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20588 s/:*\$(srcdir):*/:/;
20589 s/:*\${srcdir}:*/:/;
20591 s/^\([^=]*=[ ]*\):*/\1/;
20597 DEFS=-DHAVE_CONFIG_H
20599 : ${CONFIG_STATUS=./config.status}
20600 ac_clean_files_save=$ac_clean_files
20601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20602 { echo "$as_me:20602: creating $CONFIG_STATUS" >&5
20603 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20604 cat >$CONFIG_STATUS <<_ACEOF
20606 # Generated automatically by configure.
20607 # Run this file to recreate the current configuration.
20608 # Compiler output produced by configure, useful for debugging
20609 # configure, is in config.log if it exists.
20612 SHELL=\${CONFIG_SHELL-$SHELL}
20613 ac_cs_invocation="\$0 \$@"
20617 cat >>$CONFIG_STATUS <<\_ACEOF
20618 # Be Bourne compatible
20619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20622 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20626 # Name of the executable.
20627 as_me=`echo "$0" |sed 's,.*[\\/],,'`
20629 if expr a : '\(a\)' >/dev/null 2>&1; then
20635 rm -f conf$$ conf$$.exe conf$$.file
20637 if ln -s conf$$.file conf$$ 2>/dev/null; then
20638 # We could just check for DJGPP; but this test a) works b) is more generic
20639 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20640 if test -f conf$$.exe; then
20641 # Don't use ln at all; we don't have any links
20646 elif ln conf$$.file conf$$ 2>/dev/null; then
20651 rm -f conf$$ conf$$.exe conf$$.file
20653 as_executable_p="test -f"
20655 # Support unset when possible.
20656 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20663 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
20664 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
20665 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
20666 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
20667 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
20668 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
20669 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
20670 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
20673 # We need space, tab and new line, in precisely that order.
20679 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
20685 # Files that config.status was made for.
20686 if test -n "$ac_config_files"; then
20687 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20690 if test -n "$ac_config_headers"; then
20691 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20694 if test -n "$ac_config_links"; then
20695 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20698 if test -n "$ac_config_commands"; then
20699 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20702 cat >>$CONFIG_STATUS <<\EOF
20705 \`$as_me' instantiates files from templates according to the
20706 current configuration.
20708 Usage: $0 [OPTIONS] [FILE]...
20710 -h, --help print this help, then exit
20711 -V, --version print version number, then exit
20712 -d, --debug don't remove temporary files
20713 --recheck update $as_me by reconfiguring in the same conditions
20714 --file=FILE[:TEMPLATE]
20715 instantiate the configuration file FILE
20716 --header=FILE[:TEMPLATE]
20717 instantiate the configuration header FILE
20719 Configuration files:
20722 Configuration headers:
20725 Configuration commands:
20728 Report bugs to <dickey@invisible-island.net>."
20731 cat >>$CONFIG_STATUS <<EOF
20734 configured by $0, generated by GNU Autoconf 2.52.20121002,
20735 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20737 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20738 Free Software Foundation, Inc.
20739 This config.status script is free software; the Free Software Foundation
20740 gives unlimited permission to copy, distribute and modify it."
20745 cat >>$CONFIG_STATUS <<\EOF
20746 # If no file are specified by the user, then we need to provide default
20747 # value. By we need to know if files were specified by the user.
20753 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20754 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20756 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
20760 *) # This is not an option, so the user has probably given explicit
20762 ac_need_defaults=false;;
20766 # Handling of the options.
20768 cat >>$CONFIG_STATUS <<EOF
20769 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20770 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
20771 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
20773 cat >>$CONFIG_STATUS <<\EOF
20774 --version | --vers* | -V )
20775 echo "$ac_cs_version"; exit 0 ;;
20777 # Conflict between --help and --header
20778 { { echo "$as_me:20778: error: ambiguous option: $1
20779 Try \`$0 --help' for more information." >&5
20780 echo "$as_me: error: ambiguous option: $1
20781 Try \`$0 --help' for more information." >&2;}
20782 { (exit 1); exit 1; }; };;
20783 --help | --hel | -h )
20784 echo "$ac_cs_usage"; exit 0 ;;
20785 --debug | --d* | -d )
20787 --file | --fil | --fi | --f )
20789 CONFIG_FILES="$CONFIG_FILES $1"
20790 ac_need_defaults=false;;
20791 --header | --heade | --head | --hea )
20793 CONFIG_HEADERS="$CONFIG_HEADERS $1"
20794 ac_need_defaults=false;;
20796 # This is an error.
20797 -*) { { echo "$as_me:20797: error: unrecognized option: $1
20798 Try \`$0 --help' for more information." >&5
20799 echo "$as_me: error: unrecognized option: $1
20800 Try \`$0 --help' for more information." >&2;}
20801 { (exit 1); exit 1; }; } ;;
20803 *) ac_config_targets="$ac_config_targets $1" ;;
20812 ## ----------------------- ##
20813 ## Running config.status. ##
20814 ## ----------------------- ##
20816 This file was extended by $as_me 2.52.20121002, executed with
20817 CONFIG_FILES = $CONFIG_FILES
20818 CONFIG_HEADERS = $CONFIG_HEADERS
20819 CONFIG_LINKS = $CONFIG_LINKS
20820 CONFIG_COMMANDS = $CONFIG_COMMANDS
20821 > $ac_cs_invocation
20822 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20827 cat >>$CONFIG_STATUS <<EOF
20829 # INIT-COMMANDS section.
20832 ### Special initialization commands, used to pass information from the
20833 ### configuration-run into config.status
20836 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
20837 DFT_LWR_MODEL="$DFT_LWR_MODEL"
20839 LDCONFIG="$LDCONFIG"
20840 LIBTOOL_VERSION="$LIBTOOL_VERSION"
20841 LIB_NAME="$LIB_NAME"
20842 LIB_PREFIX="$LIB_PREFIX"
20843 LIB_SUBSETS="$LIB_SUBSETS"
20844 LIB_SUFFIX="$LIB_SUFFIX"
20845 LIB_TRACING="$LIB_TRACING"
20847 MAKE_TERMINFO="$MAKE_TERMINFO"
20848 NCURSES_MAJOR="$NCURSES_MAJOR"
20849 NCURSES_MINOR="$NCURSES_MINOR"
20850 NCURSES_OSPEED="$NCURSES_OSPEED"
20851 NCURSES_PATCH="$NCURSES_PATCH"
20852 SRC_SUBDIRS="$SRC_SUBDIRS"
20853 TERMINFO="$TERMINFO"
20854 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
20855 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
20856 TICS_NAME="$TICS_NAME"
20857 TIC_PATH="$TIC_PATH"
20858 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
20859 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
20860 TINFO_NAME="$TINFO_NAME"
20861 TINFO_SUFFIX="$TINFO_SUFFIX"
20862 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
20863 WITH_CURSES_H="$with_curses_h"
20864 WITH_ECHO="${enable_echo:=yes}"
20865 WITH_OVERWRITE="$with_overwrite"
20866 cf_LIST_MODELS="$cf_list_models"
20867 cf_cv_abi_version="$cf_cv_abi_version"
20868 cf_cv_do_relink="$cf_cv_do_relink"
20869 cf_cv_do_symlinks="$cf_cv_do_symlinks"
20870 cf_cv_enable_lp64="$cf_cv_enable_lp64"
20871 cf_cv_enable_opaque="$cf_cv_enable_opaque"
20872 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
20873 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
20874 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
20875 cf_cv_rel_version="$cf_cv_rel_version"
20876 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
20877 cf_cv_shared_soname='$cf_cv_shared_soname'
20878 cf_cv_shlib_version="$cf_cv_shlib_version"
20879 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
20880 cf_cv_system_name="$cf_cv_system_name"
20881 cf_cv_term_driver="$with_term_driver"
20882 cf_with_ada="$cf_with_ada"
20883 cf_with_cxx_binding="$cf_with_cxx_binding"
20884 cf_with_manpages="$cf_with_manpages"
20885 cf_with_tests="$cf_with_tests"
20886 with_shared_cxx="$with_shared_cxx"
20892 cat >>$CONFIG_STATUS <<\EOF
20893 for ac_config_target in $ac_config_targets
20895 case "$ac_config_target" in
20896 # Handling of arguments.
20897 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
20898 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
20899 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
20900 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
20901 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
20902 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
20903 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
20904 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20905 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20906 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
20907 *) { { echo "$as_me:20907: error: invalid argument: $ac_config_target" >&5
20908 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20909 { (exit 1); exit 1; }; };;
20913 # If the user did not use the arguments to specify the items to instantiate,
20914 # then the envvar interface is used. Set only those that are not.
20915 # We use the long form for the default assignment because of an extremely
20916 # bizarre bug on SunOS 4.1.3.
20917 if $ac_need_defaults; then
20918 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20919 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20920 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20923 # Create a temporary directory, and hook for its removal unless debugging.
20926 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20927 trap '{ (exit 1); exit 1; }' 1 2 13 15
20930 # Create a (secure) tmp directory for tmp files.
20933 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20934 test -n "$tmp" && test -d "$tmp"
20937 tmp=$TMPDIR/cs$$-$RANDOM
20938 (umask 077 && mkdir $tmp)
20941 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20942 { (exit 1); exit 1; }
20947 cat >>$CONFIG_STATUS <<EOF
20950 # CONFIG_FILES section.
20953 # No need to generate the scripts if there are no CONFIG_FILES.
20954 # This happens for instance when ./config.status config.h
20955 if test -n "\$CONFIG_FILES"; then
20956 # Protect against being on the right side of a sed subst in config.status.
20957 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20958 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20959 s,@SHELL@,$SHELL,;t t
20960 s,@exec_prefix@,$exec_prefix,;t t
20961 s,@prefix@,$prefix,;t t
20962 s,@program_transform_name@,$program_transform_name,;t t
20963 s,@bindir@,$bindir,;t t
20964 s,@sbindir@,$sbindir,;t t
20965 s,@libexecdir@,$libexecdir,;t t
20966 s,@datarootdir@,$datarootdir,;t t
20967 s,@datadir@,$datadir,;t t
20968 s,@sysconfdir@,$sysconfdir,;t t
20969 s,@sharedstatedir@,$sharedstatedir,;t t
20970 s,@localstatedir@,$localstatedir,;t t
20971 s,@libdir@,$libdir,;t t
20972 s,@includedir@,$includedir,;t t
20973 s,@oldincludedir@,$oldincludedir,;t t
20974 s,@infodir@,$infodir,;t t
20975 s,@mandir@,$mandir,;t t
20976 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20977 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20978 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20979 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20980 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20981 s,@build_alias@,$build_alias,;t t
20982 s,@host_alias@,$host_alias,;t t
20983 s,@target_alias@,$target_alias,;t t
20984 s,@ECHO_C@,$ECHO_C,;t t
20985 s,@ECHO_N@,$ECHO_N,;t t
20986 s,@ECHO_T@,$ECHO_T,;t t
20987 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20988 s,@DEFS@,$DEFS,;t t
20989 s,@LIBS@,$LIBS,;t t
20990 s,@top_builddir@,$top_builddir,;t t
20991 s,@EGREP@,$EGREP,;t t
20992 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
20993 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
20994 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
20995 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
20996 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
20997 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
20998 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
20999 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
21000 s,@build@,$build,;t t
21001 s,@build_cpu@,$build_cpu,;t t
21002 s,@build_vendor@,$build_vendor,;t t
21003 s,@build_os@,$build_os,;t t
21004 s,@host@,$host,;t t
21005 s,@host_cpu@,$host_cpu,;t t
21006 s,@host_vendor@,$host_vendor,;t t
21007 s,@host_os@,$host_os,;t t
21008 s,@target@,$target,;t t
21009 s,@target_cpu@,$target_cpu,;t t
21010 s,@target_vendor@,$target_vendor,;t t
21011 s,@target_os@,$target_os,;t t
21013 s,@CFLAGS@,$CFLAGS,;t t
21014 s,@LDFLAGS@,$LDFLAGS,;t t
21015 s,@CPPFLAGS@,$CPPFLAGS,;t t
21016 s,@ac_ct_CC@,$ac_ct_CC,;t t
21017 s,@EXEEXT@,$EXEEXT,;t t
21018 s,@OBJEXT@,$OBJEXT,;t t
21019 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
21021 s,@LDCONFIG@,$LDCONFIG,;t t
21023 s,@CXXFLAGS@,$CXXFLAGS,;t t
21024 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21026 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21027 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21028 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21029 s,@LINT@,$LINT,;t t
21030 s,@LINT_OPTS@,$LINT_OPTS,;t t
21031 s,@LN_S@,$LN_S,;t t
21032 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21033 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21034 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
21035 s,@SET_MAKE@,$SET_MAKE,;t t
21036 s,@CTAGS@,$CTAGS,;t t
21037 s,@ETAGS@,$ETAGS,;t t
21038 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21039 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21040 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
21041 s,@RANLIB@,$RANLIB,;t t
21042 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21044 s,@ac_ct_LD@,$ac_ct_LD,;t t
21046 s,@ac_ct_AR@,$ac_ct_AR,;t t
21047 s,@ARFLAGS@,$ARFLAGS,;t t
21048 s,@DESTDIR@,$DESTDIR,;t t
21049 s,@BUILD_CC@,$BUILD_CC,;t t
21050 s,@BUILD_CPP@,$BUILD_CPP,;t t
21051 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21052 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
21053 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
21054 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21055 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21056 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
21057 s,@cf_list_models@,$cf_list_models,;t t
21058 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
21059 s,@LIBTOOL@,$LIBTOOL,;t t
21060 s,@LT_UNDEF@,$LT_UNDEF,;t t
21061 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
21062 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21063 s,@LIB_CREATE@,$LIB_CREATE,;t t
21064 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
21065 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
21066 s,@LIB_PREP@,$LIB_PREP,;t t
21067 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21068 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21069 s,@LIB_LINK@,$LIB_LINK,;t t
21070 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
21071 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
21072 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
21073 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21074 s,@TICS_NAME@,$TICS_NAME,;t t
21075 s,@TINFO_NAME@,$TINFO_NAME,;t t
21076 s,@LIB_NAME@,$LIB_NAME,;t t
21077 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
21078 s,@CC_G_OPT@,$CC_G_OPT,;t t
21079 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
21080 s,@LD_MODEL@,$LD_MODEL,;t t
21081 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21082 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
21083 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21084 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
21085 s,@LINK_PROGS@,$LINK_PROGS,;t t
21086 s,@LINK_TESTS@,$LINK_TESTS,;t t
21087 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21088 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21089 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
21090 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
21091 s,@RPATH_LIST@,$RPATH_LIST,;t t
21092 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21093 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
21094 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
21095 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
21096 s,@XTERM_KBS@,$XTERM_KBS,;t t
21097 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
21098 s,@TERMINFO@,$TERMINFO,;t t
21099 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
21100 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
21101 s,@TERMPATH@,$TERMPATH,;t t
21102 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
21103 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
21104 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
21105 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
21106 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
21107 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
21108 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
21109 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
21110 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
21111 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
21112 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
21113 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
21114 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
21115 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
21116 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
21117 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
21118 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
21119 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
21120 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
21121 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
21122 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
21123 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
21124 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
21125 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
21126 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
21127 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
21128 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
21129 s,@PTHREAD@,$PTHREAD,;t t
21130 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
21131 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
21132 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
21133 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
21134 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21135 s,@ECHO_LT@,$ECHO_LT,;t t
21136 s,@ECHO_LD@,$ECHO_LD,;t t
21137 s,@RULE_CC@,$RULE_CC,;t t
21138 s,@SHOW_CC@,$SHOW_CC,;t t
21139 s,@ECHO_CC@,$ECHO_CC,;t t
21140 s,@ECHO_LINK@,$ECHO_LINK,;t t
21141 s,@ADAFLAGS@,$ADAFLAGS,;t t
21142 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21143 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
21144 s,@ADA_TRACE@,$ADA_TRACE,;t t
21145 s,@MATH_LIB@,$MATH_LIB,;t t
21146 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
21147 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
21148 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
21149 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
21150 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
21151 s,@TEST_LIBS@,$TEST_LIBS,;t t
21152 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
21153 s,@CXXCPP@,$CXXCPP,;t t
21154 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
21155 s,@CXX_AR@,$CXX_AR,;t t
21156 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
21157 s,@CXXLIBS@,$CXXLIBS,;t t
21158 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
21159 s,@gnat_exists@,$gnat_exists,;t t
21160 s,@M4_exists@,$M4_exists,;t t
21161 s,@cf_ada_make@,$cf_ada_make,;t t
21162 s,@cf_compile_generics@,$cf_compile_generics,;t t
21163 s,@cf_generic_objects@,$cf_generic_objects,;t t
21164 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
21165 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
21166 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
21167 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
21168 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
21169 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
21170 s,@cf_ada_package@,$cf_ada_package,;t t
21171 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
21172 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
21173 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
21174 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
21175 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
21176 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
21177 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21178 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21179 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
21180 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
21181 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
21182 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
21183 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
21184 s,@TICS_LIBS@,$TICS_LIBS,;t t
21185 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
21186 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
21187 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
21188 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21189 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21190 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
21191 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21192 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21193 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
21194 s,@TICS_LIST@,$TICS_LIST,;t t
21195 s,@TINFO_LIST@,$TINFO_LIST,;t t
21196 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
21197 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
21198 s,@TEST_ARGS@,$TEST_ARGS,;t t
21199 s,@TEST_DEPS@,$TEST_DEPS,;t t
21200 s,@TEST_ARG2@,$TEST_ARG2,;t t
21201 s,@TEST_DEP2@,$TEST_DEP2,;t t
21202 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
21203 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
21204 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
21205 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
21206 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
21207 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
21208 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
21209 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
21210 s,@cross_compiling@,$cross_compiling,;t t
21211 s,@TIC_PATH@,$TIC_PATH,;t t
21212 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
21213 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
21218 cat >>$CONFIG_STATUS <<\EOF
21219 # Split the substitutions into bite-sized pieces for seds with
21220 # small command number limits, like on Digital OSF/1 and HP-UX.
21221 ac_max_sed_lines=48
21222 ac_sed_frag=1 # Number of current file.
21223 ac_beg=1 # First line for current file.
21224 ac_end=$ac_max_sed_lines # Line after last line for current file.
21227 while $ac_more_lines; do
21228 if test $ac_beg -gt 1; then
21229 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21231 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21233 if test ! -s $tmp/subs.frag; then
21234 ac_more_lines=false
21236 # The purpose of the label and of the branching condition is to
21237 # speed up the sed processing (if there are no `@' at all, there
21238 # is no need to browse any of the substitutions).
21239 # These are the two extra sed commands mentioned above.
21241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21242 if test -z "$ac_sed_cmds"; then
21243 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21245 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21247 ac_sed_frag=`expr $ac_sed_frag + 1`
21249 ac_end=`expr $ac_end + $ac_max_sed_lines`
21252 if test -z "$ac_sed_cmds"; then
21255 fi # test -n "$CONFIG_FILES"
21258 cat >>$CONFIG_STATUS <<\EOF
21259 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21262 - | *:- | *:-:* ) # input from stdin
21264 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21266 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21268 * ) ac_file_in=$ac_file.in ;;
21271 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21272 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21273 X"$ac_file" : 'X\(//\)[^/]' \| \
21274 X"$ac_file" : 'X\(//\)$' \| \
21275 X"$ac_file" : 'X\(/\)' \| \
21276 . : '\(.\)' 2>/dev/null ||
21278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21280 /^X\(\/\/\)$/{ s//\1/; q; }
21281 /^X\(\/\).*/{ s//\1/; q; }
21283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21284 { case "$ac_dir" in
21285 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21289 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21290 case $as_mkdir_dir in
21291 # Skip DOS drivespec
21292 ?:) as_incr_dir=$as_mkdir_dir ;;
21294 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21295 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21300 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21301 # A "../" for each directory in $ac_dir_suffix.
21302 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21304 ac_dir_suffix= ac_dots=
21309 if test -z "$ac_dots"; then
21312 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21314 [\\/]* | ?:[\\/]* )
21315 ac_srcdir=$srcdir$ac_dir_suffix;
21316 ac_top_srcdir=$srcdir ;;
21317 *) # Relative path.
21318 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21319 ac_top_srcdir=$ac_dots$srcdir ;;
21323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21324 *) ac_INSTALL=$ac_dots$INSTALL ;;
21327 if test x"$ac_file" != x-; then
21328 { echo "$as_me:21328: creating $ac_file" >&5
21329 echo "$as_me: creating $ac_file" >&6;}
21332 # Let's still pretend it is `configure' which instantiates (i.e., don't
21333 # use $as_me), people would be surprised to read:
21334 # /* config.h. Generated automatically by config.status. */
21335 configure_input="Generated automatically from `echo $ac_file_in |
21336 sed 's,.*/,,'` by configure."
21338 # First look for the input files in the build tree, otherwise in the
21340 ac_file_inputs=`IFS=:
21341 for f in $ac_file_in; do
21343 -) echo $tmp/stdin ;;
21345 # Absolute (can't be DOS-style, as IFS=:)
21346 test -f "$f" || { { echo "$as_me:21346: error: cannot find input file: $f" >&5
21347 echo "$as_me: error: cannot find input file: $f" >&2;}
21348 { (exit 1); exit 1; }; }
21351 if test -f "$f"; then
21354 elif test -f "$srcdir/$f"; then
21359 { { echo "$as_me:21359: error: cannot find input file: $f" >&5
21360 echo "$as_me: error: cannot find input file: $f" >&2;}
21361 { (exit 1); exit 1; }; }
21364 done` || { (exit 1); exit 1; }
21366 cat >>$CONFIG_STATUS <<\EOF
21367 ac_warn_datarootdir=no
21368 if test x"$ac_file" != x-; then
21369 for ac_item in $ac_file_inputs
21371 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
21372 if test -n "$ac_seen"; then
21373 ac_used=`grep '@datarootdir@' $ac_item`
21374 if test -z "$ac_used"; then
21375 { echo "$as_me:21375: WARNING: datarootdir was used implicitly but not set:
21377 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
21379 ac_warn_datarootdir=yes
21382 ac_seen=`grep '${datarootdir}' $ac_item`
21383 if test -n "$ac_seen"; then
21384 { echo "$as_me:21384: WARNING: datarootdir was used explicitly but not set:
21386 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
21388 ac_warn_datarootdir=yes
21393 if test "x$ac_warn_datarootdir" = xyes; then
21394 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
21398 cat >>$CONFIG_STATUS <<EOF
21402 cat >>$CONFIG_STATUS <<\EOF
21404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21405 s,@configure_input@,$configure_input,;t t
21406 s,@srcdir@,$ac_srcdir,;t t
21407 s,@top_srcdir@,$ac_top_srcdir,;t t
21408 s,@INSTALL@,$ac_INSTALL,;t t
21409 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21411 if test x"$ac_file" != x-; then
21412 cp $tmp/out $ac_file
21414 for ac_name in prefix exec_prefix datarootdir
21416 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
21417 if test -n "$ac_seen"; then
21418 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
21419 if test -z "$ac_init"; then
21420 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
21421 { echo "$as_me:21421: WARNING: Variable $ac_name is used but was not set:
21423 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
21428 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
21429 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
21430 if test -s $tmp/out; then
21431 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
21432 { echo "$as_me:21432: WARNING: Some variables may not be substituted:
21434 echo "$as_me: WARNING: Some variables may not be substituted:
21444 cat >>$CONFIG_STATUS <<\EOF
21447 # CONFIG_HEADER section.
21450 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21451 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21453 # ac_d sets the value in "#define NAME VALUE" lines.
21454 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21455 ac_dB='[ ].*$,\1#\2'
21458 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21459 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21460 ac_iB='\([ ]\),\1#\2define\3'
21463 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21464 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21465 ac_uB='$,\1#\2define\3'
21469 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21472 - | *:- | *:-:* ) # input from stdin
21474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21478 * ) ac_file_in=$ac_file.in ;;
21481 test x"$ac_file" != x- && { echo "$as_me:21481: creating $ac_file" >&5
21482 echo "$as_me: creating $ac_file" >&6;}
21484 # First look for the input files in the build tree, otherwise in the
21486 ac_file_inputs=`IFS=:
21487 for f in $ac_file_in; do
21489 -) echo $tmp/stdin ;;
21491 # Absolute (can't be DOS-style, as IFS=:)
21492 test -f "$f" || { { echo "$as_me:21492: error: cannot find input file: $f" >&5
21493 echo "$as_me: error: cannot find input file: $f" >&2;}
21494 { (exit 1); exit 1; }; }
21497 if test -f "$f"; then
21500 elif test -f "$srcdir/$f"; then
21505 { { echo "$as_me:21505: error: cannot find input file: $f" >&5
21506 echo "$as_me: error: cannot find input file: $f" >&2;}
21507 { (exit 1); exit 1; }; }
21510 done` || { (exit 1); exit 1; }
21511 # Remove the trailing spaces.
21512 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21516 # Transform confdefs.h into a list of #define's. We won't use it as a sed
21517 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
21518 # be either 'cat' or 'sort'.
21519 cat confdefs.h | uniq >conftest.vals
21521 # Break up conftest.vals because some shells have a limit on
21522 # the size of here documents, and old seds have small limits too.
21524 rm -f conftest.tail
21525 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
21526 while grep . conftest.vals >/dev/null
21528 # Write chunks of a limited-size here document to conftest.frag.
21529 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
21530 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
21531 echo 'CEOF' >> $CONFIG_STATUS
21532 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21533 rm -f conftest.vals
21534 mv conftest.tail conftest.vals
21536 rm -f conftest.vals
21538 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
21540 echo ' cat >> conftest.edit <<CEOF
21541 /@DEFS@/r conftest.frag
21544 sed -f conftest.edit $tmp/in > $tmp/out
21546 mv $tmp/out $tmp/in
21547 rm -f conftest.edit conftest.frag
21548 ' >> $CONFIG_STATUS
21550 cat >>$CONFIG_STATUS <<\EOF
21551 # Let's still pretend it is `configure' which instantiates (i.e., don't
21552 # use $as_me), people would be surprised to read:
21553 # /* config.h. Generated automatically by config.status. */
21554 if test x"$ac_file" = x-; then
21555 echo "/* Generated automatically by configure. */" >$tmp/config.h
21557 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
21559 cat $tmp/in >>$tmp/config.h
21561 if test x"$ac_file" != x-; then
21562 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
21563 { echo "$as_me:21563: $ac_file is unchanged" >&5
21564 echo "$as_me: $ac_file is unchanged" >&6;}
21566 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21567 X"$ac_file" : 'X\(//\)[^/]' \| \
21568 X"$ac_file" : 'X\(//\)$' \| \
21569 X"$ac_file" : 'X\(/\)' \| \
21570 . : '\(.\)' 2>/dev/null ||
21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21574 /^X\(\/\/\)$/{ s//\1/; q; }
21575 /^X\(\/\).*/{ s//\1/; q; }
21577 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21578 { case "$ac_dir" in
21579 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21583 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21584 case $as_mkdir_dir in
21585 # Skip DOS drivespec
21586 ?:) as_incr_dir=$as_mkdir_dir ;;
21588 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21589 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21596 mv $tmp/config.h $ac_file
21600 rm -f $tmp/config.h
21604 cat >>$CONFIG_STATUS <<\EOF
21606 # CONFIG_COMMANDS section.
21608 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21609 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21610 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21614 if test "x$cf_with_tests" != xno ; then
21618 if test ! -d $srcdir/$cf_dir; then
21620 elif test -f $srcdir/$cf_dir/programs; then
21621 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
21627 cf_prefix=$LIB_PREFIX
21629 case $cf_cv_shlib_version in #(vi
21631 TINFO_NAME=$TINFO_ARG_SUFFIX
21636 if test -n "$TINFO_SUFFIX" ; then
21637 case $TINFO_SUFFIX in
21639 TINFO_NAME="${TINFO_NAME}tw"
21640 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
21643 TINFO_NAME="${TINFO_NAME}t"
21644 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
21647 TINFO_NAME="${TINFO_NAME}w"
21648 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
21653 for cf_dir in $SRC_SUBDIRS
21655 if test ! -d $srcdir/$cf_dir ; then
21657 elif test -f $srcdir/$cf_dir/modules; then
21661 for cf_item in $cf_LIST_MODELS
21664 case $cf_item in #(vi
21667 cf_depsuf=$cf_suffix
21671 cf_depsuf=$cf_suffix
21675 cf_depsuf=$cf_suffix
21679 cf_depsuf=$cf_suffix
21682 case $cf_cv_system_name in
21685 cf_depsuf=$cf_suffix
21687 cygwin*|mingw*) #(vi
21693 cf_depsuf=$cf_suffix
21699 cf_depsuf=$cf_suffix
21703 cf_depsuf=$cf_suffix
21708 cf_depsuf=$cf_suffix
21712 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21713 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21716 test "$cf_dir" = c++ && cf_libname=ncurses++
21717 if test $cf_item = shared ; then
21718 if test "$cf_cv_do_symlinks" = yes ; then
21719 case "$cf_cv_shlib_version" in #(vi
21721 case "$cf_cv_system_name" in #(vi
21723 case .${LIB_SUFFIX} in
21725 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21726 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
21729 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21730 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
21733 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21734 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
21737 cf_suffix='.${REL_VERSION}'"$cf_suffix"
21741 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
21745 case "$cf_cv_system_name" in #(vi
21747 case .${LIB_SUFFIX} in
21749 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21750 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
21753 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21754 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
21757 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21758 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
21761 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
21765 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
21770 # cygwin needs import library, and has unique naming convention
21771 # use autodetected ${cf_prefix} for import lib and static lib, but
21772 # use 'cyg' prefix for shared lib.
21773 case $cf_cv_shlib_version in #(vi
21775 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21776 Libs_To_Make="$Libs_To_Make ../lib/cyg${cf_libname}${cf_cygsuf}"
21780 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21781 Libs_To_Make="$Libs_To_Make ../lib/lib${cf_libname}${cf_cygsuf}"
21786 Libs_To_Make="$Libs_To_Make ../lib/${cf_prefix}${cf_libname}${cf_suffix}"
21789 if test $cf_dir = ncurses ; then
21790 cf_subsets="$LIB_SUBSETS"
21791 cf_r_parts="$cf_subsets"
21792 cf_liblist="$Libs_To_Make"
21794 while test -n "$cf_r_parts"
21796 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
21797 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
21798 if test "$cf_l_parts" != "$cf_r_parts" ; then
21800 case $cf_l_parts in #(vi
21802 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
21805 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
21811 if test -n "$cf_item"; then
21812 Libs_To_Make="$cf_item $Libs_To_Make"
21819 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
21822 if test $cf_dir = c++; then
21823 if test "x$with_shared_cxx" != xyes; then
21824 Libs_To_Make='../lib/$(LIBNAME)'
21828 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
21829 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
21830 $cf_dir/Makefile >$cf_dir/Makefile.out
21831 mv $cf_dir/Makefile.out $cf_dir/Makefile
21833 $AWK -f $srcdir/mk-0th.awk \
21834 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
21835 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21837 for cf_subset in $cf_subsets
21840 for cf_item in $cf_LIST_MODELS
21843 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
21845 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21848 if test "$CXX_MODEL" = SHARED; then
21849 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
21852 case $cf_item in #(vi
21855 cf_depsuf=$cf_suffix
21859 cf_depsuf=$cf_suffix
21863 cf_depsuf=$cf_suffix
21867 cf_depsuf=$cf_suffix
21870 case $cf_cv_system_name in
21873 cf_depsuf=$cf_suffix
21875 cygwin*|mingw*) #(vi
21881 cf_depsuf=$cf_suffix
21887 cf_depsuf=$cf_suffix
21891 cf_depsuf=$cf_suffix
21896 cf_depsuf=$cf_suffix
21900 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21901 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21904 libtool) cf_subdir='obj_lo' ;;
21905 normal) cf_subdir='objects' ;;
21906 debug) cf_subdir='obj_g' ;;
21907 profile) cf_subdir='obj_p' ;;
21909 case $cf_cv_system_name in #(vi
21911 cf_subdir='objects' ;;
21913 cf_subdir='obj_s' ;;
21917 # Test for case where we build libtinfo with a different name.
21919 if test $cf_dir = ncurses ; then
21922 cf_libname=${cf_libname}$LIB_SUFFIX
21925 cf_libname=$TINFO_LIB_SUFFIX
21928 cf_libname=$TICS_LIB_SUFFIX
21931 elif test $cf_dir = c++ ; then
21932 cf_libname=ncurses++$LIB_SUFFIX
21934 cf_libname=${cf_libname}$LIB_SUFFIX
21936 if test -n "${DFT_ARG_SUFFIX}" ; then
21937 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
21938 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
21941 # These dependencies really are for development, not
21942 # builds, but they are useful in porting, too.
21943 cf_depend="../include/ncurses_cfg.h"
21944 if test "$srcdir" = "."; then
21947 cf_reldir="\${srcdir}"
21950 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
21951 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
21952 elif test -f $srcdir/$cf_dir/curses.priv.h; then
21953 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
21957 old_cf_suffix="$cf_suffix"
21958 if test "$cf_cv_shlib_version_infix" = yes ; then
21959 if test -n "$LIB_SUFFIX" ; then
21960 case $LIB_SUFFIX in
21962 cf_libname=`echo $cf_libname | sed 's/tw$//'`
21963 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21967 cf_libname=`echo $cf_libname | sed 's/t$//'`
21968 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21972 cf_libname=`echo $cf_libname | sed 's/w$//'`
21973 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21980 $AWK -f $srcdir/mk-1st.awk \
21981 name=${cf_libname}${cf_dir_suffix} \
21982 traces=$LIB_TRACING \
21984 CXX_MODEL=$CXX_MODEL \
21986 prefix=$cf_prefix \
21987 suffix=$cf_suffix \
21988 subset=$cf_subset \
21989 driver=$cf_cv_term_driver \
21991 TermlibRoot=$TINFO_NAME \
21992 TermlibSuffix=$TINFO_SUFFIX \
21993 ShlibVer=$cf_cv_shlib_version \
21994 ShlibVerInfix=$cf_cv_shlib_version_infix \
21995 ReLink=${cf_cv_do_relink:-no} \
21996 DoLinks=$cf_cv_do_symlinks \
21997 rmSoLocs=$cf_cv_rm_so_locs \
21998 ldconfig="$LDCONFIG" \
21999 overwrite=$WITH_OVERWRITE \
22000 depend="$cf_depend" \
22002 libtool_version="$LIBTOOL_VERSION" \
22003 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22005 cf_suffix="$old_cf_suffix"
22007 for cf_subdir2 in $cf_subdirs lib
22009 test $cf_subdir = $cf_subdir2 && break
22011 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
22012 $AWK -f $srcdir/mk-2nd.awk \
22014 traces=$LIB_TRACING \
22017 subset=$cf_subset \
22020 crenames=$cf_cv_prog_CC_c_o \
22021 cxxrenames=$cf_cv_prog_CXX_c_o \
22022 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22023 cf_subdirs="$cf_subdirs $cf_subdir"
22028 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
22031 for cf_dir in $SRC_SUBDIRS
22033 if test ! -d $srcdir/$cf_dir ; then
22037 if test -f $cf_dir/Makefile ; then
22040 echo 'libs \' >> Makefile
22041 echo 'install.libs \' >> Makefile
22042 echo 'uninstall.libs ::' >> Makefile
22043 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
22048 if test -f $srcdir/$cf_dir/modules; then
22050 if test -f $srcdir/$cf_dir/headers; then
22051 cat >> Makefile <<CF_EOF
22052 install.includes \\
22053 uninstall.includes \\
22056 if test "$cf_dir" != "c++" ; then
22057 echo 'lint \' >> Makefile
22059 cat >> Makefile <<CF_EOF
22065 uninstall.$cf_dir ::
22066 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
22068 elif test -f $srcdir/$cf_dir/headers; then
22069 cat >> Makefile <<CF_EOF
22074 install.includes \\
22075 uninstall.includes ::
22076 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
22081 cat >> Makefile <<CF_EOF
22083 install.libs uninstall.libs \\
22084 install.data uninstall.data ::
22085 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
22088 if test "x$cf_with_manpages" = xyes; then
22089 cat >> Makefile <<CF_EOF
22093 cd man && \${MAKE} \${TOP_MFLAGS} \$@
22097 cat >> Makefile <<CF_EOF
22100 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
22101 rm -f headers.sh headers.sed mk_shared_lib.sh
22102 rm -f edit_man.* man_alias.*
22103 rm -rf \${DIRS_TO_MAKE}
22106 # Special case: tack's manpage lives in its own directory.
22107 if test "x$cf_with_manpages" = xyes; then
22108 if test -d tack ; then
22109 if test -f $srcdir/$tack.h; then
22110 cat >> Makefile <<CF_EOF
22114 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
22120 rm -f headers.sed headers.sh
22122 echo creating headers.sh
22123 cat >headers.sh <<CF_EOF
22125 # This shell script is generated by the 'configure' script. It is invoked in a
22126 # subdirectory of the build tree. It generates a sed-script in the parent
22127 # directory that is used to adjust includes for header files that reside in a
22128 # subdirectory of /usr/include, etc.
22130 while test \$# != 3
22132 PRG="\$PRG \$1"; shift
22137 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
22138 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
22139 echo installing \$SRC in \$DST
22142 if test $WITH_CURSES_H = yes; then
22143 cat >>headers.sh <<CF_EOF
22146 END=\`basename \$DST\`
22147 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22149 NAME=\`basename \$i\`
22150 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22154 echo "" >> \$TMPSED
22160 cat >>headers.sh <<CF_EOF
22163 END=\`basename \$DST\`
22164 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22166 NAME=\`basename \$i\`
22167 if test "\$NAME" = "curses.h"
22169 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22172 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22176 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22181 cat >>headers.sh <<CF_EOF
22183 sed -f \$TMPSED \$SRC > \$TMPSRC
22184 NAME=\`basename \$SRC\`
22186 if test $WITH_CURSES_H != yes; then
22187 cat >>headers.sh <<CF_EOF
22188 test "\$NAME" = "curses.h" && NAME=ncurses.h
22191 cat >>headers.sh <<CF_EOF
22192 # Just in case someone gzip'd manpages, remove the conflicting copy.
22193 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
22195 eval \$PRG \$TMPSRC \$DST/\$NAME
22196 rm -f \$TMPSRC \$TMPSED
22199 chmod 0755 headers.sh
22201 for cf_dir in $SRC_SUBDIRS
22203 if test ! -d $srcdir/$cf_dir ; then
22207 if test -f $srcdir/$cf_dir/headers; then
22208 $AWK -f $srcdir/mk-hdr.awk \
22209 subset="$LIB_SUBSETS" \
22210 compat="$WITH_CURSES_H" \
22211 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
22214 if test -f $srcdir/$cf_dir/modules; then
22215 if test "$cf_dir" != "c++" ; then
22216 cat >>$cf_dir/Makefile <<"CF_EOF"
22217 depend : ${AUTO_SRC}
22218 makedepend -- ${CPPFLAGS} -- ${C_SRC}
22220 # DO NOT DELETE THIS LINE -- make depend depends on it.
22226 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22227 if test -z "$USE_OLD_MAKERULES" ; then
22228 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
22236 cat >>$CONFIG_STATUS <<\EOF
22238 { (exit 0); exit 0; }
22240 chmod +x $CONFIG_STATUS
22241 ac_clean_files=$ac_clean_files_save
22243 # configure is writing to config.log, and then calls config.status.
22244 # config.status does its own redirection, appending to config.log.
22245 # Unfortunately, on DOS this fails, as config.log is still kept open
22246 # by configure, so config.status won't be able to write to it; its
22247 # output is simply discarded. So we exec the FD to /dev/null,
22248 # effectively closing config.log, so it can be properly (re)opened and
22249 # appended to by config.status. When coming back to configure, we
22250 # need to make the FD available again.
22251 if test "$no_create" != yes; then
22254 $SHELL $CONFIG_STATUS || ac_cs_success=false
22256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22257 # would make configure fail if this is the last instruction.
22258 $ac_cs_success || { (exit 1); exit 1; }
22260 ${MAKE:-make} preinstall