2 # From configure.in Revision: 1.688 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20181006.
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 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
615 ac_env_CXX_set=${CXX+set}
616 ac_env_CXX_value=$CXX
617 ac_cv_env_CXX_set=${CXX+set}
618 ac_cv_env_CXX_value=$CXX
619 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
620 ac_env_CXXFLAGS_value=$CXXFLAGS
621 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
623 ac_env_CXXCPP_set=${CXXCPP+set}
624 ac_env_CXXCPP_value=$CXXCPP
625 ac_cv_env_CXXCPP_set=${CXXCPP+set}
626 ac_cv_env_CXXCPP_value=$CXXCPP
629 # Report the --help message.
631 if test "$ac_init_help" = "long"; then
632 # Omit some internal or obsolete options to make the list less imposing.
633 # This message is too long to be a string in the A/UX 3.1 sh.
635 \`configure' configures this package to adapt to many kinds of systems.
637 Usage: $0 [OPTION]... [VAR=VALUE]...
639 To assign environment variables (e.g., CC, CFLAGS...), specify them as
640 VAR=VALUE. See below for descriptions of some of the useful variables.
642 Defaults for the options are specified in brackets.
645 -h, --help display this help and exit
646 --help=short display options specific to this package
647 --help=recursive display the short help of all the included packages
648 -V, --version display version information and exit
649 -q, --quiet, --silent do not print \`checking...' messages
650 --cache-file=FILE cache test results in FILE [disabled]
651 -C, --config-cache alias for \`--cache-file=config.cache'
652 -n, --no-create do not create output files
653 --srcdir=DIR find the sources in DIR [configure dir or \`..']
658 Installation directories:
659 --prefix=PREFIX install architecture-independent files in PREFIX
661 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
664 By default, \`make install' will install all the files in
665 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
666 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
667 for instance \`--prefix=\$HOME'.
669 For better control, use the options below.
671 Fine tuning of the installation directories:
672 --bindir=DIR user executables [EPREFIX/bin]
673 --sbindir=DIR system admin executables [EPREFIX/sbin]
674 --libexecdir=DIR program executables [EPREFIX/libexec]
675 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
676 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
677 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
678 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
679 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
680 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
681 --libdir=DIR object code libraries [EPREFIX/lib]
682 --includedir=DIR C header files [PREFIX/include]
683 --oldincludedir=DIR C header files for non-gcc [/usr/include]
684 --infodir=DIR info documentation [DATAROOTDIR/info]
685 --mandir=DIR man documentation [DATAROOTDIR/man]
691 --program-prefix=PREFIX prepend PREFIX to installed program names
692 --program-suffix=SUFFIX append SUFFIX to installed program names
693 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
696 --build=BUILD configure for building on BUILD [guessed]
697 --host=HOST build programs to run on HOST [BUILD]
698 --target=TARGET configure for building compilers for TARGET [HOST]
702 if test -n "$ac_init_help"; then
707 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
708 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
711 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
712 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
714 --with-rel-version=XXX override derived release version
715 --with-abi-version=XXX override derived ABI version
716 --with-system-type=XXX test: override derived host system-type
717 --without-ada suppress check for Ada95, don't build demo
718 --without-cxx do not adjust ncurses bool to match C++
719 --without-cxx-binding do not build C++ binding and demo
720 --disable-db-install suppress install of terminal database
721 --without-manpages suppress install of manpages
722 --without-progs suppress build/install with programs (e.g., tic)
723 --without-tack suppress build/install with tack program
724 --without-tests suppress build/install with test-programs
725 --without-curses-h install curses.h as ncurses.h only
726 --with-config-suffix=X suffixes ncursesXX-config file
727 --with-pkg-config{=path} enable/disable use of pkg-config
728 --with-pkg-config-libdir=XXX use given directory for installing pc-files
729 --enable-pc-files generate and install .pc files for pkg-config
730 --with-pc-suffix suffixes pc-files
731 --enable-mixed-case tic should assume mixed-case filenames
732 --with-install-prefix prefixes actual install-location ($DESTDIR)
733 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
734 --with-build-cc=XXX the build C compiler ($BUILD_CC)
735 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
736 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
737 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
738 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
739 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
740 Options to Specify the Libraries Built/Used:
741 --disable-libtool-version enable to use libtool's incompatible naming scheme
742 --with-libtool generate libraries with libtool
743 --with-shared generate shared-libraries
744 --with-normal generate normal-libraries (default)
745 --with-debug generate debug-libraries (default)
746 --with-profile generate profile-libraries
747 --with-cxx-shared generate C++ shared-libraries
748 --with-lib-prefix override library-prefix
749 --with-termlib generate separate terminfo library
750 --with-ticlib generate separate tic library
751 --enable-rpath use rpath option when generating shared libraries
752 --disable-relink relink shared libraries during install
753 --with-shlib-version=X Specify rel or abi version for shared libs
754 --with-libtool-opts=XXX specify additional libtool options
755 --with-export-syms=XXX limit exported symbols using libtool
756 --with-versioned-syms=X markup versioned symbols using ld
757 --with-gpm use Alessandro Rubini's GPM library
758 --without-dlsym do not use dlsym() to load GPM dynamically
759 --with-pcre2 use PCRE2 for regular-expressions
760 --with-sysmouse use sysmouse (FreeBSD console)
761 --disable-lib-suffixes disable library suffixes
762 --disable-rpath-hack don't add rpath options for additional libraries
763 Fine-Tuning Your Configuration:
764 --with-extra-suffix=X append extra suffix to header/library paths
765 --disable-overwrite put headers in subdir, omit link to -lcurses
766 --disable-database do not use terminfo, only fallbacks/termcap
767 --with-database=XXX specify terminfo source to install
768 --with-hashed-db specify hashed-database library
769 --with-fallbacks=XXX specify list of fallback terminal descriptions
770 --with-tic-path=XXX specify path of tic for fallbacks
771 --with-infocmp-path=XXX specify path of infocmp for fallbacks
772 --without-xterm-new specify if xterm terminfo should be old version
773 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
774 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
775 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
776 --disable-big-core assume machine has little memory
777 --disable-big-strings assume compiler has only standard-size strings
778 --enable-termcap compile in termcap fallback support
779 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
780 --enable-getcap fast termcap load, no xrefs to terminfo
781 --enable-getcap-cache cache translated termcaps in ~/.terminfo
782 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
783 --disable-root-environ restrict environment when running as root
784 --enable-symlinks make tic use symbolic links not hard links
785 --enable-broken_linker compile with broken-linker support code
786 --enable-bsdpad recognize BSD-style prefix padding
787 --enable-widec compile with wide-char/UTF-8 code
788 --disable-lp64 allow chtype to be long (ignore _LP64)
789 --disable-largefile omit support for large files
790 --disable-tparm-varargs compile tparm() without varargs interface
791 --disable-tic-depends link tic library without explicit dependency on ncurses library
792 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
793 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
794 --with-bool=TYPE override fallback type of bool variable
795 --with-caps=alt compile with alternate Caps file
796 --with-chtype=TYPE override type of chtype
797 --with-ospeed=TYPE override type of ospeed variable
798 --with-mmask-t=TYPE override type of mmask_t
799 --with-ccharw-max=XXX override size CCHARW_MAX
800 --enable-signed-char compile using signed Boolean's in term.h
801 --with-tparm-arg=TYPE override parameter type of tparm
802 --with-rcs-ids compile-in RCS identifiers
803 Options to Specify How Manpages are Installed:
804 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
805 optionally formatted/catonly, e.g., gzip,formatted
806 --with-manpage-renames specify manpage-renaming
807 --with-manpage-aliases specify manpage-aliases using .so
808 --with-manpage-symlinks specify manpage-aliases using symlinks
809 --with-manpage-tbl specify manpage processing with tbl
811 --disable-ext-funcs disable function-extensions
812 --enable-sp-funcs enable SCREEN-extensions
813 --enable-term-driver enable terminal-driver
814 --enable-const compile with extra/non-standard const
815 --enable-ext-colors compile for 256-color support
816 --enable-ext-mouse compile for extended mouse-encoding
817 --enable-ext-putwin compile with extended putwin/screendump
818 --enable-no-padding compile with $NCURSES_NO_PADDING code
819 --enable-sigwinch compile with SIGWINCH handler
820 --enable-tcap-names compile with user-definable terminal capabilities
822 --with-pthread use POSIX thread library
823 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
824 --enable-weak-symbols enable weak-symbols for pthreads
825 --enable-reentrant compile with reentrant code
826 --enable-opaque-curses make curses WINDOW, etc., "opaque"
827 --enable-opaque-form make form-library structures "opaque"
828 --enable-opaque-menu make menu-library structures "opaque"
829 --enable-opaque-panel make panel-library structures "opaque"
830 --with-wrap-prefix=XXX override prefix used for public variables
832 --without-develop disable development options
833 --enable-hard-tabs compile with hard-tabs code
834 --enable-xmc-glitch compile with support for xmc (magic-cookie)
836 --disable-assumed-color do not assume anything about default-colors
837 --disable-hashmap compile without hashmap scrolling-optimization
838 --enable-colorfgbg compile-in experimental $COLORFGBG code
839 --enable-interop compile-in interop bindings
840 --enable-safe-sprintf compile with experimental safe-sprintf code
841 --disable-scroll-hints compile without scroll-hints code
842 --enable-wgetch-events compile with wgetch-events code
843 Testing/development Options:
844 --disable-echo do not display "compiling" commands
845 --disable-stripping do not strip (debug info) installed executables
846 --enable-warnings build: turn on GCC compiler warnings
847 --enable-string-hacks work around bogus compiler/loader warnings
848 --enable-assertions test: turn on generation of assertion code
849 --with-dmalloc test: use Gray Watson's dmalloc library
850 --with-dbmalloc test: use Conor Cahill's dbmalloc library
851 --with-valgrind test: use valgrind
852 --disable-leaks test: free permanent memory, analyze leaks
853 --enable-expanded test: generate functions for certain macros
854 --disable-macros test: use functions rather than macros
855 --with-trace test: add trace() function to all models of ncurses
856 --disable-gnat-projects test: disable GNAT projects even if usable
857 Ada95 Binding Options:
858 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
859 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
860 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
861 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
871 CXX C++ compiler command
872 CXXFLAGS C++ compiler flags
873 CXXCPP C++ preprocessor
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
884 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
886 # A "../" for each directory in /$ac_subdir.
887 ac_dots=`echo $ac_subdir |
888 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
891 .) # No --srcdir option. We are building in place.
892 ac_sub_srcdir=$srcdir ;;
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_sub_srcdir=$srcdir/$ac_subdir ;;
896 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
899 # Check for guested configure; otherwise get Cygnus style configure.
900 if test -f $ac_sub_srcdir/configure.gnu; then
902 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
903 elif test -f $ac_sub_srcdir/configure; then
905 $SHELL $ac_sub_srcdir/configure --help=recursive
906 elif test -f $ac_sub_srcdir/configure.ac ||
907 test -f $ac_sub_srcdir/configure.in; then
911 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
917 test -n "$ac_init_help" && exit 0
918 if $ac_init_version; then
921 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
922 Free Software Foundation, Inc.
923 This configure script is free software; the Free Software Foundation
924 gives unlimited permission to copy, distribute and modify it.
930 This file contains any messages produced by compilers while
931 running configure, to aid debugging if configure makes a mistake.
933 It was created by $as_me, which was
934 generated by GNU Autoconf 2.52.20181006. Invocation command line was
945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
952 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
954 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
955 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
957 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
958 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
959 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
960 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
974 # Keep a trace of the command line.
975 # Strip out --no-create and --no-recursion so they do not pile up.
976 # Also quote any args containing shell meta-characters.
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c) ;;
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
986 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
987 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
988 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
990 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
993 # Get rid of the leading space.
996 # When interrupted or exit'd, cleanup temporary files, and complete
997 # config.log. We remove comments because anyway the quotes in there
998 # would cause problems or look ugly.
1000 # Save into config.log some information that might help in debugging.
1002 echo "## ----------------- ##" >&5
1003 echo "## Cache variables. ##" >&5
1004 echo "## ----------------- ##" >&5
1006 # The following way of writing the cache mishandles newlines in values,
1009 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1012 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1017 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1021 sed "/^$/d" confdefs.h >conftest.log
1022 if test -s conftest.log; then
1024 echo "## ------------ ##" >&5
1025 echo "## confdefs.h. ##" >&5
1026 echo "## ------------ ##" >&5
1028 cat conftest.log >&5
1031 test "$ac_signal" != 0 &&
1032 echo "$as_me: caught signal $ac_signal" >&5
1033 echo "$as_me: exit $exit_status" >&5
1034 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1037 for ac_signal in 1 2 13 15; do
1038 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1043 rm -rf conftest* confdefs.h
1044 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1047 # Let the site file select an alternate cache file if it wants to.
1048 # Prefer explicitly selected file to automatically selected ones.
1049 if test -z "$CONFIG_SITE"; then
1050 if test "x$prefix" != xNONE; then
1051 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1053 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1056 for ac_site_file in $CONFIG_SITE; do
1057 if test -r "$ac_site_file"; then
1058 { echo "$as_me:1058: loading site script $ac_site_file" >&5
1059 echo "$as_me: loading site script $ac_site_file" >&6;}
1060 cat "$ac_site_file" >&5
1065 if test -r "$cache_file"; then
1066 # Some versions of bash will fail to source /dev/null (special
1067 # files actually), so we avoid doing that.
1068 if test -f "$cache_file"; then
1069 { echo "$as_me:1069: loading cache $cache_file" >&5
1070 echo "$as_me: loading cache $cache_file" >&6;}
1072 [\\/]* | ?:[\\/]* ) . $cache_file;;
1073 *) . ./$cache_file;;
1077 { echo "$as_me:1077: creating cache $cache_file" >&5
1078 echo "$as_me: creating cache $cache_file" >&6;}
1082 # Check that the precious variables saved in the cache have kept the same
1084 ac_cache_corrupted=false
1085 for ac_var in `(set) 2>&1 |
1086 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1087 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1088 eval ac_new_set=\$ac_env_${ac_var}_set
1089 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1090 eval ac_new_val="\$ac_env_${ac_var}_value"
1091 case $ac_old_set,$ac_new_set in
1093 { echo "$as_me:1093: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1094 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1095 ac_cache_corrupted=: ;;
1097 { echo "$as_me:1097: error: \`$ac_var' was not set in the previous run" >&5
1098 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1099 ac_cache_corrupted=: ;;
1102 if test "x$ac_old_val" != "x$ac_new_val"; then
1103 { echo "$as_me:1103: error: \`$ac_var' has changed since the previous run:" >&5
1104 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1105 { echo "$as_me:1105: former value: $ac_old_val" >&5
1106 echo "$as_me: former value: $ac_old_val" >&2;}
1107 { echo "$as_me:1107: current value: $ac_new_val" >&5
1108 echo "$as_me: current value: $ac_new_val" >&2;}
1109 ac_cache_corrupted=:
1112 # Pass precious variables to config.status. It doesn't matter if
1113 # we pass some twice (in addition to the command line arguments).
1114 if test "$ac_new_set" = set; then
1116 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1117 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1118 ac_configure_args="$ac_configure_args '$ac_arg'"
1120 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1125 if $ac_cache_corrupted; then
1126 { echo "$as_me:1126: error: changes in the environment can compromise the build" >&5
1127 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1128 { { echo "$as_me:1128: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1129 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1130 { (exit 1); exit 1; }; }
1134 ac_cpp='$CPP $CPPFLAGS'
1135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1138 ac_main_return=return
1140 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1141 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1143 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1144 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1146 echo "#! $SHELL" >conftest.sh
1147 echo "exit 0" >>conftest.sh
1148 chmod +x conftest.sh
1149 if { (echo "$as_me:1149: PATH=\".;.\"; conftest.sh") >&5
1150 (PATH=".;."; conftest.sh) 2>&5
1152 echo "$as_me:1152: \$? = $ac_status" >&5
1153 (exit $ac_status); }; then
1154 ac_path_separator=';'
1158 PATH_SEPARATOR="$ac_path_separator"
1161 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1165 echo "$as_me:1165: checking for egrep" >&5
1166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1167 if test "${ac_cv_prog_egrep+set}" = set; then
1168 echo $ECHO_N "(cached) $ECHO_C" >&6
1170 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1171 then ac_cv_prog_egrep='grep -E'
1172 else ac_cv_prog_egrep='egrep'
1175 echo "$as_me:1175: result: $ac_cv_prog_egrep" >&5
1176 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1177 EGREP=$ac_cv_prog_egrep
1179 test -z "$EGREP" && { { echo "$as_me:1179: error: No egrep program found" >&5
1180 echo "$as_me: error: No egrep program found" >&2;}
1181 { (exit 1); exit 1; }; }
1183 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1184 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1185 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1186 cf_cv_abi_version=${NCURSES_MAJOR}
1187 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1188 cf_cv_timestamp=`date`
1189 echo "$as_me:1189: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1190 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1192 if test -f $srcdir/VERSION ; then
1193 echo "$as_me:1193: checking for package version" >&5
1194 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1196 # if there are not enough fields, cut returns the last one...
1197 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1198 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1199 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1201 # this is how CF_BUNDLED_INTL uses $VERSION:
1202 VERSION="$cf_field1"
1204 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1205 test -z "$VERSION_MAJOR" && { { echo "$as_me:1205: error: missing major-version" >&5
1206 echo "$as_me: error: missing major-version" >&2;}
1207 { (exit 1); exit 1; }; }
1209 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1210 test -z "$VERSION_MINOR" && { { echo "$as_me:1210: error: missing minor-version" >&5
1211 echo "$as_me: error: missing minor-version" >&2;}
1212 { (exit 1); exit 1; }; }
1214 echo "$as_me:1214: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1215 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1217 echo "$as_me:1217: checking for package patch date" >&5
1218 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1219 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1220 case .$VERSION_PATCH in
1222 { { echo "$as_me:1222: error: missing patch-date $VERSION_PATCH" >&5
1223 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1224 { (exit 1); exit 1; }; }
1226 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1229 { { echo "$as_me:1229: error: illegal patch-date $VERSION_PATCH" >&5
1230 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1231 { (exit 1); exit 1; }; }
1234 echo "$as_me:1234: result: $VERSION_PATCH" >&5
1235 echo "${ECHO_T}$VERSION_PATCH" >&6
1237 { { echo "$as_me:1237: error: did not find $srcdir/VERSION" >&5
1238 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1239 { (exit 1); exit 1; }; }
1242 # show the actual data that we have for versions:
1243 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1245 echo "${as_me:-configure}:1245: testing ABI VERSION $VERSION ..." 1>&5
1247 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1249 echo "${as_me:-configure}:1249: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1251 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1253 echo "${as_me:-configure}:1253: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1255 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1257 echo "${as_me:-configure}:1257: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1262 cat >>confdefs.h <<EOF
1263 #define PACKAGE "$PACKAGE"
1266 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1268 cat >>confdefs.h <<EOF
1269 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1272 cat >>confdefs.h <<EOF
1273 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1276 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1278 # Check whether --with-rel-version or --without-rel-version was given.
1279 if test "${with_rel_version+set}" = set; then
1280 withval="$with_rel_version"
1281 { echo "$as_me:1281: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1282 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1283 cf_cv_rel_version=$withval
1286 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1287 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1289 if test -n "$NCURSES_MAJOR" ; then
1290 case $NCURSES_MAJOR in
1294 { { echo "$as_me:1294: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1295 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1296 { (exit 1); exit 1; }; }
1300 { { echo "$as_me:1300: error: Release major-version value is empty" >&5
1301 echo "$as_me: error: Release major-version value is empty" >&2;}
1302 { (exit 1); exit 1; }; }
1305 if test -n "$NCURSES_MINOR" ; then
1306 case $NCURSES_MINOR in
1310 { { echo "$as_me:1310: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1311 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1312 { (exit 1); exit 1; }; }
1316 { { echo "$as_me:1316: error: Release minor-version value is empty" >&5
1317 echo "$as_me: error: Release minor-version value is empty" >&2;}
1318 { (exit 1); exit 1; }; }
1321 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1323 # Check whether --with-abi-version or --without-abi-version was given.
1324 if test "${with_abi_version+set}" = set; then
1325 withval="$with_abi_version"
1327 if test "x$cf_cv_abi_version" != "x$withval"
1329 { echo "$as_me:1329: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1330 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1331 case $cf_cv_rel_version in
1333 cf_cv_rel_version=$withval.0
1336 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1340 cf_cv_abi_version=$withval
1343 if test -n "$cf_cv_abi_version" ; then
1344 case $cf_cv_abi_version in
1348 { { echo "$as_me:1348: error: ABI version is not a number: $cf_cv_abi_version" >&5
1349 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1350 { (exit 1); exit 1; }; }
1354 { { echo "$as_me:1354: error: ABI version value is empty" >&5
1355 echo "$as_me: error: ABI version value is empty" >&2;}
1356 { (exit 1); exit 1; }; }
1359 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1361 case $cf_cv_rel_version in
1363 cf_cv_rel_version=$with_abi_version.0
1369 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1370 if test -f $ac_dir/install-sh; then
1372 ac_install_sh="$ac_aux_dir/install-sh -c"
1374 elif test -f $ac_dir/install.sh; then
1376 ac_install_sh="$ac_aux_dir/install.sh -c"
1378 elif test -f $ac_dir/shtool; then
1380 ac_install_sh="$ac_aux_dir/shtool install -c"
1384 if test -z "$ac_aux_dir"; then
1385 { { echo "$as_me:1385: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1386 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1387 { (exit 1); exit 1; }; }
1389 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1393 # Make sure we can run config.sub.
1394 $ac_config_sub sun4 >/dev/null 2>&1 ||
1395 { { echo "$as_me:1395: error: cannot run $ac_config_sub" >&5
1396 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1397 { (exit 1); exit 1; }; }
1399 echo "$as_me:1399: checking build system type" >&5
1400 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1401 if test "${ac_cv_build+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 ac_cv_build_alias=$build_alias
1405 test -z "$ac_cv_build_alias" &&
1406 ac_cv_build_alias=`$ac_config_guess`
1407 test -z "$ac_cv_build_alias" &&
1408 { { echo "$as_me:1408: error: cannot guess build type; you must specify one" >&5
1409 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1410 { (exit 1); exit 1; }; }
1411 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1412 { { echo "$as_me:1412: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1413 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1414 { (exit 1); exit 1; }; }
1417 echo "$as_me:1417: result: $ac_cv_build" >&5
1418 echo "${ECHO_T}$ac_cv_build" >&6
1420 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 echo "$as_me:1424: checking host system type" >&5
1425 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1426 if test "${ac_cv_host+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 ac_cv_host_alias=$host_alias
1430 test -z "$ac_cv_host_alias" &&
1431 ac_cv_host_alias=$ac_cv_build_alias
1432 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1433 { { echo "$as_me:1433: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1434 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1435 { (exit 1); exit 1; }; }
1438 echo "$as_me:1438: result: $ac_cv_host" >&5
1439 echo "${ECHO_T}$ac_cv_host" >&6
1441 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1446 echo "$as_me:1446: checking target system type" >&5
1447 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1448 if test "${ac_cv_target+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 ac_cv_target_alias=$target_alias
1452 test "x$ac_cv_target_alias" = "x" &&
1453 ac_cv_target_alias=$ac_cv_host_alias
1454 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1455 { { echo "$as_me:1455: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1457 { (exit 1); exit 1; }; }
1460 echo "$as_me:1460: result: $ac_cv_target" >&5
1461 echo "${ECHO_T}$ac_cv_target" >&6
1462 target=$ac_cv_target
1463 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1464 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1465 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467 # The aliases save the names the user supplied, while $host etc.
1468 # will get canonicalized.
1469 test -n "$target_alias" &&
1470 test "$program_prefix$program_suffix$program_transform_name" = \
1472 program_prefix=${target_alias}-
1473 system_name="$host_os"
1475 system_name="`(uname -s -r) 2>/dev/null`"
1476 if test -z "$system_name" ; then
1477 system_name="`(hostname) 2>/dev/null`"
1480 test -n "$system_name" &&
1481 cat >>confdefs.h <<EOF
1482 #define SYSTEM_NAME "$system_name"
1485 if test "${cf_cv_system_name+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 cf_cv_system_name="$system_name"
1491 test -z "$system_name" && system_name="$cf_cv_system_name"
1492 test -n "$cf_cv_system_name" && echo "$as_me:1492: result: Configuring for $cf_cv_system_name" >&5
1493 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1495 if test ".$system_name" != ".$cf_cv_system_name" ; then
1496 echo "$as_me:1496: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1497 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1498 { { echo "$as_me:1498: error: \"Please remove config.cache and try again.\"" >&5
1499 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1500 { (exit 1); exit 1; }; }
1503 # Check whether --with-system-type or --without-system-type was given.
1504 if test "${with_system_type+set}" = set; then
1505 withval="$with_system_type"
1506 { echo "$as_me:1506: WARNING: overriding system type to $withval" >&5
1507 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1508 cf_cv_system_name=$withval
1513 ### Save the given $CFLAGS to allow user-override.
1514 cf_user_CFLAGS="$CFLAGS"
1516 ### Default install-location
1518 echo "$as_me:1518: checking for prefix" >&5
1519 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1520 if test "x$prefix" = "xNONE" ; then
1521 case "$cf_cv_system_name" in
1522 # non-vendor systems don't have a conflict
1523 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1526 (*) prefix=$ac_default_prefix
1530 echo "$as_me:1530: result: $prefix" >&5
1531 echo "${ECHO_T}$prefix" >&6
1533 if test "x$prefix" = "xNONE" ; then
1534 echo "$as_me:1534: checking for default include-directory" >&5
1535 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1536 test -n "$verbose" && echo 1>&6
1539 $includedir/ncurses \
1541 $prefix/include/ncurses \
1542 /usr/local/include \
1543 /usr/local/include/ncurses \
1545 /usr/include/ncurses
1547 cf_dir=`eval echo $cf_symbol`
1548 if test -f $cf_dir/curses.h ; then
1549 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1550 includedir="$cf_symbol"
1551 test -n "$verbose" && echo $ac_n " found " 1>&6
1555 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1557 echo "$as_me:1557: result: $includedir" >&5
1558 echo "${ECHO_T}$includedir" >&6
1561 ### Defaults for ncurses ABI
1563 case x$cf_cv_abi_version in
1565 cf_dft_ext_colors=yes
1566 cf_dft_ext_const=yes
1567 cf_dft_ext_mouse=yes
1568 cf_dft_ext_putwin=yes
1569 cf_dft_ext_spfuncs=yes
1570 cf_dft_filter_syms=yes
1571 cf_dft_chtype=uint32_t
1572 cf_dft_mmask_t=uint32_t
1574 cf_dft_tparm_arg=intptr_t
1575 cf_dft_with_lp64=yes
1578 cf_dft_ext_colors=no
1581 cf_dft_ext_putwin=no
1582 cf_dft_ext_spfuncs=no
1583 cf_dft_filter_syms=no
1587 cf_dft_tparm_arg=long
1592 ### Checks for programs.
1594 # Check whether --with-ada or --without-ada was given.
1595 if test "${with_ada+set}" = set; then
1597 cf_with_ada=$withval
1602 if test "x$cf_with_ada" = xyes
1604 cf_prog_cc="gnatgcc gcc cc"
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 ac_main_return=return
1615 if test -n "$ac_tool_prefix"; then
1616 for ac_prog in $cf_prog_cc
1618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620 echo "$as_me:1620: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 ac_save_IFS=$IFS; IFS=$ac_path_separator
1630 for ac_dir in $ac_dummy; do
1632 test -z "$ac_dir" && ac_dir=.
1633 $as_executable_p "$ac_dir/$ac_word" || continue
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:1635: found $ac_dir/$ac_word" >&5
1642 if test -n "$CC"; then
1643 echo "$as_me:1643: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:1646: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1650 test -n "$CC" && break
1653 if test -z "$CC"; then
1655 for ac_prog in $cf_prog_cc
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658 set dummy $ac_prog; ac_word=$2
1659 echo "$as_me:1659: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 ac_save_IFS=$IFS; IFS=$ac_path_separator
1669 for ac_dir in $ac_dummy; do
1671 test -z "$ac_dir" && ac_dir=.
1672 $as_executable_p "$ac_dir/$ac_word" || continue
1673 ac_cv_prog_ac_ct_CC="$ac_prog"
1674 echo "$as_me:1674: found $ac_dir/$ac_word" >&5
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682 echo "$as_me:1682: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1685 echo "$as_me:1685: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 test -n "$ac_ct_CC" && break
1695 test -z "$CC" && { { echo "$as_me:1695: error: no acceptable cc found in \$PATH" >&5
1696 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1697 { (exit 1); exit 1; }; }
1699 # Provide some information about the compiler.
1700 echo "$as_me:1700:" \
1701 "checking for C compiler version" >&5
1702 ac_compiler=`set X $ac_compile; echo $2`
1703 { (eval echo "$as_me:1703: \"$ac_compiler --version </dev/null >&5\"") >&5
1704 (eval $ac_compiler --version </dev/null >&5) 2>&5
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708 { (eval echo "$as_me:1708: \"$ac_compiler -v </dev/null >&5\"") >&5
1709 (eval $ac_compiler -v </dev/null >&5) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1713 { (eval echo "$as_me:1713: \"$ac_compiler -V </dev/null >&5\"") >&5
1714 (eval $ac_compiler -V </dev/null >&5) 2>&5
1716 echo "$as_me:1716: \$? = $ac_status" >&5
1717 (exit $ac_status); }
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line 1720 "configure"
1721 #include "confdefs.h"
1731 ac_clean_files_save=$ac_clean_files
1732 ac_clean_files="$ac_clean_files a.out a.exe"
1733 # Try to create an executable without -o first, disregard a.out.
1734 # It will help us diagnose broken compilers, and finding out an intuition
1736 echo "$as_me:1736: checking for C compiler default output" >&5
1737 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1739 if { (eval echo "$as_me:1739: \"$ac_link_default\"") >&5
1740 (eval $ac_link_default) 2>&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); }; then
1744 # Find the output, starting from the most likely. This scheme is
1745 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1747 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1748 ls a.out conftest 2>/dev/null;
1749 ls a.* conftest.* 2>/dev/null`; do
1751 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1752 a.out ) # We found the default executable, but exeext='' is most
1755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1763 echo "$as_me: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 { { echo "$as_me:1765: error: C compiler cannot create executables" >&5
1766 echo "$as_me: error: C compiler cannot create executables" >&2;}
1767 { (exit 77); exit 77; }; }
1770 ac_exeext=$ac_cv_exeext
1771 echo "$as_me:1771: result: $ac_file" >&5
1772 echo "${ECHO_T}$ac_file" >&6
1774 # Check the compiler produces executables we can run. If not, either
1775 # the compiler is broken, or we cross compile.
1776 echo "$as_me:1776: checking whether the C compiler works" >&5
1777 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1778 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1779 # If not cross compiling, check that we can run a simple program.
1780 if test "$cross_compiling" != yes; then
1781 if { ac_try='./$ac_file'
1782 { (eval echo "$as_me:1782: \"$ac_try\"") >&5
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1789 if test "$cross_compiling" = maybe; then
1792 { { echo "$as_me:1792: error: cannot run C compiled programs.
1793 If you meant to cross compile, use \`--host'." >&5
1794 echo "$as_me: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&2;}
1796 { (exit 1); exit 1; }; }
1800 echo "$as_me:1800: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1803 rm -f a.out a.exe conftest$ac_cv_exeext
1804 ac_clean_files=$ac_clean_files_save
1805 # Check the compiler produces executables we can run. If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:1807: checking whether we are cross compiling" >&5
1808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1809 echo "$as_me:1809: result: $cross_compiling" >&5
1810 echo "${ECHO_T}$cross_compiling" >&6
1812 echo "$as_me:1812: checking for executable suffix" >&5
1813 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1814 if { (eval echo "$as_me:1814: \"$ac_link\"") >&5
1815 (eval $ac_link) 2>&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1821 # work properly (i.e., refer to `conftest.exe'), while it won't with
1823 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1826 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 { { echo "$as_me:1833: error: cannot compute EXEEXT: cannot compile and link" >&5
1834 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1835 { (exit 1); exit 1; }; }
1838 rm -f conftest$ac_cv_exeext
1839 echo "$as_me:1839: result: $ac_cv_exeext" >&5
1840 echo "${ECHO_T}$ac_cv_exeext" >&6
1842 rm -f conftest.$ac_ext
1843 EXEEXT=$ac_cv_exeext
1845 echo "$as_me:1845: checking for object suffix" >&5
1846 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1847 if test "${ac_cv_objext+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1862 rm -f conftest.o conftest.obj
1863 if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); }; then
1868 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1870 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 { { echo "$as_me:1878: error: cannot compute OBJEXT: cannot compile" >&5
1879 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1880 { (exit 1); exit 1; }; }
1883 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1885 echo "$as_me:1885: result: $ac_cv_objext" >&5
1886 echo "${ECHO_T}$ac_cv_objext" >&6
1887 OBJEXT=$ac_cv_objext
1889 echo "$as_me:1889: checking whether we are using the GNU C compiler" >&5
1890 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 cat >conftest.$ac_ext <<_ACEOF
1895 #line 1895 "configure"
1896 #include "confdefs.h"
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:1910: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -s conftest.$ac_objext'
1916 { (eval echo "$as_me:1916: \"$ac_try\"") >&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); }; }; then
1923 echo "$as_me: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1927 rm -f conftest.$ac_objext conftest.$ac_ext
1928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1931 echo "$as_me:1931: result: $ac_cv_c_compiler_gnu" >&5
1932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1933 GCC=`test $ac_compiler_gnu = yes && echo yes`
1934 ac_test_CFLAGS=${CFLAGS+set}
1935 ac_save_CFLAGS=$CFLAGS
1937 echo "$as_me:1937: checking whether $CC accepts -g" >&5
1938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1939 if test "${ac_cv_prog_cc_g+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line 1943 "configure"
1944 #include "confdefs.h"
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:1955: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>&5
1958 echo "$as_me:1958: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try='test -s conftest.$ac_objext'
1961 { (eval echo "$as_me:1961: \"$ac_try\"") >&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1968 echo "$as_me: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1972 rm -f conftest.$ac_objext conftest.$ac_ext
1974 echo "$as_me:1974: result: $ac_cv_prog_cc_g" >&5
1975 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1976 if test "$ac_test_CFLAGS" = set; then
1977 CFLAGS=$ac_save_CFLAGS
1978 elif test $ac_cv_prog_cc_g = yes; then
1979 if test "$GCC" = yes; then
1985 if test "$GCC" = yes; then
1991 # Some people use a C++ compiler to compile C. Since we use `exit',
1992 # in C++ we need to declare it. In case someone uses the same compiler
1993 # for both compiling C and C++ we need to have the C++ compiler decide
1994 # the declaration of exit, since it's the most demanding environment.
1995 cat >conftest.$ac_ext <<_ACEOF
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:2001: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit $ac_status); } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:2007: \"$ac_try\"") >&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 for ac_declaration in \
2014 '#include <stdlib.h>' \
2015 'extern "C" void std::exit (int) throw (); using std::exit;' \
2016 'extern "C" void std::exit (int); using std::exit;' \
2017 'extern "C" void exit (int) throw ();' \
2018 'extern "C" void exit (int);' \
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line 2022 "configure"
2023 #include "confdefs.h"
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:2035: \"$ac_compile\"") >&5
2036 (eval $ac_compile) 2>&5
2038 echo "$as_me:2038: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:2041: \"$ac_try\"") >&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2052 rm -f conftest.$ac_objext conftest.$ac_ext
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:2066: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); } &&
2071 { ac_try='test -s conftest.$ac_objext'
2072 { (eval echo "$as_me:2072: \"$ac_try\"") >&5
2075 echo "$as_me:2075: \$? = $ac_status" >&5
2076 (exit $ac_status); }; }; then
2079 echo "$as_me: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 rm -f conftest.$ac_objext conftest.$ac_ext
2085 if test -n "$ac_declaration"; then
2086 echo '#ifdef __cplusplus' >>confdefs.h
2087 echo $ac_declaration >>confdefs.h
2088 echo '#endif' >>confdefs.h
2092 echo "$as_me: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 rm -f conftest.$ac_objext conftest.$ac_ext
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 ac_main_return=return
2104 if test "$GCC" = yes ; then
2105 echo "$as_me:2105: checking version of $CC" >&5
2106 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2107 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2108 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2109 echo "$as_me:2109: result: $GCC_VERSION" >&5
2110 echo "${ECHO_T}$GCC_VERSION" >&6
2113 echo "$as_me:2113: checking for $CC option to accept ANSI C" >&5
2114 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 ac_cv_prog_cc_stdc=no
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line 2121 "configure"
2122 #include "confdefs.h"
2125 #include <sys/types.h>
2126 #include <sys/stat.h>
2127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2128 struct buf { int x; };
2129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2130 static char *e (p, i)
2136 static char *f (char * (*g) (char **, int), char **p, ...)
2141 s = g (p, va_arg (v,int));
2145 int test (int i, double x);
2146 struct s1 {int (*f) (int a);};
2147 struct s2 {int (*f) (double a);};
2148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2159 # Don't try gcc -ansi; that turns off useful extensions and
2160 # breaks some systems' header files.
2161 # AIX -qlanglvl=ansi
2162 # Ultrix and OSF/1 -std1
2163 # HP-UX 10.20 and later -Ae
2164 # HP-UX older versions -Aa -D_HPUX_SOURCE
2165 # SVR4 -Xc -D__EXTENSIONS__
2166 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2168 CC="$ac_save_CC $ac_arg"
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:2170: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2173 echo "$as_me:2173: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:2176: \"$ac_try\"") >&5
2179 echo "$as_me:2179: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 ac_cv_prog_cc_stdc=$ac_arg
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2187 rm -f conftest.$ac_objext
2189 rm -f conftest.$ac_ext conftest.$ac_objext
2194 case "x$ac_cv_prog_cc_stdc" in
2196 echo "$as_me:2196: result: none needed" >&5
2197 echo "${ECHO_T}none needed" >&6 ;;
2199 echo "$as_me:2199: result: $ac_cv_prog_cc_stdc" >&5
2200 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2201 CC="$CC $ac_cv_prog_cc_stdc" ;;
2204 # This should have been defined by AC_PROG_CC
2207 echo "$as_me:2207: checking \$CFLAGS variable" >&5
2208 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2211 echo "$as_me:2211: result: broken" >&5
2212 echo "${ECHO_T}broken" >&6
2213 { echo "$as_me:2213: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2214 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2217 for cf_arg in $cf_flags
2223 cf_new_extra_cppflags=
2225 for cf_add_cflags in $cf_arg
2227 case $cf_fix_cppflags in
2229 case $cf_add_cflags in
2230 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2231 case $cf_add_cflags in
2233 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2235 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2236 && test -z "${cf_tst_cflags}" \
2237 && cf_fix_cppflags=yes
2239 if test $cf_fix_cppflags = yes ; then
2241 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2242 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2245 elif test "${cf_tst_cflags}" = "\"'" ; then
2247 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2258 case $cf_add_cflags in
2260 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2262 CPPFLAGS=`echo "$CPPFLAGS" | \
2263 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2264 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2269 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2270 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2277 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2278 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2285 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2286 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2288 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2290 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2291 && test -z "${cf_tst_cflags}" \
2292 && cf_fix_cppflags=no
2297 if test -n "$cf_new_cflags" ; then
2299 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2300 CFLAGS="${CFLAGS}$cf_new_cflags"
2304 if test -n "$cf_new_cppflags" ; then
2306 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2307 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2311 if test -n "$cf_new_extra_cppflags" ; then
2313 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2314 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2321 echo "$as_me:2321: result: ok" >&5
2322 echo "${ECHO_T}ok" >&6
2326 echo "$as_me:2326: checking \$CC variable" >&5
2327 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2330 echo "$as_me:2330: result: broken" >&5
2331 echo "${ECHO_T}broken" >&6
2332 { echo "$as_me:2332: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2333 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2335 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2336 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2338 for cf_arg in $cf_flags
2346 cf_new_extra_cppflags=
2348 for cf_add_cflags in $cf_arg
2350 case $cf_fix_cppflags in
2352 case $cf_add_cflags in
2353 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2354 case $cf_add_cflags in
2356 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2358 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2359 && test -z "${cf_tst_cflags}" \
2360 && cf_fix_cppflags=yes
2362 if test $cf_fix_cppflags = yes ; then
2364 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2365 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2368 elif test "${cf_tst_cflags}" = "\"'" ; then
2370 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2371 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2381 case $cf_add_cflags in
2383 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2385 CPPFLAGS=`echo "$CPPFLAGS" | \
2386 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2387 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2392 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2393 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2400 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2401 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2408 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2409 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2411 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2413 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2414 && test -z "${cf_tst_cflags}" \
2415 && cf_fix_cppflags=no
2420 if test -n "$cf_new_cflags" ; then
2422 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2423 CFLAGS="${CFLAGS}$cf_new_cflags"
2427 if test -n "$cf_new_cppflags" ; then
2429 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2430 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2434 if test -n "$cf_new_extra_cppflags" ; then
2436 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2437 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2447 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2449 echo "${as_me:-configure}:2449: testing resulting CC: '$CC' ..." 1>&5
2451 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2453 echo "${as_me:-configure}:2453: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2455 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2457 echo "${as_me:-configure}:2457: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2461 echo "$as_me:2461: result: ok" >&5
2462 echo "${ECHO_T}ok" >&6
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471 ac_main_return=return
2472 echo "$as_me:2472: checking how to run the C preprocessor" >&5
2473 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2474 # On Suns, sometimes $CPP names a directory.
2475 if test -n "$CPP" && test -d "$CPP"; then
2478 if test -z "$CPP"; then
2479 if test "${ac_cv_prog_CPP+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 # Double quotes because CPP needs to be expanded
2483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2486 for ac_c_preproc_warn_flag in '' yes
2488 # Use a header file that comes with gcc, so configuring glibc
2489 # with a fresh cross-compiler works.
2490 # On the NeXT, cc -E runs the code through the compiler's parser,
2491 # not just through cpp. "Syntax error" is here to catch this case.
2492 cat >conftest.$ac_ext <<_ACEOF
2493 #line 2493 "configure"
2494 #include "confdefs.h"
2498 if { (eval echo "$as_me:2498: \"$ac_cpp conftest.$ac_ext\"") >&5
2499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2501 egrep -v '^ *\+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:2504: \$? = $ac_status" >&5
2505 (exit $ac_status); } >/dev/null; then
2506 if test -s conftest.err; then
2507 ac_cpp_err=$ac_c_preproc_warn_flag
2514 if test -z "$ac_cpp_err"; then
2517 echo "$as_me: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 # Broken: fails on valid input.
2522 rm -f conftest.err conftest.$ac_ext
2524 # OK, works on sane cases. Now check whether non-existent headers
2525 # can be detected and how.
2526 cat >conftest.$ac_ext <<_ACEOF
2527 #line 2527 "configure"
2528 #include "confdefs.h"
2529 #include <ac_nonexistent.h>
2531 if { (eval echo "$as_me:2531: \"$ac_cpp conftest.$ac_ext\"") >&5
2532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534 egrep -v '^ *\+' conftest.er1 >conftest.err
2536 cat conftest.err >&5
2537 echo "$as_me:2537: \$? = $ac_status" >&5
2538 (exit $ac_status); } >/dev/null; then
2539 if test -s conftest.err; then
2540 ac_cpp_err=$ac_c_preproc_warn_flag
2547 if test -z "$ac_cpp_err"; then
2548 # Broken: success on invalid input.
2551 echo "$as_me: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 # Passes both tests.
2557 rm -f conftest.err conftest.$ac_ext
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.$ac_ext
2562 if $ac_preproc_ok; then
2574 echo "$as_me:2574: result: $CPP" >&5
2575 echo "${ECHO_T}$CPP" >&6
2577 for ac_c_preproc_warn_flag in '' yes
2579 # Use a header file that comes with gcc, so configuring glibc
2580 # with a fresh cross-compiler works.
2581 # On the NeXT, cc -E runs the code through the compiler's parser,
2582 # not just through cpp. "Syntax error" is here to catch this case.
2583 cat >conftest.$ac_ext <<_ACEOF
2584 #line 2584 "configure"
2585 #include "confdefs.h"
2589 if { (eval echo "$as_me:2589: \"$ac_cpp conftest.$ac_ext\"") >&5
2590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2592 egrep -v '^ *\+' conftest.er1 >conftest.err
2594 cat conftest.err >&5
2595 echo "$as_me:2595: \$? = $ac_status" >&5
2596 (exit $ac_status); } >/dev/null; then
2597 if test -s conftest.err; then
2598 ac_cpp_err=$ac_c_preproc_warn_flag
2605 if test -z "$ac_cpp_err"; then
2608 echo "$as_me: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2610 # Broken: fails on valid input.
2613 rm -f conftest.err conftest.$ac_ext
2615 # OK, works on sane cases. Now check whether non-existent headers
2616 # can be detected and how.
2617 cat >conftest.$ac_ext <<_ACEOF
2618 #line 2618 "configure"
2619 #include "confdefs.h"
2620 #include <ac_nonexistent.h>
2622 if { (eval echo "$as_me:2622: \"$ac_cpp conftest.$ac_ext\"") >&5
2623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2625 egrep -v '^ *\+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:2628: \$? = $ac_status" >&5
2629 (exit $ac_status); } >/dev/null; then
2630 if test -s conftest.err; then
2631 ac_cpp_err=$ac_c_preproc_warn_flag
2638 if test -z "$ac_cpp_err"; then
2639 # Broken: success on invalid input.
2642 echo "$as_me: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 # Passes both tests.
2648 rm -f conftest.err conftest.$ac_ext
2651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2652 rm -f conftest.err conftest.$ac_ext
2653 if $ac_preproc_ok; then
2656 { { echo "$as_me:2656: error: C preprocessor \"$CPP\" fails sanity check" >&5
2657 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2658 { (exit 1); exit 1; }; }
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 ac_main_return=return
2668 if test $ac_cv_c_compiler_gnu = yes; then
2669 echo "$as_me:2669: checking whether $CC needs -traditional" >&5
2670 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2671 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_pattern="Autoconf.*'x'"
2675 cat >conftest.$ac_ext <<_ACEOF
2676 #line 2676 "configure"
2677 #include "confdefs.h"
2679 int Autoconf = TIOCGETP;
2681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2682 egrep "$ac_pattern" >/dev/null 2>&1; then
2683 ac_cv_prog_gcc_traditional=yes
2685 ac_cv_prog_gcc_traditional=no
2689 if test $ac_cv_prog_gcc_traditional = no; then
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line 2691 "configure"
2692 #include "confdefs.h"
2694 int Autoconf = TCGETA;
2696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2697 egrep "$ac_pattern" >/dev/null 2>&1; then
2698 ac_cv_prog_gcc_traditional=yes
2704 echo "$as_me:2704: result: $ac_cv_prog_gcc_traditional" >&5
2705 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2706 if test $ac_cv_prog_gcc_traditional = yes; then
2707 CC="$CC -traditional"
2711 echo "$as_me:2711: checking whether $CC understands -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2713 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 cat > conftest.$ac_ext <<CF_EOF
2720 ${cf_cv_main_return:-return}(0);
2723 # We do the test twice because some compilers refuse to overwrite an
2724 # existing .o file with -o, though they will create one.
2725 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2726 if { (eval echo "$as_me:2726: \"$ac_try\"") >&5
2729 echo "$as_me:2729: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 test -f conftest2.$ac_objext && { (eval echo "$as_me:2731: \"$ac_try\"") >&5
2734 echo "$as_me:2734: \$? = $ac_status" >&5
2735 (exit $ac_status); };
2737 eval cf_cv_prog_CC_c_o=yes
2739 eval cf_cv_prog_CC_c_o=no
2744 if test $cf_cv_prog_CC_c_o = yes; then
2745 echo "$as_me:2745: result: yes" >&5
2746 echo "${ECHO_T}yes" >&6
2748 echo "$as_me:2748: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2752 if test "$cross_compiling" = yes ; then
2755 case "$cf_cv_system_name" in
2756 (dragonfly*|mirbsd*|freebsd*)
2757 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2759 (*) LDPATH=$PATH:/sbin:/usr/sbin
2760 # Extract the first word of "ldconfig", so it can be a program name with args.
2761 set dummy ldconfig; ac_word=$2
2762 echo "$as_me:2762: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2764 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2772 ac_save_IFS=$IFS; IFS=$ac_path_separator
2774 for ac_dir in $ac_dummy; do
2776 test -z "$ac_dir" && ac_dir=.
2777 if $as_executable_p "$ac_dir/$ac_word"; then
2778 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2779 echo "$as_me:2779: found $ac_dir/$ac_word" >&5
2787 LDCONFIG=$ac_cv_path_LDCONFIG
2789 if test -n "$LDCONFIG"; then
2790 echo "$as_me:2790: result: $LDCONFIG" >&5
2791 echo "${ECHO_T}$LDCONFIG" >&6
2793 echo "$as_me:2793: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2801 echo "$as_me:2801: checking if you want to ensure bool is consistent with C++" >&5
2802 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2804 # Check whether --with-cxx or --without-cxx was given.
2805 if test "${with_cxx+set}" = set; then
2807 cf_with_cxx=$withval
2811 echo "$as_me:2811: result: $cf_with_cxx" >&5
2812 echo "${ECHO_T}$cf_with_cxx" >&6
2813 if test "X$cf_with_cxx" = Xno ; then
2817 # with autoconf 2.13, we can change the error to a warning:
2819 ac_cpp='$CXXCPP $CPPFLAGS'
2820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2823 ac_main_return=return
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 echo "$as_me:2829: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2837 ac_save_IFS=$IFS; IFS=$ac_path_separator
2839 for ac_dir in $ac_dummy; do
2841 test -z "$ac_dir" && ac_dir=.
2842 $as_executable_p "$ac_dir/$ac_word" || continue
2843 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:2844: found $ac_dir/$ac_word" >&5
2851 if test -n "$CXX"; then
2852 echo "$as_me:2852: result: $CXX" >&5
2853 echo "${ECHO_T}$CXX" >&6
2855 echo "$as_me:2855: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2859 test -n "$CXX" && break
2862 if test -z "$CXX"; then
2864 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy $ac_prog; ac_word=$2
2868 echo "$as_me:2868: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 if test -n "$ac_ct_CXX"; then
2874 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2876 ac_save_IFS=$IFS; IFS=$ac_path_separator
2878 for ac_dir in $ac_dummy; do
2880 test -z "$ac_dir" && ac_dir=.
2881 $as_executable_p "$ac_dir/$ac_word" || continue
2882 ac_cv_prog_ac_ct_CXX="$ac_prog"
2883 echo "$as_me:2883: found $ac_dir/$ac_word" >&5
2889 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2890 if test -n "$ac_ct_CXX"; then
2891 echo "$as_me:2891: result: $ac_ct_CXX" >&5
2892 echo "${ECHO_T}$ac_ct_CXX" >&6
2894 echo "$as_me:2894: result: no" >&5
2895 echo "${ECHO_T}no" >&6
2898 test -n "$ac_ct_CXX" && break
2900 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2905 # Provide some information about the compiler.
2906 echo "$as_me:2906:" \
2907 "checking for C++ compiler version" >&5
2908 ac_compiler=`set X $ac_compile; echo $2`
2909 { (eval echo "$as_me:2909: \"$ac_compiler --version </dev/null >&5\"") >&5
2910 (eval $ac_compiler --version </dev/null >&5) 2>&5
2912 echo "$as_me:2912: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914 { (eval echo "$as_me:2914: \"$ac_compiler -v </dev/null >&5\"") >&5
2915 (eval $ac_compiler -v </dev/null >&5) 2>&5
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); }
2919 { (eval echo "$as_me:2919: \"$ac_compiler -V </dev/null >&5\"") >&5
2920 (eval $ac_compiler -V </dev/null >&5) 2>&5
2922 echo "$as_me:2922: \$? = $ac_status" >&5
2923 (exit $ac_status); }
2925 echo "$as_me:2925: checking whether we are using the GNU C++ compiler" >&5
2926 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2927 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line 2931 "configure"
2932 #include "confdefs.h"
2945 rm -f conftest.$ac_objext
2946 if { (eval echo "$as_me:2946: \"$ac_compile\"") >&5
2947 (eval $ac_compile) 2>&5
2949 echo "$as_me:2949: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:2952: \"$ac_try\"") >&5
2955 echo "$as_me:2955: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2959 echo "$as_me: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2963 rm -f conftest.$ac_objext conftest.$ac_ext
2964 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2967 echo "$as_me:2967: result: $ac_cv_cxx_compiler_gnu" >&5
2968 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2969 GXX=`test $ac_compiler_gnu = yes && echo yes`
2970 ac_test_CXXFLAGS=${CXXFLAGS+set}
2971 ac_save_CXXFLAGS=$CXXFLAGS
2973 echo "$as_me:2973: checking whether $CXX accepts -g" >&5
2974 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2975 if test "${ac_cv_prog_cxx_g+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2990 rm -f conftest.$ac_objext
2991 if { (eval echo "$as_me:2991: \"$ac_compile\"") >&5
2992 (eval $ac_compile) 2>&5
2994 echo "$as_me:2994: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:2997: \"$ac_try\"") >&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 ac_cv_prog_cxx_g=yes
3004 echo "$as_me: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3008 rm -f conftest.$ac_objext conftest.$ac_ext
3010 echo "$as_me:3010: result: $ac_cv_prog_cxx_g" >&5
3011 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3012 if test "$ac_test_CXXFLAGS" = set; then
3013 CXXFLAGS=$ac_save_CXXFLAGS
3014 elif test $ac_cv_prog_cxx_g = yes; then
3015 if test "$GXX" = yes; then
3021 if test "$GXX" = yes; then
3027 for ac_declaration in \
3029 '#include <stdlib.h>' \
3030 'extern "C" void std::exit (int) throw (); using std::exit;' \
3031 'extern "C" void std::exit (int); using std::exit;' \
3032 'extern "C" void exit (int) throw ();' \
3033 'extern "C" void exit (int);' \
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line 3037 "configure"
3038 #include "confdefs.h"
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:3050: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>&5
3053 echo "$as_me:3053: \$? = $ac_status" >&5
3054 (exit $ac_status); } &&
3055 { ac_try='test -s conftest.$ac_objext'
3056 { (eval echo "$as_me:3056: \"$ac_try\"") >&5
3059 echo "$as_me:3059: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3063 echo "$as_me: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3067 rm -f conftest.$ac_objext conftest.$ac_ext
3068 cat >conftest.$ac_ext <<_ACEOF
3069 #line 3069 "configure"
3070 #include "confdefs.h"
3080 rm -f conftest.$ac_objext
3081 if { (eval echo "$as_me:3081: \"$ac_compile\"") >&5
3082 (eval $ac_compile) 2>&5
3084 echo "$as_me:3084: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (eval echo "$as_me:3087: \"$ac_try\"") >&5
3090 echo "$as_me:3090: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3094 echo "$as_me: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3097 rm -f conftest.$ac_objext conftest.$ac_ext
3100 if test -n "$ac_declaration"; then
3101 echo '#ifdef __cplusplus' >>confdefs.h
3102 echo $ac_declaration >>confdefs.h
3103 echo '#endif' >>confdefs.h
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 ac_main_return=return
3114 ac_cpp='$CXXCPP $CPPFLAGS'
3115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3118 ac_main_return=return
3120 if test "x$cf_with_cxx" != xno
3122 # Several of the C++ configurations do not work, particularly when
3123 # cross-compiling (20140913 -TD)
3124 echo "$as_me:3124: checking if $CXX works" >&5
3125 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3127 save_CPPFLAGS="$CPPFLAGS"
3128 eval cf_includedir=${includedir}
3129 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3131 cat >conftest.$ac_ext <<_ACEOF
3132 #line 3132 "configure"
3133 #include "confdefs.h"
3142 printf("Hello world!\n")
3148 rm -f conftest.$ac_objext
3149 if { (eval echo "$as_me:3149: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>&5
3152 echo "$as_me:3152: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:3155: \"$ac_try\"") >&5
3158 echo "$as_me:3158: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3162 echo "$as_me: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3166 rm -f conftest.$ac_objext conftest.$ac_ext
3167 CPPFLAGS="$save_CPPFLAGS"
3169 echo "$as_me:3169: result: $cf_cxx_works" >&5
3170 echo "${ECHO_T}$cf_cxx_works" >&6
3171 if test "x$cf_cxx_works" = xno
3173 { echo "$as_me:3173: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3174 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3175 cf_with_cxx=no; CXX=""; GXX="";
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183 ac_main_return=return
3185 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3186 if test "$CXX" = "g++" ; then
3187 # Extract the first word of "g++", so it can be a program name with args.
3188 set dummy g++; ac_word=$2
3189 echo "$as_me:3189: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_path_CXX+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3199 ac_save_IFS=$IFS; IFS=$ac_path_separator
3201 for ac_dir in $ac_dummy; do
3203 test -z "$ac_dir" && ac_dir=.
3204 if $as_executable_p "$ac_dir/$ac_word"; then
3205 ac_cv_path_CXX="$ac_dir/$ac_word"
3206 echo "$as_me:3206: found $ac_dir/$ac_word" >&5
3216 if test -n "$CXX"; then
3217 echo "$as_me:3217: result: $CXX" >&5
3218 echo "${ECHO_T}$CXX" >&6
3220 echo "$as_me:3220: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3227 { echo "$as_me:3227: WARNING: You don't have any C++ compiler, too bad" >&5
3228 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3229 cf_with_cxx=no; CXX=""; GXX="";
3235 if test "$GXX" = yes; then
3236 echo "$as_me:3236: checking version of ${CXX:-g++}" >&5
3237 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3238 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3239 if test -z "$GXX_VERSION"
3244 echo "$as_me:3244: result: $GXX_VERSION" >&5
3245 echo "${ECHO_T}$GXX_VERSION" >&6
3248 case $GXX_VERSION in
3250 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3252 { echo "$as_me:3252: WARNING: templates do not work" >&5
3253 echo "$as_me: WARNING: templates do not work" >&2;}
3257 echo "$as_me:3257: checking if you want to build C++ binding and demo" >&5
3258 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3260 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3261 if test "${with_cxx_binding+set}" = set; then
3262 withval="$with_cxx_binding"
3263 cf_with_cxx_binding=$withval
3265 cf_with_cxx_binding=$cf_with_cxx
3267 echo "$as_me:3267: result: $cf_with_cxx_binding" >&5
3268 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3270 echo "$as_me:3270: checking if you want to build with Ada95" >&5
3271 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3272 echo "$as_me:3272: result: $cf_with_ada" >&5
3273 echo "${ECHO_T}$cf_with_ada" >&6
3275 echo "$as_me:3275: checking if you want to install terminal database" >&5
3276 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3278 # Check whether --enable-db-install or --disable-db-install was given.
3279 if test "${enable_db_install+set}" = set; then
3280 enableval="$enable_db_install"
3281 cf_with_db_install=$enableval
3283 cf_with_db_install=yes
3285 echo "$as_me:3285: result: $cf_with_db_install" >&5
3286 echo "${ECHO_T}$cf_with_db_install" >&6
3288 echo "$as_me:3288: checking if you want to install manpages" >&5
3289 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3291 # Check whether --with-manpages or --without-manpages was given.
3292 if test "${with_manpages+set}" = set; then
3293 withval="$with_manpages"
3294 cf_with_manpages=$withval
3296 cf_with_manpages=yes
3298 echo "$as_me:3298: result: $cf_with_manpages" >&5
3299 echo "${ECHO_T}$cf_with_manpages" >&6
3301 echo "$as_me:3301: checking if you want to build programs such as tic" >&5
3302 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3304 # Check whether --with-progs or --without-progs was given.
3305 if test "${with_progs+set}" = set; then
3306 withval="$with_progs"
3307 cf_with_progs=$withval
3311 echo "$as_me:3311: result: $cf_with_progs" >&5
3312 echo "${ECHO_T}$cf_with_progs" >&6
3314 if test -f $srcdir/tack/tack.h; then
3315 if test "x$cross_compiling" = xyes ; then
3316 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3318 echo "${as_me:-configure}:3318: testing ignoring tack because we are cross-compiling ..." 1>&5
3322 echo "$as_me:3322: checking if you want to build the tack program" >&5
3323 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3325 # Check whether --with-tack or --without-tack was given.
3326 if test "${with_tack+set}" = set; then
3327 withval="$with_tack"
3328 cf_with_tack=$withval
3330 cf_with_tack=$cf_with_progs
3332 echo "$as_me:3332: result: $cf_with_tack" >&5
3333 echo "${ECHO_T}$cf_with_tack" >&6
3339 echo "$as_me:3339: checking if you want to build test-programs" >&5
3340 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3342 # Check whether --with-tests or --without-tests was given.
3343 if test "${with_tests+set}" = set; then
3344 withval="$with_tests"
3345 cf_with_tests=$withval
3349 echo "$as_me:3349: result: $cf_with_tests" >&5
3350 echo "${ECHO_T}$cf_with_tests" >&6
3352 echo "$as_me:3352: checking if you wish to install curses.h" >&5
3353 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3355 # Check whether --with-curses-h or --without-curses-h was given.
3356 if test "${with_curses_h+set}" = set; then
3357 withval="$with_curses_h"
3358 with_curses_h=$withval
3362 echo "$as_me:3362: result: $with_curses_h" >&5
3363 echo "${ECHO_T}$with_curses_h" >&6
3365 modules_to_build="ncurses"
3366 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3367 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3368 modules_to_build="$modules_to_build panel menu form"
3370 test "$program_prefix" != NONE &&
3371 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3372 # Use a double $ so make ignores it.
3373 test "$program_suffix" != NONE &&
3374 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3375 # Double any \ or $. echo might interpret backslashes.
3376 # By default was `s,x,x', remove it if useless.
3377 cat <<\_ACEOF >conftest.sed
3378 s/[\\$]/&&/g;s/;s,x,x,$//
3380 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3383 for ac_prog in mawk gawk nawk awk
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 echo "$as_me:3387: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_prog_AWK+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 if test -n "$AWK"; then
3393 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3395 ac_save_IFS=$IFS; IFS=$ac_path_separator
3397 for ac_dir in $ac_dummy; do
3399 test -z "$ac_dir" && ac_dir=.
3400 $as_executable_p "$ac_dir/$ac_word" || continue
3401 ac_cv_prog_AWK="$ac_prog"
3402 echo "$as_me:3402: found $ac_dir/$ac_word" >&5
3409 if test -n "$AWK"; then
3410 echo "$as_me:3410: result: $AWK" >&5
3411 echo "${ECHO_T}$AWK" >&6
3413 echo "$as_me:3413: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3417 test -n "$AWK" && break
3420 test -z "$AWK" && { { echo "$as_me:3420: error: No awk program found" >&5
3421 echo "$as_me: error: No awk program found" >&2;}
3422 { (exit 1); exit 1; }; }
3424 echo "$as_me:3424: checking for egrep" >&5
3425 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3426 if test "${ac_cv_prog_egrep+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3430 then ac_cv_prog_egrep='grep -E'
3431 else ac_cv_prog_egrep='egrep'
3434 echo "$as_me:3434: result: $ac_cv_prog_egrep" >&5
3435 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3436 EGREP=$ac_cv_prog_egrep
3438 test -z "$EGREP" && { { echo "$as_me:3438: error: No egrep program found" >&5
3439 echo "$as_me: error: No egrep program found" >&2;}
3440 { (exit 1); exit 1; }; }
3442 # Find a good install program. We prefer a C program (faster),
3443 # so one script is as good as another. But avoid the broken or
3444 # incompatible versions:
3445 # SysV /etc/install, /usr/sbin/install
3446 # SunOS /usr/etc/install
3447 # IRIX /sbin/install
3449 # AmigaOS /C/install, which installs bootblocks on floppy discs
3450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3453 # ./install, which can be erroneously created by make from ./install.sh.
3454 echo "$as_me:3454: checking for a BSD compatible install" >&5
3455 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3456 if test -z "$INSTALL"; then
3457 if test "${ac_cv_path_install+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 ac_save_IFS=$IFS; IFS=$ac_path_separator
3461 for ac_dir in $PATH; do
3463 # Account for people who put trailing slashes in PATH elements.
3465 / | ./ | .// | /cC/* \
3466 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3469 # OSF1 and SCO ODT 3.0 have their own names for install.
3470 # Don't use installbsd from OSF since it installs stuff as root
3472 for ac_prog in ginstall scoinst install; do
3473 if $as_executable_p "$ac_dir/$ac_prog"; then
3474 if test $ac_prog = install &&
3475 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3476 # AIX install. It has an incompatible calling convention.
3478 elif test $ac_prog = install &&
3479 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3480 # program-specific install script used by HP pwplus--don't use.
3483 ac_cv_path_install="$ac_dir/$ac_prog -c"
3493 if test "${ac_cv_path_install+set}" = set; then
3494 INSTALL=$ac_cv_path_install
3496 # As a last resort, use the slow shell script. We don't cache a
3497 # path for INSTALL within a source directory, because that will
3498 # break other packages using the cache if that directory is
3499 # removed, or if the path is relative.
3500 INSTALL=$ac_install_sh
3503 echo "$as_me:3503: result: $INSTALL" >&5
3504 echo "${ECHO_T}$INSTALL" >&6
3506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3507 # It thinks the first close brace ends the variable substitution.
3508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3518 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3519 test -z "$cf_dir" && cf_dir=.
3520 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3524 for ac_prog in lint cppcheck splint
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo "$as_me:3528: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_LINT+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 if test -n "$LINT"; then
3534 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3536 ac_save_IFS=$IFS; IFS=$ac_path_separator
3538 for ac_dir in $ac_dummy; do
3540 test -z "$ac_dir" && ac_dir=.
3541 $as_executable_p "$ac_dir/$ac_word" || continue
3542 ac_cv_prog_LINT="$ac_prog"
3543 echo "$as_me:3543: found $ac_dir/$ac_word" >&5
3549 LINT=$ac_cv_prog_LINT
3550 if test -n "$LINT"; then
3551 echo "$as_me:3551: result: $LINT" >&5
3552 echo "${ECHO_T}$LINT" >&6
3554 echo "$as_me:3554: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3558 test -n "$LINT" && break
3561 echo "$as_me:3561: checking whether ln -s works" >&5
3562 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3564 if test "$LN_S" = "ln -s"; then
3565 echo "$as_me:3565: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6
3568 echo "$as_me:3568: result: no, using $LN_S" >&5
3569 echo "${ECHO_T}no, using $LN_S" >&6
3572 echo "$as_me:3572: checking if $LN_S -f options work" >&5
3573 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3575 rm -f conf$$.src conf$$dst
3577 echo first >conf$$.src
3578 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3583 rm -f conf$$.dst conf$$src
3584 echo "$as_me:3584: result: $cf_prog_ln_sf" >&5
3585 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3587 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3589 echo "$as_me:3589: checking for long file names" >&5
3590 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3591 if test "${ac_cv_sys_long_file_names+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 ac_cv_sys_long_file_names=yes
3595 # Test for long file names in all the places we know might matter:
3596 # . the current directory, where building will happen
3597 # $prefix/lib where we will be installing things
3598 # $exec_prefix/lib likewise
3599 # eval it to expand exec_prefix.
3600 # $TMPDIR if set, where it might want to write temporary files
3601 # if $TMPDIR is not set:
3602 # /tmp where it might want to write temporary files
3605 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3608 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3610 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3611 test -d $ac_dir || continue
3612 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3613 ac_xdir=$ac_dir/cf$$
3614 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3615 ac_tf1=$ac_xdir/conftest9012345
3616 ac_tf2=$ac_xdir/conftest9012346
3617 (echo 1 >$ac_tf1) 2>/dev/null
3618 (echo 2 >$ac_tf2) 2>/dev/null
3619 ac_val=`cat $ac_tf1 2>/dev/null`
3620 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3621 ac_cv_sys_long_file_names=no
3622 rm -rf $ac_xdir 2>/dev/null
3625 rm -rf $ac_xdir 2>/dev/null
3628 echo "$as_me:3628: result: $ac_cv_sys_long_file_names" >&5
3629 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3630 if test $ac_cv_sys_long_file_names = yes; then
3632 cat >>confdefs.h <<\EOF
3633 #define HAVE_LONG_FILE_NAMES 1
3638 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3639 # of package conflict.
3642 # Check whether --with-config-suffix or --without-config-suffix was given.
3643 if test "${with_config_suffix+set}" = set; then
3644 withval="$with_config_suffix"
3647 { echo "$as_me:3647: WARNING: expected a value for config-suffix option" >&5
3648 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3650 (*) cf_config_suffix="$withval"
3655 # If we find pkg-config, check if we should install the ".pc" files.
3657 echo "$as_me:3657: checking if you want to use pkg-config" >&5
3658 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3660 # Check whether --with-pkg-config or --without-pkg-config was given.
3661 if test "${with_pkg_config+set}" = set; then
3662 withval="$with_pkg_config"
3663 cf_pkg_config=$withval
3667 echo "$as_me:3667: result: $cf_pkg_config" >&5
3668 echo "${ECHO_T}$cf_pkg_config" >&6
3670 case $cf_pkg_config in
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3679 echo "$as_me:3679: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3689 ac_save_IFS=$IFS; IFS=$ac_path_separator
3691 for ac_dir in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir=.
3694 if $as_executable_p "$ac_dir/$ac_word"; then
3695 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3696 echo "$as_me:3696: found $ac_dir/$ac_word" >&5
3704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3706 if test -n "$PKG_CONFIG"; then
3707 echo "$as_me:3707: result: $PKG_CONFIG" >&5
3708 echo "${ECHO_T}$PKG_CONFIG" >&6
3710 echo "$as_me:3710: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3715 if test -z "$ac_cv_path_PKG_CONFIG"; then
3716 ac_pt_PKG_CONFIG=$PKG_CONFIG
3717 # Extract the first word of "pkg-config", so it can be a program name with args.
3718 set dummy pkg-config; ac_word=$2
3719 echo "$as_me:3719: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 case $ac_pt_PKG_CONFIG in
3726 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3729 ac_save_IFS=$IFS; IFS=$ac_path_separator
3731 for ac_dir in $ac_dummy; do
3733 test -z "$ac_dir" && ac_dir=.
3734 if $as_executable_p "$ac_dir/$ac_word"; then
3735 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3736 echo "$as_me:3736: found $ac_dir/$ac_word" >&5
3741 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3745 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3747 if test -n "$ac_pt_PKG_CONFIG"; then
3748 echo "$as_me:3748: result: $ac_pt_PKG_CONFIG" >&5
3749 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3751 echo "$as_me:3751: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3755 PKG_CONFIG=$ac_pt_PKG_CONFIG
3757 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3766 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3767 if test "$PKG_CONFIG" != none ; then
3769 if test "x$prefix" != xNONE; then
3770 cf_path_syntax="$prefix"
3772 cf_path_syntax="$ac_default_prefix"
3775 case ".$PKG_CONFIG" in
3780 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3782 (.\${*prefix}*|.\${*dir}*)
3783 eval PKG_CONFIG="$PKG_CONFIG"
3784 case ".$PKG_CONFIG" in
3786 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3791 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3794 { { echo "$as_me:3794: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3795 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3796 { (exit 1); exit 1; }; }
3800 elif test "x$cf_pkg_config" != xno ; then
3801 { echo "$as_me:3801: WARNING: pkg-config is not installed" >&5
3802 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3807 echo "$as_me:3807: checking for pkg-config library directory" >&5
3808 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3811 echo "$as_me:3811: checking for $PKG_CONFIG library directory" >&5
3812 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3816 PKG_CONFIG_LIBDIR=no
3818 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3819 if test "${with_pkg_config_libdir+set}" = set; then
3820 withval="$with_pkg_config_libdir"
3821 PKG_CONFIG_LIBDIR=$withval
3823 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3826 case x$PKG_CONFIG_LIBDIR in
3830 # Look for the library directory using the same prefix as the executable
3831 if test "x$PKG_CONFIG" = xnone
3835 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3838 # If you don't like using the default architecture, you have to specify the
3839 # intended library directory and corresponding compiler/linker options.
3841 # This case allows for Debian's 2014-flavor of multiarch, along with the
3842 # most common variations before that point. Some other variants spell the
3843 # directory differently, e.g., "pkg-config", and put it in unusual places.
3844 # pkg-config has always been poorly standardized, which is ironic...
3845 case x`(arch) 2>/dev/null` in
3848 $cf_path/lib/*64-linux-gnu \
3856 $cf_path/lib/*-linux-gnu \
3864 test -n "$verbose" && echo " list..." 1>&6
3866 echo "${as_me:-configure}:3866: testing list... ..." 1>&5
3868 for cf_config in $cf_search_path
3870 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3872 echo "${as_me:-configure}:3872: testing checking $cf_config/pkgconfig ..." 1>&5
3874 if test -d $cf_config/pkgconfig
3876 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3877 echo "$as_me:3877: checking done" >&5
3878 echo $ECHO_N "checking done... $ECHO_C" >&6
3887 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3888 echo "$as_me:3888: result: $PKG_CONFIG_LIBDIR" >&5
3889 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3892 if test "x$PKG_CONFIG" != xnone
3894 echo "$as_me:3894: checking if we should install .pc files for $PKG_CONFIG" >&5
3895 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3897 echo "$as_me:3897: checking if we should install .pc files" >&5
3898 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3901 # Check whether --enable-pc-files or --disable-pc-files was given.
3902 if test "${enable_pc_files+set}" = set; then
3903 enableval="$enable_pc_files"
3904 enable_pc_files=$enableval
3908 echo "$as_me:3908: result: $enable_pc_files" >&5
3909 echo "${ECHO_T}$enable_pc_files" >&6
3911 if test "x$enable_pc_files" != xno
3914 case "x$PKG_CONFIG_LIBDIR" in
3916 { echo "$as_me:3916: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3917 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3921 if test "x$prefix" != xNONE; then
3922 cf_path_syntax="$prefix"
3924 cf_path_syntax="$ac_default_prefix"
3927 case ".$PKG_CONFIG_LIBDIR" in
3932 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3934 (.\${*prefix}*|.\${*dir}*)
3935 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3936 case ".$PKG_CONFIG_LIBDIR" in
3938 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3943 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3946 { { echo "$as_me:3946: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3947 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3948 { (exit 1); exit 1; }; }
3958 if test -z "$MAKE_PC_FILES"
3960 echo "$as_me:3960: checking for suffix to add to pc-files" >&5
3961 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3963 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3964 if test "${with_pc_suffix+set}" = set; then
3965 withval="$with_pc_suffix"
3970 (*) PC_MODULE_SUFFIX="$withval"
3974 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3975 echo "$as_me:3975: result: $PC_MODULE_SUFFIX" >&5
3976 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3977 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3981 echo "$as_me:3981: checking if we should assume mixed-case filenames" >&5
3982 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3984 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3985 if test "${enable_mixed_case+set}" = set; then
3986 enableval="$enable_mixed_case"
3987 enable_mixedcase=$enableval
3989 enable_mixedcase=auto
3991 echo "$as_me:3991: result: $enable_mixedcase" >&5
3992 echo "${ECHO_T}$enable_mixedcase" >&6
3993 if test "$enable_mixedcase" = "auto" ; then
3995 echo "$as_me:3995: checking if filesystem supports mixed-case filenames" >&5
3996 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3997 if test "${cf_cv_mixedcase+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 if test "$cross_compiling" = yes ; then
4002 case $target_alias in
4003 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4011 rm -f conftest CONFTEST
4013 if test -f CONFTEST ; then
4018 rm -f conftest CONFTEST
4022 echo "$as_me:4022: result: $cf_cv_mixedcase" >&5
4023 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4024 test "$cf_cv_mixedcase" = yes &&
4025 cat >>confdefs.h <<\EOF
4026 #define MIXEDCASE_FILENAMES 1
4030 cf_cv_mixedcase=$enable_mixedcase
4031 if test "x$enable_mixedcase" = "xyes" ; then
4033 cat >>confdefs.h <<\EOF
4034 #define MIXEDCASE_FILENAMES 1
4040 # do this after mixed-case option (tags/TAGS is not as important as tic).
4041 echo "$as_me:4041: checking whether ${MAKE-make} sets \${MAKE}" >&5
4042 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4043 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4044 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 cat >conftest.make <<\EOF
4049 @echo 'ac_maketemp="${MAKE}"'
4051 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4052 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4053 if test -n "$ac_maketemp"; then
4054 eval ac_cv_prog_make_${ac_make}_set=yes
4056 eval ac_cv_prog_make_${ac_make}_set=no
4060 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4061 echo "$as_me:4061: result: yes" >&5
4062 echo "${ECHO_T}yes" >&6
4065 echo "$as_me:4065: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4067 SET_MAKE="MAKE=${MAKE-make}"
4070 for ac_prog in exctags ctags
4072 # Extract the first word of "$ac_prog", so it can be a program name with args.
4073 set dummy $ac_prog; ac_word=$2
4074 echo "$as_me:4074: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_prog_CTAGS+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if test -n "$CTAGS"; then
4080 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4082 ac_save_IFS=$IFS; IFS=$ac_path_separator
4084 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 $as_executable_p "$ac_dir/$ac_word" || continue
4088 ac_cv_prog_CTAGS="$ac_prog"
4089 echo "$as_me:4089: found $ac_dir/$ac_word" >&5
4095 CTAGS=$ac_cv_prog_CTAGS
4096 if test -n "$CTAGS"; then
4097 echo "$as_me:4097: result: $CTAGS" >&5
4098 echo "${ECHO_T}$CTAGS" >&6
4100 echo "$as_me:4100: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4104 test -n "$CTAGS" && break
4107 for ac_prog in exetags etags
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 echo "$as_me:4111: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_ETAGS+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test -n "$ETAGS"; then
4117 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4119 ac_save_IFS=$IFS; IFS=$ac_path_separator
4121 for ac_dir in $ac_dummy; do
4123 test -z "$ac_dir" && ac_dir=.
4124 $as_executable_p "$ac_dir/$ac_word" || continue
4125 ac_cv_prog_ETAGS="$ac_prog"
4126 echo "$as_me:4126: found $ac_dir/$ac_word" >&5
4132 ETAGS=$ac_cv_prog_ETAGS
4133 if test -n "$ETAGS"; then
4134 echo "$as_me:4134: result: $ETAGS" >&5
4135 echo "${ECHO_T}$ETAGS" >&6
4137 echo "$as_me:4137: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4141 test -n "$ETAGS" && break
4144 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4145 set dummy ${CTAGS:-ctags}; ac_word=$2
4146 echo "$as_me:4146: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 if test -n "$MAKE_LOWER_TAGS"; then
4152 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4154 ac_save_IFS=$IFS; IFS=$ac_path_separator
4156 for ac_dir in $ac_dummy; do
4158 test -z "$ac_dir" && ac_dir=.
4159 $as_executable_p "$ac_dir/$ac_word" || continue
4160 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4161 echo "$as_me:4161: found $ac_dir/$ac_word" >&5
4165 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4168 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4169 if test -n "$MAKE_LOWER_TAGS"; then
4170 echo "$as_me:4170: result: $MAKE_LOWER_TAGS" >&5
4171 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4173 echo "$as_me:4173: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4177 if test "$cf_cv_mixedcase" = yes ; then
4178 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4179 set dummy ${ETAGS:-etags}; ac_word=$2
4180 echo "$as_me:4180: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 if test -n "$MAKE_UPPER_TAGS"; then
4186 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4188 ac_save_IFS=$IFS; IFS=$ac_path_separator
4190 for ac_dir in $ac_dummy; do
4192 test -z "$ac_dir" && ac_dir=.
4193 $as_executable_p "$ac_dir/$ac_word" || continue
4194 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4195 echo "$as_me:4195: found $ac_dir/$ac_word" >&5
4199 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4202 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4203 if test -n "$MAKE_UPPER_TAGS"; then
4204 echo "$as_me:4204: result: $MAKE_UPPER_TAGS" >&5
4205 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4207 echo "$as_me:4207: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4215 if test "$MAKE_UPPER_TAGS" = yes ; then
4221 if test "$MAKE_LOWER_TAGS" = yes ; then
4227 echo "$as_me:4227: checking for makeflags variable" >&5
4228 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4229 if test "${cf_cv_makeflags+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4236 cat >cf_makeflags.tmp <<CF_EOF
4239 @ echo '.$cf_option'
4241 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4242 case "$cf_result" in
4244 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4245 case "$cf_result" in
4246 (.*CC=*) cf_cv_makeflags=
4248 (*) cf_cv_makeflags=$cf_option
4257 echo "${as_me:-configure}:4257: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4262 rm -f cf_makeflags.tmp
4265 echo "$as_me:4265: result: $cf_cv_makeflags" >&5
4266 echo "${ECHO_T}$cf_cv_makeflags" >&6
4268 if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4271 echo "$as_me:4271: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_RANLIB+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$RANLIB"; then
4277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4279 ac_save_IFS=$IFS; IFS=$ac_path_separator
4281 for ac_dir in $ac_dummy; do
4283 test -z "$ac_dir" && ac_dir=.
4284 $as_executable_p "$ac_dir/$ac_word" || continue
4285 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4286 echo "$as_me:4286: found $ac_dir/$ac_word" >&5
4292 RANLIB=$ac_cv_prog_RANLIB
4293 if test -n "$RANLIB"; then
4294 echo "$as_me:4294: result: $RANLIB" >&5
4295 echo "${ECHO_T}$RANLIB" >&6
4297 echo "$as_me:4297: result: no" >&5
4298 echo "${ECHO_T}no" >&6
4302 if test -z "$ac_cv_prog_RANLIB"; then
4303 ac_ct_RANLIB=$RANLIB
4304 # Extract the first word of "ranlib", so it can be a program name with args.
4305 set dummy ranlib; ac_word=$2
4306 echo "$as_me:4306: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 if test -n "$ac_ct_RANLIB"; then
4312 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4314 ac_save_IFS=$IFS; IFS=$ac_path_separator
4316 for ac_dir in $ac_dummy; do
4318 test -z "$ac_dir" && ac_dir=.
4319 $as_executable_p "$ac_dir/$ac_word" || continue
4320 ac_cv_prog_ac_ct_RANLIB="ranlib"
4321 echo "$as_me:4321: found $ac_dir/$ac_word" >&5
4325 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4329 if test -n "$ac_ct_RANLIB"; then
4330 echo "$as_me:4330: result: $ac_ct_RANLIB" >&5
4331 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4333 echo "$as_me:4333: result: no" >&5
4334 echo "${ECHO_T}no" >&6
4337 RANLIB=$ac_ct_RANLIB
4339 RANLIB="$ac_cv_prog_RANLIB"
4342 if test -n "$ac_tool_prefix"; then
4343 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4344 set dummy ${ac_tool_prefix}ld; ac_word=$2
4345 echo "$as_me:4345: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4347 if test "${ac_cv_prog_LD+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 if test -n "$LD"; then
4351 ac_cv_prog_LD="$LD" # Let the user override the test.
4353 ac_save_IFS=$IFS; IFS=$ac_path_separator
4355 for ac_dir in $ac_dummy; do
4357 test -z "$ac_dir" && ac_dir=.
4358 $as_executable_p "$ac_dir/$ac_word" || continue
4359 ac_cv_prog_LD="${ac_tool_prefix}ld"
4360 echo "$as_me:4360: found $ac_dir/$ac_word" >&5
4367 if test -n "$LD"; then
4368 echo "$as_me:4368: result: $LD" >&5
4369 echo "${ECHO_T}$LD" >&6
4371 echo "$as_me:4371: result: no" >&5
4372 echo "${ECHO_T}no" >&6
4376 if test -z "$ac_cv_prog_LD"; then
4378 # Extract the first word of "ld", so it can be a program name with args.
4379 set dummy ld; ac_word=$2
4380 echo "$as_me:4380: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test -n "$ac_ct_LD"; then
4386 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4388 ac_save_IFS=$IFS; IFS=$ac_path_separator
4390 for ac_dir in $ac_dummy; do
4392 test -z "$ac_dir" && ac_dir=.
4393 $as_executable_p "$ac_dir/$ac_word" || continue
4394 ac_cv_prog_ac_ct_LD="ld"
4395 echo "$as_me:4395: found $ac_dir/$ac_word" >&5
4399 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4402 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4403 if test -n "$ac_ct_LD"; then
4404 echo "$as_me:4404: result: $ac_ct_LD" >&5
4405 echo "${ECHO_T}$ac_ct_LD" >&6
4407 echo "$as_me:4407: result: no" >&5
4408 echo "${ECHO_T}no" >&6
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}ar; ac_word=$2
4419 echo "$as_me:4419: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_prog_AR+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test -n "$AR"; then
4425 ac_cv_prog_AR="$AR" # Let the user override the test.
4427 ac_save_IFS=$IFS; IFS=$ac_path_separator
4429 for ac_dir in $ac_dummy; do
4431 test -z "$ac_dir" && ac_dir=.
4432 $as_executable_p "$ac_dir/$ac_word" || continue
4433 ac_cv_prog_AR="${ac_tool_prefix}ar"
4434 echo "$as_me:4434: found $ac_dir/$ac_word" >&5
4441 if test -n "$AR"; then
4442 echo "$as_me:4442: result: $AR" >&5
4443 echo "${ECHO_T}$AR" >&6
4445 echo "$as_me:4445: result: no" >&5
4446 echo "${ECHO_T}no" >&6
4450 if test -z "$ac_cv_prog_AR"; then
4452 # Extract the first word of "ar", so it can be a program name with args.
4453 set dummy ar; ac_word=$2
4454 echo "$as_me:4454: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test -n "$ac_ct_AR"; then
4460 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4462 ac_save_IFS=$IFS; IFS=$ac_path_separator
4464 for ac_dir in $ac_dummy; do
4466 test -z "$ac_dir" && ac_dir=.
4467 $as_executable_p "$ac_dir/$ac_word" || continue
4468 ac_cv_prog_ac_ct_AR="ar"
4469 echo "$as_me:4469: found $ac_dir/$ac_word" >&5
4473 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4476 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4477 if test -n "$ac_ct_AR"; then
4478 echo "$as_me:4478: result: $ac_ct_AR" >&5
4479 echo "${ECHO_T}$ac_ct_AR" >&6
4481 echo "$as_me:4481: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4490 if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4492 set dummy ${ac_tool_prefix}nm; ac_word=$2
4493 echo "$as_me:4493: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_prog_NM+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if test -n "$NM"; then
4499 ac_cv_prog_NM="$NM" # Let the user override the test.
4501 ac_save_IFS=$IFS; IFS=$ac_path_separator
4503 for ac_dir in $ac_dummy; do
4505 test -z "$ac_dir" && ac_dir=.
4506 $as_executable_p "$ac_dir/$ac_word" || continue
4507 ac_cv_prog_NM="${ac_tool_prefix}nm"
4508 echo "$as_me:4508: found $ac_dir/$ac_word" >&5
4515 if test -n "$NM"; then
4516 echo "$as_me:4516: result: $NM" >&5
4517 echo "${ECHO_T}$NM" >&6
4519 echo "$as_me:4519: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4524 if test -z "$ac_cv_prog_NM"; then
4526 # Extract the first word of "nm", so it can be a program name with args.
4527 set dummy nm; ac_word=$2
4528 echo "$as_me:4528: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 if test -n "$ac_ct_NM"; then
4534 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4536 ac_save_IFS=$IFS; IFS=$ac_path_separator
4538 for ac_dir in $ac_dummy; do
4540 test -z "$ac_dir" && ac_dir=.
4541 $as_executable_p "$ac_dir/$ac_word" || continue
4542 ac_cv_prog_ac_ct_NM="nm"
4543 echo "$as_me:4543: found $ac_dir/$ac_word" >&5
4547 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4550 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4551 if test -n "$ac_ct_NM"; then
4552 echo "$as_me:4552: result: $ac_ct_NM" >&5
4553 echo "${ECHO_T}$ac_ct_NM" >&6
4555 echo "$as_me:4555: result: no" >&5
4556 echo "${ECHO_T}no" >&6
4564 if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4566 set dummy ${ac_tool_prefix}ar; ac_word=$2
4567 echo "$as_me:4567: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_AR+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$AR"; then
4573 ac_cv_prog_AR="$AR" # Let the user override the test.
4575 ac_save_IFS=$IFS; IFS=$ac_path_separator
4577 for ac_dir in $ac_dummy; do
4579 test -z "$ac_dir" && ac_dir=.
4580 $as_executable_p "$ac_dir/$ac_word" || continue
4581 ac_cv_prog_AR="${ac_tool_prefix}ar"
4582 echo "$as_me:4582: found $ac_dir/$ac_word" >&5
4589 if test -n "$AR"; then
4590 echo "$as_me:4590: result: $AR" >&5
4591 echo "${ECHO_T}$AR" >&6
4593 echo "$as_me:4593: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4598 if test -z "$ac_cv_prog_AR"; then
4600 # Extract the first word of "ar", so it can be a program name with args.
4601 set dummy ar; ac_word=$2
4602 echo "$as_me:4602: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4604 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 if test -n "$ac_ct_AR"; then
4608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4610 ac_save_IFS=$IFS; IFS=$ac_path_separator
4612 for ac_dir in $ac_dummy; do
4614 test -z "$ac_dir" && ac_dir=.
4615 $as_executable_p "$ac_dir/$ac_word" || continue
4616 ac_cv_prog_ac_ct_AR="ar"
4617 echo "$as_me:4617: found $ac_dir/$ac_word" >&5
4621 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4624 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4625 if test -n "$ac_ct_AR"; then
4626 echo "$as_me:4626: result: $ac_ct_AR" >&5
4627 echo "${ECHO_T}$ac_ct_AR" >&6
4629 echo "$as_me:4629: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4638 echo "$as_me:4638: checking for options to update archives" >&5
4639 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4640 if test "${cf_cv_ar_flags+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 cf_cv_ar_flags=unknown
4645 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4648 # check if $ARFLAGS already contains this choice
4649 if test "x$ARFLAGS" != "x" ; then
4650 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4651 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4657 rm -f conftest.$ac_cv_objext
4660 cat >conftest.$ac_ext <<EOF
4661 #line 4661 "configure"
4662 int testdata[3] = { 123, 456, 789 };
4664 if { (eval echo "$as_me:4664: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>&5
4667 echo "$as_me:4667: \$? = $ac_status" >&5
4668 (exit $ac_status); } ; then
4669 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4670 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4671 if test -f conftest.a ; then
4672 cf_cv_ar_flags=$cf_ar_flags
4676 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4678 echo "${as_me:-configure}:4678: testing cannot compile test-program ..." 1>&5
4683 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4686 echo "$as_me:4686: result: $cf_cv_ar_flags" >&5
4687 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4689 if test -n "$ARFLAGS" ; then
4690 if test -n "$cf_cv_ar_flags" ; then
4691 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4694 ARFLAGS=$cf_cv_ar_flags
4697 echo "$as_me:4697: checking if you have specified an install-prefix" >&5
4698 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4700 # Check whether --with-install-prefix or --without-install-prefix was given.
4701 if test "${with_install_prefix+set}" = set; then
4702 withval="$with_install_prefix"
4706 (*) DESTDIR="$withval"
4710 echo "$as_me:4710: result: $DESTDIR" >&5
4711 echo "${ECHO_T}$DESTDIR" >&6
4713 ###############################################################################
4715 # If we're cross-compiling, allow the user to override the tools and their
4716 # options. The configure script is oriented toward identifying the host
4717 # compiler, etc., but we need a build compiler to generate parts of the source.
4719 if test "$cross_compiling" = yes ; then
4721 # defaults that we might want to override
4722 : ${BUILD_CFLAGS:=''}
4723 : ${BUILD_CPPFLAGS:=''}
4724 : ${BUILD_LDFLAGS:=''}
4726 : ${BUILD_EXEEXT:='$x'}
4727 : ${BUILD_OBJEXT:='o'}
4729 # Check whether --with-build-cc or --without-build-cc was given.
4730 if test "${with_build_cc+set}" = set; then
4731 withval="$with_build_cc"
4734 for ac_prog in gcc clang c99 c89 cc cl
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 echo "$as_me:4738: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4740 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 if test -n "$BUILD_CC"; then
4744 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4746 ac_save_IFS=$IFS; IFS=$ac_path_separator
4748 for ac_dir in $ac_dummy; do
4750 test -z "$ac_dir" && ac_dir=.
4751 $as_executable_p "$ac_dir/$ac_word" || continue
4752 ac_cv_prog_BUILD_CC="$ac_prog"
4753 echo "$as_me:4753: found $ac_dir/$ac_word" >&5
4759 BUILD_CC=$ac_cv_prog_BUILD_CC
4760 if test -n "$BUILD_CC"; then
4761 echo "$as_me:4761: result: $BUILD_CC" >&5
4762 echo "${ECHO_T}$BUILD_CC" >&6
4764 echo "$as_me:4764: result: no" >&5
4765 echo "${ECHO_T}no" >&6
4768 test -n "$BUILD_CC" && break
4770 test -n "$BUILD_CC" || BUILD_CC="none"
4773 echo "$as_me:4773: checking for native build C compiler" >&5
4774 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4775 echo "$as_me:4775: result: $BUILD_CC" >&5
4776 echo "${ECHO_T}$BUILD_CC" >&6
4778 echo "$as_me:4778: checking for native build C preprocessor" >&5
4779 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4781 # Check whether --with-build-cpp or --without-build-cpp was given.
4782 if test "${with_build_cpp+set}" = set; then
4783 withval="$with_build_cpp"
4784 BUILD_CPP="$withval"
4786 BUILD_CPP='${BUILD_CC} -E'
4788 echo "$as_me:4788: result: $BUILD_CPP" >&5
4789 echo "${ECHO_T}$BUILD_CPP" >&6
4791 echo "$as_me:4791: checking for native build C flags" >&5
4792 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4794 # Check whether --with-build-cflags or --without-build-cflags was given.
4795 if test "${with_build_cflags+set}" = set; then
4796 withval="$with_build_cflags"
4797 BUILD_CFLAGS="$withval"
4799 echo "$as_me:4799: result: $BUILD_CFLAGS" >&5
4800 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4802 echo "$as_me:4802: checking for native build C preprocessor-flags" >&5
4803 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4805 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4806 if test "${with_build_cppflags+set}" = set; then
4807 withval="$with_build_cppflags"
4808 BUILD_CPPFLAGS="$withval"
4810 echo "$as_me:4810: result: $BUILD_CPPFLAGS" >&5
4811 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4813 echo "$as_me:4813: checking for native build linker-flags" >&5
4814 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4816 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4817 if test "${with_build_ldflags+set}" = set; then
4818 withval="$with_build_ldflags"
4819 BUILD_LDFLAGS="$withval"
4821 echo "$as_me:4821: result: $BUILD_LDFLAGS" >&5
4822 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4824 echo "$as_me:4824: checking for native build linker-libraries" >&5
4825 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4827 # Check whether --with-build-libs or --without-build-libs was given.
4828 if test "${with_build_libs+set}" = set; then
4829 withval="$with_build_libs"
4830 BUILD_LIBS="$withval"
4832 echo "$as_me:4832: result: $BUILD_LIBS" >&5
4833 echo "${ECHO_T}$BUILD_LIBS" >&6
4835 # this assumes we're on Unix.
4839 : ${BUILD_CC:='${CC}'}
4841 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4842 { { echo "$as_me:4842: error: Cross-build requires two compilers.
4843 Use --with-build-cc to specify the native compiler." >&5
4844 echo "$as_me: error: Cross-build requires two compilers.
4845 Use --with-build-cc to specify the native compiler." >&2;}
4846 { (exit 1); exit 1; }; }
4850 : ${BUILD_CC:='${CC}'}
4851 : ${BUILD_CPP:='${CPP}'}
4852 : ${BUILD_CFLAGS:='${CFLAGS}'}
4853 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4854 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4855 : ${BUILD_LIBS:='${LIBS}'}
4856 : ${BUILD_EXEEXT:='$x'}
4857 : ${BUILD_OBJEXT:='o'}
4860 ###############################################################################
4862 ### Options to allow the user to specify the set of libraries which are used.
4863 ### Use "--without-normal --with-shared" to allow the default model to be
4864 ### shared, for example.
4867 echo "$as_me:4867: checking if libtool -version-number should be used" >&5
4868 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4870 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4871 if test "${enable_libtool_version+set}" = set; then
4872 enableval="$enable_libtool_version"
4873 test "$enableval" != no && enableval=yes
4874 if test "$enableval" != "yes" ; then
4875 cf_libtool_version=no
4877 cf_libtool_version=yes
4881 cf_libtool_version=yes
4884 echo "$as_me:4884: result: $cf_libtool_version" >&5
4885 echo "${ECHO_T}$cf_libtool_version" >&6
4887 if test "$cf_libtool_version" = yes ; then
4888 LIBTOOL_VERSION="-version-number"
4890 LIBTOOL_VERSION="-version-info"
4893 { echo "$as_me:4893: WARNING: VERSION was not set" >&5
4894 echo "$as_me: WARNING: VERSION was not set" >&2;}
4897 ABI_VERSION="$VERSION"
4898 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4900 echo "${as_me:-configure}:4900: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4904 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4905 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4907 echo "${as_me:-configure}:4907: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4911 { echo "$as_me:4911: WARNING: unexpected VERSION value: $VERSION" >&5
4912 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4919 # common library maintenance symbols that are convenient for libtool scripts:
4920 LIB_CREATE='${AR} -cr'
4921 LIB_OBJECT='${OBJECTS}'
4925 # symbols used to prop libtool up to enable it to determine what it should be
4933 echo "$as_me:4933: checking if you want to build libraries with libtool" >&5
4934 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4936 # Check whether --with-libtool or --without-libtool was given.
4937 if test "${with_libtool+set}" = set; then
4938 withval="$with_libtool"
4939 with_libtool=$withval
4943 echo "$as_me:4943: result: $with_libtool" >&5
4944 echo "${ECHO_T}$with_libtool" >&6
4945 if test "$with_libtool" != "no"; then
4947 if test "$with_libtool" != "yes" ; then
4949 if test "x$prefix" != xNONE; then
4950 cf_path_syntax="$prefix"
4952 cf_path_syntax="$ac_default_prefix"
4955 case ".$with_libtool" in
4960 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4962 (.\${*prefix}*|.\${*dir}*)
4963 eval with_libtool="$with_libtool"
4964 case ".$with_libtool" in
4966 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4971 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4974 { { echo "$as_me:4974: error: expected a pathname, not \"$with_libtool\"" >&5
4975 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4976 { (exit 1); exit 1; }; }
4980 LIBTOOL=$with_libtool
4982 if test -n "$ac_tool_prefix"; then
4983 for ac_prog in libtool glibtool
4985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4987 echo "$as_me:4987: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 if test -n "$LIBTOOL"; then
4993 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4995 ac_save_IFS=$IFS; IFS=$ac_path_separator
4997 for ac_dir in $ac_dummy; do
4999 test -z "$ac_dir" && ac_dir=.
5000 $as_executable_p "$ac_dir/$ac_word" || continue
5001 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5002 echo "$as_me:5002: found $ac_dir/$ac_word" >&5
5008 LIBTOOL=$ac_cv_prog_LIBTOOL
5009 if test -n "$LIBTOOL"; then
5010 echo "$as_me:5010: result: $LIBTOOL" >&5
5011 echo "${ECHO_T}$LIBTOOL" >&6
5013 echo "$as_me:5013: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5017 test -n "$LIBTOOL" && break
5020 if test -z "$LIBTOOL"; then
5021 ac_ct_LIBTOOL=$LIBTOOL
5022 for ac_prog in libtool glibtool
5024 # Extract the first word of "$ac_prog", so it can be a program name with args.
5025 set dummy $ac_prog; ac_word=$2
5026 echo "$as_me:5026: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5028 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 if test -n "$ac_ct_LIBTOOL"; then
5032 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5034 ac_save_IFS=$IFS; IFS=$ac_path_separator
5036 for ac_dir in $ac_dummy; do
5038 test -z "$ac_dir" && ac_dir=.
5039 $as_executable_p "$ac_dir/$ac_word" || continue
5040 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5041 echo "$as_me:5041: found $ac_dir/$ac_word" >&5
5047 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5048 if test -n "$ac_ct_LIBTOOL"; then
5049 echo "$as_me:5049: result: $ac_ct_LIBTOOL" >&5
5050 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5052 echo "$as_me:5052: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5056 test -n "$ac_ct_LIBTOOL" && break
5058 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5060 LIBTOOL=$ac_ct_LIBTOOL
5063 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5065 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.].*//'`
5067 cf_cv_libtool_version=
5069 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5071 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5074 unset ac_cv_prog_ac_ct_LIBTOOL
5078 if test -n "$ac_tool_prefix"; then
5079 for ac_prog in glibtool
5081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5083 echo "$as_me:5083: checking for $ac_word" >&5
5084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 if test -n "$LIBTOOL"; then
5089 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5091 ac_save_IFS=$IFS; IFS=$ac_path_separator
5093 for ac_dir in $ac_dummy; do
5095 test -z "$ac_dir" && ac_dir=.
5096 $as_executable_p "$ac_dir/$ac_word" || continue
5097 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5098 echo "$as_me:5098: found $ac_dir/$ac_word" >&5
5104 LIBTOOL=$ac_cv_prog_LIBTOOL
5105 if test -n "$LIBTOOL"; then
5106 echo "$as_me:5106: result: $LIBTOOL" >&5
5107 echo "${ECHO_T}$LIBTOOL" >&6
5109 echo "$as_me:5109: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5113 test -n "$LIBTOOL" && break
5116 if test -z "$LIBTOOL"; then
5117 ac_ct_LIBTOOL=$LIBTOOL
5118 for ac_prog in glibtool
5120 # Extract the first word of "$ac_prog", so it can be a program name with args.
5121 set dummy $ac_prog; ac_word=$2
5122 echo "$as_me:5122: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 if test -n "$ac_ct_LIBTOOL"; then
5128 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5130 ac_save_IFS=$IFS; IFS=$ac_path_separator
5132 for ac_dir in $ac_dummy; do
5134 test -z "$ac_dir" && ac_dir=.
5135 $as_executable_p "$ac_dir/$ac_word" || continue
5136 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5137 echo "$as_me:5137: found $ac_dir/$ac_word" >&5
5143 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5144 if test -n "$ac_ct_LIBTOOL"; then
5145 echo "$as_me:5145: result: $ac_ct_LIBTOOL" >&5
5146 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5148 echo "$as_me:5148: result: no" >&5
5149 echo "${ECHO_T}no" >&6
5152 test -n "$ac_ct_LIBTOOL" && break
5154 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5156 LIBTOOL=$ac_ct_LIBTOOL
5159 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5161 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.].*//'`
5163 cf_cv_libtool_version=
5165 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5169 if test -z "$LIBTOOL" ; then
5170 { { echo "$as_me:5170: error: Cannot find libtool" >&5
5171 echo "$as_me: error: Cannot find libtool" >&2;}
5172 { (exit 1); exit 1; }; }
5174 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5175 LIB_OBJECT='${OBJECTS:.o=.lo}'
5177 LIB_CLEAN='${LIBTOOL} --mode=clean'
5178 LIB_COMPILE='${LIBTOOL} --mode=compile'
5179 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5180 LIB_INSTALL='${LIBTOOL} --mode=install'
5181 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5184 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5186 echo "$as_me:5186: checking version of $LIBTOOL" >&5
5187 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5189 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5191 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.].*//'`
5193 cf_cv_libtool_version=
5195 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5197 echo "$as_me:5197: result: $cf_cv_libtool_version" >&5
5198 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5199 if test -z "$cf_cv_libtool_version" ; then
5200 { { echo "$as_me:5200: error: This is not GNU libtool" >&5
5201 echo "$as_me: error: This is not GNU libtool" >&2;}
5202 { (exit 1); exit 1; }; }
5205 { { echo "$as_me:5205: error: GNU libtool has not been found" >&5
5206 echo "$as_me: error: GNU libtool has not been found" >&2;}
5207 { (exit 1); exit 1; }; }
5210 # special hack to add -no-undefined (which libtool should do for itself)
5212 case "$cf_cv_system_name" in
5213 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5214 LT_UNDEF=-no-undefined
5218 # special hack to add --tag option for C++ compiler
5219 case $cf_cv_libtool_version in
5220 (1.[5-9]*|[2-9].[0-9.a-z]*)
5221 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5222 LIBTOOL="$LIBTOOL --tag=CC"
5225 LIBTOOL_CXX="$LIBTOOL"
5233 test -z "$LIBTOOL" && ECHO_LT=
5235 if test "$with_libtool" != "no" ; then
5237 cf_list_models="$cf_list_models libtool"
5241 echo "$as_me:5241: checking if you want to build shared libraries" >&5
5242 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5244 # Check whether --with-shared or --without-shared was given.
5245 if test "${with_shared+set}" = set; then
5246 withval="$with_shared"
5247 with_shared=$withval
5251 echo "$as_me:5251: result: $with_shared" >&5
5252 echo "${ECHO_T}$with_shared" >&6
5253 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5255 echo "$as_me:5255: checking if you want to build static libraries" >&5
5256 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5258 # Check whether --with-normal or --without-normal was given.
5259 if test "${with_normal+set}" = set; then
5260 withval="$with_normal"
5261 with_normal=$withval
5265 echo "$as_me:5265: result: $with_normal" >&5
5266 echo "${ECHO_T}$with_normal" >&6
5267 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5269 echo "$as_me:5269: checking if you want to build debug libraries" >&5
5270 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5272 # Check whether --with-debug or --without-debug was given.
5273 if test "${with_debug+set}" = set; then
5274 withval="$with_debug"
5279 echo "$as_me:5279: result: $with_debug" >&5
5280 echo "${ECHO_T}$with_debug" >&6
5281 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5283 echo "$as_me:5283: checking if you want to build profiling libraries" >&5
5284 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5286 # Check whether --with-profile or --without-profile was given.
5287 if test "${with_profile+set}" = set; then
5288 withval="$with_profile"
5289 with_profile=$withval
5293 echo "$as_me:5293: result: $with_profile" >&5
5294 echo "${ECHO_T}$with_profile" >&6
5295 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5299 if test "X$cf_with_cxx_binding" != Xno; then
5300 if test "x$with_shared" = "xyes"; then
5301 echo "$as_me:5301: checking if you want to build C++ shared libraries" >&5
5302 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5304 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5305 if test "${with_cxx_shared+set}" = set; then
5306 withval="$with_cxx_shared"
5307 with_shared_cxx=$withval
5311 echo "$as_me:5311: result: $with_shared_cxx" >&5
5312 echo "${ECHO_T}$with_shared_cxx" >&6
5316 ###############################################################################
5318 echo "$as_me:5318: checking for specified models" >&5
5319 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5320 test -z "$cf_list_models" && cf_list_models=normal
5321 test "$with_libtool" != "no" && cf_list_models=libtool
5322 echo "$as_me:5322: result: $cf_list_models" >&5
5323 echo "${ECHO_T}$cf_list_models" >&6
5325 ### Use the first model as the default, and save its suffix for use in building
5326 ### up test-applications.
5327 echo "$as_me:5327: checking for default model" >&5
5328 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5329 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5330 echo "$as_me:5330: result: $DFT_LWR_MODEL" >&5
5331 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5333 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5344 echo "$as_me:5344: checking if you want to have a library-prefix" >&5
5345 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5347 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5348 if test "${with_lib_prefix+set}" = set; then
5349 withval="$with_lib_prefix"
5350 with_lib_prefix=$withval
5352 with_lib_prefix=auto
5354 echo "$as_me:5354: result: $with_lib_prefix" >&5
5355 echo "${ECHO_T}$with_lib_prefix" >&6
5357 if test $with_lib_prefix = auto
5360 case $cf_cv_system_name in
5362 if test "$DFT_LWR_MODEL" = libtool; then
5368 (*) LIB_PREFIX='lib'
5371 cf_prefix=$LIB_PREFIX
5373 elif test $with_lib_prefix = no
5377 LIB_PREFIX=$with_lib_prefix
5382 echo "$as_me:5382: checking for PATH separator" >&5
5383 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5384 case $cf_cv_system_name in
5385 (os2*) PATH_SEPARATOR=';' ;;
5386 (*) ${PATH_SEPARATOR:=':'} ;;
5389 echo "$as_me:5389: result: $PATH_SEPARATOR" >&5
5390 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5392 ###############################################################################
5394 echo "$as_me:5394: checking if you want to build a separate terminfo library" >&5
5395 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5397 # Check whether --with-termlib or --without-termlib was given.
5398 if test "${with_termlib+set}" = set; then
5399 withval="$with_termlib"
5400 with_termlib=$withval
5404 echo "$as_me:5404: result: $with_termlib" >&5
5405 echo "${ECHO_T}$with_termlib" >&6
5407 echo "$as_me:5407: checking if you want to build a separate tic library" >&5
5408 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5410 # Check whether --with-ticlib or --without-ticlib was given.
5411 if test "${with_ticlib+set}" = set; then
5412 withval="$with_ticlib"
5413 with_ticlib=$withval
5417 echo "$as_me:5417: result: $with_ticlib" >&5
5418 echo "${ECHO_T}$with_ticlib" >&6
5420 if test X"$CC_G_OPT" = X"" ; then
5422 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5425 if test X"$CXX_G_OPT" = X"" ; then
5427 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5430 echo "$as_me:5430: checking for default loader flags" >&5
5431 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5432 case $DFT_LWR_MODEL in
5433 (libtool) LD_MODEL='' ;;
5434 (normal) LD_MODEL='' ;;
5435 (debug) LD_MODEL=$CC_G_OPT ;;
5436 (profile) LD_MODEL='-pg';;
5437 (shared) LD_MODEL='' ;;
5439 echo "$as_me:5439: result: $LD_MODEL" >&5
5440 echo "${ECHO_T}$LD_MODEL" >&6
5442 case $DFT_LWR_MODEL in
5445 echo "$as_me:5445: checking if rpath option should be used" >&5
5446 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5448 # Check whether --enable-rpath or --disable-rpath was given.
5449 if test "${enable_rpath+set}" = set; then
5450 enableval="$enable_rpath"
5451 cf_cv_enable_rpath=$enableval
5453 cf_cv_enable_rpath=no
5455 echo "$as_me:5455: result: $cf_cv_enable_rpath" >&5
5456 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5458 echo "$as_me:5458: checking if shared libraries should be relinked during install" >&5
5459 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5461 # Check whether --enable-relink or --disable-relink was given.
5462 if test "${enable_relink+set}" = set; then
5463 enableval="$enable_relink"
5464 cf_cv_do_relink=$enableval
5468 echo "$as_me:5468: result: $cf_cv_do_relink" >&5
5469 echo "${ECHO_T}$cf_cv_do_relink" >&6
5473 # we will build libraries one-level down.
5477 if test "x$cf_cv_enable_rpath" != xno
5479 echo "$as_me:5479: checking for an rpath option" >&5
5480 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5481 case $cf_cv_system_name in
5483 if test "$GCC" = yes; then
5484 LD_RPATH_OPT="-Wl,-rpath,"
5486 LD_RPATH_OPT="-rpath "
5489 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5490 LD_RPATH_OPT="-Wl,-rpath,"
5492 (openbsd[2-9].*|mirbsd*)
5493 LD_RPATH_OPT="-Wl,-rpath,"
5496 LD_RPATH_OPT="-rpath "
5499 LD_RPATH_OPT="-Wl,-rpath,"
5502 LD_RPATH_OPT="-rpath "
5510 echo "$as_me:5510: result: $LD_RPATH_OPT" >&5
5511 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5513 case "x$LD_RPATH_OPT" in
5515 echo "$as_me:5515: checking if we need a space after rpath option" >&5
5516 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5517 cf_save_LIBS="$LIBS"
5519 cf_add_libs="${LD_RPATH_OPT}$libdir"
5520 # Filter out duplicates - this happens with badly-designed ".pc" files...
5521 for cf_add_1lib in $LIBS
5523 for cf_add_2lib in $cf_add_libs
5525 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5531 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5535 cat >conftest.$ac_ext <<_ACEOF
5536 #line 5536 "configure"
5537 #include "confdefs.h"
5547 rm -f conftest.$ac_objext conftest$ac_exeext
5548 if { (eval echo "$as_me:5548: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>&5
5551 echo "$as_me:5551: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -s conftest$ac_exeext'
5554 { (eval echo "$as_me:5554: \"$ac_try\"") >&5
5557 echo "$as_me:5557: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5561 echo "$as_me: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5566 LIBS="$cf_save_LIBS"
5567 echo "$as_me:5567: result: $cf_rpath_space" >&5
5568 echo "${ECHO_T}$cf_rpath_space" >&6
5569 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5578 INSTALL_LIB="-m 644"
5579 : ${rel_builddir:=.}
5585 cf_cv_do_symlinks=no
5587 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5589 echo "$as_me:5589: checking if release/abi version should be used for shared libs" >&5
5590 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5592 # Check whether --with-shlib-version or --without-shlib-version was given.
5593 if test "${with_shlib_version+set}" = set; then
5594 withval="$with_shlib_version"
5595 test -z "$withval" && withval=auto
5598 cf_cv_shlib_version=auto
5601 cf_cv_shlib_version=$withval
5604 echo "$as_me:5604: result: $withval" >&5
5605 echo "${ECHO_T}$withval" >&6
5606 { { echo "$as_me:5606: error: option value must be one of: rel, abi, or auto" >&5
5607 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5608 { (exit 1); exit 1; }; }
5613 cf_cv_shlib_version=auto
5615 echo "$as_me:5615: result: $cf_cv_shlib_version" >&5
5616 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5621 # Some less-capable ports of gcc support only -fpic
5625 if test "$GCC" = yes
5629 case $cf_cv_system_name in
5630 (*linux*) # e.g., PGI compiler
5636 if test "$cf_try_fPIC" = yes
5638 echo "$as_me:5638: checking which $CC option to use" >&5
5639 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5640 cf_save_CFLAGS="$CFLAGS"
5641 for CC_SHARED_OPTS in -fPIC -fpic ''
5643 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5644 cat >conftest.$ac_ext <<_ACEOF
5645 #line 5645 "configure"
5646 #include "confdefs.h"
5656 rm -f conftest.$ac_objext
5657 if { (eval echo "$as_me:5657: \"$ac_compile\"") >&5
5658 (eval $ac_compile) 2>&5
5660 echo "$as_me:5660: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -s conftest.$ac_objext'
5663 { (eval echo "$as_me:5663: \"$ac_try\"") >&5
5666 echo "$as_me:5666: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5670 echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 rm -f conftest.$ac_objext conftest.$ac_ext
5675 echo "$as_me:5675: result: $CC_SHARED_OPTS" >&5
5676 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5677 CFLAGS="$cf_save_CFLAGS"
5680 cf_cv_shlib_version_infix=no
5682 case $cf_cv_system_name in
5683 (aix4.3-9*|aix[5-7]*)
5684 if test "$GCC" = yes; then
5685 CC_SHARED_OPTS='-Wl,-brtl'
5686 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5688 CC_SHARED_OPTS='-brtl'
5689 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
5690 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5694 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5698 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5699 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5700 cf_cv_shlib_version=cygdll
5701 cf_cv_shlib_version_infix=cygdll
5704 cat >mk_shared_lib.sh <<-CF_EOF
5707 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5710 Linking shared library
5711 ** SHARED_LIB \$SHARED_LIB
5712 ** IMPORT_LIB \$IMPORT_LIB
5714 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5716 chmod +x mk_shared_lib.sh
5720 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5721 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5722 cf_cv_shlib_version=msysdll
5723 cf_cv_shlib_version_infix=msysdll
5726 cat >mk_shared_lib.sh <<-CF_EOF
5729 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5732 Linking shared library
5733 ** SHARED_LIB \$SHARED_LIB
5734 ** IMPORT_LIB \$IMPORT_LIB
5736 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5738 chmod +x mk_shared_lib.sh
5741 cf_try_cflags="no-cpp-precomp"
5742 CC_SHARED_OPTS="-dynamic"
5743 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5744 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5745 cf_cv_shlib_version_infix=yes
5746 echo "$as_me:5746: checking if ld -search_paths_first works" >&5
5747 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5748 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 cf_save_LDFLAGS=$LDFLAGS
5753 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5754 cat >conftest.$ac_ext <<_ACEOF
5755 #line 5755 "configure"
5756 #include "confdefs.h"
5766 rm -f conftest.$ac_objext conftest$ac_exeext
5767 if { (eval echo "$as_me:5767: \"$ac_link\"") >&5
5768 (eval $ac_link) 2>&5
5770 echo "$as_me:5770: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -s conftest$ac_exeext'
5773 { (eval echo "$as_me:5773: \"$ac_try\"") >&5
5776 echo "$as_me:5776: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5778 cf_cv_ldflags_search_paths_first=yes
5780 echo "$as_me: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5782 cf_cv_ldflags_search_paths_first=no
5784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5785 LDFLAGS=$cf_save_LDFLAGS
5787 echo "$as_me:5787: result: $cf_cv_ldflags_search_paths_first" >&5
5788 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5789 if test $cf_cv_ldflags_search_paths_first = yes; then
5790 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5794 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5795 if test "$GCC" != yes; then
5798 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
5799 INSTALL_LIB="-m 555"
5802 # (tested with gcc 2.7.2 -- I don't have c89)
5803 if test "$GCC" = yes; then
5804 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5807 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5809 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
5810 # HP-UX shared libraries must be executable, and should be
5811 # readonly to exploit a quirk in the memory manager.
5812 INSTALL_LIB="-m 555"
5815 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5816 if test "$cf_cv_shlib_version" = rel; then
5817 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5819 cf_shared_soname='`basename $@`'
5822 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
5825 if test "$cf_cv_enable_rpath" = yes ; then
5826 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5828 # tested with IRIX 5.2 and 'cc'.
5829 if test "$GCC" != yes; then
5830 CC_SHARED_OPTS='-KPIC'
5831 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
5833 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
5835 cf_cv_rm_so_locs=yes
5837 (linux*|gnu*|k*bsd*-gnu)
5838 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5839 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5840 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5842 if test "$cf_cv_enable_rpath" = yes ; then
5843 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5846 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5847 if test "$cf_cv_shlib_version" = rel; then
5848 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5850 cf_cv_shared_soname='`basename $@`'
5853 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5856 cf_cv_shlib_version=mingw
5857 cf_cv_shlib_version_infix=mingw
5860 if test "$DFT_LWR_MODEL" = "shared" ; then
5861 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
5862 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5863 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
5866 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5867 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5868 cat >mk_shared_lib.sh <<-CF_EOF
5871 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5874 Linking shared library
5875 ** SHARED_LIB \$SHARED_LIB
5876 ** IMPORT_LIB \$IMPORT_LIB
5878 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5880 chmod +x mk_shared_lib.sh
5882 (openbsd[2-9].*|mirbsd*)
5883 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5884 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5885 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5887 if test "$cf_cv_enable_rpath" = yes ; then
5888 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5890 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5892 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5893 if test "$cf_cv_shlib_version" = rel; then
5894 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5896 cf_cv_shared_soname='`basename $@`'
5899 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5901 (nto-qnx*|openbsd*|freebsd[12].*)
5902 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5903 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
5904 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5906 (dragonfly*|freebsd*)
5907 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5908 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5909 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5910 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5911 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5914 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5915 if test "$cf_cv_shlib_version" = rel; then
5916 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5918 cf_cv_shared_soname='`basename $@`'
5921 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5924 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5925 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5926 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5927 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5928 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5929 if test "$cf_cv_shlib_version" = auto; then
5930 if test -f /usr/libexec/ld.elf_so; then
5931 cf_cv_shlib_version=abi
5933 cf_cv_shlib_version=rel
5937 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5938 if test "$cf_cv_shlib_version" = rel; then
5939 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5941 cf_cv_shared_soname='`basename $@`'
5944 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5946 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
5950 # tested with OSF/1 V3.2 and 'cc'
5951 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5952 # link with shared libs).
5953 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5956 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5959 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5960 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5961 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5962 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5964 cf_cv_rm_so_locs=yes
5966 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
5967 # tested with osr5.0.5
5968 if test "$GCC" != yes; then
5969 CC_SHARED_OPTS='-belf -KPIC'
5971 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5972 if test "$cf_cv_enable_rpath" = yes ; then
5973 # only way is to set LD_RUN_PATH but no switch for it
5976 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5977 LINK_PROGS='LD_RUN_PATH=${libdir}'
5978 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5981 # tested with SunOS 4.1.1 and gcc 2.7.0
5982 if test "$GCC" != yes; then
5983 CC_SHARED_OPTS='-KPIC'
5985 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
5986 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5989 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5990 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5991 if test "$DFT_LWR_MODEL" = "shared" ; then
5992 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5993 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5995 if test "$cf_cv_enable_rpath" = yes ; then
5996 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5999 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6000 if test "$cf_cv_shlib_version" = rel; then
6001 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6003 cf_cv_shared_soname='`basename $@`'
6006 if test "$GCC" != yes; then
6007 cf_save_CFLAGS="$CFLAGS"
6008 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6010 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6011 cat >conftest.$ac_ext <<_ACEOF
6012 #line 6012 "configure"
6013 #include "confdefs.h"
6023 rm -f conftest.$ac_objext
6024 if { (eval echo "$as_me:6024: \"$ac_compile\"") >&5
6025 (eval $ac_compile) 2>&5
6027 echo "$as_me:6027: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:6030: \"$ac_try\"") >&5
6033 echo "$as_me:6033: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6037 echo "$as_me: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6040 rm -f conftest.$ac_objext conftest.$ac_ext
6042 CFLAGS="$cf_save_CFLAGS"
6043 CC_SHARED_OPTS=$cf_shared_opts
6044 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6046 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6049 (sysv5uw7*|unix_sv*)
6050 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6051 if test "$GCC" != yes; then
6052 CC_SHARED_OPTS='-KPIC'
6054 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6057 CC_SHARED_OPTS='unknown'
6058 MK_SHARED_LIB='echo unknown'
6062 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6063 case "$cf_cv_shlib_version" in
6065 case "$MK_SHARED_LIB" in
6067 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6070 { echo "$as_me:6070: WARNING: ignored --with-shlib-version" >&5
6071 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6077 if test -n "$cf_try_cflags"
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6080 "${as_me:-configure}"
6082 int main(int argc, char *argv[])
6085 return (argv[argc-1] == 0) ;
6088 cf_save_CFLAGS="$CFLAGS"
6089 for cf_opt in $cf_try_cflags
6091 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6092 echo "$as_me:6092: checking if CFLAGS option -$cf_opt works" >&5
6093 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6094 if { (eval echo "$as_me:6094: \"$ac_compile\"") >&5
6095 (eval $ac_compile) 2>&5
6097 echo "$as_me:6097: \$? = $ac_status" >&5
6098 (exit $ac_status); }; then
6099 echo "$as_me:6099: result: yes" >&5
6100 echo "${ECHO_T}yes" >&6
6101 cf_save_CFLAGS="$CFLAGS"
6103 echo "$as_me:6103: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6107 CFLAGS="$cf_save_CFLAGS"
6110 # RPATH_LIST is a colon-separated list of directories
6111 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6112 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6114 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6116 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6118 echo "${as_me:-configure}:6118: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6120 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6122 echo "${as_me:-configure}:6122: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6124 for model in $cf_list_models; do
6128 echo "$as_me:6128: checking for additional libtool options" >&5
6129 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6131 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6132 if test "${with_libtool_opts+set}" = set; then
6133 withval="$with_libtool_opts"
6134 with_libtool_opts=$withval
6136 with_libtool_opts=no
6138 echo "$as_me:6138: result: $with_libtool_opts" >&5
6139 echo "${ECHO_T}$with_libtool_opts" >&6
6141 case .$with_libtool_opts in
6145 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6149 echo "$as_me:6149: checking if exported-symbols file should be used" >&5
6150 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6152 # Check whether --with-export-syms or --without-export-syms was given.
6153 if test "${with_export_syms+set}" = set; then
6154 withval="$with_export_syms"
6155 with_export_syms=$withval
6159 if test "x$with_export_syms" = xyes
6161 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6164 echo "$as_me:6164: result: $with_export_syms" >&5
6165 echo "${ECHO_T}$with_export_syms" >&6
6166 if test "x$with_export_syms" != xno
6168 EXPORT_SYMS="-export-symbols $with_export_syms"
6174 if test "$CC_SHARED_OPTS" = "unknown"; then
6175 { { echo "$as_me:6175: error: Shared libraries are not supported in this version" >&5
6176 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6177 { (exit 1); exit 1; }; }
6179 # workaround for inept transition to PIE vs PIC...
6180 echo "$as_me:6180: checking if current CFLAGS link properly" >&5
6181 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6182 cat >conftest.$ac_ext <<_ACEOF
6183 #line 6183 "configure"
6184 #include "confdefs.h"
6189 printf("Hello work\n");
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (eval echo "$as_me:6195: \"$ac_link\"") >&5
6196 (eval $ac_link) 2>&5
6198 echo "$as_me:6198: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest$ac_exeext'
6201 { (eval echo "$as_me:6201: \"$ac_try\"") >&5
6204 echo "$as_me:6204: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6208 echo "$as_me: failed program was:" >&5
6209 cat conftest.$ac_ext >&5
6212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6213 echo "$as_me:6213: result: $cf_cflags_work" >&5
6214 echo "${ECHO_T}$cf_cflags_work" >&6
6215 if test "$cf_cflags_work" = no
6217 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6219 echo "${as_me:-configure}:6219: testing try to work around by appending shared-options ..." 1>&5
6221 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6224 echo "$as_me:6224: checking if versioned-symbols file should be used" >&5
6225 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6227 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6228 if test "${with_versioned_syms+set}" = set; then
6229 withval="$with_versioned_syms"
6230 with_versioned_syms=$withval
6232 with_versioned_syms=no
6234 case "x$with_versioned_syms" in
6236 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6242 test -f "$with_versioned_syms" || { { echo "$as_me:6242: error: expected a filename: $with_versioned_syms" >&5
6243 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6244 { (exit 1); exit 1; }; }
6247 test -f "$with_versioned_syms" || { { echo "$as_me:6247: error: expected a filename: $with_versioned_syms" >&5
6248 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6249 { (exit 1); exit 1; }; }
6250 with_versioned_syms=`pwd`/"$with_versioned_syms"
6253 echo "$as_me:6253: result: $with_versioned_syms" >&5
6254 echo "${ECHO_T}$with_versioned_syms" >&6
6260 if test "x$with_versioned_syms" != xno
6262 RESULTING_SYMS=$with_versioned_syms
6263 case "x$MK_SHARED_LIB" in
6265 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6266 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6267 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6269 echo "${as_me:-configure}:6269: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6273 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6274 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6275 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6277 echo "${as_me:-configure}:6277: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6281 { echo "$as_me:6281: WARNING: this system does not support versioned-symbols" >&5
6282 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6286 # Linux ld can selectively override scope, e.g., of symbols beginning with
6287 # "_" by first declaring some as global, and then using a wildcard to
6288 # declare the others as local. Some other loaders cannot do this. Check
6289 # by constructing a (very) simple shared library and inspecting its
6291 if test "x$VERSIONED_SYMS" != "x"
6293 echo "$as_me:6293: checking if wildcards can be used to selectively omit symbols" >&5
6294 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6300 cat >conftest.ver <<EOF
6329 cat >conftest.$ac_ext <<EOF
6330 #line 6330 "configure"
6331 int _ismissing(void) { return 1; }
6332 int _localf1(void) { return 1; }
6333 int _localf2(void) { return 2; }
6334 int globalf1(void) { return 1; }
6335 int globalf2(void) { return 2; }
6336 int _sublocalf1(void) { return 1; }
6337 int _sublocalf2(void) { return 2; }
6338 int subglobalf1(void) { return 1; }
6339 int subglobalf2(void) { return 2; }
6341 cat >conftest.mk <<EOF
6344 CPPFLAGS=${CPPFLAGS}
6347 VERSIONED_SYMS=${VERSIONED_SYMS}
6348 RESULTING_SYMS=conftest.ver
6349 MK_SHARED_LIB=${MK_SHARED_LIB}
6350 conftest.so: conftest.$ac_cv_objext
6351 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6354 # compile source, make library
6355 if make -f conftest.mk 2>&5 >/dev/null
6357 # test for missing symbol in either Data or Text section
6358 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6359 test -n "$cf_missing" && WILDCARD_SYMS=yes
6361 echo "$as_me:6361: result: $WILDCARD_SYMS" >&5
6362 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6371 ### Checks for special libraries, must be done up-front.
6374 echo "$as_me:6374: checking if you want to link with the GPM mouse library" >&5
6375 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6377 # Check whether --with-gpm or --without-gpm was given.
6378 if test "${with_gpm+set}" = set; then
6384 echo "$as_me:6384: result: $with_gpm" >&5
6385 echo "${ECHO_T}$with_gpm" >&6
6387 if test "$with_gpm" != no ; then
6388 echo "$as_me:6388: checking for gpm.h" >&5
6389 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6390 if test "${ac_cv_header_gpm_h+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.$ac_ext <<_ACEOF
6394 #line 6394 "configure"
6395 #include "confdefs.h"
6398 if { (eval echo "$as_me:6398: \"$ac_cpp conftest.$ac_ext\"") >&5
6399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6401 egrep -v '^ *\+' conftest.er1 >conftest.err
6403 cat conftest.err >&5
6404 echo "$as_me:6404: \$? = $ac_status" >&5
6405 (exit $ac_status); } >/dev/null; then
6406 if test -s conftest.err; then
6407 ac_cpp_err=$ac_c_preproc_warn_flag
6414 if test -z "$ac_cpp_err"; then
6415 ac_cv_header_gpm_h=yes
6417 echo "$as_me: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 ac_cv_header_gpm_h=no
6421 rm -f conftest.err conftest.$ac_ext
6423 echo "$as_me:6423: result: $ac_cv_header_gpm_h" >&5
6424 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6425 if test $ac_cv_header_gpm_h = yes; then
6427 cat >>confdefs.h <<\EOF
6428 #define HAVE_GPM_H 1
6431 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6432 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6434 echo "${as_me:-configure}:6434: testing assuming we really have GPM library ..." 1>&5
6436 cat >>confdefs.h <<\EOF
6437 #define HAVE_LIBGPM 1
6442 echo "$as_me:6442: checking for Gpm_Open in -lgpm" >&5
6443 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6444 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 ac_check_lib_save_LIBS=$LIBS
6449 cat >conftest.$ac_ext <<_ACEOF
6450 #line 6450 "configure"
6451 #include "confdefs.h"
6453 /* Override any gcc2 internal prototype to avoid an error. */
6457 /* We use char because int might match the return type of a gcc2
6458 builtin and then its argument prototype would still apply. */
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:6469: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>&5
6472 echo "$as_me:6472: \$? = $ac_status" >&5
6473 (exit $ac_status); } &&
6474 { ac_try='test -s conftest$ac_exeext'
6475 { (eval echo "$as_me:6475: \"$ac_try\"") >&5
6478 echo "$as_me:6478: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_lib_gpm_Gpm_Open=yes
6482 echo "$as_me: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6484 ac_cv_lib_gpm_Gpm_Open=no
6486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6487 LIBS=$ac_check_lib_save_LIBS
6489 echo "$as_me:6489: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6490 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6491 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6495 if test "$with_gpm" = maybe; then
6496 { echo "$as_me:6496: WARNING: Cannot link with GPM library" >&5
6497 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6500 { { echo "$as_me:6500: error: Cannot link with GPM library" >&5
6501 echo "$as_me: error: Cannot link with GPM library" >&2;}
6502 { (exit 1); exit 1; }; }
6511 test "$with_gpm" != maybe && { echo "$as_me:6511: WARNING: Cannot find GPM header" >&5
6512 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6519 if test "$with_gpm" != no ; then
6520 echo "$as_me:6520: checking if you want to load GPM dynamically" >&5
6521 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6523 # Check whether --with-dlsym or --without-dlsym was given.
6524 if test "${with_dlsym+set}" = set; then
6525 withval="$with_dlsym"
6530 echo "$as_me:6530: result: $with_dlsym" >&5
6531 echo "${ECHO_T}$with_dlsym" >&6
6532 if test "x$with_dlsym" = xyes ; then
6535 echo "$as_me:6535: checking for dlsym" >&5
6536 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
6537 if test "${ac_cv_func_dlsym+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 cat >conftest.$ac_ext <<_ACEOF
6541 #line 6541 "configure"
6542 #include "confdefs.h"
6543 #define dlsym autoconf_temporary
6544 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6551 /* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */
6559 /* The GNU C library defines stubs for functions which it implements
6560 to always fail with ENOSYS. Some functions are actually named
6561 something starting with __ and the normal name is an alias. */
6562 #if defined (__stub_dlsym) || defined (__stub___dlsym)
6563 #error found stub for dlsym
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:6572: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>&5
6575 echo "$as_me:6575: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
6577 { ac_try='test -s conftest$ac_exeext'
6578 { (eval echo "$as_me:6578: \"$ac_try\"") >&5
6581 echo "$as_me:6581: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 ac_cv_func_dlsym=yes
6585 echo "$as_me: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6591 echo "$as_me:6591: result: $ac_cv_func_dlsym" >&5
6592 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
6593 if test $ac_cv_func_dlsym = yes; then
6598 echo "$as_me:6598: checking for dlsym in -ldl" >&5
6599 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6600 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 ac_check_lib_save_LIBS=$LIBS
6605 cat >conftest.$ac_ext <<_ACEOF
6606 #line 6606 "configure"
6607 #include "confdefs.h"
6609 /* Override any gcc2 internal prototype to avoid an error. */
6613 /* We use char because int might match the return type of a gcc2
6614 builtin and then its argument prototype would still apply. */
6624 rm -f conftest.$ac_objext conftest$ac_exeext
6625 if { (eval echo "$as_me:6625: \"$ac_link\"") >&5
6626 (eval $ac_link) 2>&5
6628 echo "$as_me:6628: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -s conftest$ac_exeext'
6631 { (eval echo "$as_me:6631: \"$ac_try\"") >&5
6634 echo "$as_me:6634: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 ac_cv_lib_dl_dlsym=yes
6638 echo "$as_me: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6640 ac_cv_lib_dl_dlsym=no
6642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6643 LIBS=$ac_check_lib_save_LIBS
6645 echo "$as_me:6645: result: $ac_cv_lib_dl_dlsym" >&5
6646 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6647 if test $ac_cv_lib_dl_dlsym = yes; then
6655 if test "$cf_have_dlsym" = yes ; then
6656 test "$cf_have_libdl" = yes && {
6658 # Filter out duplicates - this happens with badly-designed ".pc" files...
6659 for cf_add_1lib in $LIBS
6661 for cf_add_2lib in $cf_add_libs
6663 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6669 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6674 echo "$as_me:6674: checking whether able to link to dl*() functions" >&5
6675 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
6676 cat >conftest.$ac_ext <<_ACEOF
6677 #line 6677 "configure"
6678 #include "confdefs.h"
6685 if ((obj = dlopen("filename", 0)) != 0) {
6686 if (dlsym(obj, "symbolname") == 0) {
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:6695: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>&5
6698 echo "$as_me:6698: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -s conftest$ac_exeext'
6701 { (eval echo "$as_me:6701: \"$ac_try\"") >&5
6704 echo "$as_me:6704: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6707 cat >>confdefs.h <<\EOF
6708 #define HAVE_LIBDL 1
6712 echo "$as_me: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 { { echo "$as_me:6715: error: Cannot link test program for libdl" >&5
6716 echo "$as_me: error: Cannot link test program for libdl" >&2;}
6717 { (exit 1); exit 1; }; }
6719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6720 echo "$as_me:6720: result: ok" >&5
6721 echo "${ECHO_T}ok" >&6
6723 { { echo "$as_me:6723: error: Cannot find dlsym function" >&5
6724 echo "$as_me: error: Cannot find dlsym function" >&2;}
6725 { (exit 1); exit 1; }; }
6728 if test "x$with_gpm" != xyes ; then
6729 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
6731 echo "${as_me:-configure}:6731: testing assuming soname for gpm is $with_gpm ..." 1>&5
6733 cf_cv_gpm_soname="$with_gpm"
6736 echo "$as_me:6736: checking for soname of gpm library" >&5
6737 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
6738 if test "${cf_cv_gpm_soname+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 cf_cv_gpm_soname=unknown
6743 if test "$cross_compiling" != yes ; then
6744 cat >conftest.$ac_ext <<CF_EOF
6748 if (Gpm_Open(0,0)) Gpm_Close();
6749 ${cf_cv_main_return:-return}(0);
6752 cf_save_LIBS="$LIBS"
6755 # Filter out duplicates - this happens with badly-designed ".pc" files...
6756 for cf_add_1lib in $LIBS
6758 for cf_add_2lib in $cf_add_libs
6760 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6766 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6770 if { (eval echo "$as_me:6770: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>&5
6773 echo "$as_me:6773: \$? = $ac_status" >&5
6774 (exit $ac_status); } ; then
6775 if { (eval echo "$as_me:6775: \"$ac_link\"") >&5
6776 (eval $ac_link) 2>&5
6778 echo "$as_me:6778: \$? = $ac_status" >&5
6779 (exit $ac_status); } ; then
6780 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
6781 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
6785 LIBS="$cf_save_LIBS"
6789 echo "$as_me:6789: result: $cf_cv_gpm_soname" >&5
6790 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
6793 test "$cf_cv_gpm_soname" != "unknown" &&
6794 cat >>confdefs.h <<EOF
6795 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
6798 SHLIB_LIST="-ldl $SHLIB_LIST"
6801 # Filter out duplicates - this happens with badly-designed ".pc" files...
6802 for cf_add_1lib in $PRIVATE_LIBS
6804 for cf_add_2lib in $cf_add_libs
6806 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6812 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6814 PRIVATE_LIBS="$cf_add_libs"
6817 SHLIB_LIST="-lgpm $SHLIB_LIST"
6820 # Filter out duplicates - this happens with badly-designed ".pc" files...
6821 for cf_add_1lib in $TEST_LIBS
6823 for cf_add_2lib in $cf_add_libs
6825 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6831 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6833 TEST_LIBS="$cf_add_libs"
6836 # Filter out duplicates - this happens with badly-designed ".pc" files...
6837 for cf_add_1lib in $PRIVATE_LIBS
6839 for cf_add_2lib in $cf_add_libs
6841 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6847 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6849 PRIVATE_LIBS="$cf_add_libs"
6853 cat >>confdefs.h <<\EOF
6854 #define HAVE_LIBGPM 1
6857 echo "$as_me:6857: checking for Gpm_Wgetch in -lgpm" >&5
6858 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
6859 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_check_lib_save_LIBS=$LIBS
6864 cat >conftest.$ac_ext <<_ACEOF
6865 #line 6865 "configure"
6866 #include "confdefs.h"
6868 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (eval echo "$as_me:6884: \"$ac_link\"") >&5
6885 (eval $ac_link) 2>&5
6887 echo "$as_me:6887: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:6890: \"$ac_try\"") >&5
6893 echo "$as_me:6893: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_lib_gpm_Gpm_Wgetch=yes
6897 echo "$as_me: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6899 ac_cv_lib_gpm_Gpm_Wgetch=no
6901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6902 LIBS=$ac_check_lib_save_LIBS
6904 echo "$as_me:6904: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
6905 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
6906 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
6908 echo "$as_me:6908: checking if GPM is weakly bound to curses library" >&5
6909 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
6910 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 cf_cv_check_gpm_wgetch=unknown
6915 if test "$cross_compiling" != yes ; then
6917 cat >conftest.$ac_ext <<CF_EOF
6922 ${cf_cv_main_return:-return}(0);
6926 cf_save_LIBS="$LIBS"
6927 # This only works if we can look at the symbol table. If a shared
6928 # library is stripped for install, we cannot use that. So we're forced
6929 # to rely on the static library, noting that some packagers may not
6931 LIBS="-static -lgpm -dynamic $LIBS"
6932 if { (eval echo "$as_me:6932: \"$ac_compile\"") >&5
6933 (eval $ac_compile) 2>&5
6935 echo "$as_me:6935: \$? = $ac_status" >&5
6936 (exit $ac_status); } ; then
6937 if { (eval echo "$as_me:6937: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>&5
6940 echo "$as_me:6940: \$? = $ac_status" >&5
6941 (exit $ac_status); } ; then
6942 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
6943 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
6944 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
6948 LIBS="$cf_save_LIBS"
6952 echo "$as_me:6952: result: $cf_cv_check_gpm_wgetch" >&5
6953 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
6955 if test "$cf_cv_check_gpm_wgetch" != yes ; then
6956 { echo "$as_me:6956: WARNING: GPM library is already linked with curses - read the FAQ" >&5
6957 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
6964 echo "$as_me:6964: checking if you want to use PCRE2 for regular-expressions" >&5
6965 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
6967 # Check whether --with-pcre2 or --without-pcre2 was given.
6968 if test "${with_pcre2+set}" = set; then
6969 withval="$with_pcre2"
6972 test -z "$with_pcre2" && with_pcre2=no
6973 echo "$as_me:6973: result: $with_pcre2" >&5
6974 echo "${ECHO_T}$with_pcre2" >&6
6976 if test "x$with_pcre2" != xno ; then
6978 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre2; then
6979 test -n "$verbose" && echo " found package libpcre2" 1>&6
6981 echo "${as_me:-configure}:6981: testing found package libpcre2 ..." 1>&5
6983 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre2 2>/dev/null`"
6984 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre2 2>/dev/null`"
6985 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
6987 echo "${as_me:-configure}:6987: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
6989 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
6991 echo "${as_me:-configure}:6991: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
6996 cf_new_extra_cppflags=
6998 for cf_add_cflags in $cf_pkgconfig_incs
7000 case $cf_fix_cppflags in
7002 case $cf_add_cflags in
7003 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7004 case $cf_add_cflags in
7006 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7008 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7009 && test -z "${cf_tst_cflags}" \
7010 && cf_fix_cppflags=yes
7012 if test $cf_fix_cppflags = yes ; then
7014 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7015 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7018 elif test "${cf_tst_cflags}" = "\"'" ; then
7020 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7021 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7031 case $cf_add_cflags in
7033 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7035 CPPFLAGS=`echo "$CPPFLAGS" | \
7036 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7037 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7042 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7043 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7050 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7051 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7058 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7059 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7061 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7063 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7064 && test -z "${cf_tst_cflags}" \
7065 && cf_fix_cppflags=no
7070 if test -n "$cf_new_cflags" ; then
7072 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7073 CFLAGS="${CFLAGS}$cf_new_cflags"
7077 if test -n "$cf_new_cppflags" ; then
7079 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7080 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7084 if test -n "$cf_new_extra_cppflags" ; then
7086 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7087 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7091 cf_add_libs="$cf_pkgconfig_libs"
7092 # Filter out duplicates - this happens with badly-designed ".pc" files...
7093 for cf_add_1lib in $LIBS
7095 for cf_add_2lib in $cf_add_libs
7097 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7103 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7112 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
7113 test -n "$verbose" && echo " found package libpcre" 1>&6
7115 echo "${as_me:-configure}:7115: testing found package libpcre ..." 1>&5
7117 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
7118 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
7119 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7121 echo "${as_me:-configure}:7121: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7123 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7125 echo "${as_me:-configure}:7125: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7130 cf_new_extra_cppflags=
7132 for cf_add_cflags in $cf_pkgconfig_incs
7134 case $cf_fix_cppflags in
7136 case $cf_add_cflags in
7137 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7138 case $cf_add_cflags in
7140 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7142 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7143 && test -z "${cf_tst_cflags}" \
7144 && cf_fix_cppflags=yes
7146 if test $cf_fix_cppflags = yes ; then
7148 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7149 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7152 elif test "${cf_tst_cflags}" = "\"'" ; then
7154 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7155 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7165 case $cf_add_cflags in
7167 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7169 CPPFLAGS=`echo "$CPPFLAGS" | \
7170 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7171 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7176 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7177 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7184 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7185 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7192 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7193 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7195 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7197 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7198 && test -z "${cf_tst_cflags}" \
7199 && cf_fix_cppflags=no
7204 if test -n "$cf_new_cflags" ; then
7206 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7207 CFLAGS="${CFLAGS}$cf_new_cflags"
7211 if test -n "$cf_new_cppflags" ; then
7213 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7214 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7218 if test -n "$cf_new_extra_cppflags" ; then
7220 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7221 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7225 cf_add_libs="$cf_pkgconfig_libs"
7226 # Filter out duplicates - this happens with badly-designed ".pc" files...
7227 for cf_add_1lib in $LIBS
7229 for cf_add_2lib in $cf_add_libs
7231 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7237 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7246 { { echo "$as_me:7246: error: Cannot find PCRE2 library" >&5
7247 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7248 { (exit 1); exit 1; }; }
7253 cat >>confdefs.h <<\EOF
7254 #define HAVE_LIB_PCRE2 1
7257 # if pkgconfig gave no results, look for the libraries directly
7259 (*pcre2-posix*|*pcreposix*)
7262 echo "$as_me:7262: checking for regcomp in -lpcre2-posix" >&5
7263 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7264 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 ac_check_lib_save_LIBS=$LIBS
7268 LIBS="-lpcre2-posix $LIBS"
7269 cat >conftest.$ac_ext <<_ACEOF
7270 #line 7270 "configure"
7271 #include "confdefs.h"
7273 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:7289: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>&5
7292 echo "$as_me:7292: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:7295: \"$ac_try\"") >&5
7298 echo "$as_me:7298: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_lib_pcre2_posix_regcomp=yes
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7304 ac_cv_lib_pcre2_posix_regcomp=no
7306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7307 LIBS=$ac_check_lib_save_LIBS
7309 echo "$as_me:7309: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7310 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7311 if test $ac_cv_lib_pcre2_posix_regcomp = yes; then
7313 cf_add_libs="-lpcre2-posix"
7314 # Filter out duplicates - this happens with badly-designed ".pc" files...
7315 for cf_add_1lib in $LIBS
7317 for cf_add_2lib in $cf_add_libs
7319 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7325 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7330 echo "$as_me:7330: checking for regcomp in -lpcreposix" >&5
7331 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7332 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_check_lib_save_LIBS=$LIBS
7336 LIBS="-lpcreposix $LIBS"
7337 cat >conftest.$ac_ext <<_ACEOF
7338 #line 7338 "configure"
7339 #include "confdefs.h"
7341 /* Override any gcc2 internal prototype to avoid an error. */
7345 /* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (eval echo "$as_me:7357: \"$ac_link\"") >&5
7358 (eval $ac_link) 2>&5
7360 echo "$as_me:7360: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try='test -s conftest$ac_exeext'
7363 { (eval echo "$as_me:7363: \"$ac_try\"") >&5
7366 echo "$as_me:7366: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 ac_cv_lib_pcreposix_regcomp=yes
7370 echo "$as_me: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 ac_cv_lib_pcreposix_regcomp=no
7374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7375 LIBS=$ac_check_lib_save_LIBS
7377 echo "$as_me:7377: result: $ac_cv_lib_pcreposix_regcomp" >&5
7378 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7379 if test $ac_cv_lib_pcreposix_regcomp = yes; then
7381 cf_add_libs="-lpcreposix"
7382 # Filter out duplicates - this happens with badly-designed ".pc" files...
7383 for cf_add_1lib in $LIBS
7385 for cf_add_2lib in $cf_add_libs
7387 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7393 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7398 { { echo "$as_me:7398: error: Cannot find PCRE2 POSIX library" >&5
7399 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7400 { (exit 1); exit 1; }; }
7408 # either way, check for the library header files
7410 for ac_header in pcre2-posix.h pcreposix.h
7412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7413 echo "$as_me:7413: checking for $ac_header" >&5
7414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 cat >conftest.$ac_ext <<_ACEOF
7419 #line 7419 "configure"
7420 #include "confdefs.h"
7421 #include <$ac_header>
7423 if { (eval echo "$as_me:7423: \"$ac_cpp conftest.$ac_ext\"") >&5
7424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7426 egrep -v '^ *\+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 (exit $ac_status); } >/dev/null; then
7431 if test -s conftest.err; then
7432 ac_cpp_err=$ac_c_preproc_warn_flag
7439 if test -z "$ac_cpp_err"; then
7440 eval "$as_ac_Header=yes"
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 eval "$as_ac_Header=no"
7446 rm -f conftest.err conftest.$ac_ext
7448 echo "$as_me:7448: result: `eval echo '${'$as_ac_Header'}'`" >&5
7449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7451 cat >>confdefs.h <<EOF
7452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7460 # not everyone has "test -c"
7461 if test -c /dev/sysmouse 2>/dev/null ; then
7462 echo "$as_me:7462: checking if you want to use sysmouse" >&5
7463 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7465 # Check whether --with-sysmouse or --without-sysmouse was given.
7466 if test "${with_sysmouse+set}" = set; then
7467 withval="$with_sysmouse"
7468 cf_with_sysmouse=$withval
7470 cf_with_sysmouse=maybe
7472 if test "$cf_with_sysmouse" != no ; then
7473 cat >conftest.$ac_ext <<_ACEOF
7474 #line 7474 "configure"
7475 #include "confdefs.h"
7477 #include <osreldate.h>
7478 #if (__FreeBSD_version >= 400017)
7479 #include <sys/consio.h>
7480 #include <sys/fbio.h>
7482 #include <machine/console.h>
7489 struct mouse_info the_mouse;
7490 ioctl(0, CONS_MOUSECTL, &the_mouse);
7496 rm -f conftest.$ac_objext
7497 if { (eval echo "$as_me:7497: \"$ac_compile\"") >&5
7498 (eval $ac_compile) 2>&5
7500 echo "$as_me:7500: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -s conftest.$ac_objext'
7503 { (eval echo "$as_me:7503: \"$ac_try\"") >&5
7506 echo "$as_me:7506: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 cf_with_sysmouse=yes
7510 echo "$as_me: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7514 rm -f conftest.$ac_objext conftest.$ac_ext
7516 echo "$as_me:7516: result: $cf_with_sysmouse" >&5
7517 echo "${ECHO_T}$cf_with_sysmouse" >&6
7518 test "$cf_with_sysmouse" = yes &&
7519 cat >>confdefs.h <<\EOF
7520 #define USE_SYSMOUSE 1
7525 # pretend that ncurses==ncursesw==ncursest
7526 echo "$as_me:7526: checking if you want to disable library suffixes" >&5
7527 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7529 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7530 if test "${enable_lib_suffixes+set}" = set; then
7531 enableval="$enable_lib_suffixes"
7532 test "$enableval" != no && enableval=yes
7533 if test "$enableval" != "yes" ; then
7534 disable_lib_suffixes=yes
7536 disable_lib_suffixes=no
7540 disable_lib_suffixes=no
7543 echo "$as_me:7543: result: $disable_lib_suffixes" >&5
7544 echo "${ECHO_T}$disable_lib_suffixes" >&6
7546 ### If we're building with rpath, try to link non-standard libs that way too.
7547 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7549 echo "$as_me:7549: checking if rpath-hack should be disabled" >&5
7550 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7552 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7553 if test "${enable_rpath_hack+set}" = set; then
7554 enableval="$enable_rpath_hack"
7555 test "$enableval" != no && enableval=yes
7556 if test "$enableval" != "yes" ; then
7557 cf_disable_rpath_hack=yes
7559 cf_disable_rpath_hack=no
7563 cf_disable_rpath_hack=no
7566 echo "$as_me:7566: result: $cf_disable_rpath_hack" >&5
7567 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7568 if test "$cf_disable_rpath_hack" = no ; then
7570 echo "$as_me:7570: checking for updated LDFLAGS" >&5
7571 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7572 if test -n "$LD_RPATH_OPT" ; then
7573 echo "$as_me:7573: result: maybe" >&5
7574 echo "${ECHO_T}maybe" >&6
7578 # Extract the first word of "$ac_prog", so it can be a program name with args.
7579 set dummy $ac_prog; ac_word=$2
7580 echo "$as_me:7580: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7582 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 if test -n "$cf_ldd_prog"; then
7586 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7588 ac_save_IFS=$IFS; IFS=$ac_path_separator
7590 for ac_dir in $ac_dummy; do
7592 test -z "$ac_dir" && ac_dir=.
7593 $as_executable_p "$ac_dir/$ac_word" || continue
7594 ac_cv_prog_cf_ldd_prog="$ac_prog"
7595 echo "$as_me:7595: found $ac_dir/$ac_word" >&5
7601 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7602 if test -n "$cf_ldd_prog"; then
7603 echo "$as_me:7603: result: $cf_ldd_prog" >&5
7604 echo "${ECHO_T}$cf_ldd_prog" >&6
7606 echo "$as_me:7606: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7610 test -n "$cf_ldd_prog" && break
7612 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7614 cf_rpath_list="/usr/lib /lib"
7615 if test "$cf_ldd_prog" != no
7619 cat >conftest.$ac_ext <<_ACEOF
7620 #line 7620 "configure"
7621 #include "confdefs.h"
7631 rm -f conftest.$ac_objext conftest$ac_exeext
7632 if { (eval echo "$as_me:7632: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>&5
7635 echo "$as_me:7635: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -s conftest$ac_exeext'
7638 { (eval echo "$as_me:7638: \"$ac_try\"") >&5
7641 echo "$as_me:7641: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7644 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7646 echo "$as_me: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7651 # If we passed the link-test, but get a "not found" on a given library,
7652 # this could be due to inept reconfiguration of gcc to make it only
7653 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
7654 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
7655 # /usr/local libraries.
7656 if test -n "$cf_rpath_oops"
7658 for cf_rpath_src in $cf_rpath_oops
7660 for cf_rpath_dir in \
7665 if test -f $cf_rpath_dir/lib/$cf_rpath_src
7667 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
7669 echo "${as_me:-configure}:7669: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
7671 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
7679 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7681 echo "${as_me:-configure}:7681: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7683 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
7685 echo "${as_me:-configure}:7685: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7688 for cf_rpath_src in $LDFLAGS
7690 case $cf_rpath_src in
7693 # check if this refers to a directory which we will ignore
7695 if test -n "$cf_rpath_list"
7697 for cf_rpath_item in $cf_rpath_list
7699 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7707 if test "$cf_rpath_skip" = no
7709 # transform the option
7710 if test "$LD_RPATH_OPT" = "-R " ; then
7711 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7713 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7716 # if we have not already added this, add it now
7717 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7718 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7720 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7722 echo "${as_me:-configure}:7722: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7724 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7729 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7731 LDFLAGS=$cf_rpath_dst
7733 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7735 echo "${as_me:-configure}:7735: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7737 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7739 echo "${as_me:-configure}:7739: testing ...checking LIBS $LIBS ..." 1>&5
7742 for cf_rpath_src in $LIBS
7744 case $cf_rpath_src in
7747 # check if this refers to a directory which we will ignore
7749 if test -n "$cf_rpath_list"
7751 for cf_rpath_item in $cf_rpath_list
7753 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7761 if test "$cf_rpath_skip" = no
7763 # transform the option
7764 if test "$LD_RPATH_OPT" = "-R " ; then
7765 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7767 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7770 # if we have not already added this, add it now
7771 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7772 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7774 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7776 echo "${as_me:-configure}:7776: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7778 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7783 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7787 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7789 echo "${as_me:-configure}:7789: testing ...checked LIBS $LIBS ..." 1>&5
7791 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7793 echo "${as_me:-configure}:7793: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7796 echo "$as_me:7796: result: no" >&5
7797 echo "${ECHO_T}no" >&6
7804 ###############################################################################
7806 ### use option --with-extra-suffix to append suffix to headers and libraries
7807 echo "$as_me:7807: checking if you wish to append extra suffix to header/library paths" >&5
7808 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7811 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7812 if test "${with_extra_suffix+set}" = set; then
7813 withval="$with_extra_suffix"
7818 EXTRA_SUFFIX=$cf_cv_abi_version
7821 EXTRA_SUFFIX=$withval
7826 echo "$as_me:7826: result: $EXTRA_SUFFIX" >&5
7827 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7829 ### use option --disable-overwrite to leave out the link to -lcurses
7830 echo "$as_me:7830: checking if you wish to install ncurses overwriting curses" >&5
7831 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7833 # Check whether --enable-overwrite or --disable-overwrite was given.
7834 if test "${enable_overwrite+set}" = set; then
7835 enableval="$enable_overwrite"
7836 with_overwrite=$enableval
7838 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7840 echo "$as_me:7840: result: $with_overwrite" >&5
7841 echo "${ECHO_T}$with_overwrite" >&6
7843 echo "$as_me:7843: checking if external terminfo-database is used" >&5
7844 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7846 # Check whether --enable-database or --disable-database was given.
7847 if test "${enable_database+set}" = set; then
7848 enableval="$enable_database"
7849 use_database=$enableval
7853 echo "$as_me:7853: result: $use_database" >&5
7854 echo "${ECHO_T}$use_database" >&6
7858 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7861 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7865 NCURSES_USE_DATABASE=0
7866 if test "$use_database" != no ; then
7867 NCURSES_USE_DATABASE=1
7869 echo "$as_me:7869: checking which terminfo source-file will be installed" >&5
7870 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7872 # Check whether --with-database or --without-database was given.
7873 if test "${with_database+set}" = set; then
7874 withval="$with_database"
7875 TERMINFO_SRC=$withval
7877 echo "$as_me:7877: result: $TERMINFO_SRC" >&5
7878 echo "${ECHO_T}$TERMINFO_SRC" >&6
7880 echo "$as_me:7880: checking whether to use hashed database instead of directory/tree" >&5
7881 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7883 # Check whether --with-hashed-db or --without-hashed-db was given.
7884 if test "${with_hashed_db+set}" = set; then
7885 withval="$with_hashed_db"
7890 echo "$as_me:7890: result: $with_hashed_db" >&5
7891 echo "${ECHO_T}$with_hashed_db" >&6
7896 echo "$as_me:7896: checking for list of fallback descriptions" >&5
7897 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7899 # Check whether --with-fallbacks or --without-fallbacks was given.
7900 if test "${with_fallbacks+set}" = set; then
7901 withval="$with_fallbacks"
7902 with_fallback=$withval
7906 echo "$as_me:7906: result: $with_fallback" >&5
7907 echo "${ECHO_T}$with_fallback" >&6
7909 case ".$with_fallback" in
7914 { echo "$as_me:7914: WARNING: expected a list of terminal descriptions" >&5
7915 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
7918 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
7923 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
7925 # The fallback feature in ncurses relies upon tic/infocmp outside the build
7926 # tree for generating the terminal descriptions that will be compiled into the
7927 # library. If your toolchain is old, it may not handle current terminal
7928 # databases. Use configure-options to point to the tools which will be used,
7929 # rather than the first ones found on the $PATH.
7930 if test -n "$FALLBACK_LIST"
7933 # Check whether --with-tic-path or --without-tic-path was given.
7934 if test "${with_tic_path+set}" = set; then
7935 withval="$with_tic_path"
7936 echo "$as_me:7936: checking for tic program for fallbacks" >&5
7937 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
7939 echo "$as_me:7939: result: $TIC" >&5
7940 echo "${ECHO_T}$TIC" >&6
7942 if test "x$prefix" != xNONE; then
7943 cf_path_syntax="$prefix"
7945 cf_path_syntax="$ac_default_prefix"
7953 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7955 (.\${*prefix}*|.\${*dir}*)
7959 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
7964 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
7967 { { echo "$as_me:7967: error: expected a pathname, not \"$TIC\"" >&5
7968 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
7969 { (exit 1); exit 1; }; }
7975 test -z "$TIC" && TIC=tic
7976 for ac_prog in $TIC tic
7978 # Extract the first word of "$ac_prog", so it can be a program name with args.
7979 set dummy $ac_prog; ac_word=$2
7980 echo "$as_me:7980: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7982 if test "${ac_cv_path_TIC+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
7990 ac_save_IFS=$IFS; IFS=$ac_path_separator
7991 ac_dummy="$PATH:/usr/local/ncurses/bin"
7992 for ac_dir in $ac_dummy; do
7994 test -z "$ac_dir" && ac_dir=.
7995 if $as_executable_p "$ac_dir/$ac_word"; then
7996 ac_cv_path_TIC="$ac_dir/$ac_word"
7997 echo "$as_me:7997: found $ac_dir/$ac_word" >&5
8007 if test -n "$TIC"; then
8008 echo "$as_me:8008: result: $TIC" >&5
8009 echo "${ECHO_T}$TIC" >&6
8011 echo "$as_me:8011: result: no" >&5
8012 echo "${ECHO_T}no" >&6
8015 test -n "$TIC" && break
8017 test -n "$TIC" || TIC="$TIC"
8021 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8022 for cf_temp in $ac_cv_path_TIC
8024 if test -z "$cf_path_prog" ; then
8025 if test "$with_full_paths" = yes ; then
8027 if test "x$prefix" != xNONE; then
8028 cf_path_syntax="$prefix"
8030 cf_path_syntax="$ac_default_prefix"
8038 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8040 (.\${*prefix}*|.\${*dir}*)
8041 eval cf_temp="$cf_temp"
8044 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8049 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8056 cf_path_prog="$cf_temp"
8058 cf_path_prog="`basename $cf_temp`"
8060 elif test -z "$cf_path_args" ; then
8061 cf_path_args="$cf_temp"
8063 cf_path_args="$cf_path_args $cf_temp"
8068 if test -n "$cf_path_prog" ; then
8070 echo "${as_me:-configure}:8070: testing defining path for ${cf_path_prog} ..." 1>&5
8072 cat >>confdefs.h <<EOF
8073 #define TIC_PATH "$cf_path_prog"
8076 test -n "$cf_path_args" &&
8077 cat >>confdefs.h <<EOF
8078 #define TIC_ARGS "$cf_path_args"
8085 { echo "$as_me:8085: WARNING: no tic program found for fallbacks" >&5
8086 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8091 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8092 if test "${with_infocmp_path+set}" = set; then
8093 withval="$with_infocmp_path"
8094 echo "$as_me:8094: checking for infocmp program for fallbacks" >&5
8095 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8097 echo "$as_me:8097: result: $INFOCMP" >&5
8098 echo "${ECHO_T}$INFOCMP" >&6
8100 if test "x$prefix" != xNONE; then
8101 cf_path_syntax="$prefix"
8103 cf_path_syntax="$ac_default_prefix"
8111 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8113 (.\${*prefix}*|.\${*dir}*)
8114 eval INFOCMP="$INFOCMP"
8117 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8122 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8125 { { echo "$as_me:8125: error: expected a pathname, not \"$INFOCMP\"" >&5
8126 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8127 { (exit 1); exit 1; }; }
8133 test -z "$INFOCMP" && INFOCMP=infocmp
8134 for ac_prog in $INFOCMP infocmp
8136 # Extract the first word of "$ac_prog", so it can be a program name with args.
8137 set dummy $ac_prog; ac_word=$2
8138 echo "$as_me:8138: checking for $ac_word" >&5
8139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8140 if test "${ac_cv_path_INFOCMP+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8148 ac_save_IFS=$IFS; IFS=$ac_path_separator
8149 ac_dummy="$PATH:/usr/local/ncurses/bin"
8150 for ac_dir in $ac_dummy; do
8152 test -z "$ac_dir" && ac_dir=.
8153 if $as_executable_p "$ac_dir/$ac_word"; then
8154 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8155 echo "$as_me:8155: found $ac_dir/$ac_word" >&5
8163 INFOCMP=$ac_cv_path_INFOCMP
8165 if test -n "$INFOCMP"; then
8166 echo "$as_me:8166: result: $INFOCMP" >&5
8167 echo "${ECHO_T}$INFOCMP" >&6
8169 echo "$as_me:8169: result: no" >&5
8170 echo "${ECHO_T}no" >&6
8173 test -n "$INFOCMP" && break
8175 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8179 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8180 for cf_temp in $ac_cv_path_INFOCMP
8182 if test -z "$cf_path_prog" ; then
8183 if test "$with_full_paths" = yes ; then
8185 if test "x$prefix" != xNONE; then
8186 cf_path_syntax="$prefix"
8188 cf_path_syntax="$ac_default_prefix"
8196 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8198 (.\${*prefix}*|.\${*dir}*)
8199 eval cf_temp="$cf_temp"
8202 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8207 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8214 cf_path_prog="$cf_temp"
8216 cf_path_prog="`basename $cf_temp`"
8218 elif test -z "$cf_path_args" ; then
8219 cf_path_args="$cf_temp"
8221 cf_path_args="$cf_path_args $cf_temp"
8226 if test -n "$cf_path_prog" ; then
8228 echo "${as_me:-configure}:8228: testing defining path for ${cf_path_prog} ..." 1>&5
8230 cat >>confdefs.h <<EOF
8231 #define INFOCMP_PATH "$cf_path_prog"
8234 test -n "$cf_path_args" &&
8235 cat >>confdefs.h <<EOF
8236 #define INFOCMP_ARGS "$cf_path_args"
8241 if test -z "$INFOCMP"
8243 { echo "$as_me:8243: WARNING: no infocmp program found for fallbacks" >&5
8244 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8251 : ${INFOCMP:=infocmp}
8254 echo "$as_me:8254: checking if you want modern xterm or antique" >&5
8255 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8257 # Check whether --with-xterm-new or --without-xterm-new was given.
8258 if test "${with_xterm_new+set}" = set; then
8259 withval="$with_xterm_new"
8260 with_xterm_new=$withval
8264 case $with_xterm_new in
8265 (no) with_xterm_new=xterm-old;;
8266 (*) with_xterm_new=xterm-new;;
8268 echo "$as_me:8268: result: $with_xterm_new" >&5
8269 echo "${ECHO_T}$with_xterm_new" >&6
8270 WHICH_XTERM=$with_xterm_new
8272 echo "$as_me:8272: checking if xterm backspace sends BS or DEL" >&5
8273 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8275 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8276 if test "${with_xterm_kbs+set}" = set; then
8277 withval="$with_xterm_kbs"
8278 with_xterm_kbs=$withval
8282 case x$with_xterm_kbs in
8283 (xyes|xno|xBS|xbs|x8)
8290 with_xterm_kbs=$withval
8293 echo "$as_me:8293: result: $with_xterm_kbs" >&5
8294 echo "${ECHO_T}$with_xterm_kbs" >&6
8295 XTERM_KBS=$with_xterm_kbs
8298 if test "$use_database" = no ; then
8299 TERMINFO="${datadir}/terminfo"
8303 echo "$as_me:8303: checking for list of terminfo directories" >&5
8304 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8306 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8307 if test "${with_terminfo_dirs+set}" = set; then
8308 withval="$with_terminfo_dirs"
8311 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8313 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8315 for cf_src_path in $withval
8318 if test "x$prefix" != xNONE; then
8319 cf_path_syntax="$prefix"
8321 cf_path_syntax="$ac_default_prefix"
8324 case ".$cf_src_path" in
8329 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8331 (.\${*prefix}*|.\${*dir}*)
8332 eval cf_src_path="$cf_src_path"
8333 case ".$cf_src_path" in
8335 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8340 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8343 { { echo "$as_me:8343: error: expected a pathname, not \"$cf_src_path\"" >&5
8344 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8345 { (exit 1); exit 1; }; }
8349 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8350 cf_dst_path="${cf_dst_path}${cf_src_path}"
8354 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8355 # so we have to check/work around. We do prefer the result of "eval"...
8356 eval cf_dst_eval="$cf_dst_path"
8357 case "x$cf_dst_eval" in
8359 TERMINFO_DIRS=$cf_dst_path
8362 TERMINFO_DIRS="$cf_dst_eval"
8366 echo "$as_me:8366: result: $TERMINFO_DIRS" >&5
8367 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8368 test -n "$TERMINFO_DIRS" &&
8369 cat >>confdefs.h <<EOF
8370 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8373 case "x$TERMINFO" in
8375 { echo "$as_me:8375: WARNING: ignoring non-directory/file TERMINFO value" >&5
8376 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
8381 echo "$as_me:8381: checking for default terminfo directory" >&5
8382 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8384 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8385 if test "${with_default_terminfo_dir+set}" = set; then
8386 withval="$with_default_terminfo_dir"
8389 withval="${TERMINFO:-${datadir}/terminfo}"
8390 fi; if test -n "${datadir}/terminfo" ; then
8392 if test "x$prefix" != xNONE; then
8393 cf_path_syntax="$prefix"
8395 cf_path_syntax="$ac_default_prefix"
8403 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8405 (.\${*prefix}*|.\${*dir}*)
8406 eval withval="$withval"
8409 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8414 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8417 { { echo "$as_me:8417: error: expected a pathname, not \"$withval\"" >&5
8418 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8419 { (exit 1); exit 1; }; }
8424 eval TERMINFO="$withval"
8426 echo "$as_me:8426: result: $TERMINFO" >&5
8427 echo "${ECHO_T}$TERMINFO" >&6
8429 cat >>confdefs.h <<EOF
8430 #define TERMINFO "$TERMINFO"
8435 ### use option --disable-big-core to make tic run on small machines
8436 ### We need 4Mb, check if we can allocate 50% more than that.
8437 echo "$as_me:8437: checking if big-core option selected" >&5
8438 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8440 # Check whether --enable-big-core or --disable-big-core was given.
8441 if test "${enable_big_core+set}" = set; then
8442 enableval="$enable_big_core"
8443 with_big_core=$enableval
8445 if test "$cross_compiling" = yes; then
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line 8449 "configure"
8450 #include "confdefs.h"
8455 unsigned long n = 6000000L;
8456 char *s = malloc(n);
8459 ${cf_cv_main_return:-return}(s == 0);
8462 rm -f conftest$ac_exeext
8463 if { (eval echo "$as_me:8463: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8466 echo "$as_me:8466: \$? = $ac_status" >&5
8467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8468 { (eval echo "$as_me:8468: \"$ac_try\"") >&5
8471 echo "$as_me:8471: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8475 echo "$as_me: program exited with status $ac_status" >&5
8476 echo "$as_me: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8480 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8483 echo "$as_me:8483: result: $with_big_core" >&5
8484 echo "${ECHO_T}$with_big_core" >&6
8485 test "x$with_big_core" = "xyes" &&
8486 cat >>confdefs.h <<\EOF
8487 #define HAVE_BIG_CORE 1
8490 ### ISO C only guarantees 512-char strings, we have tables which load faster
8491 ### when constructed using "big" strings. More than the C compiler, the awk
8492 ### program is a limit on most vendor UNIX systems. Check that we can build.
8493 echo "$as_me:8493: checking if big-strings option selected" >&5
8494 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
8496 # Check whether --enable-big-strings or --disable-big-strings was given.
8497 if test "${enable_big_strings+set}" = set; then
8498 enableval="$enable_big_strings"
8499 with_big_strings=$enableval
8504 eval with_big_strings=no
8507 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
8508 | $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
8509 eval with_big_strings=yes
8511 eval with_big_strings=no
8517 echo "$as_me:8517: result: $with_big_strings" >&5
8518 echo "${ECHO_T}$with_big_strings" >&6
8521 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
8523 ### use option --enable-termcap to compile in the termcap fallback support
8524 echo "$as_me:8524: checking if you want termcap-fallback support" >&5
8525 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
8527 # Check whether --enable-termcap or --disable-termcap was given.
8528 if test "${enable_termcap+set}" = set; then
8529 enableval="$enable_termcap"
8530 with_termcap=$enableval
8534 echo "$as_me:8534: result: $with_termcap" >&5
8535 echo "${ECHO_T}$with_termcap" >&6
8537 NCURSES_USE_TERMCAP=0
8538 if test "x$with_termcap" != "xyes" ; then
8539 if test "$use_database" = no ; then
8540 if test -z "$with_fallback" ; then
8541 { { echo "$as_me:8541: error: You have disabled the database w/o specifying fallbacks" >&5
8542 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
8543 { (exit 1); exit 1; }; }
8547 cat >>confdefs.h <<\EOF
8548 #define PURE_TERMINFO 1
8553 if test "$with_ticlib" != no ; then
8554 { { echo "$as_me:8554: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
8555 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
8556 { (exit 1); exit 1; }; }
8559 NCURSES_USE_TERMCAP=1
8560 echo "$as_me:8560: checking for list of termcap files" >&5
8561 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
8563 # Check whether --with-termpath or --without-termpath was given.
8564 if test "${with_termpath+set}" = set; then
8565 withval="$with_termpath"
8568 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
8570 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8572 for cf_src_path in $withval
8575 if test "x$prefix" != xNONE; then
8576 cf_path_syntax="$prefix"
8578 cf_path_syntax="$ac_default_prefix"
8581 case ".$cf_src_path" in
8586 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8588 (.\${*prefix}*|.\${*dir}*)
8589 eval cf_src_path="$cf_src_path"
8590 case ".$cf_src_path" in
8592 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8597 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8600 { { echo "$as_me:8600: error: expected a pathname, not \"$cf_src_path\"" >&5
8601 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8602 { (exit 1); exit 1; }; }
8606 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8607 cf_dst_path="${cf_dst_path}${cf_src_path}"
8611 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8612 # so we have to check/work around. We do prefer the result of "eval"...
8613 eval cf_dst_eval="$cf_dst_path"
8614 case "x$cf_dst_eval" in
8616 TERMPATH=$cf_dst_path
8619 TERMPATH="$cf_dst_eval"
8623 echo "$as_me:8623: result: $TERMPATH" >&5
8624 echo "${ECHO_T}$TERMPATH" >&6
8625 test -n "$TERMPATH" &&
8626 cat >>confdefs.h <<EOF
8627 #define TERMPATH "$TERMPATH"
8630 ### use option --enable-getcap to use a hacked getcap for reading termcaps
8631 echo "$as_me:8631: checking if fast termcap-loader is needed" >&5
8632 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
8634 # Check whether --enable-getcap or --disable-getcap was given.
8635 if test "${enable_getcap+set}" = set; then
8636 enableval="$enable_getcap"
8637 with_getcap=$enableval
8641 echo "$as_me:8641: result: $with_getcap" >&5
8642 echo "${ECHO_T}$with_getcap" >&6
8643 test "x$with_getcap" = "xyes" &&
8644 cat >>confdefs.h <<\EOF
8645 #define USE_GETCAP 1
8648 echo "$as_me:8648: checking if translated termcaps will be cached in ~/.terminfo" >&5
8649 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
8651 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
8652 if test "${enable_getcap_cache+set}" = set; then
8653 enableval="$enable_getcap_cache"
8654 with_getcap_cache=$enableval
8656 with_getcap_cache=no
8658 echo "$as_me:8658: result: $with_getcap_cache" >&5
8659 echo "${ECHO_T}$with_getcap_cache" >&6
8660 test "x$with_getcap_cache" = "xyes" &&
8661 cat >>confdefs.h <<\EOF
8662 #define USE_GETCAP_CACHE 1
8667 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
8668 echo "$as_me:8668: checking if ~/.terminfo is wanted" >&5
8669 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
8671 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
8672 if test "${enable_home_terminfo+set}" = set; then
8673 enableval="$enable_home_terminfo"
8674 with_home_terminfo=$enableval
8676 with_home_terminfo=yes
8678 echo "$as_me:8678: result: $with_home_terminfo" >&5
8679 echo "${ECHO_T}$with_home_terminfo" >&6
8680 test "x$with_home_terminfo" = "xyes" &&
8681 cat >>confdefs.h <<\EOF
8682 #define USE_HOME_TERMINFO 1
8685 echo "$as_me:8685: checking if you want to use restricted environment when running as root" >&5
8686 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
8688 # Check whether --enable-root-environ or --disable-root-environ was given.
8689 if test "${enable_root_environ+set}" = set; then
8690 enableval="$enable_root_environ"
8691 with_root_environ=$enableval
8693 with_root_environ=yes
8695 echo "$as_me:8695: result: $with_root_environ" >&5
8696 echo "${ECHO_T}$with_root_environ" >&6
8697 test "x$with_root_environ" = xyes &&
8698 cat >>confdefs.h <<\EOF
8699 #define USE_ROOT_ENVIRON 1
8702 ### Use option --enable-symlinks to make tic use symlinks, not hard links
8703 ### to reduce storage requirements for the terminfo database.
8709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710 echo "$as_me:8710: checking for $ac_header" >&5
8711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8716 #line 8716 "configure"
8717 #include "confdefs.h"
8718 #include <$ac_header>
8720 if { (eval echo "$as_me:8720: \"$ac_cpp conftest.$ac_ext\"") >&5
8721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8723 egrep -v '^ *\+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 echo "$as_me:8726: \$? = $ac_status" >&5
8727 (exit $ac_status); } >/dev/null; then
8728 if test -s conftest.err; then
8729 ac_cpp_err=$ac_c_preproc_warn_flag
8736 if test -z "$ac_cpp_err"; then
8737 eval "$as_ac_Header=yes"
8739 echo "$as_me: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8741 eval "$as_ac_Header=no"
8743 rm -f conftest.err conftest.$ac_ext
8745 echo "$as_me:8745: result: `eval echo '${'$as_ac_Header'}'`" >&5
8746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8748 cat >>confdefs.h <<EOF
8749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8760 echo "$as_me:8760: checking for $ac_func" >&5
8761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8762 if eval "test \"\${$as_ac_var+set}\" = set"; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line 8766 "configure"
8767 #include "confdefs.h"
8768 #define $ac_func autoconf_temporary
8769 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8776 /* We use char because int might match the return type of a gcc2
8777 builtin and then its argument prototype would still apply. */
8778 char $ac_func (void);
8784 /* The GNU C library defines stubs for functions which it implements
8785 to always fail with ENOSYS. Some functions are actually named
8786 something starting with __ and the normal name is an alias. */
8787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8788 #error found stub for $ac_func
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:8797: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>&5
8800 echo "$as_me:8800: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:8803: \"$ac_try\"") >&5
8806 echo "$as_me:8806: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 eval "$as_ac_var=yes"
8810 echo "$as_me: failed program was:" >&5
8811 cat conftest.$ac_ext >&5
8812 eval "$as_ac_var=no"
8814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8816 echo "$as_me:8816: result: `eval echo '${'$as_ac_var'}'`" >&5
8817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8818 if test `eval echo '${'$as_ac_var'}'` = yes; then
8819 cat >>confdefs.h <<EOF
8820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8826 if test "$cross_compiling" = yes ; then
8832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8833 echo "$as_me:8833: checking for $ac_func" >&5
8834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8835 if eval "test \"\${$as_ac_var+set}\" = set"; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 cat >conftest.$ac_ext <<_ACEOF
8839 #line 8839 "configure"
8840 #include "confdefs.h"
8841 #define $ac_func autoconf_temporary
8842 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8849 /* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8851 char $ac_func (void);
8857 /* The GNU C library defines stubs for functions which it implements
8858 to always fail with ENOSYS. Some functions are actually named
8859 something starting with __ and the normal name is an alias. */
8860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8861 #error found stub for $ac_func
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:8870: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>&5
8873 echo "$as_me:8873: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:8876: \"$ac_try\"") >&5
8879 echo "$as_me:8879: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 eval "$as_ac_var=yes"
8883 echo "$as_me: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 eval "$as_ac_var=no"
8887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8889 echo "$as_me:8889: result: `eval echo '${'$as_ac_var'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8891 if test `eval echo '${'$as_ac_var'}'` = yes; then
8892 cat >>confdefs.h <<EOF
8893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8900 echo "$as_me:8900: checking if link/symlink functions work" >&5
8901 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
8902 if test "${cf_cv_link_funcs+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 for cf_func in link symlink ; do
8908 if test "$cross_compiling" = yes; then
8910 eval 'ac_cv_func_'$cf_func'=error'
8912 cat >conftest.$ac_ext <<_ACEOF
8913 #line 8913 "configure"
8914 #include "confdefs.h"
8916 #include <sys/types.h>
8917 #include <sys/stat.h>
8918 #ifdef HAVE_UNISTD_H
8924 char *src = "config.log";
8925 char *dst = "conftest.chk";
8930 fail = ($cf_func("config.log", "conftest.chk") < 0)
8931 || (stat(dst, &dst_sb) < 0)
8932 || (dst_sb.st_mtime != src_sb.st_mtime);
8938 ${cf_cv_main_return:-return} (fail);
8942 rm -f conftest$ac_exeext
8943 if { (eval echo "$as_me:8943: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>&5
8946 echo "$as_me:8946: \$? = $ac_status" >&5
8947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8948 { (eval echo "$as_me:8948: \"$ac_try\"") >&5
8951 echo "$as_me:8951: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8954 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
8955 eval 'ac_cv_func_'$cf_func'=yes'
8957 echo "$as_me: program exited with status $ac_status" >&5
8958 echo "$as_me: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8961 eval 'ac_cv_func_'$cf_func'=no'
8963 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8966 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
8969 echo "$as_me:8969: result: $cf_cv_link_funcs" >&5
8970 echo "${ECHO_T}$cf_cv_link_funcs" >&6
8971 test "$ac_cv_func_link" = yes &&
8972 cat >>confdefs.h <<\EOF
8976 test "$ac_cv_func_symlink" = yes &&
8977 cat >>confdefs.h <<\EOF
8978 #define HAVE_SYMLINK 1
8986 # soft links (symbolic links) are useful for some systems where hard links do
8987 # not work, or to make it simpler to copy terminfo trees around.
8988 if test "x$ac_cv_func_symlink" = xyes ; then
8989 echo "$as_me:8989: checking if tic should use symbolic links" >&5
8990 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
8992 # Check whether --enable-symlinks or --disable-symlinks was given.
8993 if test "${enable_symlinks+set}" = set; then
8994 enableval="$enable_symlinks"
8995 with_symlinks=$enableval
8999 echo "$as_me:8999: result: $with_symlinks" >&5
9000 echo "${ECHO_T}$with_symlinks" >&6
9003 # If we have hard links and did not choose to use soft links instead, there is
9004 # no reason to make this choice optional - use the hard links.
9005 if test "$with_symlinks" = no ; then
9006 echo "$as_me:9006: checking if tic should use hard links" >&5
9007 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9008 if test "x$ac_cv_func_link" = xyes ; then
9013 echo "$as_me:9013: result: $with_links" >&5
9014 echo "${ECHO_T}$with_links" >&6
9017 test "x$with_links" = xyes &&
9018 cat >>confdefs.h <<\EOF
9022 test "x$with_symlinks" = xyes &&
9023 cat >>confdefs.h <<\EOF
9024 #define USE_SYMLINKS 1
9027 ### use option --enable-broken-linker to force on use of broken-linker support
9028 echo "$as_me:9028: checking if you want broken-linker support code" >&5
9029 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9031 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9032 if test "${enable_broken_linker+set}" = set; then
9033 enableval="$enable_broken_linker"
9034 with_broken_linker=$enableval
9036 with_broken_linker=${BROKEN_LINKER:-no}
9038 echo "$as_me:9038: result: $with_broken_linker" >&5
9039 echo "${ECHO_T}$with_broken_linker" >&6
9042 if test "x$with_broken_linker" = xyes ; then
9044 cat >>confdefs.h <<\EOF
9045 #define BROKEN_LINKER 1
9049 elif test "$DFT_LWR_MODEL" = shared ; then
9050 case $cf_cv_system_name in
9053 cat >>confdefs.h <<\EOF
9054 #define BROKEN_LINKER 1
9058 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
9060 echo "${as_me:-configure}:9060: testing cygwin linker is broken anyway ..." 1>&5
9066 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9067 echo "$as_me:9067: checking if tputs should process BSD-style prefix padding" >&5
9068 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9070 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9071 if test "${enable_bsdpad+set}" = set; then
9072 enableval="$enable_bsdpad"
9073 with_bsdpad=$enableval
9077 echo "$as_me:9077: result: $with_bsdpad" >&5
9078 echo "${ECHO_T}$with_bsdpad" >&6
9079 test "x$with_bsdpad" = xyes &&
9080 cat >>confdefs.h <<\EOF
9084 ### use option --enable-widec to turn on use of wide-character support
9093 # Check to define _XOPEN_SOURCE "automatically"
9094 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9096 echo "$as_me:9096: checking if the POSIX test-macros are already defined" >&5
9097 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9098 if test "${cf_cv_posix_visible+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9103 #line 9103 "configure"
9104 #include "confdefs.h"
9110 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9111 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9112 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9113 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9114 #error conflicting symbols found
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:9122: \"$ac_compile\"") >&5
9123 (eval $ac_compile) 2>&5
9125 echo "$as_me:9125: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -s conftest.$ac_objext'
9128 { (eval echo "$as_me:9128: \"$ac_try\"") >&5
9131 echo "$as_me:9131: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 cf_cv_posix_visible=no
9135 echo "$as_me: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9137 cf_cv_posix_visible=yes
9139 rm -f conftest.$ac_objext conftest.$ac_ext
9142 echo "$as_me:9142: result: $cf_cv_posix_visible" >&5
9143 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9145 if test "$cf_cv_posix_visible" = no; then
9148 cf_POSIX_C_SOURCE=199506L
9153 cf_xopen_source="-D_ALL_SOURCE"
9159 cf_xopen_source="-D_APPLE_C_SOURCE"
9162 cf_xopen_source="-D_DARWIN_C_SOURCE"
9165 (freebsd*|dragonfly*|midnightbsd*)
9166 # 5.x headers associate
9167 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9168 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9169 cf_POSIX_C_SOURCE=200112L
9171 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9174 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9177 cf_xopen_source="-D_HPUX_SOURCE"
9180 cf_xopen_source="-D_SGI_SOURCE"
9183 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9185 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9187 echo "$as_me:9187: checking if this is the GNU C library" >&5
9188 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9189 if test "${cf_cv_gnu_library+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 cat >conftest.$ac_ext <<_ACEOF
9194 #line 9194 "configure"
9195 #include "confdefs.h"
9196 #include <sys/types.h>
9201 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9203 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9206 # error not GNU C library
9212 rm -f conftest.$ac_objext
9213 if { (eval echo "$as_me:9213: \"$ac_compile\"") >&5
9214 (eval $ac_compile) 2>&5
9216 echo "$as_me:9216: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -s conftest.$ac_objext'
9219 { (eval echo "$as_me:9219: \"$ac_try\"") >&5
9222 echo "$as_me:9222: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 cf_cv_gnu_library=yes
9226 echo "$as_me: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 cf_cv_gnu_library=no
9230 rm -f conftest.$ac_objext conftest.$ac_ext
9233 echo "$as_me:9233: result: $cf_cv_gnu_library" >&5
9234 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9236 if test x$cf_cv_gnu_library = xyes; then
9238 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9239 # was changed to help a little. newlib incorporated the change about 4
9241 echo "$as_me:9241: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9242 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9243 if test "${cf_cv_gnu_library_219+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9250 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9252 cat >conftest.$ac_ext <<_ACEOF
9253 #line 9253 "configure"
9254 #include "confdefs.h"
9255 #include <sys/types.h>
9260 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9262 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9265 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9271 rm -f conftest.$ac_objext
9272 if { (eval echo "$as_me:9272: \"$ac_compile\"") >&5
9273 (eval $ac_compile) 2>&5
9275 echo "$as_me:9275: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -s conftest.$ac_objext'
9278 { (eval echo "$as_me:9278: \"$ac_try\"") >&5
9281 echo "$as_me:9281: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 cf_cv_gnu_library_219=yes
9285 echo "$as_me: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9287 cf_cv_gnu_library_219=no
9289 rm -f conftest.$ac_objext conftest.$ac_ext
9293 echo "$as_me:9293: result: $cf_cv_gnu_library_219" >&5
9294 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9296 if test "x$cf_cv_gnu_library_219" = xyes; then
9298 echo "$as_me:9298: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9299 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9300 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 cf_new_extra_cppflags=
9309 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9311 case $cf_fix_cppflags in
9313 case $cf_add_cflags in
9314 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9315 case $cf_add_cflags in
9317 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9319 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9320 && test -z "${cf_tst_cflags}" \
9321 && cf_fix_cppflags=yes
9323 if test $cf_fix_cppflags = yes ; then
9325 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9326 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9329 elif test "${cf_tst_cflags}" = "\"'" ; then
9331 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9332 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9342 case $cf_add_cflags in
9344 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9346 CPPFLAGS=`echo "$CPPFLAGS" | \
9347 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9348 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9353 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9354 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9361 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9362 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9369 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9370 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9372 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9374 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9375 && test -z "${cf_tst_cflags}" \
9376 && cf_fix_cppflags=no
9381 if test -n "$cf_new_cflags" ; then
9383 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9384 CFLAGS="${CFLAGS}$cf_new_cflags"
9388 if test -n "$cf_new_cppflags" ; then
9390 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9391 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9395 if test -n "$cf_new_extra_cppflags" ; then
9397 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9398 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line 9403 "configure"
9404 #include "confdefs.h"
9407 #include <sys/types.h>
9413 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
9416 # error GNU C library is too old
9422 rm -f conftest.$ac_objext
9423 if { (eval echo "$as_me:9423: \"$ac_compile\"") >&5
9424 (eval $ac_compile) 2>&5
9426 echo "$as_me:9426: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -s conftest.$ac_objext'
9429 { (eval echo "$as_me:9429: \"$ac_try\"") >&5
9432 echo "$as_me:9432: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9434 cf_cv_gnu_dftsrc_219=yes
9436 echo "$as_me: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 cf_cv_gnu_dftsrc_219=no
9440 rm -f conftest.$ac_objext conftest.$ac_ext
9443 echo "$as_me:9443: result: $cf_cv_gnu_dftsrc_219" >&5
9444 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9445 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9447 cf_cv_gnu_dftsrc_219=maybe
9450 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9452 echo "$as_me:9452: checking if we must define _GNU_SOURCE" >&5
9453 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9454 if test "${cf_cv_gnu_source+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 cat >conftest.$ac_ext <<_ACEOF
9459 #line 9459 "configure"
9460 #include "confdefs.h"
9461 #include <sys/types.h>
9466 #ifndef _XOPEN_SOURCE
9467 #error expected _XOPEN_SOURCE to be defined
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:9474: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>&5
9477 echo "$as_me:9477: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -s conftest.$ac_objext'
9480 { (eval echo "$as_me:9480: \"$ac_try\"") >&5
9483 echo "$as_me:9483: \$? = $ac_status" >&5
9484 (exit $ac_status); }; }; then
9487 echo "$as_me: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9494 cf_new_extra_cppflags=
9496 for cf_add_cflags in -D_GNU_SOURCE
9498 case $cf_fix_cppflags in
9500 case $cf_add_cflags in
9501 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9502 case $cf_add_cflags in
9504 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9506 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9507 && test -z "${cf_tst_cflags}" \
9508 && cf_fix_cppflags=yes
9510 if test $cf_fix_cppflags = yes ; then
9512 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9513 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9516 elif test "${cf_tst_cflags}" = "\"'" ; then
9518 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9519 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9529 case $cf_add_cflags in
9531 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9533 CPPFLAGS=`echo "$CPPFLAGS" | \
9534 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9535 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9540 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9541 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9548 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9549 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9556 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9557 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9559 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9561 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9562 && test -z "${cf_tst_cflags}" \
9563 && cf_fix_cppflags=no
9568 if test -n "$cf_new_cflags" ; then
9570 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9571 CFLAGS="${CFLAGS}$cf_new_cflags"
9575 if test -n "$cf_new_cppflags" ; then
9577 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9578 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9582 if test -n "$cf_new_extra_cppflags" ; then
9584 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9585 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9589 cat >conftest.$ac_ext <<_ACEOF
9590 #line 9590 "configure"
9591 #include "confdefs.h"
9592 #include <sys/types.h>
9597 #ifdef _XOPEN_SOURCE
9598 #error expected _XOPEN_SOURCE to be undefined
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:9605: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>&5
9608 echo "$as_me:9608: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -s conftest.$ac_objext'
9611 { (eval echo "$as_me:9611: \"$ac_try\"") >&5
9614 echo "$as_me:9614: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9618 echo "$as_me: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620 cf_cv_gnu_source=yes
9622 rm -f conftest.$ac_objext conftest.$ac_ext
9626 rm -f conftest.$ac_objext conftest.$ac_ext
9629 echo "$as_me:9629: result: $cf_cv_gnu_source" >&5
9630 echo "${ECHO_T}$cf_cv_gnu_source" >&6
9632 if test "$cf_cv_gnu_source" = yes
9634 echo "$as_me:9634: checking if we should also define _DEFAULT_SOURCE" >&5
9635 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
9636 if test "${cf_cv_default_source+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9641 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
9643 cat >conftest.$ac_ext <<_ACEOF
9644 #line 9644 "configure"
9645 #include "confdefs.h"
9646 #include <sys/types.h>
9651 #ifdef _DEFAULT_SOURCE
9652 #error expected _DEFAULT_SOURCE to be undefined
9658 rm -f conftest.$ac_objext
9659 if { (eval echo "$as_me:9659: \"$ac_compile\"") >&5
9660 (eval $ac_compile) 2>&5
9662 echo "$as_me:9662: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:9665: \"$ac_try\"") >&5
9668 echo "$as_me:9668: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 cf_cv_default_source=no
9672 echo "$as_me: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 cf_cv_default_source=yes
9676 rm -f conftest.$ac_objext conftest.$ac_ext
9679 echo "$as_me:9679: result: $cf_cv_default_source" >&5
9680 echo "${ECHO_T}$cf_cv_default_source" >&6
9681 if test "$cf_cv_default_source" = yes
9684 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9685 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9695 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
9698 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
9701 if test "$cf_cv_posix_visible" = no; then
9703 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
9705 cf_save_CFLAGS="$CFLAGS"
9706 cf_save_CPPFLAGS="$CPPFLAGS"
9708 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
9709 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9710 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9712 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
9713 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9714 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9716 echo "$as_me:9716: checking if we should define _POSIX_C_SOURCE" >&5
9717 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
9718 if test "${cf_cv_posix_c_source+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 echo "${as_me:-configure}:9722: testing if the symbol is already defined go no further ..." 1>&5
9724 cat >conftest.$ac_ext <<_ACEOF
9725 #line 9725 "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9732 #ifndef _POSIX_C_SOURCE
9739 rm -f conftest.$ac_objext
9740 if { (eval echo "$as_me:9740: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>&5
9743 echo "$as_me:9743: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:9746: \"$ac_try\"") >&5
9749 echo "$as_me:9749: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 cf_cv_posix_c_source=no
9753 echo "$as_me: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 cf_want_posix_source=no
9756 case .$cf_POSIX_C_SOURCE in
9758 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9761 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
9762 cf_want_posix_source=yes
9765 cf_want_posix_source=yes
9768 if test "$cf_want_posix_source" = yes ; then
9769 cat >conftest.$ac_ext <<_ACEOF
9770 #line 9770 "configure"
9771 #include "confdefs.h"
9772 #include <sys/types.h>
9777 #ifdef _POSIX_SOURCE
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:9785: \"$ac_compile\"") >&5
9786 (eval $ac_compile) 2>&5
9788 echo "$as_me:9788: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -s conftest.$ac_objext'
9791 { (eval echo "$as_me:9791: \"$ac_try\"") >&5
9794 echo "$as_me:9794: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9798 echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
9802 rm -f conftest.$ac_objext conftest.$ac_ext
9805 echo "${as_me:-configure}:9805: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
9807 CFLAGS="$cf_trim_CFLAGS"
9808 CPPFLAGS="$cf_trim_CPPFLAGS"
9810 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9811 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
9813 echo "${as_me:-configure}:9813: testing if the second compile does not leave our definition intact error ..." 1>&5
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line 9816 "configure"
9817 #include "confdefs.h"
9818 #include <sys/types.h>
9823 #ifndef _POSIX_C_SOURCE
9830 rm -f conftest.$ac_objext
9831 if { (eval echo "$as_me:9831: \"$ac_compile\"") >&5
9832 (eval $ac_compile) 2>&5
9834 echo "$as_me:9834: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -s conftest.$ac_objext'
9837 { (eval echo "$as_me:9837: \"$ac_try\"") >&5
9840 echo "$as_me:9840: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9844 echo "$as_me: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9846 cf_cv_posix_c_source=no
9848 rm -f conftest.$ac_objext conftest.$ac_ext
9849 CFLAGS="$cf_save_CFLAGS"
9850 CPPFLAGS="$cf_save_CPPFLAGS"
9853 rm -f conftest.$ac_objext conftest.$ac_ext
9856 echo "$as_me:9856: result: $cf_cv_posix_c_source" >&5
9857 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
9859 if test "$cf_cv_posix_c_source" != no ; then
9860 CFLAGS="$cf_trim_CFLAGS"
9861 CPPFLAGS="$cf_trim_CPPFLAGS"
9866 cf_new_extra_cppflags=
9868 for cf_add_cflags in $cf_cv_posix_c_source
9870 case $cf_fix_cppflags in
9872 case $cf_add_cflags in
9873 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9874 case $cf_add_cflags in
9876 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9878 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9879 && test -z "${cf_tst_cflags}" \
9880 && cf_fix_cppflags=yes
9882 if test $cf_fix_cppflags = yes ; then
9884 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9885 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9888 elif test "${cf_tst_cflags}" = "\"'" ; then
9890 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9891 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9901 case $cf_add_cflags in
9903 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9905 CPPFLAGS=`echo "$CPPFLAGS" | \
9906 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9907 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9912 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9913 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9920 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9921 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9928 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9929 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9931 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9933 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9934 && test -z "${cf_tst_cflags}" \
9935 && cf_fix_cppflags=no
9940 if test -n "$cf_new_cflags" ; then
9942 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9943 CFLAGS="${CFLAGS}$cf_new_cflags"
9947 if test -n "$cf_new_cppflags" ; then
9949 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9950 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9954 if test -n "$cf_new_extra_cppflags" ; then
9956 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9957 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9963 fi # cf_cv_posix_visible
9967 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
9970 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
9971 cf_xopen_source="-D_BSD_SOURCE"
9975 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
9978 cf_xopen_source="-D_OSF_SOURCE"
9981 cf_xopen_source="-D_QNX_SOURCE"
9984 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
9987 cf_xopen_source="-D__EXTENSIONS__"
9988 cf_cv_xopen_source=broken
9990 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
9996 echo "$as_me:9996: checking if we should define _XOPEN_SOURCE" >&5
9997 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
9998 if test "${cf_cv_xopen_source+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 cat >conftest.$ac_ext <<_ACEOF
10003 #line 10003 "configure"
10004 #include "confdefs.h"
10006 #include <stdlib.h>
10007 #include <string.h>
10008 #include <sys/types.h>
10014 #ifndef _XOPEN_SOURCE
10021 rm -f conftest.$ac_objext
10022 if { (eval echo "$as_me:10022: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>&5
10025 echo "$as_me:10025: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -s conftest.$ac_objext'
10028 { (eval echo "$as_me:10028: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:10031: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 cf_cv_xopen_source=no
10035 echo "$as_me: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10037 cf_save="$CPPFLAGS"
10039 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10040 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line 10043 "configure"
10044 #include "confdefs.h"
10046 #include <stdlib.h>
10047 #include <string.h>
10048 #include <sys/types.h>
10054 #ifdef _XOPEN_SOURCE
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:10062: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10065 echo "$as_me:10065: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -s conftest.$ac_objext'
10068 { (eval echo "$as_me:10068: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:10071: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 cf_cv_xopen_source=no
10075 echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10079 rm -f conftest.$ac_objext conftest.$ac_ext
10080 CPPFLAGS="$cf_save"
10083 rm -f conftest.$ac_objext conftest.$ac_ext
10086 echo "$as_me:10086: result: $cf_cv_xopen_source" >&5
10087 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10089 if test "$cf_cv_xopen_source" != no ; then
10091 CFLAGS=`echo "$CFLAGS" | \
10092 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10093 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10095 CPPFLAGS=`echo "$CPPFLAGS" | \
10096 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10097 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10099 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10104 cf_new_extra_cppflags=
10106 for cf_add_cflags in $cf_temp_xopen_source
10108 case $cf_fix_cppflags in
10110 case $cf_add_cflags in
10111 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10112 case $cf_add_cflags in
10114 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10116 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10117 && test -z "${cf_tst_cflags}" \
10118 && cf_fix_cppflags=yes
10120 if test $cf_fix_cppflags = yes ; then
10122 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10123 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10126 elif test "${cf_tst_cflags}" = "\"'" ; then
10128 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10129 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10135 case "$CPPFLAGS" in
10139 case $cf_add_cflags in
10141 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10143 CPPFLAGS=`echo "$CPPFLAGS" | \
10144 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10145 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10150 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10151 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10158 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10159 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10166 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10167 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10169 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10171 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10172 && test -z "${cf_tst_cflags}" \
10173 && cf_fix_cppflags=no
10178 if test -n "$cf_new_cflags" ; then
10180 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10181 CFLAGS="${CFLAGS}$cf_new_cflags"
10185 if test -n "$cf_new_cppflags" ; then
10187 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10188 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10192 if test -n "$cf_new_extra_cppflags" ; then
10194 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10195 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10201 if test "$cf_cv_posix_visible" = no; then
10203 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10205 cf_save_CFLAGS="$CFLAGS"
10206 cf_save_CPPFLAGS="$CPPFLAGS"
10208 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10209 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10210 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10212 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10213 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10214 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10216 echo "$as_me:10216: checking if we should define _POSIX_C_SOURCE" >&5
10217 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10218 if test "${cf_cv_posix_c_source+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 echo "${as_me:-configure}:10222: testing if the symbol is already defined go no further ..." 1>&5
10224 cat >conftest.$ac_ext <<_ACEOF
10225 #line 10225 "configure"
10226 #include "confdefs.h"
10227 #include <sys/types.h>
10232 #ifndef _POSIX_C_SOURCE
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:10240: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10243 echo "$as_me:10243: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:10246: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:10249: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 cf_cv_posix_c_source=no
10253 echo "$as_me: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 cf_want_posix_source=no
10256 case .$cf_POSIX_C_SOURCE in
10258 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10261 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10262 cf_want_posix_source=yes
10265 cf_want_posix_source=yes
10268 if test "$cf_want_posix_source" = yes ; then
10269 cat >conftest.$ac_ext <<_ACEOF
10270 #line 10270 "configure"
10271 #include "confdefs.h"
10272 #include <sys/types.h>
10277 #ifdef _POSIX_SOURCE
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:10285: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>&5
10288 echo "$as_me:10288: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:10291: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:10294: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10298 echo "$as_me: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10302 rm -f conftest.$ac_objext conftest.$ac_ext
10305 echo "${as_me:-configure}:10305: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10307 CFLAGS="$cf_trim_CFLAGS"
10308 CPPFLAGS="$cf_trim_CPPFLAGS"
10310 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10311 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10313 echo "${as_me:-configure}:10313: testing if the second compile does not leave our definition intact error ..." 1>&5
10315 cat >conftest.$ac_ext <<_ACEOF
10316 #line 10316 "configure"
10317 #include "confdefs.h"
10318 #include <sys/types.h>
10323 #ifndef _POSIX_C_SOURCE
10330 rm -f conftest.$ac_objext
10331 if { (eval echo "$as_me:10331: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>&5
10334 echo "$as_me:10334: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -s conftest.$ac_objext'
10337 { (eval echo "$as_me:10337: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10340 echo "$as_me:10340: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10344 echo "$as_me: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 cf_cv_posix_c_source=no
10348 rm -f conftest.$ac_objext conftest.$ac_ext
10349 CFLAGS="$cf_save_CFLAGS"
10350 CPPFLAGS="$cf_save_CPPFLAGS"
10353 rm -f conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:10356: result: $cf_cv_posix_c_source" >&5
10357 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10359 if test "$cf_cv_posix_c_source" != no ; then
10360 CFLAGS="$cf_trim_CFLAGS"
10361 CPPFLAGS="$cf_trim_CPPFLAGS"
10366 cf_new_extra_cppflags=
10368 for cf_add_cflags in $cf_cv_posix_c_source
10370 case $cf_fix_cppflags in
10372 case $cf_add_cflags in
10373 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10374 case $cf_add_cflags in
10376 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10378 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10379 && test -z "${cf_tst_cflags}" \
10380 && cf_fix_cppflags=yes
10382 if test $cf_fix_cppflags = yes ; then
10384 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10385 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10388 elif test "${cf_tst_cflags}" = "\"'" ; then
10390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10391 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10397 case "$CPPFLAGS" in
10401 case $cf_add_cflags in
10403 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10405 CPPFLAGS=`echo "$CPPFLAGS" | \
10406 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10407 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10412 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10413 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10420 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10421 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10428 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10429 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10431 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10433 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10434 && test -z "${cf_tst_cflags}" \
10435 && cf_fix_cppflags=no
10440 if test -n "$cf_new_cflags" ; then
10442 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10443 CFLAGS="${CFLAGS}$cf_new_cflags"
10447 if test -n "$cf_new_cppflags" ; then
10449 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10450 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10454 if test -n "$cf_new_extra_cppflags" ; then
10456 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10457 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10463 fi # cf_cv_posix_visible
10468 if test -n "$cf_xopen_source" ; then
10473 cf_new_extra_cppflags=
10475 for cf_add_cflags in $cf_xopen_source
10477 case $cf_fix_cppflags in
10479 case $cf_add_cflags in
10480 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10481 case $cf_add_cflags in
10483 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10485 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10486 && test -z "${cf_tst_cflags}" \
10487 && cf_fix_cppflags=yes
10489 if test $cf_fix_cppflags = yes ; then
10491 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10492 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10495 elif test "${cf_tst_cflags}" = "\"'" ; then
10497 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10498 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10504 case "$CPPFLAGS" in
10508 case $cf_add_cflags in
10510 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10512 CPPFLAGS=`echo "$CPPFLAGS" | \
10513 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10514 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10519 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10520 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10527 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10528 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10535 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10536 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10538 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10540 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10541 && test -z "${cf_tst_cflags}" \
10542 && cf_fix_cppflags=no
10547 if test -n "$cf_new_cflags" ; then
10548 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10550 echo "${as_me:-configure}:10550: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10552 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10553 CFLAGS="${CFLAGS}$cf_new_cflags"
10557 if test -n "$cf_new_cppflags" ; then
10558 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10560 echo "${as_me:-configure}:10560: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10562 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10563 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10567 if test -n "$cf_new_extra_cppflags" ; then
10568 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10570 echo "${as_me:-configure}:10570: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10572 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10573 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10579 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
10580 echo "$as_me:10580: checking if _XOPEN_SOURCE really is set" >&5
10581 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
10582 cat >conftest.$ac_ext <<_ACEOF
10583 #line 10583 "configure"
10584 #include "confdefs.h"
10585 #include <stdlib.h>
10590 #ifndef _XOPEN_SOURCE
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:10598: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>&5
10601 echo "$as_me:10601: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:10604: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:10607: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 cf_XOPEN_SOURCE_set=yes
10611 echo "$as_me: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 cf_XOPEN_SOURCE_set=no
10615 rm -f conftest.$ac_objext conftest.$ac_ext
10616 echo "$as_me:10616: result: $cf_XOPEN_SOURCE_set" >&5
10617 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
10618 if test $cf_XOPEN_SOURCE_set = yes
10620 cat >conftest.$ac_ext <<_ACEOF
10621 #line 10621 "configure"
10622 #include "confdefs.h"
10623 #include <stdlib.h>
10628 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
10635 rm -f conftest.$ac_objext
10636 if { (eval echo "$as_me:10636: \"$ac_compile\"") >&5
10637 (eval $ac_compile) 2>&5
10639 echo "$as_me:10639: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -s conftest.$ac_objext'
10642 { (eval echo "$as_me:10642: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:10645: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 cf_XOPEN_SOURCE_set_ok=yes
10649 echo "$as_me: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10651 cf_XOPEN_SOURCE_set_ok=no
10653 rm -f conftest.$ac_objext conftest.$ac_ext
10654 if test $cf_XOPEN_SOURCE_set_ok = no
10656 { echo "$as_me:10656: WARNING: _XOPEN_SOURCE is lower than requested" >&5
10657 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
10661 echo "$as_me:10661: checking if we should define _XOPEN_SOURCE" >&5
10662 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10663 if test "${cf_cv_xopen_source+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 cat >conftest.$ac_ext <<_ACEOF
10668 #line 10668 "configure"
10669 #include "confdefs.h"
10671 #include <stdlib.h>
10672 #include <string.h>
10673 #include <sys/types.h>
10679 #ifndef _XOPEN_SOURCE
10686 rm -f conftest.$ac_objext
10687 if { (eval echo "$as_me:10687: \"$ac_compile\"") >&5
10688 (eval $ac_compile) 2>&5
10690 echo "$as_me:10690: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -s conftest.$ac_objext'
10693 { (eval echo "$as_me:10693: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:10696: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 cf_cv_xopen_source=no
10700 echo "$as_me: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10702 cf_save="$CPPFLAGS"
10704 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10705 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10707 cat >conftest.$ac_ext <<_ACEOF
10708 #line 10708 "configure"
10709 #include "confdefs.h"
10711 #include <stdlib.h>
10712 #include <string.h>
10713 #include <sys/types.h>
10719 #ifdef _XOPEN_SOURCE
10726 rm -f conftest.$ac_objext
10727 if { (eval echo "$as_me:10727: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>&5
10730 echo "$as_me:10730: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:10733: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:10736: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 cf_cv_xopen_source=no
10740 echo "$as_me: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10742 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10744 rm -f conftest.$ac_objext conftest.$ac_ext
10745 CPPFLAGS="$cf_save"
10748 rm -f conftest.$ac_objext conftest.$ac_ext
10751 echo "$as_me:10751: result: $cf_cv_xopen_source" >&5
10752 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10754 if test "$cf_cv_xopen_source" != no ; then
10756 CFLAGS=`echo "$CFLAGS" | \
10757 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10758 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10760 CPPFLAGS=`echo "$CPPFLAGS" | \
10761 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10762 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10764 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10769 cf_new_extra_cppflags=
10771 for cf_add_cflags in $cf_temp_xopen_source
10773 case $cf_fix_cppflags in
10775 case $cf_add_cflags in
10776 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10777 case $cf_add_cflags in
10779 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10781 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10782 && test -z "${cf_tst_cflags}" \
10783 && cf_fix_cppflags=yes
10785 if test $cf_fix_cppflags = yes ; then
10787 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10788 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10791 elif test "${cf_tst_cflags}" = "\"'" ; then
10793 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10794 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10800 case "$CPPFLAGS" in
10804 case $cf_add_cflags in
10806 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10808 CPPFLAGS=`echo "$CPPFLAGS" | \
10809 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10810 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10815 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10816 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10823 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10824 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10831 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10832 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10834 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10836 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10837 && test -z "${cf_tst_cflags}" \
10838 && cf_fix_cppflags=no
10843 if test -n "$cf_new_cflags" ; then
10845 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10846 CFLAGS="${CFLAGS}$cf_new_cflags"
10850 if test -n "$cf_new_cppflags" ; then
10852 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10853 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10857 if test -n "$cf_new_extra_cppflags" ; then
10859 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10860 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10868 fi # cf_cv_posix_visible
10870 CPPFLAGS_after_XOPEN="$CPPFLAGS"
10872 # Work around breakage on OS X
10874 echo "$as_me:10874: checking if SIGWINCH is defined" >&5
10875 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
10876 if test "${cf_cv_define_sigwinch+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line 10881 "configure"
10882 #include "confdefs.h"
10884 #include <sys/types.h>
10885 #include <sys/signal.h>
10895 rm -f conftest.$ac_objext
10896 if { (eval echo "$as_me:10896: \"$ac_compile\"") >&5
10897 (eval $ac_compile) 2>&5
10899 echo "$as_me:10899: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (eval echo "$as_me:10902: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:10905: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 cf_cv_define_sigwinch=yes
10909 echo "$as_me: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10911 cat >conftest.$ac_ext <<_ACEOF
10912 #line 10912 "configure"
10913 #include "confdefs.h"
10915 #undef _XOPEN_SOURCE
10916 #undef _POSIX_SOURCE
10917 #undef _POSIX_C_SOURCE
10918 #include <sys/types.h>
10919 #include <sys/signal.h>
10929 rm -f conftest.$ac_objext
10930 if { (eval echo "$as_me:10930: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>&5
10933 echo "$as_me:10933: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try='test -s conftest.$ac_objext'
10936 { (eval echo "$as_me:10936: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10939 echo "$as_me:10939: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 cf_cv_define_sigwinch=maybe
10943 echo "$as_me: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10945 cf_cv_define_sigwinch=no
10947 rm -f conftest.$ac_objext conftest.$ac_ext
10950 rm -f conftest.$ac_objext conftest.$ac_ext
10953 echo "$as_me:10953: result: $cf_cv_define_sigwinch" >&5
10954 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
10956 if test "$cf_cv_define_sigwinch" = maybe ; then
10957 echo "$as_me:10957: checking for actual SIGWINCH definition" >&5
10958 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
10959 if test "${cf_cv_fixup_sigwinch+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cf_cv_fixup_sigwinch=unknown
10965 while test $cf_sigwinch != 1
10967 cat >conftest.$ac_ext <<_ACEOF
10968 #line 10968 "configure"
10969 #include "confdefs.h"
10971 #undef _XOPEN_SOURCE
10972 #undef _POSIX_SOURCE
10973 #undef _POSIX_C_SOURCE
10974 #include <sys/types.h>
10975 #include <sys/signal.h>
10981 #if SIGWINCH != $cf_sigwinch
10989 rm -f conftest.$ac_objext
10990 if { (eval echo "$as_me:10990: \"$ac_compile\"") >&5
10991 (eval $ac_compile) 2>&5
10993 echo "$as_me:10993: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -s conftest.$ac_objext'
10996 { (eval echo "$as_me:10996: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:10999: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 cf_cv_fixup_sigwinch=$cf_sigwinch
11004 echo "$as_me: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11007 rm -f conftest.$ac_objext conftest.$ac_ext
11009 cf_sigwinch=`expr $cf_sigwinch - 1`
11013 echo "$as_me:11013: result: $cf_cv_fixup_sigwinch" >&5
11014 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11016 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11017 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11021 # Checks for CODESET support.
11023 echo "$as_me:11023: checking for nl_langinfo and CODESET" >&5
11024 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11025 if test "${am_cv_langinfo_codeset+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 cat >conftest.$ac_ext <<_ACEOF
11029 #line 11029 "configure"
11030 #include "confdefs.h"
11031 #include <langinfo.h>
11035 char* cs = nl_langinfo(CODESET);
11040 rm -f conftest.$ac_objext conftest$ac_exeext
11041 if { (eval echo "$as_me:11041: \"$ac_link\"") >&5
11042 (eval $ac_link) 2>&5
11044 echo "$as_me:11044: \$? = $ac_status" >&5
11045 (exit $ac_status); } &&
11046 { ac_try='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:11047: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11050 echo "$as_me:11050: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 am_cv_langinfo_codeset=yes
11054 echo "$as_me: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11056 am_cv_langinfo_codeset=no
11058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11061 echo "$as_me:11061: result: $am_cv_langinfo_codeset" >&5
11062 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11063 if test $am_cv_langinfo_codeset = yes; then
11065 cat >>confdefs.h <<\EOF
11066 #define HAVE_LANGINFO_CODESET 1
11071 # use these variables to work around a defect in gcc's fixincludes.
11072 NCURSES_OK_WCHAR_T=
11075 echo "$as_me:11075: checking if you want wide-character code" >&5
11076 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11078 # Check whether --enable-widec or --disable-widec was given.
11079 if test "${enable_widec+set}" = set; then
11080 enableval="$enable_widec"
11081 with_widec=$enableval
11085 echo "$as_me:11085: result: $with_widec" >&5
11086 echo "${ECHO_T}$with_widec" >&6
11088 NCURSES_WCWIDTH_GRAPHICS=1
11090 if test "x$with_widec" = xyes ; then
11091 if test "x$disable_lib_suffixes" = xno ; then
11092 LIB_SUFFIX="w${LIB_SUFFIX}"
11095 cat >>confdefs.h <<\EOF
11096 #define USE_WIDEC_SUPPORT 1
11099 cat >>confdefs.h <<\EOF
11100 #define NCURSES_WIDECHAR 1
11108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11109 echo "$as_me:11109: checking for $ac_header" >&5
11110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 cat >conftest.$ac_ext <<_ACEOF
11115 #line 11115 "configure"
11116 #include "confdefs.h"
11117 #include <$ac_header>
11119 if { (eval echo "$as_me:11119: \"$ac_cpp conftest.$ac_ext\"") >&5
11120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11122 egrep -v '^ *\+' conftest.er1 >conftest.err
11124 cat conftest.err >&5
11125 echo "$as_me:11125: \$? = $ac_status" >&5
11126 (exit $ac_status); } >/dev/null; then
11127 if test -s conftest.err; then
11128 ac_cpp_err=$ac_c_preproc_warn_flag
11135 if test -z "$ac_cpp_err"; then
11136 eval "$as_ac_Header=yes"
11138 echo "$as_me: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 eval "$as_ac_Header=no"
11142 rm -f conftest.err conftest.$ac_ext
11144 echo "$as_me:11144: result: `eval echo '${'$as_ac_Header'}'`" >&5
11145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11147 cat >>confdefs.h <<EOF
11148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11154 echo "$as_me:11154: checking if wchar.h can be used as is" >&5
11155 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11156 if test "${cf_cv_wchar_h_okay+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 cat >conftest.$ac_ext <<_ACEOF
11161 #line 11161 "configure"
11162 #include "confdefs.h"
11164 #include <stdlib.h>
11165 #ifdef HAVE_WCHAR_H
11168 #ifdef HAVE_WCTYPE_H
11169 #include <wctype.h>
11177 int bar = iswpunct(foo)
11182 rm -f conftest.$ac_objext
11183 if { (eval echo "$as_me:11183: \"$ac_compile\"") >&5
11184 (eval $ac_compile) 2>&5
11186 echo "$as_me:11186: \$? = $ac_status" >&5
11187 (exit $ac_status); } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:11189: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11192 echo "$as_me:11192: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 cf_cv_wchar_h_okay=yes
11196 echo "$as_me: failed program was:" >&5
11197 cat conftest.$ac_ext >&5
11198 cf_cv_wchar_h_okay=no
11200 rm -f conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:11202: result: $cf_cv_wchar_h_okay" >&5
11203 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11205 if test $cf_cv_wchar_h_okay = no
11208 echo "$as_me:11208: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11209 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11211 #line 11211 "configure"
11212 #include "confdefs.h"
11213 #include <sys/types.h>
11219 #ifndef _XOPEN_SOURCE_EXTENDED
11226 rm -f conftest.$ac_objext
11227 if { (eval echo "$as_me:11227: \"$ac_compile\"") >&5
11228 (eval $ac_compile) 2>&5
11230 echo "$as_me:11230: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -s conftest.$ac_objext'
11233 { (eval echo "$as_me:11233: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:11236: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11240 echo "$as_me: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11244 rm -f conftest.$ac_objext conftest.$ac_ext
11245 echo "$as_me:11245: result: $cf_result" >&5
11246 echo "${ECHO_T}$cf_result" >&6
11248 if test "$cf_result" = yes ; then
11249 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11250 elif test "x" != "x" ; then
11251 echo "$as_me:11251: checking checking for compatible value versus " >&5
11252 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
11253 cat >conftest.$ac_ext <<_ACEOF
11254 #line 11254 "configure"
11255 #include "confdefs.h"
11256 #include <sys/types.h>
11262 #if _XOPEN_SOURCE_EXTENDED- < 0
11269 rm -f conftest.$ac_objext
11270 if { (eval echo "$as_me:11270: \"$ac_compile\"") >&5
11271 (eval $ac_compile) 2>&5
11273 echo "$as_me:11273: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (eval echo "$as_me:11276: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:11279: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11283 echo "$as_me: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11287 rm -f conftest.$ac_objext conftest.$ac_ext
11288 echo "$as_me:11288: result: $cf_result" >&5
11289 echo "${ECHO_T}$cf_result" >&6
11290 if test "$cf_result" = no ; then
11291 # perhaps we can override it - try...
11292 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
11298 echo "$as_me:11298: checking if wcwidth agrees graphics are single-width" >&5
11299 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
11300 if test "${cf_cv_wcwidth_graphics+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 cat >conftest.in <<CF_EOF
11306 0x250c upper left corner
11307 0x2514 lower left corner
11308 0x2510 upper right corner
11309 0x2518 lower right corner
11310 0x251c tee pointing left
11311 0x2524 tee pointing right
11312 0x2534 tee pointing up
11313 0x252c tee pointing down
11314 0x2500 horizontal line
11315 0x2502 vertical line
11316 0x253c large plus or crossover
11320 0x2592 checker board (stipple)
11321 0x00b0 degree symbol
11324 - Teletype 5410v1 symbols
11325 0x2190 arrow pointing left
11326 0x2192 arrow pointing right
11327 0x2193 arrow pointing down
11328 0x2191 arrow pointing up
11329 0x2592 board of squares
11330 0x2603 lantern symbol
11331 0x25ae solid square block
11332 - these defaults were invented for ncurses
11335 0x2264 less-than-or-equal-to
11336 0x2265 greater-than-or-equal-to
11339 0x00a3 pound-sterling symbol
11340 - thick-line-drawing
11341 0x250f upper left corner
11342 0x2517 lower left corner
11343 0x2513 upper right corner
11344 0x251b lower right corner
11345 0x2523 tee pointing left
11346 0x252b tee pointing right
11347 0x253b tee pointing up
11348 0x2533 tee pointing down
11349 0x2501 horizontal line
11350 0x2503 vertical line
11351 0x254b large plus or crossover
11352 - double-line-drawing
11353 0x2554 upper left corner
11354 0x255a lower left corner
11355 0x2557 upper right corner
11356 0x255d lower right corner
11357 0x2563 tee pointing left
11358 0x2560 tee pointing right
11359 0x2569 tee pointing up
11360 0x2566 tee pointing down
11361 0x2550 horizontal line
11362 0x2551 vertical line
11363 0x256c large plus or crossover
11365 if test "$cross_compiling" = yes; then
11366 cf_cv_wcwidth_graphics=unknown
11368 cat >conftest.$ac_ext <<_ACEOF
11369 #line 11369 "configure"
11370 #include "confdefs.h"
11372 #include <locale.h>
11383 char buffer[MY_LEN + 1];
11384 char notes[MY_LEN + 1];
11388 if (setlocale(LC_ALL, "en_US.UTF8") ||
11389 setlocale(LC_ALL, "en_US.UTF-8") ||
11390 setlocale(LC_ALL, "en_US.utf8") ||
11391 setlocale(LC_ALL, "en_US.utf-8")) {
11392 if ((fp = fopen("conftest.in", "r")) != 0) {
11393 while (fgets(buffer, MY_LEN, fp) != 0) {
11394 if (*buffer == '-') {
11395 fprintf(stderr, "\t%s", buffer);
11396 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
11398 if (wcwidth(value) == 1)
11400 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
11402 fprintf(stderr, "?\t%s", buffer);
11407 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
11408 return (totals == passed) ? 0 : 1;
11412 rm -f conftest$ac_exeext
11413 if { (eval echo "$as_me:11413: \"$ac_link\"") >&5
11414 (eval $ac_link) 2>&5
11416 echo "$as_me:11416: \$? = $ac_status" >&5
11417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11418 { (eval echo "$as_me:11418: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:11421: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 cf_cv_wcwidth_graphics=yes
11425 echo "$as_me: program exited with status $ac_status" >&5
11426 echo "$as_me: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11428 cf_cv_wcwidth_graphics=no
11430 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11434 echo "$as_me:11434: result: $cf_cv_wcwidth_graphics" >&5
11435 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11437 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11439 # with_overwrite=no
11440 NCURSES_CH_T=cchar_t
11442 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11445 echo "$as_me:11445: checking for $ac_func" >&5
11446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11447 if eval "test \"\${$as_ac_var+set}\" = set"; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 cat >conftest.$ac_ext <<_ACEOF
11451 #line 11451 "configure"
11452 #include "confdefs.h"
11453 #define $ac_func autoconf_temporary
11454 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11461 /* We use char because int might match the return type of a gcc2
11462 builtin and then its argument prototype would still apply. */
11463 char $ac_func (void);
11469 /* The GNU C library defines stubs for functions which it implements
11470 to always fail with ENOSYS. Some functions are actually named
11471 something starting with __ and the normal name is an alias. */
11472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11473 #error found stub for $ac_func
11476 return $ac_func ();
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:11482: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>&5
11485 echo "$as_me:11485: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -s conftest$ac_exeext'
11488 { (eval echo "$as_me:11488: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:11491: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 eval "$as_ac_var=yes"
11495 echo "$as_me: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11497 eval "$as_ac_var=no"
11499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11501 echo "$as_me:11501: result: `eval echo '${'$as_ac_var'}'`" >&5
11502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11503 if test `eval echo '${'$as_ac_var'}'` = yes; then
11504 cat >>confdefs.h <<EOF
11505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11511 if test "x$ac_cv_func_putwc" != xyes ; then
11513 echo "$as_me:11513: checking for multibyte character support" >&5
11514 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
11515 if test "${cf_cv_utf8_lib+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 cf_save_LIBS="$LIBS"
11520 cat >conftest.$ac_ext <<_ACEOF
11521 #line 11521 "configure"
11522 #include "confdefs.h"
11524 #include <stdlib.h>
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (eval echo "$as_me:11534: \"$ac_link\"") >&5
11535 (eval $ac_link) 2>&5
11537 echo "$as_me:11537: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -s conftest$ac_exeext'
11540 { (eval echo "$as_me:11540: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:11543: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11547 echo "$as_me: failed program was:" >&5
11548 cat conftest.$ac_ext >&5
11550 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
11551 # will be set on completion of the AC_TRY_LINK below.
11552 cf_cv_header_path_utf8=
11553 cf_cv_library_path_utf8=
11555 echo "${as_me:-configure}:11555: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
11557 cf_save_LIBS="$LIBS"
11559 cat >conftest.$ac_ext <<_ACEOF
11560 #line 11560 "configure"
11561 #include "confdefs.h"
11563 #include <libutf8.h>
11572 rm -f conftest.$ac_objext conftest$ac_exeext
11573 if { (eval echo "$as_me:11573: \"$ac_link\"") >&5
11574 (eval $ac_link) 2>&5
11576 echo "$as_me:11576: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -s conftest$ac_exeext'
11579 { (eval echo "$as_me:11579: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:11582: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11585 cf_cv_find_linkage_utf8=yes
11586 cf_cv_header_path_utf8=/usr/include
11587 cf_cv_library_path_utf8=/usr/lib
11590 echo "$as_me: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11593 LIBS="-lutf8 $cf_save_LIBS"
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line 11596 "configure"
11597 #include "confdefs.h"
11599 #include <libutf8.h>
11608 rm -f conftest.$ac_objext conftest$ac_exeext
11609 if { (eval echo "$as_me:11609: \"$ac_link\"") >&5
11610 (eval $ac_link) 2>&5
11612 echo "$as_me:11612: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -s conftest$ac_exeext'
11615 { (eval echo "$as_me:11615: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:11618: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11621 cf_cv_find_linkage_utf8=yes
11622 cf_cv_header_path_utf8=/usr/include
11623 cf_cv_library_path_utf8=/usr/lib
11624 cf_cv_library_file_utf8="-lutf8"
11627 echo "$as_me: failed program was:" >&5
11628 cat conftest.$ac_ext >&5
11630 cf_cv_find_linkage_utf8=no
11631 LIBS="$cf_save_LIBS"
11633 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
11635 echo "${as_me:-configure}:11635: testing find linkage for utf8 library ..." 1>&5
11637 echo "${as_me:-configure}:11637: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
11639 cf_save_CPPFLAGS="$CPPFLAGS"
11640 cf_test_CPPFLAGS="$CPPFLAGS"
11644 # collect the current set of include-directories from compiler flags
11645 cf_header_path_list=""
11646 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11647 for cf_header_path in $CPPFLAGS $CFLAGS
11649 case $cf_header_path in
11651 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11653 test "x$cf_header_path" != "xNONE" && \
11654 test -d "$cf_header_path" && \
11656 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11657 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
11658 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
11659 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
11660 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
11661 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
11664 cf_header_path_list="$cf_header_path_list $cf_search"
11670 # add the variations for the package we are looking for
11674 test "x$prefix" != "xNONE" && \
11675 test -d "$prefix" && \
11677 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11678 test -d $prefix/include && cf_search="$cf_search $prefix/include"
11679 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
11680 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
11681 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
11682 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
11685 for cf_subdir_prefix in \
11694 test "x$cf_subdir_prefix" != "x$prefix" && \
11695 test -d "$cf_subdir_prefix" && \
11696 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11697 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
11698 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
11699 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
11700 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
11701 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
11702 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
11707 test "$includedir" != NONE && \
11708 test "$includedir" != "/usr/include" && \
11709 test -d "$includedir" && {
11710 test -d $includedir && cf_search="$cf_search $includedir"
11711 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
11714 test "$oldincludedir" != NONE && \
11715 test "$oldincludedir" != "/usr/include" && \
11716 test -d "$oldincludedir" && {
11717 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
11718 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
11721 cf_search="$cf_search $cf_header_path_list"
11723 for cf_cv_header_path_utf8 in $cf_search
11725 if test -d $cf_cv_header_path_utf8 ; then
11726 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
11728 echo "${as_me:-configure}:11728: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
11730 CPPFLAGS="$cf_save_CPPFLAGS"
11732 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11733 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line 11736 "configure"
11737 #include "confdefs.h"
11739 #include <libutf8.h>
11748 rm -f conftest.$ac_objext
11749 if { (eval echo "$as_me:11749: \"$ac_compile\"") >&5
11750 (eval $ac_compile) 2>&5
11752 echo "$as_me:11752: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:11755: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:11758: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11761 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
11763 echo "${as_me:-configure}:11763: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
11765 cf_cv_find_linkage_utf8=maybe
11766 cf_test_CPPFLAGS="$CPPFLAGS"
11769 echo "$as_me: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11772 CPPFLAGS="$cf_save_CPPFLAGS"
11775 rm -f conftest.$ac_objext conftest.$ac_ext
11779 if test "$cf_cv_find_linkage_utf8" = maybe ; then
11781 echo "${as_me:-configure}:11781: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
11783 cf_save_LIBS="$LIBS"
11784 cf_save_LDFLAGS="$LDFLAGS"
11786 if test "$cf_cv_find_linkage_utf8" != yes ; then
11789 cf_library_path_list=""
11790 if test -n "${LDFLAGS}${LIBS}" ; then
11791 for cf_library_path in $LDFLAGS $LIBS
11793 case $cf_library_path in
11795 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
11797 test "x$cf_library_path" != "xNONE" && \
11798 test -d "$cf_library_path" && \
11800 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
11801 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
11802 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
11803 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
11804 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
11805 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
11808 cf_library_path_list="$cf_library_path_list $cf_search"
11816 test "x$prefix" != "xNONE" && \
11817 test -d "$prefix" && \
11819 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
11820 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
11821 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
11822 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
11823 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
11824 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
11827 for cf_subdir_prefix in \
11836 test "x$cf_subdir_prefix" != "x$prefix" && \
11837 test -d "$cf_subdir_prefix" && \
11838 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11839 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
11840 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
11841 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
11842 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
11843 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
11844 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
11849 cf_search="$cf_library_path_list $cf_search"
11851 for cf_cv_library_path_utf8 in $cf_search
11853 if test -d $cf_cv_library_path_utf8 ; then
11854 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
11856 echo "${as_me:-configure}:11856: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
11858 CPPFLAGS="$cf_test_CPPFLAGS"
11859 LIBS="-lutf8 $cf_save_LIBS"
11860 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
11861 cat >conftest.$ac_ext <<_ACEOF
11862 #line 11862 "configure"
11863 #include "confdefs.h"
11865 #include <libutf8.h>
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (eval echo "$as_me:11875: \"$ac_link\"") >&5
11876 (eval $ac_link) 2>&5
11878 echo "$as_me:11878: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -s conftest$ac_exeext'
11881 { (eval echo "$as_me:11881: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11884 echo "$as_me:11884: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11887 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
11889 echo "${as_me:-configure}:11889: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
11891 cf_cv_find_linkage_utf8=yes
11892 cf_cv_library_file_utf8="-lutf8"
11895 echo "$as_me: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11898 CPPFLAGS="$cf_save_CPPFLAGS"
11899 LIBS="$cf_save_LIBS"
11900 LDFLAGS="$cf_save_LDFLAGS"
11903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11906 CPPFLAGS="$cf_save_CPPFLAGS"
11907 LDFLAGS="$cf_save_LDFLAGS"
11911 cf_cv_find_linkage_utf8=no
11915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11920 LIBS="$cf_save_LIBS"
11922 if test "$cf_cv_find_linkage_utf8" = yes ; then
11923 cf_cv_utf8_lib=add-on
11929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11931 echo "$as_me:11931: result: $cf_cv_utf8_lib" >&5
11932 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
11934 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
11935 # ncurses/ncursesw:
11936 if test "$cf_cv_utf8_lib" = "add-on" ; then
11938 cat >>confdefs.h <<\EOF
11939 #define HAVE_LIBUTF8_H 1
11942 if test -n "$cf_cv_header_path_utf8" ; then
11943 for cf_add_incdir in $cf_cv_header_path_utf8
11945 while test $cf_add_incdir != /usr/include
11947 if test -d $cf_add_incdir
11950 if test -n "$CFLAGS$CPPFLAGS" ; then
11951 # a loop is needed to ensure we can add subdirs of existing dirs
11952 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11953 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11954 cf_have_incdir=yes; break
11959 if test "$cf_have_incdir" = no ; then
11960 if test "$cf_add_incdir" = /usr/local/include ; then
11961 if test "$GCC" = yes
11963 cf_save_CPPFLAGS=$CPPFLAGS
11965 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11966 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11968 cat >conftest.$ac_ext <<_ACEOF
11969 #line 11969 "configure"
11970 #include "confdefs.h"
11980 rm -f conftest.$ac_objext
11981 if { (eval echo "$as_me:11981: \"$ac_compile\"") >&5
11982 (eval $ac_compile) 2>&5
11984 echo "$as_me:11984: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try='test -s conftest.$ac_objext'
11987 { (eval echo "$as_me:11987: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11990 echo "$as_me:11990: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11994 echo "$as_me: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11998 rm -f conftest.$ac_objext conftest.$ac_ext
11999 CPPFLAGS=$cf_save_CPPFLAGS
12004 if test "$cf_have_incdir" = no ; then
12005 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12007 echo "${as_me:-configure}:12007: testing adding $cf_add_incdir to include-path ..." 1>&5
12009 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12011 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
12012 test "$cf_top_incdir" = "$cf_add_incdir" && break
12013 cf_add_incdir="$cf_top_incdir"
12024 if test -n "$cf_cv_library_path_utf8" ; then
12025 for cf_add_libdir in $cf_cv_library_path_utf8
12027 if test $cf_add_libdir = /usr/lib ; then
12029 elif test -d $cf_add_libdir
12032 if test -n "$LDFLAGS$LIBS" ; then
12033 # a loop is needed to ensure we can add subdirs of existing dirs
12034 for cf_test_libdir in $LDFLAGS $LIBS ; do
12035 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12036 cf_have_libdir=yes; break
12040 if test "$cf_have_libdir" = no ; then
12041 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12043 echo "${as_me:-configure}:12043: testing adding $cf_add_libdir to library-path ..." 1>&5
12045 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12051 cf_add_libs="$cf_cv_library_file_utf8"
12052 # Filter out duplicates - this happens with badly-designed ".pc" files...
12053 for cf_add_1lib in $LIBS
12055 for cf_add_2lib in $cf_add_libs
12057 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12063 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12065 LIBS="$cf_add_libs"
12069 if test "$cf_cv_utf8_lib" != no ; then
12074 # This is needed on Tru64 5.0 to declare mbstate_t
12075 echo "$as_me:12075: checking if we must include wchar.h to declare mbstate_t" >&5
12076 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12077 if test "${cf_cv_mbstate_t+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 cat >conftest.$ac_ext <<_ACEOF
12082 #line 12082 "configure"
12083 #include "confdefs.h"
12085 #include <stdlib.h>
12086 #include <stdarg.h>
12088 #ifdef HAVE_LIBUTF8_H
12089 #include <libutf8.h>
12099 rm -f conftest.$ac_objext
12100 if { (eval echo "$as_me:12100: \"$ac_compile\"") >&5
12101 (eval $ac_compile) 2>&5
12103 echo "$as_me:12103: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -s conftest.$ac_objext'
12106 { (eval echo "$as_me:12106: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:12109: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12113 echo "$as_me: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12115 cat >conftest.$ac_ext <<_ACEOF
12116 #line 12116 "configure"
12117 #include "confdefs.h"
12119 #include <stdlib.h>
12120 #include <stdarg.h>
12123 #ifdef HAVE_LIBUTF8_H
12124 #include <libutf8.h>
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:12135: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>&5
12138 echo "$as_me:12138: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -s conftest.$ac_objext'
12141 { (eval echo "$as_me:12141: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12144 echo "$as_me:12144: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 cf_cv_mbstate_t=yes
12148 echo "$as_me: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12150 cf_cv_mbstate_t=unknown
12152 rm -f conftest.$ac_objext conftest.$ac_ext
12154 rm -f conftest.$ac_objext conftest.$ac_ext
12156 echo "$as_me:12156: result: $cf_cv_mbstate_t" >&5
12157 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12159 if test "$cf_cv_mbstate_t" = yes ; then
12161 cat >>confdefs.h <<\EOF
12162 #define NEED_WCHAR_H 1
12168 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12169 if test "$cf_cv_mbstate_t" = unknown ; then
12170 NCURSES_MBSTATE_T=1
12173 # This is needed on Tru64 5.0 to declare wchar_t
12174 echo "$as_me:12174: checking if we must include wchar.h to declare wchar_t" >&5
12175 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12176 if test "${cf_cv_wchar_t+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #line 12181 "configure"
12182 #include "confdefs.h"
12184 #include <stdlib.h>
12185 #include <stdarg.h>
12187 #ifdef HAVE_LIBUTF8_H
12188 #include <libutf8.h>
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:12199: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>&5
12202 echo "$as_me:12202: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (eval echo "$as_me:12205: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:12208: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12212 echo "$as_me: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 cat >conftest.$ac_ext <<_ACEOF
12215 #line 12215 "configure"
12216 #include "confdefs.h"
12218 #include <stdlib.h>
12219 #include <stdarg.h>
12222 #ifdef HAVE_LIBUTF8_H
12223 #include <libutf8.h>
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:12234: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>&5
12237 echo "$as_me:12237: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:12240: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12243 echo "$as_me:12243: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12247 echo "$as_me: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12249 cf_cv_wchar_t=unknown
12251 rm -f conftest.$ac_objext conftest.$ac_ext
12253 rm -f conftest.$ac_objext conftest.$ac_ext
12255 echo "$as_me:12255: result: $cf_cv_wchar_t" >&5
12256 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12258 if test "$cf_cv_wchar_t" = yes ; then
12260 cat >>confdefs.h <<\EOF
12261 #define NEED_WCHAR_H 1
12267 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12268 if test "$cf_cv_wchar_t" = unknown ; then
12272 # if we find wchar_t in either place, use substitution to provide a fallback.
12273 if test "$cf_cv_wchar_t" != unknown ; then
12274 NCURSES_OK_WCHAR_T=1
12277 # This is needed on Tru64 5.0 to declare wint_t
12278 echo "$as_me:12278: checking if we must include wchar.h to declare wint_t" >&5
12279 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12280 if test "${cf_cv_wint_t+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12285 #line 12285 "configure"
12286 #include "confdefs.h"
12288 #include <stdlib.h>
12289 #include <stdarg.h>
12291 #ifdef HAVE_LIBUTF8_H
12292 #include <libutf8.h>
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:12303: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>&5
12306 echo "$as_me:12306: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:12309: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:12312: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12316 echo "$as_me: failed program was:" >&5
12317 cat conftest.$ac_ext >&5
12318 cat >conftest.$ac_ext <<_ACEOF
12319 #line 12319 "configure"
12320 #include "confdefs.h"
12322 #include <stdlib.h>
12323 #include <stdarg.h>
12326 #ifdef HAVE_LIBUTF8_H
12327 #include <libutf8.h>
12337 rm -f conftest.$ac_objext
12338 if { (eval echo "$as_me:12338: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>&5
12341 echo "$as_me:12341: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:12344: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:12347: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12351 echo "$as_me: failed program was:" >&5
12352 cat conftest.$ac_ext >&5
12353 cf_cv_wint_t=unknown
12355 rm -f conftest.$ac_objext conftest.$ac_ext
12357 rm -f conftest.$ac_objext conftest.$ac_ext
12359 echo "$as_me:12359: result: $cf_cv_wint_t" >&5
12360 echo "${ECHO_T}$cf_cv_wint_t" >&6
12362 if test "$cf_cv_wint_t" = yes ; then
12364 cat >>confdefs.h <<\EOF
12365 #define NEED_WCHAR_H 1
12371 # if we do not find wint_t in either place, use substitution to provide a fallback.
12372 if test "$cf_cv_wint_t" = unknown ; then
12376 # if we find wint_t in either place, use substitution to provide a fallback.
12377 if test "$cf_cv_wint_t" != unknown ; then
12378 NCURSES_OK_WINT_T=1
12381 if test "$NCURSES_MBSTATE_T" != 0; then
12383 cat >>confdefs.h <<\EOF
12384 #define NEED_MBSTATE_T_DEF 1
12390 ### use option --disable-lp64 to allow long chtype
12391 echo "$as_me:12391: checking whether to enable _LP64 definition in curses.h" >&5
12392 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
12394 # Check whether --enable-lp64 or --disable-lp64 was given.
12395 if test "${enable_lp64+set}" = set; then
12396 enableval="$enable_lp64"
12397 with_lp64=$enableval
12399 with_lp64=$cf_dft_with_lp64
12401 echo "$as_me:12401: result: $with_lp64" >&5
12402 echo "${ECHO_T}$with_lp64" >&6
12404 if test "x$with_lp64" = xyes ; then
12405 cf_cv_enable_lp64=1
12407 cf_cv_enable_lp64=0
12410 # Check whether --enable-largefile or --disable-largefile was given.
12411 if test "${enable_largefile+set}" = set; then
12412 enableval="$enable_largefile"
12415 if test "$enable_largefile" != no; then
12417 echo "$as_me:12417: checking for special C compiler options needed for large files" >&5
12418 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12419 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 ac_cv_sys_largefile_CC=no
12423 if test "$GCC" != yes; then
12426 # IRIX 6.2 and later do not support large files by default,
12427 # so use the C compiler's -n32 option if that helps.
12428 cat >conftest.$ac_ext <<_ACEOF
12429 #line 12429 "configure"
12430 #include "confdefs.h"
12431 #include <sys/types.h>
12432 /* Check that off_t can represent 2**63 - 1 correctly.
12433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12434 since some C++ compilers masquerading as C compilers
12435 incorrectly reject 9223372036854775807. */
12436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12438 && LARGE_OFF_T % 2147483647 == 1)
12448 rm -f conftest.$ac_objext
12449 if { (eval echo "$as_me:12449: \"$ac_compile\"") >&5
12450 (eval $ac_compile) 2>&5
12452 echo "$as_me:12452: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:12455: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:12458: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12462 echo "$as_me: failed program was:" >&5
12463 cat conftest.$ac_ext >&5
12465 rm -f conftest.$ac_objext
12467 rm -f conftest.$ac_objext
12468 if { (eval echo "$as_me:12468: \"$ac_compile\"") >&5
12469 (eval $ac_compile) 2>&5
12471 echo "$as_me:12471: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:12474: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:12477: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_sys_largefile_CC=' -n32'; break
12481 echo "$as_me: failed program was:" >&5
12482 cat conftest.$ac_ext >&5
12484 rm -f conftest.$ac_objext
12488 rm -f conftest.$ac_ext
12491 echo "$as_me:12491: result: $ac_cv_sys_largefile_CC" >&5
12492 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12493 if test "$ac_cv_sys_largefile_CC" != no; then
12494 CC=$CC$ac_cv_sys_largefile_CC
12497 echo "$as_me:12497: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12498 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12499 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 ac_cv_sys_file_offset_bits=no
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #line 12505 "configure"
12506 #include "confdefs.h"
12507 #include <sys/types.h>
12508 /* Check that off_t can represent 2**63 - 1 correctly.
12509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12510 since some C++ compilers masquerading as C compilers
12511 incorrectly reject 9223372036854775807. */
12512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12514 && LARGE_OFF_T % 2147483647 == 1)
12524 rm -f conftest.$ac_objext
12525 if { (eval echo "$as_me:12525: \"$ac_compile\"") >&5
12526 (eval $ac_compile) 2>&5
12528 echo "$as_me:12528: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:12531: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:12534: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12538 echo "$as_me: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12541 rm -f conftest.$ac_objext conftest.$ac_ext
12542 cat >conftest.$ac_ext <<_ACEOF
12543 #line 12543 "configure"
12544 #include "confdefs.h"
12545 #define _FILE_OFFSET_BITS 64
12546 #include <sys/types.h>
12547 /* Check that off_t can represent 2**63 - 1 correctly.
12548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12549 since some C++ compilers masquerading as C compilers
12550 incorrectly reject 9223372036854775807. */
12551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12553 && LARGE_OFF_T % 2147483647 == 1)
12563 rm -f conftest.$ac_objext
12564 if { (eval echo "$as_me:12564: \"$ac_compile\"") >&5
12565 (eval $ac_compile) 2>&5
12567 echo "$as_me:12567: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -s conftest.$ac_objext'
12570 { (eval echo "$as_me:12570: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12573 echo "$as_me:12573: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 ac_cv_sys_file_offset_bits=64; break
12577 echo "$as_me: failed program was:" >&5
12578 cat conftest.$ac_ext >&5
12580 rm -f conftest.$ac_objext conftest.$ac_ext
12584 echo "$as_me:12584: result: $ac_cv_sys_file_offset_bits" >&5
12585 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12586 if test "$ac_cv_sys_file_offset_bits" != no; then
12588 cat >>confdefs.h <<EOF
12589 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12594 echo "$as_me:12594: checking for _LARGE_FILES value needed for large files" >&5
12595 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
12596 if test "${ac_cv_sys_large_files+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 ac_cv_sys_large_files=no
12601 cat >conftest.$ac_ext <<_ACEOF
12602 #line 12602 "configure"
12603 #include "confdefs.h"
12604 #include <sys/types.h>
12605 /* Check that off_t can represent 2**63 - 1 correctly.
12606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12607 since some C++ compilers masquerading as C compilers
12608 incorrectly reject 9223372036854775807. */
12609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12611 && LARGE_OFF_T % 2147483647 == 1)
12621 rm -f conftest.$ac_objext
12622 if { (eval echo "$as_me:12622: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>&5
12625 echo "$as_me:12625: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -s conftest.$ac_objext'
12628 { (eval echo "$as_me:12628: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12631 echo "$as_me:12631: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12635 echo "$as_me: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12638 rm -f conftest.$ac_objext conftest.$ac_ext
12639 cat >conftest.$ac_ext <<_ACEOF
12640 #line 12640 "configure"
12641 #include "confdefs.h"
12642 #define _LARGE_FILES 1
12643 #include <sys/types.h>
12644 /* Check that off_t can represent 2**63 - 1 correctly.
12645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12646 since some C++ compilers masquerading as C compilers
12647 incorrectly reject 9223372036854775807. */
12648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12650 && LARGE_OFF_T % 2147483647 == 1)
12660 rm -f conftest.$ac_objext
12661 if { (eval echo "$as_me:12661: \"$ac_compile\"") >&5
12662 (eval $ac_compile) 2>&5
12664 echo "$as_me:12664: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -s conftest.$ac_objext'
12667 { (eval echo "$as_me:12667: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:12670: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_sys_large_files=1; break
12674 echo "$as_me: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12677 rm -f conftest.$ac_objext conftest.$ac_ext
12681 echo "$as_me:12681: result: $ac_cv_sys_large_files" >&5
12682 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12683 if test "$ac_cv_sys_large_files" != no; then
12685 cat >>confdefs.h <<EOF
12686 #define _LARGE_FILES $ac_cv_sys_large_files
12693 if test "$enable_largefile" != no ; then
12694 echo "$as_me:12694: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12695 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12696 if test "${ac_cv_sys_largefile_source+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 ac_cv_sys_largefile_source=no
12701 cat >conftest.$ac_ext <<_ACEOF
12702 #line 12702 "configure"
12703 #include "confdefs.h"
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:12714: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>&5
12717 echo "$as_me:12717: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:12720: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:12723: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12727 echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12730 rm -f conftest.$ac_objext conftest.$ac_ext
12731 cat >conftest.$ac_ext <<_ACEOF
12732 #line 12732 "configure"
12733 #include "confdefs.h"
12734 #define _LARGEFILE_SOURCE 1
12744 rm -f conftest.$ac_objext
12745 if { (eval echo "$as_me:12745: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>&5
12748 echo "$as_me:12748: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -s conftest.$ac_objext'
12751 { (eval echo "$as_me:12751: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12754 echo "$as_me:12754: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_sys_largefile_source=1; break
12758 echo "$as_me: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12761 rm -f conftest.$ac_objext conftest.$ac_ext
12765 echo "$as_me:12765: result: $ac_cv_sys_largefile_source" >&5
12766 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12767 if test "$ac_cv_sys_largefile_source" != no; then
12769 cat >>confdefs.h <<EOF
12770 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12776 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12777 # in glibc 2.1.3, but that breaks too many other things.
12778 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12779 echo "$as_me:12779: checking for fseeko" >&5
12780 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12781 if test "${ac_cv_func_fseeko+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 cat >conftest.$ac_ext <<_ACEOF
12785 #line 12785 "configure"
12786 #include "confdefs.h"
12791 return fseeko && fseeko (stdin, 0, 0);
12796 rm -f conftest.$ac_objext conftest$ac_exeext
12797 if { (eval echo "$as_me:12797: \"$ac_link\"") >&5
12798 (eval $ac_link) 2>&5
12800 echo "$as_me:12800: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (eval echo "$as_me:12803: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 echo "$as_me:12806: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_cv_func_fseeko=yes
12810 echo "$as_me: failed program was:" >&5
12811 cat conftest.$ac_ext >&5
12812 ac_cv_func_fseeko=no
12814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12816 echo "$as_me:12816: result: $ac_cv_func_fseeko" >&5
12817 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12818 if test $ac_cv_func_fseeko = yes; then
12820 cat >>confdefs.h <<\EOF
12821 #define HAVE_FSEEKO 1
12826 # Normally we would collect these definitions in the config.h,
12827 # but (like _XOPEN_SOURCE), some environments rely on having these
12828 # defined before any of the system headers are included. Another
12829 # case comes up with C++, e.g., on AIX the compiler compiles the
12830 # header files by themselves before looking at the body files it is
12831 # told to compile. For ncurses, those header files do not include
12833 if test "$ac_cv_sys_large_files" != no
12836 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12837 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
12840 if test "$ac_cv_sys_largefile_source" != no
12843 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12844 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
12847 if test "$ac_cv_sys_file_offset_bits" != no
12850 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12851 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
12855 echo "$as_me:12855: checking whether to use struct dirent64" >&5
12856 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
12857 if test "${cf_cv_struct_dirent64+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12861 cat >conftest.$ac_ext <<_ACEOF
12862 #line 12862 "configure"
12863 #include "confdefs.h"
12865 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
12866 #include <sys/types.h>
12867 #include <dirent.h>
12873 /* if transitional largefile support is setup, this is true */
12874 extern struct dirent64 * readdir(DIR *);
12875 struct dirent64 *x = readdir((DIR *)0);
12876 struct dirent *y = readdir((DIR *)0);
12883 rm -f conftest.$ac_objext
12884 if { (eval echo "$as_me:12884: \"$ac_compile\"") >&5
12885 (eval $ac_compile) 2>&5
12887 echo "$as_me:12887: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (eval echo "$as_me:12890: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:12893: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 cf_cv_struct_dirent64=yes
12897 echo "$as_me: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12899 cf_cv_struct_dirent64=no
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12904 echo "$as_me:12904: result: $cf_cv_struct_dirent64" >&5
12905 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
12906 test "$cf_cv_struct_dirent64" = yes &&
12907 cat >>confdefs.h <<\EOF
12908 #define HAVE_STRUCT_DIRENT64 1
12913 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
12914 echo "$as_me:12914: checking if you want tparm not to use X/Open fixed-parameter list" >&5
12915 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
12917 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
12918 if test "${enable_tparm_varargs+set}" = set; then
12919 enableval="$enable_tparm_varargs"
12920 with_tparm_varargs=$enableval
12922 with_tparm_varargs=yes
12924 echo "$as_me:12924: result: $with_tparm_varargs" >&5
12925 echo "${ECHO_T}$with_tparm_varargs" >&6
12926 NCURSES_TPARM_VARARGS=0
12927 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
12929 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
12930 if test "$with_ticlib" != no ; then
12931 echo "$as_me:12931: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
12932 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
12934 # Check whether --enable-tic-depends or --disable-tic-depends was given.
12935 if test "${enable_tic_depends+set}" = set; then
12936 enableval="$enable_tic_depends"
12937 with_tic_depends=$enableval
12939 with_tic_depends=yes
12941 echo "$as_me:12941: result: $with_tic_depends" >&5
12942 echo "${ECHO_T}$with_tic_depends" >&6
12944 with_tic_depends=no
12947 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
12948 echo "$as_me:12948: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
12949 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
12951 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
12952 if test "${enable_wattr_macros+set}" = set; then
12953 enableval="$enable_wattr_macros"
12954 with_wattr_macros=$enableval
12956 with_wattr_macros=yes
12958 if [ "x$with_wattr_macros" != xyes ]; then
12959 NCURSES_WATTR_MACROS=0
12960 echo "$as_me:12960: result: yes" >&5
12961 echo "${ECHO_T}yes" >&6
12963 NCURSES_WATTR_MACROS=1
12964 echo "$as_me:12964: result: no" >&5
12965 echo "${ECHO_T}no" >&6
12968 echo "$as_me:12968: checking for X11 rgb file" >&5
12969 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
12971 # Check whether --with-x11-rgb or --without-x11-rgb was given.
12972 if test "${with_x11_rgb+set}" = set; then
12973 withval="$with_x11_rgb"
12979 if test "x$RGB_PATH" = xauto
12981 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
12983 /opt/local/share/X11/rgb.txt \
12984 /opt/X11/share/X11/rgb.txt \
12985 /usr/share/X11/rgb.txt \
12986 /usr/X11/share/X11/rgb.txt \
12987 /usr/X11/lib/X11/rgb.txt \
12988 /usr/lib/X11/rgb.txt \
12990 /usr/pkg/lib/X11/rgb.txt \
12991 /usr/X11R7/lib/X11/rgb.txt \
12992 /usr/X11R6/lib/X11/rgb.txt \
12993 /usr/X11R5/lib/X11/rgb.txt \
12994 /usr/X11R4/lib/X11/rgb.txt \
12995 /usr/local/lib/X11/rgb.txt \
12996 /usr/local/share/X11/rgb.txt \
12997 /usr/lib64/X11/rgb.txt
12999 if test -f "$cf_path" ; then
13000 RGB_PATH="$cf_path"
13007 if test "x$prefix" != xNONE; then
13008 cf_path_syntax="$prefix"
13010 cf_path_syntax="$ac_default_prefix"
13013 case ".$cf_path" in
13014 (.\$\(*\)*|.\'*\'*)
13018 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13020 (.\${*prefix}*|.\${*dir}*)
13021 eval cf_path="$cf_path"
13022 case ".$cf_path" in
13024 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13029 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13032 { { echo "$as_me:13032: error: expected a pathname, not \"$cf_path\"" >&5
13033 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13034 { (exit 1); exit 1; }; }
13040 echo "$as_me:13040: result: $RGB_PATH" >&5
13041 echo "${ECHO_T}$RGB_PATH" >&6
13043 cat >>confdefs.h <<EOF
13044 #define RGB_PATH "$cf_path"
13048 if test "$RGB_PATH" = no
13053 ### use option --with-bool to override bool's type
13054 echo "$as_me:13054: checking for type of bool" >&5
13055 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13057 # Check whether --with-bool or --without-bool was given.
13058 if test "${with_bool+set}" = set; then
13059 withval="$with_bool"
13060 NCURSES_BOOL="$withval"
13064 echo "$as_me:13064: result: $NCURSES_BOOL" >&5
13065 echo "${ECHO_T}$NCURSES_BOOL" >&6
13067 echo "$as_me:13067: checking for alternate terminal capabilities file" >&5
13068 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13070 # Check whether --with-caps or --without-caps was given.
13071 if test "${with_caps+set}" = set; then
13072 withval="$with_caps"
13073 TERMINFO_CAPS=Caps.$withval
13077 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13078 echo "$as_me:13078: result: $TERMINFO_CAPS" >&5
13079 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13081 ### use option --with-chtype to override chtype's type
13082 echo "$as_me:13082: checking for type of chtype" >&5
13083 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13085 # Check whether --with-chtype or --without-chtype was given.
13086 if test "${with_chtype+set}" = set; then
13087 withval="$with_chtype"
13088 NCURSES_CHTYPE="$withval"
13090 NCURSES_CHTYPE=$cf_dft_chtype
13092 echo "$as_me:13092: result: $NCURSES_CHTYPE" >&5
13093 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13095 ### use option --with-ospeed to override ospeed's type
13096 echo "$as_me:13096: checking for type of ospeed" >&5
13097 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13099 # Check whether --with-ospeed or --without-ospeed was given.
13100 if test "${with_ospeed+set}" = set; then
13101 withval="$with_ospeed"
13102 NCURSES_OSPEED="$withval"
13104 NCURSES_OSPEED=short
13106 echo "$as_me:13106: result: $NCURSES_OSPEED" >&5
13107 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13109 ### use option --with-mmask-t to override mmask_t's type
13110 echo "$as_me:13110: checking for type of mmask_t" >&5
13111 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13113 # Check whether --with-mmask-t or --without-mmask-t was given.
13114 if test "${with_mmask_t+set}" = set; then
13115 withval="$with_mmask_t"
13116 NCURSES_MMASK_T="$withval"
13118 NCURSES_MMASK_T=$cf_dft_mmask_t
13120 echo "$as_me:13120: result: $NCURSES_MMASK_T" >&5
13121 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13123 ### use option --with-ccharw-max to override CCHARW_MAX size
13124 echo "$as_me:13124: checking for size CCHARW_MAX" >&5
13125 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13127 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13128 if test "${with_ccharw_max+set}" = set; then
13129 withval="$with_ccharw_max"
13130 NCURSES_CCHARW_MAX="$withval"
13132 NCURSES_CCHARW_MAX=5
13134 echo "$as_me:13134: result: $NCURSES_CCHARW_MAX" >&5
13135 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13137 echo "$as_me:13137: checking for ANSI C header files" >&5
13138 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13139 if test "${ac_cv_header_stdc+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 cat >conftest.$ac_ext <<_ACEOF
13143 #line 13143 "configure"
13144 #include "confdefs.h"
13145 #include <stdlib.h>
13146 #include <stdarg.h>
13147 #include <string.h>
13151 if { (eval echo "$as_me:13151: \"$ac_cpp conftest.$ac_ext\"") >&5
13152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13154 egrep -v '^ *\+' conftest.er1 >conftest.err
13156 cat conftest.err >&5
13157 echo "$as_me:13157: \$? = $ac_status" >&5
13158 (exit $ac_status); } >/dev/null; then
13159 if test -s conftest.err; then
13160 ac_cpp_err=$ac_c_preproc_warn_flag
13167 if test -z "$ac_cpp_err"; then
13168 ac_cv_header_stdc=yes
13170 echo "$as_me: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13172 ac_cv_header_stdc=no
13174 rm -f conftest.err conftest.$ac_ext
13176 if test $ac_cv_header_stdc = yes; then
13177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line 13179 "configure"
13180 #include "confdefs.h"
13181 #include <string.h>
13184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13185 egrep "memchr" >/dev/null 2>&1; then
13188 ac_cv_header_stdc=no
13194 if test $ac_cv_header_stdc = yes; then
13195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13196 cat >conftest.$ac_ext <<_ACEOF
13197 #line 13197 "configure"
13198 #include "confdefs.h"
13199 #include <stdlib.h>
13202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13203 egrep "free" >/dev/null 2>&1; then
13206 ac_cv_header_stdc=no
13212 if test $ac_cv_header_stdc = yes; then
13213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13214 if test "$cross_compiling" = yes; then
13217 cat >conftest.$ac_ext <<_ACEOF
13218 #line 13218 "configure"
13219 #include "confdefs.h"
13221 #if ((' ' & 0x0FF) == 0x020)
13222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13225 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13226 || ('j' <= (c) && (c) <= 'r') \
13227 || ('s' <= (c) && (c) <= 'z'))
13228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13236 for (i = 0; i < 256; i++)
13237 if (XOR (islower (i), ISLOWER (i))
13238 || toupper (i) != TOUPPER (i))
13239 $ac_main_return(2);
13240 $ac_main_return (0);
13243 rm -f conftest$ac_exeext
13244 if { (eval echo "$as_me:13244: \"$ac_link\"") >&5
13245 (eval $ac_link) 2>&5
13247 echo "$as_me:13247: \$? = $ac_status" >&5
13248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249 { (eval echo "$as_me:13249: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:13252: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13256 echo "$as_me: program exited with status $ac_status" >&5
13257 echo "$as_me: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13259 ac_cv_header_stdc=no
13261 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13265 echo "$as_me:13265: result: $ac_cv_header_stdc" >&5
13266 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13267 if test $ac_cv_header_stdc = yes; then
13269 cat >>confdefs.h <<\EOF
13270 #define STDC_HEADERS 1
13275 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13277 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13278 inttypes.h stdint.h unistd.h
13280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13281 echo "$as_me:13281: checking for $ac_header" >&5
13282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 cat >conftest.$ac_ext <<_ACEOF
13287 #line 13287 "configure"
13288 #include "confdefs.h"
13289 $ac_includes_default
13290 #include <$ac_header>
13292 rm -f conftest.$ac_objext
13293 if { (eval echo "$as_me:13293: \"$ac_compile\"") >&5
13294 (eval $ac_compile) 2>&5
13296 echo "$as_me:13296: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -s conftest.$ac_objext'
13299 { (eval echo "$as_me:13299: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13302 echo "$as_me:13302: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 eval "$as_ac_Header=yes"
13306 echo "$as_me: failed program was:" >&5
13307 cat conftest.$ac_ext >&5
13308 eval "$as_ac_Header=no"
13310 rm -f conftest.$ac_objext conftest.$ac_ext
13312 echo "$as_me:13312: result: `eval echo '${'$as_ac_Header'}'`" >&5
13313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13315 cat >>confdefs.h <<EOF
13316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13322 echo "$as_me:13322: checking for signed char" >&5
13323 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13324 if test "${ac_cv_type_signed_char+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 cat >conftest.$ac_ext <<_ACEOF
13328 #line 13328 "configure"
13329 #include "confdefs.h"
13330 $ac_includes_default
13334 if ((signed char *) 0)
13336 if (sizeof (signed char))
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:13343: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13346 echo "$as_me:13346: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:13349: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:13352: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_cv_type_signed_char=yes
13356 echo "$as_me: failed program was:" >&5
13357 cat conftest.$ac_ext >&5
13358 ac_cv_type_signed_char=no
13360 rm -f conftest.$ac_objext conftest.$ac_ext
13362 echo "$as_me:13362: result: $ac_cv_type_signed_char" >&5
13363 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13365 echo "$as_me:13365: checking size of signed char" >&5
13366 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13367 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 if test "$ac_cv_type_signed_char" = yes; then
13371 if test "$cross_compiling" = yes; then
13372 # Depending upon the size, compute the lo and hi bounds.
13373 cat >conftest.$ac_ext <<_ACEOF
13374 #line 13374 "configure"
13375 #include "confdefs.h"
13376 $ac_includes_default
13380 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:13386: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>&5
13389 echo "$as_me:13389: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (eval echo "$as_me:13392: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:13395: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13399 cat >conftest.$ac_ext <<_ACEOF
13400 #line 13400 "configure"
13401 #include "confdefs.h"
13402 $ac_includes_default
13406 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13411 rm -f conftest.$ac_objext
13412 if { (eval echo "$as_me:13412: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>&5
13415 echo "$as_me:13415: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -s conftest.$ac_objext'
13418 { (eval echo "$as_me:13418: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13421 echo "$as_me:13421: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_hi=$ac_mid; break
13425 echo "$as_me: failed program was:" >&5
13426 cat conftest.$ac_ext >&5
13427 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13429 rm -f conftest.$ac_objext conftest.$ac_ext
13432 echo "$as_me: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13436 cat >conftest.$ac_ext <<_ACEOF
13437 #line 13437 "configure"
13438 #include "confdefs.h"
13439 $ac_includes_default
13443 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:13449: \"$ac_compile\"") >&5
13450 (eval $ac_compile) 2>&5
13452 echo "$as_me:13452: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -s conftest.$ac_objext'
13455 { (eval echo "$as_me:13455: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:13458: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_lo=$ac_mid; break
13462 echo "$as_me: failed program was:" >&5
13463 cat conftest.$ac_ext >&5
13464 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13466 rm -f conftest.$ac_objext conftest.$ac_ext
13469 rm -f conftest.$ac_objext conftest.$ac_ext
13470 # Binary search between lo and hi bounds.
13471 while test "x$ac_lo" != "x$ac_hi"; do
13472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13473 cat >conftest.$ac_ext <<_ACEOF
13474 #line 13474 "configure"
13475 #include "confdefs.h"
13476 $ac_includes_default
13480 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:13486: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>&5
13489 echo "$as_me:13489: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:13492: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:13495: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13499 echo "$as_me: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13501 ac_lo=`expr $ac_mid + 1`
13503 rm -f conftest.$ac_objext conftest.$ac_ext
13505 ac_cv_sizeof_signed_char=$ac_lo
13507 if test "$cross_compiling" = yes; then
13508 { { echo "$as_me:13508: error: cannot run test program while cross compiling" >&5
13509 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13510 { (exit 1); exit 1; }; }
13512 cat >conftest.$ac_ext <<_ACEOF
13513 #line 13513 "configure"
13514 #include "confdefs.h"
13515 $ac_includes_default
13519 FILE *f = fopen ("conftest.val", "w");
13521 $ac_main_return (1);
13522 fprintf (f, "%d", (sizeof (signed char)));
13528 rm -f conftest$ac_exeext
13529 if { (eval echo "$as_me:13529: \"$ac_link\"") >&5
13530 (eval $ac_link) 2>&5
13532 echo "$as_me:13532: \$? = $ac_status" >&5
13533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13534 { (eval echo "$as_me:13534: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:13537: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_cv_sizeof_signed_char=`cat conftest.val`
13541 echo "$as_me: program exited with status $ac_status" >&5
13542 echo "$as_me: failed program was:" >&5
13543 cat conftest.$ac_ext >&5
13545 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13550 ac_cv_sizeof_signed_char=0
13553 echo "$as_me:13553: result: $ac_cv_sizeof_signed_char" >&5
13554 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
13555 cat >>confdefs.h <<EOF
13556 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
13559 if test "$ac_cv_sizeof_signed_char" = 1 ; then
13560 NCURSES_SBOOL="signed char"
13562 NCURSES_SBOOL="char"
13564 echo "$as_me:13564: checking if you want to use signed Boolean array in term.h" >&5
13565 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
13567 # Check whether --enable-signed-char or --disable-signed-char was given.
13568 if test "${enable_signed_char+set}" = set; then
13569 enableval="$enable_signed_char"
13570 with_signed_char=$enableval
13572 with_signed_char=no
13574 echo "$as_me:13574: result: $with_signed_char" >&5
13575 echo "${ECHO_T}$with_signed_char" >&6
13576 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
13578 ### use option --with-tparm-arg to override tparm's argument type
13579 echo "$as_me:13579: checking for type of tparm args" >&5
13580 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
13582 # Check whether --with-tparm-arg or --without-tparm-arg was given.
13583 if test "${with_tparm_arg+set}" = set; then
13584 withval="$with_tparm_arg"
13585 NCURSES_TPARM_ARG="$withval"
13587 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
13589 echo "$as_me:13589: result: $NCURSES_TPARM_ARG" >&5
13590 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
13592 ### Enable compiling-in rcs id's
13593 echo "$as_me:13593: checking if RCS identifiers should be compiled-in" >&5
13594 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
13596 # Check whether --with-rcs-ids or --without-rcs-ids was given.
13597 if test "${with_rcs_ids+set}" = set; then
13598 withval="$with_rcs_ids"
13599 with_rcs_ids=$withval
13603 echo "$as_me:13603: result: $with_rcs_ids" >&5
13604 echo "${ECHO_T}$with_rcs_ids" >&6
13605 test "x$with_rcs_ids" = xyes &&
13606 cat >>confdefs.h <<\EOF
13607 #define USE_RCS_IDS 1
13610 ###############################################################################
13612 echo "$as_me:13612: checking format of man-pages" >&5
13613 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
13615 # Check whether --with-manpage-format or --without-manpage-format was given.
13616 if test "${with_manpage_format+set}" = set; then
13617 withval="$with_manpage_format"
13618 MANPAGE_FORMAT=$withval
13620 MANPAGE_FORMAT=unknown
13623 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
13624 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
13628 case $MANPAGE_FORMAT in
13630 if test -z "$MANPATH" ; then
13631 MANPATH="/usr/man:/usr/share/man"
13634 # look for the 'date' man-page (it's most likely to be installed!)
13640 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
13641 for cf_dir in $MANPATH; do
13642 test -z "$cf_dir" && cf_dir=/usr/man
13643 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
13645 cf_test=`echo $cf_name | sed -e 's/*//'`
13646 if test "x$cf_test" = "x$cf_name" ; then
13649 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
13650 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
13651 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
13652 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
13666 # if we found a match in either man* or cat*, stop looking
13667 if test -n "$MANPAGE_FORMAT" ; then
13669 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
13670 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
13676 test $cf_found=yes && break
13679 # only check the first directory in $MANPATH where we find manpages
13680 if test -n "$MANPAGE_FORMAT" ; then
13684 # if we did not find the example, just assume it is normal
13685 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
13689 for cf_option in $MANPAGE_FORMAT; do
13691 (gzip|compress|BSDI|normal|formatted|catonly)
13694 cf_unknown="$cf_unknown $cf_option"
13701 echo "$as_me:13701: result: $MANPAGE_FORMAT" >&5
13702 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
13703 if test -n "$cf_unknown" ; then
13704 { echo "$as_me:13704: WARNING: Unexpected manpage-format $cf_unknown" >&5
13705 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
13708 echo "$as_me:13708: checking for manpage renaming" >&5
13709 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
13711 # Check whether --with-manpage-renames or --without-manpage-renames was given.
13712 if test "${with_manpage_renames+set}" = set; then
13713 withval="$with_manpage_renames"
13714 MANPAGE_RENAMES=$withval
13716 MANPAGE_RENAMES=yes
13719 case ".$MANPAGE_RENAMES" in
13723 # Debian 'man' program?
13724 if test -f /etc/debian_version ; then
13725 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
13732 if test "$MANPAGE_RENAMES" != no ; then
13733 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
13734 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
13735 elif test ! -f $MANPAGE_RENAMES ; then
13736 { { echo "$as_me:13736: error: not a filename: $MANPAGE_RENAMES" >&5
13737 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
13738 { (exit 1); exit 1; }; }
13741 test ! -d man && mkdir man
13743 # Construct a sed-script to perform renaming within man-pages
13744 if test -n "$MANPAGE_RENAMES" ; then
13745 test ! -d man && mkdir man
13746 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
13750 echo "$as_me:13750: result: $MANPAGE_RENAMES" >&5
13751 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
13753 echo "$as_me:13753: checking if manpage aliases will be installed" >&5
13754 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
13756 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
13757 if test "${with_manpage_aliases+set}" = set; then
13758 withval="$with_manpage_aliases"
13759 MANPAGE_ALIASES=$withval
13761 MANPAGE_ALIASES=yes
13764 echo "$as_me:13764: result: $MANPAGE_ALIASES" >&5
13765 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
13769 cf_use_symlinks=yes
13776 MANPAGE_SYMLINKS=no
13777 if test "$MANPAGE_ALIASES" = yes ; then
13778 echo "$as_me:13778: checking if manpage symlinks should be used" >&5
13779 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
13781 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
13782 if test "${with_manpage_symlinks+set}" = set; then
13783 withval="$with_manpage_symlinks"
13784 MANPAGE_SYMLINKS=$withval
13786 MANPAGE_SYMLINKS=$cf_use_symlinks
13789 if test "$$cf_use_symlinks" = no; then
13790 if test "$MANPAGE_SYMLINKS" = yes ; then
13791 { echo "$as_me:13791: WARNING: cannot make symlinks" >&5
13792 echo "$as_me: WARNING: cannot make symlinks" >&2;}
13793 MANPAGE_SYMLINKS=no
13797 echo "$as_me:13797: result: $MANPAGE_SYMLINKS" >&5
13798 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
13801 echo "$as_me:13801: checking for manpage tbl" >&5
13802 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
13804 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
13805 if test "${with_manpage_tbl+set}" = set; then
13806 withval="$with_manpage_tbl"
13807 MANPAGE_TBL=$withval
13812 echo "$as_me:13812: result: $MANPAGE_TBL" >&5
13813 echo "${ECHO_T}$MANPAGE_TBL" >&6
13815 if test "$prefix" = "NONE" ; then
13816 cf_prefix="$ac_default_prefix"
13818 cf_prefix="$prefix"
13821 case "$MANPAGE_FORMAT" in
13836 test ! -d man && mkdir man
13840 case "$MANPAGE_FORMAT" in
13843 cf_compress=compress
13851 cf_edit_man=./edit_man.sh
13852 cf_man_alias=`pwd`/man_alias.sed
13854 cat >$cf_edit_man <<CF_EOF
13856 # this script is generated by the configure-script CF_MAN_PAGES macro.
13858 prefix="$cf_prefix"
13859 datarootdir="$datarootdir"
13862 NCURSES_MAJOR="$NCURSES_MAJOR"
13863 NCURSES_MINOR="$NCURSES_MINOR"
13864 NCURSES_PATCH="$NCURSES_PATCH"
13866 NCURSES_OSPEED="$NCURSES_OSPEED"
13867 TERMINFO="$TERMINFO"
13870 INSTALL_DATA="$INSTALL_DATA"
13872 transform="$program_transform_name"
13874 TMP=\${TMPDIR:=/tmp}/man\$\$
13875 trap "rm -f \$TMP" 0 1 2 3 15
13887 top_srcdir=\$srcdir/..
13890 if test "\$form" = normal ; then
13891 if test "$cf_format" = yes ; then
13892 if test "$cf_inboth" = no ; then
13893 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
13897 cf_subdir=\$mandir/man
13898 cf_tables=$MANPAGE_TBL
13900 cf_subdir=\$mandir/cat
13904 # process the list of source-files
13909 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
13910 if test \$verb = installing ; then
13911 if test ! -d \$cf_subdir\${section} ; then
13912 mkdir -p \$cf_subdir\$section
13916 # replace variables in man page
13917 if test ! -f $cf_man_alias ; then
13918 cat >>$cf_man_alias <<-CF_EOF2
13919 s,@DATADIR@,\$datadir,g
13920 s,@TERMINFO@,\${TERMINFO:="no default value"},g
13921 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
13922 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
13923 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
13924 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
13925 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
13928 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
13930 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13931 cf_name=`echo $cf_name|sed "$program_transform_name"`
13932 cat >>$cf_edit_man <<-CF_EOF
13933 s,@$cf_NAME@,$cf_name,g
13937 cat >>$cf_edit_man <<CF_EOF
13939 echo "...made $cf_man_alias"
13943 cf_source=\`basename \$i\`
13944 inalias=\$cf_source
13945 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
13946 if test ! -f \$inalias ; then
13947 echo .. skipped \$cf_source
13952 if test "$MANPAGE_ALIASES" != no ; then
13953 cat >>$cf_edit_man <<CF_EOF
13955 test $with_curses_h = yes && nCurses=ncurses.3x
13956 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
13960 if test "$MANPAGE_RENAMES" = no ; then
13961 cat >>$cf_edit_man <<CF_EOF
13962 # perform program transformations for section 1 man pages
13963 if test \$section = 1 ; then
13964 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
13966 cf_target=\$cf_subdir\${section}/\$cf_source
13970 cat >>$cf_edit_man <<CF_EOF
13971 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
13972 if test -z "\$cf_target" ; then
13973 echo '? missing rename for '\$cf_source
13974 cf_target="\$cf_source"
13976 cf_target="\$cf_subdir\${section}/\${cf_target}"
13981 cat >>$cf_edit_man <<CF_EOF
13982 sed -f $cf_man_alias \\
13985 if test -f $MANPAGE_RENAMES ; then
13986 cat >>$cf_edit_man <<CF_EOF
13987 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
13990 cat >>$cf_edit_man <<CF_EOF
13995 cat >>$cf_edit_man <<CF_EOF
13996 if test \$cf_tables = yes ; then
13997 tbl \$TMP >\$TMP.out
14002 if test $with_overwrite != yes ; then
14003 cat >>$cf_edit_man <<CF_EOF
14004 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14009 if test $with_curses_h != yes ; then
14010 cat >>$cf_edit_man <<CF_EOF
14011 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14016 cat >>$cf_edit_man <<CF_EOF
14017 if test \$form = format ; then
14018 nroff -man \$TMP >\$TMP.out
14023 if test -n "$cf_compress" ; then
14024 cat >>$cf_edit_man <<CF_EOF
14025 if test \$verb = installing ; then
14026 if ( $cf_compress -f \$TMP )
14028 mv \$TMP.$cf_so_strip \$TMP
14031 cf_target="\$cf_target.$cf_so_strip"
14035 case "$MANPAGE_FORMAT" in
14037 cat >>$cf_edit_man <<CF_EOF
14038 if test \$form = format ; then
14039 # BSDI installs only .0 suffixes in the cat directories
14040 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
14046 cat >>$cf_edit_man <<CF_EOF
14047 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
14048 if test \$verb = installing ; then
14049 echo \$verb \$cf_target
14050 \$INSTALL_DATA \$TMP \$cf_target
14051 test -d \$cf_subdir\${section} &&
14052 test -n "\$aliases" && (
14053 cd \$cf_subdir\${section} && (
14054 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
14055 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
14056 cf_target=\`basename \$cf_target\`
14057 for cf_alias in \$aliases
14059 if test \$section = 1 ; then
14060 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14063 if test "$MANPAGE_SYMLINKS" = yes ; then
14064 if test -f \$cf_alias\${suffix} ; then
14065 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
14070 echo .. \$verb alias \$cf_alias\${suffix}
14074 cat >>$cf_edit_man <<CF_EOF
14075 $LN_S \$cf_target \$cf_alias\${suffix}
14079 cat >>$cf_edit_man <<CF_EOF
14080 rm -f \$cf_alias\${suffix}
14081 $LN_S \$cf_target \$cf_alias\${suffix}
14085 cat >>$cf_edit_man <<CF_EOF
14086 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14087 echo ".so \$cf_source" >\$TMP
14089 if test -n "$cf_compress" ; then
14090 cat >>$cf_edit_man <<CF_EOF
14091 if test -n "$cf_so_strip" ; then
14092 $cf_compress -f \$TMP
14093 mv \$TMP.$cf_so_strip \$TMP
14097 cat >>$cf_edit_man <<CF_EOF
14098 echo .. \$verb alias \$cf_alias\${suffix}
14099 rm -f \$cf_alias\${suffix}
14100 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
14105 elif test \$verb = removing ; then
14106 test -f \$cf_target && (
14107 echo \$verb \$cf_target
14110 test -d \$cf_subdir\${section} &&
14111 test -n "\$aliases" && (
14112 cd \$cf_subdir\${section} && (
14113 for cf_alias in \$aliases
14115 if test \$section = 1 ; then
14116 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14119 echo .. \$verb alias \$cf_alias\${suffix}
14120 rm -f \$cf_alias\${suffix}
14132 if test $cf_inboth = yes ; then
14133 if test \$form != format ; then
14134 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14140 chmod 755 $cf_edit_man
14142 ###############################################################################
14144 ### Note that some functions (such as const) are normally disabled anyway.
14145 echo "$as_me:14145: checking if you want to build with function extensions" >&5
14146 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14148 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14149 if test "${enable_ext_funcs+set}" = set; then
14150 enableval="$enable_ext_funcs"
14151 with_ext_funcs=$enableval
14155 echo "$as_me:14155: result: $with_ext_funcs" >&5
14156 echo "${ECHO_T}$with_ext_funcs" >&6
14157 if test "x$with_ext_funcs" = xyes ; then
14158 NCURSES_EXT_FUNCS=1
14160 cat >>confdefs.h <<\EOF
14161 #define NCURSES_EXT_FUNCS 1
14164 cat >>confdefs.h <<\EOF
14165 #define HAVE_ASSUME_DEFAULT_COLORS 1
14168 cat >>confdefs.h <<\EOF
14169 #define HAVE_CURSES_VERSION 1
14172 cat >>confdefs.h <<\EOF
14173 #define HAVE_HAS_KEY 1
14176 cat >>confdefs.h <<\EOF
14177 #define HAVE_RESIZETERM 1
14180 cat >>confdefs.h <<\EOF
14181 #define HAVE_RESIZE_TERM 1
14184 cat >>confdefs.h <<\EOF
14185 #define HAVE_TERM_ENTRY_H 1
14188 cat >>confdefs.h <<\EOF
14189 #define HAVE_USE_DEFAULT_COLORS 1
14192 cat >>confdefs.h <<\EOF
14193 #define HAVE_USE_EXTENDED_NAMES 1
14196 cat >>confdefs.h <<\EOF
14197 #define HAVE_USE_SCREEN 1
14200 cat >>confdefs.h <<\EOF
14201 #define HAVE_USE_WINDOW 1
14204 cat >>confdefs.h <<\EOF
14205 #define HAVE_WRESIZE 1
14208 GENERATED_EXT_FUNCS=generated
14209 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
14211 NCURSES_EXT_FUNCS=0
14212 GENERATED_EXT_FUNCS=
14215 echo "$as_me:14215: checking if you want to build with SCREEN extensions" >&5
14216 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
14218 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
14219 if test "${enable_sp_funcs+set}" = set; then
14220 enableval="$enable_sp_funcs"
14221 with_sp_funcs=$enableval
14223 with_sp_funcs=$cf_dft_ext_spfuncs
14225 echo "$as_me:14225: result: $with_sp_funcs" >&5
14226 echo "${ECHO_T}$with_sp_funcs" >&6
14227 if test "x$with_sp_funcs" = xyes ; then
14230 cat >>confdefs.h <<\EOF
14231 #define NCURSES_SP_FUNCS 1
14234 cat >>confdefs.h <<\EOF
14235 #define HAVE_TPUTS_SP 1
14238 GENERATED_SP_FUNCS=generated
14241 GENERATED_SP_FUNCS=
14244 echo "$as_me:14244: checking if you want to build with terminal-driver" >&5
14245 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
14247 # Check whether --enable-term-driver or --disable-term-driver was given.
14248 if test "${enable_term_driver+set}" = set; then
14249 enableval="$enable_term_driver"
14250 with_term_driver=$enableval
14252 with_term_driver=no
14254 echo "$as_me:14254: result: $with_term_driver" >&5
14255 echo "${ECHO_T}$with_term_driver" >&6
14256 if test "x$with_term_driver" = xyes ; then
14258 cat >>confdefs.h <<\EOF
14259 #define USE_TERM_DRIVER 1
14262 if test "x$with_termlib" != xno ; then
14263 { { echo "$as_me:14263: error: The term-driver option conflicts with the termlib option" >&5
14264 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
14265 { (exit 1); exit 1; }; }
14267 if test "x$with_sp_funcs" != xyes ; then
14268 { { echo "$as_me:14268: error: The term-driver option relies upon sp-funcs" >&5
14269 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
14270 { (exit 1); exit 1; }; }
14274 ### use option --enable-const to turn on use of const beyond that in XSI.
14275 echo "$as_me:14275: checking for extended use of const keyword" >&5
14276 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
14278 # Check whether --enable-const or --disable-const was given.
14279 if test "${enable_const+set}" = set; then
14280 enableval="$enable_const"
14281 with_ext_const=$enableval
14283 with_ext_const=$cf_dft_ext_const
14285 echo "$as_me:14285: result: $with_ext_const" >&5
14286 echo "${ECHO_T}$with_ext_const" >&6
14287 NCURSES_CONST='/*nothing*/'
14288 if test "x$with_ext_const" = xyes ; then
14289 NCURSES_CONST=const
14292 ### use option --enable-ext-colors to turn on use of colors beyond 16.
14293 echo "$as_me:14293: checking if you want to use extended colors" >&5
14294 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
14296 # Check whether --enable-ext-colors or --disable-ext-colors was given.
14297 if test "${enable_ext_colors+set}" = set; then
14298 enableval="$enable_ext_colors"
14299 with_ext_colors=$enableval
14301 with_ext_colors=$cf_dft_ext_colors
14303 echo "$as_me:14303: result: $with_ext_colors" >&5
14304 echo "${ECHO_T}$with_ext_colors" >&6
14305 NCURSES_EXT_COLORS=0
14306 if test "x$with_ext_colors" = xyes ; then
14307 if test "x$with_widec" != xyes ; then
14308 { echo "$as_me:14308: WARNING: This option applies only to wide-character library" >&5
14309 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
14311 # cannot be ABI 5 since it changes sizeof(cchar_t)
14313 if test "${with_abi_version+set}" != set; then
14314 case $cf_cv_rel_version in
14316 cf_cv_rel_version=6.0
14317 cf_cv_abi_version=6
14318 { echo "$as_me:14318: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14319 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14324 NCURSES_EXT_COLORS=1
14326 cat >>confdefs.h <<\EOF
14327 #define NCURSES_EXT_COLORS 1
14330 cat >>confdefs.h <<\EOF
14331 #define HAVE_ALLOC_PAIR 1
14334 cat >>confdefs.h <<\EOF
14335 #define HAVE_INIT_EXTENDED_COLOR 1
14338 cat >>confdefs.h <<\EOF
14339 #define HAVE_RESET_COLOR_PAIRS 1
14345 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14346 echo "$as_me:14346: checking if you want to use extended mouse encoding" >&5
14347 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14349 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14350 if test "${enable_ext_mouse+set}" = set; then
14351 enableval="$enable_ext_mouse"
14352 with_ext_mouse=$enableval
14354 with_ext_mouse=$cf_dft_ext_mouse
14356 echo "$as_me:14356: result: $with_ext_mouse" >&5
14357 echo "${ECHO_T}$with_ext_mouse" >&6
14358 NCURSES_MOUSE_VERSION=1
14359 if test "x$with_ext_mouse" = xyes ; then
14360 NCURSES_MOUSE_VERSION=2
14362 if test "${with_abi_version+set}" != set; then
14363 case $cf_cv_rel_version in
14365 cf_cv_rel_version=6.0
14366 cf_cv_abi_version=6
14367 { echo "$as_me:14367: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14368 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14375 ### use option --enable-ext-putwin to turn on extended screendumps
14376 echo "$as_me:14376: checking if you want to use extended putwin/screendump" >&5
14377 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
14379 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
14380 if test "${enable_ext_putwin+set}" = set; then
14381 enableval="$enable_ext_putwin"
14382 with_ext_putwin=$enableval
14384 with_ext_putwin=$cf_dft_ext_putwin
14386 echo "$as_me:14386: result: $with_ext_putwin" >&5
14387 echo "${ECHO_T}$with_ext_putwin" >&6
14388 if test "x$with_ext_putwin" = xyes ; then
14390 cat >>confdefs.h <<\EOF
14391 #define NCURSES_EXT_PUTWIN 1
14396 echo "$as_me:14396: checking if you want \$NCURSES_NO_PADDING code" >&5
14397 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
14399 # Check whether --enable-no-padding or --disable-no-padding was given.
14400 if test "${enable_no_padding+set}" = set; then
14401 enableval="$enable_no_padding"
14402 with_no_padding=$enableval
14404 with_no_padding=$with_ext_funcs
14406 echo "$as_me:14406: result: $with_no_padding" >&5
14407 echo "${ECHO_T}$with_no_padding" >&6
14408 test "x$with_no_padding" = xyes &&
14409 cat >>confdefs.h <<\EOF
14410 #define NCURSES_NO_PADDING 1
14413 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
14414 echo "$as_me:14414: checking if you want SIGWINCH handler" >&5
14415 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
14417 # Check whether --enable-sigwinch or --disable-sigwinch was given.
14418 if test "${enable_sigwinch+set}" = set; then
14419 enableval="$enable_sigwinch"
14420 with_sigwinch=$enableval
14422 with_sigwinch=$with_ext_funcs
14424 echo "$as_me:14424: result: $with_sigwinch" >&5
14425 echo "${ECHO_T}$with_sigwinch" >&6
14426 test "x$with_sigwinch" = xyes &&
14427 cat >>confdefs.h <<\EOF
14428 #define USE_SIGWINCH 1
14431 ### use option --enable-tcap-names to allow user to define new capabilities
14432 echo "$as_me:14432: checking if you want user-definable terminal capabilities like termcap" >&5
14433 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
14435 # Check whether --enable-tcap-names or --disable-tcap-names was given.
14436 if test "${enable_tcap_names+set}" = set; then
14437 enableval="$enable_tcap_names"
14438 with_tcap_names=$enableval
14440 with_tcap_names=$with_ext_funcs
14442 echo "$as_me:14442: result: $with_tcap_names" >&5
14443 echo "${ECHO_T}$with_tcap_names" >&6
14445 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
14447 ##############################################################################
14449 echo "$as_me:14449: checking if you want to link with the pthread library" >&5
14450 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
14452 # Check whether --with-pthread or --without-pthread was given.
14453 if test "${with_pthread+set}" = set; then
14454 withval="$with_pthread"
14455 with_pthread=$withval
14459 echo "$as_me:14459: result: $with_pthread" >&5
14460 echo "${ECHO_T}$with_pthread" >&6
14462 if test "$with_pthread" != no ; then
14463 echo "$as_me:14463: checking for pthread.h" >&5
14464 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14465 if test "${ac_cv_header_pthread_h+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 cat >conftest.$ac_ext <<_ACEOF
14469 #line 14469 "configure"
14470 #include "confdefs.h"
14471 #include <pthread.h>
14473 if { (eval echo "$as_me:14473: \"$ac_cpp conftest.$ac_ext\"") >&5
14474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14476 egrep -v '^ *\+' conftest.er1 >conftest.err
14478 cat conftest.err >&5
14479 echo "$as_me:14479: \$? = $ac_status" >&5
14480 (exit $ac_status); } >/dev/null; then
14481 if test -s conftest.err; then
14482 ac_cpp_err=$ac_c_preproc_warn_flag
14489 if test -z "$ac_cpp_err"; then
14490 ac_cv_header_pthread_h=yes
14492 echo "$as_me: failed program was:" >&5
14493 cat conftest.$ac_ext >&5
14494 ac_cv_header_pthread_h=no
14496 rm -f conftest.err conftest.$ac_ext
14498 echo "$as_me:14498: result: $ac_cv_header_pthread_h" >&5
14499 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14500 if test $ac_cv_header_pthread_h = yes; then
14502 cat >>confdefs.h <<\EOF
14503 #define HAVE_PTHREADS_H 1
14506 for cf_lib_pthread in pthread c_r
14508 echo "$as_me:14508: checking if we can link with the $cf_lib_pthread library" >&5
14509 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
14510 cf_save_LIBS="$LIBS"
14512 cf_add_libs="-l$cf_lib_pthread"
14513 # Filter out duplicates - this happens with badly-designed ".pc" files...
14514 for cf_add_1lib in $LIBS
14516 for cf_add_2lib in $cf_add_libs
14518 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14524 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14526 LIBS="$cf_add_libs"
14528 cat >conftest.$ac_ext <<_ACEOF
14529 #line 14529 "configure"
14530 #include "confdefs.h"
14532 #include <pthread.h>
14538 int rc = pthread_create(0,0,0,0);
14539 int r2 = pthread_mutexattr_settype(0, 0);
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (eval echo "$as_me:14546: \"$ac_link\"") >&5
14547 (eval $ac_link) 2>&5
14549 echo "$as_me:14549: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try='test -s conftest$ac_exeext'
14552 { (eval echo "$as_me:14552: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:14555: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14559 echo "$as_me: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14564 LIBS="$cf_save_LIBS"
14565 echo "$as_me:14565: result: $with_pthread" >&5
14566 echo "${ECHO_T}$with_pthread" >&6
14567 test "$with_pthread" = yes && break
14570 if test "$with_pthread" = yes ; then
14572 cf_add_libs="-l$cf_lib_pthread"
14573 # Filter out duplicates - this happens with badly-designed ".pc" files...
14574 for cf_add_1lib in $LIBS
14576 for cf_add_2lib in $cf_add_libs
14578 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14584 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14586 LIBS="$cf_add_libs"
14588 cat >>confdefs.h <<\EOF
14589 #define HAVE_LIBPTHREADS 1
14593 { { echo "$as_me:14593: error: Cannot link with pthread library" >&5
14594 echo "$as_me: error: Cannot link with pthread library" >&2;}
14595 { (exit 1); exit 1; }; }
14602 if test "x$with_pthread" != xno; then
14603 echo "$as_me:14603: checking for pthread_kill" >&5
14604 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
14605 if test "${ac_cv_func_pthread_kill+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 cat >conftest.$ac_ext <<_ACEOF
14609 #line 14609 "configure"
14610 #include "confdefs.h"
14611 #define pthread_kill autoconf_temporary
14612 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14613 #undef pthread_kill
14619 /* We use char because int might match the return type of a gcc2
14620 builtin and then its argument prototype would still apply. */
14621 char pthread_kill (void);
14627 /* The GNU C library defines stubs for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
14631 #error found stub for pthread_kill
14634 return pthread_kill ();
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (eval echo "$as_me:14640: \"$ac_link\"") >&5
14641 (eval $ac_link) 2>&5
14643 echo "$as_me:14643: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -s conftest$ac_exeext'
14646 { (eval echo "$as_me:14646: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_cv_func_pthread_kill=yes
14653 echo "$as_me: failed program was:" >&5
14654 cat conftest.$ac_ext >&5
14655 ac_cv_func_pthread_kill=no
14657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14659 echo "$as_me:14659: result: $ac_cv_func_pthread_kill" >&5
14660 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
14661 if test $ac_cv_func_pthread_kill = yes; then
14663 echo "$as_me:14663: checking if you want to allow EINTR in wgetch with pthreads" >&5
14664 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
14666 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
14667 if test "${enable_pthreads_eintr+set}" = set; then
14668 enableval="$enable_pthreads_eintr"
14669 use_pthreads_eintr=$enableval
14671 use_pthreads_eintr=no
14673 echo "$as_me:14673: result: $use_pthreads_eintr" >&5
14674 echo "${ECHO_T}$use_pthreads_eintr" >&6
14675 if test "x$use_pthreads_eintr" = xyes ; then
14677 cat >>confdefs.h <<\EOF
14678 #define USE_PTHREADS_EINTR 1
14684 echo "$as_me:14684: checking if you want to use weak-symbols for pthreads" >&5
14685 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
14687 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
14688 if test "${enable_weak_symbols+set}" = set; then
14689 enableval="$enable_weak_symbols"
14690 use_weak_symbols=$enableval
14692 use_weak_symbols=no
14694 echo "$as_me:14694: result: $use_weak_symbols" >&5
14695 echo "${ECHO_T}$use_weak_symbols" >&6
14696 if test "x$use_weak_symbols" = xyes ; then
14698 echo "$as_me:14698: checking if $CC supports weak symbols" >&5
14699 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
14700 if test "${cf_cv_weak_symbols+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 cat >conftest.$ac_ext <<_ACEOF
14705 #line 14705 "configure"
14706 #include "confdefs.h"
14713 #if defined(__GNUC__)
14714 # if defined __USE_ISOC99
14715 # define _cat_pragma(exp) _Pragma(#exp)
14716 # define _weak_pragma(exp) _cat_pragma(weak name)
14718 # define _weak_pragma(exp)
14720 # define _declare(name) __extension__ extern __typeof__(name) name
14721 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
14724 weak_symbol(fopen);
14730 rm -f conftest.$ac_objext
14731 if { (eval echo "$as_me:14731: \"$ac_compile\"") >&5
14732 (eval $ac_compile) 2>&5
14734 echo "$as_me:14734: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:14737: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:14740: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 cf_cv_weak_symbols=yes
14744 echo "$as_me: failed program was:" >&5
14745 cat conftest.$ac_ext >&5
14746 cf_cv_weak_symbols=no
14748 rm -f conftest.$ac_objext conftest.$ac_ext
14751 echo "$as_me:14751: result: $cf_cv_weak_symbols" >&5
14752 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
14755 cf_cv_weak_symbols=no
14758 if test "x$cf_cv_weak_symbols" = xyes ; then
14760 cat >>confdefs.h <<\EOF
14761 #define USE_WEAK_SYMBOLS 1
14768 if test "x$with_pthread" = "xyes" ; then
14770 cat >>confdefs.h <<\EOF
14771 #define USE_PTHREADS 1
14774 enable_reentrant=yes
14775 if test "x$cf_cv_weak_symbols" = xyes ; then
14778 cf_add_libs="-lpthread"
14779 # Filter out duplicates - this happens with badly-designed ".pc" files...
14780 for cf_add_1lib in $PRIVATE_LIBS
14782 for cf_add_2lib in $cf_add_libs
14784 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14790 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14792 PRIVATE_LIBS="$cf_add_libs"
14797 # Reentrant code has to be opaque; there's little advantage to making ncurses
14798 # opaque outside of that, so there is no --enable-opaque option. We can use
14799 # this option without --with-pthreads, but this will be always set for
14801 echo "$as_me:14801: checking if you want reentrant code" >&5
14802 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
14804 # Check whether --enable-reentrant or --disable-reentrant was given.
14805 if test "${enable_reentrant+set}" = set; then
14806 enableval="$enable_reentrant"
14807 with_reentrant=$enableval
14811 echo "$as_me:14811: result: $with_reentrant" >&5
14812 echo "${ECHO_T}$with_reentrant" >&6
14813 if test "x$with_reentrant" = xyes ; then
14814 cf_cv_enable_reentrant=1
14815 cf_cv_enable_opaque="NCURSES_INTERNALS"
14817 if test "x$cf_cv_weak_symbols" = xyes ; then
14819 # remove pthread library from $LIBS
14820 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
14822 cf_add_libs="-lpthread"
14823 # Filter out duplicates - this happens with badly-designed ".pc" files...
14824 for cf_add_1lib in $TEST_LIBS
14826 for cf_add_2lib in $cf_add_libs
14828 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14834 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14836 TEST_LIBS="$cf_add_libs"
14838 cf_add_libs="-lpthread"
14839 # Filter out duplicates - this happens with badly-designed ".pc" files...
14840 for cf_add_1lib in $TEST_LIBS2
14842 for cf_add_2lib in $cf_add_libs
14844 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14850 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14852 TEST_LIBS2="$cf_add_libs"
14854 cf_add_libs="-lpthread"
14855 # Filter out duplicates - this happens with badly-designed ".pc" files...
14856 for cf_add_1lib in $PRIVATE_LIBS
14858 for cf_add_2lib in $cf_add_libs
14860 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14866 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14868 PRIVATE_LIBS="$cf_add_libs"
14871 # when not using weak symbols but with_reentrant,
14872 # add 't' to the library suffix on all platforms
14873 # except cygwin, where we only do that if ALSO
14874 # compiling with full thread support.
14876 (*cygwin* | *msys*)
14877 if test "$with_pthread" = "yes" ; then
14878 if test "x$disable_lib_suffixes" = "xno" ; then
14879 LIB_SUFFIX="t${LIB_SUFFIX}"
14883 if test "x$disable_lib_suffixes" = "xno" ; then
14884 LIB_SUFFIX="t${LIB_SUFFIX}"
14890 cat >>confdefs.h <<\EOF
14891 #define USE_REENTRANT 1
14894 if test "${with_abi_version+set}" != set; then
14895 case $cf_cv_rel_version in
14897 cf_cv_rel_version=6.0
14898 cf_cv_abi_version=6
14899 { echo "$as_me:14899: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14900 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14906 cf_cv_enable_reentrant=0
14907 cf_cv_enable_opaque="NCURSES_OPAQUE"
14908 NCURSES_SIZE_T=short
14911 echo "$as_me:14911: checking if you want opaque curses-library structures" >&5
14912 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
14914 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
14915 if test "${enable_opaque_curses+set}" = set; then
14916 enableval="$enable_opaque_curses"
14917 test "$enableval" != yes && enableval=no
14918 if test "$enableval" != "no" ; then
14919 enable_opaque_curses=yes
14922 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
14923 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
14929 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
14930 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
14933 echo "$as_me:14933: result: $enable_opaque_curses" >&5
14934 echo "${ECHO_T}$enable_opaque_curses" >&6
14936 test "$cf_cv_enable_reentrant" = 1 && \
14937 test "$enable_opaque_curses" = no && \
14938 { { echo "$as_me:14938: error: reentrant configuration requires opaque library" >&5
14939 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
14940 { (exit 1); exit 1; }; }
14942 echo "$as_me:14942: checking if you want opaque form-library structures" >&5
14943 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
14945 # Check whether --enable-opaque-form or --disable-opaque-form was given.
14946 if test "${enable_opaque_form+set}" = set; then
14947 enableval="$enable_opaque_form"
14948 enable_opaque_form=yes
14950 enable_opaque_form=no
14952 echo "$as_me:14952: result: $enable_opaque_form" >&5
14953 echo "${ECHO_T}$enable_opaque_form" >&6
14955 echo "$as_me:14955: checking if you want opaque menu-library structures" >&5
14956 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
14958 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
14959 if test "${enable_opaque_menu+set}" = set; then
14960 enableval="$enable_opaque_menu"
14961 enable_opaque_menu=yes
14963 enable_opaque_menu=no
14965 echo "$as_me:14965: result: $enable_opaque_menu" >&5
14966 echo "${ECHO_T}$enable_opaque_menu" >&6
14968 echo "$as_me:14968: checking if you want opaque panel-library structures" >&5
14969 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
14971 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
14972 if test "${enable_opaque_panel+set}" = set; then
14973 enableval="$enable_opaque_panel"
14974 enable_opaque_panel=yes
14976 enable_opaque_panel=no
14978 echo "$as_me:14978: result: $enable_opaque_panel" >&5
14979 echo "${ECHO_T}$enable_opaque_panel" >&6
14981 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
14982 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
14983 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
14984 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
14986 ### Allow using a different wrap-prefix
14987 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
14988 echo "$as_me:14988: checking for prefix used to wrap public variables" >&5
14989 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
14991 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
14992 if test "${with_wrap_prefix+set}" = set; then
14993 withval="$with_wrap_prefix"
14994 NCURSES_WRAP_PREFIX=$withval
14996 NCURSES_WRAP_PREFIX=_nc_
14998 echo "$as_me:14998: result: $NCURSES_WRAP_PREFIX" >&5
14999 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15001 NCURSES_WRAP_PREFIX=_nc_
15004 cat >>confdefs.h <<EOF
15005 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15008 ###############################################################################
15009 # These options are relatively safe to experiment with.
15011 echo "$as_me:15011: checking if you want all development code" >&5
15012 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15014 # Check whether --with-develop or --without-develop was given.
15015 if test "${with_develop+set}" = set; then
15016 withval="$with_develop"
15017 with_develop=$withval
15021 echo "$as_me:15021: result: $with_develop" >&5
15022 echo "${ECHO_T}$with_develop" >&6
15024 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15025 echo "$as_me:15025: checking if you want hard-tabs code" >&5
15026 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15028 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15029 if test "${enable_hard_tabs+set}" = set; then
15030 enableval="$enable_hard_tabs"
15033 enable_hard_tabs=$with_develop
15035 echo "$as_me:15035: result: $enable_hard_tabs" >&5
15036 echo "${ECHO_T}$enable_hard_tabs" >&6
15037 test "x$enable_hard_tabs" = xyes &&
15038 cat >>confdefs.h <<\EOF
15039 #define USE_HARD_TABS 1
15042 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15043 echo "$as_me:15043: checking if you want limited support for xmc" >&5
15044 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15046 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15047 if test "${enable_xmc_glitch+set}" = set; then
15048 enableval="$enable_xmc_glitch"
15051 enable_xmc_glitch=$with_develop
15053 echo "$as_me:15053: result: $enable_xmc_glitch" >&5
15054 echo "${ECHO_T}$enable_xmc_glitch" >&6
15055 test "x$enable_xmc_glitch" = xyes &&
15056 cat >>confdefs.h <<\EOF
15057 #define USE_XMC_SUPPORT 1
15060 ###############################################################################
15061 # These are just experimental, probably should not be in a package:
15063 echo "$as_me:15063: checking if you do not want to assume colors are white-on-black" >&5
15064 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15066 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15067 if test "${enable_assumed_color+set}" = set; then
15068 enableval="$enable_assumed_color"
15069 with_assumed_color=$enableval
15071 with_assumed_color=yes
15073 echo "$as_me:15073: result: $with_assumed_color" >&5
15074 echo "${ECHO_T}$with_assumed_color" >&6
15075 test "x$with_assumed_color" = xyes &&
15076 cat >>confdefs.h <<\EOF
15077 #define USE_ASSUMED_COLOR 1
15080 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15081 echo "$as_me:15081: checking if you want hashmap scrolling-optimization code" >&5
15082 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15084 # Check whether --enable-hashmap or --disable-hashmap was given.
15085 if test "${enable_hashmap+set}" = set; then
15086 enableval="$enable_hashmap"
15087 with_hashmap=$enableval
15091 echo "$as_me:15091: result: $with_hashmap" >&5
15092 echo "${ECHO_T}$with_hashmap" >&6
15093 test "x$with_hashmap" = xyes &&
15094 cat >>confdefs.h <<\EOF
15095 #define USE_HASHMAP 1
15098 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15099 echo "$as_me:15099: checking if you want colorfgbg code" >&5
15100 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15102 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15103 if test "${enable_colorfgbg+set}" = set; then
15104 enableval="$enable_colorfgbg"
15105 with_colorfgbg=$enableval
15109 echo "$as_me:15109: result: $with_colorfgbg" >&5
15110 echo "${ECHO_T}$with_colorfgbg" >&6
15111 test "x$with_colorfgbg" = xyes &&
15112 cat >>confdefs.h <<\EOF
15113 #define USE_COLORFGBG 1
15116 ### use option --enable-interop to turn on use of bindings used for interop
15117 echo "$as_me:15117: checking if you want interop bindings" >&5
15118 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
15120 # Check whether --enable-interop or --disable-interop was given.
15121 if test "${enable_interop+set}" = set; then
15122 enableval="$enable_interop"
15123 with_exp_interop=$enableval
15125 with_exp_interop=$cf_dft_interop
15127 echo "$as_me:15127: result: $with_exp_interop" >&5
15128 echo "${ECHO_T}$with_exp_interop" >&6
15130 NCURSES_INTEROP_FUNCS=0
15131 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
15133 echo "$as_me:15133: checking if you want experimental safe-sprintf code" >&5
15134 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
15136 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
15137 if test "${enable_safe_sprintf+set}" = set; then
15138 enableval="$enable_safe_sprintf"
15139 with_safe_sprintf=$enableval
15141 with_safe_sprintf=no
15143 echo "$as_me:15143: result: $with_safe_sprintf" >&5
15144 echo "${ECHO_T}$with_safe_sprintf" >&6
15146 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
15147 # when hashmap is used scroll hints are useless
15148 if test "$with_hashmap" = no ; then
15149 echo "$as_me:15149: checking if you want to experiment without scrolling-hints code" >&5
15150 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
15152 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
15153 if test "${enable_scroll_hints+set}" = set; then
15154 enableval="$enable_scroll_hints"
15155 with_scroll_hints=$enableval
15157 with_scroll_hints=yes
15159 echo "$as_me:15159: result: $with_scroll_hints" >&5
15160 echo "${ECHO_T}$with_scroll_hints" >&6
15161 test "x$with_scroll_hints" = xyes &&
15162 cat >>confdefs.h <<\EOF
15163 #define USE_SCROLL_HINTS 1
15168 echo "$as_me:15168: checking if you want wgetch-events code" >&5
15169 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
15171 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
15172 if test "${enable_wgetch_events+set}" = set; then
15173 enableval="$enable_wgetch_events"
15174 with_wgetch_events=$enableval
15176 with_wgetch_events=no
15178 echo "$as_me:15178: result: $with_wgetch_events" >&5
15179 echo "${ECHO_T}$with_wgetch_events" >&6
15180 test "x$with_wgetch_events" = xyes &&
15181 cat >>confdefs.h <<\EOF
15182 #define NCURSES_WGETCH_EVENTS 1
15185 ###############################################################################
15187 ### use option --disable-echo to suppress full display compiling commands
15189 echo "$as_me:15189: checking if you want to see long compiling messages" >&5
15190 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
15192 # Check whether --enable-echo or --disable-echo was given.
15193 if test "${enable_echo+set}" = set; then
15194 enableval="$enable_echo"
15195 test "$enableval" != no && enableval=yes
15196 if test "$enableval" != "yes" ; then
15199 ECHO_LD='@echo linking $@;'
15200 RULE_CC='@echo compiling $<'
15201 SHOW_CC='@echo compiling $@'
15223 echo "$as_me:15223: result: $enableval" >&5
15224 echo "${ECHO_T}$enableval" >&6
15226 if test "x$enable_echo" = xyes; then
15229 ECHO_LINK='@ echo linking $@ ... ;'
15230 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
15231 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
15234 # --disable-stripping is used for debugging
15236 echo "$as_me:15236: checking if you want to install stripped executables" >&5
15237 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
15239 # Check whether --enable-stripping or --disable-stripping was given.
15240 if test "${enable_stripping+set}" = set; then
15241 enableval="$enable_stripping"
15242 test "$enableval" != no && enableval=yes
15243 if test "$enableval" != "yes" ; then
15253 echo "$as_me:15253: result: $with_stripping" >&5
15254 echo "${ECHO_T}$with_stripping" >&6
15256 if test "$with_stripping" = yes
15263 : ${INSTALL:=install}
15264 echo "$as_me:15264: checking if install accepts -p option" >&5
15265 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
15266 if test "${cf_cv_install_p+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 if $INSTALL -p conftest.in conftest.out 2>/dev/null
15276 if test -f conftest.out/conftest.in
15278 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
15279 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
15280 if test -s conftest.err
15284 cf_cv_install_p=yes
15295 echo "$as_me:15295: result: $cf_cv_install_p" >&5
15296 echo "${ECHO_T}$cf_cv_install_p" >&6
15298 echo "$as_me:15298: checking if install needs to be told about ownership" >&5
15299 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
15300 case `$ac_config_guess` in
15309 echo "$as_me:15309: result: $with_install_o" >&5
15310 echo "${ECHO_T}$with_install_o" >&6
15311 if test "x$with_install_o" = xyes
15313 INSTALL_OPT_O=`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`
15318 # If we're avoiding relinking of shared libraries during install, that is to
15319 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
15320 # the install program has "-p" (for preserving timestamps).
15321 cf_cv_do_reranlib=yes
15322 if test "x$cf_cv_install_p" = xyes
15324 if test "x$cf_cv_do_relink" != xyes
15326 cf_cv_do_reranlib=no
15328 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
15332 ### use option --enable-warnings to turn on all gcc warnings
15333 echo "$as_me:15333: checking if you want to see compiler warnings" >&5
15334 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
15336 # Check whether --enable-warnings or --disable-warnings was given.
15337 if test "${enable_warnings+set}" = set; then
15338 enableval="$enable_warnings"
15339 with_warnings=$enableval
15341 echo "$as_me:15341: result: $with_warnings" >&5
15342 echo "${ECHO_T}$with_warnings" >&6
15344 if test "x$with_warnings" = "xyes"; then
15346 ADAFLAGS="$ADAFLAGS -gnatg"
15350 if test "$GCC" = yes ; then
15353 echo "$as_me:15353: checking if this is really Intel C compiler" >&5
15354 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
15355 cf_save_CFLAGS="$CFLAGS"
15356 CFLAGS="$CFLAGS -no-gcc"
15357 cat >conftest.$ac_ext <<_ACEOF
15358 #line 15358 "configure"
15359 #include "confdefs.h"
15365 #ifdef __INTEL_COMPILER
15374 rm -f conftest.$ac_objext
15375 if { (eval echo "$as_me:15375: \"$ac_compile\"") >&5
15376 (eval $ac_compile) 2>&5
15378 echo "$as_me:15378: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -s conftest.$ac_objext'
15381 { (eval echo "$as_me:15381: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:15384: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15387 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
15390 echo "$as_me: failed program was:" >&5
15391 cat conftest.$ac_ext >&5
15393 rm -f conftest.$ac_objext conftest.$ac_ext
15394 CFLAGS="$cf_save_CFLAGS"
15395 echo "$as_me:15395: result: $INTEL_COMPILER" >&5
15396 echo "${ECHO_T}$INTEL_COMPILER" >&6
15403 if test "$GCC" = yes ; then
15404 echo "$as_me:15404: checking if this is really Clang C compiler" >&5
15405 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
15406 cf_save_CFLAGS="$CFLAGS"
15407 CFLAGS="$CFLAGS -Qunused-arguments"
15408 cat >conftest.$ac_ext <<_ACEOF
15409 #line 15409 "configure"
15410 #include "confdefs.h"
15425 rm -f conftest.$ac_objext
15426 if { (eval echo "$as_me:15426: \"$ac_compile\"") >&5
15427 (eval $ac_compile) 2>&5
15429 echo "$as_me:15429: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (eval echo "$as_me:15432: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15435 echo "$as_me:15435: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15438 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15441 echo "$as_me: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15444 rm -f conftest.$ac_objext conftest.$ac_ext
15445 CFLAGS="$cf_save_CFLAGS"
15446 echo "$as_me:15446: result: $CLANG_COMPILER" >&5
15447 echo "${ECHO_T}$CLANG_COMPILER" >&6
15450 if test "x$have_x" = xyes; then
15451 cat >conftest.$ac_ext <<_ACEOF
15452 #line 15452 "configure"
15453 #include "confdefs.h"
15455 #include <stdlib.h>
15456 #include <X11/Intrinsic.h>
15461 String foo = malloc(1)
15466 rm -f conftest.$ac_objext
15467 if { (eval echo "$as_me:15467: \"$ac_compile\"") >&5
15468 (eval $ac_compile) 2>&5
15470 echo "$as_me:15470: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -s conftest.$ac_objext'
15473 { (eval echo "$as_me:15473: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15476 echo "$as_me:15476: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15479 echo "$as_me:15479: checking for X11/Xt const-feature" >&5
15480 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
15481 if test "${cf_cv_const_x_string+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 cat >conftest.$ac_ext <<_ACEOF
15486 #line 15486 "configure"
15487 #include "confdefs.h"
15489 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
15490 #undef XTSTRINGDEFINES /* X11R5 and later */
15491 #include <stdlib.h>
15492 #include <X11/Intrinsic.h>
15497 String foo = malloc(1); *foo = 0
15502 rm -f conftest.$ac_objext
15503 if { (eval echo "$as_me:15503: \"$ac_compile\"") >&5
15504 (eval $ac_compile) 2>&5
15506 echo "$as_me:15506: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (eval echo "$as_me:15509: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:15512: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15515 cf_cv_const_x_string=no
15518 echo "$as_me: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15521 cf_cv_const_x_string=yes
15524 rm -f conftest.$ac_objext conftest.$ac_ext
15527 echo "$as_me:15527: result: $cf_cv_const_x_string" >&5
15528 echo "${ECHO_T}$cf_cv_const_x_string" >&6
15530 case $cf_cv_const_x_string in
15533 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15534 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
15539 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15540 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
15546 echo "$as_me: failed program was:" >&5
15547 cat conftest.$ac_ext >&5
15549 rm -f conftest.$ac_objext conftest.$ac_ext
15551 cat > conftest.$ac_ext <<EOF
15552 #line 15552 "${as_me:-configure}"
15553 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15555 if test "$INTEL_COMPILER" = yes
15557 # The "-wdXXX" options suppress warnings:
15558 # remark #1419: external declaration in primary source file
15559 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15560 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15561 # remark #193: zero used for undefined preprocessing identifier
15562 # remark #593: variable "curs_sb_left_arrow" was set but never used
15563 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15564 # remark #869: parameter "tw" was never referenced
15565 # remark #981: operands are evaluated in unspecified order
15566 # warning #279: controlling expression is constant
15568 { echo "$as_me:15568: checking for $CC warning options..." >&5
15569 echo "$as_me: checking for $CC warning options..." >&6;}
15570 cf_save_CFLAGS="$CFLAGS"
15571 EXTRA_CFLAGS="-Wall"
15583 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15584 if { (eval echo "$as_me:15584: \"$ac_compile\"") >&5
15585 (eval $ac_compile) 2>&5
15587 echo "$as_me:15587: \$? = $ac_status" >&5
15588 (exit $ac_status); }; then
15589 test -n "$verbose" && echo "$as_me:15589: result: ... -$cf_opt" >&5
15590 echo "${ECHO_T}... -$cf_opt" >&6
15591 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15594 CFLAGS="$cf_save_CFLAGS"
15595 elif test "$GCC" = yes
15597 { echo "$as_me:15597: checking for $CC warning options..." >&5
15598 echo "$as_me: checking for $CC warning options..." >&6;}
15599 cf_save_CFLAGS="$CFLAGS"
15602 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
15603 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
15604 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
15605 for cf_opt in W Wall \
15606 Wbad-function-cast \
15609 Wdeclaration-after-statement \
15612 Wmissing-declarations \
15613 Wmissing-prototypes \
15617 Wstrict-prototypes \
15618 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
15620 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15621 if { (eval echo "$as_me:15621: \"$ac_compile\"") >&5
15622 (eval $ac_compile) 2>&5
15624 echo "$as_me:15624: \$? = $ac_status" >&5
15625 (exit $ac_status); }; then
15626 test -n "$verbose" && echo "$as_me:15626: result: ... -$cf_opt" >&5
15627 echo "${ECHO_T}... -$cf_opt" >&6
15630 case $GCC_VERSION in
15632 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15634 echo "${as_me:-configure}:15634: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15640 case $GCC_VERSION in
15642 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15644 echo "${as_me:-configure}:15644: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15650 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15653 CFLAGS="$cf_save_CFLAGS"
15657 if test "x$cf_with_cxx" = xyes ; then
15661 if test "$GCC" = yes ; then
15664 echo "$as_me:15664: checking if this is really Intel C++ compiler" >&5
15665 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
15666 cf_save_CFLAGS="$CXXFLAGS"
15667 CXXFLAGS="$CXXFLAGS -no-gcc"
15668 cat >conftest.$ac_ext <<_ACEOF
15669 #line 15669 "configure"
15670 #include "confdefs.h"
15676 #ifdef __INTEL_COMPILER
15685 rm -f conftest.$ac_objext
15686 if { (eval echo "$as_me:15686: \"$ac_compile\"") >&5
15687 (eval $ac_compile) 2>&5
15689 echo "$as_me:15689: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (eval echo "$as_me:15692: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15695 echo "$as_me:15695: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 INTEL_CPLUSPLUS=yes
15698 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
15701 echo "$as_me: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15704 rm -f conftest.$ac_objext conftest.$ac_ext
15705 CXXFLAGS="$cf_save_CFLAGS"
15706 echo "$as_me:15706: result: $INTEL_CPLUSPLUS" >&5
15707 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
15714 if test "$GCC" = yes ; then
15715 echo "$as_me:15715: checking if this is really Clang C++ compiler" >&5
15716 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
15717 cf_save_CFLAGS="$CXXFLAGS"
15718 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
15719 cat >conftest.$ac_ext <<_ACEOF
15720 #line 15720 "configure"
15721 #include "confdefs.h"
15736 rm -f conftest.$ac_objext
15737 if { (eval echo "$as_me:15737: \"$ac_compile\"") >&5
15738 (eval $ac_compile) 2>&5
15740 echo "$as_me:15740: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:15743: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:15746: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 CLANG_CPLUSPLUS=yes
15749 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15752 echo "$as_me: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15755 rm -f conftest.$ac_objext conftest.$ac_ext
15756 CXXFLAGS="$cf_save_CFLAGS"
15757 echo "$as_me:15757: result: $CLANG_CPLUSPLUS" >&5
15758 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
15762 ac_cpp='$CXXCPP $CPPFLAGS'
15763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15766 ac_main_return=return
15768 cat > conftest.$ac_ext <<EOF
15769 #line 15769 "configure"
15770 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15773 if test "$INTEL_CPLUSPLUS" = yes
15775 # The "-wdXXX" options suppress warnings:
15776 # remark #1419: external declaration in primary source file
15777 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15778 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15779 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15780 # remark #193: zero used for undefined preprocessing identifier
15781 # remark #593: variable "curs_sb_left_arrow" was set but never used
15782 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15783 # remark #869: parameter "tw" was never referenced
15784 # remark #981: operands are evaluated in unspecified order
15785 # warning #269: invalid format string conversion
15787 { echo "$as_me:15787: checking for $CC warning options..." >&5
15788 echo "$as_me: checking for $CC warning options..." >&6;}
15789 cf_save_CXXFLAGS="$CXXFLAGS"
15790 EXTRA_CXXFLAGS="-Wall"
15803 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
15804 if { (eval echo "$as_me:15804: \"$ac_compile\"") >&5
15805 (eval $ac_compile) 2>&5
15807 echo "$as_me:15807: \$? = $ac_status" >&5
15808 (exit $ac_status); }; then
15809 test -n "$verbose" && echo "$as_me:15809: result: ... -$cf_opt" >&5
15810 echo "${ECHO_T}... -$cf_opt" >&6
15811 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
15814 CXXFLAGS="$cf_save_CXXFLAGS"
15816 elif test "$GXX" = yes
15818 { echo "$as_me:15818: checking for $CXX warning options..." >&5
15819 echo "$as_me: checking for $CXX warning options..." >&6;}
15820 cf_save_CXXFLAGS="$CXXFLAGS"
15821 EXTRA_CXXFLAGS="-W -Wall"
15822 cf_gxx_extra_warnings=""
15823 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
15824 case "$GCC_VERSION" in
15828 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
15835 Wignored-qualifiers \
15837 Woverloaded-virtual \
15845 Wundef $cf_gxx_extra_warnings Wno-unused
15847 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
15848 if { (eval echo "$as_me:15848: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>&5
15851 echo "$as_me:15851: \$? = $ac_status" >&5
15852 (exit $ac_status); }; then
15853 test -n "$verbose" && echo "$as_me:15853: result: ... -$cf_opt" >&5
15854 echo "${ECHO_T}... -$cf_opt" >&6
15855 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
15857 test -n "$verbose" && echo "$as_me:15857: result: ... no -$cf_opt" >&5
15858 echo "${ECHO_T}... no -$cf_opt" >&6
15861 CXXFLAGS="$cf_save_CXXFLAGS"
15866 ac_cpp='$CPP $CPPFLAGS'
15867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15870 ac_main_return=return
15875 if test "$GCC" = yes
15877 cat > conftest.i <<EOF
15879 #define GCC_PRINTF 0
15882 #define GCC_SCANF 0
15884 #ifndef GCC_NORETURN
15885 #define GCC_NORETURN /* nothing */
15888 #define GCC_UNUSED /* nothing */
15891 if test "$GCC" = yes
15893 { echo "$as_me:15893: checking for $CC __attribute__ directives..." >&5
15894 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
15895 cat > conftest.$ac_ext <<EOF
15896 #line 15896 "${as_me:-configure}"
15897 #include "confdefs.h"
15898 #include "conftest.h"
15899 #include "conftest.i"
15901 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
15903 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
15906 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
15908 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
15910 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
15911 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
15912 extern void foo(void) GCC_NORETURN;
15913 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
15915 cf_printf_attribute=no
15916 cf_scanf_attribute=no
15917 for cf_attribute in scanf printf unused noreturn
15920 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15922 cf_directive="__attribute__(($cf_attribute))"
15923 echo "checking for $CC $cf_directive" 1>&5
15925 case $cf_attribute in
15927 cf_printf_attribute=yes
15928 cat >conftest.h <<EOF
15929 #define GCC_$cf_ATTRIBUTE 1
15933 cf_scanf_attribute=yes
15934 cat >conftest.h <<EOF
15935 #define GCC_$cf_ATTRIBUTE 1
15939 cat >conftest.h <<EOF
15940 #define GCC_$cf_ATTRIBUTE $cf_directive
15945 if { (eval echo "$as_me:15945: \"$ac_compile\"") >&5
15946 (eval $ac_compile) 2>&5
15948 echo "$as_me:15948: \$? = $ac_status" >&5
15949 (exit $ac_status); }; then
15950 test -n "$verbose" && echo "$as_me:15950: result: ... $cf_attribute" >&5
15951 echo "${ECHO_T}... $cf_attribute" >&6
15952 cat conftest.h >>confdefs.h
15953 case $cf_attribute in
15956 cat >>confdefs.h <<EOF
15957 #define GCC_NORETURN $cf_directive
15962 cf_value='/* nothing */'
15963 if test "$cf_printf_attribute" != no ; then
15964 cf_value='__attribute__((format(printf,fmt,var)))'
15966 cat >>confdefs.h <<\EOF
15967 #define GCC_PRINTF 1
15972 cat >>confdefs.h <<EOF
15973 #define GCC_PRINTFLIKE(fmt,var) $cf_value
15978 cf_value='/* nothing */'
15979 if test "$cf_scanf_attribute" != no ; then
15980 cf_value='__attribute__((format(scanf,fmt,var)))'
15982 cat >>confdefs.h <<\EOF
15983 #define GCC_SCANF 1
15988 cat >>confdefs.h <<EOF
15989 #define GCC_SCANFLIKE(fmt,var) $cf_value
15995 cat >>confdefs.h <<EOF
15996 #define GCC_UNUSED $cf_directive
16004 fgrep define conftest.i >>confdefs.h
16009 echo "$as_me:16009: checking if you want to work around bogus compiler/loader warnings" >&5
16010 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
16012 # Check whether --enable-string-hacks or --disable-string-hacks was given.
16013 if test "${enable_string_hacks+set}" = set; then
16014 enableval="$enable_string_hacks"
16015 with_string_hacks=$enableval
16017 with_string_hacks=no
16019 echo "$as_me:16019: result: $with_string_hacks" >&5
16020 echo "${ECHO_T}$with_string_hacks" >&6
16022 if test "x$with_string_hacks" = "xyes"; then
16024 cat >>confdefs.h <<\EOF
16025 #define USE_STRING_HACKS 1
16028 { echo "$as_me:16028: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
16029 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
16030 echo "$as_me:16030: checking for strlcat" >&5
16031 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
16032 if test "${ac_cv_func_strlcat+set}" = set; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 cat >conftest.$ac_ext <<_ACEOF
16036 #line 16036 "configure"
16037 #include "confdefs.h"
16038 #define strlcat autoconf_temporary
16039 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16046 /* We use char because int might match the return type of a gcc2
16047 builtin and then its argument prototype would still apply. */
16048 char strlcat (void);
16054 /* The GNU C library defines stubs for functions which it implements
16055 to always fail with ENOSYS. Some functions are actually named
16056 something starting with __ and the normal name is an alias. */
16057 #if defined (__stub_strlcat) || defined (__stub___strlcat)
16058 #error found stub for strlcat
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (eval echo "$as_me:16067: \"$ac_link\"") >&5
16068 (eval $ac_link) 2>&5
16070 echo "$as_me:16070: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -s conftest$ac_exeext'
16073 { (eval echo "$as_me:16073: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:16076: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 ac_cv_func_strlcat=yes
16080 echo "$as_me: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16082 ac_cv_func_strlcat=no
16084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16086 echo "$as_me:16086: result: $ac_cv_func_strlcat" >&5
16087 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
16088 if test $ac_cv_func_strlcat = yes; then
16090 cat >>confdefs.h <<\EOF
16091 #define HAVE_STRLCAT 1
16096 echo "$as_me:16096: checking for strlcat in -lbsd" >&5
16097 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
16098 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 ac_check_lib_save_LIBS=$LIBS
16103 cat >conftest.$ac_ext <<_ACEOF
16104 #line 16104 "configure"
16105 #include "confdefs.h"
16107 /* Override any gcc2 internal prototype to avoid an error. */
16111 /* We use char because int might match the return type of a gcc2
16112 builtin and then its argument prototype would still apply. */
16122 rm -f conftest.$ac_objext conftest$ac_exeext
16123 if { (eval echo "$as_me:16123: \"$ac_link\"") >&5
16124 (eval $ac_link) 2>&5
16126 echo "$as_me:16126: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -s conftest$ac_exeext'
16129 { (eval echo "$as_me:16129: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:16132: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ac_cv_lib_bsd_strlcat=yes
16136 echo "$as_me: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 ac_cv_lib_bsd_strlcat=no
16140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16141 LIBS=$ac_check_lib_save_LIBS
16143 echo "$as_me:16143: result: $ac_cv_lib_bsd_strlcat" >&5
16144 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
16145 if test $ac_cv_lib_bsd_strlcat = yes; then
16147 cf_add_libs="-lbsd"
16148 # Filter out duplicates - this happens with badly-designed ".pc" files...
16149 for cf_add_1lib in $LIBS
16151 for cf_add_2lib in $cf_add_libs
16153 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16159 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16161 LIBS="$cf_add_libs"
16163 for ac_header in bsd/string.h
16165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16166 echo "$as_me:16166: checking for $ac_header" >&5
16167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 cat >conftest.$ac_ext <<_ACEOF
16172 #line 16172 "configure"
16173 #include "confdefs.h"
16174 #include <$ac_header>
16176 if { (eval echo "$as_me:16176: \"$ac_cpp conftest.$ac_ext\"") >&5
16177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16179 egrep -v '^ *\+' conftest.er1 >conftest.err
16181 cat conftest.err >&5
16182 echo "$as_me:16182: \$? = $ac_status" >&5
16183 (exit $ac_status); } >/dev/null; then
16184 if test -s conftest.err; then
16185 ac_cpp_err=$ac_c_preproc_warn_flag
16192 if test -z "$ac_cpp_err"; then
16193 eval "$as_ac_Header=yes"
16195 echo "$as_me: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16197 eval "$as_ac_Header=no"
16199 rm -f conftest.err conftest.$ac_ext
16201 echo "$as_me:16201: result: `eval echo '${'$as_ac_Header'}'`" >&5
16202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16204 cat >>confdefs.h <<EOF
16205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16211 cat >>confdefs.h <<\EOF
16212 #define HAVE_STRLCAT 1
16219 for ac_func in strlcpy snprintf
16221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16222 echo "$as_me:16222: checking for $ac_func" >&5
16223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16224 if eval "test \"\${$as_ac_var+set}\" = set"; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16227 cat >conftest.$ac_ext <<_ACEOF
16228 #line 16228 "configure"
16229 #include "confdefs.h"
16230 #define $ac_func autoconf_temporary
16231 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16240 char $ac_func (void);
16246 /* The GNU C library defines stubs for functions which it implements
16247 to always fail with ENOSYS. Some functions are actually named
16248 something starting with __ and the normal name is an alias. */
16249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16250 #error found stub for $ac_func
16253 return $ac_func ();
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (eval echo "$as_me:16259: \"$ac_link\"") >&5
16260 (eval $ac_link) 2>&5
16262 echo "$as_me:16262: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -s conftest$ac_exeext'
16265 { (eval echo "$as_me:16265: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:16268: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 eval "$as_ac_var=yes"
16272 echo "$as_me: failed program was:" >&5
16273 cat conftest.$ac_ext >&5
16274 eval "$as_ac_var=no"
16276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16278 echo "$as_me:16278: result: `eval echo '${'$as_ac_var'}'`" >&5
16279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16280 if test `eval echo '${'$as_ac_var'}'` = yes; then
16281 cat >>confdefs.h <<EOF
16282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16290 ### use option --enable-assertions to turn on generation of assertion code
16291 echo "$as_me:16291: checking if you want to enable runtime assertions" >&5
16292 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
16294 # Check whether --enable-assertions or --disable-assertions was given.
16295 if test "${enable_assertions+set}" = set; then
16296 enableval="$enable_assertions"
16297 with_assertions=$enableval
16301 echo "$as_me:16301: result: $with_assertions" >&5
16302 echo "${ECHO_T}$with_assertions" >&6
16305 if test "$with_assertions" = no
16307 CPPFLAGS="$CPPFLAGS -DNDEBUG"
16310 ADAFLAGS="$ADAFLAGS -gnata"
16315 ### use option --disable-leaks to suppress "permanent" leaks, for testing
16317 echo "$as_me:16317: checking if you want to use dmalloc for testing" >&5
16318 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16320 # Check whether --with-dmalloc or --without-dmalloc was given.
16321 if test "${with_dmalloc+set}" = set; then
16322 withval="$with_dmalloc"
16324 cat >>confdefs.h <<EOF
16325 #define USE_DMALLOC 1
16328 : ${with_cflags:=-g}
16329 : ${with_no_leaks:=yes}
16334 echo "$as_me:16334: result: ${with_dmalloc:-no}" >&5
16335 echo "${ECHO_T}${with_dmalloc:-no}" >&6
16337 case .$with_cflags in
16347 cf_new_extra_cppflags=
16349 for cf_add_cflags in -g
16351 case $cf_fix_cppflags in
16353 case $cf_add_cflags in
16354 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16355 case $cf_add_cflags in
16357 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16359 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16360 && test -z "${cf_tst_cflags}" \
16361 && cf_fix_cppflags=yes
16363 if test $cf_fix_cppflags = yes ; then
16365 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16366 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16369 elif test "${cf_tst_cflags}" = "\"'" ; then
16371 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16372 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16378 case "$CPPFLAGS" in
16382 case $cf_add_cflags in
16384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16386 CPPFLAGS=`echo "$CPPFLAGS" | \
16387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16393 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16394 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16401 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16402 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16409 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16410 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16412 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16414 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16415 && test -z "${cf_tst_cflags}" \
16416 && cf_fix_cppflags=no
16421 if test -n "$cf_new_cflags" ; then
16423 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16424 CFLAGS="${CFLAGS}$cf_new_cflags"
16428 if test -n "$cf_new_cppflags" ; then
16430 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16431 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16435 if test -n "$cf_new_extra_cppflags" ; then
16437 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16438 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16447 if test "$with_dmalloc" = yes ; then
16448 echo "$as_me:16448: checking for dmalloc.h" >&5
16449 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16450 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 cat >conftest.$ac_ext <<_ACEOF
16454 #line 16454 "configure"
16455 #include "confdefs.h"
16456 #include <dmalloc.h>
16458 if { (eval echo "$as_me:16458: \"$ac_cpp conftest.$ac_ext\"") >&5
16459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16461 egrep -v '^ *\+' conftest.er1 >conftest.err
16463 cat conftest.err >&5
16464 echo "$as_me:16464: \$? = $ac_status" >&5
16465 (exit $ac_status); } >/dev/null; then
16466 if test -s conftest.err; then
16467 ac_cpp_err=$ac_c_preproc_warn_flag
16474 if test -z "$ac_cpp_err"; then
16475 ac_cv_header_dmalloc_h=yes
16477 echo "$as_me: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16479 ac_cv_header_dmalloc_h=no
16481 rm -f conftest.err conftest.$ac_ext
16483 echo "$as_me:16483: result: $ac_cv_header_dmalloc_h" >&5
16484 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
16485 if test $ac_cv_header_dmalloc_h = yes; then
16487 echo "$as_me:16487: checking for dmalloc_debug in -ldmalloc" >&5
16488 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
16489 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 ac_check_lib_save_LIBS=$LIBS
16493 LIBS="-ldmalloc $LIBS"
16494 cat >conftest.$ac_ext <<_ACEOF
16495 #line 16495 "configure"
16496 #include "confdefs.h"
16498 /* Override any gcc2 internal prototype to avoid an error. */
16502 /* We use char because int might match the return type of a gcc2
16503 builtin and then its argument prototype would still apply. */
16504 char dmalloc_debug ();
16513 rm -f conftest.$ac_objext conftest$ac_exeext
16514 if { (eval echo "$as_me:16514: \"$ac_link\"") >&5
16515 (eval $ac_link) 2>&5
16517 echo "$as_me:16517: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -s conftest$ac_exeext'
16520 { (eval echo "$as_me:16520: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:16523: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_cv_lib_dmalloc_dmalloc_debug=yes
16527 echo "$as_me: failed program was:" >&5
16528 cat conftest.$ac_ext >&5
16529 ac_cv_lib_dmalloc_dmalloc_debug=no
16531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16532 LIBS=$ac_check_lib_save_LIBS
16534 echo "$as_me:16534: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16535 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16536 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16537 cat >>confdefs.h <<EOF
16538 #define HAVE_LIBDMALLOC 1
16541 LIBS="-ldmalloc $LIBS"
16549 echo "$as_me:16549: checking if you want to use dbmalloc for testing" >&5
16550 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16552 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16553 if test "${with_dbmalloc+set}" = set; then
16554 withval="$with_dbmalloc"
16556 cat >>confdefs.h <<EOF
16557 #define USE_DBMALLOC 1
16560 : ${with_cflags:=-g}
16561 : ${with_no_leaks:=yes}
16566 echo "$as_me:16566: result: ${with_dbmalloc:-no}" >&5
16567 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16569 case .$with_cflags in
16579 cf_new_extra_cppflags=
16581 for cf_add_cflags in -g
16583 case $cf_fix_cppflags in
16585 case $cf_add_cflags in
16586 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16587 case $cf_add_cflags in
16589 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16591 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16592 && test -z "${cf_tst_cflags}" \
16593 && cf_fix_cppflags=yes
16595 if test $cf_fix_cppflags = yes ; then
16597 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16598 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16601 elif test "${cf_tst_cflags}" = "\"'" ; then
16603 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16604 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16610 case "$CPPFLAGS" in
16614 case $cf_add_cflags in
16616 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16618 CPPFLAGS=`echo "$CPPFLAGS" | \
16619 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16620 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16625 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16626 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16633 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16634 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16641 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16642 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16644 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16646 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16647 && test -z "${cf_tst_cflags}" \
16648 && cf_fix_cppflags=no
16653 if test -n "$cf_new_cflags" ; then
16655 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16656 CFLAGS="${CFLAGS}$cf_new_cflags"
16660 if test -n "$cf_new_cppflags" ; then
16662 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16663 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16667 if test -n "$cf_new_extra_cppflags" ; then
16669 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16670 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16679 if test "$with_dbmalloc" = yes ; then
16680 echo "$as_me:16680: checking for dbmalloc.h" >&5
16681 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
16682 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 cat >conftest.$ac_ext <<_ACEOF
16686 #line 16686 "configure"
16687 #include "confdefs.h"
16688 #include <dbmalloc.h>
16690 if { (eval echo "$as_me:16690: \"$ac_cpp conftest.$ac_ext\"") >&5
16691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16693 egrep -v '^ *\+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:16696: \$? = $ac_status" >&5
16697 (exit $ac_status); } >/dev/null; then
16698 if test -s conftest.err; then
16699 ac_cpp_err=$ac_c_preproc_warn_flag
16706 if test -z "$ac_cpp_err"; then
16707 ac_cv_header_dbmalloc_h=yes
16709 echo "$as_me: failed program was:" >&5
16710 cat conftest.$ac_ext >&5
16711 ac_cv_header_dbmalloc_h=no
16713 rm -f conftest.err conftest.$ac_ext
16715 echo "$as_me:16715: result: $ac_cv_header_dbmalloc_h" >&5
16716 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
16717 if test $ac_cv_header_dbmalloc_h = yes; then
16719 echo "$as_me:16719: checking for debug_malloc in -ldbmalloc" >&5
16720 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
16721 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 ac_check_lib_save_LIBS=$LIBS
16725 LIBS="-ldbmalloc $LIBS"
16726 cat >conftest.$ac_ext <<_ACEOF
16727 #line 16727 "configure"
16728 #include "confdefs.h"
16730 /* Override any gcc2 internal prototype to avoid an error. */
16734 /* We use char because int might match the return type of a gcc2
16735 builtin and then its argument prototype would still apply. */
16736 char debug_malloc ();
16745 rm -f conftest.$ac_objext conftest$ac_exeext
16746 if { (eval echo "$as_me:16746: \"$ac_link\"") >&5
16747 (eval $ac_link) 2>&5
16749 echo "$as_me:16749: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:16752: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:16755: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_lib_dbmalloc_debug_malloc=yes
16759 echo "$as_me: failed program was:" >&5
16760 cat conftest.$ac_ext >&5
16761 ac_cv_lib_dbmalloc_debug_malloc=no
16763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16764 LIBS=$ac_check_lib_save_LIBS
16766 echo "$as_me:16766: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
16767 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
16768 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
16769 cat >>confdefs.h <<EOF
16770 #define HAVE_LIBDBMALLOC 1
16773 LIBS="-ldbmalloc $LIBS"
16781 echo "$as_me:16781: checking if you want to use valgrind for testing" >&5
16782 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
16784 # Check whether --with-valgrind or --without-valgrind was given.
16785 if test "${with_valgrind+set}" = set; then
16786 withval="$with_valgrind"
16788 cat >>confdefs.h <<EOF
16789 #define USE_VALGRIND 1
16792 : ${with_cflags:=-g}
16793 : ${with_no_leaks:=yes}
16798 echo "$as_me:16798: result: ${with_valgrind:-no}" >&5
16799 echo "${ECHO_T}${with_valgrind:-no}" >&6
16801 case .$with_cflags in
16811 cf_new_extra_cppflags=
16813 for cf_add_cflags in -g
16815 case $cf_fix_cppflags in
16817 case $cf_add_cflags in
16818 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16819 case $cf_add_cflags in
16821 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16823 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16824 && test -z "${cf_tst_cflags}" \
16825 && cf_fix_cppflags=yes
16827 if test $cf_fix_cppflags = yes ; then
16829 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16830 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16833 elif test "${cf_tst_cflags}" = "\"'" ; then
16835 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16836 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16842 case "$CPPFLAGS" in
16846 case $cf_add_cflags in
16848 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16850 CPPFLAGS=`echo "$CPPFLAGS" | \
16851 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16852 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16857 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16858 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16865 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16866 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16873 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16874 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16876 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16878 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16879 && test -z "${cf_tst_cflags}" \
16880 && cf_fix_cppflags=no
16885 if test -n "$cf_new_cflags" ; then
16887 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16888 CFLAGS="${CFLAGS}$cf_new_cflags"
16892 if test -n "$cf_new_cppflags" ; then
16894 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16895 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16899 if test -n "$cf_new_extra_cppflags" ; then
16901 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16902 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16911 echo "$as_me:16911: checking if you want to perform memory-leak testing" >&5
16912 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
16914 # Check whether --enable-leaks or --disable-leaks was given.
16915 if test "${enable_leaks+set}" = set; then
16916 enableval="$enable_leaks"
16917 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
16919 : ${with_no_leaks:=no}
16921 echo "$as_me:16921: result: $with_no_leaks" >&5
16922 echo "${ECHO_T}$with_no_leaks" >&6
16924 if test "$with_no_leaks" = yes ; then
16926 cat >>confdefs.h <<\EOF
16930 cat >>confdefs.h <<\EOF
16931 #define YY_NO_LEAKS 1
16936 cat >>confdefs.h <<\EOF
16937 #define HAVE_NC_ALLOC_H 1
16940 ### use option --enable-expanded to generate certain macros as functions
16942 # Check whether --enable-expanded or --disable-expanded was given.
16943 if test "${enable_expanded+set}" = set; then
16944 enableval="$enable_expanded"
16945 test "x$enableval" = xyes &&
16946 cat >>confdefs.h <<\EOF
16947 #define NCURSES_EXPANDED 1
16952 ### use option --disable-macros to suppress macros in favor of functions
16954 # Check whether --enable-macros or --disable-macros was given.
16955 if test "${enable_macros+set}" = set; then
16956 enableval="$enable_macros"
16957 test "$enableval" = no &&
16958 cat >>confdefs.h <<\EOF
16959 #define NCURSES_NOMACROS 1
16964 # Normally we only add trace() to the debug-library. Allow this to be
16965 # extended to all models of the ncurses library:
16967 case "$CFLAGS $CPPFLAGS" in
16973 echo "$as_me:16973: checking whether to add trace feature to all models" >&5
16974 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
16976 # Check whether --with-trace or --without-trace was given.
16977 if test "${with_trace+set}" = set; then
16978 withval="$with_trace"
16979 cf_with_trace=$withval
16981 cf_with_trace=$cf_all_traces
16983 echo "$as_me:16983: result: $cf_with_trace" >&5
16984 echo "${ECHO_T}$cf_with_trace" >&6
16986 if test "x$cf_with_trace" = xyes ; then
16993 cf_new_extra_cppflags=
16995 for cf_add_cflags in -DTRACE
16997 case $cf_fix_cppflags in
16999 case $cf_add_cflags in
17000 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17001 case $cf_add_cflags in
17003 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17005 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17006 && test -z "${cf_tst_cflags}" \
17007 && cf_fix_cppflags=yes
17009 if test $cf_fix_cppflags = yes ; then
17011 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17012 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17015 elif test "${cf_tst_cflags}" = "\"'" ; then
17017 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17018 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17024 case "$CPPFLAGS" in
17028 case $cf_add_cflags in
17030 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17032 CPPFLAGS=`echo "$CPPFLAGS" | \
17033 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17034 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17039 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17040 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17047 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17048 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17055 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17056 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17058 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17060 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17061 && test -z "${cf_tst_cflags}" \
17062 && cf_fix_cppflags=no
17067 if test -n "$cf_new_cflags" ; then
17069 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17070 CFLAGS="${CFLAGS}$cf_new_cflags"
17074 if test -n "$cf_new_cppflags" ; then
17076 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17077 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17081 if test -n "$cf_new_extra_cppflags" ; then
17083 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17084 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17088 cat >>confdefs.h <<\EOF
17089 #define HAVE__TRACEF 1
17097 echo "$as_me:17097: checking if we want to use GNAT projects" >&5
17098 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
17100 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
17101 if test "${enable_gnat_projects+set}" = set; then
17102 enableval="$enable_gnat_projects"
17103 test "$enableval" != no && enableval=yes
17104 if test "$enableval" != "yes" ; then
17105 enable_gnat_projects=no
17107 enable_gnat_projects=yes
17111 enable_gnat_projects=yes
17114 echo "$as_me:17114: result: $enable_gnat_projects" >&5
17115 echo "${ECHO_T}$enable_gnat_projects" >&6
17117 ### Checks for libraries.
17118 case $cf_cv_system_name in
17119 (*mingw32*|*mingw64*)
17120 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
17121 LIBS=" -lpsapi $LIBS"
17124 echo "$as_me:17124: checking for gettimeofday" >&5
17125 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
17126 if test "${ac_cv_func_gettimeofday+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 cat >conftest.$ac_ext <<_ACEOF
17130 #line 17130 "configure"
17131 #include "confdefs.h"
17132 #define gettimeofday autoconf_temporary
17133 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17134 #undef gettimeofday
17140 /* We use char because int might match the return type of a gcc2
17141 builtin and then its argument prototype would still apply. */
17142 char gettimeofday (void);
17148 /* The GNU C library defines stubs for functions which it implements
17149 to always fail with ENOSYS. Some functions are actually named
17150 something starting with __ and the normal name is an alias. */
17151 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
17152 #error found stub for gettimeofday
17155 return gettimeofday ();
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (eval echo "$as_me:17161: \"$ac_link\"") >&5
17162 (eval $ac_link) 2>&5
17164 echo "$as_me:17164: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (eval echo "$as_me:17167: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:17170: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_cv_func_gettimeofday=yes
17174 echo "$as_me: failed program was:" >&5
17175 cat conftest.$ac_ext >&5
17176 ac_cv_func_gettimeofday=no
17178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17180 echo "$as_me:17180: result: $ac_cv_func_gettimeofday" >&5
17181 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
17182 if test $ac_cv_func_gettimeofday = yes; then
17184 cat >>confdefs.h <<\EOF
17185 #define HAVE_GETTIMEOFDAY 1
17190 echo "$as_me:17190: checking for gettimeofday in -lbsd" >&5
17191 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
17192 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 ac_check_lib_save_LIBS=$LIBS
17197 cat >conftest.$ac_ext <<_ACEOF
17198 #line 17198 "configure"
17199 #include "confdefs.h"
17201 /* Override any gcc2 internal prototype to avoid an error. */
17205 /* We use char because int might match the return type of a gcc2
17206 builtin and then its argument prototype would still apply. */
17207 char gettimeofday ();
17216 rm -f conftest.$ac_objext conftest$ac_exeext
17217 if { (eval echo "$as_me:17217: \"$ac_link\"") >&5
17218 (eval $ac_link) 2>&5
17220 echo "$as_me:17220: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -s conftest$ac_exeext'
17223 { (eval echo "$as_me:17223: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17226 echo "$as_me:17226: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 ac_cv_lib_bsd_gettimeofday=yes
17230 echo "$as_me: failed program was:" >&5
17231 cat conftest.$ac_ext >&5
17232 ac_cv_lib_bsd_gettimeofday=no
17234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17235 LIBS=$ac_check_lib_save_LIBS
17237 echo "$as_me:17237: result: $ac_cv_lib_bsd_gettimeofday" >&5
17238 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
17239 if test $ac_cv_lib_bsd_gettimeofday = yes; then
17241 cat >>confdefs.h <<\EOF
17242 #define HAVE_GETTIMEOFDAY 1
17245 cf_add_libs="-lbsd"
17246 # Filter out duplicates - this happens with badly-designed ".pc" files...
17247 for cf_add_1lib in $LIBS
17249 for cf_add_2lib in $cf_add_libs
17251 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17257 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17259 LIBS="$cf_add_libs"
17267 echo "$as_me:17267: checking if -lm needed for math functions" >&5
17268 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
17269 if test "${cf_cv_need_libm+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 cat >conftest.$ac_ext <<_ACEOF
17274 #line 17274 "configure"
17275 #include "confdefs.h"
17278 #include <stdlib.h>
17284 double x = rand(); printf("result = %g\n", pow(sin(x),x))
17289 rm -f conftest.$ac_objext conftest$ac_exeext
17290 if { (eval echo "$as_me:17290: \"$ac_link\"") >&5
17291 (eval $ac_link) 2>&5
17293 echo "$as_me:17293: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (eval echo "$as_me:17296: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:17299: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17303 echo "$as_me: failed program was:" >&5
17304 cat conftest.$ac_ext >&5
17305 cf_cv_need_libm=yes
17307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17309 echo "$as_me:17309: result: $cf_cv_need_libm" >&5
17310 echo "${ECHO_T}$cf_cv_need_libm" >&6
17311 if test "$cf_cv_need_libm" = yes
17316 ### Checks for header files.
17317 echo "$as_me:17317: checking for ANSI C header files" >&5
17318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17319 if test "${ac_cv_header_stdc+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 cat >conftest.$ac_ext <<_ACEOF
17323 #line 17323 "configure"
17324 #include "confdefs.h"
17325 #include <stdlib.h>
17326 #include <stdarg.h>
17327 #include <string.h>
17331 if { (eval echo "$as_me:17331: \"$ac_cpp conftest.$ac_ext\"") >&5
17332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17334 egrep -v '^ *\+' conftest.er1 >conftest.err
17336 cat conftest.err >&5
17337 echo "$as_me:17337: \$? = $ac_status" >&5
17338 (exit $ac_status); } >/dev/null; then
17339 if test -s conftest.err; then
17340 ac_cpp_err=$ac_c_preproc_warn_flag
17347 if test -z "$ac_cpp_err"; then
17348 ac_cv_header_stdc=yes
17350 echo "$as_me: failed program was:" >&5
17351 cat conftest.$ac_ext >&5
17352 ac_cv_header_stdc=no
17354 rm -f conftest.err conftest.$ac_ext
17356 if test $ac_cv_header_stdc = yes; then
17357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17358 cat >conftest.$ac_ext <<_ACEOF
17359 #line 17359 "configure"
17360 #include "confdefs.h"
17361 #include <string.h>
17364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17365 egrep "memchr" >/dev/null 2>&1; then
17368 ac_cv_header_stdc=no
17374 if test $ac_cv_header_stdc = yes; then
17375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17376 cat >conftest.$ac_ext <<_ACEOF
17377 #line 17377 "configure"
17378 #include "confdefs.h"
17379 #include <stdlib.h>
17382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17383 egrep "free" >/dev/null 2>&1; then
17386 ac_cv_header_stdc=no
17392 if test $ac_cv_header_stdc = yes; then
17393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17394 if test "$cross_compiling" = yes; then
17397 cat >conftest.$ac_ext <<_ACEOF
17398 #line 17398 "configure"
17399 #include "confdefs.h"
17401 #if ((' ' & 0x0FF) == 0x020)
17402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17405 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
17406 || ('j' <= (c) && (c) <= 'r') \
17407 || ('s' <= (c) && (c) <= 'z'))
17408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17416 for (i = 0; i < 256; i++)
17417 if (XOR (islower (i), ISLOWER (i))
17418 || toupper (i) != TOUPPER (i))
17419 $ac_main_return(2);
17420 $ac_main_return (0);
17423 rm -f conftest$ac_exeext
17424 if { (eval echo "$as_me:17424: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>&5
17427 echo "$as_me:17427: \$? = $ac_status" >&5
17428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17429 { (eval echo "$as_me:17429: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:17432: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17436 echo "$as_me: program exited with status $ac_status" >&5
17437 echo "$as_me: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439 ac_cv_header_stdc=no
17441 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17445 echo "$as_me:17445: result: $ac_cv_header_stdc" >&5
17446 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17447 if test $ac_cv_header_stdc = yes; then
17449 cat >>confdefs.h <<\EOF
17450 #define STDC_HEADERS 1
17455 ac_header_dirent=no
17456 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17457 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17458 echo "$as_me:17458: checking for $ac_hdr that defines DIR" >&5
17459 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 cat >conftest.$ac_ext <<_ACEOF
17464 #line 17464 "configure"
17465 #include "confdefs.h"
17466 #include <sys/types.h>
17478 rm -f conftest.$ac_objext
17479 if { (eval echo "$as_me:17479: \"$ac_compile\"") >&5
17480 (eval $ac_compile) 2>&5
17482 echo "$as_me:17482: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -s conftest.$ac_objext'
17485 { (eval echo "$as_me:17485: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17488 echo "$as_me:17488: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 eval "$as_ac_Header=yes"
17492 echo "$as_me: failed program was:" >&5
17493 cat conftest.$ac_ext >&5
17494 eval "$as_ac_Header=no"
17496 rm -f conftest.$ac_objext conftest.$ac_ext
17498 echo "$as_me:17498: result: `eval echo '${'$as_ac_Header'}'`" >&5
17499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17501 cat >>confdefs.h <<EOF
17502 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17505 ac_header_dirent=$ac_hdr; break
17509 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17510 if test $ac_header_dirent = dirent.h; then
17511 echo "$as_me:17511: checking for opendir in -ldir" >&5
17512 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
17513 if test "${ac_cv_lib_dir_opendir+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 ac_check_lib_save_LIBS=$LIBS
17518 cat >conftest.$ac_ext <<_ACEOF
17519 #line 17519 "configure"
17520 #include "confdefs.h"
17522 /* Override any gcc2 internal prototype to avoid an error. */
17526 /* We use char because int might match the return type of a gcc2
17527 builtin and then its argument prototype would still apply. */
17537 rm -f conftest.$ac_objext conftest$ac_exeext
17538 if { (eval echo "$as_me:17538: \"$ac_link\"") >&5
17539 (eval $ac_link) 2>&5
17541 echo "$as_me:17541: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (eval echo "$as_me:17544: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:17547: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_cv_lib_dir_opendir=yes
17551 echo "$as_me: failed program was:" >&5
17552 cat conftest.$ac_ext >&5
17553 ac_cv_lib_dir_opendir=no
17555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17558 echo "$as_me:17558: result: $ac_cv_lib_dir_opendir" >&5
17559 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
17560 if test $ac_cv_lib_dir_opendir = yes; then
17565 echo "$as_me:17565: checking for opendir in -lx" >&5
17566 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
17567 if test "${ac_cv_lib_x_opendir+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 ac_check_lib_save_LIBS=$LIBS
17572 cat >conftest.$ac_ext <<_ACEOF
17573 #line 17573 "configure"
17574 #include "confdefs.h"
17576 /* Override any gcc2 internal prototype to avoid an error. */
17580 /* We use char because int might match the return type of a gcc2
17581 builtin and then its argument prototype would still apply. */
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (eval echo "$as_me:17592: \"$ac_link\"") >&5
17593 (eval $ac_link) 2>&5
17595 echo "$as_me:17595: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -s conftest$ac_exeext'
17598 { (eval echo "$as_me:17598: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17601 echo "$as_me:17601: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_lib_x_opendir=yes
17605 echo "$as_me: failed program was:" >&5
17606 cat conftest.$ac_ext >&5
17607 ac_cv_lib_x_opendir=no
17609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17610 LIBS=$ac_check_lib_save_LIBS
17612 echo "$as_me:17612: result: $ac_cv_lib_x_opendir" >&5
17613 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
17614 if test $ac_cv_lib_x_opendir = yes; then
17620 echo "$as_me:17620: checking whether time.h and sys/time.h may both be included" >&5
17621 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17622 if test "${ac_cv_header_time+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17626 #line 17626 "configure"
17627 #include "confdefs.h"
17628 #include <sys/types.h>
17629 #include <sys/time.h>
17635 if ((struct tm *) 0)
17641 rm -f conftest.$ac_objext
17642 if { (eval echo "$as_me:17642: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>&5
17645 echo "$as_me:17645: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -s conftest.$ac_objext'
17648 { (eval echo "$as_me:17648: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17651 echo "$as_me:17651: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_cv_header_time=yes
17655 echo "$as_me: failed program was:" >&5
17656 cat conftest.$ac_ext >&5
17657 ac_cv_header_time=no
17659 rm -f conftest.$ac_objext conftest.$ac_ext
17661 echo "$as_me:17661: result: $ac_cv_header_time" >&5
17662 echo "${ECHO_T}$ac_cv_header_time" >&6
17663 if test $ac_cv_header_time = yes; then
17665 cat >>confdefs.h <<\EOF
17666 #define TIME_WITH_SYS_TIME 1
17673 cf_regex_libs="regex re"
17676 cf_regex_libs="gnurx $cf_regex_libs"
17680 echo "$as_me:17680: checking for regcomp" >&5
17681 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
17682 if test "${ac_cv_func_regcomp+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 cat >conftest.$ac_ext <<_ACEOF
17686 #line 17686 "configure"
17687 #include "confdefs.h"
17688 #define regcomp autoconf_temporary
17689 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17696 /* We use char because int might match the return type of a gcc2
17697 builtin and then its argument prototype would still apply. */
17698 char regcomp (void);
17704 /* The GNU C library defines stubs for functions which it implements
17705 to always fail with ENOSYS. Some functions are actually named
17706 something starting with __ and the normal name is an alias. */
17707 #if defined (__stub_regcomp) || defined (__stub___regcomp)
17708 #error found stub for regcomp
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (eval echo "$as_me:17717: \"$ac_link\"") >&5
17718 (eval $ac_link) 2>&5
17720 echo "$as_me:17720: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (eval echo "$as_me:17723: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:17726: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_cv_func_regcomp=yes
17730 echo "$as_me: failed program was:" >&5
17731 cat conftest.$ac_ext >&5
17732 ac_cv_func_regcomp=no
17734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17736 echo "$as_me:17736: result: $ac_cv_func_regcomp" >&5
17737 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
17738 if test $ac_cv_func_regcomp = yes; then
17739 cf_regex_func=regcomp
17742 for cf_regex_lib in $cf_regex_libs
17744 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
17745 echo "$as_me:17745: checking for regcomp in -l$cf_regex_lib" >&5
17746 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
17747 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-l$cf_regex_lib $LIBS"
17752 cat >conftest.$ac_ext <<_ACEOF
17753 #line 17753 "configure"
17754 #include "confdefs.h"
17756 /* Override any gcc2 internal prototype to avoid an error. */
17760 /* We use char because int might match the return type of a gcc2
17761 builtin and then its argument prototype would still apply. */
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (eval echo "$as_me:17772: \"$ac_link\"") >&5
17773 (eval $ac_link) 2>&5
17775 echo "$as_me:17775: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -s conftest$ac_exeext'
17778 { (eval echo "$as_me:17778: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:17781: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 eval "$as_ac_Lib=yes"
17785 echo "$as_me: failed program was:" >&5
17786 cat conftest.$ac_ext >&5
17787 eval "$as_ac_Lib=no"
17789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17790 LIBS=$ac_check_lib_save_LIBS
17792 echo "$as_me:17792: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17793 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17794 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17796 cf_add_libs="-l$cf_regex_lib"
17797 # Filter out duplicates - this happens with badly-designed ".pc" files...
17798 for cf_add_1lib in $LIBS
17800 for cf_add_2lib in $cf_add_libs
17802 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17808 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17810 LIBS="$cf_add_libs"
17812 cf_regex_func=regcomp
17820 if test "$cf_regex_func" = no ; then
17821 echo "$as_me:17821: checking for compile" >&5
17822 echo $ECHO_N "checking for compile... $ECHO_C" >&6
17823 if test "${ac_cv_func_compile+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17826 cat >conftest.$ac_ext <<_ACEOF
17827 #line 17827 "configure"
17828 #include "confdefs.h"
17829 #define compile autoconf_temporary
17830 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17837 /* We use char because int might match the return type of a gcc2
17838 builtin and then its argument prototype would still apply. */
17839 char compile (void);
17845 /* The GNU C library defines stubs for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848 #if defined (__stub_compile) || defined (__stub___compile)
17849 #error found stub for compile
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (eval echo "$as_me:17858: \"$ac_link\"") >&5
17859 (eval $ac_link) 2>&5
17861 echo "$as_me:17861: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
17863 { ac_try='test -s conftest$ac_exeext'
17864 { (eval echo "$as_me:17864: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17867 echo "$as_me:17867: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_func_compile=yes
17871 echo "$as_me: failed program was:" >&5
17872 cat conftest.$ac_ext >&5
17873 ac_cv_func_compile=no
17875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17877 echo "$as_me:17877: result: $ac_cv_func_compile" >&5
17878 echo "${ECHO_T}$ac_cv_func_compile" >&6
17879 if test $ac_cv_func_compile = yes; then
17880 cf_regex_func=compile
17883 echo "$as_me:17883: checking for compile in -lgen" >&5
17884 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
17885 if test "${ac_cv_lib_gen_compile+set}" = set; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 ac_check_lib_save_LIBS=$LIBS
17890 cat >conftest.$ac_ext <<_ACEOF
17891 #line 17891 "configure"
17892 #include "confdefs.h"
17894 /* Override any gcc2 internal prototype to avoid an error. */
17898 /* We use char because int might match the return type of a gcc2
17899 builtin and then its argument prototype would still apply. */
17909 rm -f conftest.$ac_objext conftest$ac_exeext
17910 if { (eval echo "$as_me:17910: \"$ac_link\"") >&5
17911 (eval $ac_link) 2>&5
17913 echo "$as_me:17913: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -s conftest$ac_exeext'
17916 { (eval echo "$as_me:17916: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17919 echo "$as_me:17919: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 ac_cv_lib_gen_compile=yes
17923 echo "$as_me: failed program was:" >&5
17924 cat conftest.$ac_ext >&5
17925 ac_cv_lib_gen_compile=no
17927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17928 LIBS=$ac_check_lib_save_LIBS
17930 echo "$as_me:17930: result: $ac_cv_lib_gen_compile" >&5
17931 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
17932 if test $ac_cv_lib_gen_compile = yes; then
17934 cf_add_libs="-lgen"
17935 # Filter out duplicates - this happens with badly-designed ".pc" files...
17936 for cf_add_1lib in $LIBS
17938 for cf_add_2lib in $cf_add_libs
17940 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17946 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17948 LIBS="$cf_add_libs"
17950 cf_regex_func=compile
17957 if test "$cf_regex_func" = no ; then
17958 { echo "$as_me:17958: WARNING: cannot find regular expression library" >&5
17959 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
17962 echo "$as_me:17962: checking for regular-expression headers" >&5
17963 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
17964 if test "${cf_cv_regex_hdrs+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 cf_cv_regex_hdrs=no
17969 case $cf_regex_func in
17971 for cf_regex_hdr in regexp.h regexpr.h
17973 cat >conftest.$ac_ext <<_ACEOF
17974 #line 17974 "configure"
17975 #include "confdefs.h"
17976 #include <$cf_regex_hdr>
17981 char *p = compile("", "", "", 0);
17982 int x = step("", "");
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (eval echo "$as_me:17989: \"$ac_link\"") >&5
17990 (eval $ac_link) 2>&5
17992 echo "$as_me:17992: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -s conftest$ac_exeext'
17995 { (eval echo "$as_me:17995: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:17998: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18001 cf_cv_regex_hdrs=$cf_regex_hdr
18005 echo "$as_me: failed program was:" >&5
18006 cat conftest.$ac_ext >&5
18008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18012 for cf_regex_hdr in regex.h
18014 cat >conftest.$ac_ext <<_ACEOF
18015 #line 18015 "configure"
18016 #include "confdefs.h"
18017 #include <sys/types.h>
18018 #include <$cf_regex_hdr>
18024 int x = regcomp(p, "", 0);
18025 int y = regexec(p, "", 0, 0, 0);
18032 rm -f conftest.$ac_objext conftest$ac_exeext
18033 if { (eval echo "$as_me:18033: \"$ac_link\"") >&5
18034 (eval $ac_link) 2>&5
18036 echo "$as_me:18036: \$? = $ac_status" >&5
18037 (exit $ac_status); } &&
18038 { ac_try='test -s conftest$ac_exeext'
18039 { (eval echo "$as_me:18039: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18042 echo "$as_me:18042: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18045 cf_cv_regex_hdrs=$cf_regex_hdr
18049 echo "$as_me: failed program was:" >&5
18050 cat conftest.$ac_ext >&5
18052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18058 echo "$as_me:18058: result: $cf_cv_regex_hdrs" >&5
18059 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
18061 case $cf_cv_regex_hdrs in
18062 (no) { echo "$as_me:18062: WARNING: no regular expression header found" >&5
18063 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
18065 cat >>confdefs.h <<\EOF
18066 #define HAVE_REGEX_H_FUNCS 1
18070 cat >>confdefs.h <<\EOF
18071 #define HAVE_REGEXP_H_FUNCS 1
18075 cat >>confdefs.h <<\EOF
18076 #define HAVE_REGEXPR_H_FUNCS 1
18100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18101 echo "$as_me:18101: checking for $ac_header" >&5
18102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18107 #line 18107 "configure"
18108 #include "confdefs.h"
18109 #include <$ac_header>
18111 if { (eval echo "$as_me:18111: \"$ac_cpp conftest.$ac_ext\"") >&5
18112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18114 egrep -v '^ *\+' conftest.er1 >conftest.err
18116 cat conftest.err >&5
18117 echo "$as_me:18117: \$? = $ac_status" >&5
18118 (exit $ac_status); } >/dev/null; then
18119 if test -s conftest.err; then
18120 ac_cpp_err=$ac_c_preproc_warn_flag
18127 if test -z "$ac_cpp_err"; then
18128 eval "$as_ac_Header=yes"
18130 echo "$as_me: failed program was:" >&5
18131 cat conftest.$ac_ext >&5
18132 eval "$as_ac_Header=no"
18134 rm -f conftest.err conftest.$ac_ext
18136 echo "$as_me:18136: result: `eval echo '${'$as_ac_Header'}'`" >&5
18137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18139 cat >>confdefs.h <<EOF
18140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18146 for ac_header in unistd.h getopt.h
18148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18149 echo "$as_me:18149: checking for $ac_header" >&5
18150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 cat >conftest.$ac_ext <<_ACEOF
18155 #line 18155 "configure"
18156 #include "confdefs.h"
18157 #include <$ac_header>
18159 if { (eval echo "$as_me:18159: \"$ac_cpp conftest.$ac_ext\"") >&5
18160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18162 egrep -v '^ *\+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:18165: \$? = $ac_status" >&5
18166 (exit $ac_status); } >/dev/null; then
18167 if test -s conftest.err; then
18168 ac_cpp_err=$ac_c_preproc_warn_flag
18175 if test -z "$ac_cpp_err"; then
18176 eval "$as_ac_Header=yes"
18178 echo "$as_me: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 eval "$as_ac_Header=no"
18182 rm -f conftest.err conftest.$ac_ext
18184 echo "$as_me:18184: result: `eval echo '${'$as_ac_Header'}'`" >&5
18185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18187 cat >>confdefs.h <<EOF
18188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18194 echo "$as_me:18194: checking for header declaring getopt variables" >&5
18195 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
18196 if test "${cf_cv_getopt_header+set}" = set; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 cf_cv_getopt_header=none
18201 for cf_header in stdio.h stdlib.h unistd.h getopt.h
18203 cat >conftest.$ac_ext <<_ACEOF
18204 #line 18204 "configure"
18205 #include "confdefs.h"
18207 #include <$cf_header>
18211 int x = optind; char *y = optarg
18216 rm -f conftest.$ac_objext
18217 if { (eval echo "$as_me:18217: \"$ac_compile\"") >&5
18218 (eval $ac_compile) 2>&5
18220 echo "$as_me:18220: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -s conftest.$ac_objext'
18223 { (eval echo "$as_me:18223: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 echo "$as_me:18226: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 cf_cv_getopt_header=$cf_header
18231 echo "$as_me: failed program was:" >&5
18232 cat conftest.$ac_ext >&5
18234 rm -f conftest.$ac_objext conftest.$ac_ext
18238 echo "$as_me:18238: result: $cf_cv_getopt_header" >&5
18239 echo "${ECHO_T}$cf_cv_getopt_header" >&6
18240 if test $cf_cv_getopt_header != none ; then
18242 cat >>confdefs.h <<\EOF
18243 #define HAVE_GETOPT_HEADER 1
18247 if test $cf_cv_getopt_header = getopt.h ; then
18249 cat >>confdefs.h <<\EOF
18250 #define NEED_GETOPT_H 1
18255 echo "$as_me:18255: checking if external environ is declared" >&5
18256 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
18257 if test "${cf_cv_dcl_environ+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 cat >conftest.$ac_ext <<_ACEOF
18262 #line 18262 "configure"
18263 #include "confdefs.h"
18265 #ifdef HAVE_STDLIB_H
18266 #include <stdlib.h>
18268 #include <unistd.h>
18272 int x = (int) environ
18277 rm -f conftest.$ac_objext
18278 if { (eval echo "$as_me:18278: \"$ac_compile\"") >&5
18279 (eval $ac_compile) 2>&5
18281 echo "$as_me:18281: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:18284: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:18287: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 cf_cv_dcl_environ=yes
18291 echo "$as_me: failed program was:" >&5
18292 cat conftest.$ac_ext >&5
18293 cf_cv_dcl_environ=no
18295 rm -f conftest.$ac_objext conftest.$ac_ext
18298 echo "$as_me:18298: result: $cf_cv_dcl_environ" >&5
18299 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
18301 if test "$cf_cv_dcl_environ" = no ; then
18303 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18305 cat >>confdefs.h <<EOF
18306 #define $cf_result 1
18311 # It's possible (for near-UNIX clones) that the data doesn't exist
18313 echo "$as_me:18313: checking if external environ exists" >&5
18314 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
18315 if test "${cf_cv_have_environ+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 cat >conftest.$ac_ext <<_ACEOF
18320 #line 18320 "configure"
18321 #include "confdefs.h"
18324 extern int environ;
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (eval echo "$as_me:18335: \"$ac_link\"") >&5
18336 (eval $ac_link) 2>&5
18338 echo "$as_me:18338: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -s conftest$ac_exeext'
18341 { (eval echo "$as_me:18341: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18344 echo "$as_me:18344: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 cf_cv_have_environ=yes
18348 echo "$as_me: failed program was:" >&5
18349 cat conftest.$ac_ext >&5
18350 cf_cv_have_environ=no
18352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18355 echo "$as_me:18355: result: $cf_cv_have_environ" >&5
18356 echo "${ECHO_T}$cf_cv_have_environ" >&6
18358 if test "$cf_cv_have_environ" = yes ; then
18360 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18362 cat >>confdefs.h <<EOF
18363 #define $cf_result 1
18368 echo "$as_me:18368: checking for getenv" >&5
18369 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
18370 if test "${ac_cv_func_getenv+set}" = set; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 cat >conftest.$ac_ext <<_ACEOF
18374 #line 18374 "configure"
18375 #include "confdefs.h"
18376 #define getenv autoconf_temporary
18377 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18384 /* We use char because int might match the return type of a gcc2
18385 builtin and then its argument prototype would still apply. */
18386 char getenv (void);
18392 /* The GNU C library defines stubs for functions which it implements
18393 to always fail with ENOSYS. Some functions are actually named
18394 something starting with __ and the normal name is an alias. */
18395 #if defined (__stub_getenv) || defined (__stub___getenv)
18396 #error found stub for getenv
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (eval echo "$as_me:18405: \"$ac_link\"") >&5
18406 (eval $ac_link) 2>&5
18408 echo "$as_me:18408: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -s conftest$ac_exeext'
18411 { (eval echo "$as_me:18411: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:18414: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_cv_func_getenv=yes
18418 echo "$as_me: failed program was:" >&5
18419 cat conftest.$ac_ext >&5
18420 ac_cv_func_getenv=no
18422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18424 echo "$as_me:18424: result: $ac_cv_func_getenv" >&5
18425 echo "${ECHO_T}$ac_cv_func_getenv" >&6
18427 for ac_func in putenv setenv strdup
18429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18430 echo "$as_me:18430: checking for $ac_func" >&5
18431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18432 if eval "test \"\${$as_ac_var+set}\" = set"; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18435 cat >conftest.$ac_ext <<_ACEOF
18436 #line 18436 "configure"
18437 #include "confdefs.h"
18438 #define $ac_func autoconf_temporary
18439 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18446 /* We use char because int might match the return type of a gcc2
18447 builtin and then its argument prototype would still apply. */
18448 char $ac_func (void);
18454 /* The GNU C library defines stubs for functions which it implements
18455 to always fail with ENOSYS. Some functions are actually named
18456 something starting with __ and the normal name is an alias. */
18457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18458 #error found stub for $ac_func
18461 return $ac_func ();
18466 rm -f conftest.$ac_objext conftest$ac_exeext
18467 if { (eval echo "$as_me:18467: \"$ac_link\"") >&5
18468 (eval $ac_link) 2>&5
18470 echo "$as_me:18470: \$? = $ac_status" >&5
18471 (exit $ac_status); } &&
18472 { ac_try='test -s conftest$ac_exeext'
18473 { (eval echo "$as_me:18473: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:18476: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 eval "$as_ac_var=yes"
18480 echo "$as_me: failed program was:" >&5
18481 cat conftest.$ac_ext >&5
18482 eval "$as_ac_var=no"
18484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18486 echo "$as_me:18486: result: `eval echo '${'$as_ac_var'}'`" >&5
18487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18488 if test `eval echo '${'$as_ac_var'}'` = yes; then
18489 cat >>confdefs.h <<EOF
18490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18496 echo "$as_me:18496: checking if getenv returns consistent values" >&5
18497 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
18498 if test "${cf_cv_consistent_getenv+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 if test "$cross_compiling" = yes; then
18503 cf_cv_consistent_getenv=unknown
18505 cat >conftest.$ac_ext <<_ACEOF
18506 #line 18506 "configure"
18507 #include "confdefs.h"
18509 #include <stdlib.h>
18510 #include <unistd.h>
18512 #include <string.h>
18513 #include <sys/types.h>
18515 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
18516 extern char **environ; /* POSIX, but some systems are not... */
18519 #if defined(HAVE_STRDUP)
18520 #define str_alloc(s) strdup(s)
18522 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
18525 static void set_value(const char *name, const char *value)
18527 #if defined(HAVE_SETENV)
18528 setenv(name, value, 1);
18529 #elif defined(HAVE_PUTENV)
18531 sprintf(buffer, "%s=%s", name, value);
18532 putenv(str_alloc(buffer));
18534 #error neither putenv/setenv found
18540 size_t numenv, limit, j;
18545 for (numenv = 0; environ[numenv]; ++numenv) ;
18546 limit = numenv + 10;
18547 mynames = (char **) calloc(limit + 1, sizeof(char *));
18548 myvalues = (char **) calloc(limit + 1, sizeof(char *));
18549 mypointer = (char **) calloc(limit + 1, sizeof(char *));
18550 #if defined(HAVE_ENVIRON)
18551 for (j = 0; environ[j]; ++j) {
18552 mynames[j] = str_alloc(environ[j]);
18553 equals = strchr(mynames[j], '=');
18556 myvalues[j] = str_alloc(equals);
18558 myvalues[j] = str_alloc("");
18562 for (j = numenv; j < limit; ++j) {
18570 sprintf(name, "TERM%lu", (unsigned long) k);
18571 for (jk = 0; jk < j; ++jk) {
18572 if (!strcmp(name, mynames[jk])) {
18579 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
18580 set_value(name, value);
18581 mynames[j] = str_alloc(name);
18582 myvalues[j] = str_alloc(value);
18584 for (pass = 0; pass < 3; ++pass) {
18585 for (j = 0; j < limit; ++j) {
18586 char *value = getenv(mynames[j]);
18589 fprintf(stderr, "getenv returned null for %s\n", mynames[j]);
18590 ${cf_cv_main_return:-return}(1);
18591 } else if (value != mypointer[j]) {
18592 fprintf(stderr, "getenv returned different pointer for %s\n", mynames[j]);
18593 ${cf_cv_main_return:-return}(1);
18594 } else if (strcmp(value, myvalues[j])) {
18595 fprintf(stderr, "getenv returned different value for %s\n", mynames[j]);
18596 ${cf_cv_main_return:-return}(1);
18600 mypointer[j] = value;
18601 for (k = 0; k < j; ++k) {
18602 if (mypointer[j] == mypointer[k]) {
18603 fprintf(stderr, "getenv returned same pointer for %s and %s\n", mynames[j], mynames[k]);
18604 ${cf_cv_main_return:-return}(1);
18610 ${cf_cv_main_return:-return}(0);
18614 rm -f conftest$ac_exeext
18615 if { (eval echo "$as_me:18615: \"$ac_link\"") >&5
18616 (eval $ac_link) 2>&5
18618 echo "$as_me:18618: \$? = $ac_status" >&5
18619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18620 { (eval echo "$as_me:18620: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:18623: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 cf_cv_consistent_getenv=yes
18627 echo "$as_me: program exited with status $ac_status" >&5
18628 echo "$as_me: failed program was:" >&5
18629 cat conftest.$ac_ext >&5
18630 cf_cv_consistent_getenv=no
18632 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18636 echo "$as_me:18636: result: $cf_cv_consistent_getenv" >&5
18637 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
18639 if test "x$cf_cv_consistent_getenv" = xno
18642 cat >>confdefs.h <<\EOF
18643 #define HAVE_CONSISTENT_GETENV 1
18648 if test "x$cf_cv_consistent_getenv" = xno && \
18649 test "x$cf_with_trace" = xyes
18651 { echo "$as_me:18651: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
18652 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
18655 # check for ISC (this may also define _POSIX_SOURCE)
18656 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
18657 if test "x$ISC" = xyes ; then
18659 echo "$as_me:18659: checking for main in -lcposix" >&5
18660 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
18661 if test "${ac_cv_lib_cposix_main+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lcposix $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 #line 18667 "configure"
18668 #include "confdefs.h"
18678 rm -f conftest.$ac_objext conftest$ac_exeext
18679 if { (eval echo "$as_me:18679: \"$ac_link\"") >&5
18680 (eval $ac_link) 2>&5
18682 echo "$as_me:18682: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try='test -s conftest$ac_exeext'
18685 { (eval echo "$as_me:18685: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18688 echo "$as_me:18688: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_cv_lib_cposix_main=yes
18692 echo "$as_me: failed program was:" >&5
18693 cat conftest.$ac_ext >&5
18694 ac_cv_lib_cposix_main=no
18696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18697 LIBS=$ac_check_lib_save_LIBS
18699 echo "$as_me:18699: result: $ac_cv_lib_cposix_main" >&5
18700 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
18701 if test $ac_cv_lib_cposix_main = yes; then
18702 cat >>confdefs.h <<EOF
18703 #define HAVE_LIBCPOSIX 1
18706 LIBS="-lcposix $LIBS"
18710 echo "$as_me:18710: checking for bzero in -linet" >&5
18711 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
18712 if test "${ac_cv_lib_inet_bzero+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 ac_check_lib_save_LIBS=$LIBS
18716 LIBS="-linet $LIBS"
18717 cat >conftest.$ac_ext <<_ACEOF
18718 #line 18718 "configure"
18719 #include "confdefs.h"
18721 /* Override any gcc2 internal prototype to avoid an error. */
18725 /* We use char because int might match the return type of a gcc2
18726 builtin and then its argument prototype would still apply. */
18736 rm -f conftest.$ac_objext conftest$ac_exeext
18737 if { (eval echo "$as_me:18737: \"$ac_link\"") >&5
18738 (eval $ac_link) 2>&5
18740 echo "$as_me:18740: \$? = $ac_status" >&5
18741 (exit $ac_status); } &&
18742 { ac_try='test -s conftest$ac_exeext'
18743 { (eval echo "$as_me:18743: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18746 echo "$as_me:18746: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 ac_cv_lib_inet_bzero=yes
18750 echo "$as_me: failed program was:" >&5
18751 cat conftest.$ac_ext >&5
18752 ac_cv_lib_inet_bzero=no
18754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18755 LIBS=$ac_check_lib_save_LIBS
18757 echo "$as_me:18757: result: $ac_cv_lib_inet_bzero" >&5
18758 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
18759 if test $ac_cv_lib_inet_bzero = yes; then
18761 cf_add_libs="-linet"
18762 # Filter out duplicates - this happens with badly-designed ".pc" files...
18763 for cf_add_1lib in $LIBS
18765 for cf_add_2lib in $cf_add_libs
18767 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18773 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18775 LIBS="$cf_add_libs"
18780 echo "$as_me:18780: checking if sys/time.h works with sys/select.h" >&5
18781 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
18782 if test "${cf_cv_sys_time_select+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 cat >conftest.$ac_ext <<_ACEOF
18787 #line 18787 "configure"
18788 #include "confdefs.h"
18790 #include <sys/types.h>
18791 #ifdef HAVE_SYS_TIME_H
18792 #include <sys/time.h>
18794 #ifdef HAVE_SYS_SELECT_H
18795 #include <sys/select.h>
18806 rm -f conftest.$ac_objext
18807 if { (eval echo "$as_me:18807: \"$ac_compile\"") >&5
18808 (eval $ac_compile) 2>&5
18810 echo "$as_me:18810: \$? = $ac_status" >&5
18811 (exit $ac_status); } &&
18812 { ac_try='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:18813: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18816 echo "$as_me:18816: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 cf_cv_sys_time_select=yes
18820 echo "$as_me: failed program was:" >&5
18821 cat conftest.$ac_ext >&5
18822 cf_cv_sys_time_select=no
18824 rm -f conftest.$ac_objext conftest.$ac_ext
18828 echo "$as_me:18828: result: $cf_cv_sys_time_select" >&5
18829 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
18830 test "$cf_cv_sys_time_select" = yes &&
18831 cat >>confdefs.h <<\EOF
18832 #define HAVE_SYS_TIME_SELECT 1
18835 ### checks for compiler characteristics
18837 ac_cpp='$CPP $CPPFLAGS'
18838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18841 ac_main_return=return
18843 echo "$as_me:18843: checking for an ANSI C-conforming const" >&5
18844 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18845 if test "${ac_cv_c_const+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 cat >conftest.$ac_ext <<_ACEOF
18849 #line 18849 "configure"
18850 #include "confdefs.h"
18855 /* FIXME: Include the comments suggested by Paul. */
18856 #ifndef __cplusplus
18857 /* Ultrix mips cc rejects this. */
18858 typedef int charset[2];
18860 /* SunOS 4.1.1 cc rejects this. */
18861 char const *const *ccp;
18863 /* NEC SVR4.0.2 mips cc rejects this. */
18864 struct point {int x, y;};
18865 static struct point const zero = {0,0};
18866 /* AIX XL C 1.02.0.0 rejects this.
18867 It does not let you subtract one const X* pointer from another in
18868 an arm of an if-expression whose if-part is not a constant
18870 const char *g = "string";
18871 ccp = &g + (g ? g-g : 0);
18872 /* HPUX 7.0 cc rejects these. */
18875 ccp = (char const *const *) p;
18876 { /* SCO 3.2v4 cc rejects this. */
18878 char const *s = 0 ? (char *) 0 : (char const *) 0;
18882 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18883 int x[] = {25, 17};
18884 const int *foo = &x[0];
18887 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18888 typedef const int *iptr;
18892 { /* AIX XL C 1.02.0.0 rejects this saying
18893 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18894 struct s { int j; const int *ap[3]; };
18895 struct s *b; b->j = 5;
18897 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18898 const int foo = 10;
18906 rm -f conftest.$ac_objext
18907 if { (eval echo "$as_me:18907: \"$ac_compile\"") >&5
18908 (eval $ac_compile) 2>&5
18910 echo "$as_me:18910: \$? = $ac_status" >&5
18911 (exit $ac_status); } &&
18912 { ac_try='test -s conftest.$ac_objext'
18913 { (eval echo "$as_me:18913: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18916 echo "$as_me:18916: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18920 echo "$as_me: failed program was:" >&5
18921 cat conftest.$ac_ext >&5
18924 rm -f conftest.$ac_objext conftest.$ac_ext
18926 echo "$as_me:18926: result: $ac_cv_c_const" >&5
18927 echo "${ECHO_T}$ac_cv_c_const" >&6
18928 if test $ac_cv_c_const = no; then
18930 cat >>confdefs.h <<\EOF
18936 echo "$as_me:18936: checking for inline" >&5
18937 echo $ECHO_N "checking for inline... $ECHO_C" >&6
18938 if test "${ac_cv_c_inline+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 for ac_kw in inline __inline__ __inline; do
18943 cat >conftest.$ac_ext <<_ACEOF
18944 #line 18944 "configure"
18945 #include "confdefs.h"
18946 #ifndef __cplusplus
18947 static $ac_kw int static_foo () {return 0; }
18948 $ac_kw int foo () {return 0; }
18952 rm -f conftest.$ac_objext
18953 if { (eval echo "$as_me:18953: \"$ac_compile\"") >&5
18954 (eval $ac_compile) 2>&5
18956 echo "$as_me:18956: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
18958 { ac_try='test -s conftest.$ac_objext'
18959 { (eval echo "$as_me:18959: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18962 echo "$as_me:18962: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_c_inline=$ac_kw; break
18966 echo "$as_me: failed program was:" >&5
18967 cat conftest.$ac_ext >&5
18969 rm -f conftest.$ac_objext conftest.$ac_ext
18973 echo "$as_me:18973: result: $ac_cv_c_inline" >&5
18974 echo "${ECHO_T}$ac_cv_c_inline" >&6
18975 case $ac_cv_c_inline in
18978 cat >>confdefs.h <<\EOF
18982 *) cat >>confdefs.h <<EOF
18983 #define inline $ac_cv_c_inline
18989 if test "$ac_cv_c_inline" != no ; then
18990 NCURSES_INLINE=inline
18991 if test "$INTEL_COMPILER" = yes
18994 elif test "$CLANG_COMPILER" = yes
18997 elif test "$GCC" = yes
18999 echo "$as_me:18999: checking if $CC supports options to tune inlining" >&5
19000 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
19001 if test "${cf_cv_gcc_inline+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 cf_save_CFLAGS=$CFLAGS
19006 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
19007 cat >conftest.$ac_ext <<_ACEOF
19008 #line 19008 "configure"
19009 #include "confdefs.h"
19010 inline int foo(void) { return 1; }
19014 ${cf_cv_main_return:-return} foo()
19019 rm -f conftest.$ac_objext
19020 if { (eval echo "$as_me:19020: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>&5
19023 echo "$as_me:19023: \$? = $ac_status" >&5
19024 (exit $ac_status); } &&
19025 { ac_try='test -s conftest.$ac_objext'
19026 { (eval echo "$as_me:19026: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19029 echo "$as_me:19029: \$? = $ac_status" >&5
19030 (exit $ac_status); }; }; then
19031 cf_cv_gcc_inline=yes
19033 echo "$as_me: failed program was:" >&5
19034 cat conftest.$ac_ext >&5
19035 cf_cv_gcc_inline=no
19037 rm -f conftest.$ac_objext conftest.$ac_ext
19038 CFLAGS=$cf_save_CFLAGS
19041 echo "$as_me:19041: result: $cf_cv_gcc_inline" >&5
19042 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
19043 if test "$cf_cv_gcc_inline" = yes ; then
19048 cf_new_extra_cppflags=
19050 for cf_add_cflags in --param max-inline-insns-single=1200
19052 case $cf_fix_cppflags in
19054 case $cf_add_cflags in
19055 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19056 case $cf_add_cflags in
19058 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19060 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19061 && test -z "${cf_tst_cflags}" \
19062 && cf_fix_cppflags=yes
19064 if test $cf_fix_cppflags = yes ; then
19066 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19067 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19070 elif test "${cf_tst_cflags}" = "\"'" ; then
19072 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19073 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19079 case "$CPPFLAGS" in
19083 case $cf_add_cflags in
19085 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19087 CPPFLAGS=`echo "$CPPFLAGS" | \
19088 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19089 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19094 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19095 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19102 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19103 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19110 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19111 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19113 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19115 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19116 && test -z "${cf_tst_cflags}" \
19117 && cf_fix_cppflags=no
19122 if test -n "$cf_new_cflags" ; then
19124 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19125 CFLAGS="${CFLAGS}$cf_new_cflags"
19129 if test -n "$cf_new_cppflags" ; then
19131 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19132 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19136 if test -n "$cf_new_extra_cppflags" ; then
19138 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19139 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19147 echo "$as_me:19147: checking for signal global datatype" >&5
19148 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
19149 if test "${cf_cv_sig_atomic_t+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 "volatile sig_atomic_t" \
19158 cat >conftest.$ac_ext <<_ACEOF
19159 #line 19159 "configure"
19160 #include "confdefs.h"
19162 #include <sys/types.h>
19163 #include <signal.h>
19168 static void handler(int sig)
19175 signal(SIGINT, handler);
19181 rm -f conftest.$ac_objext
19182 if { (eval echo "$as_me:19182: \"$ac_compile\"") >&5
19183 (eval $ac_compile) 2>&5
19185 echo "$as_me:19185: \$? = $ac_status" >&5
19186 (exit $ac_status); } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (eval echo "$as_me:19188: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:19191: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 cf_cv_sig_atomic_t=$cf_type
19195 echo "$as_me: failed program was:" >&5
19196 cat conftest.$ac_ext >&5
19197 cf_cv_sig_atomic_t=no
19199 rm -f conftest.$ac_objext conftest.$ac_ext
19200 test "$cf_cv_sig_atomic_t" != no && break
19205 echo "$as_me:19205: result: $cf_cv_sig_atomic_t" >&5
19206 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
19207 test "$cf_cv_sig_atomic_t" != no &&
19208 cat >>confdefs.h <<EOF
19209 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
19212 if test $NCURSES_CHTYPE = auto ; then
19214 echo "$as_me:19214: checking for type of chtype" >&5
19215 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
19216 if test "${cf_cv_typeof_chtype+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 if test "$cross_compiling" = yes; then
19221 cf_cv_typeof_chtype=long
19223 cat >conftest.$ac_ext <<_ACEOF
19224 #line 19224 "configure"
19225 #include "confdefs.h"
19227 #define WANT_BITS 31
19231 FILE *fp = fopen("cf_test.out", "w");
19233 char *result = "long";
19234 if (sizeof(unsigned long) > sizeof(unsigned int)) {
19237 for (n = 0; n < WANT_BITS; n++) {
19240 if (y != 1 || x == 0) {
19246 * If x is nonzero, an int is big enough for the bits
19249 result = (x != 0) ? "int" : "long";
19254 ${cf_cv_main_return:-return}(0);
19258 rm -f conftest$ac_exeext
19259 if { (eval echo "$as_me:19259: \"$ac_link\"") >&5
19260 (eval $ac_link) 2>&5
19262 echo "$as_me:19262: \$? = $ac_status" >&5
19263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19264 { (eval echo "$as_me:19264: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:19267: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 cf_cv_typeof_chtype=`cat cf_test.out`
19271 echo "$as_me: program exited with status $ac_status" >&5
19272 echo "$as_me: failed program was:" >&5
19273 cat conftest.$ac_ext >&5
19274 cf_cv_typeof_chtype=long
19276 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19282 echo "$as_me:19282: result: $cf_cv_typeof_chtype" >&5
19283 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
19285 cat >>confdefs.h <<EOF
19286 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
19290 cf_cv_typeof_chtype=$NCURSES_CHTYPE
19292 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
19294 echo "$as_me:19294: checking if unsigned literals are legal" >&5
19295 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
19296 if test "${cf_cv_unsigned_literals+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 cat >conftest.$ac_ext <<_ACEOF
19301 #line 19301 "configure"
19302 #include "confdefs.h"
19307 long x = 1L + 1UL + 1U + 1
19312 rm -f conftest.$ac_objext
19313 if { (eval echo "$as_me:19313: \"$ac_compile\"") >&5
19314 (eval $ac_compile) 2>&5
19316 echo "$as_me:19316: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try='test -s conftest.$ac_objext'
19319 { (eval echo "$as_me:19319: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19322 echo "$as_me:19322: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 cf_cv_unsigned_literals=yes
19326 echo "$as_me: failed program was:" >&5
19327 cat conftest.$ac_ext >&5
19328 cf_cv_unsigned_literals=no
19330 rm -f conftest.$ac_objext conftest.$ac_ext
19334 echo "$as_me:19334: result: $cf_cv_unsigned_literals" >&5
19335 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
19338 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
19339 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
19341 if test $NCURSES_MMASK_T = auto ; then
19342 cf_cv_typeof_mmask_t=long
19344 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
19346 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
19348 ### Checks for external-data
19350 echo "$as_me:19350: checking if external errno is declared" >&5
19351 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
19352 if test "${cf_cv_dcl_errno+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 cat >conftest.$ac_ext <<_ACEOF
19357 #line 19357 "configure"
19358 #include "confdefs.h"
19360 #ifdef HAVE_STDLIB_H
19361 #include <stdlib.h>
19364 #include <sys/types.h>
19369 int x = (int) errno
19374 rm -f conftest.$ac_objext
19375 if { (eval echo "$as_me:19375: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>&5
19378 echo "$as_me:19378: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -s conftest.$ac_objext'
19381 { (eval echo "$as_me:19381: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:19384: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 cf_cv_dcl_errno=yes
19388 echo "$as_me: failed program was:" >&5
19389 cat conftest.$ac_ext >&5
19392 rm -f conftest.$ac_objext conftest.$ac_ext
19395 echo "$as_me:19395: result: $cf_cv_dcl_errno" >&5
19396 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
19398 if test "$cf_cv_dcl_errno" = no ; then
19400 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19402 cat >>confdefs.h <<EOF
19403 #define $cf_result 1
19408 # It's possible (for near-UNIX clones) that the data doesn't exist
19410 echo "$as_me:19410: checking if external errno exists" >&5
19411 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
19412 if test "${cf_cv_have_errno+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 cat >conftest.$ac_ext <<_ACEOF
19417 #line 19417 "configure"
19418 #include "confdefs.h"
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (eval echo "$as_me:19432: \"$ac_link\"") >&5
19433 (eval $ac_link) 2>&5
19435 echo "$as_me:19435: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -s conftest$ac_exeext'
19438 { (eval echo "$as_me:19438: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19441 echo "$as_me:19441: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 cf_cv_have_errno=yes
19445 echo "$as_me: failed program was:" >&5
19446 cat conftest.$ac_ext >&5
19447 cf_cv_have_errno=no
19449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19452 echo "$as_me:19452: result: $cf_cv_have_errno" >&5
19453 echo "${ECHO_T}$cf_cv_have_errno" >&6
19455 if test "$cf_cv_have_errno" = yes ; then
19457 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19459 cat >>confdefs.h <<EOF
19460 #define $cf_result 1
19465 echo "$as_me:19465: checking if data-only library module links" >&5
19466 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
19467 if test "${cf_cv_link_dataonly+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19472 cat >conftest.$ac_ext <<EOF
19473 #line 19473 "configure"
19474 int testdata[3] = { 123, 456, 789 };
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); } ; then
19481 mv conftest.o data.o && \
19482 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
19484 rm -f conftest.$ac_ext data.o
19485 cat >conftest.$ac_ext <<EOF
19486 #line 19486 "configure"
19490 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
19492 extern int testdata[3];
19493 return testdata[0] == 123
19494 && testdata[1] == 456
19495 && testdata[2] == 789;
19499 if { (eval echo "$as_me:19499: \"$ac_compile\"") >&5
19500 (eval $ac_compile) 2>&5
19502 echo "$as_me:19502: \$? = $ac_status" >&5
19503 (exit $ac_status); }; then
19504 mv conftest.o func.o && \
19505 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
19507 rm -f conftest.$ac_ext func.o
19508 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
19509 cf_saveLIBS="$LIBS"
19510 LIBS="conftest.a $LIBS"
19511 if test "$cross_compiling" = yes; then
19512 cf_cv_link_dataonly=unknown
19514 cat >conftest.$ac_ext <<_ACEOF
19515 #line 19515 "configure"
19516 #include "confdefs.h"
19520 extern int testfunc();
19521 ${cf_cv_main_return:-return} (!testfunc());
19525 rm -f conftest$ac_exeext
19526 if { (eval echo "$as_me:19526: \"$ac_link\"") >&5
19527 (eval $ac_link) 2>&5
19529 echo "$as_me:19529: \$? = $ac_status" >&5
19530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_link_dataonly=yes
19538 echo "$as_me: program exited with status $ac_status" >&5
19539 echo "$as_me: failed program was:" >&5
19540 cat conftest.$ac_ext >&5
19541 cf_cv_link_dataonly=no
19543 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19545 LIBS="$cf_saveLIBS"
19549 echo "$as_me:19549: result: $cf_cv_link_dataonly" >&5
19550 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
19552 if test "$cf_cv_link_dataonly" = no ; then
19554 cat >>confdefs.h <<\EOF
19555 #define BROKEN_LINKER 1
19561 ### Checks for library functions.
19590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19591 echo "$as_me:19591: checking for $ac_func" >&5
19592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19593 if eval "test \"\${$as_ac_var+set}\" = set"; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 cat >conftest.$ac_ext <<_ACEOF
19597 #line 19597 "configure"
19598 #include "confdefs.h"
19599 #define $ac_func autoconf_temporary
19600 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19607 /* We use char because int might match the return type of a gcc2
19608 builtin and then its argument prototype would still apply. */
19609 char $ac_func (void);
19615 /* The GNU C library defines stubs for functions which it implements
19616 to always fail with ENOSYS. Some functions are actually named
19617 something starting with __ and the normal name is an alias. */
19618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19619 #error found stub for $ac_func
19622 return $ac_func ();
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (eval echo "$as_me:19628: \"$ac_link\"") >&5
19629 (eval $ac_link) 2>&5
19631 echo "$as_me:19631: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -s conftest$ac_exeext'
19634 { (eval echo "$as_me:19634: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19637 echo "$as_me:19637: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 eval "$as_ac_var=yes"
19641 echo "$as_me: failed program was:" >&5
19642 cat conftest.$ac_ext >&5
19643 eval "$as_ac_var=no"
19645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19647 echo "$as_me:19647: result: `eval echo '${'$as_ac_var'}'`" >&5
19648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19649 if test `eval echo '${'$as_ac_var'}'` = yes; then
19650 cat >>confdefs.h <<EOF
19651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19657 if test "x$ac_cv_func_getopt" = xno && \
19658 test "x$cf_with_progs$cf_with_tests" != xnono; then
19659 { { echo "$as_me:19659: error: getopt is required for building programs" >&5
19660 echo "$as_me: error: getopt is required for building programs" >&2;}
19661 { (exit 1); exit 1; }; }
19664 if test "x$with_safe_sprintf" = xyes
19666 if test "x$ac_cv_func_vsnprintf" = xyes
19668 { echo "$as_me:19668: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
19669 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
19672 cat >>confdefs.h <<\EOF
19673 #define USE_SAFE_SPRINTF 1
19679 if test "x$with_getcap" = "xyes" ; then
19681 echo "$as_me:19681: checking for terminal-capability database functions" >&5
19682 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
19683 if test "${cf_cv_cgetent+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 cat >conftest.$ac_ext <<_ACEOF
19688 #line 19688 "configure"
19689 #include "confdefs.h"
19691 #include <stdlib.h>
19698 char *db_array = temp;
19699 cgetent(&buf, &db_array, "vt100");
19700 cgetcap(buf, "tc", '=');
19701 cgetmatch(buf, "tc");
19707 rm -f conftest.$ac_objext conftest$ac_exeext
19708 if { (eval echo "$as_me:19708: \"$ac_link\"") >&5
19709 (eval $ac_link) 2>&5
19711 echo "$as_me:19711: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -s conftest$ac_exeext'
19714 { (eval echo "$as_me:19714: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:19717: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19721 echo "$as_me: failed program was:" >&5
19722 cat conftest.$ac_ext >&5
19725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19728 echo "$as_me:19728: result: $cf_cv_cgetent" >&5
19729 echo "${ECHO_T}$cf_cv_cgetent" >&6
19731 if test "$cf_cv_cgetent" = yes
19734 cat >>confdefs.h <<\EOF
19735 #define HAVE_BSD_CGETENT 1
19738 echo "$as_me:19738: checking if cgetent uses const parameter" >&5
19739 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
19740 if test "${cf_cv_cgetent_const+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 cat >conftest.$ac_ext <<_ACEOF
19745 #line 19745 "configure"
19746 #include "confdefs.h"
19748 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
19749 #include <stdlib.h>
19756 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
19757 const char *db_array = temp;
19758 cgetent(&buf, &db_array, "vt100");
19760 cgetcap(buf, "tc", '=');
19761 cgetmatch(buf, "tc");
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (eval echo "$as_me:19768: \"$ac_link\"") >&5
19769 (eval $ac_link) 2>&5
19771 echo "$as_me:19771: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -s conftest$ac_exeext'
19774 { (eval echo "$as_me:19774: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19777 echo "$as_me:19777: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 cf_cv_cgetent_const=yes
19781 echo "$as_me: failed program was:" >&5
19782 cat conftest.$ac_ext >&5
19783 cf_cv_cgetent_const=no
19785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19788 echo "$as_me:19788: result: $cf_cv_cgetent_const" >&5
19789 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
19790 if test "$cf_cv_cgetent_const" = yes
19793 cat >>confdefs.h <<EOF
19794 #define CGETENT_CONST const
19802 echo "$as_me:19802: checking for isascii" >&5
19803 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
19804 if test "${cf_cv_have_isascii+set}" = set; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 cat >conftest.$ac_ext <<_ACEOF
19809 #line 19809 "configure"
19810 #include "confdefs.h"
19815 int x = isascii(' ')
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (eval echo "$as_me:19821: \"$ac_link\"") >&5
19822 (eval $ac_link) 2>&5
19824 echo "$as_me:19824: \$? = $ac_status" >&5
19825 (exit $ac_status); } &&
19826 { ac_try='test -s conftest$ac_exeext'
19827 { (eval echo "$as_me:19827: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:19830: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 cf_cv_have_isascii=yes
19834 echo "$as_me: failed program was:" >&5
19835 cat conftest.$ac_ext >&5
19836 cf_cv_have_isascii=no
19838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19841 echo "$as_me:19841: result: $cf_cv_have_isascii" >&5
19842 echo "${ECHO_T}$cf_cv_have_isascii" >&6
19843 test "$cf_cv_have_isascii" = yes &&
19844 cat >>confdefs.h <<\EOF
19845 #define HAVE_ISASCII 1
19848 if test "$ac_cv_func_sigaction" = yes; then
19849 echo "$as_me:19849: checking whether sigaction needs _POSIX_SOURCE" >&5
19850 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
19851 cat >conftest.$ac_ext <<_ACEOF
19852 #line 19852 "configure"
19853 #include "confdefs.h"
19855 #include <sys/types.h>
19856 #include <signal.h>
19860 struct sigaction act
19865 rm -f conftest.$ac_objext
19866 if { (eval echo "$as_me:19866: \"$ac_compile\"") >&5
19867 (eval $ac_compile) 2>&5
19869 echo "$as_me:19869: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -s conftest.$ac_objext'
19872 { (eval echo "$as_me:19872: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:19875: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19879 echo "$as_me: failed program was:" >&5
19880 cat conftest.$ac_ext >&5
19882 cat >conftest.$ac_ext <<_ACEOF
19883 #line 19883 "configure"
19884 #include "confdefs.h"
19886 #define _POSIX_SOURCE
19887 #include <sys/types.h>
19888 #include <signal.h>
19892 struct sigaction act
19897 rm -f conftest.$ac_objext
19898 if { (eval echo "$as_me:19898: \"$ac_compile\"") >&5
19899 (eval $ac_compile) 2>&5
19901 echo "$as_me:19901: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
19903 { ac_try='test -s conftest.$ac_objext'
19904 { (eval echo "$as_me:19904: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19907 echo "$as_me:19907: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19911 cat >>confdefs.h <<\EOF
19912 #define _POSIX_SOURCE 1
19916 echo "$as_me: failed program was:" >&5
19917 cat conftest.$ac_ext >&5
19920 rm -f conftest.$ac_objext conftest.$ac_ext
19922 rm -f conftest.$ac_objext conftest.$ac_ext
19923 echo "$as_me:19923: result: $sigact_bad" >&5
19924 echo "${ECHO_T}$sigact_bad" >&6
19927 echo "$as_me:19927: checking if nanosleep really works" >&5
19928 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
19929 if test "${cf_cv_func_nanosleep+set}" = set; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19933 if test "$cross_compiling" = yes; then
19934 cf_cv_func_nanosleep=unknown
19936 cat >conftest.$ac_ext <<_ACEOF
19937 #line 19937 "configure"
19938 #include "confdefs.h"
19944 #ifdef HAVE_SYS_TIME_H
19945 #include <sys/time.h>
19949 struct timespec ts1, ts2;
19952 ts1.tv_nsec = 750000000;
19956 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
19957 ${cf_cv_main_return:-return}(code != 0);
19961 rm -f conftest$ac_exeext
19962 if { (eval echo "$as_me:19962: \"$ac_link\"") >&5
19963 (eval $ac_link) 2>&5
19965 echo "$as_me:19965: \$? = $ac_status" >&5
19966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19967 { (eval echo "$as_me:19967: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:19970: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 cf_cv_func_nanosleep=yes
19974 echo "$as_me: program exited with status $ac_status" >&5
19975 echo "$as_me: failed program was:" >&5
19976 cat conftest.$ac_ext >&5
19977 cf_cv_func_nanosleep=no
19979 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19982 echo "$as_me:19982: result: $cf_cv_func_nanosleep" >&5
19983 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
19985 test "$cf_cv_func_nanosleep" = "yes" &&
19986 cat >>confdefs.h <<\EOF
19987 #define HAVE_NANOSLEEP 1
19998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999 echo "$as_me:19999: checking for $ac_header" >&5
20000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 cat >conftest.$ac_ext <<_ACEOF
20005 #line 20005 "configure"
20006 #include "confdefs.h"
20007 #include <$ac_header>
20009 if { (eval echo "$as_me:20009: \"$ac_cpp conftest.$ac_ext\"") >&5
20010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20012 egrep -v '^ *\+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:20015: \$? = $ac_status" >&5
20016 (exit $ac_status); } >/dev/null; then
20017 if test -s conftest.err; then
20018 ac_cpp_err=$ac_c_preproc_warn_flag
20025 if test -z "$ac_cpp_err"; then
20026 eval "$as_ac_Header=yes"
20028 echo "$as_me: failed program was:" >&5
20029 cat conftest.$ac_ext >&5
20030 eval "$as_ac_Header=no"
20032 rm -f conftest.err conftest.$ac_ext
20034 echo "$as_me:20034: result: `eval echo '${'$as_ac_Header'}'`" >&5
20035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20037 cat >>confdefs.h <<EOF
20038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20044 if test "$ac_cv_header_termios_h" = yes ; then
20045 case "$CFLAGS $CPPFLAGS" in
20046 (*-D_POSIX_SOURCE*)
20047 termios_bad=dunno ;;
20048 (*) termios_bad=maybe ;;
20050 if test "$termios_bad" = maybe ; then
20051 echo "$as_me:20051: checking whether termios.h needs _POSIX_SOURCE" >&5
20052 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20054 #line 20054 "configure"
20055 #include "confdefs.h"
20056 #include <termios.h>
20060 struct termios foo; int x = foo.c_iflag
20065 rm -f conftest.$ac_objext
20066 if { (eval echo "$as_me:20066: \"$ac_compile\"") >&5
20067 (eval $ac_compile) 2>&5
20069 echo "$as_me:20069: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -s conftest.$ac_objext'
20072 { (eval echo "$as_me:20072: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20075 echo "$as_me:20075: \$? = $ac_status" >&5
20076 (exit $ac_status); }; }; then
20079 echo "$as_me: failed program was:" >&5
20080 cat conftest.$ac_ext >&5
20082 cat >conftest.$ac_ext <<_ACEOF
20083 #line 20083 "configure"
20084 #include "confdefs.h"
20086 #define _POSIX_SOURCE
20087 #include <termios.h>
20091 struct termios foo; int x = foo.c_iflag
20096 rm -f conftest.$ac_objext
20097 if { (eval echo "$as_me:20097: \"$ac_compile\"") >&5
20098 (eval $ac_compile) 2>&5
20100 echo "$as_me:20100: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -s conftest.$ac_objext'
20103 { (eval echo "$as_me:20103: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20106 echo "$as_me:20106: \$? = $ac_status" >&5
20107 (exit $ac_status); }; }; then
20108 termios_bad=unknown
20110 echo "$as_me: failed program was:" >&5
20111 cat conftest.$ac_ext >&5
20113 cat >>confdefs.h <<\EOF
20114 #define _POSIX_SOURCE 1
20118 rm -f conftest.$ac_objext conftest.$ac_ext
20121 rm -f conftest.$ac_objext conftest.$ac_ext
20122 echo "$as_me:20122: result: $termios_bad" >&5
20123 echo "${ECHO_T}$termios_bad" >&6
20127 echo "$as_me:20127: checking for tcgetattr" >&5
20128 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
20129 if test "${cf_cv_have_tcgetattr+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 cat >conftest.$ac_ext <<_ACEOF
20134 #line 20134 "configure"
20135 #include "confdefs.h"
20137 #include <sys/types.h>
20138 #ifdef HAVE_UNISTD_H
20139 #include <unistd.h>
20141 #ifdef HAVE_TERMIOS_H
20142 #include <termios.h>
20143 #define TTY struct termios
20145 #ifdef HAVE_TERMIO_H
20146 #include <termio.h>
20147 #define TTY struct termio
20156 tcgetattr(1, &foo);
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (eval echo "$as_me:20162: \"$ac_link\"") >&5
20163 (eval $ac_link) 2>&5
20165 echo "$as_me:20165: \$? = $ac_status" >&5
20166 (exit $ac_status); } &&
20167 { ac_try='test -s conftest$ac_exeext'
20168 { (eval echo "$as_me:20168: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20171 echo "$as_me:20171: \$? = $ac_status" >&5
20172 (exit $ac_status); }; }; then
20173 cf_cv_have_tcgetattr=yes
20175 echo "$as_me: failed program was:" >&5
20176 cat conftest.$ac_ext >&5
20177 cf_cv_have_tcgetattr=no
20179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20181 echo "$as_me:20181: result: $cf_cv_have_tcgetattr" >&5
20182 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
20183 test "$cf_cv_have_tcgetattr" = yes &&
20184 cat >>confdefs.h <<\EOF
20185 #define HAVE_TCGETATTR 1
20188 echo "$as_me:20188: checking for vsscanf function or workaround" >&5
20189 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
20190 if test "${cf_cv_func_vsscanf+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 cat >conftest.$ac_ext <<_ACEOF
20195 #line 20195 "configure"
20196 #include "confdefs.h"
20198 #include <stdarg.h>
20205 vsscanf("from", "%d", ap)
20210 rm -f conftest.$ac_objext conftest$ac_exeext
20211 if { (eval echo "$as_me:20211: \"$ac_link\"") >&5
20212 (eval $ac_link) 2>&5
20214 echo "$as_me:20214: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -s conftest$ac_exeext'
20217 { (eval echo "$as_me:20217: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:20220: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 cf_cv_func_vsscanf=vsscanf
20224 echo "$as_me: failed program was:" >&5
20225 cat conftest.$ac_ext >&5
20227 cat >conftest.$ac_ext <<_ACEOF
20228 #line 20228 "configure"
20229 #include "confdefs.h"
20231 #include <stdarg.h>
20238 char *str = "from";
20240 strbuf._flag = _IOREAD;
20241 strbuf._ptr = strbuf._base = (unsigned char *) str;
20242 strbuf._cnt = strlen(str);
20243 strbuf._file = _NFILE;
20244 return (vfscanf(&strbuf, "%d", ap))
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (eval echo "$as_me:20250: \"$ac_link\"") >&5
20251 (eval $ac_link) 2>&5
20253 echo "$as_me:20253: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -s conftest$ac_exeext'
20256 { (eval echo "$as_me:20256: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20259 echo "$as_me:20259: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
20261 cf_cv_func_vsscanf=vfscanf
20263 echo "$as_me: failed program was:" >&5
20264 cat conftest.$ac_ext >&5
20266 cat >conftest.$ac_ext <<_ACEOF
20267 #line 20267 "configure"
20268 #include "confdefs.h"
20270 #include <stdarg.h>
20277 char *str = "from";
20279 strbuf._flag = _IOREAD;
20280 strbuf._ptr = strbuf._base = (unsigned char *) str;
20281 strbuf._cnt = strlen(str);
20282 strbuf._file = _NFILE;
20283 return (_doscan(&strbuf, "%d", ap))
20288 rm -f conftest.$ac_objext conftest$ac_exeext
20289 if { (eval echo "$as_me:20289: \"$ac_link\"") >&5
20290 (eval $ac_link) 2>&5
20292 echo "$as_me:20292: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try='test -s conftest$ac_exeext'
20295 { (eval echo "$as_me:20295: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20298 echo "$as_me:20298: \$? = $ac_status" >&5
20299 (exit $ac_status); }; }; then
20300 cf_cv_func_vsscanf=_doscan
20302 echo "$as_me: failed program was:" >&5
20303 cat conftest.$ac_ext >&5
20305 cf_cv_func_vsscanf=no
20307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20313 echo "$as_me:20313: result: $cf_cv_func_vsscanf" >&5
20314 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
20316 case $cf_cv_func_vsscanf in
20318 cat >>confdefs.h <<\EOF
20319 #define HAVE_VSSCANF 1
20323 cat >>confdefs.h <<\EOF
20324 #define HAVE_VFSCANF 1
20328 cat >>confdefs.h <<\EOF
20329 #define HAVE__DOSCAN 1
20338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20339 echo "$as_me:20339: checking for $ac_header" >&5
20340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 cat >conftest.$ac_ext <<_ACEOF
20345 #line 20345 "configure"
20346 #include "confdefs.h"
20347 #include <$ac_header>
20349 if { (eval echo "$as_me:20349: \"$ac_cpp conftest.$ac_ext\"") >&5
20350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20352 egrep -v '^ *\+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:20355: \$? = $ac_status" >&5
20356 (exit $ac_status); } >/dev/null; then
20357 if test -s conftest.err; then
20358 ac_cpp_err=$ac_c_preproc_warn_flag
20365 if test -z "$ac_cpp_err"; then
20366 eval "$as_ac_Header=yes"
20368 echo "$as_me: failed program was:" >&5
20369 cat conftest.$ac_ext >&5
20370 eval "$as_ac_Header=no"
20372 rm -f conftest.err conftest.$ac_ext
20374 echo "$as_me:20374: result: `eval echo '${'$as_ac_Header'}'`" >&5
20375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20377 cat >>confdefs.h <<EOF
20378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20384 echo "$as_me:20384: checking for working mkstemp" >&5
20385 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
20386 if test "${cf_cv_func_mkstemp+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 if test "$cross_compiling" = yes; then
20392 cf_cv_func_mkstemp=maybe
20394 cat >conftest.$ac_ext <<_ACEOF
20395 #line 20395 "configure"
20396 #include "confdefs.h"
20398 #include <sys/types.h>
20399 #ifdef HAVE_UNISTD_H
20400 #include <unistd.h>
20402 #include <stdlib.h>
20404 #include <string.h>
20405 #include <sys/stat.h>
20408 char *tmpl = "conftestXXXXXX";
20416 for (n = 0; n < 2; ++n) {
20417 strcpy(name[n], tmpl);
20418 if ((fd = mkstemp(name[n])) >= 0) {
20419 if (!strcmp(name[n], tmpl)
20420 || stat(name[n], &sb) != 0
20421 || (sb.st_mode & S_IFMT) != S_IFREG
20422 || (sb.st_mode & 077) != 0) {
20429 && !strcmp(name[0], name[1]))
20431 ${cf_cv_main_return:-return}(result);
20435 rm -f conftest$ac_exeext
20436 if { (eval echo "$as_me:20436: \"$ac_link\"") >&5
20437 (eval $ac_link) 2>&5
20439 echo "$as_me:20439: \$? = $ac_status" >&5
20440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20441 { (eval echo "$as_me:20441: \"$ac_try\"") >&5
20442 (eval $ac_try) 2>&5
20444 echo "$as_me:20444: \$? = $ac_status" >&5
20445 (exit $ac_status); }; }; then
20446 cf_cv_func_mkstemp=yes
20449 echo "$as_me: program exited with status $ac_status" >&5
20450 echo "$as_me: failed program was:" >&5
20451 cat conftest.$ac_ext >&5
20452 cf_cv_func_mkstemp=no
20455 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20459 echo "$as_me:20459: result: $cf_cv_func_mkstemp" >&5
20460 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
20461 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
20462 echo "$as_me:20462: checking for mkstemp" >&5
20463 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
20464 if test "${ac_cv_func_mkstemp+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 cat >conftest.$ac_ext <<_ACEOF
20468 #line 20468 "configure"
20469 #include "confdefs.h"
20470 #define mkstemp autoconf_temporary
20471 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20478 /* We use char because int might match the return type of a gcc2
20479 builtin and then its argument prototype would still apply. */
20480 char mkstemp (void);
20486 /* The GNU C library defines stubs for functions which it implements
20487 to always fail with ENOSYS. Some functions are actually named
20488 something starting with __ and the normal name is an alias. */
20489 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
20490 #error found stub for mkstemp
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (eval echo "$as_me:20499: \"$ac_link\"") >&5
20500 (eval $ac_link) 2>&5
20502 echo "$as_me:20502: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
20504 { ac_try='test -s conftest$ac_exeext'
20505 { (eval echo "$as_me:20505: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:20508: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20510 ac_cv_func_mkstemp=yes
20512 echo "$as_me: failed program was:" >&5
20513 cat conftest.$ac_ext >&5
20514 ac_cv_func_mkstemp=no
20516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20518 echo "$as_me:20518: result: $ac_cv_func_mkstemp" >&5
20519 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
20522 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
20524 cat >>confdefs.h <<\EOF
20525 #define HAVE_MKSTEMP 1
20530 # setup for prototype of fallback for vsscanf()
20532 if test "$cf_cv_func_vsscanf" = vsscanf ; then
20538 if test "x$cross_compiling" = xyes ; then
20539 { echo "$as_me:20539: WARNING: cross compiling: assume setvbuf params not reversed" >&5
20540 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
20542 echo "$as_me:20542: checking whether setvbuf arguments are reversed" >&5
20543 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
20544 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 if test "$cross_compiling" = yes; then
20548 { { echo "$as_me:20548: error: cannot run test program while cross compiling" >&5
20549 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
20550 { (exit 1); exit 1; }; }
20552 cat >conftest.$ac_ext <<_ACEOF
20553 #line 20553 "configure"
20554 #include "confdefs.h"
20556 /* If setvbuf has the reversed format, exit 0. */
20560 /* This call has the arguments reversed.
20561 A reversed system may check and see that the address of main
20562 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
20563 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
20564 $ac_main_return(1);
20565 putc('\r', stdout);
20566 $ac_main_return(0); /* Non-reversed systems segv here. */
20569 rm -f conftest$ac_exeext
20570 if { (eval echo "$as_me:20570: \"$ac_link\"") >&5
20571 (eval $ac_link) 2>&5
20573 echo "$as_me:20573: \$? = $ac_status" >&5
20574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20575 { (eval echo "$as_me:20575: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20578 echo "$as_me:20578: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_cv_func_setvbuf_reversed=yes
20582 echo "$as_me: program exited with status $ac_status" >&5
20583 echo "$as_me: failed program was:" >&5
20584 cat conftest.$ac_ext >&5
20585 ac_cv_func_setvbuf_reversed=no
20587 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20589 rm -f core core.* *.core
20591 echo "$as_me:20591: result: $ac_cv_func_setvbuf_reversed" >&5
20592 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
20593 if test $ac_cv_func_setvbuf_reversed = yes; then
20595 cat >>confdefs.h <<\EOF
20596 #define SETVBUF_REVERSED 1
20602 echo "$as_me:20602: checking for intptr_t" >&5
20603 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
20604 if test "${ac_cv_type_intptr_t+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 cat >conftest.$ac_ext <<_ACEOF
20608 #line 20608 "configure"
20609 #include "confdefs.h"
20610 $ac_includes_default
20614 if ((intptr_t *) 0)
20616 if (sizeof (intptr_t))
20622 rm -f conftest.$ac_objext
20623 if { (eval echo "$as_me:20623: \"$ac_compile\"") >&5
20624 (eval $ac_compile) 2>&5
20626 echo "$as_me:20626: \$? = $ac_status" >&5
20627 (exit $ac_status); } &&
20628 { ac_try='test -s conftest.$ac_objext'
20629 { (eval echo "$as_me:20629: \"$ac_try\"") >&5
20630 (eval $ac_try) 2>&5
20632 echo "$as_me:20632: \$? = $ac_status" >&5
20633 (exit $ac_status); }; }; then
20634 ac_cv_type_intptr_t=yes
20636 echo "$as_me: failed program was:" >&5
20637 cat conftest.$ac_ext >&5
20638 ac_cv_type_intptr_t=no
20640 rm -f conftest.$ac_objext conftest.$ac_ext
20642 echo "$as_me:20642: result: $ac_cv_type_intptr_t" >&5
20643 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
20644 if test $ac_cv_type_intptr_t = yes; then
20648 cat >>confdefs.h <<EOF
20649 #define intptr_t long
20654 echo "$as_me:20654: checking for ssize_t" >&5
20655 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
20656 if test "${ac_cv_type_ssize_t+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 cat >conftest.$ac_ext <<_ACEOF
20660 #line 20660 "configure"
20661 #include "confdefs.h"
20662 $ac_includes_default
20668 if (sizeof (ssize_t))
20674 rm -f conftest.$ac_objext
20675 if { (eval echo "$as_me:20675: \"$ac_compile\"") >&5
20676 (eval $ac_compile) 2>&5
20678 echo "$as_me:20678: \$? = $ac_status" >&5
20679 (exit $ac_status); } &&
20680 { ac_try='test -s conftest.$ac_objext'
20681 { (eval echo "$as_me:20681: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20684 echo "$as_me:20684: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_cv_type_ssize_t=yes
20688 echo "$as_me: failed program was:" >&5
20689 cat conftest.$ac_ext >&5
20690 ac_cv_type_ssize_t=no
20692 rm -f conftest.$ac_objext conftest.$ac_ext
20694 echo "$as_me:20694: result: $ac_cv_type_ssize_t" >&5
20695 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
20696 if test $ac_cv_type_ssize_t = yes; then
20700 cat >>confdefs.h <<EOF
20701 #define ssize_t int
20706 echo "$as_me:20706: checking for type sigaction_t" >&5
20707 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
20708 if test "${cf_cv_type_sigaction+set}" = set; then
20709 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 cat >conftest.$ac_ext <<_ACEOF
20713 #line 20713 "configure"
20714 #include "confdefs.h"
20716 #include <signal.h>
20725 rm -f conftest.$ac_objext
20726 if { (eval echo "$as_me:20726: \"$ac_compile\"") >&5
20727 (eval $ac_compile) 2>&5
20729 echo "$as_me:20729: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
20731 { ac_try='test -s conftest.$ac_objext'
20732 { (eval echo "$as_me:20732: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20735 echo "$as_me:20735: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737 cf_cv_type_sigaction=yes
20739 echo "$as_me: failed program was:" >&5
20740 cat conftest.$ac_ext >&5
20741 cf_cv_type_sigaction=no
20743 rm -f conftest.$ac_objext conftest.$ac_ext
20746 echo "$as_me:20746: result: $cf_cv_type_sigaction" >&5
20747 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
20748 test "$cf_cv_type_sigaction" = yes &&
20749 cat >>confdefs.h <<\EOF
20750 #define HAVE_TYPE_SIGACTION 1
20753 echo "$as_me:20753: checking declaration of size-change" >&5
20754 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
20755 if test "${cf_cv_sizechange+set}" = set; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 cf_cv_sizechange=unknown
20760 cf_save_CPPFLAGS="$CPPFLAGS"
20762 for cf_opts in "" "NEED_PTEM_H"
20765 CPPFLAGS="$cf_save_CPPFLAGS"
20766 if test -n "$cf_opts"
20769 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20770 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
20773 cat >conftest.$ac_ext <<_ACEOF
20774 #line 20774 "configure"
20775 #include "confdefs.h"
20776 #include <sys/types.h>
20777 #ifdef HAVE_TERMIOS_H
20778 #include <termios.h>
20780 #ifdef HAVE_TERMIO_H
20781 #include <termio.h>
20786 /* This is a workaround for SCO: they neglected to define struct winsize in
20787 * termios.h -- it's only in termio.h and ptem.h
20789 #include <sys/stream.h>
20790 #include <sys/ptem.h>
20793 #ifdef HAVE_SYS_IOCTL_H
20794 #include <sys/ioctl.h>
20802 struct ttysize win; /* SunOS 3.0... */
20803 int y = win.ts_lines;
20804 int x = win.ts_cols;
20807 struct winsize win; /* everything else */
20808 int y = win.ws_row;
20809 int x = win.ws_col;
20811 no TIOCGSIZE or TIOCGWINSZ
20812 #endif /* TIOCGWINSZ */
20813 #endif /* TIOCGSIZE */
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:20820: \"$ac_compile\"") >&5
20821 (eval $ac_compile) 2>&5
20823 echo "$as_me:20823: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -s conftest.$ac_objext'
20826 { (eval echo "$as_me:20826: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20829 echo "$as_me:20829: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20831 cf_cv_sizechange=yes
20833 echo "$as_me: failed program was:" >&5
20834 cat conftest.$ac_ext >&5
20835 cf_cv_sizechange=no
20837 rm -f conftest.$ac_objext conftest.$ac_ext
20839 CPPFLAGS="$cf_save_CPPFLAGS"
20840 if test "$cf_cv_sizechange" = yes ; then
20841 echo "size-change succeeded ($cf_opts)" >&5
20842 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
20848 echo "$as_me:20848: result: $cf_cv_sizechange" >&5
20849 echo "${ECHO_T}$cf_cv_sizechange" >&6
20850 if test "$cf_cv_sizechange" != no ; then
20852 cat >>confdefs.h <<\EOF
20853 #define HAVE_SIZECHANGE 1
20856 case $cf_cv_sizechange in
20858 cat >>confdefs.h <<EOF
20859 #define $cf_cv_sizechange 1
20866 echo "$as_me:20866: checking for memmove" >&5
20867 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
20868 if test "${ac_cv_func_memmove+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 cat >conftest.$ac_ext <<_ACEOF
20872 #line 20872 "configure"
20873 #include "confdefs.h"
20874 #define memmove autoconf_temporary
20875 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20882 /* We use char because int might match the return type of a gcc2
20883 builtin and then its argument prototype would still apply. */
20884 char memmove (void);
20890 /* The GNU C library defines stubs for functions which it implements
20891 to always fail with ENOSYS. Some functions are actually named
20892 something starting with __ and the normal name is an alias. */
20893 #if defined (__stub_memmove) || defined (__stub___memmove)
20894 #error found stub for memmove
20902 rm -f conftest.$ac_objext conftest$ac_exeext
20903 if { (eval echo "$as_me:20903: \"$ac_link\"") >&5
20904 (eval $ac_link) 2>&5
20906 echo "$as_me:20906: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
20908 { ac_try='test -s conftest$ac_exeext'
20909 { (eval echo "$as_me:20909: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20912 echo "$as_me:20912: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 ac_cv_func_memmove=yes
20916 echo "$as_me: failed program was:" >&5
20917 cat conftest.$ac_ext >&5
20918 ac_cv_func_memmove=no
20920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20922 echo "$as_me:20922: result: $ac_cv_func_memmove" >&5
20923 echo "${ECHO_T}$ac_cv_func_memmove" >&6
20924 if test $ac_cv_func_memmove = yes; then
20928 echo "$as_me:20928: checking for bcopy" >&5
20929 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
20930 if test "${ac_cv_func_bcopy+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 cat >conftest.$ac_ext <<_ACEOF
20934 #line 20934 "configure"
20935 #include "confdefs.h"
20936 #define bcopy autoconf_temporary
20937 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20944 /* We use char because int might match the return type of a gcc2
20945 builtin and then its argument prototype would still apply. */
20952 /* The GNU C library defines stubs for functions which it implements
20953 to always fail with ENOSYS. Some functions are actually named
20954 something starting with __ and the normal name is an alias. */
20955 #if defined (__stub_bcopy) || defined (__stub___bcopy)
20956 #error found stub for bcopy
20964 rm -f conftest.$ac_objext conftest$ac_exeext
20965 if { (eval echo "$as_me:20965: \"$ac_link\"") >&5
20966 (eval $ac_link) 2>&5
20968 echo "$as_me:20968: \$? = $ac_status" >&5
20969 (exit $ac_status); } &&
20970 { ac_try='test -s conftest$ac_exeext'
20971 { (eval echo "$as_me:20971: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20974 echo "$as_me:20974: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 ac_cv_func_bcopy=yes
20978 echo "$as_me: failed program was:" >&5
20979 cat conftest.$ac_ext >&5
20980 ac_cv_func_bcopy=no
20982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20984 echo "$as_me:20984: result: $ac_cv_func_bcopy" >&5
20985 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
20986 if test $ac_cv_func_bcopy = yes; then
20988 echo "$as_me:20988: checking if bcopy does overlapping moves" >&5
20989 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
20990 if test "${cf_cv_good_bcopy+set}" = set; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 if test "$cross_compiling" = yes; then
20995 cf_cv_good_bcopy=unknown
20997 cat >conftest.$ac_ext <<_ACEOF
20998 #line 20998 "configure"
20999 #include "confdefs.h"
21002 static char data[] = "abcdefghijklmnopqrstuwwxyz";
21004 bcopy(data, temp, sizeof(data));
21005 bcopy(temp+10, temp, 15);
21006 bcopy(temp+5, temp+15, 10);
21007 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
21011 rm -f conftest$ac_exeext
21012 if { (eval echo "$as_me:21012: \"$ac_link\"") >&5
21013 (eval $ac_link) 2>&5
21015 echo "$as_me:21015: \$? = $ac_status" >&5
21016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21017 { (eval echo "$as_me:21017: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:21020: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 cf_cv_good_bcopy=yes
21024 echo "$as_me: program exited with status $ac_status" >&5
21025 echo "$as_me: failed program was:" >&5
21026 cat conftest.$ac_ext >&5
21027 cf_cv_good_bcopy=no
21029 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21033 echo "$as_me:21033: result: $cf_cv_good_bcopy" >&5
21034 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
21037 cf_cv_good_bcopy=no
21040 if test "$cf_cv_good_bcopy" = yes ; then
21042 cat >>confdefs.h <<\EOF
21043 #define USE_OK_BCOPY 1
21048 cat >>confdefs.h <<\EOF
21049 #define USE_MY_MEMMOVE 1
21056 tty 2>&1 >/dev/null || {
21057 for ac_func in posix_openpt
21059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21060 echo "$as_me:21060: checking for $ac_func" >&5
21061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21062 if eval "test \"\${$as_ac_var+set}\" = set"; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 cat >conftest.$ac_ext <<_ACEOF
21066 #line 21066 "configure"
21067 #include "confdefs.h"
21068 #define $ac_func autoconf_temporary
21069 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21076 /* We use char because int might match the return type of a gcc2
21077 builtin and then its argument prototype would still apply. */
21078 char $ac_func (void);
21084 /* The GNU C library defines stubs for functions which it implements
21085 to always fail with ENOSYS. Some functions are actually named
21086 something starting with __ and the normal name is an alias. */
21087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21088 #error found stub for $ac_func
21091 return $ac_func ();
21096 rm -f conftest.$ac_objext conftest$ac_exeext
21097 if { (eval echo "$as_me:21097: \"$ac_link\"") >&5
21098 (eval $ac_link) 2>&5
21100 echo "$as_me:21100: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
21102 { ac_try='test -s conftest$ac_exeext'
21103 { (eval echo "$as_me:21103: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:21106: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 eval "$as_ac_var=yes"
21110 echo "$as_me: failed program was:" >&5
21111 cat conftest.$ac_ext >&5
21112 eval "$as_ac_var=no"
21114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21116 echo "$as_me:21116: result: `eval echo '${'$as_ac_var'}'`" >&5
21117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21118 if test `eval echo '${'$as_ac_var'}'` = yes; then
21119 cat >>confdefs.h <<EOF
21120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21126 echo "$as_me:21126: checking if poll really works" >&5
21127 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
21128 if test "${cf_cv_working_poll+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 if test "$cross_compiling" = yes; then
21133 cf_cv_working_poll=unknown
21135 cat >conftest.$ac_ext <<_ACEOF
21136 #line 21136 "configure"
21137 #include "confdefs.h"
21139 #include <stdlib.h>
21141 #include <unistd.h>
21146 #include <sys/poll.h>
21149 struct pollfd myfds;
21152 /* check for Darwin bug with respect to "devices" */
21153 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
21156 myfds.events = POLLIN;
21159 ret = poll(&myfds, 1, 100);
21161 if (ret < 0 || (myfds.revents & POLLNVAL)) {
21166 fd = open("/dev/tty", 2); /* O_RDWR */
21168 #ifdef HAVE_POSIX_OPENPT
21170 fd = posix_openpt(O_RDWR);
21175 /* also check with standard input */
21177 myfds.events = POLLIN;
21179 ret = poll(&myfds, 1, 100);
21184 ${cf_cv_main_return:-return}(ret < 0);
21187 rm -f conftest$ac_exeext
21188 if { (eval echo "$as_me:21188: \"$ac_link\"") >&5
21189 (eval $ac_link) 2>&5
21191 echo "$as_me:21191: \$? = $ac_status" >&5
21192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21193 { (eval echo "$as_me:21193: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21196 echo "$as_me:21196: \$? = $ac_status" >&5
21197 (exit $ac_status); }; }; then
21198 cf_cv_working_poll=yes
21200 echo "$as_me: program exited with status $ac_status" >&5
21201 echo "$as_me: failed program was:" >&5
21202 cat conftest.$ac_ext >&5
21203 cf_cv_working_poll=no
21205 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21208 echo "$as_me:21208: result: $cf_cv_working_poll" >&5
21209 echo "${ECHO_T}$cf_cv_working_poll" >&6
21210 test "$cf_cv_working_poll" = "yes" &&
21211 cat >>confdefs.h <<\EOF
21212 #define HAVE_WORKING_POLL 1
21215 echo "$as_me:21215: checking for va_copy" >&5
21216 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21217 if test "${cf_cv_have_va_copy+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 cat >conftest.$ac_ext <<_ACEOF
21222 #line 21222 "configure"
21223 #include "confdefs.h"
21225 #include <stdarg.h>
21231 static va_list dst;
21232 static va_list src;
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (eval echo "$as_me:21239: \"$ac_link\"") >&5
21240 (eval $ac_link) 2>&5
21242 echo "$as_me:21242: \$? = $ac_status" >&5
21243 (exit $ac_status); } &&
21244 { ac_try='test -s conftest$ac_exeext'
21245 { (eval echo "$as_me:21245: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21248 echo "$as_me:21248: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 cf_cv_have_va_copy=yes
21252 echo "$as_me: failed program was:" >&5
21253 cat conftest.$ac_ext >&5
21254 cf_cv_have_va_copy=no
21256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21258 echo "$as_me:21258: result: $cf_cv_have_va_copy" >&5
21259 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
21261 if test "$cf_cv_have_va_copy" = yes;
21264 cat >>confdefs.h <<\EOF
21265 #define HAVE_VA_COPY 1
21268 else # !cf_cv_have_va_copy
21270 echo "$as_me:21270: checking for __va_copy" >&5
21271 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
21272 if test "${cf_cv_have___va_copy+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 cat >conftest.$ac_ext <<_ACEOF
21277 #line 21277 "configure"
21278 #include "confdefs.h"
21280 #include <stdarg.h>
21286 static va_list dst;
21287 static va_list src;
21288 __va_copy(dst, src)
21293 rm -f conftest.$ac_objext conftest$ac_exeext
21294 if { (eval echo "$as_me:21294: \"$ac_link\"") >&5
21295 (eval $ac_link) 2>&5
21297 echo "$as_me:21297: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
21299 { ac_try='test -s conftest$ac_exeext'
21300 { (eval echo "$as_me:21300: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:21303: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 cf_cv_have___va_copy=yes
21307 echo "$as_me: failed program was:" >&5
21308 cat conftest.$ac_ext >&5
21309 cf_cv_have___va_copy=no
21311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21313 echo "$as_me:21313: result: $cf_cv_have___va_copy" >&5
21314 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
21316 if test "$cf_cv_have___va_copy" = yes
21319 cat >>confdefs.h <<\EOF
21320 #define HAVE___VA_COPY 1
21323 else # !cf_cv_have___va_copy
21325 echo "$as_me:21325: checking for __builtin_va_copy" >&5
21326 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
21327 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 cat >conftest.$ac_ext <<_ACEOF
21332 #line 21332 "configure"
21333 #include "confdefs.h"
21335 #include <stdarg.h>
21341 static va_list dst;
21342 static va_list src;
21343 __builtin_va_copy(dst, src)
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (eval echo "$as_me:21349: \"$ac_link\"") >&5
21350 (eval $ac_link) 2>&5
21352 echo "$as_me:21352: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
21354 { ac_try='test -s conftest$ac_exeext'
21355 { (eval echo "$as_me:21355: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21358 echo "$as_me:21358: \$? = $ac_status" >&5
21359 (exit $ac_status); }; }; then
21360 cf_cv_have___builtin_va_copy=yes
21362 echo "$as_me: failed program was:" >&5
21363 cat conftest.$ac_ext >&5
21364 cf_cv_have___builtin_va_copy=no
21366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21368 echo "$as_me:21368: result: $cf_cv_have___builtin_va_copy" >&5
21369 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
21371 test "$cf_cv_have___builtin_va_copy" = yes &&
21373 cat >>confdefs.h <<\EOF
21374 #define HAVE___BUILTIN_VA_COPY 1
21377 fi # cf_cv_have___va_copy
21379 fi # cf_cv_have_va_copy
21381 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
21386 echo "$as_me:21386: checking if we can simply copy va_list" >&5
21387 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
21388 if test "${cf_cv_pointer_va_list+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 cat >conftest.$ac_ext <<_ACEOF
21393 #line 21393 "configure"
21394 #include "confdefs.h"
21396 #include <stdarg.h>
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (eval echo "$as_me:21410: \"$ac_link\"") >&5
21411 (eval $ac_link) 2>&5
21413 echo "$as_me:21413: \$? = $ac_status" >&5
21414 (exit $ac_status); } &&
21415 { ac_try='test -s conftest$ac_exeext'
21416 { (eval echo "$as_me:21416: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21419 echo "$as_me:21419: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 cf_cv_pointer_va_list=yes
21423 echo "$as_me: failed program was:" >&5
21424 cat conftest.$ac_ext >&5
21425 cf_cv_pointer_va_list=no
21427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21429 echo "$as_me:21429: result: $cf_cv_pointer_va_list" >&5
21430 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
21432 if test "$cf_cv_pointer_va_list" = no
21434 echo "$as_me:21434: checking if we can copy va_list indirectly" >&5
21435 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
21436 if test "${cf_cv_array_va_list+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 cat >conftest.$ac_ext <<_ACEOF
21441 #line 21441 "configure"
21442 #include "confdefs.h"
21444 #include <stdarg.h>
21457 rm -f conftest.$ac_objext conftest$ac_exeext
21458 if { (eval echo "$as_me:21458: \"$ac_link\"") >&5
21459 (eval $ac_link) 2>&5
21461 echo "$as_me:21461: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -s conftest$ac_exeext'
21464 { (eval echo "$as_me:21464: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21467 echo "$as_me:21467: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 cf_cv_array_va_list=yes
21471 echo "$as_me: failed program was:" >&5
21472 cat conftest.$ac_ext >&5
21473 cf_cv_array_va_list=no
21475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21477 echo "$as_me:21477: result: $cf_cv_array_va_list" >&5
21478 echo "${ECHO_T}$cf_cv_array_va_list" >&6
21479 test "$cf_cv_array_va_list" = yes &&
21480 cat >>confdefs.h <<\EOF
21481 #define ARRAY_VA_LIST 1
21488 echo "$as_me:21488: checking for pid_t" >&5
21489 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21490 if test "${ac_cv_type_pid_t+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 cat >conftest.$ac_ext <<_ACEOF
21494 #line 21494 "configure"
21495 #include "confdefs.h"
21496 $ac_includes_default
21502 if (sizeof (pid_t))
21508 rm -f conftest.$ac_objext
21509 if { (eval echo "$as_me:21509: \"$ac_compile\"") >&5
21510 (eval $ac_compile) 2>&5
21512 echo "$as_me:21512: \$? = $ac_status" >&5
21513 (exit $ac_status); } &&
21514 { ac_try='test -s conftest.$ac_objext'
21515 { (eval echo "$as_me:21515: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21518 echo "$as_me:21518: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21520 ac_cv_type_pid_t=yes
21522 echo "$as_me: failed program was:" >&5
21523 cat conftest.$ac_ext >&5
21524 ac_cv_type_pid_t=no
21526 rm -f conftest.$ac_objext conftest.$ac_ext
21528 echo "$as_me:21528: result: $ac_cv_type_pid_t" >&5
21529 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21530 if test $ac_cv_type_pid_t = yes; then
21534 cat >>confdefs.h <<EOF
21540 for ac_header in unistd.h vfork.h
21542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21543 echo "$as_me:21543: checking for $ac_header" >&5
21544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 cat >conftest.$ac_ext <<_ACEOF
21549 #line 21549 "configure"
21550 #include "confdefs.h"
21551 #include <$ac_header>
21553 if { (eval echo "$as_me:21553: \"$ac_cpp conftest.$ac_ext\"") >&5
21554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21556 egrep -v '^ *\+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:21559: \$? = $ac_status" >&5
21560 (exit $ac_status); } >/dev/null; then
21561 if test -s conftest.err; then
21562 ac_cpp_err=$ac_c_preproc_warn_flag
21569 if test -z "$ac_cpp_err"; then
21570 eval "$as_ac_Header=yes"
21572 echo "$as_me: failed program was:" >&5
21573 cat conftest.$ac_ext >&5
21574 eval "$as_ac_Header=no"
21576 rm -f conftest.err conftest.$ac_ext
21578 echo "$as_me:21578: result: `eval echo '${'$as_ac_Header'}'`" >&5
21579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21581 cat >>confdefs.h <<EOF
21582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21588 for ac_func in fork vfork
21590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21591 echo "$as_me:21591: checking for $ac_func" >&5
21592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21593 if eval "test \"\${$as_ac_var+set}\" = set"; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 cat >conftest.$ac_ext <<_ACEOF
21597 #line 21597 "configure"
21598 #include "confdefs.h"
21599 #define $ac_func autoconf_temporary
21600 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21607 /* We use char because int might match the return type of a gcc2
21608 builtin and then its argument prototype would still apply. */
21609 char $ac_func (void);
21615 /* The GNU C library defines stubs for functions which it implements
21616 to always fail with ENOSYS. Some functions are actually named
21617 something starting with __ and the normal name is an alias. */
21618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21619 #error found stub for $ac_func
21622 return $ac_func ();
21627 rm -f conftest.$ac_objext conftest$ac_exeext
21628 if { (eval echo "$as_me:21628: \"$ac_link\"") >&5
21629 (eval $ac_link) 2>&5
21631 echo "$as_me:21631: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try='test -s conftest$ac_exeext'
21634 { (eval echo "$as_me:21634: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21637 echo "$as_me:21637: \$? = $ac_status" >&5
21638 (exit $ac_status); }; }; then
21639 eval "$as_ac_var=yes"
21641 echo "$as_me: failed program was:" >&5
21642 cat conftest.$ac_ext >&5
21643 eval "$as_ac_var=no"
21645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21647 echo "$as_me:21647: result: `eval echo '${'$as_ac_var'}'`" >&5
21648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21649 if test `eval echo '${'$as_ac_var'}'` = yes; then
21650 cat >>confdefs.h <<EOF
21651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21657 ac_cv_func_fork_works=$ac_cv_func_fork
21658 if test "x$ac_cv_func_fork" = xyes; then
21659 echo "$as_me:21659: checking for working fork" >&5
21660 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21661 if test "${ac_cv_func_fork_works+set}" = set; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 if test "$cross_compiling" = yes; then
21665 ac_cv_func_fork_works=cross
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* By Rüdiger Kuhlmann. */
21669 #include <sys/types.h>
21671 # include <unistd.h>
21673 /* Some systems only have a dummy stub for fork() */
21677 $ac_main_return (1);
21678 $ac_main_return (0);
21681 rm -f conftest$ac_exeext
21682 if { (eval echo "$as_me:21682: \"$ac_link\"") >&5
21683 (eval $ac_link) 2>&5
21685 echo "$as_me:21685: \$? = $ac_status" >&5
21686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21687 { (eval echo "$as_me:21687: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:21690: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 ac_cv_func_fork_works=yes
21694 echo "$as_me: program exited with status $ac_status" >&5
21695 echo "$as_me: failed program was:" >&5
21696 cat conftest.$ac_ext >&5
21697 ac_cv_func_fork_works=no
21699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21702 echo "$as_me:21702: result: $ac_cv_func_fork_works" >&5
21703 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21706 if test "x$ac_cv_func_fork_works" = xcross; then
21708 *-*-amigaos* | *-*-msdosdjgpp*)
21709 # Override, as these systems have only a dummy fork() stub
21710 ac_cv_func_fork_works=no
21713 ac_cv_func_fork_works=yes
21716 { echo "$as_me:21716: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
21717 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
21719 ac_cv_func_vfork_works=$ac_cv_func_vfork
21720 if test "x$ac_cv_func_vfork" = xyes; then
21721 echo "$as_me:21721: checking for working vfork" >&5
21722 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21723 if test "${ac_cv_func_vfork_works+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 if test "$cross_compiling" = yes; then
21727 ac_cv_func_vfork_works=cross
21729 cat >conftest.$ac_ext <<_ACEOF
21730 #line 21730 "configure"
21731 #include "confdefs.h"
21732 /* Thanks to Paul Eggert for this test. */
21734 #include <sys/types.h>
21735 #include <sys/stat.h>
21737 # include <unistd.h>
21740 # include <vfork.h>
21742 /* On some sparc systems, changes by the child to local and incoming
21743 argument registers are propagated back to the parent. The compiler
21744 is told about this with #include <vfork.h>, but some compilers
21745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21746 static variable whose address is put into a register that is
21747 clobbered by the vfork. */
21750 sparc_address_test (int arg)
21752 sparc_address_test (arg) int arg;
21755 static pid_t child;
21773 pid_t parent = getpid ();
21776 sparc_address_test ();
21781 /* Here is another test for sparc vfork register problems. This
21782 test uses lots of local variables, at least as many local
21783 variables as main has allocated so far including compiler
21784 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21785 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21786 reuse the register of parent for one of the local variables,
21787 since it will think that parent can't possibly be used any more
21788 in this routine. Assigning to the local variable will thus
21789 munge parent in the parent process. */
21791 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21792 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21793 /* Convince the compiler that p..p7 are live; otherwise, it might
21794 use the same hardware register for all 8 local variables. */
21795 if (p != p1 || p != p2 || p != p3 || p != p4
21796 || p != p5 || p != p6 || p != p7)
21799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21800 from child file descriptors. If the child closes a descriptor
21801 before it execs or exits, this munges the parent's descriptor
21802 as well. Test for this by closing stdout in the child. */
21803 _exit(close(fileno(stdout)) != 0);
21808 while (wait(&status) != child)
21811 /* Was there some problem with vforking? */
21814 /* Did the child fail? (This shouldn't happen.) */
21817 /* Did the vfork/compiler bug occur? */
21818 || parent != getpid()
21820 /* Did the file descriptor bug occur? */
21821 || fstat(fileno(stdout), &st) != 0
21826 rm -f conftest$ac_exeext
21827 if { (eval echo "$as_me:21827: \"$ac_link\"") >&5
21828 (eval $ac_link) 2>&5
21830 echo "$as_me:21830: \$? = $ac_status" >&5
21831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21832 { (eval echo "$as_me:21832: \"$ac_try\"") >&5
21833 (eval $ac_try) 2>&5
21835 echo "$as_me:21835: \$? = $ac_status" >&5
21836 (exit $ac_status); }; }; then
21837 ac_cv_func_vfork_works=yes
21839 echo "$as_me: program exited with status $ac_status" >&5
21840 echo "$as_me: failed program was:" >&5
21841 cat conftest.$ac_ext >&5
21842 ac_cv_func_vfork_works=no
21844 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21847 echo "$as_me:21847: result: $ac_cv_func_vfork_works" >&5
21848 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21851 if test "x$ac_cv_func_fork_works" = xcross; then
21852 ac_cv_func_vfork_works=ac_cv_func_vfork
21853 { echo "$as_me:21853: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
21854 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
21857 if test "x$ac_cv_func_vfork_works" = xyes; then
21859 cat >>confdefs.h <<\EOF
21860 #define HAVE_WORKING_VFORK 1
21865 cat >>confdefs.h <<\EOF
21870 if test "x$ac_cv_func_fork_works" = xyes; then
21872 cat >>confdefs.h <<\EOF
21873 #define HAVE_WORKING_FORK 1
21878 echo "$as_me:21878: checking if fopen accepts explicit binary mode" >&5
21879 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
21880 if test "${cf_cv_fopen_bin_r+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 if test "$cross_compiling" = yes; then
21885 cf_cv_fopen_bin_r=unknown
21887 cat >conftest.$ac_ext <<_ACEOF
21888 #line 21888 "configure"
21889 #include "confdefs.h"
21893 FILE *fp = fopen("conftest.tmp", "wb");
21897 for (p = 0; p < 256; ++p) {
21901 fp = fopen("conftest.tmp", "rb");
21903 for (p = 0; p < 256; ++p) {
21916 ${cf_cv_main_return:-return} (rc);
21920 rm -f conftest$ac_exeext
21921 if { (eval echo "$as_me:21921: \"$ac_link\"") >&5
21922 (eval $ac_link) 2>&5
21924 echo "$as_me:21924: \$? = $ac_status" >&5
21925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21926 { (eval echo "$as_me:21926: \"$ac_try\"") >&5
21927 (eval $ac_try) 2>&5
21929 echo "$as_me:21929: \$? = $ac_status" >&5
21930 (exit $ac_status); }; }; then
21931 cf_cv_fopen_bin_r=yes
21933 echo "$as_me: program exited with status $ac_status" >&5
21934 echo "$as_me: failed program was:" >&5
21935 cat conftest.$ac_ext >&5
21936 cf_cv_fopen_bin_r=no
21938 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21942 echo "$as_me:21942: result: $cf_cv_fopen_bin_r" >&5
21943 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
21944 test "x$cf_cv_fopen_bin_r" != xno && cat >>confdefs.h <<\EOF
21945 #define USE_FOPEN_BIN_R 1
21948 # special check for test/ditto.c
21950 echo "$as_me:21950: checking for openpty in -lutil" >&5
21951 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
21952 if test "${ac_cv_lib_util_openpty+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 ac_check_lib_save_LIBS=$LIBS
21956 LIBS="-lutil $LIBS"
21957 cat >conftest.$ac_ext <<_ACEOF
21958 #line 21958 "configure"
21959 #include "confdefs.h"
21961 /* Override any gcc2 internal prototype to avoid an error. */
21965 /* We use char because int might match the return type of a gcc2
21966 builtin and then its argument prototype would still apply. */
21976 rm -f conftest.$ac_objext conftest$ac_exeext
21977 if { (eval echo "$as_me:21977: \"$ac_link\"") >&5
21978 (eval $ac_link) 2>&5
21980 echo "$as_me:21980: \$? = $ac_status" >&5
21981 (exit $ac_status); } &&
21982 { ac_try='test -s conftest$ac_exeext'
21983 { (eval echo "$as_me:21983: \"$ac_try\"") >&5
21984 (eval $ac_try) 2>&5
21986 echo "$as_me:21986: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 ac_cv_lib_util_openpty=yes
21990 echo "$as_me: failed program was:" >&5
21991 cat conftest.$ac_ext >&5
21992 ac_cv_lib_util_openpty=no
21994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21995 LIBS=$ac_check_lib_save_LIBS
21997 echo "$as_me:21997: result: $ac_cv_lib_util_openpty" >&5
21998 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
21999 if test $ac_cv_lib_util_openpty = yes; then
22005 echo "$as_me:22005: checking for openpty header" >&5
22006 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
22007 if test "${cf_cv_func_openpty+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22011 cf_save_LIBS="$LIBS"
22012 test $cf_cv_lib_util = yes && {
22013 cf_add_libs="-lutil"
22014 # Filter out duplicates - this happens with badly-designed ".pc" files...
22015 for cf_add_1lib in $LIBS
22017 for cf_add_2lib in $cf_add_libs
22019 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22025 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22027 LIBS="$cf_add_libs"
22029 for cf_header in pty.h libutil.h util.h
22031 cat >conftest.$ac_ext <<_ACEOF
22032 #line 22032 "configure"
22033 #include "confdefs.h"
22035 #include <$cf_header>
22041 int x = openpty((int *)0, (int *)0, (char *)0,
22042 (struct termios *)0, (struct winsize *)0);
22048 rm -f conftest.$ac_objext conftest$ac_exeext
22049 if { (eval echo "$as_me:22049: \"$ac_link\"") >&5
22050 (eval $ac_link) 2>&5
22052 echo "$as_me:22052: \$? = $ac_status" >&5
22053 (exit $ac_status); } &&
22054 { ac_try='test -s conftest$ac_exeext'
22055 { (eval echo "$as_me:22055: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22058 echo "$as_me:22058: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
22061 cf_cv_func_openpty=$cf_header
22065 echo "$as_me: failed program was:" >&5
22066 cat conftest.$ac_ext >&5
22068 cf_cv_func_openpty=no
22071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22073 LIBS="$cf_save_LIBS"
22076 echo "$as_me:22076: result: $cf_cv_func_openpty" >&5
22077 echo "${ECHO_T}$cf_cv_func_openpty" >&6
22079 if test "$cf_cv_func_openpty" != no ; then
22081 cat >>confdefs.h <<EOF
22082 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
22085 cat >>confdefs.h <<\EOF
22086 #define USE_XTERM_PTY 1
22089 if test "x$cf_cv_lib_util" = xyes ; then
22091 cf_add_libs="-lutil"
22092 # Filter out duplicates - this happens with badly-designed ".pc" files...
22093 for cf_add_1lib in $TEST_LIBS
22095 for cf_add_2lib in $cf_add_libs
22097 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22103 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22105 TEST_LIBS="$cf_add_libs"
22110 if test "$with_hashed_db" != no ; then
22112 cat >>confdefs.h <<\EOF
22113 #define USE_HASHED_DB 1
22116 case $with_hashed_db in
22120 if test -d "$with_hashed_db" ; then
22122 if test -n "$with_hashed_db/include" ; then
22123 for cf_add_incdir in $with_hashed_db/include
22125 while test $cf_add_incdir != /usr/include
22127 if test -d $cf_add_incdir
22130 if test -n "$CFLAGS$CPPFLAGS" ; then
22131 # a loop is needed to ensure we can add subdirs of existing dirs
22132 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22133 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22134 cf_have_incdir=yes; break
22139 if test "$cf_have_incdir" = no ; then
22140 if test "$cf_add_incdir" = /usr/local/include ; then
22141 if test "$GCC" = yes
22143 cf_save_CPPFLAGS=$CPPFLAGS
22145 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22146 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22148 cat >conftest.$ac_ext <<_ACEOF
22149 #line 22149 "configure"
22150 #include "confdefs.h"
22160 rm -f conftest.$ac_objext
22161 if { (eval echo "$as_me:22161: \"$ac_compile\"") >&5
22162 (eval $ac_compile) 2>&5
22164 echo "$as_me:22164: \$? = $ac_status" >&5
22165 (exit $ac_status); } &&
22166 { ac_try='test -s conftest.$ac_objext'
22167 { (eval echo "$as_me:22167: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:22170: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22174 echo "$as_me: failed program was:" >&5
22175 cat conftest.$ac_ext >&5
22178 rm -f conftest.$ac_objext conftest.$ac_ext
22179 CPPFLAGS=$cf_save_CPPFLAGS
22184 if test "$cf_have_incdir" = no ; then
22185 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22187 echo "${as_me:-configure}:22187: testing adding $cf_add_incdir to include-path ..." 1>&5
22189 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22191 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22192 test "$cf_top_incdir" = "$cf_add_incdir" && break
22193 cf_add_incdir="$cf_top_incdir"
22204 if test -n "$with_hashed_db/lib" ; then
22205 for cf_add_libdir in $with_hashed_db/lib
22207 if test $cf_add_libdir = /usr/lib ; then
22209 elif test -d $cf_add_libdir
22212 if test -n "$LDFLAGS$LIBS" ; then
22213 # a loop is needed to ensure we can add subdirs of existing dirs
22214 for cf_test_libdir in $LDFLAGS $LIBS ; do
22215 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22216 cf_have_libdir=yes; break
22220 if test "$cf_have_libdir" = no ; then
22221 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22223 echo "${as_me:-configure}:22223: testing adding $cf_add_libdir to library-path ..." 1>&5
22225 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
22232 case "$with_hashed_db" in
22234 { echo "$as_me:22234: WARNING: no such directory $with_hashed_db" >&5
22235 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
22241 test "x$prefix" != "xNONE" && \
22242 test -d "$prefix" && \
22244 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
22245 test -d $prefix/include && cf_search="$cf_search $prefix/include"
22246 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
22247 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
22248 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
22249 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
22252 for cf_subdir_prefix in \
22261 test "x$cf_subdir_prefix" != "x$prefix" && \
22262 test -d "$cf_subdir_prefix" && \
22263 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22264 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
22265 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
22266 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
22267 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
22268 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
22269 test -d $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db"
22274 for cf_item in $cf_search
22277 (*/$with_hashed_db)
22279 if test -n "$cf_item" ; then
22280 for cf_add_incdir in $cf_item
22282 while test $cf_add_incdir != /usr/include
22284 if test -d $cf_add_incdir
22287 if test -n "$CFLAGS$CPPFLAGS" ; then
22288 # a loop is needed to ensure we can add subdirs of existing dirs
22289 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22290 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22291 cf_have_incdir=yes; break
22296 if test "$cf_have_incdir" = no ; then
22297 if test "$cf_add_incdir" = /usr/local/include ; then
22298 if test "$GCC" = yes
22300 cf_save_CPPFLAGS=$CPPFLAGS
22302 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22303 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22305 cat >conftest.$ac_ext <<_ACEOF
22306 #line 22306 "configure"
22307 #include "confdefs.h"
22317 rm -f conftest.$ac_objext
22318 if { (eval echo "$as_me:22318: \"$ac_compile\"") >&5
22319 (eval $ac_compile) 2>&5
22321 echo "$as_me:22321: \$? = $ac_status" >&5
22322 (exit $ac_status); } &&
22323 { ac_try='test -s conftest.$ac_objext'
22324 { (eval echo "$as_me:22324: \"$ac_try\"") >&5
22325 (eval $ac_try) 2>&5
22327 echo "$as_me:22327: \$? = $ac_status" >&5
22328 (exit $ac_status); }; }; then
22331 echo "$as_me: failed program was:" >&5
22332 cat conftest.$ac_ext >&5
22335 rm -f conftest.$ac_objext conftest.$ac_ext
22336 CPPFLAGS=$cf_save_CPPFLAGS
22341 if test "$cf_have_incdir" = no ; then
22342 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22344 echo "${as_me:-configure}:22344: testing adding $cf_add_incdir to include-path ..." 1>&5
22346 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22348 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22349 test "$cf_top_incdir" = "$cf_add_incdir" && break
22350 cf_add_incdir="$cf_top_incdir"
22367 test "x$prefix" != "xNONE" && \
22368 test -d "$prefix" && \
22370 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
22371 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
22372 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
22373 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
22374 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
22375 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
22378 for cf_subdir_prefix in \
22387 test "x$cf_subdir_prefix" != "x$prefix" && \
22388 test -d "$cf_subdir_prefix" && \
22389 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22390 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
22391 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
22392 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
22393 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
22394 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
22395 test -d $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db"
22400 for cf_item in $cf_search
22403 (*/$with_hashed_db)
22405 if test -n "$cf_item" ; then
22406 for cf_add_libdir in $cf_item
22408 if test $cf_add_libdir = /usr/lib ; then
22410 elif test -d $cf_add_libdir
22413 if test -n "$LDFLAGS$LIBS" ; then
22414 # a loop is needed to ensure we can add subdirs of existing dirs
22415 for cf_test_libdir in $LDFLAGS $LIBS ; do
22416 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22417 cf_have_libdir=yes; break
22421 if test "$cf_have_libdir" = no ; then
22422 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22424 echo "${as_me:-configure}:22424: testing adding $cf_add_libdir to library-path ..." 1>&5
22426 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
22441 echo "$as_me:22441: checking for db.h" >&5
22442 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
22443 if test "${ac_cv_header_db_h+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 cat >conftest.$ac_ext <<_ACEOF
22447 #line 22447 "configure"
22448 #include "confdefs.h"
22451 if { (eval echo "$as_me:22451: \"$ac_cpp conftest.$ac_ext\"") >&5
22452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22454 egrep -v '^ *\+' conftest.er1 >conftest.err
22456 cat conftest.err >&5
22457 echo "$as_me:22457: \$? = $ac_status" >&5
22458 (exit $ac_status); } >/dev/null; then
22459 if test -s conftest.err; then
22460 ac_cpp_err=$ac_c_preproc_warn_flag
22467 if test -z "$ac_cpp_err"; then
22468 ac_cv_header_db_h=yes
22470 echo "$as_me: failed program was:" >&5
22471 cat conftest.$ac_ext >&5
22472 ac_cv_header_db_h=no
22474 rm -f conftest.err conftest.$ac_ext
22476 echo "$as_me:22476: result: $ac_cv_header_db_h" >&5
22477 echo "${ECHO_T}$ac_cv_header_db_h" >&6
22478 if test $ac_cv_header_db_h = yes; then
22480 echo "$as_me:22480: checking for version of db" >&5
22481 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
22482 if test "${cf_cv_hashed_db_version+set}" = set; then
22483 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 cf_cv_hashed_db_version=unknown
22488 for cf_db_version in 1 2 3 4 5 6
22491 echo "${as_me:-configure}:22491: testing checking for db version $cf_db_version ..." 1>&5
22493 cat >conftest.$ac_ext <<_ACEOF
22494 #line 22494 "configure"
22495 #include "confdefs.h"
22497 $ac_includes_default
22500 #ifdef DB_VERSION_MAJOR
22501 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
22502 #if $cf_db_version == DB_VERSION_MAJOR
22508 #if $cf_db_version == 1
22509 /* ok: assuming this is DB 1.8.5 */
22523 rm -f conftest.$ac_objext
22524 if { (eval echo "$as_me:22524: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>&5
22527 echo "$as_me:22527: \$? = $ac_status" >&5
22528 (exit $ac_status); } &&
22529 { ac_try='test -s conftest.$ac_objext'
22530 { (eval echo "$as_me:22530: \"$ac_try\"") >&5
22531 (eval $ac_try) 2>&5
22533 echo "$as_me:22533: \$? = $ac_status" >&5
22534 (exit $ac_status); }; }; then
22536 cf_cv_hashed_db_version=$cf_db_version
22540 echo "$as_me: failed program was:" >&5
22541 cat conftest.$ac_ext >&5
22543 rm -f conftest.$ac_objext conftest.$ac_ext
22547 echo "$as_me:22547: result: $cf_cv_hashed_db_version" >&5
22548 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
22550 if test "$cf_cv_hashed_db_version" = unknown ; then
22551 { { echo "$as_me:22551: error: Cannot determine version of db" >&5
22552 echo "$as_me: error: Cannot determine version of db" >&2;}
22553 { (exit 1); exit 1; }; }
22556 echo "$as_me:22556: checking for db libraries" >&5
22557 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
22558 if test "${cf_cv_hashed_db_libs+set}" = set; then
22559 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 cf_cv_hashed_db_libs=unknown
22563 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
22565 cf_save_libs="$LIBS"
22566 if test -n "$cf_db_libs"; then
22568 cf_add_libs="-l$cf_db_libs"
22569 # Filter out duplicates - this happens with badly-designed ".pc" files...
22570 for cf_add_1lib in $LIBS
22572 for cf_add_2lib in $cf_add_libs
22574 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22580 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22582 LIBS="$cf_add_libs"
22586 echo "${as_me:-configure}:22586: testing checking for library "$cf_db_libs" ..." 1>&5
22588 cat >conftest.$ac_ext <<_ACEOF
22589 #line 22589 "configure"
22590 #include "confdefs.h"
22592 $ac_includes_default
22599 char *path = "/tmp/foo";
22600 #ifdef DB_VERSION_MAJOR
22601 #if DB_VERSION_MAJOR >= 4
22603 db_create(&result, NULL, 0);
22604 result->open(result,
22611 #elif DB_VERSION_MAJOR >= 3
22613 db_create(&result, NULL, 0);
22614 result->open(result,
22620 #elif DB_VERSION_MAJOR >= 2
22629 #endif /* DB_VERSION_MAJOR */
22631 DB *result = dbopen(path,
22637 ${cf_cv_main_return:-return}(result != 0)
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (eval echo "$as_me:22644: \"$ac_link\"") >&5
22645 (eval $ac_link) 2>&5
22647 echo "$as_me:22647: \$? = $ac_status" >&5
22648 (exit $ac_status); } &&
22649 { ac_try='test -s conftest$ac_exeext'
22650 { (eval echo "$as_me:22650: \"$ac_try\"") >&5
22651 (eval $ac_try) 2>&5
22653 echo "$as_me:22653: \$? = $ac_status" >&5
22654 (exit $ac_status); }; }; then
22656 if test -n "$cf_db_libs" ; then
22657 cf_cv_hashed_db_libs=$cf_db_libs
22659 cf_cv_hashed_db_libs=default
22661 LIBS="$cf_save_libs"
22665 echo "$as_me: failed program was:" >&5
22666 cat conftest.$ac_ext >&5
22668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22669 LIBS="$cf_save_libs"
22673 echo "$as_me:22673: result: $cf_cv_hashed_db_libs" >&5
22674 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
22676 if test "$cf_cv_hashed_db_libs" = unknown ; then
22677 { { echo "$as_me:22677: error: Cannot determine library for db" >&5
22678 echo "$as_me: error: Cannot determine library for db" >&2;}
22679 { (exit 1); exit 1; }; }
22680 elif test "$cf_cv_hashed_db_libs" != default ; then
22682 cf_add_libs="-l$cf_cv_hashed_db_libs"
22683 # Filter out duplicates - this happens with badly-designed ".pc" files...
22684 for cf_add_1lib in $LIBS
22686 for cf_add_2lib in $cf_add_libs
22688 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22694 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22696 LIBS="$cf_add_libs"
22703 { { echo "$as_me:22703: error: Cannot find db.h" >&5
22704 echo "$as_me: error: Cannot find db.h" >&2;}
22705 { (exit 1); exit 1; }; }
22711 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
22712 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
22713 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
22716 # Just in case, check if the C compiler has a bool type.
22718 echo "$as_me:22718: checking if we should include stdbool.h" >&5
22719 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
22721 if test "${cf_cv_header_stdbool_h+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22725 cat >conftest.$ac_ext <<_ACEOF
22726 #line 22726 "configure"
22727 #include "confdefs.h"
22737 rm -f conftest.$ac_objext
22738 if { (eval echo "$as_me:22738: \"$ac_compile\"") >&5
22739 (eval $ac_compile) 2>&5
22741 echo "$as_me:22741: \$? = $ac_status" >&5
22742 (exit $ac_status); } &&
22743 { ac_try='test -s conftest.$ac_objext'
22744 { (eval echo "$as_me:22744: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22747 echo "$as_me:22747: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 cf_cv_header_stdbool_h=0
22751 echo "$as_me: failed program was:" >&5
22752 cat conftest.$ac_ext >&5
22753 cat >conftest.$ac_ext <<_ACEOF
22754 #line 22754 "configure"
22755 #include "confdefs.h"
22758 #include <stdbool.h>
22769 rm -f conftest.$ac_objext
22770 if { (eval echo "$as_me:22770: \"$ac_compile\"") >&5
22771 (eval $ac_compile) 2>&5
22773 echo "$as_me:22773: \$? = $ac_status" >&5
22774 (exit $ac_status); } &&
22775 { ac_try='test -s conftest.$ac_objext'
22776 { (eval echo "$as_me:22776: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22779 echo "$as_me:22779: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22781 cf_cv_header_stdbool_h=1
22783 echo "$as_me: failed program was:" >&5
22784 cat conftest.$ac_ext >&5
22785 cf_cv_header_stdbool_h=0
22787 rm -f conftest.$ac_objext conftest.$ac_ext
22789 rm -f conftest.$ac_objext conftest.$ac_ext
22792 if test "$cf_cv_header_stdbool_h" = 1
22793 then echo "$as_me:22793: result: yes" >&5
22794 echo "${ECHO_T}yes" >&6
22795 else echo "$as_me:22795: result: no" >&5
22796 echo "${ECHO_T}no" >&6
22799 echo "$as_me:22799: checking for builtin bool type" >&5
22800 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
22802 if test "${cf_cv_cc_bool_type+set}" = set; then
22803 echo $ECHO_N "(cached) $ECHO_C" >&6
22806 cat >conftest.$ac_ext <<_ACEOF
22807 #line 22807 "configure"
22808 #include "confdefs.h"
22811 #include <sys/types.h>
22821 rm -f conftest.$ac_objext
22822 if { (eval echo "$as_me:22822: \"$ac_compile\"") >&5
22823 (eval $ac_compile) 2>&5
22825 echo "$as_me:22825: \$? = $ac_status" >&5
22826 (exit $ac_status); } &&
22827 { ac_try='test -s conftest.$ac_objext'
22828 { (eval echo "$as_me:22828: \"$ac_try\"") >&5
22829 (eval $ac_try) 2>&5
22831 echo "$as_me:22831: \$? = $ac_status" >&5
22832 (exit $ac_status); }; }; then
22833 cf_cv_cc_bool_type=1
22835 echo "$as_me: failed program was:" >&5
22836 cat conftest.$ac_ext >&5
22837 cf_cv_cc_bool_type=0
22839 rm -f conftest.$ac_objext conftest.$ac_ext
22843 if test "$cf_cv_cc_bool_type" = 1
22844 then echo "$as_me:22844: result: yes" >&5
22845 echo "${ECHO_T}yes" >&6
22846 else echo "$as_me:22846: result: no" >&5
22847 echo "${ECHO_T}no" >&6
22850 # Check for C++ compiler characteristics (and ensure that it's there!)
22851 if test -n "$CXX" ; then
22853 ac_cpp='$CXXCPP $CPPFLAGS'
22854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22857 ac_main_return=return
22859 if test -n "$GXX" ; then
22862 LIBS="$LIBS $CXXLIBS"
22863 echo "$as_me:22863: checking if we already have C++ library" >&5
22864 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
22865 cat >conftest.$ac_ext <<_ACEOF
22866 #line 22866 "configure"
22867 #include "confdefs.h"
22869 #include <iostream>
22874 std::cout << "Hello World!" << std::endl;
22879 rm -f conftest.$ac_objext conftest$ac_exeext
22880 if { (eval echo "$as_me:22880: \"$ac_link\"") >&5
22881 (eval $ac_link) 2>&5
22883 echo "$as_me:22883: \$? = $ac_status" >&5
22884 (exit $ac_status); } &&
22885 { ac_try='test -s conftest$ac_exeext'
22886 { (eval echo "$as_me:22886: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22889 echo "$as_me:22889: \$? = $ac_status" >&5
22890 (exit $ac_status); }; }; then
22891 cf_have_libstdcpp=yes
22893 echo "$as_me: failed program was:" >&5
22894 cat conftest.$ac_ext >&5
22895 cf_have_libstdcpp=no
22897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22898 echo "$as_me:22898: result: $cf_have_libstdcpp" >&5
22899 echo "${ECHO_T}$cf_have_libstdcpp" >&6
22902 if test $cf_have_libstdcpp != yes
22904 case $cf_cv_system_name in
22906 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
22907 cf_stdcpp_libname=stdcpp
22909 cf_stdcpp_libname=stdc++
22913 cf_stdcpp_libname=stdc++
22917 echo "$as_me:22917: checking for library $cf_stdcpp_libname" >&5
22918 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
22919 if test "${cf_cv_libstdcpp+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22924 LIBS="$LIBS $CXXLIBS"
22926 cf_add_libs="-l$cf_stdcpp_libname"
22927 # Filter out duplicates - this happens with badly-designed ".pc" files...
22928 for cf_add_1lib in $LIBS
22930 for cf_add_2lib in $cf_add_libs
22932 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22938 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22940 LIBS="$cf_add_libs"
22942 cat >conftest.$ac_ext <<_ACEOF
22943 #line 22943 "configure"
22944 #include "confdefs.h"
22946 #include <iostream>
22951 std::cout << "Hello World!" << std::endl;
22956 rm -f conftest.$ac_objext conftest$ac_exeext
22957 if { (eval echo "$as_me:22957: \"$ac_link\"") >&5
22958 (eval $ac_link) 2>&5
22960 echo "$as_me:22960: \$? = $ac_status" >&5
22961 (exit $ac_status); } &&
22962 { ac_try='test -s conftest$ac_exeext'
22963 { (eval echo "$as_me:22963: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22966 echo "$as_me:22966: \$? = $ac_status" >&5
22967 (exit $ac_status); }; }; then
22968 cf_cv_libstdcpp=yes
22970 echo "$as_me: failed program was:" >&5
22971 cat conftest.$ac_ext >&5
22974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22978 echo "$as_me:22978: result: $cf_cv_libstdcpp" >&5
22979 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
22980 test "$cf_cv_libstdcpp" = yes && {
22981 cf_add_libs="-l$cf_stdcpp_libname"
22982 # Filter out duplicates - this happens with badly-designed ".pc" files...
22983 for cf_add_1lib in $CXXLIBS
22985 for cf_add_2lib in $cf_add_libs
22987 if test "x$cf_add_1lib" = "x$cf_add_2lib"
22993 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
22995 CXXLIBS="$cf_add_libs"
23000 echo "$as_me:23000: checking whether $CXX understands -c and -o together" >&5
23001 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
23002 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
23006 cat > conftest.$ac_ext <<CF_EOF
23009 ${cf_cv_main_return:-return}(0);
23012 # We do the test twice because some compilers refuse to overwrite an
23013 # existing .o file with -o, though they will create one.
23014 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
23015 if { (eval echo "$as_me:23015: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23018 echo "$as_me:23018: \$? = $ac_status" >&5
23019 (exit $ac_status); } &&
23020 test -f conftest2.$ac_objext && { (eval echo "$as_me:23020: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23023 echo "$as_me:23023: \$? = $ac_status" >&5
23024 (exit $ac_status); };
23026 eval cf_cv_prog_CXX_c_o=yes
23028 eval cf_cv_prog_CXX_c_o=no
23033 if test $cf_cv_prog_CXX_c_o = yes; then
23034 echo "$as_me:23034: result: yes" >&5
23035 echo "${ECHO_T}yes" >&6
23037 echo "$as_me:23037: result: no" >&5
23038 echo "${ECHO_T}no" >&6
23041 case $GXX_VERSION in
23047 cf_cxx_library=unknown
23048 case $cf_cv_system_name in
23056 if test "$GXX" = yes; then
23057 echo "$as_me:23057: checking for lib$cf_gpp_libname" >&5
23058 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
23061 cf_add_libs="-l$cf_gpp_libname"
23062 # Filter out duplicates - this happens with badly-designed ".pc" files...
23063 for cf_add_1lib in $LIBS
23065 for cf_add_2lib in $cf_add_libs
23067 if test "x$cf_add_1lib" = "x$cf_add_2lib"
23073 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
23075 LIBS="$cf_add_libs"
23077 cat >conftest.$ac_ext <<_ACEOF
23078 #line 23078 "configure"
23079 #include "confdefs.h"
23081 #include <$cf_gpp_libname/builtin.h>
23086 two_arg_error_handler_t foo2 = lib_error_handler
23091 rm -f conftest.$ac_objext conftest$ac_exeext
23092 if { (eval echo "$as_me:23092: \"$ac_link\"") >&5
23093 (eval $ac_link) 2>&5
23095 echo "$as_me:23095: \$? = $ac_status" >&5
23096 (exit $ac_status); } &&
23097 { ac_try='test -s conftest$ac_exeext'
23098 { (eval echo "$as_me:23098: \"$ac_try\"") >&5
23099 (eval $ac_try) 2>&5
23101 echo "$as_me:23101: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }; then
23105 cf_add_libs="-l$cf_gpp_libname"
23106 # Filter out duplicates - this happens with badly-designed ".pc" files...
23107 for cf_add_1lib in $CXXLIBS
23109 for cf_add_2lib in $cf_add_libs
23111 if test "x$cf_add_1lib" = "x$cf_add_2lib"
23117 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
23119 CXXLIBS="$cf_add_libs"
23121 if test "$cf_gpp_libname" = cpp ; then
23123 cat >>confdefs.h <<\EOF
23124 #define HAVE_GPP_BUILTIN_H 1
23129 cat >>confdefs.h <<\EOF
23130 #define HAVE_GXX_BUILTIN_H 1
23135 echo "$as_me: failed program was:" >&5
23136 cat conftest.$ac_ext >&5
23137 cat >conftest.$ac_ext <<_ACEOF
23138 #line 23138 "configure"
23139 #include "confdefs.h"
23141 #include <builtin.h>
23146 two_arg_error_handler_t foo2 = lib_error_handler
23151 rm -f conftest.$ac_objext conftest$ac_exeext
23152 if { (eval echo "$as_me:23152: \"$ac_link\"") >&5
23153 (eval $ac_link) 2>&5
23155 echo "$as_me:23155: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
23157 { ac_try='test -s conftest$ac_exeext'
23158 { (eval echo "$as_me:23158: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23161 echo "$as_me:23161: \$? = $ac_status" >&5
23162 (exit $ac_status); }; }; then
23165 cf_add_libs="-l$cf_gpp_libname"
23166 # Filter out duplicates - this happens with badly-designed ".pc" files...
23167 for cf_add_1lib in $CXXLIBS
23169 for cf_add_2lib in $cf_add_libs
23171 if test "x$cf_add_1lib" = "x$cf_add_2lib"
23177 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
23179 CXXLIBS="$cf_add_libs"
23181 cat >>confdefs.h <<\EOF
23182 #define HAVE_BUILTIN_H 1
23186 echo "$as_me: failed program was:" >&5
23187 cat conftest.$ac_ext >&5
23190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23194 echo "$as_me:23194: result: $cf_cxx_library" >&5
23195 echo "${ECHO_T}$cf_cxx_library" >&6
23205 ac_cpp='$CXXCPP $CPPFLAGS'
23206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23209 ac_main_return=return
23210 echo "$as_me:23210: checking how to run the C++ preprocessor" >&5
23211 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
23212 if test -z "$CXXCPP"; then
23213 if test "${ac_cv_prog_CXXCPP+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23216 # Double quotes because CXXCPP needs to be expanded
23217 for CXXCPP in "$CXX -E" "/lib/cpp"
23219 ac_preproc_ok=false
23220 for ac_cxx_preproc_warn_flag in '' yes
23222 # Use a header file that comes with gcc, so configuring glibc
23223 # with a fresh cross-compiler works.
23224 # On the NeXT, cc -E runs the code through the compiler's parser,
23225 # not just through cpp. "Syntax error" is here to catch this case.
23226 cat >conftest.$ac_ext <<_ACEOF
23227 #line 23227 "configure"
23228 #include "confdefs.h"
23229 #include <assert.h>
23232 if { (eval echo "$as_me:23232: \"$ac_cpp conftest.$ac_ext\"") >&5
23233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23235 egrep -v '^ *\+' conftest.er1 >conftest.err
23237 cat conftest.err >&5
23238 echo "$as_me:23238: \$? = $ac_status" >&5
23239 (exit $ac_status); } >/dev/null; then
23240 if test -s conftest.err; then
23241 ac_cpp_err=$ac_cxx_preproc_warn_flag
23248 if test -z "$ac_cpp_err"; then
23251 echo "$as_me: failed program was:" >&5
23252 cat conftest.$ac_ext >&5
23253 # Broken: fails on valid input.
23256 rm -f conftest.err conftest.$ac_ext
23258 # OK, works on sane cases. Now check whether non-existent headers
23259 # can be detected and how.
23260 cat >conftest.$ac_ext <<_ACEOF
23261 #line 23261 "configure"
23262 #include "confdefs.h"
23263 #include <ac_nonexistent.h>
23265 if { (eval echo "$as_me:23265: \"$ac_cpp conftest.$ac_ext\"") >&5
23266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23268 egrep -v '^ *\+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:23271: \$? = $ac_status" >&5
23272 (exit $ac_status); } >/dev/null; then
23273 if test -s conftest.err; then
23274 ac_cpp_err=$ac_cxx_preproc_warn_flag
23281 if test -z "$ac_cpp_err"; then
23282 # Broken: success on invalid input.
23285 echo "$as_me: failed program was:" >&5
23286 cat conftest.$ac_ext >&5
23287 # Passes both tests.
23291 rm -f conftest.err conftest.$ac_ext
23294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23295 rm -f conftest.err conftest.$ac_ext
23296 if $ac_preproc_ok; then
23301 ac_cv_prog_CXXCPP=$CXXCPP
23304 CXXCPP=$ac_cv_prog_CXXCPP
23306 ac_cv_prog_CXXCPP=$CXXCPP
23308 echo "$as_me:23308: result: $CXXCPP" >&5
23309 echo "${ECHO_T}$CXXCPP" >&6
23310 ac_preproc_ok=false
23311 for ac_cxx_preproc_warn_flag in '' yes
23313 # Use a header file that comes with gcc, so configuring glibc
23314 # with a fresh cross-compiler works.
23315 # On the NeXT, cc -E runs the code through the compiler's parser,
23316 # not just through cpp. "Syntax error" is here to catch this case.
23317 cat >conftest.$ac_ext <<_ACEOF
23318 #line 23318 "configure"
23319 #include "confdefs.h"
23320 #include <assert.h>
23323 if { (eval echo "$as_me:23323: \"$ac_cpp conftest.$ac_ext\"") >&5
23324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23326 egrep -v '^ *\+' conftest.er1 >conftest.err
23328 cat conftest.err >&5
23329 echo "$as_me:23329: \$? = $ac_status" >&5
23330 (exit $ac_status); } >/dev/null; then
23331 if test -s conftest.err; then
23332 ac_cpp_err=$ac_cxx_preproc_warn_flag
23339 if test -z "$ac_cpp_err"; then
23342 echo "$as_me: failed program was:" >&5
23343 cat conftest.$ac_ext >&5
23344 # Broken: fails on valid input.
23347 rm -f conftest.err conftest.$ac_ext
23349 # OK, works on sane cases. Now check whether non-existent headers
23350 # can be detected and how.
23351 cat >conftest.$ac_ext <<_ACEOF
23352 #line 23352 "configure"
23353 #include "confdefs.h"
23354 #include <ac_nonexistent.h>
23356 if { (eval echo "$as_me:23356: \"$ac_cpp conftest.$ac_ext\"") >&5
23357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23359 egrep -v '^ *\+' conftest.er1 >conftest.err
23361 cat conftest.err >&5
23362 echo "$as_me:23362: \$? = $ac_status" >&5
23363 (exit $ac_status); } >/dev/null; then
23364 if test -s conftest.err; then
23365 ac_cpp_err=$ac_cxx_preproc_warn_flag
23372 if test -z "$ac_cpp_err"; then
23373 # Broken: success on invalid input.
23376 echo "$as_me: failed program was:" >&5
23377 cat conftest.$ac_ext >&5
23378 # Passes both tests.
23382 rm -f conftest.err conftest.$ac_ext
23385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23386 rm -f conftest.err conftest.$ac_ext
23387 if $ac_preproc_ok; then
23390 { { echo "$as_me:23390: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
23391 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
23392 { (exit 1); exit 1; }; }
23396 ac_cpp='$CXXCPP $CPPFLAGS'
23397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23400 ac_main_return=return
23402 for ac_header in typeinfo
23404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23405 echo "$as_me:23405: checking for $ac_header" >&5
23406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23410 cat >conftest.$ac_ext <<_ACEOF
23411 #line 23411 "configure"
23412 #include "confdefs.h"
23413 #include <$ac_header>
23415 if { (eval echo "$as_me:23415: \"$ac_cpp conftest.$ac_ext\"") >&5
23416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23418 egrep -v '^ *\+' conftest.er1 >conftest.err
23420 cat conftest.err >&5
23421 echo "$as_me:23421: \$? = $ac_status" >&5
23422 (exit $ac_status); } >/dev/null; then
23423 if test -s conftest.err; then
23424 ac_cpp_err=$ac_cxx_preproc_warn_flag
23431 if test -z "$ac_cpp_err"; then
23432 eval "$as_ac_Header=yes"
23434 echo "$as_me: failed program was:" >&5
23435 cat conftest.$ac_ext >&5
23436 eval "$as_ac_Header=no"
23438 rm -f conftest.err conftest.$ac_ext
23440 echo "$as_me:23440: result: `eval echo '${'$as_ac_Header'}'`" >&5
23441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23443 cat >>confdefs.h <<EOF
23444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23450 for ac_header in iostream
23452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23453 echo "$as_me:23453: checking for $ac_header" >&5
23454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23458 cat >conftest.$ac_ext <<_ACEOF
23459 #line 23459 "configure"
23460 #include "confdefs.h"
23461 #include <$ac_header>
23463 if { (eval echo "$as_me:23463: \"$ac_cpp conftest.$ac_ext\"") >&5
23464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23466 egrep -v '^ *\+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 echo "$as_me:23469: \$? = $ac_status" >&5
23470 (exit $ac_status); } >/dev/null; then
23471 if test -s conftest.err; then
23472 ac_cpp_err=$ac_cxx_preproc_warn_flag
23479 if test -z "$ac_cpp_err"; then
23480 eval "$as_ac_Header=yes"
23482 echo "$as_me: failed program was:" >&5
23483 cat conftest.$ac_ext >&5
23484 eval "$as_ac_Header=no"
23486 rm -f conftest.err conftest.$ac_ext
23488 echo "$as_me:23488: result: `eval echo '${'$as_ac_Header'}'`" >&5
23489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23491 cat >>confdefs.h <<EOF
23492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23498 if test x"$ac_cv_header_iostream" = xyes ; then
23499 echo "$as_me:23499: checking if iostream uses std-namespace" >&5
23500 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
23501 cat >conftest.$ac_ext <<_ACEOF
23502 #line 23502 "configure"
23503 #include "confdefs.h"
23505 #include <iostream>
23512 cerr << "testing" << endl;
23518 rm -f conftest.$ac_objext
23519 if { (eval echo "$as_me:23519: \"$ac_compile\"") >&5
23520 (eval $ac_compile) 2>&5
23522 echo "$as_me:23522: \$? = $ac_status" >&5
23523 (exit $ac_status); } &&
23524 { ac_try='test -s conftest.$ac_objext'
23525 { (eval echo "$as_me:23525: \"$ac_try\"") >&5
23526 (eval $ac_try) 2>&5
23528 echo "$as_me:23528: \$? = $ac_status" >&5
23529 (exit $ac_status); }; }; then
23530 cf_iostream_namespace=yes
23532 echo "$as_me: failed program was:" >&5
23533 cat conftest.$ac_ext >&5
23534 cf_iostream_namespace=no
23536 rm -f conftest.$ac_objext conftest.$ac_ext
23537 echo "$as_me:23537: result: $cf_iostream_namespace" >&5
23538 echo "${ECHO_T}$cf_iostream_namespace" >&6
23539 if test "$cf_iostream_namespace" = yes ; then
23541 cat >>confdefs.h <<\EOF
23542 #define IOSTREAM_NAMESPACE 1
23548 echo "$as_me:23548: checking if we should include stdbool.h" >&5
23549 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
23551 if test "${cf_cv_header_stdbool_h+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23555 cat >conftest.$ac_ext <<_ACEOF
23556 #line 23556 "configure"
23557 #include "confdefs.h"
23567 rm -f conftest.$ac_objext
23568 if { (eval echo "$as_me:23568: \"$ac_compile\"") >&5
23569 (eval $ac_compile) 2>&5
23571 echo "$as_me:23571: \$? = $ac_status" >&5
23572 (exit $ac_status); } &&
23573 { ac_try='test -s conftest.$ac_objext'
23574 { (eval echo "$as_me:23574: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23577 echo "$as_me:23577: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 cf_cv_header_stdbool_h=0
23581 echo "$as_me: failed program was:" >&5
23582 cat conftest.$ac_ext >&5
23583 cat >conftest.$ac_ext <<_ACEOF
23584 #line 23584 "configure"
23585 #include "confdefs.h"
23588 #include <stdbool.h>
23599 rm -f conftest.$ac_objext
23600 if { (eval echo "$as_me:23600: \"$ac_compile\"") >&5
23601 (eval $ac_compile) 2>&5
23603 echo "$as_me:23603: \$? = $ac_status" >&5
23604 (exit $ac_status); } &&
23605 { ac_try='test -s conftest.$ac_objext'
23606 { (eval echo "$as_me:23606: \"$ac_try\"") >&5
23607 (eval $ac_try) 2>&5
23609 echo "$as_me:23609: \$? = $ac_status" >&5
23610 (exit $ac_status); }; }; then
23611 cf_cv_header_stdbool_h=1
23613 echo "$as_me: failed program was:" >&5
23614 cat conftest.$ac_ext >&5
23615 cf_cv_header_stdbool_h=0
23617 rm -f conftest.$ac_objext conftest.$ac_ext
23619 rm -f conftest.$ac_objext conftest.$ac_ext
23622 if test "$cf_cv_header_stdbool_h" = 1
23623 then echo "$as_me:23623: result: yes" >&5
23624 echo "${ECHO_T}yes" >&6
23625 else echo "$as_me:23625: result: no" >&5
23626 echo "${ECHO_T}no" >&6
23629 echo "$as_me:23629: checking for builtin bool type" >&5
23630 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
23632 if test "${cf_cv_builtin_bool+set}" = set; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23636 cat >conftest.$ac_ext <<_ACEOF
23637 #line 23637 "configure"
23638 #include "confdefs.h"
23641 #include <sys/types.h>
23651 rm -f conftest.$ac_objext
23652 if { (eval echo "$as_me:23652: \"$ac_compile\"") >&5
23653 (eval $ac_compile) 2>&5
23655 echo "$as_me:23655: \$? = $ac_status" >&5
23656 (exit $ac_status); } &&
23657 { ac_try='test -s conftest.$ac_objext'
23658 { (eval echo "$as_me:23658: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23661 echo "$as_me:23661: \$? = $ac_status" >&5
23662 (exit $ac_status); }; }; then
23663 cf_cv_builtin_bool=1
23665 echo "$as_me: failed program was:" >&5
23666 cat conftest.$ac_ext >&5
23667 cf_cv_builtin_bool=0
23669 rm -f conftest.$ac_objext conftest.$ac_ext
23673 if test "$cf_cv_builtin_bool" = 1
23674 then echo "$as_me:23674: result: yes" >&5
23675 echo "${ECHO_T}yes" >&6
23676 else echo "$as_me:23676: result: no" >&5
23677 echo "${ECHO_T}no" >&6
23680 echo "$as_me:23680: checking for size of bool" >&5
23681 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
23682 if test "${cf_cv_type_of_bool+set}" = set; then
23683 echo $ECHO_N "(cached) $ECHO_C" >&6
23687 if test "$cross_compiling" = yes; then
23688 cf_cv_type_of_bool=unknown
23690 cat >conftest.$ac_ext <<_ACEOF
23691 #line 23691 "configure"
23692 #include "confdefs.h"
23694 #include <stdlib.h>
23697 #if defined(__cplusplus)
23699 #ifdef HAVE_GXX_BUILTIN_H
23700 #include <g++/builtin.h>
23701 #elif HAVE_GPP_BUILTIN_H
23702 #include <gpp/builtin.h>
23703 #elif HAVE_BUILTIN_H
23704 #include <builtin.h>
23709 #if $cf_cv_header_stdbool_h
23710 #include <stdbool.h>
23717 FILE *fp = fopen("cf_test.out", "w");
23720 if ((bool)(-x) >= 0)
23721 fputs("unsigned ", fp);
23722 if (sizeof(x) == sizeof(int)) fputs("int", fp);
23723 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
23724 else if (sizeof(x) == sizeof(short))fputs("short",fp);
23725 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
23728 ${cf_cv_main_return:-return}(0);
23732 rm -f conftest$ac_exeext
23733 if { (eval echo "$as_me:23733: \"$ac_link\"") >&5
23734 (eval $ac_link) 2>&5
23736 echo "$as_me:23736: \$? = $ac_status" >&5
23737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23738 { (eval echo "$as_me:23738: \"$ac_try\"") >&5
23739 (eval $ac_try) 2>&5
23741 echo "$as_me:23741: \$? = $ac_status" >&5
23742 (exit $ac_status); }; }; then
23743 cf_cv_type_of_bool=`cat cf_test.out`
23744 if test -z "$cf_cv_type_of_bool"; then
23745 cf_cv_type_of_bool=unknown
23748 echo "$as_me: program exited with status $ac_status" >&5
23749 echo "$as_me: failed program was:" >&5
23750 cat conftest.$ac_ext >&5
23751 cf_cv_type_of_bool=unknown
23753 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23759 echo "$as_me:23759: result: $cf_cv_type_of_bool" >&5
23760 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
23761 if test "$cf_cv_type_of_bool" = unknown ; then
23762 case .$NCURSES_BOOL in
23763 (.auto|.) NCURSES_BOOL=unsigned;;
23765 { echo "$as_me:23765: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
23766 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
23767 cf_cv_type_of_bool=$NCURSES_BOOL
23770 echo "$as_me:23770: checking for special defines needed for etip.h" >&5
23771 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
23772 cf_save_CXXFLAGS="$CXXFLAGS"
23775 # etip.h includes ncurses.h which includes ncurses_dll.h
23776 # But ncurses_dll.h is generated - fix here.
23777 test -d include || mkdir include
23778 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
23780 for cf_math in "" MATH_H
23782 for cf_excp in "" MATH_EXCEPTION
23784 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
23785 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
23786 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
23787 cat >conftest.$ac_ext <<_ACEOF
23788 #line 23788 "configure"
23789 #include "confdefs.h"
23791 #include <etip.h.in>
23801 rm -f conftest.$ac_objext
23802 if { (eval echo "$as_me:23802: \"$ac_compile\"") >&5
23803 (eval $ac_compile) 2>&5
23805 echo "$as_me:23805: \$? = $ac_status" >&5
23806 (exit $ac_status); } &&
23807 { ac_try='test -s conftest.$ac_objext'
23808 { (eval echo "$as_me:23808: \"$ac_try\"") >&5
23809 (eval $ac_try) 2>&5
23811 echo "$as_me:23811: \$? = $ac_status" >&5
23812 (exit $ac_status); }; }; then
23814 test -n "$cf_math" && cat >>confdefs.h <<EOF
23815 #define ETIP_NEEDS_${cf_math} 1
23818 test -n "$cf_excp" && cat >>confdefs.h <<EOF
23819 #define ETIP_NEEDS_${cf_excp} 1
23822 cf_result="$cf_math $cf_excp"
23826 echo "$as_me: failed program was:" >&5
23827 cat conftest.$ac_ext >&5
23829 rm -f conftest.$ac_objext conftest.$ac_ext
23832 echo "$as_me:23832: result: $cf_result" >&5
23833 echo "${ECHO_T}$cf_result" >&6
23834 CXXFLAGS="$cf_save_CXXFLAGS"
23836 if test -n "$CXX"; then
23837 echo "$as_me:23837: checking if $CXX accepts parameter initialization" >&5
23838 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
23839 if test "${cf_cv_cpp_param_init+set}" = set; then
23840 echo $ECHO_N "(cached) $ECHO_C" >&6
23844 ac_cpp='$CXXCPP $CPPFLAGS'
23845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23848 ac_main_return=return
23850 if test "$cross_compiling" = yes; then
23851 cf_cv_cpp_param_init=unknown
23853 cat >conftest.$ac_ext <<_ACEOF
23854 #line 23854 "configure"
23855 #include "confdefs.h"
23865 TEST::TEST(int x = 1) // some compilers do not like second initializer
23872 rm -f conftest$ac_exeext
23873 if { (eval echo "$as_me:23873: \"$ac_link\"") >&5
23874 (eval $ac_link) 2>&5
23876 echo "$as_me:23876: \$? = $ac_status" >&5
23877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23878 { (eval echo "$as_me:23878: \"$ac_try\"") >&5
23879 (eval $ac_try) 2>&5
23881 echo "$as_me:23881: \$? = $ac_status" >&5
23882 (exit $ac_status); }; }; then
23883 cf_cv_cpp_param_init=yes
23885 echo "$as_me: program exited with status $ac_status" >&5
23886 echo "$as_me: failed program was:" >&5
23887 cat conftest.$ac_ext >&5
23888 cf_cv_cpp_param_init=no
23890 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23893 ac_cpp='$CXXCPP $CPPFLAGS'
23894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23897 ac_main_return=return
23900 echo "$as_me:23900: result: $cf_cv_cpp_param_init" >&5
23901 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
23903 test "$cf_cv_cpp_param_init" = yes &&
23904 cat >>confdefs.h <<\EOF
23905 #define CPP_HAS_PARAM_INIT 1
23908 if test -n "$CXX"; then
23910 echo "$as_me:23910: checking if $CXX accepts static_cast" >&5
23911 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
23912 if test "${cf_cv_cpp_static_cast+set}" = set; then
23913 echo $ECHO_N "(cached) $ECHO_C" >&6
23917 ac_cpp='$CXXCPP $CPPFLAGS'
23918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23921 ac_main_return=return
23923 cat >conftest.$ac_ext <<_ACEOF
23924 #line 23924 "configure"
23925 #include "confdefs.h"
23930 NCursesPanel(int nlines,
23940 template<class T> class NCursesUserPanel : public NCursesPanel
23943 NCursesUserPanel (int nlines,
23947 const T* p_UserData = static_cast<T*>(0))
23948 : NCursesPanel (nlines, ncols, begin_y, begin_x)
23951 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
23955 virtual ~NCursesUserPanel() {};
23962 const char* p_UserData = static_cast<char*>(0)
23967 rm -f conftest.$ac_objext
23968 if { (eval echo "$as_me:23968: \"$ac_compile\"") >&5
23969 (eval $ac_compile) 2>&5
23971 echo "$as_me:23971: \$? = $ac_status" >&5
23972 (exit $ac_status); } &&
23973 { ac_try='test -s conftest.$ac_objext'
23974 { (eval echo "$as_me:23974: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23977 echo "$as_me:23977: \$? = $ac_status" >&5
23978 (exit $ac_status); }; }; then
23979 cf_cv_cpp_static_cast=yes
23981 echo "$as_me: failed program was:" >&5
23982 cat conftest.$ac_ext >&5
23983 cf_cv_cpp_static_cast=no
23985 rm -f conftest.$ac_objext conftest.$ac_ext
23988 ac_cpp='$CXXCPP $CPPFLAGS'
23989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23992 ac_main_return=return
23995 echo "$as_me:23995: result: $cf_cv_cpp_static_cast" >&5
23996 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
24000 test "$cf_cv_cpp_static_cast" = yes &&
24001 cat >>confdefs.h <<\EOF
24002 #define CPP_HAS_STATIC_CAST 1
24006 CXX_ARFLAGS='$(ARFLAGS)'
24007 case $cf_cv_system_name in
24009 if test "$GXX" != yes ; then
24011 CXX_ARFLAGS='-ar -o'
24015 CXXLDFLAGS="-u main"
24018 if test "$GXX" != yes ; then
24020 CXX_ARFLAGS='-xar -o'
24027 cf_cv_builtin_bool=1
24029 # Just because we are not configuring against C++ right now does not
24030 # mean that a user will not want to use C++. Some distributors disable
24031 # the C++ portion of this configuration as a shortcut (or just to avoid
24032 # compiling the demo in the c++ directory). So we need a reasonable
24033 # default for the 'bool' type.
24035 # Caveat: since the storage of the bool type is not standardized, it
24038 if test "$NCURSES_BOOL" != auto ; then
24039 cf_cv_type_of_bool=$NCURSES_BOOL
24040 cf_cv_header_stdbool_h=0
24042 if test "$cf_cv_header_stdbool_h" = 1 ; then
24044 echo "$as_me:24044: checking for size of bool" >&5
24045 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24046 if test "${cf_cv_type_of_bool+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24051 if test "$cross_compiling" = yes; then
24052 cf_cv_type_of_bool=unknown
24054 cat >conftest.$ac_ext <<_ACEOF
24055 #line 24055 "configure"
24056 #include "confdefs.h"
24058 #include <stdlib.h>
24061 #if defined(__cplusplus)
24063 #ifdef HAVE_GXX_BUILTIN_H
24064 #include <g++/builtin.h>
24065 #elif HAVE_GPP_BUILTIN_H
24066 #include <gpp/builtin.h>
24067 #elif HAVE_BUILTIN_H
24068 #include <builtin.h>
24073 #if $cf_cv_header_stdbool_h
24074 #include <stdbool.h>
24081 FILE *fp = fopen("cf_test.out", "w");
24084 if ((bool)(-x) >= 0)
24085 fputs("unsigned ", fp);
24086 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24087 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24088 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24089 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24092 ${cf_cv_main_return:-return}(0);
24096 rm -f conftest$ac_exeext
24097 if { (eval echo "$as_me:24097: \"$ac_link\"") >&5
24098 (eval $ac_link) 2>&5
24100 echo "$as_me:24100: \$? = $ac_status" >&5
24101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24102 { (eval echo "$as_me:24102: \"$ac_try\"") >&5
24103 (eval $ac_try) 2>&5
24105 echo "$as_me:24105: \$? = $ac_status" >&5
24106 (exit $ac_status); }; }; then
24107 cf_cv_type_of_bool=`cat cf_test.out`
24108 if test -z "$cf_cv_type_of_bool"; then
24109 cf_cv_type_of_bool=unknown
24112 echo "$as_me: program exited with status $ac_status" >&5
24113 echo "$as_me: failed program was:" >&5
24114 cat conftest.$ac_ext >&5
24115 cf_cv_type_of_bool=unknown
24117 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24123 echo "$as_me:24123: result: $cf_cv_type_of_bool" >&5
24124 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24125 if test "$cf_cv_type_of_bool" = unknown ; then
24126 case .$NCURSES_BOOL in
24127 (.auto|.) NCURSES_BOOL=unsigned;;
24129 { echo "$as_me:24129: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24130 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24131 cf_cv_type_of_bool=$NCURSES_BOOL
24135 echo "$as_me:24135: checking for fallback type of bool" >&5
24136 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
24137 case "$host_cpu" in
24138 (i?86) cf_cv_type_of_bool=char ;;
24139 (*) cf_cv_type_of_bool=int ;;
24141 echo "$as_me:24141: result: $cf_cv_type_of_bool" >&5
24142 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24147 # If the C compiler did not declare bool, and we did not determine that the C++
24148 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
24149 # ncurses library use the same type as C++ bool. Note that this allows one to
24150 # specify the type of bool in a configure-script option and postpone
24151 # integration with the C++ compiler provided that the types are compatible.
24153 if test $cf_cv_cc_bool_type = 1
24155 # oops: C has a bool. Unlikely, but C++ could differ.
24157 elif test $cf_cv_builtin_bool = 0
24162 # this is the normal case
24163 USE_CXX_BOOL='defined(__cplusplus)'
24166 if test -f "${srcdir}/Ada95/Makefile.in" ; then
24168 if test "$cf_with_ada" != "no" ; then
24169 if test "$with_libtool" != "no"; then
24170 { echo "$as_me:24170: WARNING: libtool does not support Ada - disabling feature" >&5
24171 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
24176 if test "$cf_with_ada" != "no" ; then
24178 cf_ada_make=gnatmake
24180 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
24181 set dummy $cf_ada_make; ac_word=$2
24182 echo "$as_me:24182: checking for $ac_word" >&5
24183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24184 if test "${ac_cv_prog_gnatmake_exists+set}" = set; then
24185 echo $ECHO_N "(cached) $ECHO_C" >&6
24187 if test -n "$gnatmake_exists"; then
24188 ac_cv_prog_gnatmake_exists="$gnatmake_exists" # Let the user override the test.
24190 ac_save_IFS=$IFS; IFS=$ac_path_separator
24192 for ac_dir in $ac_dummy; do
24194 test -z "$ac_dir" && ac_dir=.
24195 $as_executable_p "$ac_dir/$ac_word" || continue
24196 ac_cv_prog_gnatmake_exists="yes"
24197 echo "$as_me:24197: found $ac_dir/$ac_word" >&5
24201 test -z "$ac_cv_prog_gnatmake_exists" && ac_cv_prog_gnatmake_exists="no"
24204 gnatmake_exists=$ac_cv_prog_gnatmake_exists
24205 if test -n "$gnatmake_exists"; then
24206 echo "$as_me:24206: result: $gnatmake_exists" >&5
24207 echo "${ECHO_T}$gnatmake_exists" >&6
24209 echo "$as_me:24209: result: no" >&5
24210 echo "${ECHO_T}no" >&6
24213 if test "$ac_cv_prog_gnatmake_exists" = no; then
24215 cf_cv_prog_gnat_correct=no
24217 # Extract the first word of "gprconfig", so it can be a program name with args.
24218 set dummy gprconfig; ac_word=$2
24219 echo "$as_me:24219: checking for $ac_word" >&5
24220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24221 if test "${ac_cv_prog_gprconfig_exists+set}" = set; then
24222 echo $ECHO_N "(cached) $ECHO_C" >&6
24224 if test -n "$gprconfig_exists"; then
24225 ac_cv_prog_gprconfig_exists="$gprconfig_exists" # Let the user override the test.
24227 ac_save_IFS=$IFS; IFS=$ac_path_separator
24229 for ac_dir in $ac_dummy; do
24231 test -z "$ac_dir" && ac_dir=.
24232 $as_executable_p "$ac_dir/$ac_word" || continue
24233 ac_cv_prog_gprconfig_exists="yes"
24234 echo "$as_me:24234: found $ac_dir/$ac_word" >&5
24238 test -z "$ac_cv_prog_gprconfig_exists" && ac_cv_prog_gprconfig_exists="no"
24241 gprconfig_exists=$ac_cv_prog_gprconfig_exists
24242 if test -n "$gprconfig_exists"; then
24243 echo "$as_me:24243: result: $gprconfig_exists" >&5
24244 echo "${ECHO_T}$gprconfig_exists" >&6
24246 echo "$as_me:24246: result: no" >&5
24247 echo "${ECHO_T}no" >&6
24250 if test "$ac_cv_prog_gprconfig_exists" = yes
24252 rm -rf conftest* *~conftest*
24253 if mkdir conftest.src
24257 for cf_gprconfig in Ada C
24259 echo "$as_me:24259: checking for gprconfig name for $cf_gprconfig" >&5
24260 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
24261 if test $cf_gprconfig = C
24263 for cf_gprconfig_param in \
24264 $cf_gprconfig,,,,GNATGCC \
24265 $cf_gprconfig,,,,GCC \
24268 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24269 test -n "$cf_gprconfig_value" && break
24272 cf_gprconfig_param=$cf_gprconfig
24273 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24275 if test -n "$cf_gprconfig_value"
24277 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
24278 echo "$as_me:24278: result: $cf_gprconfig_value" >&5
24279 echo "${ECHO_T}$cf_gprconfig_value" >&6
24281 echo "$as_me:24281: result: missing" >&5
24282 echo "${ECHO_T}missing" >&6
24288 rm -rf conftest* *~conftest*
24291 # gprconfig is newer than gnatmake; we can continue...
24294 if test "x$cf_ada_config" != "x#"
24297 echo "$as_me:24297: checking for gnat version" >&5
24298 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
24299 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
24300 grep '[0-9].[0-9][0-9]*' |\
24301 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24302 echo "$as_me:24302: result: $cf_gnat_version" >&5
24303 echo "${ECHO_T}$cf_gnat_version" >&6
24305 case $cf_gnat_version in
24306 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
24307 cf_cv_prog_gnat_correct=yes
24310 { echo "$as_me:24310: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
24311 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
24312 cf_cv_prog_gnat_correct=no
24316 # Extract the first word of "m4", so it can be a program name with args.
24317 set dummy m4; ac_word=$2
24318 echo "$as_me:24318: checking for $ac_word" >&5
24319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24320 if test "${ac_cv_prog_M4_exists+set}" = set; then
24321 echo $ECHO_N "(cached) $ECHO_C" >&6
24323 if test -n "$M4_exists"; then
24324 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
24326 ac_save_IFS=$IFS; IFS=$ac_path_separator
24328 for ac_dir in $ac_dummy; do
24330 test -z "$ac_dir" && ac_dir=.
24331 $as_executable_p "$ac_dir/$ac_word" || continue
24332 ac_cv_prog_M4_exists="yes"
24333 echo "$as_me:24333: found $ac_dir/$ac_word" >&5
24337 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
24340 M4_exists=$ac_cv_prog_M4_exists
24341 if test -n "$M4_exists"; then
24342 echo "$as_me:24342: result: $M4_exists" >&5
24343 echo "${ECHO_T}$M4_exists" >&6
24345 echo "$as_me:24345: result: no" >&5
24346 echo "${ECHO_T}no" >&6
24349 if test "$ac_cv_prog_M4_exists" = no; then
24350 cf_cv_prog_gnat_correct=no
24351 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
24353 if test "$cf_cv_prog_gnat_correct" = yes; then
24354 echo "$as_me:24354: checking if GNAT works" >&5
24355 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
24357 rm -rf conftest* *~conftest*
24358 cat >>conftest.ads <<CF_EOF
24359 procedure conftest;
24361 cat >>conftest.adb <<CF_EOF
24364 procedure conftest is
24366 Text_IO.Put ("Hello World");
24368 GNAT.OS_Lib.OS_Exit (0);
24371 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
24372 if ( ./conftest 1>&5 2>&1 ) ; then
24373 cf_cv_prog_gnat_correct=yes
24375 cf_cv_prog_gnat_correct=no
24378 cf_cv_prog_gnat_correct=no
24380 rm -rf conftest* *~conftest*
24382 echo "$as_me:24382: result: $cf_cv_prog_gnat_correct" >&5
24383 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
24386 cf_cv_prog_gnat_correct=no
24390 if test "x$cf_cv_prog_gnat_correct" = xyes; then
24392 ADAFLAGS="$ADAFLAGS -gnatpn"
24394 echo "$as_me:24394: checking optimization options for ADAFLAGS" >&5
24395 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
24399 ADAFLAGS="$ADAFLAGS -g"
24405 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
24407 ADAFLAGS="$ADAFLAGS $cf_O_flag"
24411 echo "$as_me:24411: result: $ADAFLAGS" >&5
24412 echo "${ECHO_T}$ADAFLAGS" >&6
24414 echo "$as_me:24414: checking if GNATPREP supports -T option" >&5
24415 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
24416 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24420 cf_cv_gnatprep_opt_t=no
24421 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
24424 echo "$as_me:24424: result: $cf_cv_gnatprep_opt_t" >&5
24425 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
24426 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
24428 echo "$as_me:24428: checking if GNAT supports generics" >&5
24429 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
24430 case $cf_gnat_version in
24432 cf_gnat_generics=yes
24435 cf_gnat_generics=no
24438 echo "$as_me:24438: result: $cf_gnat_generics" >&5
24439 echo "${ECHO_T}$cf_gnat_generics" >&6
24441 if test "$cf_gnat_generics" = yes
24443 cf_compile_generics=generics
24444 cf_generic_objects="\${GENOBJS}"
24446 cf_compile_generics=
24447 cf_generic_objects=
24450 echo "$as_me:24450: checking if GNAT supports SIGINT" >&5
24451 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
24452 if test "${cf_cv_gnat_sigint+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24456 rm -rf conftest* *~conftest*
24457 cat >>conftest.ads <<CF_EOF
24458 with Ada.Interrupts.Names;
24460 package ConfTest is
24462 pragma Warnings (Off); -- the next pragma exists since 3.11p
24463 pragma Unreserve_All_Interrupts;
24464 pragma Warnings (On);
24466 protected Process is
24468 function Continue return Boolean;
24469 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
24471 Done : Boolean := False;
24476 cat >>conftest.adb <<CF_EOF
24477 package body ConfTest is
24478 protected body Process is
24483 function Continue return Boolean is
24490 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
24491 cf_cv_gnat_sigint=yes
24493 cf_cv_gnat_sigint=no
24495 rm -rf conftest* *~conftest*
24498 echo "$as_me:24498: result: $cf_cv_gnat_sigint" >&5
24499 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
24501 if test $cf_cv_gnat_sigint = yes ; then
24504 USE_GNAT_SIGINT="#"
24507 cf_gnat_libraries=no
24508 cf_gnat_projects=no
24510 if test "$enable_gnat_projects" != no ; then
24511 echo "$as_me:24511: checking if GNAT supports project files" >&5
24512 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
24513 case $cf_gnat_version in
24517 case $cf_cv_system_name in
24521 rm -rf conftest* *~conftest*
24522 if mkdir conftest.src conftest.bin conftest.lib
24525 rm -rf conftest* *~conftest*
24526 cat >>library.gpr <<CF_EOF
24528 Kind := External ("LIB_KIND");
24529 for Library_Name use "ConfTest";
24530 for Object_Dir use ".";
24531 for Library_ALI_Dir use External("LIBRARY_DIR");
24532 for Library_Version use External ("SONAME");
24533 for Library_Kind use Kind;
24534 for Library_Dir use External("BUILD_DIR");
24535 Source_Dir := External ("SOURCE_DIR");
24536 for Source_Dirs use (Source_Dir);
24539 cat >>confpackage.ads <<CF_EOF
24540 package ConfPackage is
24541 procedure conftest;
24544 cat >>confpackage.adb <<CF_EOF
24546 package body ConfPackage is
24547 procedure conftest is
24549 Text_IO.Put ("Hello World");
24554 if ( $cf_ada_make $ADAFLAGS \
24556 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
24557 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
24558 -XSOURCE_DIR=`pwd` \
24559 -XSONAME=libConfTest.so.1 \
24560 -XLIB_KIND=static 1>&5 2>&1 ) ; then
24561 cf_gnat_projects=yes
24565 if test -f conftest.lib/confpackage.ali
24567 cf_gnat_libraries=yes
24569 rm -rf conftest* *~conftest*
24574 echo "$as_me:24574: result: $cf_gnat_projects" >&5
24575 echo "${ECHO_T}$cf_gnat_projects" >&6
24576 fi # enable_gnat_projects
24578 if test $cf_gnat_projects = yes
24580 echo "$as_me:24580: checking if GNAT supports libraries" >&5
24581 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
24582 echo "$as_me:24582: result: $cf_gnat_libraries" >&5
24583 echo "${ECHO_T}$cf_gnat_libraries" >&6
24586 if test "$cf_gnat_projects" = yes
24588 USE_OLD_MAKERULES="#"
24589 USE_GNAT_PROJECTS=""
24591 USE_OLD_MAKERULES=""
24592 USE_GNAT_PROJECTS="#"
24595 if test "$cf_gnat_libraries" = yes
24597 USE_GNAT_LIBRARIES=""
24599 USE_GNAT_LIBRARIES="#"
24602 echo "$as_me:24602: checking for ada-compiler" >&5
24603 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
24605 # Check whether --with-ada-compiler or --without-ada-compiler was given.
24606 if test "${with_ada_compiler+set}" = set; then
24607 withval="$with_ada_compiler"
24608 cf_ada_compiler=$withval
24610 cf_ada_compiler=gnatmake
24613 echo "$as_me:24613: result: $cf_ada_compiler" >&5
24614 echo "${ECHO_T}$cf_ada_compiler" >&6
24616 cf_ada_package=terminal_interface
24618 echo "$as_me:24618: checking for ada-include" >&5
24619 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
24621 # Check whether --with-ada-include or --without-ada-include was given.
24622 if test "${with_ada_include+set}" = set; then
24623 withval="$with_ada_include"
24626 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
24627 fi; if test -n "$prefix/share/ada/adainclude" ; then
24629 if test "x$prefix" != xNONE; then
24630 cf_path_syntax="$prefix"
24632 cf_path_syntax="$ac_default_prefix"
24635 case ".$withval" in
24636 (.\$\(*\)*|.\'*\'*)
24640 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
24642 (.\${*prefix}*|.\${*dir}*)
24643 eval withval="$withval"
24644 case ".$withval" in
24646 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
24651 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
24654 { { echo "$as_me:24654: error: expected a pathname, not \"$withval\"" >&5
24655 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
24656 { (exit 1); exit 1; }; }
24661 eval ADA_INCLUDE="$withval"
24663 echo "$as_me:24663: result: $ADA_INCLUDE" >&5
24664 echo "${ECHO_T}$ADA_INCLUDE" >&6
24666 echo "$as_me:24666: checking for ada-objects" >&5
24667 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
24669 # Check whether --with-ada-objects or --without-ada-objects was given.
24670 if test "${with_ada_objects+set}" = set; then
24671 withval="$with_ada_objects"
24674 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
24675 fi; if test -n "$prefix/lib/ada/adalib" ; then
24677 if test "x$prefix" != xNONE; then
24678 cf_path_syntax="$prefix"
24680 cf_path_syntax="$ac_default_prefix"
24683 case ".$withval" in
24684 (.\$\(*\)*|.\'*\'*)
24688 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
24690 (.\${*prefix}*|.\${*dir}*)
24691 eval withval="$withval"
24692 case ".$withval" in
24694 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
24699 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
24702 { { echo "$as_me:24702: error: expected a pathname, not \"$withval\"" >&5
24703 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
24704 { (exit 1); exit 1; }; }
24709 eval ADA_OBJECTS="$withval"
24711 echo "$as_me:24711: result: $ADA_OBJECTS" >&5
24712 echo "${ECHO_T}$ADA_OBJECTS" >&6
24714 echo "$as_me:24714: checking if an Ada95 shared-library should be built" >&5
24715 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
24717 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
24718 if test "${with_ada_sharedlib+set}" = set; then
24719 withval="$with_ada_sharedlib"
24720 with_ada_sharedlib=$withval
24722 with_ada_sharedlib=no
24724 echo "$as_me:24724: result: $with_ada_sharedlib" >&5
24725 echo "${ECHO_T}$with_ada_sharedlib" >&6
24727 if test "x$with_ada_sharedlib" != xno
24729 if test "x$cf_gnat_projects" != xyes
24731 { echo "$as_me:24731: WARNING: disabling shared-library since GNAT projects are not supported" >&5
24732 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
24733 with_ada_sharedlib=no
24737 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
24738 MAKE_ADA_SHAREDLIB="#"
24740 if test "x$with_ada_sharedlib" != xno
24742 MAKE_ADA_SHAREDLIB=
24743 if test "x$with_ada_sharedlib" != xyes
24745 ADA_SHAREDLIB="$with_ada_sharedlib"
24755 # do this "late" to avoid conflict with header-checks
24756 if test "x$with_widec" = xyes ; then
24757 echo "$as_me:24757: checking for wchar_t" >&5
24758 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
24759 if test "${ac_cv_type_wchar_t+set}" = set; then
24760 echo $ECHO_N "(cached) $ECHO_C" >&6
24762 cat >conftest.$ac_ext <<_ACEOF
24763 #line 24763 "configure"
24764 #include "confdefs.h"
24765 $ac_includes_default
24771 if (sizeof (wchar_t))
24777 rm -f conftest.$ac_objext
24778 if { (eval echo "$as_me:24778: \"$ac_compile\"") >&5
24779 (eval $ac_compile) 2>&5
24781 echo "$as_me:24781: \$? = $ac_status" >&5
24782 (exit $ac_status); } &&
24783 { ac_try='test -s conftest.$ac_objext'
24784 { (eval echo "$as_me:24784: \"$ac_try\"") >&5
24785 (eval $ac_try) 2>&5
24787 echo "$as_me:24787: \$? = $ac_status" >&5
24788 (exit $ac_status); }; }; then
24789 ac_cv_type_wchar_t=yes
24791 echo "$as_me: failed program was:" >&5
24792 cat conftest.$ac_ext >&5
24793 ac_cv_type_wchar_t=no
24795 rm -f conftest.$ac_objext conftest.$ac_ext
24797 echo "$as_me:24797: result: $ac_cv_type_wchar_t" >&5
24798 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
24800 echo "$as_me:24800: checking size of wchar_t" >&5
24801 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
24802 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24803 echo $ECHO_N "(cached) $ECHO_C" >&6
24805 if test "$ac_cv_type_wchar_t" = yes; then
24806 if test "$cross_compiling" = yes; then
24807 # Depending upon the size, compute the lo and hi bounds.
24808 cat >conftest.$ac_ext <<_ACEOF
24809 #line 24809 "configure"
24810 #include "confdefs.h"
24811 $ac_includes_default
24815 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
24820 rm -f conftest.$ac_objext
24821 if { (eval echo "$as_me:24821: \"$ac_compile\"") >&5
24822 (eval $ac_compile) 2>&5
24824 echo "$as_me:24824: \$? = $ac_status" >&5
24825 (exit $ac_status); } &&
24826 { ac_try='test -s conftest.$ac_objext'
24827 { (eval echo "$as_me:24827: \"$ac_try\"") >&5
24828 (eval $ac_try) 2>&5
24830 echo "$as_me:24830: \$? = $ac_status" >&5
24831 (exit $ac_status); }; }; then
24834 cat >conftest.$ac_ext <<_ACEOF
24835 #line 24835 "configure"
24836 #include "confdefs.h"
24837 $ac_includes_default
24841 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
24846 rm -f conftest.$ac_objext
24847 if { (eval echo "$as_me:24847: \"$ac_compile\"") >&5
24848 (eval $ac_compile) 2>&5
24850 echo "$as_me:24850: \$? = $ac_status" >&5
24851 (exit $ac_status); } &&
24852 { ac_try='test -s conftest.$ac_objext'
24853 { (eval echo "$as_me:24853: \"$ac_try\"") >&5
24854 (eval $ac_try) 2>&5
24856 echo "$as_me:24856: \$? = $ac_status" >&5
24857 (exit $ac_status); }; }; then
24858 ac_hi=$ac_mid; break
24860 echo "$as_me: failed program was:" >&5
24861 cat conftest.$ac_ext >&5
24862 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
24864 rm -f conftest.$ac_objext conftest.$ac_ext
24867 echo "$as_me: failed program was:" >&5
24868 cat conftest.$ac_ext >&5
24871 cat >conftest.$ac_ext <<_ACEOF
24872 #line 24872 "configure"
24873 #include "confdefs.h"
24874 $ac_includes_default
24878 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
24883 rm -f conftest.$ac_objext
24884 if { (eval echo "$as_me:24884: \"$ac_compile\"") >&5
24885 (eval $ac_compile) 2>&5
24887 echo "$as_me:24887: \$? = $ac_status" >&5
24888 (exit $ac_status); } &&
24889 { ac_try='test -s conftest.$ac_objext'
24890 { (eval echo "$as_me:24890: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24893 echo "$as_me:24893: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
24895 ac_lo=$ac_mid; break
24897 echo "$as_me: failed program was:" >&5
24898 cat conftest.$ac_ext >&5
24899 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
24901 rm -f conftest.$ac_objext conftest.$ac_ext
24904 rm -f conftest.$ac_objext conftest.$ac_ext
24905 # Binary search between lo and hi bounds.
24906 while test "x$ac_lo" != "x$ac_hi"; do
24907 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24908 cat >conftest.$ac_ext <<_ACEOF
24909 #line 24909 "configure"
24910 #include "confdefs.h"
24911 $ac_includes_default
24915 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
24920 rm -f conftest.$ac_objext
24921 if { (eval echo "$as_me:24921: \"$ac_compile\"") >&5
24922 (eval $ac_compile) 2>&5
24924 echo "$as_me:24924: \$? = $ac_status" >&5
24925 (exit $ac_status); } &&
24926 { ac_try='test -s conftest.$ac_objext'
24927 { (eval echo "$as_me:24927: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 echo "$as_me:24930: \$? = $ac_status" >&5
24931 (exit $ac_status); }; }; then
24934 echo "$as_me: failed program was:" >&5
24935 cat conftest.$ac_ext >&5
24936 ac_lo=`expr $ac_mid + 1`
24938 rm -f conftest.$ac_objext conftest.$ac_ext
24940 ac_cv_sizeof_wchar_t=$ac_lo
24942 if test "$cross_compiling" = yes; then
24943 { { echo "$as_me:24943: error: cannot run test program while cross compiling" >&5
24944 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
24945 { (exit 1); exit 1; }; }
24947 cat >conftest.$ac_ext <<_ACEOF
24948 #line 24948 "configure"
24949 #include "confdefs.h"
24950 $ac_includes_default
24954 FILE *f = fopen ("conftest.val", "w");
24956 $ac_main_return (1);
24957 fprintf (f, "%d", (sizeof (wchar_t)));
24963 rm -f conftest$ac_exeext
24964 if { (eval echo "$as_me:24964: \"$ac_link\"") >&5
24965 (eval $ac_link) 2>&5
24967 echo "$as_me:24967: \$? = $ac_status" >&5
24968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24969 { (eval echo "$as_me:24969: \"$ac_try\"") >&5
24970 (eval $ac_try) 2>&5
24972 echo "$as_me:24972: \$? = $ac_status" >&5
24973 (exit $ac_status); }; }; then
24974 ac_cv_sizeof_wchar_t=`cat conftest.val`
24976 echo "$as_me: program exited with status $ac_status" >&5
24977 echo "$as_me: failed program was:" >&5
24978 cat conftest.$ac_ext >&5
24980 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24985 ac_cv_sizeof_wchar_t=0
24988 echo "$as_me:24988: result: $ac_cv_sizeof_wchar_t" >&5
24989 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
24990 cat >>confdefs.h <<EOF
24991 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24996 ### Construct the ncurses library-subsets, if any, from this set of keywords:
24997 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
24999 ### ticlib modules may be a separate library, otherwise contained in termlib.
25000 ### termlib modules may be a separate library, otherwise contained in ncurses.
25002 ### The of "+" or " " between the tokens controls the way the script
25003 ### chooses to split module lists into libraries.
25005 ### (see CF_LIB_RULES).
25006 echo "$as_me:25006: checking for library subsets" >&5
25007 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
25010 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
25011 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
25012 if test "$with_ticlib" != no ; then
25013 LIB_SUBSETS="${LIB_SUBSETS} "
25015 LIB_SUBSETS="${LIB_SUBSETS}+"
25019 LIB_SUBSETS="${LIB_SUBSETS}termlib"
25020 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
25022 if test "$with_termlib" != no ; then
25023 LIB_SUBSETS="${LIB_SUBSETS} "
25025 LIB_SUBSETS="${LIB_SUBSETS}+"
25028 LIB_SUBSETS="${LIB_SUBSETS}base"
25030 # Most term-driver calls are to tinfo, but some like init_pair are to the
25031 # base library (so it resides in base).
25032 if test "$with_term_driver" != no ; then
25033 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
25034 case $cf_cv_system_name in
25035 (*mingw32*|*mingw64*)
25036 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
25037 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
25040 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
25045 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
25046 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
25048 echo "$as_me:25048: result: $LIB_SUBSETS" >&5
25049 echo "${ECHO_T}$LIB_SUBSETS" >&6
25051 ### Construct the list of include-directories to be generated
25053 if test "$srcdir" != "."; then
25054 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
25056 CPPFLAGS="-I../include $CPPFLAGS"
25057 if test "$srcdir" != "."; then
25058 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
25060 CPPFLAGS="-I. $CPPFLAGS"
25062 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
25063 if test "$srcdir" != "."; then
25064 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
25066 if test "$GCC" != yes; then
25067 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25068 elif test "$includedir" != "/usr/include"; then
25069 if test "$includedir" = '${prefix}/include' ; then
25070 if test x$prefix != x/usr ; then
25071 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25074 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25078 ### Build up pieces for makefile rules
25079 echo "$as_me:25079: checking default library suffix" >&5
25080 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
25082 case $DFT_LWR_MODEL in
25083 (libtool) DFT_ARG_SUFFIX='' ;;
25084 (normal) DFT_ARG_SUFFIX='' ;;
25085 (debug) DFT_ARG_SUFFIX='_g' ;;
25086 (profile) DFT_ARG_SUFFIX='_p' ;;
25087 (shared) DFT_ARG_SUFFIX='' ;;
25089 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
25090 echo "$as_me:25090: result: $DFT_ARG_SUFFIX" >&5
25091 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
25093 echo "$as_me:25093: checking default library-dependency suffix" >&5
25094 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
25096 case X$DFT_LWR_MODEL in
25098 DFT_LIB_SUFFIX='.la'
25099 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25102 DFT_LIB_SUFFIX='_g.a'
25103 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25106 DFT_LIB_SUFFIX='_p.a'
25107 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25110 case $cf_cv_system_name in
25112 DFT_LIB_SUFFIX='.so'
25113 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25115 (cygwin*|msys*|mingw*)
25116 DFT_LIB_SUFFIX='.dll'
25117 DFT_DEP_SUFFIX='.dll.a'
25120 DFT_LIB_SUFFIX='.dylib'
25121 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25126 DFT_LIB_SUFFIX='.so'
25127 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25130 DFT_LIB_SUFFIX='.sl'
25131 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25136 DFT_LIB_SUFFIX='.so'
25137 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25142 DFT_LIB_SUFFIX='.a'
25143 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25146 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25148 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
25149 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
25151 echo "$as_me:25151: result: $DFT_DEP_SUFFIX" >&5
25152 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
25154 echo "$as_me:25154: checking default object directory" >&5
25155 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
25157 case $DFT_LWR_MODEL in
25158 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
25159 (normal) DFT_OBJ_SUBDIR='objects' ;;
25160 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
25161 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
25163 case $cf_cv_system_name in
25165 DFT_OBJ_SUBDIR='objects' ;;
25167 DFT_OBJ_SUBDIR='obj_s' ;;
25170 echo "$as_me:25170: result: $DFT_OBJ_SUBDIR" >&5
25171 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
25173 if test "x$cf_with_cxx" = xyes ; then
25174 echo "$as_me:25174: checking c++ library-dependency suffix" >&5
25175 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
25176 if test "$with_libtool" != "no"; then
25177 # libtool thinks it can make c++ shared libraries (perhaps only g++)
25178 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25179 elif test "$with_shared_cxx" != "no"; then
25180 # also for g++ users...
25181 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25183 # we normally make a static library because C/C++ library rules differ
25187 CXX_LIB_SUFFIX='.la'
25188 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25191 CXX_LIB_SUFFIX='_g.a'
25192 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25195 CXX_LIB_SUFFIX='_p.a'
25196 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25199 case $cf_cv_system_name in
25201 CXX_LIB_SUFFIX='.so'
25202 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25204 (cygwin*|msys*|mingw*)
25205 CXX_LIB_SUFFIX='.dll'
25206 CXX_DEP_SUFFIX='.dll.a'
25209 CXX_LIB_SUFFIX='.dylib'
25210 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25215 CXX_LIB_SUFFIX='.so'
25216 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25219 CXX_LIB_SUFFIX='.sl'
25220 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25225 CXX_LIB_SUFFIX='.so'
25226 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25231 CXX_LIB_SUFFIX='.a'
25232 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25235 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25237 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
25238 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
25242 echo "$as_me:25242: result: $CXX_LIB_SUFFIX" >&5
25243 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
25247 # do not want -ldl in build except as needed for -lncurses dependency
25248 if test "x$with_dlsym" = xyes ; then
25249 if test $DFT_LWR_MODEL = shared || \
25250 test $DFT_LWR_MODEL = libtool ; then
25252 # remove dl library from $LIBS
25253 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25257 ### Set up low-level terminfo dependencies for makefiles.
25259 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
25260 # do not need libdl
25262 if test "x$with_dlsym" = xyes ; then
25264 # remove dl library from $SHLIB_LIST
25265 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25269 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
25270 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
25271 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
25272 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
25274 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
25277 if test "$with_ticlib" != no ; then
25279 if test "x$with_ticlib" != xyes ; then
25280 TICS_NAME=$with_ticlib
25281 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25282 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25283 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25284 TICS_LIB_SUFFIX="${with_ticlib}"
25286 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25287 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
25288 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
25289 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
25291 TICS_LDFLAGS="-L${LIB_DIR}"
25292 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
25294 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25295 TICS_LDFLAGS="-L${LIB_DIR}"
25296 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
25299 if test "$with_termlib" != no ; then
25301 if test "x$with_termlib" != xyes ; then
25302 TINFO_NAME=$with_termlib
25303 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25304 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25305 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25306 TINFO_LIB_SUFFIX="${with_termlib}"
25308 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
25309 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
25310 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
25311 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
25314 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25315 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25316 if test "$DFT_LWR_MODEL" = "libtool"; then
25317 TEST_ARGS="${TEST_DEPS}"
25318 TEST_ARG2="${TEST_DEP2}"
25319 TINFO_LDFLAGS="-L${LIB_DIR}"
25320 TINFO_LIBS="$TEST_ARGS"
25321 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
25322 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
25324 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
25325 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
25326 if test "x$with_term_driver" != xno ; then
25327 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
25328 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
25329 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
25331 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
25332 TINFO_LIBS="$TEST_ARGS"
25334 TINFO_LDFLAGS="-L${LIB_DIR}"
25335 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
25338 # the next lines are needed for linking libtic over libncurses
25339 TINFO_NAME=${LIB_NAME}
25340 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
25341 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
25342 if test "x$with_tic_depends" = xyes ; then
25343 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
25345 TICS_LIST="$SHLIB_LIST"
25348 TINFO_LDFLAGS="-L${LIB_DIR}"
25349 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
25352 if test "$DFT_LWR_MODEL" = shared ; then
25353 case $cf_cv_system_name in
25355 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
25361 if test "x$with_dlsym" = xyes ; then
25363 # remove dl library from $TICS_LIST
25364 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25368 if test "$DFT_LWR_MODEL" = "libtool"; then
25373 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
25375 case $DFT_LWR_MODEL in
25376 (normal|debug|profile)
25378 if test "$GCC" = yes ; then
25379 case $cf_cv_system_name in
25380 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
25384 (*) # normally, except when broken
25385 LDFLAGS_STATIC=-static
25386 LDFLAGS_SHARED=-dynamic
25390 case $cf_cv_system_name in
25391 (aix[4-7]*) # from ld manpage
25392 LDFLAGS_STATIC=-bstatic
25393 LDFLAGS_SHARED=-bdynamic
25395 (hpux*) # from ld manpage for hpux10.20, hpux11.11
25396 # We could also use just "archive" and "shared".
25397 LDFLAGS_STATIC=-Wl,-a,archive_shared
25398 LDFLAGS_SHARED=-Wl,-a,shared_archive
25400 (irix*) # from ld manpage IRIX64
25401 LDFLAGS_STATIC=-Bstatic
25402 LDFLAGS_SHARED=-Bdynamic
25404 (osf[45]*) # from ld manpage osf4.0d, osf5.1
25405 # alternative "-oldstyle_liblookup" (not in cc manpage)
25406 LDFLAGS_STATIC=-noso
25407 LDFLAGS_SHARED=-so_archive
25410 LDFLAGS_STATIC=-Bstatic
25411 LDFLAGS_SHARED=-Bdynamic
25416 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
25418 echo "$as_me:25418: checking if linker supports switching between static/dynamic" >&5
25419 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
25421 rm -f libconftest.a
25422 cat >conftest.$ac_ext <<EOF
25423 #line 25423 "configure"
25425 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
25427 if { (eval echo "$as_me:25427: \"$ac_compile\"") >&5
25428 (eval $ac_compile) 2>&5
25430 echo "$as_me:25430: \$? = $ac_status" >&5
25431 (exit $ac_status); } ; then
25432 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
25433 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
25437 cf_save_LIBS="$LIBS"
25439 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
25440 cat >conftest.$ac_ext <<_ACEOF
25441 #line 25441 "configure"
25442 #include "confdefs.h"
25444 #line 25444 "configure"
25446 int cf_ldflags_static(FILE *fp);
25452 return cf_ldflags_static(stdin);
25458 rm -f conftest.$ac_objext conftest$ac_exeext
25459 if { (eval echo "$as_me:25459: \"$ac_link\"") >&5
25460 (eval $ac_link) 2>&5
25462 echo "$as_me:25462: \$? = $ac_status" >&5
25463 (exit $ac_status); } &&
25464 { ac_try='test -s conftest$ac_exeext'
25465 { (eval echo "$as_me:25465: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25468 echo "$as_me:25468: \$? = $ac_status" >&5
25469 (exit $ac_status); }; }; then
25471 # some linkers simply ignore the -dynamic
25472 case x`file conftest$ac_exeext 2>/dev/null` in
25474 cf_ldflags_static=no
25477 cf_ldflags_static=yes
25482 echo "$as_me: failed program was:" >&5
25483 cat conftest.$ac_ext >&5
25484 cf_ldflags_static=no
25486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25488 rm -f libconftest.*
25489 LIBS="$cf_save_LIBS"
25491 echo "$as_me:25491: result: $cf_ldflags_static" >&5
25492 echo "${ECHO_T}$cf_ldflags_static" >&6
25494 if test $cf_ldflags_static != yes
25507 echo "$as_me:25507: checking where we will install curses.h" >&5
25508 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
25511 if test "$with_overwrite" = no && \
25512 ( test "x$includedir" = 'x${prefix}/include' || \
25513 test "x$includedir" = "x${prefix}/include" )
25515 includesubdir="/ncurses${USE_LIB_SUFFIX}"
25517 echo "$as_me:25517: result: ${includedir}${includesubdir}" >&5
25518 echo "${ECHO_T}${includedir}${includesubdir}" >&6
25520 ### Resolve a conflict between normal and wide-curses by forcing applications
25521 ### that will need libutf8 to add it to their configure script.
25522 if test "$with_overwrite" != no ; then
25523 if test "$NCURSES_LIBUTF8" = 1 ; then
25524 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
25525 { echo "$as_me:25525: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
25526 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
25529 WITH_OVERWRITE=$with_overwrite
25531 # used to separate tack out of the tree
25534 ### predefined stuff for the test programs
25536 cat >>confdefs.h <<\EOF
25537 #define HAVE_SLK_COLOR 1
25540 ### Construct the list of subdirectories for which we'll customize makefiles
25541 ### with the appropriate compile-rules.
25543 echo "$as_me:25543: checking for src modules" >&5
25544 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
25546 # dependencies and linker-arguments for test-programs
25547 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
25548 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
25549 if test "$DFT_LWR_MODEL" = "libtool"; then
25550 TEST_ARGS="${TEST_DEPS}"
25551 TEST_ARG2="${TEST_DEP2}"
25553 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
25554 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
25557 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
25559 for cf_dir in $modules_to_build
25561 if test -f $srcdir/$cf_dir/modules; then
25563 # We may/may not have tack in the distribution, though the
25565 if test $cf_dir = tack ; then
25566 if test "x$cf_with_tack" != "xyes"; then
25571 if test -z "$cf_cv_src_modules"; then
25572 cf_cv_src_modules=$cf_dir
25574 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
25577 # Make the ncurses_cfg.h file record the library interface files as
25578 # well. These are header files that are the same name as their
25579 # directory. Ncurses is the only library that does not follow
25581 if test $cf_dir = tack ; then
25583 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
25585 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
25587 cat >>confdefs.h <<EOF
25588 #define HAVE_${cf_have_include}_H 1
25591 cat >>confdefs.h <<EOF
25592 #define HAVE_LIB${cf_have_include} 1
25595 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
25596 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
25597 if test "$DFT_LWR_MODEL" = "libtool"; then
25598 TEST_ARGS="${TEST_DEPS}"
25599 TEST_ARG2="${TEST_DEP2}"
25601 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
25602 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
25604 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
25608 echo "$as_me:25608: result: $cf_cv_src_modules" >&5
25609 echo "${ECHO_T}$cf_cv_src_modules" >&6
25611 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
25612 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
25615 if test "x$cf_with_manpages" != xno ; then
25616 SRC_SUBDIRS="$SRC_SUBDIRS man"
25618 SRC_SUBDIRS="$SRC_SUBDIRS include"
25619 for cf_dir in $cf_cv_src_modules
25621 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
25623 if test "x$cf_with_tests" != "xno" ; then
25624 SRC_SUBDIRS="$SRC_SUBDIRS test"
25626 # always make this, to install the ncurses-config script
25627 SRC_SUBDIRS="$SRC_SUBDIRS misc"
25628 if test "$cf_with_cxx_binding" != no; then
25629 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
25630 SRC_SUBDIRS="$SRC_SUBDIRS c++"
25633 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
25634 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
25637 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
25638 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
25639 ADA_SUBDIRS="gen src"
25640 if test "x$cf_with_tests" != "xno" ; then
25641 ADA_SUBDIRS="$ADA_SUBDIRS samples"
25646 for cf_dir in $SRC_SUBDIRS
25648 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
25651 if test -n "$ADA_SUBDIRS"; then
25652 for cf_dir in $ADA_SUBDIRS
25654 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
25659 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
25660 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
25661 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
25665 for cf_item in $cf_list_models
25669 (libtool) cf_subdir='obj_lo' ;;
25670 (normal) cf_subdir='objects' ;;
25671 (debug) cf_subdir='obj_g' ;;
25672 (profile) cf_subdir='obj_p' ;;
25674 case $cf_cv_system_name in
25676 cf_subdir='objects' ;;
25678 cf_subdir='obj_s' ;;
25682 for cf_item2 in $DIRS_TO_MAKE
25684 test $cf_item2 = $cf_subdir && break
25686 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
25688 for cf_dir in $DIRS_TO_MAKE
25690 test ! -d $cf_dir && mkdir $cf_dir
25693 # symbols that differ when compiling Ada95 by itself.
25694 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
25696 # values to use as strings
25698 cat >>confdefs.h <<EOF
25699 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
25702 cat >>confdefs.h <<EOF
25703 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
25706 ### Now that we're done running tests, add the compiler-warnings, if any
25711 cf_new_extra_cppflags=
25713 for cf_add_cflags in $EXTRA_CFLAGS
25715 case $cf_fix_cppflags in
25717 case $cf_add_cflags in
25718 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
25719 case $cf_add_cflags in
25721 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
25723 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
25724 && test -z "${cf_tst_cflags}" \
25725 && cf_fix_cppflags=yes
25727 if test $cf_fix_cppflags = yes ; then
25729 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
25730 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
25733 elif test "${cf_tst_cflags}" = "\"'" ; then
25735 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
25736 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
25742 case "$CPPFLAGS" in
25746 case $cf_add_cflags in
25748 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
25750 CPPFLAGS=`echo "$CPPFLAGS" | \
25751 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
25752 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
25757 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
25758 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
25765 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
25766 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
25773 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
25774 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
25776 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
25778 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
25779 && test -z "${cf_tst_cflags}" \
25780 && cf_fix_cppflags=no
25785 if test -n "$cf_new_cflags" ; then
25787 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
25788 CFLAGS="${CFLAGS}$cf_new_cflags"
25792 if test -n "$cf_new_cppflags" ; then
25794 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
25795 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
25799 if test -n "$cf_new_extra_cppflags" ; then
25801 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
25802 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
25806 ### Define substitutions for header files to avoid name-pollution
25808 if test "x$cf_cv_have_tcgetattr" = xyes ; then
25814 if test "x$ac_cv_header_stdint_h" = xyes ; then
25820 if test "x$ac_cv_header_termio_h" = xyes ; then
25826 if test "x$ac_cv_header_termios_h" = xyes ; then
25832 ################################################################################
25833 test "x$use_database" = xyes && \
25834 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
25836 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
25837 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
25839 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
25840 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
25843 if test "x$cf_with_tests" != xno ; then
25849 ADAHTML_DIR=../../doc/html/ada
25851 # these could be configurable, but are not currently
25857 # workaround for OS/2 (20151017)
25858 case $cf_cv_system_name in
25860 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
25867 # workaround for g++ versus Solaris (20131116)
25868 case $cf_cv_system_name in
25870 case "x$CPPFLAGS" in
25871 (*-D_XOPEN_SOURCE_EXTENDED*)
25872 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
25874 echo "${as_me:-configure}:25874: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
25876 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
25877 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
25883 # Help to automatically enable the extended curses features when using either
25884 # the *-config or the ".pc" files by adding defines.
25885 echo "$as_me:25885: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
25886 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
25888 for cf_loop1 in $CPPFLAGS_after_XOPEN
25891 for cf_loop2 in $CPPFLAGS_before_XOPEN
25893 if test "x$cf_loop1" = "x$cf_loop2"
25899 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
25901 echo "$as_me:25901: result: $PKG_CFLAGS" >&5
25902 echo "${ECHO_T}$PKG_CFLAGS" >&6
25904 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
25905 case "x$NCURSES_OSPEED" in
25914 cat >>confdefs.h <<EOF
25915 #define NCURSES_OSPEED_COMPAT $cf_compatible
25918 case "x$cf_cv_typeof_chtype" in
25919 (xshort|xint|xlong)
25920 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
25924 case "x$cf_cv_typeof_mmask_t" in
25925 (xshort|xint|xlong)
25926 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
25930 # substitute into misc/Makefile to suppress
25931 # (un)install.data from the
25932 # (un)install rules.
25933 if test "x$cf_with_db_install" = "xno"; then
25935 MISC_UNINSTALL_DATA=
25937 MISC_INSTALL_DATA=install.data
25938 MISC_UNINSTALL_DATA=uninstall.data
25941 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
25944 MAKE_DATABASE="$MAKE_TERMINFO"
25949 if test -n "$PACKAGE"
25951 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
25953 echo "package: $PACKAGE"
25959 if test -n "$RESULTING_SYMS"
25961 cf_filter_syms=$cf_dft_filter_syms
25962 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
25964 echo "${as_me:-configure}:25964: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
25968 if test "x$WILDCARD_SYMS" = xno
25973 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
25975 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
25976 if test $cf_filter_syms = yes
25978 RESULTING_SYMS=resulting.map
25981 if test "x$cross_compiling" = xyes ; then
25982 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
25985 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
25989 cat >>confdefs.h <<\EOF
25990 #define HAVE_CURSES_DATA_BOOLNAMES 1
25993 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"
25994 ac_config_commands="$ac_config_commands default"
25995 cat >confcache <<\_ACEOF
25996 # This file is a shell script that caches the results of configure
25997 # tests run on this system so they can be shared between configure
25998 # scripts and configure runs, see configure's option --config-cache.
25999 # It is not useful on other systems. If it contains results you don't
26000 # want to keep, you may remove or edit it.
26002 # config.status only pays attention to the cache file if you give it
26003 # the --recheck option to rerun configure.
26005 # `ac_cv_env_foo' variables (set or unset) will be overriden when
26006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26007 # following values.
26011 # The following way of writing the cache mishandles newlines in values,
26012 # but we know of no workaround that is simple, portable, and efficient.
26013 # So, don't put newlines in cache variables' values.
26014 # Ultrix sh set writes to stderr and can't be redirected directly,
26015 # and sets the high bit in the cache file unless we assign to the vars.
26018 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26020 # `set' does not quote correctly, so add quotes (double-quote
26021 # substitution turns \\\\ into \\, and sed turns \\ into \).
26024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26027 # `set' quotes correctly as required by POSIX, so do not add quotes.
26029 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26038 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26040 if cmp -s $cache_file confcache; then :; else
26041 if test -w $cache_file; then
26042 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26043 cat confcache >$cache_file
26045 echo "not updating unwritable cache $cache_file"
26050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26051 # Let make expand exec_prefix.
26052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26054 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26055 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26056 # trailing colons and then remove the whole line if VPATH becomes empty
26057 # (actually we leave an empty line to preserve line numbers).
26058 if test "x$srcdir" = x.; then
26059 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26060 s/:*\$(srcdir):*/:/;
26061 s/:*\${srcdir}:*/:/;
26063 s/^\([^=]*=[ ]*\):*/\1/;
26069 DEFS=-DHAVE_CONFIG_H
26071 : ${CONFIG_STATUS=./config.status}
26072 ac_clean_files_save=$ac_clean_files
26073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26074 { echo "$as_me:26074: creating $CONFIG_STATUS" >&5
26075 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26076 cat >$CONFIG_STATUS <<_ACEOF
26078 # Generated automatically by configure.
26079 # Run this file to recreate the current configuration.
26080 # Compiler output produced by configure, useful for debugging
26081 # configure, is in config.log if it exists.
26084 SHELL=\${CONFIG_SHELL-$SHELL}
26085 ac_cs_invocation="\$0 \$@"
26089 cat >>$CONFIG_STATUS <<\_ACEOF
26090 # Be Bourne compatible
26091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26094 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26098 # Name of the executable.
26099 as_me=`echo "$0" |sed 's,.*[\\/],,'`
26101 if expr a : '\(a\)' >/dev/null 2>&1; then
26107 rm -f conf$$ conf$$.exe conf$$.file
26109 if ln -s conf$$.file conf$$ 2>/dev/null; then
26110 # We could just check for DJGPP; but this test a) works b) is more generic
26111 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26112 if test -f conf$$.exe; then
26113 # Don't use ln at all; we don't have any links
26118 elif ln conf$$.file conf$$ 2>/dev/null; then
26123 rm -f conf$$ conf$$.exe conf$$.file
26125 as_executable_p="test -f"
26127 # Support unset when possible.
26128 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26135 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
26136 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
26137 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
26138 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
26139 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
26140 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
26141 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
26142 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
26145 # We need space, tab and new line, in precisely that order.
26151 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
26157 # Files that config.status was made for.
26158 if test -n "$ac_config_files"; then
26159 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26162 if test -n "$ac_config_headers"; then
26163 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26166 if test -n "$ac_config_links"; then
26167 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26170 if test -n "$ac_config_commands"; then
26171 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26174 cat >>$CONFIG_STATUS <<\EOF
26177 \`$as_me' instantiates files from templates according to the
26178 current configuration.
26180 Usage: $0 [OPTIONS] [FILE]...
26182 -h, --help print this help, then exit
26183 -V, --version print version number, then exit
26184 -d, --debug don't remove temporary files
26185 --recheck update $as_me by reconfiguring in the same conditions
26186 --file=FILE[:TEMPLATE]
26187 instantiate the configuration file FILE
26188 --header=FILE[:TEMPLATE]
26189 instantiate the configuration header FILE
26191 Configuration files:
26194 Configuration headers:
26197 Configuration commands:
26200 Report bugs to <dickey@invisible-island.net>."
26203 cat >>$CONFIG_STATUS <<EOF
26206 configured by $0, generated by GNU Autoconf 2.52.20181006,
26207 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26209 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
26210 Free Software Foundation, Inc.
26211 This config.status script is free software; the Free Software Foundation
26212 gives unlimited permission to copy, distribute and modify it."
26217 cat >>$CONFIG_STATUS <<\EOF
26218 # If no file are specified by the user, then we need to provide default
26219 # value. By we need to know if files were specified by the user.
26225 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26226 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26228 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
26232 *) # This is not an option, so the user has probably given explicit
26234 ac_need_defaults=false;;
26238 # Handling of the options.
26240 cat >>$CONFIG_STATUS <<EOF
26241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26242 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
26243 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
26245 cat >>$CONFIG_STATUS <<\EOF
26246 --version | --vers* | -V )
26247 echo "$ac_cs_version"; exit 0 ;;
26249 # Conflict between --help and --header
26250 { { echo "$as_me:26250: error: ambiguous option: $1
26251 Try \`$0 --help' for more information." >&5
26252 echo "$as_me: error: ambiguous option: $1
26253 Try \`$0 --help' for more information." >&2;}
26254 { (exit 1); exit 1; }; };;
26255 --help | --hel | -h )
26256 echo "$ac_cs_usage"; exit 0 ;;
26257 --debug | --d* | -d )
26259 --file | --fil | --fi | --f )
26261 CONFIG_FILES="$CONFIG_FILES $1"
26262 ac_need_defaults=false;;
26263 --header | --heade | --head | --hea )
26265 CONFIG_HEADERS="$CONFIG_HEADERS $1"
26266 ac_need_defaults=false;;
26268 # This is an error.
26269 -*) { { echo "$as_me:26269: error: unrecognized option: $1
26270 Try \`$0 --help' for more information." >&5
26271 echo "$as_me: error: unrecognized option: $1
26272 Try \`$0 --help' for more information." >&2;}
26273 { (exit 1); exit 1; }; } ;;
26275 *) ac_config_targets="$ac_config_targets $1" ;;
26284 ## ----------------------- ##
26285 ## Running config.status. ##
26286 ## ----------------------- ##
26288 This file was extended by $as_me 2.52.20181006, executed with
26289 CONFIG_FILES = $CONFIG_FILES
26290 CONFIG_HEADERS = $CONFIG_HEADERS
26291 CONFIG_LINKS = $CONFIG_LINKS
26292 CONFIG_COMMANDS = $CONFIG_COMMANDS
26293 > $ac_cs_invocation
26294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26299 cat >>$CONFIG_STATUS <<EOF
26301 # INIT-COMMANDS section.
26304 ### Special initialization commands, used to pass information from the
26305 ### configuration-run into config.status
26308 ALTERNATE_SYMS="$ALTERNATE_SYMS"
26309 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
26310 DFT_LWR_MODEL="$DFT_LWR_MODEL"
26312 EXTRA_SUFFIX="$EXTRA_SUFFIX"
26313 LDCONFIG="$LDCONFIG"
26314 LIBTOOL_VERSION="$LIBTOOL_VERSION"
26315 LIB_NAME="$LIB_NAME"
26316 LIB_PREFIX="$LIB_PREFIX"
26317 LIB_SUBSETS="$LIB_SUBSETS"
26318 LIB_SUFFIX="$LIB_SUFFIX"
26319 LIB_TRACING="$LIB_TRACING"
26321 MAKE_TERMINFO="$MAKE_TERMINFO"
26322 NCURSES_MAJOR="$NCURSES_MAJOR"
26323 NCURSES_MINOR="$NCURSES_MINOR"
26324 NCURSES_OSPEED="$NCURSES_OSPEED"
26325 NCURSES_PATCH="$NCURSES_PATCH"
26326 SRC_SUBDIRS="$SRC_SUBDIRS"
26327 TERMINFO="$TERMINFO"
26328 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
26329 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
26330 TICS_NAME="$TICS_NAME"
26331 TICS_SUFFIX="$TICS_SUFFIX"
26332 TIC_PATH="$TIC_PATH"
26333 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
26334 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
26335 TINFO_NAME="$TINFO_NAME"
26336 TINFO_SUFFIX="$TINFO_SUFFIX"
26337 UNALTERED_SYMS="$UNALTERED_SYMS"
26338 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
26339 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
26340 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
26341 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
26342 WILDCARD_SYMS="$WILDCARD_SYMS"
26343 WITH_CURSES_H="$with_curses_h"
26344 WITH_ECHO="${enable_echo:=yes}"
26345 WITH_OVERWRITE="$with_overwrite"
26346 cf_LIST_MODELS="$cf_list_models"
26347 cf_cv_abi_version="$cf_cv_abi_version"
26348 cf_cv_do_relink="$cf_cv_do_relink"
26349 cf_cv_do_reranlib="$cf_cv_do_reranlib"
26350 cf_cv_do_symlinks="$cf_cv_do_symlinks"
26351 cf_cv_enable_lp64="$cf_cv_enable_lp64"
26352 cf_cv_enable_opaque="$cf_cv_enable_opaque"
26353 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
26354 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
26355 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
26356 cf_cv_rel_version="$cf_cv_rel_version"
26357 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
26358 cf_cv_shared_soname='$cf_cv_shared_soname'
26359 cf_cv_shlib_version="$cf_cv_shlib_version"
26360 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
26361 cf_cv_system_name="$cf_cv_system_name"
26362 cf_cv_term_driver="$with_term_driver"
26363 cf_with_ada="$cf_with_ada"
26364 cf_with_cxx_binding="$cf_with_cxx_binding"
26365 cf_with_db_install="$cf_with_db_install"
26366 cf_with_manpages="$cf_with_manpages"
26367 cf_with_tests="$cf_with_tests"
26370 with_shared_cxx="$with_shared_cxx"
26374 cat >>$CONFIG_STATUS <<\EOF
26375 for ac_config_target in $ac_config_targets
26377 case "$ac_config_target" in
26378 # Handling of arguments.
26379 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
26380 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
26381 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
26382 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
26383 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
26384 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
26385 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
26386 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26387 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26388 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
26389 *) { { echo "$as_me:26389: error: invalid argument: $ac_config_target" >&5
26390 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26391 { (exit 1); exit 1; }; };;
26395 # If the user did not use the arguments to specify the items to instantiate,
26396 # then the envvar interface is used. Set only those that are not.
26397 # We use the long form for the default assignment because of an extremely
26398 # bizarre bug on SunOS 4.1.3.
26399 if $ac_need_defaults; then
26400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26401 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26402 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26405 # Create a temporary directory, and hook for its removal unless debugging.
26408 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26409 trap '{ (exit 1); exit 1; }' 1 2 13 15
26412 # Create a (secure) tmp directory for tmp files.
26415 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
26416 test -n "$tmp" && test -d "$tmp"
26419 tmp=$TMPDIR/cs$$-$RANDOM
26420 (umask 077 && mkdir $tmp)
26423 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
26424 { (exit 1); exit 1; }
26429 cat >>$CONFIG_STATUS <<EOF
26432 # CONFIG_FILES section.
26435 # No need to generate the scripts if there are no CONFIG_FILES.
26436 # This happens for instance when ./config.status config.h
26437 if test -n "\$CONFIG_FILES"; then
26438 # Protect against being on the right side of a sed subst in config.status.
26439 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26440 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26441 s,@SHELL@,$SHELL,;t t
26442 s,@exec_prefix@,$exec_prefix,;t t
26443 s,@prefix@,$prefix,;t t
26444 s,@program_transform_name@,$program_transform_name,;t t
26445 s,@bindir@,$bindir,;t t
26446 s,@sbindir@,$sbindir,;t t
26447 s,@libexecdir@,$libexecdir,;t t
26448 s,@datarootdir@,$datarootdir,;t t
26449 s,@datadir@,$datadir,;t t
26450 s,@sysconfdir@,$sysconfdir,;t t
26451 s,@sharedstatedir@,$sharedstatedir,;t t
26452 s,@localstatedir@,$localstatedir,;t t
26453 s,@runstatedir@,$runstatedir,;t t
26454 s,@libdir@,$libdir,;t t
26455 s,@includedir@,$includedir,;t t
26456 s,@oldincludedir@,$oldincludedir,;t t
26457 s,@infodir@,$infodir,;t t
26458 s,@mandir@,$mandir,;t t
26459 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26460 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26461 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26462 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26463 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26464 s,@build_alias@,$build_alias,;t t
26465 s,@host_alias@,$host_alias,;t t
26466 s,@target_alias@,$target_alias,;t t
26467 s,@ECHO_C@,$ECHO_C,;t t
26468 s,@ECHO_N@,$ECHO_N,;t t
26469 s,@ECHO_T@,$ECHO_T,;t t
26470 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26471 s,@DEFS@,$DEFS,;t t
26472 s,@LIBS@,$LIBS,;t t
26473 s,@top_builddir@,$top_builddir,;t t
26474 s,@EGREP@,$EGREP,;t t
26475 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
26476 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
26477 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
26478 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
26479 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
26480 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
26481 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
26482 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
26483 s,@VERSION@,$VERSION,;t t
26484 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
26485 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
26486 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
26487 s,@PACKAGE@,$PACKAGE,;t t
26488 s,@build@,$build,;t t
26489 s,@build_cpu@,$build_cpu,;t t
26490 s,@build_vendor@,$build_vendor,;t t
26491 s,@build_os@,$build_os,;t t
26492 s,@host@,$host,;t t
26493 s,@host_cpu@,$host_cpu,;t t
26494 s,@host_vendor@,$host_vendor,;t t
26495 s,@host_os@,$host_os,;t t
26496 s,@target@,$target,;t t
26497 s,@target_cpu@,$target_cpu,;t t
26498 s,@target_vendor@,$target_vendor,;t t
26499 s,@target_os@,$target_os,;t t
26501 s,@CFLAGS@,$CFLAGS,;t t
26502 s,@LDFLAGS@,$LDFLAGS,;t t
26503 s,@CPPFLAGS@,$CPPFLAGS,;t t
26504 s,@ac_ct_CC@,$ac_ct_CC,;t t
26505 s,@EXEEXT@,$EXEEXT,;t t
26506 s,@OBJEXT@,$OBJEXT,;t t
26507 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
26509 s,@LDCONFIG@,$LDCONFIG,;t t
26511 s,@CXXFLAGS@,$CXXFLAGS,;t t
26512 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26514 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26515 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26516 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26517 s,@LINT@,$LINT,;t t
26518 s,@LINT_OPTS@,$LINT_OPTS,;t t
26519 s,@LN_S@,$LN_S,;t t
26520 s,@cf_config_suffix@,$cf_config_suffix,;t t
26521 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26522 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
26523 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
26524 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
26525 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
26526 s,@SET_MAKE@,$SET_MAKE,;t t
26527 s,@CTAGS@,$CTAGS,;t t
26528 s,@ETAGS@,$ETAGS,;t t
26529 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
26530 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
26531 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
26532 s,@RANLIB@,$RANLIB,;t t
26533 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26535 s,@ac_ct_LD@,$ac_ct_LD,;t t
26537 s,@ac_ct_AR@,$ac_ct_AR,;t t
26539 s,@ac_ct_NM@,$ac_ct_NM,;t t
26540 s,@ARFLAGS@,$ARFLAGS,;t t
26541 s,@DESTDIR@,$DESTDIR,;t t
26542 s,@BUILD_CC@,$BUILD_CC,;t t
26543 s,@BUILD_CPP@,$BUILD_CPP,;t t
26544 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
26545 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
26546 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
26547 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
26548 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
26549 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
26550 s,@cf_list_models@,$cf_list_models,;t t
26551 s,@ABI_VERSION@,$ABI_VERSION,;t t
26552 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
26553 s,@LIBTOOL@,$LIBTOOL,;t t
26554 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
26555 s,@LT_UNDEF@,$LT_UNDEF,;t t
26556 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
26557 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
26558 s,@LIB_CREATE@,$LIB_CREATE,;t t
26559 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
26560 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
26561 s,@LIB_PREP@,$LIB_PREP,;t t
26562 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
26563 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
26564 s,@LIB_LINK@,$LIB_LINK,;t t
26565 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
26566 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
26567 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
26568 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
26569 s,@TICS_NAME@,$TICS_NAME,;t t
26570 s,@TINFO_NAME@,$TINFO_NAME,;t t
26571 s,@LIB_NAME@,$LIB_NAME,;t t
26572 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
26573 s,@CC_G_OPT@,$CC_G_OPT,;t t
26574 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
26575 s,@LD_MODEL@,$LD_MODEL,;t t
26576 s,@shlibdir@,$shlibdir,;t t
26577 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
26578 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
26579 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
26580 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
26581 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
26582 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
26583 s,@LINK_PROGS@,$LINK_PROGS,;t t
26584 s,@LINK_TESTS@,$LINK_TESTS,;t t
26585 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
26586 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
26587 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
26588 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
26589 s,@RPATH_LIST@,$RPATH_LIST,;t t
26590 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
26591 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
26592 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
26593 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
26594 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
26595 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
26596 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
26597 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
26598 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
26599 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
26601 s,@INFOCMP@,$INFOCMP,;t t
26602 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
26603 s,@XTERM_KBS@,$XTERM_KBS,;t t
26604 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
26605 s,@TERMINFO@,$TERMINFO,;t t
26606 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
26607 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
26608 s,@TERMPATH@,$TERMPATH,;t t
26609 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
26610 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
26611 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
26612 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
26613 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
26614 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
26615 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
26616 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
26617 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
26618 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
26619 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
26620 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
26621 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
26622 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
26623 s,@RGB_PATH@,$RGB_PATH,;t t
26624 s,@no_x11_rgb@,$no_x11_rgb,;t t
26625 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
26626 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
26627 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
26628 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
26629 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
26630 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
26631 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
26632 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
26633 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
26634 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
26635 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
26636 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
26637 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
26638 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
26639 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
26640 s,@PTHREAD@,$PTHREAD,;t t
26641 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
26642 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
26643 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
26644 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
26645 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
26646 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
26647 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
26648 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
26649 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
26650 s,@ECHO_LT@,$ECHO_LT,;t t
26651 s,@ECHO_LD@,$ECHO_LD,;t t
26652 s,@RULE_CC@,$RULE_CC,;t t
26653 s,@SHOW_CC@,$SHOW_CC,;t t
26654 s,@ECHO_CC@,$ECHO_CC,;t t
26655 s,@ECHO_LINK@,$ECHO_LINK,;t t
26656 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
26657 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
26658 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
26659 s,@ADAFLAGS@,$ADAFLAGS,;t t
26660 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
26661 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
26662 s,@ADA_TRACE@,$ADA_TRACE,;t t
26663 s,@MATH_LIB@,$MATH_LIB,;t t
26664 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
26665 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
26666 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
26667 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
26668 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
26669 s,@TEST_LIBS@,$TEST_LIBS,;t t
26670 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
26671 s,@CXXCPP@,$CXXCPP,;t t
26672 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
26673 s,@CXX_AR@,$CXX_AR,;t t
26674 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
26675 s,@CXXLIBS@,$CXXLIBS,;t t
26676 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
26677 s,@gnatmake_exists@,$gnatmake_exists,;t t
26678 s,@gprconfig_exists@,$gprconfig_exists,;t t
26679 s,@M4_exists@,$M4_exists,;t t
26680 s,@cf_ada_make@,$cf_ada_make,;t t
26681 s,@cf_ada_config@,$cf_ada_config,;t t
26682 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
26683 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
26684 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
26685 s,@cf_compile_generics@,$cf_compile_generics,;t t
26686 s,@cf_generic_objects@,$cf_generic_objects,;t t
26687 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
26688 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
26689 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
26690 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
26691 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
26692 s,@cf_ada_package@,$cf_ada_package,;t t
26693 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
26694 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
26695 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
26696 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
26697 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
26698 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
26699 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
26700 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
26701 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
26702 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
26703 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
26704 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
26705 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
26706 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
26707 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
26708 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
26709 s,@TICS_LIBS@,$TICS_LIBS,;t t
26710 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
26711 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
26712 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
26713 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
26714 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
26715 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
26716 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
26717 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
26718 s,@includesubdir@,$includesubdir,;t t
26719 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
26720 s,@TICS_LIST@,$TICS_LIST,;t t
26721 s,@TINFO_LIST@,$TINFO_LIST,;t t
26722 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
26723 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
26724 s,@TEST_ARGS@,$TEST_ARGS,;t t
26725 s,@TEST_DEPS@,$TEST_DEPS,;t t
26726 s,@TEST_ARG2@,$TEST_ARG2,;t t
26727 s,@TEST_DEP2@,$TEST_DEP2,;t t
26728 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
26729 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
26730 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
26731 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
26732 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
26733 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26734 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
26735 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
26736 s,@cross_compiling@,$cross_compiling,;t t
26737 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
26738 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
26739 s,@PANEL_NAME@,$PANEL_NAME,;t t
26740 s,@MENU_NAME@,$MENU_NAME,;t t
26741 s,@FORM_NAME@,$FORM_NAME,;t t
26742 s,@CXX_NAME@,$CXX_NAME,;t t
26743 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
26744 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
26745 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
26746 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
26747 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
26748 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
26749 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
26750 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
26751 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
26756 cat >>$CONFIG_STATUS <<\EOF
26757 # Split the substitutions into bite-sized pieces for seds with
26758 # small command number limits, like on Digital OSF/1 and HP-UX.
26759 ac_max_sed_lines=48
26760 ac_sed_frag=1 # Number of current file.
26761 ac_beg=1 # First line for current file.
26762 ac_end=$ac_max_sed_lines # Line after last line for current file.
26765 while $ac_more_lines; do
26766 if test $ac_beg -gt 1; then
26767 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26769 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26771 if test ! -s $tmp/subs.frag; then
26772 ac_more_lines=false
26774 # The purpose of the label and of the branching condition is to
26775 # speed up the sed processing (if there are no `@' at all, there
26776 # is no need to browse any of the substitutions).
26777 # These are the two extra sed commands mentioned above.
26779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26780 # It is possible to make a multiline substitution using escaped newlines.
26781 # Ensure that we do not split the substitution between script fragments.
26783 ac_END=`expr $ac_end + $ac_max_sed_lines`
26784 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
26785 if test -s $tmp/subs.next; then
26786 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
26787 if test ! -s $tmp/subs.edit; then
26788 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
26789 if test ! -s $tmp/subs.edit; then
26790 if test $ac_beg -gt 1; then
26791 ac_end=`expr $ac_end - 1`
26798 if test -z "$ac_sed_cmds"; then
26799 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26801 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26803 ac_sed_frag=`expr $ac_sed_frag + 1`
26805 ac_end=`expr $ac_end + $ac_max_sed_lines`
26808 if test -z "$ac_sed_cmds"; then
26811 fi # test -n "$CONFIG_FILES"
26814 cat >>$CONFIG_STATUS <<\EOF
26815 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26818 - | *:- | *:-:* ) # input from stdin
26820 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26822 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26824 * ) ac_file_in=$ac_file.in ;;
26827 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26828 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26829 X"$ac_file" : 'X\(//\)[^/]' \| \
26830 X"$ac_file" : 'X\(//\)$' \| \
26831 X"$ac_file" : 'X\(/\)' \| \
26832 . : '\(.\)' 2>/dev/null ||
26834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26836 /^X\(\/\/\)$/{ s//\1/; q; }
26837 /^X\(\/\).*/{ s//\1/; q; }
26839 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
26840 { case "$ac_dir" in
26841 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26845 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26846 case $as_mkdir_dir in
26847 # Skip DOS drivespec
26848 ?:) as_incr_dir=$as_mkdir_dir ;;
26850 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26851 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26856 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
26857 # A "../" for each directory in $ac_dir_suffix.
26858 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
26860 ac_dir_suffix= ac_dots=
26865 if test -z "$ac_dots"; then
26868 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
26870 [\\/]* | ?:[\\/]* )
26871 ac_srcdir=$srcdir$ac_dir_suffix;
26872 ac_top_srcdir=$srcdir ;;
26873 *) # Relative path.
26874 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
26875 ac_top_srcdir=$ac_dots$srcdir ;;
26879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26880 *) ac_INSTALL=$ac_dots$INSTALL ;;
26883 if test x"$ac_file" != x-; then
26884 { echo "$as_me:26884: creating $ac_file" >&5
26885 echo "$as_me: creating $ac_file" >&6;}
26888 # Let's still pretend it is `configure' which instantiates (i.e., don't
26889 # use $as_me), people would be surprised to read:
26890 # /* config.h. Generated automatically by config.status. */
26891 configure_input="Generated automatically from `echo $ac_file_in |
26892 sed 's,.*/,,'` by configure."
26894 # First look for the input files in the build tree, otherwise in the
26896 ac_file_inputs=`IFS=:
26897 for f in $ac_file_in; do
26899 -) echo $tmp/stdin ;;
26901 # Absolute (can't be DOS-style, as IFS=:)
26902 test -f "$f" || { { echo "$as_me:26902: error: cannot find input file: $f" >&5
26903 echo "$as_me: error: cannot find input file: $f" >&2;}
26904 { (exit 1); exit 1; }; }
26907 if test -f "$f"; then
26910 elif test -f "$srcdir/$f"; then
26915 { { echo "$as_me:26915: error: cannot find input file: $f" >&5
26916 echo "$as_me: error: cannot find input file: $f" >&2;}
26917 { (exit 1); exit 1; }; }
26920 done` || { (exit 1); exit 1; }
26922 cat >>$CONFIG_STATUS <<\EOF
26923 ac_warn_datarootdir=no
26924 if test x"$ac_file" != x-; then
26925 for ac_item in $ac_file_inputs
26927 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
26928 if test -n "$ac_seen"; then
26929 ac_used=`grep '@datarootdir@' $ac_item`
26930 if test -z "$ac_used"; then
26931 { echo "$as_me:26931: WARNING: datarootdir was used implicitly but not set:
26933 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
26935 ac_warn_datarootdir=yes
26938 ac_seen=`grep '${datarootdir}' $ac_item`
26939 if test -n "$ac_seen"; then
26940 { echo "$as_me:26940: WARNING: datarootdir was used explicitly but not set:
26942 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
26944 ac_warn_datarootdir=yes
26949 if test "x$ac_warn_datarootdir" = xyes; then
26950 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
26954 cat >>$CONFIG_STATUS <<EOF
26958 cat >>$CONFIG_STATUS <<\EOF
26960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26961 s,@configure_input@,$configure_input,;t t
26962 s,@srcdir@,$ac_srcdir,;t t
26963 s,@top_srcdir@,$ac_top_srcdir,;t t
26964 s,@INSTALL@,$ac_INSTALL,;t t
26965 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26967 if test x"$ac_file" != x-; then
26968 cp $tmp/out $ac_file
26970 for ac_name in prefix exec_prefix datarootdir
26972 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
26973 if test -n "$ac_seen"; then
26974 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
26975 if test -z "$ac_init"; then
26976 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
26977 { echo "$as_me:26977: WARNING: Variable $ac_name is used but was not set:
26979 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
26984 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
26985 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
26986 if test -s $tmp/out; then
26987 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
26988 { echo "$as_me:26988: WARNING: Some variables may not be substituted:
26990 echo "$as_me: WARNING: Some variables may not be substituted:
27000 cat >>$CONFIG_STATUS <<\EOF
27003 # CONFIG_HEADER section.
27006 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27007 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27009 # ac_d sets the value in "#define NAME VALUE" lines.
27010 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27011 ac_dB='[ ].*$,\1#\2'
27014 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
27015 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27016 ac_iB='\([ ]\),\1#\2define\3'
27019 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27020 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27021 ac_uB='$,\1#\2define\3'
27025 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27028 - | *:- | *:-:* ) # input from stdin
27030 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27031 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27032 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27034 * ) ac_file_in=$ac_file.in ;;
27037 test x"$ac_file" != x- && { echo "$as_me:27037: creating $ac_file" >&5
27038 echo "$as_me: creating $ac_file" >&6;}
27040 # First look for the input files in the build tree, otherwise in the
27042 ac_file_inputs=`IFS=:
27043 for f in $ac_file_in; do
27045 -) echo $tmp/stdin ;;
27047 # Absolute (can't be DOS-style, as IFS=:)
27048 test -f "$f" || { { echo "$as_me:27048: error: cannot find input file: $f" >&5
27049 echo "$as_me: error: cannot find input file: $f" >&2;}
27050 { (exit 1); exit 1; }; }
27053 if test -f "$f"; then
27056 elif test -f "$srcdir/$f"; then
27061 { { echo "$as_me:27061: error: cannot find input file: $f" >&5
27062 echo "$as_me: error: cannot find input file: $f" >&2;}
27063 { (exit 1); exit 1; }; }
27066 done` || { (exit 1); exit 1; }
27067 # Remove the trailing spaces.
27068 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27072 # Transform confdefs.h into a list of #define's. We won't use it as a sed
27073 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
27074 # be either 'cat' or 'sort'.
27075 cat confdefs.h | uniq >conftest.vals
27077 # Break up conftest.vals because some shells have a limit on
27078 # the size of here documents, and old seds have small limits too.
27080 rm -f conftest.tail
27081 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
27082 while grep . conftest.vals >/dev/null
27084 # Write chunks of a limited-size here document to conftest.frag.
27085 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
27086 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
27087 echo 'CEOF' >> $CONFIG_STATUS
27088 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
27089 rm -f conftest.vals
27090 mv conftest.tail conftest.vals
27092 rm -f conftest.vals
27094 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
27096 echo ' cat >> conftest.edit <<CEOF
27097 /@DEFS@/r conftest.frag
27100 sed -f conftest.edit $tmp/in > $tmp/out
27102 mv $tmp/out $tmp/in
27103 rm -f conftest.edit conftest.frag
27104 ' >> $CONFIG_STATUS
27106 cat >>$CONFIG_STATUS <<\EOF
27107 # Let's still pretend it is `configure' which instantiates (i.e., don't
27108 # use $as_me), people would be surprised to read:
27109 # /* config.h. Generated automatically by config.status. */
27110 if test x"$ac_file" = x-; then
27111 echo "/* Generated automatically by configure. */" >$tmp/config.h
27113 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
27115 cat $tmp/in >>$tmp/config.h
27117 if test x"$ac_file" != x-; then
27118 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
27119 { echo "$as_me:27119: $ac_file is unchanged" >&5
27120 echo "$as_me: $ac_file is unchanged" >&6;}
27122 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27123 X"$ac_file" : 'X\(//\)[^/]' \| \
27124 X"$ac_file" : 'X\(//\)$' \| \
27125 X"$ac_file" : 'X\(/\)' \| \
27126 . : '\(.\)' 2>/dev/null ||
27128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27130 /^X\(\/\/\)$/{ s//\1/; q; }
27131 /^X\(\/\).*/{ s//\1/; q; }
27133 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27134 { case "$ac_dir" in
27135 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27139 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27140 case $as_mkdir_dir in
27141 # Skip DOS drivespec
27142 ?:) as_incr_dir=$as_mkdir_dir ;;
27144 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27145 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
27152 mv $tmp/config.h $ac_file
27156 rm -f $tmp/config.h
27160 cat >>$CONFIG_STATUS <<\EOF
27162 # CONFIG_COMMANDS section.
27164 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27165 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27166 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27170 if test "x$cf_with_tests" != xno ; then
27174 if test ! -d $srcdir/$cf_dir; then
27176 elif test -f $srcdir/$cf_dir/programs; then
27177 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
27183 cf_prefix=$LIB_PREFIX
27185 case $cf_cv_shlib_version in
27186 (cygdll|msysdll|mingw)
27187 TINFO_NAME=$TINFO_ARG_SUFFIX
27192 if test -n "$TINFO_SUFFIX" ; then
27193 case $TINFO_SUFFIX in
27195 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
27196 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
27199 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
27200 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
27203 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
27204 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
27209 for cf_dir in $SRC_SUBDIRS
27211 if test ! -d $srcdir/$cf_dir ; then
27213 elif test -f $srcdir/$cf_dir/modules; then
27218 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
27220 cf_awk_program="$cf_awk_program\
27221 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
27222 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
27226 if test "x$WILDCARD_SYMS" = xno
27228 cf_awk_program="$cf_awk_program\
27229 /[ ]_\\*;/ { skip=1; next; }\
27233 if test "x$cf_awk_program" != "x"
27235 cat >>$cf_dir/Makefile <<CF_EOF
27237 # Generated by CF_LIB_RULES
27238 resulting.map: $UNALTERED_SYMS
27239 $AWK 'BEGIN { skip = 1; last=""; } \
27241 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
27242 skip = 0; last = \$\$0; } \
27243 END { print last; }' < $UNALTERED_SYMS >\$@
27246 rm -f resulting.map
27250 for cf_item in $cf_LIST_MODELS
27256 cf_depsuf=$cf_suffix
27260 cf_depsuf=$cf_suffix
27264 cf_depsuf=$cf_suffix
27267 case $cf_cv_system_name in
27270 cf_depsuf=$cf_suffix
27272 (cygwin*|msys*|mingw*)
27278 cf_depsuf=$cf_suffix
27284 cf_depsuf=$cf_suffix
27288 cf_depsuf=$cf_suffix
27294 cf_depsuf=$cf_suffix
27300 cf_depsuf=$cf_suffix
27303 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27305 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
27306 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
27310 test "$cf_dir" = c++ && cf_libname=ncurses++
27311 if test $cf_item = shared ; then
27312 if test -n "${LIB_SUFFIX}"
27314 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
27316 cf_shared_suffix="$cf_suffix"
27318 if test "$cf_cv_do_symlinks" = yes ; then
27321 case "$cf_cv_shlib_version" in
27323 cf_version_name=REL_VERSION
27326 cf_version_name=ABI_VERSION
27330 if test -n "$cf_version_name"
27332 case "$cf_cv_system_name" in
27335 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
27338 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
27342 if test -n "${USE_LIB_SUFFIX}"
27344 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
27346 cf_shared_suffix="$cf_suffix"
27349 # cygwin needs import library, and has unique naming convention
27350 # use autodetected ${cf_prefix} for import lib and static lib, but
27351 # use 'cyg' prefix for shared lib.
27352 case $cf_cv_shlib_version in
27354 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
27355 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
27358 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
27359 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
27362 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
27363 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
27369 if test -n "$cf_add_lib"
27371 Libs_To_Make="$Libs_To_Make $cf_add_lib"
27375 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
27376 Libs_To_Make="$Libs_To_Make $cf_add_lib"
27379 if test $cf_dir = ncurses ; then
27380 cf_subsets="$LIB_SUBSETS"
27381 cf_r_parts="$cf_subsets"
27382 cf_liblist="$Libs_To_Make"
27384 while test -n "$cf_r_parts"
27386 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
27387 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
27388 if test "$cf_l_parts" != "$cf_r_parts" ; then
27390 case $cf_l_parts in
27392 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
27395 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
27401 if test -n "$cf_add_lib"; then
27402 Libs_To_Make="$cf_add_lib $Libs_To_Make"
27409 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
27412 if test $cf_dir = c++; then
27413 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
27415 for cf_item in $Libs_To_Make
27421 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
27424 for cf_test in $cf_list
27426 if test "$cf_test" = "$cf_item"
27428 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
27433 test -n "$cf_item" && cf_list="$cf_list $cf_item"
27435 Libs_To_Make="$cf_list"
27439 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
27440 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
27441 $cf_dir/Makefile >$cf_dir/Makefile.out
27442 mv $cf_dir/Makefile.out $cf_dir/Makefile
27444 $AWK -f $srcdir/mk-0th.awk \
27445 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
27446 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
27448 for cf_subset in $cf_subsets
27451 for cf_item in $cf_LIST_MODELS
27454 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
27456 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27459 if test "$CXX_MODEL" = SHARED; then
27460 case $cf_cv_shlib_version in
27461 (cygdll|msysdll|mingw)
27462 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
27464 echo "${as_me:-configure}:27464: testing overriding CXX_MODEL to SHARED ..." 1>&5
27466 with_shared_cxx=yes
27469 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
27477 cf_depsuf=$cf_suffix
27481 cf_depsuf=$cf_suffix
27485 cf_depsuf=$cf_suffix
27488 case $cf_cv_system_name in
27491 cf_depsuf=$cf_suffix
27493 (cygwin*|msys*|mingw*)
27499 cf_depsuf=$cf_suffix
27505 cf_depsuf=$cf_suffix
27509 cf_depsuf=$cf_suffix
27515 cf_depsuf=$cf_suffix
27521 cf_depsuf=$cf_suffix
27524 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27526 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
27527 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
27531 (libtool) cf_subdir='obj_lo' ;;
27532 (normal) cf_subdir='objects' ;;
27533 (debug) cf_subdir='obj_g' ;;
27534 (profile) cf_subdir='obj_p' ;;
27536 case $cf_cv_system_name in
27538 cf_subdir='objects' ;;
27540 cf_subdir='obj_s' ;;
27544 # Test for case where we build libtinfo with a different name.
27546 if test $cf_dir = ncurses ; then
27549 cf_libname=${cf_libname}$USE_LIB_SUFFIX
27552 cf_libname=$TINFO_LIB_SUFFIX
27555 cf_libname=$TICS_LIB_SUFFIX
27558 elif test $cf_dir = c++ ; then
27559 cf_libname=ncurses++$USE_LIB_SUFFIX
27561 cf_libname=${cf_libname}$USE_LIB_SUFFIX
27563 if test -n "${USE_ARG_SUFFIX}" ; then
27564 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
27565 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
27568 # These dependencies really are for development, not
27569 # builds, but they are useful in porting, too.
27570 cf_depend="../include/ncurses_cfg.h"
27571 if test "$srcdir" = "."; then
27574 cf_reldir="\${srcdir}"
27577 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
27578 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
27579 elif test -f $srcdir/$cf_dir/curses.priv.h; then
27580 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
27584 old_cf_suffix="$cf_suffix"
27585 if test "$cf_cv_shlib_version_infix" = yes ; then
27586 if test -n "$USE_LIB_SUFFIX" ; then
27587 case $USE_LIB_SUFFIX in
27589 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
27590 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
27591 cf_dir_suffix=tw$EXTRA_SUFFIX
27594 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
27595 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
27596 cf_dir_suffix=t$EXTRA_SUFFIX
27599 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
27600 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
27601 cf_dir_suffix=w$EXTRA_SUFFIX
27604 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
27605 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
27606 cf_dir_suffix=$EXTRA_SUFFIX
27612 $AWK -f $srcdir/mk-1st.awk \
27613 name=${cf_libname}${cf_dir_suffix} \
27614 traces=$LIB_TRACING \
27616 CXX_MODEL=$CXX_MODEL \
27618 prefix=$cf_prefix \
27619 suffix=$cf_suffix \
27620 subset=$cf_subset \
27621 driver=$cf_cv_term_driver \
27623 TermlibRoot=$TINFO_NAME \
27624 TermlibSuffix=$TINFO_SUFFIX \
27625 ShlibVer=$cf_cv_shlib_version \
27626 ShlibVerInfix=$cf_cv_shlib_version_infix \
27627 ReLink=${cf_cv_do_relink:-no} \
27628 ReRanlib=${cf_cv_do_reranlib:-yes} \
27629 DoLinks=$cf_cv_do_symlinks \
27630 rmSoLocs=$cf_cv_rm_so_locs \
27631 ldconfig="$LDCONFIG" \
27632 overwrite=$WITH_OVERWRITE \
27633 depend="$cf_depend" \
27635 libtool_version="$LIBTOOL_VERSION" \
27636 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
27638 cf_suffix="$old_cf_suffix"
27640 for cf_subdir2 in $cf_subdirs lib
27642 test $cf_subdir = $cf_subdir2 && break
27644 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
27645 $AWK -f $srcdir/mk-2nd.awk \
27647 traces=$LIB_TRACING \
27650 subset=$cf_subset \
27653 crenames=$cf_cv_prog_CC_c_o \
27654 cxxrenames=$cf_cv_prog_CXX_c_o \
27655 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
27656 cf_subdirs="$cf_subdirs $cf_subdir"
27661 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
27664 for cf_dir in $SRC_SUBDIRS
27666 if test ! -d $srcdir/$cf_dir ; then
27670 if test -f $cf_dir/Makefile ; then
27673 echo 'libs \' >> Makefile
27674 echo 'install.libs \' >> Makefile
27675 echo 'uninstall.libs ::' >> Makefile
27676 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
27681 if test -f $srcdir/$cf_dir/modules; then
27683 if test -f $srcdir/$cf_dir/headers; then
27684 cat >> Makefile <<CF_EOF
27685 install.includes \\
27686 uninstall.includes \\
27689 if test "$cf_dir" != "c++" ; then
27690 echo 'lint \' >> Makefile
27692 cat >> Makefile <<CF_EOF
27698 uninstall.$cf_dir ::
27699 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
27701 elif test -f $srcdir/$cf_dir/headers; then
27702 cat >> Makefile <<CF_EOF
27707 install.includes \\
27708 uninstall.includes ::
27709 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
27714 if test "x$cf_with_db_install" = xyes; then
27715 cat >> Makefile <<CF_EOF
27717 install.libs uninstall.libs \\
27718 install.data uninstall.data ::
27719 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
27722 cat >> Makefile <<CF_EOF
27724 install.libs uninstall.libs ::
27725 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
27729 if test "x$cf_with_manpages" = xyes; then
27730 cat >> Makefile <<CF_EOF
27734 cd man && \${MAKE} \${TOP_MFLAGS} \$@
27738 cat >> Makefile <<CF_EOF
27741 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
27742 rm -f headers.sh headers.sed mk_shared_lib.sh
27743 rm -f edit_man.* man_alias.*
27744 rm -rf \${DIRS_TO_MAKE}
27747 # Special case: tack's manpage lives in its own directory.
27748 if test "x$cf_with_manpages" = xyes; then
27749 if test "x$cf_with_tack" = "xyes"; then
27750 cat >> Makefile <<CF_EOF
27754 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
27759 rm -f headers.sed headers.sh
27761 echo creating headers.sh
27762 cat >headers.sh <<CF_EOF
27764 # This shell script is generated by the 'configure' script. It is invoked in a
27765 # subdirectory of the build tree. It generates a sed-script in the parent
27766 # directory that is used to adjust includes for header files that reside in a
27767 # subdirectory of /usr/include, etc.
27769 while test \$# != 3
27771 PRG="\$PRG \$1"; shift
27776 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
27777 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
27778 echo installing \$SRC in \$DST
27781 if test $WITH_CURSES_H = yes; then
27782 cat >>headers.sh <<CF_EOF
27785 END=\`basename \$DST\`
27786 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
27788 NAME=\`basename \$i\`
27789 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
27793 echo "" >> \$TMPSED
27799 cat >>headers.sh <<CF_EOF
27802 END=\`basename \$DST\`
27803 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
27805 NAME=\`basename \$i\`
27806 if test "\$NAME" = "curses.h"
27808 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
27811 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
27815 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
27820 cat >>headers.sh <<CF_EOF
27822 sed -f \$TMPSED \$SRC > \$TMPSRC
27823 NAME=\`basename \$SRC\`
27825 if test $WITH_CURSES_H != yes; then
27826 cat >>headers.sh <<CF_EOF
27827 test "\$NAME" = "curses.h" && NAME=ncurses.h
27830 cat >>headers.sh <<CF_EOF
27831 # Just in case someone gzip'd manpages, remove the conflicting copy.
27832 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
27834 eval \$PRG \$TMPSRC \$DST/\$NAME
27835 rm -f \$TMPSRC \$TMPSED
27838 chmod 0755 headers.sh
27840 for cf_dir in $SRC_SUBDIRS
27842 if test ! -d $srcdir/$cf_dir ; then
27846 if test -f $srcdir/$cf_dir/headers; then
27847 $AWK -f $srcdir/mk-hdr.awk \
27848 subset="$LIB_SUBSETS" \
27849 compat="$WITH_CURSES_H" \
27850 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
27853 if test -f $srcdir/$cf_dir/modules; then
27854 if test "$cf_dir" != "c++" ; then
27855 cat >>$cf_dir/Makefile <<"CF_EOF"
27856 depend : ${AUTO_SRC}
27857 makedepend -- ${CPPFLAGS} -- ${C_SRC}
27859 # DO NOT DELETE THIS LINE -- make depend depends on it.
27865 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
27866 if test -z "$USE_OLD_MAKERULES" ; then
27867 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
27875 cat >>$CONFIG_STATUS <<\EOF
27877 { (exit 0); exit 0; }
27879 chmod +x $CONFIG_STATUS
27880 ac_clean_files=$ac_clean_files_save
27882 # configure is writing to config.log, and then calls config.status.
27883 # config.status does its own redirection, appending to config.log.
27884 # Unfortunately, on DOS this fails, as config.log is still kept open
27885 # by configure, so config.status won't be able to write to it; its
27886 # output is simply discarded. So we exec the FD to /dev/null,
27887 # effectively closing config.log, so it can be properly (re)opened and
27888 # appended to by config.status. When coming back to configure, we
27889 # need to make the FD available again.
27890 if test "$no_create" != yes; then
27893 $SHELL $CONFIG_STATUS || ac_cs_success=false
27895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27896 # would make configure fail if this is the last instruction.
27897 $ac_cs_success || { (exit 1); exit 1; }
27899 ${MAKE:-make} preinstall