2 # From configure.in Revision: 1.587 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --enable-mixed-case tic should assume mixed-case filenames
718 --with-install-prefix prefixes actual install-location ($DESTDIR)
719 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
720 --with-build-cc=XXX the build C compiler ($BUILD_CC)
721 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
722 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
723 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
724 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
725 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
726 Options to Specify the Libraries Built/Used:
727 --disable-libtool-version enable to use libtool's incompatible naming scheme
728 --with-libtool generate libraries with libtool
729 --with-shared generate shared-libraries
730 --with-normal generate normal-libraries (default)
731 --with-debug generate debug-libraries (default)
732 --with-profile generate profile-libraries
733 --with-cxx-shared generate C++ shared-libraries
734 --with-lib-prefix override library-prefix
735 --with-termlib generate separate terminfo library
736 --with-ticlib generate separate tic library
737 --with-gpm use Alessandro Rubini's GPM library
738 --without-dlsym do not use dlsym() to load GPM dynamically
739 --with-sysmouse use sysmouse (FreeBSD console)
740 --enable-rpath use rpath option when generating shared libraries
741 --disable-relink relink shared libraries during install
742 --with-shlib-version=X Specify rel or abi version for shared libs
743 --disable-lib-suffixes disable library suffixes
744 --disable-rpath-hack don't add rpath options for additional libraries
745 Fine-Tuning Your Configuration:
746 --disable-overwrite leave out the link to -lcurses
747 --disable-database do not use terminfo, only fallbacks/termcap
748 --with-database=XXX specify terminfo source to install
749 --with-hashed-db specify hashed-database library
750 --with-fallbacks=XXX specify list of fallback terminal descriptions
751 --without-xterm-new specify if xterm terminfo should be old version
752 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
753 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
754 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
755 --disable-big-core assume machine has little memory
756 --disable-big-strings assume compiler has only standard-size strings
757 --enable-termcap compile in termcap fallback support
758 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
759 --enable-getcap fast termcap load, no xrefs to terminfo
760 --enable-getcap-cache cache translated termcaps in ~/.terminfo
761 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
762 --disable-root-environ restrict environment when running as root
763 --enable-symlinks make tic use symbolic links not hard links
764 --enable-broken_linker compile with broken-linker support code
765 --enable-bsdpad recognize BSD-style prefix padding
766 --enable-widec compile with wide-char/UTF-8 code
767 --disable-lp64 allow chtype to be long (ignore _LP64)
768 --disable-largefile omit support for large files
769 --disable-tparm-varargs compile tparm() without varargs interface
770 --disable-tic-depends link tic library without explicit dependency on ncurses library
771 --with-bool=TYPE override fallback type of bool variable
772 --with-caps=alt compile with alternate Caps file
773 --with-chtype=TYPE override type of chtype
774 --with-ospeed=TYPE override type of ospeed variable
775 --with-mmask-t=TYPE override type of mmask_t
776 --with-ccharw-max=XXX override size CCHARW_MAX
777 --with-tparm-arg=TYPE override parameter type of tparm
778 --with-rcs-ids compile-in RCS identifiers
779 Options to Specify How Manpages are Installed:
780 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
781 optionally formatted/catonly, e.g., gzip,formatted
782 --with-manpage-renames specify manpage-renaming
783 --with-manpage-aliases specify manpage-aliases using .so
784 --with-manpage-symlinks specify manpage-aliases using symlinks
785 --with-manpage-tbl specify manpage processing with tbl
787 --disable-ext-funcs disable function-extensions
788 --enable-sp-funcs enable experimental SCREEN-extensions
789 --enable-term-driver enable experimental terminal-driver
790 --enable-const compile with extra/non-standard const
791 --enable-ext-colors compile for 256-color support
792 --enable-ext-mouse compile for extended mouse-encoding
793 --enable-no-padding compile with $NCURSES_NO_PADDING code
794 --enable-signed-char compile using signed Boolean's in term.h
795 --enable-sigwinch compile with SIGWINCH handler
796 --enable-tcap-names compile with user-definable terminal capabilities
798 --without-develop disable development options
799 --enable-hard-tabs compile with hard-tabs code
800 --enable-xmc-glitch compile with support for xmc (magic-cookie)
802 --disable-assumed-color do not assume anything about default-colors
803 --disable-hashmap compile without hashmap scrolling-optimization
804 --enable-colorfgbg compile-in experimental $COLORFGBG code
805 --enable-interop compile-in experimental interop bindings
806 --with-pthread use POSIX thread library
807 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
808 --enable-weak-symbols enable weak-symbols for pthreads
809 --enable-reentrant compile with experimental reentrant code
810 --with-wrap-prefix=XXX override prefix used for public variables
811 --enable-safe-sprintf compile with experimental safe-sprintf code
812 --disable-scroll-hints compile without scroll-hints code
813 --enable-wgetch-events compile with experimental wgetch-events code
814 Testing/development Options:
815 --disable-echo do not display "compiling" commands
816 --enable-warnings build: turn on GCC compiler warnings
817 --enable-string-hacks work around bogus compiler/loader warnings
818 --enable-assertions test: turn on generation of assertion code
819 --with-dmalloc test: use Gray Watson's dmalloc library
820 --with-dbmalloc test: use Conor Cahill's dbmalloc library
821 --with-valgrind test: use valgrind
822 --disable-leaks test: free permanent memory, analyze leaks
823 --enable-expanded test: generate functions for certain macros
824 --disable-macros test: use functions rather than macros
825 --with-trace test: add trace() function to all models of ncurses
826 --disable-gnat-projects test: disable GNAT projects even if usable
827 Ada95 Binding Options:
828 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
829 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
830 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
831 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
833 Some influential environment variables:
834 CC C compiler command
835 CFLAGS C compiler flags
836 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
837 nonstandard directory <lib dir>
838 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
839 headers in a nonstandard directory <include dir>
841 CXX C++ compiler command
842 CXXFLAGS C++ compiler flags
843 CXXCPP C++ preprocessor
845 Use these variables to override the choices made by `configure' or to help
846 it to find libraries and programs with nonstandard names/locations.
851 if test "$ac_init_help" = "recursive"; then
852 # If there are subdirs, report their specific --help.
854 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
856 # A "../" for each directory in /$ac_subdir.
857 ac_dots=`echo $ac_subdir |
858 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
861 .) # No --srcdir option. We are building in place.
862 ac_sub_srcdir=$srcdir ;;
863 [\\/]* | ?:[\\/]* ) # Absolute path.
864 ac_sub_srcdir=$srcdir/$ac_subdir ;;
866 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
869 # Check for guested configure; otherwise get Cygnus style configure.
870 if test -f $ac_sub_srcdir/configure.gnu; then
872 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
873 elif test -f $ac_sub_srcdir/configure; then
875 $SHELL $ac_sub_srcdir/configure --help=recursive
876 elif test -f $ac_sub_srcdir/configure.ac ||
877 test -f $ac_sub_srcdir/configure.in; then
881 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
887 test -n "$ac_init_help" && exit 0
888 if $ac_init_version; then
891 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
892 Free Software Foundation, Inc.
893 This configure script is free software; the Free Software Foundation
894 gives unlimited permission to copy, distribute and modify it.
900 This file contains any messages produced by compilers while
901 running configure, to aid debugging if configure makes a mistake.
903 It was created by $as_me, which was
904 generated by GNU Autoconf 2.52.20121002. Invocation command line was
915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
927 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
944 # Keep a trace of the command line.
945 # Strip out --no-create and --no-recursion so they do not pile up.
946 # Also quote any args containing shell meta-characters.
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c) ;;
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
956 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
957 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
958 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
960 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
963 # Get rid of the leading space.
966 # When interrupted or exit'd, cleanup temporary files, and complete
967 # config.log. We remove comments because anyway the quotes in there
968 # would cause problems or look ugly.
970 # Save into config.log some information that might help in debugging.
972 echo "## ----------------- ##" >&5
973 echo "## Cache variables. ##" >&5
974 echo "## ----------------- ##" >&5
976 # The following way of writing the cache mishandles newlines in values,
979 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
982 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
991 sed "/^$/d" confdefs.h >conftest.log
992 if test -s conftest.log; then
994 echo "## ------------ ##" >&5
995 echo "## confdefs.h. ##" >&5
996 echo "## ------------ ##" >&5
1001 test "$ac_signal" != 0 &&
1002 echo "$as_me: caught signal $ac_signal" >&5
1003 echo "$as_me: exit $exit_status" >&5
1004 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1007 for ac_signal in 1 2 13 15; do
1008 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1013 rm -rf conftest* confdefs.h
1014 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1017 # Let the site file select an alternate cache file if it wants to.
1018 # Prefer explicitly selected file to automatically selected ones.
1019 if test -z "$CONFIG_SITE"; then
1020 if test "x$prefix" != xNONE; then
1021 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1023 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1026 for ac_site_file in $CONFIG_SITE; do
1027 if test -r "$ac_site_file"; then
1028 { echo "$as_me:1028: loading site script $ac_site_file" >&5
1029 echo "$as_me: loading site script $ac_site_file" >&6;}
1030 cat "$ac_site_file" >&5
1035 if test -r "$cache_file"; then
1036 # Some versions of bash will fail to source /dev/null (special
1037 # files actually), so we avoid doing that.
1038 if test -f "$cache_file"; then
1039 { echo "$as_me:1039: loading cache $cache_file" >&5
1040 echo "$as_me: loading cache $cache_file" >&6;}
1042 [\\/]* | ?:[\\/]* ) . $cache_file;;
1043 *) . ./$cache_file;;
1047 { echo "$as_me:1047: creating cache $cache_file" >&5
1048 echo "$as_me: creating cache $cache_file" >&6;}
1052 # Check that the precious variables saved in the cache have kept the same
1054 ac_cache_corrupted=false
1055 for ac_var in `(set) 2>&1 |
1056 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1057 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1058 eval ac_new_set=\$ac_env_${ac_var}_set
1059 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1060 eval ac_new_val="\$ac_env_${ac_var}_value"
1061 case $ac_old_set,$ac_new_set in
1063 { echo "$as_me:1063: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1064 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1065 ac_cache_corrupted=: ;;
1067 { echo "$as_me:1067: error: \`$ac_var' was not set in the previous run" >&5
1068 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1069 ac_cache_corrupted=: ;;
1072 if test "x$ac_old_val" != "x$ac_new_val"; then
1073 { echo "$as_me:1073: error: \`$ac_var' has changed since the previous run:" >&5
1074 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1075 { echo "$as_me:1075: former value: $ac_old_val" >&5
1076 echo "$as_me: former value: $ac_old_val" >&2;}
1077 { echo "$as_me:1077: current value: $ac_new_val" >&5
1078 echo "$as_me: current value: $ac_new_val" >&2;}
1079 ac_cache_corrupted=:
1082 # Pass precious variables to config.status. It doesn't matter if
1083 # we pass some twice (in addition to the command line arguments).
1084 if test "$ac_new_set" = set; then
1086 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1087 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1088 ac_configure_args="$ac_configure_args '$ac_arg'"
1090 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1095 if $ac_cache_corrupted; then
1096 { echo "$as_me:1096: error: changes in the environment can compromise the build" >&5
1097 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1098 { { echo "$as_me:1098: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1099 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1100 { (exit 1); exit 1; }; }
1104 ac_cpp='$CPP $CPPFLAGS'
1105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1108 ac_main_return=return
1110 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1111 *c*,-n*) ECHO_N= ECHO_C='
1113 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1114 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1116 echo "#! $SHELL" >conftest.sh
1117 echo "exit 0" >>conftest.sh
1118 chmod +x conftest.sh
1119 if { (echo "$as_me:1119: PATH=\".;.\"; conftest.sh") >&5
1120 (PATH=".;."; conftest.sh) 2>&5
1122 echo "$as_me:1122: \$? = $ac_status" >&5
1123 (exit $ac_status); }; then
1124 ac_path_separator=';'
1128 PATH_SEPARATOR="$ac_path_separator"
1131 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1135 echo "$as_me:1135: checking for egrep" >&5
1136 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1137 if test "${ac_cv_prog_egrep+set}" = set; then
1138 echo $ECHO_N "(cached) $ECHO_C" >&6
1140 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1141 then ac_cv_prog_egrep='grep -E'
1142 else ac_cv_prog_egrep='egrep'
1145 echo "$as_me:1145: result: $ac_cv_prog_egrep" >&5
1146 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1147 EGREP=$ac_cv_prog_egrep
1149 test -z "$EGREP" && { { echo "$as_me:1149: error: No egrep program found" >&5
1150 echo "$as_me: error: No egrep program found" >&2;}
1151 { (exit 1); exit 1; }; }
1153 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1154 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1155 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1156 cf_cv_abi_version=${NCURSES_MAJOR}
1157 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1158 cf_cv_timestamp=`date`
1159 echo "$as_me:1159: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1160 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1162 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1164 # Check whether --with-rel-version or --without-rel-version was given.
1165 if test "${with_rel_version+set}" = set; then
1166 withval="$with_rel_version"
1167 { echo "$as_me:1167: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1168 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1169 cf_cv_rel_version=$withval
1172 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1173 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1175 if test -n "$NCURSES_MAJOR" ; then
1176 case $NCURSES_MAJOR in #(vi
1180 { { echo "$as_me:1180: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1181 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1182 { (exit 1); exit 1; }; }
1186 { { echo "$as_me:1186: error: Release major-version value is empty" >&5
1187 echo "$as_me: error: Release major-version value is empty" >&2;}
1188 { (exit 1); exit 1; }; }
1191 if test -n "$NCURSES_MINOR" ; then
1192 case $NCURSES_MINOR in #(vi
1196 { { echo "$as_me:1196: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1197 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1198 { (exit 1); exit 1; }; }
1202 { { echo "$as_me:1202: error: Release minor-version value is empty" >&5
1203 echo "$as_me: error: Release minor-version value is empty" >&2;}
1204 { (exit 1); exit 1; }; }
1207 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1209 # Check whether --with-abi-version or --without-abi-version was given.
1210 if test "${with_abi_version+set}" = set; then
1211 withval="$with_abi_version"
1212 { echo "$as_me:1212: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1213 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1214 cf_cv_abi_version=$withval
1217 if test -n "$cf_cv_abi_version" ; then
1218 case $cf_cv_abi_version in #(vi
1222 { { echo "$as_me:1222: error: ABI version is not a number: $cf_cv_abi_version" >&5
1223 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1224 { (exit 1); exit 1; }; }
1228 { { echo "$as_me:1228: error: ABI version value is empty" >&5
1229 echo "$as_me: error: ABI version value is empty" >&2;}
1230 { (exit 1); exit 1; }; }
1234 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1235 if test -f $ac_dir/install-sh; then
1237 ac_install_sh="$ac_aux_dir/install-sh -c"
1239 elif test -f $ac_dir/install.sh; then
1241 ac_install_sh="$ac_aux_dir/install.sh -c"
1243 elif test -f $ac_dir/shtool; then
1245 ac_install_sh="$ac_aux_dir/shtool install -c"
1249 if test -z "$ac_aux_dir"; then
1250 { { echo "$as_me:1250: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1251 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1252 { (exit 1); exit 1; }; }
1254 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1255 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1256 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1258 # Make sure we can run config.sub.
1259 $ac_config_sub sun4 >/dev/null 2>&1 ||
1260 { { echo "$as_me:1260: error: cannot run $ac_config_sub" >&5
1261 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1262 { (exit 1); exit 1; }; }
1264 echo "$as_me:1264: checking build system type" >&5
1265 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1266 if test "${ac_cv_build+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 ac_cv_build_alias=$build_alias
1270 test -z "$ac_cv_build_alias" &&
1271 ac_cv_build_alias=`$ac_config_guess`
1272 test -z "$ac_cv_build_alias" &&
1273 { { echo "$as_me:1273: error: cannot guess build type; you must specify one" >&5
1274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1275 { (exit 1); exit 1; }; }
1276 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1277 { { echo "$as_me:1277: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1278 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1279 { (exit 1); exit 1; }; }
1282 echo "$as_me:1282: result: $ac_cv_build" >&5
1283 echo "${ECHO_T}$ac_cv_build" >&6
1285 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1286 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1287 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1289 echo "$as_me:1289: checking host system type" >&5
1290 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1291 if test "${ac_cv_host+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 ac_cv_host_alias=$host_alias
1295 test -z "$ac_cv_host_alias" &&
1296 ac_cv_host_alias=$ac_cv_build_alias
1297 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1298 { { echo "$as_me:1298: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1299 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1300 { (exit 1); exit 1; }; }
1303 echo "$as_me:1303: result: $ac_cv_host" >&5
1304 echo "${ECHO_T}$ac_cv_host" >&6
1306 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1307 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1308 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1310 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1311 echo "$as_me:1311: checking target system type" >&5
1312 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1313 if test "${ac_cv_target+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 ac_cv_target_alias=$target_alias
1317 test "x$ac_cv_target_alias" = "x" &&
1318 ac_cv_target_alias=$ac_cv_host_alias
1319 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1320 { { echo "$as_me:1320: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1325 echo "$as_me:1325: result: $ac_cv_target" >&5
1326 echo "${ECHO_T}$ac_cv_target" >&6
1327 target=$ac_cv_target
1328 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1332 # The aliases save the names the user supplied, while $host etc.
1333 # will get canonicalized.
1334 test -n "$target_alias" &&
1335 test "$program_prefix$program_suffix$program_transform_name" = \
1337 program_prefix=${target_alias}-
1338 system_name="$host_os"
1340 system_name="`(uname -s -r) 2>/dev/null`"
1341 if test -z "$system_name" ; then
1342 system_name="`(hostname) 2>/dev/null`"
1345 test -n "$system_name" &&
1346 cat >>confdefs.h <<EOF
1347 #define SYSTEM_NAME "$system_name"
1350 if test "${cf_cv_system_name+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 cf_cv_system_name="$system_name"
1356 test -z "$system_name" && system_name="$cf_cv_system_name"
1357 test -n "$cf_cv_system_name" && echo "$as_me:1357: result: Configuring for $cf_cv_system_name" >&5
1358 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1360 if test ".$system_name" != ".$cf_cv_system_name" ; then
1361 echo "$as_me:1361: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1362 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1363 { { echo "$as_me:1363: error: \"Please remove config.cache and try again.\"" >&5
1364 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1365 { (exit 1); exit 1; }; }
1368 # Check whether --with-system-type or --without-system-type was given.
1369 if test "${with_system_type+set}" = set; then
1370 withval="$with_system_type"
1371 { echo "$as_me:1371: WARNING: overriding system type to $withval" >&5
1372 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1373 cf_cv_system_name=$withval
1378 ### Save the given $CFLAGS to allow user-override.
1379 cf_user_CFLAGS="$CFLAGS"
1381 ### Default install-location
1383 echo "$as_me:1383: checking for prefix" >&5
1384 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1385 if test "x$prefix" = "xNONE" ; then
1386 case "$cf_cv_system_name" in
1387 # non-vendor systems don't have a conflict
1388 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1391 *) prefix=$ac_default_prefix
1395 echo "$as_me:1395: result: $prefix" >&5
1396 echo "${ECHO_T}$prefix" >&6
1398 if test "x$prefix" = "xNONE" ; then
1399 echo "$as_me:1399: checking for default include-directory" >&5
1400 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1401 test -n "$verbose" && echo 1>&6
1404 $includedir/ncurses \
1406 $prefix/include/ncurses \
1407 /usr/local/include \
1408 /usr/local/include/ncurses \
1410 /usr/include/ncurses
1412 cf_dir=`eval echo $cf_symbol`
1413 if test -f $cf_dir/curses.h ; then
1414 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1415 includedir="$cf_symbol"
1416 test -n "$verbose" && echo $ac_n " found " 1>&6
1420 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1422 echo "$as_me:1422: result: $includedir" >&5
1423 echo "${ECHO_T}$includedir" >&6
1426 ### Checks for programs.
1428 # Check whether --with-ada or --without-ada was given.
1429 if test "${with_ada+set}" = set; then
1431 cf_with_ada=$withval
1435 if test "x$cf_with_ada" = xyes
1437 cf_PROG_CC="gnatgcc gcc cc"
1443 ac_cpp='$CPP $CPPFLAGS'
1444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1447 ac_main_return=return
1448 if test -n "$ac_tool_prefix"; then
1449 for ac_prog in $cf_PROG_CC
1451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1453 echo "$as_me:1453: checking for $ac_word" >&5
1454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1455 if test "${ac_cv_prog_CC+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 if test -n "$CC"; then
1459 ac_cv_prog_CC="$CC" # Let the user override the test.
1461 ac_save_IFS=$IFS; IFS=$ac_path_separator
1463 for ac_dir in $ac_dummy; do
1465 test -z "$ac_dir" && ac_dir=.
1466 $as_executable_p "$ac_dir/$ac_word" || continue
1467 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1468 echo "$as_me:1468: found $ac_dir/$ac_word" >&5
1475 if test -n "$CC"; then
1476 echo "$as_me:1476: result: $CC" >&5
1477 echo "${ECHO_T}$CC" >&6
1479 echo "$as_me:1479: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1483 test -n "$CC" && break
1486 if test -z "$CC"; then
1488 for ac_prog in $cf_PROG_CC
1490 # Extract the first word of "$ac_prog", so it can be a program name with args.
1491 set dummy $ac_prog; ac_word=$2
1492 echo "$as_me:1492: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500 ac_save_IFS=$IFS; IFS=$ac_path_separator
1502 for ac_dir in $ac_dummy; do
1504 test -z "$ac_dir" && ac_dir=.
1505 $as_executable_p "$ac_dir/$ac_word" || continue
1506 ac_cv_prog_ac_ct_CC="$ac_prog"
1507 echo "$as_me:1507: found $ac_dir/$ac_word" >&5
1513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1514 if test -n "$ac_ct_CC"; then
1515 echo "$as_me:1515: result: $ac_ct_CC" >&5
1516 echo "${ECHO_T}$ac_ct_CC" >&6
1518 echo "$as_me:1518: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1522 test -n "$ac_ct_CC" && break
1528 test -z "$CC" && { { echo "$as_me:1528: error: no acceptable cc found in \$PATH" >&5
1529 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1530 { (exit 1); exit 1; }; }
1532 # Provide some information about the compiler.
1533 echo "$as_me:1533:" \
1534 "checking for C compiler version" >&5
1535 ac_compiler=`set X $ac_compile; echo $2`
1536 { (eval echo "$as_me:1536: \"$ac_compiler --version </dev/null >&5\"") >&5
1537 (eval $ac_compiler --version </dev/null >&5) 2>&5
1539 echo "$as_me:1539: \$? = $ac_status" >&5
1540 (exit $ac_status); }
1541 { (eval echo "$as_me:1541: \"$ac_compiler -v </dev/null >&5\"") >&5
1542 (eval $ac_compiler -v </dev/null >&5) 2>&5
1544 echo "$as_me:1544: \$? = $ac_status" >&5
1545 (exit $ac_status); }
1546 { (eval echo "$as_me:1546: \"$ac_compiler -V </dev/null >&5\"") >&5
1547 (eval $ac_compiler -V </dev/null >&5) 2>&5
1549 echo "$as_me:1549: \$? = $ac_status" >&5
1550 (exit $ac_status); }
1552 cat >conftest.$ac_ext <<_ACEOF
1553 #line 1553 "configure"
1554 #include "confdefs.h"
1564 ac_clean_files_save=$ac_clean_files
1565 ac_clean_files="$ac_clean_files a.out a.exe"
1566 # Try to create an executable without -o first, disregard a.out.
1567 # It will help us diagnose broken compilers, and finding out an intuition
1569 echo "$as_me:1569: checking for C compiler default output" >&5
1570 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1572 if { (eval echo "$as_me:1572: \"$ac_link_default\"") >&5
1573 (eval $ac_link_default) 2>&5
1575 echo "$as_me:1575: \$? = $ac_status" >&5
1576 (exit $ac_status); }; then
1577 # Find the output, starting from the most likely. This scheme is
1578 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1580 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1581 ls a.out conftest 2>/dev/null;
1582 ls a.* conftest.* 2>/dev/null`; do
1584 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1585 a.out ) # We found the default executable, but exeext='' is most
1588 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1589 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1596 echo "$as_me: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1598 { { echo "$as_me:1598: error: C compiler cannot create executables" >&5
1599 echo "$as_me: error: C compiler cannot create executables" >&2;}
1600 { (exit 77); exit 77; }; }
1603 ac_exeext=$ac_cv_exeext
1604 echo "$as_me:1604: result: $ac_file" >&5
1605 echo "${ECHO_T}$ac_file" >&6
1607 # Check the compiler produces executables we can run. If not, either
1608 # the compiler is broken, or we cross compile.
1609 echo "$as_me:1609: checking whether the C compiler works" >&5
1610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1612 # If not cross compiling, check that we can run a simple program.
1613 if test "$cross_compiling" != yes; then
1614 if { ac_try='./$ac_file'
1615 { (eval echo "$as_me:1615: \"$ac_try\"") >&5
1618 echo "$as_me:1618: \$? = $ac_status" >&5
1619 (exit $ac_status); }; }; then
1622 if test "$cross_compiling" = maybe; then
1625 { { echo "$as_me:1625: error: cannot run C compiled programs.
1626 If you meant to cross compile, use \`--host'." >&5
1627 echo "$as_me: error: cannot run C compiled programs.
1628 If you meant to cross compile, use \`--host'." >&2;}
1629 { (exit 1); exit 1; }; }
1633 echo "$as_me:1633: result: yes" >&5
1634 echo "${ECHO_T}yes" >&6
1636 rm -f a.out a.exe conftest$ac_cv_exeext
1637 ac_clean_files=$ac_clean_files_save
1638 # Check the compiler produces executables we can run. If not, either
1639 # the compiler is broken, or we cross compile.
1640 echo "$as_me:1640: checking whether we are cross compiling" >&5
1641 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1642 echo "$as_me:1642: result: $cross_compiling" >&5
1643 echo "${ECHO_T}$cross_compiling" >&6
1645 echo "$as_me:1645: checking for executable suffix" >&5
1646 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1647 if { (eval echo "$as_me:1647: \"$ac_link\"") >&5
1648 (eval $ac_link) 2>&5
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); }; then
1652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1654 # work properly (i.e., refer to `conftest.exe'), while it won't with
1656 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1658 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1666 { { echo "$as_me:1666: error: cannot compute EXEEXT: cannot compile and link" >&5
1667 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1668 { (exit 1); exit 1; }; }
1671 rm -f conftest$ac_cv_exeext
1672 echo "$as_me:1672: result: $ac_cv_exeext" >&5
1673 echo "${ECHO_T}$ac_cv_exeext" >&6
1675 rm -f conftest.$ac_ext
1676 EXEEXT=$ac_cv_exeext
1678 echo "$as_me:1678: checking for object suffix" >&5
1679 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1680 if test "${ac_cv_objext+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 cat >conftest.$ac_ext <<_ACEOF
1684 #line 1684 "configure"
1685 #include "confdefs.h"
1695 rm -f conftest.o conftest.obj
1696 if { (eval echo "$as_me:1696: \"$ac_compile\"") >&5
1697 (eval $ac_compile) 2>&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }; then
1701 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1703 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1709 echo "$as_me: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 { { echo "$as_me:1711: error: cannot compute OBJEXT: cannot compile" >&5
1712 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1713 { (exit 1); exit 1; }; }
1716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1718 echo "$as_me:1718: result: $ac_cv_objext" >&5
1719 echo "${ECHO_T}$ac_cv_objext" >&6
1720 OBJEXT=$ac_cv_objext
1722 echo "$as_me:1722: checking whether we are using the GNU C compiler" >&5
1723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 cat >conftest.$ac_ext <<_ACEOF
1728 #line 1728 "configure"
1729 #include "confdefs.h"
1742 rm -f conftest.$ac_objext
1743 if { (eval echo "$as_me:1743: \"$ac_compile\"") >&5
1744 (eval $ac_compile) 2>&5
1746 echo "$as_me:1746: \$? = $ac_status" >&5
1747 (exit $ac_status); } &&
1748 { ac_try='test -s conftest.$ac_objext'
1749 { (eval echo "$as_me:1749: \"$ac_try\"") >&5
1752 echo "$as_me:1752: \$? = $ac_status" >&5
1753 (exit $ac_status); }; }; then
1756 echo "$as_me: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1760 rm -f conftest.$ac_objext conftest.$ac_ext
1761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1764 echo "$as_me:1764: result: $ac_cv_c_compiler_gnu" >&5
1765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1766 GCC=`test $ac_compiler_gnu = yes && echo yes`
1767 ac_test_CFLAGS=${CFLAGS+set}
1768 ac_save_CFLAGS=$CFLAGS
1770 echo "$as_me:1770: checking whether $CC accepts -g" >&5
1771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1772 if test "${ac_cv_prog_cc_g+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 cat >conftest.$ac_ext <<_ACEOF
1776 #line 1776 "configure"
1777 #include "confdefs.h"
1787 rm -f conftest.$ac_objext
1788 if { (eval echo "$as_me:1788: \"$ac_compile\"") >&5
1789 (eval $ac_compile) 2>&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); } &&
1793 { ac_try='test -s conftest.$ac_objext'
1794 { (eval echo "$as_me:1794: \"$ac_try\"") >&5
1797 echo "$as_me:1797: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1801 echo "$as_me: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1805 rm -f conftest.$ac_objext conftest.$ac_ext
1807 echo "$as_me:1807: result: $ac_cv_prog_cc_g" >&5
1808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1809 if test "$ac_test_CFLAGS" = set; then
1810 CFLAGS=$ac_save_CFLAGS
1811 elif test $ac_cv_prog_cc_g = yes; then
1812 if test "$GCC" = yes; then
1818 if test "$GCC" = yes; then
1824 # Some people use a C++ compiler to compile C. Since we use `exit',
1825 # in C++ we need to declare it. In case someone uses the same compiler
1826 # for both compiling C and C++ we need to have the C++ compiler decide
1827 # the declaration of exit, since it's the most demanding environment.
1828 cat >conftest.$ac_ext <<_ACEOF
1833 rm -f conftest.$ac_objext
1834 if { (eval echo "$as_me:1834: \"$ac_compile\"") >&5
1835 (eval $ac_compile) 2>&5
1837 echo "$as_me:1837: \$? = $ac_status" >&5
1838 (exit $ac_status); } &&
1839 { ac_try='test -s conftest.$ac_objext'
1840 { (eval echo "$as_me:1840: \"$ac_try\"") >&5
1843 echo "$as_me:1843: \$? = $ac_status" >&5
1844 (exit $ac_status); }; }; then
1845 for ac_declaration in \
1847 '#include <stdlib.h>' \
1848 'extern "C" void std::exit (int) throw (); using std::exit;' \
1849 'extern "C" void std::exit (int); using std::exit;' \
1850 'extern "C" void exit (int) throw ();' \
1851 'extern "C" void exit (int);' \
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1867 rm -f conftest.$ac_objext
1868 if { (eval echo "$as_me:1868: \"$ac_compile\"") >&5
1869 (eval $ac_compile) 2>&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit $ac_status); } &&
1873 { ac_try='test -s conftest.$ac_objext'
1874 { (eval echo "$as_me:1874: \"$ac_try\"") >&5
1877 echo "$as_me:1877: \$? = $ac_status" >&5
1878 (exit $ac_status); }; }; then
1881 echo "$as_me: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1885 rm -f conftest.$ac_objext conftest.$ac_ext
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line 1887 "configure"
1888 #include "confdefs.h"
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1912 echo "$as_me: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 rm -f conftest.$ac_objext conftest.$ac_ext
1918 if test -n "$ac_declaration"; then
1919 echo '#ifdef __cplusplus' >>confdefs.h
1920 echo $ac_declaration >>confdefs.h
1921 echo '#endif' >>confdefs.h
1925 echo "$as_me: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 ac_main_return=return
1937 if test "$GCC" = yes ; then
1938 echo "$as_me:1938: checking version of $CC" >&5
1939 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1940 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.].*//'`"
1941 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1942 echo "$as_me:1942: result: $GCC_VERSION" >&5
1943 echo "${ECHO_T}$GCC_VERSION" >&6
1946 echo "$as_me:1946: checking for $CC option to accept ANSI C" >&5
1947 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1948 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 ac_cv_prog_cc_stdc=no
1953 cat >conftest.$ac_ext <<_ACEOF
1954 #line 1954 "configure"
1955 #include "confdefs.h"
1958 #include <sys/types.h>
1959 #include <sys/stat.h>
1960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1961 struct buf { int x; };
1962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1963 static char *e (p, i)
1969 static char *f (char * (*g) (char **, int), char **p, ...)
1974 s = g (p, va_arg (v,int));
1978 int test (int i, double x);
1979 struct s1 {int (*f) (int a);};
1980 struct s2 {int (*f) (double a);};
1981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1992 # Don't try gcc -ansi; that turns off useful extensions and
1993 # breaks some systems' header files.
1994 # AIX -qlanglvl=ansi
1995 # Ultrix and OSF/1 -std1
1996 # HP-UX 10.20 and later -Ae
1997 # HP-UX older versions -Aa -D_HPUX_SOURCE
1998 # SVR4 -Xc -D__EXTENSIONS__
1999 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2001 CC="$ac_save_CC $ac_arg"
2002 rm -f conftest.$ac_objext
2003 if { (eval echo "$as_me:2003: \"$ac_compile\"") >&5
2004 (eval $ac_compile) 2>&5
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit $ac_status); } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:2009: \"$ac_try\"") >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_cv_prog_cc_stdc=$ac_arg
2017 echo "$as_me: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 rm -f conftest.$ac_objext
2022 rm -f conftest.$ac_ext conftest.$ac_objext
2027 case "x$ac_cv_prog_cc_stdc" in
2029 echo "$as_me:2029: result: none needed" >&5
2030 echo "${ECHO_T}none needed" >&6 ;;
2032 echo "$as_me:2032: result: $ac_cv_prog_cc_stdc" >&5
2033 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2034 CC="$CC $ac_cv_prog_cc_stdc" ;;
2037 # This should have been defined by AC_PROG_CC
2040 echo "$as_me:2040: checking \$CC variable" >&5
2041 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2044 echo "$as_me:2044: result: broken" >&5
2045 echo "${ECHO_T}broken" >&6
2046 { echo "$as_me:2046: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2047 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2049 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2050 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2055 cf_new_extra_cppflags=
2057 for cf_add_cflags in $cf_flags
2059 case $cf_fix_cppflags in
2061 case $cf_add_cflags in #(vi
2062 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2063 case $cf_add_cflags in
2065 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2067 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2068 && test -z "${cf_tst_cflags}" \
2069 && cf_fix_cppflags=yes
2071 if test $cf_fix_cppflags = yes ; then
2072 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2074 elif test "${cf_tst_cflags}" = "\"'" ; then
2075 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2081 *$cf_add_cflags) #(vi
2084 case $cf_add_cflags in #(vi
2086 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2088 CPPFLAGS=`echo "$CPPFLAGS" | \
2089 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2090 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2094 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2099 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2104 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2106 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2108 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2109 && test -z "${cf_tst_cflags}" \
2110 && cf_fix_cppflags=no
2115 if test -n "$cf_new_cflags" ; then
2117 CFLAGS="$CFLAGS $cf_new_cflags"
2120 if test -n "$cf_new_cppflags" ; then
2122 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2125 if test -n "$cf_new_extra_cppflags" ; then
2127 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2132 echo "$as_me:2132: result: ok" >&5
2133 echo "${ECHO_T}ok" >&6
2138 ac_cpp='$CPP $CPPFLAGS'
2139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142 ac_main_return=return
2143 echo "$as_me:2143: checking how to run the C preprocessor" >&5
2144 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2145 # On Suns, sometimes $CPP names a directory.
2146 if test -n "$CPP" && test -d "$CPP"; then
2149 if test -z "$CPP"; then
2150 if test "${ac_cv_prog_CPP+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 # Double quotes because CPP needs to be expanded
2154 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2157 for ac_c_preproc_warn_flag in '' yes
2159 # Use a header file that comes with gcc, so configuring glibc
2160 # with a fresh cross-compiler works.
2161 # On the NeXT, cc -E runs the code through the compiler's parser,
2162 # not just through cpp. "Syntax error" is here to catch this case.
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line 2164 "configure"
2165 #include "confdefs.h"
2169 if { (eval echo "$as_me:2169: \"$ac_cpp conftest.$ac_ext\"") >&5
2170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2172 egrep -v '^ *\+' conftest.er1 >conftest.err
2174 cat conftest.err >&5
2175 echo "$as_me:2175: \$? = $ac_status" >&5
2176 (exit $ac_status); } >/dev/null; then
2177 if test -s conftest.err; then
2178 ac_cpp_err=$ac_c_preproc_warn_flag
2185 if test -z "$ac_cpp_err"; then
2188 echo "$as_me: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2190 # Broken: fails on valid input.
2193 rm -f conftest.err conftest.$ac_ext
2195 # OK, works on sane cases. Now check whether non-existent headers
2196 # can be detected and how.
2197 cat >conftest.$ac_ext <<_ACEOF
2198 #line 2198 "configure"
2199 #include "confdefs.h"
2200 #include <ac_nonexistent.h>
2202 if { (eval echo "$as_me:2202: \"$ac_cpp conftest.$ac_ext\"") >&5
2203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2205 egrep -v '^ *\+' conftest.er1 >conftest.err
2207 cat conftest.err >&5
2208 echo "$as_me:2208: \$? = $ac_status" >&5
2209 (exit $ac_status); } >/dev/null; then
2210 if test -s conftest.err; then
2211 ac_cpp_err=$ac_c_preproc_warn_flag
2218 if test -z "$ac_cpp_err"; then
2219 # Broken: success on invalid input.
2222 echo "$as_me: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2224 # Passes both tests.
2228 rm -f conftest.err conftest.$ac_ext
2231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2232 rm -f conftest.err conftest.$ac_ext
2233 if $ac_preproc_ok; then
2245 echo "$as_me:2245: result: $CPP" >&5
2246 echo "${ECHO_T}$CPP" >&6
2248 for ac_c_preproc_warn_flag in '' yes
2250 # Use a header file that comes with gcc, so configuring glibc
2251 # with a fresh cross-compiler works.
2252 # On the NeXT, cc -E runs the code through the compiler's parser,
2253 # not just through cpp. "Syntax error" is here to catch this case.
2254 cat >conftest.$ac_ext <<_ACEOF
2255 #line 2255 "configure"
2256 #include "confdefs.h"
2260 if { (eval echo "$as_me:2260: \"$ac_cpp conftest.$ac_ext\"") >&5
2261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2263 egrep -v '^ *\+' conftest.er1 >conftest.err
2265 cat conftest.err >&5
2266 echo "$as_me:2266: \$? = $ac_status" >&5
2267 (exit $ac_status); } >/dev/null; then
2268 if test -s conftest.err; then
2269 ac_cpp_err=$ac_c_preproc_warn_flag
2276 if test -z "$ac_cpp_err"; then
2279 echo "$as_me: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2281 # Broken: fails on valid input.
2284 rm -f conftest.err conftest.$ac_ext
2286 # OK, works on sane cases. Now check whether non-existent headers
2287 # can be detected and how.
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line 2289 "configure"
2290 #include "confdefs.h"
2291 #include <ac_nonexistent.h>
2293 if { (eval echo "$as_me:2293: \"$ac_cpp conftest.$ac_ext\"") >&5
2294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2296 egrep -v '^ *\+' conftest.er1 >conftest.err
2298 cat conftest.err >&5
2299 echo "$as_me:2299: \$? = $ac_status" >&5
2300 (exit $ac_status); } >/dev/null; then
2301 if test -s conftest.err; then
2302 ac_cpp_err=$ac_c_preproc_warn_flag
2309 if test -z "$ac_cpp_err"; then
2310 # Broken: success on invalid input.
2313 echo "$as_me: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2315 # Passes both tests.
2319 rm -f conftest.err conftest.$ac_ext
2322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2323 rm -f conftest.err conftest.$ac_ext
2324 if $ac_preproc_ok; then
2327 { { echo "$as_me:2327: error: C preprocessor \"$CPP\" fails sanity check" >&5
2328 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2329 { (exit 1); exit 1; }; }
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 ac_main_return=return
2339 if test $ac_cv_c_compiler_gnu = yes; then
2340 echo "$as_me:2340: checking whether $CC needs -traditional" >&5
2341 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2342 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 ac_pattern="Autoconf.*'x'"
2346 cat >conftest.$ac_ext <<_ACEOF
2347 #line 2347 "configure"
2348 #include "confdefs.h"
2350 int Autoconf = TIOCGETP;
2352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2353 egrep "$ac_pattern" >/dev/null 2>&1; then
2354 ac_cv_prog_gcc_traditional=yes
2356 ac_cv_prog_gcc_traditional=no
2360 if test $ac_cv_prog_gcc_traditional = no; then
2361 cat >conftest.$ac_ext <<_ACEOF
2362 #line 2362 "configure"
2363 #include "confdefs.h"
2365 int Autoconf = TCGETA;
2367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2368 egrep "$ac_pattern" >/dev/null 2>&1; then
2369 ac_cv_prog_gcc_traditional=yes
2375 echo "$as_me:2375: result: $ac_cv_prog_gcc_traditional" >&5
2376 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2377 if test $ac_cv_prog_gcc_traditional = yes; then
2378 CC="$CC -traditional"
2382 echo "$as_me:2382: checking whether $CC understands -c and -o together" >&5
2383 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2384 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat > conftest.$ac_ext <<CF_EOF
2392 ${cf_cv_main_return:-return}(0);
2395 # We do the test twice because some compilers refuse to overwrite an
2396 # existing .o file with -o, though they will create one.
2397 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2398 if { (eval echo "$as_me:2398: \"$ac_try\"") >&5
2401 echo "$as_me:2401: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 test -f conftest2.$ac_objext && { (eval echo "$as_me:2403: \"$ac_try\"") >&5
2406 echo "$as_me:2406: \$? = $ac_status" >&5
2407 (exit $ac_status); };
2409 eval cf_cv_prog_CC_c_o=yes
2411 eval cf_cv_prog_CC_c_o=no
2416 if test $cf_cv_prog_CC_c_o = yes; then
2417 echo "$as_me:2417: result: yes" >&5
2418 echo "${ECHO_T}yes" >&6
2420 echo "$as_me:2420: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2424 if test "$cross_compiling" = yes ; then
2427 case "$cf_cv_system_name" in #(vi
2428 dragonfly*|mirbsd*|freebsd*) #(vi
2429 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2431 *) LDPATH=$PATH:/sbin:/usr/sbin
2432 # Extract the first word of "ldconfig", so it can be a program name with args.
2433 set dummy ldconfig; ac_word=$2
2434 echo "$as_me:2434: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2444 ac_save_IFS=$IFS; IFS=$ac_path_separator
2446 for ac_dir in $ac_dummy; do
2448 test -z "$ac_dir" && ac_dir=.
2449 if $as_executable_p "$ac_dir/$ac_word"; then
2450 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2451 echo "$as_me:2451: found $ac_dir/$ac_word" >&5
2459 LDCONFIG=$ac_cv_path_LDCONFIG
2461 if test -n "$LDCONFIG"; then
2462 echo "$as_me:2462: result: $LDCONFIG" >&5
2463 echo "${ECHO_T}$LDCONFIG" >&6
2465 echo "$as_me:2465: result: no" >&5
2466 echo "${ECHO_T}no" >&6
2473 echo "$as_me:2473: checking if you want to ensure bool is consistent with C++" >&5
2474 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2476 # Check whether --with-cxx or --without-cxx was given.
2477 if test "${with_cxx+set}" = set; then
2479 cf_with_cxx=$withval
2483 echo "$as_me:2483: result: $cf_with_cxx" >&5
2484 echo "${ECHO_T}$cf_with_cxx" >&6
2485 if test "X$cf_with_cxx" = Xno ; then
2489 # with autoconf 2.13, we can change the error to a warning:
2491 ac_cpp='$CXXCPP $CPPFLAGS'
2492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2495 ac_main_return=return
2496 if test -n "$ac_tool_prefix"; then
2497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2501 echo "$as_me:2501: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_CXX+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$CXX"; then
2507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2509 ac_save_IFS=$IFS; IFS=$ac_path_separator
2511 for ac_dir in $ac_dummy; do
2513 test -z "$ac_dir" && ac_dir=.
2514 $as_executable_p "$ac_dir/$ac_word" || continue
2515 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2516 echo "$as_me:2516: found $ac_dir/$ac_word" >&5
2523 if test -n "$CXX"; then
2524 echo "$as_me:2524: result: $CXX" >&5
2525 echo "${ECHO_T}$CXX" >&6
2527 echo "$as_me:2527: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2531 test -n "$CXX" && break
2534 if test -z "$CXX"; then
2536 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 echo "$as_me:2540: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$ac_ct_CXX"; then
2546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2548 ac_save_IFS=$IFS; IFS=$ac_path_separator
2550 for ac_dir in $ac_dummy; do
2552 test -z "$ac_dir" && ac_dir=.
2553 $as_executable_p "$ac_dir/$ac_word" || continue
2554 ac_cv_prog_ac_ct_CXX="$ac_prog"
2555 echo "$as_me:2555: found $ac_dir/$ac_word" >&5
2561 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2562 if test -n "$ac_ct_CXX"; then
2563 echo "$as_me:2563: result: $ac_ct_CXX" >&5
2564 echo "${ECHO_T}$ac_ct_CXX" >&6
2566 echo "$as_me:2566: result: no" >&5
2567 echo "${ECHO_T}no" >&6
2570 test -n "$ac_ct_CXX" && break
2572 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2577 # Provide some information about the compiler.
2578 echo "$as_me:2578:" \
2579 "checking for C++ compiler version" >&5
2580 ac_compiler=`set X $ac_compile; echo $2`
2581 { (eval echo "$as_me:2581: \"$ac_compiler --version </dev/null >&5\"") >&5
2582 (eval $ac_compiler --version </dev/null >&5) 2>&5
2584 echo "$as_me:2584: \$? = $ac_status" >&5
2585 (exit $ac_status); }
2586 { (eval echo "$as_me:2586: \"$ac_compiler -v </dev/null >&5\"") >&5
2587 (eval $ac_compiler -v </dev/null >&5) 2>&5
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit $ac_status); }
2591 { (eval echo "$as_me:2591: \"$ac_compiler -V </dev/null >&5\"") >&5
2592 (eval $ac_compiler -V </dev/null >&5) 2>&5
2594 echo "$as_me:2594: \$? = $ac_status" >&5
2595 (exit $ac_status); }
2597 echo "$as_me:2597: checking whether we are using the GNU C++ compiler" >&5
2598 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2599 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #line 2603 "configure"
2604 #include "confdefs.h"
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:2618: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>&5
2621 echo "$as_me:2621: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:2624: \"$ac_try\"") >&5
2627 echo "$as_me:2627: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2639 echo "$as_me:2639: result: $ac_cv_cxx_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641 GXX=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CXXFLAGS=${CXXFLAGS+set}
2643 ac_save_CXXFLAGS=$CXXFLAGS
2645 echo "$as_me:2645: checking whether $CXX accepts -g" >&5
2646 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cxx_g+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #line 2651 "configure"
2652 #include "confdefs.h"
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:2663: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>&5
2666 echo "$as_me:2666: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:2669: \"$ac_try\"") >&5
2672 echo "$as_me:2672: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_cv_prog_cxx_g=yes
2676 echo "$as_me: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2680 rm -f conftest.$ac_objext conftest.$ac_ext
2682 echo "$as_me:2682: result: $ac_cv_prog_cxx_g" >&5
2683 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2684 if test "$ac_test_CXXFLAGS" = set; then
2685 CXXFLAGS=$ac_save_CXXFLAGS
2686 elif test $ac_cv_prog_cxx_g = yes; then
2687 if test "$GXX" = yes; then
2693 if test "$GXX" = yes; then
2699 for ac_declaration in \
2701 '#include <stdlib.h>' \
2702 'extern "C" void std::exit (int) throw (); using std::exit;' \
2703 'extern "C" void std::exit (int); using std::exit;' \
2704 'extern "C" void exit (int) throw ();' \
2705 'extern "C" void exit (int);' \
2708 cat >conftest.$ac_ext <<_ACEOF
2709 #line 2709 "configure"
2710 #include "confdefs.h"
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>&5
2725 echo "$as_me:2725: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:2728: \"$ac_try\"") >&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2739 rm -f conftest.$ac_objext conftest.$ac_ext
2740 cat >conftest.$ac_ext <<_ACEOF
2741 #line 2741 "configure"
2742 #include "confdefs.h"
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>&5
2756 echo "$as_me:2756: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:2759: \"$ac_try\"") >&5
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2766 echo "$as_me: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 rm -f conftest.$ac_objext conftest.$ac_ext
2772 if test -n "$ac_declaration"; then
2773 echo '#ifdef __cplusplus' >>confdefs.h
2774 echo $ac_declaration >>confdefs.h
2775 echo '#endif' >>confdefs.h
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 ac_main_return=return
2786 ac_cpp='$CXXCPP $CPPFLAGS'
2787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2790 ac_main_return=return
2792 if test "x$cf_with_cxx" != xno
2794 # Several of the C++ configurations do not work, particularly when
2795 # cross-compiling (20140913 -TD)
2796 echo "$as_me:2796: checking if $CXX works" >&5
2797 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2799 save_CPPFLAGS="$CPPFLAGS"
2800 eval cf_includedir=${includedir}
2801 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2803 cat >conftest.$ac_ext <<_ACEOF
2804 #line 2804 "configure"
2805 #include "confdefs.h"
2814 printf("Hello world!\n")
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:2821: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>&5
2824 echo "$as_me:2824: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:2827: \"$ac_try\"") >&5
2830 echo "$as_me:2830: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2834 echo "$as_me: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2838 rm -f conftest.$ac_objext conftest.$ac_ext
2839 CPPFLAGS="$save_CPPFLAGS"
2841 echo "$as_me:2841: result: $cf_cxx_works" >&5
2842 echo "${ECHO_T}$cf_cxx_works" >&6
2843 if test "x$cf_cxx_works" = xno
2845 { echo "$as_me:2845: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2846 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2847 cf_with_cxx=no; CXX=""; GXX="";
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855 ac_main_return=return
2857 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2858 if test "$CXX" = "g++" ; then
2859 # Extract the first word of "g++", so it can be a program name with args.
2860 set dummy g++; ac_word=$2
2861 echo "$as_me:2861: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863 if test "${ac_cv_path_CXX+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2871 ac_save_IFS=$IFS; IFS=$ac_path_separator
2873 for ac_dir in $ac_dummy; do
2875 test -z "$ac_dir" && ac_dir=.
2876 if $as_executable_p "$ac_dir/$ac_word"; then
2877 ac_cv_path_CXX="$ac_dir/$ac_word"
2878 echo "$as_me:2878: found $ac_dir/$ac_word" >&5
2888 if test -n "$CXX"; then
2889 echo "$as_me:2889: result: $CXX" >&5
2890 echo "${ECHO_T}$CXX" >&6
2892 echo "$as_me:2892: result: no" >&5
2893 echo "${ECHO_T}no" >&6
2897 case "x$CXX" in #(vi
2899 { echo "$as_me:2899: WARNING: You don't have any C++ compiler, too bad" >&5
2900 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2901 cf_with_cxx=no; CXX=""; GXX="";
2907 if test "$GXX" = yes; then
2908 echo "$as_me:2908: checking version of ${CXX:-g++}" >&5
2909 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2910 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2911 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2912 echo "$as_me:2912: result: $GXX_VERSION" >&5
2913 echo "${ECHO_T}$GXX_VERSION" >&6
2916 case $GXX_VERSION in
2918 # GXX=""; CXX=""; ac_cv_prog_gxx=no
2920 { echo "$as_me:2920: WARNING: templates do not work" >&5
2921 echo "$as_me: WARNING: templates do not work" >&2;}
2925 echo "$as_me:2925: checking if you want to build C++ binding and demo" >&5
2926 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2928 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2929 if test "${with_cxx_binding+set}" = set; then
2930 withval="$with_cxx_binding"
2931 cf_with_cxx_binding=$withval
2933 cf_with_cxx_binding=$cf_with_cxx
2935 echo "$as_me:2935: result: $cf_with_cxx_binding" >&5
2936 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2938 echo "$as_me:2938: checking if you want to build with Ada95" >&5
2939 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2940 echo "$as_me:2940: result: $cf_with_ada" >&5
2941 echo "${ECHO_T}$cf_with_ada" >&6
2943 echo "$as_me:2943: checking if you want to install terminal database" >&5
2944 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
2946 # Check whether --enable-db-install or --disable-db-install was given.
2947 if test "${enable_db_install+set}" = set; then
2948 enableval="$enable_db_install"
2949 cf_with_db_install=$enableval
2951 cf_with_db_install=yes
2953 echo "$as_me:2953: result: $cf_with_db_install" >&5
2954 echo "${ECHO_T}$cf_with_db_install" >&6
2956 echo "$as_me:2956: checking if you want to install manpages" >&5
2957 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
2959 # Check whether --with-manpages or --without-manpages was given.
2960 if test "${with_manpages+set}" = set; then
2961 withval="$with_manpages"
2962 cf_with_manpages=$withval
2964 cf_with_manpages=yes
2966 echo "$as_me:2966: result: $cf_with_manpages" >&5
2967 echo "${ECHO_T}$cf_with_manpages" >&6
2969 echo "$as_me:2969: checking if you want to build programs such as tic" >&5
2970 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2972 # Check whether --with-progs or --without-progs was given.
2973 if test "${with_progs+set}" = set; then
2974 withval="$with_progs"
2975 cf_with_progs=$withval
2979 echo "$as_me:2979: result: $cf_with_progs" >&5
2980 echo "${ECHO_T}$cf_with_progs" >&6
2982 echo "$as_me:2982: checking if you want to build test-programs" >&5
2983 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2985 # Check whether --with-tests or --without-tests was given.
2986 if test "${with_tests+set}" = set; then
2987 withval="$with_tests"
2988 cf_with_tests=$withval
2992 echo "$as_me:2992: result: $cf_with_tests" >&5
2993 echo "${ECHO_T}$cf_with_tests" >&6
2995 echo "$as_me:2995: checking if you wish to install curses.h" >&5
2996 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2998 # Check whether --with-curses-h or --without-curses-h was given.
2999 if test "${with_curses_h+set}" = set; then
3000 withval="$with_curses_h"
3001 with_curses_h=$withval
3005 echo "$as_me:3005: result: $with_curses_h" >&5
3006 echo "${ECHO_T}$with_curses_h" >&6
3008 modules_to_build="ncurses"
3009 if test "X$cf_with_progs" != Xno ; then
3010 modules_to_build="$modules_to_build progs tack"
3012 modules_to_build="$modules_to_build panel menu form"
3014 test "$program_prefix" != NONE &&
3015 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3016 # Use a double $ so make ignores it.
3017 test "$program_suffix" != NONE &&
3018 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3019 # Double any \ or $. echo might interpret backslashes.
3020 # By default was `s,x,x', remove it if useless.
3021 cat <<\_ACEOF >conftest.sed
3022 s/[\\$]/&&/g;s/;s,x,x,$//
3024 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3027 for ac_prog in mawk gawk nawk awk
3029 # Extract the first word of "$ac_prog", so it can be a program name with args.
3030 set dummy $ac_prog; ac_word=$2
3031 echo "$as_me:3031: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${ac_cv_prog_AWK+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 if test -n "$AWK"; then
3037 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3039 ac_save_IFS=$IFS; IFS=$ac_path_separator
3041 for ac_dir in $ac_dummy; do
3043 test -z "$ac_dir" && ac_dir=.
3044 $as_executable_p "$ac_dir/$ac_word" || continue
3045 ac_cv_prog_AWK="$ac_prog"
3046 echo "$as_me:3046: found $ac_dir/$ac_word" >&5
3053 if test -n "$AWK"; then
3054 echo "$as_me:3054: result: $AWK" >&5
3055 echo "${ECHO_T}$AWK" >&6
3057 echo "$as_me:3057: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3061 test -n "$AWK" && break
3064 test -z "$AWK" && { { echo "$as_me:3064: error: No awk program found" >&5
3065 echo "$as_me: error: No awk program found" >&2;}
3066 { (exit 1); exit 1; }; }
3068 echo "$as_me:3068: checking for egrep" >&5
3069 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3070 if test "${ac_cv_prog_egrep+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3074 then ac_cv_prog_egrep='grep -E'
3075 else ac_cv_prog_egrep='egrep'
3078 echo "$as_me:3078: result: $ac_cv_prog_egrep" >&5
3079 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3080 EGREP=$ac_cv_prog_egrep
3082 test -z "$EGREP" && { { echo "$as_me:3082: error: No egrep program found" >&5
3083 echo "$as_me: error: No egrep program found" >&2;}
3084 { (exit 1); exit 1; }; }
3086 # Find a good install program. We prefer a C program (faster),
3087 # so one script is as good as another. But avoid the broken or
3088 # incompatible versions:
3089 # SysV /etc/install, /usr/sbin/install
3090 # SunOS /usr/etc/install
3091 # IRIX /sbin/install
3093 # AmigaOS /C/install, which installs bootblocks on floppy discs
3094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3097 # ./install, which can be erroneously created by make from ./install.sh.
3098 echo "$as_me:3098: checking for a BSD compatible install" >&5
3099 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3100 if test -z "$INSTALL"; then
3101 if test "${ac_cv_path_install+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 ac_save_IFS=$IFS; IFS=$ac_path_separator
3105 for ac_dir in $PATH; do
3107 # Account for people who put trailing slashes in PATH elements.
3109 / | ./ | .// | /cC/* \
3110 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3113 # OSF1 and SCO ODT 3.0 have their own names for install.
3114 # Don't use installbsd from OSF since it installs stuff as root
3116 for ac_prog in ginstall scoinst install; do
3117 if $as_executable_p "$ac_dir/$ac_prog"; then
3118 if test $ac_prog = install &&
3119 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3120 # AIX install. It has an incompatible calling convention.
3122 elif test $ac_prog = install &&
3123 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3124 # program-specific install script used by HP pwplus--don't use.
3127 ac_cv_path_install="$ac_dir/$ac_prog -c"
3137 if test "${ac_cv_path_install+set}" = set; then
3138 INSTALL=$ac_cv_path_install
3140 # As a last resort, use the slow shell script. We don't cache a
3141 # path for INSTALL within a source directory, because that will
3142 # break other packages using the cache if that directory is
3143 # removed, or if the path is relative.
3144 INSTALL=$ac_install_sh
3147 echo "$as_me:3147: result: $INSTALL" >&5
3148 echo "${ECHO_T}$INSTALL" >&6
3150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3151 # It thinks the first close brace ends the variable substitution.
3152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3162 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3163 test -z "$cf_dir" && cf_dir=.
3164 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3168 for ac_prog in tdlint lint alint splint lclint
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171 set dummy $ac_prog; ac_word=$2
3172 echo "$as_me:3172: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_prog_LINT+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 if test -n "$LINT"; then
3178 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3180 ac_save_IFS=$IFS; IFS=$ac_path_separator
3182 for ac_dir in $ac_dummy; do
3184 test -z "$ac_dir" && ac_dir=.
3185 $as_executable_p "$ac_dir/$ac_word" || continue
3186 ac_cv_prog_LINT="$ac_prog"
3187 echo "$as_me:3187: found $ac_dir/$ac_word" >&5
3193 LINT=$ac_cv_prog_LINT
3194 if test -n "$LINT"; then
3195 echo "$as_me:3195: result: $LINT" >&5
3196 echo "${ECHO_T}$LINT" >&6
3198 echo "$as_me:3198: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3202 test -n "$LINT" && break
3205 echo "$as_me:3205: checking whether ln -s works" >&5
3206 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3208 if test "$LN_S" = "ln -s"; then
3209 echo "$as_me:3209: result: yes" >&5
3210 echo "${ECHO_T}yes" >&6
3212 echo "$as_me:3212: result: no, using $LN_S" >&5
3213 echo "${ECHO_T}no, using $LN_S" >&6
3216 echo "$as_me:3216: checking if $LN_S -f options work" >&5
3217 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3219 rm -f conf$$.src conf$$dst
3221 echo first >conf$$.src
3222 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3227 rm -f conf$$.dst conf$$src
3228 echo "$as_me:3228: result: $cf_prog_ln_sf" >&5
3229 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3231 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3233 echo "$as_me:3233: checking for long file names" >&5
3234 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3235 if test "${ac_cv_sys_long_file_names+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 ac_cv_sys_long_file_names=yes
3239 # Test for long file names in all the places we know might matter:
3240 # . the current directory, where building will happen
3241 # $prefix/lib where we will be installing things
3242 # $exec_prefix/lib likewise
3243 # eval it to expand exec_prefix.
3244 # $TMPDIR if set, where it might want to write temporary files
3245 # if $TMPDIR is not set:
3246 # /tmp where it might want to write temporary files
3249 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3252 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3254 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3255 test -d $ac_dir || continue
3256 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3257 ac_xdir=$ac_dir/cf$$
3258 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3259 ac_tf1=$ac_xdir/conftest9012345
3260 ac_tf2=$ac_xdir/conftest9012346
3261 (echo 1 >$ac_tf1) 2>/dev/null
3262 (echo 2 >$ac_tf2) 2>/dev/null
3263 ac_val=`cat $ac_tf1 2>/dev/null`
3264 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3265 ac_cv_sys_long_file_names=no
3266 rm -rf $ac_xdir 2>/dev/null
3269 rm -rf $ac_xdir 2>/dev/null
3272 echo "$as_me:3272: result: $ac_cv_sys_long_file_names" >&5
3273 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3274 if test $ac_cv_sys_long_file_names = yes; then
3276 cat >>confdefs.h <<\EOF
3277 #define HAVE_LONG_FILE_NAMES 1
3282 # if we find pkg-config, check if we should install the ".pc" files.
3284 echo "$as_me:3284: checking if you want to use pkg-config" >&5
3285 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3287 # Check whether --with-pkg-config or --without-pkg-config was given.
3288 if test "${with_pkg_config+set}" = set; then
3289 withval="$with_pkg_config"
3290 cf_pkg_config=$withval
3294 echo "$as_me:3294: result: $cf_pkg_config" >&5
3295 echo "${ECHO_T}$cf_pkg_config" >&6
3297 case $cf_pkg_config in #(vi
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3306 echo "$as_me:3306: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3316 ac_save_IFS=$IFS; IFS=$ac_path_separator
3318 for ac_dir in $ac_dummy; do
3320 test -z "$ac_dir" && ac_dir=.
3321 if $as_executable_p "$ac_dir/$ac_word"; then
3322 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3323 echo "$as_me:3323: found $ac_dir/$ac_word" >&5
3331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3333 if test -n "$PKG_CONFIG"; then
3334 echo "$as_me:3334: result: $PKG_CONFIG" >&5
3335 echo "${ECHO_T}$PKG_CONFIG" >&6
3337 echo "$as_me:3337: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3342 if test -z "$ac_cv_path_PKG_CONFIG"; then
3343 ac_pt_PKG_CONFIG=$PKG_CONFIG
3344 # Extract the first word of "pkg-config", so it can be a program name with args.
3345 set dummy pkg-config; ac_word=$2
3346 echo "$as_me:3346: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 case $ac_pt_PKG_CONFIG in
3353 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3356 ac_save_IFS=$IFS; IFS=$ac_path_separator
3358 for ac_dir in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if $as_executable_p "$ac_dir/$ac_word"; then
3362 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3363 echo "$as_me:3363: found $ac_dir/$ac_word" >&5
3368 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3372 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3374 if test -n "$ac_pt_PKG_CONFIG"; then
3375 echo "$as_me:3375: result: $ac_pt_PKG_CONFIG" >&5
3376 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3378 echo "$as_me:3378: result: no" >&5
3379 echo "${ECHO_T}no" >&6
3382 PKG_CONFIG=$ac_pt_PKG_CONFIG
3384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3393 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3394 if test "$PKG_CONFIG" != none ; then
3396 if test "x$prefix" != xNONE; then
3397 cf_path_syntax="$prefix"
3399 cf_path_syntax="$ac_default_prefix"
3402 case ".$PKG_CONFIG" in #(vi
3403 .\$\(*\)*|.\'*\'*) #(vi
3407 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3409 .\${*prefix}*|.\${*dir}*) #(vi
3410 eval PKG_CONFIG="$PKG_CONFIG"
3411 case ".$PKG_CONFIG" in #(vi
3413 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3418 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3421 { { echo "$as_me:3421: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3422 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3423 { (exit 1); exit 1; }; }
3429 if test "$PKG_CONFIG" != none ; then
3430 echo "$as_me:3430: checking for $PKG_CONFIG library directory" >&5
3431 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3433 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3434 if test "${with_pkg_config_libdir+set}" = set; then
3435 withval="$with_pkg_config_libdir"
3436 PKG_CONFIG_LIBDIR=$withval
3438 PKG_CONFIG_LIBDIR=yes
3441 case x$PKG_CONFIG_LIBDIR in #(vi
3445 # look for the library directory using the same prefix as the executable
3446 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3447 case x`(arch) 2>/dev/null` in #(vi
3449 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3451 if test -d $cf_config/pkgconfig
3453 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3459 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3467 echo "$as_me:3467: result: $PKG_CONFIG_LIBDIR" >&5
3468 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3471 if test "$PKG_CONFIG" != none ; then
3472 echo "$as_me:3472: checking if we should install .pc files for $PKG_CONFIG" >&5
3473 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3475 # Check whether --enable-pc-files or --disable-pc-files was given.
3476 if test "${enable_pc_files+set}" = set; then
3477 enableval="$enable_pc_files"
3478 enable_pc_files=$enableval
3482 echo "$as_me:3482: result: $enable_pc_files" >&5
3483 echo "${ECHO_T}$enable_pc_files" >&6
3484 if test "$enable_pc_files" != no
3487 if test "x$prefix" != xNONE; then
3488 cf_path_syntax="$prefix"
3490 cf_path_syntax="$ac_default_prefix"
3493 case ".$PKG_CONFIG_LIBDIR" in #(vi
3494 .\$\(*\)*|.\'*\'*) #(vi
3498 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3500 .\${*prefix}*|.\${*dir}*) #(vi
3501 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3502 case ".$PKG_CONFIG_LIBDIR" in #(vi
3504 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3509 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3512 { { echo "$as_me:3512: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3513 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3514 { (exit 1); exit 1; }; }
3523 echo "$as_me:3523: checking if we should assume mixed-case filenames" >&5
3524 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3526 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3527 if test "${enable_mixed_case+set}" = set; then
3528 enableval="$enable_mixed_case"
3529 enable_mixedcase=$enableval
3531 enable_mixedcase=auto
3533 echo "$as_me:3533: result: $enable_mixedcase" >&5
3534 echo "${ECHO_T}$enable_mixedcase" >&6
3535 if test "$enable_mixedcase" = "auto" ; then
3537 echo "$as_me:3537: checking if filesystem supports mixed-case filenames" >&5
3538 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3539 if test "${cf_cv_mixedcase+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 if test "$cross_compiling" = yes ; then
3544 case $target_alias in #(vi
3545 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
3553 rm -f conftest CONFTEST
3555 if test -f CONFTEST ; then
3560 rm -f conftest CONFTEST
3564 echo "$as_me:3564: result: $cf_cv_mixedcase" >&5
3565 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3566 test "$cf_cv_mixedcase" = yes &&
3567 cat >>confdefs.h <<\EOF
3568 #define MIXEDCASE_FILENAMES 1
3572 cf_cv_mixedcase=$enable_mixedcase
3573 if test "x$enable_mixedcase" = "xyes" ; then
3575 cat >>confdefs.h <<\EOF
3576 #define MIXEDCASE_FILENAMES 1
3582 # do this after mixed-case option (tags/TAGS is not as important as tic).
3583 echo "$as_me:3583: checking whether ${MAKE-make} sets \${MAKE}" >&5
3584 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3585 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3586 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 cat >conftest.make <<\EOF
3591 @echo 'ac_maketemp="${MAKE}"'
3593 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3594 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3595 if test -n "$ac_maketemp"; then
3596 eval ac_cv_prog_make_${ac_make}_set=yes
3598 eval ac_cv_prog_make_${ac_make}_set=no
3602 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3603 echo "$as_me:3603: result: yes" >&5
3604 echo "${ECHO_T}yes" >&6
3607 echo "$as_me:3607: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3609 SET_MAKE="MAKE=${MAKE-make}"
3612 for ac_prog in exctags ctags
3614 # Extract the first word of "$ac_prog", so it can be a program name with args.
3615 set dummy $ac_prog; ac_word=$2
3616 echo "$as_me:3616: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_CTAGS+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if test -n "$CTAGS"; then
3622 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3624 ac_save_IFS=$IFS; IFS=$ac_path_separator
3626 for ac_dir in $ac_dummy; do
3628 test -z "$ac_dir" && ac_dir=.
3629 $as_executable_p "$ac_dir/$ac_word" || continue
3630 ac_cv_prog_CTAGS="$ac_prog"
3631 echo "$as_me:3631: found $ac_dir/$ac_word" >&5
3637 CTAGS=$ac_cv_prog_CTAGS
3638 if test -n "$CTAGS"; then
3639 echo "$as_me:3639: result: $CTAGS" >&5
3640 echo "${ECHO_T}$CTAGS" >&6
3642 echo "$as_me:3642: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3646 test -n "$CTAGS" && break
3649 for ac_prog in exetags etags
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 echo "$as_me:3653: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_ETAGS+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if test -n "$ETAGS"; then
3659 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3661 ac_save_IFS=$IFS; IFS=$ac_path_separator
3663 for ac_dir in $ac_dummy; do
3665 test -z "$ac_dir" && ac_dir=.
3666 $as_executable_p "$ac_dir/$ac_word" || continue
3667 ac_cv_prog_ETAGS="$ac_prog"
3668 echo "$as_me:3668: found $ac_dir/$ac_word" >&5
3674 ETAGS=$ac_cv_prog_ETAGS
3675 if test -n "$ETAGS"; then
3676 echo "$as_me:3676: result: $ETAGS" >&5
3677 echo "${ECHO_T}$ETAGS" >&6
3679 echo "$as_me:3679: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3683 test -n "$ETAGS" && break
3686 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3687 set dummy ${CTAGS:-ctags}; ac_word=$2
3688 echo "$as_me:3688: checking for $ac_word" >&5
3689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3690 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 if test -n "$MAKE_LOWER_TAGS"; then
3694 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3696 ac_save_IFS=$IFS; IFS=$ac_path_separator
3698 for ac_dir in $ac_dummy; do
3700 test -z "$ac_dir" && ac_dir=.
3701 $as_executable_p "$ac_dir/$ac_word" || continue
3702 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3703 echo "$as_me:3703: found $ac_dir/$ac_word" >&5
3707 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3710 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3711 if test -n "$MAKE_LOWER_TAGS"; then
3712 echo "$as_me:3712: result: $MAKE_LOWER_TAGS" >&5
3713 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3715 echo "$as_me:3715: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3719 if test "$cf_cv_mixedcase" = yes ; then
3720 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3721 set dummy ${ETAGS:-etags}; ac_word=$2
3722 echo "$as_me:3722: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3724 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 if test -n "$MAKE_UPPER_TAGS"; then
3728 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3730 ac_save_IFS=$IFS; IFS=$ac_path_separator
3732 for ac_dir in $ac_dummy; do
3734 test -z "$ac_dir" && ac_dir=.
3735 $as_executable_p "$ac_dir/$ac_word" || continue
3736 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3737 echo "$as_me:3737: found $ac_dir/$ac_word" >&5
3741 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3744 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3745 if test -n "$MAKE_UPPER_TAGS"; then
3746 echo "$as_me:3746: result: $MAKE_UPPER_TAGS" >&5
3747 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3749 echo "$as_me:3749: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3757 if test "$MAKE_UPPER_TAGS" = yes ; then
3763 if test "$MAKE_LOWER_TAGS" = yes ; then
3769 echo "$as_me:3769: checking for makeflags variable" >&5
3770 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3771 if test "${cf_cv_makeflags+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3778 cat >cf_makeflags.tmp <<CF_EOF
3781 @ echo '.$cf_option'
3783 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3784 case "$cf_result" in
3786 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3787 case "$cf_result" in
3788 .*CC=*) cf_cv_makeflags=
3790 *) cf_cv_makeflags=$cf_option
3796 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3800 rm -f cf_makeflags.tmp
3803 echo "$as_me:3803: result: $cf_cv_makeflags" >&5
3804 echo "${ECHO_T}$cf_cv_makeflags" >&6
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 echo "$as_me:3809: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_RANLIB+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test -n "$RANLIB"; then
3815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3817 ac_save_IFS=$IFS; IFS=$ac_path_separator
3819 for ac_dir in $ac_dummy; do
3821 test -z "$ac_dir" && ac_dir=.
3822 $as_executable_p "$ac_dir/$ac_word" || continue
3823 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3824 echo "$as_me:3824: found $ac_dir/$ac_word" >&5
3830 RANLIB=$ac_cv_prog_RANLIB
3831 if test -n "$RANLIB"; then
3832 echo "$as_me:3832: result: $RANLIB" >&5
3833 echo "${ECHO_T}$RANLIB" >&6
3835 echo "$as_me:3835: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3840 if test -z "$ac_cv_prog_RANLIB"; then
3841 ac_ct_RANLIB=$RANLIB
3842 # Extract the first word of "ranlib", so it can be a program name with args.
3843 set dummy ranlib; ac_word=$2
3844 echo "$as_me:3844: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -n "$ac_ct_RANLIB"; then
3850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3852 ac_save_IFS=$IFS; IFS=$ac_path_separator
3854 for ac_dir in $ac_dummy; do
3856 test -z "$ac_dir" && ac_dir=.
3857 $as_executable_p "$ac_dir/$ac_word" || continue
3858 ac_cv_prog_ac_ct_RANLIB="ranlib"
3859 echo "$as_me:3859: found $ac_dir/$ac_word" >&5
3863 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3867 if test -n "$ac_ct_RANLIB"; then
3868 echo "$as_me:3868: result: $ac_ct_RANLIB" >&5
3869 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3871 echo "$as_me:3871: result: no" >&5
3872 echo "${ECHO_T}no" >&6
3875 RANLIB=$ac_ct_RANLIB
3877 RANLIB="$ac_cv_prog_RANLIB"
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}ld; ac_word=$2
3883 echo "$as_me:3883: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_LD+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$LD"; then
3889 ac_cv_prog_LD="$LD" # Let the user override the test.
3891 ac_save_IFS=$IFS; IFS=$ac_path_separator
3893 for ac_dir in $ac_dummy; do
3895 test -z "$ac_dir" && ac_dir=.
3896 $as_executable_p "$ac_dir/$ac_word" || continue
3897 ac_cv_prog_LD="${ac_tool_prefix}ld"
3898 echo "$as_me:3898: found $ac_dir/$ac_word" >&5
3905 if test -n "$LD"; then
3906 echo "$as_me:3906: result: $LD" >&5
3907 echo "${ECHO_T}$LD" >&6
3909 echo "$as_me:3909: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3914 if test -z "$ac_cv_prog_LD"; then
3916 # Extract the first word of "ld", so it can be a program name with args.
3917 set dummy ld; ac_word=$2
3918 echo "$as_me:3918: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$ac_ct_LD"; then
3924 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3926 ac_save_IFS=$IFS; IFS=$ac_path_separator
3928 for ac_dir in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir=.
3931 $as_executable_p "$ac_dir/$ac_word" || continue
3932 ac_cv_prog_ac_ct_LD="ld"
3933 echo "$as_me:3933: found $ac_dir/$ac_word" >&5
3937 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3940 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3941 if test -n "$ac_ct_LD"; then
3942 echo "$as_me:3942: result: $ac_ct_LD" >&5
3943 echo "${ECHO_T}$ac_ct_LD" >&6
3945 echo "$as_me:3945: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3954 if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}ar; ac_word=$2
3957 echo "$as_me:3957: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_AR+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test -n "$AR"; then
3963 ac_cv_prog_AR="$AR" # Let the user override the test.
3965 ac_save_IFS=$IFS; IFS=$ac_path_separator
3967 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 $as_executable_p "$ac_dir/$ac_word" || continue
3971 ac_cv_prog_AR="${ac_tool_prefix}ar"
3972 echo "$as_me:3972: found $ac_dir/$ac_word" >&5
3979 if test -n "$AR"; then
3980 echo "$as_me:3980: result: $AR" >&5
3981 echo "${ECHO_T}$AR" >&6
3983 echo "$as_me:3983: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3988 if test -z "$ac_cv_prog_AR"; then
3990 # Extract the first word of "ar", so it can be a program name with args.
3991 set dummy ar; ac_word=$2
3992 echo "$as_me:3992: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 if test -n "$ac_ct_AR"; then
3998 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4000 ac_save_IFS=$IFS; IFS=$ac_path_separator
4002 for ac_dir in $ac_dummy; do
4004 test -z "$ac_dir" && ac_dir=.
4005 $as_executable_p "$ac_dir/$ac_word" || continue
4006 ac_cv_prog_ac_ct_AR="ar"
4007 echo "$as_me:4007: found $ac_dir/$ac_word" >&5
4011 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4015 if test -n "$ac_ct_AR"; then
4016 echo "$as_me:4016: result: $ac_ct_AR" >&5
4017 echo "${ECHO_T}$ac_ct_AR" >&6
4019 echo "$as_me:4019: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}nm; ac_word=$2
4031 echo "$as_me:4031: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_NM+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$NM"; then
4037 ac_cv_prog_NM="$NM" # Let the user override the test.
4039 ac_save_IFS=$IFS; IFS=$ac_path_separator
4041 for ac_dir in $ac_dummy; do
4043 test -z "$ac_dir" && ac_dir=.
4044 $as_executable_p "$ac_dir/$ac_word" || continue
4045 ac_cv_prog_NM="${ac_tool_prefix}nm"
4046 echo "$as_me:4046: found $ac_dir/$ac_word" >&5
4053 if test -n "$NM"; then
4054 echo "$as_me:4054: result: $NM" >&5
4055 echo "${ECHO_T}$NM" >&6
4057 echo "$as_me:4057: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4062 if test -z "$ac_cv_prog_NM"; then
4064 # Extract the first word of "nm", so it can be a program name with args.
4065 set dummy nm; ac_word=$2
4066 echo "$as_me:4066: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 if test -n "$ac_ct_NM"; then
4072 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4074 ac_save_IFS=$IFS; IFS=$ac_path_separator
4076 for ac_dir in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir=.
4079 $as_executable_p "$ac_dir/$ac_word" || continue
4080 ac_cv_prog_ac_ct_NM="nm"
4081 echo "$as_me:4081: found $ac_dir/$ac_word" >&5
4085 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4088 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4089 if test -n "$ac_ct_NM"; then
4090 echo "$as_me:4090: result: $ac_ct_NM" >&5
4091 echo "${ECHO_T}$ac_ct_NM" >&6
4093 echo "$as_me:4093: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}ar; ac_word=$2
4105 echo "$as_me:4105: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_AR+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 if test -n "$AR"; then
4111 ac_cv_prog_AR="$AR" # Let the user override the test.
4113 ac_save_IFS=$IFS; IFS=$ac_path_separator
4115 for ac_dir in $ac_dummy; do
4117 test -z "$ac_dir" && ac_dir=.
4118 $as_executable_p "$ac_dir/$ac_word" || continue
4119 ac_cv_prog_AR="${ac_tool_prefix}ar"
4120 echo "$as_me:4120: found $ac_dir/$ac_word" >&5
4127 if test -n "$AR"; then
4128 echo "$as_me:4128: result: $AR" >&5
4129 echo "${ECHO_T}$AR" >&6
4131 echo "$as_me:4131: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4136 if test -z "$ac_cv_prog_AR"; then
4138 # Extract the first word of "ar", so it can be a program name with args.
4139 set dummy ar; ac_word=$2
4140 echo "$as_me:4140: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 if test -n "$ac_ct_AR"; then
4146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4148 ac_save_IFS=$IFS; IFS=$ac_path_separator
4150 for ac_dir in $ac_dummy; do
4152 test -z "$ac_dir" && ac_dir=.
4153 $as_executable_p "$ac_dir/$ac_word" || continue
4154 ac_cv_prog_ac_ct_AR="ar"
4155 echo "$as_me:4155: found $ac_dir/$ac_word" >&5
4159 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4162 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4163 if test -n "$ac_ct_AR"; then
4164 echo "$as_me:4164: result: $ac_ct_AR" >&5
4165 echo "${ECHO_T}$ac_ct_AR" >&6
4167 echo "$as_me:4167: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4176 echo "$as_me:4176: checking for options to update archives" >&5
4177 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4178 if test "${cf_cv_ar_flags+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 cf_cv_ar_flags=unknown
4183 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4186 # check if $ARFLAGS already contains this choice
4187 if test "x$ARFLAGS" != "x" ; then
4188 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4189 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4195 rm -f conftest.$ac_cv_objext
4198 cat >conftest.$ac_ext <<EOF
4199 #line 4199 "configure"
4200 int testdata[3] = { 123, 456, 789 };
4202 if { (eval echo "$as_me:4202: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>&5
4205 echo "$as_me:4205: \$? = $ac_status" >&5
4206 (exit $ac_status); } ; then
4207 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4208 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4209 if test -f conftest.a ; then
4210 cf_cv_ar_flags=$cf_ar_flags
4214 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4216 echo "${as_me:-configure}:4216: testing cannot compile test-program ..." 1>&5
4221 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4224 echo "$as_me:4224: result: $cf_cv_ar_flags" >&5
4225 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4227 if test -n "$ARFLAGS" ; then
4228 if test -n "$cf_cv_ar_flags" ; then
4229 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4232 ARFLAGS=$cf_cv_ar_flags
4235 echo "$as_me:4235: checking if you have specified an install-prefix" >&5
4236 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4238 # Check whether --with-install-prefix or --without-install-prefix was given.
4239 if test "${with_install_prefix+set}" = set; then
4240 withval="$with_install_prefix"
4241 case "x$withval" in #(vi
4244 *) DESTDIR="$withval"
4248 echo "$as_me:4248: result: $DESTDIR" >&5
4249 echo "${ECHO_T}$DESTDIR" >&6
4251 ###############################################################################
4253 # If we're cross-compiling, allow the user to override the tools and their
4254 # options. The configure script is oriented toward identifying the host
4255 # compiler, etc., but we need a build compiler to generate parts of the source.
4257 if test "$cross_compiling" = yes ; then
4259 # defaults that we might want to override
4260 : ${BUILD_CFLAGS:=''}
4261 : ${BUILD_CPPFLAGS:=''}
4262 : ${BUILD_LDFLAGS:=''}
4264 : ${BUILD_EXEEXT:='$x'}
4265 : ${BUILD_OBJEXT:='o'}
4267 # Check whether --with-build-cc or --without-build-cc was given.
4268 if test "${with_build_cc+set}" = set; then
4269 withval="$with_build_cc"
4272 for ac_prog in gcc cc cl
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 echo "$as_me:4276: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 if test -n "$BUILD_CC"; then
4282 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4284 ac_save_IFS=$IFS; IFS=$ac_path_separator
4286 for ac_dir in $ac_dummy; do
4288 test -z "$ac_dir" && ac_dir=.
4289 $as_executable_p "$ac_dir/$ac_word" || continue
4290 ac_cv_prog_BUILD_CC="$ac_prog"
4291 echo "$as_me:4291: found $ac_dir/$ac_word" >&5
4297 BUILD_CC=$ac_cv_prog_BUILD_CC
4298 if test -n "$BUILD_CC"; then
4299 echo "$as_me:4299: result: $BUILD_CC" >&5
4300 echo "${ECHO_T}$BUILD_CC" >&6
4302 echo "$as_me:4302: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 test -n "$BUILD_CC" && break
4310 echo "$as_me:4310: checking for native build C compiler" >&5
4311 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4312 echo "$as_me:4312: result: $BUILD_CC" >&5
4313 echo "${ECHO_T}$BUILD_CC" >&6
4315 echo "$as_me:4315: checking for native build C preprocessor" >&5
4316 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4318 # Check whether --with-build-cpp or --without-build-cpp was given.
4319 if test "${with_build_cpp+set}" = set; then
4320 withval="$with_build_cpp"
4321 BUILD_CPP="$withval"
4323 BUILD_CPP='${BUILD_CC} -E'
4325 echo "$as_me:4325: result: $BUILD_CPP" >&5
4326 echo "${ECHO_T}$BUILD_CPP" >&6
4328 echo "$as_me:4328: checking for native build C flags" >&5
4329 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4331 # Check whether --with-build-cflags or --without-build-cflags was given.
4332 if test "${with_build_cflags+set}" = set; then
4333 withval="$with_build_cflags"
4334 BUILD_CFLAGS="$withval"
4336 echo "$as_me:4336: result: $BUILD_CFLAGS" >&5
4337 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4339 echo "$as_me:4339: checking for native build C preprocessor-flags" >&5
4340 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4342 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4343 if test "${with_build_cppflags+set}" = set; then
4344 withval="$with_build_cppflags"
4345 BUILD_CPPFLAGS="$withval"
4347 echo "$as_me:4347: result: $BUILD_CPPFLAGS" >&5
4348 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4350 echo "$as_me:4350: checking for native build linker-flags" >&5
4351 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4353 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4354 if test "${with_build_ldflags+set}" = set; then
4355 withval="$with_build_ldflags"
4356 BUILD_LDFLAGS="$withval"
4358 echo "$as_me:4358: result: $BUILD_LDFLAGS" >&5
4359 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4361 echo "$as_me:4361: checking for native build linker-libraries" >&5
4362 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4364 # Check whether --with-build-libs or --without-build-libs was given.
4365 if test "${with_build_libs+set}" = set; then
4366 withval="$with_build_libs"
4367 BUILD_LIBS="$withval"
4369 echo "$as_me:4369: result: $BUILD_LIBS" >&5
4370 echo "${ECHO_T}$BUILD_LIBS" >&6
4372 # this assumes we're on Unix.
4376 : ${BUILD_CC:='${CC}'}
4378 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4379 { { echo "$as_me:4379: error: Cross-build requires two compilers.
4380 Use --with-build-cc to specify the native compiler." >&5
4381 echo "$as_me: error: Cross-build requires two compilers.
4382 Use --with-build-cc to specify the native compiler." >&2;}
4383 { (exit 1); exit 1; }; }
4387 : ${BUILD_CC:='${CC}'}
4388 : ${BUILD_CPP:='${CPP}'}
4389 : ${BUILD_CFLAGS:='${CFLAGS}'}
4390 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4391 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4392 : ${BUILD_LIBS:='${LIBS}'}
4393 : ${BUILD_EXEEXT:='$x'}
4394 : ${BUILD_OBJEXT:='o'}
4397 ###############################################################################
4399 ### Options to allow the user to specify the set of libraries which are used.
4400 ### Use "--without-normal --with-shared" to allow the default model to be
4401 ### shared, for example.
4404 echo "$as_me:4404: checking if libtool -version-number should be used" >&5
4405 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4407 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4408 if test "${enable_libtool_version+set}" = set; then
4409 enableval="$enable_libtool_version"
4410 test "$enableval" != no && enableval=yes
4411 if test "$enableval" != "yes" ; then
4412 cf_libtool_version=no
4414 cf_libtool_version=yes
4418 cf_libtool_version=yes
4421 echo "$as_me:4421: result: $cf_libtool_version" >&5
4422 echo "${ECHO_T}$cf_libtool_version" >&6
4424 if test "$cf_libtool_version" = yes ; then
4425 LIBTOOL_VERSION="-version-number"
4427 LIBTOOL_VERSION="-version-info"
4432 # common library maintenance symbols that are convenient for libtool scripts:
4433 LIB_CREATE='${AR} -cr'
4434 LIB_OBJECT='${OBJECTS}'
4438 # symbols used to prop libtool up to enable it to determine what it should be
4446 echo "$as_me:4446: checking if you want to build libraries with libtool" >&5
4447 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4449 # Check whether --with-libtool or --without-libtool was given.
4450 if test "${with_libtool+set}" = set; then
4451 withval="$with_libtool"
4452 with_libtool=$withval
4456 echo "$as_me:4456: result: $with_libtool" >&5
4457 echo "${ECHO_T}$with_libtool" >&6
4458 if test "$with_libtool" != "no"; then
4460 if test "$with_libtool" != "yes" ; then
4462 if test "x$prefix" != xNONE; then
4463 cf_path_syntax="$prefix"
4465 cf_path_syntax="$ac_default_prefix"
4468 case ".$with_libtool" in #(vi
4469 .\$\(*\)*|.\'*\'*) #(vi
4473 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4475 .\${*prefix}*|.\${*dir}*) #(vi
4476 eval with_libtool="$with_libtool"
4477 case ".$with_libtool" in #(vi
4479 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4484 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4487 { { echo "$as_me:4487: error: expected a pathname, not \"$with_libtool\"" >&5
4488 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4489 { (exit 1); exit 1; }; }
4493 LIBTOOL=$with_libtool
4495 if test -n "$ac_tool_prefix"; then
4496 for ac_prog in libtool glibtool
4498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4500 echo "$as_me:4500: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 if test -n "$LIBTOOL"; then
4506 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4508 ac_save_IFS=$IFS; IFS=$ac_path_separator
4510 for ac_dir in $ac_dummy; do
4512 test -z "$ac_dir" && ac_dir=.
4513 $as_executable_p "$ac_dir/$ac_word" || continue
4514 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4515 echo "$as_me:4515: found $ac_dir/$ac_word" >&5
4521 LIBTOOL=$ac_cv_prog_LIBTOOL
4522 if test -n "$LIBTOOL"; then
4523 echo "$as_me:4523: result: $LIBTOOL" >&5
4524 echo "${ECHO_T}$LIBTOOL" >&6
4526 echo "$as_me:4526: result: no" >&5
4527 echo "${ECHO_T}no" >&6
4530 test -n "$LIBTOOL" && break
4533 if test -z "$LIBTOOL"; then
4534 ac_ct_LIBTOOL=$LIBTOOL
4535 for ac_prog in libtool glibtool
4537 # Extract the first word of "$ac_prog", so it can be a program name with args.
4538 set dummy $ac_prog; ac_word=$2
4539 echo "$as_me:4539: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 if test -n "$ac_ct_LIBTOOL"; then
4545 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4547 ac_save_IFS=$IFS; IFS=$ac_path_separator
4549 for ac_dir in $ac_dummy; do
4551 test -z "$ac_dir" && ac_dir=.
4552 $as_executable_p "$ac_dir/$ac_word" || continue
4553 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4554 echo "$as_me:4554: found $ac_dir/$ac_word" >&5
4560 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4561 if test -n "$ac_ct_LIBTOOL"; then
4562 echo "$as_me:4562: result: $ac_ct_LIBTOOL" >&5
4563 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4565 echo "$as_me:4565: result: no" >&5
4566 echo "${ECHO_T}no" >&6
4569 test -n "$ac_ct_LIBTOOL" && break
4571 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4573 LIBTOOL=$ac_ct_LIBTOOL
4576 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4578 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.].*//'`
4580 cf_cv_libtool_version=
4582 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4584 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4587 unset ac_cv_prog_ac_ct_LIBTOOL
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in glibtool
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596 echo "$as_me:4596: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$LIBTOOL"; then
4602 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4604 ac_save_IFS=$IFS; IFS=$ac_path_separator
4606 for ac_dir in $ac_dummy; do
4608 test -z "$ac_dir" && ac_dir=.
4609 $as_executable_p "$ac_dir/$ac_word" || continue
4610 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4611 echo "$as_me:4611: found $ac_dir/$ac_word" >&5
4617 LIBTOOL=$ac_cv_prog_LIBTOOL
4618 if test -n "$LIBTOOL"; then
4619 echo "$as_me:4619: result: $LIBTOOL" >&5
4620 echo "${ECHO_T}$LIBTOOL" >&6
4622 echo "$as_me:4622: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4626 test -n "$LIBTOOL" && break
4629 if test -z "$LIBTOOL"; then
4630 ac_ct_LIBTOOL=$LIBTOOL
4631 for ac_prog in glibtool
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 echo "$as_me:4635: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test -n "$ac_ct_LIBTOOL"; then
4641 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4643 ac_save_IFS=$IFS; IFS=$ac_path_separator
4645 for ac_dir in $ac_dummy; do
4647 test -z "$ac_dir" && ac_dir=.
4648 $as_executable_p "$ac_dir/$ac_word" || continue
4649 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4650 echo "$as_me:4650: found $ac_dir/$ac_word" >&5
4656 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4657 if test -n "$ac_ct_LIBTOOL"; then
4658 echo "$as_me:4658: result: $ac_ct_LIBTOOL" >&5
4659 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4661 echo "$as_me:4661: result: no" >&5
4662 echo "${ECHO_T}no" >&6
4665 test -n "$ac_ct_LIBTOOL" && break
4667 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4669 LIBTOOL=$ac_ct_LIBTOOL
4672 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4674 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.].*//'`
4676 cf_cv_libtool_version=
4678 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4682 if test -z "$LIBTOOL" ; then
4683 { { echo "$as_me:4683: error: Cannot find libtool" >&5
4684 echo "$as_me: error: Cannot find libtool" >&2;}
4685 { (exit 1); exit 1; }; }
4687 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4688 LIB_OBJECT='${OBJECTS:.o=.lo}'
4690 LIB_CLEAN='${LIBTOOL} --mode=clean'
4691 LIB_COMPILE='${LIBTOOL} --mode=compile'
4692 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4693 LIB_INSTALL='${LIBTOOL} --mode=install'
4694 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4697 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4699 echo "$as_me:4699: checking version of $LIBTOOL" >&5
4700 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4702 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4704 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.].*//'`
4706 cf_cv_libtool_version=
4708 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4710 echo "$as_me:4710: result: $cf_cv_libtool_version" >&5
4711 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4712 if test -z "$cf_cv_libtool_version" ; then
4713 { { echo "$as_me:4713: error: This is not GNU libtool" >&5
4714 echo "$as_me: error: This is not GNU libtool" >&2;}
4715 { (exit 1); exit 1; }; }
4718 { { echo "$as_me:4718: error: GNU libtool has not been found" >&5
4719 echo "$as_me: error: GNU libtool has not been found" >&2;}
4720 { (exit 1); exit 1; }; }
4723 # special hack to add -no-undefined (which libtool should do for itself)
4725 case "$cf_cv_system_name" in #(vi
4726 cygwin*|msys*|mingw32*|uwin*|aix[4-7]) #(vi
4727 LT_UNDEF=-no-undefined
4731 # special hack to add --tag option for C++ compiler
4732 case $cf_cv_libtool_version in #(vi
4733 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4734 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4735 LIBTOOL="$LIBTOOL --tag=CC"
4738 LIBTOOL_CXX="$LIBTOOL"
4746 test -z "$LIBTOOL" && ECHO_LT=
4748 if test "$with_libtool" != "no" ; then
4750 cf_list_models="$cf_list_models libtool"
4754 echo "$as_me:4754: checking if you want to build shared libraries" >&5
4755 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4757 # Check whether --with-shared or --without-shared was given.
4758 if test "${with_shared+set}" = set; then
4759 withval="$with_shared"
4760 with_shared=$withval
4764 echo "$as_me:4764: result: $with_shared" >&5
4765 echo "${ECHO_T}$with_shared" >&6
4766 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
4768 echo "$as_me:4768: checking if you want to build static libraries" >&5
4769 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4771 # Check whether --with-normal or --without-normal was given.
4772 if test "${with_normal+set}" = set; then
4773 withval="$with_normal"
4774 with_normal=$withval
4778 echo "$as_me:4778: result: $with_normal" >&5
4779 echo "${ECHO_T}$with_normal" >&6
4780 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
4782 echo "$as_me:4782: checking if you want to build debug libraries" >&5
4783 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4785 # Check whether --with-debug or --without-debug was given.
4786 if test "${with_debug+set}" = set; then
4787 withval="$with_debug"
4792 echo "$as_me:4792: result: $with_debug" >&5
4793 echo "${ECHO_T}$with_debug" >&6
4794 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
4796 echo "$as_me:4796: checking if you want to build profiling libraries" >&5
4797 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4799 # Check whether --with-profile or --without-profile was given.
4800 if test "${with_profile+set}" = set; then
4801 withval="$with_profile"
4802 with_profile=$withval
4806 echo "$as_me:4806: result: $with_profile" >&5
4807 echo "${ECHO_T}$with_profile" >&6
4808 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
4812 if test "X$cf_with_cxx_binding" != Xno; then
4813 if test "x$with_shared" = "xyes"; then
4814 echo "$as_me:4814: checking if you want to build C++ shared libraries" >&5
4815 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
4817 # Check whether --with-cxx-shared or --without-cxx-shared was given.
4818 if test "${with_cxx_shared+set}" = set; then
4819 withval="$with_cxx_shared"
4820 with_shared_cxx=$withval
4824 echo "$as_me:4824: result: $with_shared_cxx" >&5
4825 echo "${ECHO_T}$with_shared_cxx" >&6
4829 ###############################################################################
4831 echo "$as_me:4831: checking for specified models" >&5
4832 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4833 test -z "$cf_list_models" && cf_list_models=normal
4834 test "$with_libtool" != "no" && cf_list_models=libtool
4835 echo "$as_me:4835: result: $cf_list_models" >&5
4836 echo "${ECHO_T}$cf_list_models" >&6
4838 ### Use the first model as the default, and save its suffix for use in building
4839 ### up test-applications.
4840 echo "$as_me:4840: checking for default model" >&5
4841 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4842 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4843 echo "$as_me:4843: result: $DFT_LWR_MODEL" >&5
4844 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4846 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4857 echo "$as_me:4857: checking if you want to have a library-prefix" >&5
4858 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4860 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4861 if test "${with_lib_prefix+set}" = set; then
4862 withval="$with_lib_prefix"
4863 with_lib_prefix=$withval
4865 with_lib_prefix=auto
4867 echo "$as_me:4867: result: $with_lib_prefix" >&5
4868 echo "${ECHO_T}$with_lib_prefix" >&6
4870 if test $with_lib_prefix = auto
4873 case $cf_cv_system_name in #(vi
4880 cf_prefix=$LIB_PREFIX
4882 elif test $with_lib_prefix = no
4886 LIB_PREFIX=$with_lib_prefix
4891 echo "$as_me:4891: checking for PATH separator" >&5
4892 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
4893 case $cf_cv_system_name in
4894 os2*) PATH_SEPARATOR=';' ;;
4895 *) ${PATH_SEPARATOR:=':'} ;;
4898 echo "$as_me:4898: result: $PATH_SEPARATOR" >&5
4899 echo "${ECHO_T}$PATH_SEPARATOR" >&6
4901 ###############################################################################
4903 echo "$as_me:4903: checking if you want to build a separate terminfo library" >&5
4904 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4906 # Check whether --with-termlib or --without-termlib was given.
4907 if test "${with_termlib+set}" = set; then
4908 withval="$with_termlib"
4909 with_termlib=$withval
4913 echo "$as_me:4913: result: $with_termlib" >&5
4914 echo "${ECHO_T}$with_termlib" >&6
4916 echo "$as_me:4916: checking if you want to build a separate tic library" >&5
4917 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4919 # Check whether --with-ticlib or --without-ticlib was given.
4920 if test "${with_ticlib+set}" = set; then
4921 withval="$with_ticlib"
4922 with_ticlib=$withval
4926 echo "$as_me:4926: result: $with_ticlib" >&5
4927 echo "${ECHO_T}$with_ticlib" >&6
4929 ### Checks for special libraries, must be done up-front.
4932 echo "$as_me:4932: checking if you want to link with the GPM mouse library" >&5
4933 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4935 # Check whether --with-gpm or --without-gpm was given.
4936 if test "${with_gpm+set}" = set; then
4942 echo "$as_me:4942: result: $with_gpm" >&5
4943 echo "${ECHO_T}$with_gpm" >&6
4945 if test "$with_gpm" != no ; then
4946 echo "$as_me:4946: checking for gpm.h" >&5
4947 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4948 if test "${ac_cv_header_gpm_h+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 cat >conftest.$ac_ext <<_ACEOF
4952 #line 4952 "configure"
4953 #include "confdefs.h"
4956 if { (eval echo "$as_me:4956: \"$ac_cpp conftest.$ac_ext\"") >&5
4957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 egrep -v '^ *\+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:4962: \$? = $ac_status" >&5
4963 (exit $ac_status); } >/dev/null; then
4964 if test -s conftest.err; then
4965 ac_cpp_err=$ac_c_preproc_warn_flag
4972 if test -z "$ac_cpp_err"; then
4973 ac_cv_header_gpm_h=yes
4975 echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 ac_cv_header_gpm_h=no
4979 rm -f conftest.err conftest.$ac_ext
4981 echo "$as_me:4981: result: $ac_cv_header_gpm_h" >&5
4982 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4983 if test $ac_cv_header_gpm_h = yes; then
4985 cat >>confdefs.h <<\EOF
4986 #define HAVE_GPM_H 1
4989 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4990 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4992 echo "${as_me:-configure}:4992: testing assuming we really have GPM library ..." 1>&5
4994 cat >>confdefs.h <<\EOF
4995 #define HAVE_LIBGPM 1
4999 echo "$as_me:4999: checking for Gpm_Open in -lgpm" >&5
5000 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5001 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 ac_check_lib_save_LIBS=$LIBS
5006 cat >conftest.$ac_ext <<_ACEOF
5007 #line 5007 "configure"
5008 #include "confdefs.h"
5010 /* Override any gcc2 internal prototype to avoid an error. */
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5025 rm -f conftest.$ac_objext conftest$ac_exeext
5026 if { (eval echo "$as_me:5026: \"$ac_link\"") >&5
5027 (eval $ac_link) 2>&5
5029 echo "$as_me:5029: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -s conftest$ac_exeext'
5032 { (eval echo "$as_me:5032: \"$ac_try\"") >&5
5035 echo "$as_me:5035: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 ac_cv_lib_gpm_Gpm_Open=yes
5039 echo "$as_me: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5041 ac_cv_lib_gpm_Gpm_Open=no
5043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5044 LIBS=$ac_check_lib_save_LIBS
5046 echo "$as_me:5046: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5047 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5048 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5052 { { echo "$as_me:5052: error: Cannot link with GPM library" >&5
5053 echo "$as_me: error: Cannot link with GPM library" >&2;}
5054 { (exit 1); exit 1; }; }
5062 test "$with_gpm" != maybe && { echo "$as_me:5062: WARNING: Cannot find GPM header" >&5
5063 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5070 if test "$with_gpm" != no ; then
5071 echo "$as_me:5071: checking if you want to load GPM dynamically" >&5
5072 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5074 # Check whether --with-dlsym or --without-dlsym was given.
5075 if test "${with_dlsym+set}" = set; then
5076 withval="$with_dlsym"
5081 echo "$as_me:5081: result: $with_dlsym" >&5
5082 echo "${ECHO_T}$with_dlsym" >&6
5083 if test "x$with_dlsym" = xyes ; then
5086 echo "$as_me:5086: checking for dlsym" >&5
5087 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5088 if test "${ac_cv_func_dlsym+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 cat >conftest.$ac_ext <<_ACEOF
5092 #line 5092 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char dlsym (); below. */
5097 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5115 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (eval echo "$as_me:5123: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5126 echo "$as_me:5126: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -s conftest$ac_exeext'
5129 { (eval echo "$as_me:5129: \"$ac_try\"") >&5
5132 echo "$as_me:5132: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_func_dlsym=yes
5136 echo "$as_me: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5142 echo "$as_me:5142: result: $ac_cv_func_dlsym" >&5
5143 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5144 if test $ac_cv_func_dlsym = yes; then
5149 echo "$as_me:5149: checking for dlsym in -ldl" >&5
5150 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5151 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 ac_check_lib_save_LIBS=$LIBS
5156 cat >conftest.$ac_ext <<_ACEOF
5157 #line 5157 "configure"
5158 #include "confdefs.h"
5160 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5175 rm -f conftest.$ac_objext conftest$ac_exeext
5176 if { (eval echo "$as_me:5176: \"$ac_link\"") >&5
5177 (eval $ac_link) 2>&5
5179 echo "$as_me:5179: \$? = $ac_status" >&5
5180 (exit $ac_status); } &&
5181 { ac_try='test -s conftest$ac_exeext'
5182 { (eval echo "$as_me:5182: \"$ac_try\"") >&5
5185 echo "$as_me:5185: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_cv_lib_dl_dlsym=yes
5189 echo "$as_me: failed program was:" >&5
5190 cat conftest.$ac_ext >&5
5191 ac_cv_lib_dl_dlsym=no
5193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5194 LIBS=$ac_check_lib_save_LIBS
5196 echo "$as_me:5196: result: $ac_cv_lib_dl_dlsym" >&5
5197 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5198 if test $ac_cv_lib_dl_dlsym = yes; then
5206 if test "$cf_have_dlsym" = yes ; then
5207 test "$cf_have_libdl" = yes &&
5209 # Filter out duplicates - this happens with badly-designed ".pc" files...
5210 for cf_add_1lib in $LIBS
5212 for cf_add_2lib in $cf_add_libs
5214 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5220 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5224 echo "$as_me:5224: checking whether able to link to dl*() functions" >&5
5225 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5226 cat >conftest.$ac_ext <<_ACEOF
5227 #line 5227 "configure"
5228 #include "confdefs.h"
5235 if ((obj = dlopen("filename", 0)) != 0) {
5236 if (dlsym(obj, "symbolname") == 0) {
5244 rm -f conftest.$ac_objext conftest$ac_exeext
5245 if { (eval echo "$as_me:5245: \"$ac_link\"") >&5
5246 (eval $ac_link) 2>&5
5248 echo "$as_me:5248: \$? = $ac_status" >&5
5249 (exit $ac_status); } &&
5250 { ac_try='test -s conftest$ac_exeext'
5251 { (eval echo "$as_me:5251: \"$ac_try\"") >&5
5254 echo "$as_me:5254: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5257 cat >>confdefs.h <<\EOF
5258 #define HAVE_LIBDL 1
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5265 { { echo "$as_me:5265: error: Cannot link test program for libdl" >&5
5266 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5267 { (exit 1); exit 1; }; }
5269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5270 echo "$as_me:5270: result: ok" >&5
5271 echo "${ECHO_T}ok" >&6
5273 { { echo "$as_me:5273: error: Cannot find dlsym function" >&5
5274 echo "$as_me: error: Cannot find dlsym function" >&2;}
5275 { (exit 1); exit 1; }; }
5278 if test "x$with_gpm" != xyes ; then
5279 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5281 echo "${as_me:-configure}:5281: testing assuming soname for gpm is $with_gpm ..." 1>&5
5283 cf_cv_gpm_soname="$with_gpm"
5286 echo "$as_me:5286: checking for soname of gpm library" >&5
5287 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5288 if test "${cf_cv_gpm_soname+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 cf_cv_gpm_soname=unknown
5293 if test "$cross_compiling" != yes ; then
5294 cat >conftest.$ac_ext <<CF_EOF
5298 if (Gpm_Open(0,0)) Gpm_Close();
5299 ${cf_cv_main_return:-return}(0);
5302 cf_save_LIBS="$LIBS"
5305 # Filter out duplicates - this happens with badly-designed ".pc" files...
5306 for cf_add_1lib in $LIBS
5308 for cf_add_2lib in $cf_add_libs
5310 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5316 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5320 if { (eval echo "$as_me:5320: \"$ac_compile\"") >&5
5321 (eval $ac_compile) 2>&5
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit $ac_status); } ; then
5325 if { (eval echo "$as_me:5325: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>&5
5328 echo "$as_me:5328: \$? = $ac_status" >&5
5329 (exit $ac_status); } ; then
5330 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5331 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5335 LIBS="$cf_save_LIBS"
5339 echo "$as_me:5339: result: $cf_cv_gpm_soname" >&5
5340 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5343 test "$cf_cv_gpm_soname" != "unknown" &&
5344 cat >>confdefs.h <<EOF
5345 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5348 SHLIB_LIST="-ldl $SHLIB_LIST"
5350 SHLIB_LIST="-lgpm $SHLIB_LIST"
5353 # Filter out duplicates - this happens with badly-designed ".pc" files...
5354 for cf_add_1lib in $TEST_LIBS
5356 for cf_add_2lib in $cf_add_libs
5358 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5364 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5366 TEST_LIBS="$cf_add_libs"
5370 cat >>confdefs.h <<\EOF
5371 #define HAVE_LIBGPM 1
5374 echo "$as_me:5374: checking for Gpm_Wgetch in -lgpm" >&5
5375 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5376 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 ac_check_lib_save_LIBS=$LIBS
5381 cat >conftest.$ac_ext <<_ACEOF
5382 #line 5382 "configure"
5383 #include "confdefs.h"
5385 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (eval echo "$as_me:5401: \"$ac_link\"") >&5
5402 (eval $ac_link) 2>&5
5404 echo "$as_me:5404: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -s conftest$ac_exeext'
5407 { (eval echo "$as_me:5407: \"$ac_try\"") >&5
5410 echo "$as_me:5410: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_cv_lib_gpm_Gpm_Wgetch=yes
5414 echo "$as_me: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5416 ac_cv_lib_gpm_Gpm_Wgetch=no
5418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5419 LIBS=$ac_check_lib_save_LIBS
5421 echo "$as_me:5421: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5422 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5423 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5425 echo "$as_me:5425: checking if GPM is weakly bound to curses library" >&5
5426 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5427 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 cf_cv_check_gpm_wgetch=unknown
5432 if test "$cross_compiling" != yes ; then
5434 cat >conftest.$ac_ext <<CF_EOF
5439 ${cf_cv_main_return:-return}(0);
5443 cf_save_LIBS="$LIBS"
5444 # This only works if we can look at the symbol table. If a shared
5445 # library is stripped for install, we cannot use that. So we're forced
5446 # to rely on the static library, noting that some packagers may not
5448 LIBS="-static -lgpm -dynamic $LIBS"
5449 if { (eval echo "$as_me:5449: \"$ac_compile\"") >&5
5450 (eval $ac_compile) 2>&5
5452 echo "$as_me:5452: \$? = $ac_status" >&5
5453 (exit $ac_status); } ; then
5454 if { (eval echo "$as_me:5454: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>&5
5457 echo "$as_me:5457: \$? = $ac_status" >&5
5458 (exit $ac_status); } ; then
5459 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5460 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5461 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5465 LIBS="$cf_save_LIBS"
5469 echo "$as_me:5469: result: $cf_cv_check_gpm_wgetch" >&5
5470 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5472 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5473 { echo "$as_me:5473: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5474 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5481 # not everyone has "test -c"
5482 if test -c /dev/sysmouse 2>/dev/null ; then
5483 echo "$as_me:5483: checking if you want to use sysmouse" >&5
5484 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5486 # Check whether --with-sysmouse or --without-sysmouse was given.
5487 if test "${with_sysmouse+set}" = set; then
5488 withval="$with_sysmouse"
5489 cf_with_sysmouse=$withval
5491 cf_with_sysmouse=maybe
5493 if test "$cf_with_sysmouse" != no ; then
5494 cat >conftest.$ac_ext <<_ACEOF
5495 #line 5495 "configure"
5496 #include "confdefs.h"
5498 #include <osreldate.h>
5499 #if (__FreeBSD_version >= 400017)
5500 #include <sys/consio.h>
5501 #include <sys/fbio.h>
5503 #include <machine/console.h>
5510 struct mouse_info the_mouse;
5511 ioctl(0, CONS_MOUSECTL, &the_mouse);
5517 rm -f conftest.$ac_objext
5518 if { (eval echo "$as_me:5518: \"$ac_compile\"") >&5
5519 (eval $ac_compile) 2>&5
5521 echo "$as_me:5521: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try='test -s conftest.$ac_objext'
5524 { (eval echo "$as_me:5524: \"$ac_try\"") >&5
5527 echo "$as_me:5527: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 cf_with_sysmouse=yes
5531 echo "$as_me: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5535 rm -f conftest.$ac_objext conftest.$ac_ext
5537 echo "$as_me:5537: result: $cf_with_sysmouse" >&5
5538 echo "${ECHO_T}$cf_with_sysmouse" >&6
5539 test "$cf_with_sysmouse" = yes &&
5540 cat >>confdefs.h <<\EOF
5541 #define USE_SYSMOUSE 1
5546 if test X"$CC_G_OPT" = X"" ; then
5548 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5551 if test X"$CXX_G_OPT" = X"" ; then
5553 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5556 echo "$as_me:5556: checking for default loader flags" >&5
5557 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5558 case $DFT_LWR_MODEL in
5559 libtool) LD_MODEL='' ;;
5560 normal) LD_MODEL='' ;;
5561 debug) LD_MODEL=$CC_G_OPT ;;
5562 profile) LD_MODEL='-pg';;
5563 shared) LD_MODEL='' ;;
5565 echo "$as_me:5565: result: $LD_MODEL" >&5
5566 echo "${ECHO_T}$LD_MODEL" >&6
5568 case $DFT_LWR_MODEL in
5571 echo "$as_me:5571: checking if rpath option should be used" >&5
5572 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5574 # Check whether --enable-rpath or --disable-rpath was given.
5575 if test "${enable_rpath+set}" = set; then
5576 enableval="$enable_rpath"
5577 cf_cv_enable_rpath=$enableval
5579 cf_cv_enable_rpath=no
5581 echo "$as_me:5581: result: $cf_cv_enable_rpath" >&5
5582 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5584 echo "$as_me:5584: checking if shared libraries should be relinked during install" >&5
5585 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5587 # Check whether --enable-relink or --disable-relink was given.
5588 if test "${enable_relink+set}" = set; then
5589 enableval="$enable_relink"
5590 cf_cv_do_relink=$enableval
5594 echo "$as_me:5594: result: $cf_cv_do_relink" >&5
5595 echo "${ECHO_T}$cf_cv_do_relink" >&6
5599 # we will build libraries one-level down.
5603 echo "$as_me:5603: checking for an rpath option" >&5
5604 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5605 case $cf_cv_system_name in #(vi
5607 if test "$GCC" = yes; then
5608 LD_RPATH_OPT="-Wl,-rpath,"
5610 LD_RPATH_OPT="-rpath "
5613 linux*|gnu*|k*bsd*-gnu) #(vi
5614 LD_RPATH_OPT="-Wl,-rpath,"
5616 openbsd[2-9].*|mirbsd*) #(vi
5617 LD_RPATH_OPT="-Wl,-rpath,"
5619 dragonfly*|freebsd*) #(vi
5620 LD_RPATH_OPT="-rpath "
5623 LD_RPATH_OPT="-Wl,-rpath,"
5626 LD_RPATH_OPT="-rpath "
5634 echo "$as_me:5634: result: $LD_RPATH_OPT" >&5
5635 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5637 case "x$LD_RPATH_OPT" in #(vi
5639 echo "$as_me:5639: checking if we need a space after rpath option" >&5
5640 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5641 cf_save_LIBS="$LIBS"
5643 cf_add_libs="${LD_RPATH_OPT}$libdir"
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 cat >conftest.$ac_ext <<_ACEOF
5660 #line 5660 "configure"
5661 #include "confdefs.h"
5671 rm -f conftest.$ac_objext conftest$ac_exeext
5672 if { (eval echo "$as_me:5672: \"$ac_link\"") >&5
5673 (eval $ac_link) 2>&5
5675 echo "$as_me:5675: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -s conftest$ac_exeext'
5678 { (eval echo "$as_me:5678: \"$ac_try\"") >&5
5681 echo "$as_me:5681: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5685 echo "$as_me: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5690 LIBS="$cf_save_LIBS"
5691 echo "$as_me:5691: result: $cf_rpath_space" >&5
5692 echo "${ECHO_T}$cf_rpath_space" >&6
5693 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5701 INSTALL_LIB="-m 644"
5702 : ${rel_builddir:=.}
5708 cf_cv_do_symlinks=no
5710 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5712 echo "$as_me:5712: checking if release/abi version should be used for shared libs" >&5
5713 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5715 # Check whether --with-shlib-version or --without-shlib-version was given.
5716 if test "${with_shlib_version+set}" = set; then
5717 withval="$with_shlib_version"
5718 test -z "$withval" && withval=auto
5719 case $withval in #(vi
5721 cf_cv_shlib_version=auto
5723 rel|abi|auto|no) #(vi
5724 cf_cv_shlib_version=$withval
5727 { { echo "$as_me:5727: error: option value must be one of: rel, abi, auto or no" >&5
5728 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5729 { (exit 1); exit 1; }; }
5734 cf_cv_shlib_version=auto
5736 echo "$as_me:5736: result: $cf_cv_shlib_version" >&5
5737 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5742 # Some less-capable ports of gcc support only -fpic
5744 if test "$GCC" = yes
5746 echo "$as_me:5746: checking which $CC option to use" >&5
5747 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5748 cf_save_CFLAGS="$CFLAGS"
5749 for CC_SHARED_OPTS in -fPIC -fpic ''
5751 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5752 cat >conftest.$ac_ext <<_ACEOF
5753 #line 5753 "configure"
5754 #include "confdefs.h"
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:5765: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>&5
5768 echo "$as_me:5768: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -s conftest.$ac_objext'
5771 { (eval echo "$as_me:5771: \"$ac_try\"") >&5
5774 echo "$as_me:5774: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5778 echo "$as_me: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 rm -f conftest.$ac_objext conftest.$ac_ext
5783 echo "$as_me:5783: result: $CC_SHARED_OPTS" >&5
5784 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5785 CFLAGS="$cf_save_CFLAGS"
5788 cf_cv_shlib_version_infix=no
5790 case $cf_cv_system_name in #(vi
5791 aix4.3-9*|aix[5-7]*) #(vi
5792 if test "$GCC" = yes; then
5794 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5796 # CC_SHARED_OPTS='-qpic=large -G'
5797 # perhaps "-bM:SRE -bnoentry -bexpall"
5798 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5802 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5806 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5807 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5808 cf_cv_shlib_version=cygdll
5809 cf_cv_shlib_version_infix=cygdll
5812 cat >mk_shared_lib.sh <<-CF_EOF
5815 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5818 Linking shared library
5819 ** SHARED_LIB \$SHARED_LIB
5820 ** IMPORT_LIB \$IMPORT_LIB
5822 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5824 chmod +x mk_shared_lib.sh
5828 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5829 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5830 cf_cv_shlib_version=msysdll
5831 cf_cv_shlib_version_infix=msysdll
5834 cat >mk_shared_lib.sh <<-CF_EOF
5837 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5840 Linking shared library
5841 ** SHARED_LIB \$SHARED_LIB
5842 ** IMPORT_LIB \$IMPORT_LIB
5844 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5846 chmod +x mk_shared_lib.sh
5849 cf_try_cflags="no-cpp-precomp"
5850 CC_SHARED_OPTS="-dynamic"
5851 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5852 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5853 cf_cv_shlib_version_infix=yes
5854 echo "$as_me:5854: checking if ld -search_paths_first works" >&5
5855 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5856 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 cf_save_LDFLAGS=$LDFLAGS
5861 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5862 cat >conftest.$ac_ext <<_ACEOF
5863 #line 5863 "configure"
5864 #include "confdefs.h"
5874 rm -f conftest.$ac_objext conftest$ac_exeext
5875 if { (eval echo "$as_me:5875: \"$ac_link\"") >&5
5876 (eval $ac_link) 2>&5
5878 echo "$as_me:5878: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:5881: \"$ac_try\"") >&5
5884 echo "$as_me:5884: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 cf_cv_ldflags_search_paths_first=yes
5888 echo "$as_me: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5890 cf_cv_ldflags_search_paths_first=no
5892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5893 LDFLAGS=$cf_save_LDFLAGS
5895 echo "$as_me:5895: result: $cf_cv_ldflags_search_paths_first" >&5
5896 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5897 if test $cf_cv_ldflags_search_paths_first = yes; then
5898 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5902 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5903 if test "$GCC" != yes; then
5906 MK_SHARED_LIB='${LD} -b -o $@'
5907 INSTALL_LIB="-m 555"
5910 # (tested with gcc 2.7.2 -- I don't have c89)
5911 if test "$GCC" = yes; then
5912 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5915 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5917 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5918 # HP-UX shared libraries must be executable, and should be
5919 # readonly to exploit a quirk in the memory manager.
5920 INSTALL_LIB="-m 555"
5923 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5924 if test "$cf_cv_shlib_version" = rel; then
5925 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5927 cf_shared_soname='`basename `'
5930 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5933 if test "$cf_cv_enable_rpath" = yes ; then
5934 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5936 # tested with IRIX 5.2 and 'cc'.
5937 if test "$GCC" != yes; then
5938 CC_SHARED_OPTS='-KPIC'
5939 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5941 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5943 cf_cv_rm_so_locs=yes
5945 linux*|gnu*|k*bsd*-gnu) #(vi
5946 if test "$DFT_LWR_MODEL" = "shared" ; then
5947 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5948 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5950 if test "$cf_cv_enable_rpath" = yes ; then
5951 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5954 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5955 if test "$cf_cv_shlib_version" = rel; then
5956 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5958 cf_cv_shared_soname='`basename $@`'
5961 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5964 cf_cv_shlib_version=mingw
5965 cf_cv_shlib_version_infix=mingw
5968 if test "$DFT_LWR_MODEL" = "shared" ; then
5969 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
5970 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5971 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
5974 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5975 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5976 cat >mk_shared_lib.sh <<-CF_EOF
5979 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5982 Linking shared library
5983 ** SHARED_LIB \$SHARED_LIB
5984 ** IMPORT_LIB \$IMPORT_LIB
5986 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5988 chmod +x mk_shared_lib.sh
5990 openbsd[2-9].*|mirbsd*) #(vi
5991 if test "$DFT_LWR_MODEL" = "shared" ; then
5992 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5993 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5995 if test "$cf_cv_enable_rpath" = yes ; then
5996 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5998 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6000 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6001 if test "$cf_cv_shlib_version" = rel; then
6002 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6004 cf_cv_shared_soname='`basename $@`'
6007 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6009 nto-qnx*|openbsd*|freebsd[12].*) #(vi
6010 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6011 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6012 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6014 dragonfly*|freebsd*) #(vi
6015 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6016 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6017 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6018 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6019 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6022 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6023 if test "$cf_cv_shlib_version" = rel; then
6024 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6026 cf_cv_shared_soname='`basename $@`'
6029 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
6032 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6033 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6034 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6035 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6036 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6037 if test "$cf_cv_shlib_version" = auto; then
6038 if test -f /usr/libexec/ld.elf_so; then
6039 cf_cv_shlib_version=abi
6041 cf_cv_shlib_version=rel
6045 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6046 if test "$cf_cv_shlib_version" = rel; then
6047 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6049 cf_cv_shared_soname='`basename $@`'
6052 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6054 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6058 # tested with OSF/1 V3.2 and 'cc'
6059 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6060 # link with shared libs).
6061 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6062 case $host_os in #(vi
6064 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6067 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6068 if test "$DFT_LWR_MODEL" = "shared" ; then
6069 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6070 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6072 cf_cv_rm_so_locs=yes
6074 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
6075 # tested with osr5.0.5
6076 if test "$GCC" != yes; then
6077 CC_SHARED_OPTS='-belf -KPIC'
6079 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6080 if test "$cf_cv_enable_rpath" = yes ; then
6081 # only way is to set LD_RUN_PATH but no switch for it
6084 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6085 LINK_PROGS='LD_RUN_PATH=${libdir}'
6086 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6089 # tested with SunOS 4.1.1 and gcc 2.7.0
6090 if test "$GCC" != yes; then
6091 CC_SHARED_OPTS='-KPIC'
6093 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6094 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6097 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6098 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6099 if test "$DFT_LWR_MODEL" = "shared" ; then
6100 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6101 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6103 if test "$cf_cv_enable_rpath" = yes ; then
6104 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6107 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6108 if test "$cf_cv_shlib_version" = rel; then
6109 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6111 cf_cv_shared_soname='`basename $@`'
6114 if test "$GCC" != yes; then
6115 cf_save_CFLAGS="$CFLAGS"
6116 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6118 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6119 cat >conftest.$ac_ext <<_ACEOF
6120 #line 6120 "configure"
6121 #include "confdefs.h"
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:6132: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>&5
6135 echo "$as_me:6135: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -s conftest.$ac_objext'
6138 { (eval echo "$as_me:6138: \"$ac_try\"") >&5
6141 echo "$as_me:6141: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6145 echo "$as_me: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6148 rm -f conftest.$ac_objext conftest.$ac_ext
6150 CFLAGS="$cf_save_CFLAGS"
6151 CC_SHARED_OPTS=$cf_shared_opts
6152 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6154 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6157 sysv5uw7*|unix_sv*) #(vi
6158 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6159 if test "$GCC" != yes; then
6160 CC_SHARED_OPTS='-KPIC'
6162 MK_SHARED_LIB='${LD} -d y -G -o $@'
6165 CC_SHARED_OPTS='unknown'
6166 MK_SHARED_LIB='echo unknown'
6170 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6171 case "$cf_cv_shlib_version" in #(vi
6173 case "$MK_SHARED_LIB" in #(vi
6175 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6178 { echo "$as_me:6178: WARNING: ignored --with-shlib-version" >&5
6179 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6185 if test -n "$cf_try_cflags"
6187 cat > conftest.$ac_ext <<EOF
6188 #line 6188 "${as_me:-configure}"
6190 int main(int argc, char *argv[])
6193 return (argv[argc-1] == 0) ;
6196 cf_save_CFLAGS="$CFLAGS"
6197 for cf_opt in $cf_try_cflags
6199 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6200 echo "$as_me:6200: checking if CFLAGS option -$cf_opt works" >&5
6201 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6202 if { (eval echo "$as_me:6202: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>&5
6205 echo "$as_me:6205: \$? = $ac_status" >&5
6206 (exit $ac_status); }; then
6207 echo "$as_me:6207: result: yes" >&5
6208 echo "${ECHO_T}yes" >&6
6209 cf_save_CFLAGS="$CFLAGS"
6211 echo "$as_me:6211: result: no" >&5
6212 echo "${ECHO_T}no" >&6
6215 CFLAGS="$cf_save_CFLAGS"
6218 # RPATH_LIST is a colon-separated list of directories
6219 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6220 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6222 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6224 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6226 echo "${as_me:-configure}:6226: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6228 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6230 echo "${as_me:-configure}:6230: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6232 if test "$CC_SHARED_OPTS" = "unknown"; then
6233 for model in $cf_list_models; do
6234 if test "$model" = "shared"; then
6235 { { echo "$as_me:6235: error: Shared libraries are not supported in this version" >&5
6236 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6237 { (exit 1); exit 1; }; }
6242 # pretend that ncurses==ncursesw==ncursest
6243 echo "$as_me:6243: checking if you want to disable library suffixes" >&5
6244 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6246 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6247 if test "${enable_lib_suffixes+set}" = set; then
6248 enableval="$enable_lib_suffixes"
6249 disable_lib_suffixes=$enableval
6251 disable_lib_suffixes=no
6253 echo "$as_me:6253: result: $disable_lib_suffixes" >&5
6254 echo "${ECHO_T}$disable_lib_suffixes" >&6
6256 ### If we're building with rpath, try to link non-standard libs that way too.
6257 if test "$DFT_LWR_MODEL" = "shared"; then
6259 echo "$as_me:6259: checking if rpath-hack should be disabled" >&5
6260 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6262 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6263 if test "${enable_rpath_hack+set}" = set; then
6264 enableval="$enable_rpath_hack"
6265 test "$enableval" != no && enableval=yes
6266 if test "$enableval" != "yes" ; then
6267 cf_disable_rpath_hack=yes
6269 cf_disable_rpath_hack=no
6273 cf_disable_rpath_hack=no
6276 echo "$as_me:6276: result: $cf_disable_rpath_hack" >&5
6277 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6278 if test "$cf_disable_rpath_hack" = no ; then
6280 echo "$as_me:6280: checking for updated LDFLAGS" >&5
6281 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6282 if test -n "$LD_RPATH_OPT" ; then
6283 echo "$as_me:6283: result: maybe" >&5
6284 echo "${ECHO_T}maybe" >&6
6288 # Extract the first word of "$ac_prog", so it can be a program name with args.
6289 set dummy $ac_prog; ac_word=$2
6290 echo "$as_me:6290: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6292 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 if test -n "$cf_ldd_prog"; then
6296 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6298 ac_save_IFS=$IFS; IFS=$ac_path_separator
6300 for ac_dir in $ac_dummy; do
6302 test -z "$ac_dir" && ac_dir=.
6303 $as_executable_p "$ac_dir/$ac_word" || continue
6304 ac_cv_prog_cf_ldd_prog="$ac_prog"
6305 echo "$as_me:6305: found $ac_dir/$ac_word" >&5
6311 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6312 if test -n "$cf_ldd_prog"; then
6313 echo "$as_me:6313: result: $cf_ldd_prog" >&5
6314 echo "${ECHO_T}$cf_ldd_prog" >&6
6316 echo "$as_me:6316: result: no" >&5
6317 echo "${ECHO_T}no" >&6
6320 test -n "$cf_ldd_prog" && break
6322 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6324 cf_rpath_list="/usr/lib /lib"
6325 if test "$cf_ldd_prog" != no
6329 cat >conftest.$ac_ext <<_ACEOF
6330 #line 6330 "configure"
6331 #include "confdefs.h"
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:6342: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>&5
6345 echo "$as_me:6345: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:6348: \"$ac_try\"") >&5
6351 echo "$as_me:6351: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6354 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6356 echo "$as_me: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6361 # If we passed the link-test, but get a "not found" on a given library,
6362 # this could be due to inept reconfiguration of gcc to make it only
6363 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6364 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6365 # /usr/local libraries.
6366 if test -n "$cf_rpath_oops"
6368 for cf_rpath_src in $cf_rpath_oops
6370 for cf_rpath_dir in \
6375 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6377 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6379 echo "${as_me:-configure}:6379: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6381 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6389 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6391 echo "${as_me:-configure}:6391: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6393 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6395 echo "${as_me:-configure}:6395: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6398 for cf_rpath_src in $LDFLAGS
6400 case $cf_rpath_src in #(vi
6403 # check if this refers to a directory which we will ignore
6405 if test -n "$cf_rpath_list"
6407 for cf_rpath_item in $cf_rpath_list
6409 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6417 if test "$cf_rpath_skip" = no
6419 # transform the option
6420 if test "$LD_RPATH_OPT" = "-R " ; then
6421 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6423 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6426 # if we have not already added this, add it now
6427 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6428 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6430 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6432 echo "${as_me:-configure}:6432: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6434 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6439 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6441 LDFLAGS=$cf_rpath_dst
6443 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6445 echo "${as_me:-configure}:6445: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6447 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6449 echo "${as_me:-configure}:6449: testing ...checking LIBS $LIBS ..." 1>&5
6452 for cf_rpath_src in $LIBS
6454 case $cf_rpath_src in #(vi
6457 # check if this refers to a directory which we will ignore
6459 if test -n "$cf_rpath_list"
6461 for cf_rpath_item in $cf_rpath_list
6463 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6471 if test "$cf_rpath_skip" = no
6473 # transform the option
6474 if test "$LD_RPATH_OPT" = "-R " ; then
6475 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6477 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6480 # if we have not already added this, add it now
6481 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6482 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6484 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6486 echo "${as_me:-configure}:6486: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6488 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6493 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6497 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6499 echo "${as_me:-configure}:6499: testing ...checked LIBS $LIBS ..." 1>&5
6501 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6503 echo "${as_me:-configure}:6503: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6506 echo "$as_me:6506: result: no" >&5
6507 echo "${ECHO_T}no" >&6
6514 ###############################################################################
6516 ### use option --disable-overwrite to leave out the link to -lcurses
6517 echo "$as_me:6517: checking if you wish to install ncurses overwriting curses" >&5
6518 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6520 # Check whether --enable-overwrite or --disable-overwrite was given.
6521 if test "${enable_overwrite+set}" = set; then
6522 enableval="$enable_overwrite"
6523 with_overwrite=$enableval
6525 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6527 echo "$as_me:6527: result: $with_overwrite" >&5
6528 echo "${ECHO_T}$with_overwrite" >&6
6530 echo "$as_me:6530: checking if external terminfo-database is used" >&5
6531 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6533 # Check whether --enable-database or --disable-database was given.
6534 if test "${enable_database+set}" = set; then
6535 enableval="$enable_database"
6536 use_database=$enableval
6540 echo "$as_me:6540: result: $use_database" >&5
6541 echo "${ECHO_T}$use_database" >&6
6543 case $host_os in #(vi
6545 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6548 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6552 NCURSES_USE_DATABASE=0
6553 if test "$use_database" != no ; then
6554 NCURSES_USE_DATABASE=1
6556 echo "$as_me:6556: checking which terminfo source-file will be installed" >&5
6557 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6559 # Check whether --with-database or --without-database was given.
6560 if test "${with_database+set}" = set; then
6561 withval="$with_database"
6562 TERMINFO_SRC=$withval
6564 echo "$as_me:6564: result: $TERMINFO_SRC" >&5
6565 echo "${ECHO_T}$TERMINFO_SRC" >&6
6567 echo "$as_me:6567: checking whether to use hashed database instead of directory/tree" >&5
6568 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6570 # Check whether --with-hashed-db or --without-hashed-db was given.
6571 if test "${with_hashed_db+set}" = set; then
6572 withval="$with_hashed_db"
6577 echo "$as_me:6577: result: $with_hashed_db" >&5
6578 echo "${ECHO_T}$with_hashed_db" >&6
6583 echo "$as_me:6583: checking for list of fallback descriptions" >&5
6584 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6586 # Check whether --with-fallbacks or --without-fallbacks was given.
6587 if test "${with_fallbacks+set}" = set; then
6588 withval="$with_fallbacks"
6589 with_fallback=$withval
6593 echo "$as_me:6593: result: $with_fallback" >&5
6594 echo "${ECHO_T}$with_fallback" >&6
6595 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6597 echo "$as_me:6597: checking if you want modern xterm or antique" >&5
6598 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6600 # Check whether --with-xterm-new or --without-xterm-new was given.
6601 if test "${with_xterm_new+set}" = set; then
6602 withval="$with_xterm_new"
6603 with_xterm_new=$withval
6607 case $with_xterm_new in
6608 no) with_xterm_new=xterm-old;;
6609 *) with_xterm_new=xterm-new;;
6611 echo "$as_me:6611: result: $with_xterm_new" >&5
6612 echo "${ECHO_T}$with_xterm_new" >&6
6613 WHICH_XTERM=$with_xterm_new
6615 echo "$as_me:6615: checking if xterm backspace sends BS or DEL" >&5
6616 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6618 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6619 if test "${with_xterm_kbs+set}" = set; then
6620 withval="$with_xterm_kbs"
6621 with_xterm_kbs=$withval
6625 case x$with_xterm_kbs in
6626 xyes|xno|xBS|xbs|x8)
6633 with_xterm_kbs=$withval
6636 echo "$as_me:6636: result: $with_xterm_kbs" >&5
6637 echo "${ECHO_T}$with_xterm_kbs" >&6
6638 XTERM_KBS=$with_xterm_kbs
6641 if test "$use_database" = no ; then
6642 TERMINFO="${datadir}/terminfo"
6646 echo "$as_me:6646: checking for list of terminfo directories" >&5
6647 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6649 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6650 if test "${with_terminfo_dirs+set}" = set; then
6651 withval="$with_terminfo_dirs"
6654 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6656 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6658 for cf_src_path in $withval
6661 if test "x$prefix" != xNONE; then
6662 cf_path_syntax="$prefix"
6664 cf_path_syntax="$ac_default_prefix"
6667 case ".$cf_src_path" in #(vi
6668 .\$\(*\)*|.\'*\'*) #(vi
6672 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6674 .\${*prefix}*|.\${*dir}*) #(vi
6675 eval cf_src_path="$cf_src_path"
6676 case ".$cf_src_path" in #(vi
6678 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6683 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6686 { { echo "$as_me:6686: error: expected a pathname, not \"$cf_src_path\"" >&5
6687 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6688 { (exit 1); exit 1; }; }
6692 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
6693 cf_dst_path="${cf_dst_path}${cf_src_path}"
6697 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
6698 # so we have to check/work around. We do prefer the result of "eval"...
6699 eval cf_dst_eval="$cf_dst_path"
6700 case "x$cf_dst_eval" in #(vi
6702 TERMINFO_DIRS=$cf_dst_path
6705 TERMINFO_DIRS="$cf_dst_eval"
6709 echo "$as_me:6709: result: $TERMINFO_DIRS" >&5
6710 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6711 test -n "$TERMINFO_DIRS" &&
6712 cat >>confdefs.h <<EOF
6713 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6716 echo "$as_me:6716: checking for default terminfo directory" >&5
6717 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6719 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6720 if test "${with_default_terminfo_dir+set}" = set; then
6721 withval="$with_default_terminfo_dir"
6724 withval="${TERMINFO:-${datadir}/terminfo}"
6725 fi; if test -n "${datadir}/terminfo" ; then
6727 if test "x$prefix" != xNONE; then
6728 cf_path_syntax="$prefix"
6730 cf_path_syntax="$ac_default_prefix"
6733 case ".$withval" in #(vi
6734 .\$\(*\)*|.\'*\'*) #(vi
6738 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6740 .\${*prefix}*|.\${*dir}*) #(vi
6741 eval withval="$withval"
6742 case ".$withval" in #(vi
6744 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6749 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6752 { { echo "$as_me:6752: error: expected a pathname, not \"$withval\"" >&5
6753 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6754 { (exit 1); exit 1; }; }
6759 eval TERMINFO="$withval"
6761 echo "$as_me:6761: result: $TERMINFO" >&5
6762 echo "${ECHO_T}$TERMINFO" >&6
6764 cat >>confdefs.h <<EOF
6765 #define TERMINFO "$TERMINFO"
6770 ### use option --disable-big-core to make tic run on small machines
6771 ### We need 4Mb, check if we can allocate 50% more than that.
6772 echo "$as_me:6772: checking if big-core option selected" >&5
6773 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6775 # Check whether --enable-big-core or --disable-big-core was given.
6776 if test "${enable_big_core+set}" = set; then
6777 enableval="$enable_big_core"
6778 with_big_core=$enableval
6780 if test "$cross_compiling" = yes; then
6783 cat >conftest.$ac_ext <<_ACEOF
6784 #line 6784 "configure"
6785 #include "confdefs.h"
6790 unsigned long n = 6000000L;
6791 char *s = malloc(n);
6794 ${cf_cv_main_return:-return}(s == 0);
6797 rm -f conftest$ac_exeext
6798 if { (eval echo "$as_me:6798: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>&5
6801 echo "$as_me:6801: \$? = $ac_status" >&5
6802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6803 { (eval echo "$as_me:6803: \"$ac_try\"") >&5
6806 echo "$as_me:6806: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6810 echo "$as_me: program exited with status $ac_status" >&5
6811 echo "$as_me: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6815 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6818 echo "$as_me:6818: result: $with_big_core" >&5
6819 echo "${ECHO_T}$with_big_core" >&6
6820 test "x$with_big_core" = "xyes" &&
6821 cat >>confdefs.h <<\EOF
6822 #define HAVE_BIG_CORE 1
6825 ### ISO C only guarantees 512-char strings, we have tables which load faster
6826 ### when constructed using "big" strings. More than the C compiler, the awk
6827 ### program is a limit on most vendor UNIX systems. Check that we can build.
6828 echo "$as_me:6828: checking if big-strings option selected" >&5
6829 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6831 # Check whether --enable-big-strings or --disable-big-strings was given.
6832 if test "${enable_big_strings+set}" = set; then
6833 enableval="$enable_big_strings"
6834 with_big_strings=$enableval
6839 eval with_big_strings=no
6842 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6843 | $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
6844 eval with_big_strings=yes
6846 eval with_big_strings=no
6852 echo "$as_me:6852: result: $with_big_strings" >&5
6853 echo "${ECHO_T}$with_big_strings" >&6
6856 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
6858 ### use option --enable-termcap to compile in the termcap fallback support
6859 echo "$as_me:6859: checking if you want termcap-fallback support" >&5
6860 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6862 # Check whether --enable-termcap or --disable-termcap was given.
6863 if test "${enable_termcap+set}" = set; then
6864 enableval="$enable_termcap"
6865 with_termcap=$enableval
6869 echo "$as_me:6869: result: $with_termcap" >&5
6870 echo "${ECHO_T}$with_termcap" >&6
6872 NCURSES_USE_TERMCAP=0
6873 if test "x$with_termcap" != "xyes" ; then
6874 if test "$use_database" = no ; then
6875 if test -z "$with_fallback" ; then
6876 { { echo "$as_me:6876: error: You have disabled the database w/o specifying fallbacks" >&5
6877 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6878 { (exit 1); exit 1; }; }
6882 cat >>confdefs.h <<\EOF
6883 #define PURE_TERMINFO 1
6888 if test "$with_ticlib" != no ; then
6889 { { echo "$as_me:6889: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6890 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6891 { (exit 1); exit 1; }; }
6894 NCURSES_USE_TERMCAP=1
6895 echo "$as_me:6895: checking for list of termcap files" >&5
6896 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6898 # Check whether --with-termpath or --without-termpath was given.
6899 if test "${with_termpath+set}" = set; then
6900 withval="$with_termpath"
6903 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6905 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6907 for cf_src_path in $withval
6910 if test "x$prefix" != xNONE; then
6911 cf_path_syntax="$prefix"
6913 cf_path_syntax="$ac_default_prefix"
6916 case ".$cf_src_path" in #(vi
6917 .\$\(*\)*|.\'*\'*) #(vi
6921 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6923 .\${*prefix}*|.\${*dir}*) #(vi
6924 eval cf_src_path="$cf_src_path"
6925 case ".$cf_src_path" in #(vi
6927 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6932 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6935 { { echo "$as_me:6935: error: expected a pathname, not \"$cf_src_path\"" >&5
6936 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6937 { (exit 1); exit 1; }; }
6941 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
6942 cf_dst_path="${cf_dst_path}${cf_src_path}"
6946 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
6947 # so we have to check/work around. We do prefer the result of "eval"...
6948 eval cf_dst_eval="$cf_dst_path"
6949 case "x$cf_dst_eval" in #(vi
6951 TERMPATH=$cf_dst_path
6954 TERMPATH="$cf_dst_eval"
6958 echo "$as_me:6958: result: $TERMPATH" >&5
6959 echo "${ECHO_T}$TERMPATH" >&6
6960 test -n "$TERMPATH" &&
6961 cat >>confdefs.h <<EOF
6962 #define TERMPATH "$TERMPATH"
6965 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6966 echo "$as_me:6966: checking if fast termcap-loader is needed" >&5
6967 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6969 # Check whether --enable-getcap or --disable-getcap was given.
6970 if test "${enable_getcap+set}" = set; then
6971 enableval="$enable_getcap"
6972 with_getcap=$enableval
6976 echo "$as_me:6976: result: $with_getcap" >&5
6977 echo "${ECHO_T}$with_getcap" >&6
6978 test "x$with_getcap" = "xyes" &&
6979 cat >>confdefs.h <<\EOF
6980 #define USE_GETCAP 1
6983 echo "$as_me:6983: checking if translated termcaps will be cached in ~/.terminfo" >&5
6984 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6986 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6987 if test "${enable_getcap_cache+set}" = set; then
6988 enableval="$enable_getcap_cache"
6989 with_getcap_cache=$enableval
6991 with_getcap_cache=no
6993 echo "$as_me:6993: result: $with_getcap_cache" >&5
6994 echo "${ECHO_T}$with_getcap_cache" >&6
6995 test "x$with_getcap_cache" = "xyes" &&
6996 cat >>confdefs.h <<\EOF
6997 #define USE_GETCAP_CACHE 1
7002 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7003 echo "$as_me:7003: checking if ~/.terminfo is wanted" >&5
7004 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7006 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7007 if test "${enable_home_terminfo+set}" = set; then
7008 enableval="$enable_home_terminfo"
7009 with_home_terminfo=$enableval
7011 with_home_terminfo=yes
7013 echo "$as_me:7013: result: $with_home_terminfo" >&5
7014 echo "${ECHO_T}$with_home_terminfo" >&6
7015 test "x$with_home_terminfo" = "xyes" &&
7016 cat >>confdefs.h <<\EOF
7017 #define USE_HOME_TERMINFO 1
7020 echo "$as_me:7020: checking if you want to use restricted environment when running as root" >&5
7021 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7023 # Check whether --enable-root-environ or --disable-root-environ was given.
7024 if test "${enable_root_environ+set}" = set; then
7025 enableval="$enable_root_environ"
7026 with_root_environ=$enableval
7028 with_root_environ=yes
7030 echo "$as_me:7030: result: $with_root_environ" >&5
7031 echo "${ECHO_T}$with_root_environ" >&6
7032 test "x$with_root_environ" = xyes &&
7033 cat >>confdefs.h <<\EOF
7034 #define USE_ROOT_ENVIRON 1
7037 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7038 ### to reduce storage requirements for the terminfo database.
7044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7045 echo "$as_me:7045: checking for $ac_func" >&5
7046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7047 if eval "test \"\${$as_ac_var+set}\" = set"; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line 7051 "configure"
7052 #include "confdefs.h"
7053 /* System header to define __stub macros and hopefully few prototypes,
7054 which can conflict with char $ac_func (); below. */
7056 /* Override any gcc2 internal prototype to avoid an error. */
7060 /* We use char because int might match the return type of a gcc2
7061 builtin and then its argument prototype would still apply. */
7068 /* The GNU C library defines this for functions which it implements
7069 to always fail with ENOSYS. Some functions are actually named
7070 something starting with __ and the normal name is an alias. */
7071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7074 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7081 rm -f conftest.$ac_objext conftest$ac_exeext
7082 if { (eval echo "$as_me:7082: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>&5
7085 echo "$as_me:7085: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try='test -s conftest$ac_exeext'
7088 { (eval echo "$as_me:7088: \"$ac_try\"") >&5
7091 echo "$as_me:7091: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7093 eval "$as_ac_var=yes"
7095 echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 eval "$as_ac_var=no"
7099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7101 echo "$as_me:7101: result: `eval echo '${'$as_ac_var'}'`" >&5
7102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7103 if test `eval echo '${'$as_ac_var'}'` = yes; then
7104 cat >>confdefs.h <<EOF
7105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7111 if test "$cross_compiling" = yes ; then
7117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7118 echo "$as_me:7118: checking for $ac_func" >&5
7119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7120 if eval "test \"\${$as_ac_var+set}\" = set"; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.$ac_ext <<_ACEOF
7124 #line 7124 "configure"
7125 #include "confdefs.h"
7126 /* System header to define __stub macros and hopefully few prototypes,
7127 which can conflict with char $ac_func (); below. */
7129 /* Override any gcc2 internal prototype to avoid an error. */
7133 /* We use char because int might match the return type of a gcc2
7134 builtin and then its argument prototype would still apply. */
7141 /* The GNU C library defines this for functions which it implements
7142 to always fail with ENOSYS. Some functions are actually named
7143 something starting with __ and the normal name is an alias. */
7144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7147 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (eval echo "$as_me:7155: \"$ac_link\"") >&5
7156 (eval $ac_link) 2>&5
7158 echo "$as_me:7158: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -s conftest$ac_exeext'
7161 { (eval echo "$as_me:7161: \"$ac_try\"") >&5
7164 echo "$as_me:7164: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 eval "$as_ac_var=yes"
7168 echo "$as_me: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7170 eval "$as_ac_var=no"
7172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7174 echo "$as_me:7174: result: `eval echo '${'$as_ac_var'}'`" >&5
7175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7176 if test `eval echo '${'$as_ac_var'}'` = yes; then
7177 cat >>confdefs.h <<EOF
7178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7185 echo "$as_me:7185: checking if link/symlink functions work" >&5
7186 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7187 if test "${cf_cv_link_funcs+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 for cf_func in link symlink ; do
7193 if test "$cross_compiling" = yes; then
7195 eval 'ac_cv_func_'$cf_func'=error'
7197 cat >conftest.$ac_ext <<_ACEOF
7198 #line 7198 "configure"
7199 #include "confdefs.h"
7201 #include <sys/types.h>
7202 #include <sys/stat.h>
7203 #ifdef HAVE_UNISTD_H
7209 char *src = "config.log";
7210 char *dst = "conftest.chk";
7215 fail = ($cf_func("config.log", "conftest.chk") < 0)
7216 || (stat(dst, &dst_sb) < 0)
7217 || (dst_sb.st_mtime != src_sb.st_mtime);
7223 ${cf_cv_main_return:-return} (fail);
7227 rm -f conftest$ac_exeext
7228 if { (eval echo "$as_me:7228: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>&5
7231 echo "$as_me:7231: \$? = $ac_status" >&5
7232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7233 { (eval echo "$as_me:7233: \"$ac_try\"") >&5
7236 echo "$as_me:7236: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7239 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7240 eval 'ac_cv_func_'$cf_func'=yes'
7242 echo "$as_me: program exited with status $ac_status" >&5
7243 echo "$as_me: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7246 eval 'ac_cv_func_'$cf_func'=no'
7248 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7251 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7254 echo "$as_me:7254: result: $cf_cv_link_funcs" >&5
7255 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7256 test "$ac_cv_func_link" = yes &&
7257 cat >>confdefs.h <<\EOF
7261 test "$ac_cv_func_symlink" = yes &&
7262 cat >>confdefs.h <<\EOF
7263 #define HAVE_SYMLINK 1
7271 # soft links (symbolic links) are useful for some systems where hard links do
7272 # not work, or to make it simpler to copy terminfo trees around.
7273 if test "x$ac_cv_func_symlink" = xyes ; then
7274 echo "$as_me:7274: checking if tic should use symbolic links" >&5
7275 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7277 # Check whether --enable-symlinks or --disable-symlinks was given.
7278 if test "${enable_symlinks+set}" = set; then
7279 enableval="$enable_symlinks"
7280 with_symlinks=$enableval
7284 echo "$as_me:7284: result: $with_symlinks" >&5
7285 echo "${ECHO_T}$with_symlinks" >&6
7288 # If we have hard links and did not choose to use soft links instead, there is
7289 # no reason to make this choice optional - use the hard links.
7290 if test "$with_symlinks" = no ; then
7291 echo "$as_me:7291: checking if tic should use hard links" >&5
7292 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7293 if test "x$ac_cv_func_link" = xyes ; then
7298 echo "$as_me:7298: result: $with_links" >&5
7299 echo "${ECHO_T}$with_links" >&6
7302 test "x$with_links" = xyes &&
7303 cat >>confdefs.h <<\EOF
7307 test "x$with_symlinks" = xyes &&
7308 cat >>confdefs.h <<\EOF
7309 #define USE_SYMLINKS 1
7312 ### use option --enable-broken-linker to force on use of broken-linker support
7313 echo "$as_me:7313: checking if you want broken-linker support code" >&5
7314 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7316 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7317 if test "${enable_broken_linker+set}" = set; then
7318 enableval="$enable_broken_linker"
7319 with_broken_linker=$enableval
7321 with_broken_linker=${BROKEN_LINKER:-no}
7323 echo "$as_me:7323: result: $with_broken_linker" >&5
7324 echo "${ECHO_T}$with_broken_linker" >&6
7327 if test "x$with_broken_linker" = xyes ; then
7329 cat >>confdefs.h <<\EOF
7330 #define BROKEN_LINKER 1
7334 elif test "$DFT_LWR_MODEL" = shared ; then
7335 case $cf_cv_system_name in #(vi
7338 cat >>confdefs.h <<\EOF
7339 #define BROKEN_LINKER 1
7343 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7345 echo "${as_me:-configure}:7345: testing cygwin linker is broken anyway ..." 1>&5
7351 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7352 echo "$as_me:7352: checking if tputs should process BSD-style prefix padding" >&5
7353 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7355 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7356 if test "${enable_bsdpad+set}" = set; then
7357 enableval="$enable_bsdpad"
7358 with_bsdpad=$enableval
7362 echo "$as_me:7362: result: $with_bsdpad" >&5
7363 echo "${ECHO_T}$with_bsdpad" >&6
7364 test "x$with_bsdpad" = xyes &&
7365 cat >>confdefs.h <<\EOF
7369 ### use option --enable-widec to turn on use of wide-character support
7378 # Check to define _XOPEN_SOURCE "automatically"
7381 cf_POSIX_C_SOURCE=199506L
7384 case $host_os in #(vi
7386 cf_xopen_source="-D_ALL_SOURCE"
7392 cf_xopen_source="-D_APPLE_C_SOURCE"
7395 cf_xopen_source="-D_DARWIN_C_SOURCE"
7398 freebsd*|dragonfly*) #(vi
7399 # 5.x headers associate
7400 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7401 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7402 cf_POSIX_C_SOURCE=200112L
7404 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7407 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7410 cf_xopen_source="-D_HPUX_SOURCE"
7413 cf_xopen_source="-D_SGI_SOURCE"
7416 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7418 echo "$as_me:7418: checking if we must define _GNU_SOURCE" >&5
7419 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7420 if test "${cf_cv_gnu_source+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 cat >conftest.$ac_ext <<_ACEOF
7425 #line 7425 "configure"
7426 #include "confdefs.h"
7427 #include <sys/types.h>
7432 #ifndef _XOPEN_SOURCE
7439 rm -f conftest.$ac_objext
7440 if { (eval echo "$as_me:7440: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>&5
7443 echo "$as_me:7443: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try='test -s conftest.$ac_objext'
7446 { (eval echo "$as_me:7446: \"$ac_try\"") >&5
7449 echo "$as_me:7449: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7453 echo "$as_me: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7456 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7457 cat >conftest.$ac_ext <<_ACEOF
7458 #line 7458 "configure"
7459 #include "confdefs.h"
7460 #include <sys/types.h>
7465 #ifdef _XOPEN_SOURCE
7472 rm -f conftest.$ac_objext
7473 if { (eval echo "$as_me:7473: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>&5
7476 echo "$as_me:7476: \$? = $ac_status" >&5
7477 (exit $ac_status); } &&
7478 { ac_try='test -s conftest.$ac_objext'
7479 { (eval echo "$as_me:7479: \"$ac_try\"") >&5
7482 echo "$as_me:7482: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7486 echo "$as_me: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7488 cf_cv_gnu_source=yes
7490 rm -f conftest.$ac_objext conftest.$ac_ext
7494 rm -f conftest.$ac_objext conftest.$ac_ext
7497 echo "$as_me:7497: result: $cf_cv_gnu_source" >&5
7498 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7499 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7503 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
7506 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7509 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7511 cf_save_CFLAGS="$CFLAGS"
7512 cf_save_CPPFLAGS="$CPPFLAGS"
7514 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7515 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7516 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7518 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7519 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7520 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7522 echo "$as_me:7522: checking if we should define _POSIX_C_SOURCE" >&5
7523 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7524 if test "${cf_cv_posix_c_source+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 echo "${as_me:-configure}:7528: testing if the symbol is already defined go no further ..." 1>&5
7530 cat >conftest.$ac_ext <<_ACEOF
7531 #line 7531 "configure"
7532 #include "confdefs.h"
7533 #include <sys/types.h>
7538 #ifndef _POSIX_C_SOURCE
7545 rm -f conftest.$ac_objext
7546 if { (eval echo "$as_me:7546: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>&5
7549 echo "$as_me:7549: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -s conftest.$ac_objext'
7552 { (eval echo "$as_me:7552: \"$ac_try\"") >&5
7555 echo "$as_me:7555: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7557 cf_cv_posix_c_source=no
7559 echo "$as_me: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 cf_want_posix_source=no
7562 case .$cf_POSIX_C_SOURCE in #(vi
7564 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7567 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7568 cf_want_posix_source=yes
7571 cf_want_posix_source=yes
7574 if test "$cf_want_posix_source" = yes ; then
7575 cat >conftest.$ac_ext <<_ACEOF
7576 #line 7576 "configure"
7577 #include "confdefs.h"
7578 #include <sys/types.h>
7583 #ifdef _POSIX_SOURCE
7590 rm -f conftest.$ac_objext
7591 if { (eval echo "$as_me:7591: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>&5
7594 echo "$as_me:7594: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:7597: \"$ac_try\"") >&5
7600 echo "$as_me:7600: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7604 echo "$as_me: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7608 rm -f conftest.$ac_objext conftest.$ac_ext
7611 echo "${as_me:-configure}:7611: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7613 CFLAGS="$cf_trim_CFLAGS"
7614 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7616 echo "${as_me:-configure}:7616: testing if the second compile does not leave our definition intact error ..." 1>&5
7618 cat >conftest.$ac_ext <<_ACEOF
7619 #line 7619 "configure"
7620 #include "confdefs.h"
7621 #include <sys/types.h>
7626 #ifndef _POSIX_C_SOURCE
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:7634: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>&5
7637 echo "$as_me:7637: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try='test -s conftest.$ac_objext'
7640 { (eval echo "$as_me:7640: \"$ac_try\"") >&5
7643 echo "$as_me:7643: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7647 echo "$as_me: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7649 cf_cv_posix_c_source=no
7651 rm -f conftest.$ac_objext conftest.$ac_ext
7652 CFLAGS="$cf_save_CFLAGS"
7653 CPPFLAGS="$cf_save_CPPFLAGS"
7656 rm -f conftest.$ac_objext conftest.$ac_ext
7659 echo "$as_me:7659: result: $cf_cv_posix_c_source" >&5
7660 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7662 if test "$cf_cv_posix_c_source" != no ; then
7663 CFLAGS="$cf_trim_CFLAGS"
7664 CPPFLAGS="$cf_trim_CPPFLAGS"
7669 cf_new_extra_cppflags=
7671 for cf_add_cflags in $cf_cv_posix_c_source
7673 case $cf_fix_cppflags in
7675 case $cf_add_cflags in #(vi
7676 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7677 case $cf_add_cflags in
7679 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7681 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7682 && test -z "${cf_tst_cflags}" \
7683 && cf_fix_cppflags=yes
7685 if test $cf_fix_cppflags = yes ; then
7686 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7688 elif test "${cf_tst_cflags}" = "\"'" ; then
7689 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7695 *$cf_add_cflags) #(vi
7698 case $cf_add_cflags in #(vi
7700 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7702 CPPFLAGS=`echo "$CPPFLAGS" | \
7703 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7704 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7708 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7713 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7718 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7720 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7722 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7723 && test -z "${cf_tst_cflags}" \
7724 && cf_fix_cppflags=no
7729 if test -n "$cf_new_cflags" ; then
7731 CFLAGS="$CFLAGS $cf_new_cflags"
7734 if test -n "$cf_new_cppflags" ; then
7736 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7739 if test -n "$cf_new_extra_cppflags" ; then
7741 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7748 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7751 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7752 cf_xopen_source="-D_BSD_SOURCE"
7756 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7759 cf_xopen_source="-D_OSF_SOURCE"
7762 cf_xopen_source="-D_QNX_SOURCE"
7765 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7768 cf_xopen_source="-D__EXTENSIONS__"
7769 cf_cv_xopen_source=broken
7771 sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
7777 echo "$as_me:7777: checking if we should define _XOPEN_SOURCE" >&5
7778 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7779 if test "${cf_cv_xopen_source+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7784 #line 7784 "configure"
7785 #include "confdefs.h"
7789 #include <sys/types.h>
7795 #ifndef _XOPEN_SOURCE
7802 rm -f conftest.$ac_objext
7803 if { (eval echo "$as_me:7803: \"$ac_compile\"") >&5
7804 (eval $ac_compile) 2>&5
7806 echo "$as_me:7806: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
7808 { ac_try='test -s conftest.$ac_objext'
7809 { (eval echo "$as_me:7809: \"$ac_try\"") >&5
7812 echo "$as_me:7812: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 cf_cv_xopen_source=no
7816 echo "$as_me: failed program was:" >&5
7817 cat conftest.$ac_ext >&5
7819 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7820 cat >conftest.$ac_ext <<_ACEOF
7821 #line 7821 "configure"
7822 #include "confdefs.h"
7826 #include <sys/types.h>
7832 #ifdef _XOPEN_SOURCE
7839 rm -f conftest.$ac_objext
7840 if { (eval echo "$as_me:7840: \"$ac_compile\"") >&5
7841 (eval $ac_compile) 2>&5
7843 echo "$as_me:7843: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -s conftest.$ac_objext'
7846 { (eval echo "$as_me:7846: \"$ac_try\"") >&5
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 cf_cv_xopen_source=no
7853 echo "$as_me: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7857 rm -f conftest.$ac_objext conftest.$ac_ext
7861 rm -f conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:7864: result: $cf_cv_xopen_source" >&5
7865 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7867 if test "$cf_cv_xopen_source" != no ; then
7869 CFLAGS=`echo "$CFLAGS" | \
7870 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7871 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7873 CPPFLAGS=`echo "$CPPFLAGS" | \
7874 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7875 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7877 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7882 cf_new_extra_cppflags=
7884 for cf_add_cflags in $cf_temp_xopen_source
7886 case $cf_fix_cppflags in
7888 case $cf_add_cflags in #(vi
7889 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7890 case $cf_add_cflags in
7892 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7894 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7895 && test -z "${cf_tst_cflags}" \
7896 && cf_fix_cppflags=yes
7898 if test $cf_fix_cppflags = yes ; then
7899 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7901 elif test "${cf_tst_cflags}" = "\"'" ; then
7902 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7908 *$cf_add_cflags) #(vi
7911 case $cf_add_cflags in #(vi
7913 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7915 CPPFLAGS=`echo "$CPPFLAGS" | \
7916 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7917 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7921 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7926 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7931 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7933 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7935 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7936 && test -z "${cf_tst_cflags}" \
7937 && cf_fix_cppflags=no
7942 if test -n "$cf_new_cflags" ; then
7944 CFLAGS="$CFLAGS $cf_new_cflags"
7947 if test -n "$cf_new_cppflags" ; then
7949 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7952 if test -n "$cf_new_extra_cppflags" ; then
7954 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7959 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7961 cf_save_CFLAGS="$CFLAGS"
7962 cf_save_CPPFLAGS="$CPPFLAGS"
7964 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7965 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7966 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7968 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7969 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7970 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7972 echo "$as_me:7972: checking if we should define _POSIX_C_SOURCE" >&5
7973 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7974 if test "${cf_cv_posix_c_source+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 echo "${as_me:-configure}:7978: testing if the symbol is already defined go no further ..." 1>&5
7980 cat >conftest.$ac_ext <<_ACEOF
7981 #line 7981 "configure"
7982 #include "confdefs.h"
7983 #include <sys/types.h>
7988 #ifndef _POSIX_C_SOURCE
7995 rm -f conftest.$ac_objext
7996 if { (eval echo "$as_me:7996: \"$ac_compile\"") >&5
7997 (eval $ac_compile) 2>&5
7999 echo "$as_me:7999: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
8001 { ac_try='test -s conftest.$ac_objext'
8002 { (eval echo "$as_me:8002: \"$ac_try\"") >&5
8005 echo "$as_me:8005: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 cf_cv_posix_c_source=no
8009 echo "$as_me: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8011 cf_want_posix_source=no
8012 case .$cf_POSIX_C_SOURCE in #(vi
8014 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8017 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8018 cf_want_posix_source=yes
8021 cf_want_posix_source=yes
8024 if test "$cf_want_posix_source" = yes ; then
8025 cat >conftest.$ac_ext <<_ACEOF
8026 #line 8026 "configure"
8027 #include "confdefs.h"
8028 #include <sys/types.h>
8033 #ifdef _POSIX_SOURCE
8040 rm -f conftest.$ac_objext
8041 if { (eval echo "$as_me:8041: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>&5
8044 echo "$as_me:8044: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (eval echo "$as_me:8047: \"$ac_try\"") >&5
8050 echo "$as_me:8050: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8054 echo "$as_me: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8056 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8058 rm -f conftest.$ac_objext conftest.$ac_ext
8061 echo "${as_me:-configure}:8061: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8063 CFLAGS="$cf_trim_CFLAGS"
8064 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8066 echo "${as_me:-configure}:8066: testing if the second compile does not leave our definition intact error ..." 1>&5
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line 8069 "configure"
8070 #include "confdefs.h"
8071 #include <sys/types.h>
8076 #ifndef _POSIX_C_SOURCE
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:8084: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>&5
8087 echo "$as_me:8087: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:8090: \"$ac_try\"") >&5
8093 echo "$as_me:8093: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8097 echo "$as_me: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 cf_cv_posix_c_source=no
8101 rm -f conftest.$ac_objext conftest.$ac_ext
8102 CFLAGS="$cf_save_CFLAGS"
8103 CPPFLAGS="$cf_save_CPPFLAGS"
8106 rm -f conftest.$ac_objext conftest.$ac_ext
8109 echo "$as_me:8109: result: $cf_cv_posix_c_source" >&5
8110 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8112 if test "$cf_cv_posix_c_source" != no ; then
8113 CFLAGS="$cf_trim_CFLAGS"
8114 CPPFLAGS="$cf_trim_CPPFLAGS"
8119 cf_new_extra_cppflags=
8121 for cf_add_cflags in $cf_cv_posix_c_source
8123 case $cf_fix_cppflags in
8125 case $cf_add_cflags in #(vi
8126 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8127 case $cf_add_cflags in
8129 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8131 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8132 && test -z "${cf_tst_cflags}" \
8133 && cf_fix_cppflags=yes
8135 if test $cf_fix_cppflags = yes ; then
8136 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8138 elif test "${cf_tst_cflags}" = "\"'" ; then
8139 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8145 *$cf_add_cflags) #(vi
8148 case $cf_add_cflags in #(vi
8150 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8152 CPPFLAGS=`echo "$CPPFLAGS" | \
8153 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8154 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8158 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8163 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8168 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8170 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8172 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8173 && test -z "${cf_tst_cflags}" \
8174 && cf_fix_cppflags=no
8179 if test -n "$cf_new_cflags" ; then
8181 CFLAGS="$CFLAGS $cf_new_cflags"
8184 if test -n "$cf_new_cppflags" ; then
8186 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8189 if test -n "$cf_new_extra_cppflags" ; then
8191 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8199 if test -n "$cf_xopen_source" ; then
8204 cf_new_extra_cppflags=
8206 for cf_add_cflags in $cf_xopen_source
8208 case $cf_fix_cppflags in
8210 case $cf_add_cflags in #(vi
8211 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8212 case $cf_add_cflags in
8214 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8216 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8217 && test -z "${cf_tst_cflags}" \
8218 && cf_fix_cppflags=yes
8220 if test $cf_fix_cppflags = yes ; then
8221 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8223 elif test "${cf_tst_cflags}" = "\"'" ; then
8224 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8230 *$cf_add_cflags) #(vi
8233 case $cf_add_cflags in #(vi
8235 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8237 CPPFLAGS=`echo "$CPPFLAGS" | \
8238 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8239 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8243 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8248 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8253 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8255 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8257 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8258 && test -z "${cf_tst_cflags}" \
8259 && cf_fix_cppflags=no
8264 if test -n "$cf_new_cflags" ; then
8265 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8267 echo "${as_me:-configure}:8267: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8269 CFLAGS="$CFLAGS $cf_new_cflags"
8272 if test -n "$cf_new_cppflags" ; then
8273 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8275 echo "${as_me:-configure}:8275: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8277 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8280 if test -n "$cf_new_extra_cppflags" ; then
8281 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8283 echo "${as_me:-configure}:8283: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8285 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8290 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8291 echo "$as_me:8291: checking if _XOPEN_SOURCE really is set" >&5
8292 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8301 #ifndef _XOPEN_SOURCE
8308 rm -f conftest.$ac_objext
8309 if { (eval echo "$as_me:8309: \"$ac_compile\"") >&5
8310 (eval $ac_compile) 2>&5
8312 echo "$as_me:8312: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (eval echo "$as_me:8315: \"$ac_try\"") >&5
8318 echo "$as_me:8318: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 cf_XOPEN_SOURCE_set=yes
8322 echo "$as_me: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8324 cf_XOPEN_SOURCE_set=no
8326 rm -f conftest.$ac_objext conftest.$ac_ext
8327 echo "$as_me:8327: result: $cf_XOPEN_SOURCE_set" >&5
8328 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8329 if test $cf_XOPEN_SOURCE_set = yes
8331 cat >conftest.$ac_ext <<_ACEOF
8332 #line 8332 "configure"
8333 #include "confdefs.h"
8339 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8346 rm -f conftest.$ac_objext
8347 if { (eval echo "$as_me:8347: \"$ac_compile\"") >&5
8348 (eval $ac_compile) 2>&5
8350 echo "$as_me:8350: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -s conftest.$ac_objext'
8353 { (eval echo "$as_me:8353: \"$ac_try\"") >&5
8356 echo "$as_me:8356: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 cf_XOPEN_SOURCE_set_ok=yes
8360 echo "$as_me: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8362 cf_XOPEN_SOURCE_set_ok=no
8364 rm -f conftest.$ac_objext conftest.$ac_ext
8365 if test $cf_XOPEN_SOURCE_set_ok = no
8367 { echo "$as_me:8367: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8368 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8372 echo "$as_me:8372: checking if we should define _XOPEN_SOURCE" >&5
8373 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8374 if test "${cf_cv_xopen_source+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 cat >conftest.$ac_ext <<_ACEOF
8379 #line 8379 "configure"
8380 #include "confdefs.h"
8384 #include <sys/types.h>
8390 #ifndef _XOPEN_SOURCE
8397 rm -f conftest.$ac_objext
8398 if { (eval echo "$as_me:8398: \"$ac_compile\"") >&5
8399 (eval $ac_compile) 2>&5
8401 echo "$as_me:8401: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -s conftest.$ac_objext'
8404 { (eval echo "$as_me:8404: \"$ac_try\"") >&5
8407 echo "$as_me:8407: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 cf_cv_xopen_source=no
8411 echo "$as_me: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8414 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8415 cat >conftest.$ac_ext <<_ACEOF
8416 #line 8416 "configure"
8417 #include "confdefs.h"
8421 #include <sys/types.h>
8427 #ifdef _XOPEN_SOURCE
8434 rm -f conftest.$ac_objext
8435 if { (eval echo "$as_me:8435: \"$ac_compile\"") >&5
8436 (eval $ac_compile) 2>&5
8438 echo "$as_me:8438: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -s conftest.$ac_objext'
8441 { (eval echo "$as_me:8441: \"$ac_try\"") >&5
8444 echo "$as_me:8444: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 cf_cv_xopen_source=no
8448 echo "$as_me: failed program was:" >&5
8449 cat conftest.$ac_ext >&5
8450 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8452 rm -f conftest.$ac_objext conftest.$ac_ext
8456 rm -f conftest.$ac_objext conftest.$ac_ext
8459 echo "$as_me:8459: result: $cf_cv_xopen_source" >&5
8460 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8462 if test "$cf_cv_xopen_source" != no ; then
8464 CFLAGS=`echo "$CFLAGS" | \
8465 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8466 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8468 CPPFLAGS=`echo "$CPPFLAGS" | \
8469 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8470 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8472 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8477 cf_new_extra_cppflags=
8479 for cf_add_cflags in $cf_temp_xopen_source
8481 case $cf_fix_cppflags in
8483 case $cf_add_cflags in #(vi
8484 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8485 case $cf_add_cflags in
8487 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8489 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8490 && test -z "${cf_tst_cflags}" \
8491 && cf_fix_cppflags=yes
8493 if test $cf_fix_cppflags = yes ; then
8494 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8496 elif test "${cf_tst_cflags}" = "\"'" ; then
8497 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8503 *$cf_add_cflags) #(vi
8506 case $cf_add_cflags in #(vi
8508 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8510 CPPFLAGS=`echo "$CPPFLAGS" | \
8511 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8512 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8516 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8521 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8526 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8528 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8530 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8531 && test -z "${cf_tst_cflags}" \
8532 && cf_fix_cppflags=no
8537 if test -n "$cf_new_cflags" ; then
8539 CFLAGS="$CFLAGS $cf_new_cflags"
8542 if test -n "$cf_new_cppflags" ; then
8544 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8547 if test -n "$cf_new_extra_cppflags" ; then
8549 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8557 # Work around breakage on OS X
8559 echo "$as_me:8559: checking if SIGWINCH is defined" >&5
8560 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8561 if test "${cf_cv_define_sigwinch+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 cat >conftest.$ac_ext <<_ACEOF
8566 #line 8566 "configure"
8567 #include "confdefs.h"
8569 #include <sys/types.h>
8570 #include <sys/signal.h>
8580 rm -f conftest.$ac_objext
8581 if { (eval echo "$as_me:8581: \"$ac_compile\"") >&5
8582 (eval $ac_compile) 2>&5
8584 echo "$as_me:8584: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -s conftest.$ac_objext'
8587 { (eval echo "$as_me:8587: \"$ac_try\"") >&5
8590 echo "$as_me:8590: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 cf_cv_define_sigwinch=yes
8594 echo "$as_me: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8596 cat >conftest.$ac_ext <<_ACEOF
8597 #line 8597 "configure"
8598 #include "confdefs.h"
8600 #undef _XOPEN_SOURCE
8601 #undef _POSIX_SOURCE
8602 #undef _POSIX_C_SOURCE
8603 #include <sys/types.h>
8604 #include <sys/signal.h>
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:8615: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>&5
8618 echo "$as_me:8618: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:8621: \"$ac_try\"") >&5
8624 echo "$as_me:8624: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 cf_cv_define_sigwinch=maybe
8628 echo "$as_me: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 cf_cv_define_sigwinch=no
8632 rm -f conftest.$ac_objext conftest.$ac_ext
8635 rm -f conftest.$ac_objext conftest.$ac_ext
8638 echo "$as_me:8638: result: $cf_cv_define_sigwinch" >&5
8639 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8641 if test "$cf_cv_define_sigwinch" = maybe ; then
8642 echo "$as_me:8642: checking for actual SIGWINCH definition" >&5
8643 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8644 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 cf_cv_fixup_sigwinch=unknown
8650 while test $cf_sigwinch != 1
8652 cat >conftest.$ac_ext <<_ACEOF
8653 #line 8653 "configure"
8654 #include "confdefs.h"
8656 #undef _XOPEN_SOURCE
8657 #undef _POSIX_SOURCE
8658 #undef _POSIX_C_SOURCE
8659 #include <sys/types.h>
8660 #include <sys/signal.h>
8666 #if SIGWINCH != $cf_sigwinch
8674 rm -f conftest.$ac_objext
8675 if { (eval echo "$as_me:8675: \"$ac_compile\"") >&5
8676 (eval $ac_compile) 2>&5
8678 echo "$as_me:8678: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -s conftest.$ac_objext'
8681 { (eval echo "$as_me:8681: \"$ac_try\"") >&5
8684 echo "$as_me:8684: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 cf_cv_fixup_sigwinch=$cf_sigwinch
8689 echo "$as_me: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8692 rm -f conftest.$ac_objext conftest.$ac_ext
8694 cf_sigwinch=`expr $cf_sigwinch - 1`
8698 echo "$as_me:8698: result: $cf_cv_fixup_sigwinch" >&5
8699 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8701 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8702 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8706 # Checks for CODESET support.
8708 echo "$as_me:8708: checking for nl_langinfo and CODESET" >&5
8709 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8710 if test "${am_cv_langinfo_codeset+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 cat >conftest.$ac_ext <<_ACEOF
8714 #line 8714 "configure"
8715 #include "confdefs.h"
8716 #include <langinfo.h>
8720 char* cs = nl_langinfo(CODESET);
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (eval echo "$as_me:8726: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>&5
8729 echo "$as_me:8729: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:8732: \"$ac_try\"") >&5
8735 echo "$as_me:8735: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 am_cv_langinfo_codeset=yes
8739 echo "$as_me: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8741 am_cv_langinfo_codeset=no
8743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8746 echo "$as_me:8746: result: $am_cv_langinfo_codeset" >&5
8747 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8748 if test $am_cv_langinfo_codeset = yes; then
8750 cat >>confdefs.h <<\EOF
8751 #define HAVE_LANGINFO_CODESET 1
8756 # use these variables to work around a defect in gcc's fixincludes.
8760 echo "$as_me:8760: checking if you want wide-character code" >&5
8761 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8763 # Check whether --enable-widec or --disable-widec was given.
8764 if test "${enable_widec+set}" = set; then
8765 enableval="$enable_widec"
8766 with_widec=$enableval
8770 echo "$as_me:8770: result: $with_widec" >&5
8771 echo "${ECHO_T}$with_widec" >&6
8772 if test "x$with_widec" = xyes ; then
8773 if test "x$disable_lib_suffixes" = xno ; then
8774 LIB_SUFFIX="w${LIB_SUFFIX}"
8777 cat >>confdefs.h <<\EOF
8778 #define USE_WIDEC_SUPPORT 1
8781 cat >>confdefs.h <<\EOF
8782 #define NCURSES_WIDECHAR 1
8785 echo "$as_me:8785: checking if wchar.h can be used as is" >&5
8786 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8787 if test "${cf_cv_wchar_h_okay+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8792 #line 8792 "configure"
8793 #include "confdefs.h"
8803 int bar = iswpunct(foo)
8808 rm -f conftest.$ac_objext
8809 if { (eval echo "$as_me:8809: \"$ac_compile\"") >&5
8810 (eval $ac_compile) 2>&5
8812 echo "$as_me:8812: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:8815: \"$ac_try\"") >&5
8818 echo "$as_me:8818: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 cf_cv_wchar_h_okay=yes
8822 echo "$as_me: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 cf_cv_wchar_h_okay=no
8826 rm -f conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:8828: result: $cf_cv_wchar_h_okay" >&5
8829 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8831 if test $cf_cv_wchar_h_okay = no
8834 echo "$as_me:8834: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8835 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line 8837 "configure"
8838 #include "confdefs.h"
8839 #include <sys/types.h>
8845 #ifndef _XOPEN_SOURCE_EXTENDED
8852 rm -f conftest.$ac_objext
8853 if { (eval echo "$as_me:8853: \"$ac_compile\"") >&5
8854 (eval $ac_compile) 2>&5
8856 echo "$as_me:8856: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -s conftest.$ac_objext'
8859 { (eval echo "$as_me:8859: \"$ac_try\"") >&5
8862 echo "$as_me:8862: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8866 echo "$as_me: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8870 rm -f conftest.$ac_objext conftest.$ac_ext
8871 echo "$as_me:8871: result: $cf_result" >&5
8872 echo "${ECHO_T}$cf_result" >&6
8874 if test "$cf_result" = yes ; then
8875 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8876 elif test "x" != "x" ; then
8877 echo "$as_me:8877: checking checking for compatible value versus " >&5
8878 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8879 cat >conftest.$ac_ext <<_ACEOF
8880 #line 8880 "configure"
8881 #include "confdefs.h"
8882 #include <sys/types.h>
8888 #if _XOPEN_SOURCE_EXTENDED- < 0
8895 rm -f conftest.$ac_objext
8896 if { (eval echo "$as_me:8896: \"$ac_compile\"") >&5
8897 (eval $ac_compile) 2>&5
8899 echo "$as_me:8899: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -s conftest.$ac_objext'
8902 { (eval echo "$as_me:8902: \"$ac_try\"") >&5
8905 echo "$as_me:8905: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8909 echo "$as_me: failed program was:" >&5
8910 cat conftest.$ac_ext >&5
8913 rm -f conftest.$ac_objext conftest.$ac_ext
8914 echo "$as_me:8914: result: $cf_result" >&5
8915 echo "${ECHO_T}$cf_result" >&6
8916 if test "$cf_result" = no ; then
8917 # perhaps we can override it - try...
8918 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8925 NCURSES_CH_T=cchar_t
8927 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8930 echo "$as_me:8930: checking for $ac_func" >&5
8931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8932 if eval "test \"\${$as_ac_var+set}\" = set"; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 cat >conftest.$ac_ext <<_ACEOF
8936 #line 8936 "configure"
8937 #include "confdefs.h"
8938 /* System header to define __stub macros and hopefully few prototypes,
8939 which can conflict with char $ac_func (); below. */
8941 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8953 /* The GNU C library defines this for functions which it implements
8954 to always fail with ENOSYS. Some functions are actually named
8955 something starting with __ and the normal name is an alias. */
8956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8959 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:8967: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>&5
8970 echo "$as_me:8970: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -s conftest$ac_exeext'
8973 { (eval echo "$as_me:8973: \"$ac_try\"") >&5
8976 echo "$as_me:8976: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 eval "$as_ac_var=yes"
8980 echo "$as_me: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8982 eval "$as_ac_var=no"
8984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8986 echo "$as_me:8986: result: `eval echo '${'$as_ac_var'}'`" >&5
8987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8988 if test `eval echo '${'$as_ac_var'}'` = yes; then
8989 cat >>confdefs.h <<EOF
8990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8996 if test "x$ac_cv_func_putwc" != xyes ; then
8998 echo "$as_me:8998: checking for multibyte character support" >&5
8999 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9000 if test "${cf_cv_utf8_lib+set}" = set; then
9001 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 cf_save_LIBS="$LIBS"
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line 9006 "configure"
9007 #include "confdefs.h"
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (eval echo "$as_me:9019: \"$ac_link\"") >&5
9020 (eval $ac_link) 2>&5
9022 echo "$as_me:9022: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -s conftest$ac_exeext'
9025 { (eval echo "$as_me:9025: \"$ac_try\"") >&5
9028 echo "$as_me:9028: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9032 echo "$as_me: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
9036 # will be set on completion of the AC_TRY_LINK below.
9037 cf_cv_header_path_utf8=
9038 cf_cv_library_path_utf8=
9040 echo "${as_me:-configure}:9040: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
9042 cf_save_LIBS="$LIBS"
9044 cat >conftest.$ac_ext <<_ACEOF
9045 #line 9045 "configure"
9046 #include "confdefs.h"
9048 #include <libutf8.h>
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:9058: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>&5
9061 echo "$as_me:9061: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (eval echo "$as_me:9064: \"$ac_try\"") >&5
9067 echo "$as_me:9067: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9070 cf_cv_find_linkage_utf8=yes
9071 cf_cv_header_path_utf8=/usr/include
9072 cf_cv_library_path_utf8=/usr/lib
9075 echo "$as_me: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9078 LIBS="-lutf8 $cf_save_LIBS"
9080 cat >conftest.$ac_ext <<_ACEOF
9081 #line 9081 "configure"
9082 #include "confdefs.h"
9084 #include <libutf8.h>
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (eval echo "$as_me:9094: \"$ac_link\"") >&5
9095 (eval $ac_link) 2>&5
9097 echo "$as_me:9097: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -s conftest$ac_exeext'
9100 { (eval echo "$as_me:9100: \"$ac_try\"") >&5
9103 echo "$as_me:9103: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9106 cf_cv_find_linkage_utf8=yes
9107 cf_cv_header_path_utf8=/usr/include
9108 cf_cv_library_path_utf8=/usr/lib
9109 cf_cv_library_file_utf8="-lutf8"
9112 echo "$as_me: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9115 cf_cv_find_linkage_utf8=no
9116 LIBS="$cf_save_LIBS"
9118 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
9120 echo "${as_me:-configure}:9120: testing find linkage for utf8 library ..." 1>&5
9122 echo "${as_me:-configure}:9122: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
9124 cf_save_CPPFLAGS="$CPPFLAGS"
9125 cf_test_CPPFLAGS="$CPPFLAGS"
9129 # collect the current set of include-directories from compiler flags
9130 cf_header_path_list=""
9131 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9132 for cf_header_path in $CPPFLAGS $CFLAGS
9134 case $cf_header_path in #(vi
9136 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9138 test "x$cf_header_path" != "xNONE" && \
9139 test -d "$cf_header_path" && \
9141 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9142 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9143 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
9144 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
9145 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
9146 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
9149 cf_header_path_list="$cf_header_path_list $cf_search"
9155 # add the variations for the package we are looking for
9159 test "x/usr" != "x$prefix" && \
9161 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
9162 test -n "$verbose" && echo " ... testing for include-directories under /usr"
9163 test -d /usr/include && cf_search="$cf_search /usr/include"
9164 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
9165 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
9166 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
9167 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
9170 test "x$prefix" != "xNONE" && \
9171 test -d "$prefix" && \
9173 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9174 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9175 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9176 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9177 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9178 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9181 test "x/usr/local" != "x$prefix" && \
9182 test -d "/usr/local" && \
9183 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
9184 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
9185 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
9186 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
9187 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
9188 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
9189 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
9192 test "x/opt" != "x$prefix" && \
9194 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
9195 test -n "$verbose" && echo " ... testing for include-directories under /opt"
9196 test -d /opt/include && cf_search="$cf_search /opt/include"
9197 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
9198 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
9199 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
9200 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
9203 test "x$HOME" != "x$prefix" && \
9204 test -d "$HOME" && \
9205 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
9206 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
9207 test -d $HOME/include && cf_search="$cf_search $HOME/include"
9208 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
9209 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
9210 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
9211 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
9214 test "$includedir" != NONE && \
9215 test "$includedir" != "/usr/include" && \
9216 test -d "$includedir" && {
9217 test -d $includedir && cf_search="$cf_search $includedir"
9218 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9221 test "$oldincludedir" != NONE && \
9222 test "$oldincludedir" != "/usr/include" && \
9223 test -d "$oldincludedir" && {
9224 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9225 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9228 cf_search="$cf_search $cf_header_path_list"
9230 for cf_cv_header_path_utf8 in $cf_search
9232 if test -d $cf_cv_header_path_utf8 ; then
9233 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9235 echo "${as_me:-configure}:9235: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9237 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line 9239 "configure"
9240 #include "confdefs.h"
9242 #include <libutf8.h>
9251 rm -f conftest.$ac_objext
9252 if { (eval echo "$as_me:9252: \"$ac_compile\"") >&5
9253 (eval $ac_compile) 2>&5
9255 echo "$as_me:9255: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -s conftest.$ac_objext'
9258 { (eval echo "$as_me:9258: \"$ac_try\"") >&5
9261 echo "$as_me:9261: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9264 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9266 echo "${as_me:-configure}:9266: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9268 cf_cv_find_linkage_utf8=maybe
9269 cf_test_CPPFLAGS="$CPPFLAGS"
9272 echo "$as_me: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9275 CPPFLAGS="$cf_save_CPPFLAGS"
9278 rm -f conftest.$ac_objext conftest.$ac_ext
9282 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9284 echo "${as_me:-configure}:9284: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9286 cf_save_LIBS="$LIBS"
9287 cf_save_LDFLAGS="$LDFLAGS"
9289 if test "$cf_cv_find_linkage_utf8" != yes ; then
9292 cf_library_path_list=""
9293 if test -n "${LDFLAGS}${LIBS}" ; then
9294 for cf_library_path in $LDFLAGS $LIBS
9296 case $cf_library_path in #(vi
9298 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9300 test "x$cf_library_path" != "xNONE" && \
9301 test -d "$cf_library_path" && \
9303 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9304 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9305 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9306 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9307 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9308 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9311 cf_library_path_list="$cf_library_path_list $cf_search"
9319 test "x/usr" != "x$prefix" && \
9321 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
9322 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9323 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9324 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
9325 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
9326 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
9327 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
9330 test "x$prefix" != "xNONE" && \
9331 test -d "$prefix" && \
9333 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9334 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9335 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9336 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9337 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9338 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9341 test "x/usr/local" != "x$prefix" && \
9342 test -d "/usr/local" && \
9343 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
9344 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9345 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9346 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
9347 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
9348 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
9349 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
9352 test "x/opt" != "x$prefix" && \
9354 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
9355 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9356 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9357 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
9358 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
9359 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
9360 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
9363 test "x$HOME" != "x$prefix" && \
9364 test -d "$HOME" && \
9365 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
9366 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9367 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9368 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
9369 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
9370 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
9371 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
9374 cf_search="$cf_library_path_list $cf_search"
9376 for cf_cv_library_path_utf8 in $cf_search
9378 if test -d $cf_cv_library_path_utf8 ; then
9379 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9381 echo "${as_me:-configure}:9381: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9383 CPPFLAGS="$cf_test_CPPFLAGS"
9384 LIBS="-lutf8 $cf_save_LIBS"
9385 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line 9387 "configure"
9388 #include "confdefs.h"
9390 #include <libutf8.h>
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (eval echo "$as_me:9400: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>&5
9403 echo "$as_me:9403: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:9406: \"$ac_try\"") >&5
9409 echo "$as_me:9409: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9412 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9414 echo "${as_me:-configure}:9414: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9416 cf_cv_find_linkage_utf8=yes
9417 cf_cv_library_file_utf8="-lutf8"
9420 echo "$as_me: failed program was:" >&5
9421 cat conftest.$ac_ext >&5
9423 CPPFLAGS="$cf_save_CPPFLAGS"
9424 LIBS="$cf_save_LIBS"
9425 LDFLAGS="$cf_save_LDFLAGS"
9428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9431 CPPFLAGS="$cf_save_CPPFLAGS"
9432 LDFLAGS="$cf_save_LDFLAGS"
9436 cf_cv_find_linkage_utf8=no
9440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9445 LIBS="$cf_save_LIBS"
9447 if test "$cf_cv_find_linkage_utf8" = yes ; then
9448 cf_cv_utf8_lib=add-on
9454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9456 echo "$as_me:9456: result: $cf_cv_utf8_lib" >&5
9457 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9459 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9461 if test "$cf_cv_utf8_lib" = "add-on" ; then
9463 cat >>confdefs.h <<\EOF
9464 #define HAVE_LIBUTF8_H 1
9467 if test -n "$cf_cv_header_path_utf8" ; then
9468 for cf_add_incdir in $cf_cv_header_path_utf8
9470 while test $cf_add_incdir != /usr/include
9472 if test -d $cf_add_incdir
9475 if test -n "$CFLAGS$CPPFLAGS" ; then
9476 # a loop is needed to ensure we can add subdirs of existing dirs
9477 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9478 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9479 cf_have_incdir=yes; break
9484 if test "$cf_have_incdir" = no ; then
9485 if test "$cf_add_incdir" = /usr/local/include ; then
9486 if test "$GCC" = yes
9488 cf_save_CPPFLAGS=$CPPFLAGS
9489 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9490 cat >conftest.$ac_ext <<_ACEOF
9491 #line 9491 "configure"
9492 #include "confdefs.h"
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:9503: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>&5
9506 echo "$as_me:9506: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -s conftest.$ac_objext'
9509 { (eval echo "$as_me:9509: \"$ac_try\"") >&5
9512 echo "$as_me:9512: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9516 echo "$as_me: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9520 rm -f conftest.$ac_objext conftest.$ac_ext
9521 CPPFLAGS=$cf_save_CPPFLAGS
9526 if test "$cf_have_incdir" = no ; then
9527 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9529 echo "${as_me:-configure}:9529: testing adding $cf_add_incdir to include-path ..." 1>&5
9531 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9533 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9534 test "$cf_top_incdir" = "$cf_add_incdir" && break
9535 cf_add_incdir="$cf_top_incdir"
9544 if test -n "$cf_cv_library_path_utf8" ; then
9545 for cf_add_libdir in $cf_cv_library_path_utf8
9547 if test $cf_add_libdir = /usr/lib ; then
9549 elif test -d $cf_add_libdir
9552 if test -n "$LDFLAGS$LIBS" ; then
9553 # a loop is needed to ensure we can add subdirs of existing dirs
9554 for cf_test_libdir in $LDFLAGS $LIBS ; do
9555 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9556 cf_have_libdir=yes; break
9560 if test "$cf_have_libdir" = no ; then
9561 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9563 echo "${as_me:-configure}:9563: testing adding $cf_add_libdir to library-path ..." 1>&5
9565 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9571 cf_add_libs="$cf_cv_library_file_utf8"
9572 # Filter out duplicates - this happens with badly-designed ".pc" files...
9573 for cf_add_1lib in $LIBS
9575 for cf_add_2lib in $cf_add_libs
9577 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9583 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9589 if test "$cf_cv_utf8_lib" != no ; then
9594 # This is needed on Tru64 5.0 to declare mbstate_t
9595 echo "$as_me:9595: checking if we must include wchar.h to declare mbstate_t" >&5
9596 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9597 if test "${cf_cv_mbstate_t+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line 9602 "configure"
9603 #include "confdefs.h"
9608 #ifdef HAVE_LIBUTF8_H
9609 #include <libutf8.h>
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:9620: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>&5
9623 echo "$as_me:9623: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:9626: \"$ac_try\"") >&5
9629 echo "$as_me:9629: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 cat >conftest.$ac_ext <<_ACEOF
9636 #line 9636 "configure"
9637 #include "confdefs.h"
9643 #ifdef HAVE_LIBUTF8_H
9644 #include <libutf8.h>
9654 rm -f conftest.$ac_objext
9655 if { (eval echo "$as_me:9655: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>&5
9658 echo "$as_me:9658: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -s conftest.$ac_objext'
9661 { (eval echo "$as_me:9661: \"$ac_try\"") >&5
9664 echo "$as_me:9664: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9668 echo "$as_me: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9670 cf_cv_mbstate_t=unknown
9672 rm -f conftest.$ac_objext conftest.$ac_ext
9674 rm -f conftest.$ac_objext conftest.$ac_ext
9676 echo "$as_me:9676: result: $cf_cv_mbstate_t" >&5
9677 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9679 if test "$cf_cv_mbstate_t" = yes ; then
9681 cat >>confdefs.h <<\EOF
9682 #define NEED_WCHAR_H 1
9688 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9689 if test "$cf_cv_mbstate_t" = unknown ; then
9693 # This is needed on Tru64 5.0 to declare wchar_t
9694 echo "$as_me:9694: checking if we must include wchar.h to declare wchar_t" >&5
9695 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9696 if test "${cf_cv_wchar_t+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9701 #line 9701 "configure"
9702 #include "confdefs.h"
9707 #ifdef HAVE_LIBUTF8_H
9708 #include <libutf8.h>
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:9719: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>&5
9722 echo "$as_me:9722: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:9725: \"$ac_try\"") >&5
9728 echo "$as_me:9728: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9732 echo "$as_me: failed program was:" >&5
9733 cat conftest.$ac_ext >&5
9734 cat >conftest.$ac_ext <<_ACEOF
9735 #line 9735 "configure"
9736 #include "confdefs.h"
9742 #ifdef HAVE_LIBUTF8_H
9743 #include <libutf8.h>
9753 rm -f conftest.$ac_objext
9754 if { (eval echo "$as_me:9754: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>&5
9757 echo "$as_me:9757: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:9760: \"$ac_try\"") >&5
9763 echo "$as_me:9763: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9767 echo "$as_me: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 cf_cv_wchar_t=unknown
9771 rm -f conftest.$ac_objext conftest.$ac_ext
9773 rm -f conftest.$ac_objext conftest.$ac_ext
9775 echo "$as_me:9775: result: $cf_cv_wchar_t" >&5
9776 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9778 if test "$cf_cv_wchar_t" = yes ; then
9780 cat >>confdefs.h <<\EOF
9781 #define NEED_WCHAR_H 1
9787 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9788 if test "$cf_cv_wchar_t" = unknown ; then
9792 # if we find wchar_t in either place, use substitution to provide a fallback.
9793 if test "$cf_cv_wchar_t" != unknown ; then
9794 NCURSES_OK_WCHAR_T=1
9797 # This is needed on Tru64 5.0 to declare wint_t
9798 echo "$as_me:9798: checking if we must include wchar.h to declare wint_t" >&5
9799 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9800 if test "${cf_cv_wint_t+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 cat >conftest.$ac_ext <<_ACEOF
9805 #line 9805 "configure"
9806 #include "confdefs.h"
9811 #ifdef HAVE_LIBUTF8_H
9812 #include <libutf8.h>
9822 rm -f conftest.$ac_objext
9823 if { (eval echo "$as_me:9823: \"$ac_compile\"") >&5
9824 (eval $ac_compile) 2>&5
9826 echo "$as_me:9826: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -s conftest.$ac_objext'
9829 { (eval echo "$as_me:9829: \"$ac_try\"") >&5
9832 echo "$as_me:9832: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9836 echo "$as_me: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line 9839 "configure"
9840 #include "confdefs.h"
9846 #ifdef HAVE_LIBUTF8_H
9847 #include <libutf8.h>
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:9858: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>&5
9861 echo "$as_me:9861: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:9864: \"$ac_try\"") >&5
9867 echo "$as_me:9867: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9871 echo "$as_me: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9873 cf_cv_wint_t=unknown
9875 rm -f conftest.$ac_objext conftest.$ac_ext
9877 rm -f conftest.$ac_objext conftest.$ac_ext
9879 echo "$as_me:9879: result: $cf_cv_wint_t" >&5
9880 echo "${ECHO_T}$cf_cv_wint_t" >&6
9882 if test "$cf_cv_wint_t" = yes ; then
9884 cat >>confdefs.h <<\EOF
9885 #define NEED_WCHAR_H 1
9891 # if we do not find wint_t in either place, use substitution to provide a fallback.
9892 if test "$cf_cv_wint_t" = unknown ; then
9896 # if we find wint_t in either place, use substitution to provide a fallback.
9897 if test "$cf_cv_wint_t" != unknown ; then
9901 if test "$NCURSES_MBSTATE_T" != 0; then
9903 cat >>confdefs.h <<\EOF
9904 #define NEED_MBSTATE_T_DEF 1
9910 ### use option --disable-lp64 to allow long chtype
9911 case $cf_cv_abi_version in
9913 default_with_lp64=no
9916 default_with_lp64=yes
9920 echo "$as_me:9920: checking whether to enable _LP64 definition in curses.h" >&5
9921 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9923 # Check whether --enable-lp64 or --disable-lp64 was given.
9924 if test "${enable_lp64+set}" = set; then
9925 enableval="$enable_lp64"
9926 with_lp64=$enableval
9928 with_lp64=$default_with_lp64
9930 echo "$as_me:9930: result: $with_lp64" >&5
9931 echo "${ECHO_T}$with_lp64" >&6
9933 if test "x$with_lp64" = xyes ; then
9939 # Check whether --enable-largefile or --disable-largefile was given.
9940 if test "${enable_largefile+set}" = set; then
9941 enableval="$enable_largefile"
9944 if test "$enable_largefile" != no; then
9946 echo "$as_me:9946: checking for special C compiler options needed for large files" >&5
9947 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9948 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 ac_cv_sys_largefile_CC=no
9952 if test "$GCC" != yes; then
9955 # IRIX 6.2 and later do not support large files by default,
9956 # so use the C compiler's -n32 option if that helps.
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line 9958 "configure"
9959 #include "confdefs.h"
9960 #include <sys/types.h>
9961 /* Check that off_t can represent 2**63 - 1 correctly.
9962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9963 since some C++ compilers masquerading as C compilers
9964 incorrectly reject 9223372036854775807. */
9965 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9967 && LARGE_OFF_T % 2147483647 == 1)
9977 rm -f conftest.$ac_objext
9978 if { (eval echo "$as_me:9978: \"$ac_compile\"") >&5
9979 (eval $ac_compile) 2>&5
9981 echo "$as_me:9981: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:9984: \"$ac_try\"") >&5
9987 echo "$as_me:9987: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9991 echo "$as_me: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9994 rm -f conftest.$ac_objext
9996 rm -f conftest.$ac_objext
9997 if { (eval echo "$as_me:9997: \"$ac_compile\"") >&5
9998 (eval $ac_compile) 2>&5
10000 echo "$as_me:10000: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -s conftest.$ac_objext'
10003 { (eval echo "$as_me:10003: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:10006: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_sys_largefile_CC=' -n32'; break
10010 echo "$as_me: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10013 rm -f conftest.$ac_objext
10017 rm -f conftest.$ac_ext
10020 echo "$as_me:10020: result: $ac_cv_sys_largefile_CC" >&5
10021 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10022 if test "$ac_cv_sys_largefile_CC" != no; then
10023 CC=$CC$ac_cv_sys_largefile_CC
10026 echo "$as_me:10026: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10027 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10028 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 ac_cv_sys_file_offset_bits=no
10033 cat >conftest.$ac_ext <<_ACEOF
10034 #line 10034 "configure"
10035 #include "confdefs.h"
10036 #include <sys/types.h>
10037 /* Check that off_t can represent 2**63 - 1 correctly.
10038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10039 since some C++ compilers masquerading as C compilers
10040 incorrectly reject 9223372036854775807. */
10041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10043 && LARGE_OFF_T % 2147483647 == 1)
10053 rm -f conftest.$ac_objext
10054 if { (eval echo "$as_me:10054: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>&5
10057 echo "$as_me:10057: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -s conftest.$ac_objext'
10060 { (eval echo "$as_me:10060: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:10063: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
10067 echo "$as_me: failed program was:" >&5
10068 cat conftest.$ac_ext >&5
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10071 cat >conftest.$ac_ext <<_ACEOF
10072 #line 10072 "configure"
10073 #include "confdefs.h"
10074 #define _FILE_OFFSET_BITS 64
10075 #include <sys/types.h>
10076 /* Check that off_t can represent 2**63 - 1 correctly.
10077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10078 since some C++ compilers masquerading as C compilers
10079 incorrectly reject 9223372036854775807. */
10080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10082 && LARGE_OFF_T % 2147483647 == 1)
10092 rm -f conftest.$ac_objext
10093 if { (eval echo "$as_me:10093: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>&5
10096 echo "$as_me:10096: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -s conftest.$ac_objext'
10099 { (eval echo "$as_me:10099: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:10102: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_sys_file_offset_bits=64; break
10106 echo "$as_me: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10109 rm -f conftest.$ac_objext conftest.$ac_ext
10113 echo "$as_me:10113: result: $ac_cv_sys_file_offset_bits" >&5
10114 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
10115 if test "$ac_cv_sys_file_offset_bits" != no; then
10117 cat >>confdefs.h <<EOF
10118 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10123 echo "$as_me:10123: checking for _LARGE_FILES value needed for large files" >&5
10124 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10125 if test "${ac_cv_sys_large_files+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 ac_cv_sys_large_files=no
10130 cat >conftest.$ac_ext <<_ACEOF
10131 #line 10131 "configure"
10132 #include "confdefs.h"
10133 #include <sys/types.h>
10134 /* Check that off_t can represent 2**63 - 1 correctly.
10135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10136 since some C++ compilers masquerading as C compilers
10137 incorrectly reject 9223372036854775807. */
10138 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10140 && LARGE_OFF_T % 2147483647 == 1)
10150 rm -f conftest.$ac_objext
10151 if { (eval echo "$as_me:10151: \"$ac_compile\"") >&5
10152 (eval $ac_compile) 2>&5
10154 echo "$as_me:10154: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -s conftest.$ac_objext'
10157 { (eval echo "$as_me:10157: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:10160: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10164 echo "$as_me: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10167 rm -f conftest.$ac_objext conftest.$ac_ext
10168 cat >conftest.$ac_ext <<_ACEOF
10169 #line 10169 "configure"
10170 #include "confdefs.h"
10171 #define _LARGE_FILES 1
10172 #include <sys/types.h>
10173 /* Check that off_t can represent 2**63 - 1 correctly.
10174 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10175 since some C++ compilers masquerading as C compilers
10176 incorrectly reject 9223372036854775807. */
10177 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10178 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10179 && LARGE_OFF_T % 2147483647 == 1)
10189 rm -f conftest.$ac_objext
10190 if { (eval echo "$as_me:10190: \"$ac_compile\"") >&5
10191 (eval $ac_compile) 2>&5
10193 echo "$as_me:10193: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:10196: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:10199: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_cv_sys_large_files=1; break
10203 echo "$as_me: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10210 echo "$as_me:10210: result: $ac_cv_sys_large_files" >&5
10211 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10212 if test "$ac_cv_sys_large_files" != no; then
10214 cat >>confdefs.h <<EOF
10215 #define _LARGE_FILES $ac_cv_sys_large_files
10222 if test "$enable_largefile" != no ; then
10223 echo "$as_me:10223: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10224 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10225 if test "${ac_cv_sys_largefile_source+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 ac_cv_sys_largefile_source=no
10230 cat >conftest.$ac_ext <<_ACEOF
10231 #line 10231 "configure"
10232 #include "confdefs.h"
10242 rm -f conftest.$ac_objext
10243 if { (eval echo "$as_me:10243: \"$ac_compile\"") >&5
10244 (eval $ac_compile) 2>&5
10246 echo "$as_me:10246: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -s conftest.$ac_objext'
10249 { (eval echo "$as_me:10249: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:10252: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10256 echo "$as_me: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10259 rm -f conftest.$ac_objext conftest.$ac_ext
10260 cat >conftest.$ac_ext <<_ACEOF
10261 #line 10261 "configure"
10262 #include "confdefs.h"
10263 #define _LARGEFILE_SOURCE 1
10273 rm -f conftest.$ac_objext
10274 if { (eval echo "$as_me:10274: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>&5
10277 echo "$as_me:10277: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -s conftest.$ac_objext'
10280 { (eval echo "$as_me:10280: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10283 echo "$as_me:10283: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 ac_cv_sys_largefile_source=1; break
10287 echo "$as_me: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10290 rm -f conftest.$ac_objext conftest.$ac_ext
10294 echo "$as_me:10294: result: $ac_cv_sys_largefile_source" >&5
10295 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10296 if test "$ac_cv_sys_largefile_source" != no; then
10298 cat >>confdefs.h <<EOF
10299 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10305 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10306 # in glibc 2.1.3, but that breaks too many other things.
10307 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10308 echo "$as_me:10308: checking for fseeko" >&5
10309 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10310 if test "${ac_cv_func_fseeko+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 cat >conftest.$ac_ext <<_ACEOF
10314 #line 10314 "configure"
10315 #include "confdefs.h"
10320 return fseeko && fseeko (stdin, 0, 0);
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (eval echo "$as_me:10326: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>&5
10329 echo "$as_me:10329: \$? = $ac_status" >&5
10330 (exit $ac_status); } &&
10331 { ac_try='test -s conftest$ac_exeext'
10332 { (eval echo "$as_me:10332: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10335 echo "$as_me:10335: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 ac_cv_func_fseeko=yes
10339 echo "$as_me: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10341 ac_cv_func_fseeko=no
10343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10345 echo "$as_me:10345: result: $ac_cv_func_fseeko" >&5
10346 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10347 if test $ac_cv_func_fseeko = yes; then
10349 cat >>confdefs.h <<\EOF
10350 #define HAVE_FSEEKO 1
10355 # Normally we would collect these definitions in the config.h,
10356 # but (like _XOPEN_SOURCE), some environments rely on having these
10357 # defined before any of the system headers are included. Another
10358 # case comes up with C++, e.g., on AIX the compiler compiles the
10359 # header files by themselves before looking at the body files it is
10360 # told to compile. For ncurses, those header files do not include
10362 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10363 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10364 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10366 echo "$as_me:10366: checking whether to use struct dirent64" >&5
10367 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10368 if test "${cf_cv_struct_dirent64+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line 10373 "configure"
10374 #include "confdefs.h"
10376 #include <sys/types.h>
10377 #include <dirent.h>
10383 /* if transitional largefile support is setup, this is true */
10384 extern struct dirent64 * readdir(DIR *);
10385 struct dirent64 *x = readdir((DIR *)0);
10386 struct dirent *y = readdir((DIR *)0);
10393 rm -f conftest.$ac_objext
10394 if { (eval echo "$as_me:10394: \"$ac_compile\"") >&5
10395 (eval $ac_compile) 2>&5
10397 echo "$as_me:10397: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -s conftest.$ac_objext'
10400 { (eval echo "$as_me:10400: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10403 echo "$as_me:10403: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 cf_cv_struct_dirent64=yes
10407 echo "$as_me: failed program was:" >&5
10408 cat conftest.$ac_ext >&5
10409 cf_cv_struct_dirent64=no
10411 rm -f conftest.$ac_objext conftest.$ac_ext
10414 echo "$as_me:10414: result: $cf_cv_struct_dirent64" >&5
10415 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10416 test "$cf_cv_struct_dirent64" = yes &&
10417 cat >>confdefs.h <<\EOF
10418 #define HAVE_STRUCT_DIRENT64 1
10423 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10424 echo "$as_me:10424: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10425 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10427 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10428 if test "${enable_tparm_varargs+set}" = set; then
10429 enableval="$enable_tparm_varargs"
10430 with_tparm_varargs=$enableval
10432 with_tparm_varargs=yes
10434 echo "$as_me:10434: result: $with_tparm_varargs" >&5
10435 echo "${ECHO_T}$with_tparm_varargs" >&6
10436 NCURSES_TPARM_VARARGS=0
10437 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
10439 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10440 if test "$with_ticlib" != no ; then
10441 echo "$as_me:10441: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10442 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10444 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10445 if test "${enable_tic_depends+set}" = set; then
10446 enableval="$enable_tic_depends"
10447 with_tic_depends=$enableval
10449 with_tic_depends=yes
10451 echo "$as_me:10451: result: $with_tic_depends" >&5
10452 echo "${ECHO_T}$with_tic_depends" >&6
10454 with_tic_depends=no
10457 ### use option --with-bool to override bool's type
10458 echo "$as_me:10458: checking for type of bool" >&5
10459 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10461 # Check whether --with-bool or --without-bool was given.
10462 if test "${with_bool+set}" = set; then
10463 withval="$with_bool"
10464 NCURSES_BOOL="$withval"
10468 echo "$as_me:10468: result: $NCURSES_BOOL" >&5
10469 echo "${ECHO_T}$NCURSES_BOOL" >&6
10471 echo "$as_me:10471: checking for alternate terminal capabilities file" >&5
10472 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10474 # Check whether --with-caps or --without-caps was given.
10475 if test "${with_caps+set}" = set; then
10476 withval="$with_caps"
10477 TERMINFO_CAPS=Caps.$withval
10481 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10482 echo "$as_me:10482: result: $TERMINFO_CAPS" >&5
10483 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10485 ### use option --with-chtype to override chtype's type
10486 echo "$as_me:10486: checking for type of chtype" >&5
10487 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10489 # Check whether --with-chtype or --without-chtype was given.
10490 if test "${with_chtype+set}" = set; then
10491 withval="$with_chtype"
10492 NCURSES_CHTYPE="$withval"
10494 NCURSES_CHTYPE=auto
10496 echo "$as_me:10496: result: $NCURSES_CHTYPE" >&5
10497 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10499 ### use option --with-ospeed to override ospeed's type
10500 echo "$as_me:10500: checking for type of ospeed" >&5
10501 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10503 # Check whether --with-ospeed or --without-ospeed was given.
10504 if test "${with_ospeed+set}" = set; then
10505 withval="$with_ospeed"
10506 NCURSES_OSPEED="$withval"
10508 NCURSES_OSPEED=short
10510 echo "$as_me:10510: result: $NCURSES_OSPEED" >&5
10511 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10513 ### use option --with-mmask-t to override mmask_t's type
10514 echo "$as_me:10514: checking for type of mmask_t" >&5
10515 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10517 # Check whether --with-mmask-t or --without-mmask-t was given.
10518 if test "${with_mmask_t+set}" = set; then
10519 withval="$with_mmask_t"
10520 NCURSES_MMASK_T="$withval"
10522 NCURSES_MMASK_T=auto
10524 echo "$as_me:10524: result: $NCURSES_MMASK_T" >&5
10525 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10527 ### use option --with-ccharw-max to override CCHARW_MAX size
10528 echo "$as_me:10528: checking for size CCHARW_MAX" >&5
10529 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10531 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10532 if test "${with_ccharw_max+set}" = set; then
10533 withval="$with_ccharw_max"
10534 NCURSES_CCHARW_MAX="$withval"
10536 NCURSES_CCHARW_MAX=5
10538 echo "$as_me:10538: result: $NCURSES_CCHARW_MAX" >&5
10539 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10541 ### use option --with-tparm-arg to override tparm's argument type
10542 echo "$as_me:10542: checking for type of tparm args" >&5
10543 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10545 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10546 if test "${with_tparm_arg+set}" = set; then
10547 withval="$with_tparm_arg"
10548 NCURSES_TPARM_ARG="$withval"
10550 NCURSES_TPARM_ARG=long
10552 echo "$as_me:10552: result: $NCURSES_TPARM_ARG" >&5
10553 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10555 ### Enable compiling-in rcs id's
10556 echo "$as_me:10556: checking if RCS identifiers should be compiled-in" >&5
10557 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10559 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10560 if test "${with_rcs_ids+set}" = set; then
10561 withval="$with_rcs_ids"
10562 with_rcs_ids=$withval
10566 echo "$as_me:10566: result: $with_rcs_ids" >&5
10567 echo "${ECHO_T}$with_rcs_ids" >&6
10568 test "x$with_rcs_ids" = xyes &&
10569 cat >>confdefs.h <<\EOF
10570 #define USE_RCS_IDS 1
10573 ###############################################################################
10575 echo "$as_me:10575: checking format of man-pages" >&5
10576 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10578 # Check whether --with-manpage-format or --without-manpage-format was given.
10579 if test "${with_manpage_format+set}" = set; then
10580 withval="$with_manpage_format"
10581 MANPAGE_FORMAT=$withval
10583 MANPAGE_FORMAT=unknown
10586 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10587 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10591 case $MANPAGE_FORMAT in
10593 if test -z "$MANPATH" ; then
10594 MANPATH="/usr/man:/usr/share/man"
10597 # look for the 'date' man-page (it's most likely to be installed!)
10603 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10604 for cf_dir in $MANPATH; do
10605 test -z "$cf_dir" && cf_dir=/usr/man
10606 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
10608 cf_test=`echo $cf_name | sed -e 's/*//'`
10609 if test "x$cf_test" = "x$cf_name" ; then
10612 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10613 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10614 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10615 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10629 # if we found a match in either man* or cat*, stop looking
10630 if test -n "$MANPAGE_FORMAT" ; then
10632 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10633 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10639 test $cf_found=yes && break
10642 # only check the first directory in $MANPATH where we find manpages
10643 if test -n "$MANPAGE_FORMAT" ; then
10647 # if we did not find the example, just assume it is normal
10648 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10652 for cf_option in $MANPAGE_FORMAT; do
10653 case $cf_option in #(vi
10654 gzip|compress|BSDI|normal|formatted|catonly)
10657 cf_unknown="$cf_unknown $cf_option"
10664 echo "$as_me:10664: result: $MANPAGE_FORMAT" >&5
10665 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10666 if test -n "$cf_unknown" ; then
10667 { echo "$as_me:10667: WARNING: Unexpected manpage-format $cf_unknown" >&5
10668 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10671 echo "$as_me:10671: checking for manpage renaming" >&5
10672 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10674 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10675 if test "${with_manpage_renames+set}" = set; then
10676 withval="$with_manpage_renames"
10677 MANPAGE_RENAMES=$withval
10679 MANPAGE_RENAMES=yes
10682 case ".$MANPAGE_RENAMES" in #(vi
10686 # Debian 'man' program?
10687 if test -f /etc/debian_version ; then
10688 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10695 if test "$MANPAGE_RENAMES" != no ; then
10696 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10697 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10698 elif test ! -f $MANPAGE_RENAMES ; then
10699 { { echo "$as_me:10699: error: not a filename: $MANPAGE_RENAMES" >&5
10700 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10701 { (exit 1); exit 1; }; }
10704 test ! -d man && mkdir man
10706 # Construct a sed-script to perform renaming within man-pages
10707 if test -n "$MANPAGE_RENAMES" ; then
10708 test ! -d man && mkdir man
10709 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10713 echo "$as_me:10713: result: $MANPAGE_RENAMES" >&5
10714 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10716 echo "$as_me:10716: checking if manpage aliases will be installed" >&5
10717 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10719 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10720 if test "${with_manpage_aliases+set}" = set; then
10721 withval="$with_manpage_aliases"
10722 MANPAGE_ALIASES=$withval
10724 MANPAGE_ALIASES=yes
10727 echo "$as_me:10727: result: $MANPAGE_ALIASES" >&5
10728 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10730 case "x$LN_S" in #(vi
10732 cf_use_symlinks=yes
10739 MANPAGE_SYMLINKS=no
10740 if test "$MANPAGE_ALIASES" = yes ; then
10741 echo "$as_me:10741: checking if manpage symlinks should be used" >&5
10742 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10744 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10745 if test "${with_manpage_symlinks+set}" = set; then
10746 withval="$with_manpage_symlinks"
10747 MANPAGE_SYMLINKS=$withval
10749 MANPAGE_SYMLINKS=$cf_use_symlinks
10752 if test "$$cf_use_symlinks" = no; then
10753 if test "$MANPAGE_SYMLINKS" = yes ; then
10754 { echo "$as_me:10754: WARNING: cannot make symlinks" >&5
10755 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10756 MANPAGE_SYMLINKS=no
10760 echo "$as_me:10760: result: $MANPAGE_SYMLINKS" >&5
10761 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10764 echo "$as_me:10764: checking for manpage tbl" >&5
10765 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10767 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10768 if test "${with_manpage_tbl+set}" = set; then
10769 withval="$with_manpage_tbl"
10770 MANPAGE_TBL=$withval
10775 echo "$as_me:10775: result: $MANPAGE_TBL" >&5
10776 echo "${ECHO_T}$MANPAGE_TBL" >&6
10778 if test "$prefix" = "NONE" ; then
10779 cf_prefix="$ac_default_prefix"
10781 cf_prefix="$prefix"
10784 case "$MANPAGE_FORMAT" in # (vi
10799 test ! -d man && mkdir man
10803 case "$MANPAGE_FORMAT" in #(vi
10806 cf_compress=compress
10814 cf_edit_man=./edit_man.sh
10815 cf_man_alias=`pwd`/man_alias.sed
10817 cat >$cf_edit_man <<CF_EOF
10819 # this script is generated by the configure-script CF_MAN_PAGES macro.
10821 prefix="$cf_prefix"
10822 datarootdir="$datarootdir"
10825 NCURSES_MAJOR="$NCURSES_MAJOR"
10826 NCURSES_MINOR="$NCURSES_MINOR"
10827 NCURSES_PATCH="$NCURSES_PATCH"
10829 NCURSES_OSPEED="$NCURSES_OSPEED"
10830 TERMINFO="$TERMINFO"
10833 INSTALL_DATA="$INSTALL_DATA"
10835 transform="$program_transform_name"
10837 TMP=\${TMPDIR:=/tmp}/man\$\$
10838 trap "rm -f \$TMP" 0 1 2 5 15
10850 top_srcdir=\$srcdir/..
10853 if test "\$form" = normal ; then
10854 if test "$cf_format" = yes ; then
10855 if test "$cf_inboth" = no ; then
10856 sh \$0 format \$verb \$mandir \$srcdir \$*
10860 cf_subdir=\$mandir/man
10861 cf_tables=$MANPAGE_TBL
10863 cf_subdir=\$mandir/cat
10867 # process the list of source-files
10870 *.orig|*.rej) ;; #(vi
10872 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10873 if test \$verb = installing ; then
10874 if test ! -d \$cf_subdir\${section} ; then
10875 mkdir -p \$cf_subdir\$section
10879 # replace variables in man page
10880 if test ! -f $cf_man_alias ; then
10881 cat >>$cf_man_alias <<-CF_EOF2
10882 s,@DATADIR@,\$datadir,g
10883 s,@TERMINFO@,\${TERMINFO:="no default value"},g
10884 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
10885 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
10886 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
10887 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
10888 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
10891 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10893 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10894 cf_name=`echo $cf_name|sed "$program_transform_name"`
10895 cat >>$cf_edit_man <<-CF_EOF
10896 s,@$cf_NAME@,$cf_name,g
10900 cat >>$cf_edit_man <<CF_EOF
10902 echo "...made $cf_man_alias"
10906 cf_source=\`basename \$i\`
10907 inalias=\$cf_source
10908 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10909 if test ! -f \$inalias ; then
10910 echo .. skipped \$cf_source
10915 if test "$MANPAGE_ALIASES" != no ; then
10916 cat >>$cf_edit_man <<CF_EOF
10918 test $with_curses_h = yes && nCurses=ncurses.3x
10919 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10923 if test "$MANPAGE_RENAMES" = no ; then
10924 cat >>$cf_edit_man <<CF_EOF
10925 # perform program transformations for section 1 man pages
10926 if test \$section = 1 ; then
10927 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10929 cf_target=\$cf_subdir\${section}/\$cf_source
10933 cat >>$cf_edit_man <<CF_EOF
10934 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10935 if test -z "\$cf_target" ; then
10936 echo '? missing rename for '\$cf_source
10937 cf_target="\$cf_source"
10939 cf_target="\$cf_subdir\${section}/\${cf_target}"
10944 cat >>$cf_edit_man <<CF_EOF
10945 sed -f $cf_man_alias \\
10948 if test -f $MANPAGE_RENAMES ; then
10949 cat >>$cf_edit_man <<CF_EOF
10950 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10953 cat >>$cf_edit_man <<CF_EOF
10958 cat >>$cf_edit_man <<CF_EOF
10959 if test \$cf_tables = yes ; then
10960 tbl \$TMP >\$TMP.out
10965 if test $with_overwrite != yes ; then
10966 cat >>$cf_edit_man <<CF_EOF
10967 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10972 if test $with_curses_h != yes ; then
10973 cat >>$cf_edit_man <<CF_EOF
10974 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10979 cat >>$cf_edit_man <<CF_EOF
10980 if test \$form = format ; then
10981 nroff -man \$TMP >\$TMP.out
10986 if test -n "$cf_compress" ; then
10987 cat >>$cf_edit_man <<CF_EOF
10988 if test \$verb = installing ; then
10989 if ( $cf_compress -f \$TMP )
10991 mv \$TMP.$cf_so_strip \$TMP
10994 cf_target="\$cf_target.$cf_so_strip"
10998 case "$MANPAGE_FORMAT" in #(vi
11000 cat >>$cf_edit_man <<CF_EOF
11001 if test \$form = format ; then
11002 # BSDI installs only .0 suffixes in the cat directories
11003 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11009 cat >>$cf_edit_man <<CF_EOF
11010 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11011 if test \$verb = installing ; then
11012 echo \$verb \$cf_target
11013 \$INSTALL_DATA \$TMP \$cf_target
11014 test -d \$cf_subdir\${section} &&
11015 test -n "\$aliases" && (
11016 cd \$cf_subdir\${section} && (
11017 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11018 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11019 cf_target=\`basename \$cf_target\`
11020 for cf_alias in \$aliases
11022 if test \$section = 1 ; then
11023 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11026 if test "$MANPAGE_SYMLINKS" = yes ; then
11027 if test -f \$cf_alias\${suffix} ; then
11028 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11033 echo .. \$verb alias \$cf_alias\${suffix}
11035 case "x$LN_S" in #(vi
11037 cat >>$cf_edit_man <<CF_EOF
11038 $LN_S \$cf_target \$cf_alias\${suffix}
11042 cat >>$cf_edit_man <<CF_EOF
11043 rm -f \$cf_alias\${suffix}
11044 $LN_S \$cf_target \$cf_alias\${suffix}
11048 cat >>$cf_edit_man <<CF_EOF
11049 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
11050 echo ".so \$cf_source" >\$TMP
11052 if test -n "$cf_compress" ; then
11053 cat >>$cf_edit_man <<CF_EOF
11054 if test -n "$cf_so_strip" ; then
11055 $cf_compress -f \$TMP
11056 mv \$TMP.$cf_so_strip \$TMP
11060 cat >>$cf_edit_man <<CF_EOF
11061 echo .. \$verb alias \$cf_alias\${suffix}
11062 rm -f \$cf_alias\${suffix}
11063 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
11068 elif test \$verb = removing ; then
11069 test -f \$cf_target && (
11070 echo \$verb \$cf_target
11073 test -d \$cf_subdir\${section} &&
11074 test -n "\$aliases" && (
11075 cd \$cf_subdir\${section} && (
11076 for cf_alias in \$aliases
11078 if test \$section = 1 ; then
11079 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11082 echo .. \$verb alias \$cf_alias\${suffix}
11083 rm -f \$cf_alias\${suffix}
11095 if test $cf_inboth = yes ; then
11096 if test \$form != format ; then
11097 sh \$0 format \$verb \$mandir \$srcdir \$*
11103 chmod 755 $cf_edit_man
11105 ###############################################################################
11107 ### Note that some functions (such as const) are normally disabled anyway.
11108 echo "$as_me:11108: checking if you want to build with function extensions" >&5
11109 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
11111 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
11112 if test "${enable_ext_funcs+set}" = set; then
11113 enableval="$enable_ext_funcs"
11114 with_ext_funcs=$enableval
11118 echo "$as_me:11118: result: $with_ext_funcs" >&5
11119 echo "${ECHO_T}$with_ext_funcs" >&6
11120 if test "x$with_ext_funcs" = xyes ; then
11121 NCURSES_EXT_FUNCS=1
11123 cat >>confdefs.h <<\EOF
11124 #define HAVE_ASSUME_DEFAULT_COLORS 1
11127 cat >>confdefs.h <<\EOF
11128 #define HAVE_CURSES_VERSION 1
11131 cat >>confdefs.h <<\EOF
11132 #define HAVE_HAS_KEY 1
11135 cat >>confdefs.h <<\EOF
11136 #define HAVE_RESIZETERM 1
11139 cat >>confdefs.h <<\EOF
11140 #define HAVE_RESIZE_TERM 1
11143 cat >>confdefs.h <<\EOF
11144 #define HAVE_TERM_ENTRY_H 1
11147 cat >>confdefs.h <<\EOF
11148 #define HAVE_USE_DEFAULT_COLORS 1
11151 cat >>confdefs.h <<\EOF
11152 #define HAVE_USE_SCREEN 1
11155 cat >>confdefs.h <<\EOF
11156 #define HAVE_USE_WINDOW 1
11159 cat >>confdefs.h <<\EOF
11160 #define HAVE_WRESIZE 1
11163 cat >>confdefs.h <<\EOF
11164 #define NCURSES_EXT_FUNCS 1
11167 GENERATED_EXT_FUNCS=generated
11169 NCURSES_EXT_FUNCS=0
11170 GENERATED_EXT_FUNCS=
11173 echo "$as_me:11173: checking if you want to build with experimental SCREEN extensions" >&5
11174 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
11176 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11177 if test "${enable_sp_funcs+set}" = set; then
11178 enableval="$enable_sp_funcs"
11179 with_sp_funcs=$enableval
11183 echo "$as_me:11183: result: $with_sp_funcs" >&5
11184 echo "${ECHO_T}$with_sp_funcs" >&6
11185 if test "x$with_sp_funcs" = xyes ; then
11188 cat >>confdefs.h <<\EOF
11189 #define NCURSES_SP_FUNCS 1
11192 GENERATED_SP_FUNCS=generated
11195 GENERATED_SP_FUNCS=
11198 echo "$as_me:11198: checking if you want to build with experimental terminal-driver" >&5
11199 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
11201 # Check whether --enable-term-driver or --disable-term-driver was given.
11202 if test "${enable_term_driver+set}" = set; then
11203 enableval="$enable_term_driver"
11204 with_term_driver=$enableval
11206 with_term_driver=no
11208 echo "$as_me:11208: result: $with_term_driver" >&5
11209 echo "${ECHO_T}$with_term_driver" >&6
11210 if test "x$with_term_driver" = xyes ; then
11212 cat >>confdefs.h <<\EOF
11213 #define USE_TERM_DRIVER 1
11216 if test "x$with_sp_funcs" != xyes ; then
11217 { { echo "$as_me:11217: error: The term-driver option relies upon sp-funcs" >&5
11218 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11219 { (exit 1); exit 1; }; }
11223 ### use option --enable-const to turn on use of const beyond that in XSI.
11224 echo "$as_me:11224: checking for extended use of const keyword" >&5
11225 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11227 # Check whether --enable-const or --disable-const was given.
11228 if test "${enable_const+set}" = set; then
11229 enableval="$enable_const"
11230 with_ext_const=$enableval
11234 echo "$as_me:11234: result: $with_ext_const" >&5
11235 echo "${ECHO_T}$with_ext_const" >&6
11236 NCURSES_CONST='/*nothing*/'
11237 if test "x$with_ext_const" = xyes ; then
11238 NCURSES_CONST=const
11241 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11242 echo "$as_me:11242: checking if you want to use extended colors" >&5
11243 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11245 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11246 if test "${enable_ext_colors+set}" = set; then
11247 enableval="$enable_ext_colors"
11248 with_ext_colors=$enableval
11252 echo "$as_me:11252: result: $with_ext_colors" >&5
11253 echo "${ECHO_T}$with_ext_colors" >&6
11254 NCURSES_EXT_COLORS=0
11255 if test "x$with_ext_colors" = xyes ; then
11256 if test "x$with_widec" != xyes ; then
11257 { { echo "$as_me:11257: error: This option applies only to wide-character library" >&5
11258 echo "$as_me: error: This option applies only to wide-character library" >&2;}
11259 { (exit 1); exit 1; }; }
11261 # cannot be ABI 5 since it changes sizeof(cchar_t)
11263 if test "${with_abi_version+set}" != set; then
11264 case $cf_cv_rel_version in
11266 cf_cv_rel_version=6.0
11267 cf_cv_abi_version=6
11268 { echo "$as_me:11268: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11269 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11275 NCURSES_EXT_COLORS=1
11277 cat >>confdefs.h <<\EOF
11278 #define NCURSES_EXT_COLORS 1
11283 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11284 echo "$as_me:11284: checking if you want to use extended mouse encoding" >&5
11285 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11287 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11288 if test "${enable_ext_mouse+set}" = set; then
11289 enableval="$enable_ext_mouse"
11290 with_ext_mouse=$enableval
11294 echo "$as_me:11294: result: $with_ext_mouse" >&5
11295 echo "${ECHO_T}$with_ext_mouse" >&6
11296 NCURSES_MOUSE_VERSION=1
11297 if test "x$with_ext_mouse" = xyes ; then
11298 NCURSES_MOUSE_VERSION=2
11300 if test "${with_abi_version+set}" != set; then
11301 case $cf_cv_rel_version in
11303 cf_cv_rel_version=6.0
11304 cf_cv_abi_version=6
11305 { echo "$as_me:11305: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11306 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11313 echo "$as_me:11313: checking if you want \$NCURSES_NO_PADDING code" >&5
11314 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11316 # Check whether --enable-no-padding or --disable-no-padding was given.
11317 if test "${enable_no_padding+set}" = set; then
11318 enableval="$enable_no_padding"
11319 with_no_padding=$enableval
11321 with_no_padding=$with_ext_funcs
11323 echo "$as_me:11323: result: $with_no_padding" >&5
11324 echo "${ECHO_T}$with_no_padding" >&6
11325 test "x$with_no_padding" = xyes &&
11326 cat >>confdefs.h <<\EOF
11327 #define NCURSES_NO_PADDING 1
11330 echo "$as_me:11330: checking for ANSI C header files" >&5
11331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11332 if test "${ac_cv_header_stdc+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 cat >conftest.$ac_ext <<_ACEOF
11336 #line 11336 "configure"
11337 #include "confdefs.h"
11338 #include <stdlib.h>
11339 #include <stdarg.h>
11340 #include <string.h>
11344 if { (eval echo "$as_me:11344: \"$ac_cpp conftest.$ac_ext\"") >&5
11345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11347 egrep -v '^ *\+' conftest.er1 >conftest.err
11349 cat conftest.err >&5
11350 echo "$as_me:11350: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev/null; then
11352 if test -s conftest.err; then
11353 ac_cpp_err=$ac_c_preproc_warn_flag
11360 if test -z "$ac_cpp_err"; then
11361 ac_cv_header_stdc=yes
11363 echo "$as_me: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 ac_cv_header_stdc=no
11367 rm -f conftest.err conftest.$ac_ext
11369 if test $ac_cv_header_stdc = yes; then
11370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11371 cat >conftest.$ac_ext <<_ACEOF
11372 #line 11372 "configure"
11373 #include "confdefs.h"
11374 #include <string.h>
11377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11378 egrep "memchr" >/dev/null 2>&1; then
11381 ac_cv_header_stdc=no
11387 if test $ac_cv_header_stdc = yes; then
11388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line 11390 "configure"
11391 #include "confdefs.h"
11392 #include <stdlib.h>
11395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11396 egrep "free" >/dev/null 2>&1; then
11399 ac_cv_header_stdc=no
11405 if test $ac_cv_header_stdc = yes; then
11406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11407 if test "$cross_compiling" = yes; then
11410 cat >conftest.$ac_ext <<_ACEOF
11411 #line 11411 "configure"
11412 #include "confdefs.h"
11414 #if ((' ' & 0x0FF) == 0x020)
11415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11418 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11419 || ('j' <= (c) && (c) <= 'r') \
11420 || ('s' <= (c) && (c) <= 'z'))
11421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11429 for (i = 0; i < 256; i++)
11430 if (XOR (islower (i), ISLOWER (i))
11431 || toupper (i) != TOUPPER (i))
11432 $ac_main_return(2);
11433 $ac_main_return (0);
11436 rm -f conftest$ac_exeext
11437 if { (eval echo "$as_me:11437: \"$ac_link\"") >&5
11438 (eval $ac_link) 2>&5
11440 echo "$as_me:11440: \$? = $ac_status" >&5
11441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11442 { (eval echo "$as_me:11442: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11445 echo "$as_me:11445: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11449 echo "$as_me: program exited with status $ac_status" >&5
11450 echo "$as_me: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11452 ac_cv_header_stdc=no
11454 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11458 echo "$as_me:11458: result: $ac_cv_header_stdc" >&5
11459 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11460 if test $ac_cv_header_stdc = yes; then
11462 cat >>confdefs.h <<\EOF
11463 #define STDC_HEADERS 1
11468 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11471 inttypes.h stdint.h unistd.h
11473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11474 echo "$as_me:11474: checking for $ac_header" >&5
11475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11480 #line 11480 "configure"
11481 #include "confdefs.h"
11482 $ac_includes_default
11483 #include <$ac_header>
11485 rm -f conftest.$ac_objext
11486 if { (eval echo "$as_me:11486: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>&5
11489 echo "$as_me:11489: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:11492: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:11495: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 eval "$as_ac_Header=yes"
11499 echo "$as_me: failed program was:" >&5
11500 cat conftest.$ac_ext >&5
11501 eval "$as_ac_Header=no"
11503 rm -f conftest.$ac_objext conftest.$ac_ext
11505 echo "$as_me:11505: result: `eval echo '${'$as_ac_Header'}'`" >&5
11506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11508 cat >>confdefs.h <<EOF
11509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11515 echo "$as_me:11515: checking for signed char" >&5
11516 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11517 if test "${ac_cv_type_signed_char+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 cat >conftest.$ac_ext <<_ACEOF
11521 #line 11521 "configure"
11522 #include "confdefs.h"
11523 $ac_includes_default
11527 if ((signed char *) 0)
11529 if (sizeof (signed char))
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:11536: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>&5
11539 echo "$as_me:11539: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (eval echo "$as_me:11542: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:11545: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_type_signed_char=yes
11549 echo "$as_me: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11551 ac_cv_type_signed_char=no
11553 rm -f conftest.$ac_objext conftest.$ac_ext
11555 echo "$as_me:11555: result: $ac_cv_type_signed_char" >&5
11556 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11558 echo "$as_me:11558: checking size of signed char" >&5
11559 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11560 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 if test "$ac_cv_type_signed_char" = yes; then
11564 if test "$cross_compiling" = yes; then
11565 # Depending upon the size, compute the lo and hi bounds.
11566 cat >conftest.$ac_ext <<_ACEOF
11567 #line 11567 "configure"
11568 #include "confdefs.h"
11569 $ac_includes_default
11573 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:11579: \"$ac_compile\"") >&5
11580 (eval $ac_compile) 2>&5
11582 echo "$as_me:11582: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -s conftest.$ac_objext'
11585 { (eval echo "$as_me:11585: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:11588: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11592 cat >conftest.$ac_ext <<_ACEOF
11593 #line 11593 "configure"
11594 #include "confdefs.h"
11595 $ac_includes_default
11599 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:11605: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>&5
11608 echo "$as_me:11608: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try='test -s conftest.$ac_objext'
11611 { (eval echo "$as_me:11611: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:11614: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_hi=$ac_mid; break
11618 echo "$as_me: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11622 rm -f conftest.$ac_objext conftest.$ac_ext
11625 echo "$as_me: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11629 cat >conftest.$ac_ext <<_ACEOF
11630 #line 11630 "configure"
11631 #include "confdefs.h"
11632 $ac_includes_default
11636 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:11642: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>&5
11645 echo "$as_me:11645: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -s conftest.$ac_objext'
11648 { (eval echo "$as_me:11648: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11651 echo "$as_me:11651: \$? = $ac_status" >&5
11652 (exit $ac_status); }; }; then
11653 ac_lo=$ac_mid; break
11655 echo "$as_me: failed program was:" >&5
11656 cat conftest.$ac_ext >&5
11657 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11659 rm -f conftest.$ac_objext conftest.$ac_ext
11662 rm -f conftest.$ac_objext conftest.$ac_ext
11663 # Binary search between lo and hi bounds.
11664 while test "x$ac_lo" != "x$ac_hi"; do
11665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11666 cat >conftest.$ac_ext <<_ACEOF
11667 #line 11667 "configure"
11668 #include "confdefs.h"
11669 $ac_includes_default
11673 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11678 rm -f conftest.$ac_objext
11679 if { (eval echo "$as_me:11679: \"$ac_compile\"") >&5
11680 (eval $ac_compile) 2>&5
11682 echo "$as_me:11682: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -s conftest.$ac_objext'
11685 { (eval echo "$as_me:11685: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:11688: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11692 echo "$as_me: failed program was:" >&5
11693 cat conftest.$ac_ext >&5
11694 ac_lo=`expr $ac_mid + 1`
11696 rm -f conftest.$ac_objext conftest.$ac_ext
11698 ac_cv_sizeof_signed_char=$ac_lo
11700 if test "$cross_compiling" = yes; then
11701 { { echo "$as_me:11701: error: cannot run test program while cross compiling" >&5
11702 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11703 { (exit 1); exit 1; }; }
11705 cat >conftest.$ac_ext <<_ACEOF
11706 #line 11706 "configure"
11707 #include "confdefs.h"
11708 $ac_includes_default
11712 FILE *f = fopen ("conftest.val", "w");
11714 $ac_main_return (1);
11715 fprintf (f, "%d", (sizeof (signed char)));
11721 rm -f conftest$ac_exeext
11722 if { (eval echo "$as_me:11722: \"$ac_link\"") >&5
11723 (eval $ac_link) 2>&5
11725 echo "$as_me:11725: \$? = $ac_status" >&5
11726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11727 { (eval echo "$as_me:11727: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:11730: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 ac_cv_sizeof_signed_char=`cat conftest.val`
11734 echo "$as_me: program exited with status $ac_status" >&5
11735 echo "$as_me: failed program was:" >&5
11736 cat conftest.$ac_ext >&5
11738 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11743 ac_cv_sizeof_signed_char=0
11746 echo "$as_me:11746: result: $ac_cv_sizeof_signed_char" >&5
11747 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11748 cat >>confdefs.h <<EOF
11749 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11752 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11753 NCURSES_SBOOL="signed char"
11755 NCURSES_SBOOL="char"
11757 echo "$as_me:11757: checking if you want to use signed Boolean array in term.h" >&5
11758 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11760 # Check whether --enable-signed-char or --disable-signed-char was given.
11761 if test "${enable_signed_char+set}" = set; then
11762 enableval="$enable_signed_char"
11763 with_signed_char=$enableval
11765 with_signed_char=no
11767 echo "$as_me:11767: result: $with_signed_char" >&5
11768 echo "${ECHO_T}$with_signed_char" >&6
11769 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
11771 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11772 echo "$as_me:11772: checking if you want SIGWINCH handler" >&5
11773 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11775 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11776 if test "${enable_sigwinch+set}" = set; then
11777 enableval="$enable_sigwinch"
11778 with_sigwinch=$enableval
11780 with_sigwinch=$with_ext_funcs
11782 echo "$as_me:11782: result: $with_sigwinch" >&5
11783 echo "${ECHO_T}$with_sigwinch" >&6
11784 test "x$with_sigwinch" = xyes &&
11785 cat >>confdefs.h <<\EOF
11786 #define USE_SIGWINCH 1
11789 ### use option --enable-tcap-names to allow user to define new capabilities
11790 echo "$as_me:11790: checking if you want user-definable terminal capabilities like termcap" >&5
11791 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11793 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11794 if test "${enable_tcap_names+set}" = set; then
11795 enableval="$enable_tcap_names"
11796 with_tcap_names=$enableval
11798 with_tcap_names=$with_ext_funcs
11800 echo "$as_me:11800: result: $with_tcap_names" >&5
11801 echo "${ECHO_T}$with_tcap_names" >&6
11803 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
11805 ###############################################################################
11806 # These options are relatively safe to experiment with.
11808 echo "$as_me:11808: checking if you want all development code" >&5
11809 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11811 # Check whether --with-develop or --without-develop was given.
11812 if test "${with_develop+set}" = set; then
11813 withval="$with_develop"
11814 with_develop=$withval
11818 echo "$as_me:11818: result: $with_develop" >&5
11819 echo "${ECHO_T}$with_develop" >&6
11821 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11822 echo "$as_me:11822: checking if you want hard-tabs code" >&5
11823 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11825 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11826 if test "${enable_hard_tabs+set}" = set; then
11827 enableval="$enable_hard_tabs"
11830 enable_hard_tabs=$with_develop
11832 echo "$as_me:11832: result: $enable_hard_tabs" >&5
11833 echo "${ECHO_T}$enable_hard_tabs" >&6
11834 test "x$enable_hard_tabs" = xyes &&
11835 cat >>confdefs.h <<\EOF
11836 #define USE_HARD_TABS 1
11839 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11840 echo "$as_me:11840: checking if you want limited support for xmc" >&5
11841 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11843 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11844 if test "${enable_xmc_glitch+set}" = set; then
11845 enableval="$enable_xmc_glitch"
11848 enable_xmc_glitch=$with_develop
11850 echo "$as_me:11850: result: $enable_xmc_glitch" >&5
11851 echo "${ECHO_T}$enable_xmc_glitch" >&6
11852 test "x$enable_xmc_glitch" = xyes &&
11853 cat >>confdefs.h <<\EOF
11854 #define USE_XMC_SUPPORT 1
11857 ###############################################################################
11858 # These are just experimental, probably should not be in a package:
11860 echo "$as_me:11860: checking if you do not want to assume colors are white-on-black" >&5
11861 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11863 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11864 if test "${enable_assumed_color+set}" = set; then
11865 enableval="$enable_assumed_color"
11866 with_assumed_color=$enableval
11868 with_assumed_color=yes
11870 echo "$as_me:11870: result: $with_assumed_color" >&5
11871 echo "${ECHO_T}$with_assumed_color" >&6
11872 test "x$with_assumed_color" = xyes &&
11873 cat >>confdefs.h <<\EOF
11874 #define USE_ASSUMED_COLOR 1
11877 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11878 echo "$as_me:11878: checking if you want hashmap scrolling-optimization code" >&5
11879 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11881 # Check whether --enable-hashmap or --disable-hashmap was given.
11882 if test "${enable_hashmap+set}" = set; then
11883 enableval="$enable_hashmap"
11884 with_hashmap=$enableval
11888 echo "$as_me:11888: result: $with_hashmap" >&5
11889 echo "${ECHO_T}$with_hashmap" >&6
11890 test "x$with_hashmap" = xyes &&
11891 cat >>confdefs.h <<\EOF
11892 #define USE_HASHMAP 1
11895 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11896 echo "$as_me:11896: checking if you want colorfgbg code" >&5
11897 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11899 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11900 if test "${enable_colorfgbg+set}" = set; then
11901 enableval="$enable_colorfgbg"
11902 with_colorfgbg=$enableval
11906 echo "$as_me:11906: result: $with_colorfgbg" >&5
11907 echo "${ECHO_T}$with_colorfgbg" >&6
11908 test "x$with_colorfgbg" = xyes &&
11909 cat >>confdefs.h <<\EOF
11910 #define USE_COLORFGBG 1
11913 ### use option --enable-interop to turn on use of bindings used for interop
11914 echo "$as_me:11914: checking if you want interop bindings" >&5
11915 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11917 # Check whether --enable-interop or --disable-interop was given.
11918 if test "${enable_interop+set}" = set; then
11919 enableval="$enable_interop"
11920 with_exp_interop=$enableval
11922 with_exp_interop=no
11924 echo "$as_me:11924: result: $with_exp_interop" >&5
11925 echo "${ECHO_T}$with_exp_interop" >&6
11927 NCURSES_INTEROP_FUNCS=0
11928 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
11930 # This is still experimental (20080329), but should ultimately be moved to
11931 # the script-block --with-normal, etc.
11933 echo "$as_me:11933: checking if you want to link with the pthread library" >&5
11934 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11936 # Check whether --with-pthread or --without-pthread was given.
11937 if test "${with_pthread+set}" = set; then
11938 withval="$with_pthread"
11939 with_pthread=$withval
11943 echo "$as_me:11943: result: $with_pthread" >&5
11944 echo "${ECHO_T}$with_pthread" >&6
11946 if test "$with_pthread" != no ; then
11947 echo "$as_me:11947: checking for pthread.h" >&5
11948 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11949 if test "${ac_cv_header_pthread_h+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 cat >conftest.$ac_ext <<_ACEOF
11953 #line 11953 "configure"
11954 #include "confdefs.h"
11955 #include <pthread.h>
11957 if { (eval echo "$as_me:11957: \"$ac_cpp conftest.$ac_ext\"") >&5
11958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11960 egrep -v '^ *\+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:11963: \$? = $ac_status" >&5
11964 (exit $ac_status); } >/dev/null; then
11965 if test -s conftest.err; then
11966 ac_cpp_err=$ac_c_preproc_warn_flag
11973 if test -z "$ac_cpp_err"; then
11974 ac_cv_header_pthread_h=yes
11976 echo "$as_me: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 ac_cv_header_pthread_h=no
11980 rm -f conftest.err conftest.$ac_ext
11982 echo "$as_me:11982: result: $ac_cv_header_pthread_h" >&5
11983 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11984 if test $ac_cv_header_pthread_h = yes; then
11986 cat >>confdefs.h <<\EOF
11987 #define HAVE_PTHREADS_H 1
11990 for cf_lib_pthread in pthread c_r
11992 echo "$as_me:11992: checking if we can link with the $cf_lib_pthread library" >&5
11993 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11994 cf_save_LIBS="$LIBS"
11996 cf_add_libs="-l$cf_lib_pthread"
11997 # Filter out duplicates - this happens with badly-designed ".pc" files...
11998 for cf_add_1lib in $LIBS
12000 for cf_add_2lib in $cf_add_libs
12002 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12008 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12010 LIBS="$cf_add_libs"
12012 cat >conftest.$ac_ext <<_ACEOF
12013 #line 12013 "configure"
12014 #include "confdefs.h"
12016 #include <pthread.h>
12022 int rc = pthread_create(0,0,0,0);
12023 int r2 = pthread_mutexattr_settype(0, 0);
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:12030: \"$ac_link\"") >&5
12031 (eval $ac_link) 2>&5
12033 echo "$as_me:12033: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (eval echo "$as_me:12036: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:12039: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12043 echo "$as_me: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12048 LIBS="$cf_save_LIBS"
12049 echo "$as_me:12049: result: $with_pthread" >&5
12050 echo "${ECHO_T}$with_pthread" >&6
12051 test "$with_pthread" = yes && break
12054 if test "$with_pthread" = yes ; then
12056 cf_add_libs="-l$cf_lib_pthread"
12057 # Filter out duplicates - this happens with badly-designed ".pc" files...
12058 for cf_add_1lib in $LIBS
12060 for cf_add_2lib in $cf_add_libs
12062 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12068 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12070 LIBS="$cf_add_libs"
12072 cat >>confdefs.h <<\EOF
12073 #define HAVE_LIBPTHREADS 1
12077 { { echo "$as_me:12077: error: Cannot link with pthread library" >&5
12078 echo "$as_me: error: Cannot link with pthread library" >&2;}
12079 { (exit 1); exit 1; }; }
12086 if test "x$with_pthread" != xno; then
12087 echo "$as_me:12087: checking for pthread_kill" >&5
12088 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12089 if test "${ac_cv_func_pthread_kill+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 cat >conftest.$ac_ext <<_ACEOF
12093 #line 12093 "configure"
12094 #include "confdefs.h"
12095 /* System header to define __stub macros and hopefully few prototypes,
12096 which can conflict with char pthread_kill (); below. */
12097 #include <assert.h>
12098 /* Override any gcc2 internal prototype to avoid an error. */
12102 /* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12104 char pthread_kill ();
12110 /* The GNU C library defines this for functions which it implements
12111 to always fail with ENOSYS. Some functions are actually named
12112 something starting with __ and the normal name is an alias. */
12113 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12116 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (eval echo "$as_me:12124: \"$ac_link\"") >&5
12125 (eval $ac_link) 2>&5
12127 echo "$as_me:12127: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (eval echo "$as_me:12130: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:12133: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_func_pthread_kill=yes
12137 echo "$as_me: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 ac_cv_func_pthread_kill=no
12141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143 echo "$as_me:12143: result: $ac_cv_func_pthread_kill" >&5
12144 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
12145 if test $ac_cv_func_pthread_kill = yes; then
12147 echo "$as_me:12147: checking if you want to allow EINTR in wgetch with pthreads" >&5
12148 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
12150 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
12151 if test "${enable_pthreads_eintr+set}" = set; then
12152 enableval="$enable_pthreads_eintr"
12153 use_pthreads_eintr=$enableval
12155 use_pthreads_eintr=no
12157 echo "$as_me:12157: result: $use_pthreads_eintr" >&5
12158 echo "${ECHO_T}$use_pthreads_eintr" >&6
12159 if test "x$use_pthreads_eintr" = xyes ; then
12161 cat >>confdefs.h <<\EOF
12162 #define USE_PTHREADS_EINTR 1
12168 echo "$as_me:12168: checking if you want to use weak-symbols for pthreads" >&5
12169 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
12171 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
12172 if test "${enable_weak_symbols+set}" = set; then
12173 enableval="$enable_weak_symbols"
12174 use_weak_symbols=$enableval
12176 use_weak_symbols=no
12178 echo "$as_me:12178: result: $use_weak_symbols" >&5
12179 echo "${ECHO_T}$use_weak_symbols" >&6
12180 if test "x$use_weak_symbols" = xyes ; then
12182 echo "$as_me:12182: checking if $CC supports weak symbols" >&5
12183 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
12184 if test "${cf_cv_weak_symbols+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 cat >conftest.$ac_ext <<_ACEOF
12189 #line 12189 "configure"
12190 #include "confdefs.h"
12197 #if defined(__GNUC__)
12198 # if defined __USE_ISOC99
12199 # define _cat_pragma(exp) _Pragma(#exp)
12200 # define _weak_pragma(exp) _cat_pragma(weak name)
12202 # define _weak_pragma(exp)
12204 # define _declare(name) __extension__ extern __typeof__(name) name
12205 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12208 weak_symbol(fopen);
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:12215: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>&5
12218 echo "$as_me:12218: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:12221: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:12224: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 cf_cv_weak_symbols=yes
12228 echo "$as_me: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12230 cf_cv_weak_symbols=no
12232 rm -f conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:12235: result: $cf_cv_weak_symbols" >&5
12236 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12239 cf_cv_weak_symbols=no
12242 if test "x$cf_cv_weak_symbols" = xyes ; then
12244 cat >>confdefs.h <<\EOF
12245 #define USE_WEAK_SYMBOLS 1
12252 if test "x$with_pthread" = "xyes" ; then
12254 cat >>confdefs.h <<\EOF
12255 #define USE_PTHREADS 1
12258 enable_reentrant=yes
12259 if test "x$cf_cv_weak_symbols" = xyes ; then
12264 # Reentrant code has to be opaque; there's little advantage to making ncurses
12265 # opaque outside of that, so there is no --enable-opaque option. We can use
12266 # this option without --with-pthreads, but this will be always set for
12268 echo "$as_me:12268: checking if you want experimental reentrant code" >&5
12269 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
12271 # Check whether --enable-reentrant or --disable-reentrant was given.
12272 if test "${enable_reentrant+set}" = set; then
12273 enableval="$enable_reentrant"
12274 with_reentrant=$enableval
12278 echo "$as_me:12278: result: $with_reentrant" >&5
12279 echo "${ECHO_T}$with_reentrant" >&6
12280 if test "x$with_reentrant" = xyes ; then
12281 cf_cv_enable_reentrant=1
12282 cf_cv_enable_opaque="NCURSES_INTERNALS"
12285 if test "x$cf_cv_weak_symbols" = xyes ; then
12287 # remove pthread library from $LIBS
12288 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12290 cf_add_libs="-lpthread"
12291 # Filter out duplicates - this happens with badly-designed ".pc" files...
12292 for cf_add_1lib in $TEST_LIBS
12294 for cf_add_2lib in $cf_add_libs
12296 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12302 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12304 TEST_LIBS="$cf_add_libs"
12306 cf_add_libs="-lpthread"
12307 # Filter out duplicates - this happens with badly-designed ".pc" files...
12308 for cf_add_1lib in $TEST_LIBS2
12310 for cf_add_2lib in $cf_add_libs
12312 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12318 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12320 TEST_LIBS2="$cf_add_libs"
12323 # when not using weak symbols but with_reentrant,
12324 # add 't' to the library suffix on all platforms
12325 # except cygwin, where we only do that if ALSO
12326 # compiling with full thread support.
12328 *cygwin* | *msys*) #(vi
12329 if test "$with_pthread" = "yes" ; then
12330 if test "x$disable_lib_suffixes" = "xno" ; then
12331 LIB_SUFFIX="t${LIB_SUFFIX}"
12335 if test "x$disable_lib_suffixes" = "xno" ; then
12336 LIB_SUFFIX="t${LIB_SUFFIX}"
12342 cat >>confdefs.h <<\EOF
12343 #define USE_REENTRANT 1
12346 if test "${with_abi_version+set}" != set; then
12347 case $cf_cv_rel_version in
12349 cf_cv_rel_version=6.0
12350 cf_cv_abi_version=6
12351 { echo "$as_me:12351: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
12352 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
12358 cf_cv_enable_reentrant=0
12359 cf_cv_enable_opaque="NCURSES_OPAQUE"
12361 NCURSES_SIZE_T=short
12364 ### Allow using a different wrap-prefix
12365 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12366 echo "$as_me:12366: checking for prefix used to wrap public variables" >&5
12367 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12369 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12370 if test "${with_wrap_prefix+set}" = set; then
12371 withval="$with_wrap_prefix"
12372 NCURSES_WRAP_PREFIX=$withval
12374 NCURSES_WRAP_PREFIX=_nc_
12376 echo "$as_me:12376: result: $NCURSES_WRAP_PREFIX" >&5
12377 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12379 NCURSES_WRAP_PREFIX=_nc_
12382 cat >>confdefs.h <<EOF
12383 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12386 echo "$as_me:12386: checking if you want experimental safe-sprintf code" >&5
12387 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12389 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12390 if test "${enable_safe_sprintf+set}" = set; then
12391 enableval="$enable_safe_sprintf"
12392 with_safe_sprintf=$enableval
12394 with_safe_sprintf=no
12396 echo "$as_me:12396: result: $with_safe_sprintf" >&5
12397 echo "${ECHO_T}$with_safe_sprintf" >&6
12398 test "x$with_safe_sprintf" = xyes &&
12399 cat >>confdefs.h <<\EOF
12400 #define USE_SAFE_SPRINTF 1
12403 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12404 # when hashmap is used scroll hints are useless
12405 if test "$with_hashmap" = no ; then
12406 echo "$as_me:12406: checking if you want to experiment without scrolling-hints code" >&5
12407 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
12409 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
12410 if test "${enable_scroll_hints+set}" = set; then
12411 enableval="$enable_scroll_hints"
12412 with_scroll_hints=$enableval
12414 with_scroll_hints=yes
12416 echo "$as_me:12416: result: $with_scroll_hints" >&5
12417 echo "${ECHO_T}$with_scroll_hints" >&6
12418 test "x$with_scroll_hints" = xyes &&
12419 cat >>confdefs.h <<\EOF
12420 #define USE_SCROLL_HINTS 1
12425 echo "$as_me:12425: checking if you want experimental wgetch-events code" >&5
12426 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
12428 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12429 if test "${enable_wgetch_events+set}" = set; then
12430 enableval="$enable_wgetch_events"
12431 with_wgetch_events=$enableval
12433 with_wgetch_events=no
12435 echo "$as_me:12435: result: $with_wgetch_events" >&5
12436 echo "${ECHO_T}$with_wgetch_events" >&6
12437 test "x$with_wgetch_events" = xyes &&
12438 cat >>confdefs.h <<\EOF
12439 #define NCURSES_WGETCH_EVENTS 1
12442 ###############################################################################
12444 ### use option --disable-echo to suppress full display compiling commands
12446 echo "$as_me:12446: checking if you want to see long compiling messages" >&5
12447 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
12449 # Check whether --enable-echo or --disable-echo was given.
12450 if test "${enable_echo+set}" = set; then
12451 enableval="$enable_echo"
12452 test "$enableval" != no && enableval=yes
12453 if test "$enableval" != "yes" ; then
12456 ECHO_LD='@echo linking $@;'
12457 RULE_CC='@echo compiling $<'
12458 SHOW_CC='@echo compiling $@'
12480 echo "$as_me:12480: result: $enableval" >&5
12481 echo "${ECHO_T}$enableval" >&6
12483 if test "x$enable_echo" = xyes; then
12486 ECHO_LINK='@ echo linking $@ ... ;'
12487 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12488 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12491 ### use option --enable-warnings to turn on all gcc warnings
12492 echo "$as_me:12492: checking if you want to see compiler warnings" >&5
12493 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12495 # Check whether --enable-warnings or --disable-warnings was given.
12496 if test "${enable_warnings+set}" = set; then
12497 enableval="$enable_warnings"
12498 with_warnings=$enableval
12500 echo "$as_me:12500: result: $with_warnings" >&5
12501 echo "${ECHO_T}$with_warnings" >&6
12503 if test "x$with_warnings" = "xyes"; then
12505 ADAFLAGS="$ADAFLAGS -gnatg"
12509 if test "$GCC" = yes ; then
12512 echo "$as_me:12512: checking if this is really Intel C compiler" >&5
12513 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12514 cf_save_CFLAGS="$CFLAGS"
12515 CFLAGS="$CFLAGS -no-gcc"
12516 cat >conftest.$ac_ext <<_ACEOF
12517 #line 12517 "configure"
12518 #include "confdefs.h"
12524 #ifdef __INTEL_COMPILER
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:12534: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>&5
12537 echo "$as_me:12537: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -s conftest.$ac_objext'
12540 { (eval echo "$as_me:12540: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:12543: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12546 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
12549 echo "$as_me: failed program was:" >&5
12550 cat conftest.$ac_ext >&5
12552 rm -f conftest.$ac_objext conftest.$ac_ext
12553 CFLAGS="$cf_save_CFLAGS"
12554 echo "$as_me:12554: result: $INTEL_COMPILER" >&5
12555 echo "${ECHO_T}$INTEL_COMPILER" >&6
12562 if test "$GCC" = yes ; then
12563 echo "$as_me:12563: checking if this is really Clang C compiler" >&5
12564 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
12565 cf_save_CFLAGS="$CFLAGS"
12566 CFLAGS="$CFLAGS -Qunused-arguments"
12567 cat >conftest.$ac_ext <<_ACEOF
12568 #line 12568 "configure"
12569 #include "confdefs.h"
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:12585: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>&5
12588 echo "$as_me:12588: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -s conftest.$ac_objext'
12591 { (eval echo "$as_me:12591: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:12594: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12597 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12600 echo "$as_me: failed program was:" >&5
12601 cat conftest.$ac_ext >&5
12603 rm -f conftest.$ac_objext conftest.$ac_ext
12604 CFLAGS="$cf_save_CFLAGS"
12605 echo "$as_me:12605: result: $CLANG_COMPILER" >&5
12606 echo "${ECHO_T}$CLANG_COMPILER" >&6
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12610 "${as_me:-configure}"
12611 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12614 if test "$INTEL_COMPILER" = yes
12616 # The "-wdXXX" options suppress warnings:
12617 # remark #1419: external declaration in primary source file
12618 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12619 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12620 # remark #193: zero used for undefined preprocessing identifier
12621 # remark #593: variable "curs_sb_left_arrow" was set but never used
12622 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12623 # remark #869: parameter "tw" was never referenced
12624 # remark #981: operands are evaluated in unspecified order
12625 # warning #279: controlling expression is constant
12627 { echo "$as_me:12627: checking for $CC warning options..." >&5
12628 echo "$as_me: checking for $CC warning options..." >&6;}
12629 cf_save_CFLAGS="$CFLAGS"
12630 EXTRA_CFLAGS="-Wall"
12642 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12643 if { (eval echo "$as_me:12643: \"$ac_compile\"") >&5
12644 (eval $ac_compile) 2>&5
12646 echo "$as_me:12646: \$? = $ac_status" >&5
12647 (exit $ac_status); }; then
12648 test -n "$verbose" && echo "$as_me:12648: result: ... -$cf_opt" >&5
12649 echo "${ECHO_T}... -$cf_opt" >&6
12650 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12653 CFLAGS="$cf_save_CFLAGS"
12655 elif test "$GCC" = yes
12657 { echo "$as_me:12657: checking for $CC warning options..." >&5
12658 echo "$as_me: checking for $CC warning options..." >&6;}
12659 cf_save_CFLAGS="$CFLAGS"
12662 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12663 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
12664 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
12665 for cf_opt in W Wall \
12666 Wbad-function-cast \
12669 Wdeclaration-after-statement \
12672 Wmissing-declarations \
12673 Wmissing-prototypes \
12677 Wstrict-prototypes \
12678 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
12680 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12681 if { (eval echo "$as_me:12681: \"$ac_compile\"") >&5
12682 (eval $ac_compile) 2>&5
12684 echo "$as_me:12684: \$? = $ac_status" >&5
12685 (exit $ac_status); }; then
12686 test -n "$verbose" && echo "$as_me:12686: result: ... -$cf_opt" >&5
12687 echo "${ECHO_T}... -$cf_opt" >&6
12688 case $cf_opt in #(vi
12690 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12693 case $GCC_VERSION in
12695 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12697 echo "${as_me:-configure}:12697: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12702 Wpointer-arith) #(vi
12703 case $GCC_VERSION in
12705 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12707 echo "${as_me:-configure}:12707: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12713 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12716 CFLAGS="$cf_save_CFLAGS"
12720 if test "x$cf_with_cxx" = xyes ; then
12724 if test "$GCC" = yes ; then
12727 echo "$as_me:12727: checking if this is really Intel C++ compiler" >&5
12728 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12729 cf_save_CFLAGS="$CXXFLAGS"
12730 CXXFLAGS="$CXXFLAGS -no-gcc"
12731 cat >conftest.$ac_ext <<_ACEOF
12732 #line 12732 "configure"
12733 #include "confdefs.h"
12739 #ifdef __INTEL_COMPILER
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:12749: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>&5
12752 echo "$as_me:12752: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:12755: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:12758: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 INTEL_CPLUSPLUS=yes
12761 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
12764 echo "$as_me: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12767 rm -f conftest.$ac_objext conftest.$ac_ext
12768 CXXFLAGS="$cf_save_CFLAGS"
12769 echo "$as_me:12769: result: $INTEL_CPLUSPLUS" >&5
12770 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12777 if test "$GCC" = yes ; then
12778 echo "$as_me:12778: checking if this is really Clang C++ compiler" >&5
12779 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
12780 cf_save_CFLAGS="$CXXFLAGS"
12781 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
12782 cat >conftest.$ac_ext <<_ACEOF
12783 #line 12783 "configure"
12784 #include "confdefs.h"
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:12800: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>&5
12803 echo "$as_me:12803: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:12806: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 CLANG_CPLUSPLUS=yes
12812 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12815 echo "$as_me: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12818 rm -f conftest.$ac_objext conftest.$ac_ext
12819 CXXFLAGS="$cf_save_CFLAGS"
12820 echo "$as_me:12820: result: $CLANG_CPLUSPLUS" >&5
12821 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
12825 ac_cpp='$CXXCPP $CPPFLAGS'
12826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12829 ac_main_return=return
12831 cat > conftest.$ac_ext <<EOF
12832 #line 12832 "configure"
12833 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12836 if test "$INTEL_CPLUSPLUS" = yes
12838 # The "-wdXXX" options suppress warnings:
12839 # remark #1419: external declaration in primary source file
12840 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12841 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12842 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12843 # remark #193: zero used for undefined preprocessing identifier
12844 # remark #593: variable "curs_sb_left_arrow" was set but never used
12845 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12846 # remark #869: parameter "tw" was never referenced
12847 # remark #981: operands are evaluated in unspecified order
12848 # warning #269: invalid format string conversion
12850 { echo "$as_me:12850: checking for $CC warning options..." >&5
12851 echo "$as_me: checking for $CC warning options..." >&6;}
12852 cf_save_CXXFLAGS="$CXXFLAGS"
12853 EXTRA_CXXFLAGS="-Wall"
12866 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12867 if { (eval echo "$as_me:12867: \"$ac_compile\"") >&5
12868 (eval $ac_compile) 2>&5
12870 echo "$as_me:12870: \$? = $ac_status" >&5
12871 (exit $ac_status); }; then
12872 test -n "$verbose" && echo "$as_me:12872: result: ... -$cf_opt" >&5
12873 echo "${ECHO_T}... -$cf_opt" >&6
12874 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12877 CXXFLAGS="$cf_save_CXXFLAGS"
12879 elif test "$GXX" = yes
12881 { echo "$as_me:12881: checking for $CXX warning options..." >&5
12882 echo "$as_me: checking for $CXX warning options..." >&6;}
12883 cf_save_CXXFLAGS="$CXXFLAGS"
12884 EXTRA_CXXFLAGS="-W -Wall"
12885 cf_gxx_extra_warnings=""
12886 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12887 case "$GCC_VERSION" in
12891 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12898 Wignored-qualifiers \
12900 Woverloaded-virtual \
12908 Wundef $cf_gxx_extra_warnings Wno-unused
12910 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12911 if { (eval echo "$as_me:12911: \"$ac_compile\"") >&5
12912 (eval $ac_compile) 2>&5
12914 echo "$as_me:12914: \$? = $ac_status" >&5
12915 (exit $ac_status); }; then
12916 test -n "$verbose" && echo "$as_me:12916: result: ... -$cf_opt" >&5
12917 echo "${ECHO_T}... -$cf_opt" >&6
12918 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12920 test -n "$verbose" && echo "$as_me:12920: result: ... no -$cf_opt" >&5
12921 echo "${ECHO_T}... no -$cf_opt" >&6
12924 CXXFLAGS="$cf_save_CXXFLAGS"
12929 ac_cpp='$CPP $CPPFLAGS'
12930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12933 ac_main_return=return
12938 if test "$GCC" = yes
12940 cat > conftest.i <<EOF
12942 #define GCC_PRINTF 0
12945 #define GCC_SCANF 0
12947 #ifndef GCC_NORETURN
12948 #define GCC_NORETURN /* nothing */
12951 #define GCC_UNUSED /* nothing */
12954 if test "$GCC" = yes
12956 { echo "$as_me:12956: checking for $CC __attribute__ directives..." >&5
12957 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12958 cat > conftest.$ac_ext <<EOF
12959 #line 12959 "${as_me:-configure}"
12960 #include "confdefs.h"
12961 #include "conftest.h"
12962 #include "conftest.i"
12964 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12966 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12969 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12971 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12973 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12974 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12975 extern void foo(void) GCC_NORETURN;
12976 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12978 cf_printf_attribute=no
12979 cf_scanf_attribute=no
12980 for cf_attribute in scanf printf unused noreturn
12983 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12985 cf_directive="__attribute__(($cf_attribute))"
12986 echo "checking for $CC $cf_directive" 1>&5
12988 case $cf_attribute in #(vi
12990 cf_printf_attribute=yes
12991 cat >conftest.h <<EOF
12992 #define GCC_$cf_ATTRIBUTE 1
12996 cf_scanf_attribute=yes
12997 cat >conftest.h <<EOF
12998 #define GCC_$cf_ATTRIBUTE 1
13002 cat >conftest.h <<EOF
13003 #define GCC_$cf_ATTRIBUTE $cf_directive
13008 if { (eval echo "$as_me:13008: \"$ac_compile\"") >&5
13009 (eval $ac_compile) 2>&5
13011 echo "$as_me:13011: \$? = $ac_status" >&5
13012 (exit $ac_status); }; then
13013 test -n "$verbose" && echo "$as_me:13013: result: ... $cf_attribute" >&5
13014 echo "${ECHO_T}... $cf_attribute" >&6
13015 cat conftest.h >>confdefs.h
13016 case $cf_attribute in #(vi
13019 cat >>confdefs.h <<EOF
13020 #define GCC_NORETURN $cf_directive
13025 cf_value='/* nothing */'
13026 if test "$cf_printf_attribute" != no ; then
13027 cf_value='__attribute__((format(printf,fmt,var)))'
13029 cat >>confdefs.h <<\EOF
13030 #define GCC_PRINTF 1
13035 cat >>confdefs.h <<EOF
13036 #define GCC_PRINTFLIKE(fmt,var) $cf_value
13041 cf_value='/* nothing */'
13042 if test "$cf_scanf_attribute" != no ; then
13043 cf_value='__attribute__((format(scanf,fmt,var)))'
13045 cat >>confdefs.h <<\EOF
13046 #define GCC_SCANF 1
13051 cat >>confdefs.h <<EOF
13052 #define GCC_SCANFLIKE(fmt,var) $cf_value
13058 cat >>confdefs.h <<EOF
13059 #define GCC_UNUSED $cf_directive
13067 fgrep define conftest.i >>confdefs.h
13072 echo "$as_me:13072: checking if you want to work around bogus compiler/loader warnings" >&5
13073 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
13075 # Check whether --enable-string-hacks or --disable-string-hacks was given.
13076 if test "${enable_string_hacks+set}" = set; then
13077 enableval="$enable_string_hacks"
13078 with_string_hacks=$enableval
13080 with_string_hacks=no
13082 echo "$as_me:13082: result: $with_string_hacks" >&5
13083 echo "${ECHO_T}$with_string_hacks" >&6
13085 if test "x$with_string_hacks" = "xyes"; then
13087 cat >>confdefs.h <<\EOF
13088 #define USE_STRING_HACKS 1
13091 { echo "$as_me:13091: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
13092 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
13094 for ac_func in strlcat strlcpy snprintf
13096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13097 echo "$as_me:13097: checking for $ac_func" >&5
13098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13099 if eval "test \"\${$as_ac_var+set}\" = set"; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line 13103 "configure"
13104 #include "confdefs.h"
13105 /* System header to define __stub macros and hopefully few prototypes,
13106 which can conflict with char $ac_func (); below. */
13107 #include <assert.h>
13108 /* Override any gcc2 internal prototype to avoid an error. */
13112 /* We use char because int might match the return type of a gcc2
13113 builtin and then its argument prototype would still apply. */
13120 /* The GNU C library defines this for functions which it implements
13121 to always fail with ENOSYS. Some functions are actually named
13122 something starting with __ and the normal name is an alias. */
13123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13126 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13133 rm -f conftest.$ac_objext conftest$ac_exeext
13134 if { (eval echo "$as_me:13134: \"$ac_link\"") >&5
13135 (eval $ac_link) 2>&5
13137 echo "$as_me:13137: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -s conftest$ac_exeext'
13140 { (eval echo "$as_me:13140: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 echo "$as_me:13143: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 eval "$as_ac_var=yes"
13147 echo "$as_me: failed program was:" >&5
13148 cat conftest.$ac_ext >&5
13149 eval "$as_ac_var=no"
13151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13153 echo "$as_me:13153: result: `eval echo '${'$as_ac_var'}'`" >&5
13154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13155 if test `eval echo '${'$as_ac_var'}'` = yes; then
13156 cat >>confdefs.h <<EOF
13157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13165 ### use option --enable-assertions to turn on generation of assertion code
13166 echo "$as_me:13166: checking if you want to enable runtime assertions" >&5
13167 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
13169 # Check whether --enable-assertions or --disable-assertions was given.
13170 if test "${enable_assertions+set}" = set; then
13171 enableval="$enable_assertions"
13172 with_assertions=$enableval
13176 echo "$as_me:13176: result: $with_assertions" >&5
13177 echo "${ECHO_T}$with_assertions" >&6
13180 if test "$with_assertions" = no
13182 CPPFLAGS="$CPPFLAGS -DNDEBUG"
13185 ADAFLAGS="$ADAFLAGS -gnata"
13190 ### use option --disable-leaks to suppress "permanent" leaks, for testing
13192 echo "$as_me:13192: checking if you want to use dmalloc for testing" >&5
13193 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
13195 # Check whether --with-dmalloc or --without-dmalloc was given.
13196 if test "${with_dmalloc+set}" = set; then
13197 withval="$with_dmalloc"
13199 cat >>confdefs.h <<EOF
13200 #define USE_DMALLOC 1
13203 : ${with_cflags:=-g}
13204 : ${with_no_leaks:=yes}
13209 echo "$as_me:13209: result: ${with_dmalloc:-no}" >&5
13210 echo "${ECHO_T}${with_dmalloc:-no}" >&6
13212 case .$with_cflags in #(vi
13214 case .$CFLAGS in #(vi
13222 cf_new_extra_cppflags=
13224 for cf_add_cflags in -g
13226 case $cf_fix_cppflags in
13228 case $cf_add_cflags in #(vi
13229 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13230 case $cf_add_cflags in
13232 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13234 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13235 && test -z "${cf_tst_cflags}" \
13236 && cf_fix_cppflags=yes
13238 if test $cf_fix_cppflags = yes ; then
13239 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13241 elif test "${cf_tst_cflags}" = "\"'" ; then
13242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13247 case "$CPPFLAGS" in
13248 *$cf_add_cflags) #(vi
13251 case $cf_add_cflags in #(vi
13253 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13255 CPPFLAGS=`echo "$CPPFLAGS" | \
13256 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13257 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13261 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13266 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13271 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13273 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13275 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13276 && test -z "${cf_tst_cflags}" \
13277 && cf_fix_cppflags=no
13282 if test -n "$cf_new_cflags" ; then
13284 CFLAGS="$CFLAGS $cf_new_cflags"
13287 if test -n "$cf_new_cppflags" ; then
13289 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13292 if test -n "$cf_new_extra_cppflags" ; then
13294 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13302 if test "$with_dmalloc" = yes ; then
13303 echo "$as_me:13303: checking for dmalloc.h" >&5
13304 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
13305 if test "${ac_cv_header_dmalloc_h+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 cat >conftest.$ac_ext <<_ACEOF
13309 #line 13309 "configure"
13310 #include "confdefs.h"
13311 #include <dmalloc.h>
13313 if { (eval echo "$as_me:13313: \"$ac_cpp conftest.$ac_ext\"") >&5
13314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13316 egrep -v '^ *\+' conftest.er1 >conftest.err
13318 cat conftest.err >&5
13319 echo "$as_me:13319: \$? = $ac_status" >&5
13320 (exit $ac_status); } >/dev/null; then
13321 if test -s conftest.err; then
13322 ac_cpp_err=$ac_c_preproc_warn_flag
13329 if test -z "$ac_cpp_err"; then
13330 ac_cv_header_dmalloc_h=yes
13332 echo "$as_me: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 ac_cv_header_dmalloc_h=no
13336 rm -f conftest.err conftest.$ac_ext
13338 echo "$as_me:13338: result: $ac_cv_header_dmalloc_h" >&5
13339 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13340 if test $ac_cv_header_dmalloc_h = yes; then
13342 echo "$as_me:13342: checking for dmalloc_debug in -ldmalloc" >&5
13343 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13344 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 ac_check_lib_save_LIBS=$LIBS
13348 LIBS="-ldmalloc $LIBS"
13349 cat >conftest.$ac_ext <<_ACEOF
13350 #line 13350 "configure"
13351 #include "confdefs.h"
13353 /* Override any gcc2 internal prototype to avoid an error. */
13357 /* We use char because int might match the return type of a gcc2
13358 builtin and then its argument prototype would still apply. */
13359 char dmalloc_debug ();
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (eval echo "$as_me:13369: \"$ac_link\"") >&5
13370 (eval $ac_link) 2>&5
13372 echo "$as_me:13372: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -s conftest$ac_exeext'
13375 { (eval echo "$as_me:13375: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13378 echo "$as_me:13378: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 ac_cv_lib_dmalloc_dmalloc_debug=yes
13382 echo "$as_me: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 ac_cv_lib_dmalloc_dmalloc_debug=no
13386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13387 LIBS=$ac_check_lib_save_LIBS
13389 echo "$as_me:13389: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
13390 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
13391 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
13392 cat >>confdefs.h <<EOF
13393 #define HAVE_LIBDMALLOC 1
13396 LIBS="-ldmalloc $LIBS"
13404 echo "$as_me:13404: checking if you want to use dbmalloc for testing" >&5
13405 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
13407 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13408 if test "${with_dbmalloc+set}" = set; then
13409 withval="$with_dbmalloc"
13411 cat >>confdefs.h <<EOF
13412 #define USE_DBMALLOC 1
13415 : ${with_cflags:=-g}
13416 : ${with_no_leaks:=yes}
13421 echo "$as_me:13421: result: ${with_dbmalloc:-no}" >&5
13422 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
13424 case .$with_cflags in #(vi
13426 case .$CFLAGS in #(vi
13434 cf_new_extra_cppflags=
13436 for cf_add_cflags in -g
13438 case $cf_fix_cppflags in
13440 case $cf_add_cflags in #(vi
13441 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13442 case $cf_add_cflags in
13444 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13446 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13447 && test -z "${cf_tst_cflags}" \
13448 && cf_fix_cppflags=yes
13450 if test $cf_fix_cppflags = yes ; then
13451 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13453 elif test "${cf_tst_cflags}" = "\"'" ; then
13454 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13459 case "$CPPFLAGS" in
13460 *$cf_add_cflags) #(vi
13463 case $cf_add_cflags in #(vi
13465 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13467 CPPFLAGS=`echo "$CPPFLAGS" | \
13468 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13469 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13473 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13478 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13483 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13485 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13487 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13488 && test -z "${cf_tst_cflags}" \
13489 && cf_fix_cppflags=no
13494 if test -n "$cf_new_cflags" ; then
13496 CFLAGS="$CFLAGS $cf_new_cflags"
13499 if test -n "$cf_new_cppflags" ; then
13501 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13504 if test -n "$cf_new_extra_cppflags" ; then
13506 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13514 if test "$with_dbmalloc" = yes ; then
13515 echo "$as_me:13515: checking for dbmalloc.h" >&5
13516 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
13517 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 cat >conftest.$ac_ext <<_ACEOF
13521 #line 13521 "configure"
13522 #include "confdefs.h"
13523 #include <dbmalloc.h>
13525 if { (eval echo "$as_me:13525: \"$ac_cpp conftest.$ac_ext\"") >&5
13526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13528 egrep -v '^ *\+' conftest.er1 >conftest.err
13530 cat conftest.err >&5
13531 echo "$as_me:13531: \$? = $ac_status" >&5
13532 (exit $ac_status); } >/dev/null; then
13533 if test -s conftest.err; then
13534 ac_cpp_err=$ac_c_preproc_warn_flag
13541 if test -z "$ac_cpp_err"; then
13542 ac_cv_header_dbmalloc_h=yes
13544 echo "$as_me: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13546 ac_cv_header_dbmalloc_h=no
13548 rm -f conftest.err conftest.$ac_ext
13550 echo "$as_me:13550: result: $ac_cv_header_dbmalloc_h" >&5
13551 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
13552 if test $ac_cv_header_dbmalloc_h = yes; then
13554 echo "$as_me:13554: checking for debug_malloc in -ldbmalloc" >&5
13555 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
13556 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 ac_check_lib_save_LIBS=$LIBS
13560 LIBS="-ldbmalloc $LIBS"
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line 13562 "configure"
13563 #include "confdefs.h"
13565 /* Override any gcc2 internal prototype to avoid an error. */
13569 /* We use char because int might match the return type of a gcc2
13570 builtin and then its argument prototype would still apply. */
13571 char debug_malloc ();
13580 rm -f conftest.$ac_objext conftest$ac_exeext
13581 if { (eval echo "$as_me:13581: \"$ac_link\"") >&5
13582 (eval $ac_link) 2>&5
13584 echo "$as_me:13584: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -s conftest$ac_exeext'
13587 { (eval echo "$as_me:13587: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:13590: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_lib_dbmalloc_debug_malloc=yes
13594 echo "$as_me: failed program was:" >&5
13595 cat conftest.$ac_ext >&5
13596 ac_cv_lib_dbmalloc_debug_malloc=no
13598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13599 LIBS=$ac_check_lib_save_LIBS
13601 echo "$as_me:13601: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
13602 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
13603 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
13604 cat >>confdefs.h <<EOF
13605 #define HAVE_LIBDBMALLOC 1
13608 LIBS="-ldbmalloc $LIBS"
13616 echo "$as_me:13616: checking if you want to use valgrind for testing" >&5
13617 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
13619 # Check whether --with-valgrind or --without-valgrind was given.
13620 if test "${with_valgrind+set}" = set; then
13621 withval="$with_valgrind"
13623 cat >>confdefs.h <<EOF
13624 #define USE_VALGRIND 1
13627 : ${with_cflags:=-g}
13628 : ${with_no_leaks:=yes}
13633 echo "$as_me:13633: result: ${with_valgrind:-no}" >&5
13634 echo "${ECHO_T}${with_valgrind:-no}" >&6
13636 case .$with_cflags in #(vi
13638 case .$CFLAGS in #(vi
13646 cf_new_extra_cppflags=
13648 for cf_add_cflags in -g
13650 case $cf_fix_cppflags in
13652 case $cf_add_cflags in #(vi
13653 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13654 case $cf_add_cflags in
13656 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13658 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13659 && test -z "${cf_tst_cflags}" \
13660 && cf_fix_cppflags=yes
13662 if test $cf_fix_cppflags = yes ; then
13663 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13665 elif test "${cf_tst_cflags}" = "\"'" ; then
13666 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13671 case "$CPPFLAGS" in
13672 *$cf_add_cflags) #(vi
13675 case $cf_add_cflags in #(vi
13677 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13679 CPPFLAGS=`echo "$CPPFLAGS" | \
13680 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13681 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13685 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13690 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13695 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13697 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13699 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13700 && test -z "${cf_tst_cflags}" \
13701 && cf_fix_cppflags=no
13706 if test -n "$cf_new_cflags" ; then
13708 CFLAGS="$CFLAGS $cf_new_cflags"
13711 if test -n "$cf_new_cppflags" ; then
13713 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13716 if test -n "$cf_new_extra_cppflags" ; then
13718 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13726 echo "$as_me:13726: checking if you want to perform memory-leak testing" >&5
13727 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13729 # Check whether --enable-leaks or --disable-leaks was given.
13730 if test "${enable_leaks+set}" = set; then
13731 enableval="$enable_leaks"
13732 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13734 : ${with_no_leaks:=no}
13736 echo "$as_me:13736: result: $with_no_leaks" >&5
13737 echo "${ECHO_T}$with_no_leaks" >&6
13739 if test "$with_no_leaks" = yes ; then
13741 cat >>confdefs.h <<\EOF
13745 cat >>confdefs.h <<\EOF
13746 #define YY_NO_LEAKS 1
13751 cat >>confdefs.h <<\EOF
13752 #define HAVE_NC_ALLOC_H 1
13755 ### use option --enable-expanded to generate certain macros as functions
13757 # Check whether --enable-expanded or --disable-expanded was given.
13758 if test "${enable_expanded+set}" = set; then
13759 enableval="$enable_expanded"
13760 test "x$enableval" = xyes &&
13761 cat >>confdefs.h <<\EOF
13762 #define NCURSES_EXPANDED 1
13767 ### use option --disable-macros to suppress macros in favor of functions
13769 # Check whether --enable-macros or --disable-macros was given.
13770 if test "${enable_macros+set}" = set; then
13771 enableval="$enable_macros"
13772 test "$enableval" = no &&
13773 cat >>confdefs.h <<\EOF
13774 #define NCURSES_NOMACROS 1
13779 # Normally we only add trace() to the debug-library. Allow this to be
13780 # extended to all models of the ncurses library:
13782 case "$CFLAGS $CPPFLAGS" in
13788 echo "$as_me:13788: checking whether to add trace feature to all models" >&5
13789 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13791 # Check whether --with-trace or --without-trace was given.
13792 if test "${with_trace+set}" = set; then
13793 withval="$with_trace"
13794 cf_with_trace=$withval
13796 cf_with_trace=$cf_all_traces
13798 echo "$as_me:13798: result: $cf_with_trace" >&5
13799 echo "${ECHO_T}$cf_with_trace" >&6
13801 if test "x$cf_with_trace" = xyes ; then
13808 cf_new_extra_cppflags=
13810 for cf_add_cflags in -DTRACE
13812 case $cf_fix_cppflags in
13814 case $cf_add_cflags in #(vi
13815 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13816 case $cf_add_cflags in
13818 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13820 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13821 && test -z "${cf_tst_cflags}" \
13822 && cf_fix_cppflags=yes
13824 if test $cf_fix_cppflags = yes ; then
13825 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13827 elif test "${cf_tst_cflags}" = "\"'" ; then
13828 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13833 case "$CPPFLAGS" in
13834 *$cf_add_cflags) #(vi
13837 case $cf_add_cflags in #(vi
13839 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13841 CPPFLAGS=`echo "$CPPFLAGS" | \
13842 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13843 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13847 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13852 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13857 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13859 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13861 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13862 && test -z "${cf_tst_cflags}" \
13863 && cf_fix_cppflags=no
13868 if test -n "$cf_new_cflags" ; then
13870 CFLAGS="$CFLAGS $cf_new_cflags"
13873 if test -n "$cf_new_cppflags" ; then
13875 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13878 if test -n "$cf_new_extra_cppflags" ; then
13880 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13888 echo "$as_me:13888: checking if we want to use GNAT projects" >&5
13889 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
13891 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
13892 if test "${enable_gnat_projects+set}" = set; then
13893 enableval="$enable_gnat_projects"
13894 test "$enableval" != no && enableval=yes
13895 if test "$enableval" != "yes" ; then
13896 enable_gnat_projects=no
13898 enable_gnat_projects=yes
13902 enable_gnat_projects=yes
13905 echo "$as_me:13905: result: $enable_gnat_projects" >&5
13906 echo "${ECHO_T}$enable_gnat_projects" >&6
13908 ### Checks for libraries.
13909 case $cf_cv_system_name in #(vi
13910 *mingw32*|*mingw64*) #(vi
13911 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501"
13912 LIBS=" -lpsapi $LIBS"
13915 echo "$as_me:13915: checking for gettimeofday" >&5
13916 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13917 if test "${ac_cv_func_gettimeofday+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 cat >conftest.$ac_ext <<_ACEOF
13921 #line 13921 "configure"
13922 #include "confdefs.h"
13923 /* System header to define __stub macros and hopefully few prototypes,
13924 which can conflict with char gettimeofday (); below. */
13925 #include <assert.h>
13926 /* Override any gcc2 internal prototype to avoid an error. */
13930 /* We use char because int might match the return type of a gcc2
13931 builtin and then its argument prototype would still apply. */
13932 char gettimeofday ();
13938 /* The GNU C library defines this for functions which it implements
13939 to always fail with ENOSYS. Some functions are actually named
13940 something starting with __ and the normal name is an alias. */
13941 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13944 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13951 rm -f conftest.$ac_objext conftest$ac_exeext
13952 if { (eval echo "$as_me:13952: \"$ac_link\"") >&5
13953 (eval $ac_link) 2>&5
13955 echo "$as_me:13955: \$? = $ac_status" >&5
13956 (exit $ac_status); } &&
13957 { ac_try='test -s conftest$ac_exeext'
13958 { (eval echo "$as_me:13958: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13961 echo "$as_me:13961: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_cv_func_gettimeofday=yes
13965 echo "$as_me: failed program was:" >&5
13966 cat conftest.$ac_ext >&5
13967 ac_cv_func_gettimeofday=no
13969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13971 echo "$as_me:13971: result: $ac_cv_func_gettimeofday" >&5
13972 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13973 if test $ac_cv_func_gettimeofday = yes; then
13975 cat >>confdefs.h <<\EOF
13976 #define HAVE_GETTIMEOFDAY 1
13981 echo "$as_me:13981: checking for gettimeofday in -lbsd" >&5
13982 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13983 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 ac_check_lib_save_LIBS=$LIBS
13988 cat >conftest.$ac_ext <<_ACEOF
13989 #line 13989 "configure"
13990 #include "confdefs.h"
13992 /* Override any gcc2 internal prototype to avoid an error. */
13996 /* We use char because int might match the return type of a gcc2
13997 builtin and then its argument prototype would still apply. */
13998 char gettimeofday ();
14007 rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (eval echo "$as_me:14008: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>&5
14011 echo "$as_me:14011: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -s conftest$ac_exeext'
14014 { (eval echo "$as_me:14014: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:14017: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_cv_lib_bsd_gettimeofday=yes
14021 echo "$as_me: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 ac_cv_lib_bsd_gettimeofday=no
14025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14026 LIBS=$ac_check_lib_save_LIBS
14028 echo "$as_me:14028: result: $ac_cv_lib_bsd_gettimeofday" >&5
14029 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14030 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14032 cat >>confdefs.h <<\EOF
14033 #define HAVE_GETTIMEOFDAY 1
14036 cf_add_libs="-lbsd"
14037 # Filter out duplicates - this happens with badly-designed ".pc" files...
14038 for cf_add_1lib in $LIBS
14040 for cf_add_2lib in $cf_add_libs
14042 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14048 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14050 LIBS="$cf_add_libs"
14058 echo "$as_me:14058: checking if -lm needed for math functions" >&5
14059 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
14060 if test "${cf_cv_need_libm+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 cat >conftest.$ac_ext <<_ACEOF
14065 #line 14065 "configure"
14066 #include "confdefs.h"
14074 double x = rand(); printf("result = %g\n", pow(sin(x),x))
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (eval echo "$as_me:14080: \"$ac_link\"") >&5
14081 (eval $ac_link) 2>&5
14083 echo "$as_me:14083: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -s conftest$ac_exeext'
14086 { (eval echo "$as_me:14086: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:14089: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14093 echo "$as_me: failed program was:" >&5
14094 cat conftest.$ac_ext >&5
14095 cf_cv_need_libm=yes
14097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14099 echo "$as_me:14099: result: $cf_cv_need_libm" >&5
14100 echo "${ECHO_T}$cf_cv_need_libm" >&6
14101 if test "$cf_cv_need_libm" = yes
14106 ### Checks for header files.
14107 echo "$as_me:14107: checking for ANSI C header files" >&5
14108 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14109 if test "${ac_cv_header_stdc+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 cat >conftest.$ac_ext <<_ACEOF
14113 #line 14113 "configure"
14114 #include "confdefs.h"
14115 #include <stdlib.h>
14116 #include <stdarg.h>
14117 #include <string.h>
14121 if { (eval echo "$as_me:14121: \"$ac_cpp conftest.$ac_ext\"") >&5
14122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14124 egrep -v '^ *\+' conftest.er1 >conftest.err
14126 cat conftest.err >&5
14127 echo "$as_me:14127: \$? = $ac_status" >&5
14128 (exit $ac_status); } >/dev/null; then
14129 if test -s conftest.err; then
14130 ac_cpp_err=$ac_c_preproc_warn_flag
14137 if test -z "$ac_cpp_err"; then
14138 ac_cv_header_stdc=yes
14140 echo "$as_me: failed program was:" >&5
14141 cat conftest.$ac_ext >&5
14142 ac_cv_header_stdc=no
14144 rm -f conftest.err conftest.$ac_ext
14146 if test $ac_cv_header_stdc = yes; then
14147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line 14149 "configure"
14150 #include "confdefs.h"
14151 #include <string.h>
14154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14155 egrep "memchr" >/dev/null 2>&1; then
14158 ac_cv_header_stdc=no
14164 if test $ac_cv_header_stdc = yes; then
14165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14166 cat >conftest.$ac_ext <<_ACEOF
14167 #line 14167 "configure"
14168 #include "confdefs.h"
14169 #include <stdlib.h>
14172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14173 egrep "free" >/dev/null 2>&1; then
14176 ac_cv_header_stdc=no
14182 if test $ac_cv_header_stdc = yes; then
14183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14184 if test "$cross_compiling" = yes; then
14187 cat >conftest.$ac_ext <<_ACEOF
14188 #line 14188 "configure"
14189 #include "confdefs.h"
14191 #if ((' ' & 0x0FF) == 0x020)
14192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14195 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14196 || ('j' <= (c) && (c) <= 'r') \
14197 || ('s' <= (c) && (c) <= 'z'))
14198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14206 for (i = 0; i < 256; i++)
14207 if (XOR (islower (i), ISLOWER (i))
14208 || toupper (i) != TOUPPER (i))
14209 $ac_main_return(2);
14210 $ac_main_return (0);
14213 rm -f conftest$ac_exeext
14214 if { (eval echo "$as_me:14214: \"$ac_link\"") >&5
14215 (eval $ac_link) 2>&5
14217 echo "$as_me:14217: \$? = $ac_status" >&5
14218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14219 { (eval echo "$as_me:14219: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14222 echo "$as_me:14222: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14226 echo "$as_me: program exited with status $ac_status" >&5
14227 echo "$as_me: failed program was:" >&5
14228 cat conftest.$ac_ext >&5
14229 ac_cv_header_stdc=no
14231 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14235 echo "$as_me:14235: result: $ac_cv_header_stdc" >&5
14236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14237 if test $ac_cv_header_stdc = yes; then
14239 cat >>confdefs.h <<\EOF
14240 #define STDC_HEADERS 1
14245 ac_header_dirent=no
14246 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14247 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14248 echo "$as_me:14248: checking for $ac_hdr that defines DIR" >&5
14249 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 cat >conftest.$ac_ext <<_ACEOF
14254 #line 14254 "configure"
14255 #include "confdefs.h"
14256 #include <sys/types.h>
14268 rm -f conftest.$ac_objext
14269 if { (eval echo "$as_me:14269: \"$ac_compile\"") >&5
14270 (eval $ac_compile) 2>&5
14272 echo "$as_me:14272: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:14275: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:14278: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 eval "$as_ac_Header=yes"
14282 echo "$as_me: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14284 eval "$as_ac_Header=no"
14286 rm -f conftest.$ac_objext conftest.$ac_ext
14288 echo "$as_me:14288: result: `eval echo '${'$as_ac_Header'}'`" >&5
14289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291 cat >>confdefs.h <<EOF
14292 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14295 ac_header_dirent=$ac_hdr; break
14299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14300 if test $ac_header_dirent = dirent.h; then
14301 echo "$as_me:14301: checking for opendir in -ldir" >&5
14302 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14303 if test "${ac_cv_lib_dir_opendir+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 ac_check_lib_save_LIBS=$LIBS
14308 cat >conftest.$ac_ext <<_ACEOF
14309 #line 14309 "configure"
14310 #include "confdefs.h"
14312 /* Override any gcc2 internal prototype to avoid an error. */
14316 /* We use char because int might match the return type of a gcc2
14317 builtin and then its argument prototype would still apply. */
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (eval echo "$as_me:14328: \"$ac_link\"") >&5
14329 (eval $ac_link) 2>&5
14331 echo "$as_me:14331: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -s conftest$ac_exeext'
14334 { (eval echo "$as_me:14334: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:14337: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_lib_dir_opendir=yes
14341 echo "$as_me: failed program was:" >&5
14342 cat conftest.$ac_ext >&5
14343 ac_cv_lib_dir_opendir=no
14345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14348 echo "$as_me:14348: result: $ac_cv_lib_dir_opendir" >&5
14349 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14350 if test $ac_cv_lib_dir_opendir = yes; then
14355 echo "$as_me:14355: checking for opendir in -lx" >&5
14356 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14357 if test "${ac_cv_lib_x_opendir+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 ac_check_lib_save_LIBS=$LIBS
14362 cat >conftest.$ac_ext <<_ACEOF
14363 #line 14363 "configure"
14364 #include "confdefs.h"
14366 /* Override any gcc2 internal prototype to avoid an error. */
14370 /* We use char because int might match the return type of a gcc2
14371 builtin and then its argument prototype would still apply. */
14381 rm -f conftest.$ac_objext conftest$ac_exeext
14382 if { (eval echo "$as_me:14382: \"$ac_link\"") >&5
14383 (eval $ac_link) 2>&5
14385 echo "$as_me:14385: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -s conftest$ac_exeext'
14388 { (eval echo "$as_me:14388: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14391 echo "$as_me:14391: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_cv_lib_x_opendir=yes
14395 echo "$as_me: failed program was:" >&5
14396 cat conftest.$ac_ext >&5
14397 ac_cv_lib_x_opendir=no
14399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14400 LIBS=$ac_check_lib_save_LIBS
14402 echo "$as_me:14402: result: $ac_cv_lib_x_opendir" >&5
14403 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14404 if test $ac_cv_lib_x_opendir = yes; then
14410 echo "$as_me:14410: checking whether time.h and sys/time.h may both be included" >&5
14411 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14412 if test "${ac_cv_header_time+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 cat >conftest.$ac_ext <<_ACEOF
14416 #line 14416 "configure"
14417 #include "confdefs.h"
14418 #include <sys/types.h>
14419 #include <sys/time.h>
14425 if ((struct tm *) 0)
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:14432: \"$ac_compile\"") >&5
14433 (eval $ac_compile) 2>&5
14435 echo "$as_me:14435: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:14438: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:14441: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_cv_header_time=yes
14445 echo "$as_me: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14447 ac_cv_header_time=no
14449 rm -f conftest.$ac_objext conftest.$ac_ext
14451 echo "$as_me:14451: result: $ac_cv_header_time" >&5
14452 echo "${ECHO_T}$ac_cv_header_time" >&6
14453 if test $ac_cv_header_time = yes; then
14455 cat >>confdefs.h <<\EOF
14456 #define TIME_WITH_SYS_TIME 1
14463 cf_regex_libs="regex re"
14464 case $host_os in #(vi
14466 cf_regex_libs="gnurx $cf_regex_libs"
14470 echo "$as_me:14470: checking for regcomp" >&5
14471 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
14472 if test "${ac_cv_func_regcomp+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 cat >conftest.$ac_ext <<_ACEOF
14476 #line 14476 "configure"
14477 #include "confdefs.h"
14478 /* System header to define __stub macros and hopefully few prototypes,
14479 which can conflict with char regcomp (); below. */
14480 #include <assert.h>
14481 /* Override any gcc2 internal prototype to avoid an error. */
14485 /* We use char because int might match the return type of a gcc2
14486 builtin and then its argument prototype would still apply. */
14493 /* The GNU C library defines this for functions which it implements
14494 to always fail with ENOSYS. Some functions are actually named
14495 something starting with __ and the normal name is an alias. */
14496 #if defined (__stub_regcomp) || defined (__stub___regcomp)
14499 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (eval echo "$as_me:14507: \"$ac_link\"") >&5
14508 (eval $ac_link) 2>&5
14510 echo "$as_me:14510: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -s conftest$ac_exeext'
14513 { (eval echo "$as_me:14513: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:14516: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 ac_cv_func_regcomp=yes
14520 echo "$as_me: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14522 ac_cv_func_regcomp=no
14524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14526 echo "$as_me:14526: result: $ac_cv_func_regcomp" >&5
14527 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
14528 if test $ac_cv_func_regcomp = yes; then
14529 cf_regex_func=regcomp
14532 for cf_regex_lib in $cf_regex_libs
14534 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
14535 echo "$as_me:14535: checking for regcomp in -l$cf_regex_lib" >&5
14536 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
14537 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 ac_check_lib_save_LIBS=$LIBS
14541 LIBS="-l$cf_regex_lib $LIBS"
14542 cat >conftest.$ac_ext <<_ACEOF
14543 #line 14543 "configure"
14544 #include "confdefs.h"
14546 /* Override any gcc2 internal prototype to avoid an error. */
14550 /* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (eval echo "$as_me:14562: \"$ac_link\"") >&5
14563 (eval $ac_link) 2>&5
14565 echo "$as_me:14565: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -s conftest$ac_exeext'
14568 { (eval echo "$as_me:14568: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:14571: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 eval "$as_ac_Lib=yes"
14575 echo "$as_me: failed program was:" >&5
14576 cat conftest.$ac_ext >&5
14577 eval "$as_ac_Lib=no"
14579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14582 echo "$as_me:14582: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14583 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14584 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14586 cf_add_libs="-l$cf_regex_lib"
14587 # Filter out duplicates - this happens with badly-designed ".pc" files...
14588 for cf_add_1lib in $LIBS
14590 for cf_add_2lib in $cf_add_libs
14592 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14598 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14600 LIBS="$cf_add_libs"
14602 cf_regex_func=regcomp
14610 if test "$cf_regex_func" = no ; then
14611 echo "$as_me:14611: checking for compile" >&5
14612 echo $ECHO_N "checking for compile... $ECHO_C" >&6
14613 if test "${ac_cv_func_compile+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line 14617 "configure"
14618 #include "confdefs.h"
14619 /* System header to define __stub macros and hopefully few prototypes,
14620 which can conflict with char compile (); below. */
14621 #include <assert.h>
14622 /* Override any gcc2 internal prototype to avoid an error. */
14626 /* We use char because int might match the return type of a gcc2
14627 builtin and then its argument prototype would still apply. */
14634 /* The GNU C library defines this for functions which it implements
14635 to always fail with ENOSYS. Some functions are actually named
14636 something starting with __ and the normal name is an alias. */
14637 #if defined (__stub_compile) || defined (__stub___compile)
14640 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:14648: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14651 echo "$as_me:14651: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:14654: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:14657: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_func_compile=yes
14661 echo "$as_me: failed program was:" >&5
14662 cat conftest.$ac_ext >&5
14663 ac_cv_func_compile=no
14665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14667 echo "$as_me:14667: result: $ac_cv_func_compile" >&5
14668 echo "${ECHO_T}$ac_cv_func_compile" >&6
14669 if test $ac_cv_func_compile = yes; then
14670 cf_regex_func=compile
14673 echo "$as_me:14673: checking for compile in -lgen" >&5
14674 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
14675 if test "${ac_cv_lib_gen_compile+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 ac_check_lib_save_LIBS=$LIBS
14680 cat >conftest.$ac_ext <<_ACEOF
14681 #line 14681 "configure"
14682 #include "confdefs.h"
14684 /* Override any gcc2 internal prototype to avoid an error. */
14688 /* We use char because int might match the return type of a gcc2
14689 builtin and then its argument prototype would still apply. */
14699 rm -f conftest.$ac_objext conftest$ac_exeext
14700 if { (eval echo "$as_me:14700: \"$ac_link\"") >&5
14701 (eval $ac_link) 2>&5
14703 echo "$as_me:14703: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -s conftest$ac_exeext'
14706 { (eval echo "$as_me:14706: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:14709: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_lib_gen_compile=yes
14713 echo "$as_me: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14715 ac_cv_lib_gen_compile=no
14717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14718 LIBS=$ac_check_lib_save_LIBS
14720 echo "$as_me:14720: result: $ac_cv_lib_gen_compile" >&5
14721 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
14722 if test $ac_cv_lib_gen_compile = yes; then
14724 cf_add_libs="-lgen"
14725 # Filter out duplicates - this happens with badly-designed ".pc" files...
14726 for cf_add_1lib in $LIBS
14728 for cf_add_2lib in $cf_add_libs
14730 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14736 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14738 LIBS="$cf_add_libs"
14740 cf_regex_func=compile
14747 if test "$cf_regex_func" = no ; then
14748 { echo "$as_me:14748: WARNING: cannot find regular expression library" >&5
14749 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14752 echo "$as_me:14752: checking for regular-expression headers" >&5
14753 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14754 if test "${cf_cv_regex_hdrs+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14758 cf_cv_regex_hdrs=no
14759 case $cf_regex_func in #(vi
14761 for cf_regex_hdr in regexp.h regexpr.h
14763 cat >conftest.$ac_ext <<_ACEOF
14764 #line 14764 "configure"
14765 #include "confdefs.h"
14766 #include <$cf_regex_hdr>
14771 char *p = compile("", "", "", 0);
14772 int x = step("", "");
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (eval echo "$as_me:14779: \"$ac_link\"") >&5
14780 (eval $ac_link) 2>&5
14782 echo "$as_me:14782: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -s conftest$ac_exeext'
14785 { (eval echo "$as_me:14785: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:14788: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14791 cf_cv_regex_hdrs=$cf_regex_hdr
14795 echo "$as_me: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14802 for cf_regex_hdr in regex.h
14804 cat >conftest.$ac_ext <<_ACEOF
14805 #line 14805 "configure"
14806 #include "confdefs.h"
14807 #include <sys/types.h>
14808 #include <$cf_regex_hdr>
14814 int x = regcomp(p, "", 0);
14815 int y = regexec(p, "", 0, 0, 0);
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:14823: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>&5
14826 echo "$as_me:14826: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -s conftest$ac_exeext'
14829 { (eval echo "$as_me:14829: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:14832: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14835 cf_cv_regex_hdrs=$cf_regex_hdr
14839 echo "$as_me: failed program was:" >&5
14840 cat conftest.$ac_ext >&5
14842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14848 echo "$as_me:14848: result: $cf_cv_regex_hdrs" >&5
14849 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14851 case $cf_cv_regex_hdrs in #(vi
14852 no) { echo "$as_me:14852: WARNING: no regular expression header found" >&5
14853 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14855 cat >>confdefs.h <<\EOF
14856 #define HAVE_REGEX_H_FUNCS 1
14860 cat >>confdefs.h <<\EOF
14861 #define HAVE_REGEXP_H_FUNCS 1
14865 cat >>confdefs.h <<\EOF
14866 #define HAVE_REGEXPR_H_FUNCS 1
14890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14891 echo "$as_me:14891: checking for $ac_header" >&5
14892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 cat >conftest.$ac_ext <<_ACEOF
14897 #line 14897 "configure"
14898 #include "confdefs.h"
14899 #include <$ac_header>
14901 if { (eval echo "$as_me:14901: \"$ac_cpp conftest.$ac_ext\"") >&5
14902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14904 egrep -v '^ *\+' conftest.er1 >conftest.err
14906 cat conftest.err >&5
14907 echo "$as_me:14907: \$? = $ac_status" >&5
14908 (exit $ac_status); } >/dev/null; then
14909 if test -s conftest.err; then
14910 ac_cpp_err=$ac_c_preproc_warn_flag
14917 if test -z "$ac_cpp_err"; then
14918 eval "$as_ac_Header=yes"
14920 echo "$as_me: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 eval "$as_ac_Header=no"
14924 rm -f conftest.err conftest.$ac_ext
14926 echo "$as_me:14926: result: `eval echo '${'$as_ac_Header'}'`" >&5
14927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14929 cat >>confdefs.h <<EOF
14930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 for ac_header in unistd.h getopt.h
14938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 echo "$as_me:14939: checking for $ac_header" >&5
14940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 cat >conftest.$ac_ext <<_ACEOF
14945 #line 14945 "configure"
14946 #include "confdefs.h"
14947 #include <$ac_header>
14949 if { (eval echo "$as_me:14949: \"$ac_cpp conftest.$ac_ext\"") >&5
14950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14952 egrep -v '^ *\+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 echo "$as_me:14955: \$? = $ac_status" >&5
14956 (exit $ac_status); } >/dev/null; then
14957 if test -s conftest.err; then
14958 ac_cpp_err=$ac_c_preproc_warn_flag
14965 if test -z "$ac_cpp_err"; then
14966 eval "$as_ac_Header=yes"
14968 echo "$as_me: failed program was:" >&5
14969 cat conftest.$ac_ext >&5
14970 eval "$as_ac_Header=no"
14972 rm -f conftest.err conftest.$ac_ext
14974 echo "$as_me:14974: result: `eval echo '${'$as_ac_Header'}'`" >&5
14975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977 cat >>confdefs.h <<EOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14984 echo "$as_me:14984: checking for header declaring getopt variables" >&5
14985 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14986 if test "${cf_cv_getopt_header+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 cf_cv_getopt_header=none
14991 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14993 cat >conftest.$ac_ext <<_ACEOF
14994 #line 14994 "configure"
14995 #include "confdefs.h"
14997 #include <$cf_header>
15001 int x = optind; char *y = optarg
15006 rm -f conftest.$ac_objext
15007 if { (eval echo "$as_me:15007: \"$ac_compile\"") >&5
15008 (eval $ac_compile) 2>&5
15010 echo "$as_me:15010: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
15012 { ac_try='test -s conftest.$ac_objext'
15013 { (eval echo "$as_me:15013: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 echo "$as_me:15016: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
15018 cf_cv_getopt_header=$cf_header
15021 echo "$as_me: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15024 rm -f conftest.$ac_objext conftest.$ac_ext
15028 echo "$as_me:15028: result: $cf_cv_getopt_header" >&5
15029 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15030 if test $cf_cv_getopt_header != none ; then
15032 cat >>confdefs.h <<\EOF
15033 #define HAVE_GETOPT_HEADER 1
15037 if test $cf_cv_getopt_header = getopt.h ; then
15039 cat >>confdefs.h <<\EOF
15040 #define NEED_GETOPT_H 1
15045 # check for ISC (this may also define _POSIX_SOURCE)
15046 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
15047 if test "x$ISC" = xyes ; then
15049 echo "$as_me:15049: checking for main in -lcposix" >&5
15050 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
15051 if test "${ac_cv_lib_cposix_main+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-lcposix $LIBS"
15056 cat >conftest.$ac_ext <<_ACEOF
15057 #line 15057 "configure"
15058 #include "confdefs.h"
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (eval echo "$as_me:15069: \"$ac_link\"") >&5
15070 (eval $ac_link) 2>&5
15072 echo "$as_me:15072: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -s conftest$ac_exeext'
15075 { (eval echo "$as_me:15075: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15078 echo "$as_me:15078: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_cv_lib_cposix_main=yes
15082 echo "$as_me: failed program was:" >&5
15083 cat conftest.$ac_ext >&5
15084 ac_cv_lib_cposix_main=no
15086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15087 LIBS=$ac_check_lib_save_LIBS
15089 echo "$as_me:15089: result: $ac_cv_lib_cposix_main" >&5
15090 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
15091 if test $ac_cv_lib_cposix_main = yes; then
15092 cat >>confdefs.h <<EOF
15093 #define HAVE_LIBCPOSIX 1
15096 LIBS="-lcposix $LIBS"
15100 echo "$as_me:15100: checking for bzero in -linet" >&5
15101 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
15102 if test "${ac_cv_lib_inet_bzero+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 ac_check_lib_save_LIBS=$LIBS
15106 LIBS="-linet $LIBS"
15107 cat >conftest.$ac_ext <<_ACEOF
15108 #line 15108 "configure"
15109 #include "confdefs.h"
15111 /* Override any gcc2 internal prototype to avoid an error. */
15115 /* We use char because int might match the return type of a gcc2
15116 builtin and then its argument prototype would still apply. */
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:15127: \"$ac_link\"") >&5
15128 (eval $ac_link) 2>&5
15130 echo "$as_me:15130: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -s conftest$ac_exeext'
15133 { (eval echo "$as_me:15133: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:15136: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_cv_lib_inet_bzero=yes
15140 echo "$as_me: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 ac_cv_lib_inet_bzero=no
15144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15147 echo "$as_me:15147: result: $ac_cv_lib_inet_bzero" >&5
15148 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
15149 if test $ac_cv_lib_inet_bzero = yes; then
15151 cf_add_libs="-linet"
15152 # Filter out duplicates - this happens with badly-designed ".pc" files...
15153 for cf_add_1lib in $LIBS
15155 for cf_add_2lib in $cf_add_libs
15157 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15163 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15165 LIBS="$cf_add_libs"
15170 echo "$as_me:15170: checking if sys/time.h works with sys/select.h" >&5
15171 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15172 if test "${cf_cv_sys_time_select+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 cat >conftest.$ac_ext <<_ACEOF
15177 #line 15177 "configure"
15178 #include "confdefs.h"
15180 #include <sys/types.h>
15181 #ifdef HAVE_SYS_TIME_H
15182 #include <sys/time.h>
15184 #ifdef HAVE_SYS_SELECT_H
15185 #include <sys/select.h>
15196 rm -f conftest.$ac_objext
15197 if { (eval echo "$as_me:15197: \"$ac_compile\"") >&5
15198 (eval $ac_compile) 2>&5
15200 echo "$as_me:15200: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -s conftest.$ac_objext'
15203 { (eval echo "$as_me:15203: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:15206: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 cf_cv_sys_time_select=yes
15210 echo "$as_me: failed program was:" >&5
15211 cat conftest.$ac_ext >&5
15212 cf_cv_sys_time_select=no
15214 rm -f conftest.$ac_objext conftest.$ac_ext
15218 echo "$as_me:15218: result: $cf_cv_sys_time_select" >&5
15219 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15220 test "$cf_cv_sys_time_select" = yes &&
15221 cat >>confdefs.h <<\EOF
15222 #define HAVE_SYS_TIME_SELECT 1
15225 ### checks for compiler characteristics
15227 ac_cpp='$CPP $CPPFLAGS'
15228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15231 ac_main_return=return
15233 echo "$as_me:15233: checking for an ANSI C-conforming const" >&5
15234 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15235 if test "${ac_cv_c_const+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15239 #line 15239 "configure"
15240 #include "confdefs.h"
15245 /* FIXME: Include the comments suggested by Paul. */
15246 #ifndef __cplusplus
15247 /* Ultrix mips cc rejects this. */
15248 typedef int charset[2];
15250 /* SunOS 4.1.1 cc rejects this. */
15251 char const *const *ccp;
15253 /* NEC SVR4.0.2 mips cc rejects this. */
15254 struct point {int x, y;};
15255 static struct point const zero = {0,0};
15256 /* AIX XL C 1.02.0.0 rejects this.
15257 It does not let you subtract one const X* pointer from another in
15258 an arm of an if-expression whose if-part is not a constant
15260 const char *g = "string";
15261 ccp = &g + (g ? g-g : 0);
15262 /* HPUX 7.0 cc rejects these. */
15265 ccp = (char const *const *) p;
15266 { /* SCO 3.2v4 cc rejects this. */
15268 char const *s = 0 ? (char *) 0 : (char const *) 0;
15272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15273 int x[] = {25, 17};
15274 const int *foo = &x[0];
15277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15278 typedef const int *iptr;
15282 { /* AIX XL C 1.02.0.0 rejects this saying
15283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15284 struct s { int j; const int *ap[3]; };
15285 struct s *b; b->j = 5;
15287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15288 const int foo = 10;
15296 rm -f conftest.$ac_objext
15297 if { (eval echo "$as_me:15297: \"$ac_compile\"") >&5
15298 (eval $ac_compile) 2>&5
15300 echo "$as_me:15300: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (eval echo "$as_me:15303: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:15306: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15310 echo "$as_me: failed program was:" >&5
15311 cat conftest.$ac_ext >&5
15314 rm -f conftest.$ac_objext conftest.$ac_ext
15316 echo "$as_me:15316: result: $ac_cv_c_const" >&5
15317 echo "${ECHO_T}$ac_cv_c_const" >&6
15318 if test $ac_cv_c_const = no; then
15320 cat >>confdefs.h <<\EOF
15326 echo "$as_me:15326: checking for inline" >&5
15327 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15328 if test "${ac_cv_c_inline+set}" = set; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 for ac_kw in inline __inline__ __inline; do
15333 cat >conftest.$ac_ext <<_ACEOF
15334 #line 15334 "configure"
15335 #include "confdefs.h"
15336 #ifndef __cplusplus
15337 static $ac_kw int static_foo () {return 0; }
15338 $ac_kw int foo () {return 0; }
15342 rm -f conftest.$ac_objext
15343 if { (eval echo "$as_me:15343: \"$ac_compile\"") >&5
15344 (eval $ac_compile) 2>&5
15346 echo "$as_me:15346: \$? = $ac_status" >&5
15347 (exit $ac_status); } &&
15348 { ac_try='test -s conftest.$ac_objext'
15349 { (eval echo "$as_me:15349: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15352 echo "$as_me:15352: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 ac_cv_c_inline=$ac_kw; break
15356 echo "$as_me: failed program was:" >&5
15357 cat conftest.$ac_ext >&5
15359 rm -f conftest.$ac_objext conftest.$ac_ext
15363 echo "$as_me:15363: result: $ac_cv_c_inline" >&5
15364 echo "${ECHO_T}$ac_cv_c_inline" >&6
15365 case $ac_cv_c_inline in
15368 cat >>confdefs.h <<\EOF
15372 *) cat >>confdefs.h <<EOF
15373 #define inline $ac_cv_c_inline
15379 if test "$ac_cv_c_inline" != no ; then
15380 NCURSES_INLINE=inline
15381 if test "$INTEL_COMPILER" = yes
15384 elif test "$CLANG_COMPILER" = yes
15387 elif test "$GCC" = yes
15389 echo "$as_me:15389: checking if $CC supports options to tune inlining" >&5
15390 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
15391 if test "${cf_cv_gcc_inline+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 cf_save_CFLAGS=$CFLAGS
15396 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
15397 cat >conftest.$ac_ext <<_ACEOF
15398 #line 15398 "configure"
15399 #include "confdefs.h"
15400 inline int foo(void) { return 1; }
15404 ${cf_cv_main_return:-return} foo()
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:15410: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>&5
15413 echo "$as_me:15413: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (eval echo "$as_me:15416: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:15419: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421 cf_cv_gcc_inline=yes
15423 echo "$as_me: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15425 cf_cv_gcc_inline=no
15427 rm -f conftest.$ac_objext conftest.$ac_ext
15428 CFLAGS=$cf_save_CFLAGS
15431 echo "$as_me:15431: result: $cf_cv_gcc_inline" >&5
15432 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
15433 if test "$cf_cv_gcc_inline" = yes ; then
15438 cf_new_extra_cppflags=
15440 for cf_add_cflags in --param max-inline-insns-single=1200
15442 case $cf_fix_cppflags in
15444 case $cf_add_cflags in #(vi
15445 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15446 case $cf_add_cflags in
15448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15450 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15451 && test -z "${cf_tst_cflags}" \
15452 && cf_fix_cppflags=yes
15454 if test $cf_fix_cppflags = yes ; then
15455 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15457 elif test "${cf_tst_cflags}" = "\"'" ; then
15458 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15463 case "$CPPFLAGS" in
15464 *$cf_add_cflags) #(vi
15467 case $cf_add_cflags in #(vi
15469 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15471 CPPFLAGS=`echo "$CPPFLAGS" | \
15472 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15473 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15477 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15482 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15487 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15489 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15491 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15492 && test -z "${cf_tst_cflags}" \
15493 && cf_fix_cppflags=no
15498 if test -n "$cf_new_cflags" ; then
15500 CFLAGS="$CFLAGS $cf_new_cflags"
15503 if test -n "$cf_new_cppflags" ; then
15505 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15508 if test -n "$cf_new_extra_cppflags" ; then
15510 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15517 echo "$as_me:15517: checking for signal global datatype" >&5
15518 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
15519 if test "${cf_cv_sig_atomic_t+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 "volatile sig_atomic_t" \
15528 cat >conftest.$ac_ext <<_ACEOF
15529 #line 15529 "configure"
15530 #include "confdefs.h"
15532 #include <sys/types.h>
15533 #include <signal.h>
15538 static void handler(int sig)
15545 signal(SIGINT, handler);
15551 rm -f conftest.$ac_objext
15552 if { (eval echo "$as_me:15552: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>&5
15555 echo "$as_me:15555: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -s conftest.$ac_objext'
15558 { (eval echo "$as_me:15558: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15561 echo "$as_me:15561: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 cf_cv_sig_atomic_t=$cf_type
15565 echo "$as_me: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 cf_cv_sig_atomic_t=no
15569 rm -f conftest.$ac_objext conftest.$ac_ext
15570 test "$cf_cv_sig_atomic_t" != no && break
15575 echo "$as_me:15575: result: $cf_cv_sig_atomic_t" >&5
15576 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
15577 test "$cf_cv_sig_atomic_t" != no &&
15578 cat >>confdefs.h <<EOF
15579 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
15582 if test $NCURSES_CHTYPE = auto ; then
15584 echo "$as_me:15584: checking for type of chtype" >&5
15585 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
15586 if test "${cf_cv_typeof_chtype+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 if test "$cross_compiling" = yes; then
15591 cf_cv_typeof_chtype=long
15593 cat >conftest.$ac_ext <<_ACEOF
15594 #line 15594 "configure"
15595 #include "confdefs.h"
15597 #define WANT_BITS 31
15601 FILE *fp = fopen("cf_test.out", "w");
15603 char *result = "long";
15604 if (sizeof(unsigned long) > sizeof(unsigned int)) {
15607 for (n = 0; n < WANT_BITS; n++) {
15610 if (y != 1 || x == 0) {
15616 * If x is nonzero, an int is big enough for the bits
15619 result = (x != 0) ? "int" : "long";
15624 ${cf_cv_main_return:-return}(0);
15628 rm -f conftest$ac_exeext
15629 if { (eval echo "$as_me:15629: \"$ac_link\"") >&5
15630 (eval $ac_link) 2>&5
15632 echo "$as_me:15632: \$? = $ac_status" >&5
15633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15634 { (eval echo "$as_me:15634: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:15637: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 cf_cv_typeof_chtype=`cat cf_test.out`
15641 echo "$as_me: program exited with status $ac_status" >&5
15642 echo "$as_me: failed program was:" >&5
15643 cat conftest.$ac_ext >&5
15644 cf_cv_typeof_chtype=long
15646 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15652 echo "$as_me:15652: result: $cf_cv_typeof_chtype" >&5
15653 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
15655 cat >>confdefs.h <<EOF
15656 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
15660 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15662 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15664 echo "$as_me:15664: checking if unsigned literals are legal" >&5
15665 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15666 if test "${cf_cv_unsigned_literals+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 cat >conftest.$ac_ext <<_ACEOF
15671 #line 15671 "configure"
15672 #include "confdefs.h"
15677 long x = 1L + 1UL + 1U + 1
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:15683: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>&5
15686 echo "$as_me:15686: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (eval echo "$as_me:15689: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:15692: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 cf_cv_unsigned_literals=yes
15696 echo "$as_me: failed program was:" >&5
15697 cat conftest.$ac_ext >&5
15698 cf_cv_unsigned_literals=no
15700 rm -f conftest.$ac_objext conftest.$ac_ext
15704 echo "$as_me:15704: result: $cf_cv_unsigned_literals" >&5
15705 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15708 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15709 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15711 if test $NCURSES_MMASK_T = auto ; then
15712 cf_cv_typeof_mmask_t=long
15714 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15716 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15718 ### Checks for external-data
15720 echo "$as_me:15720: checking if external errno is declared" >&5
15721 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15722 if test "${cf_cv_dcl_errno+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 cat >conftest.$ac_ext <<_ACEOF
15727 #line 15727 "configure"
15728 #include "confdefs.h"
15730 #ifdef HAVE_STDLIB_H
15731 #include <stdlib.h>
15734 #include <sys/types.h>
15739 int x = (int) errno
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:15745: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>&5
15748 echo "$as_me:15748: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -s conftest.$ac_objext'
15751 { (eval echo "$as_me:15751: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:15754: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 cf_cv_dcl_errno=yes
15758 echo "$as_me: failed program was:" >&5
15759 cat conftest.$ac_ext >&5
15762 rm -f conftest.$ac_objext conftest.$ac_ext
15765 echo "$as_me:15765: result: $cf_cv_dcl_errno" >&5
15766 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15768 if test "$cf_cv_dcl_errno" = no ; then
15770 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15772 cat >>confdefs.h <<EOF
15773 #define $cf_result 1
15778 # It's possible (for near-UNIX clones) that the data doesn't exist
15780 echo "$as_me:15780: checking if external errno exists" >&5
15781 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15782 if test "${cf_cv_have_errno+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 cat >conftest.$ac_ext <<_ACEOF
15787 #line 15787 "configure"
15788 #include "confdefs.h"
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:15802: \"$ac_link\"") >&5
15803 (eval $ac_link) 2>&5
15805 echo "$as_me:15805: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -s conftest$ac_exeext'
15808 { (eval echo "$as_me:15808: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15811 echo "$as_me:15811: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }; then
15813 cf_cv_have_errno=yes
15815 echo "$as_me: failed program was:" >&5
15816 cat conftest.$ac_ext >&5
15817 cf_cv_have_errno=no
15819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15822 echo "$as_me:15822: result: $cf_cv_have_errno" >&5
15823 echo "${ECHO_T}$cf_cv_have_errno" >&6
15825 if test "$cf_cv_have_errno" = yes ; then
15827 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15829 cat >>confdefs.h <<EOF
15830 #define $cf_result 1
15835 echo "$as_me:15835: checking if data-only library module links" >&5
15836 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15837 if test "${cf_cv_link_dataonly+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 cat >conftest.$ac_ext <<EOF
15843 #line 15843 "configure"
15844 int testdata[3] = { 123, 456, 789 };
15846 if { (eval echo "$as_me:15846: \"$ac_compile\"") >&5
15847 (eval $ac_compile) 2>&5
15849 echo "$as_me:15849: \$? = $ac_status" >&5
15850 (exit $ac_status); } ; then
15851 mv conftest.o data.o && \
15852 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15854 rm -f conftest.$ac_ext data.o
15855 cat >conftest.$ac_ext <<EOF
15856 #line 15856 "configure"
15860 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15862 extern int testdata[3];
15863 return testdata[0] == 123
15864 && testdata[1] == 456
15865 && testdata[2] == 789;
15869 if { (eval echo "$as_me:15869: \"$ac_compile\"") >&5
15870 (eval $ac_compile) 2>&5
15872 echo "$as_me:15872: \$? = $ac_status" >&5
15873 (exit $ac_status); }; then
15874 mv conftest.o func.o && \
15875 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15877 rm -f conftest.$ac_ext func.o
15878 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15879 cf_saveLIBS="$LIBS"
15880 LIBS="conftest.a $LIBS"
15881 if test "$cross_compiling" = yes; then
15882 cf_cv_link_dataonly=unknown
15884 cat >conftest.$ac_ext <<_ACEOF
15885 #line 15885 "configure"
15886 #include "confdefs.h"
15890 extern int testfunc();
15891 ${cf_cv_main_return:-return} (!testfunc());
15895 rm -f conftest$ac_exeext
15896 if { (eval echo "$as_me:15896: \"$ac_link\"") >&5
15897 (eval $ac_link) 2>&5
15899 echo "$as_me:15899: \$? = $ac_status" >&5
15900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15901 { (eval echo "$as_me:15901: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:15904: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 cf_cv_link_dataonly=yes
15908 echo "$as_me: program exited with status $ac_status" >&5
15909 echo "$as_me: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15911 cf_cv_link_dataonly=no
15913 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15915 LIBS="$cf_saveLIBS"
15919 echo "$as_me:15919: result: $cf_cv_link_dataonly" >&5
15920 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15922 if test "$cf_cv_link_dataonly" = no ; then
15924 cat >>confdefs.h <<\EOF
15925 #define BROKEN_LINKER 1
15931 ### Checks for library functions.
15957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15958 echo "$as_me:15958: checking for $ac_func" >&5
15959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15960 if eval "test \"\${$as_ac_var+set}\" = set"; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 cat >conftest.$ac_ext <<_ACEOF
15964 #line 15964 "configure"
15965 #include "confdefs.h"
15966 /* System header to define __stub macros and hopefully few prototypes,
15967 which can conflict with char $ac_func (); below. */
15968 #include <assert.h>
15969 /* Override any gcc2 internal prototype to avoid an error. */
15973 /* We use char because int might match the return type of a gcc2
15974 builtin and then its argument prototype would still apply. */
15981 /* The GNU C library defines this for functions which it implements
15982 to always fail with ENOSYS. Some functions are actually named
15983 something starting with __ and the normal name is an alias. */
15984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15987 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (eval echo "$as_me:15995: \"$ac_link\"") >&5
15996 (eval $ac_link) 2>&5
15998 echo "$as_me:15998: \$? = $ac_status" >&5
15999 (exit $ac_status); } &&
16000 { ac_try='test -s conftest$ac_exeext'
16001 { (eval echo "$as_me:16001: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16004 echo "$as_me:16004: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 eval "$as_ac_var=yes"
16008 echo "$as_me: failed program was:" >&5
16009 cat conftest.$ac_ext >&5
16010 eval "$as_ac_var=no"
16012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16014 echo "$as_me:16014: result: `eval echo '${'$as_ac_var'}'`" >&5
16015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16016 if test `eval echo '${'$as_ac_var'}'` = yes; then
16017 cat >>confdefs.h <<EOF
16018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16024 if test "x$ac_cv_func_getopt" = xno &&
16025 test "x$cf_with_progs$cf_with_tests" != xnono; then
16026 { { echo "$as_me:16026: error: getopt is required for building programs" >&5
16027 echo "$as_me: error: getopt is required for building programs" >&2;}
16028 { (exit 1); exit 1; }; }
16031 if test "x$with_getcap" = "xyes" ; then
16033 echo "$as_me:16033: checking for terminal-capability database functions" >&5
16034 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
16035 if test "${cf_cv_cgetent+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 cat >conftest.$ac_ext <<_ACEOF
16040 #line 16040 "configure"
16041 #include "confdefs.h"
16043 #include <stdlib.h>
16050 char *db_array = temp;
16051 cgetent(&buf, &db_array, "vt100");
16052 cgetcap(buf, "tc", '=');
16053 cgetmatch(buf, "tc");
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (eval echo "$as_me:16060: \"$ac_link\"") >&5
16061 (eval $ac_link) 2>&5
16063 echo "$as_me:16063: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -s conftest$ac_exeext'
16066 { (eval echo "$as_me:16066: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:16069: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16073 echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16080 echo "$as_me:16080: result: $cf_cv_cgetent" >&5
16081 echo "${ECHO_T}$cf_cv_cgetent" >&6
16083 if test "$cf_cv_cgetent" = yes
16086 cat >>confdefs.h <<\EOF
16087 #define HAVE_BSD_CGETENT 1
16090 echo "$as_me:16090: checking if cgetent uses const parameter" >&5
16091 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
16092 if test "${cf_cv_cgetent_const+set}" = set; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 cat >conftest.$ac_ext <<_ACEOF
16097 #line 16097 "configure"
16098 #include "confdefs.h"
16100 #include <stdlib.h>
16107 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
16108 const char *db_array = temp;
16109 cgetent(&buf, &db_array, "vt100");
16111 cgetcap(buf, "tc", '=');
16112 cgetmatch(buf, "tc");
16118 rm -f conftest.$ac_objext conftest$ac_exeext
16119 if { (eval echo "$as_me:16119: \"$ac_link\"") >&5
16120 (eval $ac_link) 2>&5
16122 echo "$as_me:16122: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -s conftest$ac_exeext'
16125 { (eval echo "$as_me:16125: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16128 echo "$as_me:16128: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 cf_cv_cgetent_const=yes
16132 echo "$as_me: failed program was:" >&5
16133 cat conftest.$ac_ext >&5
16134 cf_cv_cgetent_const=no
16136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16139 echo "$as_me:16139: result: $cf_cv_cgetent_const" >&5
16140 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
16141 if test "$cf_cv_cgetent_const" = yes
16144 cat >>confdefs.h <<EOF
16145 #define CGETENT_CONST const
16153 echo "$as_me:16153: checking for isascii" >&5
16154 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
16155 if test "${cf_cv_have_isascii+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 cat >conftest.$ac_ext <<_ACEOF
16160 #line 16160 "configure"
16161 #include "confdefs.h"
16166 int x = isascii(' ')
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (eval echo "$as_me:16172: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>&5
16175 echo "$as_me:16175: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:16178: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:16181: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 cf_cv_have_isascii=yes
16185 echo "$as_me: failed program was:" >&5
16186 cat conftest.$ac_ext >&5
16187 cf_cv_have_isascii=no
16189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16192 echo "$as_me:16192: result: $cf_cv_have_isascii" >&5
16193 echo "${ECHO_T}$cf_cv_have_isascii" >&6
16194 test "$cf_cv_have_isascii" = yes &&
16195 cat >>confdefs.h <<\EOF
16196 #define HAVE_ISASCII 1
16199 if test "$ac_cv_func_sigaction" = yes; then
16200 echo "$as_me:16200: checking whether sigaction needs _POSIX_SOURCE" >&5
16201 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
16202 cat >conftest.$ac_ext <<_ACEOF
16203 #line 16203 "configure"
16204 #include "confdefs.h"
16206 #include <sys/types.h>
16207 #include <signal.h>
16211 struct sigaction act
16216 rm -f conftest.$ac_objext
16217 if { (eval echo "$as_me:16217: \"$ac_compile\"") >&5
16218 (eval $ac_compile) 2>&5
16220 echo "$as_me:16220: \$? = $ac_status" >&5
16221 (exit $ac_status); } &&
16222 { ac_try='test -s conftest.$ac_objext'
16223 { (eval echo "$as_me:16223: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16226 echo "$as_me:16226: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16230 echo "$as_me: failed program was:" >&5
16231 cat conftest.$ac_ext >&5
16233 cat >conftest.$ac_ext <<_ACEOF
16234 #line 16234 "configure"
16235 #include "confdefs.h"
16237 #define _POSIX_SOURCE
16238 #include <sys/types.h>
16239 #include <signal.h>
16243 struct sigaction act
16248 rm -f conftest.$ac_objext
16249 if { (eval echo "$as_me:16249: \"$ac_compile\"") >&5
16250 (eval $ac_compile) 2>&5
16252 echo "$as_me:16252: \$? = $ac_status" >&5
16253 (exit $ac_status); } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (eval echo "$as_me:16255: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:16258: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16262 cat >>confdefs.h <<\EOF
16263 #define _POSIX_SOURCE 1
16267 echo "$as_me: failed program was:" >&5
16268 cat conftest.$ac_ext >&5
16271 rm -f conftest.$ac_objext conftest.$ac_ext
16273 rm -f conftest.$ac_objext conftest.$ac_ext
16274 echo "$as_me:16274: result: $sigact_bad" >&5
16275 echo "${ECHO_T}$sigact_bad" >&6
16278 echo "$as_me:16278: checking if nanosleep really works" >&5
16279 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
16280 if test "${cf_cv_func_nanosleep+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 if test "$cross_compiling" = yes; then
16285 cf_cv_func_nanosleep=unknown
16287 cat >conftest.$ac_ext <<_ACEOF
16288 #line 16288 "configure"
16289 #include "confdefs.h"
16295 #ifdef HAVE_SYS_TIME_H
16296 #include <sys/time.h>
16300 struct timespec ts1, ts2;
16303 ts1.tv_nsec = 750000000;
16307 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
16308 ${cf_cv_main_return:-return}(code != 0);
16312 rm -f conftest$ac_exeext
16313 if { (eval echo "$as_me:16313: \"$ac_link\"") >&5
16314 (eval $ac_link) 2>&5
16316 echo "$as_me:16316: \$? = $ac_status" >&5
16317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16318 { (eval echo "$as_me:16318: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:16321: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 cf_cv_func_nanosleep=yes
16325 echo "$as_me: program exited with status $ac_status" >&5
16326 echo "$as_me: failed program was:" >&5
16327 cat conftest.$ac_ext >&5
16328 cf_cv_func_nanosleep=no
16330 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16333 echo "$as_me:16333: result: $cf_cv_func_nanosleep" >&5
16334 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
16336 test "$cf_cv_func_nanosleep" = "yes" &&
16337 cat >>confdefs.h <<\EOF
16338 #define HAVE_NANOSLEEP 1
16347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16348 echo "$as_me:16348: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 cat >conftest.$ac_ext <<_ACEOF
16354 #line 16354 "configure"
16355 #include "confdefs.h"
16356 #include <$ac_header>
16358 if { (eval echo "$as_me:16358: \"$ac_cpp conftest.$ac_ext\"") >&5
16359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16361 egrep -v '^ *\+' conftest.er1 >conftest.err
16363 cat conftest.err >&5
16364 echo "$as_me:16364: \$? = $ac_status" >&5
16365 (exit $ac_status); } >/dev/null; then
16366 if test -s conftest.err; then
16367 ac_cpp_err=$ac_c_preproc_warn_flag
16374 if test -z "$ac_cpp_err"; then
16375 eval "$as_ac_Header=yes"
16377 echo "$as_me: failed program was:" >&5
16378 cat conftest.$ac_ext >&5
16379 eval "$as_ac_Header=no"
16381 rm -f conftest.err conftest.$ac_ext
16383 echo "$as_me:16383: result: `eval echo '${'$as_ac_Header'}'`" >&5
16384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16386 cat >>confdefs.h <<EOF
16387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16393 if test "$ISC" = yes ; then
16395 for ac_header in sys/termio.h
16397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16398 echo "$as_me:16398: checking for $ac_header" >&5
16399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 cat >conftest.$ac_ext <<_ACEOF
16404 #line 16404 "configure"
16405 #include "confdefs.h"
16406 #include <$ac_header>
16408 if { (eval echo "$as_me:16408: \"$ac_cpp conftest.$ac_ext\"") >&5
16409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16411 egrep -v '^ *\+' conftest.er1 >conftest.err
16413 cat conftest.err >&5
16414 echo "$as_me:16414: \$? = $ac_status" >&5
16415 (exit $ac_status); } >/dev/null; then
16416 if test -s conftest.err; then
16417 ac_cpp_err=$ac_c_preproc_warn_flag
16424 if test -z "$ac_cpp_err"; then
16425 eval "$as_ac_Header=yes"
16427 echo "$as_me: failed program was:" >&5
16428 cat conftest.$ac_ext >&5
16429 eval "$as_ac_Header=no"
16431 rm -f conftest.err conftest.$ac_ext
16433 echo "$as_me:16433: result: `eval echo '${'$as_ac_Header'}'`" >&5
16434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16436 cat >>confdefs.h <<EOF
16437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16444 if test "$ac_cv_header_termios_h" = yes ; then
16445 case "$CFLAGS $CPPFLAGS" in
16447 termios_bad=dunno ;;
16448 *) termios_bad=maybe ;;
16450 if test "$termios_bad" = maybe ; then
16451 echo "$as_me:16451: checking whether termios.h needs _POSIX_SOURCE" >&5
16452 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
16453 cat >conftest.$ac_ext <<_ACEOF
16454 #line 16454 "configure"
16455 #include "confdefs.h"
16456 #include <termios.h>
16460 struct termios foo; int x = foo.c_iflag
16465 rm -f conftest.$ac_objext
16466 if { (eval echo "$as_me:16466: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>&5
16469 echo "$as_me:16469: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -s conftest.$ac_objext'
16472 { (eval echo "$as_me:16472: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16475 echo "$as_me:16475: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16479 echo "$as_me: failed program was:" >&5
16480 cat conftest.$ac_ext >&5
16482 cat >conftest.$ac_ext <<_ACEOF
16483 #line 16483 "configure"
16484 #include "confdefs.h"
16486 #define _POSIX_SOURCE
16487 #include <termios.h>
16491 struct termios foo; int x = foo.c_iflag
16496 rm -f conftest.$ac_objext
16497 if { (eval echo "$as_me:16497: \"$ac_compile\"") >&5
16498 (eval $ac_compile) 2>&5
16500 echo "$as_me:16500: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:16503: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16506 echo "$as_me:16506: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 termios_bad=unknown
16510 echo "$as_me: failed program was:" >&5
16511 cat conftest.$ac_ext >&5
16513 cat >>confdefs.h <<\EOF
16514 #define _POSIX_SOURCE 1
16518 rm -f conftest.$ac_objext conftest.$ac_ext
16521 rm -f conftest.$ac_objext conftest.$ac_ext
16522 echo "$as_me:16522: result: $termios_bad" >&5
16523 echo "${ECHO_T}$termios_bad" >&6
16527 echo "$as_me:16527: checking for tcgetattr" >&5
16528 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
16529 if test "${cf_cv_have_tcgetattr+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 cat >conftest.$ac_ext <<_ACEOF
16534 #line 16534 "configure"
16535 #include "confdefs.h"
16537 #include <sys/types.h>
16538 #ifdef HAVE_UNISTD_H
16539 #include <unistd.h>
16541 #ifdef HAVE_TERMIOS_H
16542 #include <termios.h>
16543 #define TTY struct termios
16545 #ifdef HAVE_TERMIO_H
16546 #include <termio.h>
16547 #define TTY struct termio
16556 tcgetattr(1, &foo);
16561 rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (eval echo "$as_me:16562: \"$ac_link\"") >&5
16563 (eval $ac_link) 2>&5
16565 echo "$as_me:16565: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -s conftest$ac_exeext'
16568 { (eval echo "$as_me:16568: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16571 echo "$as_me:16571: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 cf_cv_have_tcgetattr=yes
16575 echo "$as_me: failed program was:" >&5
16576 cat conftest.$ac_ext >&5
16577 cf_cv_have_tcgetattr=no
16579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16581 echo "$as_me:16581: result: $cf_cv_have_tcgetattr" >&5
16582 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
16583 test "$cf_cv_have_tcgetattr" = yes &&
16584 cat >>confdefs.h <<\EOF
16585 #define HAVE_TCGETATTR 1
16588 echo "$as_me:16588: checking for vsscanf function or workaround" >&5
16589 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
16590 if test "${cf_cv_func_vsscanf+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 cat >conftest.$ac_ext <<_ACEOF
16595 #line 16595 "configure"
16596 #include "confdefs.h"
16598 #include <stdarg.h>
16605 vsscanf("from", "%d", ap)
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (eval echo "$as_me:16611: \"$ac_link\"") >&5
16612 (eval $ac_link) 2>&5
16614 echo "$as_me:16614: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (eval echo "$as_me:16617: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:16620: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 cf_cv_func_vsscanf=vsscanf
16624 echo "$as_me: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16627 cat >conftest.$ac_ext <<_ACEOF
16628 #line 16628 "configure"
16629 #include "confdefs.h"
16631 #include <stdarg.h>
16638 char *str = "from";
16640 strbuf._flag = _IOREAD;
16641 strbuf._ptr = strbuf._base = (unsigned char *) str;
16642 strbuf._cnt = strlen(str);
16643 strbuf._file = _NFILE;
16644 return (vfscanf(&strbuf, "%d", ap))
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (eval echo "$as_me:16650: \"$ac_link\"") >&5
16651 (eval $ac_link) 2>&5
16653 echo "$as_me:16653: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -s conftest$ac_exeext'
16656 { (eval echo "$as_me:16656: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16659 echo "$as_me:16659: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 cf_cv_func_vsscanf=vfscanf
16663 echo "$as_me: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16666 cat >conftest.$ac_ext <<_ACEOF
16667 #line 16667 "configure"
16668 #include "confdefs.h"
16670 #include <stdarg.h>
16677 char *str = "from";
16679 strbuf._flag = _IOREAD;
16680 strbuf._ptr = strbuf._base = (unsigned char *) str;
16681 strbuf._cnt = strlen(str);
16682 strbuf._file = _NFILE;
16683 return (_doscan(&strbuf, "%d", ap))
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (eval echo "$as_me:16689: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>&5
16692 echo "$as_me:16692: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -s conftest$ac_exeext'
16695 { (eval echo "$as_me:16695: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:16698: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 cf_cv_func_vsscanf=_doscan
16702 echo "$as_me: failed program was:" >&5
16703 cat conftest.$ac_ext >&5
16705 cf_cv_func_vsscanf=no
16707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16713 echo "$as_me:16713: result: $cf_cv_func_vsscanf" >&5
16714 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16716 case $cf_cv_func_vsscanf in #(vi
16718 cat >>confdefs.h <<\EOF
16719 #define HAVE_VSSCANF 1
16723 cat >>confdefs.h <<\EOF
16724 #define HAVE_VFSCANF 1
16728 cat >>confdefs.h <<\EOF
16729 #define HAVE__DOSCAN 1
16734 echo "$as_me:16734: checking for working mkstemp" >&5
16735 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16736 if test "${cf_cv_func_mkstemp+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 if test "$cross_compiling" = yes; then
16742 cf_cv_func_mkstemp=maybe
16744 cat >conftest.$ac_ext <<_ACEOF
16745 #line 16745 "configure"
16746 #include "confdefs.h"
16748 #include <sys/types.h>
16749 #include <stdlib.h>
16751 #include <string.h>
16752 #include <sys/stat.h>
16755 char *tmpl = "conftestXXXXXX";
16763 for (n = 0; n < 2; ++n) {
16764 strcpy(name[n], tmpl);
16765 if ((fd = mkstemp(name[n])) >= 0) {
16766 if (!strcmp(name[n], tmpl)
16767 || stat(name[n], &sb) != 0
16768 || (sb.st_mode & S_IFMT) != S_IFREG
16769 || (sb.st_mode & 077) != 0) {
16776 && !strcmp(name[0], name[1]))
16778 ${cf_cv_main_return:-return}(result);
16782 rm -f conftest$ac_exeext
16783 if { (eval echo "$as_me:16783: \"$ac_link\"") >&5
16784 (eval $ac_link) 2>&5
16786 echo "$as_me:16786: \$? = $ac_status" >&5
16787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16788 { (eval echo "$as_me:16788: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16791 echo "$as_me:16791: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 cf_cv_func_mkstemp=yes
16796 echo "$as_me: program exited with status $ac_status" >&5
16797 echo "$as_me: failed program was:" >&5
16798 cat conftest.$ac_ext >&5
16799 cf_cv_func_mkstemp=no
16802 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16806 echo "$as_me:16806: result: $cf_cv_func_mkstemp" >&5
16807 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16808 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
16809 echo "$as_me:16809: checking for mkstemp" >&5
16810 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16811 if test "${ac_cv_func_mkstemp+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 cat >conftest.$ac_ext <<_ACEOF
16815 #line 16815 "configure"
16816 #include "confdefs.h"
16817 /* System header to define __stub macros and hopefully few prototypes,
16818 which can conflict with char mkstemp (); below. */
16819 #include <assert.h>
16820 /* Override any gcc2 internal prototype to avoid an error. */
16824 /* We use char because int might match the return type of a gcc2
16825 builtin and then its argument prototype would still apply. */
16832 /* The GNU C library defines this for functions which it implements
16833 to always fail with ENOSYS. Some functions are actually named
16834 something starting with __ and the normal name is an alias. */
16835 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16838 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (eval echo "$as_me:16846: \"$ac_link\"") >&5
16847 (eval $ac_link) 2>&5
16849 echo "$as_me:16849: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
16851 { ac_try='test -s conftest$ac_exeext'
16852 { (eval echo "$as_me:16852: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:16855: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_func_mkstemp=yes
16859 echo "$as_me: failed program was:" >&5
16860 cat conftest.$ac_ext >&5
16861 ac_cv_func_mkstemp=no
16863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16865 echo "$as_me:16865: result: $ac_cv_func_mkstemp" >&5
16866 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16869 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16871 cat >>confdefs.h <<\EOF
16872 #define HAVE_MKSTEMP 1
16877 # setup for prototype of fallback for vsscanf()
16879 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16885 if test "x$cross_compiling" = xyes ; then
16886 { echo "$as_me:16886: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16887 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16889 echo "$as_me:16889: checking whether setvbuf arguments are reversed" >&5
16890 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16891 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 if test "$cross_compiling" = yes; then
16895 { { echo "$as_me:16895: error: cannot run test program while cross compiling" >&5
16896 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16897 { (exit 1); exit 1; }; }
16899 cat >conftest.$ac_ext <<_ACEOF
16900 #line 16900 "configure"
16901 #include "confdefs.h"
16903 /* If setvbuf has the reversed format, exit 0. */
16907 /* This call has the arguments reversed.
16908 A reversed system may check and see that the address of main
16909 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16910 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16911 $ac_main_return(1);
16912 putc('\r', stdout);
16913 $ac_main_return(0); /* Non-reversed systems segv here. */
16916 rm -f conftest$ac_exeext
16917 if { (eval echo "$as_me:16917: \"$ac_link\"") >&5
16918 (eval $ac_link) 2>&5
16920 echo "$as_me:16920: \$? = $ac_status" >&5
16921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16922 { (eval echo "$as_me:16922: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:16925: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_func_setvbuf_reversed=yes
16929 echo "$as_me: program exited with status $ac_status" >&5
16930 echo "$as_me: failed program was:" >&5
16931 cat conftest.$ac_ext >&5
16932 ac_cv_func_setvbuf_reversed=no
16934 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16936 rm -f core core.* *.core
16938 echo "$as_me:16938: result: $ac_cv_func_setvbuf_reversed" >&5
16939 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16940 if test $ac_cv_func_setvbuf_reversed = yes; then
16942 cat >>confdefs.h <<\EOF
16943 #define SETVBUF_REVERSED 1
16949 echo "$as_me:16949: checking for intptr_t" >&5
16950 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16951 if test "${ac_cv_type_intptr_t+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 cat >conftest.$ac_ext <<_ACEOF
16955 #line 16955 "configure"
16956 #include "confdefs.h"
16957 $ac_includes_default
16961 if ((intptr_t *) 0)
16963 if (sizeof (intptr_t))
16969 rm -f conftest.$ac_objext
16970 if { (eval echo "$as_me:16970: \"$ac_compile\"") >&5
16971 (eval $ac_compile) 2>&5
16973 echo "$as_me:16973: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -s conftest.$ac_objext'
16976 { (eval echo "$as_me:16976: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16979 echo "$as_me:16979: \$? = $ac_status" >&5
16980 (exit $ac_status); }; }; then
16981 ac_cv_type_intptr_t=yes
16983 echo "$as_me: failed program was:" >&5
16984 cat conftest.$ac_ext >&5
16985 ac_cv_type_intptr_t=no
16987 rm -f conftest.$ac_objext conftest.$ac_ext
16989 echo "$as_me:16989: result: $ac_cv_type_intptr_t" >&5
16990 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16991 if test $ac_cv_type_intptr_t = yes; then
16995 cat >>confdefs.h <<EOF
16996 #define intptr_t long
17001 echo "$as_me:17001: checking for type sigaction_t" >&5
17002 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
17003 if test "${cf_cv_type_sigaction+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 cat >conftest.$ac_ext <<_ACEOF
17008 #line 17008 "configure"
17009 #include "confdefs.h"
17011 #include <signal.h>
17020 rm -f conftest.$ac_objext
17021 if { (eval echo "$as_me:17021: \"$ac_compile\"") >&5
17022 (eval $ac_compile) 2>&5
17024 echo "$as_me:17024: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:17027: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 echo "$as_me:17030: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 cf_cv_type_sigaction=yes
17034 echo "$as_me: failed program was:" >&5
17035 cat conftest.$ac_ext >&5
17036 cf_cv_type_sigaction=no
17038 rm -f conftest.$ac_objext conftest.$ac_ext
17041 echo "$as_me:17041: result: $cf_cv_type_sigaction" >&5
17042 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
17043 test "$cf_cv_type_sigaction" = yes &&
17044 cat >>confdefs.h <<\EOF
17045 #define HAVE_TYPE_SIGACTION 1
17048 echo "$as_me:17048: checking declaration of size-change" >&5
17049 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
17050 if test "${cf_cv_sizechange+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 cf_cv_sizechange=unknown
17055 cf_save_CPPFLAGS="$CPPFLAGS"
17057 for cf_opts in "" "NEED_PTEM_H"
17060 CPPFLAGS="$cf_save_CPPFLAGS"
17061 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
17062 cat >conftest.$ac_ext <<_ACEOF
17063 #line 17063 "configure"
17064 #include "confdefs.h"
17065 #include <sys/types.h>
17066 #ifdef HAVE_TERMIOS_H
17067 #include <termios.h>
17069 #ifdef HAVE_TERMIO_H
17070 #include <termio.h>
17074 /* This is a workaround for SCO: they neglected to define struct winsize in
17075 * termios.h -- it's only in termio.h and ptem.h
17077 #include <sys/stream.h>
17078 #include <sys/ptem.h>
17080 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
17081 #include <sys/ioctl.h>
17089 struct ttysize win; /* FIXME: what system is this? */
17090 int y = win.ts_lines;
17091 int x = win.ts_cols;
17094 struct winsize win;
17095 int y = win.ws_row;
17096 int x = win.ws_col;
17098 no TIOCGSIZE or TIOCGWINSZ
17099 #endif /* TIOCGWINSZ */
17100 #endif /* TIOCGSIZE */
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:17107: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>&5
17110 echo "$as_me:17110: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try='test -s conftest.$ac_objext'
17113 { (eval echo "$as_me:17113: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:17116: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 cf_cv_sizechange=yes
17120 echo "$as_me: failed program was:" >&5
17121 cat conftest.$ac_ext >&5
17122 cf_cv_sizechange=no
17124 rm -f conftest.$ac_objext conftest.$ac_ext
17126 CPPFLAGS="$cf_save_CPPFLAGS"
17127 if test "$cf_cv_sizechange" = yes ; then
17128 echo "size-change succeeded ($cf_opts)" >&5
17129 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
17135 echo "$as_me:17135: result: $cf_cv_sizechange" >&5
17136 echo "${ECHO_T}$cf_cv_sizechange" >&6
17137 if test "$cf_cv_sizechange" != no ; then
17139 cat >>confdefs.h <<\EOF
17140 #define HAVE_SIZECHANGE 1
17143 case $cf_cv_sizechange in #(vi
17145 cat >>confdefs.h <<EOF
17146 #define $cf_cv_sizechange 1
17153 echo "$as_me:17153: checking for memmove" >&5
17154 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17155 if test "${ac_cv_func_memmove+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 cat >conftest.$ac_ext <<_ACEOF
17159 #line 17159 "configure"
17160 #include "confdefs.h"
17161 /* System header to define __stub macros and hopefully few prototypes,
17162 which can conflict with char memmove (); below. */
17163 #include <assert.h>
17164 /* Override any gcc2 internal prototype to avoid an error. */
17168 /* We use char because int might match the return type of a gcc2
17169 builtin and then its argument prototype would still apply. */
17176 /* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179 #if defined (__stub_memmove) || defined (__stub___memmove)
17182 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (eval echo "$as_me:17190: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>&5
17193 echo "$as_me:17193: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -s conftest$ac_exeext'
17196 { (eval echo "$as_me:17196: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:17199: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 ac_cv_func_memmove=yes
17203 echo "$as_me: failed program was:" >&5
17204 cat conftest.$ac_ext >&5
17205 ac_cv_func_memmove=no
17207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17209 echo "$as_me:17209: result: $ac_cv_func_memmove" >&5
17210 echo "${ECHO_T}$ac_cv_func_memmove" >&6
17211 if test $ac_cv_func_memmove = yes; then
17215 echo "$as_me:17215: checking for bcopy" >&5
17216 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
17217 if test "${ac_cv_func_bcopy+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 cat >conftest.$ac_ext <<_ACEOF
17221 #line 17221 "configure"
17222 #include "confdefs.h"
17223 /* System header to define __stub macros and hopefully few prototypes,
17224 which can conflict with char bcopy (); below. */
17225 #include <assert.h>
17226 /* Override any gcc2 internal prototype to avoid an error. */
17230 /* We use char because int might match the return type of a gcc2
17231 builtin and then its argument prototype would still apply. */
17238 /* The GNU C library defines this for functions which it implements
17239 to always fail with ENOSYS. Some functions are actually named
17240 something starting with __ and the normal name is an alias. */
17241 #if defined (__stub_bcopy) || defined (__stub___bcopy)
17244 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (eval echo "$as_me:17252: \"$ac_link\"") >&5
17253 (eval $ac_link) 2>&5
17255 echo "$as_me:17255: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
17257 { ac_try='test -s conftest$ac_exeext'
17258 { (eval echo "$as_me:17258: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:17261: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_func_bcopy=yes
17265 echo "$as_me: failed program was:" >&5
17266 cat conftest.$ac_ext >&5
17267 ac_cv_func_bcopy=no
17269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17271 echo "$as_me:17271: result: $ac_cv_func_bcopy" >&5
17272 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
17273 if test $ac_cv_func_bcopy = yes; then
17275 echo "$as_me:17275: checking if bcopy does overlapping moves" >&5
17276 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
17277 if test "${cf_cv_good_bcopy+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 if test "$cross_compiling" = yes; then
17282 cf_cv_good_bcopy=unknown
17284 cat >conftest.$ac_ext <<_ACEOF
17285 #line 17285 "configure"
17286 #include "confdefs.h"
17289 static char data[] = "abcdefghijklmnopqrstuwwxyz";
17291 bcopy(data, temp, sizeof(data));
17292 bcopy(temp+10, temp, 15);
17293 bcopy(temp+5, temp+15, 10);
17294 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
17298 rm -f conftest$ac_exeext
17299 if { (eval echo "$as_me:17299: \"$ac_link\"") >&5
17300 (eval $ac_link) 2>&5
17302 echo "$as_me:17302: \$? = $ac_status" >&5
17303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17304 { (eval echo "$as_me:17304: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17307 echo "$as_me:17307: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 cf_cv_good_bcopy=yes
17311 echo "$as_me: program exited with status $ac_status" >&5
17312 echo "$as_me: failed program was:" >&5
17313 cat conftest.$ac_ext >&5
17314 cf_cv_good_bcopy=no
17316 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17320 echo "$as_me:17320: result: $cf_cv_good_bcopy" >&5
17321 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
17324 cf_cv_good_bcopy=no
17327 if test "$cf_cv_good_bcopy" = yes ; then
17329 cat >>confdefs.h <<\EOF
17330 #define USE_OK_BCOPY 1
17335 cat >>confdefs.h <<\EOF
17336 #define USE_MY_MEMMOVE 1
17343 echo "$as_me:17343: checking if poll really works" >&5
17344 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
17345 if test "${cf_cv_working_poll+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 if test "$cross_compiling" = yes; then
17350 cf_cv_working_poll=unknown
17352 cat >conftest.$ac_ext <<_ACEOF
17353 #line 17353 "configure"
17354 #include "confdefs.h"
17356 #include <stdlib.h>
17358 #include <unistd.h>
17363 #include <sys/poll.h>
17366 struct pollfd myfds;
17369 /* check for Darwin bug with respect to "devices" */
17370 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
17373 myfds.events = POLLIN;
17376 ret = poll(&myfds, 1, 100);
17378 if (ret < 0 || (myfds.revents & POLLNVAL)) {
17383 fd = open("/dev/tty", 2); /* O_RDWR */
17387 /* also check with standard input */
17389 myfds.events = POLLIN;
17391 ret = poll(&myfds, 1, 100);
17396 ${cf_cv_main_return:-return}(ret < 0);
17399 rm -f conftest$ac_exeext
17400 if { (eval echo "$as_me:17400: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>&5
17403 echo "$as_me:17403: \$? = $ac_status" >&5
17404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17405 { (eval echo "$as_me:17405: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:17408: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 cf_cv_working_poll=yes
17412 echo "$as_me: program exited with status $ac_status" >&5
17413 echo "$as_me: failed program was:" >&5
17414 cat conftest.$ac_ext >&5
17415 cf_cv_working_poll=no
17417 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17420 echo "$as_me:17420: result: $cf_cv_working_poll" >&5
17421 echo "${ECHO_T}$cf_cv_working_poll" >&6
17422 test "$cf_cv_working_poll" = "yes" &&
17423 cat >>confdefs.h <<\EOF
17424 #define HAVE_WORKING_POLL 1
17427 echo "$as_me:17427: checking for va_copy" >&5
17428 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
17429 if test "${cf_cv_have_va_copy+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 cat >conftest.$ac_ext <<_ACEOF
17434 #line 17434 "configure"
17435 #include "confdefs.h"
17437 #include <stdarg.h>
17443 static va_list dst;
17444 static va_list src;
17450 rm -f conftest.$ac_objext conftest$ac_exeext
17451 if { (eval echo "$as_me:17451: \"$ac_link\"") >&5
17452 (eval $ac_link) 2>&5
17454 echo "$as_me:17454: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -s conftest$ac_exeext'
17457 { (eval echo "$as_me:17457: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17460 echo "$as_me:17460: \$? = $ac_status" >&5
17461 (exit $ac_status); }; }; then
17462 cf_cv_have_va_copy=yes
17464 echo "$as_me: failed program was:" >&5
17465 cat conftest.$ac_ext >&5
17466 cf_cv_have_va_copy=no
17468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17470 echo "$as_me:17470: result: $cf_cv_have_va_copy" >&5
17471 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
17473 test "$cf_cv_have_va_copy" = yes &&
17474 cat >>confdefs.h <<\EOF
17475 #define HAVE_VA_COPY 1
17478 echo "$as_me:17478: checking for __va_copy" >&5
17479 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17480 if test "${cf_cv_have___va_copy+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 cat >conftest.$ac_ext <<_ACEOF
17485 #line 17485 "configure"
17486 #include "confdefs.h"
17488 #include <stdarg.h>
17494 static va_list dst;
17495 static va_list src;
17496 __va_copy(dst, src)
17501 rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (eval echo "$as_me:17502: \"$ac_link\"") >&5
17503 (eval $ac_link) 2>&5
17505 echo "$as_me:17505: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (eval echo "$as_me:17508: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:17511: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 cf_cv_have___va_copy=yes
17515 echo "$as_me: failed program was:" >&5
17516 cat conftest.$ac_ext >&5
17517 cf_cv_have___va_copy=no
17519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17521 echo "$as_me:17521: result: $cf_cv_have___va_copy" >&5
17522 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
17524 test "$cf_cv_have___va_copy" = yes &&
17525 cat >>confdefs.h <<\EOF
17526 #define HAVE___VA_COPY 1
17529 echo "$as_me:17529: checking for pid_t" >&5
17530 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17531 if test "${ac_cv_type_pid_t+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 cat >conftest.$ac_ext <<_ACEOF
17535 #line 17535 "configure"
17536 #include "confdefs.h"
17537 $ac_includes_default
17543 if (sizeof (pid_t))
17549 rm -f conftest.$ac_objext
17550 if { (eval echo "$as_me:17550: \"$ac_compile\"") >&5
17551 (eval $ac_compile) 2>&5
17553 echo "$as_me:17553: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -s conftest.$ac_objext'
17556 { (eval echo "$as_me:17556: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17559 echo "$as_me:17559: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 ac_cv_type_pid_t=yes
17563 echo "$as_me: failed program was:" >&5
17564 cat conftest.$ac_ext >&5
17565 ac_cv_type_pid_t=no
17567 rm -f conftest.$ac_objext conftest.$ac_ext
17569 echo "$as_me:17569: result: $ac_cv_type_pid_t" >&5
17570 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17571 if test $ac_cv_type_pid_t = yes; then
17575 cat >>confdefs.h <<EOF
17581 for ac_header in unistd.h vfork.h
17583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17584 echo "$as_me:17584: checking for $ac_header" >&5
17585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 cat >conftest.$ac_ext <<_ACEOF
17590 #line 17590 "configure"
17591 #include "confdefs.h"
17592 #include <$ac_header>
17594 if { (eval echo "$as_me:17594: \"$ac_cpp conftest.$ac_ext\"") >&5
17595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17597 egrep -v '^ *\+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:17600: \$? = $ac_status" >&5
17601 (exit $ac_status); } >/dev/null; then
17602 if test -s conftest.err; then
17603 ac_cpp_err=$ac_c_preproc_warn_flag
17610 if test -z "$ac_cpp_err"; then
17611 eval "$as_ac_Header=yes"
17613 echo "$as_me: failed program was:" >&5
17614 cat conftest.$ac_ext >&5
17615 eval "$as_ac_Header=no"
17617 rm -f conftest.err conftest.$ac_ext
17619 echo "$as_me:17619: result: `eval echo '${'$as_ac_Header'}'`" >&5
17620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17622 cat >>confdefs.h <<EOF
17623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17629 for ac_func in fork vfork
17631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17632 echo "$as_me:17632: checking for $ac_func" >&5
17633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17634 if eval "test \"\${$as_ac_var+set}\" = set"; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 cat >conftest.$ac_ext <<_ACEOF
17638 #line 17638 "configure"
17639 #include "confdefs.h"
17640 /* System header to define __stub macros and hopefully few prototypes,
17641 which can conflict with char $ac_func (); below. */
17642 #include <assert.h>
17643 /* Override any gcc2 internal prototype to avoid an error. */
17647 /* We use char because int might match the return type of a gcc2
17648 builtin and then its argument prototype would still apply. */
17655 /* The GNU C library defines this for functions which it implements
17656 to always fail with ENOSYS. Some functions are actually named
17657 something starting with __ and the normal name is an alias. */
17658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17661 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:17669: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>&5
17672 echo "$as_me:17672: \$? = $ac_status" >&5
17673 (exit $ac_status); } &&
17674 { ac_try='test -s conftest$ac_exeext'
17675 { (eval echo "$as_me:17675: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17678 echo "$as_me:17678: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
17680 eval "$as_ac_var=yes"
17682 echo "$as_me: failed program was:" >&5
17683 cat conftest.$ac_ext >&5
17684 eval "$as_ac_var=no"
17686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17688 echo "$as_me:17688: result: `eval echo '${'$as_ac_var'}'`" >&5
17689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17690 if test `eval echo '${'$as_ac_var'}'` = yes; then
17691 cat >>confdefs.h <<EOF
17692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17698 ac_cv_func_fork_works=$ac_cv_func_fork
17699 if test "x$ac_cv_func_fork" = xyes; then
17700 echo "$as_me:17700: checking for working fork" >&5
17701 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17702 if test "${ac_cv_func_fork_works+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 if test "$cross_compiling" = yes; then
17706 ac_cv_func_fork_works=cross
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* By Rüdiger Kuhlmann. */
17710 #include <sys/types.h>
17712 # include <unistd.h>
17714 /* Some systems only have a dummy stub for fork() */
17718 $ac_main_return (1);
17719 $ac_main_return (0);
17722 rm -f conftest$ac_exeext
17723 if { (eval echo "$as_me:17723: \"$ac_link\"") >&5
17724 (eval $ac_link) 2>&5
17726 echo "$as_me:17726: \$? = $ac_status" >&5
17727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17728 { (eval echo "$as_me:17728: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:17731: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 ac_cv_func_fork_works=yes
17735 echo "$as_me: program exited with status $ac_status" >&5
17736 echo "$as_me: failed program was:" >&5
17737 cat conftest.$ac_ext >&5
17738 ac_cv_func_fork_works=no
17740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17743 echo "$as_me:17743: result: $ac_cv_func_fork_works" >&5
17744 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17747 if test "x$ac_cv_func_fork_works" = xcross; then
17749 *-*-amigaos* | *-*-msdosdjgpp*)
17750 # Override, as these systems have only a dummy fork() stub
17751 ac_cv_func_fork_works=no
17754 ac_cv_func_fork_works=yes
17757 { echo "$as_me:17757: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17758 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17760 ac_cv_func_vfork_works=$ac_cv_func_vfork
17761 if test "x$ac_cv_func_vfork" = xyes; then
17762 echo "$as_me:17762: checking for working vfork" >&5
17763 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17764 if test "${ac_cv_func_vfork_works+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 if test "$cross_compiling" = yes; then
17768 ac_cv_func_vfork_works=cross
17770 cat >conftest.$ac_ext <<_ACEOF
17771 #line 17771 "configure"
17772 #include "confdefs.h"
17773 /* Thanks to Paul Eggert for this test. */
17775 #include <sys/types.h>
17776 #include <sys/stat.h>
17778 # include <unistd.h>
17781 # include <vfork.h>
17783 /* On some sparc systems, changes by the child to local and incoming
17784 argument registers are propagated back to the parent. The compiler
17785 is told about this with #include <vfork.h>, but some compilers
17786 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17787 static variable whose address is put into a register that is
17788 clobbered by the vfork. */
17791 sparc_address_test (int arg)
17793 sparc_address_test (arg) int arg;
17796 static pid_t child;
17814 pid_t parent = getpid ();
17817 sparc_address_test ();
17822 /* Here is another test for sparc vfork register problems. This
17823 test uses lots of local variables, at least as many local
17824 variables as main has allocated so far including compiler
17825 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17826 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17827 reuse the register of parent for one of the local variables,
17828 since it will think that parent can't possibly be used any more
17829 in this routine. Assigning to the local variable will thus
17830 munge parent in the parent process. */
17832 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17833 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17834 /* Convince the compiler that p..p7 are live; otherwise, it might
17835 use the same hardware register for all 8 local variables. */
17836 if (p != p1 || p != p2 || p != p3 || p != p4
17837 || p != p5 || p != p6 || p != p7)
17840 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17841 from child file descriptors. If the child closes a descriptor
17842 before it execs or exits, this munges the parent's descriptor
17843 as well. Test for this by closing stdout in the child. */
17844 _exit(close(fileno(stdout)) != 0);
17849 while (wait(&status) != child)
17852 /* Was there some problem with vforking? */
17855 /* Did the child fail? (This shouldn't happen.) */
17858 /* Did the vfork/compiler bug occur? */
17859 || parent != getpid()
17861 /* Did the file descriptor bug occur? */
17862 || fstat(fileno(stdout), &st) != 0
17867 rm -f conftest$ac_exeext
17868 if { (eval echo "$as_me:17868: \"$ac_link\"") >&5
17869 (eval $ac_link) 2>&5
17871 echo "$as_me:17871: \$? = $ac_status" >&5
17872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17873 { (eval echo "$as_me:17873: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17876 echo "$as_me:17876: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_func_vfork_works=yes
17880 echo "$as_me: program exited with status $ac_status" >&5
17881 echo "$as_me: failed program was:" >&5
17882 cat conftest.$ac_ext >&5
17883 ac_cv_func_vfork_works=no
17885 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17888 echo "$as_me:17888: result: $ac_cv_func_vfork_works" >&5
17889 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17892 if test "x$ac_cv_func_fork_works" = xcross; then
17893 ac_cv_func_vfork_works=ac_cv_func_vfork
17894 { echo "$as_me:17894: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17895 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17898 if test "x$ac_cv_func_vfork_works" = xyes; then
17900 cat >>confdefs.h <<\EOF
17901 #define HAVE_WORKING_VFORK 1
17906 cat >>confdefs.h <<\EOF
17911 if test "x$ac_cv_func_fork_works" = xyes; then
17913 cat >>confdefs.h <<\EOF
17914 #define HAVE_WORKING_FORK 1
17919 # special check for test/ditto.c
17921 echo "$as_me:17921: checking for openpty in -lutil" >&5
17922 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17923 if test "${ac_cv_lib_util_openpty+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 ac_check_lib_save_LIBS=$LIBS
17927 LIBS="-lutil $LIBS"
17928 cat >conftest.$ac_ext <<_ACEOF
17929 #line 17929 "configure"
17930 #include "confdefs.h"
17932 /* Override any gcc2 internal prototype to avoid an error. */
17936 /* We use char because int might match the return type of a gcc2
17937 builtin and then its argument prototype would still apply. */
17947 rm -f conftest.$ac_objext conftest$ac_exeext
17948 if { (eval echo "$as_me:17948: \"$ac_link\"") >&5
17949 (eval $ac_link) 2>&5
17951 echo "$as_me:17951: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -s conftest$ac_exeext'
17954 { (eval echo "$as_me:17954: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:17957: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_cv_lib_util_openpty=yes
17961 echo "$as_me: failed program was:" >&5
17962 cat conftest.$ac_ext >&5
17963 ac_cv_lib_util_openpty=no
17965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17968 echo "$as_me:17968: result: $ac_cv_lib_util_openpty" >&5
17969 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17970 if test $ac_cv_lib_util_openpty = yes; then
17976 echo "$as_me:17976: checking for openpty header" >&5
17977 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17978 if test "${cf_cv_func_openpty+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 cf_save_LIBS="$LIBS"
17983 test $cf_cv_lib_util = yes &&
17984 cf_add_libs="-lutil"
17985 # Filter out duplicates - this happens with badly-designed ".pc" files...
17986 for cf_add_1lib in $LIBS
17988 for cf_add_2lib in $cf_add_libs
17990 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17996 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17998 LIBS="$cf_add_libs"
18000 for cf_header in pty.h libutil.h util.h
18002 cat >conftest.$ac_ext <<_ACEOF
18003 #line 18003 "configure"
18004 #include "confdefs.h"
18006 #include <$cf_header>
18012 int x = openpty((int *)0, (int *)0, (char *)0,
18013 (struct termios *)0, (struct winsize *)0);
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:18020: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>&5
18023 echo "$as_me:18023: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (eval echo "$as_me:18026: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18029 echo "$as_me:18029: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18032 cf_cv_func_openpty=$cf_header
18036 echo "$as_me: failed program was:" >&5
18037 cat conftest.$ac_ext >&5
18039 cf_cv_func_openpty=no
18042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18044 LIBS="$cf_save_LIBS"
18047 echo "$as_me:18047: result: $cf_cv_func_openpty" >&5
18048 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18050 if test "$cf_cv_func_openpty" != no ; then
18052 cat >>confdefs.h <<EOF
18053 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18056 cat >>confdefs.h <<\EOF
18057 #define USE_XTERM_PTY 1
18060 if test "x$cf_cv_lib_util" = xyes ; then
18062 cf_add_libs="-lutil"
18063 # Filter out duplicates - this happens with badly-designed ".pc" files...
18064 for cf_add_1lib in $TEST_LIBS
18066 for cf_add_2lib in $cf_add_libs
18068 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18074 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18076 TEST_LIBS="$cf_add_libs"
18081 if test "$with_hashed_db" != no ; then
18083 cat >>confdefs.h <<\EOF
18084 #define USE_HASHED_DB 1
18087 case $with_hashed_db in #(vi
18091 if test -d "$with_hashed_db" ; then
18093 if test -n "$with_hashed_db/include" ; then
18094 for cf_add_incdir in $with_hashed_db/include
18096 while test $cf_add_incdir != /usr/include
18098 if test -d $cf_add_incdir
18101 if test -n "$CFLAGS$CPPFLAGS" ; then
18102 # a loop is needed to ensure we can add subdirs of existing dirs
18103 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18104 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18105 cf_have_incdir=yes; break
18110 if test "$cf_have_incdir" = no ; then
18111 if test "$cf_add_incdir" = /usr/local/include ; then
18112 if test "$GCC" = yes
18114 cf_save_CPPFLAGS=$CPPFLAGS
18115 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18116 cat >conftest.$ac_ext <<_ACEOF
18117 #line 18117 "configure"
18118 #include "confdefs.h"
18128 rm -f conftest.$ac_objext
18129 if { (eval echo "$as_me:18129: \"$ac_compile\"") >&5
18130 (eval $ac_compile) 2>&5
18132 echo "$as_me:18132: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -s conftest.$ac_objext'
18135 { (eval echo "$as_me:18135: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18138 echo "$as_me:18138: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18142 echo "$as_me: failed program was:" >&5
18143 cat conftest.$ac_ext >&5
18146 rm -f conftest.$ac_objext conftest.$ac_ext
18147 CPPFLAGS=$cf_save_CPPFLAGS
18152 if test "$cf_have_incdir" = no ; then
18153 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18155 echo "${as_me:-configure}:18155: testing adding $cf_add_incdir to include-path ..." 1>&5
18157 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18159 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18160 test "$cf_top_incdir" = "$cf_add_incdir" && break
18161 cf_add_incdir="$cf_top_incdir"
18170 if test -n "$with_hashed_db/lib" ; then
18171 for cf_add_libdir in $with_hashed_db/lib
18173 if test $cf_add_libdir = /usr/lib ; then
18175 elif test -d $cf_add_libdir
18178 if test -n "$LDFLAGS$LIBS" ; then
18179 # a loop is needed to ensure we can add subdirs of existing dirs
18180 for cf_test_libdir in $LDFLAGS $LIBS ; do
18181 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18182 cf_have_libdir=yes; break
18186 if test "$cf_have_libdir" = no ; then
18187 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18189 echo "${as_me:-configure}:18189: testing adding $cf_add_libdir to library-path ..." 1>&5
18191 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18198 case "$with_hashed_db" in #(vi
18200 { echo "$as_me:18200: WARNING: no such directory $with_hashed_db" >&5
18201 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
18207 test "x/usr" != "x$prefix" && \
18208 test -d "/usr" && \
18209 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
18210 test -n "$verbose" && echo " ... testing for include-directories under /usr"
18211 test -d /usr/include && cf_search="$cf_search /usr/include"
18212 test -d /usr/include/$with_hashed_db && cf_search="$cf_search /usr/include/$with_hashed_db"
18213 test -d /usr/include/$with_hashed_db/include && cf_search="$cf_search /usr/include/$with_hashed_db/include"
18214 test -d /usr/$with_hashed_db/include && cf_search="$cf_search /usr/$with_hashed_db/include"
18215 test -d /usr/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search /usr/$with_hashed_db/include/$with_hashed_db"
18218 test "x$prefix" != "xNONE" && \
18219 test -d "$prefix" && \
18221 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
18222 test -d $prefix/include && cf_search="$cf_search $prefix/include"
18223 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
18224 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
18225 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
18226 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
18229 test "x/usr/local" != "x$prefix" && \
18230 test -d "/usr/local" && \
18231 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
18232 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
18233 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
18234 test -d /usr/local/include/$with_hashed_db && cf_search="$cf_search /usr/local/include/$with_hashed_db"
18235 test -d /usr/local/include/$with_hashed_db/include && cf_search="$cf_search /usr/local/include/$with_hashed_db/include"
18236 test -d /usr/local/$with_hashed_db/include && cf_search="$cf_search /usr/local/$with_hashed_db/include"
18237 test -d /usr/local/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search /usr/local/$with_hashed_db/include/$with_hashed_db"
18240 test "x/opt" != "x$prefix" && \
18241 test -d "/opt" && \
18242 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
18243 test -n "$verbose" && echo " ... testing for include-directories under /opt"
18244 test -d /opt/include && cf_search="$cf_search /opt/include"
18245 test -d /opt/include/$with_hashed_db && cf_search="$cf_search /opt/include/$with_hashed_db"
18246 test -d /opt/include/$with_hashed_db/include && cf_search="$cf_search /opt/include/$with_hashed_db/include"
18247 test -d /opt/$with_hashed_db/include && cf_search="$cf_search /opt/$with_hashed_db/include"
18248 test -d /opt/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search /opt/$with_hashed_db/include/$with_hashed_db"
18251 test "x$HOME" != "x$prefix" && \
18252 test -d "$HOME" && \
18253 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
18254 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
18255 test -d $HOME/include && cf_search="$cf_search $HOME/include"
18256 test -d $HOME/include/$with_hashed_db && cf_search="$cf_search $HOME/include/$with_hashed_db"
18257 test -d $HOME/include/$with_hashed_db/include && cf_search="$cf_search $HOME/include/$with_hashed_db/include"
18258 test -d $HOME/$with_hashed_db/include && cf_search="$cf_search $HOME/$with_hashed_db/include"
18259 test -d $HOME/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $HOME/$with_hashed_db/include/$with_hashed_db"
18262 for cf_item in $cf_search
18264 case $cf_item in #(vi
18267 if test -n "$cf_item" ; then
18268 for cf_add_incdir in $cf_item
18270 while test $cf_add_incdir != /usr/include
18272 if test -d $cf_add_incdir
18275 if test -n "$CFLAGS$CPPFLAGS" ; then
18276 # a loop is needed to ensure we can add subdirs of existing dirs
18277 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18278 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18279 cf_have_incdir=yes; break
18284 if test "$cf_have_incdir" = no ; then
18285 if test "$cf_add_incdir" = /usr/local/include ; then
18286 if test "$GCC" = yes
18288 cf_save_CPPFLAGS=$CPPFLAGS
18289 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18290 cat >conftest.$ac_ext <<_ACEOF
18291 #line 18291 "configure"
18292 #include "confdefs.h"
18302 rm -f conftest.$ac_objext
18303 if { (eval echo "$as_me:18303: \"$ac_compile\"") >&5
18304 (eval $ac_compile) 2>&5
18306 echo "$as_me:18306: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
18308 { ac_try='test -s conftest.$ac_objext'
18309 { (eval echo "$as_me:18309: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 echo "$as_me:18312: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18316 echo "$as_me: failed program was:" >&5
18317 cat conftest.$ac_ext >&5
18320 rm -f conftest.$ac_objext conftest.$ac_ext
18321 CPPFLAGS=$cf_save_CPPFLAGS
18326 if test "$cf_have_incdir" = no ; then
18327 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18329 echo "${as_me:-configure}:18329: testing adding $cf_add_incdir to include-path ..." 1>&5
18331 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18333 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18334 test "$cf_top_incdir" = "$cf_add_incdir" && break
18335 cf_add_incdir="$cf_top_incdir"
18350 test "x/usr" != "x$prefix" && \
18351 test -d "/usr" && \
18352 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
18353 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
18354 test -d /usr/lib && cf_search="$cf_search /usr/lib"
18355 test -d /usr/lib/$with_hashed_db && cf_search="$cf_search /usr/lib/$with_hashed_db"
18356 test -d /usr/lib/$with_hashed_db/lib && cf_search="$cf_search /usr/lib/$with_hashed_db/lib"
18357 test -d /usr/$with_hashed_db/lib && cf_search="$cf_search /usr/$with_hashed_db/lib"
18358 test -d /usr/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search /usr/$with_hashed_db/lib/$with_hashed_db"
18361 test "x$prefix" != "xNONE" && \
18362 test -d "$prefix" && \
18364 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
18365 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
18366 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
18367 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
18368 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
18369 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
18372 test "x/usr/local" != "x$prefix" && \
18373 test -d "/usr/local" && \
18374 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
18375 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
18376 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
18377 test -d /usr/local/lib/$with_hashed_db && cf_search="$cf_search /usr/local/lib/$with_hashed_db"
18378 test -d /usr/local/lib/$with_hashed_db/lib && cf_search="$cf_search /usr/local/lib/$with_hashed_db/lib"
18379 test -d /usr/local/$with_hashed_db/lib && cf_search="$cf_search /usr/local/$with_hashed_db/lib"
18380 test -d /usr/local/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search /usr/local/$with_hashed_db/lib/$with_hashed_db"
18383 test "x/opt" != "x$prefix" && \
18384 test -d "/opt" && \
18385 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
18386 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
18387 test -d /opt/lib && cf_search="$cf_search /opt/lib"
18388 test -d /opt/lib/$with_hashed_db && cf_search="$cf_search /opt/lib/$with_hashed_db"
18389 test -d /opt/lib/$with_hashed_db/lib && cf_search="$cf_search /opt/lib/$with_hashed_db/lib"
18390 test -d /opt/$with_hashed_db/lib && cf_search="$cf_search /opt/$with_hashed_db/lib"
18391 test -d /opt/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search /opt/$with_hashed_db/lib/$with_hashed_db"
18394 test "x$HOME" != "x$prefix" && \
18395 test -d "$HOME" && \
18396 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
18397 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
18398 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
18399 test -d $HOME/lib/$with_hashed_db && cf_search="$cf_search $HOME/lib/$with_hashed_db"
18400 test -d $HOME/lib/$with_hashed_db/lib && cf_search="$cf_search $HOME/lib/$with_hashed_db/lib"
18401 test -d $HOME/$with_hashed_db/lib && cf_search="$cf_search $HOME/$with_hashed_db/lib"
18402 test -d $HOME/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $HOME/$with_hashed_db/lib/$with_hashed_db"
18405 for cf_item in $cf_search
18407 case $cf_item in #(vi
18410 if test -n "$cf_item" ; then
18411 for cf_add_libdir in $cf_item
18413 if test $cf_add_libdir = /usr/lib ; then
18415 elif test -d $cf_add_libdir
18418 if test -n "$LDFLAGS$LIBS" ; then
18419 # a loop is needed to ensure we can add subdirs of existing dirs
18420 for cf_test_libdir in $LDFLAGS $LIBS ; do
18421 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18422 cf_have_libdir=yes; break
18426 if test "$cf_have_libdir" = no ; then
18427 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18429 echo "${as_me:-configure}:18429: testing adding $cf_add_libdir to library-path ..." 1>&5
18431 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18446 echo "$as_me:18446: checking for db.h" >&5
18447 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
18448 if test "${ac_cv_header_db_h+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 cat >conftest.$ac_ext <<_ACEOF
18452 #line 18452 "configure"
18453 #include "confdefs.h"
18456 if { (eval echo "$as_me:18456: \"$ac_cpp conftest.$ac_ext\"") >&5
18457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18459 egrep -v '^ *\+' conftest.er1 >conftest.err
18461 cat conftest.err >&5
18462 echo "$as_me:18462: \$? = $ac_status" >&5
18463 (exit $ac_status); } >/dev/null; then
18464 if test -s conftest.err; then
18465 ac_cpp_err=$ac_c_preproc_warn_flag
18472 if test -z "$ac_cpp_err"; then
18473 ac_cv_header_db_h=yes
18475 echo "$as_me: failed program was:" >&5
18476 cat conftest.$ac_ext >&5
18477 ac_cv_header_db_h=no
18479 rm -f conftest.err conftest.$ac_ext
18481 echo "$as_me:18481: result: $ac_cv_header_db_h" >&5
18482 echo "${ECHO_T}$ac_cv_header_db_h" >&6
18483 if test $ac_cv_header_db_h = yes; then
18485 echo "$as_me:18485: checking for version of db" >&5
18486 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
18487 if test "${cf_cv_hashed_db_version+set}" = set; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 cf_cv_hashed_db_version=unknown
18493 for cf_db_version in 1 2 3 4 5 6
18496 echo "${as_me:-configure}:18496: testing checking for db version $cf_db_version ..." 1>&5
18498 cat >conftest.$ac_ext <<_ACEOF
18499 #line 18499 "configure"
18500 #include "confdefs.h"
18502 $ac_includes_default
18505 #ifdef DB_VERSION_MAJOR
18506 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
18507 #if $cf_db_version == DB_VERSION_MAJOR
18513 #if $cf_db_version == 1
18514 /* ok: assuming this is DB 1.8.5 */
18528 rm -f conftest.$ac_objext
18529 if { (eval echo "$as_me:18529: \"$ac_compile\"") >&5
18530 (eval $ac_compile) 2>&5
18532 echo "$as_me:18532: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
18534 { ac_try='test -s conftest.$ac_objext'
18535 { (eval echo "$as_me:18535: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18538 echo "$as_me:18538: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18541 cf_cv_hashed_db_version=$cf_db_version
18545 echo "$as_me: failed program was:" >&5
18546 cat conftest.$ac_ext >&5
18548 rm -f conftest.$ac_objext conftest.$ac_ext
18552 echo "$as_me:18552: result: $cf_cv_hashed_db_version" >&5
18553 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
18555 if test "$cf_cv_hashed_db_version" = unknown ; then
18556 { { echo "$as_me:18556: error: Cannot determine version of db" >&5
18557 echo "$as_me: error: Cannot determine version of db" >&2;}
18558 { (exit 1); exit 1; }; }
18561 echo "$as_me:18561: checking for db libraries" >&5
18562 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
18563 if test "${cf_cv_hashed_db_libs+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 cf_cv_hashed_db_libs=unknown
18568 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
18570 cf_save_libs="$LIBS"
18571 if test -n "$cf_db_libs"; then
18573 cf_add_libs="-l$cf_db_libs"
18574 # Filter out duplicates - this happens with badly-designed ".pc" files...
18575 for cf_add_1lib in $LIBS
18577 for cf_add_2lib in $cf_add_libs
18579 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18585 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18587 LIBS="$cf_add_libs"
18591 echo "${as_me:-configure}:18591: testing checking for library "$cf_db_libs" ..." 1>&5
18593 cat >conftest.$ac_ext <<_ACEOF
18594 #line 18594 "configure"
18595 #include "confdefs.h"
18597 $ac_includes_default
18604 char *path = "/tmp/foo";
18605 #ifdef DB_VERSION_MAJOR
18606 #if DB_VERSION_MAJOR >= 4
18608 db_create(&result, NULL, 0);
18609 result->open(result,
18616 #elif DB_VERSION_MAJOR >= 3
18618 db_create(&result, NULL, 0);
18619 result->open(result,
18625 #elif DB_VERSION_MAJOR >= 2
18634 #endif /* DB_VERSION_MAJOR */
18636 DB *result = dbopen(path,
18642 ${cf_cv_main_return:-return}(result != 0)
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (eval echo "$as_me:18649: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>&5
18652 echo "$as_me:18652: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -s conftest$ac_exeext'
18655 { (eval echo "$as_me:18655: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18658 echo "$as_me:18658: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18661 if test -n "$cf_db_libs" ; then
18662 cf_cv_hashed_db_libs=$cf_db_libs
18664 cf_cv_hashed_db_libs=default
18666 LIBS="$cf_save_libs"
18670 echo "$as_me: failed program was:" >&5
18671 cat conftest.$ac_ext >&5
18673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18674 LIBS="$cf_save_libs"
18678 echo "$as_me:18678: result: $cf_cv_hashed_db_libs" >&5
18679 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
18681 if test "$cf_cv_hashed_db_libs" = unknown ; then
18682 { { echo "$as_me:18682: error: Cannot determine library for db" >&5
18683 echo "$as_me: error: Cannot determine library for db" >&2;}
18684 { (exit 1); exit 1; }; }
18685 elif test "$cf_cv_hashed_db_libs" != default ; then
18687 cf_add_libs="-l$cf_cv_hashed_db_libs"
18688 # Filter out duplicates - this happens with badly-designed ".pc" files...
18689 for cf_add_1lib in $LIBS
18691 for cf_add_2lib in $cf_add_libs
18693 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18699 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18701 LIBS="$cf_add_libs"
18708 { { echo "$as_me:18708: error: Cannot find db.h" >&5
18709 echo "$as_me: error: Cannot find db.h" >&2;}
18710 { (exit 1); exit 1; }; }
18716 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
18717 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
18718 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
18721 # Just in case, check if the C compiler has a bool type.
18723 echo "$as_me:18723: checking if we should include stdbool.h" >&5
18724 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18726 if test "${cf_cv_header_stdbool_h+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 cat >conftest.$ac_ext <<_ACEOF
18731 #line 18731 "configure"
18732 #include "confdefs.h"
18742 rm -f conftest.$ac_objext
18743 if { (eval echo "$as_me:18743: \"$ac_compile\"") >&5
18744 (eval $ac_compile) 2>&5
18746 echo "$as_me:18746: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
18748 { ac_try='test -s conftest.$ac_objext'
18749 { (eval echo "$as_me:18749: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18752 echo "$as_me:18752: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18754 cf_cv_header_stdbool_h=0
18756 echo "$as_me: failed program was:" >&5
18757 cat conftest.$ac_ext >&5
18758 cat >conftest.$ac_ext <<_ACEOF
18759 #line 18759 "configure"
18760 #include "confdefs.h"
18763 #include <stdbool.h>
18774 rm -f conftest.$ac_objext
18775 if { (eval echo "$as_me:18775: \"$ac_compile\"") >&5
18776 (eval $ac_compile) 2>&5
18778 echo "$as_me:18778: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -s conftest.$ac_objext'
18781 { (eval echo "$as_me:18781: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18784 echo "$as_me:18784: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18786 cf_cv_header_stdbool_h=1
18788 echo "$as_me: failed program was:" >&5
18789 cat conftest.$ac_ext >&5
18790 cf_cv_header_stdbool_h=0
18792 rm -f conftest.$ac_objext conftest.$ac_ext
18794 rm -f conftest.$ac_objext conftest.$ac_ext
18797 if test "$cf_cv_header_stdbool_h" = 1
18798 then echo "$as_me:18798: result: yes" >&5
18799 echo "${ECHO_T}yes" >&6
18800 else echo "$as_me:18800: result: no" >&5
18801 echo "${ECHO_T}no" >&6
18804 echo "$as_me:18804: checking for builtin bool type" >&5
18805 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18807 if test "${cf_cv_cc_bool_type+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 cat >conftest.$ac_ext <<_ACEOF
18812 #line 18812 "configure"
18813 #include "confdefs.h"
18816 #include <sys/types.h>
18826 rm -f conftest.$ac_objext
18827 if { (eval echo "$as_me:18827: \"$ac_compile\"") >&5
18828 (eval $ac_compile) 2>&5
18830 echo "$as_me:18830: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
18832 { ac_try='test -s conftest.$ac_objext'
18833 { (eval echo "$as_me:18833: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18836 echo "$as_me:18836: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 cf_cv_cc_bool_type=1
18840 echo "$as_me: failed program was:" >&5
18841 cat conftest.$ac_ext >&5
18842 cf_cv_cc_bool_type=0
18844 rm -f conftest.$ac_objext conftest.$ac_ext
18848 if test "$cf_cv_cc_bool_type" = 1
18849 then echo "$as_me:18849: result: yes" >&5
18850 echo "${ECHO_T}yes" >&6
18851 else echo "$as_me:18851: result: no" >&5
18852 echo "${ECHO_T}no" >&6
18855 # Check for C++ compiler characteristics (and ensure that it's there!)
18856 if test -n "$CXX" ; then
18858 ac_cpp='$CXXCPP $CPPFLAGS'
18859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18862 ac_main_return=return
18864 if test -n "$GXX" ; then
18865 case $cf_cv_system_name in #(vi
18867 cf_stdcpp_libname=stdcpp
18870 cf_stdcpp_libname=stdc++
18873 echo "$as_me:18873: checking for library $cf_stdcpp_libname" >&5
18874 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
18875 if test "${cf_cv_libstdcpp+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 cf_add_libs="-l$cf_stdcpp_libname"
18882 # Filter out duplicates - this happens with badly-designed ".pc" files...
18883 for cf_add_1lib in $LIBS
18885 for cf_add_2lib in $cf_add_libs
18887 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18893 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18895 LIBS="$cf_add_libs"
18897 cat >conftest.$ac_ext <<_ACEOF
18898 #line 18898 "configure"
18899 #include "confdefs.h"
18901 #include <strstream.h>
18907 strstreambuf foo(buf, sizeof(buf))
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (eval echo "$as_me:18914: \"$ac_link\"") >&5
18915 (eval $ac_link) 2>&5
18917 echo "$as_me:18917: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
18919 { ac_try='test -s conftest$ac_exeext'
18920 { (eval echo "$as_me:18920: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18923 echo "$as_me:18923: \$? = $ac_status" >&5
18924 (exit $ac_status); }; }; then
18925 cf_cv_libstdcpp=yes
18927 echo "$as_me: failed program was:" >&5
18928 cat conftest.$ac_ext >&5
18931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18935 echo "$as_me:18935: result: $cf_cv_libstdcpp" >&5
18936 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
18937 test "$cf_cv_libstdcpp" = yes &&
18938 cf_add_libs="-l$cf_stdcpp_libname"
18939 # Filter out duplicates - this happens with badly-designed ".pc" files...
18940 for cf_add_1lib in $CXXLIBS
18942 for cf_add_2lib in $cf_add_libs
18944 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18950 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18952 CXXLIBS="$cf_add_libs"
18956 echo "$as_me:18956: checking whether $CXX understands -c and -o together" >&5
18957 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
18958 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 cat > conftest.$ac_ext <<CF_EOF
18966 ${cf_cv_main_return:-return}(0);
18969 # We do the test twice because some compilers refuse to overwrite an
18970 # existing .o file with -o, though they will create one.
18971 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18972 if { (eval echo "$as_me:18972: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18975 echo "$as_me:18975: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 test -f conftest2.$ac_objext && { (eval echo "$as_me:18977: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18980 echo "$as_me:18980: \$? = $ac_status" >&5
18981 (exit $ac_status); };
18983 eval cf_cv_prog_CXX_c_o=yes
18985 eval cf_cv_prog_CXX_c_o=no
18990 if test $cf_cv_prog_CXX_c_o = yes; then
18991 echo "$as_me:18991: result: yes" >&5
18992 echo "${ECHO_T}yes" >&6
18994 echo "$as_me:18994: result: no" >&5
18995 echo "${ECHO_T}no" >&6
18998 case $GXX_VERSION in
19004 cf_cxx_library=unknown
19005 case $cf_cv_system_name in #(vi
19013 if test "$GXX" = yes; then
19014 echo "$as_me:19014: checking for lib$cf_gpp_libname" >&5
19015 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
19018 cf_add_libs="-l$cf_gpp_libname"
19019 # Filter out duplicates - this happens with badly-designed ".pc" files...
19020 for cf_add_1lib in $LIBS
19022 for cf_add_2lib in $cf_add_libs
19024 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19030 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19032 LIBS="$cf_add_libs"
19034 cat >conftest.$ac_ext <<_ACEOF
19035 #line 19035 "configure"
19036 #include "confdefs.h"
19038 #include <$cf_gpp_libname/builtin.h>
19043 two_arg_error_handler_t foo2 = lib_error_handler
19048 rm -f conftest.$ac_objext conftest$ac_exeext
19049 if { (eval echo "$as_me:19049: \"$ac_link\"") >&5
19050 (eval $ac_link) 2>&5
19052 echo "$as_me:19052: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -s conftest$ac_exeext'
19055 { (eval echo "$as_me:19055: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19058 echo "$as_me:19058: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19062 cf_add_libs="-l$cf_gpp_libname"
19063 # Filter out duplicates - this happens with badly-designed ".pc" files...
19064 for cf_add_1lib in $CXXLIBS
19066 for cf_add_2lib in $cf_add_libs
19068 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19074 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19076 CXXLIBS="$cf_add_libs"
19078 if test "$cf_gpp_libname" = cpp ; then
19080 cat >>confdefs.h <<\EOF
19081 #define HAVE_GPP_BUILTIN_H 1
19086 cat >>confdefs.h <<\EOF
19087 #define HAVE_GXX_BUILTIN_H 1
19092 echo "$as_me: failed program was:" >&5
19093 cat conftest.$ac_ext >&5
19094 cat >conftest.$ac_ext <<_ACEOF
19095 #line 19095 "configure"
19096 #include "confdefs.h"
19098 #include <builtin.h>
19103 two_arg_error_handler_t foo2 = lib_error_handler
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (eval echo "$as_me:19109: \"$ac_link\"") >&5
19110 (eval $ac_link) 2>&5
19112 echo "$as_me:19112: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try='test -s conftest$ac_exeext'
19115 { (eval echo "$as_me:19115: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19118 echo "$as_me:19118: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19122 cf_add_libs="-l$cf_gpp_libname"
19123 # Filter out duplicates - this happens with badly-designed ".pc" files...
19124 for cf_add_1lib in $CXXLIBS
19126 for cf_add_2lib in $cf_add_libs
19128 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19134 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19136 CXXLIBS="$cf_add_libs"
19138 cat >>confdefs.h <<\EOF
19139 #define HAVE_BUILTIN_H 1
19143 echo "$as_me: failed program was:" >&5
19144 cat conftest.$ac_ext >&5
19147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19151 echo "$as_me:19151: result: $cf_cxx_library" >&5
19152 echo "${ECHO_T}$cf_cxx_library" >&6
19162 ac_cpp='$CXXCPP $CPPFLAGS'
19163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19166 ac_main_return=return
19167 echo "$as_me:19167: checking how to run the C++ preprocessor" >&5
19168 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19169 if test -z "$CXXCPP"; then
19170 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 # Double quotes because CXXCPP needs to be expanded
19174 for CXXCPP in "$CXX -E" "/lib/cpp"
19176 ac_preproc_ok=false
19177 for ac_cxx_preproc_warn_flag in '' yes
19179 # Use a header file that comes with gcc, so configuring glibc
19180 # with a fresh cross-compiler works.
19181 # On the NeXT, cc -E runs the code through the compiler's parser,
19182 # not just through cpp. "Syntax error" is here to catch this case.
19183 cat >conftest.$ac_ext <<_ACEOF
19184 #line 19184 "configure"
19185 #include "confdefs.h"
19186 #include <assert.h>
19189 if { (eval echo "$as_me:19189: \"$ac_cpp conftest.$ac_ext\"") >&5
19190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19192 egrep -v '^ *\+' conftest.er1 >conftest.err
19194 cat conftest.err >&5
19195 echo "$as_me:19195: \$? = $ac_status" >&5
19196 (exit $ac_status); } >/dev/null; then
19197 if test -s conftest.err; then
19198 ac_cpp_err=$ac_cxx_preproc_warn_flag
19205 if test -z "$ac_cpp_err"; then
19208 echo "$as_me: failed program was:" >&5
19209 cat conftest.$ac_ext >&5
19210 # Broken: fails on valid input.
19213 rm -f conftest.err conftest.$ac_ext
19215 # OK, works on sane cases. Now check whether non-existent headers
19216 # can be detected and how.
19217 cat >conftest.$ac_ext <<_ACEOF
19218 #line 19218 "configure"
19219 #include "confdefs.h"
19220 #include <ac_nonexistent.h>
19222 if { (eval echo "$as_me:19222: \"$ac_cpp conftest.$ac_ext\"") >&5
19223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19225 egrep -v '^ *\+' conftest.er1 >conftest.err
19227 cat conftest.err >&5
19228 echo "$as_me:19228: \$? = $ac_status" >&5
19229 (exit $ac_status); } >/dev/null; then
19230 if test -s conftest.err; then
19231 ac_cpp_err=$ac_cxx_preproc_warn_flag
19238 if test -z "$ac_cpp_err"; then
19239 # Broken: success on invalid input.
19242 echo "$as_me: failed program was:" >&5
19243 cat conftest.$ac_ext >&5
19244 # Passes both tests.
19248 rm -f conftest.err conftest.$ac_ext
19251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19252 rm -f conftest.err conftest.$ac_ext
19253 if $ac_preproc_ok; then
19258 ac_cv_prog_CXXCPP=$CXXCPP
19261 CXXCPP=$ac_cv_prog_CXXCPP
19263 ac_cv_prog_CXXCPP=$CXXCPP
19265 echo "$as_me:19265: result: $CXXCPP" >&5
19266 echo "${ECHO_T}$CXXCPP" >&6
19267 ac_preproc_ok=false
19268 for ac_cxx_preproc_warn_flag in '' yes
19270 # Use a header file that comes with gcc, so configuring glibc
19271 # with a fresh cross-compiler works.
19272 # On the NeXT, cc -E runs the code through the compiler's parser,
19273 # not just through cpp. "Syntax error" is here to catch this case.
19274 cat >conftest.$ac_ext <<_ACEOF
19275 #line 19275 "configure"
19276 #include "confdefs.h"
19277 #include <assert.h>
19280 if { (eval echo "$as_me:19280: \"$ac_cpp conftest.$ac_ext\"") >&5
19281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19283 egrep -v '^ *\+' conftest.er1 >conftest.err
19285 cat conftest.err >&5
19286 echo "$as_me:19286: \$? = $ac_status" >&5
19287 (exit $ac_status); } >/dev/null; then
19288 if test -s conftest.err; then
19289 ac_cpp_err=$ac_cxx_preproc_warn_flag
19296 if test -z "$ac_cpp_err"; then
19299 echo "$as_me: failed program was:" >&5
19300 cat conftest.$ac_ext >&5
19301 # Broken: fails on valid input.
19304 rm -f conftest.err conftest.$ac_ext
19306 # OK, works on sane cases. Now check whether non-existent headers
19307 # can be detected and how.
19308 cat >conftest.$ac_ext <<_ACEOF
19309 #line 19309 "configure"
19310 #include "confdefs.h"
19311 #include <ac_nonexistent.h>
19313 if { (eval echo "$as_me:19313: \"$ac_cpp conftest.$ac_ext\"") >&5
19314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19316 egrep -v '^ *\+' conftest.er1 >conftest.err
19318 cat conftest.err >&5
19319 echo "$as_me:19319: \$? = $ac_status" >&5
19320 (exit $ac_status); } >/dev/null; then
19321 if test -s conftest.err; then
19322 ac_cpp_err=$ac_cxx_preproc_warn_flag
19329 if test -z "$ac_cpp_err"; then
19330 # Broken: success on invalid input.
19333 echo "$as_me: failed program was:" >&5
19334 cat conftest.$ac_ext >&5
19335 # Passes both tests.
19339 rm -f conftest.err conftest.$ac_ext
19342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19343 rm -f conftest.err conftest.$ac_ext
19344 if $ac_preproc_ok; then
19347 { { echo "$as_me:19347: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
19348 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
19349 { (exit 1); exit 1; }; }
19353 ac_cpp='$CXXCPP $CPPFLAGS'
19354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19357 ac_main_return=return
19359 for ac_header in typeinfo
19361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19362 echo "$as_me:19362: checking for $ac_header" >&5
19363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19368 #line 19368 "configure"
19369 #include "confdefs.h"
19370 #include <$ac_header>
19372 if { (eval echo "$as_me:19372: \"$ac_cpp conftest.$ac_ext\"") >&5
19373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19375 egrep -v '^ *\+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:19378: \$? = $ac_status" >&5
19379 (exit $ac_status); } >/dev/null; then
19380 if test -s conftest.err; then
19381 ac_cpp_err=$ac_cxx_preproc_warn_flag
19388 if test -z "$ac_cpp_err"; then
19389 eval "$as_ac_Header=yes"
19391 echo "$as_me: failed program was:" >&5
19392 cat conftest.$ac_ext >&5
19393 eval "$as_ac_Header=no"
19395 rm -f conftest.err conftest.$ac_ext
19397 echo "$as_me:19397: result: `eval echo '${'$as_ac_Header'}'`" >&5
19398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19400 cat >>confdefs.h <<EOF
19401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19407 for ac_header in iostream
19409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19410 echo "$as_me:19410: checking for $ac_header" >&5
19411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 cat >conftest.$ac_ext <<_ACEOF
19416 #line 19416 "configure"
19417 #include "confdefs.h"
19418 #include <$ac_header>
19420 if { (eval echo "$as_me:19420: \"$ac_cpp conftest.$ac_ext\"") >&5
19421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19423 egrep -v '^ *\+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:19426: \$? = $ac_status" >&5
19427 (exit $ac_status); } >/dev/null; then
19428 if test -s conftest.err; then
19429 ac_cpp_err=$ac_cxx_preproc_warn_flag
19436 if test -z "$ac_cpp_err"; then
19437 eval "$as_ac_Header=yes"
19439 echo "$as_me: failed program was:" >&5
19440 cat conftest.$ac_ext >&5
19441 eval "$as_ac_Header=no"
19443 rm -f conftest.err conftest.$ac_ext
19445 echo "$as_me:19445: result: `eval echo '${'$as_ac_Header'}'`" >&5
19446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19448 cat >>confdefs.h <<EOF
19449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19455 if test x"$ac_cv_header_iostream" = xyes ; then
19456 echo "$as_me:19456: checking if iostream uses std-namespace" >&5
19457 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
19458 cat >conftest.$ac_ext <<_ACEOF
19459 #line 19459 "configure"
19460 #include "confdefs.h"
19462 #include <iostream>
19469 cerr << "testing" << endl;
19475 rm -f conftest.$ac_objext
19476 if { (eval echo "$as_me:19476: \"$ac_compile\"") >&5
19477 (eval $ac_compile) 2>&5
19479 echo "$as_me:19479: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -s conftest.$ac_objext'
19482 { (eval echo "$as_me:19482: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19485 echo "$as_me:19485: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19487 cf_iostream_namespace=yes
19489 echo "$as_me: failed program was:" >&5
19490 cat conftest.$ac_ext >&5
19491 cf_iostream_namespace=no
19493 rm -f conftest.$ac_objext conftest.$ac_ext
19494 echo "$as_me:19494: result: $cf_iostream_namespace" >&5
19495 echo "${ECHO_T}$cf_iostream_namespace" >&6
19496 if test "$cf_iostream_namespace" = yes ; then
19498 cat >>confdefs.h <<\EOF
19499 #define IOSTREAM_NAMESPACE 1
19505 echo "$as_me:19505: checking if we should include stdbool.h" >&5
19506 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19508 if test "${cf_cv_header_stdbool_h+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 cat >conftest.$ac_ext <<_ACEOF
19513 #line 19513 "configure"
19514 #include "confdefs.h"
19524 rm -f conftest.$ac_objext
19525 if { (eval echo "$as_me:19525: \"$ac_compile\"") >&5
19526 (eval $ac_compile) 2>&5
19528 echo "$as_me:19528: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
19530 { ac_try='test -s conftest.$ac_objext'
19531 { (eval echo "$as_me:19531: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19534 echo "$as_me:19534: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19536 cf_cv_header_stdbool_h=0
19538 echo "$as_me: failed program was:" >&5
19539 cat conftest.$ac_ext >&5
19540 cat >conftest.$ac_ext <<_ACEOF
19541 #line 19541 "configure"
19542 #include "confdefs.h"
19545 #include <stdbool.h>
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:19557: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>&5
19560 echo "$as_me:19560: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:19563: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19566 echo "$as_me:19566: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 cf_cv_header_stdbool_h=1
19570 echo "$as_me: failed program was:" >&5
19571 cat conftest.$ac_ext >&5
19572 cf_cv_header_stdbool_h=0
19574 rm -f conftest.$ac_objext conftest.$ac_ext
19576 rm -f conftest.$ac_objext conftest.$ac_ext
19579 if test "$cf_cv_header_stdbool_h" = 1
19580 then echo "$as_me:19580: result: yes" >&5
19581 echo "${ECHO_T}yes" >&6
19582 else echo "$as_me:19582: result: no" >&5
19583 echo "${ECHO_T}no" >&6
19586 echo "$as_me:19586: checking for builtin bool type" >&5
19587 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19589 if test "${cf_cv_builtin_bool+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19594 #line 19594 "configure"
19595 #include "confdefs.h"
19598 #include <sys/types.h>
19608 rm -f conftest.$ac_objext
19609 if { (eval echo "$as_me:19609: \"$ac_compile\"") >&5
19610 (eval $ac_compile) 2>&5
19612 echo "$as_me:19612: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -s conftest.$ac_objext'
19615 { (eval echo "$as_me:19615: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19618 echo "$as_me:19618: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 cf_cv_builtin_bool=1
19622 echo "$as_me: failed program was:" >&5
19623 cat conftest.$ac_ext >&5
19624 cf_cv_builtin_bool=0
19626 rm -f conftest.$ac_objext conftest.$ac_ext
19630 if test "$cf_cv_builtin_bool" = 1
19631 then echo "$as_me:19631: result: yes" >&5
19632 echo "${ECHO_T}yes" >&6
19633 else echo "$as_me:19633: result: no" >&5
19634 echo "${ECHO_T}no" >&6
19637 echo "$as_me:19637: checking for size of bool" >&5
19638 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19639 if test "${cf_cv_type_of_bool+set}" = set; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 if test "$cross_compiling" = yes; then
19645 cf_cv_type_of_bool=unknown
19647 cat >conftest.$ac_ext <<_ACEOF
19648 #line 19648 "configure"
19649 #include "confdefs.h"
19651 #include <stdlib.h>
19654 #if defined(__cplusplus)
19656 #ifdef HAVE_GXX_BUILTIN_H
19657 #include <g++/builtin.h>
19658 #elif HAVE_GPP_BUILTIN_H
19659 #include <gpp/builtin.h>
19660 #elif HAVE_BUILTIN_H
19661 #include <builtin.h>
19666 #if $cf_cv_header_stdbool_h
19667 #include <stdbool.h>
19674 FILE *fp = fopen("cf_test.out", "w");
19677 if ((bool)(-x) >= 0)
19678 fputs("unsigned ", fp);
19679 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19680 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19681 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19682 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19685 ${cf_cv_main_return:-return}(0);
19689 rm -f conftest$ac_exeext
19690 if { (eval echo "$as_me:19690: \"$ac_link\"") >&5
19691 (eval $ac_link) 2>&5
19693 echo "$as_me:19693: \$? = $ac_status" >&5
19694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19695 { (eval echo "$as_me:19695: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19698 echo "$as_me:19698: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 cf_cv_type_of_bool=`cat cf_test.out`
19701 if test -z "$cf_cv_type_of_bool"; then
19702 cf_cv_type_of_bool=unknown
19705 echo "$as_me: program exited with status $ac_status" >&5
19706 echo "$as_me: failed program was:" >&5
19707 cat conftest.$ac_ext >&5
19708 cf_cv_type_of_bool=unknown
19710 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19716 echo "$as_me:19716: result: $cf_cv_type_of_bool" >&5
19717 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19718 if test "$cf_cv_type_of_bool" = unknown ; then
19719 case .$NCURSES_BOOL in #(vi
19720 .auto|.) NCURSES_BOOL=unsigned;;
19722 { echo "$as_me:19722: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19723 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19724 cf_cv_type_of_bool=$NCURSES_BOOL
19727 echo "$as_me:19727: checking for special defines needed for etip.h" >&5
19728 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
19729 cf_save_CXXFLAGS="$CXXFLAGS"
19732 # etip.h includes ncurses.h which includes ncurses_dll.h
19733 # But ncurses_dll.h is generated - fix here.
19734 test -d include || mkdir include
19735 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
19737 for cf_math in "" MATH_H
19739 for cf_excp in "" MATH_EXCEPTION
19741 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
19742 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
19743 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
19744 cat >conftest.$ac_ext <<_ACEOF
19745 #line 19745 "configure"
19746 #include "confdefs.h"
19748 #include <etip.h.in>
19758 rm -f conftest.$ac_objext
19759 if { (eval echo "$as_me:19759: \"$ac_compile\"") >&5
19760 (eval $ac_compile) 2>&5
19762 echo "$as_me:19762: \$? = $ac_status" >&5
19763 (exit $ac_status); } &&
19764 { ac_try='test -s conftest.$ac_objext'
19765 { (eval echo "$as_me:19765: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19768 echo "$as_me:19768: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19771 test -n "$cf_math" && cat >>confdefs.h <<EOF
19772 #define ETIP_NEEDS_${cf_math} 1
19775 test -n "$cf_excp" && cat >>confdefs.h <<EOF
19776 #define ETIP_NEEDS_${cf_excp} 1
19779 cf_result="$cf_math $cf_excp"
19783 echo "$as_me: failed program was:" >&5
19784 cat conftest.$ac_ext >&5
19786 rm -f conftest.$ac_objext conftest.$ac_ext
19789 echo "$as_me:19789: result: $cf_result" >&5
19790 echo "${ECHO_T}$cf_result" >&6
19791 CXXFLAGS="$cf_save_CXXFLAGS"
19793 if test -n "$CXX"; then
19794 echo "$as_me:19794: checking if $CXX accepts parameter initialization" >&5
19795 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
19796 if test "${cf_cv_cpp_param_init+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 ac_cpp='$CXXCPP $CPPFLAGS'
19802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19805 ac_main_return=return
19807 if test "$cross_compiling" = yes; then
19808 cf_cv_cpp_param_init=unknown
19810 cat >conftest.$ac_ext <<_ACEOF
19811 #line 19811 "configure"
19812 #include "confdefs.h"
19822 TEST::TEST(int x = 1) // some compilers do not like second initializer
19829 rm -f conftest$ac_exeext
19830 if { (eval echo "$as_me:19830: \"$ac_link\"") >&5
19831 (eval $ac_link) 2>&5
19833 echo "$as_me:19833: \$? = $ac_status" >&5
19834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19835 { (eval echo "$as_me:19835: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:19838: \$? = $ac_status" >&5
19839 (exit $ac_status); }; }; then
19840 cf_cv_cpp_param_init=yes
19842 echo "$as_me: program exited with status $ac_status" >&5
19843 echo "$as_me: failed program was:" >&5
19844 cat conftest.$ac_ext >&5
19845 cf_cv_cpp_param_init=no
19847 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19850 ac_cpp='$CXXCPP $CPPFLAGS'
19851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19854 ac_main_return=return
19857 echo "$as_me:19857: result: $cf_cv_cpp_param_init" >&5
19858 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
19860 test "$cf_cv_cpp_param_init" = yes &&
19861 cat >>confdefs.h <<\EOF
19862 #define CPP_HAS_PARAM_INIT 1
19865 if test -n "$CXX"; then
19867 echo "$as_me:19867: checking if $CXX accepts static_cast" >&5
19868 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
19869 if test "${cf_cv_cpp_static_cast+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 ac_cpp='$CXXCPP $CPPFLAGS'
19875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19878 ac_main_return=return
19880 cat >conftest.$ac_ext <<_ACEOF
19881 #line 19881 "configure"
19882 #include "confdefs.h"
19887 NCursesPanel(int nlines,
19897 template<class T> class NCursesUserPanel : public NCursesPanel
19900 NCursesUserPanel (int nlines,
19904 const T* p_UserData = static_cast<T*>(0))
19905 : NCursesPanel (nlines, ncols, begin_y, begin_x)
19908 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
19912 virtual ~NCursesUserPanel() {};
19919 const char* p_UserData = static_cast<char*>(0)
19924 rm -f conftest.$ac_objext
19925 if { (eval echo "$as_me:19925: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>&5
19928 echo "$as_me:19928: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
19930 { ac_try='test -s conftest.$ac_objext'
19931 { (eval echo "$as_me:19931: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19934 echo "$as_me:19934: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19936 cf_cv_cpp_static_cast=yes
19938 echo "$as_me: failed program was:" >&5
19939 cat conftest.$ac_ext >&5
19940 cf_cv_cpp_static_cast=no
19942 rm -f conftest.$ac_objext conftest.$ac_ext
19945 ac_cpp='$CXXCPP $CPPFLAGS'
19946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19949 ac_main_return=return
19952 echo "$as_me:19952: result: $cf_cv_cpp_static_cast" >&5
19953 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
19957 test "$cf_cv_cpp_static_cast" = yes &&
19958 cat >>confdefs.h <<\EOF
19959 #define CPP_HAS_STATIC_CAST 1
19963 CXX_ARFLAGS='$(ARFLAGS)'
19964 case $cf_cv_system_name in #(vi
19966 if test "$GXX" != yes ; then
19968 CXX_ARFLAGS='-ar -o'
19972 CXXLDFLAGS="-u main"
19975 if test "$GXX" != yes ; then
19977 CXX_ARFLAGS='-xar -o'
19984 cf_cv_builtin_bool=1
19986 # Just because we are not configuring against C++ right now does not
19987 # mean that a user will not want to use C++. Some distributors disable
19988 # the C++ portion of this configuration as a shortcut (or just to avoid
19989 # compiling the demo in the c++ directory). So we need a reasonable
19990 # default for the 'bool' type.
19992 # Caveat: since the storage of the bool type is not standardized, it
19995 if test "$NCURSES_BOOL" != auto ; then
19996 cf_cv_type_of_bool=$NCURSES_BOOL
19997 cf_cv_header_stdbool_h=0
19999 if test "$cf_cv_header_stdbool_h" = 1 ; then
20001 echo "$as_me:20001: checking for size of bool" >&5
20002 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20003 if test "${cf_cv_type_of_bool+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 if test "$cross_compiling" = yes; then
20009 cf_cv_type_of_bool=unknown
20011 cat >conftest.$ac_ext <<_ACEOF
20012 #line 20012 "configure"
20013 #include "confdefs.h"
20015 #include <stdlib.h>
20018 #if defined(__cplusplus)
20020 #ifdef HAVE_GXX_BUILTIN_H
20021 #include <g++/builtin.h>
20022 #elif HAVE_GPP_BUILTIN_H
20023 #include <gpp/builtin.h>
20024 #elif HAVE_BUILTIN_H
20025 #include <builtin.h>
20030 #if $cf_cv_header_stdbool_h
20031 #include <stdbool.h>
20038 FILE *fp = fopen("cf_test.out", "w");
20041 if ((bool)(-x) >= 0)
20042 fputs("unsigned ", fp);
20043 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20044 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20045 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20046 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20049 ${cf_cv_main_return:-return}(0);
20053 rm -f conftest$ac_exeext
20054 if { (eval echo "$as_me:20054: \"$ac_link\"") >&5
20055 (eval $ac_link) 2>&5
20057 echo "$as_me:20057: \$? = $ac_status" >&5
20058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20059 { (eval echo "$as_me:20059: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20062 echo "$as_me:20062: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 cf_cv_type_of_bool=`cat cf_test.out`
20065 if test -z "$cf_cv_type_of_bool"; then
20066 cf_cv_type_of_bool=unknown
20069 echo "$as_me: program exited with status $ac_status" >&5
20070 echo "$as_me: failed program was:" >&5
20071 cat conftest.$ac_ext >&5
20072 cf_cv_type_of_bool=unknown
20074 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20080 echo "$as_me:20080: result: $cf_cv_type_of_bool" >&5
20081 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20082 if test "$cf_cv_type_of_bool" = unknown ; then
20083 case .$NCURSES_BOOL in #(vi
20084 .auto|.) NCURSES_BOOL=unsigned;;
20086 { echo "$as_me:20086: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20087 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20088 cf_cv_type_of_bool=$NCURSES_BOOL
20092 echo "$as_me:20092: checking for fallback type of bool" >&5
20093 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
20094 case "$host_cpu" in #(vi
20095 i?86) cf_cv_type_of_bool=char ;; #(vi
20096 *) cf_cv_type_of_bool=int ;;
20098 echo "$as_me:20098: result: $cf_cv_type_of_bool" >&5
20099 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20104 # If the C compiler did not declare bool, and we did not determine that the C++
20105 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
20106 # ncurses library use the same type as C++ bool. Note that this allows one to
20107 # specify the type of bool in a configure-script option and postpone
20108 # integration with the C++ compiler provided that the types are compatible.
20110 if test $cf_cv_cc_bool_type = 1
20112 # oops: C has a bool. Unlikely, but C++ could differ.
20114 elif test $cf_cv_builtin_bool = 0
20119 # this is the normal case
20120 USE_CXX_BOOL='defined(__cplusplus)'
20123 if test -f "${srcdir}/Ada95/Makefile.in" ; then
20125 if test "$cf_with_ada" != "no" ; then
20126 if test "$with_libtool" != "no"; then
20127 { echo "$as_me:20127: WARNING: libtool does not support Ada - disabling feature" >&5
20128 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
20133 if test "$cf_with_ada" != "no" ; then
20135 cf_ada_make=gnatmake
20136 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
20137 set dummy $cf_ada_make; ac_word=$2
20138 echo "$as_me:20138: checking for $ac_word" >&5
20139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20140 if test "${ac_cv_prog_gnat_exists+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 if test -n "$gnat_exists"; then
20144 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
20146 ac_save_IFS=$IFS; IFS=$ac_path_separator
20148 for ac_dir in $ac_dummy; do
20150 test -z "$ac_dir" && ac_dir=.
20151 $as_executable_p "$ac_dir/$ac_word" || continue
20152 ac_cv_prog_gnat_exists="yes"
20153 echo "$as_me:20153: found $ac_dir/$ac_word" >&5
20157 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
20160 gnat_exists=$ac_cv_prog_gnat_exists
20161 if test -n "$gnat_exists"; then
20162 echo "$as_me:20162: result: $gnat_exists" >&5
20163 echo "${ECHO_T}$gnat_exists" >&6
20165 echo "$as_me:20165: result: no" >&5
20166 echo "${ECHO_T}no" >&6
20169 if test "$ac_cv_prog_gnat_exists" = no; then
20171 cf_cv_prog_gnat_correct=no
20174 echo "$as_me:20174: checking for gnat version" >&5
20175 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
20176 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
20177 grep '[0-9].[0-9][0-9]*' |\
20178 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
20179 echo "$as_me:20179: result: $cf_gnat_version" >&5
20180 echo "${ECHO_T}$cf_gnat_version" >&6
20182 case $cf_gnat_version in #(vi
20183 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
20184 cf_cv_prog_gnat_correct=yes
20187 { echo "$as_me:20187: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
20188 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
20189 cf_cv_prog_gnat_correct=no
20193 # Extract the first word of "m4", so it can be a program name with args.
20194 set dummy m4; ac_word=$2
20195 echo "$as_me:20195: checking for $ac_word" >&5
20196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20197 if test "${ac_cv_prog_M4_exists+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 if test -n "$M4_exists"; then
20201 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
20203 ac_save_IFS=$IFS; IFS=$ac_path_separator
20205 for ac_dir in $ac_dummy; do
20207 test -z "$ac_dir" && ac_dir=.
20208 $as_executable_p "$ac_dir/$ac_word" || continue
20209 ac_cv_prog_M4_exists="yes"
20210 echo "$as_me:20210: found $ac_dir/$ac_word" >&5
20214 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
20217 M4_exists=$ac_cv_prog_M4_exists
20218 if test -n "$M4_exists"; then
20219 echo "$as_me:20219: result: $M4_exists" >&5
20220 echo "${ECHO_T}$M4_exists" >&6
20222 echo "$as_me:20222: result: no" >&5
20223 echo "${ECHO_T}no" >&6
20226 if test "$ac_cv_prog_M4_exists" = no; then
20227 cf_cv_prog_gnat_correct=no
20228 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
20230 if test "$cf_cv_prog_gnat_correct" = yes; then
20231 echo "$as_me:20231: checking if GNAT works" >&5
20232 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
20234 rm -rf conftest* *~conftest*
20235 cat >>conftest.ads <<CF_EOF
20236 procedure conftest;
20238 cat >>conftest.adb <<CF_EOF
20241 procedure conftest is
20243 Text_IO.Put ("Hello World");
20245 GNAT.OS_Lib.OS_Exit (0);
20248 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20249 if ( ./conftest 1>&5 2>&1 ) ; then
20250 cf_cv_prog_gnat_correct=yes
20252 cf_cv_prog_gnat_correct=no
20255 cf_cv_prog_gnat_correct=no
20257 rm -rf conftest* *~conftest*
20259 echo "$as_me:20259: result: $cf_cv_prog_gnat_correct" >&5
20260 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
20264 if test "x$cf_cv_prog_gnat_correct" = xyes; then
20266 ADAFLAGS="$ADAFLAGS -gnatpn"
20268 echo "$as_me:20268: checking optimization options for ADAFLAGS" >&5
20269 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
20273 ADAFLAGS="$ADAFLAGS -g"
20279 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
20281 ADAFLAGS="$ADAFLAGS $cf_O_flag"
20285 echo "$as_me:20285: result: $ADAFLAGS" >&5
20286 echo "${ECHO_T}$ADAFLAGS" >&6
20288 echo "$as_me:20288: checking if GNATPREP supports -T option" >&5
20289 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
20290 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20294 cf_cv_gnatprep_opt_t=no
20295 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
20298 echo "$as_me:20298: result: $cf_cv_gnatprep_opt_t" >&5
20299 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
20300 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
20302 echo "$as_me:20302: checking if GNAT supports generics" >&5
20303 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
20304 case $cf_gnat_version in #(vi
20305 3.[1-9]*|[4-9].*) #(vi
20306 cf_gnat_generics=yes
20309 cf_gnat_generics=no
20312 echo "$as_me:20312: result: $cf_gnat_generics" >&5
20313 echo "${ECHO_T}$cf_gnat_generics" >&6
20315 if test "$cf_gnat_generics" = yes
20317 cf_compile_generics=generics
20318 cf_generic_objects="\${GENOBJS}"
20320 cf_compile_generics=
20321 cf_generic_objects=
20324 echo "$as_me:20324: checking if GNAT supports SIGINT" >&5
20325 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
20326 if test "${cf_cv_gnat_sigint+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 rm -rf conftest* *~conftest*
20331 cat >>conftest.ads <<CF_EOF
20332 with Ada.Interrupts.Names;
20334 package ConfTest is
20336 pragma Warnings (Off); -- the next pragma exists since 3.11p
20337 pragma Unreserve_All_Interrupts;
20338 pragma Warnings (On);
20340 protected Process is
20342 function Continue return Boolean;
20343 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
20345 Done : Boolean := False;
20350 cat >>conftest.adb <<CF_EOF
20351 package body ConfTest is
20352 protected body Process is
20357 function Continue return Boolean is
20364 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20365 cf_cv_gnat_sigint=yes
20367 cf_cv_gnat_sigint=no
20369 rm -rf conftest* *~conftest*
20372 echo "$as_me:20372: result: $cf_cv_gnat_sigint" >&5
20373 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
20375 if test $cf_cv_gnat_sigint = yes ; then
20378 USE_GNAT_SIGINT="#"
20381 cf_gnat_libraries=no
20382 cf_gnat_projects=no
20384 if test "$enable_gnat_projects" != no ; then
20385 echo "$as_me:20385: checking if GNAT supports project files" >&5
20386 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
20387 case $cf_gnat_version in #(vi
20391 case $cf_cv_system_name in #(vi
20392 cygwin*|msys*) #(vi
20395 mkdir conftest.src conftest.bin conftest.lib
20397 rm -rf conftest* *~conftest*
20398 cat >>library.gpr <<CF_EOF
20400 Kind := External ("LIB_KIND");
20401 for Library_Name use "ConfTest";
20402 for Object_Dir use ".";
20403 for Library_ALI_Dir use External("LIBRARY_DIR");
20404 for Library_Version use External ("SONAME");
20405 for Library_Kind use Kind;
20406 for Library_Dir use External("BUILD_DIR");
20407 Source_Dir := External ("SOURCE_DIR");
20408 for Source_Dirs use (Source_Dir);
20411 cat >>confpackage.ads <<CF_EOF
20412 package ConfPackage is
20413 procedure conftest;
20416 cat >>confpackage.adb <<CF_EOF
20418 package body ConfPackage is
20419 procedure conftest is
20421 Text_IO.Put ("Hello World");
20426 if ( $cf_ada_make $ADAFLAGS \
20428 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
20429 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
20430 -XSOURCE_DIR=`pwd` \
20431 -XSONAME=libConfTest.so.1 \
20432 -XLIB_KIND=static 1>&5 2>&1 ) ; then
20433 cf_gnat_projects=yes
20436 if test -f conftest.lib/confpackage.ali
20438 cf_gnat_libraries=yes
20440 rm -rf conftest* *~conftest*
20445 echo "$as_me:20445: result: $cf_gnat_projects" >&5
20446 echo "${ECHO_T}$cf_gnat_projects" >&6
20447 fi # enable_gnat_projects
20449 if test $cf_gnat_projects = yes
20451 echo "$as_me:20451: checking if GNAT supports libraries" >&5
20452 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
20453 echo "$as_me:20453: result: $cf_gnat_libraries" >&5
20454 echo "${ECHO_T}$cf_gnat_libraries" >&6
20457 if test "$cf_gnat_projects" = yes
20459 USE_OLD_MAKERULES="#"
20460 USE_GNAT_PROJECTS=""
20462 USE_OLD_MAKERULES=""
20463 USE_GNAT_PROJECTS="#"
20466 if test "$cf_gnat_libraries" = yes
20468 USE_GNAT_LIBRARIES=""
20470 USE_GNAT_LIBRARIES="#"
20473 echo "$as_me:20473: checking for ada-compiler" >&5
20474 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
20476 # Check whether --with-ada-compiler or --without-ada-compiler was given.
20477 if test "${with_ada_compiler+set}" = set; then
20478 withval="$with_ada_compiler"
20479 cf_ada_compiler=$withval
20481 cf_ada_compiler=gnatmake
20484 echo "$as_me:20484: result: $cf_ada_compiler" >&5
20485 echo "${ECHO_T}$cf_ada_compiler" >&6
20487 cf_ada_package=terminal_interface
20489 echo "$as_me:20489: checking for ada-include" >&5
20490 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
20492 # Check whether --with-ada-include or --without-ada-include was given.
20493 if test "${with_ada_include+set}" = set; then
20494 withval="$with_ada_include"
20497 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
20498 fi; if test -n "$prefix/share/ada/adainclude" ; then
20500 if test "x$prefix" != xNONE; then
20501 cf_path_syntax="$prefix"
20503 cf_path_syntax="$ac_default_prefix"
20506 case ".$withval" in #(vi
20507 .\$\(*\)*|.\'*\'*) #(vi
20511 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
20513 .\${*prefix}*|.\${*dir}*) #(vi
20514 eval withval="$withval"
20515 case ".$withval" in #(vi
20517 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20522 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20525 { { echo "$as_me:20525: error: expected a pathname, not \"$withval\"" >&5
20526 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
20527 { (exit 1); exit 1; }; }
20532 eval ADA_INCLUDE="$withval"
20534 echo "$as_me:20534: result: $ADA_INCLUDE" >&5
20535 echo "${ECHO_T}$ADA_INCLUDE" >&6
20537 echo "$as_me:20537: checking for ada-objects" >&5
20538 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
20540 # Check whether --with-ada-objects or --without-ada-objects was given.
20541 if test "${with_ada_objects+set}" = set; then
20542 withval="$with_ada_objects"
20545 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
20546 fi; if test -n "$prefix/lib/ada/adalib" ; then
20548 if test "x$prefix" != xNONE; then
20549 cf_path_syntax="$prefix"
20551 cf_path_syntax="$ac_default_prefix"
20554 case ".$withval" in #(vi
20555 .\$\(*\)*|.\'*\'*) #(vi
20559 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
20561 .\${*prefix}*|.\${*dir}*) #(vi
20562 eval withval="$withval"
20563 case ".$withval" in #(vi
20565 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20570 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20573 { { echo "$as_me:20573: error: expected a pathname, not \"$withval\"" >&5
20574 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
20575 { (exit 1); exit 1; }; }
20580 eval ADA_OBJECTS="$withval"
20582 echo "$as_me:20582: result: $ADA_OBJECTS" >&5
20583 echo "${ECHO_T}$ADA_OBJECTS" >&6
20585 echo "$as_me:20585: checking if an Ada95 shared-library should be built" >&5
20586 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
20588 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
20589 if test "${with_ada_sharedlib+set}" = set; then
20590 withval="$with_ada_sharedlib"
20591 with_ada_sharedlib=$withval
20593 with_ada_sharedlib=no
20595 echo "$as_me:20595: result: $with_ada_sharedlib" >&5
20596 echo "${ECHO_T}$with_ada_sharedlib" >&6
20598 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
20599 MAKE_ADA_SHAREDLIB="#"
20601 if test "x$with_ada_sharedlib" != xno
20603 MAKE_ADA_SHAREDLIB=
20604 if test "x$with_ada_sharedlib" != xyes
20606 ADA_SHAREDLIB="$with_ada_sharedlib"
20616 # do this "late" to avoid conflict with header-checks
20617 if test "x$with_widec" = xyes ; then
20618 echo "$as_me:20618: checking for wchar_t" >&5
20619 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20620 if test "${ac_cv_type_wchar_t+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 cat >conftest.$ac_ext <<_ACEOF
20624 #line 20624 "configure"
20625 #include "confdefs.h"
20626 $ac_includes_default
20632 if (sizeof (wchar_t))
20638 rm -f conftest.$ac_objext
20639 if { (eval echo "$as_me:20639: \"$ac_compile\"") >&5
20640 (eval $ac_compile) 2>&5
20642 echo "$as_me:20642: \$? = $ac_status" >&5
20643 (exit $ac_status); } &&
20644 { ac_try='test -s conftest.$ac_objext'
20645 { (eval echo "$as_me:20645: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20648 echo "$as_me:20648: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 ac_cv_type_wchar_t=yes
20652 echo "$as_me: failed program was:" >&5
20653 cat conftest.$ac_ext >&5
20654 ac_cv_type_wchar_t=no
20656 rm -f conftest.$ac_objext conftest.$ac_ext
20658 echo "$as_me:20658: result: $ac_cv_type_wchar_t" >&5
20659 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20661 echo "$as_me:20661: checking size of wchar_t" >&5
20662 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20663 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 if test "$ac_cv_type_wchar_t" = yes; then
20667 if test "$cross_compiling" = yes; then
20668 # Depending upon the size, compute the lo and hi bounds.
20669 cat >conftest.$ac_ext <<_ACEOF
20670 #line 20670 "configure"
20671 #include "confdefs.h"
20672 $ac_includes_default
20676 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
20681 rm -f conftest.$ac_objext
20682 if { (eval echo "$as_me:20682: \"$ac_compile\"") >&5
20683 (eval $ac_compile) 2>&5
20685 echo "$as_me:20685: \$? = $ac_status" >&5
20686 (exit $ac_status); } &&
20687 { ac_try='test -s conftest.$ac_objext'
20688 { (eval echo "$as_me:20688: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20691 echo "$as_me:20691: \$? = $ac_status" >&5
20692 (exit $ac_status); }; }; then
20695 cat >conftest.$ac_ext <<_ACEOF
20696 #line 20696 "configure"
20697 #include "confdefs.h"
20698 $ac_includes_default
20702 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
20707 rm -f conftest.$ac_objext
20708 if { (eval echo "$as_me:20708: \"$ac_compile\"") >&5
20709 (eval $ac_compile) 2>&5
20711 echo "$as_me:20711: \$? = $ac_status" >&5
20712 (exit $ac_status); } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (eval echo "$as_me:20714: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20717 echo "$as_me:20717: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_hi=$ac_mid; break
20721 echo "$as_me: failed program was:" >&5
20722 cat conftest.$ac_ext >&5
20723 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
20725 rm -f conftest.$ac_objext conftest.$ac_ext
20728 echo "$as_me: failed program was:" >&5
20729 cat conftest.$ac_ext >&5
20732 cat >conftest.$ac_ext <<_ACEOF
20733 #line 20733 "configure"
20734 #include "confdefs.h"
20735 $ac_includes_default
20739 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
20744 rm -f conftest.$ac_objext
20745 if { (eval echo "$as_me:20745: \"$ac_compile\"") >&5
20746 (eval $ac_compile) 2>&5
20748 echo "$as_me:20748: \$? = $ac_status" >&5
20749 (exit $ac_status); } &&
20750 { ac_try='test -s conftest.$ac_objext'
20751 { (eval echo "$as_me:20751: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20754 echo "$as_me:20754: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_lo=$ac_mid; break
20758 echo "$as_me: failed program was:" >&5
20759 cat conftest.$ac_ext >&5
20760 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
20762 rm -f conftest.$ac_objext conftest.$ac_ext
20765 rm -f conftest.$ac_objext conftest.$ac_ext
20766 # Binary search between lo and hi bounds.
20767 while test "x$ac_lo" != "x$ac_hi"; do
20768 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20769 cat >conftest.$ac_ext <<_ACEOF
20770 #line 20770 "configure"
20771 #include "confdefs.h"
20772 $ac_includes_default
20776 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
20781 rm -f conftest.$ac_objext
20782 if { (eval echo "$as_me:20782: \"$ac_compile\"") >&5
20783 (eval $ac_compile) 2>&5
20785 echo "$as_me:20785: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -s conftest.$ac_objext'
20788 { (eval echo "$as_me:20788: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20791 echo "$as_me:20791: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20795 echo "$as_me: failed program was:" >&5
20796 cat conftest.$ac_ext >&5
20797 ac_lo=`expr $ac_mid + 1`
20799 rm -f conftest.$ac_objext conftest.$ac_ext
20801 ac_cv_sizeof_wchar_t=$ac_lo
20803 if test "$cross_compiling" = yes; then
20804 { { echo "$as_me:20804: error: cannot run test program while cross compiling" >&5
20805 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
20806 { (exit 1); exit 1; }; }
20808 cat >conftest.$ac_ext <<_ACEOF
20809 #line 20809 "configure"
20810 #include "confdefs.h"
20811 $ac_includes_default
20815 FILE *f = fopen ("conftest.val", "w");
20817 $ac_main_return (1);
20818 fprintf (f, "%d", (sizeof (wchar_t)));
20824 rm -f conftest$ac_exeext
20825 if { (eval echo "$as_me:20825: \"$ac_link\"") >&5
20826 (eval $ac_link) 2>&5
20828 echo "$as_me:20828: \$? = $ac_status" >&5
20829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20830 { (eval echo "$as_me:20830: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20833 echo "$as_me:20833: \$? = $ac_status" >&5
20834 (exit $ac_status); }; }; then
20835 ac_cv_sizeof_wchar_t=`cat conftest.val`
20837 echo "$as_me: program exited with status $ac_status" >&5
20838 echo "$as_me: failed program was:" >&5
20839 cat conftest.$ac_ext >&5
20841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20846 ac_cv_sizeof_wchar_t=0
20849 echo "$as_me:20849: result: $ac_cv_sizeof_wchar_t" >&5
20850 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20851 cat >>confdefs.h <<EOF
20852 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20857 ### Construct the ncurses library-subsets, if any, from this set of keywords:
20858 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
20860 ### ticlib modules may be a separate library, otherwise contained in termlib.
20861 ### termlib modules may be a separate library, otherwise contained in ncurses.
20863 ### The of "+" or " " between the tokens controls the way the script
20864 ### chooses to split module lists into libraries.
20866 ### (see CF_LIB_RULES).
20867 echo "$as_me:20867: checking for library subsets" >&5
20868 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
20871 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
20872 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
20873 if test "$with_ticlib" != no ; then
20874 LIB_SUBSETS="${LIB_SUBSETS} "
20876 LIB_SUBSETS="${LIB_SUBSETS}+"
20880 LIB_SUBSETS="${LIB_SUBSETS}termlib"
20881 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
20883 if test "$with_termlib" != no ; then
20884 LIB_SUBSETS="${LIB_SUBSETS} "
20886 LIB_SUBSETS="${LIB_SUBSETS}+"
20889 LIB_SUBSETS="${LIB_SUBSETS}base"
20891 # Most term-driver calls are to tinfo, but some like init_pair are to the
20892 # base library (so it resides in base).
20893 if test "$with_term_driver" != no ; then
20894 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
20895 case $cf_cv_system_name in #(vi
20896 *mingw32*|*mingw64*) #(vi
20897 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
20898 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
20901 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
20906 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
20907 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
20909 echo "$as_me:20909: result: $LIB_SUBSETS" >&5
20910 echo "${ECHO_T}$LIB_SUBSETS" >&6
20912 ### Construct the list of include-directories to be generated
20914 if test "$srcdir" != "."; then
20915 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
20917 CPPFLAGS="-I../include $CPPFLAGS"
20918 if test "$srcdir" != "."; then
20919 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
20921 CPPFLAGS="-I. $CPPFLAGS"
20923 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
20924 if test "$srcdir" != "."; then
20925 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
20927 if test "$GCC" != yes; then
20928 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20929 elif test "$includedir" != "/usr/include"; then
20930 if test "$includedir" = '${prefix}/include' ; then
20931 if test x$prefix != x/usr ; then
20932 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20935 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20939 ### Build up pieces for makefile rules
20940 echo "$as_me:20940: checking default library suffix" >&5
20941 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
20943 case $DFT_LWR_MODEL in
20944 libtool) DFT_ARG_SUFFIX='' ;;
20945 normal) DFT_ARG_SUFFIX='' ;;
20946 debug) DFT_ARG_SUFFIX='_g' ;;
20947 profile) DFT_ARG_SUFFIX='_p' ;;
20948 shared) DFT_ARG_SUFFIX='' ;;
20950 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
20951 echo "$as_me:20951: result: $DFT_ARG_SUFFIX" >&5
20952 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
20954 echo "$as_me:20954: checking default library-dependency suffix" >&5
20955 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
20957 case X$DFT_LWR_MODEL in #(vi
20959 DFT_LIB_SUFFIX='.la'
20960 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20963 DFT_LIB_SUFFIX='_g.a'
20964 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20967 DFT_LIB_SUFFIX='_p.a'
20968 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20971 case $cf_cv_system_name in
20973 DFT_LIB_SUFFIX='.so'
20974 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20976 cygwin*|msys*|mingw*) #(vi
20977 DFT_LIB_SUFFIX='.dll'
20978 DFT_DEP_SUFFIX='.dll.a'
20981 DFT_LIB_SUFFIX='.dylib'
20982 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20987 DFT_LIB_SUFFIX='.so'
20988 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20991 DFT_LIB_SUFFIX='.sl'
20992 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20997 DFT_LIB_SUFFIX='.so'
20998 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21003 DFT_LIB_SUFFIX='.a'
21004 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21007 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
21008 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
21009 echo "$as_me:21009: result: $DFT_DEP_SUFFIX" >&5
21010 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
21012 echo "$as_me:21012: checking default object directory" >&5
21013 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
21015 case $DFT_LWR_MODEL in
21016 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
21017 normal) DFT_OBJ_SUBDIR='objects' ;;
21018 debug) DFT_OBJ_SUBDIR='obj_g' ;;
21019 profile) DFT_OBJ_SUBDIR='obj_p' ;;
21021 case $cf_cv_system_name in #(vi
21023 DFT_OBJ_SUBDIR='objects' ;;
21025 DFT_OBJ_SUBDIR='obj_s' ;;
21028 echo "$as_me:21028: result: $DFT_OBJ_SUBDIR" >&5
21029 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
21031 if test "x$cf_with_cxx" = xyes ; then
21032 echo "$as_me:21032: checking c++ library-dependency suffix" >&5
21033 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
21034 if test "$with_libtool" != "no"; then
21035 # libtool thinks it can make c++ shared libraries (perhaps only g++)
21036 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21037 elif test "$with_shared_cxx" != "no"; then
21038 # also for g++ users...
21039 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21041 # we normally make a static library because C/C++ library rules differ
21043 case Xnormal in #(vi
21045 CXX_LIB_SUFFIX='.la'
21046 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21049 CXX_LIB_SUFFIX='_g.a'
21050 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21053 CXX_LIB_SUFFIX='_p.a'
21054 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21057 case $cf_cv_system_name in
21059 CXX_LIB_SUFFIX='.so'
21060 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21062 cygwin*|msys*|mingw*) #(vi
21063 CXX_LIB_SUFFIX='.dll'
21064 CXX_DEP_SUFFIX='.dll.a'
21067 CXX_LIB_SUFFIX='.dylib'
21068 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21073 CXX_LIB_SUFFIX='.so'
21074 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21077 CXX_LIB_SUFFIX='.sl'
21078 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21083 CXX_LIB_SUFFIX='.so'
21084 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21089 CXX_LIB_SUFFIX='.a'
21090 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21093 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
21094 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
21097 echo "$as_me:21097: result: $CXX_LIB_SUFFIX" >&5
21098 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
21102 # do not want -ldl in build except as needed for -lncurses dependency
21103 if test "x$with_dlsym" = xyes ; then
21104 if test $DFT_LWR_MODEL = shared || \
21105 test $DFT_LWR_MODEL = libtool ; then
21107 # remove dl library from $LIBS
21108 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21112 ### Set up low-level terminfo dependencies for makefiles.
21114 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
21115 # do not need libdl
21117 if test "x$with_dlsym" = xyes ; then
21119 # remove dl library from $SHLIB_LIST
21120 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21124 if test "$with_ticlib" != no ; then
21126 if test "x$with_ticlib" != xyes ; then
21127 TICS_NAME=$with_ticlib
21128 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21129 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21130 TICS_LIB_SUFFIX="${with_ticlib}"
21132 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
21133 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
21134 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
21136 TICS_LDFLAGS="-L${LIB_DIR}"
21137 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
21139 TICS_LDFLAGS="-L${LIB_DIR}"
21140 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
21143 if test "$with_termlib" != no ; then
21145 if test "x$with_termlib" != xyes ; then
21146 TINFO_NAME=$with_termlib
21147 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21148 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21149 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21150 TINFO_LIB_SUFFIX="${with_termlib}"
21152 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21153 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
21154 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
21155 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
21158 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21159 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21160 if test "$DFT_LWR_MODEL" = "libtool"; then
21161 TEST_ARGS="${TEST_DEPS}"
21162 TEST_ARG2="${TEST_DEP2}"
21163 TINFO_LDFLAGS="-L${LIB_DIR}"
21164 TINFO_LIBS="$TEST_ARGS"
21165 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
21166 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
21168 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
21169 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
21170 if test "x$with_term_driver" != xno ; then
21171 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
21172 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
21173 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
21175 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21176 TINFO_LIBS="$TEST_ARGS"
21178 TINFO_LDFLAGS="-L${LIB_DIR}"
21179 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21182 # the next lines are needed for linking libtic over libncurses
21183 TINFO_NAME=${LIB_NAME}
21184 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21185 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
21186 if test "x$with_tic_depends" = xyes ; then
21187 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
21189 TICS_LIST="$SHLIB_LIST"
21192 TINFO_LDFLAGS="-L${LIB_DIR}"
21193 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
21196 if test "$DFT_LWR_MODEL" = shared ; then
21197 case $cf_cv_system_name in #(vi
21199 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
21205 if test "x$with_dlsym" = xyes ; then
21207 # remove dl library from $TICS_LIST
21208 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21212 if test "$DFT_LWR_MODEL" = "libtool"; then
21217 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
21219 case $DFT_LWR_MODEL in
21220 normal|debug|profile)
21222 if test "$GCC" = yes ; then
21223 case $cf_cv_system_name in #(
21224 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
21228 *) #( normally, except when broken
21229 LDFLAGS_STATIC=-static
21230 LDFLAGS_SHARED=-dynamic
21234 case $cf_cv_system_name in #(
21235 aix[4-7]*) #( from ld manpage
21236 LDFLAGS_STATIC=-bstatic
21237 LDFLAGS_SHARED=-bdynamic
21239 hpux*) #( from ld manpage for hpux10.20, hpux11.11
21240 # We could also use just "archive" and "shared".
21241 LDFLAGS_STATIC=-Wl,-a,archive_shared
21242 LDFLAGS_SHARED=-Wl,-a,shared_archive
21244 irix*) #( from ld manpage IRIX64
21245 LDFLAGS_STATIC=-Bstatic
21246 LDFLAGS_SHARED=-Bdynamic
21248 osf[45]*) #( from ld manpage osf4.0d, osf5.1
21249 # alternative "-oldstyle_liblookup" (not in cc manpage)
21250 LDFLAGS_STATIC=-noso
21251 LDFLAGS_SHARED=-so_archive
21254 LDFLAGS_STATIC=-Bstatic
21255 LDFLAGS_SHARED=-Bdynamic
21260 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
21262 echo "$as_me:21262: checking if linker supports switching between static/dynamic" >&5
21263 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
21265 rm -f libconftest.a
21266 cat >conftest.$ac_ext <<EOF
21267 #line 21267 "configure"
21269 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
21271 if { (eval echo "$as_me:21271: \"$ac_compile\"") >&5
21272 (eval $ac_compile) 2>&5
21274 echo "$as_me:21274: \$? = $ac_status" >&5
21275 (exit $ac_status); } ; then
21276 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
21277 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
21281 cf_save_LIBS="$LIBS"
21283 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
21284 cat >conftest.$ac_ext <<_ACEOF
21285 #line 21285 "configure"
21286 #include "confdefs.h"
21288 #line 21288 "configure"
21290 int cf_ldflags_static(FILE *fp);
21296 return cf_ldflags_static(stdin);
21302 rm -f conftest.$ac_objext conftest$ac_exeext
21303 if { (eval echo "$as_me:21303: \"$ac_link\"") >&5
21304 (eval $ac_link) 2>&5
21306 echo "$as_me:21306: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -s conftest$ac_exeext'
21309 { (eval echo "$as_me:21309: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:21312: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21315 # some linkers simply ignore the -dynamic
21316 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
21318 cf_ldflags_static=no
21321 cf_ldflags_static=yes
21326 echo "$as_me: failed program was:" >&5
21327 cat conftest.$ac_ext >&5
21328 cf_ldflags_static=no
21330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21332 rm -f libconftest.*
21333 LIBS="$cf_save_LIBS"
21335 echo "$as_me:21335: result: $cf_ldflags_static" >&5
21336 echo "${ECHO_T}$cf_ldflags_static" >&6
21338 if test $cf_ldflags_static != yes
21351 echo "$as_me:21351: checking where we will install curses.h" >&5
21352 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
21355 if test "$with_overwrite" = no && \
21356 ( test "x$includedir" = 'x${prefix}/include' || \
21357 test "x$includedir" = "x${prefix}/include" )
21359 includesubdir="/ncurses${LIB_SUFFIX}"
21361 echo "$as_me:21361: result: ${includedir}${includesubdir}" >&5
21362 echo "${ECHO_T}${includedir}${includesubdir}" >&6
21364 ### Resolve a conflict between normal and wide-curses by forcing applications
21365 ### that will need libutf8 to add it to their configure script.
21366 if test "$with_overwrite" != no ; then
21367 if test "$NCURSES_LIBUTF8" = 1 ; then
21368 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
21369 { echo "$as_me:21369: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
21370 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
21373 WITH_OVERWRITE=$with_overwrite
21375 # used to separate tack out of the tree
21378 ### predefined stuff for the test programs
21380 cat >>confdefs.h <<\EOF
21381 #define HAVE_SLK_COLOR 1
21384 ### Construct the list of subdirectories for which we'll customize makefiles
21385 ### with the appropriate compile-rules.
21387 echo "$as_me:21387: checking for src modules" >&5
21388 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
21390 # dependencies and linker-arguments for test-programs
21391 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
21392 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
21393 if test "$DFT_LWR_MODEL" = "libtool"; then
21394 TEST_ARGS="${TEST_DEPS}"
21395 TEST_ARG2="${TEST_DEP2}"
21397 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
21398 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
21401 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
21403 for cf_dir in $modules_to_build
21405 if test -f $srcdir/$cf_dir/modules; then
21407 # We may/may not have tack in the distribution, though the
21409 if test $cf_dir = tack ; then
21410 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
21415 if test -z "$cf_cv_src_modules"; then
21416 cf_cv_src_modules=$cf_dir
21418 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
21421 # Make the ncurses_cfg.h file record the library interface files as
21422 # well. These are header files that are the same name as their
21423 # directory. Ncurses is the only library that does not follow
21425 if test $cf_dir = tack ; then
21427 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
21429 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21431 cat >>confdefs.h <<EOF
21432 #define HAVE_${cf_have_include}_H 1
21435 cat >>confdefs.h <<EOF
21436 #define HAVE_LIB${cf_have_include} 1
21439 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
21440 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
21441 if test "$DFT_LWR_MODEL" = "libtool"; then
21442 TEST_ARGS="${TEST_DEPS}"
21443 TEST_ARG2="${TEST_DEP2}"
21445 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
21446 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
21448 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
21452 echo "$as_me:21452: result: $cf_cv_src_modules" >&5
21453 echo "${ECHO_T}$cf_cv_src_modules" >&6
21455 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
21456 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
21459 if test "x$cf_with_manpages" != xno ; then
21460 SRC_SUBDIRS="$SRC_SUBDIRS man"
21462 SRC_SUBDIRS="$SRC_SUBDIRS include"
21463 for cf_dir in $cf_cv_src_modules
21465 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
21467 if test "x$cf_with_tests" != "xno" ; then
21468 SRC_SUBDIRS="$SRC_SUBDIRS test"
21470 # always make this, to install the ncurses-config script
21471 SRC_SUBDIRS="$SRC_SUBDIRS misc"
21472 if test "$cf_with_cxx_binding" != no; then
21473 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
21474 SRC_SUBDIRS="$SRC_SUBDIRS c++"
21477 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
21478 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
21481 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
21482 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
21483 ADA_SUBDIRS="gen src"
21484 if test "x$cf_with_tests" != "xno" ; then
21485 ADA_SUBDIRS="$ADA_SUBDIRS samples"
21490 for cf_dir in $SRC_SUBDIRS
21492 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
21495 if test -n "$ADA_SUBDIRS"; then
21496 for cf_dir in $ADA_SUBDIRS
21498 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
21503 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
21504 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
21505 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
21509 for cf_item in $cf_list_models
21513 libtool) cf_subdir='obj_lo' ;;
21514 normal) cf_subdir='objects' ;;
21515 debug) cf_subdir='obj_g' ;;
21516 profile) cf_subdir='obj_p' ;;
21518 case $cf_cv_system_name in #(vi
21520 cf_subdir='objects' ;;
21522 cf_subdir='obj_s' ;;
21526 for cf_item2 in $DIRS_TO_MAKE
21528 test $cf_item2 = $cf_subdir && break
21530 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
21532 for cf_dir in $DIRS_TO_MAKE
21534 test ! -d $cf_dir && mkdir $cf_dir
21537 # symbols that differ when compiling Ada95 by itself.
21538 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
21540 # values to use as strings
21542 cat >>confdefs.h <<EOF
21543 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
21546 cat >>confdefs.h <<EOF
21547 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
21550 ### Now that we're done running tests, add the compiler-warnings, if any
21555 cf_new_extra_cppflags=
21557 for cf_add_cflags in $EXTRA_CFLAGS
21559 case $cf_fix_cppflags in
21561 case $cf_add_cflags in #(vi
21562 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
21563 case $cf_add_cflags in
21565 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21567 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21568 && test -z "${cf_tst_cflags}" \
21569 && cf_fix_cppflags=yes
21571 if test $cf_fix_cppflags = yes ; then
21572 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21574 elif test "${cf_tst_cflags}" = "\"'" ; then
21575 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21580 case "$CPPFLAGS" in
21581 *$cf_add_cflags) #(vi
21584 case $cf_add_cflags in #(vi
21586 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21588 CPPFLAGS=`echo "$CPPFLAGS" | \
21589 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21590 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21594 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
21599 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
21604 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21606 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
21608 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21609 && test -z "${cf_tst_cflags}" \
21610 && cf_fix_cppflags=no
21615 if test -n "$cf_new_cflags" ; then
21617 CFLAGS="$CFLAGS $cf_new_cflags"
21620 if test -n "$cf_new_cppflags" ; then
21622 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
21625 if test -n "$cf_new_extra_cppflags" ; then
21627 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
21630 ### Define substitutions for header files to avoid name-pollution
21632 if test "x$cf_cv_have_tcgetattr" = xyes ; then
21638 if test "x$ac_cv_header_stdint_h" = xyes ; then
21644 if test "x$ac_cv_header_termio_h" = xyes ; then
21650 if test "x$ac_cv_header_termios_h" = xyes ; then
21656 ################################################################################
21657 test "x$use_database" = xyes && \
21658 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
21660 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
21661 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
21663 if test "x$enable_pc_files" = xyes ; then \
21664 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
21670 # Extract the first word of "tic", so it can be a program name with args.
21671 set dummy tic; ac_word=$2
21672 echo "$as_me:21672: checking for $ac_word" >&5
21673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21674 if test "${ac_cv_path_TIC_PATH+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
21682 ac_save_IFS=$IFS; IFS=$ac_path_separator
21683 ac_dummy="$PATH:/usr/local/ncurses/bin"
21684 for ac_dir in $ac_dummy; do
21686 test -z "$ac_dir" && ac_dir=.
21687 if $as_executable_p "$ac_dir/$ac_word"; then
21688 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
21689 echo "$as_me:21689: found $ac_dir/$ac_word" >&5
21694 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
21698 TIC_PATH=$ac_cv_path_TIC_PATH
21700 if test -n "$TIC_PATH"; then
21701 echo "$as_me:21701: result: $TIC_PATH" >&5
21702 echo "${ECHO_T}$TIC_PATH" >&6
21704 echo "$as_me:21704: result: no" >&5
21705 echo "${ECHO_T}no" >&6
21708 if test -n "$FALLBACK_LIST"
21710 if test "$TIC_PATH" = unknown
21712 { echo "$as_me:21712: WARNING: no tic program found for fallbacks" >&5
21713 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
21717 if test "x$cf_with_tests" != xno ; then
21723 ADAHTML_DIR=../../doc/html/ada
21725 # these could be configurable, but are not currently
21731 # workaround for g++ versus Solaris (20131116)
21732 case $cf_cv_system_name in #(vi
21734 case "x$CPPFLAGS" in #(vi
21735 *-D_XOPEN_SOURCE_EXTENDED*)
21736 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
21738 echo "${as_me:-configure}:21738: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
21740 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
21741 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
21747 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
21748 case "x$NCURSES_OSPEED" in #(vi
21757 cat >>confdefs.h <<EOF
21758 #define NCURSES_OSPEED_COMPAT $cf_compatible
21761 case "x$cf_cv_typeof_chtype" in
21763 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
21767 case "x$cf_cv_typeof_mmask_t" in
21769 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
21773 # substitute into misc/Makefile to suppress
21774 # (un)install.data from the
21775 # (un)install rules.
21776 if test "x$cf_with_db_install" = "xno"; then
21778 MISC_UNINSTALL_DATA=
21780 MISC_INSTALL_DATA=install.data
21781 MISC_UNINSTALL_DATA=uninstall.data
21786 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"
21787 ac_config_commands="$ac_config_commands default"
21788 cat >confcache <<\_ACEOF
21789 # This file is a shell script that caches the results of configure
21790 # tests run on this system so they can be shared between configure
21791 # scripts and configure runs, see configure's option --config-cache.
21792 # It is not useful on other systems. If it contains results you don't
21793 # want to keep, you may remove or edit it.
21795 # config.status only pays attention to the cache file if you give it
21796 # the --recheck option to rerun configure.
21798 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21799 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21800 # following values.
21804 # The following way of writing the cache mishandles newlines in values,
21805 # but we know of no workaround that is simple, portable, and efficient.
21806 # So, don't put newlines in cache variables' values.
21807 # Ultrix sh set writes to stderr and can't be redirected directly,
21808 # and sets the high bit in the cache file unless we assign to the vars.
21811 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21813 # `set' does not quote correctly, so add quotes (double-quote
21814 # substitution turns \\\\ into \\, and sed turns \\ into \).
21817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21820 # `set' quotes correctly as required by POSIX, so do not add quotes.
21822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21831 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21833 if cmp -s $cache_file confcache; then :; else
21834 if test -w $cache_file; then
21835 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21836 cat confcache >$cache_file
21838 echo "not updating unwritable cache $cache_file"
21843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21844 # Let make expand exec_prefix.
21845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21847 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21848 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21849 # trailing colons and then remove the whole line if VPATH becomes empty
21850 # (actually we leave an empty line to preserve line numbers).
21851 if test "x$srcdir" = x.; then
21852 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21853 s/:*\$(srcdir):*/:/;
21854 s/:*\${srcdir}:*/:/;
21856 s/^\([^=]*=[ ]*\):*/\1/;
21862 DEFS=-DHAVE_CONFIG_H
21864 : ${CONFIG_STATUS=./config.status}
21865 ac_clean_files_save=$ac_clean_files
21866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21867 { echo "$as_me:21867: creating $CONFIG_STATUS" >&5
21868 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21869 cat >$CONFIG_STATUS <<_ACEOF
21871 # Generated automatically by configure.
21872 # Run this file to recreate the current configuration.
21873 # Compiler output produced by configure, useful for debugging
21874 # configure, is in config.log if it exists.
21877 SHELL=\${CONFIG_SHELL-$SHELL}
21878 ac_cs_invocation="\$0 \$@"
21882 cat >>$CONFIG_STATUS <<\_ACEOF
21883 # Be Bourne compatible
21884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21887 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21891 # Name of the executable.
21892 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21894 if expr a : '\(a\)' >/dev/null 2>&1; then
21900 rm -f conf$$ conf$$.exe conf$$.file
21902 if ln -s conf$$.file conf$$ 2>/dev/null; then
21903 # We could just check for DJGPP; but this test a) works b) is more generic
21904 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21905 if test -f conf$$.exe; then
21906 # Don't use ln at all; we don't have any links
21911 elif ln conf$$.file conf$$ 2>/dev/null; then
21916 rm -f conf$$ conf$$.exe conf$$.file
21918 as_executable_p="test -f"
21920 # Support unset when possible.
21921 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21928 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
21929 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
21930 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
21931 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
21932 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
21933 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
21934 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
21935 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
21938 # We need space, tab and new line, in precisely that order.
21944 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
21950 # Files that config.status was made for.
21951 if test -n "$ac_config_files"; then
21952 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21955 if test -n "$ac_config_headers"; then
21956 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21959 if test -n "$ac_config_links"; then
21960 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21963 if test -n "$ac_config_commands"; then
21964 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21967 cat >>$CONFIG_STATUS <<\EOF
21970 \`$as_me' instantiates files from templates according to the
21971 current configuration.
21973 Usage: $0 [OPTIONS] [FILE]...
21975 -h, --help print this help, then exit
21976 -V, --version print version number, then exit
21977 -d, --debug don't remove temporary files
21978 --recheck update $as_me by reconfiguring in the same conditions
21979 --file=FILE[:TEMPLATE]
21980 instantiate the configuration file FILE
21981 --header=FILE[:TEMPLATE]
21982 instantiate the configuration header FILE
21984 Configuration files:
21987 Configuration headers:
21990 Configuration commands:
21993 Report bugs to <dickey@invisible-island.net>."
21996 cat >>$CONFIG_STATUS <<EOF
21999 configured by $0, generated by GNU Autoconf 2.52.20121002,
22000 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22002 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22003 Free Software Foundation, Inc.
22004 This config.status script is free software; the Free Software Foundation
22005 gives unlimited permission to copy, distribute and modify it."
22010 cat >>$CONFIG_STATUS <<\EOF
22011 # If no file are specified by the user, then we need to provide default
22012 # value. By we need to know if files were specified by the user.
22018 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22019 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22021 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22025 *) # This is not an option, so the user has probably given explicit
22027 ac_need_defaults=false;;
22031 # Handling of the options.
22033 cat >>$CONFIG_STATUS <<EOF
22034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22035 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22036 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22038 cat >>$CONFIG_STATUS <<\EOF
22039 --version | --vers* | -V )
22040 echo "$ac_cs_version"; exit 0 ;;
22042 # Conflict between --help and --header
22043 { { echo "$as_me:22043: error: ambiguous option: $1
22044 Try \`$0 --help' for more information." >&5
22045 echo "$as_me: error: ambiguous option: $1
22046 Try \`$0 --help' for more information." >&2;}
22047 { (exit 1); exit 1; }; };;
22048 --help | --hel | -h )
22049 echo "$ac_cs_usage"; exit 0 ;;
22050 --debug | --d* | -d )
22052 --file | --fil | --fi | --f )
22054 CONFIG_FILES="$CONFIG_FILES $1"
22055 ac_need_defaults=false;;
22056 --header | --heade | --head | --hea )
22058 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22059 ac_need_defaults=false;;
22061 # This is an error.
22062 -*) { { echo "$as_me:22062: error: unrecognized option: $1
22063 Try \`$0 --help' for more information." >&5
22064 echo "$as_me: error: unrecognized option: $1
22065 Try \`$0 --help' for more information." >&2;}
22066 { (exit 1); exit 1; }; } ;;
22068 *) ac_config_targets="$ac_config_targets $1" ;;
22077 ## ----------------------- ##
22078 ## Running config.status. ##
22079 ## ----------------------- ##
22081 This file was extended by $as_me 2.52.20121002, executed with
22082 CONFIG_FILES = $CONFIG_FILES
22083 CONFIG_HEADERS = $CONFIG_HEADERS
22084 CONFIG_LINKS = $CONFIG_LINKS
22085 CONFIG_COMMANDS = $CONFIG_COMMANDS
22086 > $ac_cs_invocation
22087 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22092 cat >>$CONFIG_STATUS <<EOF
22094 # INIT-COMMANDS section.
22097 ### Special initialization commands, used to pass information from the
22098 ### configuration-run into config.status
22101 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
22102 DFT_LWR_MODEL="$DFT_LWR_MODEL"
22104 LDCONFIG="$LDCONFIG"
22105 LIBTOOL_VERSION="$LIBTOOL_VERSION"
22106 LIB_NAME="$LIB_NAME"
22107 LIB_PREFIX="$LIB_PREFIX"
22108 LIB_SUBSETS="$LIB_SUBSETS"
22109 LIB_SUFFIX="$LIB_SUFFIX"
22110 LIB_TRACING="$LIB_TRACING"
22112 MAKE_TERMINFO="$MAKE_TERMINFO"
22113 NCURSES_MAJOR="$NCURSES_MAJOR"
22114 NCURSES_MINOR="$NCURSES_MINOR"
22115 NCURSES_OSPEED="$NCURSES_OSPEED"
22116 NCURSES_PATCH="$NCURSES_PATCH"
22117 SRC_SUBDIRS="$SRC_SUBDIRS"
22118 TERMINFO="$TERMINFO"
22119 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
22120 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
22121 TICS_NAME="$TICS_NAME"
22122 TIC_PATH="$TIC_PATH"
22123 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
22124 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
22125 TINFO_NAME="$TINFO_NAME"
22126 TINFO_SUFFIX="$TINFO_SUFFIX"
22127 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
22128 WITH_CURSES_H="$with_curses_h"
22129 WITH_ECHO="${enable_echo:=yes}"
22130 WITH_OVERWRITE="$with_overwrite"
22131 cf_LIST_MODELS="$cf_list_models"
22132 cf_cv_abi_version="$cf_cv_abi_version"
22133 cf_cv_do_relink="$cf_cv_do_relink"
22134 cf_cv_do_symlinks="$cf_cv_do_symlinks"
22135 cf_cv_enable_lp64="$cf_cv_enable_lp64"
22136 cf_cv_enable_opaque="$cf_cv_enable_opaque"
22137 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
22138 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
22139 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
22140 cf_cv_rel_version="$cf_cv_rel_version"
22141 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
22142 cf_cv_shared_soname='$cf_cv_shared_soname'
22143 cf_cv_shlib_version="$cf_cv_shlib_version"
22144 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
22145 cf_cv_system_name="$cf_cv_system_name"
22146 cf_cv_term_driver="$with_term_driver"
22147 cf_with_ada="$cf_with_ada"
22148 cf_with_cxx_binding="$cf_with_cxx_binding"
22149 cf_with_db_install="$cf_with_db_install"
22150 cf_with_manpages="$cf_with_manpages"
22151 cf_with_tests="$cf_with_tests"
22152 with_shared_cxx="$with_shared_cxx"
22158 cat >>$CONFIG_STATUS <<\EOF
22159 for ac_config_target in $ac_config_targets
22161 case "$ac_config_target" in
22162 # Handling of arguments.
22163 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
22164 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
22165 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
22166 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
22167 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
22168 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
22169 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
22170 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22171 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22172 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
22173 *) { { echo "$as_me:22173: error: invalid argument: $ac_config_target" >&5
22174 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22175 { (exit 1); exit 1; }; };;
22179 # If the user did not use the arguments to specify the items to instantiate,
22180 # then the envvar interface is used. Set only those that are not.
22181 # We use the long form for the default assignment because of an extremely
22182 # bizarre bug on SunOS 4.1.3.
22183 if $ac_need_defaults; then
22184 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22185 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22189 # Create a temporary directory, and hook for its removal unless debugging.
22192 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22193 trap '{ (exit 1); exit 1; }' 1 2 13 15
22196 # Create a (secure) tmp directory for tmp files.
22199 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
22200 test -n "$tmp" && test -d "$tmp"
22203 tmp=$TMPDIR/cs$$-$RANDOM
22204 (umask 077 && mkdir $tmp)
22207 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
22208 { (exit 1); exit 1; }
22213 cat >>$CONFIG_STATUS <<EOF
22216 # CONFIG_FILES section.
22219 # No need to generate the scripts if there are no CONFIG_FILES.
22220 # This happens for instance when ./config.status config.h
22221 if test -n "\$CONFIG_FILES"; then
22222 # Protect against being on the right side of a sed subst in config.status.
22223 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22224 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22225 s,@SHELL@,$SHELL,;t t
22226 s,@exec_prefix@,$exec_prefix,;t t
22227 s,@prefix@,$prefix,;t t
22228 s,@program_transform_name@,$program_transform_name,;t t
22229 s,@bindir@,$bindir,;t t
22230 s,@sbindir@,$sbindir,;t t
22231 s,@libexecdir@,$libexecdir,;t t
22232 s,@datarootdir@,$datarootdir,;t t
22233 s,@datadir@,$datadir,;t t
22234 s,@sysconfdir@,$sysconfdir,;t t
22235 s,@sharedstatedir@,$sharedstatedir,;t t
22236 s,@localstatedir@,$localstatedir,;t t
22237 s,@libdir@,$libdir,;t t
22238 s,@includedir@,$includedir,;t t
22239 s,@oldincludedir@,$oldincludedir,;t t
22240 s,@infodir@,$infodir,;t t
22241 s,@mandir@,$mandir,;t t
22242 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22243 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22244 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22245 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22246 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22247 s,@build_alias@,$build_alias,;t t
22248 s,@host_alias@,$host_alias,;t t
22249 s,@target_alias@,$target_alias,;t t
22250 s,@ECHO_C@,$ECHO_C,;t t
22251 s,@ECHO_N@,$ECHO_N,;t t
22252 s,@ECHO_T@,$ECHO_T,;t t
22253 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22254 s,@DEFS@,$DEFS,;t t
22255 s,@LIBS@,$LIBS,;t t
22256 s,@top_builddir@,$top_builddir,;t t
22257 s,@EGREP@,$EGREP,;t t
22258 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
22259 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
22260 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
22261 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
22262 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
22263 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
22264 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
22265 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
22266 s,@build@,$build,;t t
22267 s,@build_cpu@,$build_cpu,;t t
22268 s,@build_vendor@,$build_vendor,;t t
22269 s,@build_os@,$build_os,;t t
22270 s,@host@,$host,;t t
22271 s,@host_cpu@,$host_cpu,;t t
22272 s,@host_vendor@,$host_vendor,;t t
22273 s,@host_os@,$host_os,;t t
22274 s,@target@,$target,;t t
22275 s,@target_cpu@,$target_cpu,;t t
22276 s,@target_vendor@,$target_vendor,;t t
22277 s,@target_os@,$target_os,;t t
22279 s,@CFLAGS@,$CFLAGS,;t t
22280 s,@LDFLAGS@,$LDFLAGS,;t t
22281 s,@CPPFLAGS@,$CPPFLAGS,;t t
22282 s,@ac_ct_CC@,$ac_ct_CC,;t t
22283 s,@EXEEXT@,$EXEEXT,;t t
22284 s,@OBJEXT@,$OBJEXT,;t t
22285 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
22287 s,@LDCONFIG@,$LDCONFIG,;t t
22289 s,@CXXFLAGS@,$CXXFLAGS,;t t
22290 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22292 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22293 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22294 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22295 s,@LINT@,$LINT,;t t
22296 s,@LINT_OPTS@,$LINT_OPTS,;t t
22297 s,@LN_S@,$LN_S,;t t
22298 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22299 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22300 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
22301 s,@SET_MAKE@,$SET_MAKE,;t t
22302 s,@CTAGS@,$CTAGS,;t t
22303 s,@ETAGS@,$ETAGS,;t t
22304 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
22305 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
22306 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
22307 s,@RANLIB@,$RANLIB,;t t
22308 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22310 s,@ac_ct_LD@,$ac_ct_LD,;t t
22312 s,@ac_ct_AR@,$ac_ct_AR,;t t
22314 s,@ac_ct_NM@,$ac_ct_NM,;t t
22315 s,@ARFLAGS@,$ARFLAGS,;t t
22316 s,@DESTDIR@,$DESTDIR,;t t
22317 s,@BUILD_CC@,$BUILD_CC,;t t
22318 s,@BUILD_CPP@,$BUILD_CPP,;t t
22319 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
22320 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
22321 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
22322 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
22323 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
22324 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
22325 s,@cf_list_models@,$cf_list_models,;t t
22326 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
22327 s,@LIBTOOL@,$LIBTOOL,;t t
22328 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
22329 s,@LT_UNDEF@,$LT_UNDEF,;t t
22330 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
22331 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
22332 s,@LIB_CREATE@,$LIB_CREATE,;t t
22333 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
22334 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
22335 s,@LIB_PREP@,$LIB_PREP,;t t
22336 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
22337 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
22338 s,@LIB_LINK@,$LIB_LINK,;t t
22339 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
22340 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
22341 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
22342 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
22343 s,@TICS_NAME@,$TICS_NAME,;t t
22344 s,@TINFO_NAME@,$TINFO_NAME,;t t
22345 s,@LIB_NAME@,$LIB_NAME,;t t
22346 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
22347 s,@CC_G_OPT@,$CC_G_OPT,;t t
22348 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
22349 s,@LD_MODEL@,$LD_MODEL,;t t
22350 s,@shlibdir@,$shlibdir,;t t
22351 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
22352 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
22353 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
22354 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
22355 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
22356 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
22357 s,@LINK_PROGS@,$LINK_PROGS,;t t
22358 s,@LINK_TESTS@,$LINK_TESTS,;t t
22359 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
22360 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22361 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
22362 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
22363 s,@RPATH_LIST@,$RPATH_LIST,;t t
22364 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
22365 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
22366 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
22367 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
22368 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
22369 s,@XTERM_KBS@,$XTERM_KBS,;t t
22370 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
22371 s,@TERMINFO@,$TERMINFO,;t t
22372 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
22373 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
22374 s,@TERMPATH@,$TERMPATH,;t t
22375 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
22376 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
22377 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
22378 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
22379 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
22380 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
22381 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
22382 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
22383 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
22384 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
22385 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
22386 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
22387 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
22388 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
22389 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
22390 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
22391 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
22392 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
22393 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
22394 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
22395 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
22396 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
22397 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
22398 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
22399 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
22400 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
22401 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
22402 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
22403 s,@PTHREAD@,$PTHREAD,;t t
22404 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
22405 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
22406 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
22407 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
22408 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
22409 s,@ECHO_LT@,$ECHO_LT,;t t
22410 s,@ECHO_LD@,$ECHO_LD,;t t
22411 s,@RULE_CC@,$RULE_CC,;t t
22412 s,@SHOW_CC@,$SHOW_CC,;t t
22413 s,@ECHO_CC@,$ECHO_CC,;t t
22414 s,@ECHO_LINK@,$ECHO_LINK,;t t
22415 s,@ADAFLAGS@,$ADAFLAGS,;t t
22416 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
22417 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
22418 s,@ADA_TRACE@,$ADA_TRACE,;t t
22419 s,@MATH_LIB@,$MATH_LIB,;t t
22420 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
22421 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
22422 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
22423 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
22424 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
22425 s,@TEST_LIBS@,$TEST_LIBS,;t t
22426 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
22427 s,@CXXCPP@,$CXXCPP,;t t
22428 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
22429 s,@CXX_AR@,$CXX_AR,;t t
22430 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
22431 s,@CXXLIBS@,$CXXLIBS,;t t
22432 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
22433 s,@gnat_exists@,$gnat_exists,;t t
22434 s,@M4_exists@,$M4_exists,;t t
22435 s,@cf_ada_make@,$cf_ada_make,;t t
22436 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
22437 s,@cf_compile_generics@,$cf_compile_generics,;t t
22438 s,@cf_generic_objects@,$cf_generic_objects,;t t
22439 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
22440 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
22441 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
22442 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
22443 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
22444 s,@cf_ada_package@,$cf_ada_package,;t t
22445 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
22446 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
22447 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
22448 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
22449 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
22450 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
22451 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
22452 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
22453 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
22454 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
22455 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
22456 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
22457 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
22458 s,@TICS_LIBS@,$TICS_LIBS,;t t
22459 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
22460 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
22461 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
22462 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
22463 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
22464 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
22465 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
22466 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
22467 s,@includesubdir@,$includesubdir,;t t
22468 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
22469 s,@TICS_LIST@,$TICS_LIST,;t t
22470 s,@TINFO_LIST@,$TINFO_LIST,;t t
22471 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
22472 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
22473 s,@TEST_ARGS@,$TEST_ARGS,;t t
22474 s,@TEST_DEPS@,$TEST_DEPS,;t t
22475 s,@TEST_ARG2@,$TEST_ARG2,;t t
22476 s,@TEST_DEP2@,$TEST_DEP2,;t t
22477 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
22478 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
22479 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
22480 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
22481 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
22482 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22483 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
22484 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
22485 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
22486 s,@cross_compiling@,$cross_compiling,;t t
22487 s,@TIC_PATH@,$TIC_PATH,;t t
22488 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
22489 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
22490 s,@PANEL_NAME@,$PANEL_NAME,;t t
22491 s,@MENU_NAME@,$MENU_NAME,;t t
22492 s,@FORM_NAME@,$FORM_NAME,;t t
22493 s,@CXX_NAME@,$CXX_NAME,;t t
22494 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
22495 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
22500 cat >>$CONFIG_STATUS <<\EOF
22501 # Split the substitutions into bite-sized pieces for seds with
22502 # small command number limits, like on Digital OSF/1 and HP-UX.
22503 ac_max_sed_lines=48
22504 ac_sed_frag=1 # Number of current file.
22505 ac_beg=1 # First line for current file.
22506 ac_end=$ac_max_sed_lines # Line after last line for current file.
22509 while $ac_more_lines; do
22510 if test $ac_beg -gt 1; then
22511 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22513 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22515 if test ! -s $tmp/subs.frag; then
22516 ac_more_lines=false
22518 # The purpose of the label and of the branching condition is to
22519 # speed up the sed processing (if there are no `@' at all, there
22520 # is no need to browse any of the substitutions).
22521 # These are the two extra sed commands mentioned above.
22523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22524 if test -z "$ac_sed_cmds"; then
22525 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22527 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22529 ac_sed_frag=`expr $ac_sed_frag + 1`
22531 ac_end=`expr $ac_end + $ac_max_sed_lines`
22534 if test -z "$ac_sed_cmds"; then
22537 fi # test -n "$CONFIG_FILES"
22540 cat >>$CONFIG_STATUS <<\EOF
22541 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22544 - | *:- | *:-:* ) # input from stdin
22546 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22548 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22550 * ) ac_file_in=$ac_file.in ;;
22553 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22554 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22555 X"$ac_file" : 'X\(//\)[^/]' \| \
22556 X"$ac_file" : 'X\(//\)$' \| \
22557 X"$ac_file" : 'X\(/\)' \| \
22558 . : '\(.\)' 2>/dev/null ||
22560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22562 /^X\(\/\/\)$/{ s//\1/; q; }
22563 /^X\(\/\).*/{ s//\1/; q; }
22565 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22566 { case "$ac_dir" in
22567 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22571 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22572 case $as_mkdir_dir in
22573 # Skip DOS drivespec
22574 ?:) as_incr_dir=$as_mkdir_dir ;;
22576 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22577 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22582 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
22583 # A "../" for each directory in $ac_dir_suffix.
22584 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
22586 ac_dir_suffix= ac_dots=
22591 if test -z "$ac_dots"; then
22594 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
22596 [\\/]* | ?:[\\/]* )
22597 ac_srcdir=$srcdir$ac_dir_suffix;
22598 ac_top_srcdir=$srcdir ;;
22599 *) # Relative path.
22600 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
22601 ac_top_srcdir=$ac_dots$srcdir ;;
22605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22606 *) ac_INSTALL=$ac_dots$INSTALL ;;
22609 if test x"$ac_file" != x-; then
22610 { echo "$as_me:22610: creating $ac_file" >&5
22611 echo "$as_me: creating $ac_file" >&6;}
22614 # Let's still pretend it is `configure' which instantiates (i.e., don't
22615 # use $as_me), people would be surprised to read:
22616 # /* config.h. Generated automatically by config.status. */
22617 configure_input="Generated automatically from `echo $ac_file_in |
22618 sed 's,.*/,,'` by configure."
22620 # First look for the input files in the build tree, otherwise in the
22622 ac_file_inputs=`IFS=:
22623 for f in $ac_file_in; do
22625 -) echo $tmp/stdin ;;
22627 # Absolute (can't be DOS-style, as IFS=:)
22628 test -f "$f" || { { echo "$as_me:22628: error: cannot find input file: $f" >&5
22629 echo "$as_me: error: cannot find input file: $f" >&2;}
22630 { (exit 1); exit 1; }; }
22633 if test -f "$f"; then
22636 elif test -f "$srcdir/$f"; then
22641 { { echo "$as_me:22641: error: cannot find input file: $f" >&5
22642 echo "$as_me: error: cannot find input file: $f" >&2;}
22643 { (exit 1); exit 1; }; }
22646 done` || { (exit 1); exit 1; }
22648 cat >>$CONFIG_STATUS <<\EOF
22649 ac_warn_datarootdir=no
22650 if test x"$ac_file" != x-; then
22651 for ac_item in $ac_file_inputs
22653 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
22654 if test -n "$ac_seen"; then
22655 ac_used=`grep '@datarootdir@' $ac_item`
22656 if test -z "$ac_used"; then
22657 { echo "$as_me:22657: WARNING: datarootdir was used implicitly but not set:
22659 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
22661 ac_warn_datarootdir=yes
22664 ac_seen=`grep '${datarootdir}' $ac_item`
22665 if test -n "$ac_seen"; then
22666 { echo "$as_me:22666: WARNING: datarootdir was used explicitly but not set:
22668 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
22670 ac_warn_datarootdir=yes
22675 if test "x$ac_warn_datarootdir" = xyes; then
22676 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
22680 cat >>$CONFIG_STATUS <<EOF
22684 cat >>$CONFIG_STATUS <<\EOF
22686 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22687 s,@configure_input@,$configure_input,;t t
22688 s,@srcdir@,$ac_srcdir,;t t
22689 s,@top_srcdir@,$ac_top_srcdir,;t t
22690 s,@INSTALL@,$ac_INSTALL,;t t
22691 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22693 if test x"$ac_file" != x-; then
22694 cp $tmp/out $ac_file
22696 for ac_name in prefix exec_prefix datarootdir
22698 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
22699 if test -n "$ac_seen"; then
22700 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
22701 if test -z "$ac_init"; then
22702 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
22703 { echo "$as_me:22703: WARNING: Variable $ac_name is used but was not set:
22705 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
22710 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
22711 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
22712 if test -s $tmp/out; then
22713 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
22714 { echo "$as_me:22714: WARNING: Some variables may not be substituted:
22716 echo "$as_me: WARNING: Some variables may not be substituted:
22726 cat >>$CONFIG_STATUS <<\EOF
22729 # CONFIG_HEADER section.
22732 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22733 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22735 # ac_d sets the value in "#define NAME VALUE" lines.
22736 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22737 ac_dB='[ ].*$,\1#\2'
22740 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22741 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22742 ac_iB='\([ ]\),\1#\2define\3'
22745 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22746 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22747 ac_uB='$,\1#\2define\3'
22751 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22754 - | *:- | *:-:* ) # input from stdin
22756 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22758 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22760 * ) ac_file_in=$ac_file.in ;;
22763 test x"$ac_file" != x- && { echo "$as_me:22763: creating $ac_file" >&5
22764 echo "$as_me: creating $ac_file" >&6;}
22766 # First look for the input files in the build tree, otherwise in the
22768 ac_file_inputs=`IFS=:
22769 for f in $ac_file_in; do
22771 -) echo $tmp/stdin ;;
22773 # Absolute (can't be DOS-style, as IFS=:)
22774 test -f "$f" || { { echo "$as_me:22774: error: cannot find input file: $f" >&5
22775 echo "$as_me: error: cannot find input file: $f" >&2;}
22776 { (exit 1); exit 1; }; }
22779 if test -f "$f"; then
22782 elif test -f "$srcdir/$f"; then
22787 { { echo "$as_me:22787: error: cannot find input file: $f" >&5
22788 echo "$as_me: error: cannot find input file: $f" >&2;}
22789 { (exit 1); exit 1; }; }
22792 done` || { (exit 1); exit 1; }
22793 # Remove the trailing spaces.
22794 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22798 # Transform confdefs.h into a list of #define's. We won't use it as a sed
22799 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
22800 # be either 'cat' or 'sort'.
22801 cat confdefs.h | uniq >conftest.vals
22803 # Break up conftest.vals because some shells have a limit on
22804 # the size of here documents, and old seds have small limits too.
22806 rm -f conftest.tail
22807 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
22808 while grep . conftest.vals >/dev/null
22810 # Write chunks of a limited-size here document to conftest.frag.
22811 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
22812 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
22813 echo 'CEOF' >> $CONFIG_STATUS
22814 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22815 rm -f conftest.vals
22816 mv conftest.tail conftest.vals
22818 rm -f conftest.vals
22820 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
22822 echo ' cat >> conftest.edit <<CEOF
22823 /@DEFS@/r conftest.frag
22826 sed -f conftest.edit $tmp/in > $tmp/out
22828 mv $tmp/out $tmp/in
22829 rm -f conftest.edit conftest.frag
22830 ' >> $CONFIG_STATUS
22832 cat >>$CONFIG_STATUS <<\EOF
22833 # Let's still pretend it is `configure' which instantiates (i.e., don't
22834 # use $as_me), people would be surprised to read:
22835 # /* config.h. Generated automatically by config.status. */
22836 if test x"$ac_file" = x-; then
22837 echo "/* Generated automatically by configure. */" >$tmp/config.h
22839 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
22841 cat $tmp/in >>$tmp/config.h
22843 if test x"$ac_file" != x-; then
22844 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22845 { echo "$as_me:22845: $ac_file is unchanged" >&5
22846 echo "$as_me: $ac_file is unchanged" >&6;}
22848 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22849 X"$ac_file" : 'X\(//\)[^/]' \| \
22850 X"$ac_file" : 'X\(//\)$' \| \
22851 X"$ac_file" : 'X\(/\)' \| \
22852 . : '\(.\)' 2>/dev/null ||
22854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22856 /^X\(\/\/\)$/{ s//\1/; q; }
22857 /^X\(\/\).*/{ s//\1/; q; }
22859 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22860 { case "$ac_dir" in
22861 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22865 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22866 case $as_mkdir_dir in
22867 # Skip DOS drivespec
22868 ?:) as_incr_dir=$as_mkdir_dir ;;
22870 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22871 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22878 mv $tmp/config.h $ac_file
22882 rm -f $tmp/config.h
22886 cat >>$CONFIG_STATUS <<\EOF
22888 # CONFIG_COMMANDS section.
22890 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22891 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22892 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22896 if test "x$cf_with_tests" != xno ; then
22900 if test ! -d $srcdir/$cf_dir; then
22902 elif test -f $srcdir/$cf_dir/programs; then
22903 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
22909 cf_prefix=$LIB_PREFIX
22911 case $cf_cv_shlib_version in #(vi
22912 cygdll|msysdll|mingw)
22913 TINFO_NAME=$TINFO_ARG_SUFFIX
22918 if test -n "$TINFO_SUFFIX" ; then
22919 case $TINFO_SUFFIX in
22921 TINFO_NAME="${TINFO_NAME}tw"
22922 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
22925 TINFO_NAME="${TINFO_NAME}t"
22926 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
22929 TINFO_NAME="${TINFO_NAME}w"
22930 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
22935 for cf_dir in $SRC_SUBDIRS
22937 if test ! -d $srcdir/$cf_dir ; then
22939 elif test -f $srcdir/$cf_dir/modules; then
22943 for cf_item in $cf_LIST_MODELS
22946 case X$cf_item in #(vi
22949 cf_depsuf=$cf_suffix
22953 cf_depsuf=$cf_suffix
22957 cf_depsuf=$cf_suffix
22960 case $cf_cv_system_name in
22963 cf_depsuf=$cf_suffix
22965 cygwin*|msys*|mingw*) #(vi
22971 cf_depsuf=$cf_suffix
22977 cf_depsuf=$cf_suffix
22981 cf_depsuf=$cf_suffix
22987 cf_depsuf=$cf_suffix
22993 cf_depsuf=$cf_suffix
22996 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
22997 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
23000 test "$cf_dir" = c++ && cf_libname=ncurses++
23001 if test $cf_item = shared ; then
23002 if test -n "${LIB_SUFFIX}"
23004 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${LIB_SUFFIX}"'//'`
23006 cf_shared_suffix="$cf_suffix"
23008 if test "$cf_cv_do_symlinks" = yes ; then
23011 case "$cf_cv_shlib_version" in #(vi
23013 cf_version_name=REL_VERSION
23016 cf_version_name=ABI_VERSION
23020 if test -n "$cf_version_name"
23022 case "$cf_cv_system_name" in #(vi
23025 cf_suffix="${LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
23028 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
23032 if test -n "${LIB_SUFFIX}"
23034 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${LIB_SUFFIX}"'//'`
23036 cf_shared_suffix="$cf_suffix"
23039 # cygwin needs import library, and has unique naming convention
23040 # use autodetected ${cf_prefix} for import lib and static lib, but
23041 # use 'cyg' prefix for shared lib.
23042 case $cf_cv_shlib_version in #(vi
23044 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23045 Libs_To_Make="$Libs_To_Make ../lib/cyg${cf_libname}${cf_cygsuf}"
23049 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23050 Libs_To_Make="$Libs_To_Make ../lib/msys-${cf_libname}${cf_cygsuf}"
23054 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23055 Libs_To_Make="$Libs_To_Make ../lib/lib${cf_libname}${cf_cygsuf}"
23060 Libs_To_Make="$Libs_To_Make ../lib/${cf_prefix}${cf_libname}${cf_suffix}"
23063 if test $cf_dir = ncurses ; then
23064 cf_subsets="$LIB_SUBSETS"
23065 cf_r_parts="$cf_subsets"
23066 cf_liblist="$Libs_To_Make"
23068 while test -n "$cf_r_parts"
23070 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
23071 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
23072 if test "$cf_l_parts" != "$cf_r_parts" ; then
23074 case $cf_l_parts in #(vi
23076 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
23079 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
23085 if test -n "$cf_item"; then
23086 Libs_To_Make="$cf_item $Libs_To_Make"
23093 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
23096 if test $cf_dir = c++; then
23097 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
23099 for cf_item in $Libs_To_Make
23105 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
23108 for cf_test in $cf_list
23110 if test "$cf_test" = "$cf_item"
23112 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
23117 test -n "$cf_item" && cf_list="$cf_list $cf_item"
23119 Libs_To_Make="$cf_list"
23123 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
23124 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
23125 $cf_dir/Makefile >$cf_dir/Makefile.out
23126 mv $cf_dir/Makefile.out $cf_dir/Makefile
23128 $AWK -f $srcdir/mk-0th.awk \
23129 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
23130 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23132 for cf_subset in $cf_subsets
23135 for cf_item in $cf_LIST_MODELS
23138 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
23140 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23143 if test "$CXX_MODEL" = SHARED; then
23144 case $cf_cv_shlib_version in #(vi
23145 cygdll|msysdll|mingw) #(vi
23146 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
23148 echo "${as_me:-configure}:23148: testing overriding CXX_MODEL to SHARED ..." 1>&5
23150 with_shared_cxx=yes
23153 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
23158 case X$cf_item in #(vi
23161 cf_depsuf=$cf_suffix
23165 cf_depsuf=$cf_suffix
23169 cf_depsuf=$cf_suffix
23172 case $cf_cv_system_name in
23175 cf_depsuf=$cf_suffix
23177 cygwin*|msys*|mingw*) #(vi
23183 cf_depsuf=$cf_suffix
23189 cf_depsuf=$cf_suffix
23193 cf_depsuf=$cf_suffix
23199 cf_depsuf=$cf_suffix
23205 cf_depsuf=$cf_suffix
23208 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
23209 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
23212 libtool) cf_subdir='obj_lo' ;;
23213 normal) cf_subdir='objects' ;;
23214 debug) cf_subdir='obj_g' ;;
23215 profile) cf_subdir='obj_p' ;;
23217 case $cf_cv_system_name in #(vi
23219 cf_subdir='objects' ;;
23221 cf_subdir='obj_s' ;;
23225 # Test for case where we build libtinfo with a different name.
23227 if test $cf_dir = ncurses ; then
23230 cf_libname=${cf_libname}$LIB_SUFFIX
23233 cf_libname=$TINFO_LIB_SUFFIX
23236 cf_libname=$TICS_LIB_SUFFIX
23239 elif test $cf_dir = c++ ; then
23240 cf_libname=ncurses++$LIB_SUFFIX
23242 cf_libname=${cf_libname}$LIB_SUFFIX
23244 if test -n "${DFT_ARG_SUFFIX}" ; then
23245 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
23246 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
23249 # These dependencies really are for development, not
23250 # builds, but they are useful in porting, too.
23251 cf_depend="../include/ncurses_cfg.h"
23252 if test "$srcdir" = "."; then
23255 cf_reldir="\${srcdir}"
23258 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
23259 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
23260 elif test -f $srcdir/$cf_dir/curses.priv.h; then
23261 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
23265 old_cf_suffix="$cf_suffix"
23266 if test "$cf_cv_shlib_version_infix" = yes ; then
23267 if test -n "$LIB_SUFFIX" ; then
23268 case $LIB_SUFFIX in
23270 cf_libname=`echo $cf_libname | sed 's/tw$//'`
23271 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
23275 cf_libname=`echo $cf_libname | sed 's/t$//'`
23276 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
23280 cf_libname=`echo $cf_libname | sed 's/w$//'`
23281 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
23288 $AWK -f $srcdir/mk-1st.awk \
23289 name=${cf_libname}${cf_dir_suffix} \
23290 traces=$LIB_TRACING \
23292 CXX_MODEL=$CXX_MODEL \
23294 prefix=$cf_prefix \
23295 suffix=$cf_suffix \
23296 subset=$cf_subset \
23297 driver=$cf_cv_term_driver \
23299 TermlibRoot=$TINFO_NAME \
23300 TermlibSuffix=$TINFO_SUFFIX \
23301 ShlibVer=$cf_cv_shlib_version \
23302 ShlibVerInfix=$cf_cv_shlib_version_infix \
23303 ReLink=${cf_cv_do_relink:-no} \
23304 DoLinks=$cf_cv_do_symlinks \
23305 rmSoLocs=$cf_cv_rm_so_locs \
23306 ldconfig="$LDCONFIG" \
23307 overwrite=$WITH_OVERWRITE \
23308 depend="$cf_depend" \
23310 libtool_version="$LIBTOOL_VERSION" \
23311 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23313 cf_suffix="$old_cf_suffix"
23315 for cf_subdir2 in $cf_subdirs lib
23317 test $cf_subdir = $cf_subdir2 && break
23319 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
23320 $AWK -f $srcdir/mk-2nd.awk \
23322 traces=$LIB_TRACING \
23325 subset=$cf_subset \
23328 crenames=$cf_cv_prog_CC_c_o \
23329 cxxrenames=$cf_cv_prog_CXX_c_o \
23330 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23331 cf_subdirs="$cf_subdirs $cf_subdir"
23336 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
23339 for cf_dir in $SRC_SUBDIRS
23341 if test ! -d $srcdir/$cf_dir ; then
23345 if test -f $cf_dir/Makefile ; then
23348 echo 'libs \' >> Makefile
23349 echo 'install.libs \' >> Makefile
23350 echo 'uninstall.libs ::' >> Makefile
23351 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
23356 if test -f $srcdir/$cf_dir/modules; then
23358 if test -f $srcdir/$cf_dir/headers; then
23359 cat >> Makefile <<CF_EOF
23360 install.includes \\
23361 uninstall.includes \\
23364 if test "$cf_dir" != "c++" ; then
23365 echo 'lint \' >> Makefile
23367 cat >> Makefile <<CF_EOF
23373 uninstall.$cf_dir ::
23374 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
23376 elif test -f $srcdir/$cf_dir/headers; then
23377 cat >> Makefile <<CF_EOF
23382 install.includes \\
23383 uninstall.includes ::
23384 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
23389 if test "x$cf_with_db_install" = xyes; then
23390 cat >> Makefile <<CF_EOF
23392 install.libs uninstall.libs \\
23393 install.data uninstall.data ::
23394 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
23397 cat >> Makefile <<CF_EOF
23399 install.libs uninstall.libs ::
23400 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
23404 if test "x$cf_with_manpages" = xyes; then
23405 cat >> Makefile <<CF_EOF
23409 cd man && \${MAKE} \${TOP_MFLAGS} \$@
23413 cat >> Makefile <<CF_EOF
23416 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
23417 rm -f headers.sh headers.sed mk_shared_lib.sh
23418 rm -f edit_man.* man_alias.*
23419 rm -rf \${DIRS_TO_MAKE}
23422 # Special case: tack's manpage lives in its own directory.
23423 if test "x$cf_with_manpages" = xyes; then
23424 if test -d tack ; then
23425 if test -f $srcdir/$tack.h; then
23426 cat >> Makefile <<CF_EOF
23430 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
23436 rm -f headers.sed headers.sh
23438 echo creating headers.sh
23439 cat >headers.sh <<CF_EOF
23441 # This shell script is generated by the 'configure' script. It is invoked in a
23442 # subdirectory of the build tree. It generates a sed-script in the parent
23443 # directory that is used to adjust includes for header files that reside in a
23444 # subdirectory of /usr/include, etc.
23446 while test \$# != 3
23448 PRG="\$PRG \$1"; shift
23453 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
23454 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
23455 echo installing \$SRC in \$DST
23458 if test $WITH_CURSES_H = yes; then
23459 cat >>headers.sh <<CF_EOF
23462 END=\`basename \$DST\`
23463 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
23465 NAME=\`basename \$i\`
23466 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
23470 echo "" >> \$TMPSED
23476 cat >>headers.sh <<CF_EOF
23479 END=\`basename \$DST\`
23480 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
23482 NAME=\`basename \$i\`
23483 if test "\$NAME" = "curses.h"
23485 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
23488 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
23492 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
23497 cat >>headers.sh <<CF_EOF
23499 sed -f \$TMPSED \$SRC > \$TMPSRC
23500 NAME=\`basename \$SRC\`
23502 if test $WITH_CURSES_H != yes; then
23503 cat >>headers.sh <<CF_EOF
23504 test "\$NAME" = "curses.h" && NAME=ncurses.h
23507 cat >>headers.sh <<CF_EOF
23508 # Just in case someone gzip'd manpages, remove the conflicting copy.
23509 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
23511 eval \$PRG \$TMPSRC \$DST/\$NAME
23512 rm -f \$TMPSRC \$TMPSED
23515 chmod 0755 headers.sh
23517 for cf_dir in $SRC_SUBDIRS
23519 if test ! -d $srcdir/$cf_dir ; then
23523 if test -f $srcdir/$cf_dir/headers; then
23524 $AWK -f $srcdir/mk-hdr.awk \
23525 subset="$LIB_SUBSETS" \
23526 compat="$WITH_CURSES_H" \
23527 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
23530 if test -f $srcdir/$cf_dir/modules; then
23531 if test "$cf_dir" != "c++" ; then
23532 cat >>$cf_dir/Makefile <<"CF_EOF"
23533 depend : ${AUTO_SRC}
23534 makedepend -- ${CPPFLAGS} -- ${C_SRC}
23536 # DO NOT DELETE THIS LINE -- make depend depends on it.
23542 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
23543 if test -z "$USE_OLD_MAKERULES" ; then
23544 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
23552 cat >>$CONFIG_STATUS <<\EOF
23554 { (exit 0); exit 0; }
23556 chmod +x $CONFIG_STATUS
23557 ac_clean_files=$ac_clean_files_save
23559 # configure is writing to config.log, and then calls config.status.
23560 # config.status does its own redirection, appending to config.log.
23561 # Unfortunately, on DOS this fails, as config.log is still kept open
23562 # by configure, so config.status won't be able to write to it; its
23563 # output is simply discarded. So we exec the FD to /dev/null,
23564 # effectively closing config.log, so it can be properly (re)opened and
23565 # appended to by config.status. When coming back to configure, we
23566 # need to make the FD available again.
23567 if test "$no_create" != yes; then
23570 $SHELL $CONFIG_STATUS || ac_cs_success=false
23572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23573 # would make configure fail if this is the last instruction.
23574 $ac_cs_success || { (exit 1); exit 1; }
23576 ${MAKE:-make} preinstall