2 # From configure.in Revision: 1.645 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20170501.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tack suppress build/install with tack program
713 --without-tests suppress build/install with test-programs
714 --without-curses-h install curses.h as ncurses.h only
715 --with-pkg-config{=path} enable/disable use of pkg-config
716 --with-pkg-config-libdir=XXX use given directory for installing pc-files
717 --enable-pc-files generate and install .pc files for pkg-config
718 --with-pc-suffix suffixes pc-files
719 --enable-mixed-case tic should assume mixed-case filenames
720 --with-install-prefix prefixes actual install-location ($DESTDIR)
721 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
722 --with-build-cc=XXX the build C compiler ($BUILD_CC)
723 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
724 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
725 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
726 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
727 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
728 Options to Specify the Libraries Built/Used:
729 --disable-libtool-version enable to use libtool's incompatible naming scheme
730 --with-libtool generate libraries with libtool
731 --with-shared generate shared-libraries
732 --with-normal generate normal-libraries (default)
733 --with-debug generate debug-libraries (default)
734 --with-profile generate profile-libraries
735 --with-cxx-shared generate C++ shared-libraries
736 --with-lib-prefix override library-prefix
737 --with-termlib generate separate terminfo library
738 --with-ticlib generate separate tic library
739 --with-gpm use Alessandro Rubini's GPM library
740 --without-dlsym do not use dlsym() to load GPM dynamically
741 --with-sysmouse use sysmouse (FreeBSD console)
742 --enable-rpath use rpath option when generating shared libraries
743 --disable-relink relink shared libraries during install
744 --with-shlib-version=X Specify rel or abi version for shared libs
745 --with-libtool-opts=XXX specify additional libtool options
746 --with-export-syms=XXX limit exported symbols using libtool
747 --with-versioned-syms=X markup versioned symbols using ld
748 --disable-lib-suffixes disable library suffixes
749 --disable-rpath-hack don't add rpath options for additional libraries
750 Fine-Tuning Your Configuration:
751 --with-extra-suffix=X append extra suffix to header/library paths
752 --disable-overwrite put headers in subdir, omit link to -lcurses
753 --disable-database do not use terminfo, only fallbacks/termcap
754 --with-database=XXX specify terminfo source to install
755 --with-hashed-db specify hashed-database library
756 --with-fallbacks=XXX specify list of fallback terminal descriptions
757 --without-xterm-new specify if xterm terminfo should be old version
758 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
759 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
760 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
761 --disable-big-core assume machine has little memory
762 --disable-big-strings assume compiler has only standard-size strings
763 --enable-termcap compile in termcap fallback support
764 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
765 --enable-getcap fast termcap load, no xrefs to terminfo
766 --enable-getcap-cache cache translated termcaps in ~/.terminfo
767 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
768 --disable-root-environ restrict environment when running as root
769 --enable-symlinks make tic use symbolic links not hard links
770 --enable-broken_linker compile with broken-linker support code
771 --enable-bsdpad recognize BSD-style prefix padding
772 --enable-widec compile with wide-char/UTF-8 code
773 --disable-lp64 allow chtype to be long (ignore _LP64)
774 --disable-largefile omit support for large files
775 --disable-tparm-varargs compile tparm() without varargs interface
776 --disable-tic-depends link tic library without explicit dependency on ncurses library
777 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
778 --with-bool=TYPE override fallback type of bool variable
779 --with-caps=alt compile with alternate Caps file
780 --with-chtype=TYPE override type of chtype
781 --with-ospeed=TYPE override type of ospeed variable
782 --with-mmask-t=TYPE override type of mmask_t
783 --with-ccharw-max=XXX override size CCHARW_MAX
784 --with-tparm-arg=TYPE override parameter type of tparm
785 --with-rcs-ids compile-in RCS identifiers
786 Options to Specify How Manpages are Installed:
787 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
788 optionally formatted/catonly, e.g., gzip,formatted
789 --with-manpage-renames specify manpage-renaming
790 --with-manpage-aliases specify manpage-aliases using .so
791 --with-manpage-symlinks specify manpage-aliases using symlinks
792 --with-manpage-tbl specify manpage processing with tbl
794 --disable-ext-funcs disable function-extensions
795 --enable-sp-funcs enable SCREEN-extensions
796 --enable-term-driver enable terminal-driver
797 --enable-const compile with extra/non-standard const
798 --enable-ext-colors compile for 256-color support
799 --enable-ext-mouse compile for extended mouse-encoding
800 --enable-ext-putwin compile with extended putwin/screendump
801 --enable-no-padding compile with $NCURSES_NO_PADDING code
802 --enable-signed-char compile using signed Boolean's in term.h
803 --enable-sigwinch compile with SIGWINCH handler
804 --enable-tcap-names compile with user-definable terminal capabilities
805 --with-pthread use POSIX thread library
806 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
807 --enable-weak-symbols enable weak-symbols for pthreads
808 --enable-reentrant compile with reentrant code
809 --enable-opaque-curses make curses WINDOW, etc., "opaque"
810 --enable-opaque-form make form-library structures "opaque"
811 --enable-opaque-menu make menu-library structures "opaque"
812 --enable-opaque-panel make panel-library structures "opaque"
813 --with-wrap-prefix=XXX override prefix used for public variables
815 --without-develop disable development options
816 --enable-hard-tabs compile with hard-tabs code
817 --enable-xmc-glitch compile with support for xmc (magic-cookie)
819 --disable-assumed-color do not assume anything about default-colors
820 --disable-hashmap compile without hashmap scrolling-optimization
821 --enable-colorfgbg compile-in experimental $COLORFGBG code
822 --enable-interop compile-in interop bindings
823 --enable-safe-sprintf compile with experimental safe-sprintf code
824 --disable-scroll-hints compile without scroll-hints code
825 --enable-wgetch-events compile with wgetch-events code
826 Testing/development Options:
827 --disable-echo do not display "compiling" commands
828 --enable-warnings build: turn on GCC compiler warnings
829 --enable-string-hacks work around bogus compiler/loader warnings
830 --enable-assertions test: turn on generation of assertion code
831 --with-dmalloc test: use Gray Watson's dmalloc library
832 --with-dbmalloc test: use Conor Cahill's dbmalloc library
833 --with-valgrind test: use valgrind
834 --disable-leaks test: free permanent memory, analyze leaks
835 --enable-expanded test: generate functions for certain macros
836 --disable-macros test: use functions rather than macros
837 --with-trace test: add trace() function to all models of ncurses
838 --disable-gnat-projects test: disable GNAT projects even if usable
839 Ada95 Binding Options:
840 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
841 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
842 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
843 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
845 Some influential environment variables:
846 CC C compiler command
847 CFLAGS C compiler flags
848 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
849 nonstandard directory <lib dir>
850 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
851 headers in a nonstandard directory <include dir>
853 CXX C++ compiler command
854 CXXFLAGS C++ compiler flags
855 CXXCPP C++ preprocessor
857 Use these variables to override the choices made by `configure' or to help
858 it to find libraries and programs with nonstandard names/locations.
863 if test "$ac_init_help" = "recursive"; then
864 # If there are subdirs, report their specific --help.
866 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
868 # A "../" for each directory in /$ac_subdir.
869 ac_dots=`echo $ac_subdir |
870 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
873 .) # No --srcdir option. We are building in place.
874 ac_sub_srcdir=$srcdir ;;
875 [\\/]* | ?:[\\/]* ) # Absolute path.
876 ac_sub_srcdir=$srcdir/$ac_subdir ;;
878 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
881 # Check for guested configure; otherwise get Cygnus style configure.
882 if test -f $ac_sub_srcdir/configure.gnu; then
884 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
885 elif test -f $ac_sub_srcdir/configure; then
887 $SHELL $ac_sub_srcdir/configure --help=recursive
888 elif test -f $ac_sub_srcdir/configure.ac ||
889 test -f $ac_sub_srcdir/configure.in; then
893 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
899 test -n "$ac_init_help" && exit 0
900 if $ac_init_version; then
903 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
904 Free Software Foundation, Inc.
905 This configure script is free software; the Free Software Foundation
906 gives unlimited permission to copy, distribute and modify it.
912 This file contains any messages produced by compilers while
913 running configure, to aid debugging if configure makes a mistake.
915 It was created by $as_me, which was
916 generated by GNU Autoconf 2.52.20170501. Invocation command line was
927 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
928 uname -m = `(uname -m) 2>/dev/null || echo unknown`
929 uname -r = `(uname -r) 2>/dev/null || echo unknown`
930 uname -s = `(uname -s) 2>/dev/null || echo unknown`
931 uname -v = `(uname -v) 2>/dev/null || echo unknown`
933 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
934 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
936 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
937 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
938 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
939 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
940 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
941 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
942 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
956 # Keep a trace of the command line.
957 # Strip out --no-create and --no-recursion so they do not pile up.
958 # Also quote any args containing shell meta-characters.
964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965 | --no-cr | --no-c) ;;
966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
968 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
969 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
970 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
972 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
975 # Get rid of the leading space.
978 # When interrupted or exit'd, cleanup temporary files, and complete
979 # config.log. We remove comments because anyway the quotes in there
980 # would cause problems or look ugly.
982 # Save into config.log some information that might help in debugging.
984 echo "## ----------------- ##" >&5
985 echo "## Cache variables. ##" >&5
986 echo "## ----------------- ##" >&5
988 # The following way of writing the cache mishandles newlines in values,
991 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
994 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
999 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1003 sed "/^$/d" confdefs.h >conftest.log
1004 if test -s conftest.log; then
1006 echo "## ------------ ##" >&5
1007 echo "## confdefs.h. ##" >&5
1008 echo "## ------------ ##" >&5
1010 cat conftest.log >&5
1013 test "$ac_signal" != 0 &&
1014 echo "$as_me: caught signal $ac_signal" >&5
1015 echo "$as_me: exit $exit_status" >&5
1016 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1019 for ac_signal in 1 2 13 15; do
1020 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1024 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1025 rm -rf conftest* confdefs.h
1026 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1029 # Let the site file select an alternate cache file if it wants to.
1030 # Prefer explicitly selected file to automatically selected ones.
1031 if test -z "$CONFIG_SITE"; then
1032 if test "x$prefix" != xNONE; then
1033 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1035 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1038 for ac_site_file in $CONFIG_SITE; do
1039 if test -r "$ac_site_file"; then
1040 { echo "$as_me:1040: loading site script $ac_site_file" >&5
1041 echo "$as_me: loading site script $ac_site_file" >&6;}
1042 cat "$ac_site_file" >&5
1047 if test -r "$cache_file"; then
1048 # Some versions of bash will fail to source /dev/null (special
1049 # files actually), so we avoid doing that.
1050 if test -f "$cache_file"; then
1051 { echo "$as_me:1051: loading cache $cache_file" >&5
1052 echo "$as_me: loading cache $cache_file" >&6;}
1054 [\\/]* | ?:[\\/]* ) . $cache_file;;
1055 *) . ./$cache_file;;
1059 { echo "$as_me:1059: creating cache $cache_file" >&5
1060 echo "$as_me: creating cache $cache_file" >&6;}
1064 # Check that the precious variables saved in the cache have kept the same
1066 ac_cache_corrupted=false
1067 for ac_var in `(set) 2>&1 |
1068 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1069 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1070 eval ac_new_set=\$ac_env_${ac_var}_set
1071 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1072 eval ac_new_val="\$ac_env_${ac_var}_value"
1073 case $ac_old_set,$ac_new_set in
1075 { echo "$as_me:1075: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1076 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1077 ac_cache_corrupted=: ;;
1079 { echo "$as_me:1079: error: \`$ac_var' was not set in the previous run" >&5
1080 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1081 ac_cache_corrupted=: ;;
1084 if test "x$ac_old_val" != "x$ac_new_val"; then
1085 { echo "$as_me:1085: error: \`$ac_var' has changed since the previous run:" >&5
1086 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1087 { echo "$as_me:1087: former value: $ac_old_val" >&5
1088 echo "$as_me: former value: $ac_old_val" >&2;}
1089 { echo "$as_me:1089: current value: $ac_new_val" >&5
1090 echo "$as_me: current value: $ac_new_val" >&2;}
1091 ac_cache_corrupted=:
1094 # Pass precious variables to config.status. It doesn't matter if
1095 # we pass some twice (in addition to the command line arguments).
1096 if test "$ac_new_set" = set; then
1098 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1099 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1100 ac_configure_args="$ac_configure_args '$ac_arg'"
1102 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1107 if $ac_cache_corrupted; then
1108 { echo "$as_me:1108: error: changes in the environment can compromise the build" >&5
1109 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1110 { { echo "$as_me:1110: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1111 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1112 { (exit 1); exit 1; }; }
1116 ac_cpp='$CPP $CPPFLAGS'
1117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1120 ac_main_return=return
1122 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1123 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1125 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1126 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1128 echo "#! $SHELL" >conftest.sh
1129 echo "exit 0" >>conftest.sh
1130 chmod +x conftest.sh
1131 if { (echo "$as_me:1131: PATH=\".;.\"; conftest.sh") >&5
1132 (PATH=".;."; conftest.sh) 2>&5
1134 echo "$as_me:1134: \$? = $ac_status" >&5
1135 (exit $ac_status); }; then
1136 ac_path_separator=';'
1140 PATH_SEPARATOR="$ac_path_separator"
1143 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1147 echo "$as_me:1147: checking for egrep" >&5
1148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1149 if test "${ac_cv_prog_egrep+set}" = set; then
1150 echo $ECHO_N "(cached) $ECHO_C" >&6
1152 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1153 then ac_cv_prog_egrep='grep -E'
1154 else ac_cv_prog_egrep='egrep'
1157 echo "$as_me:1157: result: $ac_cv_prog_egrep" >&5
1158 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1159 EGREP=$ac_cv_prog_egrep
1161 test -z "$EGREP" && { { echo "$as_me:1161: error: No egrep program found" >&5
1162 echo "$as_me: error: No egrep program found" >&2;}
1163 { (exit 1); exit 1; }; }
1165 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1166 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1167 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1168 cf_cv_abi_version=${NCURSES_MAJOR}
1169 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1170 cf_cv_timestamp=`date`
1171 echo "$as_me:1171: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1172 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1174 if test -f $srcdir/VERSION ; then
1175 echo "$as_me:1175: checking for package version" >&5
1176 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1178 # if there are not enough fields, cut returns the last one...
1179 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1180 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1181 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1183 # this is how CF_BUNDLED_INTL uses $VERSION:
1184 VERSION="$cf_field1"
1186 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1187 test -z "$VERSION_MAJOR" && { { echo "$as_me:1187: error: missing major-version" >&5
1188 echo "$as_me: error: missing major-version" >&2;}
1189 { (exit 1); exit 1; }; }
1191 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1192 test -z "$VERSION_MINOR" && { { echo "$as_me:1192: error: missing minor-version" >&5
1193 echo "$as_me: error: missing minor-version" >&2;}
1194 { (exit 1); exit 1; }; }
1196 echo "$as_me:1196: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1197 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1199 echo "$as_me:1199: checking for package patch date" >&5
1200 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1201 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1202 case .$VERSION_PATCH in
1204 { { echo "$as_me:1204: error: missing patch-date $VERSION_PATCH" >&5
1205 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1206 { (exit 1); exit 1; }; }
1208 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1211 { { echo "$as_me:1211: error: illegal patch-date $VERSION_PATCH" >&5
1212 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1213 { (exit 1); exit 1; }; }
1216 echo "$as_me:1216: result: $VERSION_PATCH" >&5
1217 echo "${ECHO_T}$VERSION_PATCH" >&6
1219 { { echo "$as_me:1219: error: did not find $srcdir/VERSION" >&5
1220 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1221 { (exit 1); exit 1; }; }
1224 # show the actual data that we have for versions:
1225 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1227 echo "${as_me:-configure}:1227: testing ABI VERSION $VERSION ..." 1>&5
1229 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1231 echo "${as_me:-configure}:1231: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1233 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1235 echo "${as_me:-configure}:1235: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1237 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1239 echo "${as_me:-configure}:1239: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1244 cat >>confdefs.h <<EOF
1245 #define PACKAGE "$PACKAGE"
1248 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1250 cat >>confdefs.h <<EOF
1251 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1254 cat >>confdefs.h <<EOF
1255 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1258 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1260 # Check whether --with-rel-version or --without-rel-version was given.
1261 if test "${with_rel_version+set}" = set; then
1262 withval="$with_rel_version"
1263 { echo "$as_me:1263: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1264 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1265 cf_cv_rel_version=$withval
1268 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1269 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1271 if test -n "$NCURSES_MAJOR" ; then
1272 case $NCURSES_MAJOR in
1276 { { echo "$as_me:1276: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1277 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1278 { (exit 1); exit 1; }; }
1282 { { echo "$as_me:1282: error: Release major-version value is empty" >&5
1283 echo "$as_me: error: Release major-version value is empty" >&2;}
1284 { (exit 1); exit 1; }; }
1287 if test -n "$NCURSES_MINOR" ; then
1288 case $NCURSES_MINOR in
1292 { { echo "$as_me:1292: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1293 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1294 { (exit 1); exit 1; }; }
1298 { { echo "$as_me:1298: error: Release minor-version value is empty" >&5
1299 echo "$as_me: error: Release minor-version value is empty" >&2;}
1300 { (exit 1); exit 1; }; }
1303 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1305 # Check whether --with-abi-version or --without-abi-version was given.
1306 if test "${with_abi_version+set}" = set; then
1307 withval="$with_abi_version"
1309 if test "x$cf_cv_abi_version" != "x$withval"
1311 { echo "$as_me:1311: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1312 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1313 case $cf_cv_rel_version in
1315 cf_cv_rel_version=$withval.0
1318 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1322 cf_cv_abi_version=$withval
1325 if test -n "$cf_cv_abi_version" ; then
1326 case $cf_cv_abi_version in
1330 { { echo "$as_me:1330: error: ABI version is not a number: $cf_cv_abi_version" >&5
1331 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1332 { (exit 1); exit 1; }; }
1336 { { echo "$as_me:1336: error: ABI version value is empty" >&5
1337 echo "$as_me: error: ABI version value is empty" >&2;}
1338 { (exit 1); exit 1; }; }
1341 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1343 case $cf_cv_rel_version in
1345 cf_cv_rel_version=$with_abi_version.0
1351 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1352 if test -f $ac_dir/install-sh; then
1354 ac_install_sh="$ac_aux_dir/install-sh -c"
1356 elif test -f $ac_dir/install.sh; then
1358 ac_install_sh="$ac_aux_dir/install.sh -c"
1360 elif test -f $ac_dir/shtool; then
1362 ac_install_sh="$ac_aux_dir/shtool install -c"
1366 if test -z "$ac_aux_dir"; then
1367 { { echo "$as_me:1367: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1368 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1369 { (exit 1); exit 1; }; }
1371 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1372 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1373 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375 # Make sure we can run config.sub.
1376 $ac_config_sub sun4 >/dev/null 2>&1 ||
1377 { { echo "$as_me:1377: error: cannot run $ac_config_sub" >&5
1378 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1379 { (exit 1); exit 1; }; }
1381 echo "$as_me:1381: checking build system type" >&5
1382 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1383 if test "${ac_cv_build+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 ac_cv_build_alias=$build_alias
1387 test -z "$ac_cv_build_alias" &&
1388 ac_cv_build_alias=`$ac_config_guess`
1389 test -z "$ac_cv_build_alias" &&
1390 { { echo "$as_me:1390: error: cannot guess build type; you must specify one" >&5
1391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1392 { (exit 1); exit 1; }; }
1393 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1394 { { echo "$as_me:1394: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1396 { (exit 1); exit 1; }; }
1399 echo "$as_me:1399: result: $ac_cv_build" >&5
1400 echo "${ECHO_T}$ac_cv_build" >&6
1402 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:1406: checking host system type" >&5
1407 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408 if test "${ac_cv_host+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_host_alias=$host_alias
1412 test -z "$ac_cv_host_alias" &&
1413 ac_cv_host_alias=$ac_cv_build_alias
1414 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415 { { echo "$as_me:1415: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:1420: result: $ac_cv_host" >&5
1421 echo "${ECHO_T}$ac_cv_host" >&6
1423 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1428 echo "$as_me:1428: checking target system type" >&5
1429 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1430 if test "${ac_cv_target+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 ac_cv_target_alias=$target_alias
1434 test "x$ac_cv_target_alias" = "x" &&
1435 ac_cv_target_alias=$ac_cv_host_alias
1436 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1437 { { echo "$as_me:1437: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:1442: result: $ac_cv_target" >&5
1443 echo "${ECHO_T}$ac_cv_target" >&6
1444 target=$ac_cv_target
1445 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1449 # The aliases save the names the user supplied, while $host etc.
1450 # will get canonicalized.
1451 test -n "$target_alias" &&
1452 test "$program_prefix$program_suffix$program_transform_name" = \
1454 program_prefix=${target_alias}-
1455 system_name="$host_os"
1457 system_name="`(uname -s -r) 2>/dev/null`"
1458 if test -z "$system_name" ; then
1459 system_name="`(hostname) 2>/dev/null`"
1462 test -n "$system_name" &&
1463 cat >>confdefs.h <<EOF
1464 #define SYSTEM_NAME "$system_name"
1467 if test "${cf_cv_system_name+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 cf_cv_system_name="$system_name"
1473 test -z "$system_name" && system_name="$cf_cv_system_name"
1474 test -n "$cf_cv_system_name" && echo "$as_me:1474: result: Configuring for $cf_cv_system_name" >&5
1475 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1477 if test ".$system_name" != ".$cf_cv_system_name" ; then
1478 echo "$as_me:1478: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1479 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1480 { { echo "$as_me:1480: error: \"Please remove config.cache and try again.\"" >&5
1481 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1482 { (exit 1); exit 1; }; }
1485 # Check whether --with-system-type or --without-system-type was given.
1486 if test "${with_system_type+set}" = set; then
1487 withval="$with_system_type"
1488 { echo "$as_me:1488: WARNING: overriding system type to $withval" >&5
1489 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1490 cf_cv_system_name=$withval
1495 ### Save the given $CFLAGS to allow user-override.
1496 cf_user_CFLAGS="$CFLAGS"
1498 ### Default install-location
1500 echo "$as_me:1500: checking for prefix" >&5
1501 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1502 if test "x$prefix" = "xNONE" ; then
1503 case "$cf_cv_system_name" in
1504 # non-vendor systems don't have a conflict
1505 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1508 (*) prefix=$ac_default_prefix
1512 echo "$as_me:1512: result: $prefix" >&5
1513 echo "${ECHO_T}$prefix" >&6
1515 if test "x$prefix" = "xNONE" ; then
1516 echo "$as_me:1516: checking for default include-directory" >&5
1517 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1518 test -n "$verbose" && echo 1>&6
1521 $includedir/ncurses \
1523 $prefix/include/ncurses \
1524 /usr/local/include \
1525 /usr/local/include/ncurses \
1527 /usr/include/ncurses
1529 cf_dir=`eval echo $cf_symbol`
1530 if test -f $cf_dir/curses.h ; then
1531 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1532 includedir="$cf_symbol"
1533 test -n "$verbose" && echo $ac_n " found " 1>&6
1537 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1539 echo "$as_me:1539: result: $includedir" >&5
1540 echo "${ECHO_T}$includedir" >&6
1543 ### Defaults for ncurses ABI
1545 case x$cf_cv_abi_version in
1547 cf_dft_ext_colors=yes
1548 cf_dft_ext_const=yes
1549 cf_dft_ext_mouse=yes
1550 cf_dft_ext_putwin=yes
1551 cf_dft_ext_spfuncs=yes
1552 cf_dft_filter_syms=yes
1553 cf_dft_chtype=uint32_t
1554 cf_dft_mmask_t=uint32_t
1556 cf_dft_tparm_arg=intptr_t
1557 cf_dft_with_lp64=yes
1560 cf_dft_ext_colors=no
1563 cf_dft_ext_putwin=no
1564 cf_dft_ext_spfuncs=no
1565 cf_dft_filter_syms=no
1569 cf_dft_tparm_arg=long
1574 ### Checks for programs.
1576 # Check whether --with-ada or --without-ada was given.
1577 if test "${with_ada+set}" = set; then
1579 cf_with_ada=$withval
1583 if test "x$cf_with_ada" = xyes
1585 cf_PROG_CC="gnatgcc gcc cc"
1591 ac_cpp='$CPP $CPPFLAGS'
1592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1595 ac_main_return=return
1596 if test -n "$ac_tool_prefix"; then
1597 for ac_prog in $cf_PROG_CC
1599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1601 echo "$as_me:1601: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 ac_save_IFS=$IFS; IFS=$ac_path_separator
1611 for ac_dir in $ac_dummy; do
1613 test -z "$ac_dir" && ac_dir=.
1614 $as_executable_p "$ac_dir/$ac_word" || continue
1615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1616 echo "$as_me:1616: found $ac_dir/$ac_word" >&5
1623 if test -n "$CC"; then
1624 echo "$as_me:1624: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1627 echo "$as_me:1627: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1631 test -n "$CC" && break
1634 if test -z "$CC"; then
1636 for ac_prog in $cf_PROG_CC
1638 # Extract the first word of "$ac_prog", so it can be a program name with args.
1639 set dummy $ac_prog; ac_word=$2
1640 echo "$as_me:1640: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$ac_ct_CC"; then
1646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648 ac_save_IFS=$IFS; IFS=$ac_path_separator
1650 for ac_dir in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir=.
1653 $as_executable_p "$ac_dir/$ac_word" || continue
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:1655: found $ac_dir/$ac_word" >&5
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663 echo "$as_me:1663: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1666 echo "$as_me:1666: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1670 test -n "$ac_ct_CC" && break
1676 test -z "$CC" && { { echo "$as_me:1676: error: no acceptable cc found in \$PATH" >&5
1677 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1678 { (exit 1); exit 1; }; }
1680 # Provide some information about the compiler.
1681 echo "$as_me:1681:" \
1682 "checking for C compiler version" >&5
1683 ac_compiler=`set X $ac_compile; echo $2`
1684 { (eval echo "$as_me:1684: \"$ac_compiler --version </dev/null >&5\"") >&5
1685 (eval $ac_compiler --version </dev/null >&5) 2>&5
1687 echo "$as_me:1687: \$? = $ac_status" >&5
1688 (exit $ac_status); }
1689 { (eval echo "$as_me:1689: \"$ac_compiler -v </dev/null >&5\"") >&5
1690 (eval $ac_compiler -v </dev/null >&5) 2>&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694 { (eval echo "$as_me:1694: \"$ac_compiler -V </dev/null >&5\"") >&5
1695 (eval $ac_compiler -V </dev/null >&5) 2>&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }
1700 cat >conftest.$ac_ext <<_ACEOF
1701 #line 1701 "configure"
1702 #include "confdefs.h"
1712 ac_clean_files_save=$ac_clean_files
1713 ac_clean_files="$ac_clean_files a.out a.exe"
1714 # Try to create an executable without -o first, disregard a.out.
1715 # It will help us diagnose broken compilers, and finding out an intuition
1717 echo "$as_me:1717: checking for C compiler default output" >&5
1718 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1719 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1720 if { (eval echo "$as_me:1720: \"$ac_link_default\"") >&5
1721 (eval $ac_link_default) 2>&5
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }; then
1725 # Find the output, starting from the most likely. This scheme is
1726 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1728 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1729 ls a.out conftest 2>/dev/null;
1730 ls a.* conftest.* 2>/dev/null`; do
1732 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1733 a.out ) # We found the default executable, but exeext='' is most
1736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1737 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1744 echo "$as_me: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1746 { { echo "$as_me:1746: error: C compiler cannot create executables" >&5
1747 echo "$as_me: error: C compiler cannot create executables" >&2;}
1748 { (exit 77); exit 77; }; }
1751 ac_exeext=$ac_cv_exeext
1752 echo "$as_me:1752: result: $ac_file" >&5
1753 echo "${ECHO_T}$ac_file" >&6
1755 # Check the compiler produces executables we can run. If not, either
1756 # the compiler is broken, or we cross compile.
1757 echo "$as_me:1757: checking whether the C compiler works" >&5
1758 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1759 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1760 # If not cross compiling, check that we can run a simple program.
1761 if test "$cross_compiling" != yes; then
1762 if { ac_try='./$ac_file'
1763 { (eval echo "$as_me:1763: \"$ac_try\"") >&5
1766 echo "$as_me:1766: \$? = $ac_status" >&5
1767 (exit $ac_status); }; }; then
1770 if test "$cross_compiling" = maybe; then
1773 { { echo "$as_me:1773: error: cannot run C compiled programs.
1774 If you meant to cross compile, use \`--host'." >&5
1775 echo "$as_me: error: cannot run C compiled programs.
1776 If you meant to cross compile, use \`--host'." >&2;}
1777 { (exit 1); exit 1; }; }
1781 echo "$as_me:1781: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1784 rm -f a.out a.exe conftest$ac_cv_exeext
1785 ac_clean_files=$ac_clean_files_save
1786 # Check the compiler produces executables we can run. If not, either
1787 # the compiler is broken, or we cross compile.
1788 echo "$as_me:1788: checking whether we are cross compiling" >&5
1789 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1790 echo "$as_me:1790: result: $cross_compiling" >&5
1791 echo "${ECHO_T}$cross_compiling" >&6
1793 echo "$as_me:1793: checking for executable suffix" >&5
1794 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1795 if { (eval echo "$as_me:1795: \"$ac_link\"") >&5
1796 (eval $ac_link) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); }; then
1800 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1801 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1802 # work properly (i.e., refer to `conftest.exe'), while it won't with
1804 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1807 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 { { echo "$as_me:1814: error: cannot compute EXEEXT: cannot compile and link" >&5
1815 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1816 { (exit 1); exit 1; }; }
1819 rm -f conftest$ac_cv_exeext
1820 echo "$as_me:1820: result: $ac_cv_exeext" >&5
1821 echo "${ECHO_T}$ac_cv_exeext" >&6
1823 rm -f conftest.$ac_ext
1824 EXEEXT=$ac_cv_exeext
1826 echo "$as_me:1826: checking for object suffix" >&5
1827 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1828 if test "${ac_cv_objext+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 cat >conftest.$ac_ext <<_ACEOF
1832 #line 1832 "configure"
1833 #include "confdefs.h"
1843 rm -f conftest.o conftest.obj
1844 if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845 (eval $ac_compile) 2>&5
1847 echo "$as_me:1847: \$? = $ac_status" >&5
1848 (exit $ac_status); }; then
1849 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1851 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1857 echo "$as_me: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1859 { { echo "$as_me:1859: error: cannot compute OBJEXT: cannot compile" >&5
1860 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1861 { (exit 1); exit 1; }; }
1864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1866 echo "$as_me:1866: result: $ac_cv_objext" >&5
1867 echo "${ECHO_T}$ac_cv_objext" >&6
1868 OBJEXT=$ac_cv_objext
1870 echo "$as_me:1870: checking whether we are using the GNU C compiler" >&5
1871 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1872 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 cat >conftest.$ac_ext <<_ACEOF
1876 #line 1876 "configure"
1877 #include "confdefs.h"
1890 rm -f conftest.$ac_objext
1891 if { (eval echo "$as_me:1891: \"$ac_compile\"") >&5
1892 (eval $ac_compile) 2>&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); } &&
1896 { ac_try='test -s conftest.$ac_objext'
1897 { (eval echo "$as_me:1897: \"$ac_try\"") >&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); }; }; then
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1908 rm -f conftest.$ac_objext conftest.$ac_ext
1909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1912 echo "$as_me:1912: result: $ac_cv_c_compiler_gnu" >&5
1913 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1914 GCC=`test $ac_compiler_gnu = yes && echo yes`
1915 ac_test_CFLAGS=${CFLAGS+set}
1916 ac_save_CFLAGS=$CFLAGS
1918 echo "$as_me:1918: checking whether $CC accepts -g" >&5
1919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1920 if test "${ac_cv_prog_cc_g+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 cat >conftest.$ac_ext <<_ACEOF
1924 #line 1924 "configure"
1925 #include "confdefs.h"
1935 rm -f conftest.$ac_objext
1936 if { (eval echo "$as_me:1936: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:1942: \"$ac_try\"") >&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1949 echo "$as_me: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1953 rm -f conftest.$ac_objext conftest.$ac_ext
1955 echo "$as_me:1955: result: $ac_cv_prog_cc_g" >&5
1956 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1957 if test "$ac_test_CFLAGS" = set; then
1958 CFLAGS=$ac_save_CFLAGS
1959 elif test $ac_cv_prog_cc_g = yes; then
1960 if test "$GCC" = yes; then
1966 if test "$GCC" = yes; then
1972 # Some people use a C++ compiler to compile C. Since we use `exit',
1973 # in C++ we need to declare it. In case someone uses the same compiler
1974 # for both compiling C and C++ we need to have the C++ compiler decide
1975 # the declaration of exit, since it's the most demanding environment.
1976 cat >conftest.$ac_ext <<_ACEOF
1981 rm -f conftest.$ac_objext
1982 if { (eval echo "$as_me:1982: \"$ac_compile\"") >&5
1983 (eval $ac_compile) 2>&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); } &&
1987 { ac_try='test -s conftest.$ac_objext'
1988 { (eval echo "$as_me:1988: \"$ac_try\"") >&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); }; }; then
1993 for ac_declaration in \
1995 '#include <stdlib.h>' \
1996 'extern "C" void std::exit (int) throw (); using std::exit;' \
1997 'extern "C" void std::exit (int); using std::exit;' \
1998 'extern "C" void exit (int) throw ();' \
1999 'extern "C" void exit (int);' \
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line 2003 "configure"
2004 #include "confdefs.h"
2015 rm -f conftest.$ac_objext
2016 if { (eval echo "$as_me:2016: \"$ac_compile\"") >&5
2017 (eval $ac_compile) 2>&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); } &&
2021 { ac_try='test -s conftest.$ac_objext'
2022 { (eval echo "$as_me:2022: \"$ac_try\"") >&5
2025 echo "$as_me:2025: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2029 echo "$as_me: failed program was:" >&5
2030 cat conftest.$ac_ext >&5
2033 rm -f conftest.$ac_objext conftest.$ac_ext
2034 cat >conftest.$ac_ext <<_ACEOF
2035 #line 2035 "configure"
2036 #include "confdefs.h"
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:2047: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
2052 { ac_try='test -s conftest.$ac_objext'
2053 { (eval echo "$as_me:2053: \"$ac_try\"") >&5
2056 echo "$as_me:2056: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2060 echo "$as_me: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2066 if test -n "$ac_declaration"; then
2067 echo '#ifdef __cplusplus' >>confdefs.h
2068 echo $ac_declaration >>confdefs.h
2069 echo '#endif' >>confdefs.h
2073 echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 rm -f conftest.$ac_objext conftest.$ac_ext
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 ac_main_return=return
2085 if test "$GCC" = yes ; then
2086 echo "$as_me:2086: checking version of $CC" >&5
2087 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2088 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.].*//'`"
2089 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2090 echo "$as_me:2090: result: $GCC_VERSION" >&5
2091 echo "${ECHO_T}$GCC_VERSION" >&6
2094 echo "$as_me:2094: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_cv_prog_cc_stdc=no
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #line 2102 "configure"
2103 #include "confdefs.h"
2106 #include <sys/types.h>
2107 #include <sys/stat.h>
2108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2109 struct buf { int x; };
2110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2111 static char *e (p, i)
2117 static char *f (char * (*g) (char **, int), char **p, ...)
2122 s = g (p, va_arg (v,int));
2126 int test (int i, double x);
2127 struct s1 {int (*f) (int a);};
2128 struct s2 {int (*f) (double a);};
2129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2140 # Don't try gcc -ansi; that turns off useful extensions and
2141 # breaks some systems' header files.
2142 # AIX -qlanglvl=ansi
2143 # Ultrix and OSF/1 -std1
2144 # HP-UX 10.20 and later -Ae
2145 # HP-UX older versions -Aa -D_HPUX_SOURCE
2146 # SVR4 -Xc -D__EXTENSIONS__
2147 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2149 CC="$ac_save_CC $ac_arg"
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:2151: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:2157: \"$ac_try\"") >&5
2160 echo "$as_me:2160: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 ac_cv_prog_cc_stdc=$ac_arg
2165 echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 rm -f conftest.$ac_objext
2170 rm -f conftest.$ac_ext conftest.$ac_objext
2175 case "x$ac_cv_prog_cc_stdc" in
2177 echo "$as_me:2177: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2180 echo "$as_me:2180: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
2185 # This should have been defined by AC_PROG_CC
2188 echo "$as_me:2188: checking \$CC variable" >&5
2189 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2192 echo "$as_me:2192: result: broken" >&5
2193 echo "${ECHO_T}broken" >&6
2194 { echo "$as_me:2194: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2195 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2197 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2198 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2200 for cf_arg in $cf_flags
2208 cf_new_extra_cppflags=
2210 for cf_add_cflags in $cf_arg
2212 case $cf_fix_cppflags in
2214 case $cf_add_cflags in
2215 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2216 case $cf_add_cflags in
2218 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2220 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2221 && test -z "${cf_tst_cflags}" \
2222 && cf_fix_cppflags=yes
2224 if test $cf_fix_cppflags = yes ; then
2226 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2227 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2230 elif test "${cf_tst_cflags}" = "\"'" ; then
2232 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2233 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2243 case $cf_add_cflags in
2245 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2247 CPPFLAGS=`echo "$CPPFLAGS" | \
2248 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2249 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2254 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2255 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2262 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2263 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2270 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2271 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2273 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2275 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2276 && test -z "${cf_tst_cflags}" \
2277 && cf_fix_cppflags=no
2282 if test -n "$cf_new_cflags" ; then
2284 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2285 CFLAGS="${CFLAGS}$cf_new_cflags"
2289 if test -n "$cf_new_cppflags" ; then
2291 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2292 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2296 if test -n "$cf_new_extra_cppflags" ; then
2298 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2299 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2309 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2311 echo "${as_me:-configure}:2311: testing resulting CC: '$CC' ..." 1>&5
2313 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2315 echo "${as_me:-configure}:2315: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2317 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2319 echo "${as_me:-configure}:2319: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2323 echo "$as_me:2323: result: ok" >&5
2324 echo "${ECHO_T}ok" >&6
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 ac_main_return=return
2334 echo "$as_me:2334: checking how to run the C preprocessor" >&5
2335 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2336 # On Suns, sometimes $CPP names a directory.
2337 if test -n "$CPP" && test -d "$CPP"; then
2340 if test -z "$CPP"; then
2341 if test "${ac_cv_prog_CPP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 # Double quotes because CPP needs to be expanded
2345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2348 for ac_c_preproc_warn_flag in '' yes
2350 # Use a header file that comes with gcc, so configuring glibc
2351 # with a fresh cross-compiler works.
2352 # On the NeXT, cc -E runs the code through the compiler's parser,
2353 # not just through cpp. "Syntax error" is here to catch this case.
2354 cat >conftest.$ac_ext <<_ACEOF
2355 #line 2355 "configure"
2356 #include "confdefs.h"
2360 if { (eval echo "$as_me:2360: \"$ac_cpp conftest.$ac_ext\"") >&5
2361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2363 egrep -v '^ *\+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:2366: \$? = $ac_status" >&5
2367 (exit $ac_status); } >/dev/null; then
2368 if test -s conftest.err; then
2369 ac_cpp_err=$ac_c_preproc_warn_flag
2376 if test -z "$ac_cpp_err"; then
2379 echo "$as_me: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 # Broken: fails on valid input.
2384 rm -f conftest.err conftest.$ac_ext
2386 # OK, works on sane cases. Now check whether non-existent headers
2387 # can be detected and how.
2388 cat >conftest.$ac_ext <<_ACEOF
2389 #line 2389 "configure"
2390 #include "confdefs.h"
2391 #include <ac_nonexistent.h>
2393 if { (eval echo "$as_me:2393: \"$ac_cpp conftest.$ac_ext\"") >&5
2394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2396 egrep -v '^ *\+' conftest.er1 >conftest.err
2398 cat conftest.err >&5
2399 echo "$as_me:2399: \$? = $ac_status" >&5
2400 (exit $ac_status); } >/dev/null; then
2401 if test -s conftest.err; then
2402 ac_cpp_err=$ac_c_preproc_warn_flag
2409 if test -z "$ac_cpp_err"; then
2410 # Broken: success on invalid input.
2413 echo "$as_me: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 # Passes both tests.
2419 rm -f conftest.err conftest.$ac_ext
2422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2423 rm -f conftest.err conftest.$ac_ext
2424 if $ac_preproc_ok; then
2436 echo "$as_me:2436: result: $CPP" >&5
2437 echo "${ECHO_T}$CPP" >&6
2439 for ac_c_preproc_warn_flag in '' yes
2441 # Use a header file that comes with gcc, so configuring glibc
2442 # with a fresh cross-compiler works.
2443 # On the NeXT, cc -E runs the code through the compiler's parser,
2444 # not just through cpp. "Syntax error" is here to catch this case.
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line 2446 "configure"
2447 #include "confdefs.h"
2451 if { (eval echo "$as_me:2451: \"$ac_cpp conftest.$ac_ext\"") >&5
2452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 egrep -v '^ *\+' conftest.er1 >conftest.err
2456 cat conftest.err >&5
2457 echo "$as_me:2457: \$? = $ac_status" >&5
2458 (exit $ac_status); } >/dev/null; then
2459 if test -s conftest.err; then
2460 ac_cpp_err=$ac_c_preproc_warn_flag
2467 if test -z "$ac_cpp_err"; then
2470 echo "$as_me: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2472 # Broken: fails on valid input.
2475 rm -f conftest.err conftest.$ac_ext
2477 # OK, works on sane cases. Now check whether non-existent headers
2478 # can be detected and how.
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #line 2480 "configure"
2481 #include "confdefs.h"
2482 #include <ac_nonexistent.h>
2484 if { (eval echo "$as_me:2484: \"$ac_cpp conftest.$ac_ext\"") >&5
2485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487 egrep -v '^ *\+' conftest.er1 >conftest.err
2489 cat conftest.err >&5
2490 echo "$as_me:2490: \$? = $ac_status" >&5
2491 (exit $ac_status); } >/dev/null; then
2492 if test -s conftest.err; then
2493 ac_cpp_err=$ac_c_preproc_warn_flag
2500 if test -z "$ac_cpp_err"; then
2501 # Broken: success on invalid input.
2504 echo "$as_me: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2506 # Passes both tests.
2510 rm -f conftest.err conftest.$ac_ext
2513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2514 rm -f conftest.err conftest.$ac_ext
2515 if $ac_preproc_ok; then
2518 { { echo "$as_me:2518: error: C preprocessor \"$CPP\" fails sanity check" >&5
2519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2520 { (exit 1); exit 1; }; }
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 ac_main_return=return
2530 if test $ac_cv_c_compiler_gnu = yes; then
2531 echo "$as_me:2531: checking whether $CC needs -traditional" >&5
2532 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2533 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 ac_pattern="Autoconf.*'x'"
2537 cat >conftest.$ac_ext <<_ACEOF
2538 #line 2538 "configure"
2539 #include "confdefs.h"
2541 int Autoconf = TIOCGETP;
2543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2544 egrep "$ac_pattern" >/dev/null 2>&1; then
2545 ac_cv_prog_gcc_traditional=yes
2547 ac_cv_prog_gcc_traditional=no
2551 if test $ac_cv_prog_gcc_traditional = no; then
2552 cat >conftest.$ac_ext <<_ACEOF
2553 #line 2553 "configure"
2554 #include "confdefs.h"
2556 int Autoconf = TCGETA;
2558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2559 egrep "$ac_pattern" >/dev/null 2>&1; then
2560 ac_cv_prog_gcc_traditional=yes
2566 echo "$as_me:2566: result: $ac_cv_prog_gcc_traditional" >&5
2567 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2568 if test $ac_cv_prog_gcc_traditional = yes; then
2569 CC="$CC -traditional"
2573 echo "$as_me:2573: checking whether $CC understands -c and -o together" >&5
2574 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2575 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 cat > conftest.$ac_ext <<CF_EOF
2582 ${cf_cv_main_return:-return}(0);
2585 # We do the test twice because some compilers refuse to overwrite an
2586 # existing .o file with -o, though they will create one.
2587 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2588 if { (eval echo "$as_me:2588: \"$ac_try\"") >&5
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 test -f conftest2.$ac_objext && { (eval echo "$as_me:2593: \"$ac_try\"") >&5
2596 echo "$as_me:2596: \$? = $ac_status" >&5
2597 (exit $ac_status); };
2599 eval cf_cv_prog_CC_c_o=yes
2601 eval cf_cv_prog_CC_c_o=no
2606 if test $cf_cv_prog_CC_c_o = yes; then
2607 echo "$as_me:2607: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2610 echo "$as_me:2610: result: no" >&5
2611 echo "${ECHO_T}no" >&6
2614 if test "$cross_compiling" = yes ; then
2617 case "$cf_cv_system_name" in
2618 (dragonfly*|mirbsd*|freebsd*)
2619 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2621 (*) LDPATH=$PATH:/sbin:/usr/sbin
2622 # Extract the first word of "ldconfig", so it can be a program name with args.
2623 set dummy ldconfig; ac_word=$2
2624 echo "$as_me:2624: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2634 ac_save_IFS=$IFS; IFS=$ac_path_separator
2636 for ac_dir in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir=.
2639 if $as_executable_p "$ac_dir/$ac_word"; then
2640 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2641 echo "$as_me:2641: found $ac_dir/$ac_word" >&5
2649 LDCONFIG=$ac_cv_path_LDCONFIG
2651 if test -n "$LDCONFIG"; then
2652 echo "$as_me:2652: result: $LDCONFIG" >&5
2653 echo "${ECHO_T}$LDCONFIG" >&6
2655 echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2663 echo "$as_me:2663: checking if you want to ensure bool is consistent with C++" >&5
2664 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2666 # Check whether --with-cxx or --without-cxx was given.
2667 if test "${with_cxx+set}" = set; then
2669 cf_with_cxx=$withval
2673 echo "$as_me:2673: result: $cf_with_cxx" >&5
2674 echo "${ECHO_T}$cf_with_cxx" >&6
2675 if test "X$cf_with_cxx" = Xno ; then
2679 # with autoconf 2.13, we can change the error to a warning:
2681 ac_cpp='$CXXCPP $CPPFLAGS'
2682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2685 ac_main_return=return
2686 if test -n "$ac_tool_prefix"; then
2687 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691 echo "$as_me:2691: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693 if test "${ac_cv_prog_CXX+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if test -n "$CXX"; then
2697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2699 ac_save_IFS=$IFS; IFS=$ac_path_separator
2701 for ac_dir in $ac_dummy; do
2703 test -z "$ac_dir" && ac_dir=.
2704 $as_executable_p "$ac_dir/$ac_word" || continue
2705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2706 echo "$as_me:2706: found $ac_dir/$ac_word" >&5
2713 if test -n "$CXX"; then
2714 echo "$as_me:2714: result: $CXX" >&5
2715 echo "${ECHO_T}$CXX" >&6
2717 echo "$as_me:2717: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2721 test -n "$CXX" && break
2724 if test -z "$CXX"; then
2726 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 echo "$as_me:2730: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$ac_ct_CXX"; then
2736 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2738 ac_save_IFS=$IFS; IFS=$ac_path_separator
2740 for ac_dir in $ac_dummy; do
2742 test -z "$ac_dir" && ac_dir=.
2743 $as_executable_p "$ac_dir/$ac_word" || continue
2744 ac_cv_prog_ac_ct_CXX="$ac_prog"
2745 echo "$as_me:2745: found $ac_dir/$ac_word" >&5
2751 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2752 if test -n "$ac_ct_CXX"; then
2753 echo "$as_me:2753: result: $ac_ct_CXX" >&5
2754 echo "${ECHO_T}$ac_ct_CXX" >&6
2756 echo "$as_me:2756: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2760 test -n "$ac_ct_CXX" && break
2762 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2767 # Provide some information about the compiler.
2768 echo "$as_me:2768:" \
2769 "checking for C++ compiler version" >&5
2770 ac_compiler=`set X $ac_compile; echo $2`
2771 { (eval echo "$as_me:2771: \"$ac_compiler --version </dev/null >&5\"") >&5
2772 (eval $ac_compiler --version </dev/null >&5) 2>&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2776 { (eval echo "$as_me:2776: \"$ac_compiler -v </dev/null >&5\"") >&5
2777 (eval $ac_compiler -v </dev/null >&5) 2>&5
2779 echo "$as_me:2779: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2781 { (eval echo "$as_me:2781: \"$ac_compiler -V </dev/null >&5\"") >&5
2782 (eval $ac_compiler -V </dev/null >&5) 2>&5
2784 echo "$as_me:2784: \$? = $ac_status" >&5
2785 (exit $ac_status); }
2787 echo "$as_me:2787: checking whether we are using the GNU C++ compiler" >&5
2788 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2789 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>&5
2811 echo "$as_me:2811: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:2814: \"$ac_try\"") >&5
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2821 echo "$as_me: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2825 rm -f conftest.$ac_objext conftest.$ac_ext
2826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2829 echo "$as_me:2829: result: $ac_cv_cxx_compiler_gnu" >&5
2830 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2831 GXX=`test $ac_compiler_gnu = yes && echo yes`
2832 ac_test_CXXFLAGS=${CXXFLAGS+set}
2833 ac_save_CXXFLAGS=$CXXFLAGS
2835 echo "$as_me:2835: checking whether $CXX accepts -g" >&5
2836 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2837 if test "${ac_cv_prog_cxx_g+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line 2841 "configure"
2842 #include "confdefs.h"
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:2859: \"$ac_try\"") >&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cxx_g=yes
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2870 rm -f conftest.$ac_objext conftest.$ac_ext
2872 echo "$as_me:2872: result: $ac_cv_prog_cxx_g" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2874 if test "$ac_test_CXXFLAGS" = set; then
2875 CXXFLAGS=$ac_save_CXXFLAGS
2876 elif test $ac_cv_prog_cxx_g = yes; then
2877 if test "$GXX" = yes; then
2883 if test "$GXX" = yes; then
2889 for ac_declaration in \
2891 '#include <stdlib.h>' \
2892 'extern "C" void std::exit (int) throw (); using std::exit;' \
2893 'extern "C" void std::exit (int); using std::exit;' \
2894 'extern "C" void exit (int) throw ();' \
2895 'extern "C" void exit (int);' \
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #line 2899 "configure"
2900 #include "confdefs.h"
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:2912: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:2918: \"$ac_try\"") >&5
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 echo "$as_me: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2929 rm -f conftest.$ac_objext conftest.$ac_ext
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line 2931 "configure"
2932 #include "confdefs.h"
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2952 echo "$as_me:2952: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 rm -f conftest.$ac_objext conftest.$ac_ext
2962 if test -n "$ac_declaration"; then
2963 echo '#ifdef __cplusplus' >>confdefs.h
2964 echo $ac_declaration >>confdefs.h
2965 echo '#endif' >>confdefs.h
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_main_return=return
2976 ac_cpp='$CXXCPP $CPPFLAGS'
2977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2980 ac_main_return=return
2982 if test "x$cf_with_cxx" != xno
2984 # Several of the C++ configurations do not work, particularly when
2985 # cross-compiling (20140913 -TD)
2986 echo "$as_me:2986: checking if $CXX works" >&5
2987 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2989 save_CPPFLAGS="$CPPFLAGS"
2990 eval cf_includedir=${includedir}
2991 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line 2994 "configure"
2995 #include "confdefs.h"
3004 printf("Hello world!\n")
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:3011: \"$ac_compile\"") >&5
3012 (eval $ac_compile) 2>&5
3014 echo "$as_me:3014: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -s conftest.$ac_objext'
3017 { (eval echo "$as_me:3017: \"$ac_try\"") >&5
3020 echo "$as_me:3020: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3024 echo "$as_me: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3028 rm -f conftest.$ac_objext conftest.$ac_ext
3029 CPPFLAGS="$save_CPPFLAGS"
3031 echo "$as_me:3031: result: $cf_cxx_works" >&5
3032 echo "${ECHO_T}$cf_cxx_works" >&6
3033 if test "x$cf_cxx_works" = xno
3035 { echo "$as_me:3035: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3036 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3037 cf_with_cxx=no; CXX=""; GXX="";
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 ac_main_return=return
3047 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3048 if test "$CXX" = "g++" ; then
3049 # Extract the first word of "g++", so it can be a program name with args.
3050 set dummy g++; ac_word=$2
3051 echo "$as_me:3051: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3053 if test "${ac_cv_path_CXX+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3061 ac_save_IFS=$IFS; IFS=$ac_path_separator
3063 for ac_dir in $ac_dummy; do
3065 test -z "$ac_dir" && ac_dir=.
3066 if $as_executable_p "$ac_dir/$ac_word"; then
3067 ac_cv_path_CXX="$ac_dir/$ac_word"
3068 echo "$as_me:3068: found $ac_dir/$ac_word" >&5
3078 if test -n "$CXX"; then
3079 echo "$as_me:3079: result: $CXX" >&5
3080 echo "${ECHO_T}$CXX" >&6
3082 echo "$as_me:3082: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3089 { echo "$as_me:3089: WARNING: You don't have any C++ compiler, too bad" >&5
3090 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3091 cf_with_cxx=no; CXX=""; GXX="";
3097 if test "$GXX" = yes; then
3098 echo "$as_me:3098: checking version of ${CXX:-g++}" >&5
3099 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3100 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3101 if test -z "$GXX_VERSION"
3106 echo "$as_me:3106: result: $GXX_VERSION" >&5
3107 echo "${ECHO_T}$GXX_VERSION" >&6
3110 case $GXX_VERSION in
3112 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3114 { echo "$as_me:3114: WARNING: templates do not work" >&5
3115 echo "$as_me: WARNING: templates do not work" >&2;}
3119 echo "$as_me:3119: checking if you want to build C++ binding and demo" >&5
3120 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3122 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3123 if test "${with_cxx_binding+set}" = set; then
3124 withval="$with_cxx_binding"
3125 cf_with_cxx_binding=$withval
3127 cf_with_cxx_binding=$cf_with_cxx
3129 echo "$as_me:3129: result: $cf_with_cxx_binding" >&5
3130 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3132 echo "$as_me:3132: checking if you want to build with Ada95" >&5
3133 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3134 echo "$as_me:3134: result: $cf_with_ada" >&5
3135 echo "${ECHO_T}$cf_with_ada" >&6
3137 echo "$as_me:3137: checking if you want to install terminal database" >&5
3138 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3140 # Check whether --enable-db-install or --disable-db-install was given.
3141 if test "${enable_db_install+set}" = set; then
3142 enableval="$enable_db_install"
3143 cf_with_db_install=$enableval
3145 cf_with_db_install=yes
3147 echo "$as_me:3147: result: $cf_with_db_install" >&5
3148 echo "${ECHO_T}$cf_with_db_install" >&6
3150 echo "$as_me:3150: checking if you want to install manpages" >&5
3151 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3153 # Check whether --with-manpages or --without-manpages was given.
3154 if test "${with_manpages+set}" = set; then
3155 withval="$with_manpages"
3156 cf_with_manpages=$withval
3158 cf_with_manpages=yes
3160 echo "$as_me:3160: result: $cf_with_manpages" >&5
3161 echo "${ECHO_T}$cf_with_manpages" >&6
3163 echo "$as_me:3163: checking if you want to build programs such as tic" >&5
3164 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3166 # Check whether --with-progs or --without-progs was given.
3167 if test "${with_progs+set}" = set; then
3168 withval="$with_progs"
3169 cf_with_progs=$withval
3173 echo "$as_me:3173: result: $cf_with_progs" >&5
3174 echo "${ECHO_T}$cf_with_progs" >&6
3176 if test -f $srcdir/tack/tack.h; then
3177 if test "x$cross_compiling" = xyes ; then
3178 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3180 echo "${as_me:-configure}:3180: testing ignoring tack because we are cross-compiling ..." 1>&5
3184 echo "$as_me:3184: checking if you want to build the tack program" >&5
3185 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3187 # Check whether --with-tack or --without-tack was given.
3188 if test "${with_tack+set}" = set; then
3189 withval="$with_tack"
3190 cf_with_tack=$withval
3192 cf_with_tack=$cf_with_progs
3194 echo "$as_me:3194: result: $cf_with_tack" >&5
3195 echo "${ECHO_T}$cf_with_tack" >&6
3201 echo "$as_me:3201: checking if you want to build test-programs" >&5
3202 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3204 # Check whether --with-tests or --without-tests was given.
3205 if test "${with_tests+set}" = set; then
3206 withval="$with_tests"
3207 cf_with_tests=$withval
3211 echo "$as_me:3211: result: $cf_with_tests" >&5
3212 echo "${ECHO_T}$cf_with_tests" >&6
3214 echo "$as_me:3214: checking if you wish to install curses.h" >&5
3215 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3217 # Check whether --with-curses-h or --without-curses-h was given.
3218 if test "${with_curses_h+set}" = set; then
3219 withval="$with_curses_h"
3220 with_curses_h=$withval
3224 echo "$as_me:3224: result: $with_curses_h" >&5
3225 echo "${ECHO_T}$with_curses_h" >&6
3227 modules_to_build="ncurses"
3228 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3229 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3230 modules_to_build="$modules_to_build panel menu form"
3232 test "$program_prefix" != NONE &&
3233 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3234 # Use a double $ so make ignores it.
3235 test "$program_suffix" != NONE &&
3236 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3237 # Double any \ or $. echo might interpret backslashes.
3238 # By default was `s,x,x', remove it if useless.
3239 cat <<\_ACEOF >conftest.sed
3240 s/[\\$]/&&/g;s/;s,x,x,$//
3242 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3245 for ac_prog in mawk gawk nawk awk
3247 # Extract the first word of "$ac_prog", so it can be a program name with args.
3248 set dummy $ac_prog; ac_word=$2
3249 echo "$as_me:3249: checking for $ac_word" >&5
3250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3251 if test "${ac_cv_prog_AWK+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 if test -n "$AWK"; then
3255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3257 ac_save_IFS=$IFS; IFS=$ac_path_separator
3259 for ac_dir in $ac_dummy; do
3261 test -z "$ac_dir" && ac_dir=.
3262 $as_executable_p "$ac_dir/$ac_word" || continue
3263 ac_cv_prog_AWK="$ac_prog"
3264 echo "$as_me:3264: found $ac_dir/$ac_word" >&5
3271 if test -n "$AWK"; then
3272 echo "$as_me:3272: result: $AWK" >&5
3273 echo "${ECHO_T}$AWK" >&6
3275 echo "$as_me:3275: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3279 test -n "$AWK" && break
3282 test -z "$AWK" && { { echo "$as_me:3282: error: No awk program found" >&5
3283 echo "$as_me: error: No awk program found" >&2;}
3284 { (exit 1); exit 1; }; }
3286 echo "$as_me:3286: checking for egrep" >&5
3287 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3288 if test "${ac_cv_prog_egrep+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3292 then ac_cv_prog_egrep='grep -E'
3293 else ac_cv_prog_egrep='egrep'
3296 echo "$as_me:3296: result: $ac_cv_prog_egrep" >&5
3297 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3298 EGREP=$ac_cv_prog_egrep
3300 test -z "$EGREP" && { { echo "$as_me:3300: error: No egrep program found" >&5
3301 echo "$as_me: error: No egrep program found" >&2;}
3302 { (exit 1); exit 1; }; }
3304 # Find a good install program. We prefer a C program (faster),
3305 # so one script is as good as another. But avoid the broken or
3306 # incompatible versions:
3307 # SysV /etc/install, /usr/sbin/install
3308 # SunOS /usr/etc/install
3309 # IRIX /sbin/install
3311 # AmigaOS /C/install, which installs bootblocks on floppy discs
3312 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3313 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3314 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3315 # ./install, which can be erroneously created by make from ./install.sh.
3316 echo "$as_me:3316: checking for a BSD compatible install" >&5
3317 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3318 if test -z "$INSTALL"; then
3319 if test "${ac_cv_path_install+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3323 for ac_dir in $PATH; do
3325 # Account for people who put trailing slashes in PATH elements.
3327 / | ./ | .// | /cC/* \
3328 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3331 # OSF1 and SCO ODT 3.0 have their own names for install.
3332 # Don't use installbsd from OSF since it installs stuff as root
3334 for ac_prog in ginstall scoinst install; do
3335 if $as_executable_p "$ac_dir/$ac_prog"; then
3336 if test $ac_prog = install &&
3337 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3338 # AIX install. It has an incompatible calling convention.
3340 elif test $ac_prog = install &&
3341 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3342 # program-specific install script used by HP pwplus--don't use.
3345 ac_cv_path_install="$ac_dir/$ac_prog -c"
3355 if test "${ac_cv_path_install+set}" = set; then
3356 INSTALL=$ac_cv_path_install
3358 # As a last resort, use the slow shell script. We don't cache a
3359 # path for INSTALL within a source directory, because that will
3360 # break other packages using the cache if that directory is
3361 # removed, or if the path is relative.
3362 INSTALL=$ac_install_sh
3365 echo "$as_me:3365: result: $INSTALL" >&5
3366 echo "${ECHO_T}$INSTALL" >&6
3368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3369 # It thinks the first close brace ends the variable substitution.
3370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3380 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3381 test -z "$cf_dir" && cf_dir=.
3382 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3386 for ac_prog in lint cppcheck splint
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 echo "$as_me:3390: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_LINT+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 if test -n "$LINT"; then
3396 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3398 ac_save_IFS=$IFS; IFS=$ac_path_separator
3400 for ac_dir in $ac_dummy; do
3402 test -z "$ac_dir" && ac_dir=.
3403 $as_executable_p "$ac_dir/$ac_word" || continue
3404 ac_cv_prog_LINT="$ac_prog"
3405 echo "$as_me:3405: found $ac_dir/$ac_word" >&5
3411 LINT=$ac_cv_prog_LINT
3412 if test -n "$LINT"; then
3413 echo "$as_me:3413: result: $LINT" >&5
3414 echo "${ECHO_T}$LINT" >&6
3416 echo "$as_me:3416: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3420 test -n "$LINT" && break
3423 echo "$as_me:3423: checking whether ln -s works" >&5
3424 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3426 if test "$LN_S" = "ln -s"; then
3427 echo "$as_me:3427: result: yes" >&5
3428 echo "${ECHO_T}yes" >&6
3430 echo "$as_me:3430: result: no, using $LN_S" >&5
3431 echo "${ECHO_T}no, using $LN_S" >&6
3434 echo "$as_me:3434: checking if $LN_S -f options work" >&5
3435 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3437 rm -f conf$$.src conf$$dst
3439 echo first >conf$$.src
3440 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3445 rm -f conf$$.dst conf$$src
3446 echo "$as_me:3446: result: $cf_prog_ln_sf" >&5
3447 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3449 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3451 echo "$as_me:3451: checking for long file names" >&5
3452 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3453 if test "${ac_cv_sys_long_file_names+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 ac_cv_sys_long_file_names=yes
3457 # Test for long file names in all the places we know might matter:
3458 # . the current directory, where building will happen
3459 # $prefix/lib where we will be installing things
3460 # $exec_prefix/lib likewise
3461 # eval it to expand exec_prefix.
3462 # $TMPDIR if set, where it might want to write temporary files
3463 # if $TMPDIR is not set:
3464 # /tmp where it might want to write temporary files
3467 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3470 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3472 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3473 test -d $ac_dir || continue
3474 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3475 ac_xdir=$ac_dir/cf$$
3476 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3477 ac_tf1=$ac_xdir/conftest9012345
3478 ac_tf2=$ac_xdir/conftest9012346
3479 (echo 1 >$ac_tf1) 2>/dev/null
3480 (echo 2 >$ac_tf2) 2>/dev/null
3481 ac_val=`cat $ac_tf1 2>/dev/null`
3482 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3483 ac_cv_sys_long_file_names=no
3484 rm -rf $ac_xdir 2>/dev/null
3487 rm -rf $ac_xdir 2>/dev/null
3490 echo "$as_me:3490: result: $ac_cv_sys_long_file_names" >&5
3491 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3492 if test $ac_cv_sys_long_file_names = yes; then
3494 cat >>confdefs.h <<\EOF
3495 #define HAVE_LONG_FILE_NAMES 1
3500 # if we find pkg-config, check if we should install the ".pc" files.
3502 echo "$as_me:3502: checking if you want to use pkg-config" >&5
3503 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3505 # Check whether --with-pkg-config or --without-pkg-config was given.
3506 if test "${with_pkg_config+set}" = set; then
3507 withval="$with_pkg_config"
3508 cf_pkg_config=$withval
3512 echo "$as_me:3512: result: $cf_pkg_config" >&5
3513 echo "${ECHO_T}$cf_pkg_config" >&6
3515 case $cf_pkg_config in
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3524 echo "$as_me:3524: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3534 ac_save_IFS=$IFS; IFS=$ac_path_separator
3536 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if $as_executable_p "$ac_dir/$ac_word"; then
3540 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3541 echo "$as_me:3541: found $ac_dir/$ac_word" >&5
3549 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3551 if test -n "$PKG_CONFIG"; then
3552 echo "$as_me:3552: result: $PKG_CONFIG" >&5
3553 echo "${ECHO_T}$PKG_CONFIG" >&6
3555 echo "$as_me:3555: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3560 if test -z "$ac_cv_path_PKG_CONFIG"; then
3561 ac_pt_PKG_CONFIG=$PKG_CONFIG
3562 # Extract the first word of "pkg-config", so it can be a program name with args.
3563 set dummy pkg-config; ac_word=$2
3564 echo "$as_me:3564: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 case $ac_pt_PKG_CONFIG in
3571 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3574 ac_save_IFS=$IFS; IFS=$ac_path_separator
3576 for ac_dir in $ac_dummy; do
3578 test -z "$ac_dir" && ac_dir=.
3579 if $as_executable_p "$ac_dir/$ac_word"; then
3580 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3581 echo "$as_me:3581: found $ac_dir/$ac_word" >&5
3586 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3590 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3592 if test -n "$ac_pt_PKG_CONFIG"; then
3593 echo "$as_me:3593: result: $ac_pt_PKG_CONFIG" >&5
3594 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3596 echo "$as_me:3596: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3600 PKG_CONFIG=$ac_pt_PKG_CONFIG
3602 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3611 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3612 if test "$PKG_CONFIG" != none ; then
3614 if test "x$prefix" != xNONE; then
3615 cf_path_syntax="$prefix"
3617 cf_path_syntax="$ac_default_prefix"
3620 case ".$PKG_CONFIG" in
3625 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3627 (.\${*prefix}*|.\${*dir}*)
3628 eval PKG_CONFIG="$PKG_CONFIG"
3629 case ".$PKG_CONFIG" in
3631 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3636 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3639 { { echo "$as_me:3639: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3640 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3641 { (exit 1); exit 1; }; }
3645 elif test "x$cf_pkg_config" != xno ; then
3646 { echo "$as_me:3646: WARNING: pkg-config is not installed" >&5
3647 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3652 echo "$as_me:3652: checking for pkg-config library directory" >&5
3653 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3656 echo "$as_me:3656: checking for $PKG_CONFIG library directory" >&5
3657 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3661 PKG_CONFIG_LIBDIR=no
3663 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3664 if test "${with_pkg_config_libdir+set}" = set; then
3665 withval="$with_pkg_config_libdir"
3666 PKG_CONFIG_LIBDIR=$withval
3668 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3671 case x$PKG_CONFIG_LIBDIR in
3675 # Look for the library directory using the same prefix as the executable
3676 if test "x$PKG_CONFIG" = xnone
3680 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3683 # If you don't like using the default architecture, you have to specify the
3684 # intended library directory and corresponding compiler/linker options.
3686 # This case allows for Debian's 2014-flavor of multiarch, along with the
3687 # most common variations before that point. Some other variants spell the
3688 # directory differently, e.g., "pkg-config", and put it in unusual places.
3689 # pkg-config has always been poorly standardized, which is ironic...
3690 case x`(arch) 2>/dev/null` in
3693 $cf_path/lib/*64-linux-gnu \
3701 $cf_path/lib/*-linux-gnu \
3709 test -n "$verbose" && echo " list..." 1>&6
3711 echo "${as_me:-configure}:3711: testing list... ..." 1>&5
3713 for cf_config in $cf_search_path
3715 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3717 echo "${as_me:-configure}:3717: testing checking $cf_config/pkgconfig ..." 1>&5
3719 if test -d $cf_config/pkgconfig
3721 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3722 echo "$as_me:3722: checking done" >&5
3723 echo $ECHO_N "checking done... $ECHO_C" >&6
3732 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3733 echo "$as_me:3733: result: $PKG_CONFIG_LIBDIR" >&5
3734 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3737 if test "x$PKG_CONFIG" != xnone
3739 echo "$as_me:3739: checking if we should install .pc files for $PKG_CONFIG" >&5
3740 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3742 echo "$as_me:3742: checking if we should install .pc files" >&5
3743 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3746 # Check whether --enable-pc-files or --disable-pc-files was given.
3747 if test "${enable_pc_files+set}" = set; then
3748 enableval="$enable_pc_files"
3749 enable_pc_files=$enableval
3753 echo "$as_me:3753: result: $enable_pc_files" >&5
3754 echo "${ECHO_T}$enable_pc_files" >&6
3756 if test "x$enable_pc_files" != xno
3759 case "x$PKG_CONFIG_LIBDIR" in
3761 { echo "$as_me:3761: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3762 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3766 if test "x$prefix" != xNONE; then
3767 cf_path_syntax="$prefix"
3769 cf_path_syntax="$ac_default_prefix"
3772 case ".$PKG_CONFIG_LIBDIR" in
3777 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3779 (.\${*prefix}*|.\${*dir}*)
3780 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3781 case ".$PKG_CONFIG_LIBDIR" in
3783 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3788 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3791 { { echo "$as_me:3791: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3792 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3793 { (exit 1); exit 1; }; }
3803 if test -z "$MAKE_PC_FILES"
3805 echo "$as_me:3805: checking for suffix to add to pc-files" >&5
3806 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3808 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3809 if test "${with_pc_suffix+set}" = set; then
3810 withval="$with_pc_suffix"
3815 (*) PC_MODULE_SUFFIX="$withval"
3819 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3820 echo "$as_me:3820: result: $PC_MODULE_SUFFIX" >&5
3821 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3822 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3826 echo "$as_me:3826: checking if we should assume mixed-case filenames" >&5
3827 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3829 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3830 if test "${enable_mixed_case+set}" = set; then
3831 enableval="$enable_mixed_case"
3832 enable_mixedcase=$enableval
3834 enable_mixedcase=auto
3836 echo "$as_me:3836: result: $enable_mixedcase" >&5
3837 echo "${ECHO_T}$enable_mixedcase" >&6
3838 if test "$enable_mixedcase" = "auto" ; then
3840 echo "$as_me:3840: checking if filesystem supports mixed-case filenames" >&5
3841 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3842 if test "${cf_cv_mixedcase+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 if test "$cross_compiling" = yes ; then
3847 case $target_alias in
3848 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3856 rm -f conftest CONFTEST
3858 if test -f CONFTEST ; then
3863 rm -f conftest CONFTEST
3867 echo "$as_me:3867: result: $cf_cv_mixedcase" >&5
3868 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3869 test "$cf_cv_mixedcase" = yes &&
3870 cat >>confdefs.h <<\EOF
3871 #define MIXEDCASE_FILENAMES 1
3875 cf_cv_mixedcase=$enable_mixedcase
3876 if test "x$enable_mixedcase" = "xyes" ; then
3878 cat >>confdefs.h <<\EOF
3879 #define MIXEDCASE_FILENAMES 1
3885 # do this after mixed-case option (tags/TAGS is not as important as tic).
3886 echo "$as_me:3886: checking whether ${MAKE-make} sets \${MAKE}" >&5
3887 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 cat >conftest.make <<\EOF
3894 @echo 'ac_maketemp="${MAKE}"'
3896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3898 if test -n "$ac_maketemp"; then
3899 eval ac_cv_prog_make_${ac_make}_set=yes
3901 eval ac_cv_prog_make_${ac_make}_set=no
3905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3906 echo "$as_me:3906: result: yes" >&5
3907 echo "${ECHO_T}yes" >&6
3910 echo "$as_me:3910: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912 SET_MAKE="MAKE=${MAKE-make}"
3915 for ac_prog in exctags ctags
3917 # Extract the first word of "$ac_prog", so it can be a program name with args.
3918 set dummy $ac_prog; ac_word=$2
3919 echo "$as_me:3919: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_CTAGS+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 if test -n "$CTAGS"; then
3925 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3927 ac_save_IFS=$IFS; IFS=$ac_path_separator
3929 for ac_dir in $ac_dummy; do
3931 test -z "$ac_dir" && ac_dir=.
3932 $as_executable_p "$ac_dir/$ac_word" || continue
3933 ac_cv_prog_CTAGS="$ac_prog"
3934 echo "$as_me:3934: found $ac_dir/$ac_word" >&5
3940 CTAGS=$ac_cv_prog_CTAGS
3941 if test -n "$CTAGS"; then
3942 echo "$as_me:3942: result: $CTAGS" >&5
3943 echo "${ECHO_T}$CTAGS" >&6
3945 echo "$as_me:3945: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3949 test -n "$CTAGS" && break
3952 for ac_prog in exetags etags
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 echo "$as_me:3956: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ETAGS+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test -n "$ETAGS"; then
3962 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3964 ac_save_IFS=$IFS; IFS=$ac_path_separator
3966 for ac_dir in $ac_dummy; do
3968 test -z "$ac_dir" && ac_dir=.
3969 $as_executable_p "$ac_dir/$ac_word" || continue
3970 ac_cv_prog_ETAGS="$ac_prog"
3971 echo "$as_me:3971: found $ac_dir/$ac_word" >&5
3977 ETAGS=$ac_cv_prog_ETAGS
3978 if test -n "$ETAGS"; then
3979 echo "$as_me:3979: result: $ETAGS" >&5
3980 echo "${ECHO_T}$ETAGS" >&6
3982 echo "$as_me:3982: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3986 test -n "$ETAGS" && break
3989 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3990 set dummy ${CTAGS:-ctags}; ac_word=$2
3991 echo "$as_me:3991: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -n "$MAKE_LOWER_TAGS"; then
3997 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3999 ac_save_IFS=$IFS; IFS=$ac_path_separator
4001 for ac_dir in $ac_dummy; do
4003 test -z "$ac_dir" && ac_dir=.
4004 $as_executable_p "$ac_dir/$ac_word" || continue
4005 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4006 echo "$as_me:4006: found $ac_dir/$ac_word" >&5
4010 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4013 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4014 if test -n "$MAKE_LOWER_TAGS"; then
4015 echo "$as_me:4015: result: $MAKE_LOWER_TAGS" >&5
4016 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4018 echo "$as_me:4018: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4022 if test "$cf_cv_mixedcase" = yes ; then
4023 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4024 set dummy ${ETAGS:-etags}; ac_word=$2
4025 echo "$as_me:4025: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$MAKE_UPPER_TAGS"; then
4031 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4033 ac_save_IFS=$IFS; IFS=$ac_path_separator
4035 for ac_dir in $ac_dummy; do
4037 test -z "$ac_dir" && ac_dir=.
4038 $as_executable_p "$ac_dir/$ac_word" || continue
4039 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4040 echo "$as_me:4040: found $ac_dir/$ac_word" >&5
4044 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4047 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4048 if test -n "$MAKE_UPPER_TAGS"; then
4049 echo "$as_me:4049: result: $MAKE_UPPER_TAGS" >&5
4050 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4052 echo "$as_me:4052: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4060 if test "$MAKE_UPPER_TAGS" = yes ; then
4066 if test "$MAKE_LOWER_TAGS" = yes ; then
4072 echo "$as_me:4072: checking for makeflags variable" >&5
4073 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4074 if test "${cf_cv_makeflags+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4081 cat >cf_makeflags.tmp <<CF_EOF
4084 @ echo '.$cf_option'
4086 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4087 case "$cf_result" in
4089 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4090 case "$cf_result" in
4091 (.*CC=*) cf_cv_makeflags=
4093 (*) cf_cv_makeflags=$cf_option
4099 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4103 rm -f cf_makeflags.tmp
4106 echo "$as_me:4106: result: $cf_cv_makeflags" >&5
4107 echo "${ECHO_T}$cf_cv_makeflags" >&6
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4112 echo "$as_me:4112: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_RANLIB+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$RANLIB"; then
4118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4120 ac_save_IFS=$IFS; IFS=$ac_path_separator
4122 for ac_dir in $ac_dummy; do
4124 test -z "$ac_dir" && ac_dir=.
4125 $as_executable_p "$ac_dir/$ac_word" || continue
4126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4127 echo "$as_me:4127: found $ac_dir/$ac_word" >&5
4133 RANLIB=$ac_cv_prog_RANLIB
4134 if test -n "$RANLIB"; then
4135 echo "$as_me:4135: result: $RANLIB" >&5
4136 echo "${ECHO_T}$RANLIB" >&6
4138 echo "$as_me:4138: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4143 if test -z "$ac_cv_prog_RANLIB"; then
4144 ac_ct_RANLIB=$RANLIB
4145 # Extract the first word of "ranlib", so it can be a program name with args.
4146 set dummy ranlib; ac_word=$2
4147 echo "$as_me:4147: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if test -n "$ac_ct_RANLIB"; then
4153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4155 ac_save_IFS=$IFS; IFS=$ac_path_separator
4157 for ac_dir in $ac_dummy; do
4159 test -z "$ac_dir" && ac_dir=.
4160 $as_executable_p "$ac_dir/$ac_word" || continue
4161 ac_cv_prog_ac_ct_RANLIB="ranlib"
4162 echo "$as_me:4162: found $ac_dir/$ac_word" >&5
4166 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4170 if test -n "$ac_ct_RANLIB"; then
4171 echo "$as_me:4171: result: $ac_ct_RANLIB" >&5
4172 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4174 echo "$as_me:4174: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4178 RANLIB=$ac_ct_RANLIB
4180 RANLIB="$ac_cv_prog_RANLIB"
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}ld; ac_word=$2
4186 echo "$as_me:4186: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_LD+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$LD"; then
4192 ac_cv_prog_LD="$LD" # Let the user override the test.
4194 ac_save_IFS=$IFS; IFS=$ac_path_separator
4196 for ac_dir in $ac_dummy; do
4198 test -z "$ac_dir" && ac_dir=.
4199 $as_executable_p "$ac_dir/$ac_word" || continue
4200 ac_cv_prog_LD="${ac_tool_prefix}ld"
4201 echo "$as_me:4201: found $ac_dir/$ac_word" >&5
4208 if test -n "$LD"; then
4209 echo "$as_me:4209: result: $LD" >&5
4210 echo "${ECHO_T}$LD" >&6
4212 echo "$as_me:4212: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4217 if test -z "$ac_cv_prog_LD"; then
4219 # Extract the first word of "ld", so it can be a program name with args.
4220 set dummy ld; ac_word=$2
4221 echo "$as_me:4221: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 if test -n "$ac_ct_LD"; then
4227 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4229 ac_save_IFS=$IFS; IFS=$ac_path_separator
4231 for ac_dir in $ac_dummy; do
4233 test -z "$ac_dir" && ac_dir=.
4234 $as_executable_p "$ac_dir/$ac_word" || continue
4235 ac_cv_prog_ac_ct_LD="ld"
4236 echo "$as_me:4236: found $ac_dir/$ac_word" >&5
4240 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4243 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4244 if test -n "$ac_ct_LD"; then
4245 echo "$as_me:4245: result: $ac_ct_LD" >&5
4246 echo "${ECHO_T}$ac_ct_LD" >&6
4248 echo "$as_me:4248: result: no" >&5
4249 echo "${ECHO_T}no" >&6
4257 if test -n "$ac_tool_prefix"; then
4258 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4259 set dummy ${ac_tool_prefix}ar; ac_word=$2
4260 echo "$as_me:4260: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_AR+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$AR"; then
4266 ac_cv_prog_AR="$AR" # Let the user override the test.
4268 ac_save_IFS=$IFS; IFS=$ac_path_separator
4270 for ac_dir in $ac_dummy; do
4272 test -z "$ac_dir" && ac_dir=.
4273 $as_executable_p "$ac_dir/$ac_word" || continue
4274 ac_cv_prog_AR="${ac_tool_prefix}ar"
4275 echo "$as_me:4275: found $ac_dir/$ac_word" >&5
4282 if test -n "$AR"; then
4283 echo "$as_me:4283: result: $AR" >&5
4284 echo "${ECHO_T}$AR" >&6
4286 echo "$as_me:4286: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4291 if test -z "$ac_cv_prog_AR"; then
4293 # Extract the first word of "ar", so it can be a program name with args.
4294 set dummy ar; ac_word=$2
4295 echo "$as_me:4295: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$ac_ct_AR"; then
4301 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4303 ac_save_IFS=$IFS; IFS=$ac_path_separator
4305 for ac_dir in $ac_dummy; do
4307 test -z "$ac_dir" && ac_dir=.
4308 $as_executable_p "$ac_dir/$ac_word" || continue
4309 ac_cv_prog_ac_ct_AR="ar"
4310 echo "$as_me:4310: found $ac_dir/$ac_word" >&5
4314 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4317 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4318 if test -n "$ac_ct_AR"; then
4319 echo "$as_me:4319: result: $ac_ct_AR" >&5
4320 echo "${ECHO_T}$ac_ct_AR" >&6
4322 echo "$as_me:4322: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4331 if test -n "$ac_tool_prefix"; then
4332 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4333 set dummy ${ac_tool_prefix}nm; ac_word=$2
4334 echo "$as_me:4334: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336 if test "${ac_cv_prog_NM+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 if test -n "$NM"; then
4340 ac_cv_prog_NM="$NM" # Let the user override the test.
4342 ac_save_IFS=$IFS; IFS=$ac_path_separator
4344 for ac_dir in $ac_dummy; do
4346 test -z "$ac_dir" && ac_dir=.
4347 $as_executable_p "$ac_dir/$ac_word" || continue
4348 ac_cv_prog_NM="${ac_tool_prefix}nm"
4349 echo "$as_me:4349: found $ac_dir/$ac_word" >&5
4356 if test -n "$NM"; then
4357 echo "$as_me:4357: result: $NM" >&5
4358 echo "${ECHO_T}$NM" >&6
4360 echo "$as_me:4360: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4365 if test -z "$ac_cv_prog_NM"; then
4367 # Extract the first word of "nm", so it can be a program name with args.
4368 set dummy nm; ac_word=$2
4369 echo "$as_me:4369: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4371 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 if test -n "$ac_ct_NM"; then
4375 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4377 ac_save_IFS=$IFS; IFS=$ac_path_separator
4379 for ac_dir in $ac_dummy; do
4381 test -z "$ac_dir" && ac_dir=.
4382 $as_executable_p "$ac_dir/$ac_word" || continue
4383 ac_cv_prog_ac_ct_NM="nm"
4384 echo "$as_me:4384: found $ac_dir/$ac_word" >&5
4388 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4391 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4392 if test -n "$ac_ct_NM"; then
4393 echo "$as_me:4393: result: $ac_ct_NM" >&5
4394 echo "${ECHO_T}$ac_ct_NM" >&6
4396 echo "$as_me:4396: result: no" >&5
4397 echo "${ECHO_T}no" >&6
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}ar; ac_word=$2
4408 echo "$as_me:4408: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4410 if test "${ac_cv_prog_AR+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test -n "$AR"; then
4414 ac_cv_prog_AR="$AR" # Let the user override the test.
4416 ac_save_IFS=$IFS; IFS=$ac_path_separator
4418 for ac_dir in $ac_dummy; do
4420 test -z "$ac_dir" && ac_dir=.
4421 $as_executable_p "$ac_dir/$ac_word" || continue
4422 ac_cv_prog_AR="${ac_tool_prefix}ar"
4423 echo "$as_me:4423: found $ac_dir/$ac_word" >&5
4430 if test -n "$AR"; then
4431 echo "$as_me:4431: result: $AR" >&5
4432 echo "${ECHO_T}$AR" >&6
4434 echo "$as_me:4434: result: no" >&5
4435 echo "${ECHO_T}no" >&6
4439 if test -z "$ac_cv_prog_AR"; then
4441 # Extract the first word of "ar", so it can be a program name with args.
4442 set dummy ar; ac_word=$2
4443 echo "$as_me:4443: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if test -n "$ac_ct_AR"; then
4449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4451 ac_save_IFS=$IFS; IFS=$ac_path_separator
4453 for ac_dir in $ac_dummy; do
4455 test -z "$ac_dir" && ac_dir=.
4456 $as_executable_p "$ac_dir/$ac_word" || continue
4457 ac_cv_prog_ac_ct_AR="ar"
4458 echo "$as_me:4458: found $ac_dir/$ac_word" >&5
4462 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4466 if test -n "$ac_ct_AR"; then
4467 echo "$as_me:4467: result: $ac_ct_AR" >&5
4468 echo "${ECHO_T}$ac_ct_AR" >&6
4470 echo "$as_me:4470: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4479 echo "$as_me:4479: checking for options to update archives" >&5
4480 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4481 if test "${cf_cv_ar_flags+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 cf_cv_ar_flags=unknown
4486 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4489 # check if $ARFLAGS already contains this choice
4490 if test "x$ARFLAGS" != "x" ; then
4491 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4492 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4498 rm -f conftest.$ac_cv_objext
4501 cat >conftest.$ac_ext <<EOF
4502 #line 4502 "configure"
4503 int testdata[3] = { 123, 456, 789 };
4505 if { (eval echo "$as_me:4505: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4508 echo "$as_me:4508: \$? = $ac_status" >&5
4509 (exit $ac_status); } ; then
4510 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4511 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4512 if test -f conftest.a ; then
4513 cf_cv_ar_flags=$cf_ar_flags
4517 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4519 echo "${as_me:-configure}:4519: testing cannot compile test-program ..." 1>&5
4524 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4527 echo "$as_me:4527: result: $cf_cv_ar_flags" >&5
4528 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4530 if test -n "$ARFLAGS" ; then
4531 if test -n "$cf_cv_ar_flags" ; then
4532 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4535 ARFLAGS=$cf_cv_ar_flags
4538 echo "$as_me:4538: checking if you have specified an install-prefix" >&5
4539 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4541 # Check whether --with-install-prefix or --without-install-prefix was given.
4542 if test "${with_install_prefix+set}" = set; then
4543 withval="$with_install_prefix"
4547 (*) DESTDIR="$withval"
4551 echo "$as_me:4551: result: $DESTDIR" >&5
4552 echo "${ECHO_T}$DESTDIR" >&6
4554 ###############################################################################
4556 # If we're cross-compiling, allow the user to override the tools and their
4557 # options. The configure script is oriented toward identifying the host
4558 # compiler, etc., but we need a build compiler to generate parts of the source.
4560 if test "$cross_compiling" = yes ; then
4562 # defaults that we might want to override
4563 : ${BUILD_CFLAGS:=''}
4564 : ${BUILD_CPPFLAGS:=''}
4565 : ${BUILD_LDFLAGS:=''}
4567 : ${BUILD_EXEEXT:='$x'}
4568 : ${BUILD_OBJEXT:='o'}
4570 # Check whether --with-build-cc or --without-build-cc was given.
4571 if test "${with_build_cc+set}" = set; then
4572 withval="$with_build_cc"
4575 for ac_prog in gcc cc cl
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 echo "$as_me:4579: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$BUILD_CC"; then
4585 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4587 ac_save_IFS=$IFS; IFS=$ac_path_separator
4589 for ac_dir in $ac_dummy; do
4591 test -z "$ac_dir" && ac_dir=.
4592 $as_executable_p "$ac_dir/$ac_word" || continue
4593 ac_cv_prog_BUILD_CC="$ac_prog"
4594 echo "$as_me:4594: found $ac_dir/$ac_word" >&5
4600 BUILD_CC=$ac_cv_prog_BUILD_CC
4601 if test -n "$BUILD_CC"; then
4602 echo "$as_me:4602: result: $BUILD_CC" >&5
4603 echo "${ECHO_T}$BUILD_CC" >&6
4605 echo "$as_me:4605: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4609 test -n "$BUILD_CC" && break
4613 echo "$as_me:4613: checking for native build C compiler" >&5
4614 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4615 echo "$as_me:4615: result: $BUILD_CC" >&5
4616 echo "${ECHO_T}$BUILD_CC" >&6
4618 echo "$as_me:4618: checking for native build C preprocessor" >&5
4619 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4621 # Check whether --with-build-cpp or --without-build-cpp was given.
4622 if test "${with_build_cpp+set}" = set; then
4623 withval="$with_build_cpp"
4624 BUILD_CPP="$withval"
4626 BUILD_CPP='${BUILD_CC} -E'
4628 echo "$as_me:4628: result: $BUILD_CPP" >&5
4629 echo "${ECHO_T}$BUILD_CPP" >&6
4631 echo "$as_me:4631: checking for native build C flags" >&5
4632 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4634 # Check whether --with-build-cflags or --without-build-cflags was given.
4635 if test "${with_build_cflags+set}" = set; then
4636 withval="$with_build_cflags"
4637 BUILD_CFLAGS="$withval"
4639 echo "$as_me:4639: result: $BUILD_CFLAGS" >&5
4640 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4642 echo "$as_me:4642: checking for native build C preprocessor-flags" >&5
4643 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4645 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4646 if test "${with_build_cppflags+set}" = set; then
4647 withval="$with_build_cppflags"
4648 BUILD_CPPFLAGS="$withval"
4650 echo "$as_me:4650: result: $BUILD_CPPFLAGS" >&5
4651 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4653 echo "$as_me:4653: checking for native build linker-flags" >&5
4654 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4656 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4657 if test "${with_build_ldflags+set}" = set; then
4658 withval="$with_build_ldflags"
4659 BUILD_LDFLAGS="$withval"
4661 echo "$as_me:4661: result: $BUILD_LDFLAGS" >&5
4662 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4664 echo "$as_me:4664: checking for native build linker-libraries" >&5
4665 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4667 # Check whether --with-build-libs or --without-build-libs was given.
4668 if test "${with_build_libs+set}" = set; then
4669 withval="$with_build_libs"
4670 BUILD_LIBS="$withval"
4672 echo "$as_me:4672: result: $BUILD_LIBS" >&5
4673 echo "${ECHO_T}$BUILD_LIBS" >&6
4675 # this assumes we're on Unix.
4679 : ${BUILD_CC:='${CC}'}
4681 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4682 { { echo "$as_me:4682: error: Cross-build requires two compilers.
4683 Use --with-build-cc to specify the native compiler." >&5
4684 echo "$as_me: error: Cross-build requires two compilers.
4685 Use --with-build-cc to specify the native compiler." >&2;}
4686 { (exit 1); exit 1; }; }
4690 : ${BUILD_CC:='${CC}'}
4691 : ${BUILD_CPP:='${CPP}'}
4692 : ${BUILD_CFLAGS:='${CFLAGS}'}
4693 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4694 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4695 : ${BUILD_LIBS:='${LIBS}'}
4696 : ${BUILD_EXEEXT:='$x'}
4697 : ${BUILD_OBJEXT:='o'}
4700 ###############################################################################
4702 ### Options to allow the user to specify the set of libraries which are used.
4703 ### Use "--without-normal --with-shared" to allow the default model to be
4704 ### shared, for example.
4707 echo "$as_me:4707: checking if libtool -version-number should be used" >&5
4708 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4710 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4711 if test "${enable_libtool_version+set}" = set; then
4712 enableval="$enable_libtool_version"
4713 test "$enableval" != no && enableval=yes
4714 if test "$enableval" != "yes" ; then
4715 cf_libtool_version=no
4717 cf_libtool_version=yes
4721 cf_libtool_version=yes
4724 echo "$as_me:4724: result: $cf_libtool_version" >&5
4725 echo "${ECHO_T}$cf_libtool_version" >&6
4727 if test "$cf_libtool_version" = yes ; then
4728 LIBTOOL_VERSION="-version-number"
4730 LIBTOOL_VERSION="-version-info"
4733 { echo "$as_me:4733: WARNING: VERSION was not set" >&5
4734 echo "$as_me: WARNING: VERSION was not set" >&2;}
4737 ABI_VERSION="$VERSION"
4738 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4740 echo "${as_me:-configure}:4740: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4744 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4745 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4747 echo "${as_me:-configure}:4747: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4751 { echo "$as_me:4751: WARNING: unexpected VERSION value: $VERSION" >&5
4752 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4759 # common library maintenance symbols that are convenient for libtool scripts:
4760 LIB_CREATE='${AR} -cr'
4761 LIB_OBJECT='${OBJECTS}'
4765 # symbols used to prop libtool up to enable it to determine what it should be
4773 echo "$as_me:4773: checking if you want to build libraries with libtool" >&5
4774 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4776 # Check whether --with-libtool or --without-libtool was given.
4777 if test "${with_libtool+set}" = set; then
4778 withval="$with_libtool"
4779 with_libtool=$withval
4783 echo "$as_me:4783: result: $with_libtool" >&5
4784 echo "${ECHO_T}$with_libtool" >&6
4785 if test "$with_libtool" != "no"; then
4787 if test "$with_libtool" != "yes" ; then
4789 if test "x$prefix" != xNONE; then
4790 cf_path_syntax="$prefix"
4792 cf_path_syntax="$ac_default_prefix"
4795 case ".$with_libtool" in
4800 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4802 (.\${*prefix}*|.\${*dir}*)
4803 eval with_libtool="$with_libtool"
4804 case ".$with_libtool" in
4806 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4811 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4814 { { echo "$as_me:4814: error: expected a pathname, not \"$with_libtool\"" >&5
4815 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4816 { (exit 1); exit 1; }; }
4820 LIBTOOL=$with_libtool
4822 if test -n "$ac_tool_prefix"; then
4823 for ac_prog in libtool glibtool
4825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4827 echo "$as_me:4827: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 if test -n "$LIBTOOL"; then
4833 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4835 ac_save_IFS=$IFS; IFS=$ac_path_separator
4837 for ac_dir in $ac_dummy; do
4839 test -z "$ac_dir" && ac_dir=.
4840 $as_executable_p "$ac_dir/$ac_word" || continue
4841 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4842 echo "$as_me:4842: found $ac_dir/$ac_word" >&5
4848 LIBTOOL=$ac_cv_prog_LIBTOOL
4849 if test -n "$LIBTOOL"; then
4850 echo "$as_me:4850: result: $LIBTOOL" >&5
4851 echo "${ECHO_T}$LIBTOOL" >&6
4853 echo "$as_me:4853: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4857 test -n "$LIBTOOL" && break
4860 if test -z "$LIBTOOL"; then
4861 ac_ct_LIBTOOL=$LIBTOOL
4862 for ac_prog in libtool glibtool
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 echo "$as_me:4866: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 if test -n "$ac_ct_LIBTOOL"; then
4872 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4874 ac_save_IFS=$IFS; IFS=$ac_path_separator
4876 for ac_dir in $ac_dummy; do
4878 test -z "$ac_dir" && ac_dir=.
4879 $as_executable_p "$ac_dir/$ac_word" || continue
4880 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4881 echo "$as_me:4881: found $ac_dir/$ac_word" >&5
4887 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4888 if test -n "$ac_ct_LIBTOOL"; then
4889 echo "$as_me:4889: result: $ac_ct_LIBTOOL" >&5
4890 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4892 echo "$as_me:4892: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4896 test -n "$ac_ct_LIBTOOL" && break
4898 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4900 LIBTOOL=$ac_ct_LIBTOOL
4903 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4905 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.].*//'`
4907 cf_cv_libtool_version=
4909 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4911 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4914 unset ac_cv_prog_ac_ct_LIBTOOL
4918 if test -n "$ac_tool_prefix"; then
4919 for ac_prog in glibtool
4921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4923 echo "$as_me:4923: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4925 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 if test -n "$LIBTOOL"; then
4929 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4931 ac_save_IFS=$IFS; IFS=$ac_path_separator
4933 for ac_dir in $ac_dummy; do
4935 test -z "$ac_dir" && ac_dir=.
4936 $as_executable_p "$ac_dir/$ac_word" || continue
4937 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4938 echo "$as_me:4938: found $ac_dir/$ac_word" >&5
4944 LIBTOOL=$ac_cv_prog_LIBTOOL
4945 if test -n "$LIBTOOL"; then
4946 echo "$as_me:4946: result: $LIBTOOL" >&5
4947 echo "${ECHO_T}$LIBTOOL" >&6
4949 echo "$as_me:4949: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4953 test -n "$LIBTOOL" && break
4956 if test -z "$LIBTOOL"; then
4957 ac_ct_LIBTOOL=$LIBTOOL
4958 for ac_prog in glibtool
4960 # Extract the first word of "$ac_prog", so it can be a program name with args.
4961 set dummy $ac_prog; ac_word=$2
4962 echo "$as_me:4962: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 if test -n "$ac_ct_LIBTOOL"; then
4968 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4970 ac_save_IFS=$IFS; IFS=$ac_path_separator
4972 for ac_dir in $ac_dummy; do
4974 test -z "$ac_dir" && ac_dir=.
4975 $as_executable_p "$ac_dir/$ac_word" || continue
4976 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4977 echo "$as_me:4977: found $ac_dir/$ac_word" >&5
4983 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4984 if test -n "$ac_ct_LIBTOOL"; then
4985 echo "$as_me:4985: result: $ac_ct_LIBTOOL" >&5
4986 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4988 echo "$as_me:4988: result: no" >&5
4989 echo "${ECHO_T}no" >&6
4992 test -n "$ac_ct_LIBTOOL" && break
4994 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4996 LIBTOOL=$ac_ct_LIBTOOL
4999 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5001 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.].*//'`
5003 cf_cv_libtool_version=
5005 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5009 if test -z "$LIBTOOL" ; then
5010 { { echo "$as_me:5010: error: Cannot find libtool" >&5
5011 echo "$as_me: error: Cannot find libtool" >&2;}
5012 { (exit 1); exit 1; }; }
5014 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5015 LIB_OBJECT='${OBJECTS:.o=.lo}'
5017 LIB_CLEAN='${LIBTOOL} --mode=clean'
5018 LIB_COMPILE='${LIBTOOL} --mode=compile'
5019 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5020 LIB_INSTALL='${LIBTOOL} --mode=install'
5021 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5024 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5026 echo "$as_me:5026: checking version of $LIBTOOL" >&5
5027 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5029 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5031 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.].*//'`
5033 cf_cv_libtool_version=
5035 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5037 echo "$as_me:5037: result: $cf_cv_libtool_version" >&5
5038 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5039 if test -z "$cf_cv_libtool_version" ; then
5040 { { echo "$as_me:5040: error: This is not GNU libtool" >&5
5041 echo "$as_me: error: This is not GNU libtool" >&2;}
5042 { (exit 1); exit 1; }; }
5045 { { echo "$as_me:5045: error: GNU libtool has not been found" >&5
5046 echo "$as_me: error: GNU libtool has not been found" >&2;}
5047 { (exit 1); exit 1; }; }
5050 # special hack to add -no-undefined (which libtool should do for itself)
5052 case "$cf_cv_system_name" in
5053 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5054 LT_UNDEF=-no-undefined
5058 # special hack to add --tag option for C++ compiler
5059 case $cf_cv_libtool_version in
5060 (1.[5-9]*|[2-9].[0-9.a-z]*)
5061 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5062 LIBTOOL="$LIBTOOL --tag=CC"
5065 LIBTOOL_CXX="$LIBTOOL"
5073 test -z "$LIBTOOL" && ECHO_LT=
5075 if test "$with_libtool" != "no" ; then
5077 cf_list_models="$cf_list_models libtool"
5081 echo "$as_me:5081: checking if you want to build shared libraries" >&5
5082 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5084 # Check whether --with-shared or --without-shared was given.
5085 if test "${with_shared+set}" = set; then
5086 withval="$with_shared"
5087 with_shared=$withval
5091 echo "$as_me:5091: result: $with_shared" >&5
5092 echo "${ECHO_T}$with_shared" >&6
5093 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5095 echo "$as_me:5095: checking if you want to build static libraries" >&5
5096 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5098 # Check whether --with-normal or --without-normal was given.
5099 if test "${with_normal+set}" = set; then
5100 withval="$with_normal"
5101 with_normal=$withval
5105 echo "$as_me:5105: result: $with_normal" >&5
5106 echo "${ECHO_T}$with_normal" >&6
5107 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5109 echo "$as_me:5109: checking if you want to build debug libraries" >&5
5110 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5112 # Check whether --with-debug or --without-debug was given.
5113 if test "${with_debug+set}" = set; then
5114 withval="$with_debug"
5119 echo "$as_me:5119: result: $with_debug" >&5
5120 echo "${ECHO_T}$with_debug" >&6
5121 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5123 echo "$as_me:5123: checking if you want to build profiling libraries" >&5
5124 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5126 # Check whether --with-profile or --without-profile was given.
5127 if test "${with_profile+set}" = set; then
5128 withval="$with_profile"
5129 with_profile=$withval
5133 echo "$as_me:5133: result: $with_profile" >&5
5134 echo "${ECHO_T}$with_profile" >&6
5135 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5139 if test "X$cf_with_cxx_binding" != Xno; then
5140 if test "x$with_shared" = "xyes"; then
5141 echo "$as_me:5141: checking if you want to build C++ shared libraries" >&5
5142 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5144 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5145 if test "${with_cxx_shared+set}" = set; then
5146 withval="$with_cxx_shared"
5147 with_shared_cxx=$withval
5151 echo "$as_me:5151: result: $with_shared_cxx" >&5
5152 echo "${ECHO_T}$with_shared_cxx" >&6
5156 ###############################################################################
5158 echo "$as_me:5158: checking for specified models" >&5
5159 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5160 test -z "$cf_list_models" && cf_list_models=normal
5161 test "$with_libtool" != "no" && cf_list_models=libtool
5162 echo "$as_me:5162: result: $cf_list_models" >&5
5163 echo "${ECHO_T}$cf_list_models" >&6
5165 ### Use the first model as the default, and save its suffix for use in building
5166 ### up test-applications.
5167 echo "$as_me:5167: checking for default model" >&5
5168 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5169 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5170 echo "$as_me:5170: result: $DFT_LWR_MODEL" >&5
5171 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5173 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5184 echo "$as_me:5184: checking if you want to have a library-prefix" >&5
5185 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5187 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5188 if test "${with_lib_prefix+set}" = set; then
5189 withval="$with_lib_prefix"
5190 with_lib_prefix=$withval
5192 with_lib_prefix=auto
5194 echo "$as_me:5194: result: $with_lib_prefix" >&5
5195 echo "${ECHO_T}$with_lib_prefix" >&6
5197 if test $with_lib_prefix = auto
5200 case $cf_cv_system_name in
5202 if test "$DFT_LWR_MODEL" = libtool; then
5208 (*) LIB_PREFIX='lib'
5211 cf_prefix=$LIB_PREFIX
5213 elif test $with_lib_prefix = no
5217 LIB_PREFIX=$with_lib_prefix
5222 echo "$as_me:5222: checking for PATH separator" >&5
5223 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5224 case $cf_cv_system_name in
5225 (os2*) PATH_SEPARATOR=';' ;;
5226 (*) ${PATH_SEPARATOR:=':'} ;;
5229 echo "$as_me:5229: result: $PATH_SEPARATOR" >&5
5230 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5232 ###############################################################################
5234 echo "$as_me:5234: checking if you want to build a separate terminfo library" >&5
5235 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5237 # Check whether --with-termlib or --without-termlib was given.
5238 if test "${with_termlib+set}" = set; then
5239 withval="$with_termlib"
5240 with_termlib=$withval
5244 echo "$as_me:5244: result: $with_termlib" >&5
5245 echo "${ECHO_T}$with_termlib" >&6
5247 echo "$as_me:5247: checking if you want to build a separate tic library" >&5
5248 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5250 # Check whether --with-ticlib or --without-ticlib was given.
5251 if test "${with_ticlib+set}" = set; then
5252 withval="$with_ticlib"
5253 with_ticlib=$withval
5257 echo "$as_me:5257: result: $with_ticlib" >&5
5258 echo "${ECHO_T}$with_ticlib" >&6
5260 ### Checks for special libraries, must be done up-front.
5263 echo "$as_me:5263: checking if you want to link with the GPM mouse library" >&5
5264 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5266 # Check whether --with-gpm or --without-gpm was given.
5267 if test "${with_gpm+set}" = set; then
5273 echo "$as_me:5273: result: $with_gpm" >&5
5274 echo "${ECHO_T}$with_gpm" >&6
5276 if test "$with_gpm" != no ; then
5277 echo "$as_me:5277: checking for gpm.h" >&5
5278 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5279 if test "${ac_cv_header_gpm_h+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line 5283 "configure"
5284 #include "confdefs.h"
5287 if { (eval echo "$as_me:5287: \"$ac_cpp conftest.$ac_ext\"") >&5
5288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5290 egrep -v '^ *\+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:5293: \$? = $ac_status" >&5
5294 (exit $ac_status); } >/dev/null; then
5295 if test -s conftest.err; then
5296 ac_cpp_err=$ac_c_preproc_warn_flag
5303 if test -z "$ac_cpp_err"; then
5304 ac_cv_header_gpm_h=yes
5306 echo "$as_me: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5308 ac_cv_header_gpm_h=no
5310 rm -f conftest.err conftest.$ac_ext
5312 echo "$as_me:5312: result: $ac_cv_header_gpm_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5314 if test $ac_cv_header_gpm_h = yes; then
5316 cat >>confdefs.h <<\EOF
5317 #define HAVE_GPM_H 1
5320 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5321 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5323 echo "${as_me:-configure}:5323: testing assuming we really have GPM library ..." 1>&5
5325 cat >>confdefs.h <<\EOF
5326 #define HAVE_LIBGPM 1
5331 echo "$as_me:5331: checking for Gpm_Open in -lgpm" >&5
5332 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5333 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 ac_check_lib_save_LIBS=$LIBS
5338 cat >conftest.$ac_ext <<_ACEOF
5339 #line 5339 "configure"
5340 #include "confdefs.h"
5342 /* Override any gcc2 internal prototype to avoid an error. */
5346 /* We use char because int might match the return type of a gcc2
5347 builtin and then its argument prototype would still apply. */
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:5358: \"$ac_link\"") >&5
5359 (eval $ac_link) 2>&5
5361 echo "$as_me:5361: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -s conftest$ac_exeext'
5364 { (eval echo "$as_me:5364: \"$ac_try\"") >&5
5367 echo "$as_me:5367: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_cv_lib_gpm_Gpm_Open=yes
5371 echo "$as_me: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5373 ac_cv_lib_gpm_Gpm_Open=no
5375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5376 LIBS=$ac_check_lib_save_LIBS
5378 echo "$as_me:5378: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5379 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5380 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5384 if test "$with_gpm" = maybe; then
5385 { echo "$as_me:5385: WARNING: Cannot link with GPM library" >&5
5386 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
5389 { { echo "$as_me:5389: error: Cannot link with GPM library" >&5
5390 echo "$as_me: error: Cannot link with GPM library" >&2;}
5391 { (exit 1); exit 1; }; }
5400 test "$with_gpm" != maybe && { echo "$as_me:5400: WARNING: Cannot find GPM header" >&5
5401 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5408 if test "$with_gpm" != no ; then
5409 echo "$as_me:5409: checking if you want to load GPM dynamically" >&5
5410 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5412 # Check whether --with-dlsym or --without-dlsym was given.
5413 if test "${with_dlsym+set}" = set; then
5414 withval="$with_dlsym"
5419 echo "$as_me:5419: result: $with_dlsym" >&5
5420 echo "${ECHO_T}$with_dlsym" >&6
5421 if test "x$with_dlsym" = xyes ; then
5424 echo "$as_me:5424: checking for dlsym" >&5
5425 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5426 if test "${ac_cv_func_dlsym+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line 5430 "configure"
5431 #include "confdefs.h"
5432 /* System header to define __stub macros and hopefully few prototypes,
5433 which can conflict with char dlsym (); below. */
5435 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5447 /* The GNU C library defines this for functions which it implements
5448 to always fail with ENOSYS. Some functions are actually named
5449 something starting with __ and the normal name is an alias. */
5450 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5453 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (eval echo "$as_me:5461: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5464 echo "$as_me:5464: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -s conftest$ac_exeext'
5467 { (eval echo "$as_me:5467: \"$ac_try\"") >&5
5470 echo "$as_me:5470: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_cv_func_dlsym=yes
5474 echo "$as_me: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5480 echo "$as_me:5480: result: $ac_cv_func_dlsym" >&5
5481 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5482 if test $ac_cv_func_dlsym = yes; then
5487 echo "$as_me:5487: checking for dlsym in -ldl" >&5
5488 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5489 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 ac_check_lib_save_LIBS=$LIBS
5494 cat >conftest.$ac_ext <<_ACEOF
5495 #line 5495 "configure"
5496 #include "confdefs.h"
5498 /* Override any gcc2 internal prototype to avoid an error. */
5502 /* We use char because int might match the return type of a gcc2
5503 builtin and then its argument prototype would still apply. */
5513 rm -f conftest.$ac_objext conftest$ac_exeext
5514 if { (eval echo "$as_me:5514: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>&5
5517 echo "$as_me:5517: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -s conftest$ac_exeext'
5520 { (eval echo "$as_me:5520: \"$ac_try\"") >&5
5523 echo "$as_me:5523: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_cv_lib_dl_dlsym=yes
5527 echo "$as_me: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 ac_cv_lib_dl_dlsym=no
5531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5532 LIBS=$ac_check_lib_save_LIBS
5534 echo "$as_me:5534: result: $ac_cv_lib_dl_dlsym" >&5
5535 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5536 if test $ac_cv_lib_dl_dlsym = yes; then
5544 if test "$cf_have_dlsym" = yes ; then
5545 test "$cf_have_libdl" = yes && {
5547 # Filter out duplicates - this happens with badly-designed ".pc" files...
5548 for cf_add_1lib in $LIBS
5550 for cf_add_2lib in $cf_add_libs
5552 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5558 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5563 echo "$as_me:5563: checking whether able to link to dl*() functions" >&5
5564 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5565 cat >conftest.$ac_ext <<_ACEOF
5566 #line 5566 "configure"
5567 #include "confdefs.h"
5574 if ((obj = dlopen("filename", 0)) != 0) {
5575 if (dlsym(obj, "symbolname") == 0) {
5583 rm -f conftest.$ac_objext conftest$ac_exeext
5584 if { (eval echo "$as_me:5584: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>&5
5587 echo "$as_me:5587: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -s conftest$ac_exeext'
5590 { (eval echo "$as_me:5590: \"$ac_try\"") >&5
5593 echo "$as_me:5593: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5596 cat >>confdefs.h <<\EOF
5597 #define HAVE_LIBDL 1
5601 echo "$as_me: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5604 { { echo "$as_me:5604: error: Cannot link test program for libdl" >&5
5605 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5606 { (exit 1); exit 1; }; }
5608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5609 echo "$as_me:5609: result: ok" >&5
5610 echo "${ECHO_T}ok" >&6
5612 { { echo "$as_me:5612: error: Cannot find dlsym function" >&5
5613 echo "$as_me: error: Cannot find dlsym function" >&2;}
5614 { (exit 1); exit 1; }; }
5617 if test "x$with_gpm" != xyes ; then
5618 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5620 echo "${as_me:-configure}:5620: testing assuming soname for gpm is $with_gpm ..." 1>&5
5622 cf_cv_gpm_soname="$with_gpm"
5625 echo "$as_me:5625: checking for soname of gpm library" >&5
5626 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5627 if test "${cf_cv_gpm_soname+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cf_cv_gpm_soname=unknown
5632 if test "$cross_compiling" != yes ; then
5633 cat >conftest.$ac_ext <<CF_EOF
5637 if (Gpm_Open(0,0)) Gpm_Close();
5638 ${cf_cv_main_return:-return}(0);
5641 cf_save_LIBS="$LIBS"
5644 # Filter out duplicates - this happens with badly-designed ".pc" files...
5645 for cf_add_1lib in $LIBS
5647 for cf_add_2lib in $cf_add_libs
5649 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5655 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5659 if { (eval echo "$as_me:5659: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5662 echo "$as_me:5662: \$? = $ac_status" >&5
5663 (exit $ac_status); } ; then
5664 if { (eval echo "$as_me:5664: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>&5
5667 echo "$as_me:5667: \$? = $ac_status" >&5
5668 (exit $ac_status); } ; then
5669 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5670 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5674 LIBS="$cf_save_LIBS"
5678 echo "$as_me:5678: result: $cf_cv_gpm_soname" >&5
5679 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5682 test "$cf_cv_gpm_soname" != "unknown" &&
5683 cat >>confdefs.h <<EOF
5684 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5687 SHLIB_LIST="-ldl $SHLIB_LIST"
5689 SHLIB_LIST="-lgpm $SHLIB_LIST"
5692 # Filter out duplicates - this happens with badly-designed ".pc" files...
5693 for cf_add_1lib in $TEST_LIBS
5695 for cf_add_2lib in $cf_add_libs
5697 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5703 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5705 TEST_LIBS="$cf_add_libs"
5709 cat >>confdefs.h <<\EOF
5710 #define HAVE_LIBGPM 1
5713 echo "$as_me:5713: checking for Gpm_Wgetch in -lgpm" >&5
5714 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5715 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_check_lib_save_LIBS=$LIBS
5720 cat >conftest.$ac_ext <<_ACEOF
5721 #line 5721 "configure"
5722 #include "confdefs.h"
5724 /* Override any gcc2 internal prototype to avoid an error. */
5728 /* We use char because int might match the return type of a gcc2
5729 builtin and then its argument prototype would still apply. */
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:5740: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5743 echo "$as_me:5743: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:5746: \"$ac_try\"") >&5
5749 echo "$as_me:5749: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_lib_gpm_Gpm_Wgetch=yes
5753 echo "$as_me: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 ac_cv_lib_gpm_Gpm_Wgetch=no
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758 LIBS=$ac_check_lib_save_LIBS
5760 echo "$as_me:5760: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5761 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5762 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5764 echo "$as_me:5764: checking if GPM is weakly bound to curses library" >&5
5765 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5766 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 cf_cv_check_gpm_wgetch=unknown
5771 if test "$cross_compiling" != yes ; then
5773 cat >conftest.$ac_ext <<CF_EOF
5778 ${cf_cv_main_return:-return}(0);
5782 cf_save_LIBS="$LIBS"
5783 # This only works if we can look at the symbol table. If a shared
5784 # library is stripped for install, we cannot use that. So we're forced
5785 # to rely on the static library, noting that some packagers may not
5787 LIBS="-static -lgpm -dynamic $LIBS"
5788 if { (eval echo "$as_me:5788: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>&5
5791 echo "$as_me:5791: \$? = $ac_status" >&5
5792 (exit $ac_status); } ; then
5793 if { (eval echo "$as_me:5793: \"$ac_link\"") >&5
5794 (eval $ac_link) 2>&5
5796 echo "$as_me:5796: \$? = $ac_status" >&5
5797 (exit $ac_status); } ; then
5798 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5799 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5800 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5804 LIBS="$cf_save_LIBS"
5808 echo "$as_me:5808: result: $cf_cv_check_gpm_wgetch" >&5
5809 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5811 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5812 { echo "$as_me:5812: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5813 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5820 # not everyone has "test -c"
5821 if test -c /dev/sysmouse 2>/dev/null ; then
5822 echo "$as_me:5822: checking if you want to use sysmouse" >&5
5823 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5825 # Check whether --with-sysmouse or --without-sysmouse was given.
5826 if test "${with_sysmouse+set}" = set; then
5827 withval="$with_sysmouse"
5828 cf_with_sysmouse=$withval
5830 cf_with_sysmouse=maybe
5832 if test "$cf_with_sysmouse" != no ; then
5833 cat >conftest.$ac_ext <<_ACEOF
5834 #line 5834 "configure"
5835 #include "confdefs.h"
5837 #include <osreldate.h>
5838 #if (__FreeBSD_version >= 400017)
5839 #include <sys/consio.h>
5840 #include <sys/fbio.h>
5842 #include <machine/console.h>
5849 struct mouse_info the_mouse;
5850 ioctl(0, CONS_MOUSECTL, &the_mouse);
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:5857: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5860 echo "$as_me:5860: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:5863: \"$ac_try\"") >&5
5866 echo "$as_me:5866: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 cf_with_sysmouse=yes
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5876 echo "$as_me:5876: result: $cf_with_sysmouse" >&5
5877 echo "${ECHO_T}$cf_with_sysmouse" >&6
5878 test "$cf_with_sysmouse" = yes &&
5879 cat >>confdefs.h <<\EOF
5880 #define USE_SYSMOUSE 1
5885 if test X"$CC_G_OPT" = X"" ; then
5887 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5890 if test X"$CXX_G_OPT" = X"" ; then
5892 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5895 echo "$as_me:5895: checking for default loader flags" >&5
5896 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5897 case $DFT_LWR_MODEL in
5898 (libtool) LD_MODEL='' ;;
5899 (normal) LD_MODEL='' ;;
5900 (debug) LD_MODEL=$CC_G_OPT ;;
5901 (profile) LD_MODEL='-pg';;
5902 (shared) LD_MODEL='' ;;
5904 echo "$as_me:5904: result: $LD_MODEL" >&5
5905 echo "${ECHO_T}$LD_MODEL" >&6
5907 case $DFT_LWR_MODEL in
5910 echo "$as_me:5910: checking if rpath option should be used" >&5
5911 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5913 # Check whether --enable-rpath or --disable-rpath was given.
5914 if test "${enable_rpath+set}" = set; then
5915 enableval="$enable_rpath"
5916 cf_cv_enable_rpath=$enableval
5918 cf_cv_enable_rpath=no
5920 echo "$as_me:5920: result: $cf_cv_enable_rpath" >&5
5921 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5923 echo "$as_me:5923: checking if shared libraries should be relinked during install" >&5
5924 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5926 # Check whether --enable-relink or --disable-relink was given.
5927 if test "${enable_relink+set}" = set; then
5928 enableval="$enable_relink"
5929 cf_cv_do_relink=$enableval
5933 echo "$as_me:5933: result: $cf_cv_do_relink" >&5
5934 echo "${ECHO_T}$cf_cv_do_relink" >&6
5938 # we will build libraries one-level down.
5942 echo "$as_me:5942: checking for an rpath option" >&5
5943 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5944 case $cf_cv_system_name in
5946 if test "$GCC" = yes; then
5947 LD_RPATH_OPT="-Wl,-rpath,"
5949 LD_RPATH_OPT="-rpath "
5952 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5953 LD_RPATH_OPT="-Wl,-rpath,"
5955 (openbsd[2-9].*|mirbsd*)
5956 LD_RPATH_OPT="-Wl,-rpath,"
5959 LD_RPATH_OPT="-rpath "
5962 LD_RPATH_OPT="-Wl,-rpath,"
5965 LD_RPATH_OPT="-rpath "
5973 echo "$as_me:5973: result: $LD_RPATH_OPT" >&5
5974 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5976 case "x$LD_RPATH_OPT" in
5978 echo "$as_me:5978: checking if we need a space after rpath option" >&5
5979 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5980 cf_save_LIBS="$LIBS"
5982 cf_add_libs="${LD_RPATH_OPT}$libdir"
5983 # Filter out duplicates - this happens with badly-designed ".pc" files...
5984 for cf_add_1lib in $LIBS
5986 for cf_add_2lib in $cf_add_libs
5988 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5994 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5998 cat >conftest.$ac_ext <<_ACEOF
5999 #line 5999 "configure"
6000 #include "confdefs.h"
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:6011: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>&5
6014 echo "$as_me:6014: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -s conftest$ac_exeext'
6017 { (eval echo "$as_me:6017: \"$ac_try\"") >&5
6020 echo "$as_me:6020: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6024 echo "$as_me: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6029 LIBS="$cf_save_LIBS"
6030 echo "$as_me:6030: result: $cf_rpath_space" >&5
6031 echo "${ECHO_T}$cf_rpath_space" >&6
6032 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6040 INSTALL_LIB="-m 644"
6041 : ${rel_builddir:=.}
6047 cf_cv_do_symlinks=no
6049 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6051 echo "$as_me:6051: checking if release/abi version should be used for shared libs" >&5
6052 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6054 # Check whether --with-shlib-version or --without-shlib-version was given.
6055 if test "${with_shlib_version+set}" = set; then
6056 withval="$with_shlib_version"
6057 test -z "$withval" && withval=auto
6060 cf_cv_shlib_version=auto
6063 cf_cv_shlib_version=$withval
6066 echo "$as_me:6066: result: $withval" >&5
6067 echo "${ECHO_T}$withval" >&6
6068 { { echo "$as_me:6068: error: option value must be one of: rel, abi, or auto" >&5
6069 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6070 { (exit 1); exit 1; }; }
6075 cf_cv_shlib_version=auto
6077 echo "$as_me:6077: result: $cf_cv_shlib_version" >&5
6078 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6083 # Some less-capable ports of gcc support only -fpic
6087 if test "$GCC" = yes
6091 case $cf_cv_system_name in
6092 (*linux*) # e.g., PGI compiler
6098 if test "$cf_try_fPIC" = yes
6100 echo "$as_me:6100: checking which $CC option to use" >&5
6101 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6102 cf_save_CFLAGS="$CFLAGS"
6103 for CC_SHARED_OPTS in -fPIC -fpic ''
6105 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6106 cat >conftest.$ac_ext <<_ACEOF
6107 #line 6107 "configure"
6108 #include "confdefs.h"
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:6119: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>&5
6122 echo "$as_me:6122: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:6125: \"$ac_try\"") >&5
6128 echo "$as_me:6128: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6132 echo "$as_me: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6135 rm -f conftest.$ac_objext conftest.$ac_ext
6137 echo "$as_me:6137: result: $CC_SHARED_OPTS" >&5
6138 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6139 CFLAGS="$cf_save_CFLAGS"
6142 cf_cv_shlib_version_infix=no
6144 case $cf_cv_system_name in
6145 (aix4.3-9*|aix[5-7]*)
6146 if test "$GCC" = yes; then
6147 CC_SHARED_OPTS='-Wl,-brtl'
6148 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6150 CC_SHARED_OPTS='-brtl'
6151 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6152 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6156 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6160 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6161 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6162 cf_cv_shlib_version=cygdll
6163 cf_cv_shlib_version_infix=cygdll
6166 cat >mk_shared_lib.sh <<-CF_EOF
6169 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6172 Linking shared library
6173 ** SHARED_LIB \$SHARED_LIB
6174 ** IMPORT_LIB \$IMPORT_LIB
6176 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6178 chmod +x mk_shared_lib.sh
6182 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6183 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6184 cf_cv_shlib_version=msysdll
6185 cf_cv_shlib_version_infix=msysdll
6188 cat >mk_shared_lib.sh <<-CF_EOF
6191 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6194 Linking shared library
6195 ** SHARED_LIB \$SHARED_LIB
6196 ** IMPORT_LIB \$IMPORT_LIB
6198 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6200 chmod +x mk_shared_lib.sh
6203 cf_try_cflags="no-cpp-precomp"
6204 CC_SHARED_OPTS="-dynamic"
6205 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6206 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6207 cf_cv_shlib_version_infix=yes
6208 echo "$as_me:6208: checking if ld -search_paths_first works" >&5
6209 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6210 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 cf_save_LDFLAGS=$LDFLAGS
6215 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6216 cat >conftest.$ac_ext <<_ACEOF
6217 #line 6217 "configure"
6218 #include "confdefs.h"
6228 rm -f conftest.$ac_objext conftest$ac_exeext
6229 if { (eval echo "$as_me:6229: \"$ac_link\"") >&5
6230 (eval $ac_link) 2>&5
6232 echo "$as_me:6232: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -s conftest$ac_exeext'
6235 { (eval echo "$as_me:6235: \"$ac_try\"") >&5
6238 echo "$as_me:6238: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6240 cf_cv_ldflags_search_paths_first=yes
6242 echo "$as_me: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 cf_cv_ldflags_search_paths_first=no
6246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6247 LDFLAGS=$cf_save_LDFLAGS
6249 echo "$as_me:6249: result: $cf_cv_ldflags_search_paths_first" >&5
6250 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6251 if test $cf_cv_ldflags_search_paths_first = yes; then
6252 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6256 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6257 if test "$GCC" != yes; then
6260 MK_SHARED_LIB='${LD} -b -o $@'
6261 INSTALL_LIB="-m 555"
6264 # (tested with gcc 2.7.2 -- I don't have c89)
6265 if test "$GCC" = yes; then
6266 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6269 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6271 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6272 # HP-UX shared libraries must be executable, and should be
6273 # readonly to exploit a quirk in the memory manager.
6274 INSTALL_LIB="-m 555"
6277 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6278 if test "$cf_cv_shlib_version" = rel; then
6279 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6281 cf_shared_soname='`basename `'
6284 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6287 if test "$cf_cv_enable_rpath" = yes ; then
6288 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6290 # tested with IRIX 5.2 and 'cc'.
6291 if test "$GCC" != yes; then
6292 CC_SHARED_OPTS='-KPIC'
6293 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6295 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6297 cf_cv_rm_so_locs=yes
6299 (linux*|gnu*|k*bsd*-gnu)
6300 if test "$DFT_LWR_MODEL" = "shared" ; then
6301 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6302 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6304 if test "$cf_cv_enable_rpath" = yes ; then
6305 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6308 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6309 if test "$cf_cv_shlib_version" = rel; then
6310 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6312 cf_cv_shared_soname='`basename $@`'
6315 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6318 cf_cv_shlib_version=mingw
6319 cf_cv_shlib_version_infix=mingw
6322 if test "$DFT_LWR_MODEL" = "shared" ; then
6323 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6324 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6325 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6328 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6329 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6330 cat >mk_shared_lib.sh <<-CF_EOF
6333 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6336 Linking shared library
6337 ** SHARED_LIB \$SHARED_LIB
6338 ** IMPORT_LIB \$IMPORT_LIB
6340 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6342 chmod +x mk_shared_lib.sh
6344 (openbsd[2-9].*|mirbsd*)
6345 if test "$DFT_LWR_MODEL" = "shared" ; then
6346 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6347 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6349 if test "$cf_cv_enable_rpath" = yes ; then
6350 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6352 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6354 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6355 if test "$cf_cv_shlib_version" = rel; then
6356 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6358 cf_cv_shared_soname='`basename $@`'
6361 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6363 (nto-qnx*|openbsd*|freebsd[12].*)
6364 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6365 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6366 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6368 (dragonfly*|freebsd*)
6369 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6370 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6371 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6372 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6373 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6376 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6377 if test "$cf_cv_shlib_version" = rel; then
6378 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6380 cf_cv_shared_soname='`basename $@`'
6383 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6386 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6387 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6388 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6389 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6390 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6391 if test "$cf_cv_shlib_version" = auto; then
6392 if test -f /usr/libexec/ld.elf_so; then
6393 cf_cv_shlib_version=abi
6395 cf_cv_shlib_version=rel
6399 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6400 if test "$cf_cv_shlib_version" = rel; then
6401 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6403 cf_cv_shared_soname='`basename $@`'
6406 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6408 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6412 # tested with OSF/1 V3.2 and 'cc'
6413 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6414 # link with shared libs).
6415 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6418 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6421 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6422 if test "$DFT_LWR_MODEL" = "shared" ; then
6423 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6424 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6426 cf_cv_rm_so_locs=yes
6428 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6429 # tested with osr5.0.5
6430 if test "$GCC" != yes; then
6431 CC_SHARED_OPTS='-belf -KPIC'
6433 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6434 if test "$cf_cv_enable_rpath" = yes ; then
6435 # only way is to set LD_RUN_PATH but no switch for it
6438 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6439 LINK_PROGS='LD_RUN_PATH=${libdir}'
6440 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6443 # tested with SunOS 4.1.1 and gcc 2.7.0
6444 if test "$GCC" != yes; then
6445 CC_SHARED_OPTS='-KPIC'
6447 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6448 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6451 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6452 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6453 if test "$DFT_LWR_MODEL" = "shared" ; then
6454 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6455 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6457 if test "$cf_cv_enable_rpath" = yes ; then
6458 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6461 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6462 if test "$cf_cv_shlib_version" = rel; then
6463 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6465 cf_cv_shared_soname='`basename $@`'
6468 if test "$GCC" != yes; then
6469 cf_save_CFLAGS="$CFLAGS"
6470 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6472 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6473 cat >conftest.$ac_ext <<_ACEOF
6474 #line 6474 "configure"
6475 #include "confdefs.h"
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:6486: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6489 echo "$as_me:6489: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:6492: \"$ac_try\"") >&5
6495 echo "$as_me:6495: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6499 echo "$as_me: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 rm -f conftest.$ac_objext conftest.$ac_ext
6504 CFLAGS="$cf_save_CFLAGS"
6505 CC_SHARED_OPTS=$cf_shared_opts
6506 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6508 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6511 (sysv5uw7*|unix_sv*)
6512 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6513 if test "$GCC" != yes; then
6514 CC_SHARED_OPTS='-KPIC'
6516 MK_SHARED_LIB='${LD} -d y -G -o $@'
6519 CC_SHARED_OPTS='unknown'
6520 MK_SHARED_LIB='echo unknown'
6524 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6525 case "$cf_cv_shlib_version" in
6527 case "$MK_SHARED_LIB" in
6529 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6532 { echo "$as_me:6532: WARNING: ignored --with-shlib-version" >&5
6533 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6539 if test -n "$cf_try_cflags"
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6542 "${as_me:-configure}"
6544 int main(int argc, char *argv[])
6547 return (argv[argc-1] == 0) ;
6550 cf_save_CFLAGS="$CFLAGS"
6551 for cf_opt in $cf_try_cflags
6553 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6554 echo "$as_me:6554: checking if CFLAGS option -$cf_opt works" >&5
6555 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6556 if { (eval echo "$as_me:6556: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>&5
6559 echo "$as_me:6559: \$? = $ac_status" >&5
6560 (exit $ac_status); }; then
6561 echo "$as_me:6561: result: yes" >&5
6562 echo "${ECHO_T}yes" >&6
6563 cf_save_CFLAGS="$CFLAGS"
6565 echo "$as_me:6565: result: no" >&5
6566 echo "${ECHO_T}no" >&6
6569 CFLAGS="$cf_save_CFLAGS"
6572 # RPATH_LIST is a colon-separated list of directories
6573 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6574 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6576 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6578 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6580 echo "${as_me:-configure}:6580: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6582 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6584 echo "${as_me:-configure}:6584: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6586 for model in $cf_list_models; do
6590 echo "$as_me:6590: checking for additional libtool options" >&5
6591 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6593 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6594 if test "${with_libtool_opts+set}" = set; then
6595 withval="$with_libtool_opts"
6596 with_libtool_opts=$withval
6598 with_libtool_opts=no
6600 echo "$as_me:6600: result: $with_libtool_opts" >&5
6601 echo "${ECHO_T}$with_libtool_opts" >&6
6603 case .$with_libtool_opts in
6607 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6611 echo "$as_me:6611: checking if exported-symbols file should be used" >&5
6612 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6614 # Check whether --with-export-syms or --without-export-syms was given.
6615 if test "${with_export_syms+set}" = set; then
6616 withval="$with_export_syms"
6617 with_export_syms=$withval
6621 if test "x$with_export_syms" = xyes
6623 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6626 echo "$as_me:6626: result: $with_export_syms" >&5
6627 echo "${ECHO_T}$with_export_syms" >&6
6628 if test "x$with_export_syms" != xno
6630 EXPORT_SYMS="-export-symbols $with_export_syms"
6636 if test "$CC_SHARED_OPTS" = "unknown"; then
6637 { { echo "$as_me:6637: error: Shared libraries are not supported in this version" >&5
6638 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6639 { (exit 1); exit 1; }; }
6641 # workaround for inept transition to PIE vs PIC...
6642 echo "$as_me:6642: checking if current CFLAGS link properly" >&5
6643 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6644 cat >conftest.$ac_ext <<_ACEOF
6645 #line 6645 "configure"
6646 #include "confdefs.h"
6651 printf("Hello work\n");
6656 rm -f conftest.$ac_objext conftest$ac_exeext
6657 if { (eval echo "$as_me:6657: \"$ac_link\"") >&5
6658 (eval $ac_link) 2>&5
6660 echo "$as_me:6660: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest$ac_exeext'
6663 { (eval echo "$as_me:6663: \"$ac_try\"") >&5
6666 echo "$as_me:6666: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6670 echo "$as_me: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 echo "$as_me:6675: result: $cf_cflags_work" >&5
6676 echo "${ECHO_T}$cf_cflags_work" >&6
6677 if test "$cf_cflags_work" = no
6679 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6681 echo "${as_me:-configure}:6681: testing try to work around by appending shared-options ..." 1>&5
6683 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6686 echo "$as_me:6686: checking if versioned-symbols file should be used" >&5
6687 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6689 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6690 if test "${with_versioned_syms+set}" = set; then
6691 withval="$with_versioned_syms"
6692 with_versioned_syms=$withval
6694 with_versioned_syms=no
6696 if test "x$with_versioned_syms" = xyes
6698 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6701 echo "$as_me:6701: result: $with_versioned_syms" >&5
6702 echo "${ECHO_T}$with_versioned_syms" >&6
6708 if test "x$with_versioned_syms" != xno
6710 RESULTING_SYMS=$with_versioned_syms
6711 case "x$MK_SHARED_LIB" in
6713 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6714 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6715 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6717 echo "${as_me:-configure}:6717: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6721 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6722 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6723 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6725 echo "${as_me:-configure}:6725: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6729 { echo "$as_me:6729: WARNING: this system does not support versioned-symbols" >&5
6730 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6734 # Linux ld can selectively override scope, e.g., of symbols beginning with
6735 # "_" by first declaring some as global, and then using a wildcard to
6736 # declare the others as local. Some other loaders cannot do this. Check
6737 # by constructing a (very) simple shared library and inspecting its
6739 if test "x$VERSIONED_SYMS" != "x"
6741 echo "$as_me:6741: checking if wildcards can be used to selectively omit symbols" >&5
6742 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6748 cat >conftest.ver <<EOF
6777 cat >conftest.$ac_ext <<EOF
6778 #line 6778 "configure"
6779 int _ismissing(void) { return 1; }
6780 int _localf1(void) { return 1; }
6781 int _localf2(void) { return 2; }
6782 int globalf1(void) { return 1; }
6783 int globalf2(void) { return 2; }
6784 int _sublocalf1(void) { return 1; }
6785 int _sublocalf2(void) { return 2; }
6786 int subglobalf1(void) { return 1; }
6787 int subglobalf2(void) { return 2; }
6789 cat >conftest.mk <<EOF
6792 CPPFLAGS=${CPPFLAGS}
6795 VERSIONED_SYMS=${VERSIONED_SYMS}
6796 RESULTING_SYMS=conftest.ver
6797 MK_SHARED_LIB=${MK_SHARED_LIB}
6798 conftest.so: conftest.$ac_cv_objext
6799 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6802 # compile source, make library
6803 if make -f conftest.mk 2>&5 >/dev/null
6805 # test for missing symbol in either Data or Text section
6806 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6807 test -n "$cf_missing" && WILDCARD_SYMS=yes
6809 echo "$as_me:6809: result: $WILDCARD_SYMS" >&5
6810 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6819 # pretend that ncurses==ncursesw==ncursest
6820 echo "$as_me:6820: checking if you want to disable library suffixes" >&5
6821 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6823 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6824 if test "${enable_lib_suffixes+set}" = set; then
6825 enableval="$enable_lib_suffixes"
6826 test "$enableval" != no && enableval=yes
6827 if test "$enableval" != "yes" ; then
6828 disable_lib_suffixes=yes
6830 disable_lib_suffixes=no
6834 disable_lib_suffixes=no
6837 echo "$as_me:6837: result: $disable_lib_suffixes" >&5
6838 echo "${ECHO_T}$disable_lib_suffixes" >&6
6840 ### If we're building with rpath, try to link non-standard libs that way too.
6841 if test "$DFT_LWR_MODEL" = "shared"; then
6843 echo "$as_me:6843: checking if rpath-hack should be disabled" >&5
6844 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6846 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6847 if test "${enable_rpath_hack+set}" = set; then
6848 enableval="$enable_rpath_hack"
6849 test "$enableval" != no && enableval=yes
6850 if test "$enableval" != "yes" ; then
6851 cf_disable_rpath_hack=yes
6853 cf_disable_rpath_hack=no
6857 cf_disable_rpath_hack=no
6860 echo "$as_me:6860: result: $cf_disable_rpath_hack" >&5
6861 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6862 if test "$cf_disable_rpath_hack" = no ; then
6864 echo "$as_me:6864: checking for updated LDFLAGS" >&5
6865 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6866 if test -n "$LD_RPATH_OPT" ; then
6867 echo "$as_me:6867: result: maybe" >&5
6868 echo "${ECHO_T}maybe" >&6
6872 # Extract the first word of "$ac_prog", so it can be a program name with args.
6873 set dummy $ac_prog; ac_word=$2
6874 echo "$as_me:6874: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 if test -n "$cf_ldd_prog"; then
6880 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6882 ac_save_IFS=$IFS; IFS=$ac_path_separator
6884 for ac_dir in $ac_dummy; do
6886 test -z "$ac_dir" && ac_dir=.
6887 $as_executable_p "$ac_dir/$ac_word" || continue
6888 ac_cv_prog_cf_ldd_prog="$ac_prog"
6889 echo "$as_me:6889: found $ac_dir/$ac_word" >&5
6895 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6896 if test -n "$cf_ldd_prog"; then
6897 echo "$as_me:6897: result: $cf_ldd_prog" >&5
6898 echo "${ECHO_T}$cf_ldd_prog" >&6
6900 echo "$as_me:6900: result: no" >&5
6901 echo "${ECHO_T}no" >&6
6904 test -n "$cf_ldd_prog" && break
6906 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6908 cf_rpath_list="/usr/lib /lib"
6909 if test "$cf_ldd_prog" != no
6913 cat >conftest.$ac_ext <<_ACEOF
6914 #line 6914 "configure"
6915 #include "confdefs.h"
6925 rm -f conftest.$ac_objext conftest$ac_exeext
6926 if { (eval echo "$as_me:6926: \"$ac_link\"") >&5
6927 (eval $ac_link) 2>&5
6929 echo "$as_me:6929: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try='test -s conftest$ac_exeext'
6932 { (eval echo "$as_me:6932: \"$ac_try\"") >&5
6935 echo "$as_me:6935: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6938 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6940 echo "$as_me: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6945 # If we passed the link-test, but get a "not found" on a given library,
6946 # this could be due to inept reconfiguration of gcc to make it only
6947 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6948 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6949 # /usr/local libraries.
6950 if test -n "$cf_rpath_oops"
6952 for cf_rpath_src in $cf_rpath_oops
6954 for cf_rpath_dir in \
6959 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6961 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6963 echo "${as_me:-configure}:6963: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6965 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6973 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6975 echo "${as_me:-configure}:6975: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6977 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6979 echo "${as_me:-configure}:6979: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6982 for cf_rpath_src in $LDFLAGS
6984 case $cf_rpath_src in
6987 # check if this refers to a directory which we will ignore
6989 if test -n "$cf_rpath_list"
6991 for cf_rpath_item in $cf_rpath_list
6993 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7001 if test "$cf_rpath_skip" = no
7003 # transform the option
7004 if test "$LD_RPATH_OPT" = "-R " ; then
7005 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7007 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7010 # if we have not already added this, add it now
7011 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7012 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7014 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7016 echo "${as_me:-configure}:7016: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7018 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7023 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7025 LDFLAGS=$cf_rpath_dst
7027 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7029 echo "${as_me:-configure}:7029: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7031 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7033 echo "${as_me:-configure}:7033: testing ...checking LIBS $LIBS ..." 1>&5
7036 for cf_rpath_src in $LIBS
7038 case $cf_rpath_src in
7041 # check if this refers to a directory which we will ignore
7043 if test -n "$cf_rpath_list"
7045 for cf_rpath_item in $cf_rpath_list
7047 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7055 if test "$cf_rpath_skip" = no
7057 # transform the option
7058 if test "$LD_RPATH_OPT" = "-R " ; then
7059 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7061 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7064 # if we have not already added this, add it now
7065 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7066 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7068 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7070 echo "${as_me:-configure}:7070: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7072 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7077 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7081 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7083 echo "${as_me:-configure}:7083: testing ...checked LIBS $LIBS ..." 1>&5
7085 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7087 echo "${as_me:-configure}:7087: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7090 echo "$as_me:7090: result: no" >&5
7091 echo "${ECHO_T}no" >&6
7098 ###############################################################################
7100 ### use option --with-extra-suffix to append suffix to headers and libraries
7101 echo "$as_me:7101: checking if you wish to append extra suffix to header/library paths" >&5
7102 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7105 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7106 if test "${with_extra_suffix+set}" = set; then
7107 withval="$with_extra_suffix"
7112 EXTRA_SUFFIX=$cf_cv_abi_version
7115 EXTRA_SUFFIX=$withval
7120 echo "$as_me:7120: result: $EXTRA_SUFFIX" >&5
7121 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7123 ### use option --disable-overwrite to leave out the link to -lcurses
7124 echo "$as_me:7124: checking if you wish to install ncurses overwriting curses" >&5
7125 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7127 # Check whether --enable-overwrite or --disable-overwrite was given.
7128 if test "${enable_overwrite+set}" = set; then
7129 enableval="$enable_overwrite"
7130 with_overwrite=$enableval
7132 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7134 echo "$as_me:7134: result: $with_overwrite" >&5
7135 echo "${ECHO_T}$with_overwrite" >&6
7137 echo "$as_me:7137: checking if external terminfo-database is used" >&5
7138 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7140 # Check whether --enable-database or --disable-database was given.
7141 if test "${enable_database+set}" = set; then
7142 enableval="$enable_database"
7143 use_database=$enableval
7147 echo "$as_me:7147: result: $use_database" >&5
7148 echo "${ECHO_T}$use_database" >&6
7152 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7155 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7159 NCURSES_USE_DATABASE=0
7160 if test "$use_database" != no ; then
7161 NCURSES_USE_DATABASE=1
7163 echo "$as_me:7163: checking which terminfo source-file will be installed" >&5
7164 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7166 # Check whether --with-database or --without-database was given.
7167 if test "${with_database+set}" = set; then
7168 withval="$with_database"
7169 TERMINFO_SRC=$withval
7171 echo "$as_me:7171: result: $TERMINFO_SRC" >&5
7172 echo "${ECHO_T}$TERMINFO_SRC" >&6
7174 echo "$as_me:7174: checking whether to use hashed database instead of directory/tree" >&5
7175 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7177 # Check whether --with-hashed-db or --without-hashed-db was given.
7178 if test "${with_hashed_db+set}" = set; then
7179 withval="$with_hashed_db"
7184 echo "$as_me:7184: result: $with_hashed_db" >&5
7185 echo "${ECHO_T}$with_hashed_db" >&6
7190 echo "$as_me:7190: checking for list of fallback descriptions" >&5
7191 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7193 # Check whether --with-fallbacks or --without-fallbacks was given.
7194 if test "${with_fallbacks+set}" = set; then
7195 withval="$with_fallbacks"
7196 with_fallback=$withval
7200 echo "$as_me:7200: result: $with_fallback" >&5
7201 echo "${ECHO_T}$with_fallback" >&6
7202 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7204 echo "$as_me:7204: checking if you want modern xterm or antique" >&5
7205 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7207 # Check whether --with-xterm-new or --without-xterm-new was given.
7208 if test "${with_xterm_new+set}" = set; then
7209 withval="$with_xterm_new"
7210 with_xterm_new=$withval
7214 case $with_xterm_new in
7215 (no) with_xterm_new=xterm-old;;
7216 (*) with_xterm_new=xterm-new;;
7218 echo "$as_me:7218: result: $with_xterm_new" >&5
7219 echo "${ECHO_T}$with_xterm_new" >&6
7220 WHICH_XTERM=$with_xterm_new
7222 echo "$as_me:7222: checking if xterm backspace sends BS or DEL" >&5
7223 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7225 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7226 if test "${with_xterm_kbs+set}" = set; then
7227 withval="$with_xterm_kbs"
7228 with_xterm_kbs=$withval
7232 case x$with_xterm_kbs in
7233 (xyes|xno|xBS|xbs|x8)
7240 with_xterm_kbs=$withval
7243 echo "$as_me:7243: result: $with_xterm_kbs" >&5
7244 echo "${ECHO_T}$with_xterm_kbs" >&6
7245 XTERM_KBS=$with_xterm_kbs
7248 if test "$use_database" = no ; then
7249 TERMINFO="${datadir}/terminfo"
7253 echo "$as_me:7253: checking for list of terminfo directories" >&5
7254 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7256 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7257 if test "${with_terminfo_dirs+set}" = set; then
7258 withval="$with_terminfo_dirs"
7261 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7263 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7265 for cf_src_path in $withval
7268 if test "x$prefix" != xNONE; then
7269 cf_path_syntax="$prefix"
7271 cf_path_syntax="$ac_default_prefix"
7274 case ".$cf_src_path" in
7279 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7281 (.\${*prefix}*|.\${*dir}*)
7282 eval cf_src_path="$cf_src_path"
7283 case ".$cf_src_path" in
7285 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7290 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7293 { { echo "$as_me:7293: error: expected a pathname, not \"$cf_src_path\"" >&5
7294 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7295 { (exit 1); exit 1; }; }
7299 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7300 cf_dst_path="${cf_dst_path}${cf_src_path}"
7304 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7305 # so we have to check/work around. We do prefer the result of "eval"...
7306 eval cf_dst_eval="$cf_dst_path"
7307 case "x$cf_dst_eval" in
7309 TERMINFO_DIRS=$cf_dst_path
7312 TERMINFO_DIRS="$cf_dst_eval"
7316 echo "$as_me:7316: result: $TERMINFO_DIRS" >&5
7317 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7318 test -n "$TERMINFO_DIRS" &&
7319 cat >>confdefs.h <<EOF
7320 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7323 echo "$as_me:7323: checking for default terminfo directory" >&5
7324 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7326 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7327 if test "${with_default_terminfo_dir+set}" = set; then
7328 withval="$with_default_terminfo_dir"
7331 withval="${TERMINFO:-${datadir}/terminfo}"
7332 fi; if test -n "${datadir}/terminfo" ; then
7334 if test "x$prefix" != xNONE; then
7335 cf_path_syntax="$prefix"
7337 cf_path_syntax="$ac_default_prefix"
7345 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7347 (.\${*prefix}*|.\${*dir}*)
7348 eval withval="$withval"
7351 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7356 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7359 { { echo "$as_me:7359: error: expected a pathname, not \"$withval\"" >&5
7360 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7361 { (exit 1); exit 1; }; }
7366 eval TERMINFO="$withval"
7368 echo "$as_me:7368: result: $TERMINFO" >&5
7369 echo "${ECHO_T}$TERMINFO" >&6
7371 cat >>confdefs.h <<EOF
7372 #define TERMINFO "$TERMINFO"
7377 ### use option --disable-big-core to make tic run on small machines
7378 ### We need 4Mb, check if we can allocate 50% more than that.
7379 echo "$as_me:7379: checking if big-core option selected" >&5
7380 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7382 # Check whether --enable-big-core or --disable-big-core was given.
7383 if test "${enable_big_core+set}" = set; then
7384 enableval="$enable_big_core"
7385 with_big_core=$enableval
7387 if test "$cross_compiling" = yes; then
7390 cat >conftest.$ac_ext <<_ACEOF
7391 #line 7391 "configure"
7392 #include "confdefs.h"
7397 unsigned long n = 6000000L;
7398 char *s = malloc(n);
7401 ${cf_cv_main_return:-return}(s == 0);
7404 rm -f conftest$ac_exeext
7405 if { (eval echo "$as_me:7405: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7408 echo "$as_me:7408: \$? = $ac_status" >&5
7409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7410 { (eval echo "$as_me:7410: \"$ac_try\"") >&5
7413 echo "$as_me:7413: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7417 echo "$as_me: program exited with status $ac_status" >&5
7418 echo "$as_me: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7422 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7425 echo "$as_me:7425: result: $with_big_core" >&5
7426 echo "${ECHO_T}$with_big_core" >&6
7427 test "x$with_big_core" = "xyes" &&
7428 cat >>confdefs.h <<\EOF
7429 #define HAVE_BIG_CORE 1
7432 ### ISO C only guarantees 512-char strings, we have tables which load faster
7433 ### when constructed using "big" strings. More than the C compiler, the awk
7434 ### program is a limit on most vendor UNIX systems. Check that we can build.
7435 echo "$as_me:7435: checking if big-strings option selected" >&5
7436 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7438 # Check whether --enable-big-strings or --disable-big-strings was given.
7439 if test "${enable_big_strings+set}" = set; then
7440 enableval="$enable_big_strings"
7441 with_big_strings=$enableval
7446 eval with_big_strings=no
7449 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7450 | $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
7451 eval with_big_strings=yes
7453 eval with_big_strings=no
7459 echo "$as_me:7459: result: $with_big_strings" >&5
7460 echo "${ECHO_T}$with_big_strings" >&6
7463 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7465 ### use option --enable-termcap to compile in the termcap fallback support
7466 echo "$as_me:7466: checking if you want termcap-fallback support" >&5
7467 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7469 # Check whether --enable-termcap or --disable-termcap was given.
7470 if test "${enable_termcap+set}" = set; then
7471 enableval="$enable_termcap"
7472 with_termcap=$enableval
7476 echo "$as_me:7476: result: $with_termcap" >&5
7477 echo "${ECHO_T}$with_termcap" >&6
7479 NCURSES_USE_TERMCAP=0
7480 if test "x$with_termcap" != "xyes" ; then
7481 if test "$use_database" = no ; then
7482 if test -z "$with_fallback" ; then
7483 { { echo "$as_me:7483: error: You have disabled the database w/o specifying fallbacks" >&5
7484 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7485 { (exit 1); exit 1; }; }
7489 cat >>confdefs.h <<\EOF
7490 #define PURE_TERMINFO 1
7495 if test "$with_ticlib" != no ; then
7496 { { echo "$as_me:7496: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7497 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7498 { (exit 1); exit 1; }; }
7501 NCURSES_USE_TERMCAP=1
7502 echo "$as_me:7502: checking for list of termcap files" >&5
7503 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7505 # Check whether --with-termpath or --without-termpath was given.
7506 if test "${with_termpath+set}" = set; then
7507 withval="$with_termpath"
7510 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7512 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7514 for cf_src_path in $withval
7517 if test "x$prefix" != xNONE; then
7518 cf_path_syntax="$prefix"
7520 cf_path_syntax="$ac_default_prefix"
7523 case ".$cf_src_path" in
7528 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7530 (.\${*prefix}*|.\${*dir}*)
7531 eval cf_src_path="$cf_src_path"
7532 case ".$cf_src_path" in
7534 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7539 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7542 { { echo "$as_me:7542: error: expected a pathname, not \"$cf_src_path\"" >&5
7543 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7544 { (exit 1); exit 1; }; }
7548 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7549 cf_dst_path="${cf_dst_path}${cf_src_path}"
7553 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7554 # so we have to check/work around. We do prefer the result of "eval"...
7555 eval cf_dst_eval="$cf_dst_path"
7556 case "x$cf_dst_eval" in
7558 TERMPATH=$cf_dst_path
7561 TERMPATH="$cf_dst_eval"
7565 echo "$as_me:7565: result: $TERMPATH" >&5
7566 echo "${ECHO_T}$TERMPATH" >&6
7567 test -n "$TERMPATH" &&
7568 cat >>confdefs.h <<EOF
7569 #define TERMPATH "$TERMPATH"
7572 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7573 echo "$as_me:7573: checking if fast termcap-loader is needed" >&5
7574 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7576 # Check whether --enable-getcap or --disable-getcap was given.
7577 if test "${enable_getcap+set}" = set; then
7578 enableval="$enable_getcap"
7579 with_getcap=$enableval
7583 echo "$as_me:7583: result: $with_getcap" >&5
7584 echo "${ECHO_T}$with_getcap" >&6
7585 test "x$with_getcap" = "xyes" &&
7586 cat >>confdefs.h <<\EOF
7587 #define USE_GETCAP 1
7590 echo "$as_me:7590: checking if translated termcaps will be cached in ~/.terminfo" >&5
7591 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7593 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7594 if test "${enable_getcap_cache+set}" = set; then
7595 enableval="$enable_getcap_cache"
7596 with_getcap_cache=$enableval
7598 with_getcap_cache=no
7600 echo "$as_me:7600: result: $with_getcap_cache" >&5
7601 echo "${ECHO_T}$with_getcap_cache" >&6
7602 test "x$with_getcap_cache" = "xyes" &&
7603 cat >>confdefs.h <<\EOF
7604 #define USE_GETCAP_CACHE 1
7609 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7610 echo "$as_me:7610: checking if ~/.terminfo is wanted" >&5
7611 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7613 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7614 if test "${enable_home_terminfo+set}" = set; then
7615 enableval="$enable_home_terminfo"
7616 with_home_terminfo=$enableval
7618 with_home_terminfo=yes
7620 echo "$as_me:7620: result: $with_home_terminfo" >&5
7621 echo "${ECHO_T}$with_home_terminfo" >&6
7622 test "x$with_home_terminfo" = "xyes" &&
7623 cat >>confdefs.h <<\EOF
7624 #define USE_HOME_TERMINFO 1
7627 echo "$as_me:7627: checking if you want to use restricted environment when running as root" >&5
7628 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7630 # Check whether --enable-root-environ or --disable-root-environ was given.
7631 if test "${enable_root_environ+set}" = set; then
7632 enableval="$enable_root_environ"
7633 with_root_environ=$enableval
7635 with_root_environ=yes
7637 echo "$as_me:7637: result: $with_root_environ" >&5
7638 echo "${ECHO_T}$with_root_environ" >&6
7639 test "x$with_root_environ" = xyes &&
7640 cat >>confdefs.h <<\EOF
7641 #define USE_ROOT_ENVIRON 1
7644 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7645 ### to reduce storage requirements for the terminfo database.
7651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7652 echo "$as_me:7652: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7658 #line 7658 "configure"
7659 #include "confdefs.h"
7660 #include <$ac_header>
7662 if { (eval echo "$as_me:7662: \"$ac_cpp conftest.$ac_ext\"") >&5
7663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7665 egrep -v '^ *\+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 echo "$as_me:7668: \$? = $ac_status" >&5
7669 (exit $ac_status); } >/dev/null; then
7670 if test -s conftest.err; then
7671 ac_cpp_err=$ac_c_preproc_warn_flag
7678 if test -z "$ac_cpp_err"; then
7679 eval "$as_ac_Header=yes"
7681 echo "$as_me: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 eval "$as_ac_Header=no"
7685 rm -f conftest.err conftest.$ac_ext
7687 echo "$as_me:7687: result: `eval echo '${'$as_ac_Header'}'`" >&5
7688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7690 cat >>confdefs.h <<EOF
7691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7702 echo "$as_me:7702: checking for $ac_func" >&5
7703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7704 if eval "test \"\${$as_ac_var+set}\" = set"; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7708 #line 7708 "configure"
7709 #include "confdefs.h"
7710 /* System header to define __stub macros and hopefully few prototypes,
7711 which can conflict with char $ac_func (); below. */
7713 /* Override any gcc2 internal prototype to avoid an error. */
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7725 /* The GNU C library defines this for functions which it implements
7726 to always fail with ENOSYS. Some functions are actually named
7727 something starting with __ and the normal name is an alias. */
7728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7731 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (eval echo "$as_me:7739: \"$ac_link\"") >&5
7740 (eval $ac_link) 2>&5
7742 echo "$as_me:7742: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:7745: \"$ac_try\"") >&5
7748 echo "$as_me:7748: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 eval "$as_ac_var=yes"
7752 echo "$as_me: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 eval "$as_ac_var=no"
7756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 echo "$as_me:7758: result: `eval echo '${'$as_ac_var'}'`" >&5
7759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7760 if test `eval echo '${'$as_ac_var'}'` = yes; then
7761 cat >>confdefs.h <<EOF
7762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7768 if test "$cross_compiling" = yes ; then
7774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7775 echo "$as_me:7775: checking for $ac_func" >&5
7776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7777 if eval "test \"\${$as_ac_var+set}\" = set"; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 cat >conftest.$ac_ext <<_ACEOF
7781 #line 7781 "configure"
7782 #include "confdefs.h"
7783 /* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char $ac_func (); below. */
7786 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7798 /* The GNU C library defines this for functions which it implements
7799 to always fail with ENOSYS. Some functions are actually named
7800 something starting with __ and the normal name is an alias. */
7801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7804 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:7812: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>&5
7815 echo "$as_me:7815: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -s conftest$ac_exeext'
7818 { (eval echo "$as_me:7818: \"$ac_try\"") >&5
7821 echo "$as_me:7821: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 eval "$as_ac_var=yes"
7825 echo "$as_me: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 eval "$as_ac_var=no"
7829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7831 echo "$as_me:7831: result: `eval echo '${'$as_ac_var'}'`" >&5
7832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7833 if test `eval echo '${'$as_ac_var'}'` = yes; then
7834 cat >>confdefs.h <<EOF
7835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7842 echo "$as_me:7842: checking if link/symlink functions work" >&5
7843 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7844 if test "${cf_cv_link_funcs+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 for cf_func in link symlink ; do
7850 if test "$cross_compiling" = yes; then
7852 eval 'ac_cv_func_'$cf_func'=error'
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line 7855 "configure"
7856 #include "confdefs.h"
7858 #include <sys/types.h>
7859 #include <sys/stat.h>
7860 #ifdef HAVE_UNISTD_H
7866 char *src = "config.log";
7867 char *dst = "conftest.chk";
7872 fail = ($cf_func("config.log", "conftest.chk") < 0)
7873 || (stat(dst, &dst_sb) < 0)
7874 || (dst_sb.st_mtime != src_sb.st_mtime);
7880 ${cf_cv_main_return:-return} (fail);
7884 rm -f conftest$ac_exeext
7885 if { (eval echo "$as_me:7885: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7888 echo "$as_me:7888: \$? = $ac_status" >&5
7889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7890 { (eval echo "$as_me:7890: \"$ac_try\"") >&5
7893 echo "$as_me:7893: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7896 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7897 eval 'ac_cv_func_'$cf_func'=yes'
7899 echo "$as_me: program exited with status $ac_status" >&5
7900 echo "$as_me: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7903 eval 'ac_cv_func_'$cf_func'=no'
7905 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7908 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7911 echo "$as_me:7911: result: $cf_cv_link_funcs" >&5
7912 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7913 test "$ac_cv_func_link" = yes &&
7914 cat >>confdefs.h <<\EOF
7918 test "$ac_cv_func_symlink" = yes &&
7919 cat >>confdefs.h <<\EOF
7920 #define HAVE_SYMLINK 1
7928 # soft links (symbolic links) are useful for some systems where hard links do
7929 # not work, or to make it simpler to copy terminfo trees around.
7930 if test "x$ac_cv_func_symlink" = xyes ; then
7931 echo "$as_me:7931: checking if tic should use symbolic links" >&5
7932 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7934 # Check whether --enable-symlinks or --disable-symlinks was given.
7935 if test "${enable_symlinks+set}" = set; then
7936 enableval="$enable_symlinks"
7937 with_symlinks=$enableval
7941 echo "$as_me:7941: result: $with_symlinks" >&5
7942 echo "${ECHO_T}$with_symlinks" >&6
7945 # If we have hard links and did not choose to use soft links instead, there is
7946 # no reason to make this choice optional - use the hard links.
7947 if test "$with_symlinks" = no ; then
7948 echo "$as_me:7948: checking if tic should use hard links" >&5
7949 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7950 if test "x$ac_cv_func_link" = xyes ; then
7955 echo "$as_me:7955: result: $with_links" >&5
7956 echo "${ECHO_T}$with_links" >&6
7959 test "x$with_links" = xyes &&
7960 cat >>confdefs.h <<\EOF
7964 test "x$with_symlinks" = xyes &&
7965 cat >>confdefs.h <<\EOF
7966 #define USE_SYMLINKS 1
7969 ### use option --enable-broken-linker to force on use of broken-linker support
7970 echo "$as_me:7970: checking if you want broken-linker support code" >&5
7971 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7973 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7974 if test "${enable_broken_linker+set}" = set; then
7975 enableval="$enable_broken_linker"
7976 with_broken_linker=$enableval
7978 with_broken_linker=${BROKEN_LINKER:-no}
7980 echo "$as_me:7980: result: $with_broken_linker" >&5
7981 echo "${ECHO_T}$with_broken_linker" >&6
7984 if test "x$with_broken_linker" = xyes ; then
7986 cat >>confdefs.h <<\EOF
7987 #define BROKEN_LINKER 1
7991 elif test "$DFT_LWR_MODEL" = shared ; then
7992 case $cf_cv_system_name in
7995 cat >>confdefs.h <<\EOF
7996 #define BROKEN_LINKER 1
8000 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
8002 echo "${as_me:-configure}:8002: testing cygwin linker is broken anyway ..." 1>&5
8008 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
8009 echo "$as_me:8009: checking if tputs should process BSD-style prefix padding" >&5
8010 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
8012 # Check whether --enable-bsdpad or --disable-bsdpad was given.
8013 if test "${enable_bsdpad+set}" = set; then
8014 enableval="$enable_bsdpad"
8015 with_bsdpad=$enableval
8019 echo "$as_me:8019: result: $with_bsdpad" >&5
8020 echo "${ECHO_T}$with_bsdpad" >&6
8021 test "x$with_bsdpad" = xyes &&
8022 cat >>confdefs.h <<\EOF
8026 ### use option --enable-widec to turn on use of wide-character support
8035 # Check to define _XOPEN_SOURCE "automatically"
8036 CPPFLAGS_before_XOPEN="$CPPFLAGS"
8039 cf_POSIX_C_SOURCE=199506L
8044 cf_xopen_source="-D_ALL_SOURCE"
8050 cf_xopen_source="-D_APPLE_C_SOURCE"
8053 cf_xopen_source="-D_DARWIN_C_SOURCE"
8056 (freebsd*|dragonfly*)
8057 # 5.x headers associate
8058 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
8059 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
8060 cf_POSIX_C_SOURCE=200112L
8062 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8065 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
8068 cf_xopen_source="-D_HPUX_SOURCE"
8071 cf_xopen_source="-D_SGI_SOURCE"
8074 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
8076 echo "$as_me:8076: checking if we must define _GNU_SOURCE" >&5
8077 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
8078 if test "${cf_cv_gnu_source+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.$ac_ext <<_ACEOF
8083 #line 8083 "configure"
8084 #include "confdefs.h"
8085 #include <sys/types.h>
8090 #ifndef _XOPEN_SOURCE
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:8098: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>&5
8101 echo "$as_me:8101: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (eval echo "$as_me:8104: \"$ac_try\"") >&5
8107 echo "$as_me:8107: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8111 echo "$as_me: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8114 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8115 cat >conftest.$ac_ext <<_ACEOF
8116 #line 8116 "configure"
8117 #include "confdefs.h"
8118 #include <sys/types.h>
8123 #ifdef _XOPEN_SOURCE
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:8131: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>&5
8134 echo "$as_me:8134: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -s conftest.$ac_objext'
8137 { (eval echo "$as_me:8137: \"$ac_try\"") >&5
8140 echo "$as_me:8140: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8144 echo "$as_me: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8146 cf_cv_gnu_source=yes
8148 rm -f conftest.$ac_objext conftest.$ac_ext
8152 rm -f conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:8155: result: $cf_cv_gnu_source" >&5
8156 echo "${ECHO_T}$cf_cv_gnu_source" >&6
8158 if test "$cf_cv_gnu_source" = yes
8160 echo "$as_me:8160: checking if we should also define _DEFAULT_SOURCE" >&5
8161 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
8162 if test "${cf_cv_default_source+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8167 cat >conftest.$ac_ext <<_ACEOF
8168 #line 8168 "configure"
8169 #include "confdefs.h"
8170 #include <sys/types.h>
8175 #ifdef _DEFAULT_SOURCE
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:8183: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>&5
8186 echo "$as_me:8186: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:8189: \"$ac_try\"") >&5
8192 echo "$as_me:8192: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 cf_cv_default_source=no
8196 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 cf_cv_default_source=yes
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8203 echo "$as_me:8203: result: $cf_cv_default_source" >&5
8204 echo "${ECHO_T}$cf_cv_default_source" >&6
8205 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
8210 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
8213 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
8216 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8218 cf_save_CFLAGS="$CFLAGS"
8219 cf_save_CPPFLAGS="$CPPFLAGS"
8221 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8222 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8223 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8225 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8226 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8227 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8229 echo "$as_me:8229: checking if we should define _POSIX_C_SOURCE" >&5
8230 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8231 if test "${cf_cv_posix_c_source+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 echo "${as_me:-configure}:8235: testing if the symbol is already defined go no further ..." 1>&5
8237 cat >conftest.$ac_ext <<_ACEOF
8238 #line 8238 "configure"
8239 #include "confdefs.h"
8240 #include <sys/types.h>
8245 #ifndef _POSIX_C_SOURCE
8252 rm -f conftest.$ac_objext
8253 if { (eval echo "$as_me:8253: \"$ac_compile\"") >&5
8254 (eval $ac_compile) 2>&5
8256 echo "$as_me:8256: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:8259: \"$ac_try\"") >&5
8262 echo "$as_me:8262: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 cf_cv_posix_c_source=no
8266 echo "$as_me: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8268 cf_want_posix_source=no
8269 case .$cf_POSIX_C_SOURCE in
8271 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8274 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8275 cf_want_posix_source=yes
8278 cf_want_posix_source=yes
8281 if test "$cf_want_posix_source" = yes ; then
8282 cat >conftest.$ac_ext <<_ACEOF
8283 #line 8283 "configure"
8284 #include "confdefs.h"
8285 #include <sys/types.h>
8290 #ifdef _POSIX_SOURCE
8297 rm -f conftest.$ac_objext
8298 if { (eval echo "$as_me:8298: \"$ac_compile\"") >&5
8299 (eval $ac_compile) 2>&5
8301 echo "$as_me:8301: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (eval echo "$as_me:8304: \"$ac_try\"") >&5
8307 echo "$as_me:8307: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8311 echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8313 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8315 rm -f conftest.$ac_objext conftest.$ac_ext
8318 echo "${as_me:-configure}:8318: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8320 CFLAGS="$cf_trim_CFLAGS"
8321 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8323 echo "${as_me:-configure}:8323: testing if the second compile does not leave our definition intact error ..." 1>&5
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line 8326 "configure"
8327 #include "confdefs.h"
8328 #include <sys/types.h>
8333 #ifndef _POSIX_C_SOURCE
8340 rm -f conftest.$ac_objext
8341 if { (eval echo "$as_me:8341: \"$ac_compile\"") >&5
8342 (eval $ac_compile) 2>&5
8344 echo "$as_me:8344: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -s conftest.$ac_objext'
8347 { (eval echo "$as_me:8347: \"$ac_try\"") >&5
8350 echo "$as_me:8350: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8354 echo "$as_me: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8356 cf_cv_posix_c_source=no
8358 rm -f conftest.$ac_objext conftest.$ac_ext
8359 CFLAGS="$cf_save_CFLAGS"
8360 CPPFLAGS="$cf_save_CPPFLAGS"
8363 rm -f conftest.$ac_objext conftest.$ac_ext
8366 echo "$as_me:8366: result: $cf_cv_posix_c_source" >&5
8367 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8369 if test "$cf_cv_posix_c_source" != no ; then
8370 CFLAGS="$cf_trim_CFLAGS"
8371 CPPFLAGS="$cf_trim_CPPFLAGS"
8376 cf_new_extra_cppflags=
8378 for cf_add_cflags in $cf_cv_posix_c_source
8380 case $cf_fix_cppflags in
8382 case $cf_add_cflags in
8383 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8384 case $cf_add_cflags in
8386 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8388 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8389 && test -z "${cf_tst_cflags}" \
8390 && cf_fix_cppflags=yes
8392 if test $cf_fix_cppflags = yes ; then
8394 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8395 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8398 elif test "${cf_tst_cflags}" = "\"'" ; then
8400 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8401 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8411 case $cf_add_cflags in
8413 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8415 CPPFLAGS=`echo "$CPPFLAGS" | \
8416 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8417 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8422 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8423 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8430 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8431 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8438 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8439 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8441 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8443 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8444 && test -z "${cf_tst_cflags}" \
8445 && cf_fix_cppflags=no
8450 if test -n "$cf_new_cflags" ; then
8452 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8453 CFLAGS="${CFLAGS}$cf_new_cflags"
8457 if test -n "$cf_new_cppflags" ; then
8459 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8460 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8464 if test -n "$cf_new_extra_cppflags" ; then
8466 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8467 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8475 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8478 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8479 cf_xopen_source="-D_BSD_SOURCE"
8483 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8486 cf_xopen_source="-D_OSF_SOURCE"
8489 cf_xopen_source="-D_QNX_SOURCE"
8492 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8495 cf_xopen_source="-D__EXTENSIONS__"
8496 cf_cv_xopen_source=broken
8498 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8504 echo "$as_me:8504: checking if we should define _XOPEN_SOURCE" >&5
8505 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8506 if test "${cf_cv_xopen_source+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 cat >conftest.$ac_ext <<_ACEOF
8511 #line 8511 "configure"
8512 #include "confdefs.h"
8516 #include <sys/types.h>
8522 #ifndef _XOPEN_SOURCE
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:8530: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>&5
8533 echo "$as_me:8533: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -s conftest.$ac_objext'
8536 { (eval echo "$as_me:8536: \"$ac_try\"") >&5
8539 echo "$as_me:8539: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 cf_cv_xopen_source=no
8543 echo "$as_me: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8546 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8547 cat >conftest.$ac_ext <<_ACEOF
8548 #line 8548 "configure"
8549 #include "confdefs.h"
8553 #include <sys/types.h>
8559 #ifdef _XOPEN_SOURCE
8566 rm -f conftest.$ac_objext
8567 if { (eval echo "$as_me:8567: \"$ac_compile\"") >&5
8568 (eval $ac_compile) 2>&5
8570 echo "$as_me:8570: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -s conftest.$ac_objext'
8573 { (eval echo "$as_me:8573: \"$ac_try\"") >&5
8576 echo "$as_me:8576: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 cf_cv_xopen_source=no
8580 echo "$as_me: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8582 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8584 rm -f conftest.$ac_objext conftest.$ac_ext
8588 rm -f conftest.$ac_objext conftest.$ac_ext
8591 echo "$as_me:8591: result: $cf_cv_xopen_source" >&5
8592 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8594 if test "$cf_cv_xopen_source" != no ; then
8596 CFLAGS=`echo "$CFLAGS" | \
8597 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8598 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8600 CPPFLAGS=`echo "$CPPFLAGS" | \
8601 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8602 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8604 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8609 cf_new_extra_cppflags=
8611 for cf_add_cflags in $cf_temp_xopen_source
8613 case $cf_fix_cppflags in
8615 case $cf_add_cflags in
8616 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8617 case $cf_add_cflags in
8619 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8621 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8622 && test -z "${cf_tst_cflags}" \
8623 && cf_fix_cppflags=yes
8625 if test $cf_fix_cppflags = yes ; then
8627 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8628 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8631 elif test "${cf_tst_cflags}" = "\"'" ; then
8633 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8634 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8644 case $cf_add_cflags in
8646 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8648 CPPFLAGS=`echo "$CPPFLAGS" | \
8649 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8650 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8655 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8656 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8663 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8664 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8671 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8672 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8674 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8676 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8677 && test -z "${cf_tst_cflags}" \
8678 && cf_fix_cppflags=no
8683 if test -n "$cf_new_cflags" ; then
8685 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8686 CFLAGS="${CFLAGS}$cf_new_cflags"
8690 if test -n "$cf_new_cppflags" ; then
8692 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8693 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8697 if test -n "$cf_new_extra_cppflags" ; then
8699 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8700 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8706 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8708 cf_save_CFLAGS="$CFLAGS"
8709 cf_save_CPPFLAGS="$CPPFLAGS"
8711 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8712 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8713 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8715 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8716 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8717 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8719 echo "$as_me:8719: checking if we should define _POSIX_C_SOURCE" >&5
8720 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8721 if test "${cf_cv_posix_c_source+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 echo "${as_me:-configure}:8725: testing if the symbol is already defined go no further ..." 1>&5
8727 cat >conftest.$ac_ext <<_ACEOF
8728 #line 8728 "configure"
8729 #include "confdefs.h"
8730 #include <sys/types.h>
8735 #ifndef _POSIX_C_SOURCE
8742 rm -f conftest.$ac_objext
8743 if { (eval echo "$as_me:8743: \"$ac_compile\"") >&5
8744 (eval $ac_compile) 2>&5
8746 echo "$as_me:8746: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -s conftest.$ac_objext'
8749 { (eval echo "$as_me:8749: \"$ac_try\"") >&5
8752 echo "$as_me:8752: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 cf_cv_posix_c_source=no
8756 echo "$as_me: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 cf_want_posix_source=no
8759 case .$cf_POSIX_C_SOURCE in
8761 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8764 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8765 cf_want_posix_source=yes
8768 cf_want_posix_source=yes
8771 if test "$cf_want_posix_source" = yes ; then
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line 8773 "configure"
8774 #include "confdefs.h"
8775 #include <sys/types.h>
8780 #ifdef _POSIX_SOURCE
8787 rm -f conftest.$ac_objext
8788 if { (eval echo "$as_me:8788: \"$ac_compile\"") >&5
8789 (eval $ac_compile) 2>&5
8791 echo "$as_me:8791: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:8794: \"$ac_try\"") >&5
8797 echo "$as_me:8797: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8801 echo "$as_me: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8803 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8805 rm -f conftest.$ac_objext conftest.$ac_ext
8808 echo "${as_me:-configure}:8808: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8810 CFLAGS="$cf_trim_CFLAGS"
8811 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8813 echo "${as_me:-configure}:8813: testing if the second compile does not leave our definition intact error ..." 1>&5
8815 cat >conftest.$ac_ext <<_ACEOF
8816 #line 8816 "configure"
8817 #include "confdefs.h"
8818 #include <sys/types.h>
8823 #ifndef _POSIX_C_SOURCE
8830 rm -f conftest.$ac_objext
8831 if { (eval echo "$as_me:8831: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>&5
8834 echo "$as_me:8834: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -s conftest.$ac_objext'
8837 { (eval echo "$as_me:8837: \"$ac_try\"") >&5
8840 echo "$as_me:8840: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8844 echo "$as_me: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8846 cf_cv_posix_c_source=no
8848 rm -f conftest.$ac_objext conftest.$ac_ext
8849 CFLAGS="$cf_save_CFLAGS"
8850 CPPFLAGS="$cf_save_CPPFLAGS"
8853 rm -f conftest.$ac_objext conftest.$ac_ext
8856 echo "$as_me:8856: result: $cf_cv_posix_c_source" >&5
8857 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8859 if test "$cf_cv_posix_c_source" != no ; then
8860 CFLAGS="$cf_trim_CFLAGS"
8861 CPPFLAGS="$cf_trim_CPPFLAGS"
8866 cf_new_extra_cppflags=
8868 for cf_add_cflags in $cf_cv_posix_c_source
8870 case $cf_fix_cppflags in
8872 case $cf_add_cflags in
8873 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8874 case $cf_add_cflags in
8876 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8878 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8879 && test -z "${cf_tst_cflags}" \
8880 && cf_fix_cppflags=yes
8882 if test $cf_fix_cppflags = yes ; then
8884 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8885 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8888 elif test "${cf_tst_cflags}" = "\"'" ; then
8890 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8891 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8901 case $cf_add_cflags in
8903 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8905 CPPFLAGS=`echo "$CPPFLAGS" | \
8906 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8907 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8912 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8913 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8920 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8921 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8928 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8929 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8931 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8933 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8934 && test -z "${cf_tst_cflags}" \
8935 && cf_fix_cppflags=no
8940 if test -n "$cf_new_cflags" ; then
8942 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8943 CFLAGS="${CFLAGS}$cf_new_cflags"
8947 if test -n "$cf_new_cppflags" ; then
8949 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8950 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8954 if test -n "$cf_new_extra_cppflags" ; then
8956 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8957 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8966 if test -n "$cf_xopen_source" ; then
8971 cf_new_extra_cppflags=
8973 for cf_add_cflags in $cf_xopen_source
8975 case $cf_fix_cppflags in
8977 case $cf_add_cflags in
8978 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8979 case $cf_add_cflags in
8981 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8983 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8984 && test -z "${cf_tst_cflags}" \
8985 && cf_fix_cppflags=yes
8987 if test $cf_fix_cppflags = yes ; then
8989 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8990 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8993 elif test "${cf_tst_cflags}" = "\"'" ; then
8995 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8996 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9006 case $cf_add_cflags in
9008 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9010 CPPFLAGS=`echo "$CPPFLAGS" | \
9011 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9012 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9017 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9018 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9025 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9026 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9033 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9034 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9036 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9038 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9039 && test -z "${cf_tst_cflags}" \
9040 && cf_fix_cppflags=no
9045 if test -n "$cf_new_cflags" ; then
9046 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
9048 echo "${as_me:-configure}:9048: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
9050 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9051 CFLAGS="${CFLAGS}$cf_new_cflags"
9055 if test -n "$cf_new_cppflags" ; then
9056 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
9058 echo "${as_me:-configure}:9058: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
9060 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9061 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9065 if test -n "$cf_new_extra_cppflags" ; then
9066 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
9068 echo "${as_me:-configure}:9068: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
9070 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9071 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9077 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
9078 echo "$as_me:9078: checking if _XOPEN_SOURCE really is set" >&5
9079 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
9080 cat >conftest.$ac_ext <<_ACEOF
9081 #line 9081 "configure"
9082 #include "confdefs.h"
9088 #ifndef _XOPEN_SOURCE
9095 rm -f conftest.$ac_objext
9096 if { (eval echo "$as_me:9096: \"$ac_compile\"") >&5
9097 (eval $ac_compile) 2>&5
9099 echo "$as_me:9099: \$? = $ac_status" >&5
9100 (exit $ac_status); } &&
9101 { ac_try='test -s conftest.$ac_objext'
9102 { (eval echo "$as_me:9102: \"$ac_try\"") >&5
9105 echo "$as_me:9105: \$? = $ac_status" >&5
9106 (exit $ac_status); }; }; then
9107 cf_XOPEN_SOURCE_set=yes
9109 echo "$as_me: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 cf_XOPEN_SOURCE_set=no
9113 rm -f conftest.$ac_objext conftest.$ac_ext
9114 echo "$as_me:9114: result: $cf_XOPEN_SOURCE_set" >&5
9115 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
9116 if test $cf_XOPEN_SOURCE_set = yes
9118 cat >conftest.$ac_ext <<_ACEOF
9119 #line 9119 "configure"
9120 #include "confdefs.h"
9126 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
9133 rm -f conftest.$ac_objext
9134 if { (eval echo "$as_me:9134: \"$ac_compile\"") >&5
9135 (eval $ac_compile) 2>&5
9137 echo "$as_me:9137: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -s conftest.$ac_objext'
9140 { (eval echo "$as_me:9140: \"$ac_try\"") >&5
9143 echo "$as_me:9143: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 cf_XOPEN_SOURCE_set_ok=yes
9147 echo "$as_me: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9149 cf_XOPEN_SOURCE_set_ok=no
9151 rm -f conftest.$ac_objext conftest.$ac_ext
9152 if test $cf_XOPEN_SOURCE_set_ok = no
9154 { echo "$as_me:9154: WARNING: _XOPEN_SOURCE is lower than requested" >&5
9155 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
9159 echo "$as_me:9159: checking if we should define _XOPEN_SOURCE" >&5
9160 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
9161 if test "${cf_cv_xopen_source+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 cat >conftest.$ac_ext <<_ACEOF
9166 #line 9166 "configure"
9167 #include "confdefs.h"
9171 #include <sys/types.h>
9177 #ifndef _XOPEN_SOURCE
9184 rm -f conftest.$ac_objext
9185 if { (eval echo "$as_me:9185: \"$ac_compile\"") >&5
9186 (eval $ac_compile) 2>&5
9188 echo "$as_me:9188: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
9190 { ac_try='test -s conftest.$ac_objext'
9191 { (eval echo "$as_me:9191: \"$ac_try\"") >&5
9194 echo "$as_me:9194: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 cf_cv_xopen_source=no
9198 echo "$as_me: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9201 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line 9203 "configure"
9204 #include "confdefs.h"
9208 #include <sys/types.h>
9214 #ifdef _XOPEN_SOURCE
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:9222: \"$ac_compile\"") >&5
9223 (eval $ac_compile) 2>&5
9225 echo "$as_me:9225: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:9228: \"$ac_try\"") >&5
9231 echo "$as_me:9231: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 cf_cv_xopen_source=no
9235 echo "$as_me: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9237 cf_cv_xopen_source=$cf_XOPEN_SOURCE
9239 rm -f conftest.$ac_objext conftest.$ac_ext
9243 rm -f conftest.$ac_objext conftest.$ac_ext
9246 echo "$as_me:9246: result: $cf_cv_xopen_source" >&5
9247 echo "${ECHO_T}$cf_cv_xopen_source" >&6
9249 if test "$cf_cv_xopen_source" != no ; then
9251 CFLAGS=`echo "$CFLAGS" | \
9252 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9253 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9255 CPPFLAGS=`echo "$CPPFLAGS" | \
9256 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9257 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9259 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
9264 cf_new_extra_cppflags=
9266 for cf_add_cflags in $cf_temp_xopen_source
9268 case $cf_fix_cppflags in
9270 case $cf_add_cflags in
9271 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9272 case $cf_add_cflags in
9274 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9276 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9277 && test -z "${cf_tst_cflags}" \
9278 && cf_fix_cppflags=yes
9280 if test $cf_fix_cppflags = yes ; then
9282 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9283 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9286 elif test "${cf_tst_cflags}" = "\"'" ; then
9288 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9289 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9299 case $cf_add_cflags in
9301 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9303 CPPFLAGS=`echo "$CPPFLAGS" | \
9304 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9305 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9310 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9311 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9318 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9319 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9326 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9327 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9329 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9331 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9332 && test -z "${cf_tst_cflags}" \
9333 && cf_fix_cppflags=no
9338 if test -n "$cf_new_cflags" ; then
9340 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9341 CFLAGS="${CFLAGS}$cf_new_cflags"
9345 if test -n "$cf_new_cppflags" ; then
9347 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9348 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9352 if test -n "$cf_new_extra_cppflags" ; then
9354 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9355 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9364 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9366 # Work around breakage on OS X
9368 echo "$as_me:9368: checking if SIGWINCH is defined" >&5
9369 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9370 if test "${cf_cv_define_sigwinch+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line 9375 "configure"
9376 #include "confdefs.h"
9378 #include <sys/types.h>
9379 #include <sys/signal.h>
9389 rm -f conftest.$ac_objext
9390 if { (eval echo "$as_me:9390: \"$ac_compile\"") >&5
9391 (eval $ac_compile) 2>&5
9393 echo "$as_me:9393: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:9396: \"$ac_try\"") >&5
9399 echo "$as_me:9399: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 cf_cv_define_sigwinch=yes
9403 echo "$as_me: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line 9406 "configure"
9407 #include "confdefs.h"
9409 #undef _XOPEN_SOURCE
9410 #undef _POSIX_SOURCE
9411 #undef _POSIX_C_SOURCE
9412 #include <sys/types.h>
9413 #include <sys/signal.h>
9423 rm -f conftest.$ac_objext
9424 if { (eval echo "$as_me:9424: \"$ac_compile\"") >&5
9425 (eval $ac_compile) 2>&5
9427 echo "$as_me:9427: \$? = $ac_status" >&5
9428 (exit $ac_status); } &&
9429 { ac_try='test -s conftest.$ac_objext'
9430 { (eval echo "$as_me:9430: \"$ac_try\"") >&5
9433 echo "$as_me:9433: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 cf_cv_define_sigwinch=maybe
9437 echo "$as_me: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9439 cf_cv_define_sigwinch=no
9441 rm -f conftest.$ac_objext conftest.$ac_ext
9444 rm -f conftest.$ac_objext conftest.$ac_ext
9447 echo "$as_me:9447: result: $cf_cv_define_sigwinch" >&5
9448 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9450 if test "$cf_cv_define_sigwinch" = maybe ; then
9451 echo "$as_me:9451: checking for actual SIGWINCH definition" >&5
9452 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9453 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 cf_cv_fixup_sigwinch=unknown
9459 while test $cf_sigwinch != 1
9461 cat >conftest.$ac_ext <<_ACEOF
9462 #line 9462 "configure"
9463 #include "confdefs.h"
9465 #undef _XOPEN_SOURCE
9466 #undef _POSIX_SOURCE
9467 #undef _POSIX_C_SOURCE
9468 #include <sys/types.h>
9469 #include <sys/signal.h>
9475 #if SIGWINCH != $cf_sigwinch
9483 rm -f conftest.$ac_objext
9484 if { (eval echo "$as_me:9484: \"$ac_compile\"") >&5
9485 (eval $ac_compile) 2>&5
9487 echo "$as_me:9487: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:9490: \"$ac_try\"") >&5
9493 echo "$as_me:9493: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 cf_cv_fixup_sigwinch=$cf_sigwinch
9498 echo "$as_me: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9501 rm -f conftest.$ac_objext conftest.$ac_ext
9503 cf_sigwinch=`expr $cf_sigwinch - 1`
9507 echo "$as_me:9507: result: $cf_cv_fixup_sigwinch" >&5
9508 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9510 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9511 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9515 # Checks for CODESET support.
9517 echo "$as_me:9517: checking for nl_langinfo and CODESET" >&5
9518 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9519 if test "${am_cv_langinfo_codeset+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 cat >conftest.$ac_ext <<_ACEOF
9523 #line 9523 "configure"
9524 #include "confdefs.h"
9525 #include <langinfo.h>
9529 char* cs = nl_langinfo(CODESET);
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (eval echo "$as_me:9535: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9538 echo "$as_me:9538: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -s conftest$ac_exeext'
9541 { (eval echo "$as_me:9541: \"$ac_try\"") >&5
9544 echo "$as_me:9544: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 am_cv_langinfo_codeset=yes
9548 echo "$as_me: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9550 am_cv_langinfo_codeset=no
9552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9555 echo "$as_me:9555: result: $am_cv_langinfo_codeset" >&5
9556 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9557 if test $am_cv_langinfo_codeset = yes; then
9559 cat >>confdefs.h <<\EOF
9560 #define HAVE_LANGINFO_CODESET 1
9565 # use these variables to work around a defect in gcc's fixincludes.
9569 echo "$as_me:9569: checking if you want wide-character code" >&5
9570 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9572 # Check whether --enable-widec or --disable-widec was given.
9573 if test "${enable_widec+set}" = set; then
9574 enableval="$enable_widec"
9575 with_widec=$enableval
9579 echo "$as_me:9579: result: $with_widec" >&5
9580 echo "${ECHO_T}$with_widec" >&6
9582 NCURSES_WCWIDTH_GRAPHICS=1
9584 if test "x$with_widec" = xyes ; then
9585 if test "x$disable_lib_suffixes" = xno ; then
9586 LIB_SUFFIX="w${LIB_SUFFIX}"
9589 cat >>confdefs.h <<\EOF
9590 #define USE_WIDEC_SUPPORT 1
9593 cat >>confdefs.h <<\EOF
9594 #define NCURSES_WIDECHAR 1
9602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9603 echo "$as_me:9603: checking for $ac_header" >&5
9604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line 9609 "configure"
9610 #include "confdefs.h"
9611 #include <$ac_header>
9613 if { (eval echo "$as_me:9613: \"$ac_cpp conftest.$ac_ext\"") >&5
9614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9616 egrep -v '^ *\+' conftest.er1 >conftest.err
9618 cat conftest.err >&5
9619 echo "$as_me:9619: \$? = $ac_status" >&5
9620 (exit $ac_status); } >/dev/null; then
9621 if test -s conftest.err; then
9622 ac_cpp_err=$ac_c_preproc_warn_flag
9629 if test -z "$ac_cpp_err"; then
9630 eval "$as_ac_Header=yes"
9632 echo "$as_me: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9634 eval "$as_ac_Header=no"
9636 rm -f conftest.err conftest.$ac_ext
9638 echo "$as_me:9638: result: `eval echo '${'$as_ac_Header'}'`" >&5
9639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9641 cat >>confdefs.h <<EOF
9642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9648 echo "$as_me:9648: checking if wchar.h can be used as is" >&5
9649 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9650 if test "${cf_cv_wchar_h_okay+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line 9655 "configure"
9656 #include "confdefs.h"
9662 #ifdef HAVE_WCTYPE_H
9671 int bar = iswpunct(foo)
9676 rm -f conftest.$ac_objext
9677 if { (eval echo "$as_me:9677: \"$ac_compile\"") >&5
9678 (eval $ac_compile) 2>&5
9680 echo "$as_me:9680: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -s conftest.$ac_objext'
9683 { (eval echo "$as_me:9683: \"$ac_try\"") >&5
9686 echo "$as_me:9686: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 cf_cv_wchar_h_okay=yes
9690 echo "$as_me: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9692 cf_cv_wchar_h_okay=no
9694 rm -f conftest.$ac_objext conftest.$ac_ext
9696 echo "$as_me:9696: result: $cf_cv_wchar_h_okay" >&5
9697 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9699 if test $cf_cv_wchar_h_okay = no
9702 echo "$as_me:9702: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9703 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9704 cat >conftest.$ac_ext <<_ACEOF
9705 #line 9705 "configure"
9706 #include "confdefs.h"
9707 #include <sys/types.h>
9713 #ifndef _XOPEN_SOURCE_EXTENDED
9720 rm -f conftest.$ac_objext
9721 if { (eval echo "$as_me:9721: \"$ac_compile\"") >&5
9722 (eval $ac_compile) 2>&5
9724 echo "$as_me:9724: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -s conftest.$ac_objext'
9727 { (eval echo "$as_me:9727: \"$ac_try\"") >&5
9730 echo "$as_me:9730: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9734 echo "$as_me: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9738 rm -f conftest.$ac_objext conftest.$ac_ext
9739 echo "$as_me:9739: result: $cf_result" >&5
9740 echo "${ECHO_T}$cf_result" >&6
9742 if test "$cf_result" = yes ; then
9743 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9744 elif test "x" != "x" ; then
9745 echo "$as_me:9745: checking checking for compatible value versus " >&5
9746 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9747 cat >conftest.$ac_ext <<_ACEOF
9748 #line 9748 "configure"
9749 #include "confdefs.h"
9750 #include <sys/types.h>
9756 #if _XOPEN_SOURCE_EXTENDED- < 0
9763 rm -f conftest.$ac_objext
9764 if { (eval echo "$as_me:9764: \"$ac_compile\"") >&5
9765 (eval $ac_compile) 2>&5
9767 echo "$as_me:9767: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -s conftest.$ac_objext'
9770 { (eval echo "$as_me:9770: \"$ac_try\"") >&5
9773 echo "$as_me:9773: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9777 echo "$as_me: failed program was:" >&5
9778 cat conftest.$ac_ext >&5
9781 rm -f conftest.$ac_objext conftest.$ac_ext
9782 echo "$as_me:9782: result: $cf_result" >&5
9783 echo "${ECHO_T}$cf_result" >&6
9784 if test "$cf_result" = no ; then
9785 # perhaps we can override it - try...
9786 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9792 echo "$as_me:9792: checking if wcwidth agrees graphics are single-width" >&5
9793 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
9794 if test "${cf_cv_wcwidth_graphics+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.in <<CF_EOF
9800 0x250c upper left corner
9801 0x2514 lower left corner
9802 0x2510 upper right corner
9803 0x2518 lower right corner
9804 0x251c tee pointing left
9805 0x2524 tee pointing right
9806 0x2534 tee pointing up
9807 0x252c tee pointing down
9808 0x2500 horizontal line
9809 0x2502 vertical line
9810 0x253c large plus or crossover
9814 0x2592 checker board (stipple)
9815 0x00b0 degree symbol
9818 - Teletype 5410v1 symbols
9819 0x2190 arrow pointing left
9820 0x2192 arrow pointing right
9821 0x2193 arrow pointing down
9822 0x2191 arrow pointing up
9823 0x2592 board of squares
9824 0x2603 lantern symbol
9825 0x25ae solid square block
9826 - these defaults were invented for ncurses
9829 0x2264 less-than-or-equal-to
9830 0x2265 greater-than-or-equal-to
9833 0x00a3 pound-sterling symbol
9834 - thick-line-drawing
9835 0x250f upper left corner
9836 0x2517 lower left corner
9837 0x2513 upper right corner
9838 0x251b lower right corner
9839 0x2523 tee pointing left
9840 0x252b tee pointing right
9841 0x253b tee pointing up
9842 0x2533 tee pointing down
9843 0x2501 horizontal line
9844 0x2503 vertical line
9845 0x254b large plus or crossover
9846 - double-line-drawing
9847 0x2554 upper left corner
9848 0x255a lower left corner
9849 0x2557 upper right corner
9850 0x255d lower right corner
9851 0x2563 tee pointing left
9852 0x2560 tee pointing right
9853 0x2569 tee pointing up
9854 0x2566 tee pointing down
9855 0x2550 horizontal line
9856 0x2551 vertical line
9857 0x256c large plus or crossover
9859 if test "$cross_compiling" = yes; then
9860 cf_cv_wcwidth_graphics=unknown
9862 cat >conftest.$ac_ext <<_ACEOF
9863 #line 9863 "configure"
9864 #include "confdefs.h"
9877 char buffer[MY_LEN + 1];
9878 char notes[MY_LEN + 1];
9882 if (setlocale(LC_ALL, "en_US.UTF8") ||
9883 setlocale(LC_ALL, "en_US.UTF-8") ||
9884 setlocale(LC_ALL, "en_US.utf8") ||
9885 setlocale(LC_ALL, "en_US.utf-8")) {
9886 if ((fp = fopen("conftest.in", "r")) != 0) {
9887 while (fgets(buffer, MY_LEN, fp) != 0) {
9888 if (*buffer == '-') {
9889 fprintf(stderr, "\t%s", buffer);
9890 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
9892 if (wcwidth(value) == 1)
9894 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
9896 fprintf(stderr, "?\t%s", buffer);
9901 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
9902 return (totals == passed) ? 0 : 1;
9906 rm -f conftest$ac_exeext
9907 if { (eval echo "$as_me:9907: \"$ac_link\"") >&5
9908 (eval $ac_link) 2>&5
9910 echo "$as_me:9910: \$? = $ac_status" >&5
9911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9912 { (eval echo "$as_me:9912: \"$ac_try\"") >&5
9915 echo "$as_me:9915: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 cf_cv_wcwidth_graphics=yes
9919 echo "$as_me: program exited with status $ac_status" >&5
9920 echo "$as_me: failed program was:" >&5
9921 cat conftest.$ac_ext >&5
9922 cf_cv_wcwidth_graphics=no
9924 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9928 echo "$as_me:9928: result: $cf_cv_wcwidth_graphics" >&5
9929 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
9931 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
9934 NCURSES_CH_T=cchar_t
9936 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939 echo "$as_me:9939: checking for $ac_func" >&5
9940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9941 if eval "test \"\${$as_ac_var+set}\" = set"; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 cat >conftest.$ac_ext <<_ACEOF
9945 #line 9945 "configure"
9946 #include "confdefs.h"
9947 /* System header to define __stub macros and hopefully few prototypes,
9948 which can conflict with char $ac_func (); below. */
9950 /* Override any gcc2 internal prototype to avoid an error. */
9954 /* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */
9962 /* The GNU C library defines this for functions which it implements
9963 to always fail with ENOSYS. Some functions are actually named
9964 something starting with __ and the normal name is an alias. */
9965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9968 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (eval echo "$as_me:9976: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>&5
9979 echo "$as_me:9979: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -s conftest$ac_exeext'
9982 { (eval echo "$as_me:9982: \"$ac_try\"") >&5
9985 echo "$as_me:9985: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 eval "$as_ac_var=yes"
9989 echo "$as_me: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 eval "$as_ac_var=no"
9993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9995 echo "$as_me:9995: result: `eval echo '${'$as_ac_var'}'`" >&5
9996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9997 if test `eval echo '${'$as_ac_var'}'` = yes; then
9998 cat >>confdefs.h <<EOF
9999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10005 if test "x$ac_cv_func_putwc" != xyes ; then
10007 echo "$as_me:10007: checking for multibyte character support" >&5
10008 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
10009 if test "${cf_cv_utf8_lib+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 cf_save_LIBS="$LIBS"
10014 cat >conftest.$ac_ext <<_ACEOF
10015 #line 10015 "configure"
10016 #include "confdefs.h"
10018 #include <stdlib.h>
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (eval echo "$as_me:10028: \"$ac_link\"") >&5
10029 (eval $ac_link) 2>&5
10031 echo "$as_me:10031: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:10034: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:10037: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10041 echo "$as_me: failed program was:" >&5
10042 cat conftest.$ac_ext >&5
10044 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
10045 # will be set on completion of the AC_TRY_LINK below.
10046 cf_cv_header_path_utf8=
10047 cf_cv_library_path_utf8=
10049 echo "${as_me:-configure}:10049: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
10051 cf_save_LIBS="$LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10054 #line 10054 "configure"
10055 #include "confdefs.h"
10057 #include <libutf8.h>
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (eval echo "$as_me:10067: \"$ac_link\"") >&5
10068 (eval $ac_link) 2>&5
10070 echo "$as_me:10070: \$? = $ac_status" >&5
10071 (exit $ac_status); } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (eval echo "$as_me:10073: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:10076: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10079 cf_cv_find_linkage_utf8=yes
10080 cf_cv_header_path_utf8=/usr/include
10081 cf_cv_library_path_utf8=/usr/lib
10084 echo "$as_me: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10087 LIBS="-lutf8 $cf_save_LIBS"
10089 cat >conftest.$ac_ext <<_ACEOF
10090 #line 10090 "configure"
10091 #include "confdefs.h"
10093 #include <libutf8.h>
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (eval echo "$as_me:10103: \"$ac_link\"") >&5
10104 (eval $ac_link) 2>&5
10106 echo "$as_me:10106: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (eval echo "$as_me:10109: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:10112: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10115 cf_cv_find_linkage_utf8=yes
10116 cf_cv_header_path_utf8=/usr/include
10117 cf_cv_library_path_utf8=/usr/lib
10118 cf_cv_library_file_utf8="-lutf8"
10121 echo "$as_me: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10124 cf_cv_find_linkage_utf8=no
10125 LIBS="$cf_save_LIBS"
10127 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
10129 echo "${as_me:-configure}:10129: testing find linkage for utf8 library ..." 1>&5
10131 echo "${as_me:-configure}:10131: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
10133 cf_save_CPPFLAGS="$CPPFLAGS"
10134 cf_test_CPPFLAGS="$CPPFLAGS"
10138 # collect the current set of include-directories from compiler flags
10139 cf_header_path_list=""
10140 if test -n "${CFLAGS}${CPPFLAGS}" ; then
10141 for cf_header_path in $CPPFLAGS $CFLAGS
10143 case $cf_header_path in
10145 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
10147 test "x$cf_header_path" != "xNONE" && \
10148 test -d "$cf_header_path" && \
10150 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
10151 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
10152 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
10153 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
10154 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
10155 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
10158 cf_header_path_list="$cf_header_path_list $cf_search"
10164 # add the variations for the package we are looking for
10168 test "x$prefix" != "xNONE" && \
10169 test -d "$prefix" && \
10171 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
10172 test -d $prefix/include && cf_search="$cf_search $prefix/include"
10173 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
10174 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
10175 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
10176 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
10179 for cf_subdir_prefix in \
10188 test "x$cf_subdir_prefix" != "x$prefix" && \
10189 test -d "$cf_subdir_prefix" && \
10190 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10191 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
10192 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
10193 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
10194 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
10195 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
10196 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
10201 test "$includedir" != NONE && \
10202 test "$includedir" != "/usr/include" && \
10203 test -d "$includedir" && {
10204 test -d $includedir && cf_search="$cf_search $includedir"
10205 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
10208 test "$oldincludedir" != NONE && \
10209 test "$oldincludedir" != "/usr/include" && \
10210 test -d "$oldincludedir" && {
10211 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
10212 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
10215 cf_search="$cf_search $cf_header_path_list"
10217 for cf_cv_header_path_utf8 in $cf_search
10219 if test -d $cf_cv_header_path_utf8 ; then
10220 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
10222 echo "${as_me:-configure}:10222: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
10224 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
10225 cat >conftest.$ac_ext <<_ACEOF
10226 #line 10226 "configure"
10227 #include "confdefs.h"
10229 #include <libutf8.h>
10238 rm -f conftest.$ac_objext
10239 if { (eval echo "$as_me:10239: \"$ac_compile\"") >&5
10240 (eval $ac_compile) 2>&5
10242 echo "$as_me:10242: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -s conftest.$ac_objext'
10245 { (eval echo "$as_me:10245: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:10248: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10251 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
10253 echo "${as_me:-configure}:10253: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
10255 cf_cv_find_linkage_utf8=maybe
10256 cf_test_CPPFLAGS="$CPPFLAGS"
10259 echo "$as_me: failed program was:" >&5
10260 cat conftest.$ac_ext >&5
10262 CPPFLAGS="$cf_save_CPPFLAGS"
10265 rm -f conftest.$ac_objext conftest.$ac_ext
10269 if test "$cf_cv_find_linkage_utf8" = maybe ; then
10271 echo "${as_me:-configure}:10271: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
10273 cf_save_LIBS="$LIBS"
10274 cf_save_LDFLAGS="$LDFLAGS"
10276 if test "$cf_cv_find_linkage_utf8" != yes ; then
10279 cf_library_path_list=""
10280 if test -n "${LDFLAGS}${LIBS}" ; then
10281 for cf_library_path in $LDFLAGS $LIBS
10283 case $cf_library_path in
10285 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10287 test "x$cf_library_path" != "xNONE" && \
10288 test -d "$cf_library_path" && \
10290 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10291 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
10292 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
10293 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
10294 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
10295 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
10298 cf_library_path_list="$cf_library_path_list $cf_search"
10306 test "x$prefix" != "xNONE" && \
10307 test -d "$prefix" && \
10309 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10310 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
10311 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
10312 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
10313 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
10314 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
10317 for cf_subdir_prefix in \
10326 test "x$cf_subdir_prefix" != "x$prefix" && \
10327 test -d "$cf_subdir_prefix" && \
10328 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10329 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10330 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
10331 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
10332 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
10333 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
10334 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
10339 cf_search="$cf_library_path_list $cf_search"
10341 for cf_cv_library_path_utf8 in $cf_search
10343 if test -d $cf_cv_library_path_utf8 ; then
10344 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
10346 echo "${as_me:-configure}:10346: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
10348 CPPFLAGS="$cf_test_CPPFLAGS"
10349 LIBS="-lutf8 $cf_save_LIBS"
10350 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
10351 cat >conftest.$ac_ext <<_ACEOF
10352 #line 10352 "configure"
10353 #include "confdefs.h"
10355 #include <libutf8.h>
10364 rm -f conftest.$ac_objext conftest$ac_exeext
10365 if { (eval echo "$as_me:10365: \"$ac_link\"") >&5
10366 (eval $ac_link) 2>&5
10368 echo "$as_me:10368: \$? = $ac_status" >&5
10369 (exit $ac_status); } &&
10370 { ac_try='test -s conftest$ac_exeext'
10371 { (eval echo "$as_me:10371: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10374 echo "$as_me:10374: \$? = $ac_status" >&5
10375 (exit $ac_status); }; }; then
10377 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
10379 echo "${as_me:-configure}:10379: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
10381 cf_cv_find_linkage_utf8=yes
10382 cf_cv_library_file_utf8="-lutf8"
10385 echo "$as_me: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10388 CPPFLAGS="$cf_save_CPPFLAGS"
10389 LIBS="$cf_save_LIBS"
10390 LDFLAGS="$cf_save_LDFLAGS"
10393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10396 CPPFLAGS="$cf_save_CPPFLAGS"
10397 LDFLAGS="$cf_save_LDFLAGS"
10401 cf_cv_find_linkage_utf8=no
10405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10410 LIBS="$cf_save_LIBS"
10412 if test "$cf_cv_find_linkage_utf8" = yes ; then
10413 cf_cv_utf8_lib=add-on
10419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10421 echo "$as_me:10421: result: $cf_cv_utf8_lib" >&5
10422 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
10424 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
10425 # ncurses/ncursesw:
10426 if test "$cf_cv_utf8_lib" = "add-on" ; then
10428 cat >>confdefs.h <<\EOF
10429 #define HAVE_LIBUTF8_H 1
10432 if test -n "$cf_cv_header_path_utf8" ; then
10433 for cf_add_incdir in $cf_cv_header_path_utf8
10435 while test $cf_add_incdir != /usr/include
10437 if test -d $cf_add_incdir
10440 if test -n "$CFLAGS$CPPFLAGS" ; then
10441 # a loop is needed to ensure we can add subdirs of existing dirs
10442 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10443 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10444 cf_have_incdir=yes; break
10449 if test "$cf_have_incdir" = no ; then
10450 if test "$cf_add_incdir" = /usr/local/include ; then
10451 if test "$GCC" = yes
10453 cf_save_CPPFLAGS=$CPPFLAGS
10454 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10455 cat >conftest.$ac_ext <<_ACEOF
10456 #line 10456 "configure"
10457 #include "confdefs.h"
10467 rm -f conftest.$ac_objext
10468 if { (eval echo "$as_me:10468: \"$ac_compile\"") >&5
10469 (eval $ac_compile) 2>&5
10471 echo "$as_me:10471: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -s conftest.$ac_objext'
10474 { (eval echo "$as_me:10474: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10477 echo "$as_me:10477: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }; then
10481 echo "$as_me: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10485 rm -f conftest.$ac_objext conftest.$ac_ext
10486 CPPFLAGS=$cf_save_CPPFLAGS
10491 if test "$cf_have_incdir" = no ; then
10492 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10494 echo "${as_me:-configure}:10494: testing adding $cf_add_incdir to include-path ..." 1>&5
10496 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10498 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10499 test "$cf_top_incdir" = "$cf_add_incdir" && break
10500 cf_add_incdir="$cf_top_incdir"
10511 if test -n "$cf_cv_library_path_utf8" ; then
10512 for cf_add_libdir in $cf_cv_library_path_utf8
10514 if test $cf_add_libdir = /usr/lib ; then
10516 elif test -d $cf_add_libdir
10519 if test -n "$LDFLAGS$LIBS" ; then
10520 # a loop is needed to ensure we can add subdirs of existing dirs
10521 for cf_test_libdir in $LDFLAGS $LIBS ; do
10522 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
10523 cf_have_libdir=yes; break
10527 if test "$cf_have_libdir" = no ; then
10528 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
10530 echo "${as_me:-configure}:10530: testing adding $cf_add_libdir to library-path ..." 1>&5
10532 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10538 cf_add_libs="$cf_cv_library_file_utf8"
10539 # Filter out duplicates - this happens with badly-designed ".pc" files...
10540 for cf_add_1lib in $LIBS
10542 for cf_add_2lib in $cf_add_libs
10544 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10550 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10552 LIBS="$cf_add_libs"
10556 if test "$cf_cv_utf8_lib" != no ; then
10561 # This is needed on Tru64 5.0 to declare mbstate_t
10562 echo "$as_me:10562: checking if we must include wchar.h to declare mbstate_t" >&5
10563 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10564 if test "${cf_cv_mbstate_t+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 cat >conftest.$ac_ext <<_ACEOF
10569 #line 10569 "configure"
10570 #include "confdefs.h"
10572 #include <stdlib.h>
10573 #include <stdarg.h>
10575 #ifdef HAVE_LIBUTF8_H
10576 #include <libutf8.h>
10586 rm -f conftest.$ac_objext
10587 if { (eval echo "$as_me:10587: \"$ac_compile\"") >&5
10588 (eval $ac_compile) 2>&5
10590 echo "$as_me:10590: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (eval echo "$as_me:10593: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:10596: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10600 echo "$as_me: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10602 cat >conftest.$ac_ext <<_ACEOF
10603 #line 10603 "configure"
10604 #include "confdefs.h"
10606 #include <stdlib.h>
10607 #include <stdarg.h>
10610 #ifdef HAVE_LIBUTF8_H
10611 #include <libutf8.h>
10621 rm -f conftest.$ac_objext
10622 if { (eval echo "$as_me:10622: \"$ac_compile\"") >&5
10623 (eval $ac_compile) 2>&5
10625 echo "$as_me:10625: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -s conftest.$ac_objext'
10628 { (eval echo "$as_me:10628: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10631 echo "$as_me:10631: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 cf_cv_mbstate_t=yes
10635 echo "$as_me: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10637 cf_cv_mbstate_t=unknown
10639 rm -f conftest.$ac_objext conftest.$ac_ext
10641 rm -f conftest.$ac_objext conftest.$ac_ext
10643 echo "$as_me:10643: result: $cf_cv_mbstate_t" >&5
10644 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10646 if test "$cf_cv_mbstate_t" = yes ; then
10648 cat >>confdefs.h <<\EOF
10649 #define NEED_WCHAR_H 1
10655 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10656 if test "$cf_cv_mbstate_t" = unknown ; then
10657 NCURSES_MBSTATE_T=1
10660 # This is needed on Tru64 5.0 to declare wchar_t
10661 echo "$as_me:10661: checking if we must include wchar.h to declare wchar_t" >&5
10662 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10663 if test "${cf_cv_wchar_t+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 cat >conftest.$ac_ext <<_ACEOF
10668 #line 10668 "configure"
10669 #include "confdefs.h"
10671 #include <stdlib.h>
10672 #include <stdarg.h>
10674 #ifdef HAVE_LIBUTF8_H
10675 #include <libutf8.h>
10685 rm -f conftest.$ac_objext
10686 if { (eval echo "$as_me:10686: \"$ac_compile\"") >&5
10687 (eval $ac_compile) 2>&5
10689 echo "$as_me:10689: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -s conftest.$ac_objext'
10692 { (eval echo "$as_me:10692: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10695 echo "$as_me:10695: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10699 echo "$as_me: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 cat >conftest.$ac_ext <<_ACEOF
10702 #line 10702 "configure"
10703 #include "confdefs.h"
10705 #include <stdlib.h>
10706 #include <stdarg.h>
10709 #ifdef HAVE_LIBUTF8_H
10710 #include <libutf8.h>
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:10721: \"$ac_compile\"") >&5
10722 (eval $ac_compile) 2>&5
10724 echo "$as_me:10724: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:10727: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:10730: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10734 echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 cf_cv_wchar_t=unknown
10738 rm -f conftest.$ac_objext conftest.$ac_ext
10740 rm -f conftest.$ac_objext conftest.$ac_ext
10742 echo "$as_me:10742: result: $cf_cv_wchar_t" >&5
10743 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10745 if test "$cf_cv_wchar_t" = yes ; then
10747 cat >>confdefs.h <<\EOF
10748 #define NEED_WCHAR_H 1
10754 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10755 if test "$cf_cv_wchar_t" = unknown ; then
10759 # if we find wchar_t in either place, use substitution to provide a fallback.
10760 if test "$cf_cv_wchar_t" != unknown ; then
10761 NCURSES_OK_WCHAR_T=1
10764 # This is needed on Tru64 5.0 to declare wint_t
10765 echo "$as_me:10765: checking if we must include wchar.h to declare wint_t" >&5
10766 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10767 if test "${cf_cv_wint_t+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 cat >conftest.$ac_ext <<_ACEOF
10772 #line 10772 "configure"
10773 #include "confdefs.h"
10775 #include <stdlib.h>
10776 #include <stdarg.h>
10778 #ifdef HAVE_LIBUTF8_H
10779 #include <libutf8.h>
10789 rm -f conftest.$ac_objext
10790 if { (eval echo "$as_me:10790: \"$ac_compile\"") >&5
10791 (eval $ac_compile) 2>&5
10793 echo "$as_me:10793: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -s conftest.$ac_objext'
10796 { (eval echo "$as_me:10796: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10799 echo "$as_me:10799: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10803 echo "$as_me: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10805 cat >conftest.$ac_ext <<_ACEOF
10806 #line 10806 "configure"
10807 #include "confdefs.h"
10809 #include <stdlib.h>
10810 #include <stdarg.h>
10813 #ifdef HAVE_LIBUTF8_H
10814 #include <libutf8.h>
10824 rm -f conftest.$ac_objext
10825 if { (eval echo "$as_me:10825: \"$ac_compile\"") >&5
10826 (eval $ac_compile) 2>&5
10828 echo "$as_me:10828: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
10830 { ac_try='test -s conftest.$ac_objext'
10831 { (eval echo "$as_me:10831: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:10834: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10838 echo "$as_me: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10840 cf_cv_wint_t=unknown
10842 rm -f conftest.$ac_objext conftest.$ac_ext
10844 rm -f conftest.$ac_objext conftest.$ac_ext
10846 echo "$as_me:10846: result: $cf_cv_wint_t" >&5
10847 echo "${ECHO_T}$cf_cv_wint_t" >&6
10849 if test "$cf_cv_wint_t" = yes ; then
10851 cat >>confdefs.h <<\EOF
10852 #define NEED_WCHAR_H 1
10858 # if we do not find wint_t in either place, use substitution to provide a fallback.
10859 if test "$cf_cv_wint_t" = unknown ; then
10863 # if we find wint_t in either place, use substitution to provide a fallback.
10864 if test "$cf_cv_wint_t" != unknown ; then
10865 NCURSES_OK_WINT_T=1
10868 if test "$NCURSES_MBSTATE_T" != 0; then
10870 cat >>confdefs.h <<\EOF
10871 #define NEED_MBSTATE_T_DEF 1
10877 ### use option --disable-lp64 to allow long chtype
10878 echo "$as_me:10878: checking whether to enable _LP64 definition in curses.h" >&5
10879 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10881 # Check whether --enable-lp64 or --disable-lp64 was given.
10882 if test "${enable_lp64+set}" = set; then
10883 enableval="$enable_lp64"
10884 with_lp64=$enableval
10886 with_lp64=$cf_dft_with_lp64
10888 echo "$as_me:10888: result: $with_lp64" >&5
10889 echo "${ECHO_T}$with_lp64" >&6
10891 if test "x$with_lp64" = xyes ; then
10892 cf_cv_enable_lp64=1
10894 cf_cv_enable_lp64=0
10897 # Check whether --enable-largefile or --disable-largefile was given.
10898 if test "${enable_largefile+set}" = set; then
10899 enableval="$enable_largefile"
10902 if test "$enable_largefile" != no; then
10904 echo "$as_me:10904: checking for special C compiler options needed for large files" >&5
10905 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10906 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 ac_cv_sys_largefile_CC=no
10910 if test "$GCC" != yes; then
10913 # IRIX 6.2 and later do not support large files by default,
10914 # so use the C compiler's -n32 option if that helps.
10915 cat >conftest.$ac_ext <<_ACEOF
10916 #line 10916 "configure"
10917 #include "confdefs.h"
10918 #include <sys/types.h>
10919 /* Check that off_t can represent 2**63 - 1 correctly.
10920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10921 since some C++ compilers masquerading as C compilers
10922 incorrectly reject 9223372036854775807. */
10923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10925 && LARGE_OFF_T % 2147483647 == 1)
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:10936: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>&5
10939 echo "$as_me:10939: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -s conftest.$ac_objext'
10942 { (eval echo "$as_me:10942: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10945 echo "$as_me:10945: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10949 echo "$as_me: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10952 rm -f conftest.$ac_objext
10954 rm -f conftest.$ac_objext
10955 if { (eval echo "$as_me:10955: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>&5
10958 echo "$as_me:10958: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (eval echo "$as_me:10961: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:10964: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_cv_sys_largefile_CC=' -n32'; break
10968 echo "$as_me: failed program was:" >&5
10969 cat conftest.$ac_ext >&5
10971 rm -f conftest.$ac_objext
10975 rm -f conftest.$ac_ext
10978 echo "$as_me:10978: result: $ac_cv_sys_largefile_CC" >&5
10979 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10980 if test "$ac_cv_sys_largefile_CC" != no; then
10981 CC=$CC$ac_cv_sys_largefile_CC
10984 echo "$as_me:10984: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10985 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10986 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 ac_cv_sys_file_offset_bits=no
10991 cat >conftest.$ac_ext <<_ACEOF
10992 #line 10992 "configure"
10993 #include "confdefs.h"
10994 #include <sys/types.h>
10995 /* Check that off_t can represent 2**63 - 1 correctly.
10996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10997 since some C++ compilers masquerading as C compilers
10998 incorrectly reject 9223372036854775807. */
10999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11001 && LARGE_OFF_T % 2147483647 == 1)
11011 rm -f conftest.$ac_objext
11012 if { (eval echo "$as_me:11012: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>&5
11015 echo "$as_me:11015: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:11018: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11021 echo "$as_me:11021: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11025 echo "$as_me: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11028 rm -f conftest.$ac_objext conftest.$ac_ext
11029 cat >conftest.$ac_ext <<_ACEOF
11030 #line 11030 "configure"
11031 #include "confdefs.h"
11032 #define _FILE_OFFSET_BITS 64
11033 #include <sys/types.h>
11034 /* Check that off_t can represent 2**63 - 1 correctly.
11035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11036 since some C++ compilers masquerading as C compilers
11037 incorrectly reject 9223372036854775807. */
11038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11040 && LARGE_OFF_T % 2147483647 == 1)
11050 rm -f conftest.$ac_objext
11051 if { (eval echo "$as_me:11051: \"$ac_compile\"") >&5
11052 (eval $ac_compile) 2>&5
11054 echo "$as_me:11054: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:11057: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:11060: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_sys_file_offset_bits=64; break
11064 echo "$as_me: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11067 rm -f conftest.$ac_objext conftest.$ac_ext
11071 echo "$as_me:11071: result: $ac_cv_sys_file_offset_bits" >&5
11072 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11073 if test "$ac_cv_sys_file_offset_bits" != no; then
11075 cat >>confdefs.h <<EOF
11076 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11081 echo "$as_me:11081: checking for _LARGE_FILES value needed for large files" >&5
11082 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
11083 if test "${ac_cv_sys_large_files+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 ac_cv_sys_large_files=no
11088 cat >conftest.$ac_ext <<_ACEOF
11089 #line 11089 "configure"
11090 #include "confdefs.h"
11091 #include <sys/types.h>
11092 /* Check that off_t can represent 2**63 - 1 correctly.
11093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11094 since some C++ compilers masquerading as C compilers
11095 incorrectly reject 9223372036854775807. */
11096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11098 && LARGE_OFF_T % 2147483647 == 1)
11108 rm -f conftest.$ac_objext
11109 if { (eval echo "$as_me:11109: \"$ac_compile\"") >&5
11110 (eval $ac_compile) 2>&5
11112 echo "$as_me:11112: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -s conftest.$ac_objext'
11115 { (eval echo "$as_me:11115: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11118 echo "$as_me:11118: \$? = $ac_status" >&5
11119 (exit $ac_status); }; }; then
11122 echo "$as_me: failed program was:" >&5
11123 cat conftest.$ac_ext >&5
11125 rm -f conftest.$ac_objext conftest.$ac_ext
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line 11127 "configure"
11128 #include "confdefs.h"
11129 #define _LARGE_FILES 1
11130 #include <sys/types.h>
11131 /* Check that off_t can represent 2**63 - 1 correctly.
11132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11133 since some C++ compilers masquerading as C compilers
11134 incorrectly reject 9223372036854775807. */
11135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11137 && LARGE_OFF_T % 2147483647 == 1)
11147 rm -f conftest.$ac_objext
11148 if { (eval echo "$as_me:11148: \"$ac_compile\"") >&5
11149 (eval $ac_compile) 2>&5
11151 echo "$as_me:11151: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -s conftest.$ac_objext'
11154 { (eval echo "$as_me:11154: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11157 echo "$as_me:11157: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_sys_large_files=1; break
11161 echo "$as_me: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11164 rm -f conftest.$ac_objext conftest.$ac_ext
11168 echo "$as_me:11168: result: $ac_cv_sys_large_files" >&5
11169 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11170 if test "$ac_cv_sys_large_files" != no; then
11172 cat >>confdefs.h <<EOF
11173 #define _LARGE_FILES $ac_cv_sys_large_files
11180 if test "$enable_largefile" != no ; then
11181 echo "$as_me:11181: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11182 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11183 if test "${ac_cv_sys_largefile_source+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 ac_cv_sys_largefile_source=no
11188 cat >conftest.$ac_ext <<_ACEOF
11189 #line 11189 "configure"
11190 #include "confdefs.h"
11200 rm -f conftest.$ac_objext
11201 if { (eval echo "$as_me:11201: \"$ac_compile\"") >&5
11202 (eval $ac_compile) 2>&5
11204 echo "$as_me:11204: \$? = $ac_status" >&5
11205 (exit $ac_status); } &&
11206 { ac_try='test -s conftest.$ac_objext'
11207 { (eval echo "$as_me:11207: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11210 echo "$as_me:11210: \$? = $ac_status" >&5
11211 (exit $ac_status); }; }; then
11214 echo "$as_me: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11217 rm -f conftest.$ac_objext conftest.$ac_ext
11218 cat >conftest.$ac_ext <<_ACEOF
11219 #line 11219 "configure"
11220 #include "confdefs.h"
11221 #define _LARGEFILE_SOURCE 1
11231 rm -f conftest.$ac_objext
11232 if { (eval echo "$as_me:11232: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>&5
11235 echo "$as_me:11235: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:11238: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:11241: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_sys_largefile_source=1; break
11245 echo "$as_me: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11248 rm -f conftest.$ac_objext conftest.$ac_ext
11252 echo "$as_me:11252: result: $ac_cv_sys_largefile_source" >&5
11253 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11254 if test "$ac_cv_sys_largefile_source" != no; then
11256 cat >>confdefs.h <<EOF
11257 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11263 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11264 # in glibc 2.1.3, but that breaks too many other things.
11265 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11266 echo "$as_me:11266: checking for fseeko" >&5
11267 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11268 if test "${ac_cv_func_fseeko+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.$ac_ext <<_ACEOF
11272 #line 11272 "configure"
11273 #include "confdefs.h"
11278 return fseeko && fseeko (stdin, 0, 0);
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (eval echo "$as_me:11284: \"$ac_link\"") >&5
11285 (eval $ac_link) 2>&5
11287 echo "$as_me:11287: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -s conftest$ac_exeext'
11290 { (eval echo "$as_me:11290: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11293 echo "$as_me:11293: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 ac_cv_func_fseeko=yes
11297 echo "$as_me: failed program was:" >&5
11298 cat conftest.$ac_ext >&5
11299 ac_cv_func_fseeko=no
11301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11303 echo "$as_me:11303: result: $ac_cv_func_fseeko" >&5
11304 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11305 if test $ac_cv_func_fseeko = yes; then
11307 cat >>confdefs.h <<\EOF
11308 #define HAVE_FSEEKO 1
11313 # Normally we would collect these definitions in the config.h,
11314 # but (like _XOPEN_SOURCE), some environments rely on having these
11315 # defined before any of the system headers are included. Another
11316 # case comes up with C++, e.g., on AIX the compiler compiles the
11317 # header files by themselves before looking at the body files it is
11318 # told to compile. For ncurses, those header files do not include
11320 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
11321 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
11322 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
11324 echo "$as_me:11324: checking whether to use struct dirent64" >&5
11325 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
11326 if test "${cf_cv_struct_dirent64+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 cat >conftest.$ac_ext <<_ACEOF
11331 #line 11331 "configure"
11332 #include "confdefs.h"
11334 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
11335 #include <sys/types.h>
11336 #include <dirent.h>
11342 /* if transitional largefile support is setup, this is true */
11343 extern struct dirent64 * readdir(DIR *);
11344 struct dirent64 *x = readdir((DIR *)0);
11345 struct dirent *y = readdir((DIR *)0);
11352 rm -f conftest.$ac_objext
11353 if { (eval echo "$as_me:11353: \"$ac_compile\"") >&5
11354 (eval $ac_compile) 2>&5
11356 echo "$as_me:11356: \$? = $ac_status" >&5
11357 (exit $ac_status); } &&
11358 { ac_try='test -s conftest.$ac_objext'
11359 { (eval echo "$as_me:11359: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11362 echo "$as_me:11362: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 cf_cv_struct_dirent64=yes
11366 echo "$as_me: failed program was:" >&5
11367 cat conftest.$ac_ext >&5
11368 cf_cv_struct_dirent64=no
11370 rm -f conftest.$ac_objext conftest.$ac_ext
11373 echo "$as_me:11373: result: $cf_cv_struct_dirent64" >&5
11374 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
11375 test "$cf_cv_struct_dirent64" = yes &&
11376 cat >>confdefs.h <<\EOF
11377 #define HAVE_STRUCT_DIRENT64 1
11382 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
11383 echo "$as_me:11383: checking if you want tparm not to use X/Open fixed-parameter list" >&5
11384 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
11386 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
11387 if test "${enable_tparm_varargs+set}" = set; then
11388 enableval="$enable_tparm_varargs"
11389 with_tparm_varargs=$enableval
11391 with_tparm_varargs=yes
11393 echo "$as_me:11393: result: $with_tparm_varargs" >&5
11394 echo "${ECHO_T}$with_tparm_varargs" >&6
11395 NCURSES_TPARM_VARARGS=0
11396 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
11398 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
11399 if test "$with_ticlib" != no ; then
11400 echo "$as_me:11400: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
11401 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
11403 # Check whether --enable-tic-depends or --disable-tic-depends was given.
11404 if test "${enable_tic_depends+set}" = set; then
11405 enableval="$enable_tic_depends"
11406 with_tic_depends=$enableval
11408 with_tic_depends=yes
11410 echo "$as_me:11410: result: $with_tic_depends" >&5
11411 echo "${ECHO_T}$with_tic_depends" >&6
11413 with_tic_depends=no
11416 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
11417 echo "$as_me:11417: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
11418 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
11420 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
11421 if test "${enable_wattr_macros+set}" = set; then
11422 enableval="$enable_wattr_macros"
11423 with_wattr_macros=$enableval
11425 with_wattr_macros=yes
11427 if [ "x$with_wattr_macros" != xyes ]; then
11428 NCURSES_WATTR_MACROS=0
11429 echo "$as_me:11429: result: yes" >&5
11430 echo "${ECHO_T}yes" >&6
11432 NCURSES_WATTR_MACROS=1
11433 echo "$as_me:11433: result: no" >&5
11434 echo "${ECHO_T}no" >&6
11437 ### use option --with-bool to override bool's type
11438 echo "$as_me:11438: checking for type of bool" >&5
11439 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
11441 # Check whether --with-bool or --without-bool was given.
11442 if test "${with_bool+set}" = set; then
11443 withval="$with_bool"
11444 NCURSES_BOOL="$withval"
11448 echo "$as_me:11448: result: $NCURSES_BOOL" >&5
11449 echo "${ECHO_T}$NCURSES_BOOL" >&6
11451 echo "$as_me:11451: checking for alternate terminal capabilities file" >&5
11452 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
11454 # Check whether --with-caps or --without-caps was given.
11455 if test "${with_caps+set}" = set; then
11456 withval="$with_caps"
11457 TERMINFO_CAPS=Caps.$withval
11461 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
11462 echo "$as_me:11462: result: $TERMINFO_CAPS" >&5
11463 echo "${ECHO_T}$TERMINFO_CAPS" >&6
11465 ### use option --with-chtype to override chtype's type
11466 echo "$as_me:11466: checking for type of chtype" >&5
11467 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11469 # Check whether --with-chtype or --without-chtype was given.
11470 if test "${with_chtype+set}" = set; then
11471 withval="$with_chtype"
11472 NCURSES_CHTYPE="$withval"
11474 NCURSES_CHTYPE=$cf_dft_chtype
11476 echo "$as_me:11476: result: $NCURSES_CHTYPE" >&5
11477 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
11479 ### use option --with-ospeed to override ospeed's type
11480 echo "$as_me:11480: checking for type of ospeed" >&5
11481 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
11483 # Check whether --with-ospeed or --without-ospeed was given.
11484 if test "${with_ospeed+set}" = set; then
11485 withval="$with_ospeed"
11486 NCURSES_OSPEED="$withval"
11488 NCURSES_OSPEED=short
11490 echo "$as_me:11490: result: $NCURSES_OSPEED" >&5
11491 echo "${ECHO_T}$NCURSES_OSPEED" >&6
11493 ### use option --with-mmask-t to override mmask_t's type
11494 echo "$as_me:11494: checking for type of mmask_t" >&5
11495 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
11497 # Check whether --with-mmask-t or --without-mmask-t was given.
11498 if test "${with_mmask_t+set}" = set; then
11499 withval="$with_mmask_t"
11500 NCURSES_MMASK_T="$withval"
11502 NCURSES_MMASK_T=$cf_dft_mmask_t
11504 echo "$as_me:11504: result: $NCURSES_MMASK_T" >&5
11505 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
11507 ### use option --with-ccharw-max to override CCHARW_MAX size
11508 echo "$as_me:11508: checking for size CCHARW_MAX" >&5
11509 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
11511 # Check whether --with-ccharw-max or --without-ccharw-max was given.
11512 if test "${with_ccharw_max+set}" = set; then
11513 withval="$with_ccharw_max"
11514 NCURSES_CCHARW_MAX="$withval"
11516 NCURSES_CCHARW_MAX=5
11518 echo "$as_me:11518: result: $NCURSES_CCHARW_MAX" >&5
11519 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
11521 ### use option --with-tparm-arg to override tparm's argument type
11522 echo "$as_me:11522: checking for type of tparm args" >&5
11523 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
11525 # Check whether --with-tparm-arg or --without-tparm-arg was given.
11526 if test "${with_tparm_arg+set}" = set; then
11527 withval="$with_tparm_arg"
11528 NCURSES_TPARM_ARG="$withval"
11530 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
11532 echo "$as_me:11532: result: $NCURSES_TPARM_ARG" >&5
11533 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
11535 ### Enable compiling-in rcs id's
11536 echo "$as_me:11536: checking if RCS identifiers should be compiled-in" >&5
11537 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
11539 # Check whether --with-rcs-ids or --without-rcs-ids was given.
11540 if test "${with_rcs_ids+set}" = set; then
11541 withval="$with_rcs_ids"
11542 with_rcs_ids=$withval
11546 echo "$as_me:11546: result: $with_rcs_ids" >&5
11547 echo "${ECHO_T}$with_rcs_ids" >&6
11548 test "x$with_rcs_ids" = xyes &&
11549 cat >>confdefs.h <<\EOF
11550 #define USE_RCS_IDS 1
11553 ###############################################################################
11555 echo "$as_me:11555: checking format of man-pages" >&5
11556 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
11558 # Check whether --with-manpage-format or --without-manpage-format was given.
11559 if test "${with_manpage_format+set}" = set; then
11560 withval="$with_manpage_format"
11561 MANPAGE_FORMAT=$withval
11563 MANPAGE_FORMAT=unknown
11566 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
11567 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11571 case $MANPAGE_FORMAT in
11573 if test -z "$MANPATH" ; then
11574 MANPATH="/usr/man:/usr/share/man"
11577 # look for the 'date' man-page (it's most likely to be installed!)
11583 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11584 for cf_dir in $MANPATH; do
11585 test -z "$cf_dir" && cf_dir=/usr/man
11586 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
11588 cf_test=`echo $cf_name | sed -e 's/*//'`
11589 if test "x$cf_test" = "x$cf_name" ; then
11592 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11593 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11594 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11595 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11609 # if we found a match in either man* or cat*, stop looking
11610 if test -n "$MANPAGE_FORMAT" ; then
11612 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11613 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11619 test $cf_found=yes && break
11622 # only check the first directory in $MANPATH where we find manpages
11623 if test -n "$MANPAGE_FORMAT" ; then
11627 # if we did not find the example, just assume it is normal
11628 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11632 for cf_option in $MANPAGE_FORMAT; do
11634 (gzip|compress|BSDI|normal|formatted|catonly)
11637 cf_unknown="$cf_unknown $cf_option"
11644 echo "$as_me:11644: result: $MANPAGE_FORMAT" >&5
11645 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11646 if test -n "$cf_unknown" ; then
11647 { echo "$as_me:11647: WARNING: Unexpected manpage-format $cf_unknown" >&5
11648 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11651 echo "$as_me:11651: checking for manpage renaming" >&5
11652 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11654 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11655 if test "${with_manpage_renames+set}" = set; then
11656 withval="$with_manpage_renames"
11657 MANPAGE_RENAMES=$withval
11659 MANPAGE_RENAMES=yes
11662 case ".$MANPAGE_RENAMES" in
11666 # Debian 'man' program?
11667 if test -f /etc/debian_version ; then
11668 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11675 if test "$MANPAGE_RENAMES" != no ; then
11676 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11677 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11678 elif test ! -f $MANPAGE_RENAMES ; then
11679 { { echo "$as_me:11679: error: not a filename: $MANPAGE_RENAMES" >&5
11680 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11681 { (exit 1); exit 1; }; }
11684 test ! -d man && mkdir man
11686 # Construct a sed-script to perform renaming within man-pages
11687 if test -n "$MANPAGE_RENAMES" ; then
11688 test ! -d man && mkdir man
11689 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11693 echo "$as_me:11693: result: $MANPAGE_RENAMES" >&5
11694 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11696 echo "$as_me:11696: checking if manpage aliases will be installed" >&5
11697 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11699 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11700 if test "${with_manpage_aliases+set}" = set; then
11701 withval="$with_manpage_aliases"
11702 MANPAGE_ALIASES=$withval
11704 MANPAGE_ALIASES=yes
11707 echo "$as_me:11707: result: $MANPAGE_ALIASES" >&5
11708 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11712 cf_use_symlinks=yes
11719 MANPAGE_SYMLINKS=no
11720 if test "$MANPAGE_ALIASES" = yes ; then
11721 echo "$as_me:11721: checking if manpage symlinks should be used" >&5
11722 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11724 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11725 if test "${with_manpage_symlinks+set}" = set; then
11726 withval="$with_manpage_symlinks"
11727 MANPAGE_SYMLINKS=$withval
11729 MANPAGE_SYMLINKS=$cf_use_symlinks
11732 if test "$$cf_use_symlinks" = no; then
11733 if test "$MANPAGE_SYMLINKS" = yes ; then
11734 { echo "$as_me:11734: WARNING: cannot make symlinks" >&5
11735 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11736 MANPAGE_SYMLINKS=no
11740 echo "$as_me:11740: result: $MANPAGE_SYMLINKS" >&5
11741 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11744 echo "$as_me:11744: checking for manpage tbl" >&5
11745 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11747 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11748 if test "${with_manpage_tbl+set}" = set; then
11749 withval="$with_manpage_tbl"
11750 MANPAGE_TBL=$withval
11755 echo "$as_me:11755: result: $MANPAGE_TBL" >&5
11756 echo "${ECHO_T}$MANPAGE_TBL" >&6
11758 if test "$prefix" = "NONE" ; then
11759 cf_prefix="$ac_default_prefix"
11761 cf_prefix="$prefix"
11764 case "$MANPAGE_FORMAT" in
11779 test ! -d man && mkdir man
11783 case "$MANPAGE_FORMAT" in
11786 cf_compress=compress
11794 cf_edit_man=./edit_man.sh
11795 cf_man_alias=`pwd`/man_alias.sed
11797 cat >$cf_edit_man <<CF_EOF
11799 # this script is generated by the configure-script CF_MAN_PAGES macro.
11801 prefix="$cf_prefix"
11802 datarootdir="$datarootdir"
11805 NCURSES_MAJOR="$NCURSES_MAJOR"
11806 NCURSES_MINOR="$NCURSES_MINOR"
11807 NCURSES_PATCH="$NCURSES_PATCH"
11809 NCURSES_OSPEED="$NCURSES_OSPEED"
11810 TERMINFO="$TERMINFO"
11813 INSTALL_DATA="$INSTALL_DATA"
11815 transform="$program_transform_name"
11817 TMP=\${TMPDIR:=/tmp}/man\$\$
11818 trap "rm -f \$TMP" 0 1 2 5 15
11830 top_srcdir=\$srcdir/..
11833 if test "\$form" = normal ; then
11834 if test "$cf_format" = yes ; then
11835 if test "$cf_inboth" = no ; then
11836 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11840 cf_subdir=\$mandir/man
11841 cf_tables=$MANPAGE_TBL
11843 cf_subdir=\$mandir/cat
11847 # process the list of source-files
11852 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11853 if test \$verb = installing ; then
11854 if test ! -d \$cf_subdir\${section} ; then
11855 mkdir -p \$cf_subdir\$section
11859 # replace variables in man page
11860 if test ! -f $cf_man_alias ; then
11861 cat >>$cf_man_alias <<-CF_EOF2
11862 s,@DATADIR@,\$datadir,g
11863 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11864 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11865 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11866 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11867 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11868 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11871 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
11873 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11874 cf_name=`echo $cf_name|sed "$program_transform_name"`
11875 cat >>$cf_edit_man <<-CF_EOF
11876 s,@$cf_NAME@,$cf_name,g
11880 cat >>$cf_edit_man <<CF_EOF
11882 echo "...made $cf_man_alias"
11886 cf_source=\`basename \$i\`
11887 inalias=\$cf_source
11888 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11889 if test ! -f \$inalias ; then
11890 echo .. skipped \$cf_source
11895 if test "$MANPAGE_ALIASES" != no ; then
11896 cat >>$cf_edit_man <<CF_EOF
11898 test $with_curses_h = yes && nCurses=ncurses.3x
11899 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11903 if test "$MANPAGE_RENAMES" = no ; then
11904 cat >>$cf_edit_man <<CF_EOF
11905 # perform program transformations for section 1 man pages
11906 if test \$section = 1 ; then
11907 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11909 cf_target=\$cf_subdir\${section}/\$cf_source
11913 cat >>$cf_edit_man <<CF_EOF
11914 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11915 if test -z "\$cf_target" ; then
11916 echo '? missing rename for '\$cf_source
11917 cf_target="\$cf_source"
11919 cf_target="\$cf_subdir\${section}/\${cf_target}"
11924 cat >>$cf_edit_man <<CF_EOF
11925 sed -f $cf_man_alias \\
11928 if test -f $MANPAGE_RENAMES ; then
11929 cat >>$cf_edit_man <<CF_EOF
11930 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11933 cat >>$cf_edit_man <<CF_EOF
11938 cat >>$cf_edit_man <<CF_EOF
11939 if test \$cf_tables = yes ; then
11940 tbl \$TMP >\$TMP.out
11945 if test $with_overwrite != yes ; then
11946 cat >>$cf_edit_man <<CF_EOF
11947 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11952 if test $with_curses_h != yes ; then
11953 cat >>$cf_edit_man <<CF_EOF
11954 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11959 cat >>$cf_edit_man <<CF_EOF
11960 if test \$form = format ; then
11961 nroff -man \$TMP >\$TMP.out
11966 if test -n "$cf_compress" ; then
11967 cat >>$cf_edit_man <<CF_EOF
11968 if test \$verb = installing ; then
11969 if ( $cf_compress -f \$TMP )
11971 mv \$TMP.$cf_so_strip \$TMP
11974 cf_target="\$cf_target.$cf_so_strip"
11978 case "$MANPAGE_FORMAT" in
11980 cat >>$cf_edit_man <<CF_EOF
11981 if test \$form = format ; then
11982 # BSDI installs only .0 suffixes in the cat directories
11983 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11989 cat >>$cf_edit_man <<CF_EOF
11990 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11991 if test \$verb = installing ; then
11992 echo \$verb \$cf_target
11993 \$INSTALL_DATA \$TMP \$cf_target
11994 test -d \$cf_subdir\${section} &&
11995 test -n "\$aliases" && (
11996 cd \$cf_subdir\${section} && (
11997 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11998 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11999 cf_target=\`basename \$cf_target\`
12000 for cf_alias in \$aliases
12002 if test \$section = 1 ; then
12003 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
12006 if test "$MANPAGE_SYMLINKS" = yes ; then
12007 if test -f \$cf_alias\${suffix} ; then
12008 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
12013 echo .. \$verb alias \$cf_alias\${suffix}
12017 cat >>$cf_edit_man <<CF_EOF
12018 $LN_S \$cf_target \$cf_alias\${suffix}
12022 cat >>$cf_edit_man <<CF_EOF
12023 rm -f \$cf_alias\${suffix}
12024 $LN_S \$cf_target \$cf_alias\${suffix}
12028 cat >>$cf_edit_man <<CF_EOF
12029 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
12030 echo ".so \$cf_source" >\$TMP
12032 if test -n "$cf_compress" ; then
12033 cat >>$cf_edit_man <<CF_EOF
12034 if test -n "$cf_so_strip" ; then
12035 $cf_compress -f \$TMP
12036 mv \$TMP.$cf_so_strip \$TMP
12040 cat >>$cf_edit_man <<CF_EOF
12041 echo .. \$verb alias \$cf_alias\${suffix}
12042 rm -f \$cf_alias\${suffix}
12043 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
12048 elif test \$verb = removing ; then
12049 test -f \$cf_target && (
12050 echo \$verb \$cf_target
12053 test -d \$cf_subdir\${section} &&
12054 test -n "\$aliases" && (
12055 cd \$cf_subdir\${section} && (
12056 for cf_alias in \$aliases
12058 if test \$section = 1 ; then
12059 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
12062 echo .. \$verb alias \$cf_alias\${suffix}
12063 rm -f \$cf_alias\${suffix}
12075 if test $cf_inboth = yes ; then
12076 if test \$form != format ; then
12077 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
12083 chmod 755 $cf_edit_man
12085 ###############################################################################
12087 ### Note that some functions (such as const) are normally disabled anyway.
12088 echo "$as_me:12088: checking if you want to build with function extensions" >&5
12089 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
12091 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
12092 if test "${enable_ext_funcs+set}" = set; then
12093 enableval="$enable_ext_funcs"
12094 with_ext_funcs=$enableval
12098 echo "$as_me:12098: result: $with_ext_funcs" >&5
12099 echo "${ECHO_T}$with_ext_funcs" >&6
12100 if test "x$with_ext_funcs" = xyes ; then
12101 NCURSES_EXT_FUNCS=1
12103 cat >>confdefs.h <<\EOF
12104 #define NCURSES_EXT_FUNCS 1
12107 cat >>confdefs.h <<\EOF
12108 #define HAVE_ASSUME_DEFAULT_COLORS 1
12111 cat >>confdefs.h <<\EOF
12112 #define HAVE_CURSES_VERSION 1
12115 cat >>confdefs.h <<\EOF
12116 #define HAVE_HAS_KEY 1
12119 cat >>confdefs.h <<\EOF
12120 #define HAVE_RESIZETERM 1
12123 cat >>confdefs.h <<\EOF
12124 #define HAVE_RESIZE_TERM 1
12127 cat >>confdefs.h <<\EOF
12128 #define HAVE_TERM_ENTRY_H 1
12131 cat >>confdefs.h <<\EOF
12132 #define HAVE_USE_DEFAULT_COLORS 1
12135 cat >>confdefs.h <<\EOF
12136 #define HAVE_USE_EXTENDED_NAMES 1
12139 cat >>confdefs.h <<\EOF
12140 #define HAVE_USE_SCREEN 1
12143 cat >>confdefs.h <<\EOF
12144 #define HAVE_USE_WINDOW 1
12147 cat >>confdefs.h <<\EOF
12148 #define HAVE_WRESIZE 1
12151 GENERATED_EXT_FUNCS=generated
12152 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
12154 NCURSES_EXT_FUNCS=0
12155 GENERATED_EXT_FUNCS=
12158 echo "$as_me:12158: checking if you want to build with SCREEN extensions" >&5
12159 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
12161 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
12162 if test "${enable_sp_funcs+set}" = set; then
12163 enableval="$enable_sp_funcs"
12164 with_sp_funcs=$enableval
12166 with_sp_funcs=$cf_dft_ext_spfuncs
12168 echo "$as_me:12168: result: $with_sp_funcs" >&5
12169 echo "${ECHO_T}$with_sp_funcs" >&6
12170 if test "x$with_sp_funcs" = xyes ; then
12173 cat >>confdefs.h <<\EOF
12174 #define NCURSES_SP_FUNCS 1
12177 cat >>confdefs.h <<\EOF
12178 #define HAVE_TPUTS_SP 1
12181 GENERATED_SP_FUNCS=generated
12184 GENERATED_SP_FUNCS=
12187 echo "$as_me:12187: checking if you want to build with terminal-driver" >&5
12188 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
12190 # Check whether --enable-term-driver or --disable-term-driver was given.
12191 if test "${enable_term_driver+set}" = set; then
12192 enableval="$enable_term_driver"
12193 with_term_driver=$enableval
12195 with_term_driver=no
12197 echo "$as_me:12197: result: $with_term_driver" >&5
12198 echo "${ECHO_T}$with_term_driver" >&6
12199 if test "x$with_term_driver" = xyes ; then
12201 cat >>confdefs.h <<\EOF
12202 #define USE_TERM_DRIVER 1
12205 if test "x$with_termlib" != xno ; then
12206 { { echo "$as_me:12206: error: The term-driver option conflicts with the termlib option" >&5
12207 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
12208 { (exit 1); exit 1; }; }
12210 if test "x$with_sp_funcs" != xyes ; then
12211 { { echo "$as_me:12211: error: The term-driver option relies upon sp-funcs" >&5
12212 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
12213 { (exit 1); exit 1; }; }
12217 ### use option --enable-const to turn on use of const beyond that in XSI.
12218 echo "$as_me:12218: checking for extended use of const keyword" >&5
12219 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
12221 # Check whether --enable-const or --disable-const was given.
12222 if test "${enable_const+set}" = set; then
12223 enableval="$enable_const"
12224 with_ext_const=$enableval
12226 with_ext_const=$cf_dft_ext_const
12228 echo "$as_me:12228: result: $with_ext_const" >&5
12229 echo "${ECHO_T}$with_ext_const" >&6
12230 NCURSES_CONST='/*nothing*/'
12231 if test "x$with_ext_const" = xyes ; then
12232 NCURSES_CONST=const
12235 ### use option --enable-ext-colors to turn on use of colors beyond 16.
12236 echo "$as_me:12236: checking if you want to use extended colors" >&5
12237 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
12239 # Check whether --enable-ext-colors or --disable-ext-colors was given.
12240 if test "${enable_ext_colors+set}" = set; then
12241 enableval="$enable_ext_colors"
12242 with_ext_colors=$enableval
12244 with_ext_colors=$cf_dft_ext_colors
12246 echo "$as_me:12246: result: $with_ext_colors" >&5
12247 echo "${ECHO_T}$with_ext_colors" >&6
12248 NCURSES_EXT_COLORS=0
12249 if test "x$with_ext_colors" = xyes ; then
12250 if test "x$with_widec" != xyes ; then
12251 { echo "$as_me:12251: WARNING: This option applies only to wide-character library" >&5
12252 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
12254 # cannot be ABI 5 since it changes sizeof(cchar_t)
12256 if test "${with_abi_version+set}" != set; then
12257 case $cf_cv_rel_version in
12259 cf_cv_rel_version=6.0
12260 cf_cv_abi_version=6
12261 { echo "$as_me:12261: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12262 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12267 NCURSES_EXT_COLORS=1
12269 cat >>confdefs.h <<\EOF
12270 #define NCURSES_EXT_COLORS 1
12273 cat >>confdefs.h <<\EOF
12274 #define HAVE_ALLOC_PAIR 1
12277 cat >>confdefs.h <<\EOF
12278 #define HAVE_INIT_EXTENDED_COLOR 1
12284 ### use option --enable-ext-mouse to modify coding to support 5-button mice
12285 echo "$as_me:12285: checking if you want to use extended mouse encoding" >&5
12286 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
12288 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
12289 if test "${enable_ext_mouse+set}" = set; then
12290 enableval="$enable_ext_mouse"
12291 with_ext_mouse=$enableval
12293 with_ext_mouse=$cf_dft_ext_mouse
12295 echo "$as_me:12295: result: $with_ext_mouse" >&5
12296 echo "${ECHO_T}$with_ext_mouse" >&6
12297 NCURSES_MOUSE_VERSION=1
12298 if test "x$with_ext_mouse" = xyes ; then
12299 NCURSES_MOUSE_VERSION=2
12301 if test "${with_abi_version+set}" != set; then
12302 case $cf_cv_rel_version in
12304 cf_cv_rel_version=6.0
12305 cf_cv_abi_version=6
12306 { echo "$as_me:12306: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12307 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12314 ### use option --enable-ext-putwin to turn on extended screendumps
12315 echo "$as_me:12315: checking if you want to use extended putwin/screendump" >&5
12316 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
12318 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
12319 if test "${enable_ext_putwin+set}" = set; then
12320 enableval="$enable_ext_putwin"
12321 with_ext_putwin=$enableval
12323 with_ext_putwin=$cf_dft_ext_putwin
12325 echo "$as_me:12325: result: $with_ext_putwin" >&5
12326 echo "${ECHO_T}$with_ext_putwin" >&6
12327 if test "x$with_ext_putwin" = xyes ; then
12329 cat >>confdefs.h <<\EOF
12330 #define NCURSES_EXT_PUTWIN 1
12335 echo "$as_me:12335: checking if you want \$NCURSES_NO_PADDING code" >&5
12336 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
12338 # Check whether --enable-no-padding or --disable-no-padding was given.
12339 if test "${enable_no_padding+set}" = set; then
12340 enableval="$enable_no_padding"
12341 with_no_padding=$enableval
12343 with_no_padding=$with_ext_funcs
12345 echo "$as_me:12345: result: $with_no_padding" >&5
12346 echo "${ECHO_T}$with_no_padding" >&6
12347 test "x$with_no_padding" = xyes &&
12348 cat >>confdefs.h <<\EOF
12349 #define NCURSES_NO_PADDING 1
12352 echo "$as_me:12352: checking for ANSI C header files" >&5
12353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12354 if test "${ac_cv_header_stdc+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 cat >conftest.$ac_ext <<_ACEOF
12358 #line 12358 "configure"
12359 #include "confdefs.h"
12360 #include <stdlib.h>
12361 #include <stdarg.h>
12362 #include <string.h>
12366 if { (eval echo "$as_me:12366: \"$ac_cpp conftest.$ac_ext\"") >&5
12367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12369 egrep -v '^ *\+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:12372: \$? = $ac_status" >&5
12373 (exit $ac_status); } >/dev/null; then
12374 if test -s conftest.err; then
12375 ac_cpp_err=$ac_c_preproc_warn_flag
12382 if test -z "$ac_cpp_err"; then
12383 ac_cv_header_stdc=yes
12385 echo "$as_me: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12387 ac_cv_header_stdc=no
12389 rm -f conftest.err conftest.$ac_ext
12391 if test $ac_cv_header_stdc = yes; then
12392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12393 cat >conftest.$ac_ext <<_ACEOF
12394 #line 12394 "configure"
12395 #include "confdefs.h"
12396 #include <string.h>
12399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12400 egrep "memchr" >/dev/null 2>&1; then
12403 ac_cv_header_stdc=no
12409 if test $ac_cv_header_stdc = yes; then
12410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12411 cat >conftest.$ac_ext <<_ACEOF
12412 #line 12412 "configure"
12413 #include "confdefs.h"
12414 #include <stdlib.h>
12417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12418 egrep "free" >/dev/null 2>&1; then
12421 ac_cv_header_stdc=no
12427 if test $ac_cv_header_stdc = yes; then
12428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12429 if test "$cross_compiling" = yes; then
12432 cat >conftest.$ac_ext <<_ACEOF
12433 #line 12433 "configure"
12434 #include "confdefs.h"
12436 #if ((' ' & 0x0FF) == 0x020)
12437 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12438 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12440 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12441 || ('j' <= (c) && (c) <= 'r') \
12442 || ('s' <= (c) && (c) <= 'z'))
12443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12451 for (i = 0; i < 256; i++)
12452 if (XOR (islower (i), ISLOWER (i))
12453 || toupper (i) != TOUPPER (i))
12454 $ac_main_return(2);
12455 $ac_main_return (0);
12458 rm -f conftest$ac_exeext
12459 if { (eval echo "$as_me:12459: \"$ac_link\"") >&5
12460 (eval $ac_link) 2>&5
12462 echo "$as_me:12462: \$? = $ac_status" >&5
12463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12464 { (eval echo "$as_me:12464: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12471 echo "$as_me: program exited with status $ac_status" >&5
12472 echo "$as_me: failed program was:" >&5
12473 cat conftest.$ac_ext >&5
12474 ac_cv_header_stdc=no
12476 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12480 echo "$as_me:12480: result: $ac_cv_header_stdc" >&5
12481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12482 if test $ac_cv_header_stdc = yes; then
12484 cat >>confdefs.h <<\EOF
12485 #define STDC_HEADERS 1
12490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12493 inttypes.h stdint.h unistd.h
12495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12496 echo "$as_me:12496: checking for $ac_header" >&5
12497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 cat >conftest.$ac_ext <<_ACEOF
12502 #line 12502 "configure"
12503 #include "confdefs.h"
12504 $ac_includes_default
12505 #include <$ac_header>
12507 rm -f conftest.$ac_objext
12508 if { (eval echo "$as_me:12508: \"$ac_compile\"") >&5
12509 (eval $ac_compile) 2>&5
12511 echo "$as_me:12511: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -s conftest.$ac_objext'
12514 { (eval echo "$as_me:12514: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 echo "$as_me:12517: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 eval "$as_ac_Header=yes"
12521 echo "$as_me: failed program was:" >&5
12522 cat conftest.$ac_ext >&5
12523 eval "$as_ac_Header=no"
12525 rm -f conftest.$ac_objext conftest.$ac_ext
12527 echo "$as_me:12527: result: `eval echo '${'$as_ac_Header'}'`" >&5
12528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12530 cat >>confdefs.h <<EOF
12531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12537 echo "$as_me:12537: checking for signed char" >&5
12538 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12539 if test "${ac_cv_type_signed_char+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 cat >conftest.$ac_ext <<_ACEOF
12543 #line 12543 "configure"
12544 #include "confdefs.h"
12545 $ac_includes_default
12549 if ((signed char *) 0)
12551 if (sizeof (signed char))
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:12558: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>&5
12561 echo "$as_me:12561: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:12564: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:12567: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_type_signed_char=yes
12571 echo "$as_me: failed program was:" >&5
12572 cat conftest.$ac_ext >&5
12573 ac_cv_type_signed_char=no
12575 rm -f conftest.$ac_objext conftest.$ac_ext
12577 echo "$as_me:12577: result: $ac_cv_type_signed_char" >&5
12578 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12580 echo "$as_me:12580: checking size of signed char" >&5
12581 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12582 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 if test "$ac_cv_type_signed_char" = yes; then
12586 if test "$cross_compiling" = yes; then
12587 # Depending upon the size, compute the lo and hi bounds.
12588 cat >conftest.$ac_ext <<_ACEOF
12589 #line 12589 "configure"
12590 #include "confdefs.h"
12591 $ac_includes_default
12595 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:12601: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>&5
12604 echo "$as_me:12604: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:12607: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12610 echo "$as_me:12610: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12614 cat >conftest.$ac_ext <<_ACEOF
12615 #line 12615 "configure"
12616 #include "confdefs.h"
12617 $ac_includes_default
12621 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:12627: \"$ac_compile\"") >&5
12628 (eval $ac_compile) 2>&5
12630 echo "$as_me:12630: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:12633: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:12636: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_hi=$ac_mid; break
12640 echo "$as_me: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12642 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12644 rm -f conftest.$ac_objext conftest.$ac_ext
12647 echo "$as_me: failed program was:" >&5
12648 cat conftest.$ac_ext >&5
12651 cat >conftest.$ac_ext <<_ACEOF
12652 #line 12652 "configure"
12653 #include "confdefs.h"
12654 $ac_includes_default
12658 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12663 rm -f conftest.$ac_objext
12664 if { (eval echo "$as_me:12664: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>&5
12667 echo "$as_me:12667: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:12670: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 echo "$as_me:12673: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_lo=$ac_mid; break
12677 echo "$as_me: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12679 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12681 rm -f conftest.$ac_objext conftest.$ac_ext
12684 rm -f conftest.$ac_objext conftest.$ac_ext
12685 # Binary search between lo and hi bounds.
12686 while test "x$ac_lo" != "x$ac_hi"; do
12687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12688 cat >conftest.$ac_ext <<_ACEOF
12689 #line 12689 "configure"
12690 #include "confdefs.h"
12691 $ac_includes_default
12695 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12700 rm -f conftest.$ac_objext
12701 if { (eval echo "$as_me:12701: \"$ac_compile\"") >&5
12702 (eval $ac_compile) 2>&5
12704 echo "$as_me:12704: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -s conftest.$ac_objext'
12707 { (eval echo "$as_me:12707: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:12710: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12714 echo "$as_me: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
12716 ac_lo=`expr $ac_mid + 1`
12718 rm -f conftest.$ac_objext conftest.$ac_ext
12720 ac_cv_sizeof_signed_char=$ac_lo
12722 if test "$cross_compiling" = yes; then
12723 { { echo "$as_me:12723: error: cannot run test program while cross compiling" >&5
12724 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12725 { (exit 1); exit 1; }; }
12727 cat >conftest.$ac_ext <<_ACEOF
12728 #line 12728 "configure"
12729 #include "confdefs.h"
12730 $ac_includes_default
12734 FILE *f = fopen ("conftest.val", "w");
12736 $ac_main_return (1);
12737 fprintf (f, "%d", (sizeof (signed char)));
12743 rm -f conftest$ac_exeext
12744 if { (eval echo "$as_me:12744: \"$ac_link\"") >&5
12745 (eval $ac_link) 2>&5
12747 echo "$as_me:12747: \$? = $ac_status" >&5
12748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12749 { (eval echo "$as_me:12749: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:12752: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_cv_sizeof_signed_char=`cat conftest.val`
12756 echo "$as_me: program exited with status $ac_status" >&5
12757 echo "$as_me: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12760 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12765 ac_cv_sizeof_signed_char=0
12768 echo "$as_me:12768: result: $ac_cv_sizeof_signed_char" >&5
12769 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12770 cat >>confdefs.h <<EOF
12771 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12774 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12775 NCURSES_SBOOL="signed char"
12777 NCURSES_SBOOL="char"
12779 echo "$as_me:12779: checking if you want to use signed Boolean array in term.h" >&5
12780 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12782 # Check whether --enable-signed-char or --disable-signed-char was given.
12783 if test "${enable_signed_char+set}" = set; then
12784 enableval="$enable_signed_char"
12785 with_signed_char=$enableval
12787 with_signed_char=no
12789 echo "$as_me:12789: result: $with_signed_char" >&5
12790 echo "${ECHO_T}$with_signed_char" >&6
12791 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12793 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12794 echo "$as_me:12794: checking if you want SIGWINCH handler" >&5
12795 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12797 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12798 if test "${enable_sigwinch+set}" = set; then
12799 enableval="$enable_sigwinch"
12800 with_sigwinch=$enableval
12802 with_sigwinch=$with_ext_funcs
12804 echo "$as_me:12804: result: $with_sigwinch" >&5
12805 echo "${ECHO_T}$with_sigwinch" >&6
12806 test "x$with_sigwinch" = xyes &&
12807 cat >>confdefs.h <<\EOF
12808 #define USE_SIGWINCH 1
12811 ### use option --enable-tcap-names to allow user to define new capabilities
12812 echo "$as_me:12812: checking if you want user-definable terminal capabilities like termcap" >&5
12813 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12815 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12816 if test "${enable_tcap_names+set}" = set; then
12817 enableval="$enable_tcap_names"
12818 with_tcap_names=$enableval
12820 with_tcap_names=$with_ext_funcs
12822 echo "$as_me:12822: result: $with_tcap_names" >&5
12823 echo "${ECHO_T}$with_tcap_names" >&6
12825 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12827 ##############################################################################
12829 echo "$as_me:12829: checking if you want to link with the pthread library" >&5
12830 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12832 # Check whether --with-pthread or --without-pthread was given.
12833 if test "${with_pthread+set}" = set; then
12834 withval="$with_pthread"
12835 with_pthread=$withval
12839 echo "$as_me:12839: result: $with_pthread" >&5
12840 echo "${ECHO_T}$with_pthread" >&6
12842 if test "$with_pthread" != no ; then
12843 echo "$as_me:12843: checking for pthread.h" >&5
12844 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12845 if test "${ac_cv_header_pthread_h+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 cat >conftest.$ac_ext <<_ACEOF
12849 #line 12849 "configure"
12850 #include "confdefs.h"
12851 #include <pthread.h>
12853 if { (eval echo "$as_me:12853: \"$ac_cpp conftest.$ac_ext\"") >&5
12854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12856 egrep -v '^ *\+' conftest.er1 >conftest.err
12858 cat conftest.err >&5
12859 echo "$as_me:12859: \$? = $ac_status" >&5
12860 (exit $ac_status); } >/dev/null; then
12861 if test -s conftest.err; then
12862 ac_cpp_err=$ac_c_preproc_warn_flag
12869 if test -z "$ac_cpp_err"; then
12870 ac_cv_header_pthread_h=yes
12872 echo "$as_me: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 ac_cv_header_pthread_h=no
12876 rm -f conftest.err conftest.$ac_ext
12878 echo "$as_me:12878: result: $ac_cv_header_pthread_h" >&5
12879 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12880 if test $ac_cv_header_pthread_h = yes; then
12882 cat >>confdefs.h <<\EOF
12883 #define HAVE_PTHREADS_H 1
12886 for cf_lib_pthread in pthread c_r
12888 echo "$as_me:12888: checking if we can link with the $cf_lib_pthread library" >&5
12889 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12890 cf_save_LIBS="$LIBS"
12892 cf_add_libs="-l$cf_lib_pthread"
12893 # Filter out duplicates - this happens with badly-designed ".pc" files...
12894 for cf_add_1lib in $LIBS
12896 for cf_add_2lib in $cf_add_libs
12898 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12904 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12906 LIBS="$cf_add_libs"
12908 cat >conftest.$ac_ext <<_ACEOF
12909 #line 12909 "configure"
12910 #include "confdefs.h"
12912 #include <pthread.h>
12918 int rc = pthread_create(0,0,0,0);
12919 int r2 = pthread_mutexattr_settype(0, 0);
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (eval echo "$as_me:12926: \"$ac_link\"") >&5
12927 (eval $ac_link) 2>&5
12929 echo "$as_me:12929: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -s conftest$ac_exeext'
12932 { (eval echo "$as_me:12932: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:12935: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12939 echo "$as_me: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12944 LIBS="$cf_save_LIBS"
12945 echo "$as_me:12945: result: $with_pthread" >&5
12946 echo "${ECHO_T}$with_pthread" >&6
12947 test "$with_pthread" = yes && break
12950 if test "$with_pthread" = yes ; then
12952 cf_add_libs="-l$cf_lib_pthread"
12953 # Filter out duplicates - this happens with badly-designed ".pc" files...
12954 for cf_add_1lib in $LIBS
12956 for cf_add_2lib in $cf_add_libs
12958 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12964 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12966 LIBS="$cf_add_libs"
12968 cat >>confdefs.h <<\EOF
12969 #define HAVE_LIBPTHREADS 1
12973 { { echo "$as_me:12973: error: Cannot link with pthread library" >&5
12974 echo "$as_me: error: Cannot link with pthread library" >&2;}
12975 { (exit 1); exit 1; }; }
12982 if test "x$with_pthread" != xno; then
12983 echo "$as_me:12983: checking for pthread_kill" >&5
12984 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12985 if test "${ac_cv_func_pthread_kill+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 cat >conftest.$ac_ext <<_ACEOF
12989 #line 12989 "configure"
12990 #include "confdefs.h"
12991 /* System header to define __stub macros and hopefully few prototypes,
12992 which can conflict with char pthread_kill (); below. */
12993 #include <assert.h>
12994 /* Override any gcc2 internal prototype to avoid an error. */
12998 /* We use char because int might match the return type of a gcc2
12999 builtin and then its argument prototype would still apply. */
13000 char pthread_kill ();
13006 /* The GNU C library defines this for functions which it implements
13007 to always fail with ENOSYS. Some functions are actually named
13008 something starting with __ and the normal name is an alias. */
13009 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
13012 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13019 rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (eval echo "$as_me:13020: \"$ac_link\"") >&5
13021 (eval $ac_link) 2>&5
13023 echo "$as_me:13023: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -s conftest$ac_exeext'
13026 { (eval echo "$as_me:13026: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:13029: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_cv_func_pthread_kill=yes
13033 echo "$as_me: failed program was:" >&5
13034 cat conftest.$ac_ext >&5
13035 ac_cv_func_pthread_kill=no
13037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13039 echo "$as_me:13039: result: $ac_cv_func_pthread_kill" >&5
13040 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
13041 if test $ac_cv_func_pthread_kill = yes; then
13043 echo "$as_me:13043: checking if you want to allow EINTR in wgetch with pthreads" >&5
13044 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
13046 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
13047 if test "${enable_pthreads_eintr+set}" = set; then
13048 enableval="$enable_pthreads_eintr"
13049 use_pthreads_eintr=$enableval
13051 use_pthreads_eintr=no
13053 echo "$as_me:13053: result: $use_pthreads_eintr" >&5
13054 echo "${ECHO_T}$use_pthreads_eintr" >&6
13055 if test "x$use_pthreads_eintr" = xyes ; then
13057 cat >>confdefs.h <<\EOF
13058 #define USE_PTHREADS_EINTR 1
13064 echo "$as_me:13064: checking if you want to use weak-symbols for pthreads" >&5
13065 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
13067 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
13068 if test "${enable_weak_symbols+set}" = set; then
13069 enableval="$enable_weak_symbols"
13070 use_weak_symbols=$enableval
13072 use_weak_symbols=no
13074 echo "$as_me:13074: result: $use_weak_symbols" >&5
13075 echo "${ECHO_T}$use_weak_symbols" >&6
13076 if test "x$use_weak_symbols" = xyes ; then
13078 echo "$as_me:13078: checking if $CC supports weak symbols" >&5
13079 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
13080 if test "${cf_cv_weak_symbols+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 cat >conftest.$ac_ext <<_ACEOF
13085 #line 13085 "configure"
13086 #include "confdefs.h"
13093 #if defined(__GNUC__)
13094 # if defined __USE_ISOC99
13095 # define _cat_pragma(exp) _Pragma(#exp)
13096 # define _weak_pragma(exp) _cat_pragma(weak name)
13098 # define _weak_pragma(exp)
13100 # define _declare(name) __extension__ extern __typeof__(name) name
13101 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
13104 weak_symbol(fopen);
13110 rm -f conftest.$ac_objext
13111 if { (eval echo "$as_me:13111: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>&5
13114 echo "$as_me:13114: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -s conftest.$ac_objext'
13117 { (eval echo "$as_me:13117: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:13120: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 cf_cv_weak_symbols=yes
13124 echo "$as_me: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 cf_cv_weak_symbols=no
13128 rm -f conftest.$ac_objext conftest.$ac_ext
13131 echo "$as_me:13131: result: $cf_cv_weak_symbols" >&5
13132 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
13135 cf_cv_weak_symbols=no
13138 if test "x$cf_cv_weak_symbols" = xyes ; then
13140 cat >>confdefs.h <<\EOF
13141 #define USE_WEAK_SYMBOLS 1
13148 if test "x$with_pthread" = "xyes" ; then
13150 cat >>confdefs.h <<\EOF
13151 #define USE_PTHREADS 1
13154 enable_reentrant=yes
13155 if test "x$cf_cv_weak_symbols" = xyes ; then
13160 # Reentrant code has to be opaque; there's little advantage to making ncurses
13161 # opaque outside of that, so there is no --enable-opaque option. We can use
13162 # this option without --with-pthreads, but this will be always set for
13164 echo "$as_me:13164: checking if you want reentrant code" >&5
13165 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
13167 # Check whether --enable-reentrant or --disable-reentrant was given.
13168 if test "${enable_reentrant+set}" = set; then
13169 enableval="$enable_reentrant"
13170 with_reentrant=$enableval
13174 echo "$as_me:13174: result: $with_reentrant" >&5
13175 echo "${ECHO_T}$with_reentrant" >&6
13176 if test "x$with_reentrant" = xyes ; then
13177 cf_cv_enable_reentrant=1
13178 cf_cv_enable_opaque="NCURSES_INTERNALS"
13180 if test "x$cf_cv_weak_symbols" = xyes ; then
13182 # remove pthread library from $LIBS
13183 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
13185 cf_add_libs="-lpthread"
13186 # Filter out duplicates - this happens with badly-designed ".pc" files...
13187 for cf_add_1lib in $TEST_LIBS
13189 for cf_add_2lib in $cf_add_libs
13191 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13197 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13199 TEST_LIBS="$cf_add_libs"
13201 cf_add_libs="-lpthread"
13202 # Filter out duplicates - this happens with badly-designed ".pc" files...
13203 for cf_add_1lib in $TEST_LIBS2
13205 for cf_add_2lib in $cf_add_libs
13207 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13213 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13215 TEST_LIBS2="$cf_add_libs"
13218 # when not using weak symbols but with_reentrant,
13219 # add 't' to the library suffix on all platforms
13220 # except cygwin, where we only do that if ALSO
13221 # compiling with full thread support.
13223 (*cygwin* | *msys*)
13224 if test "$with_pthread" = "yes" ; then
13225 if test "x$disable_lib_suffixes" = "xno" ; then
13226 LIB_SUFFIX="t${LIB_SUFFIX}"
13230 if test "x$disable_lib_suffixes" = "xno" ; then
13231 LIB_SUFFIX="t${LIB_SUFFIX}"
13237 cat >>confdefs.h <<\EOF
13238 #define USE_REENTRANT 1
13241 if test "${with_abi_version+set}" != set; then
13242 case $cf_cv_rel_version in
13244 cf_cv_rel_version=6.0
13245 cf_cv_abi_version=6
13246 { echo "$as_me:13246: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
13247 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
13253 cf_cv_enable_reentrant=0
13254 cf_cv_enable_opaque="NCURSES_OPAQUE"
13255 NCURSES_SIZE_T=short
13258 echo "$as_me:13258: checking if you want opaque curses-library structures" >&5
13259 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
13261 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
13262 if test "${enable_opaque_curses+set}" = set; then
13263 enableval="$enable_opaque_curses"
13264 test "$enableval" != yes && enableval=no
13265 if test "$enableval" != "no" ; then
13266 enable_opaque_curses=yes
13269 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
13270 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
13276 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
13277 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
13280 echo "$as_me:13280: result: $enable_opaque_curses" >&5
13281 echo "${ECHO_T}$enable_opaque_curses" >&6
13283 test "$cf_cv_enable_reentrant" = 1 && \
13284 test "$enable_opaque_curses" = no && \
13285 { { echo "$as_me:13285: error: reentrant configuration requires opaque library" >&5
13286 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
13287 { (exit 1); exit 1; }; }
13289 echo "$as_me:13289: checking if you want opaque form-library structures" >&5
13290 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
13292 # Check whether --enable-opaque-form or --disable-opaque-form was given.
13293 if test "${enable_opaque_form+set}" = set; then
13294 enableval="$enable_opaque_form"
13295 enable_opaque_form=yes
13297 enable_opaque_form=no
13299 echo "$as_me:13299: result: $enable_opaque_form" >&5
13300 echo "${ECHO_T}$enable_opaque_form" >&6
13302 echo "$as_me:13302: checking if you want opaque menu-library structures" >&5
13303 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
13305 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
13306 if test "${enable_opaque_menu+set}" = set; then
13307 enableval="$enable_opaque_menu"
13308 enable_opaque_menu=yes
13310 enable_opaque_menu=no
13312 echo "$as_me:13312: result: $enable_opaque_menu" >&5
13313 echo "${ECHO_T}$enable_opaque_menu" >&6
13315 echo "$as_me:13315: checking if you want opaque panel-library structures" >&5
13316 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
13318 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
13319 if test "${enable_opaque_panel+set}" = set; then
13320 enableval="$enable_opaque_panel"
13321 enable_opaque_panel=yes
13323 enable_opaque_panel=no
13325 echo "$as_me:13325: result: $enable_opaque_panel" >&5
13326 echo "${ECHO_T}$enable_opaque_panel" >&6
13328 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
13329 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
13330 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
13331 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
13333 ### Allow using a different wrap-prefix
13334 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
13335 echo "$as_me:13335: checking for prefix used to wrap public variables" >&5
13336 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
13338 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
13339 if test "${with_wrap_prefix+set}" = set; then
13340 withval="$with_wrap_prefix"
13341 NCURSES_WRAP_PREFIX=$withval
13343 NCURSES_WRAP_PREFIX=_nc_
13345 echo "$as_me:13345: result: $NCURSES_WRAP_PREFIX" >&5
13346 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
13348 NCURSES_WRAP_PREFIX=_nc_
13351 cat >>confdefs.h <<EOF
13352 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
13355 ###############################################################################
13356 # These options are relatively safe to experiment with.
13358 echo "$as_me:13358: checking if you want all development code" >&5
13359 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
13361 # Check whether --with-develop or --without-develop was given.
13362 if test "${with_develop+set}" = set; then
13363 withval="$with_develop"
13364 with_develop=$withval
13368 echo "$as_me:13368: result: $with_develop" >&5
13369 echo "${ECHO_T}$with_develop" >&6
13371 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
13372 echo "$as_me:13372: checking if you want hard-tabs code" >&5
13373 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
13375 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
13376 if test "${enable_hard_tabs+set}" = set; then
13377 enableval="$enable_hard_tabs"
13380 enable_hard_tabs=$with_develop
13382 echo "$as_me:13382: result: $enable_hard_tabs" >&5
13383 echo "${ECHO_T}$enable_hard_tabs" >&6
13384 test "x$enable_hard_tabs" = xyes &&
13385 cat >>confdefs.h <<\EOF
13386 #define USE_HARD_TABS 1
13389 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
13390 echo "$as_me:13390: checking if you want limited support for xmc" >&5
13391 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
13393 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
13394 if test "${enable_xmc_glitch+set}" = set; then
13395 enableval="$enable_xmc_glitch"
13398 enable_xmc_glitch=$with_develop
13400 echo "$as_me:13400: result: $enable_xmc_glitch" >&5
13401 echo "${ECHO_T}$enable_xmc_glitch" >&6
13402 test "x$enable_xmc_glitch" = xyes &&
13403 cat >>confdefs.h <<\EOF
13404 #define USE_XMC_SUPPORT 1
13407 ###############################################################################
13408 # These are just experimental, probably should not be in a package:
13410 echo "$as_me:13410: checking if you do not want to assume colors are white-on-black" >&5
13411 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
13413 # Check whether --enable-assumed-color or --disable-assumed-color was given.
13414 if test "${enable_assumed_color+set}" = set; then
13415 enableval="$enable_assumed_color"
13416 with_assumed_color=$enableval
13418 with_assumed_color=yes
13420 echo "$as_me:13420: result: $with_assumed_color" >&5
13421 echo "${ECHO_T}$with_assumed_color" >&6
13422 test "x$with_assumed_color" = xyes &&
13423 cat >>confdefs.h <<\EOF
13424 #define USE_ASSUMED_COLOR 1
13427 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
13428 echo "$as_me:13428: checking if you want hashmap scrolling-optimization code" >&5
13429 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
13431 # Check whether --enable-hashmap or --disable-hashmap was given.
13432 if test "${enable_hashmap+set}" = set; then
13433 enableval="$enable_hashmap"
13434 with_hashmap=$enableval
13438 echo "$as_me:13438: result: $with_hashmap" >&5
13439 echo "${ECHO_T}$with_hashmap" >&6
13440 test "x$with_hashmap" = xyes &&
13441 cat >>confdefs.h <<\EOF
13442 #define USE_HASHMAP 1
13445 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
13446 echo "$as_me:13446: checking if you want colorfgbg code" >&5
13447 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
13449 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
13450 if test "${enable_colorfgbg+set}" = set; then
13451 enableval="$enable_colorfgbg"
13452 with_colorfgbg=$enableval
13456 echo "$as_me:13456: result: $with_colorfgbg" >&5
13457 echo "${ECHO_T}$with_colorfgbg" >&6
13458 test "x$with_colorfgbg" = xyes &&
13459 cat >>confdefs.h <<\EOF
13460 #define USE_COLORFGBG 1
13463 ### use option --enable-interop to turn on use of bindings used for interop
13464 echo "$as_me:13464: checking if you want interop bindings" >&5
13465 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
13467 # Check whether --enable-interop or --disable-interop was given.
13468 if test "${enable_interop+set}" = set; then
13469 enableval="$enable_interop"
13470 with_exp_interop=$enableval
13472 with_exp_interop=$cf_dft_interop
13474 echo "$as_me:13474: result: $with_exp_interop" >&5
13475 echo "${ECHO_T}$with_exp_interop" >&6
13477 NCURSES_INTEROP_FUNCS=0
13478 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
13480 echo "$as_me:13480: checking if you want experimental safe-sprintf code" >&5
13481 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
13483 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
13484 if test "${enable_safe_sprintf+set}" = set; then
13485 enableval="$enable_safe_sprintf"
13486 with_safe_sprintf=$enableval
13488 with_safe_sprintf=no
13490 echo "$as_me:13490: result: $with_safe_sprintf" >&5
13491 echo "${ECHO_T}$with_safe_sprintf" >&6
13492 test "x$with_safe_sprintf" = xyes &&
13493 cat >>confdefs.h <<\EOF
13494 #define USE_SAFE_SPRINTF 1
13497 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
13498 # when hashmap is used scroll hints are useless
13499 if test "$with_hashmap" = no ; then
13500 echo "$as_me:13500: checking if you want to experiment without scrolling-hints code" >&5
13501 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
13503 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
13504 if test "${enable_scroll_hints+set}" = set; then
13505 enableval="$enable_scroll_hints"
13506 with_scroll_hints=$enableval
13508 with_scroll_hints=yes
13510 echo "$as_me:13510: result: $with_scroll_hints" >&5
13511 echo "${ECHO_T}$with_scroll_hints" >&6
13512 test "x$with_scroll_hints" = xyes &&
13513 cat >>confdefs.h <<\EOF
13514 #define USE_SCROLL_HINTS 1
13519 echo "$as_me:13519: checking if you want wgetch-events code" >&5
13520 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
13522 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
13523 if test "${enable_wgetch_events+set}" = set; then
13524 enableval="$enable_wgetch_events"
13525 with_wgetch_events=$enableval
13527 with_wgetch_events=no
13529 echo "$as_me:13529: result: $with_wgetch_events" >&5
13530 echo "${ECHO_T}$with_wgetch_events" >&6
13531 test "x$with_wgetch_events" = xyes &&
13532 cat >>confdefs.h <<\EOF
13533 #define NCURSES_WGETCH_EVENTS 1
13536 ###############################################################################
13538 ### use option --disable-echo to suppress full display compiling commands
13540 echo "$as_me:13540: checking if you want to see long compiling messages" >&5
13541 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
13543 # Check whether --enable-echo or --disable-echo was given.
13544 if test "${enable_echo+set}" = set; then
13545 enableval="$enable_echo"
13546 test "$enableval" != no && enableval=yes
13547 if test "$enableval" != "yes" ; then
13550 ECHO_LD='@echo linking $@;'
13551 RULE_CC='@echo compiling $<'
13552 SHOW_CC='@echo compiling $@'
13574 echo "$as_me:13574: result: $enableval" >&5
13575 echo "${ECHO_T}$enableval" >&6
13577 if test "x$enable_echo" = xyes; then
13580 ECHO_LINK='@ echo linking $@ ... ;'
13581 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
13582 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
13585 ### use option --enable-warnings to turn on all gcc warnings
13586 echo "$as_me:13586: checking if you want to see compiler warnings" >&5
13587 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
13589 # Check whether --enable-warnings or --disable-warnings was given.
13590 if test "${enable_warnings+set}" = set; then
13591 enableval="$enable_warnings"
13592 with_warnings=$enableval
13594 echo "$as_me:13594: result: $with_warnings" >&5
13595 echo "${ECHO_T}$with_warnings" >&6
13597 if test "x$with_warnings" = "xyes"; then
13599 ADAFLAGS="$ADAFLAGS -gnatg"
13603 if test "$GCC" = yes ; then
13606 echo "$as_me:13606: checking if this is really Intel C compiler" >&5
13607 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
13608 cf_save_CFLAGS="$CFLAGS"
13609 CFLAGS="$CFLAGS -no-gcc"
13610 cat >conftest.$ac_ext <<_ACEOF
13611 #line 13611 "configure"
13612 #include "confdefs.h"
13618 #ifdef __INTEL_COMPILER
13627 rm -f conftest.$ac_objext
13628 if { (eval echo "$as_me:13628: \"$ac_compile\"") >&5
13629 (eval $ac_compile) 2>&5
13631 echo "$as_me:13631: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -s conftest.$ac_objext'
13634 { (eval echo "$as_me:13634: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:13637: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13640 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13643 echo "$as_me: failed program was:" >&5
13644 cat conftest.$ac_ext >&5
13646 rm -f conftest.$ac_objext conftest.$ac_ext
13647 CFLAGS="$cf_save_CFLAGS"
13648 echo "$as_me:13648: result: $INTEL_COMPILER" >&5
13649 echo "${ECHO_T}$INTEL_COMPILER" >&6
13656 if test "$GCC" = yes ; then
13657 echo "$as_me:13657: checking if this is really Clang C compiler" >&5
13658 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
13659 cf_save_CFLAGS="$CFLAGS"
13660 CFLAGS="$CFLAGS -Qunused-arguments"
13661 cat >conftest.$ac_ext <<_ACEOF
13662 #line 13662 "configure"
13663 #include "confdefs.h"
13678 rm -f conftest.$ac_objext
13679 if { (eval echo "$as_me:13679: \"$ac_compile\"") >&5
13680 (eval $ac_compile) 2>&5
13682 echo "$as_me:13682: \$? = $ac_status" >&5
13683 (exit $ac_status); } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (eval echo "$as_me:13685: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:13688: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13691 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13694 echo "$as_me: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13697 rm -f conftest.$ac_objext conftest.$ac_ext
13698 CFLAGS="$cf_save_CFLAGS"
13699 echo "$as_me:13699: result: $CLANG_COMPILER" >&5
13700 echo "${ECHO_T}$CLANG_COMPILER" >&6
13703 cat > conftest.$ac_ext <<EOF
13704 #line 13704 "${as_me:-configure}"
13705 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13708 if test "$INTEL_COMPILER" = yes
13710 # The "-wdXXX" options suppress warnings:
13711 # remark #1419: external declaration in primary source file
13712 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13713 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13714 # remark #193: zero used for undefined preprocessing identifier
13715 # remark #593: variable "curs_sb_left_arrow" was set but never used
13716 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13717 # remark #869: parameter "tw" was never referenced
13718 # remark #981: operands are evaluated in unspecified order
13719 # warning #279: controlling expression is constant
13721 { echo "$as_me:13721: checking for $CC warning options..." >&5
13722 echo "$as_me: checking for $CC warning options..." >&6;}
13723 cf_save_CFLAGS="$CFLAGS"
13724 EXTRA_CFLAGS="-Wall"
13736 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13737 if { (eval echo "$as_me:13737: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13740 echo "$as_me:13740: \$? = $ac_status" >&5
13741 (exit $ac_status); }; then
13742 test -n "$verbose" && echo "$as_me:13742: result: ... -$cf_opt" >&5
13743 echo "${ECHO_T}... -$cf_opt" >&6
13744 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13747 CFLAGS="$cf_save_CFLAGS"
13749 elif test "$GCC" = yes
13751 { echo "$as_me:13751: checking for $CC warning options..." >&5
13752 echo "$as_me: checking for $CC warning options..." >&6;}
13753 cf_save_CFLAGS="$CFLAGS"
13756 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13757 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13758 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13759 for cf_opt in W Wall \
13760 Wbad-function-cast \
13763 Wdeclaration-after-statement \
13766 Wmissing-declarations \
13767 Wmissing-prototypes \
13771 Wstrict-prototypes \
13772 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13774 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13775 if { (eval echo "$as_me:13775: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>&5
13778 echo "$as_me:13778: \$? = $ac_status" >&5
13779 (exit $ac_status); }; then
13780 test -n "$verbose" && echo "$as_me:13780: result: ... -$cf_opt" >&5
13781 echo "${ECHO_T}... -$cf_opt" >&6
13784 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13787 case $GCC_VERSION in
13789 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13791 echo "${as_me:-configure}:13791: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13797 case $GCC_VERSION in
13799 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13801 echo "${as_me:-configure}:13801: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13807 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13810 CFLAGS="$cf_save_CFLAGS"
13814 if test "x$cf_with_cxx" = xyes ; then
13818 if test "$GCC" = yes ; then
13821 echo "$as_me:13821: checking if this is really Intel C++ compiler" >&5
13822 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13823 cf_save_CFLAGS="$CXXFLAGS"
13824 CXXFLAGS="$CXXFLAGS -no-gcc"
13825 cat >conftest.$ac_ext <<_ACEOF
13826 #line 13826 "configure"
13827 #include "confdefs.h"
13833 #ifdef __INTEL_COMPILER
13842 rm -f conftest.$ac_objext
13843 if { (eval echo "$as_me:13843: \"$ac_compile\"") >&5
13844 (eval $ac_compile) 2>&5
13846 echo "$as_me:13846: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:13849: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:13852: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 INTEL_CPLUSPLUS=yes
13855 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13858 echo "$as_me: failed program was:" >&5
13859 cat conftest.$ac_ext >&5
13861 rm -f conftest.$ac_objext conftest.$ac_ext
13862 CXXFLAGS="$cf_save_CFLAGS"
13863 echo "$as_me:13863: result: $INTEL_CPLUSPLUS" >&5
13864 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13871 if test "$GCC" = yes ; then
13872 echo "$as_me:13872: checking if this is really Clang C++ compiler" >&5
13873 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13874 cf_save_CFLAGS="$CXXFLAGS"
13875 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13876 cat >conftest.$ac_ext <<_ACEOF
13877 #line 13877 "configure"
13878 #include "confdefs.h"
13893 rm -f conftest.$ac_objext
13894 if { (eval echo "$as_me:13894: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>&5
13897 echo "$as_me:13897: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -s conftest.$ac_objext'
13900 { (eval echo "$as_me:13900: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13903 echo "$as_me:13903: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 CLANG_CPLUSPLUS=yes
13906 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13909 echo "$as_me: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13912 rm -f conftest.$ac_objext conftest.$ac_ext
13913 CXXFLAGS="$cf_save_CFLAGS"
13914 echo "$as_me:13914: result: $CLANG_CPLUSPLUS" >&5
13915 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13919 ac_cpp='$CXXCPP $CPPFLAGS'
13920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13923 ac_main_return=return
13925 cat > conftest.$ac_ext <<EOF
13926 #line 13926 "configure"
13927 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13930 if test "$INTEL_CPLUSPLUS" = yes
13932 # The "-wdXXX" options suppress warnings:
13933 # remark #1419: external declaration in primary source file
13934 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13935 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13936 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13937 # remark #193: zero used for undefined preprocessing identifier
13938 # remark #593: variable "curs_sb_left_arrow" was set but never used
13939 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13940 # remark #869: parameter "tw" was never referenced
13941 # remark #981: operands are evaluated in unspecified order
13942 # warning #269: invalid format string conversion
13944 { echo "$as_me:13944: checking for $CC warning options..." >&5
13945 echo "$as_me: checking for $CC warning options..." >&6;}
13946 cf_save_CXXFLAGS="$CXXFLAGS"
13947 EXTRA_CXXFLAGS="-Wall"
13960 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13961 if { (eval echo "$as_me:13961: \"$ac_compile\"") >&5
13962 (eval $ac_compile) 2>&5
13964 echo "$as_me:13964: \$? = $ac_status" >&5
13965 (exit $ac_status); }; then
13966 test -n "$verbose" && echo "$as_me:13966: result: ... -$cf_opt" >&5
13967 echo "${ECHO_T}... -$cf_opt" >&6
13968 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13971 CXXFLAGS="$cf_save_CXXFLAGS"
13973 elif test "$GXX" = yes
13975 { echo "$as_me:13975: checking for $CXX warning options..." >&5
13976 echo "$as_me: checking for $CXX warning options..." >&6;}
13977 cf_save_CXXFLAGS="$CXXFLAGS"
13978 EXTRA_CXXFLAGS="-W -Wall"
13979 cf_gxx_extra_warnings=""
13980 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13981 case "$GCC_VERSION" in
13985 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13992 Wignored-qualifiers \
13994 Woverloaded-virtual \
14002 Wundef $cf_gxx_extra_warnings Wno-unused
14004 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
14005 if { (eval echo "$as_me:14005: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>&5
14008 echo "$as_me:14008: \$? = $ac_status" >&5
14009 (exit $ac_status); }; then
14010 test -n "$verbose" && echo "$as_me:14010: result: ... -$cf_opt" >&5
14011 echo "${ECHO_T}... -$cf_opt" >&6
14012 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
14014 test -n "$verbose" && echo "$as_me:14014: result: ... no -$cf_opt" >&5
14015 echo "${ECHO_T}... no -$cf_opt" >&6
14018 CXXFLAGS="$cf_save_CXXFLAGS"
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027 ac_main_return=return
14032 if test "$GCC" = yes
14034 cat > conftest.i <<EOF
14036 #define GCC_PRINTF 0
14039 #define GCC_SCANF 0
14041 #ifndef GCC_NORETURN
14042 #define GCC_NORETURN /* nothing */
14045 #define GCC_UNUSED /* nothing */
14048 if test "$GCC" = yes
14050 { echo "$as_me:14050: checking for $CC __attribute__ directives..." >&5
14051 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
14052 cat > conftest.$ac_ext <<EOF
14053 #line 14053 "${as_me:-configure}"
14054 #include "confdefs.h"
14055 #include "conftest.h"
14056 #include "conftest.i"
14058 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
14060 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
14063 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
14065 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
14067 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
14068 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
14069 extern void foo(void) GCC_NORETURN;
14070 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
14072 cf_printf_attribute=no
14073 cf_scanf_attribute=no
14074 for cf_attribute in scanf printf unused noreturn
14077 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14079 cf_directive="__attribute__(($cf_attribute))"
14080 echo "checking for $CC $cf_directive" 1>&5
14082 case $cf_attribute in
14084 cf_printf_attribute=yes
14085 cat >conftest.h <<EOF
14086 #define GCC_$cf_ATTRIBUTE 1
14090 cf_scanf_attribute=yes
14091 cat >conftest.h <<EOF
14092 #define GCC_$cf_ATTRIBUTE 1
14096 cat >conftest.h <<EOF
14097 #define GCC_$cf_ATTRIBUTE $cf_directive
14102 if { (eval echo "$as_me:14102: \"$ac_compile\"") >&5
14103 (eval $ac_compile) 2>&5
14105 echo "$as_me:14105: \$? = $ac_status" >&5
14106 (exit $ac_status); }; then
14107 test -n "$verbose" && echo "$as_me:14107: result: ... $cf_attribute" >&5
14108 echo "${ECHO_T}... $cf_attribute" >&6
14109 cat conftest.h >>confdefs.h
14110 case $cf_attribute in
14113 cat >>confdefs.h <<EOF
14114 #define GCC_NORETURN $cf_directive
14119 cf_value='/* nothing */'
14120 if test "$cf_printf_attribute" != no ; then
14121 cf_value='__attribute__((format(printf,fmt,var)))'
14123 cat >>confdefs.h <<\EOF
14124 #define GCC_PRINTF 1
14129 cat >>confdefs.h <<EOF
14130 #define GCC_PRINTFLIKE(fmt,var) $cf_value
14135 cf_value='/* nothing */'
14136 if test "$cf_scanf_attribute" != no ; then
14137 cf_value='__attribute__((format(scanf,fmt,var)))'
14139 cat >>confdefs.h <<\EOF
14140 #define GCC_SCANF 1
14145 cat >>confdefs.h <<EOF
14146 #define GCC_SCANFLIKE(fmt,var) $cf_value
14152 cat >>confdefs.h <<EOF
14153 #define GCC_UNUSED $cf_directive
14161 fgrep define conftest.i >>confdefs.h
14166 echo "$as_me:14166: checking if you want to work around bogus compiler/loader warnings" >&5
14167 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
14169 # Check whether --enable-string-hacks or --disable-string-hacks was given.
14170 if test "${enable_string_hacks+set}" = set; then
14171 enableval="$enable_string_hacks"
14172 with_string_hacks=$enableval
14174 with_string_hacks=no
14176 echo "$as_me:14176: result: $with_string_hacks" >&5
14177 echo "${ECHO_T}$with_string_hacks" >&6
14179 if test "x$with_string_hacks" = "xyes"; then
14181 cat >>confdefs.h <<\EOF
14182 #define USE_STRING_HACKS 1
14185 { echo "$as_me:14185: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
14186 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
14187 echo "$as_me:14187: checking for strlcat" >&5
14188 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
14189 if test "${ac_cv_func_strlcat+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 cat >conftest.$ac_ext <<_ACEOF
14193 #line 14193 "configure"
14194 #include "confdefs.h"
14195 /* System header to define __stub macros and hopefully few prototypes,
14196 which can conflict with char strlcat (); below. */
14197 #include <assert.h>
14198 /* Override any gcc2 internal prototype to avoid an error. */
14202 /* We use char because int might match the return type of a gcc2
14203 builtin and then its argument prototype would still apply. */
14210 /* The GNU C library defines this for functions which it implements
14211 to always fail with ENOSYS. Some functions are actually named
14212 something starting with __ and the normal name is an alias. */
14213 #if defined (__stub_strlcat) || defined (__stub___strlcat)
14216 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14223 rm -f conftest.$ac_objext conftest$ac_exeext
14224 if { (eval echo "$as_me:14224: \"$ac_link\"") >&5
14225 (eval $ac_link) 2>&5
14227 echo "$as_me:14227: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -s conftest$ac_exeext'
14230 { (eval echo "$as_me:14230: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:14233: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_func_strlcat=yes
14237 echo "$as_me: failed program was:" >&5
14238 cat conftest.$ac_ext >&5
14239 ac_cv_func_strlcat=no
14241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14243 echo "$as_me:14243: result: $ac_cv_func_strlcat" >&5
14244 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
14245 if test $ac_cv_func_strlcat = yes; then
14247 cat >>confdefs.h <<\EOF
14248 #define HAVE_STRLCAT 1
14253 echo "$as_me:14253: checking for strlcat in -lbsd" >&5
14254 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
14255 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 ac_check_lib_save_LIBS=$LIBS
14260 cat >conftest.$ac_ext <<_ACEOF
14261 #line 14261 "configure"
14262 #include "confdefs.h"
14264 /* Override any gcc2 internal prototype to avoid an error. */
14268 /* We use char because int might match the return type of a gcc2
14269 builtin and then its argument prototype would still apply. */
14279 rm -f conftest.$ac_objext conftest$ac_exeext
14280 if { (eval echo "$as_me:14280: \"$ac_link\"") >&5
14281 (eval $ac_link) 2>&5
14283 echo "$as_me:14283: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -s conftest$ac_exeext'
14286 { (eval echo "$as_me:14286: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:14289: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_cv_lib_bsd_strlcat=yes
14293 echo "$as_me: failed program was:" >&5
14294 cat conftest.$ac_ext >&5
14295 ac_cv_lib_bsd_strlcat=no
14297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14298 LIBS=$ac_check_lib_save_LIBS
14300 echo "$as_me:14300: result: $ac_cv_lib_bsd_strlcat" >&5
14301 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
14302 if test $ac_cv_lib_bsd_strlcat = yes; then
14304 cf_add_libs="-lbsd"
14305 # Filter out duplicates - this happens with badly-designed ".pc" files...
14306 for cf_add_1lib in $LIBS
14308 for cf_add_2lib in $cf_add_libs
14310 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14316 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14318 LIBS="$cf_add_libs"
14320 for ac_header in bsd/string.h
14322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323 echo "$as_me:14323: checking for $ac_header" >&5
14324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 cat >conftest.$ac_ext <<_ACEOF
14329 #line 14329 "configure"
14330 #include "confdefs.h"
14331 #include <$ac_header>
14333 if { (eval echo "$as_me:14333: \"$ac_cpp conftest.$ac_ext\"") >&5
14334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14336 egrep -v '^ *\+' conftest.er1 >conftest.err
14338 cat conftest.err >&5
14339 echo "$as_me:14339: \$? = $ac_status" >&5
14340 (exit $ac_status); } >/dev/null; then
14341 if test -s conftest.err; then
14342 ac_cpp_err=$ac_c_preproc_warn_flag
14349 if test -z "$ac_cpp_err"; then
14350 eval "$as_ac_Header=yes"
14352 echo "$as_me: failed program was:" >&5
14353 cat conftest.$ac_ext >&5
14354 eval "$as_ac_Header=no"
14356 rm -f conftest.err conftest.$ac_ext
14358 echo "$as_me:14358: result: `eval echo '${'$as_ac_Header'}'`" >&5
14359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361 cat >>confdefs.h <<EOF
14362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14368 cat >>confdefs.h <<\EOF
14369 #define HAVE_STRLCAT 1
14376 for ac_func in strlcpy snprintf
14378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14379 echo "$as_me:14379: checking for $ac_func" >&5
14380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14381 if eval "test \"\${$as_ac_var+set}\" = set"; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 cat >conftest.$ac_ext <<_ACEOF
14385 #line 14385 "configure"
14386 #include "confdefs.h"
14387 /* System header to define __stub macros and hopefully few prototypes,
14388 which can conflict with char $ac_func (); below. */
14389 #include <assert.h>
14390 /* Override any gcc2 internal prototype to avoid an error. */
14394 /* We use char because int might match the return type of a gcc2
14395 builtin and then its argument prototype would still apply. */
14402 /* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
14405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14408 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14415 rm -f conftest.$ac_objext conftest$ac_exeext
14416 if { (eval echo "$as_me:14416: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>&5
14419 echo "$as_me:14419: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -s conftest$ac_exeext'
14422 { (eval echo "$as_me:14422: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:14425: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 eval "$as_ac_var=yes"
14429 echo "$as_me: failed program was:" >&5
14430 cat conftest.$ac_ext >&5
14431 eval "$as_ac_var=no"
14433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14435 echo "$as_me:14435: result: `eval echo '${'$as_ac_var'}'`" >&5
14436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14437 if test `eval echo '${'$as_ac_var'}'` = yes; then
14438 cat >>confdefs.h <<EOF
14439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14447 ### use option --enable-assertions to turn on generation of assertion code
14448 echo "$as_me:14448: checking if you want to enable runtime assertions" >&5
14449 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
14451 # Check whether --enable-assertions or --disable-assertions was given.
14452 if test "${enable_assertions+set}" = set; then
14453 enableval="$enable_assertions"
14454 with_assertions=$enableval
14458 echo "$as_me:14458: result: $with_assertions" >&5
14459 echo "${ECHO_T}$with_assertions" >&6
14462 if test "$with_assertions" = no
14464 CPPFLAGS="$CPPFLAGS -DNDEBUG"
14467 ADAFLAGS="$ADAFLAGS -gnata"
14472 ### use option --disable-leaks to suppress "permanent" leaks, for testing
14474 echo "$as_me:14474: checking if you want to use dmalloc for testing" >&5
14475 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
14477 # Check whether --with-dmalloc or --without-dmalloc was given.
14478 if test "${with_dmalloc+set}" = set; then
14479 withval="$with_dmalloc"
14481 cat >>confdefs.h <<EOF
14482 #define USE_DMALLOC 1
14485 : ${with_cflags:=-g}
14486 : ${with_no_leaks:=yes}
14491 echo "$as_me:14491: result: ${with_dmalloc:-no}" >&5
14492 echo "${ECHO_T}${with_dmalloc:-no}" >&6
14494 case .$with_cflags in
14504 cf_new_extra_cppflags=
14506 for cf_add_cflags in -g
14508 case $cf_fix_cppflags in
14510 case $cf_add_cflags in
14511 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14512 case $cf_add_cflags in
14514 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14516 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14517 && test -z "${cf_tst_cflags}" \
14518 && cf_fix_cppflags=yes
14520 if test $cf_fix_cppflags = yes ; then
14522 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14523 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14526 elif test "${cf_tst_cflags}" = "\"'" ; then
14528 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14529 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14535 case "$CPPFLAGS" in
14539 case $cf_add_cflags in
14541 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14543 CPPFLAGS=`echo "$CPPFLAGS" | \
14544 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14545 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14550 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14551 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14558 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14559 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14566 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14567 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14569 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14571 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14572 && test -z "${cf_tst_cflags}" \
14573 && cf_fix_cppflags=no
14578 if test -n "$cf_new_cflags" ; then
14580 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14581 CFLAGS="${CFLAGS}$cf_new_cflags"
14585 if test -n "$cf_new_cppflags" ; then
14587 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14588 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14592 if test -n "$cf_new_extra_cppflags" ; then
14594 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14595 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14604 if test "$with_dmalloc" = yes ; then
14605 echo "$as_me:14605: checking for dmalloc.h" >&5
14606 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
14607 if test "${ac_cv_header_dmalloc_h+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line 14611 "configure"
14612 #include "confdefs.h"
14613 #include <dmalloc.h>
14615 if { (eval echo "$as_me:14615: \"$ac_cpp conftest.$ac_ext\"") >&5
14616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14618 egrep -v '^ *\+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 echo "$as_me:14621: \$? = $ac_status" >&5
14622 (exit $ac_status); } >/dev/null; then
14623 if test -s conftest.err; then
14624 ac_cpp_err=$ac_c_preproc_warn_flag
14631 if test -z "$ac_cpp_err"; then
14632 ac_cv_header_dmalloc_h=yes
14634 echo "$as_me: failed program was:" >&5
14635 cat conftest.$ac_ext >&5
14636 ac_cv_header_dmalloc_h=no
14638 rm -f conftest.err conftest.$ac_ext
14640 echo "$as_me:14640: result: $ac_cv_header_dmalloc_h" >&5
14641 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
14642 if test $ac_cv_header_dmalloc_h = yes; then
14644 echo "$as_me:14644: checking for dmalloc_debug in -ldmalloc" >&5
14645 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
14646 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 ac_check_lib_save_LIBS=$LIBS
14650 LIBS="-ldmalloc $LIBS"
14651 cat >conftest.$ac_ext <<_ACEOF
14652 #line 14652 "configure"
14653 #include "confdefs.h"
14655 /* Override any gcc2 internal prototype to avoid an error. */
14659 /* We use char because int might match the return type of a gcc2
14660 builtin and then its argument prototype would still apply. */
14661 char dmalloc_debug ();
14670 rm -f conftest.$ac_objext conftest$ac_exeext
14671 if { (eval echo "$as_me:14671: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>&5
14674 echo "$as_me:14674: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:14677: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 echo "$as_me:14680: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_cv_lib_dmalloc_dmalloc_debug=yes
14684 echo "$as_me: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14686 ac_cv_lib_dmalloc_dmalloc_debug=no
14688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14689 LIBS=$ac_check_lib_save_LIBS
14691 echo "$as_me:14691: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
14692 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
14693 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
14694 cat >>confdefs.h <<EOF
14695 #define HAVE_LIBDMALLOC 1
14698 LIBS="-ldmalloc $LIBS"
14706 echo "$as_me:14706: checking if you want to use dbmalloc for testing" >&5
14707 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
14709 # Check whether --with-dbmalloc or --without-dbmalloc was given.
14710 if test "${with_dbmalloc+set}" = set; then
14711 withval="$with_dbmalloc"
14713 cat >>confdefs.h <<EOF
14714 #define USE_DBMALLOC 1
14717 : ${with_cflags:=-g}
14718 : ${with_no_leaks:=yes}
14723 echo "$as_me:14723: result: ${with_dbmalloc:-no}" >&5
14724 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
14726 case .$with_cflags in
14736 cf_new_extra_cppflags=
14738 for cf_add_cflags in -g
14740 case $cf_fix_cppflags in
14742 case $cf_add_cflags in
14743 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14744 case $cf_add_cflags in
14746 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14748 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14749 && test -z "${cf_tst_cflags}" \
14750 && cf_fix_cppflags=yes
14752 if test $cf_fix_cppflags = yes ; then
14754 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14755 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14758 elif test "${cf_tst_cflags}" = "\"'" ; then
14760 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14761 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14767 case "$CPPFLAGS" in
14771 case $cf_add_cflags in
14773 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14775 CPPFLAGS=`echo "$CPPFLAGS" | \
14776 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14777 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14782 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14783 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14790 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14791 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14798 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14799 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14801 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14803 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14804 && test -z "${cf_tst_cflags}" \
14805 && cf_fix_cppflags=no
14810 if test -n "$cf_new_cflags" ; then
14812 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14813 CFLAGS="${CFLAGS}$cf_new_cflags"
14817 if test -n "$cf_new_cppflags" ; then
14819 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14820 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14824 if test -n "$cf_new_extra_cppflags" ; then
14826 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14827 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14836 if test "$with_dbmalloc" = yes ; then
14837 echo "$as_me:14837: checking for dbmalloc.h" >&5
14838 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
14839 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 cat >conftest.$ac_ext <<_ACEOF
14843 #line 14843 "configure"
14844 #include "confdefs.h"
14845 #include <dbmalloc.h>
14847 if { (eval echo "$as_me:14847: \"$ac_cpp conftest.$ac_ext\"") >&5
14848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14850 egrep -v '^ *\+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 echo "$as_me:14853: \$? = $ac_status" >&5
14854 (exit $ac_status); } >/dev/null; then
14855 if test -s conftest.err; then
14856 ac_cpp_err=$ac_c_preproc_warn_flag
14863 if test -z "$ac_cpp_err"; then
14864 ac_cv_header_dbmalloc_h=yes
14866 echo "$as_me: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 ac_cv_header_dbmalloc_h=no
14870 rm -f conftest.err conftest.$ac_ext
14872 echo "$as_me:14872: result: $ac_cv_header_dbmalloc_h" >&5
14873 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
14874 if test $ac_cv_header_dbmalloc_h = yes; then
14876 echo "$as_me:14876: checking for debug_malloc in -ldbmalloc" >&5
14877 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
14878 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 ac_check_lib_save_LIBS=$LIBS
14882 LIBS="-ldbmalloc $LIBS"
14883 cat >conftest.$ac_ext <<_ACEOF
14884 #line 14884 "configure"
14885 #include "confdefs.h"
14887 /* Override any gcc2 internal prototype to avoid an error. */
14891 /* We use char because int might match the return type of a gcc2
14892 builtin and then its argument prototype would still apply. */
14893 char debug_malloc ();
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (eval echo "$as_me:14903: \"$ac_link\"") >&5
14904 (eval $ac_link) 2>&5
14906 echo "$as_me:14906: \$? = $ac_status" >&5
14907 (exit $ac_status); } &&
14908 { ac_try='test -s conftest$ac_exeext'
14909 { (eval echo "$as_me:14909: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14912 echo "$as_me:14912: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_lib_dbmalloc_debug_malloc=yes
14916 echo "$as_me: failed program was:" >&5
14917 cat conftest.$ac_ext >&5
14918 ac_cv_lib_dbmalloc_debug_malloc=no
14920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14921 LIBS=$ac_check_lib_save_LIBS
14923 echo "$as_me:14923: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
14924 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
14925 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
14926 cat >>confdefs.h <<EOF
14927 #define HAVE_LIBDBMALLOC 1
14930 LIBS="-ldbmalloc $LIBS"
14938 echo "$as_me:14938: checking if you want to use valgrind for testing" >&5
14939 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
14941 # Check whether --with-valgrind or --without-valgrind was given.
14942 if test "${with_valgrind+set}" = set; then
14943 withval="$with_valgrind"
14945 cat >>confdefs.h <<EOF
14946 #define USE_VALGRIND 1
14949 : ${with_cflags:=-g}
14950 : ${with_no_leaks:=yes}
14955 echo "$as_me:14955: result: ${with_valgrind:-no}" >&5
14956 echo "${ECHO_T}${with_valgrind:-no}" >&6
14958 case .$with_cflags in
14968 cf_new_extra_cppflags=
14970 for cf_add_cflags in -g
14972 case $cf_fix_cppflags in
14974 case $cf_add_cflags in
14975 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14976 case $cf_add_cflags in
14978 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14980 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14981 && test -z "${cf_tst_cflags}" \
14982 && cf_fix_cppflags=yes
14984 if test $cf_fix_cppflags = yes ; then
14986 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14987 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14990 elif test "${cf_tst_cflags}" = "\"'" ; then
14992 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14993 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14999 case "$CPPFLAGS" in
15003 case $cf_add_cflags in
15005 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15007 CPPFLAGS=`echo "$CPPFLAGS" | \
15008 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15009 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15014 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15015 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15022 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15023 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15030 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15031 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15033 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15035 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15036 && test -z "${cf_tst_cflags}" \
15037 && cf_fix_cppflags=no
15042 if test -n "$cf_new_cflags" ; then
15044 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15045 CFLAGS="${CFLAGS}$cf_new_cflags"
15049 if test -n "$cf_new_cppflags" ; then
15051 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15052 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15056 if test -n "$cf_new_extra_cppflags" ; then
15058 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15059 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15068 echo "$as_me:15068: checking if you want to perform memory-leak testing" >&5
15069 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
15071 # Check whether --enable-leaks or --disable-leaks was given.
15072 if test "${enable_leaks+set}" = set; then
15073 enableval="$enable_leaks"
15074 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
15076 : ${with_no_leaks:=no}
15078 echo "$as_me:15078: result: $with_no_leaks" >&5
15079 echo "${ECHO_T}$with_no_leaks" >&6
15081 if test "$with_no_leaks" = yes ; then
15083 cat >>confdefs.h <<\EOF
15087 cat >>confdefs.h <<\EOF
15088 #define YY_NO_LEAKS 1
15093 cat >>confdefs.h <<\EOF
15094 #define HAVE_NC_ALLOC_H 1
15097 ### use option --enable-expanded to generate certain macros as functions
15099 # Check whether --enable-expanded or --disable-expanded was given.
15100 if test "${enable_expanded+set}" = set; then
15101 enableval="$enable_expanded"
15102 test "x$enableval" = xyes &&
15103 cat >>confdefs.h <<\EOF
15104 #define NCURSES_EXPANDED 1
15109 ### use option --disable-macros to suppress macros in favor of functions
15111 # Check whether --enable-macros or --disable-macros was given.
15112 if test "${enable_macros+set}" = set; then
15113 enableval="$enable_macros"
15114 test "$enableval" = no &&
15115 cat >>confdefs.h <<\EOF
15116 #define NCURSES_NOMACROS 1
15121 # Normally we only add trace() to the debug-library. Allow this to be
15122 # extended to all models of the ncurses library:
15124 case "$CFLAGS $CPPFLAGS" in
15130 echo "$as_me:15130: checking whether to add trace feature to all models" >&5
15131 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
15133 # Check whether --with-trace or --without-trace was given.
15134 if test "${with_trace+set}" = set; then
15135 withval="$with_trace"
15136 cf_with_trace=$withval
15138 cf_with_trace=$cf_all_traces
15140 echo "$as_me:15140: result: $cf_with_trace" >&5
15141 echo "${ECHO_T}$cf_with_trace" >&6
15143 if test "x$cf_with_trace" = xyes ; then
15150 cf_new_extra_cppflags=
15152 for cf_add_cflags in -DTRACE
15154 case $cf_fix_cppflags in
15156 case $cf_add_cflags in
15157 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15158 case $cf_add_cflags in
15160 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15162 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15163 && test -z "${cf_tst_cflags}" \
15164 && cf_fix_cppflags=yes
15166 if test $cf_fix_cppflags = yes ; then
15168 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15169 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15172 elif test "${cf_tst_cflags}" = "\"'" ; then
15174 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15175 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15181 case "$CPPFLAGS" in
15185 case $cf_add_cflags in
15187 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15189 CPPFLAGS=`echo "$CPPFLAGS" | \
15190 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15191 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15196 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15197 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15204 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15205 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15212 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15213 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15215 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15217 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15218 && test -z "${cf_tst_cflags}" \
15219 && cf_fix_cppflags=no
15224 if test -n "$cf_new_cflags" ; then
15226 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15227 CFLAGS="${CFLAGS}$cf_new_cflags"
15231 if test -n "$cf_new_cppflags" ; then
15233 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15234 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15238 if test -n "$cf_new_extra_cppflags" ; then
15240 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15241 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15245 cat >>confdefs.h <<\EOF
15246 #define HAVE__TRACEF 1
15254 echo "$as_me:15254: checking if we want to use GNAT projects" >&5
15255 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
15257 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
15258 if test "${enable_gnat_projects+set}" = set; then
15259 enableval="$enable_gnat_projects"
15260 test "$enableval" != no && enableval=yes
15261 if test "$enableval" != "yes" ; then
15262 enable_gnat_projects=no
15264 enable_gnat_projects=yes
15268 enable_gnat_projects=yes
15271 echo "$as_me:15271: result: $enable_gnat_projects" >&5
15272 echo "${ECHO_T}$enable_gnat_projects" >&6
15274 ### Checks for libraries.
15275 case $cf_cv_system_name in
15276 (*mingw32*|*mingw64*)
15277 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
15278 LIBS=" -lpsapi $LIBS"
15281 echo "$as_me:15281: checking for gettimeofday" >&5
15282 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
15283 if test "${ac_cv_func_gettimeofday+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 cat >conftest.$ac_ext <<_ACEOF
15287 #line 15287 "configure"
15288 #include "confdefs.h"
15289 /* System header to define __stub macros and hopefully few prototypes,
15290 which can conflict with char gettimeofday (); below. */
15291 #include <assert.h>
15292 /* Override any gcc2 internal prototype to avoid an error. */
15296 /* We use char because int might match the return type of a gcc2
15297 builtin and then its argument prototype would still apply. */
15298 char gettimeofday ();
15304 /* The GNU C library defines this for functions which it implements
15305 to always fail with ENOSYS. Some functions are actually named
15306 something starting with __ and the normal name is an alias. */
15307 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
15310 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:15318: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>&5
15321 echo "$as_me:15321: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -s conftest$ac_exeext'
15324 { (eval echo "$as_me:15324: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:15327: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_cv_func_gettimeofday=yes
15331 echo "$as_me: failed program was:" >&5
15332 cat conftest.$ac_ext >&5
15333 ac_cv_func_gettimeofday=no
15335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15337 echo "$as_me:15337: result: $ac_cv_func_gettimeofday" >&5
15338 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
15339 if test $ac_cv_func_gettimeofday = yes; then
15341 cat >>confdefs.h <<\EOF
15342 #define HAVE_GETTIMEOFDAY 1
15347 echo "$as_me:15347: checking for gettimeofday in -lbsd" >&5
15348 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
15349 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 ac_check_lib_save_LIBS=$LIBS
15354 cat >conftest.$ac_ext <<_ACEOF
15355 #line 15355 "configure"
15356 #include "confdefs.h"
15358 /* Override any gcc2 internal prototype to avoid an error. */
15362 /* We use char because int might match the return type of a gcc2
15363 builtin and then its argument prototype would still apply. */
15364 char gettimeofday ();
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:15374: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>&5
15377 echo "$as_me:15377: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:15380: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:15383: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_cv_lib_bsd_gettimeofday=yes
15387 echo "$as_me: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 ac_cv_lib_bsd_gettimeofday=no
15391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15392 LIBS=$ac_check_lib_save_LIBS
15394 echo "$as_me:15394: result: $ac_cv_lib_bsd_gettimeofday" >&5
15395 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
15396 if test $ac_cv_lib_bsd_gettimeofday = yes; then
15398 cat >>confdefs.h <<\EOF
15399 #define HAVE_GETTIMEOFDAY 1
15402 cf_add_libs="-lbsd"
15403 # Filter out duplicates - this happens with badly-designed ".pc" files...
15404 for cf_add_1lib in $LIBS
15406 for cf_add_2lib in $cf_add_libs
15408 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15414 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15416 LIBS="$cf_add_libs"
15424 echo "$as_me:15424: checking if -lm needed for math functions" >&5
15425 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
15426 if test "${cf_cv_need_libm+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 cat >conftest.$ac_ext <<_ACEOF
15431 #line 15431 "configure"
15432 #include "confdefs.h"
15435 #include <stdlib.h>
15441 double x = rand(); printf("result = %g\n", pow(sin(x),x))
15446 rm -f conftest.$ac_objext conftest$ac_exeext
15447 if { (eval echo "$as_me:15447: \"$ac_link\"") >&5
15448 (eval $ac_link) 2>&5
15450 echo "$as_me:15450: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
15452 { ac_try='test -s conftest$ac_exeext'
15453 { (eval echo "$as_me:15453: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15456 echo "$as_me:15456: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15460 echo "$as_me: failed program was:" >&5
15461 cat conftest.$ac_ext >&5
15462 cf_cv_need_libm=yes
15464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15466 echo "$as_me:15466: result: $cf_cv_need_libm" >&5
15467 echo "${ECHO_T}$cf_cv_need_libm" >&6
15468 if test "$cf_cv_need_libm" = yes
15473 ### Checks for header files.
15474 echo "$as_me:15474: checking for ANSI C header files" >&5
15475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15476 if test "${ac_cv_header_stdc+set}" = set; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 cat >conftest.$ac_ext <<_ACEOF
15480 #line 15480 "configure"
15481 #include "confdefs.h"
15482 #include <stdlib.h>
15483 #include <stdarg.h>
15484 #include <string.h>
15488 if { (eval echo "$as_me:15488: \"$ac_cpp conftest.$ac_ext\"") >&5
15489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15491 egrep -v '^ *\+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:15494: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev/null; then
15496 if test -s conftest.err; then
15497 ac_cpp_err=$ac_c_preproc_warn_flag
15504 if test -z "$ac_cpp_err"; then
15505 ac_cv_header_stdc=yes
15507 echo "$as_me: failed program was:" >&5
15508 cat conftest.$ac_ext >&5
15509 ac_cv_header_stdc=no
15511 rm -f conftest.err conftest.$ac_ext
15513 if test $ac_cv_header_stdc = yes; then
15514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15515 cat >conftest.$ac_ext <<_ACEOF
15516 #line 15516 "configure"
15517 #include "confdefs.h"
15518 #include <string.h>
15521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15522 egrep "memchr" >/dev/null 2>&1; then
15525 ac_cv_header_stdc=no
15531 if test $ac_cv_header_stdc = yes; then
15532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15533 cat >conftest.$ac_ext <<_ACEOF
15534 #line 15534 "configure"
15535 #include "confdefs.h"
15536 #include <stdlib.h>
15539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15540 egrep "free" >/dev/null 2>&1; then
15543 ac_cv_header_stdc=no
15549 if test $ac_cv_header_stdc = yes; then
15550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15551 if test "$cross_compiling" = yes; then
15554 cat >conftest.$ac_ext <<_ACEOF
15555 #line 15555 "configure"
15556 #include "confdefs.h"
15558 #if ((' ' & 0x0FF) == 0x020)
15559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15562 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15563 || ('j' <= (c) && (c) <= 'r') \
15564 || ('s' <= (c) && (c) <= 'z'))
15565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15573 for (i = 0; i < 256; i++)
15574 if (XOR (islower (i), ISLOWER (i))
15575 || toupper (i) != TOUPPER (i))
15576 $ac_main_return(2);
15577 $ac_main_return (0);
15580 rm -f conftest$ac_exeext
15581 if { (eval echo "$as_me:15581: \"$ac_link\"") >&5
15582 (eval $ac_link) 2>&5
15584 echo "$as_me:15584: \$? = $ac_status" >&5
15585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15586 { (eval echo "$as_me:15586: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:15589: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15593 echo "$as_me: program exited with status $ac_status" >&5
15594 echo "$as_me: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 ac_cv_header_stdc=no
15598 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15602 echo "$as_me:15602: result: $ac_cv_header_stdc" >&5
15603 echo "${ECHO_T}$ac_cv_header_stdc" >&6
15604 if test $ac_cv_header_stdc = yes; then
15606 cat >>confdefs.h <<\EOF
15607 #define STDC_HEADERS 1
15612 ac_header_dirent=no
15613 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15614 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15615 echo "$as_me:15615: checking for $ac_hdr that defines DIR" >&5
15616 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 cat >conftest.$ac_ext <<_ACEOF
15621 #line 15621 "configure"
15622 #include "confdefs.h"
15623 #include <sys/types.h>
15635 rm -f conftest.$ac_objext
15636 if { (eval echo "$as_me:15636: \"$ac_compile\"") >&5
15637 (eval $ac_compile) 2>&5
15639 echo "$as_me:15639: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
15641 { ac_try='test -s conftest.$ac_objext'
15642 { (eval echo "$as_me:15642: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:15645: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 eval "$as_ac_Header=yes"
15649 echo "$as_me: failed program was:" >&5
15650 cat conftest.$ac_ext >&5
15651 eval "$as_ac_Header=no"
15653 rm -f conftest.$ac_objext conftest.$ac_ext
15655 echo "$as_me:15655: result: `eval echo '${'$as_ac_Header'}'`" >&5
15656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15658 cat >>confdefs.h <<EOF
15659 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15662 ac_header_dirent=$ac_hdr; break
15666 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15667 if test $ac_header_dirent = dirent.h; then
15668 echo "$as_me:15668: checking for opendir in -ldir" >&5
15669 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
15670 if test "${ac_cv_lib_dir_opendir+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 ac_check_lib_save_LIBS=$LIBS
15675 cat >conftest.$ac_ext <<_ACEOF
15676 #line 15676 "configure"
15677 #include "confdefs.h"
15679 /* Override any gcc2 internal prototype to avoid an error. */
15683 /* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (eval echo "$as_me:15695: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>&5
15698 echo "$as_me:15698: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (eval echo "$as_me:15701: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:15704: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_cv_lib_dir_opendir=yes
15708 echo "$as_me: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 ac_cv_lib_dir_opendir=no
15712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15713 LIBS=$ac_check_lib_save_LIBS
15715 echo "$as_me:15715: result: $ac_cv_lib_dir_opendir" >&5
15716 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
15717 if test $ac_cv_lib_dir_opendir = yes; then
15722 echo "$as_me:15722: checking for opendir in -lx" >&5
15723 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
15724 if test "${ac_cv_lib_x_opendir+set}" = set; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 ac_check_lib_save_LIBS=$LIBS
15729 cat >conftest.$ac_ext <<_ACEOF
15730 #line 15730 "configure"
15731 #include "confdefs.h"
15733 /* Override any gcc2 internal prototype to avoid an error. */
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:15749: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>&5
15752 echo "$as_me:15752: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -s conftest$ac_exeext'
15755 { (eval echo "$as_me:15755: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15758 echo "$as_me:15758: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760 ac_cv_lib_x_opendir=yes
15762 echo "$as_me: failed program was:" >&5
15763 cat conftest.$ac_ext >&5
15764 ac_cv_lib_x_opendir=no
15766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15767 LIBS=$ac_check_lib_save_LIBS
15769 echo "$as_me:15769: result: $ac_cv_lib_x_opendir" >&5
15770 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
15771 if test $ac_cv_lib_x_opendir = yes; then
15777 echo "$as_me:15777: checking whether time.h and sys/time.h may both be included" >&5
15778 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15779 if test "${ac_cv_header_time+set}" = set; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 cat >conftest.$ac_ext <<_ACEOF
15783 #line 15783 "configure"
15784 #include "confdefs.h"
15785 #include <sys/types.h>
15786 #include <sys/time.h>
15792 if ((struct tm *) 0)
15798 rm -f conftest.$ac_objext
15799 if { (eval echo "$as_me:15799: \"$ac_compile\"") >&5
15800 (eval $ac_compile) 2>&5
15802 echo "$as_me:15802: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -s conftest.$ac_objext'
15805 { (eval echo "$as_me:15805: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:15808: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_cv_header_time=yes
15812 echo "$as_me: failed program was:" >&5
15813 cat conftest.$ac_ext >&5
15814 ac_cv_header_time=no
15816 rm -f conftest.$ac_objext conftest.$ac_ext
15818 echo "$as_me:15818: result: $ac_cv_header_time" >&5
15819 echo "${ECHO_T}$ac_cv_header_time" >&6
15820 if test $ac_cv_header_time = yes; then
15822 cat >>confdefs.h <<\EOF
15823 #define TIME_WITH_SYS_TIME 1
15830 cf_regex_libs="regex re"
15833 cf_regex_libs="gnurx $cf_regex_libs"
15837 echo "$as_me:15837: checking for regcomp" >&5
15838 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
15839 if test "${ac_cv_func_regcomp+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 cat >conftest.$ac_ext <<_ACEOF
15843 #line 15843 "configure"
15844 #include "confdefs.h"
15845 /* System header to define __stub macros and hopefully few prototypes,
15846 which can conflict with char regcomp (); below. */
15847 #include <assert.h>
15848 /* Override any gcc2 internal prototype to avoid an error. */
15852 /* We use char because int might match the return type of a gcc2
15853 builtin and then its argument prototype would still apply. */
15860 /* The GNU C library defines this for functions which it implements
15861 to always fail with ENOSYS. Some functions are actually named
15862 something starting with __ and the normal name is an alias. */
15863 #if defined (__stub_regcomp) || defined (__stub___regcomp)
15866 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (eval echo "$as_me:15874: \"$ac_link\"") >&5
15875 (eval $ac_link) 2>&5
15877 echo "$as_me:15877: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -s conftest$ac_exeext'
15880 { (eval echo "$as_me:15880: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:15883: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 ac_cv_func_regcomp=yes
15887 echo "$as_me: failed program was:" >&5
15888 cat conftest.$ac_ext >&5
15889 ac_cv_func_regcomp=no
15891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15893 echo "$as_me:15893: result: $ac_cv_func_regcomp" >&5
15894 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
15895 if test $ac_cv_func_regcomp = yes; then
15896 cf_regex_func=regcomp
15899 for cf_regex_lib in $cf_regex_libs
15901 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
15902 echo "$as_me:15902: checking for regcomp in -l$cf_regex_lib" >&5
15903 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
15904 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 ac_check_lib_save_LIBS=$LIBS
15908 LIBS="-l$cf_regex_lib $LIBS"
15909 cat >conftest.$ac_ext <<_ACEOF
15910 #line 15910 "configure"
15911 #include "confdefs.h"
15913 /* Override any gcc2 internal prototype to avoid an error. */
15917 /* We use char because int might match the return type of a gcc2
15918 builtin and then its argument prototype would still apply. */
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (eval echo "$as_me:15929: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>&5
15932 echo "$as_me:15932: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -s conftest$ac_exeext'
15935 { (eval echo "$as_me:15935: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:15938: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 eval "$as_ac_Lib=yes"
15942 echo "$as_me: failed program was:" >&5
15943 cat conftest.$ac_ext >&5
15944 eval "$as_ac_Lib=no"
15946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15947 LIBS=$ac_check_lib_save_LIBS
15949 echo "$as_me:15949: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15950 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15951 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15953 cf_add_libs="-l$cf_regex_lib"
15954 # Filter out duplicates - this happens with badly-designed ".pc" files...
15955 for cf_add_1lib in $LIBS
15957 for cf_add_2lib in $cf_add_libs
15959 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15965 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15967 LIBS="$cf_add_libs"
15969 cf_regex_func=regcomp
15977 if test "$cf_regex_func" = no ; then
15978 echo "$as_me:15978: checking for compile" >&5
15979 echo $ECHO_N "checking for compile... $ECHO_C" >&6
15980 if test "${ac_cv_func_compile+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line 15984 "configure"
15985 #include "confdefs.h"
15986 /* System header to define __stub macros and hopefully few prototypes,
15987 which can conflict with char compile (); below. */
15988 #include <assert.h>
15989 /* Override any gcc2 internal prototype to avoid an error. */
15993 /* We use char because int might match the return type of a gcc2
15994 builtin and then its argument prototype would still apply. */
16001 /* The GNU C library defines this for functions which it implements
16002 to always fail with ENOSYS. Some functions are actually named
16003 something starting with __ and the normal name is an alias. */
16004 #if defined (__stub_compile) || defined (__stub___compile)
16007 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (eval echo "$as_me:16015: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16018 echo "$as_me:16018: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -s conftest$ac_exeext'
16021 { (eval echo "$as_me:16021: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:16024: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_cv_func_compile=yes
16028 echo "$as_me: failed program was:" >&5
16029 cat conftest.$ac_ext >&5
16030 ac_cv_func_compile=no
16032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16034 echo "$as_me:16034: result: $ac_cv_func_compile" >&5
16035 echo "${ECHO_T}$ac_cv_func_compile" >&6
16036 if test $ac_cv_func_compile = yes; then
16037 cf_regex_func=compile
16040 echo "$as_me:16040: checking for compile in -lgen" >&5
16041 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
16042 if test "${ac_cv_lib_gen_compile+set}" = set; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 ac_check_lib_save_LIBS=$LIBS
16047 cat >conftest.$ac_ext <<_ACEOF
16048 #line 16048 "configure"
16049 #include "confdefs.h"
16051 /* Override any gcc2 internal prototype to avoid an error. */
16055 /* We use char because int might match the return type of a gcc2
16056 builtin and then its argument prototype would still apply. */
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (eval echo "$as_me:16067: \"$ac_link\"") >&5
16068 (eval $ac_link) 2>&5
16070 echo "$as_me:16070: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -s conftest$ac_exeext'
16073 { (eval echo "$as_me:16073: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:16076: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 ac_cv_lib_gen_compile=yes
16080 echo "$as_me: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16082 ac_cv_lib_gen_compile=no
16084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16085 LIBS=$ac_check_lib_save_LIBS
16087 echo "$as_me:16087: result: $ac_cv_lib_gen_compile" >&5
16088 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
16089 if test $ac_cv_lib_gen_compile = yes; then
16091 cf_add_libs="-lgen"
16092 # Filter out duplicates - this happens with badly-designed ".pc" files...
16093 for cf_add_1lib in $LIBS
16095 for cf_add_2lib in $cf_add_libs
16097 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16103 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16105 LIBS="$cf_add_libs"
16107 cf_regex_func=compile
16114 if test "$cf_regex_func" = no ; then
16115 { echo "$as_me:16115: WARNING: cannot find regular expression library" >&5
16116 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
16119 echo "$as_me:16119: checking for regular-expression headers" >&5
16120 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
16121 if test "${cf_cv_regex_hdrs+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16125 cf_cv_regex_hdrs=no
16126 case $cf_regex_func in
16128 for cf_regex_hdr in regexp.h regexpr.h
16130 cat >conftest.$ac_ext <<_ACEOF
16131 #line 16131 "configure"
16132 #include "confdefs.h"
16133 #include <$cf_regex_hdr>
16138 char *p = compile("", "", "", 0);
16139 int x = step("", "");
16145 rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (eval echo "$as_me:16146: \"$ac_link\"") >&5
16147 (eval $ac_link) 2>&5
16149 echo "$as_me:16149: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest$ac_exeext'
16152 { (eval echo "$as_me:16152: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:16155: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16158 cf_cv_regex_hdrs=$cf_regex_hdr
16162 echo "$as_me: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16169 for cf_regex_hdr in regex.h
16171 cat >conftest.$ac_ext <<_ACEOF
16172 #line 16172 "configure"
16173 #include "confdefs.h"
16174 #include <sys/types.h>
16175 #include <$cf_regex_hdr>
16181 int x = regcomp(p, "", 0);
16182 int y = regexec(p, "", 0, 0, 0);
16189 rm -f conftest.$ac_objext conftest$ac_exeext
16190 if { (eval echo "$as_me:16190: \"$ac_link\"") >&5
16191 (eval $ac_link) 2>&5
16193 echo "$as_me:16193: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -s conftest$ac_exeext'
16196 { (eval echo "$as_me:16196: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:16199: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16202 cf_cv_regex_hdrs=$cf_regex_hdr
16206 echo "$as_me: failed program was:" >&5
16207 cat conftest.$ac_ext >&5
16209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16215 echo "$as_me:16215: result: $cf_cv_regex_hdrs" >&5
16216 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
16218 case $cf_cv_regex_hdrs in
16219 (no) { echo "$as_me:16219: WARNING: no regular expression header found" >&5
16220 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
16222 cat >>confdefs.h <<\EOF
16223 #define HAVE_REGEX_H_FUNCS 1
16227 cat >>confdefs.h <<\EOF
16228 #define HAVE_REGEXP_H_FUNCS 1
16232 cat >>confdefs.h <<\EOF
16233 #define HAVE_REGEXPR_H_FUNCS 1
16257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16258 echo "$as_me:16258: checking for $ac_header" >&5
16259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 cat >conftest.$ac_ext <<_ACEOF
16264 #line 16264 "configure"
16265 #include "confdefs.h"
16266 #include <$ac_header>
16268 if { (eval echo "$as_me:16268: \"$ac_cpp conftest.$ac_ext\"") >&5
16269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16271 egrep -v '^ *\+' conftest.er1 >conftest.err
16273 cat conftest.err >&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 (exit $ac_status); } >/dev/null; then
16276 if test -s conftest.err; then
16277 ac_cpp_err=$ac_c_preproc_warn_flag
16284 if test -z "$ac_cpp_err"; then
16285 eval "$as_ac_Header=yes"
16287 echo "$as_me: failed program was:" >&5
16288 cat conftest.$ac_ext >&5
16289 eval "$as_ac_Header=no"
16291 rm -f conftest.err conftest.$ac_ext
16293 echo "$as_me:16293: result: `eval echo '${'$as_ac_Header'}'`" >&5
16294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16296 cat >>confdefs.h <<EOF
16297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16303 for ac_header in unistd.h getopt.h
16305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16306 echo "$as_me:16306: checking for $ac_header" >&5
16307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 cat >conftest.$ac_ext <<_ACEOF
16312 #line 16312 "configure"
16313 #include "confdefs.h"
16314 #include <$ac_header>
16316 if { (eval echo "$as_me:16316: \"$ac_cpp conftest.$ac_ext\"") >&5
16317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16319 egrep -v '^ *\+' conftest.er1 >conftest.err
16321 cat conftest.err >&5
16322 echo "$as_me:16322: \$? = $ac_status" >&5
16323 (exit $ac_status); } >/dev/null; then
16324 if test -s conftest.err; then
16325 ac_cpp_err=$ac_c_preproc_warn_flag
16332 if test -z "$ac_cpp_err"; then
16333 eval "$as_ac_Header=yes"
16335 echo "$as_me: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16337 eval "$as_ac_Header=no"
16339 rm -f conftest.err conftest.$ac_ext
16341 echo "$as_me:16341: result: `eval echo '${'$as_ac_Header'}'`" >&5
16342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344 cat >>confdefs.h <<EOF
16345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16351 echo "$as_me:16351: checking for header declaring getopt variables" >&5
16352 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
16353 if test "${cf_cv_getopt_header+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 cf_cv_getopt_header=none
16358 for cf_header in stdio.h stdlib.h unistd.h getopt.h
16360 cat >conftest.$ac_ext <<_ACEOF
16361 #line 16361 "configure"
16362 #include "confdefs.h"
16364 #include <$cf_header>
16368 int x = optind; char *y = optarg
16373 rm -f conftest.$ac_objext
16374 if { (eval echo "$as_me:16374: \"$ac_compile\"") >&5
16375 (eval $ac_compile) 2>&5
16377 echo "$as_me:16377: \$? = $ac_status" >&5
16378 (exit $ac_status); } &&
16379 { ac_try='test -s conftest.$ac_objext'
16380 { (eval echo "$as_me:16380: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16383 echo "$as_me:16383: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 cf_cv_getopt_header=$cf_header
16388 echo "$as_me: failed program was:" >&5
16389 cat conftest.$ac_ext >&5
16391 rm -f conftest.$ac_objext conftest.$ac_ext
16395 echo "$as_me:16395: result: $cf_cv_getopt_header" >&5
16396 echo "${ECHO_T}$cf_cv_getopt_header" >&6
16397 if test $cf_cv_getopt_header != none ; then
16399 cat >>confdefs.h <<\EOF
16400 #define HAVE_GETOPT_HEADER 1
16404 if test $cf_cv_getopt_header = getopt.h ; then
16406 cat >>confdefs.h <<\EOF
16407 #define NEED_GETOPT_H 1
16412 # check for ISC (this may also define _POSIX_SOURCE)
16413 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
16414 if test "x$ISC" = xyes ; then
16416 echo "$as_me:16416: checking for main in -lcposix" >&5
16417 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
16418 if test "${ac_cv_lib_cposix_main+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 ac_check_lib_save_LIBS=$LIBS
16422 LIBS="-lcposix $LIBS"
16423 cat >conftest.$ac_ext <<_ACEOF
16424 #line 16424 "configure"
16425 #include "confdefs.h"
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (eval echo "$as_me:16436: \"$ac_link\"") >&5
16437 (eval $ac_link) 2>&5
16439 echo "$as_me:16439: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try='test -s conftest$ac_exeext'
16442 { (eval echo "$as_me:16442: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16445 echo "$as_me:16445: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_lib_cposix_main=yes
16449 echo "$as_me: failed program was:" >&5
16450 cat conftest.$ac_ext >&5
16451 ac_cv_lib_cposix_main=no
16453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16454 LIBS=$ac_check_lib_save_LIBS
16456 echo "$as_me:16456: result: $ac_cv_lib_cposix_main" >&5
16457 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
16458 if test $ac_cv_lib_cposix_main = yes; then
16459 cat >>confdefs.h <<EOF
16460 #define HAVE_LIBCPOSIX 1
16463 LIBS="-lcposix $LIBS"
16467 echo "$as_me:16467: checking for bzero in -linet" >&5
16468 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
16469 if test "${ac_cv_lib_inet_bzero+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-linet $LIBS"
16474 cat >conftest.$ac_ext <<_ACEOF
16475 #line 16475 "configure"
16476 #include "confdefs.h"
16478 /* Override any gcc2 internal prototype to avoid an error. */
16482 /* We use char because int might match the return type of a gcc2
16483 builtin and then its argument prototype would still apply. */
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (eval echo "$as_me:16494: \"$ac_link\"") >&5
16495 (eval $ac_link) 2>&5
16497 echo "$as_me:16497: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -s conftest$ac_exeext'
16500 { (eval echo "$as_me:16500: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:16503: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_lib_inet_bzero=yes
16507 echo "$as_me: failed program was:" >&5
16508 cat conftest.$ac_ext >&5
16509 ac_cv_lib_inet_bzero=no
16511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16512 LIBS=$ac_check_lib_save_LIBS
16514 echo "$as_me:16514: result: $ac_cv_lib_inet_bzero" >&5
16515 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
16516 if test $ac_cv_lib_inet_bzero = yes; then
16518 cf_add_libs="-linet"
16519 # Filter out duplicates - this happens with badly-designed ".pc" files...
16520 for cf_add_1lib in $LIBS
16522 for cf_add_2lib in $cf_add_libs
16524 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16530 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16532 LIBS="$cf_add_libs"
16537 echo "$as_me:16537: checking if sys/time.h works with sys/select.h" >&5
16538 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
16539 if test "${cf_cv_sys_time_select+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 cat >conftest.$ac_ext <<_ACEOF
16544 #line 16544 "configure"
16545 #include "confdefs.h"
16547 #include <sys/types.h>
16548 #ifdef HAVE_SYS_TIME_H
16549 #include <sys/time.h>
16551 #ifdef HAVE_SYS_SELECT_H
16552 #include <sys/select.h>
16563 rm -f conftest.$ac_objext
16564 if { (eval echo "$as_me:16564: \"$ac_compile\"") >&5
16565 (eval $ac_compile) 2>&5
16567 echo "$as_me:16567: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
16569 { ac_try='test -s conftest.$ac_objext'
16570 { (eval echo "$as_me:16570: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16573 echo "$as_me:16573: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
16575 cf_cv_sys_time_select=yes
16577 echo "$as_me: failed program was:" >&5
16578 cat conftest.$ac_ext >&5
16579 cf_cv_sys_time_select=no
16581 rm -f conftest.$ac_objext conftest.$ac_ext
16585 echo "$as_me:16585: result: $cf_cv_sys_time_select" >&5
16586 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
16587 test "$cf_cv_sys_time_select" = yes &&
16588 cat >>confdefs.h <<\EOF
16589 #define HAVE_SYS_TIME_SELECT 1
16592 ### checks for compiler characteristics
16594 ac_cpp='$CPP $CPPFLAGS'
16595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16598 ac_main_return=return
16600 echo "$as_me:16600: checking for an ANSI C-conforming const" >&5
16601 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16602 if test "${ac_cv_c_const+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 cat >conftest.$ac_ext <<_ACEOF
16606 #line 16606 "configure"
16607 #include "confdefs.h"
16612 /* FIXME: Include the comments suggested by Paul. */
16613 #ifndef __cplusplus
16614 /* Ultrix mips cc rejects this. */
16615 typedef int charset[2];
16617 /* SunOS 4.1.1 cc rejects this. */
16618 char const *const *ccp;
16620 /* NEC SVR4.0.2 mips cc rejects this. */
16621 struct point {int x, y;};
16622 static struct point const zero = {0,0};
16623 /* AIX XL C 1.02.0.0 rejects this.
16624 It does not let you subtract one const X* pointer from another in
16625 an arm of an if-expression whose if-part is not a constant
16627 const char *g = "string";
16628 ccp = &g + (g ? g-g : 0);
16629 /* HPUX 7.0 cc rejects these. */
16632 ccp = (char const *const *) p;
16633 { /* SCO 3.2v4 cc rejects this. */
16635 char const *s = 0 ? (char *) 0 : (char const *) 0;
16639 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16640 int x[] = {25, 17};
16641 const int *foo = &x[0];
16644 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16645 typedef const int *iptr;
16649 { /* AIX XL C 1.02.0.0 rejects this saying
16650 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16651 struct s { int j; const int *ap[3]; };
16652 struct s *b; b->j = 5;
16654 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16655 const int foo = 10;
16663 rm -f conftest.$ac_objext
16664 if { (eval echo "$as_me:16664: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>&5
16667 echo "$as_me:16667: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -s conftest.$ac_objext'
16670 { (eval echo "$as_me:16670: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16673 echo "$as_me:16673: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16677 echo "$as_me: failed program was:" >&5
16678 cat conftest.$ac_ext >&5
16681 rm -f conftest.$ac_objext conftest.$ac_ext
16683 echo "$as_me:16683: result: $ac_cv_c_const" >&5
16684 echo "${ECHO_T}$ac_cv_c_const" >&6
16685 if test $ac_cv_c_const = no; then
16687 cat >>confdefs.h <<\EOF
16693 echo "$as_me:16693: checking for inline" >&5
16694 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16695 if test "${ac_cv_c_inline+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 for ac_kw in inline __inline__ __inline; do
16700 cat >conftest.$ac_ext <<_ACEOF
16701 #line 16701 "configure"
16702 #include "confdefs.h"
16703 #ifndef __cplusplus
16704 static $ac_kw int static_foo () {return 0; }
16705 $ac_kw int foo () {return 0; }
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:16710: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>&5
16713 echo "$as_me:16713: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (eval echo "$as_me:16716: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:16719: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_cv_c_inline=$ac_kw; break
16723 echo "$as_me: failed program was:" >&5
16724 cat conftest.$ac_ext >&5
16726 rm -f conftest.$ac_objext conftest.$ac_ext
16730 echo "$as_me:16730: result: $ac_cv_c_inline" >&5
16731 echo "${ECHO_T}$ac_cv_c_inline" >&6
16732 case $ac_cv_c_inline in
16735 cat >>confdefs.h <<\EOF
16739 *) cat >>confdefs.h <<EOF
16740 #define inline $ac_cv_c_inline
16746 if test "$ac_cv_c_inline" != no ; then
16747 NCURSES_INLINE=inline
16748 if test "$INTEL_COMPILER" = yes
16751 elif test "$CLANG_COMPILER" = yes
16754 elif test "$GCC" = yes
16756 echo "$as_me:16756: checking if $CC supports options to tune inlining" >&5
16757 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
16758 if test "${cf_cv_gcc_inline+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 cf_save_CFLAGS=$CFLAGS
16763 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
16764 cat >conftest.$ac_ext <<_ACEOF
16765 #line 16765 "configure"
16766 #include "confdefs.h"
16767 inline int foo(void) { return 1; }
16771 ${cf_cv_main_return:-return} foo()
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:16777: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>&5
16780 echo "$as_me:16780: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (eval echo "$as_me:16783: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16786 echo "$as_me:16786: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 cf_cv_gcc_inline=yes
16790 echo "$as_me: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16792 cf_cv_gcc_inline=no
16794 rm -f conftest.$ac_objext conftest.$ac_ext
16795 CFLAGS=$cf_save_CFLAGS
16798 echo "$as_me:16798: result: $cf_cv_gcc_inline" >&5
16799 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
16800 if test "$cf_cv_gcc_inline" = yes ; then
16805 cf_new_extra_cppflags=
16807 for cf_add_cflags in --param max-inline-insns-single=1200
16809 case $cf_fix_cppflags in
16811 case $cf_add_cflags in
16812 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16813 case $cf_add_cflags in
16815 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16817 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16818 && test -z "${cf_tst_cflags}" \
16819 && cf_fix_cppflags=yes
16821 if test $cf_fix_cppflags = yes ; then
16823 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16824 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16827 elif test "${cf_tst_cflags}" = "\"'" ; then
16829 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16830 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16836 case "$CPPFLAGS" in
16840 case $cf_add_cflags in
16842 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16844 CPPFLAGS=`echo "$CPPFLAGS" | \
16845 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16846 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16851 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16852 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16859 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16860 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16867 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16868 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16870 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16872 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16873 && test -z "${cf_tst_cflags}" \
16874 && cf_fix_cppflags=no
16879 if test -n "$cf_new_cflags" ; then
16881 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16882 CFLAGS="${CFLAGS}$cf_new_cflags"
16886 if test -n "$cf_new_cppflags" ; then
16888 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16889 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16893 if test -n "$cf_new_extra_cppflags" ; then
16895 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16896 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16904 echo "$as_me:16904: checking for signal global datatype" >&5
16905 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
16906 if test "${cf_cv_sig_atomic_t+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 "volatile sig_atomic_t" \
16915 cat >conftest.$ac_ext <<_ACEOF
16916 #line 16916 "configure"
16917 #include "confdefs.h"
16919 #include <sys/types.h>
16920 #include <signal.h>
16925 static void handler(int sig)
16932 signal(SIGINT, handler);
16938 rm -f conftest.$ac_objext
16939 if { (eval echo "$as_me:16939: \"$ac_compile\"") >&5
16940 (eval $ac_compile) 2>&5
16942 echo "$as_me:16942: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -s conftest.$ac_objext'
16945 { (eval echo "$as_me:16945: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16948 echo "$as_me:16948: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 cf_cv_sig_atomic_t=$cf_type
16952 echo "$as_me: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16954 cf_cv_sig_atomic_t=no
16956 rm -f conftest.$ac_objext conftest.$ac_ext
16957 test "$cf_cv_sig_atomic_t" != no && break
16962 echo "$as_me:16962: result: $cf_cv_sig_atomic_t" >&5
16963 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
16964 test "$cf_cv_sig_atomic_t" != no &&
16965 cat >>confdefs.h <<EOF
16966 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
16969 if test $NCURSES_CHTYPE = auto ; then
16971 echo "$as_me:16971: checking for type of chtype" >&5
16972 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
16973 if test "${cf_cv_typeof_chtype+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 if test "$cross_compiling" = yes; then
16978 cf_cv_typeof_chtype=long
16980 cat >conftest.$ac_ext <<_ACEOF
16981 #line 16981 "configure"
16982 #include "confdefs.h"
16984 #define WANT_BITS 31
16988 FILE *fp = fopen("cf_test.out", "w");
16990 char *result = "long";
16991 if (sizeof(unsigned long) > sizeof(unsigned int)) {
16994 for (n = 0; n < WANT_BITS; n++) {
16997 if (y != 1 || x == 0) {
17003 * If x is nonzero, an int is big enough for the bits
17006 result = (x != 0) ? "int" : "long";
17011 ${cf_cv_main_return:-return}(0);
17015 rm -f conftest$ac_exeext
17016 if { (eval echo "$as_me:17016: \"$ac_link\"") >&5
17017 (eval $ac_link) 2>&5
17019 echo "$as_me:17019: \$? = $ac_status" >&5
17020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17021 { (eval echo "$as_me:17021: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:17024: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 cf_cv_typeof_chtype=`cat cf_test.out`
17028 echo "$as_me: program exited with status $ac_status" >&5
17029 echo "$as_me: failed program was:" >&5
17030 cat conftest.$ac_ext >&5
17031 cf_cv_typeof_chtype=long
17033 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17039 echo "$as_me:17039: result: $cf_cv_typeof_chtype" >&5
17040 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
17042 cat >>confdefs.h <<EOF
17043 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
17047 cf_cv_typeof_chtype=$NCURSES_CHTYPE
17049 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
17051 echo "$as_me:17051: checking if unsigned literals are legal" >&5
17052 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
17053 if test "${cf_cv_unsigned_literals+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 cat >conftest.$ac_ext <<_ACEOF
17058 #line 17058 "configure"
17059 #include "confdefs.h"
17064 long x = 1L + 1UL + 1U + 1
17069 rm -f conftest.$ac_objext
17070 if { (eval echo "$as_me:17070: \"$ac_compile\"") >&5
17071 (eval $ac_compile) 2>&5
17073 echo "$as_me:17073: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -s conftest.$ac_objext'
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 cf_cv_unsigned_literals=yes
17083 echo "$as_me: failed program was:" >&5
17084 cat conftest.$ac_ext >&5
17085 cf_cv_unsigned_literals=no
17087 rm -f conftest.$ac_objext conftest.$ac_ext
17091 echo "$as_me:17091: result: $cf_cv_unsigned_literals" >&5
17092 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
17095 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
17096 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
17098 if test $NCURSES_MMASK_T = auto ; then
17099 cf_cv_typeof_mmask_t=long
17101 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
17103 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
17105 ### Checks for external-data
17107 echo "$as_me:17107: checking if external errno is declared" >&5
17108 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
17109 if test "${cf_cv_dcl_errno+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line 17114 "configure"
17115 #include "confdefs.h"
17117 #ifdef HAVE_STDLIB_H
17118 #include <stdlib.h>
17121 #include <sys/types.h>
17126 int x = (int) errno
17131 rm -f conftest.$ac_objext
17132 if { (eval echo "$as_me:17132: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>&5
17135 echo "$as_me:17135: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (eval echo "$as_me:17138: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17141 echo "$as_me:17141: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 cf_cv_dcl_errno=yes
17145 echo "$as_me: failed program was:" >&5
17146 cat conftest.$ac_ext >&5
17149 rm -f conftest.$ac_objext conftest.$ac_ext
17152 echo "$as_me:17152: result: $cf_cv_dcl_errno" >&5
17153 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
17155 if test "$cf_cv_dcl_errno" = no ; then
17157 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17159 cat >>confdefs.h <<EOF
17160 #define $cf_result 1
17165 # It's possible (for near-UNIX clones) that the data doesn't exist
17167 echo "$as_me:17167: checking if external errno exists" >&5
17168 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
17169 if test "${cf_cv_have_errno+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 cat >conftest.$ac_ext <<_ACEOF
17174 #line 17174 "configure"
17175 #include "confdefs.h"
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (eval echo "$as_me:17189: \"$ac_link\"") >&5
17190 (eval $ac_link) 2>&5
17192 echo "$as_me:17192: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -s conftest$ac_exeext'
17195 { (eval echo "$as_me:17195: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:17198: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 cf_cv_have_errno=yes
17202 echo "$as_me: failed program was:" >&5
17203 cat conftest.$ac_ext >&5
17204 cf_cv_have_errno=no
17206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17209 echo "$as_me:17209: result: $cf_cv_have_errno" >&5
17210 echo "${ECHO_T}$cf_cv_have_errno" >&6
17212 if test "$cf_cv_have_errno" = yes ; then
17214 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17216 cat >>confdefs.h <<EOF
17217 #define $cf_result 1
17222 echo "$as_me:17222: checking if data-only library module links" >&5
17223 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
17224 if test "${cf_cv_link_dataonly+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 cat >conftest.$ac_ext <<EOF
17230 #line 17230 "configure"
17231 int testdata[3] = { 123, 456, 789 };
17233 if { (eval echo "$as_me:17233: \"$ac_compile\"") >&5
17234 (eval $ac_compile) 2>&5
17236 echo "$as_me:17236: \$? = $ac_status" >&5
17237 (exit $ac_status); } ; then
17238 mv conftest.o data.o && \
17239 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
17241 rm -f conftest.$ac_ext data.o
17242 cat >conftest.$ac_ext <<EOF
17243 #line 17243 "configure"
17247 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
17249 extern int testdata[3];
17250 return testdata[0] == 123
17251 && testdata[1] == 456
17252 && testdata[2] == 789;
17256 if { (eval echo "$as_me:17256: \"$ac_compile\"") >&5
17257 (eval $ac_compile) 2>&5
17259 echo "$as_me:17259: \$? = $ac_status" >&5
17260 (exit $ac_status); }; then
17261 mv conftest.o func.o && \
17262 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
17264 rm -f conftest.$ac_ext func.o
17265 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
17266 cf_saveLIBS="$LIBS"
17267 LIBS="conftest.a $LIBS"
17268 if test "$cross_compiling" = yes; then
17269 cf_cv_link_dataonly=unknown
17271 cat >conftest.$ac_ext <<_ACEOF
17272 #line 17272 "configure"
17273 #include "confdefs.h"
17277 extern int testfunc();
17278 ${cf_cv_main_return:-return} (!testfunc());
17282 rm -f conftest$ac_exeext
17283 if { (eval echo "$as_me:17283: \"$ac_link\"") >&5
17284 (eval $ac_link) 2>&5
17286 echo "$as_me:17286: \$? = $ac_status" >&5
17287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17288 { (eval echo "$as_me:17288: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17291 echo "$as_me:17291: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 cf_cv_link_dataonly=yes
17295 echo "$as_me: program exited with status $ac_status" >&5
17296 echo "$as_me: failed program was:" >&5
17297 cat conftest.$ac_ext >&5
17298 cf_cv_link_dataonly=no
17300 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17302 LIBS="$cf_saveLIBS"
17306 echo "$as_me:17306: result: $cf_cv_link_dataonly" >&5
17307 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
17309 if test "$cf_cv_link_dataonly" = no ; then
17311 cat >>confdefs.h <<\EOF
17312 #define BROKEN_LINKER 1
17318 ### Checks for library functions.
17344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17345 echo "$as_me:17345: checking for $ac_func" >&5
17346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17347 if eval "test \"\${$as_ac_var+set}\" = set"; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 cat >conftest.$ac_ext <<_ACEOF
17351 #line 17351 "configure"
17352 #include "confdefs.h"
17353 /* System header to define __stub macros and hopefully few prototypes,
17354 which can conflict with char $ac_func (); below. */
17355 #include <assert.h>
17356 /* Override any gcc2 internal prototype to avoid an error. */
17360 /* We use char because int might match the return type of a gcc2
17361 builtin and then its argument prototype would still apply. */
17368 /* The GNU C library defines this for functions which it implements
17369 to always fail with ENOSYS. Some functions are actually named
17370 something starting with __ and the normal name is an alias. */
17371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17374 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (eval echo "$as_me:17382: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>&5
17385 echo "$as_me:17385: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -s conftest$ac_exeext'
17388 { (eval echo "$as_me:17388: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:17391: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 eval "$as_ac_var=yes"
17395 echo "$as_me: failed program was:" >&5
17396 cat conftest.$ac_ext >&5
17397 eval "$as_ac_var=no"
17399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17401 echo "$as_me:17401: result: `eval echo '${'$as_ac_var'}'`" >&5
17402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17403 if test `eval echo '${'$as_ac_var'}'` = yes; then
17404 cat >>confdefs.h <<EOF
17405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17411 if test "x$ac_cv_func_getopt" = xno && \
17412 test "x$cf_with_progs$cf_with_tests" != xnono; then
17413 { { echo "$as_me:17413: error: getopt is required for building programs" >&5
17414 echo "$as_me: error: getopt is required for building programs" >&2;}
17415 { (exit 1); exit 1; }; }
17418 if test "x$with_getcap" = "xyes" ; then
17420 echo "$as_me:17420: checking for terminal-capability database functions" >&5
17421 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
17422 if test "${cf_cv_cgetent+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 cat >conftest.$ac_ext <<_ACEOF
17427 #line 17427 "configure"
17428 #include "confdefs.h"
17430 #include <stdlib.h>
17437 char *db_array = temp;
17438 cgetent(&buf, &db_array, "vt100");
17439 cgetcap(buf, "tc", '=');
17440 cgetmatch(buf, "tc");
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (eval echo "$as_me:17447: \"$ac_link\"") >&5
17448 (eval $ac_link) 2>&5
17450 echo "$as_me:17450: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -s conftest$ac_exeext'
17453 { (eval echo "$as_me:17453: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17456 echo "$as_me:17456: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
17460 echo "$as_me: failed program was:" >&5
17461 cat conftest.$ac_ext >&5
17464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17467 echo "$as_me:17467: result: $cf_cv_cgetent" >&5
17468 echo "${ECHO_T}$cf_cv_cgetent" >&6
17470 if test "$cf_cv_cgetent" = yes
17473 cat >>confdefs.h <<\EOF
17474 #define HAVE_BSD_CGETENT 1
17477 echo "$as_me:17477: checking if cgetent uses const parameter" >&5
17478 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
17479 if test "${cf_cv_cgetent_const+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 cat >conftest.$ac_ext <<_ACEOF
17484 #line 17484 "configure"
17485 #include "confdefs.h"
17487 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
17488 #include <stdlib.h>
17495 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
17496 const char *db_array = temp;
17497 cgetent(&buf, &db_array, "vt100");
17499 cgetcap(buf, "tc", '=');
17500 cgetmatch(buf, "tc");
17506 rm -f conftest.$ac_objext conftest$ac_exeext
17507 if { (eval echo "$as_me:17507: \"$ac_link\"") >&5
17508 (eval $ac_link) 2>&5
17510 echo "$as_me:17510: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -s conftest$ac_exeext'
17513 { (eval echo "$as_me:17513: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:17516: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 cf_cv_cgetent_const=yes
17520 echo "$as_me: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17522 cf_cv_cgetent_const=no
17524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17527 echo "$as_me:17527: result: $cf_cv_cgetent_const" >&5
17528 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
17529 if test "$cf_cv_cgetent_const" = yes
17532 cat >>confdefs.h <<EOF
17533 #define CGETENT_CONST const
17541 echo "$as_me:17541: checking for isascii" >&5
17542 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
17543 if test "${cf_cv_have_isascii+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 cat >conftest.$ac_ext <<_ACEOF
17548 #line 17548 "configure"
17549 #include "confdefs.h"
17554 int x = isascii(' ')
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (eval echo "$as_me:17560: \"$ac_link\"") >&5
17561 (eval $ac_link) 2>&5
17563 echo "$as_me:17563: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -s conftest$ac_exeext'
17566 { (eval echo "$as_me:17566: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:17569: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 cf_cv_have_isascii=yes
17573 echo "$as_me: failed program was:" >&5
17574 cat conftest.$ac_ext >&5
17575 cf_cv_have_isascii=no
17577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17580 echo "$as_me:17580: result: $cf_cv_have_isascii" >&5
17581 echo "${ECHO_T}$cf_cv_have_isascii" >&6
17582 test "$cf_cv_have_isascii" = yes &&
17583 cat >>confdefs.h <<\EOF
17584 #define HAVE_ISASCII 1
17587 if test "$ac_cv_func_sigaction" = yes; then
17588 echo "$as_me:17588: checking whether sigaction needs _POSIX_SOURCE" >&5
17589 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
17590 cat >conftest.$ac_ext <<_ACEOF
17591 #line 17591 "configure"
17592 #include "confdefs.h"
17594 #include <sys/types.h>
17595 #include <signal.h>
17599 struct sigaction act
17604 rm -f conftest.$ac_objext
17605 if { (eval echo "$as_me:17605: \"$ac_compile\"") >&5
17606 (eval $ac_compile) 2>&5
17608 echo "$as_me:17608: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -s conftest.$ac_objext'
17611 { (eval echo "$as_me:17611: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:17614: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17618 echo "$as_me: failed program was:" >&5
17619 cat conftest.$ac_ext >&5
17621 cat >conftest.$ac_ext <<_ACEOF
17622 #line 17622 "configure"
17623 #include "confdefs.h"
17625 #define _POSIX_SOURCE
17626 #include <sys/types.h>
17627 #include <signal.h>
17631 struct sigaction act
17636 rm -f conftest.$ac_objext
17637 if { (eval echo "$as_me:17637: \"$ac_compile\"") >&5
17638 (eval $ac_compile) 2>&5
17640 echo "$as_me:17640: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
17642 { ac_try='test -s conftest.$ac_objext'
17643 { (eval echo "$as_me:17643: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17646 echo "$as_me:17646: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17650 cat >>confdefs.h <<\EOF
17651 #define _POSIX_SOURCE 1
17655 echo "$as_me: failed program was:" >&5
17656 cat conftest.$ac_ext >&5
17659 rm -f conftest.$ac_objext conftest.$ac_ext
17661 rm -f conftest.$ac_objext conftest.$ac_ext
17662 echo "$as_me:17662: result: $sigact_bad" >&5
17663 echo "${ECHO_T}$sigact_bad" >&6
17666 echo "$as_me:17666: checking if nanosleep really works" >&5
17667 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
17668 if test "${cf_cv_func_nanosleep+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 if test "$cross_compiling" = yes; then
17673 cf_cv_func_nanosleep=unknown
17675 cat >conftest.$ac_ext <<_ACEOF
17676 #line 17676 "configure"
17677 #include "confdefs.h"
17683 #ifdef HAVE_SYS_TIME_H
17684 #include <sys/time.h>
17688 struct timespec ts1, ts2;
17691 ts1.tv_nsec = 750000000;
17695 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
17696 ${cf_cv_main_return:-return}(code != 0);
17700 rm -f conftest$ac_exeext
17701 if { (eval echo "$as_me:17701: \"$ac_link\"") >&5
17702 (eval $ac_link) 2>&5
17704 echo "$as_me:17704: \$? = $ac_status" >&5
17705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17706 { (eval echo "$as_me:17706: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:17709: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 cf_cv_func_nanosleep=yes
17713 echo "$as_me: program exited with status $ac_status" >&5
17714 echo "$as_me: failed program was:" >&5
17715 cat conftest.$ac_ext >&5
17716 cf_cv_func_nanosleep=no
17718 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17721 echo "$as_me:17721: result: $cf_cv_func_nanosleep" >&5
17722 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
17724 test "$cf_cv_func_nanosleep" = "yes" &&
17725 cat >>confdefs.h <<\EOF
17726 #define HAVE_NANOSLEEP 1
17735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17736 echo "$as_me:17736: checking for $ac_header" >&5
17737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 cat >conftest.$ac_ext <<_ACEOF
17742 #line 17742 "configure"
17743 #include "confdefs.h"
17744 #include <$ac_header>
17746 if { (eval echo "$as_me:17746: \"$ac_cpp conftest.$ac_ext\"") >&5
17747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17749 egrep -v '^ *\+' conftest.er1 >conftest.err
17751 cat conftest.err >&5
17752 echo "$as_me:17752: \$? = $ac_status" >&5
17753 (exit $ac_status); } >/dev/null; then
17754 if test -s conftest.err; then
17755 ac_cpp_err=$ac_c_preproc_warn_flag
17762 if test -z "$ac_cpp_err"; then
17763 eval "$as_ac_Header=yes"
17765 echo "$as_me: failed program was:" >&5
17766 cat conftest.$ac_ext >&5
17767 eval "$as_ac_Header=no"
17769 rm -f conftest.err conftest.$ac_ext
17771 echo "$as_me:17771: result: `eval echo '${'$as_ac_Header'}'`" >&5
17772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17774 cat >>confdefs.h <<EOF
17775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17781 if test "$ISC" = yes ; then
17783 for ac_header in sys/termio.h
17785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17786 echo "$as_me:17786: checking for $ac_header" >&5
17787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 cat >conftest.$ac_ext <<_ACEOF
17792 #line 17792 "configure"
17793 #include "confdefs.h"
17794 #include <$ac_header>
17796 if { (eval echo "$as_me:17796: \"$ac_cpp conftest.$ac_ext\"") >&5
17797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17799 egrep -v '^ *\+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:17802: \$? = $ac_status" >&5
17803 (exit $ac_status); } >/dev/null; then
17804 if test -s conftest.err; then
17805 ac_cpp_err=$ac_c_preproc_warn_flag
17812 if test -z "$ac_cpp_err"; then
17813 eval "$as_ac_Header=yes"
17815 echo "$as_me: failed program was:" >&5
17816 cat conftest.$ac_ext >&5
17817 eval "$as_ac_Header=no"
17819 rm -f conftest.err conftest.$ac_ext
17821 echo "$as_me:17821: result: `eval echo '${'$as_ac_Header'}'`" >&5
17822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17824 cat >>confdefs.h <<EOF
17825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17832 if test "$ac_cv_header_termios_h" = yes ; then
17833 case "$CFLAGS $CPPFLAGS" in
17834 (*-D_POSIX_SOURCE*)
17835 termios_bad=dunno ;;
17836 (*) termios_bad=maybe ;;
17838 if test "$termios_bad" = maybe ; then
17839 echo "$as_me:17839: checking whether termios.h needs _POSIX_SOURCE" >&5
17840 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
17841 cat >conftest.$ac_ext <<_ACEOF
17842 #line 17842 "configure"
17843 #include "confdefs.h"
17844 #include <termios.h>
17848 struct termios foo; int x = foo.c_iflag
17853 rm -f conftest.$ac_objext
17854 if { (eval echo "$as_me:17854: \"$ac_compile\"") >&5
17855 (eval $ac_compile) 2>&5
17857 echo "$as_me:17857: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (eval echo "$as_me:17860: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17863 echo "$as_me:17863: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17867 echo "$as_me: failed program was:" >&5
17868 cat conftest.$ac_ext >&5
17870 cat >conftest.$ac_ext <<_ACEOF
17871 #line 17871 "configure"
17872 #include "confdefs.h"
17874 #define _POSIX_SOURCE
17875 #include <termios.h>
17879 struct termios foo; int x = foo.c_iflag
17884 rm -f conftest.$ac_objext
17885 if { (eval echo "$as_me:17885: \"$ac_compile\"") >&5
17886 (eval $ac_compile) 2>&5
17888 echo "$as_me:17888: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:17891: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17894 echo "$as_me:17894: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 termios_bad=unknown
17898 echo "$as_me: failed program was:" >&5
17899 cat conftest.$ac_ext >&5
17901 cat >>confdefs.h <<\EOF
17902 #define _POSIX_SOURCE 1
17906 rm -f conftest.$ac_objext conftest.$ac_ext
17909 rm -f conftest.$ac_objext conftest.$ac_ext
17910 echo "$as_me:17910: result: $termios_bad" >&5
17911 echo "${ECHO_T}$termios_bad" >&6
17915 echo "$as_me:17915: checking for tcgetattr" >&5
17916 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
17917 if test "${cf_cv_have_tcgetattr+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 cat >conftest.$ac_ext <<_ACEOF
17922 #line 17922 "configure"
17923 #include "confdefs.h"
17925 #include <sys/types.h>
17926 #ifdef HAVE_UNISTD_H
17927 #include <unistd.h>
17929 #ifdef HAVE_TERMIOS_H
17930 #include <termios.h>
17931 #define TTY struct termios
17933 #ifdef HAVE_TERMIO_H
17934 #include <termio.h>
17935 #define TTY struct termio
17944 tcgetattr(1, &foo);
17949 rm -f conftest.$ac_objext conftest$ac_exeext
17950 if { (eval echo "$as_me:17950: \"$ac_link\"") >&5
17951 (eval $ac_link) 2>&5
17953 echo "$as_me:17953: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
17955 { ac_try='test -s conftest$ac_exeext'
17956 { (eval echo "$as_me:17956: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17959 echo "$as_me:17959: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 cf_cv_have_tcgetattr=yes
17963 echo "$as_me: failed program was:" >&5
17964 cat conftest.$ac_ext >&5
17965 cf_cv_have_tcgetattr=no
17967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17969 echo "$as_me:17969: result: $cf_cv_have_tcgetattr" >&5
17970 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
17971 test "$cf_cv_have_tcgetattr" = yes &&
17972 cat >>confdefs.h <<\EOF
17973 #define HAVE_TCGETATTR 1
17976 echo "$as_me:17976: checking for vsscanf function or workaround" >&5
17977 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
17978 if test "${cf_cv_func_vsscanf+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 cat >conftest.$ac_ext <<_ACEOF
17983 #line 17983 "configure"
17984 #include "confdefs.h"
17986 #include <stdarg.h>
17993 vsscanf("from", "%d", ap)
17998 rm -f conftest.$ac_objext conftest$ac_exeext
17999 if { (eval echo "$as_me:17999: \"$ac_link\"") >&5
18000 (eval $ac_link) 2>&5
18002 echo "$as_me:18002: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try='test -s conftest$ac_exeext'
18005 { (eval echo "$as_me:18005: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18008 echo "$as_me:18008: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 cf_cv_func_vsscanf=vsscanf
18012 echo "$as_me: failed program was:" >&5
18013 cat conftest.$ac_ext >&5
18015 cat >conftest.$ac_ext <<_ACEOF
18016 #line 18016 "configure"
18017 #include "confdefs.h"
18019 #include <stdarg.h>
18026 char *str = "from";
18028 strbuf._flag = _IOREAD;
18029 strbuf._ptr = strbuf._base = (unsigned char *) str;
18030 strbuf._cnt = strlen(str);
18031 strbuf._file = _NFILE;
18032 return (vfscanf(&strbuf, "%d", ap))
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (eval echo "$as_me:18038: \"$ac_link\"") >&5
18039 (eval $ac_link) 2>&5
18041 echo "$as_me:18041: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (eval echo "$as_me:18044: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18047 echo "$as_me:18047: \$? = $ac_status" >&5
18048 (exit $ac_status); }; }; then
18049 cf_cv_func_vsscanf=vfscanf
18051 echo "$as_me: failed program was:" >&5
18052 cat conftest.$ac_ext >&5
18054 cat >conftest.$ac_ext <<_ACEOF
18055 #line 18055 "configure"
18056 #include "confdefs.h"
18058 #include <stdarg.h>
18065 char *str = "from";
18067 strbuf._flag = _IOREAD;
18068 strbuf._ptr = strbuf._base = (unsigned char *) str;
18069 strbuf._cnt = strlen(str);
18070 strbuf._file = _NFILE;
18071 return (_doscan(&strbuf, "%d", ap))
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (eval echo "$as_me:18077: \"$ac_link\"") >&5
18078 (eval $ac_link) 2>&5
18080 echo "$as_me:18080: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -s conftest$ac_exeext'
18083 { (eval echo "$as_me:18083: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 echo "$as_me:18086: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 cf_cv_func_vsscanf=_doscan
18090 echo "$as_me: failed program was:" >&5
18091 cat conftest.$ac_ext >&5
18093 cf_cv_func_vsscanf=no
18095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18101 echo "$as_me:18101: result: $cf_cv_func_vsscanf" >&5
18102 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
18104 case $cf_cv_func_vsscanf in
18106 cat >>confdefs.h <<\EOF
18107 #define HAVE_VSSCANF 1
18111 cat >>confdefs.h <<\EOF
18112 #define HAVE_VFSCANF 1
18116 cat >>confdefs.h <<\EOF
18117 #define HAVE__DOSCAN 1
18126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18127 echo "$as_me:18127: checking for $ac_header" >&5
18128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 cat >conftest.$ac_ext <<_ACEOF
18133 #line 18133 "configure"
18134 #include "confdefs.h"
18135 #include <$ac_header>
18137 if { (eval echo "$as_me:18137: \"$ac_cpp conftest.$ac_ext\"") >&5
18138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18140 egrep -v '^ *\+' conftest.er1 >conftest.err
18142 cat conftest.err >&5
18143 echo "$as_me:18143: \$? = $ac_status" >&5
18144 (exit $ac_status); } >/dev/null; then
18145 if test -s conftest.err; then
18146 ac_cpp_err=$ac_c_preproc_warn_flag
18153 if test -z "$ac_cpp_err"; then
18154 eval "$as_ac_Header=yes"
18156 echo "$as_me: failed program was:" >&5
18157 cat conftest.$ac_ext >&5
18158 eval "$as_ac_Header=no"
18160 rm -f conftest.err conftest.$ac_ext
18162 echo "$as_me:18162: result: `eval echo '${'$as_ac_Header'}'`" >&5
18163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18165 cat >>confdefs.h <<EOF
18166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18172 echo "$as_me:18172: checking for working mkstemp" >&5
18173 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
18174 if test "${cf_cv_func_mkstemp+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 if test "$cross_compiling" = yes; then
18180 cf_cv_func_mkstemp=maybe
18182 cat >conftest.$ac_ext <<_ACEOF
18183 #line 18183 "configure"
18184 #include "confdefs.h"
18186 #include <sys/types.h>
18187 #ifdef HAVE_UNISTD_H
18188 #include <unistd.h>
18190 #include <stdlib.h>
18192 #include <string.h>
18193 #include <sys/stat.h>
18196 char *tmpl = "conftestXXXXXX";
18204 for (n = 0; n < 2; ++n) {
18205 strcpy(name[n], tmpl);
18206 if ((fd = mkstemp(name[n])) >= 0) {
18207 if (!strcmp(name[n], tmpl)
18208 || stat(name[n], &sb) != 0
18209 || (sb.st_mode & S_IFMT) != S_IFREG
18210 || (sb.st_mode & 077) != 0) {
18217 && !strcmp(name[0], name[1]))
18219 ${cf_cv_main_return:-return}(result);
18223 rm -f conftest$ac_exeext
18224 if { (eval echo "$as_me:18224: \"$ac_link\"") >&5
18225 (eval $ac_link) 2>&5
18227 echo "$as_me:18227: \$? = $ac_status" >&5
18228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18229 { (eval echo "$as_me:18229: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18232 echo "$as_me:18232: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 cf_cv_func_mkstemp=yes
18237 echo "$as_me: program exited with status $ac_status" >&5
18238 echo "$as_me: failed program was:" >&5
18239 cat conftest.$ac_ext >&5
18240 cf_cv_func_mkstemp=no
18243 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18247 echo "$as_me:18247: result: $cf_cv_func_mkstemp" >&5
18248 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
18249 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
18250 echo "$as_me:18250: checking for mkstemp" >&5
18251 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
18252 if test "${ac_cv_func_mkstemp+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18255 cat >conftest.$ac_ext <<_ACEOF
18256 #line 18256 "configure"
18257 #include "confdefs.h"
18258 /* System header to define __stub macros and hopefully few prototypes,
18259 which can conflict with char mkstemp (); below. */
18260 #include <assert.h>
18261 /* Override any gcc2 internal prototype to avoid an error. */
18265 /* We use char because int might match the return type of a gcc2
18266 builtin and then its argument prototype would still apply. */
18273 /* The GNU C library defines this for functions which it implements
18274 to always fail with ENOSYS. Some functions are actually named
18275 something starting with __ and the normal name is an alias. */
18276 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
18279 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18286 rm -f conftest.$ac_objext conftest$ac_exeext
18287 if { (eval echo "$as_me:18287: \"$ac_link\"") >&5
18288 (eval $ac_link) 2>&5
18290 echo "$as_me:18290: \$? = $ac_status" >&5
18291 (exit $ac_status); } &&
18292 { ac_try='test -s conftest$ac_exeext'
18293 { (eval echo "$as_me:18293: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:18296: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 ac_cv_func_mkstemp=yes
18300 echo "$as_me: failed program was:" >&5
18301 cat conftest.$ac_ext >&5
18302 ac_cv_func_mkstemp=no
18304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18306 echo "$as_me:18306: result: $ac_cv_func_mkstemp" >&5
18307 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
18310 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
18312 cat >>confdefs.h <<\EOF
18313 #define HAVE_MKSTEMP 1
18318 # setup for prototype of fallback for vsscanf()
18320 if test "$cf_cv_func_vsscanf" = vsscanf ; then
18326 if test "x$cross_compiling" = xyes ; then
18327 { echo "$as_me:18327: WARNING: cross compiling: assume setvbuf params not reversed" >&5
18328 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
18330 echo "$as_me:18330: checking whether setvbuf arguments are reversed" >&5
18331 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
18332 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 if test "$cross_compiling" = yes; then
18336 { { echo "$as_me:18336: error: cannot run test program while cross compiling" >&5
18337 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
18338 { (exit 1); exit 1; }; }
18340 cat >conftest.$ac_ext <<_ACEOF
18341 #line 18341 "configure"
18342 #include "confdefs.h"
18344 /* If setvbuf has the reversed format, exit 0. */
18348 /* This call has the arguments reversed.
18349 A reversed system may check and see that the address of main
18350 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
18351 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
18352 $ac_main_return(1);
18353 putc('\r', stdout);
18354 $ac_main_return(0); /* Non-reversed systems segv here. */
18357 rm -f conftest$ac_exeext
18358 if { (eval echo "$as_me:18358: \"$ac_link\"") >&5
18359 (eval $ac_link) 2>&5
18361 echo "$as_me:18361: \$? = $ac_status" >&5
18362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18363 { (eval echo "$as_me:18363: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:18366: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_cv_func_setvbuf_reversed=yes
18370 echo "$as_me: program exited with status $ac_status" >&5
18371 echo "$as_me: failed program was:" >&5
18372 cat conftest.$ac_ext >&5
18373 ac_cv_func_setvbuf_reversed=no
18375 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18377 rm -f core core.* *.core
18379 echo "$as_me:18379: result: $ac_cv_func_setvbuf_reversed" >&5
18380 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
18381 if test $ac_cv_func_setvbuf_reversed = yes; then
18383 cat >>confdefs.h <<\EOF
18384 #define SETVBUF_REVERSED 1
18390 echo "$as_me:18390: checking for intptr_t" >&5
18391 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
18392 if test "${ac_cv_type_intptr_t+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18396 #line 18396 "configure"
18397 #include "confdefs.h"
18398 $ac_includes_default
18402 if ((intptr_t *) 0)
18404 if (sizeof (intptr_t))
18410 rm -f conftest.$ac_objext
18411 if { (eval echo "$as_me:18411: \"$ac_compile\"") >&5
18412 (eval $ac_compile) 2>&5
18414 echo "$as_me:18414: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -s conftest.$ac_objext'
18417 { (eval echo "$as_me:18417: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:18420: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_cv_type_intptr_t=yes
18424 echo "$as_me: failed program was:" >&5
18425 cat conftest.$ac_ext >&5
18426 ac_cv_type_intptr_t=no
18428 rm -f conftest.$ac_objext conftest.$ac_ext
18430 echo "$as_me:18430: result: $ac_cv_type_intptr_t" >&5
18431 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
18432 if test $ac_cv_type_intptr_t = yes; then
18436 cat >>confdefs.h <<EOF
18437 #define intptr_t long
18442 echo "$as_me:18442: checking for ssize_t" >&5
18443 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18444 if test "${ac_cv_type_ssize_t+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18447 cat >conftest.$ac_ext <<_ACEOF
18448 #line 18448 "configure"
18449 #include "confdefs.h"
18450 $ac_includes_default
18456 if (sizeof (ssize_t))
18462 rm -f conftest.$ac_objext
18463 if { (eval echo "$as_me:18463: \"$ac_compile\"") >&5
18464 (eval $ac_compile) 2>&5
18466 echo "$as_me:18466: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try='test -s conftest.$ac_objext'
18469 { (eval echo "$as_me:18469: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:18472: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_type_ssize_t=yes
18476 echo "$as_me: failed program was:" >&5
18477 cat conftest.$ac_ext >&5
18478 ac_cv_type_ssize_t=no
18480 rm -f conftest.$ac_objext conftest.$ac_ext
18482 echo "$as_me:18482: result: $ac_cv_type_ssize_t" >&5
18483 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
18484 if test $ac_cv_type_ssize_t = yes; then
18488 cat >>confdefs.h <<EOF
18489 #define ssize_t int
18494 echo "$as_me:18494: checking for type sigaction_t" >&5
18495 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
18496 if test "${cf_cv_type_sigaction+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 cat >conftest.$ac_ext <<_ACEOF
18501 #line 18501 "configure"
18502 #include "confdefs.h"
18504 #include <signal.h>
18513 rm -f conftest.$ac_objext
18514 if { (eval echo "$as_me:18514: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>&5
18517 echo "$as_me:18517: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -s conftest.$ac_objext'
18520 { (eval echo "$as_me:18520: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18523 echo "$as_me:18523: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 cf_cv_type_sigaction=yes
18527 echo "$as_me: failed program was:" >&5
18528 cat conftest.$ac_ext >&5
18529 cf_cv_type_sigaction=no
18531 rm -f conftest.$ac_objext conftest.$ac_ext
18534 echo "$as_me:18534: result: $cf_cv_type_sigaction" >&5
18535 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
18536 test "$cf_cv_type_sigaction" = yes &&
18537 cat >>confdefs.h <<\EOF
18538 #define HAVE_TYPE_SIGACTION 1
18541 echo "$as_me:18541: checking declaration of size-change" >&5
18542 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
18543 if test "${cf_cv_sizechange+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 cf_cv_sizechange=unknown
18548 cf_save_CPPFLAGS="$CPPFLAGS"
18550 for cf_opts in "" "NEED_PTEM_H"
18553 CPPFLAGS="$cf_save_CPPFLAGS"
18554 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
18555 cat >conftest.$ac_ext <<_ACEOF
18556 #line 18556 "configure"
18557 #include "confdefs.h"
18558 #include <sys/types.h>
18559 #ifdef HAVE_TERMIOS_H
18560 #include <termios.h>
18562 #ifdef HAVE_TERMIO_H
18563 #include <termio.h>
18567 /* This is a workaround for SCO: they neglected to define struct winsize in
18568 * termios.h -- it's only in termio.h and ptem.h
18570 #include <sys/stream.h>
18571 #include <sys/ptem.h>
18573 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
18574 #include <sys/ioctl.h>
18582 struct ttysize win; /* FIXME: what system is this? */
18583 int y = win.ts_lines;
18584 int x = win.ts_cols;
18587 struct winsize win;
18588 int y = win.ws_row;
18589 int x = win.ws_col;
18591 no TIOCGSIZE or TIOCGWINSZ
18592 #endif /* TIOCGWINSZ */
18593 #endif /* TIOCGSIZE */
18599 rm -f conftest.$ac_objext
18600 if { (eval echo "$as_me:18600: \"$ac_compile\"") >&5
18601 (eval $ac_compile) 2>&5
18603 echo "$as_me:18603: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -s conftest.$ac_objext'
18606 { (eval echo "$as_me:18606: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:18609: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18611 cf_cv_sizechange=yes
18613 echo "$as_me: failed program was:" >&5
18614 cat conftest.$ac_ext >&5
18615 cf_cv_sizechange=no
18617 rm -f conftest.$ac_objext conftest.$ac_ext
18619 CPPFLAGS="$cf_save_CPPFLAGS"
18620 if test "$cf_cv_sizechange" = yes ; then
18621 echo "size-change succeeded ($cf_opts)" >&5
18622 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
18628 echo "$as_me:18628: result: $cf_cv_sizechange" >&5
18629 echo "${ECHO_T}$cf_cv_sizechange" >&6
18630 if test "$cf_cv_sizechange" != no ; then
18632 cat >>confdefs.h <<\EOF
18633 #define HAVE_SIZECHANGE 1
18636 case $cf_cv_sizechange in
18638 cat >>confdefs.h <<EOF
18639 #define $cf_cv_sizechange 1
18646 echo "$as_me:18646: checking for memmove" >&5
18647 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
18648 if test "${ac_cv_func_memmove+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 cat >conftest.$ac_ext <<_ACEOF
18652 #line 18652 "configure"
18653 #include "confdefs.h"
18654 /* System header to define __stub macros and hopefully few prototypes,
18655 which can conflict with char memmove (); below. */
18656 #include <assert.h>
18657 /* Override any gcc2 internal prototype to avoid an error. */
18661 /* We use char because int might match the return type of a gcc2
18662 builtin and then its argument prototype would still apply. */
18669 /* The GNU C library defines this for functions which it implements
18670 to always fail with ENOSYS. Some functions are actually named
18671 something starting with __ and the normal name is an alias. */
18672 #if defined (__stub_memmove) || defined (__stub___memmove)
18675 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:18683: \"$ac_link\"") >&5
18684 (eval $ac_link) 2>&5
18686 echo "$as_me:18686: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (eval echo "$as_me:18689: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 echo "$as_me:18692: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_func_memmove=yes
18696 echo "$as_me: failed program was:" >&5
18697 cat conftest.$ac_ext >&5
18698 ac_cv_func_memmove=no
18700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18702 echo "$as_me:18702: result: $ac_cv_func_memmove" >&5
18703 echo "${ECHO_T}$ac_cv_func_memmove" >&6
18704 if test $ac_cv_func_memmove = yes; then
18708 echo "$as_me:18708: checking for bcopy" >&5
18709 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
18710 if test "${ac_cv_func_bcopy+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 cat >conftest.$ac_ext <<_ACEOF
18714 #line 18714 "configure"
18715 #include "confdefs.h"
18716 /* System header to define __stub macros and hopefully few prototypes,
18717 which can conflict with char bcopy (); below. */
18718 #include <assert.h>
18719 /* Override any gcc2 internal prototype to avoid an error. */
18723 /* We use char because int might match the return type of a gcc2
18724 builtin and then its argument prototype would still apply. */
18731 /* The GNU C library defines this for functions which it implements
18732 to always fail with ENOSYS. Some functions are actually named
18733 something starting with __ and the normal name is an alias. */
18734 #if defined (__stub_bcopy) || defined (__stub___bcopy)
18737 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18744 rm -f conftest.$ac_objext conftest$ac_exeext
18745 if { (eval echo "$as_me:18745: \"$ac_link\"") >&5
18746 (eval $ac_link) 2>&5
18748 echo "$as_me:18748: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -s conftest$ac_exeext'
18751 { (eval echo "$as_me:18751: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18754 echo "$as_me:18754: \$? = $ac_status" >&5
18755 (exit $ac_status); }; }; then
18756 ac_cv_func_bcopy=yes
18758 echo "$as_me: failed program was:" >&5
18759 cat conftest.$ac_ext >&5
18760 ac_cv_func_bcopy=no
18762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18764 echo "$as_me:18764: result: $ac_cv_func_bcopy" >&5
18765 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
18766 if test $ac_cv_func_bcopy = yes; then
18768 echo "$as_me:18768: checking if bcopy does overlapping moves" >&5
18769 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
18770 if test "${cf_cv_good_bcopy+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 if test "$cross_compiling" = yes; then
18775 cf_cv_good_bcopy=unknown
18777 cat >conftest.$ac_ext <<_ACEOF
18778 #line 18778 "configure"
18779 #include "confdefs.h"
18782 static char data[] = "abcdefghijklmnopqrstuwwxyz";
18784 bcopy(data, temp, sizeof(data));
18785 bcopy(temp+10, temp, 15);
18786 bcopy(temp+5, temp+15, 10);
18787 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
18791 rm -f conftest$ac_exeext
18792 if { (eval echo "$as_me:18792: \"$ac_link\"") >&5
18793 (eval $ac_link) 2>&5
18795 echo "$as_me:18795: \$? = $ac_status" >&5
18796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18797 { (eval echo "$as_me:18797: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18800 echo "$as_me:18800: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 cf_cv_good_bcopy=yes
18804 echo "$as_me: program exited with status $ac_status" >&5
18805 echo "$as_me: failed program was:" >&5
18806 cat conftest.$ac_ext >&5
18807 cf_cv_good_bcopy=no
18809 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18813 echo "$as_me:18813: result: $cf_cv_good_bcopy" >&5
18814 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
18817 cf_cv_good_bcopy=no
18820 if test "$cf_cv_good_bcopy" = yes ; then
18822 cat >>confdefs.h <<\EOF
18823 #define USE_OK_BCOPY 1
18828 cat >>confdefs.h <<\EOF
18829 #define USE_MY_MEMMOVE 1
18836 tty 2>&1 >/dev/null || {
18837 for ac_func in posix_openpt
18839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18840 echo "$as_me:18840: checking for $ac_func" >&5
18841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18842 if eval "test \"\${$as_ac_var+set}\" = set"; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 cat >conftest.$ac_ext <<_ACEOF
18846 #line 18846 "configure"
18847 #include "confdefs.h"
18848 /* System header to define __stub macros and hopefully few prototypes,
18849 which can conflict with char $ac_func (); below. */
18850 #include <assert.h>
18851 /* Override any gcc2 internal prototype to avoid an error. */
18855 /* We use char because int might match the return type of a gcc2
18856 builtin and then its argument prototype would still apply. */
18863 /* The GNU C library defines this for functions which it implements
18864 to always fail with ENOSYS. Some functions are actually named
18865 something starting with __ and the normal name is an alias. */
18866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18869 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (eval echo "$as_me:18877: \"$ac_link\"") >&5
18878 (eval $ac_link) 2>&5
18880 echo "$as_me:18880: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -s conftest$ac_exeext'
18883 { (eval echo "$as_me:18883: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:18886: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 eval "$as_ac_var=yes"
18890 echo "$as_me: failed program was:" >&5
18891 cat conftest.$ac_ext >&5
18892 eval "$as_ac_var=no"
18894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18896 echo "$as_me:18896: result: `eval echo '${'$as_ac_var'}'`" >&5
18897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18898 if test `eval echo '${'$as_ac_var'}'` = yes; then
18899 cat >>confdefs.h <<EOF
18900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18906 echo "$as_me:18906: checking if poll really works" >&5
18907 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
18908 if test "${cf_cv_working_poll+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 if test "$cross_compiling" = yes; then
18913 cf_cv_working_poll=unknown
18915 cat >conftest.$ac_ext <<_ACEOF
18916 #line 18916 "configure"
18917 #include "confdefs.h"
18919 #include <stdlib.h>
18921 #include <unistd.h>
18926 #include <sys/poll.h>
18929 struct pollfd myfds;
18932 /* check for Darwin bug with respect to "devices" */
18933 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
18936 myfds.events = POLLIN;
18939 ret = poll(&myfds, 1, 100);
18941 if (ret < 0 || (myfds.revents & POLLNVAL)) {
18946 fd = open("/dev/tty", 2); /* O_RDWR */
18948 #ifdef HAVE_POSIX_OPENPT
18950 fd = posix_openpt(O_RDWR);
18955 /* also check with standard input */
18957 myfds.events = POLLIN;
18959 ret = poll(&myfds, 1, 100);
18964 ${cf_cv_main_return:-return}(ret < 0);
18967 rm -f conftest$ac_exeext
18968 if { (eval echo "$as_me:18968: \"$ac_link\"") >&5
18969 (eval $ac_link) 2>&5
18971 echo "$as_me:18971: \$? = $ac_status" >&5
18972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18973 { (eval echo "$as_me:18973: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18976 echo "$as_me:18976: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 cf_cv_working_poll=yes
18980 echo "$as_me: program exited with status $ac_status" >&5
18981 echo "$as_me: failed program was:" >&5
18982 cat conftest.$ac_ext >&5
18983 cf_cv_working_poll=no
18985 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18988 echo "$as_me:18988: result: $cf_cv_working_poll" >&5
18989 echo "${ECHO_T}$cf_cv_working_poll" >&6
18990 test "$cf_cv_working_poll" = "yes" &&
18991 cat >>confdefs.h <<\EOF
18992 #define HAVE_WORKING_POLL 1
18995 echo "$as_me:18995: checking for va_copy" >&5
18996 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18997 if test "${cf_cv_have_va_copy+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19002 #line 19002 "configure"
19003 #include "confdefs.h"
19005 #include <stdarg.h>
19011 static va_list dst;
19012 static va_list src;
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (eval echo "$as_me:19019: \"$ac_link\"") >&5
19020 (eval $ac_link) 2>&5
19022 echo "$as_me:19022: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -s conftest$ac_exeext'
19025 { (eval echo "$as_me:19025: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19028 echo "$as_me:19028: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 cf_cv_have_va_copy=yes
19032 echo "$as_me: failed program was:" >&5
19033 cat conftest.$ac_ext >&5
19034 cf_cv_have_va_copy=no
19036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19038 echo "$as_me:19038: result: $cf_cv_have_va_copy" >&5
19039 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
19041 test "$cf_cv_have_va_copy" = yes &&
19042 cat >>confdefs.h <<\EOF
19043 #define HAVE_VA_COPY 1
19046 echo "$as_me:19046: checking for __va_copy" >&5
19047 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
19048 if test "${cf_cv_have___va_copy+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 cat >conftest.$ac_ext <<_ACEOF
19053 #line 19053 "configure"
19054 #include "confdefs.h"
19056 #include <stdarg.h>
19062 static va_list dst;
19063 static va_list src;
19064 __va_copy(dst, src)
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (eval echo "$as_me:19070: \"$ac_link\"") >&5
19071 (eval $ac_link) 2>&5
19073 echo "$as_me:19073: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -s conftest$ac_exeext'
19076 { (eval echo "$as_me:19076: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 echo "$as_me:19079: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 cf_cv_have___va_copy=yes
19083 echo "$as_me: failed program was:" >&5
19084 cat conftest.$ac_ext >&5
19085 cf_cv_have___va_copy=no
19087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19089 echo "$as_me:19089: result: $cf_cv_have___va_copy" >&5
19090 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
19092 test "$cf_cv_have___va_copy" = yes &&
19093 cat >>confdefs.h <<\EOF
19094 #define HAVE___VA_COPY 1
19097 echo "$as_me:19097: checking for pid_t" >&5
19098 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19099 if test "${ac_cv_type_pid_t+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 cat >conftest.$ac_ext <<_ACEOF
19103 #line 19103 "configure"
19104 #include "confdefs.h"
19105 $ac_includes_default
19111 if (sizeof (pid_t))
19117 rm -f conftest.$ac_objext
19118 if { (eval echo "$as_me:19118: \"$ac_compile\"") >&5
19119 (eval $ac_compile) 2>&5
19121 echo "$as_me:19121: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:19124: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:19127: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_type_pid_t=yes
19131 echo "$as_me: failed program was:" >&5
19132 cat conftest.$ac_ext >&5
19133 ac_cv_type_pid_t=no
19135 rm -f conftest.$ac_objext conftest.$ac_ext
19137 echo "$as_me:19137: result: $ac_cv_type_pid_t" >&5
19138 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19139 if test $ac_cv_type_pid_t = yes; then
19143 cat >>confdefs.h <<EOF
19149 for ac_header in unistd.h vfork.h
19151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19152 echo "$as_me:19152: checking for $ac_header" >&5
19153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 cat >conftest.$ac_ext <<_ACEOF
19158 #line 19158 "configure"
19159 #include "confdefs.h"
19160 #include <$ac_header>
19162 if { (eval echo "$as_me:19162: \"$ac_cpp conftest.$ac_ext\"") >&5
19163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19165 egrep -v '^ *\+' conftest.er1 >conftest.err
19167 cat conftest.err >&5
19168 echo "$as_me:19168: \$? = $ac_status" >&5
19169 (exit $ac_status); } >/dev/null; then
19170 if test -s conftest.err; then
19171 ac_cpp_err=$ac_c_preproc_warn_flag
19178 if test -z "$ac_cpp_err"; then
19179 eval "$as_ac_Header=yes"
19181 echo "$as_me: failed program was:" >&5
19182 cat conftest.$ac_ext >&5
19183 eval "$as_ac_Header=no"
19185 rm -f conftest.err conftest.$ac_ext
19187 echo "$as_me:19187: result: `eval echo '${'$as_ac_Header'}'`" >&5
19188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19190 cat >>confdefs.h <<EOF
19191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19197 for ac_func in fork vfork
19199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19200 echo "$as_me:19200: checking for $ac_func" >&5
19201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19202 if eval "test \"\${$as_ac_var+set}\" = set"; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 cat >conftest.$ac_ext <<_ACEOF
19206 #line 19206 "configure"
19207 #include "confdefs.h"
19208 /* System header to define __stub macros and hopefully few prototypes,
19209 which can conflict with char $ac_func (); below. */
19210 #include <assert.h>
19211 /* Override any gcc2 internal prototype to avoid an error. */
19215 /* We use char because int might match the return type of a gcc2
19216 builtin and then its argument prototype would still apply. */
19223 /* The GNU C library defines this for functions which it implements
19224 to always fail with ENOSYS. Some functions are actually named
19225 something starting with __ and the normal name is an alias. */
19226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19229 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (eval echo "$as_me:19237: \"$ac_link\"") >&5
19238 (eval $ac_link) 2>&5
19240 echo "$as_me:19240: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
19242 { ac_try='test -s conftest$ac_exeext'
19243 { (eval echo "$as_me:19243: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19246 echo "$as_me:19246: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 eval "$as_ac_var=yes"
19250 echo "$as_me: failed program was:" >&5
19251 cat conftest.$ac_ext >&5
19252 eval "$as_ac_var=no"
19254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19256 echo "$as_me:19256: result: `eval echo '${'$as_ac_var'}'`" >&5
19257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19258 if test `eval echo '${'$as_ac_var'}'` = yes; then
19259 cat >>confdefs.h <<EOF
19260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19266 ac_cv_func_fork_works=$ac_cv_func_fork
19267 if test "x$ac_cv_func_fork" = xyes; then
19268 echo "$as_me:19268: checking for working fork" >&5
19269 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19270 if test "${ac_cv_func_fork_works+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 if test "$cross_compiling" = yes; then
19274 ac_cv_func_fork_works=cross
19276 cat >conftest.$ac_ext <<_ACEOF
19277 /* By Rüdiger Kuhlmann. */
19278 #include <sys/types.h>
19280 # include <unistd.h>
19282 /* Some systems only have a dummy stub for fork() */
19286 $ac_main_return (1);
19287 $ac_main_return (0);
19290 rm -f conftest$ac_exeext
19291 if { (eval echo "$as_me:19291: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>&5
19294 echo "$as_me:19294: \$? = $ac_status" >&5
19295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19296 { (eval echo "$as_me:19296: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19299 echo "$as_me:19299: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19301 ac_cv_func_fork_works=yes
19303 echo "$as_me: program exited with status $ac_status" >&5
19304 echo "$as_me: failed program was:" >&5
19305 cat conftest.$ac_ext >&5
19306 ac_cv_func_fork_works=no
19308 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19311 echo "$as_me:19311: result: $ac_cv_func_fork_works" >&5
19312 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19315 if test "x$ac_cv_func_fork_works" = xcross; then
19317 *-*-amigaos* | *-*-msdosdjgpp*)
19318 # Override, as these systems have only a dummy fork() stub
19319 ac_cv_func_fork_works=no
19322 ac_cv_func_fork_works=yes
19325 { echo "$as_me:19325: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
19326 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
19328 ac_cv_func_vfork_works=$ac_cv_func_vfork
19329 if test "x$ac_cv_func_vfork" = xyes; then
19330 echo "$as_me:19330: checking for working vfork" >&5
19331 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19332 if test "${ac_cv_func_vfork_works+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 if test "$cross_compiling" = yes; then
19336 ac_cv_func_vfork_works=cross
19338 cat >conftest.$ac_ext <<_ACEOF
19339 #line 19339 "configure"
19340 #include "confdefs.h"
19341 /* Thanks to Paul Eggert for this test. */
19343 #include <sys/types.h>
19344 #include <sys/stat.h>
19346 # include <unistd.h>
19349 # include <vfork.h>
19351 /* On some sparc systems, changes by the child to local and incoming
19352 argument registers are propagated back to the parent. The compiler
19353 is told about this with #include <vfork.h>, but some compilers
19354 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19355 static variable whose address is put into a register that is
19356 clobbered by the vfork. */
19359 sparc_address_test (int arg)
19361 sparc_address_test (arg) int arg;
19364 static pid_t child;
19382 pid_t parent = getpid ();
19385 sparc_address_test ();
19390 /* Here is another test for sparc vfork register problems. This
19391 test uses lots of local variables, at least as many local
19392 variables as main has allocated so far including compiler
19393 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19394 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19395 reuse the register of parent for one of the local variables,
19396 since it will think that parent can't possibly be used any more
19397 in this routine. Assigning to the local variable will thus
19398 munge parent in the parent process. */
19400 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19401 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19402 /* Convince the compiler that p..p7 are live; otherwise, it might
19403 use the same hardware register for all 8 local variables. */
19404 if (p != p1 || p != p2 || p != p3 || p != p4
19405 || p != p5 || p != p6 || p != p7)
19408 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19409 from child file descriptors. If the child closes a descriptor
19410 before it execs or exits, this munges the parent's descriptor
19411 as well. Test for this by closing stdout in the child. */
19412 _exit(close(fileno(stdout)) != 0);
19417 while (wait(&status) != child)
19420 /* Was there some problem with vforking? */
19423 /* Did the child fail? (This shouldn't happen.) */
19426 /* Did the vfork/compiler bug occur? */
19427 || parent != getpid()
19429 /* Did the file descriptor bug occur? */
19430 || fstat(fileno(stdout), &st) != 0
19435 rm -f conftest$ac_exeext
19436 if { (eval echo "$as_me:19436: \"$ac_link\"") >&5
19437 (eval $ac_link) 2>&5
19439 echo "$as_me:19439: \$? = $ac_status" >&5
19440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19441 { (eval echo "$as_me:19441: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:19444: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_cv_func_vfork_works=yes
19448 echo "$as_me: program exited with status $ac_status" >&5
19449 echo "$as_me: failed program was:" >&5
19450 cat conftest.$ac_ext >&5
19451 ac_cv_func_vfork_works=no
19453 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19456 echo "$as_me:19456: result: $ac_cv_func_vfork_works" >&5
19457 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19460 if test "x$ac_cv_func_fork_works" = xcross; then
19461 ac_cv_func_vfork_works=ac_cv_func_vfork
19462 { echo "$as_me:19462: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
19463 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
19466 if test "x$ac_cv_func_vfork_works" = xyes; then
19468 cat >>confdefs.h <<\EOF
19469 #define HAVE_WORKING_VFORK 1
19474 cat >>confdefs.h <<\EOF
19479 if test "x$ac_cv_func_fork_works" = xyes; then
19481 cat >>confdefs.h <<\EOF
19482 #define HAVE_WORKING_FORK 1
19487 # special check for test/ditto.c
19489 echo "$as_me:19489: checking for openpty in -lutil" >&5
19490 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
19491 if test "${ac_cv_lib_util_openpty+set}" = set; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
19494 ac_check_lib_save_LIBS=$LIBS
19495 LIBS="-lutil $LIBS"
19496 cat >conftest.$ac_ext <<_ACEOF
19497 #line 19497 "configure"
19498 #include "confdefs.h"
19500 /* Override any gcc2 internal prototype to avoid an error. */
19504 /* We use char because int might match the return type of a gcc2
19505 builtin and then its argument prototype would still apply. */
19515 rm -f conftest.$ac_objext conftest$ac_exeext
19516 if { (eval echo "$as_me:19516: \"$ac_link\"") >&5
19517 (eval $ac_link) 2>&5
19519 echo "$as_me:19519: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
19521 { ac_try='test -s conftest$ac_exeext'
19522 { (eval echo "$as_me:19522: \"$ac_try\"") >&5
19523 (eval $ac_try) 2>&5
19525 echo "$as_me:19525: \$? = $ac_status" >&5
19526 (exit $ac_status); }; }; then
19527 ac_cv_lib_util_openpty=yes
19529 echo "$as_me: failed program was:" >&5
19530 cat conftest.$ac_ext >&5
19531 ac_cv_lib_util_openpty=no
19533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19534 LIBS=$ac_check_lib_save_LIBS
19536 echo "$as_me:19536: result: $ac_cv_lib_util_openpty" >&5
19537 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
19538 if test $ac_cv_lib_util_openpty = yes; then
19544 echo "$as_me:19544: checking for openpty header" >&5
19545 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
19546 if test "${cf_cv_func_openpty+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 cf_save_LIBS="$LIBS"
19551 test $cf_cv_lib_util = yes && {
19552 cf_add_libs="-lutil"
19553 # Filter out duplicates - this happens with badly-designed ".pc" files...
19554 for cf_add_1lib in $LIBS
19556 for cf_add_2lib in $cf_add_libs
19558 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19564 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19566 LIBS="$cf_add_libs"
19568 for cf_header in pty.h libutil.h util.h
19570 cat >conftest.$ac_ext <<_ACEOF
19571 #line 19571 "configure"
19572 #include "confdefs.h"
19574 #include <$cf_header>
19580 int x = openpty((int *)0, (int *)0, (char *)0,
19581 (struct termios *)0, (struct winsize *)0);
19587 rm -f conftest.$ac_objext conftest$ac_exeext
19588 if { (eval echo "$as_me:19588: \"$ac_link\"") >&5
19589 (eval $ac_link) 2>&5
19591 echo "$as_me:19591: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -s conftest$ac_exeext'
19594 { (eval echo "$as_me:19594: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19597 echo "$as_me:19597: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19600 cf_cv_func_openpty=$cf_header
19604 echo "$as_me: failed program was:" >&5
19605 cat conftest.$ac_ext >&5
19607 cf_cv_func_openpty=no
19610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19612 LIBS="$cf_save_LIBS"
19615 echo "$as_me:19615: result: $cf_cv_func_openpty" >&5
19616 echo "${ECHO_T}$cf_cv_func_openpty" >&6
19618 if test "$cf_cv_func_openpty" != no ; then
19620 cat >>confdefs.h <<EOF
19621 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
19624 cat >>confdefs.h <<\EOF
19625 #define USE_XTERM_PTY 1
19628 if test "x$cf_cv_lib_util" = xyes ; then
19630 cf_add_libs="-lutil"
19631 # Filter out duplicates - this happens with badly-designed ".pc" files...
19632 for cf_add_1lib in $TEST_LIBS
19634 for cf_add_2lib in $cf_add_libs
19636 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19642 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19644 TEST_LIBS="$cf_add_libs"
19649 if test "$with_hashed_db" != no ; then
19651 cat >>confdefs.h <<\EOF
19652 #define USE_HASHED_DB 1
19655 case $with_hashed_db in
19659 if test -d "$with_hashed_db" ; then
19661 if test -n "$with_hashed_db/include" ; then
19662 for cf_add_incdir in $with_hashed_db/include
19664 while test $cf_add_incdir != /usr/include
19666 if test -d $cf_add_incdir
19669 if test -n "$CFLAGS$CPPFLAGS" ; then
19670 # a loop is needed to ensure we can add subdirs of existing dirs
19671 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19672 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19673 cf_have_incdir=yes; break
19678 if test "$cf_have_incdir" = no ; then
19679 if test "$cf_add_incdir" = /usr/local/include ; then
19680 if test "$GCC" = yes
19682 cf_save_CPPFLAGS=$CPPFLAGS
19683 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19684 cat >conftest.$ac_ext <<_ACEOF
19685 #line 19685 "configure"
19686 #include "confdefs.h"
19696 rm -f conftest.$ac_objext
19697 if { (eval echo "$as_me:19697: \"$ac_compile\"") >&5
19698 (eval $ac_compile) 2>&5
19700 echo "$as_me:19700: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -s conftest.$ac_objext'
19703 { (eval echo "$as_me:19703: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19706 echo "$as_me:19706: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19710 echo "$as_me: failed program was:" >&5
19711 cat conftest.$ac_ext >&5
19714 rm -f conftest.$ac_objext conftest.$ac_ext
19715 CPPFLAGS=$cf_save_CPPFLAGS
19720 if test "$cf_have_incdir" = no ; then
19721 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19723 echo "${as_me:-configure}:19723: testing adding $cf_add_incdir to include-path ..." 1>&5
19725 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19727 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19728 test "$cf_top_incdir" = "$cf_add_incdir" && break
19729 cf_add_incdir="$cf_top_incdir"
19740 if test -n "$with_hashed_db/lib" ; then
19741 for cf_add_libdir in $with_hashed_db/lib
19743 if test $cf_add_libdir = /usr/lib ; then
19745 elif test -d $cf_add_libdir
19748 if test -n "$LDFLAGS$LIBS" ; then
19749 # a loop is needed to ensure we can add subdirs of existing dirs
19750 for cf_test_libdir in $LDFLAGS $LIBS ; do
19751 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19752 cf_have_libdir=yes; break
19756 if test "$cf_have_libdir" = no ; then
19757 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19759 echo "${as_me:-configure}:19759: testing adding $cf_add_libdir to library-path ..." 1>&5
19761 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19768 case "$with_hashed_db" in
19770 { echo "$as_me:19770: WARNING: no such directory $with_hashed_db" >&5
19771 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
19777 test "x$prefix" != "xNONE" && \
19778 test -d "$prefix" && \
19780 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
19781 test -d $prefix/include && cf_search="$cf_search $prefix/include"
19782 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
19783 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
19784 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
19785 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
19788 for cf_subdir_prefix in \
19797 test "x$cf_subdir_prefix" != "x$prefix" && \
19798 test -d "$cf_subdir_prefix" && \
19799 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19800 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
19801 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
19802 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
19803 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
19804 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
19805 test -d $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db"
19810 for cf_item in $cf_search
19813 (*/$with_hashed_db)
19815 if test -n "$cf_item" ; then
19816 for cf_add_incdir in $cf_item
19818 while test $cf_add_incdir != /usr/include
19820 if test -d $cf_add_incdir
19823 if test -n "$CFLAGS$CPPFLAGS" ; then
19824 # a loop is needed to ensure we can add subdirs of existing dirs
19825 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19826 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19827 cf_have_incdir=yes; break
19832 if test "$cf_have_incdir" = no ; then
19833 if test "$cf_add_incdir" = /usr/local/include ; then
19834 if test "$GCC" = yes
19836 cf_save_CPPFLAGS=$CPPFLAGS
19837 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19838 cat >conftest.$ac_ext <<_ACEOF
19839 #line 19839 "configure"
19840 #include "confdefs.h"
19850 rm -f conftest.$ac_objext
19851 if { (eval echo "$as_me:19851: \"$ac_compile\"") >&5
19852 (eval $ac_compile) 2>&5
19854 echo "$as_me:19854: \$? = $ac_status" >&5
19855 (exit $ac_status); } &&
19856 { ac_try='test -s conftest.$ac_objext'
19857 { (eval echo "$as_me:19857: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19860 echo "$as_me:19860: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19864 echo "$as_me: failed program was:" >&5
19865 cat conftest.$ac_ext >&5
19868 rm -f conftest.$ac_objext conftest.$ac_ext
19869 CPPFLAGS=$cf_save_CPPFLAGS
19874 if test "$cf_have_incdir" = no ; then
19875 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19877 echo "${as_me:-configure}:19877: testing adding $cf_add_incdir to include-path ..." 1>&5
19879 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19881 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19882 test "$cf_top_incdir" = "$cf_add_incdir" && break
19883 cf_add_incdir="$cf_top_incdir"
19900 test "x$prefix" != "xNONE" && \
19901 test -d "$prefix" && \
19903 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
19904 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
19905 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
19906 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
19907 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
19908 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
19911 for cf_subdir_prefix in \
19920 test "x$cf_subdir_prefix" != "x$prefix" && \
19921 test -d "$cf_subdir_prefix" && \
19922 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19923 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
19924 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
19925 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
19926 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
19927 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
19928 test -d $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db"
19933 for cf_item in $cf_search
19936 (*/$with_hashed_db)
19938 if test -n "$cf_item" ; then
19939 for cf_add_libdir in $cf_item
19941 if test $cf_add_libdir = /usr/lib ; then
19943 elif test -d $cf_add_libdir
19946 if test -n "$LDFLAGS$LIBS" ; then
19947 # a loop is needed to ensure we can add subdirs of existing dirs
19948 for cf_test_libdir in $LDFLAGS $LIBS ; do
19949 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19950 cf_have_libdir=yes; break
19954 if test "$cf_have_libdir" = no ; then
19955 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19957 echo "${as_me:-configure}:19957: testing adding $cf_add_libdir to library-path ..." 1>&5
19959 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19974 echo "$as_me:19974: checking for db.h" >&5
19975 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
19976 if test "${ac_cv_header_db_h+set}" = set; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 cat >conftest.$ac_ext <<_ACEOF
19980 #line 19980 "configure"
19981 #include "confdefs.h"
19984 if { (eval echo "$as_me:19984: \"$ac_cpp conftest.$ac_ext\"") >&5
19985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19987 egrep -v '^ *\+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 echo "$as_me:19990: \$? = $ac_status" >&5
19991 (exit $ac_status); } >/dev/null; then
19992 if test -s conftest.err; then
19993 ac_cpp_err=$ac_c_preproc_warn_flag
20000 if test -z "$ac_cpp_err"; then
20001 ac_cv_header_db_h=yes
20003 echo "$as_me: failed program was:" >&5
20004 cat conftest.$ac_ext >&5
20005 ac_cv_header_db_h=no
20007 rm -f conftest.err conftest.$ac_ext
20009 echo "$as_me:20009: result: $ac_cv_header_db_h" >&5
20010 echo "${ECHO_T}$ac_cv_header_db_h" >&6
20011 if test $ac_cv_header_db_h = yes; then
20013 echo "$as_me:20013: checking for version of db" >&5
20014 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
20015 if test "${cf_cv_hashed_db_version+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 cf_cv_hashed_db_version=unknown
20021 for cf_db_version in 1 2 3 4 5 6
20024 echo "${as_me:-configure}:20024: testing checking for db version $cf_db_version ..." 1>&5
20026 cat >conftest.$ac_ext <<_ACEOF
20027 #line 20027 "configure"
20028 #include "confdefs.h"
20030 $ac_includes_default
20033 #ifdef DB_VERSION_MAJOR
20034 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
20035 #if $cf_db_version == DB_VERSION_MAJOR
20041 #if $cf_db_version == 1
20042 /* ok: assuming this is DB 1.8.5 */
20056 rm -f conftest.$ac_objext
20057 if { (eval echo "$as_me:20057: \"$ac_compile\"") >&5
20058 (eval $ac_compile) 2>&5
20060 echo "$as_me:20060: \$? = $ac_status" >&5
20061 (exit $ac_status); } &&
20062 { ac_try='test -s conftest.$ac_objext'
20063 { (eval echo "$as_me:20063: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20066 echo "$as_me:20066: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20069 cf_cv_hashed_db_version=$cf_db_version
20073 echo "$as_me: failed program was:" >&5
20074 cat conftest.$ac_ext >&5
20076 rm -f conftest.$ac_objext conftest.$ac_ext
20080 echo "$as_me:20080: result: $cf_cv_hashed_db_version" >&5
20081 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
20083 if test "$cf_cv_hashed_db_version" = unknown ; then
20084 { { echo "$as_me:20084: error: Cannot determine version of db" >&5
20085 echo "$as_me: error: Cannot determine version of db" >&2;}
20086 { (exit 1); exit 1; }; }
20089 echo "$as_me:20089: checking for db libraries" >&5
20090 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
20091 if test "${cf_cv_hashed_db_libs+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 cf_cv_hashed_db_libs=unknown
20096 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
20098 cf_save_libs="$LIBS"
20099 if test -n "$cf_db_libs"; then
20101 cf_add_libs="-l$cf_db_libs"
20102 # Filter out duplicates - this happens with badly-designed ".pc" files...
20103 for cf_add_1lib in $LIBS
20105 for cf_add_2lib in $cf_add_libs
20107 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20113 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20115 LIBS="$cf_add_libs"
20119 echo "${as_me:-configure}:20119: testing checking for library "$cf_db_libs" ..." 1>&5
20121 cat >conftest.$ac_ext <<_ACEOF
20122 #line 20122 "configure"
20123 #include "confdefs.h"
20125 $ac_includes_default
20132 char *path = "/tmp/foo";
20133 #ifdef DB_VERSION_MAJOR
20134 #if DB_VERSION_MAJOR >= 4
20136 db_create(&result, NULL, 0);
20137 result->open(result,
20144 #elif DB_VERSION_MAJOR >= 3
20146 db_create(&result, NULL, 0);
20147 result->open(result,
20153 #elif DB_VERSION_MAJOR >= 2
20162 #endif /* DB_VERSION_MAJOR */
20164 DB *result = dbopen(path,
20170 ${cf_cv_main_return:-return}(result != 0)
20176 rm -f conftest.$ac_objext conftest$ac_exeext
20177 if { (eval echo "$as_me:20177: \"$ac_link\"") >&5
20178 (eval $ac_link) 2>&5
20180 echo "$as_me:20180: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (eval echo "$as_me:20183: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:20186: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20189 if test -n "$cf_db_libs" ; then
20190 cf_cv_hashed_db_libs=$cf_db_libs
20192 cf_cv_hashed_db_libs=default
20194 LIBS="$cf_save_libs"
20198 echo "$as_me: failed program was:" >&5
20199 cat conftest.$ac_ext >&5
20201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20202 LIBS="$cf_save_libs"
20206 echo "$as_me:20206: result: $cf_cv_hashed_db_libs" >&5
20207 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
20209 if test "$cf_cv_hashed_db_libs" = unknown ; then
20210 { { echo "$as_me:20210: error: Cannot determine library for db" >&5
20211 echo "$as_me: error: Cannot determine library for db" >&2;}
20212 { (exit 1); exit 1; }; }
20213 elif test "$cf_cv_hashed_db_libs" != default ; then
20215 cf_add_libs="-l$cf_cv_hashed_db_libs"
20216 # Filter out duplicates - this happens with badly-designed ".pc" files...
20217 for cf_add_1lib in $LIBS
20219 for cf_add_2lib in $cf_add_libs
20221 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20227 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20229 LIBS="$cf_add_libs"
20236 { { echo "$as_me:20236: error: Cannot find db.h" >&5
20237 echo "$as_me: error: Cannot find db.h" >&2;}
20238 { (exit 1); exit 1; }; }
20244 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
20245 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
20246 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
20249 # Just in case, check if the C compiler has a bool type.
20251 echo "$as_me:20251: checking if we should include stdbool.h" >&5
20252 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
20254 if test "${cf_cv_header_stdbool_h+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 cat >conftest.$ac_ext <<_ACEOF
20259 #line 20259 "configure"
20260 #include "confdefs.h"
20270 rm -f conftest.$ac_objext
20271 if { (eval echo "$as_me:20271: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>&5
20274 echo "$as_me:20274: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -s conftest.$ac_objext'
20277 { (eval echo "$as_me:20277: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20280 echo "$as_me:20280: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 cf_cv_header_stdbool_h=0
20284 echo "$as_me: failed program was:" >&5
20285 cat conftest.$ac_ext >&5
20286 cat >conftest.$ac_ext <<_ACEOF
20287 #line 20287 "configure"
20288 #include "confdefs.h"
20291 #include <stdbool.h>
20302 rm -f conftest.$ac_objext
20303 if { (eval echo "$as_me:20303: \"$ac_compile\"") >&5
20304 (eval $ac_compile) 2>&5
20306 echo "$as_me:20306: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -s conftest.$ac_objext'
20309 { (eval echo "$as_me:20309: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:20312: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 cf_cv_header_stdbool_h=1
20316 echo "$as_me: failed program was:" >&5
20317 cat conftest.$ac_ext >&5
20318 cf_cv_header_stdbool_h=0
20320 rm -f conftest.$ac_objext conftest.$ac_ext
20322 rm -f conftest.$ac_objext conftest.$ac_ext
20325 if test "$cf_cv_header_stdbool_h" = 1
20326 then echo "$as_me:20326: result: yes" >&5
20327 echo "${ECHO_T}yes" >&6
20328 else echo "$as_me:20328: result: no" >&5
20329 echo "${ECHO_T}no" >&6
20332 echo "$as_me:20332: checking for builtin bool type" >&5
20333 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20335 if test "${cf_cv_cc_bool_type+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 cat >conftest.$ac_ext <<_ACEOF
20340 #line 20340 "configure"
20341 #include "confdefs.h"
20344 #include <sys/types.h>
20354 rm -f conftest.$ac_objext
20355 if { (eval echo "$as_me:20355: \"$ac_compile\"") >&5
20356 (eval $ac_compile) 2>&5
20358 echo "$as_me:20358: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (eval echo "$as_me:20361: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:20364: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 cf_cv_cc_bool_type=1
20368 echo "$as_me: failed program was:" >&5
20369 cat conftest.$ac_ext >&5
20370 cf_cv_cc_bool_type=0
20372 rm -f conftest.$ac_objext conftest.$ac_ext
20376 if test "$cf_cv_cc_bool_type" = 1
20377 then echo "$as_me:20377: result: yes" >&5
20378 echo "${ECHO_T}yes" >&6
20379 else echo "$as_me:20379: result: no" >&5
20380 echo "${ECHO_T}no" >&6
20383 # Check for C++ compiler characteristics (and ensure that it's there!)
20384 if test -n "$CXX" ; then
20386 ac_cpp='$CXXCPP $CPPFLAGS'
20387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20390 ac_main_return=return
20392 if test -n "$GXX" ; then
20395 LIBS="$LIBS $CXXLIBS"
20396 echo "$as_me:20396: checking if we already have C++ library" >&5
20397 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
20398 cat >conftest.$ac_ext <<_ACEOF
20399 #line 20399 "configure"
20400 #include "confdefs.h"
20402 #include <iostream>
20407 std::cout << "Hello World!" << std::endl;
20412 rm -f conftest.$ac_objext conftest$ac_exeext
20413 if { (eval echo "$as_me:20413: \"$ac_link\"") >&5
20414 (eval $ac_link) 2>&5
20416 echo "$as_me:20416: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
20418 { ac_try='test -s conftest$ac_exeext'
20419 { (eval echo "$as_me:20419: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:20422: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 cf_have_libstdcpp=yes
20426 echo "$as_me: failed program was:" >&5
20427 cat conftest.$ac_ext >&5
20428 cf_have_libstdcpp=no
20430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20431 echo "$as_me:20431: result: $cf_have_libstdcpp" >&5
20432 echo "${ECHO_T}$cf_have_libstdcpp" >&6
20435 if test $cf_have_libstdcpp != yes
20437 case $cf_cv_system_name in
20439 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
20440 cf_stdcpp_libname=stdcpp
20442 cf_stdcpp_libname=stdc++
20446 cf_stdcpp_libname=stdc++
20450 echo "$as_me:20450: checking for library $cf_stdcpp_libname" >&5
20451 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
20452 if test "${cf_cv_libstdcpp+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 LIBS="$LIBS $CXXLIBS"
20459 cf_add_libs="-l$cf_stdcpp_libname"
20460 # Filter out duplicates - this happens with badly-designed ".pc" files...
20461 for cf_add_1lib in $LIBS
20463 for cf_add_2lib in $cf_add_libs
20465 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20471 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20473 LIBS="$cf_add_libs"
20475 cat >conftest.$ac_ext <<_ACEOF
20476 #line 20476 "configure"
20477 #include "confdefs.h"
20479 #include <iostream>
20484 std::cout << "Hello World!" << std::endl;
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (eval echo "$as_me:20490: \"$ac_link\"") >&5
20491 (eval $ac_link) 2>&5
20493 echo "$as_me:20493: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -s conftest$ac_exeext'
20496 { (eval echo "$as_me:20496: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:20499: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 cf_cv_libstdcpp=yes
20503 echo "$as_me: failed program was:" >&5
20504 cat conftest.$ac_ext >&5
20507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20511 echo "$as_me:20511: result: $cf_cv_libstdcpp" >&5
20512 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
20513 test "$cf_cv_libstdcpp" = yes && {
20514 cf_add_libs="-l$cf_stdcpp_libname"
20515 # Filter out duplicates - this happens with badly-designed ".pc" files...
20516 for cf_add_1lib in $CXXLIBS
20518 for cf_add_2lib in $cf_add_libs
20520 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20526 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20528 CXXLIBS="$cf_add_libs"
20533 echo "$as_me:20533: checking whether $CXX understands -c and -o together" >&5
20534 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
20535 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
20536 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 cat > conftest.$ac_ext <<CF_EOF
20542 ${cf_cv_main_return:-return}(0);
20545 # We do the test twice because some compilers refuse to overwrite an
20546 # existing .o file with -o, though they will create one.
20547 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20548 if { (eval echo "$as_me:20548: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20551 echo "$as_me:20551: \$? = $ac_status" >&5
20552 (exit $ac_status); } &&
20553 test -f conftest2.$ac_objext && { (eval echo "$as_me:20553: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:20556: \$? = $ac_status" >&5
20557 (exit $ac_status); };
20559 eval cf_cv_prog_CXX_c_o=yes
20561 eval cf_cv_prog_CXX_c_o=no
20566 if test $cf_cv_prog_CXX_c_o = yes; then
20567 echo "$as_me:20567: result: yes" >&5
20568 echo "${ECHO_T}yes" >&6
20570 echo "$as_me:20570: result: no" >&5
20571 echo "${ECHO_T}no" >&6
20574 case $GXX_VERSION in
20580 cf_cxx_library=unknown
20581 case $cf_cv_system_name in
20589 if test "$GXX" = yes; then
20590 echo "$as_me:20590: checking for lib$cf_gpp_libname" >&5
20591 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
20594 cf_add_libs="-l$cf_gpp_libname"
20595 # Filter out duplicates - this happens with badly-designed ".pc" files...
20596 for cf_add_1lib in $LIBS
20598 for cf_add_2lib in $cf_add_libs
20600 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20606 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20608 LIBS="$cf_add_libs"
20610 cat >conftest.$ac_ext <<_ACEOF
20611 #line 20611 "configure"
20612 #include "confdefs.h"
20614 #include <$cf_gpp_libname/builtin.h>
20619 two_arg_error_handler_t foo2 = lib_error_handler
20624 rm -f conftest.$ac_objext conftest$ac_exeext
20625 if { (eval echo "$as_me:20625: \"$ac_link\"") >&5
20626 (eval $ac_link) 2>&5
20628 echo "$as_me:20628: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
20630 { ac_try='test -s conftest$ac_exeext'
20631 { (eval echo "$as_me:20631: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20634 echo "$as_me:20634: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20638 cf_add_libs="-l$cf_gpp_libname"
20639 # Filter out duplicates - this happens with badly-designed ".pc" files...
20640 for cf_add_1lib in $CXXLIBS
20642 for cf_add_2lib in $cf_add_libs
20644 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20650 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20652 CXXLIBS="$cf_add_libs"
20654 if test "$cf_gpp_libname" = cpp ; then
20656 cat >>confdefs.h <<\EOF
20657 #define HAVE_GPP_BUILTIN_H 1
20662 cat >>confdefs.h <<\EOF
20663 #define HAVE_GXX_BUILTIN_H 1
20668 echo "$as_me: failed program was:" >&5
20669 cat conftest.$ac_ext >&5
20670 cat >conftest.$ac_ext <<_ACEOF
20671 #line 20671 "configure"
20672 #include "confdefs.h"
20674 #include <builtin.h>
20679 two_arg_error_handler_t foo2 = lib_error_handler
20684 rm -f conftest.$ac_objext conftest$ac_exeext
20685 if { (eval echo "$as_me:20685: \"$ac_link\"") >&5
20686 (eval $ac_link) 2>&5
20688 echo "$as_me:20688: \$? = $ac_status" >&5
20689 (exit $ac_status); } &&
20690 { ac_try='test -s conftest$ac_exeext'
20691 { (eval echo "$as_me:20691: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:20694: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20698 cf_add_libs="-l$cf_gpp_libname"
20699 # Filter out duplicates - this happens with badly-designed ".pc" files...
20700 for cf_add_1lib in $CXXLIBS
20702 for cf_add_2lib in $cf_add_libs
20704 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20710 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20712 CXXLIBS="$cf_add_libs"
20714 cat >>confdefs.h <<\EOF
20715 #define HAVE_BUILTIN_H 1
20719 echo "$as_me: failed program was:" >&5
20720 cat conftest.$ac_ext >&5
20723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20727 echo "$as_me:20727: result: $cf_cxx_library" >&5
20728 echo "${ECHO_T}$cf_cxx_library" >&6
20738 ac_cpp='$CXXCPP $CPPFLAGS'
20739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20742 ac_main_return=return
20743 echo "$as_me:20743: checking how to run the C++ preprocessor" >&5
20744 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20745 if test -z "$CXXCPP"; then
20746 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 # Double quotes because CXXCPP needs to be expanded
20750 for CXXCPP in "$CXX -E" "/lib/cpp"
20752 ac_preproc_ok=false
20753 for ac_cxx_preproc_warn_flag in '' yes
20755 # Use a header file that comes with gcc, so configuring glibc
20756 # with a fresh cross-compiler works.
20757 # On the NeXT, cc -E runs the code through the compiler's parser,
20758 # not just through cpp. "Syntax error" is here to catch this case.
20759 cat >conftest.$ac_ext <<_ACEOF
20760 #line 20760 "configure"
20761 #include "confdefs.h"
20762 #include <assert.h>
20765 if { (eval echo "$as_me:20765: \"$ac_cpp conftest.$ac_ext\"") >&5
20766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20768 egrep -v '^ *\+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:20771: \$? = $ac_status" >&5
20772 (exit $ac_status); } >/dev/null; then
20773 if test -s conftest.err; then
20774 ac_cpp_err=$ac_cxx_preproc_warn_flag
20781 if test -z "$ac_cpp_err"; then
20784 echo "$as_me: failed program was:" >&5
20785 cat conftest.$ac_ext >&5
20786 # Broken: fails on valid input.
20789 rm -f conftest.err conftest.$ac_ext
20791 # OK, works on sane cases. Now check whether non-existent headers
20792 # can be detected and how.
20793 cat >conftest.$ac_ext <<_ACEOF
20794 #line 20794 "configure"
20795 #include "confdefs.h"
20796 #include <ac_nonexistent.h>
20798 if { (eval echo "$as_me:20798: \"$ac_cpp conftest.$ac_ext\"") >&5
20799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20801 egrep -v '^ *\+' conftest.er1 >conftest.err
20803 cat conftest.err >&5
20804 echo "$as_me:20804: \$? = $ac_status" >&5
20805 (exit $ac_status); } >/dev/null; then
20806 if test -s conftest.err; then
20807 ac_cpp_err=$ac_cxx_preproc_warn_flag
20814 if test -z "$ac_cpp_err"; then
20815 # Broken: success on invalid input.
20818 echo "$as_me: failed program was:" >&5
20819 cat conftest.$ac_ext >&5
20820 # Passes both tests.
20824 rm -f conftest.err conftest.$ac_ext
20827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20828 rm -f conftest.err conftest.$ac_ext
20829 if $ac_preproc_ok; then
20834 ac_cv_prog_CXXCPP=$CXXCPP
20837 CXXCPP=$ac_cv_prog_CXXCPP
20839 ac_cv_prog_CXXCPP=$CXXCPP
20841 echo "$as_me:20841: result: $CXXCPP" >&5
20842 echo "${ECHO_T}$CXXCPP" >&6
20843 ac_preproc_ok=false
20844 for ac_cxx_preproc_warn_flag in '' yes
20846 # Use a header file that comes with gcc, so configuring glibc
20847 # with a fresh cross-compiler works.
20848 # On the NeXT, cc -E runs the code through the compiler's parser,
20849 # not just through cpp. "Syntax error" is here to catch this case.
20850 cat >conftest.$ac_ext <<_ACEOF
20851 #line 20851 "configure"
20852 #include "confdefs.h"
20853 #include <assert.h>
20856 if { (eval echo "$as_me:20856: \"$ac_cpp conftest.$ac_ext\"") >&5
20857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20859 egrep -v '^ *\+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:20862: \$? = $ac_status" >&5
20863 (exit $ac_status); } >/dev/null; then
20864 if test -s conftest.err; then
20865 ac_cpp_err=$ac_cxx_preproc_warn_flag
20872 if test -z "$ac_cpp_err"; then
20875 echo "$as_me: failed program was:" >&5
20876 cat conftest.$ac_ext >&5
20877 # Broken: fails on valid input.
20880 rm -f conftest.err conftest.$ac_ext
20882 # OK, works on sane cases. Now check whether non-existent headers
20883 # can be detected and how.
20884 cat >conftest.$ac_ext <<_ACEOF
20885 #line 20885 "configure"
20886 #include "confdefs.h"
20887 #include <ac_nonexistent.h>
20889 if { (eval echo "$as_me:20889: \"$ac_cpp conftest.$ac_ext\"") >&5
20890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20892 egrep -v '^ *\+' conftest.er1 >conftest.err
20894 cat conftest.err >&5
20895 echo "$as_me:20895: \$? = $ac_status" >&5
20896 (exit $ac_status); } >/dev/null; then
20897 if test -s conftest.err; then
20898 ac_cpp_err=$ac_cxx_preproc_warn_flag
20905 if test -z "$ac_cpp_err"; then
20906 # Broken: success on invalid input.
20909 echo "$as_me: failed program was:" >&5
20910 cat conftest.$ac_ext >&5
20911 # Passes both tests.
20915 rm -f conftest.err conftest.$ac_ext
20918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20919 rm -f conftest.err conftest.$ac_ext
20920 if $ac_preproc_ok; then
20923 { { echo "$as_me:20923: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
20924 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
20925 { (exit 1); exit 1; }; }
20929 ac_cpp='$CXXCPP $CPPFLAGS'
20930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933 ac_main_return=return
20935 for ac_header in typeinfo
20937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20938 echo "$as_me:20938: checking for $ac_header" >&5
20939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 cat >conftest.$ac_ext <<_ACEOF
20944 #line 20944 "configure"
20945 #include "confdefs.h"
20946 #include <$ac_header>
20948 if { (eval echo "$as_me:20948: \"$ac_cpp conftest.$ac_ext\"") >&5
20949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20951 egrep -v '^ *\+' conftest.er1 >conftest.err
20953 cat conftest.err >&5
20954 echo "$as_me:20954: \$? = $ac_status" >&5
20955 (exit $ac_status); } >/dev/null; then
20956 if test -s conftest.err; then
20957 ac_cpp_err=$ac_cxx_preproc_warn_flag
20964 if test -z "$ac_cpp_err"; then
20965 eval "$as_ac_Header=yes"
20967 echo "$as_me: failed program was:" >&5
20968 cat conftest.$ac_ext >&5
20969 eval "$as_ac_Header=no"
20971 rm -f conftest.err conftest.$ac_ext
20973 echo "$as_me:20973: result: `eval echo '${'$as_ac_Header'}'`" >&5
20974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20976 cat >>confdefs.h <<EOF
20977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20983 for ac_header in iostream
20985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20986 echo "$as_me:20986: checking for $ac_header" >&5
20987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 cat >conftest.$ac_ext <<_ACEOF
20992 #line 20992 "configure"
20993 #include "confdefs.h"
20994 #include <$ac_header>
20996 if { (eval echo "$as_me:20996: \"$ac_cpp conftest.$ac_ext\"") >&5
20997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20999 egrep -v '^ *\+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:21002: \$? = $ac_status" >&5
21003 (exit $ac_status); } >/dev/null; then
21004 if test -s conftest.err; then
21005 ac_cpp_err=$ac_cxx_preproc_warn_flag
21012 if test -z "$ac_cpp_err"; then
21013 eval "$as_ac_Header=yes"
21015 echo "$as_me: failed program was:" >&5
21016 cat conftest.$ac_ext >&5
21017 eval "$as_ac_Header=no"
21019 rm -f conftest.err conftest.$ac_ext
21021 echo "$as_me:21021: result: `eval echo '${'$as_ac_Header'}'`" >&5
21022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21024 cat >>confdefs.h <<EOF
21025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21031 if test x"$ac_cv_header_iostream" = xyes ; then
21032 echo "$as_me:21032: checking if iostream uses std-namespace" >&5
21033 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
21034 cat >conftest.$ac_ext <<_ACEOF
21035 #line 21035 "configure"
21036 #include "confdefs.h"
21038 #include <iostream>
21045 cerr << "testing" << endl;
21051 rm -f conftest.$ac_objext
21052 if { (eval echo "$as_me:21052: \"$ac_compile\"") >&5
21053 (eval $ac_compile) 2>&5
21055 echo "$as_me:21055: \$? = $ac_status" >&5
21056 (exit $ac_status); } &&
21057 { ac_try='test -s conftest.$ac_objext'
21058 { (eval echo "$as_me:21058: \"$ac_try\"") >&5
21059 (eval $ac_try) 2>&5
21061 echo "$as_me:21061: \$? = $ac_status" >&5
21062 (exit $ac_status); }; }; then
21063 cf_iostream_namespace=yes
21065 echo "$as_me: failed program was:" >&5
21066 cat conftest.$ac_ext >&5
21067 cf_iostream_namespace=no
21069 rm -f conftest.$ac_objext conftest.$ac_ext
21070 echo "$as_me:21070: result: $cf_iostream_namespace" >&5
21071 echo "${ECHO_T}$cf_iostream_namespace" >&6
21072 if test "$cf_iostream_namespace" = yes ; then
21074 cat >>confdefs.h <<\EOF
21075 #define IOSTREAM_NAMESPACE 1
21081 echo "$as_me:21081: checking if we should include stdbool.h" >&5
21082 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
21084 if test "${cf_cv_header_stdbool_h+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 cat >conftest.$ac_ext <<_ACEOF
21089 #line 21089 "configure"
21090 #include "confdefs.h"
21100 rm -f conftest.$ac_objext
21101 if { (eval echo "$as_me:21101: \"$ac_compile\"") >&5
21102 (eval $ac_compile) 2>&5
21104 echo "$as_me:21104: \$? = $ac_status" >&5
21105 (exit $ac_status); } &&
21106 { ac_try='test -s conftest.$ac_objext'
21107 { (eval echo "$as_me:21107: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21110 echo "$as_me:21110: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 cf_cv_header_stdbool_h=0
21114 echo "$as_me: failed program was:" >&5
21115 cat conftest.$ac_ext >&5
21116 cat >conftest.$ac_ext <<_ACEOF
21117 #line 21117 "configure"
21118 #include "confdefs.h"
21121 #include <stdbool.h>
21132 rm -f conftest.$ac_objext
21133 if { (eval echo "$as_me:21133: \"$ac_compile\"") >&5
21134 (eval $ac_compile) 2>&5
21136 echo "$as_me:21136: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try='test -s conftest.$ac_objext'
21139 { (eval echo "$as_me:21139: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21142 echo "$as_me:21142: \$? = $ac_status" >&5
21143 (exit $ac_status); }; }; then
21144 cf_cv_header_stdbool_h=1
21146 echo "$as_me: failed program was:" >&5
21147 cat conftest.$ac_ext >&5
21148 cf_cv_header_stdbool_h=0
21150 rm -f conftest.$ac_objext conftest.$ac_ext
21152 rm -f conftest.$ac_objext conftest.$ac_ext
21155 if test "$cf_cv_header_stdbool_h" = 1
21156 then echo "$as_me:21156: result: yes" >&5
21157 echo "${ECHO_T}yes" >&6
21158 else echo "$as_me:21158: result: no" >&5
21159 echo "${ECHO_T}no" >&6
21162 echo "$as_me:21162: checking for builtin bool type" >&5
21163 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
21165 if test "${cf_cv_builtin_bool+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21169 cat >conftest.$ac_ext <<_ACEOF
21170 #line 21170 "configure"
21171 #include "confdefs.h"
21174 #include <sys/types.h>
21184 rm -f conftest.$ac_objext
21185 if { (eval echo "$as_me:21185: \"$ac_compile\"") >&5
21186 (eval $ac_compile) 2>&5
21188 echo "$as_me:21188: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -s conftest.$ac_objext'
21191 { (eval echo "$as_me:21191: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:21194: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 cf_cv_builtin_bool=1
21198 echo "$as_me: failed program was:" >&5
21199 cat conftest.$ac_ext >&5
21200 cf_cv_builtin_bool=0
21202 rm -f conftest.$ac_objext conftest.$ac_ext
21206 if test "$cf_cv_builtin_bool" = 1
21207 then echo "$as_me:21207: result: yes" >&5
21208 echo "${ECHO_T}yes" >&6
21209 else echo "$as_me:21209: result: no" >&5
21210 echo "${ECHO_T}no" >&6
21213 echo "$as_me:21213: checking for size of bool" >&5
21214 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
21215 if test "${cf_cv_type_of_bool+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 if test "$cross_compiling" = yes; then
21221 cf_cv_type_of_bool=unknown
21223 cat >conftest.$ac_ext <<_ACEOF
21224 #line 21224 "configure"
21225 #include "confdefs.h"
21227 #include <stdlib.h>
21230 #if defined(__cplusplus)
21232 #ifdef HAVE_GXX_BUILTIN_H
21233 #include <g++/builtin.h>
21234 #elif HAVE_GPP_BUILTIN_H
21235 #include <gpp/builtin.h>
21236 #elif HAVE_BUILTIN_H
21237 #include <builtin.h>
21242 #if $cf_cv_header_stdbool_h
21243 #include <stdbool.h>
21250 FILE *fp = fopen("cf_test.out", "w");
21253 if ((bool)(-x) >= 0)
21254 fputs("unsigned ", fp);
21255 if (sizeof(x) == sizeof(int)) fputs("int", fp);
21256 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
21257 else if (sizeof(x) == sizeof(short))fputs("short",fp);
21258 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
21261 ${cf_cv_main_return:-return}(0);
21265 rm -f conftest$ac_exeext
21266 if { (eval echo "$as_me:21266: \"$ac_link\"") >&5
21267 (eval $ac_link) 2>&5
21269 echo "$as_me:21269: \$? = $ac_status" >&5
21270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21271 { (eval echo "$as_me:21271: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21274 echo "$as_me:21274: \$? = $ac_status" >&5
21275 (exit $ac_status); }; }; then
21276 cf_cv_type_of_bool=`cat cf_test.out`
21277 if test -z "$cf_cv_type_of_bool"; then
21278 cf_cv_type_of_bool=unknown
21281 echo "$as_me: program exited with status $ac_status" >&5
21282 echo "$as_me: failed program was:" >&5
21283 cat conftest.$ac_ext >&5
21284 cf_cv_type_of_bool=unknown
21286 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21292 echo "$as_me:21292: result: $cf_cv_type_of_bool" >&5
21293 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21294 if test "$cf_cv_type_of_bool" = unknown ; then
21295 case .$NCURSES_BOOL in
21296 (.auto|.) NCURSES_BOOL=unsigned;;
21298 { echo "$as_me:21298: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
21299 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
21300 cf_cv_type_of_bool=$NCURSES_BOOL
21303 echo "$as_me:21303: checking for special defines needed for etip.h" >&5
21304 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
21305 cf_save_CXXFLAGS="$CXXFLAGS"
21308 # etip.h includes ncurses.h which includes ncurses_dll.h
21309 # But ncurses_dll.h is generated - fix here.
21310 test -d include || mkdir include
21311 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
21313 for cf_math in "" MATH_H
21315 for cf_excp in "" MATH_EXCEPTION
21317 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
21318 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
21319 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
21320 cat >conftest.$ac_ext <<_ACEOF
21321 #line 21321 "configure"
21322 #include "confdefs.h"
21324 #include <etip.h.in>
21334 rm -f conftest.$ac_objext
21335 if { (eval echo "$as_me:21335: \"$ac_compile\"") >&5
21336 (eval $ac_compile) 2>&5
21338 echo "$as_me:21338: \$? = $ac_status" >&5
21339 (exit $ac_status); } &&
21340 { ac_try='test -s conftest.$ac_objext'
21341 { (eval echo "$as_me:21341: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:21344: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21347 test -n "$cf_math" && cat >>confdefs.h <<EOF
21348 #define ETIP_NEEDS_${cf_math} 1
21351 test -n "$cf_excp" && cat >>confdefs.h <<EOF
21352 #define ETIP_NEEDS_${cf_excp} 1
21355 cf_result="$cf_math $cf_excp"
21359 echo "$as_me: failed program was:" >&5
21360 cat conftest.$ac_ext >&5
21362 rm -f conftest.$ac_objext conftest.$ac_ext
21365 echo "$as_me:21365: result: $cf_result" >&5
21366 echo "${ECHO_T}$cf_result" >&6
21367 CXXFLAGS="$cf_save_CXXFLAGS"
21369 if test -n "$CXX"; then
21370 echo "$as_me:21370: checking if $CXX accepts parameter initialization" >&5
21371 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
21372 if test "${cf_cv_cpp_param_init+set}" = set; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 ac_cpp='$CXXCPP $CPPFLAGS'
21378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21381 ac_main_return=return
21383 if test "$cross_compiling" = yes; then
21384 cf_cv_cpp_param_init=unknown
21386 cat >conftest.$ac_ext <<_ACEOF
21387 #line 21387 "configure"
21388 #include "confdefs.h"
21398 TEST::TEST(int x = 1) // some compilers do not like second initializer
21405 rm -f conftest$ac_exeext
21406 if { (eval echo "$as_me:21406: \"$ac_link\"") >&5
21407 (eval $ac_link) 2>&5
21409 echo "$as_me:21409: \$? = $ac_status" >&5
21410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21411 { (eval echo "$as_me:21411: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21414 echo "$as_me:21414: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 cf_cv_cpp_param_init=yes
21418 echo "$as_me: program exited with status $ac_status" >&5
21419 echo "$as_me: failed program was:" >&5
21420 cat conftest.$ac_ext >&5
21421 cf_cv_cpp_param_init=no
21423 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21426 ac_cpp='$CXXCPP $CPPFLAGS'
21427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21430 ac_main_return=return
21433 echo "$as_me:21433: result: $cf_cv_cpp_param_init" >&5
21434 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
21436 test "$cf_cv_cpp_param_init" = yes &&
21437 cat >>confdefs.h <<\EOF
21438 #define CPP_HAS_PARAM_INIT 1
21441 if test -n "$CXX"; then
21443 echo "$as_me:21443: checking if $CXX accepts static_cast" >&5
21444 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
21445 if test "${cf_cv_cpp_static_cast+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21450 ac_cpp='$CXXCPP $CPPFLAGS'
21451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21454 ac_main_return=return
21456 cat >conftest.$ac_ext <<_ACEOF
21457 #line 21457 "configure"
21458 #include "confdefs.h"
21463 NCursesPanel(int nlines,
21473 template<class T> class NCursesUserPanel : public NCursesPanel
21476 NCursesUserPanel (int nlines,
21480 const T* p_UserData = static_cast<T*>(0))
21481 : NCursesPanel (nlines, ncols, begin_y, begin_x)
21484 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
21488 virtual ~NCursesUserPanel() {};
21495 const char* p_UserData = static_cast<char*>(0)
21500 rm -f conftest.$ac_objext
21501 if { (eval echo "$as_me:21501: \"$ac_compile\"") >&5
21502 (eval $ac_compile) 2>&5
21504 echo "$as_me:21504: \$? = $ac_status" >&5
21505 (exit $ac_status); } &&
21506 { ac_try='test -s conftest.$ac_objext'
21507 { (eval echo "$as_me:21507: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21510 echo "$as_me:21510: \$? = $ac_status" >&5
21511 (exit $ac_status); }; }; then
21512 cf_cv_cpp_static_cast=yes
21514 echo "$as_me: failed program was:" >&5
21515 cat conftest.$ac_ext >&5
21516 cf_cv_cpp_static_cast=no
21518 rm -f conftest.$ac_objext conftest.$ac_ext
21521 ac_cpp='$CXXCPP $CPPFLAGS'
21522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21525 ac_main_return=return
21528 echo "$as_me:21528: result: $cf_cv_cpp_static_cast" >&5
21529 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
21533 test "$cf_cv_cpp_static_cast" = yes &&
21534 cat >>confdefs.h <<\EOF
21535 #define CPP_HAS_STATIC_CAST 1
21539 CXX_ARFLAGS='$(ARFLAGS)'
21540 case $cf_cv_system_name in
21542 if test "$GXX" != yes ; then
21544 CXX_ARFLAGS='-ar -o'
21548 CXXLDFLAGS="-u main"
21551 if test "$GXX" != yes ; then
21553 CXX_ARFLAGS='-xar -o'
21560 cf_cv_builtin_bool=1
21562 # Just because we are not configuring against C++ right now does not
21563 # mean that a user will not want to use C++. Some distributors disable
21564 # the C++ portion of this configuration as a shortcut (or just to avoid
21565 # compiling the demo in the c++ directory). So we need a reasonable
21566 # default for the 'bool' type.
21568 # Caveat: since the storage of the bool type is not standardized, it
21571 if test "$NCURSES_BOOL" != auto ; then
21572 cf_cv_type_of_bool=$NCURSES_BOOL
21573 cf_cv_header_stdbool_h=0
21575 if test "$cf_cv_header_stdbool_h" = 1 ; then
21577 echo "$as_me:21577: checking for size of bool" >&5
21578 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
21579 if test "${cf_cv_type_of_bool+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 if test "$cross_compiling" = yes; then
21585 cf_cv_type_of_bool=unknown
21587 cat >conftest.$ac_ext <<_ACEOF
21588 #line 21588 "configure"
21589 #include "confdefs.h"
21591 #include <stdlib.h>
21594 #if defined(__cplusplus)
21596 #ifdef HAVE_GXX_BUILTIN_H
21597 #include <g++/builtin.h>
21598 #elif HAVE_GPP_BUILTIN_H
21599 #include <gpp/builtin.h>
21600 #elif HAVE_BUILTIN_H
21601 #include <builtin.h>
21606 #if $cf_cv_header_stdbool_h
21607 #include <stdbool.h>
21614 FILE *fp = fopen("cf_test.out", "w");
21617 if ((bool)(-x) >= 0)
21618 fputs("unsigned ", fp);
21619 if (sizeof(x) == sizeof(int)) fputs("int", fp);
21620 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
21621 else if (sizeof(x) == sizeof(short))fputs("short",fp);
21622 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
21625 ${cf_cv_main_return:-return}(0);
21629 rm -f conftest$ac_exeext
21630 if { (eval echo "$as_me:21630: \"$ac_link\"") >&5
21631 (eval $ac_link) 2>&5
21633 echo "$as_me:21633: \$? = $ac_status" >&5
21634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21635 { (eval echo "$as_me:21635: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21638 echo "$as_me:21638: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 cf_cv_type_of_bool=`cat cf_test.out`
21641 if test -z "$cf_cv_type_of_bool"; then
21642 cf_cv_type_of_bool=unknown
21645 echo "$as_me: program exited with status $ac_status" >&5
21646 echo "$as_me: failed program was:" >&5
21647 cat conftest.$ac_ext >&5
21648 cf_cv_type_of_bool=unknown
21650 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21656 echo "$as_me:21656: result: $cf_cv_type_of_bool" >&5
21657 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21658 if test "$cf_cv_type_of_bool" = unknown ; then
21659 case .$NCURSES_BOOL in
21660 (.auto|.) NCURSES_BOOL=unsigned;;
21662 { echo "$as_me:21662: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
21663 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
21664 cf_cv_type_of_bool=$NCURSES_BOOL
21668 echo "$as_me:21668: checking for fallback type of bool" >&5
21669 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
21670 case "$host_cpu" in
21671 (i?86) cf_cv_type_of_bool=char ;;
21672 (*) cf_cv_type_of_bool=int ;;
21674 echo "$as_me:21674: result: $cf_cv_type_of_bool" >&5
21675 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21680 # If the C compiler did not declare bool, and we did not determine that the C++
21681 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
21682 # ncurses library use the same type as C++ bool. Note that this allows one to
21683 # specify the type of bool in a configure-script option and postpone
21684 # integration with the C++ compiler provided that the types are compatible.
21686 if test $cf_cv_cc_bool_type = 1
21688 # oops: C has a bool. Unlikely, but C++ could differ.
21690 elif test $cf_cv_builtin_bool = 0
21695 # this is the normal case
21696 USE_CXX_BOOL='defined(__cplusplus)'
21699 if test -f "${srcdir}/Ada95/Makefile.in" ; then
21701 if test "$cf_with_ada" != "no" ; then
21702 if test "$with_libtool" != "no"; then
21703 { echo "$as_me:21703: WARNING: libtool does not support Ada - disabling feature" >&5
21704 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
21709 if test "$cf_with_ada" != "no" ; then
21711 cf_ada_make=gnatmake
21712 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
21713 set dummy $cf_ada_make; ac_word=$2
21714 echo "$as_me:21714: checking for $ac_word" >&5
21715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21716 if test "${ac_cv_prog_gnat_exists+set}" = set; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6
21719 if test -n "$gnat_exists"; then
21720 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
21722 ac_save_IFS=$IFS; IFS=$ac_path_separator
21724 for ac_dir in $ac_dummy; do
21726 test -z "$ac_dir" && ac_dir=.
21727 $as_executable_p "$ac_dir/$ac_word" || continue
21728 ac_cv_prog_gnat_exists="yes"
21729 echo "$as_me:21729: found $ac_dir/$ac_word" >&5
21733 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
21736 gnat_exists=$ac_cv_prog_gnat_exists
21737 if test -n "$gnat_exists"; then
21738 echo "$as_me:21738: result: $gnat_exists" >&5
21739 echo "${ECHO_T}$gnat_exists" >&6
21741 echo "$as_me:21741: result: no" >&5
21742 echo "${ECHO_T}no" >&6
21745 if test "$ac_cv_prog_gnat_exists" = no; then
21747 cf_cv_prog_gnat_correct=no
21750 echo "$as_me:21750: checking for gnat version" >&5
21751 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
21752 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
21753 grep '[0-9].[0-9][0-9]*' |\
21754 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
21755 echo "$as_me:21755: result: $cf_gnat_version" >&5
21756 echo "${ECHO_T}$cf_gnat_version" >&6
21758 case $cf_gnat_version in
21759 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
21760 cf_cv_prog_gnat_correct=yes
21763 { echo "$as_me:21763: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
21764 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
21765 cf_cv_prog_gnat_correct=no
21769 # Extract the first word of "m4", so it can be a program name with args.
21770 set dummy m4; ac_word=$2
21771 echo "$as_me:21771: checking for $ac_word" >&5
21772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21773 if test "${ac_cv_prog_M4_exists+set}" = set; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 if test -n "$M4_exists"; then
21777 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
21779 ac_save_IFS=$IFS; IFS=$ac_path_separator
21781 for ac_dir in $ac_dummy; do
21783 test -z "$ac_dir" && ac_dir=.
21784 $as_executable_p "$ac_dir/$ac_word" || continue
21785 ac_cv_prog_M4_exists="yes"
21786 echo "$as_me:21786: found $ac_dir/$ac_word" >&5
21790 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
21793 M4_exists=$ac_cv_prog_M4_exists
21794 if test -n "$M4_exists"; then
21795 echo "$as_me:21795: result: $M4_exists" >&5
21796 echo "${ECHO_T}$M4_exists" >&6
21798 echo "$as_me:21798: result: no" >&5
21799 echo "${ECHO_T}no" >&6
21802 if test "$ac_cv_prog_M4_exists" = no; then
21803 cf_cv_prog_gnat_correct=no
21804 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
21806 if test "$cf_cv_prog_gnat_correct" = yes; then
21807 echo "$as_me:21807: checking if GNAT works" >&5
21808 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
21810 rm -rf conftest* *~conftest*
21811 cat >>conftest.ads <<CF_EOF
21812 procedure conftest;
21814 cat >>conftest.adb <<CF_EOF
21817 procedure conftest is
21819 Text_IO.Put ("Hello World");
21821 GNAT.OS_Lib.OS_Exit (0);
21824 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21825 if ( ./conftest 1>&5 2>&1 ) ; then
21826 cf_cv_prog_gnat_correct=yes
21828 cf_cv_prog_gnat_correct=no
21831 cf_cv_prog_gnat_correct=no
21833 rm -rf conftest* *~conftest*
21835 echo "$as_me:21835: result: $cf_cv_prog_gnat_correct" >&5
21836 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
21840 if test "x$cf_cv_prog_gnat_correct" = xyes; then
21842 ADAFLAGS="$ADAFLAGS -gnatpn"
21844 echo "$as_me:21844: checking optimization options for ADAFLAGS" >&5
21845 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
21849 ADAFLAGS="$ADAFLAGS -g"
21855 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
21857 ADAFLAGS="$ADAFLAGS $cf_O_flag"
21861 echo "$as_me:21861: result: $ADAFLAGS" >&5
21862 echo "${ECHO_T}$ADAFLAGS" >&6
21864 echo "$as_me:21864: checking if GNATPREP supports -T option" >&5
21865 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
21866 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21870 cf_cv_gnatprep_opt_t=no
21871 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
21874 echo "$as_me:21874: result: $cf_cv_gnatprep_opt_t" >&5
21875 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
21876 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
21878 echo "$as_me:21878: checking if GNAT supports generics" >&5
21879 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
21880 case $cf_gnat_version in
21882 cf_gnat_generics=yes
21885 cf_gnat_generics=no
21888 echo "$as_me:21888: result: $cf_gnat_generics" >&5
21889 echo "${ECHO_T}$cf_gnat_generics" >&6
21891 if test "$cf_gnat_generics" = yes
21893 cf_compile_generics=generics
21894 cf_generic_objects="\${GENOBJS}"
21896 cf_compile_generics=
21897 cf_generic_objects=
21900 echo "$as_me:21900: checking if GNAT supports SIGINT" >&5
21901 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
21902 if test "${cf_cv_gnat_sigint+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 rm -rf conftest* *~conftest*
21907 cat >>conftest.ads <<CF_EOF
21908 with Ada.Interrupts.Names;
21910 package ConfTest is
21912 pragma Warnings (Off); -- the next pragma exists since 3.11p
21913 pragma Unreserve_All_Interrupts;
21914 pragma Warnings (On);
21916 protected Process is
21918 function Continue return Boolean;
21919 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
21921 Done : Boolean := False;
21926 cat >>conftest.adb <<CF_EOF
21927 package body ConfTest is
21928 protected body Process is
21933 function Continue return Boolean is
21940 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21941 cf_cv_gnat_sigint=yes
21943 cf_cv_gnat_sigint=no
21945 rm -rf conftest* *~conftest*
21948 echo "$as_me:21948: result: $cf_cv_gnat_sigint" >&5
21949 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
21951 if test $cf_cv_gnat_sigint = yes ; then
21954 USE_GNAT_SIGINT="#"
21957 cf_gnat_libraries=no
21958 cf_gnat_projects=no
21960 if test "$enable_gnat_projects" != no ; then
21961 echo "$as_me:21961: checking if GNAT supports project files" >&5
21962 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
21963 case $cf_gnat_version in
21967 case $cf_cv_system_name in
21971 mkdir conftest.src conftest.bin conftest.lib
21973 rm -rf conftest* *~conftest*
21974 cat >>library.gpr <<CF_EOF
21976 Kind := External ("LIB_KIND");
21977 for Library_Name use "ConfTest";
21978 for Object_Dir use ".";
21979 for Library_ALI_Dir use External("LIBRARY_DIR");
21980 for Library_Version use External ("SONAME");
21981 for Library_Kind use Kind;
21982 for Library_Dir use External("BUILD_DIR");
21983 Source_Dir := External ("SOURCE_DIR");
21984 for Source_Dirs use (Source_Dir);
21987 cat >>confpackage.ads <<CF_EOF
21988 package ConfPackage is
21989 procedure conftest;
21992 cat >>confpackage.adb <<CF_EOF
21994 package body ConfPackage is
21995 procedure conftest is
21997 Text_IO.Put ("Hello World");
22002 if ( $cf_ada_make $ADAFLAGS \
22004 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
22005 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
22006 -XSOURCE_DIR=`pwd` \
22007 -XSONAME=libConfTest.so.1 \
22008 -XLIB_KIND=static 1>&5 2>&1 ) ; then
22009 cf_gnat_projects=yes
22012 if test -f conftest.lib/confpackage.ali
22014 cf_gnat_libraries=yes
22016 rm -rf conftest* *~conftest*
22021 echo "$as_me:22021: result: $cf_gnat_projects" >&5
22022 echo "${ECHO_T}$cf_gnat_projects" >&6
22023 fi # enable_gnat_projects
22025 if test $cf_gnat_projects = yes
22027 echo "$as_me:22027: checking if GNAT supports libraries" >&5
22028 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
22029 echo "$as_me:22029: result: $cf_gnat_libraries" >&5
22030 echo "${ECHO_T}$cf_gnat_libraries" >&6
22033 if test "$cf_gnat_projects" = yes
22035 USE_OLD_MAKERULES="#"
22036 USE_GNAT_PROJECTS=""
22038 USE_OLD_MAKERULES=""
22039 USE_GNAT_PROJECTS="#"
22042 if test "$cf_gnat_libraries" = yes
22044 USE_GNAT_LIBRARIES=""
22046 USE_GNAT_LIBRARIES="#"
22049 echo "$as_me:22049: checking for ada-compiler" >&5
22050 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
22052 # Check whether --with-ada-compiler or --without-ada-compiler was given.
22053 if test "${with_ada_compiler+set}" = set; then
22054 withval="$with_ada_compiler"
22055 cf_ada_compiler=$withval
22057 cf_ada_compiler=gnatmake
22060 echo "$as_me:22060: result: $cf_ada_compiler" >&5
22061 echo "${ECHO_T}$cf_ada_compiler" >&6
22063 cf_ada_package=terminal_interface
22065 echo "$as_me:22065: checking for ada-include" >&5
22066 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
22068 # Check whether --with-ada-include or --without-ada-include was given.
22069 if test "${with_ada_include+set}" = set; then
22070 withval="$with_ada_include"
22073 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
22074 fi; if test -n "$prefix/share/ada/adainclude" ; then
22076 if test "x$prefix" != xNONE; then
22077 cf_path_syntax="$prefix"
22079 cf_path_syntax="$ac_default_prefix"
22082 case ".$withval" in
22083 (.\$\(*\)*|.\'*\'*)
22087 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
22089 (.\${*prefix}*|.\${*dir}*)
22090 eval withval="$withval"
22091 case ".$withval" in
22093 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22098 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22101 { { echo "$as_me:22101: error: expected a pathname, not \"$withval\"" >&5
22102 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
22103 { (exit 1); exit 1; }; }
22108 eval ADA_INCLUDE="$withval"
22110 echo "$as_me:22110: result: $ADA_INCLUDE" >&5
22111 echo "${ECHO_T}$ADA_INCLUDE" >&6
22113 echo "$as_me:22113: checking for ada-objects" >&5
22114 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
22116 # Check whether --with-ada-objects or --without-ada-objects was given.
22117 if test "${with_ada_objects+set}" = set; then
22118 withval="$with_ada_objects"
22121 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
22122 fi; if test -n "$prefix/lib/ada/adalib" ; then
22124 if test "x$prefix" != xNONE; then
22125 cf_path_syntax="$prefix"
22127 cf_path_syntax="$ac_default_prefix"
22130 case ".$withval" in
22131 (.\$\(*\)*|.\'*\'*)
22135 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
22137 (.\${*prefix}*|.\${*dir}*)
22138 eval withval="$withval"
22139 case ".$withval" in
22141 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22146 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
22149 { { echo "$as_me:22149: error: expected a pathname, not \"$withval\"" >&5
22150 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
22151 { (exit 1); exit 1; }; }
22156 eval ADA_OBJECTS="$withval"
22158 echo "$as_me:22158: result: $ADA_OBJECTS" >&5
22159 echo "${ECHO_T}$ADA_OBJECTS" >&6
22161 echo "$as_me:22161: checking if an Ada95 shared-library should be built" >&5
22162 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
22164 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
22165 if test "${with_ada_sharedlib+set}" = set; then
22166 withval="$with_ada_sharedlib"
22167 with_ada_sharedlib=$withval
22169 with_ada_sharedlib=no
22171 echo "$as_me:22171: result: $with_ada_sharedlib" >&5
22172 echo "${ECHO_T}$with_ada_sharedlib" >&6
22174 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
22175 MAKE_ADA_SHAREDLIB="#"
22177 if test "x$with_ada_sharedlib" != xno
22179 MAKE_ADA_SHAREDLIB=
22180 if test "x$with_ada_sharedlib" != xyes
22182 ADA_SHAREDLIB="$with_ada_sharedlib"
22192 # do this "late" to avoid conflict with header-checks
22193 if test "x$with_widec" = xyes ; then
22194 echo "$as_me:22194: checking for wchar_t" >&5
22195 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
22196 if test "${ac_cv_type_wchar_t+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 cat >conftest.$ac_ext <<_ACEOF
22200 #line 22200 "configure"
22201 #include "confdefs.h"
22202 $ac_includes_default
22208 if (sizeof (wchar_t))
22214 rm -f conftest.$ac_objext
22215 if { (eval echo "$as_me:22215: \"$ac_compile\"") >&5
22216 (eval $ac_compile) 2>&5
22218 echo "$as_me:22218: \$? = $ac_status" >&5
22219 (exit $ac_status); } &&
22220 { ac_try='test -s conftest.$ac_objext'
22221 { (eval echo "$as_me:22221: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22224 echo "$as_me:22224: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 ac_cv_type_wchar_t=yes
22228 echo "$as_me: failed program was:" >&5
22229 cat conftest.$ac_ext >&5
22230 ac_cv_type_wchar_t=no
22232 rm -f conftest.$ac_objext conftest.$ac_ext
22234 echo "$as_me:22234: result: $ac_cv_type_wchar_t" >&5
22235 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
22237 echo "$as_me:22237: checking size of wchar_t" >&5
22238 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
22239 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 if test "$ac_cv_type_wchar_t" = yes; then
22243 if test "$cross_compiling" = yes; then
22244 # Depending upon the size, compute the lo and hi bounds.
22245 cat >conftest.$ac_ext <<_ACEOF
22246 #line 22246 "configure"
22247 #include "confdefs.h"
22248 $ac_includes_default
22252 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
22257 rm -f conftest.$ac_objext
22258 if { (eval echo "$as_me:22258: \"$ac_compile\"") >&5
22259 (eval $ac_compile) 2>&5
22261 echo "$as_me:22261: \$? = $ac_status" >&5
22262 (exit $ac_status); } &&
22263 { ac_try='test -s conftest.$ac_objext'
22264 { (eval echo "$as_me:22264: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22267 echo "$as_me:22267: \$? = $ac_status" >&5
22268 (exit $ac_status); }; }; then
22271 cat >conftest.$ac_ext <<_ACEOF
22272 #line 22272 "configure"
22273 #include "confdefs.h"
22274 $ac_includes_default
22278 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
22283 rm -f conftest.$ac_objext
22284 if { (eval echo "$as_me:22284: \"$ac_compile\"") >&5
22285 (eval $ac_compile) 2>&5
22287 echo "$as_me:22287: \$? = $ac_status" >&5
22288 (exit $ac_status); } &&
22289 { ac_try='test -s conftest.$ac_objext'
22290 { (eval echo "$as_me:22290: \"$ac_try\"") >&5
22291 (eval $ac_try) 2>&5
22293 echo "$as_me:22293: \$? = $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 ac_hi=$ac_mid; break
22297 echo "$as_me: failed program was:" >&5
22298 cat conftest.$ac_ext >&5
22299 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
22301 rm -f conftest.$ac_objext conftest.$ac_ext
22304 echo "$as_me: failed program was:" >&5
22305 cat conftest.$ac_ext >&5
22308 cat >conftest.$ac_ext <<_ACEOF
22309 #line 22309 "configure"
22310 #include "confdefs.h"
22311 $ac_includes_default
22315 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
22320 rm -f conftest.$ac_objext
22321 if { (eval echo "$as_me:22321: \"$ac_compile\"") >&5
22322 (eval $ac_compile) 2>&5
22324 echo "$as_me:22324: \$? = $ac_status" >&5
22325 (exit $ac_status); } &&
22326 { ac_try='test -s conftest.$ac_objext'
22327 { (eval echo "$as_me:22327: \"$ac_try\"") >&5
22328 (eval $ac_try) 2>&5
22330 echo "$as_me:22330: \$? = $ac_status" >&5
22331 (exit $ac_status); }; }; then
22332 ac_lo=$ac_mid; break
22334 echo "$as_me: failed program was:" >&5
22335 cat conftest.$ac_ext >&5
22336 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
22338 rm -f conftest.$ac_objext conftest.$ac_ext
22341 rm -f conftest.$ac_objext conftest.$ac_ext
22342 # Binary search between lo and hi bounds.
22343 while test "x$ac_lo" != "x$ac_hi"; do
22344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22345 cat >conftest.$ac_ext <<_ACEOF
22346 #line 22346 "configure"
22347 #include "confdefs.h"
22348 $ac_includes_default
22352 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
22357 rm -f conftest.$ac_objext
22358 if { (eval echo "$as_me:22358: \"$ac_compile\"") >&5
22359 (eval $ac_compile) 2>&5
22361 echo "$as_me:22361: \$? = $ac_status" >&5
22362 (exit $ac_status); } &&
22363 { ac_try='test -s conftest.$ac_objext'
22364 { (eval echo "$as_me:22364: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22367 echo "$as_me:22367: \$? = $ac_status" >&5
22368 (exit $ac_status); }; }; then
22371 echo "$as_me: failed program was:" >&5
22372 cat conftest.$ac_ext >&5
22373 ac_lo=`expr $ac_mid + 1`
22375 rm -f conftest.$ac_objext conftest.$ac_ext
22377 ac_cv_sizeof_wchar_t=$ac_lo
22379 if test "$cross_compiling" = yes; then
22380 { { echo "$as_me:22380: error: cannot run test program while cross compiling" >&5
22381 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22382 { (exit 1); exit 1; }; }
22384 cat >conftest.$ac_ext <<_ACEOF
22385 #line 22385 "configure"
22386 #include "confdefs.h"
22387 $ac_includes_default
22391 FILE *f = fopen ("conftest.val", "w");
22393 $ac_main_return (1);
22394 fprintf (f, "%d", (sizeof (wchar_t)));
22400 rm -f conftest$ac_exeext
22401 if { (eval echo "$as_me:22401: \"$ac_link\"") >&5
22402 (eval $ac_link) 2>&5
22404 echo "$as_me:22404: \$? = $ac_status" >&5
22405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22406 { (eval echo "$as_me:22406: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22409 echo "$as_me:22409: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 ac_cv_sizeof_wchar_t=`cat conftest.val`
22413 echo "$as_me: program exited with status $ac_status" >&5
22414 echo "$as_me: failed program was:" >&5
22415 cat conftest.$ac_ext >&5
22417 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22422 ac_cv_sizeof_wchar_t=0
22425 echo "$as_me:22425: result: $ac_cv_sizeof_wchar_t" >&5
22426 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
22427 cat >>confdefs.h <<EOF
22428 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22433 ### Construct the ncurses library-subsets, if any, from this set of keywords:
22434 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
22436 ### ticlib modules may be a separate library, otherwise contained in termlib.
22437 ### termlib modules may be a separate library, otherwise contained in ncurses.
22439 ### The of "+" or " " between the tokens controls the way the script
22440 ### chooses to split module lists into libraries.
22442 ### (see CF_LIB_RULES).
22443 echo "$as_me:22443: checking for library subsets" >&5
22444 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
22447 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
22448 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
22449 if test "$with_ticlib" != no ; then
22450 LIB_SUBSETS="${LIB_SUBSETS} "
22452 LIB_SUBSETS="${LIB_SUBSETS}+"
22456 LIB_SUBSETS="${LIB_SUBSETS}termlib"
22457 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
22459 if test "$with_termlib" != no ; then
22460 LIB_SUBSETS="${LIB_SUBSETS} "
22462 LIB_SUBSETS="${LIB_SUBSETS}+"
22465 LIB_SUBSETS="${LIB_SUBSETS}base"
22467 # Most term-driver calls are to tinfo, but some like init_pair are to the
22468 # base library (so it resides in base).
22469 if test "$with_term_driver" != no ; then
22470 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
22471 case $cf_cv_system_name in
22472 (*mingw32*|*mingw64*)
22473 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
22474 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
22477 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
22482 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
22483 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
22485 echo "$as_me:22485: result: $LIB_SUBSETS" >&5
22486 echo "${ECHO_T}$LIB_SUBSETS" >&6
22488 ### Construct the list of include-directories to be generated
22490 if test "$srcdir" != "."; then
22491 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
22493 CPPFLAGS="-I../include $CPPFLAGS"
22494 if test "$srcdir" != "."; then
22495 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
22497 CPPFLAGS="-I. $CPPFLAGS"
22499 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
22500 if test "$srcdir" != "."; then
22501 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
22503 if test "$GCC" != yes; then
22504 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22505 elif test "$includedir" != "/usr/include"; then
22506 if test "$includedir" = '${prefix}/include' ; then
22507 if test x$prefix != x/usr ; then
22508 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22511 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
22515 ### Build up pieces for makefile rules
22516 echo "$as_me:22516: checking default library suffix" >&5
22517 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
22519 case $DFT_LWR_MODEL in
22520 (libtool) DFT_ARG_SUFFIX='' ;;
22521 (normal) DFT_ARG_SUFFIX='' ;;
22522 (debug) DFT_ARG_SUFFIX='_g' ;;
22523 (profile) DFT_ARG_SUFFIX='_p' ;;
22524 (shared) DFT_ARG_SUFFIX='' ;;
22526 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
22527 echo "$as_me:22527: result: $DFT_ARG_SUFFIX" >&5
22528 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
22530 echo "$as_me:22530: checking default library-dependency suffix" >&5
22531 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
22533 case X$DFT_LWR_MODEL in
22535 DFT_LIB_SUFFIX='.la'
22536 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22539 DFT_LIB_SUFFIX='_g.a'
22540 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22543 DFT_LIB_SUFFIX='_p.a'
22544 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22547 case $cf_cv_system_name in
22549 DFT_LIB_SUFFIX='.so'
22550 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22552 (cygwin*|msys*|mingw*)
22553 DFT_LIB_SUFFIX='.dll'
22554 DFT_DEP_SUFFIX='.dll.a'
22557 DFT_LIB_SUFFIX='.dylib'
22558 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22563 DFT_LIB_SUFFIX='.so'
22564 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22567 DFT_LIB_SUFFIX='.sl'
22568 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22573 DFT_LIB_SUFFIX='.so'
22574 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22579 DFT_LIB_SUFFIX='.a'
22580 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22583 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
22585 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
22586 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
22588 echo "$as_me:22588: result: $DFT_DEP_SUFFIX" >&5
22589 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
22591 echo "$as_me:22591: checking default object directory" >&5
22592 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
22594 case $DFT_LWR_MODEL in
22595 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
22596 (normal) DFT_OBJ_SUBDIR='objects' ;;
22597 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
22598 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
22600 case $cf_cv_system_name in
22602 DFT_OBJ_SUBDIR='objects' ;;
22604 DFT_OBJ_SUBDIR='obj_s' ;;
22607 echo "$as_me:22607: result: $DFT_OBJ_SUBDIR" >&5
22608 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
22610 if test "x$cf_with_cxx" = xyes ; then
22611 echo "$as_me:22611: checking c++ library-dependency suffix" >&5
22612 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
22613 if test "$with_libtool" != "no"; then
22614 # libtool thinks it can make c++ shared libraries (perhaps only g++)
22615 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
22616 elif test "$with_shared_cxx" != "no"; then
22617 # also for g++ users...
22618 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
22620 # we normally make a static library because C/C++ library rules differ
22624 CXX_LIB_SUFFIX='.la'
22625 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22628 CXX_LIB_SUFFIX='_g.a'
22629 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22632 CXX_LIB_SUFFIX='_p.a'
22633 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22636 case $cf_cv_system_name in
22638 CXX_LIB_SUFFIX='.so'
22639 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22641 (cygwin*|msys*|mingw*)
22642 CXX_LIB_SUFFIX='.dll'
22643 CXX_DEP_SUFFIX='.dll.a'
22646 CXX_LIB_SUFFIX='.dylib'
22647 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22652 CXX_LIB_SUFFIX='.so'
22653 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22656 CXX_LIB_SUFFIX='.sl'
22657 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22662 CXX_LIB_SUFFIX='.so'
22663 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22668 CXX_LIB_SUFFIX='.a'
22669 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22672 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
22674 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
22675 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
22679 echo "$as_me:22679: result: $CXX_LIB_SUFFIX" >&5
22680 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
22684 # do not want -ldl in build except as needed for -lncurses dependency
22685 if test "x$with_dlsym" = xyes ; then
22686 if test $DFT_LWR_MODEL = shared || \
22687 test $DFT_LWR_MODEL = libtool ; then
22689 # remove dl library from $LIBS
22690 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22694 ### Set up low-level terminfo dependencies for makefiles.
22696 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
22697 # do not need libdl
22699 if test "x$with_dlsym" = xyes ; then
22701 # remove dl library from $SHLIB_LIST
22702 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22706 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
22707 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
22708 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
22709 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
22711 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
22714 if test "$with_ticlib" != no ; then
22716 if test "x$with_ticlib" != xyes ; then
22717 TICS_NAME=$with_ticlib
22718 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
22719 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22720 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22721 TICS_LIB_SUFFIX="${with_ticlib}"
22723 TICS_SUFFIX=${DFT_LIB_SUFFIX}
22724 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
22725 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
22726 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
22728 TICS_LDFLAGS="-L${LIB_DIR}"
22729 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
22731 TICS_SUFFIX=${DFT_LIB_SUFFIX}
22732 TICS_LDFLAGS="-L${LIB_DIR}"
22733 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22736 if test "$with_termlib" != no ; then
22738 if test "x$with_termlib" != xyes ; then
22739 TINFO_NAME=$with_termlib
22740 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
22741 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22742 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22743 TINFO_LIB_SUFFIX="${with_termlib}"
22745 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
22746 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
22747 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
22748 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
22751 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
22752 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
22753 if test "$DFT_LWR_MODEL" = "libtool"; then
22754 TEST_ARGS="${TEST_DEPS}"
22755 TEST_ARG2="${TEST_DEP2}"
22756 TINFO_LDFLAGS="-L${LIB_DIR}"
22757 TINFO_LIBS="$TEST_ARGS"
22758 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
22759 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
22761 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
22762 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
22763 if test "x$with_term_driver" != xno ; then
22764 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
22765 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
22766 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22768 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
22769 TINFO_LIBS="$TEST_ARGS"
22771 TINFO_LDFLAGS="-L${LIB_DIR}"
22772 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
22775 # the next lines are needed for linking libtic over libncurses
22776 TINFO_NAME=${LIB_NAME}
22777 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
22778 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
22779 if test "x$with_tic_depends" = xyes ; then
22780 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
22782 TICS_LIST="$SHLIB_LIST"
22785 TINFO_LDFLAGS="-L${LIB_DIR}"
22786 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22789 if test "$DFT_LWR_MODEL" = shared ; then
22790 case $cf_cv_system_name in
22792 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
22798 if test "x$with_dlsym" = xyes ; then
22800 # remove dl library from $TICS_LIST
22801 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22805 if test "$DFT_LWR_MODEL" = "libtool"; then
22810 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
22812 case $DFT_LWR_MODEL in
22813 (normal|debug|profile)
22815 if test "$GCC" = yes ; then
22816 case $cf_cv_system_name in
22817 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
22821 (*) # normally, except when broken
22822 LDFLAGS_STATIC=-static
22823 LDFLAGS_SHARED=-dynamic
22827 case $cf_cv_system_name in
22828 (aix[4-7]*) # from ld manpage
22829 LDFLAGS_STATIC=-bstatic
22830 LDFLAGS_SHARED=-bdynamic
22832 (hpux*) # from ld manpage for hpux10.20, hpux11.11
22833 # We could also use just "archive" and "shared".
22834 LDFLAGS_STATIC=-Wl,-a,archive_shared
22835 LDFLAGS_SHARED=-Wl,-a,shared_archive
22837 (irix*) # from ld manpage IRIX64
22838 LDFLAGS_STATIC=-Bstatic
22839 LDFLAGS_SHARED=-Bdynamic
22841 (osf[45]*) # from ld manpage osf4.0d, osf5.1
22842 # alternative "-oldstyle_liblookup" (not in cc manpage)
22843 LDFLAGS_STATIC=-noso
22844 LDFLAGS_SHARED=-so_archive
22847 LDFLAGS_STATIC=-Bstatic
22848 LDFLAGS_SHARED=-Bdynamic
22853 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
22855 echo "$as_me:22855: checking if linker supports switching between static/dynamic" >&5
22856 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
22858 rm -f libconftest.a
22859 cat >conftest.$ac_ext <<EOF
22860 #line 22860 "configure"
22862 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
22864 if { (eval echo "$as_me:22864: \"$ac_compile\"") >&5
22865 (eval $ac_compile) 2>&5
22867 echo "$as_me:22867: \$? = $ac_status" >&5
22868 (exit $ac_status); } ; then
22869 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
22870 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
22874 cf_save_LIBS="$LIBS"
22876 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
22877 cat >conftest.$ac_ext <<_ACEOF
22878 #line 22878 "configure"
22879 #include "confdefs.h"
22881 #line 22881 "configure"
22883 int cf_ldflags_static(FILE *fp);
22889 return cf_ldflags_static(stdin);
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (eval echo "$as_me:22896: \"$ac_link\"") >&5
22897 (eval $ac_link) 2>&5
22899 echo "$as_me:22899: \$? = $ac_status" >&5
22900 (exit $ac_status); } &&
22901 { ac_try='test -s conftest$ac_exeext'
22902 { (eval echo "$as_me:22902: \"$ac_try\"") >&5
22903 (eval $ac_try) 2>&5
22905 echo "$as_me:22905: \$? = $ac_status" >&5
22906 (exit $ac_status); }; }; then
22908 # some linkers simply ignore the -dynamic
22909 case x`file conftest$ac_exeext 2>/dev/null` in
22911 cf_ldflags_static=no
22914 cf_ldflags_static=yes
22919 echo "$as_me: failed program was:" >&5
22920 cat conftest.$ac_ext >&5
22921 cf_ldflags_static=no
22923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22925 rm -f libconftest.*
22926 LIBS="$cf_save_LIBS"
22928 echo "$as_me:22928: result: $cf_ldflags_static" >&5
22929 echo "${ECHO_T}$cf_ldflags_static" >&6
22931 if test $cf_ldflags_static != yes
22944 echo "$as_me:22944: checking where we will install curses.h" >&5
22945 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
22948 if test "$with_overwrite" = no && \
22949 ( test "x$includedir" = 'x${prefix}/include' || \
22950 test "x$includedir" = "x${prefix}/include" )
22952 includesubdir="/ncurses${USE_LIB_SUFFIX}"
22954 echo "$as_me:22954: result: ${includedir}${includesubdir}" >&5
22955 echo "${ECHO_T}${includedir}${includesubdir}" >&6
22957 ### Resolve a conflict between normal and wide-curses by forcing applications
22958 ### that will need libutf8 to add it to their configure script.
22959 if test "$with_overwrite" != no ; then
22960 if test "$NCURSES_LIBUTF8" = 1 ; then
22961 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
22962 { echo "$as_me:22962: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
22963 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
22966 WITH_OVERWRITE=$with_overwrite
22968 # used to separate tack out of the tree
22971 ### predefined stuff for the test programs
22973 cat >>confdefs.h <<\EOF
22974 #define HAVE_SLK_COLOR 1
22977 ### Construct the list of subdirectories for which we'll customize makefiles
22978 ### with the appropriate compile-rules.
22980 echo "$as_me:22980: checking for src modules" >&5
22981 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
22983 # dependencies and linker-arguments for test-programs
22984 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
22985 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
22986 if test "$DFT_LWR_MODEL" = "libtool"; then
22987 TEST_ARGS="${TEST_DEPS}"
22988 TEST_ARG2="${TEST_DEP2}"
22990 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22991 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
22994 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
22996 for cf_dir in $modules_to_build
22998 if test -f $srcdir/$cf_dir/modules; then
23000 # We may/may not have tack in the distribution, though the
23002 if test $cf_dir = tack ; then
23003 if test "x$cf_with_tack" != "xyes"; then
23008 if test -z "$cf_cv_src_modules"; then
23009 cf_cv_src_modules=$cf_dir
23011 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
23014 # Make the ncurses_cfg.h file record the library interface files as
23015 # well. These are header files that are the same name as their
23016 # directory. Ncurses is the only library that does not follow
23018 if test $cf_dir = tack ; then
23020 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
23022 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23024 cat >>confdefs.h <<EOF
23025 #define HAVE_${cf_have_include}_H 1
23028 cat >>confdefs.h <<EOF
23029 #define HAVE_LIB${cf_have_include} 1
23032 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
23033 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
23034 if test "$DFT_LWR_MODEL" = "libtool"; then
23035 TEST_ARGS="${TEST_DEPS}"
23036 TEST_ARG2="${TEST_DEP2}"
23038 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
23039 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
23041 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
23045 echo "$as_me:23045: result: $cf_cv_src_modules" >&5
23046 echo "${ECHO_T}$cf_cv_src_modules" >&6
23048 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
23049 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
23052 if test "x$cf_with_manpages" != xno ; then
23053 SRC_SUBDIRS="$SRC_SUBDIRS man"
23055 SRC_SUBDIRS="$SRC_SUBDIRS include"
23056 for cf_dir in $cf_cv_src_modules
23058 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
23060 if test "x$cf_with_tests" != "xno" ; then
23061 SRC_SUBDIRS="$SRC_SUBDIRS test"
23063 # always make this, to install the ncurses-config script
23064 SRC_SUBDIRS="$SRC_SUBDIRS misc"
23065 if test "$cf_with_cxx_binding" != no; then
23066 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
23067 SRC_SUBDIRS="$SRC_SUBDIRS c++"
23070 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
23071 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
23074 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
23075 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
23076 ADA_SUBDIRS="gen src"
23077 if test "x$cf_with_tests" != "xno" ; then
23078 ADA_SUBDIRS="$ADA_SUBDIRS samples"
23083 for cf_dir in $SRC_SUBDIRS
23085 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
23088 if test -n "$ADA_SUBDIRS"; then
23089 for cf_dir in $ADA_SUBDIRS
23091 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
23096 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
23097 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
23098 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
23102 for cf_item in $cf_list_models
23106 (libtool) cf_subdir='obj_lo' ;;
23107 (normal) cf_subdir='objects' ;;
23108 (debug) cf_subdir='obj_g' ;;
23109 (profile) cf_subdir='obj_p' ;;
23111 case $cf_cv_system_name in
23113 cf_subdir='objects' ;;
23115 cf_subdir='obj_s' ;;
23119 for cf_item2 in $DIRS_TO_MAKE
23121 test $cf_item2 = $cf_subdir && break
23123 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
23125 for cf_dir in $DIRS_TO_MAKE
23127 test ! -d $cf_dir && mkdir $cf_dir
23130 # symbols that differ when compiling Ada95 by itself.
23131 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
23133 # values to use as strings
23135 cat >>confdefs.h <<EOF
23136 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
23139 cat >>confdefs.h <<EOF
23140 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
23143 ### Now that we're done running tests, add the compiler-warnings, if any
23148 cf_new_extra_cppflags=
23150 for cf_add_cflags in $EXTRA_CFLAGS
23152 case $cf_fix_cppflags in
23154 case $cf_add_cflags in
23155 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
23156 case $cf_add_cflags in
23158 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
23160 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23161 && test -z "${cf_tst_cflags}" \
23162 && cf_fix_cppflags=yes
23164 if test $cf_fix_cppflags = yes ; then
23166 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23167 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23170 elif test "${cf_tst_cflags}" = "\"'" ; then
23172 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23173 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23179 case "$CPPFLAGS" in
23183 case $cf_add_cflags in
23185 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23187 CPPFLAGS=`echo "$CPPFLAGS" | \
23188 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23189 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23194 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23195 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
23202 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23203 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
23210 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23211 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23213 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
23215 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23216 && test -z "${cf_tst_cflags}" \
23217 && cf_fix_cppflags=no
23222 if test -n "$cf_new_cflags" ; then
23224 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23225 CFLAGS="${CFLAGS}$cf_new_cflags"
23229 if test -n "$cf_new_cppflags" ; then
23231 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23232 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
23236 if test -n "$cf_new_extra_cppflags" ; then
23238 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23239 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
23243 ### Define substitutions for header files to avoid name-pollution
23245 if test "x$cf_cv_have_tcgetattr" = xyes ; then
23251 if test "x$ac_cv_header_stdint_h" = xyes ; then
23257 if test "x$ac_cv_header_termio_h" = xyes ; then
23263 if test "x$ac_cv_header_termios_h" = xyes ; then
23269 ################################################################################
23270 test "x$use_database" = xyes && \
23271 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
23273 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
23274 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
23276 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
23277 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
23280 # Extract the first word of "tic", so it can be a program name with args.
23281 set dummy tic; ac_word=$2
23282 echo "$as_me:23282: checking for $ac_word" >&5
23283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23284 if test "${ac_cv_path_TIC_PATH+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23289 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
23292 ac_save_IFS=$IFS; IFS=$ac_path_separator
23293 ac_dummy="$PATH:/usr/local/ncurses/bin"
23294 for ac_dir in $ac_dummy; do
23296 test -z "$ac_dir" && ac_dir=.
23297 if $as_executable_p "$ac_dir/$ac_word"; then
23298 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
23299 echo "$as_me:23299: found $ac_dir/$ac_word" >&5
23304 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
23308 TIC_PATH=$ac_cv_path_TIC_PATH
23310 if test -n "$TIC_PATH"; then
23311 echo "$as_me:23311: result: $TIC_PATH" >&5
23312 echo "${ECHO_T}$TIC_PATH" >&6
23314 echo "$as_me:23314: result: no" >&5
23315 echo "${ECHO_T}no" >&6
23318 if test -n "$FALLBACK_LIST"
23320 if test "$TIC_PATH" = unknown
23322 { echo "$as_me:23322: WARNING: no tic program found for fallbacks" >&5
23323 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
23327 if test "x$cf_with_tests" != xno ; then
23333 ADAHTML_DIR=../../doc/html/ada
23335 # these could be configurable, but are not currently
23341 # workaround for OS/2 (20151017)
23342 case $cf_cv_system_name in
23344 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
23351 # workaround for g++ versus Solaris (20131116)
23352 case $cf_cv_system_name in
23354 case "x$CPPFLAGS" in
23355 (*-D_XOPEN_SOURCE_EXTENDED*)
23356 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
23358 echo "${as_me:-configure}:23358: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
23360 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
23361 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
23367 # Help to automatically enable the extended curses features when using either
23368 # the *-config or the ".pc" files by adding defines.
23369 echo "$as_me:23369: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
23370 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
23372 for cf_loop1 in $CPPFLAGS_after_XOPEN
23375 for cf_loop2 in $CPPFLAGS_before_XOPEN
23377 if test "x$cf_loop1" = "x$cf_loop2"
23383 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
23385 echo "$as_me:23385: result: $PKG_CFLAGS" >&5
23386 echo "${ECHO_T}$PKG_CFLAGS" >&6
23388 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
23389 case "x$NCURSES_OSPEED" in
23398 cat >>confdefs.h <<EOF
23399 #define NCURSES_OSPEED_COMPAT $cf_compatible
23402 case "x$cf_cv_typeof_chtype" in
23403 (xshort|xint|xlong)
23404 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
23408 case "x$cf_cv_typeof_mmask_t" in
23409 (xshort|xint|xlong)
23410 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
23414 # substitute into misc/Makefile to suppress
23415 # (un)install.data from the
23416 # (un)install rules.
23417 if test "x$cf_with_db_install" = "xno"; then
23419 MISC_UNINSTALL_DATA=
23421 MISC_INSTALL_DATA=install.data
23422 MISC_UNINSTALL_DATA=uninstall.data
23427 if test -n "$PACKAGE"
23429 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
23431 echo "package: $PACKAGE"
23437 if test -n "$RESULTING_SYMS"
23439 cf_filter_syms=$cf_dft_filter_syms
23440 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
23442 echo "${as_me:-configure}:23442: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
23446 if test "x$WILDCARD_SYMS" = xno
23451 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
23453 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
23454 if test $cf_filter_syms = yes
23456 RESULTING_SYMS=resulting.map
23459 if test "x$cross_compiling" = xyes ; then
23460 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
23463 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
23467 cat >>confdefs.h <<\EOF
23468 #define HAVE_CURSES_DATA_BOOLNAMES 1
23471 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"
23472 ac_config_commands="$ac_config_commands default"
23473 cat >confcache <<\_ACEOF
23474 # This file is a shell script that caches the results of configure
23475 # tests run on this system so they can be shared between configure
23476 # scripts and configure runs, see configure's option --config-cache.
23477 # It is not useful on other systems. If it contains results you don't
23478 # want to keep, you may remove or edit it.
23480 # config.status only pays attention to the cache file if you give it
23481 # the --recheck option to rerun configure.
23483 # `ac_cv_env_foo' variables (set or unset) will be overriden when
23484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23485 # following values.
23489 # The following way of writing the cache mishandles newlines in values,
23490 # but we know of no workaround that is simple, portable, and efficient.
23491 # So, don't put newlines in cache variables' values.
23492 # Ultrix sh set writes to stderr and can't be redirected directly,
23493 # and sets the high bit in the cache file unless we assign to the vars.
23496 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23498 # `set' does not quote correctly, so add quotes (double-quote
23499 # substitution turns \\\\ into \\, and sed turns \\ into \).
23502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23505 # `set' quotes correctly as required by POSIX, so do not add quotes.
23507 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23516 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23518 if cmp -s $cache_file confcache; then :; else
23519 if test -w $cache_file; then
23520 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23521 cat confcache >$cache_file
23523 echo "not updating unwritable cache $cache_file"
23528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23529 # Let make expand exec_prefix.
23530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23532 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23533 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23534 # trailing colons and then remove the whole line if VPATH becomes empty
23535 # (actually we leave an empty line to preserve line numbers).
23536 if test "x$srcdir" = x.; then
23537 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23538 s/:*\$(srcdir):*/:/;
23539 s/:*\${srcdir}:*/:/;
23541 s/^\([^=]*=[ ]*\):*/\1/;
23547 DEFS=-DHAVE_CONFIG_H
23549 : ${CONFIG_STATUS=./config.status}
23550 ac_clean_files_save=$ac_clean_files
23551 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23552 { echo "$as_me:23552: creating $CONFIG_STATUS" >&5
23553 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23554 cat >$CONFIG_STATUS <<_ACEOF
23556 # Generated automatically by configure.
23557 # Run this file to recreate the current configuration.
23558 # Compiler output produced by configure, useful for debugging
23559 # configure, is in config.log if it exists.
23562 SHELL=\${CONFIG_SHELL-$SHELL}
23563 ac_cs_invocation="\$0 \$@"
23567 cat >>$CONFIG_STATUS <<\_ACEOF
23568 # Be Bourne compatible
23569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23572 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23576 # Name of the executable.
23577 as_me=`echo "$0" |sed 's,.*[\\/],,'`
23579 if expr a : '\(a\)' >/dev/null 2>&1; then
23585 rm -f conf$$ conf$$.exe conf$$.file
23587 if ln -s conf$$.file conf$$ 2>/dev/null; then
23588 # We could just check for DJGPP; but this test a) works b) is more generic
23589 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23590 if test -f conf$$.exe; then
23591 # Don't use ln at all; we don't have any links
23596 elif ln conf$$.file conf$$ 2>/dev/null; then
23601 rm -f conf$$ conf$$.exe conf$$.file
23603 as_executable_p="test -f"
23605 # Support unset when possible.
23606 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23613 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
23614 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
23615 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
23616 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
23617 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
23618 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
23619 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
23620 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
23623 # We need space, tab and new line, in precisely that order.
23629 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
23635 # Files that config.status was made for.
23636 if test -n "$ac_config_files"; then
23637 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23640 if test -n "$ac_config_headers"; then
23641 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23644 if test -n "$ac_config_links"; then
23645 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23648 if test -n "$ac_config_commands"; then
23649 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23652 cat >>$CONFIG_STATUS <<\EOF
23655 \`$as_me' instantiates files from templates according to the
23656 current configuration.
23658 Usage: $0 [OPTIONS] [FILE]...
23660 -h, --help print this help, then exit
23661 -V, --version print version number, then exit
23662 -d, --debug don't remove temporary files
23663 --recheck update $as_me by reconfiguring in the same conditions
23664 --file=FILE[:TEMPLATE]
23665 instantiate the configuration file FILE
23666 --header=FILE[:TEMPLATE]
23667 instantiate the configuration header FILE
23669 Configuration files:
23672 Configuration headers:
23675 Configuration commands:
23678 Report bugs to <dickey@invisible-island.net>."
23681 cat >>$CONFIG_STATUS <<EOF
23684 configured by $0, generated by GNU Autoconf 2.52.20170501,
23685 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23687 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23688 Free Software Foundation, Inc.
23689 This config.status script is free software; the Free Software Foundation
23690 gives unlimited permission to copy, distribute and modify it."
23695 cat >>$CONFIG_STATUS <<\EOF
23696 # If no file are specified by the user, then we need to provide default
23697 # value. By we need to know if files were specified by the user.
23703 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23704 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23706 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
23710 *) # This is not an option, so the user has probably given explicit
23712 ac_need_defaults=false;;
23716 # Handling of the options.
23718 cat >>$CONFIG_STATUS <<EOF
23719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23720 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23721 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23723 cat >>$CONFIG_STATUS <<\EOF
23724 --version | --vers* | -V )
23725 echo "$ac_cs_version"; exit 0 ;;
23727 # Conflict between --help and --header
23728 { { echo "$as_me:23728: error: ambiguous option: $1
23729 Try \`$0 --help' for more information." >&5
23730 echo "$as_me: error: ambiguous option: $1
23731 Try \`$0 --help' for more information." >&2;}
23732 { (exit 1); exit 1; }; };;
23733 --help | --hel | -h )
23734 echo "$ac_cs_usage"; exit 0 ;;
23735 --debug | --d* | -d )
23737 --file | --fil | --fi | --f )
23739 CONFIG_FILES="$CONFIG_FILES $1"
23740 ac_need_defaults=false;;
23741 --header | --heade | --head | --hea )
23743 CONFIG_HEADERS="$CONFIG_HEADERS $1"
23744 ac_need_defaults=false;;
23746 # This is an error.
23747 -*) { { echo "$as_me:23747: error: unrecognized option: $1
23748 Try \`$0 --help' for more information." >&5
23749 echo "$as_me: error: unrecognized option: $1
23750 Try \`$0 --help' for more information." >&2;}
23751 { (exit 1); exit 1; }; } ;;
23753 *) ac_config_targets="$ac_config_targets $1" ;;
23762 ## ----------------------- ##
23763 ## Running config.status. ##
23764 ## ----------------------- ##
23766 This file was extended by $as_me 2.52.20170501, executed with
23767 CONFIG_FILES = $CONFIG_FILES
23768 CONFIG_HEADERS = $CONFIG_HEADERS
23769 CONFIG_LINKS = $CONFIG_LINKS
23770 CONFIG_COMMANDS = $CONFIG_COMMANDS
23771 > $ac_cs_invocation
23772 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23777 cat >>$CONFIG_STATUS <<EOF
23779 # INIT-COMMANDS section.
23782 ### Special initialization commands, used to pass information from the
23783 ### configuration-run into config.status
23786 ALTERNATE_SYMS="$ALTERNATE_SYMS"
23787 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
23788 DFT_LWR_MODEL="$DFT_LWR_MODEL"
23790 EXTRA_SUFFIX="$EXTRA_SUFFIX"
23791 LDCONFIG="$LDCONFIG"
23792 LIBTOOL_VERSION="$LIBTOOL_VERSION"
23793 LIB_NAME="$LIB_NAME"
23794 LIB_PREFIX="$LIB_PREFIX"
23795 LIB_SUBSETS="$LIB_SUBSETS"
23796 LIB_SUFFIX="$LIB_SUFFIX"
23797 LIB_TRACING="$LIB_TRACING"
23799 MAKE_TERMINFO="$MAKE_TERMINFO"
23800 NCURSES_MAJOR="$NCURSES_MAJOR"
23801 NCURSES_MINOR="$NCURSES_MINOR"
23802 NCURSES_OSPEED="$NCURSES_OSPEED"
23803 NCURSES_PATCH="$NCURSES_PATCH"
23804 SRC_SUBDIRS="$SRC_SUBDIRS"
23805 TERMINFO="$TERMINFO"
23806 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
23807 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
23808 TICS_NAME="$TICS_NAME"
23809 TICS_SUFFIX="$TICS_SUFFIX"
23810 TIC_PATH="$TIC_PATH"
23811 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
23812 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
23813 TINFO_NAME="$TINFO_NAME"
23814 TINFO_SUFFIX="$TINFO_SUFFIX"
23815 UNALTERED_SYMS="$UNALTERED_SYMS"
23816 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
23817 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
23818 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
23819 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
23820 WILDCARD_SYMS="$WILDCARD_SYMS"
23821 WITH_CURSES_H="$with_curses_h"
23822 WITH_ECHO="${enable_echo:=yes}"
23823 WITH_OVERWRITE="$with_overwrite"
23824 cf_LIST_MODELS="$cf_list_models"
23825 cf_cv_abi_version="$cf_cv_abi_version"
23826 cf_cv_do_relink="$cf_cv_do_relink"
23827 cf_cv_do_symlinks="$cf_cv_do_symlinks"
23828 cf_cv_enable_lp64="$cf_cv_enable_lp64"
23829 cf_cv_enable_opaque="$cf_cv_enable_opaque"
23830 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
23831 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
23832 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
23833 cf_cv_rel_version="$cf_cv_rel_version"
23834 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
23835 cf_cv_shared_soname='$cf_cv_shared_soname'
23836 cf_cv_shlib_version="$cf_cv_shlib_version"
23837 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
23838 cf_cv_system_name="$cf_cv_system_name"
23839 cf_cv_term_driver="$with_term_driver"
23840 cf_with_ada="$cf_with_ada"
23841 cf_with_cxx_binding="$cf_with_cxx_binding"
23842 cf_with_db_install="$cf_with_db_install"
23843 cf_with_manpages="$cf_with_manpages"
23844 cf_with_tests="$cf_with_tests"
23847 with_shared_cxx="$with_shared_cxx"
23851 cat >>$CONFIG_STATUS <<\EOF
23852 for ac_config_target in $ac_config_targets
23854 case "$ac_config_target" in
23855 # Handling of arguments.
23856 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
23857 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
23858 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
23859 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
23860 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
23861 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
23862 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
23863 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23864 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23865 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
23866 *) { { echo "$as_me:23866: error: invalid argument: $ac_config_target" >&5
23867 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23868 { (exit 1); exit 1; }; };;
23872 # If the user did not use the arguments to specify the items to instantiate,
23873 # then the envvar interface is used. Set only those that are not.
23874 # We use the long form for the default assignment because of an extremely
23875 # bizarre bug on SunOS 4.1.3.
23876 if $ac_need_defaults; then
23877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23878 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23882 # Create a temporary directory, and hook for its removal unless debugging.
23885 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23886 trap '{ (exit 1); exit 1; }' 1 2 13 15
23889 # Create a (secure) tmp directory for tmp files.
23892 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23893 test -n "$tmp" && test -d "$tmp"
23896 tmp=$TMPDIR/cs$$-$RANDOM
23897 (umask 077 && mkdir $tmp)
23900 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23901 { (exit 1); exit 1; }
23906 cat >>$CONFIG_STATUS <<EOF
23909 # CONFIG_FILES section.
23912 # No need to generate the scripts if there are no CONFIG_FILES.
23913 # This happens for instance when ./config.status config.h
23914 if test -n "\$CONFIG_FILES"; then
23915 # Protect against being on the right side of a sed subst in config.status.
23916 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23917 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23918 s,@SHELL@,$SHELL,;t t
23919 s,@exec_prefix@,$exec_prefix,;t t
23920 s,@prefix@,$prefix,;t t
23921 s,@program_transform_name@,$program_transform_name,;t t
23922 s,@bindir@,$bindir,;t t
23923 s,@sbindir@,$sbindir,;t t
23924 s,@libexecdir@,$libexecdir,;t t
23925 s,@datarootdir@,$datarootdir,;t t
23926 s,@datadir@,$datadir,;t t
23927 s,@sysconfdir@,$sysconfdir,;t t
23928 s,@sharedstatedir@,$sharedstatedir,;t t
23929 s,@localstatedir@,$localstatedir,;t t
23930 s,@libdir@,$libdir,;t t
23931 s,@includedir@,$includedir,;t t
23932 s,@oldincludedir@,$oldincludedir,;t t
23933 s,@infodir@,$infodir,;t t
23934 s,@mandir@,$mandir,;t t
23935 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23936 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23937 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23938 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23939 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23940 s,@build_alias@,$build_alias,;t t
23941 s,@host_alias@,$host_alias,;t t
23942 s,@target_alias@,$target_alias,;t t
23943 s,@ECHO_C@,$ECHO_C,;t t
23944 s,@ECHO_N@,$ECHO_N,;t t
23945 s,@ECHO_T@,$ECHO_T,;t t
23946 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23947 s,@DEFS@,$DEFS,;t t
23948 s,@LIBS@,$LIBS,;t t
23949 s,@top_builddir@,$top_builddir,;t t
23950 s,@EGREP@,$EGREP,;t t
23951 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
23952 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
23953 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
23954 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
23955 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
23956 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
23957 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
23958 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
23959 s,@VERSION@,$VERSION,;t t
23960 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
23961 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
23962 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
23963 s,@PACKAGE@,$PACKAGE,;t t
23964 s,@build@,$build,;t t
23965 s,@build_cpu@,$build_cpu,;t t
23966 s,@build_vendor@,$build_vendor,;t t
23967 s,@build_os@,$build_os,;t t
23968 s,@host@,$host,;t t
23969 s,@host_cpu@,$host_cpu,;t t
23970 s,@host_vendor@,$host_vendor,;t t
23971 s,@host_os@,$host_os,;t t
23972 s,@target@,$target,;t t
23973 s,@target_cpu@,$target_cpu,;t t
23974 s,@target_vendor@,$target_vendor,;t t
23975 s,@target_os@,$target_os,;t t
23977 s,@CFLAGS@,$CFLAGS,;t t
23978 s,@LDFLAGS@,$LDFLAGS,;t t
23979 s,@CPPFLAGS@,$CPPFLAGS,;t t
23980 s,@ac_ct_CC@,$ac_ct_CC,;t t
23981 s,@EXEEXT@,$EXEEXT,;t t
23982 s,@OBJEXT@,$OBJEXT,;t t
23983 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
23985 s,@LDCONFIG@,$LDCONFIG,;t t
23987 s,@CXXFLAGS@,$CXXFLAGS,;t t
23988 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23990 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23991 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23992 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23993 s,@LINT@,$LINT,;t t
23994 s,@LINT_OPTS@,$LINT_OPTS,;t t
23995 s,@LN_S@,$LN_S,;t t
23996 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23997 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23998 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
23999 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
24000 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
24001 s,@SET_MAKE@,$SET_MAKE,;t t
24002 s,@CTAGS@,$CTAGS,;t t
24003 s,@ETAGS@,$ETAGS,;t t
24004 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
24005 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
24006 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
24007 s,@RANLIB@,$RANLIB,;t t
24008 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24010 s,@ac_ct_LD@,$ac_ct_LD,;t t
24012 s,@ac_ct_AR@,$ac_ct_AR,;t t
24014 s,@ac_ct_NM@,$ac_ct_NM,;t t
24015 s,@ARFLAGS@,$ARFLAGS,;t t
24016 s,@DESTDIR@,$DESTDIR,;t t
24017 s,@BUILD_CC@,$BUILD_CC,;t t
24018 s,@BUILD_CPP@,$BUILD_CPP,;t t
24019 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24020 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
24021 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24022 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
24023 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
24024 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
24025 s,@cf_list_models@,$cf_list_models,;t t
24026 s,@ABI_VERSION@,$ABI_VERSION,;t t
24027 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
24028 s,@LIBTOOL@,$LIBTOOL,;t t
24029 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
24030 s,@LT_UNDEF@,$LT_UNDEF,;t t
24031 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
24032 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
24033 s,@LIB_CREATE@,$LIB_CREATE,;t t
24034 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
24035 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
24036 s,@LIB_PREP@,$LIB_PREP,;t t
24037 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
24038 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
24039 s,@LIB_LINK@,$LIB_LINK,;t t
24040 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
24041 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
24042 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
24043 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
24044 s,@TICS_NAME@,$TICS_NAME,;t t
24045 s,@TINFO_NAME@,$TINFO_NAME,;t t
24046 s,@LIB_NAME@,$LIB_NAME,;t t
24047 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
24048 s,@CC_G_OPT@,$CC_G_OPT,;t t
24049 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
24050 s,@LD_MODEL@,$LD_MODEL,;t t
24051 s,@shlibdir@,$shlibdir,;t t
24052 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
24053 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
24054 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
24055 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
24056 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
24057 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
24058 s,@LINK_PROGS@,$LINK_PROGS,;t t
24059 s,@LINK_TESTS@,$LINK_TESTS,;t t
24060 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
24061 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24062 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
24063 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
24064 s,@RPATH_LIST@,$RPATH_LIST,;t t
24065 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
24066 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
24067 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
24068 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
24069 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
24070 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
24071 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
24072 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
24073 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
24074 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
24075 s,@XTERM_KBS@,$XTERM_KBS,;t t
24076 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
24077 s,@TERMINFO@,$TERMINFO,;t t
24078 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
24079 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
24080 s,@TERMPATH@,$TERMPATH,;t t
24081 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
24082 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
24083 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
24084 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
24085 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
24086 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
24087 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
24088 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
24089 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
24090 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
24091 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
24092 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
24093 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
24094 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
24095 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
24096 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
24097 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
24098 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
24099 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
24100 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
24101 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
24102 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
24103 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
24104 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
24105 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
24106 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
24107 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
24108 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
24109 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
24110 s,@PTHREAD@,$PTHREAD,;t t
24111 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
24112 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
24113 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
24114 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
24115 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
24116 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
24117 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
24118 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
24119 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
24120 s,@ECHO_LT@,$ECHO_LT,;t t
24121 s,@ECHO_LD@,$ECHO_LD,;t t
24122 s,@RULE_CC@,$RULE_CC,;t t
24123 s,@SHOW_CC@,$SHOW_CC,;t t
24124 s,@ECHO_CC@,$ECHO_CC,;t t
24125 s,@ECHO_LINK@,$ECHO_LINK,;t t
24126 s,@ADAFLAGS@,$ADAFLAGS,;t t
24127 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
24128 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
24129 s,@ADA_TRACE@,$ADA_TRACE,;t t
24130 s,@MATH_LIB@,$MATH_LIB,;t t
24131 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
24132 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
24133 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
24134 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
24135 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
24136 s,@TEST_LIBS@,$TEST_LIBS,;t t
24137 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
24138 s,@CXXCPP@,$CXXCPP,;t t
24139 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
24140 s,@CXX_AR@,$CXX_AR,;t t
24141 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
24142 s,@CXXLIBS@,$CXXLIBS,;t t
24143 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
24144 s,@gnat_exists@,$gnat_exists,;t t
24145 s,@M4_exists@,$M4_exists,;t t
24146 s,@cf_ada_make@,$cf_ada_make,;t t
24147 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
24148 s,@cf_compile_generics@,$cf_compile_generics,;t t
24149 s,@cf_generic_objects@,$cf_generic_objects,;t t
24150 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
24151 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
24152 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
24153 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
24154 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
24155 s,@cf_ada_package@,$cf_ada_package,;t t
24156 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
24157 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
24158 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
24159 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
24160 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
24161 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
24162 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
24163 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
24164 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
24165 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
24166 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
24167 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
24168 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
24169 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
24170 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
24171 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
24172 s,@TICS_LIBS@,$TICS_LIBS,;t t
24173 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
24174 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
24175 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
24176 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
24177 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
24178 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
24179 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
24180 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
24181 s,@includesubdir@,$includesubdir,;t t
24182 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
24183 s,@TICS_LIST@,$TICS_LIST,;t t
24184 s,@TINFO_LIST@,$TINFO_LIST,;t t
24185 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
24186 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
24187 s,@TEST_ARGS@,$TEST_ARGS,;t t
24188 s,@TEST_DEPS@,$TEST_DEPS,;t t
24189 s,@TEST_ARG2@,$TEST_ARG2,;t t
24190 s,@TEST_DEP2@,$TEST_DEP2,;t t
24191 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
24192 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
24193 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
24194 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
24195 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
24196 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
24197 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
24198 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
24199 s,@cross_compiling@,$cross_compiling,;t t
24200 s,@TIC_PATH@,$TIC_PATH,;t t
24201 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
24202 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
24203 s,@PANEL_NAME@,$PANEL_NAME,;t t
24204 s,@MENU_NAME@,$MENU_NAME,;t t
24205 s,@FORM_NAME@,$FORM_NAME,;t t
24206 s,@CXX_NAME@,$CXX_NAME,;t t
24207 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
24208 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
24209 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
24210 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
24211 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
24212 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
24213 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
24218 cat >>$CONFIG_STATUS <<\EOF
24219 # Split the substitutions into bite-sized pieces for seds with
24220 # small command number limits, like on Digital OSF/1 and HP-UX.
24221 ac_max_sed_lines=48
24222 ac_sed_frag=1 # Number of current file.
24223 ac_beg=1 # First line for current file.
24224 ac_end=$ac_max_sed_lines # Line after last line for current file.
24227 while $ac_more_lines; do
24228 if test $ac_beg -gt 1; then
24229 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24231 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24233 if test ! -s $tmp/subs.frag; then
24234 ac_more_lines=false
24236 # The purpose of the label and of the branching condition is to
24237 # speed up the sed processing (if there are no `@' at all, there
24238 # is no need to browse any of the substitutions).
24239 # These are the two extra sed commands mentioned above.
24241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24242 # It is possible to make a multiline substitution using escaped newlines.
24243 # Ensure that we do not split the substitution between script fragments.
24245 ac_END=`expr $ac_end + $ac_max_sed_lines`
24246 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
24247 if test -s $tmp/subs.next; then
24248 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
24249 if test ! -s $tmp/subs.edit; then
24250 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
24251 if test ! -s $tmp/subs.edit; then
24252 if test $ac_beg -gt 1; then
24253 ac_end=`expr $ac_end - 1`
24260 if test -z "$ac_sed_cmds"; then
24261 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24263 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24265 ac_sed_frag=`expr $ac_sed_frag + 1`
24267 ac_end=`expr $ac_end + $ac_max_sed_lines`
24270 if test -z "$ac_sed_cmds"; then
24273 fi # test -n "$CONFIG_FILES"
24276 cat >>$CONFIG_STATUS <<\EOF
24277 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24278 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24280 - | *:- | *:-:* ) # input from stdin
24282 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24284 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24285 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24286 * ) ac_file_in=$ac_file.in ;;
24289 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24290 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24291 X"$ac_file" : 'X\(//\)[^/]' \| \
24292 X"$ac_file" : 'X\(//\)$' \| \
24293 X"$ac_file" : 'X\(/\)' \| \
24294 . : '\(.\)' 2>/dev/null ||
24296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24298 /^X\(\/\/\)$/{ s//\1/; q; }
24299 /^X\(\/\).*/{ s//\1/; q; }
24301 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24302 { case "$ac_dir" in
24303 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24307 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24308 case $as_mkdir_dir in
24309 # Skip DOS drivespec
24310 ?:) as_incr_dir=$as_mkdir_dir ;;
24312 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24313 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24318 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
24319 # A "../" for each directory in $ac_dir_suffix.
24320 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
24322 ac_dir_suffix= ac_dots=
24327 if test -z "$ac_dots"; then
24330 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
24332 [\\/]* | ?:[\\/]* )
24333 ac_srcdir=$srcdir$ac_dir_suffix;
24334 ac_top_srcdir=$srcdir ;;
24335 *) # Relative path.
24336 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
24337 ac_top_srcdir=$ac_dots$srcdir ;;
24341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24342 *) ac_INSTALL=$ac_dots$INSTALL ;;
24345 if test x"$ac_file" != x-; then
24346 { echo "$as_me:24346: creating $ac_file" >&5
24347 echo "$as_me: creating $ac_file" >&6;}
24350 # Let's still pretend it is `configure' which instantiates (i.e., don't
24351 # use $as_me), people would be surprised to read:
24352 # /* config.h. Generated automatically by config.status. */
24353 configure_input="Generated automatically from `echo $ac_file_in |
24354 sed 's,.*/,,'` by configure."
24356 # First look for the input files in the build tree, otherwise in the
24358 ac_file_inputs=`IFS=:
24359 for f in $ac_file_in; do
24361 -) echo $tmp/stdin ;;
24363 # Absolute (can't be DOS-style, as IFS=:)
24364 test -f "$f" || { { echo "$as_me:24364: error: cannot find input file: $f" >&5
24365 echo "$as_me: error: cannot find input file: $f" >&2;}
24366 { (exit 1); exit 1; }; }
24369 if test -f "$f"; then
24372 elif test -f "$srcdir/$f"; then
24377 { { echo "$as_me:24377: error: cannot find input file: $f" >&5
24378 echo "$as_me: error: cannot find input file: $f" >&2;}
24379 { (exit 1); exit 1; }; }
24382 done` || { (exit 1); exit 1; }
24384 cat >>$CONFIG_STATUS <<\EOF
24385 ac_warn_datarootdir=no
24386 if test x"$ac_file" != x-; then
24387 for ac_item in $ac_file_inputs
24389 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
24390 if test -n "$ac_seen"; then
24391 ac_used=`grep '@datarootdir@' $ac_item`
24392 if test -z "$ac_used"; then
24393 { echo "$as_me:24393: WARNING: datarootdir was used implicitly but not set:
24395 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
24397 ac_warn_datarootdir=yes
24400 ac_seen=`grep '${datarootdir}' $ac_item`
24401 if test -n "$ac_seen"; then
24402 { echo "$as_me:24402: WARNING: datarootdir was used explicitly but not set:
24404 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
24406 ac_warn_datarootdir=yes
24411 if test "x$ac_warn_datarootdir" = xyes; then
24412 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
24416 cat >>$CONFIG_STATUS <<EOF
24420 cat >>$CONFIG_STATUS <<\EOF
24422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24423 s,@configure_input@,$configure_input,;t t
24424 s,@srcdir@,$ac_srcdir,;t t
24425 s,@top_srcdir@,$ac_top_srcdir,;t t
24426 s,@INSTALL@,$ac_INSTALL,;t t
24427 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24429 if test x"$ac_file" != x-; then
24430 cp $tmp/out $ac_file
24432 for ac_name in prefix exec_prefix datarootdir
24434 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
24435 if test -n "$ac_seen"; then
24436 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
24437 if test -z "$ac_init"; then
24438 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
24439 { echo "$as_me:24439: WARNING: Variable $ac_name is used but was not set:
24441 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
24446 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
24447 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
24448 if test -s $tmp/out; then
24449 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
24450 { echo "$as_me:24450: WARNING: Some variables may not be substituted:
24452 echo "$as_me: WARNING: Some variables may not be substituted:
24462 cat >>$CONFIG_STATUS <<\EOF
24465 # CONFIG_HEADER section.
24468 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24469 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24471 # ac_d sets the value in "#define NAME VALUE" lines.
24472 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24473 ac_dB='[ ].*$,\1#\2'
24476 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24477 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24478 ac_iB='\([ ]\),\1#\2define\3'
24481 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24482 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24483 ac_uB='$,\1#\2define\3'
24487 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24488 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24490 - | *:- | *:-:* ) # input from stdin
24492 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24493 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24494 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24495 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24496 * ) ac_file_in=$ac_file.in ;;
24499 test x"$ac_file" != x- && { echo "$as_me:24499: creating $ac_file" >&5
24500 echo "$as_me: creating $ac_file" >&6;}
24502 # First look for the input files in the build tree, otherwise in the
24504 ac_file_inputs=`IFS=:
24505 for f in $ac_file_in; do
24507 -) echo $tmp/stdin ;;
24509 # Absolute (can't be DOS-style, as IFS=:)
24510 test -f "$f" || { { echo "$as_me:24510: error: cannot find input file: $f" >&5
24511 echo "$as_me: error: cannot find input file: $f" >&2;}
24512 { (exit 1); exit 1; }; }
24515 if test -f "$f"; then
24518 elif test -f "$srcdir/$f"; then
24523 { { echo "$as_me:24523: error: cannot find input file: $f" >&5
24524 echo "$as_me: error: cannot find input file: $f" >&2;}
24525 { (exit 1); exit 1; }; }
24528 done` || { (exit 1); exit 1; }
24529 # Remove the trailing spaces.
24530 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24534 # Transform confdefs.h into a list of #define's. We won't use it as a sed
24535 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
24536 # be either 'cat' or 'sort'.
24537 cat confdefs.h | uniq >conftest.vals
24539 # Break up conftest.vals because some shells have a limit on
24540 # the size of here documents, and old seds have small limits too.
24542 rm -f conftest.tail
24543 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
24544 while grep . conftest.vals >/dev/null
24546 # Write chunks of a limited-size here document to conftest.frag.
24547 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
24548 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
24549 echo 'CEOF' >> $CONFIG_STATUS
24550 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24551 rm -f conftest.vals
24552 mv conftest.tail conftest.vals
24554 rm -f conftest.vals
24556 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
24558 echo ' cat >> conftest.edit <<CEOF
24559 /@DEFS@/r conftest.frag
24562 sed -f conftest.edit $tmp/in > $tmp/out
24564 mv $tmp/out $tmp/in
24565 rm -f conftest.edit conftest.frag
24566 ' >> $CONFIG_STATUS
24568 cat >>$CONFIG_STATUS <<\EOF
24569 # Let's still pretend it is `configure' which instantiates (i.e., don't
24570 # use $as_me), people would be surprised to read:
24571 # /* config.h. Generated automatically by config.status. */
24572 if test x"$ac_file" = x-; then
24573 echo "/* Generated automatically by configure. */" >$tmp/config.h
24575 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
24577 cat $tmp/in >>$tmp/config.h
24579 if test x"$ac_file" != x-; then
24580 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24581 { echo "$as_me:24581: $ac_file is unchanged" >&5
24582 echo "$as_me: $ac_file is unchanged" >&6;}
24584 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24585 X"$ac_file" : 'X\(//\)[^/]' \| \
24586 X"$ac_file" : 'X\(//\)$' \| \
24587 X"$ac_file" : 'X\(/\)' \| \
24588 . : '\(.\)' 2>/dev/null ||
24590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24592 /^X\(\/\/\)$/{ s//\1/; q; }
24593 /^X\(\/\).*/{ s//\1/; q; }
24595 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24596 { case "$ac_dir" in
24597 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24601 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24602 case $as_mkdir_dir in
24603 # Skip DOS drivespec
24604 ?:) as_incr_dir=$as_mkdir_dir ;;
24606 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24607 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24614 mv $tmp/config.h $ac_file
24618 rm -f $tmp/config.h
24622 cat >>$CONFIG_STATUS <<\EOF
24624 # CONFIG_COMMANDS section.
24626 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24627 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24628 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24632 if test "x$cf_with_tests" != xno ; then
24636 if test ! -d $srcdir/$cf_dir; then
24638 elif test -f $srcdir/$cf_dir/programs; then
24639 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
24645 cf_prefix=$LIB_PREFIX
24647 case $cf_cv_shlib_version in
24648 (cygdll|msysdll|mingw)
24649 TINFO_NAME=$TINFO_ARG_SUFFIX
24654 if test -n "$TINFO_SUFFIX" ; then
24655 case $TINFO_SUFFIX in
24657 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
24658 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
24661 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
24662 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
24665 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
24666 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
24671 for cf_dir in $SRC_SUBDIRS
24673 if test ! -d $srcdir/$cf_dir ; then
24675 elif test -f $srcdir/$cf_dir/modules; then
24680 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
24682 cf_awk_program="$cf_awk_program\
24683 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
24684 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
24688 if test "x$WILDCARD_SYMS" = xno
24690 cf_awk_program="$cf_awk_program\
24691 /[ ]_\\*;/ { skip=1; next; }\
24695 if test "x$cf_awk_program" != "x"
24697 cat >>$cf_dir/Makefile <<CF_EOF
24699 # Generated by CF_LIB_RULES
24700 resulting.map: $UNALTERED_SYMS
24701 $AWK 'BEGIN { skip = 1; last=""; } \
24703 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
24704 skip = 0; last = \$\$0; } \
24705 END { print last; }' < $UNALTERED_SYMS >\$@
24708 rm -f resulting.map
24712 for cf_item in $cf_LIST_MODELS
24718 cf_depsuf=$cf_suffix
24722 cf_depsuf=$cf_suffix
24726 cf_depsuf=$cf_suffix
24729 case $cf_cv_system_name in
24732 cf_depsuf=$cf_suffix
24734 (cygwin*|msys*|mingw*)
24740 cf_depsuf=$cf_suffix
24746 cf_depsuf=$cf_suffix
24750 cf_depsuf=$cf_suffix
24756 cf_depsuf=$cf_suffix
24762 cf_depsuf=$cf_suffix
24765 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24767 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24768 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24772 test "$cf_dir" = c++ && cf_libname=ncurses++
24773 if test $cf_item = shared ; then
24774 if test -n "${LIB_SUFFIX}"
24776 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
24778 cf_shared_suffix="$cf_suffix"
24780 if test "$cf_cv_do_symlinks" = yes ; then
24783 case "$cf_cv_shlib_version" in
24785 cf_version_name=REL_VERSION
24788 cf_version_name=ABI_VERSION
24792 if test -n "$cf_version_name"
24794 case "$cf_cv_system_name" in
24797 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
24800 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
24804 if test -n "${USE_LIB_SUFFIX}"
24806 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
24808 cf_shared_suffix="$cf_suffix"
24811 # cygwin needs import library, and has unique naming convention
24812 # use autodetected ${cf_prefix} for import lib and static lib, but
24813 # use 'cyg' prefix for shared lib.
24814 case $cf_cv_shlib_version in
24816 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24817 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
24820 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24821 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
24824 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24825 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
24831 if test -n "$cf_add_lib"
24833 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24837 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
24838 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24841 if test $cf_dir = ncurses ; then
24842 cf_subsets="$LIB_SUBSETS"
24843 cf_r_parts="$cf_subsets"
24844 cf_liblist="$Libs_To_Make"
24846 while test -n "$cf_r_parts"
24848 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
24849 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
24850 if test "$cf_l_parts" != "$cf_r_parts" ; then
24852 case $cf_l_parts in
24854 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
24857 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
24863 if test -n "$cf_add_lib"; then
24864 Libs_To_Make="$cf_add_lib $Libs_To_Make"
24871 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
24874 if test $cf_dir = c++; then
24875 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
24877 for cf_item in $Libs_To_Make
24883 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
24886 for cf_test in $cf_list
24888 if test "$cf_test" = "$cf_item"
24890 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
24895 test -n "$cf_item" && cf_list="$cf_list $cf_item"
24897 Libs_To_Make="$cf_list"
24901 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
24902 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
24903 $cf_dir/Makefile >$cf_dir/Makefile.out
24904 mv $cf_dir/Makefile.out $cf_dir/Makefile
24906 $AWK -f $srcdir/mk-0th.awk \
24907 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
24908 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24910 for cf_subset in $cf_subsets
24913 for cf_item in $cf_LIST_MODELS
24916 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
24918 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24921 if test "$CXX_MODEL" = SHARED; then
24922 case $cf_cv_shlib_version in
24923 (cygdll|msysdll|mingw)
24924 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
24926 echo "${as_me:-configure}:24926: testing overriding CXX_MODEL to SHARED ..." 1>&5
24928 with_shared_cxx=yes
24931 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
24939 cf_depsuf=$cf_suffix
24943 cf_depsuf=$cf_suffix
24947 cf_depsuf=$cf_suffix
24950 case $cf_cv_system_name in
24953 cf_depsuf=$cf_suffix
24955 (cygwin*|msys*|mingw*)
24961 cf_depsuf=$cf_suffix
24967 cf_depsuf=$cf_suffix
24971 cf_depsuf=$cf_suffix
24977 cf_depsuf=$cf_suffix
24983 cf_depsuf=$cf_suffix
24986 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24988 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24989 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24993 (libtool) cf_subdir='obj_lo' ;;
24994 (normal) cf_subdir='objects' ;;
24995 (debug) cf_subdir='obj_g' ;;
24996 (profile) cf_subdir='obj_p' ;;
24998 case $cf_cv_system_name in
25000 cf_subdir='objects' ;;
25002 cf_subdir='obj_s' ;;
25006 # Test for case where we build libtinfo with a different name.
25008 if test $cf_dir = ncurses ; then
25011 cf_libname=${cf_libname}$USE_LIB_SUFFIX
25014 cf_libname=$TINFO_LIB_SUFFIX
25017 cf_libname=$TICS_LIB_SUFFIX
25020 elif test $cf_dir = c++ ; then
25021 cf_libname=ncurses++$USE_LIB_SUFFIX
25023 cf_libname=${cf_libname}$USE_LIB_SUFFIX
25025 if test -n "${USE_ARG_SUFFIX}" ; then
25026 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
25027 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
25030 # These dependencies really are for development, not
25031 # builds, but they are useful in porting, too.
25032 cf_depend="../include/ncurses_cfg.h"
25033 if test "$srcdir" = "."; then
25036 cf_reldir="\${srcdir}"
25039 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
25040 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
25041 elif test -f $srcdir/$cf_dir/curses.priv.h; then
25042 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
25046 old_cf_suffix="$cf_suffix"
25047 if test "$cf_cv_shlib_version_infix" = yes ; then
25048 if test -n "$USE_LIB_SUFFIX" ; then
25049 case $USE_LIB_SUFFIX in
25051 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
25052 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
25053 cf_dir_suffix=tw$EXTRA_SUFFIX
25056 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
25057 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
25058 cf_dir_suffix=t$EXTRA_SUFFIX
25061 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
25062 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
25063 cf_dir_suffix=w$EXTRA_SUFFIX
25066 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
25067 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
25068 cf_dir_suffix=$EXTRA_SUFFIX
25074 $AWK -f $srcdir/mk-1st.awk \
25075 name=${cf_libname}${cf_dir_suffix} \
25076 traces=$LIB_TRACING \
25078 CXX_MODEL=$CXX_MODEL \
25080 prefix=$cf_prefix \
25081 suffix=$cf_suffix \
25082 subset=$cf_subset \
25083 driver=$cf_cv_term_driver \
25085 TermlibRoot=$TINFO_NAME \
25086 TermlibSuffix=$TINFO_SUFFIX \
25087 ShlibVer=$cf_cv_shlib_version \
25088 ShlibVerInfix=$cf_cv_shlib_version_infix \
25089 ReLink=${cf_cv_do_relink:-no} \
25090 DoLinks=$cf_cv_do_symlinks \
25091 rmSoLocs=$cf_cv_rm_so_locs \
25092 ldconfig="$LDCONFIG" \
25093 overwrite=$WITH_OVERWRITE \
25094 depend="$cf_depend" \
25096 libtool_version="$LIBTOOL_VERSION" \
25097 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
25099 cf_suffix="$old_cf_suffix"
25101 for cf_subdir2 in $cf_subdirs lib
25103 test $cf_subdir = $cf_subdir2 && break
25105 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
25106 $AWK -f $srcdir/mk-2nd.awk \
25108 traces=$LIB_TRACING \
25111 subset=$cf_subset \
25114 crenames=$cf_cv_prog_CC_c_o \
25115 cxxrenames=$cf_cv_prog_CXX_c_o \
25116 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
25117 cf_subdirs="$cf_subdirs $cf_subdir"
25122 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
25125 for cf_dir in $SRC_SUBDIRS
25127 if test ! -d $srcdir/$cf_dir ; then
25131 if test -f $cf_dir/Makefile ; then
25134 echo 'libs \' >> Makefile
25135 echo 'install.libs \' >> Makefile
25136 echo 'uninstall.libs ::' >> Makefile
25137 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
25142 if test -f $srcdir/$cf_dir/modules; then
25144 if test -f $srcdir/$cf_dir/headers; then
25145 cat >> Makefile <<CF_EOF
25146 install.includes \\
25147 uninstall.includes \\
25150 if test "$cf_dir" != "c++" ; then
25151 echo 'lint \' >> Makefile
25153 cat >> Makefile <<CF_EOF
25159 uninstall.$cf_dir ::
25160 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
25162 elif test -f $srcdir/$cf_dir/headers; then
25163 cat >> Makefile <<CF_EOF
25168 install.includes \\
25169 uninstall.includes ::
25170 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
25175 if test "x$cf_with_db_install" = xyes; then
25176 cat >> Makefile <<CF_EOF
25178 install.libs uninstall.libs \\
25179 install.data uninstall.data ::
25180 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
25183 cat >> Makefile <<CF_EOF
25185 install.libs uninstall.libs ::
25186 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
25190 if test "x$cf_with_manpages" = xyes; then
25191 cat >> Makefile <<CF_EOF
25195 cd man && \${MAKE} \${TOP_MFLAGS} \$@
25199 cat >> Makefile <<CF_EOF
25202 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
25203 rm -f headers.sh headers.sed mk_shared_lib.sh
25204 rm -f edit_man.* man_alias.*
25205 rm -rf \${DIRS_TO_MAKE}
25208 # Special case: tack's manpage lives in its own directory.
25209 if test "x$cf_with_manpages" = xyes; then
25210 if test "x$cf_with_tack" = "xyes"; then
25211 cat >> Makefile <<CF_EOF
25215 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
25220 rm -f headers.sed headers.sh
25222 echo creating headers.sh
25223 cat >headers.sh <<CF_EOF
25225 # This shell script is generated by the 'configure' script. It is invoked in a
25226 # subdirectory of the build tree. It generates a sed-script in the parent
25227 # directory that is used to adjust includes for header files that reside in a
25228 # subdirectory of /usr/include, etc.
25230 while test \$# != 3
25232 PRG="\$PRG \$1"; shift
25237 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
25238 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
25239 echo installing \$SRC in \$DST
25242 if test $WITH_CURSES_H = yes; then
25243 cat >>headers.sh <<CF_EOF
25246 END=\`basename \$DST\`
25247 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
25249 NAME=\`basename \$i\`
25250 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
25254 echo "" >> \$TMPSED
25260 cat >>headers.sh <<CF_EOF
25263 END=\`basename \$DST\`
25264 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
25266 NAME=\`basename \$i\`
25267 if test "\$NAME" = "curses.h"
25269 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
25272 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
25276 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
25281 cat >>headers.sh <<CF_EOF
25283 sed -f \$TMPSED \$SRC > \$TMPSRC
25284 NAME=\`basename \$SRC\`
25286 if test $WITH_CURSES_H != yes; then
25287 cat >>headers.sh <<CF_EOF
25288 test "\$NAME" = "curses.h" && NAME=ncurses.h
25291 cat >>headers.sh <<CF_EOF
25292 # Just in case someone gzip'd manpages, remove the conflicting copy.
25293 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
25295 eval \$PRG \$TMPSRC \$DST/\$NAME
25296 rm -f \$TMPSRC \$TMPSED
25299 chmod 0755 headers.sh
25301 for cf_dir in $SRC_SUBDIRS
25303 if test ! -d $srcdir/$cf_dir ; then
25307 if test -f $srcdir/$cf_dir/headers; then
25308 $AWK -f $srcdir/mk-hdr.awk \
25309 subset="$LIB_SUBSETS" \
25310 compat="$WITH_CURSES_H" \
25311 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
25314 if test -f $srcdir/$cf_dir/modules; then
25315 if test "$cf_dir" != "c++" ; then
25316 cat >>$cf_dir/Makefile <<"CF_EOF"
25317 depend : ${AUTO_SRC}
25318 makedepend -- ${CPPFLAGS} -- ${C_SRC}
25320 # DO NOT DELETE THIS LINE -- make depend depends on it.
25326 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
25327 if test -z "$USE_OLD_MAKERULES" ; then
25328 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
25336 cat >>$CONFIG_STATUS <<\EOF
25338 { (exit 0); exit 0; }
25340 chmod +x $CONFIG_STATUS
25341 ac_clean_files=$ac_clean_files_save
25343 # configure is writing to config.log, and then calls config.status.
25344 # config.status does its own redirection, appending to config.log.
25345 # Unfortunately, on DOS this fails, as config.log is still kept open
25346 # by configure, so config.status won't be able to write to it; its
25347 # output is simply discarded. So we exec the FD to /dev/null,
25348 # effectively closing config.log, so it can be properly (re)opened and
25349 # appended to by config.status. When coming back to configure, we
25350 # need to make the FD available again.
25351 if test "$no_create" != yes; then
25354 $SHELL $CONFIG_STATUS || ac_cs_success=false
25356 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25357 # would make configure fail if this is the last instruction.
25358 $ac_cs_success || { (exit 1); exit 1; }
25360 ${MAKE:-make} preinstall