2 # From configure.in Revision: 1.711 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20200111.
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 Ada compiler, 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 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
764 Fine-Tuning Your Configuration:
765 --with-extra-suffix=X append extra suffix to header/library paths
766 --disable-overwrite put headers in subdir, omit link to -lcurses
767 --disable-database do not use terminfo, only fallbacks/termcap
768 --with-database=XXX specify terminfo source to install
769 --with-hashed-db specify hashed-database library
770 --with-fallbacks=XXX specify list of fallback terminal descriptions
771 --with-tic-path=XXX specify path of tic for fallbacks
772 --with-infocmp-path=XXX specify path of infocmp for fallbacks
773 --without-xterm-new specify if xterm terminfo should be old version
774 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
775 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
776 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
777 --disable-big-core assume machine has little memory
778 --disable-big-strings assume compiler has only standard-size strings
779 --enable-termcap compile in termcap fallback support
780 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
781 --enable-getcap fast termcap load, no xrefs to terminfo
782 --enable-getcap-cache cache translated termcaps in ~/.terminfo
783 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
784 --disable-root-environ restrict environment when running as root
785 --enable-symlinks make tic use symbolic links not hard links
786 --enable-broken_linker compile with broken-linker support code
787 --enable-bsdpad recognize BSD-style prefix padding
788 --enable-widec compile with wide-char/UTF-8 code
789 --disable-lp64 allow chtype to be long (ignore _LP64)
790 --disable-largefile omit support for large files
791 --disable-tparm-varargs compile tparm() without varargs interface
792 --disable-tic-depends link tic library without explicit dependency on ncurses library
793 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
794 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
795 --with-bool=TYPE override fallback type of bool variable
796 --with-caps=alt compile with alternate Caps file
797 --with-chtype=TYPE override type of chtype
798 --with-ospeed=TYPE override type of ospeed variable
799 --with-mmask-t=TYPE override type of mmask_t
800 --with-ccharw-max=XXX override size CCHARW_MAX
801 --enable-signed-char compile using signed Boolean's in term.h
802 --with-tparm-arg=TYPE override parameter type of tparm
803 --with-rcs-ids compile-in RCS identifiers
804 Options to Specify How Manpages are Installed:
805 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
806 optionally formatted/catonly, e.g., gzip,formatted
807 --with-manpage-renames specify manpage-renaming
808 --with-manpage-aliases specify manpage-aliases using .so
809 --with-manpage-symlinks specify manpage-aliases using symlinks
810 --with-manpage-tbl specify manpage processing with tbl
812 --disable-ext-funcs disable function-extensions
813 --enable-sp-funcs enable SCREEN-extensions
814 --enable-term-driver enable terminal-driver
815 --enable-const compile with extra/non-standard const
816 --enable-ext-colors compile for 256-color support
817 --enable-ext-mouse compile for extended mouse-encoding
818 --enable-ext-putwin compile with extended putwin/screendump
819 --enable-no-padding compile with $NCURSES_NO_PADDING code
820 --enable-sigwinch compile with SIGWINCH handler
821 --enable-tcap-names compile with user-definable terminal capabilities
823 --with-pthread use POSIX thread library
824 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
825 --enable-weak-symbols enable weak-symbols for pthreads
826 --enable-reentrant compile with reentrant code
827 --enable-opaque-curses make curses WINDOW, etc., "opaque"
828 --enable-opaque-form make form-library structures "opaque"
829 --enable-opaque-menu make menu-library structures "opaque"
830 --enable-opaque-panel make panel-library structures "opaque"
831 --with-wrap-prefix=XXX override prefix used for public variables
833 --without-develop disable development options
834 --enable-hard-tabs compile with hard-tabs code
835 --enable-xmc-glitch compile with support for xmc (magic-cookie)
837 --disable-assumed-color do not assume anything about default-colors
838 --disable-hashmap compile without hashmap scrolling-optimization
839 --enable-colorfgbg compile-in experimental $COLORFGBG code
840 --enable-fvisibility compile with -fvisibility=hidden
841 --enable-interop compile-in interop bindings
842 --enable-safe-sprintf compile with experimental safe-sprintf code
843 --disable-scroll-hints compile without scroll-hints code
844 --enable-wgetch-events compile with wgetch-events code
845 Testing/development Options:
846 --disable-echo do not display "compiling" commands
847 --disable-stripping do not strip (debug info) installed executables
848 --enable-warnings build: turn on GCC compiler warnings
849 --enable-string-hacks work around bogus compiler/loader warnings
850 --enable-assertions test: turn on generation of assertion code
851 --with-dmalloc test: use Gray Watson's dmalloc library
852 --with-dbmalloc test: use Conor Cahill's dbmalloc library
853 --with-valgrind test: use valgrind
854 --disable-leaks test: free permanent memory, analyze leaks
855 --enable-expanded test: generate functions for certain macros
856 --disable-macros test: use functions rather than macros
857 --with-trace test: add trace() function to all models of ncurses
858 --disable-gnat-projects test: disable GNAT projects even if usable
860 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
861 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
862 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
863 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
864 --with-ada-libname=XXX override default Ada library-name
865 --with-form-libname=XXX override form basename of library
866 --with-menu-libname=XXX override menu basename of library
867 --with-panel-libname=XXX override panel basename of library
868 --with-cxx-libname=XXX override ncurses++ basename of library
870 Some influential environment variables:
871 CC C compiler command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
874 nonstandard directory <lib dir>
875 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
876 headers in a nonstandard directory <include dir>
878 CXX C++ compiler command
879 CXXFLAGS C++ compiler flags
880 CXXCPP C++ preprocessor
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
891 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
893 # A "../" for each directory in /$ac_subdir.
894 ac_dots=`echo $ac_subdir |
895 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
898 .) # No --srcdir option. We are building in place.
899 ac_sub_srcdir=$srcdir ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_sub_srcdir=$srcdir/$ac_subdir ;;
903 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
906 # Check for guested configure; otherwise get Cygnus style configure.
907 if test -f $ac_sub_srcdir/configure.gnu; then
909 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
910 elif test -f $ac_sub_srcdir/configure; then
912 $SHELL $ac_sub_srcdir/configure --help=recursive
913 elif test -f $ac_sub_srcdir/configure.ac ||
914 test -f $ac_sub_srcdir/configure.in; then
918 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
924 test -n "$ac_init_help" && exit 0
925 if $ac_init_version; then
928 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
929 Free Software Foundation, Inc.
930 This configure script is free software; the Free Software Foundation
931 gives unlimited permission to copy, distribute and modify it.
937 This file contains any messages produced by compilers while
938 running configure, to aid debugging if configure makes a mistake.
940 It was created by $as_me, which was
941 generated by GNU Autoconf 2.52.20200111. Invocation command line was
952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
964 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981 # Keep a trace of the command line.
982 # Strip out --no-create and --no-recursion so they do not pile up.
983 # Also quote any args containing shell meta-characters.
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c) ;;
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
993 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
994 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
995 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
997 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1000 # Get rid of the leading space.
1003 # When interrupted or exit'd, cleanup temporary files, and complete
1004 # config.log. We remove comments because anyway the quotes in there
1005 # would cause problems or look ugly.
1006 trap 'exit_status=$?
1007 # Save into config.log some information that might help in debugging.
1009 echo "## ----------------- ##" >&5
1010 echo "## Cache variables. ##" >&5
1011 echo "## ----------------- ##" >&5
1013 # The following way of writing the cache mishandles newlines in values,
1016 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1019 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1024 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1028 sed "/^$/d" confdefs.h >conftest.log
1029 if test -s conftest.log; then
1031 echo "## ------------ ##" >&5
1032 echo "## confdefs.h. ##" >&5
1033 echo "## ------------ ##" >&5
1035 cat conftest.log >&5
1038 test "$ac_signal" != 0 &&
1039 echo "$as_me: caught signal $ac_signal" >&5
1040 echo "$as_me: exit $exit_status" >&5
1041 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1044 for ac_signal in 1 2 13 15; do
1045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1050 rm -rf conftest* confdefs.h
1051 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1054 # Let the site file select an alternate cache file if it wants to.
1055 # Prefer explicitly selected file to automatically selected ones.
1056 if test -z "$CONFIG_SITE"; then
1057 if test "x$prefix" != xNONE; then
1058 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1060 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1063 for ac_site_file in $CONFIG_SITE; do
1064 if test -r "$ac_site_file"; then
1065 { echo "$as_me:1065: loading site script $ac_site_file" >&5
1066 echo "$as_me: loading site script $ac_site_file" >&6;}
1067 cat "$ac_site_file" >&5
1072 if test -r "$cache_file"; then
1073 # Some versions of bash will fail to source /dev/null (special
1074 # files actually), so we avoid doing that.
1075 if test -f "$cache_file"; then
1076 { echo "$as_me:1076: loading cache $cache_file" >&5
1077 echo "$as_me: loading cache $cache_file" >&6;}
1079 [\\/]* | ?:[\\/]* ) . $cache_file;;
1080 *) . ./$cache_file;;
1084 { echo "$as_me:1084: creating cache $cache_file" >&5
1085 echo "$as_me: creating cache $cache_file" >&6;}
1089 # Check that the precious variables saved in the cache have kept the same
1091 ac_cache_corrupted=false
1092 for ac_var in `(set) 2>&1 |
1093 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1095 eval ac_new_set=\$ac_env_${ac_var}_set
1096 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1097 eval ac_new_val="\$ac_env_${ac_var}_value"
1098 case $ac_old_set,$ac_new_set in
1100 { echo "$as_me:1100: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1101 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1102 ac_cache_corrupted=: ;;
1104 { echo "$as_me:1104: error: \`$ac_var' was not set in the previous run" >&5
1105 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1106 ac_cache_corrupted=: ;;
1109 if test "x$ac_old_val" != "x$ac_new_val"; then
1110 { echo "$as_me:1110: error: \`$ac_var' has changed since the previous run:" >&5
1111 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1112 { echo "$as_me:1112: former value: $ac_old_val" >&5
1113 echo "$as_me: former value: $ac_old_val" >&2;}
1114 { echo "$as_me:1114: current value: $ac_new_val" >&5
1115 echo "$as_me: current value: $ac_new_val" >&2;}
1116 ac_cache_corrupted=:
1119 # Pass precious variables to config.status. It doesn't matter if
1120 # we pass some twice (in addition to the command line arguments).
1121 if test "$ac_new_set" = set; then
1123 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1124 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1125 ac_configure_args="$ac_configure_args '$ac_arg'"
1127 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1132 if $ac_cache_corrupted; then
1133 { echo "$as_me:1133: error: changes in the environment can compromise the build" >&5
1134 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1135 { { echo "$as_me:1135: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1136 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1137 { (exit 1); exit 1; }; }
1141 ac_cpp='$CPP $CPPFLAGS'
1142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1145 ac_main_return=return
1147 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1148 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1150 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1151 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1153 echo "#! $SHELL" >conftest.sh
1154 echo "exit 0" >>conftest.sh
1155 chmod +x conftest.sh
1156 if { (echo "$as_me:1156: PATH=\".;.\"; conftest.sh") >&5
1157 (PATH=".;."; conftest.sh) 2>&5
1159 echo "$as_me:1159: \$? = $ac_status" >&5
1160 (exit $ac_status); }; then
1161 ac_path_separator=';'
1165 PATH_SEPARATOR="$ac_path_separator"
1168 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1172 echo "$as_me:1172: checking for egrep" >&5
1173 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1174 if test "${ac_cv_prog_egrep+set}" = set; then
1175 echo $ECHO_N "(cached) $ECHO_C" >&6
1177 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1178 then ac_cv_prog_egrep='grep -E'
1179 else ac_cv_prog_egrep='egrep'
1182 echo "$as_me:1182: result: $ac_cv_prog_egrep" >&5
1183 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1184 EGREP=$ac_cv_prog_egrep
1186 test -z "$EGREP" && { { echo "$as_me:1186: error: No egrep program found" >&5
1187 echo "$as_me: error: No egrep program found" >&2;}
1188 { (exit 1); exit 1; }; }
1190 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1191 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1192 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1193 cf_cv_abi_version=${NCURSES_MAJOR}
1194 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1195 cf_cv_timestamp=`date`
1196 echo "$as_me:1196: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1197 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1199 if test -f $srcdir/VERSION ; then
1200 echo "$as_me:1200: checking for package version" >&5
1201 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1203 # if there are not enough fields, cut returns the last one...
1204 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1205 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1206 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1208 # this is how CF_BUNDLED_INTL uses $VERSION:
1209 VERSION="$cf_field1"
1211 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1212 test -z "$VERSION_MAJOR" && { { echo "$as_me:1212: error: missing major-version" >&5
1213 echo "$as_me: error: missing major-version" >&2;}
1214 { (exit 1); exit 1; }; }
1216 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1217 test -z "$VERSION_MINOR" && { { echo "$as_me:1217: error: missing minor-version" >&5
1218 echo "$as_me: error: missing minor-version" >&2;}
1219 { (exit 1); exit 1; }; }
1221 echo "$as_me:1221: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1222 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1224 echo "$as_me:1224: checking for package patch date" >&5
1225 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1226 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1227 case .$VERSION_PATCH in
1229 { { echo "$as_me:1229: error: missing patch-date $VERSION_PATCH" >&5
1230 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1231 { (exit 1); exit 1; }; }
1233 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1236 { { echo "$as_me:1236: error: illegal patch-date $VERSION_PATCH" >&5
1237 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1238 { (exit 1); exit 1; }; }
1241 echo "$as_me:1241: result: $VERSION_PATCH" >&5
1242 echo "${ECHO_T}$VERSION_PATCH" >&6
1244 { { echo "$as_me:1244: error: did not find $srcdir/VERSION" >&5
1245 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1246 { (exit 1); exit 1; }; }
1249 # show the actual data that we have for versions:
1250 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1252 echo "${as_me:-configure}:1252: testing ABI VERSION $VERSION ..." 1>&5
1254 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1256 echo "${as_me:-configure}:1256: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1258 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1260 echo "${as_me:-configure}:1260: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1262 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1264 echo "${as_me:-configure}:1264: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1269 cat >>confdefs.h <<EOF
1270 #define PACKAGE "$PACKAGE"
1273 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1275 cat >>confdefs.h <<EOF
1276 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1279 cat >>confdefs.h <<EOF
1280 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1283 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1285 # Check whether --with-rel-version or --without-rel-version was given.
1286 if test "${with_rel_version+set}" = set; then
1287 withval="$with_rel_version"
1288 { echo "$as_me:1288: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1289 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1290 cf_cv_rel_version=$withval
1293 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1294 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1296 if test -n "$NCURSES_MAJOR" ; then
1297 case $NCURSES_MAJOR in
1301 { { echo "$as_me:1301: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1302 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1303 { (exit 1); exit 1; }; }
1307 { { echo "$as_me:1307: error: Release major-version value is empty" >&5
1308 echo "$as_me: error: Release major-version value is empty" >&2;}
1309 { (exit 1); exit 1; }; }
1312 if test -n "$NCURSES_MINOR" ; then
1313 case $NCURSES_MINOR in
1317 { { echo "$as_me:1317: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1318 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1319 { (exit 1); exit 1; }; }
1323 { { echo "$as_me:1323: error: Release minor-version value is empty" >&5
1324 echo "$as_me: error: Release minor-version value is empty" >&2;}
1325 { (exit 1); exit 1; }; }
1328 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1330 # Check whether --with-abi-version or --without-abi-version was given.
1331 if test "${with_abi_version+set}" = set; then
1332 withval="$with_abi_version"
1334 if test "x$cf_cv_abi_version" != "x$withval"
1336 { echo "$as_me:1336: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1337 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1338 case $cf_cv_rel_version in
1340 cf_cv_rel_version=$withval.0
1343 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1347 cf_cv_abi_version=$withval
1350 if test -n "$cf_cv_abi_version" ; then
1351 case $cf_cv_abi_version in
1355 { { echo "$as_me:1355: error: ABI version is not a number: $cf_cv_abi_version" >&5
1356 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1357 { (exit 1); exit 1; }; }
1361 { { echo "$as_me:1361: error: ABI version value is empty" >&5
1362 echo "$as_me: error: ABI version value is empty" >&2;}
1363 { (exit 1); exit 1; }; }
1366 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1368 case $cf_cv_rel_version in
1370 cf_cv_rel_version=$with_abi_version.0
1376 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377 if test -f $ac_dir/install-sh; then
1379 ac_install_sh="$ac_aux_dir/install-sh -c"
1381 elif test -f $ac_dir/install.sh; then
1383 ac_install_sh="$ac_aux_dir/install.sh -c"
1385 elif test -f $ac_dir/shtool; then
1387 ac_install_sh="$ac_aux_dir/shtool install -c"
1391 if test -z "$ac_aux_dir"; then
1392 { { echo "$as_me:1392: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394 { (exit 1); exit 1; }; }
1396 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402 { { echo "$as_me:1402: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404 { (exit 1); exit 1; }; }
1406 echo "$as_me:1406: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413 ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415 { { echo "$as_me:1415: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417 { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419 { { echo "$as_me:1419: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:1424: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:1431: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:1440: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:1445: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1453 echo "$as_me:1453: checking target system type" >&5
1454 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1455 if test "${ac_cv_target+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 ac_cv_target_alias=$target_alias
1459 test "x$ac_cv_target_alias" = "x" &&
1460 ac_cv_target_alias=$ac_cv_host_alias
1461 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1462 { { echo "$as_me:1462: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1467 echo "$as_me:1467: result: $ac_cv_target" >&5
1468 echo "${ECHO_T}$ac_cv_target" >&6
1469 target=$ac_cv_target
1470 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474 # The aliases save the names the user supplied, while $host etc.
1475 # will get canonicalized.
1476 test -n "$target_alias" &&
1477 test "$program_prefix$program_suffix$program_transform_name" = \
1479 program_prefix=${target_alias}-
1480 system_name="$host_os"
1482 system_name="`(uname -s -r) 2>/dev/null`"
1483 if test -z "$system_name" ; then
1484 system_name="`(hostname) 2>/dev/null`"
1487 test -n "$system_name" &&
1488 cat >>confdefs.h <<EOF
1489 #define SYSTEM_NAME "$system_name"
1492 if test "${cf_cv_system_name+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 cf_cv_system_name="$system_name"
1498 test -z "$system_name" && system_name="$cf_cv_system_name"
1499 test -n "$cf_cv_system_name" && echo "$as_me:1499: result: Configuring for $cf_cv_system_name" >&5
1500 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1502 if test ".$system_name" != ".$cf_cv_system_name" ; then
1503 echo "$as_me:1503: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1504 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1505 { { echo "$as_me:1505: error: \"Please remove config.cache and try again.\"" >&5
1506 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1507 { (exit 1); exit 1; }; }
1510 # Check whether --with-system-type or --without-system-type was given.
1511 if test "${with_system_type+set}" = set; then
1512 withval="$with_system_type"
1513 { echo "$as_me:1513: WARNING: overriding system type to $withval" >&5
1514 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1515 cf_cv_system_name=$withval
1520 ### Save the given $CFLAGS to allow user-override.
1521 cf_user_CFLAGS="$CFLAGS"
1523 ### Default install-location
1525 echo "$as_me:1525: checking for prefix" >&5
1526 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1527 if test "x$prefix" = "xNONE" ; then
1528 case "$cf_cv_system_name" in
1529 # non-vendor systems don't have a conflict
1530 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1533 (*) prefix=$ac_default_prefix
1537 echo "$as_me:1537: result: $prefix" >&5
1538 echo "${ECHO_T}$prefix" >&6
1540 if test "x$prefix" = "xNONE" ; then
1541 echo "$as_me:1541: checking for default include-directory" >&5
1542 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1543 test -n "$verbose" && echo 1>&6
1546 $includedir/ncurses \
1548 $prefix/include/ncurses \
1549 /usr/local/include \
1550 /usr/local/include/ncurses \
1552 /usr/include/ncurses
1554 cf_dir=`eval echo $cf_symbol`
1555 if test -f $cf_dir/curses.h ; then
1556 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1557 includedir="$cf_symbol"
1558 test -n "$verbose" && echo $ac_n " found " 1>&6
1562 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1564 echo "$as_me:1564: result: $includedir" >&5
1565 echo "${ECHO_T}$includedir" >&6
1568 ### Defaults for ncurses ABI
1570 case x$cf_cv_abi_version in
1572 cf_dft_ext_colors=yes
1573 cf_dft_ext_const=yes
1574 cf_dft_ext_mouse=yes
1575 cf_dft_ext_putwin=yes
1576 cf_dft_ext_spfuncs=yes
1577 cf_dft_filter_syms=yes
1578 cf_dft_chtype=uint32_t
1579 cf_dft_mmask_t=uint32_t
1581 cf_dft_tparm_arg=intptr_t
1582 cf_dft_with_lp64=yes
1585 cf_dft_ext_colors=no
1588 cf_dft_ext_putwin=no
1589 cf_dft_ext_spfuncs=no
1590 cf_dft_filter_syms=no
1594 cf_dft_tparm_arg=long
1599 ### Checks for programs.
1601 # Check whether --with-ada or --without-ada was given.
1602 if test "${with_ada+set}" = set; then
1604 cf_with_ada=$withval
1609 if test "x$cf_with_ada" = xyes
1611 cf_prog_cc="gnatgcc gcc cc"
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621 ac_main_return=return
1622 if test -n "$ac_tool_prefix"; then
1623 for ac_prog in $cf_prog_cc
1625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1627 echo "$as_me:1627: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 ac_save_IFS=$IFS; IFS=$ac_path_separator
1637 for ac_dir in $ac_dummy; do
1639 test -z "$ac_dir" && ac_dir=.
1640 $as_executable_p "$ac_dir/$ac_word" || continue
1641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1642 echo "$as_me:1642: found $ac_dir/$ac_word" >&5
1649 if test -n "$CC"; then
1650 echo "$as_me:1650: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1653 echo "$as_me:1653: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1657 test -n "$CC" && break
1660 if test -z "$CC"; then
1662 for ac_prog in $cf_prog_cc
1664 # Extract the first word of "$ac_prog", so it can be a program name with args.
1665 set dummy $ac_prog; ac_word=$2
1666 echo "$as_me:1666: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$ac_ct_CC"; then
1672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 ac_save_IFS=$IFS; IFS=$ac_path_separator
1676 for ac_dir in $ac_dummy; do
1678 test -z "$ac_dir" && ac_dir=.
1679 $as_executable_p "$ac_dir/$ac_word" || continue
1680 ac_cv_prog_ac_ct_CC="$ac_prog"
1681 echo "$as_me:1681: found $ac_dir/$ac_word" >&5
1687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689 echo "$as_me:1689: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1692 echo "$as_me:1692: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1696 test -n "$ac_ct_CC" && break
1702 test -z "$CC" && { { echo "$as_me:1702: error: no acceptable cc found in \$PATH" >&5
1703 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1704 { (exit 1); exit 1; }; }
1706 # Provide some information about the compiler.
1707 echo "$as_me:1707:" \
1708 "checking for C compiler version" >&5
1709 ac_compiler=`set X $ac_compile; echo $2`
1710 { (eval echo "$as_me:1710: \"$ac_compiler --version </dev/null >&5\"") >&5
1711 (eval $ac_compiler --version </dev/null >&5) 2>&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715 { (eval echo "$as_me:1715: \"$ac_compiler -v </dev/null >&5\"") >&5
1716 (eval $ac_compiler -v </dev/null >&5) 2>&5
1718 echo "$as_me:1718: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:1720: \"$ac_compiler -V </dev/null >&5\"") >&5
1721 (eval $ac_compiler -V </dev/null >&5) 2>&5
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1738 ac_clean_files_save=$ac_clean_files
1739 ac_clean_files="$ac_clean_files a.out a.exe"
1740 # Try to create an executable without -o first, disregard a.out.
1741 # It will help us diagnose broken compilers, and finding out an intuition
1743 echo "$as_me:1743: checking for C compiler default output" >&5
1744 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1745 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1746 if { (eval echo "$as_me:1746: \"$ac_link_default\"") >&5
1747 (eval $ac_link_default) 2>&5
1749 echo "$as_me:1749: \$? = $ac_status" >&5
1750 (exit $ac_status); }; then
1751 # Find the output, starting from the most likely. This scheme is
1752 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1754 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1755 ls a.out conftest 2>/dev/null;
1756 ls a.* conftest.* 2>/dev/null`; do
1758 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1759 a.out ) # We found the default executable, but exeext='' is most
1762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1763 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1770 echo "$as_me: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1772 { { echo "$as_me:1772: error: C compiler cannot create executables" >&5
1773 echo "$as_me: error: C compiler cannot create executables" >&2;}
1774 { (exit 77); exit 77; }; }
1777 ac_exeext=$ac_cv_exeext
1778 echo "$as_me:1778: result: $ac_file" >&5
1779 echo "${ECHO_T}$ac_file" >&6
1781 # Check the compiler produces executables we can run. If not, either
1782 # the compiler is broken, or we cross compile.
1783 echo "$as_me:1783: checking whether the C compiler works" >&5
1784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1786 # If not cross compiling, check that we can run a simple program.
1787 if test "$cross_compiling" != yes; then
1788 if { ac_try='./$ac_file'
1789 { (eval echo "$as_me:1789: \"$ac_try\"") >&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; }; then
1796 if test "$cross_compiling" = maybe; then
1799 { { echo "$as_me:1799: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'." >&5
1801 echo "$as_me: error: cannot run C compiled programs.
1802 If you meant to cross compile, use \`--host'." >&2;}
1803 { (exit 1); exit 1; }; }
1807 echo "$as_me:1807: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1810 rm -f a.out a.exe conftest$ac_cv_exeext
1811 ac_clean_files=$ac_clean_files_save
1812 # Check the compiler produces executables we can run. If not, either
1813 # the compiler is broken, or we cross compile.
1814 echo "$as_me:1814: checking whether we are cross compiling" >&5
1815 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816 echo "$as_me:1816: result: $cross_compiling" >&5
1817 echo "${ECHO_T}$cross_compiling" >&6
1819 echo "$as_me:1819: checking for executable suffix" >&5
1820 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1821 if { (eval echo "$as_me:1821: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828 # work properly (i.e., refer to `conftest.exe'), while it won't with
1830 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840 { { echo "$as_me:1840: error: cannot compute EXEEXT: cannot compile and link" >&5
1841 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest$ac_cv_exeext
1846 echo "$as_me:1846: result: $ac_cv_exeext" >&5
1847 echo "${ECHO_T}$ac_cv_exeext" >&6
1849 rm -f conftest.$ac_ext
1850 EXEEXT=$ac_cv_exeext
1852 echo "$as_me:1852: checking for object suffix" >&5
1853 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1854 if test "${ac_cv_objext+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line 1858 "configure"
1859 #include "confdefs.h"
1869 rm -f conftest.o conftest.obj
1870 if { (eval echo "$as_me:1870: \"$ac_compile\"") >&5
1871 (eval $ac_compile) 2>&5
1873 echo "$as_me:1873: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1883 echo "$as_me: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 { { echo "$as_me:1885: error: cannot compute OBJEXT: cannot compile" >&5
1886 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1887 { (exit 1); exit 1; }; }
1890 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892 echo "$as_me:1892: result: $ac_cv_objext" >&5
1893 echo "${ECHO_T}$ac_cv_objext" >&6
1894 OBJEXT=$ac_cv_objext
1896 echo "$as_me:1896: checking whether we are using the GNU C compiler" >&5
1897 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 cat >conftest.$ac_ext <<_ACEOF
1902 #line 1902 "configure"
1903 #include "confdefs.h"
1916 rm -f conftest.$ac_objext
1917 if { (eval echo "$as_me:1917: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:1923: \"$ac_try\"") >&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1930 echo "$as_me: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1934 rm -f conftest.$ac_objext conftest.$ac_ext
1935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1938 echo "$as_me:1938: result: $ac_cv_c_compiler_gnu" >&5
1939 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1940 GCC=`test $ac_compiler_gnu = yes && echo yes`
1941 ac_test_CFLAGS=${CFLAGS+set}
1942 ac_save_CFLAGS=$CFLAGS
1944 echo "$as_me:1944: checking whether $CC accepts -g" >&5
1945 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1946 if test "${ac_cv_prog_cc_g+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.$ac_ext <<_ACEOF
1950 #line 1950 "configure"
1951 #include "confdefs.h"
1961 rm -f conftest.$ac_objext
1962 if { (eval echo "$as_me:1962: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1965 echo "$as_me:1965: \$? = $ac_status" >&5
1966 (exit $ac_status); } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:1968: \"$ac_try\"") >&5
1971 echo "$as_me:1971: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1979 rm -f conftest.$ac_objext conftest.$ac_ext
1981 echo "$as_me:1981: result: $ac_cv_prog_cc_g" >&5
1982 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1983 if test "$ac_test_CFLAGS" = set; then
1984 CFLAGS=$ac_save_CFLAGS
1985 elif test $ac_cv_prog_cc_g = yes; then
1986 if test "$GCC" = yes; then
1992 if test "$GCC" = yes; then
1998 # Some people use a C++ compiler to compile C. Since we use `exit',
1999 # in C++ we need to declare it. In case someone uses the same compiler
2000 # for both compiling C and C++ we need to have the C++ compiler decide
2001 # the declaration of exit, since it's the most demanding environment.
2002 cat >conftest.$ac_ext <<_ACEOF
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:2008: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } &&
2013 { ac_try='test -s conftest.$ac_objext'
2014 { (eval echo "$as_me:2014: \"$ac_try\"") >&5
2017 echo "$as_me:2017: \$? = $ac_status" >&5
2018 (exit $ac_status); }; }; then
2019 for ac_declaration in \
2021 '#include <stdlib.h>' \
2022 'extern "C" void std::exit (int) throw (); using std::exit;' \
2023 'extern "C" void std::exit (int); using std::exit;' \
2024 'extern "C" void exit (int) throw ();' \
2025 'extern "C" void exit (int);' \
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2041 rm -f conftest.$ac_objext
2042 if { (eval echo "$as_me:2042: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>&5
2045 echo "$as_me:2045: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:2048: \"$ac_try\"") >&5
2051 echo "$as_me:2051: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2055 echo "$as_me: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2059 rm -f conftest.$ac_objext conftest.$ac_ext
2060 cat >conftest.$ac_ext <<_ACEOF
2061 #line 2061 "configure"
2062 #include "confdefs.h"
2072 rm -f conftest.$ac_objext
2073 if { (eval echo "$as_me:2073: \"$ac_compile\"") >&5
2074 (eval $ac_compile) 2>&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -s conftest.$ac_objext'
2079 { (eval echo "$as_me:2079: \"$ac_try\"") >&5
2082 echo "$as_me:2082: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 rm -f conftest.$ac_objext conftest.$ac_ext
2092 if test -n "$ac_declaration"; then
2093 echo '#ifdef __cplusplus' >>confdefs.h
2094 echo $ac_declaration >>confdefs.h
2095 echo '#endif' >>confdefs.h
2099 echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2102 rm -f conftest.$ac_objext conftest.$ac_ext
2104 ac_cpp='$CPP $CPPFLAGS'
2105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108 ac_main_return=return
2111 if test "$GCC" = yes ; then
2112 echo "$as_me:2112: checking version of $CC" >&5
2113 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2114 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.].*//'`"
2115 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2116 echo "$as_me:2116: result: $GCC_VERSION" >&5
2117 echo "${ECHO_T}$GCC_VERSION" >&6
2122 if test "$GCC" = yes ; then
2125 echo "$as_me:2125: checking if this is really Intel C compiler" >&5
2126 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2127 cf_save_CFLAGS="$CFLAGS"
2128 CFLAGS="$CFLAGS -no-gcc"
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line 2130 "configure"
2131 #include "confdefs.h"
2137 #ifdef __INTEL_COMPILER
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:2147: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2159 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2162 echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2165 rm -f conftest.$ac_objext conftest.$ac_ext
2166 CFLAGS="$cf_save_CFLAGS"
2167 echo "$as_me:2167: result: $INTEL_COMPILER" >&5
2168 echo "${ECHO_T}$INTEL_COMPILER" >&6
2175 if test "$GCC" = yes ; then
2176 echo "$as_me:2176: checking if this is really Clang C compiler" >&5
2177 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2178 cf_save_CFLAGS="$CFLAGS"
2179 CFLAGS="$CFLAGS -Qunused-arguments"
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #line 2181 "configure"
2182 #include "confdefs.h"
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:2198: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:2201: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:2204: \"$ac_try\"") >&5
2207 echo "$as_me:2207: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2210 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
2213 echo "$as_me: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2217 CFLAGS="$cf_save_CFLAGS"
2218 echo "$as_me:2218: result: $CLANG_COMPILER" >&5
2219 echo "${ECHO_T}$CLANG_COMPILER" >&6
2222 echo "$as_me:2222: checking for $CC option to accept ANSI C" >&5
2223 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2224 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 ac_cv_prog_cc_stdc=no
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #line 2230 "configure"
2231 #include "confdefs.h"
2234 #include <sys/types.h>
2235 #include <sys/stat.h>
2236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2237 struct buf { int x; };
2238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2239 static char *e (p, i)
2245 static char *f (char * (*g) (char **, int), char **p, ...)
2250 s = g (p, va_arg (v,int));
2254 int test (int i, double x);
2255 struct s1 {int (*f) (int a);};
2256 struct s2 {int (*f) (double a);};
2257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2268 # Don't try gcc -ansi; that turns off useful extensions and
2269 # breaks some systems' header files.
2270 # AIX -qlanglvl=ansi
2271 # Ultrix and OSF/1 -std1
2272 # HP-UX 10.20 and later -Ae
2273 # HP-UX older versions -Aa -D_HPUX_SOURCE
2274 # SVR4 -Xc -D__EXTENSIONS__
2275 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2277 CC="$ac_save_CC $ac_arg"
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:2279: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2282 echo "$as_me:2282: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:2285: \"$ac_try\"") >&5
2288 echo "$as_me:2288: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 ac_cv_prog_cc_stdc=$ac_arg
2293 echo "$as_me: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 rm -f conftest.$ac_objext
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2303 case "x$ac_cv_prog_cc_stdc" in
2305 echo "$as_me:2305: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2308 echo "$as_me:2308: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310 CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 # This should have been defined by AC_PROG_CC
2316 echo "$as_me:2316: checking \$CFLAGS variable" >&5
2317 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2320 echo "$as_me:2320: result: broken" >&5
2321 echo "${ECHO_T}broken" >&6
2322 { echo "$as_me:2322: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2323 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2326 for cf_arg in $cf_flags
2332 cf_new_extra_cppflags=
2334 for cf_add_cflags in $cf_arg
2336 case $cf_fix_cppflags in
2338 case $cf_add_cflags in
2339 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2340 case $cf_add_cflags in
2342 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2344 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2345 && test -z "${cf_tst_cflags}" \
2346 && cf_fix_cppflags=yes
2348 if test $cf_fix_cppflags = yes ; then
2350 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2351 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2354 elif test "${cf_tst_cflags}" = "\"'" ; then
2356 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2357 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2367 case $cf_add_cflags in
2369 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2371 CPPFLAGS=`echo "$CPPFLAGS" | \
2372 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2373 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2378 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2379 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2386 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2387 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2394 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2395 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2397 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2399 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2400 && test -z "${cf_tst_cflags}" \
2401 && cf_fix_cppflags=no
2406 if test -n "$cf_new_cflags" ; then
2408 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2409 CFLAGS="${CFLAGS}$cf_new_cflags"
2413 if test -n "$cf_new_cppflags" ; then
2415 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2416 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2420 if test -n "$cf_new_extra_cppflags" ; then
2422 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2423 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2430 echo "$as_me:2430: result: ok" >&5
2431 echo "${ECHO_T}ok" >&6
2435 echo "$as_me:2435: checking \$CC variable" >&5
2436 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2439 echo "$as_me:2439: result: broken" >&5
2440 echo "${ECHO_T}broken" >&6
2441 { echo "$as_me:2441: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2442 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2444 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2445 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2447 for cf_arg in $cf_flags
2455 cf_new_extra_cppflags=
2457 for cf_add_cflags in $cf_arg
2459 case $cf_fix_cppflags in
2461 case $cf_add_cflags in
2462 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2463 case $cf_add_cflags in
2465 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2467 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2468 && test -z "${cf_tst_cflags}" \
2469 && cf_fix_cppflags=yes
2471 if test $cf_fix_cppflags = yes ; then
2473 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2474 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2477 elif test "${cf_tst_cflags}" = "\"'" ; then
2479 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2480 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2490 case $cf_add_cflags in
2492 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2494 CPPFLAGS=`echo "$CPPFLAGS" | \
2495 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2496 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2501 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2502 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2509 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2510 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2517 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2518 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2520 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2522 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2523 && test -z "${cf_tst_cflags}" \
2524 && cf_fix_cppflags=no
2529 if test -n "$cf_new_cflags" ; then
2531 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2532 CFLAGS="${CFLAGS}$cf_new_cflags"
2536 if test -n "$cf_new_cppflags" ; then
2538 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2539 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2543 if test -n "$cf_new_extra_cppflags" ; then
2545 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2546 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2556 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2558 echo "${as_me:-configure}:2558: testing resulting CC: '$CC' ..." 1>&5
2560 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2562 echo "${as_me:-configure}:2562: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2564 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2566 echo "${as_me:-configure}:2566: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2570 echo "$as_me:2570: result: ok" >&5
2571 echo "${ECHO_T}ok" >&6
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580 ac_main_return=return
2581 echo "$as_me:2581: checking how to run the C preprocessor" >&5
2582 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2583 # On Suns, sometimes $CPP names a directory.
2584 if test -n "$CPP" && test -d "$CPP"; then
2587 if test -z "$CPP"; then
2588 if test "${ac_cv_prog_CPP+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 # Double quotes because CPP needs to be expanded
2592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2595 for ac_c_preproc_warn_flag in '' yes
2597 # Use a header file that comes with gcc, so configuring glibc
2598 # with a fresh cross-compiler works.
2599 # On the NeXT, cc -E runs the code through the compiler's parser,
2600 # not just through cpp. "Syntax error" is here to catch this case.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line 2602 "configure"
2603 #include "confdefs.h"
2607 if { (eval echo "$as_me:2607: \"$ac_cpp conftest.$ac_ext\"") >&5
2608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2610 egrep -v '^ *\+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); } >/dev/null; then
2615 if test -s conftest.err; then
2616 ac_cpp_err=$ac_c_preproc_warn_flag
2623 if test -z "$ac_cpp_err"; then
2626 echo "$as_me: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2628 # Broken: fails on valid input.
2631 rm -f conftest.err conftest.$ac_ext
2633 # OK, works on sane cases. Now check whether non-existent headers
2634 # can be detected and how.
2635 cat >conftest.$ac_ext <<_ACEOF
2636 #line 2636 "configure"
2637 #include "confdefs.h"
2638 #include <ac_nonexistent.h>
2640 if { (eval echo "$as_me:2640: \"$ac_cpp conftest.$ac_ext\"") >&5
2641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2643 egrep -v '^ *\+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:2646: \$? = $ac_status" >&5
2647 (exit $ac_status); } >/dev/null; then
2648 if test -s conftest.err; then
2649 ac_cpp_err=$ac_c_preproc_warn_flag
2656 if test -z "$ac_cpp_err"; then
2657 # Broken: success on invalid input.
2660 echo "$as_me: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2662 # Passes both tests.
2666 rm -f conftest.err conftest.$ac_ext
2669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2670 rm -f conftest.err conftest.$ac_ext
2671 if $ac_preproc_ok; then
2683 echo "$as_me:2683: result: $CPP" >&5
2684 echo "${ECHO_T}$CPP" >&6
2686 for ac_c_preproc_warn_flag in '' yes
2688 # Use a header file that comes with gcc, so configuring glibc
2689 # with a fresh cross-compiler works.
2690 # On the NeXT, cc -E runs the code through the compiler's parser,
2691 # not just through cpp. "Syntax error" is here to catch this case.
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line 2693 "configure"
2694 #include "confdefs.h"
2698 if { (eval echo "$as_me:2698: \"$ac_cpp conftest.$ac_ext\"") >&5
2699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701 egrep -v '^ *\+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:2704: \$? = $ac_status" >&5
2705 (exit $ac_status); } >/dev/null; then
2706 if test -s conftest.err; then
2707 ac_cpp_err=$ac_c_preproc_warn_flag
2714 if test -z "$ac_cpp_err"; then
2717 echo "$as_me: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 # Broken: fails on valid input.
2722 rm -f conftest.err conftest.$ac_ext
2724 # OK, works on sane cases. Now check whether non-existent headers
2725 # can be detected and how.
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line 2727 "configure"
2728 #include "confdefs.h"
2729 #include <ac_nonexistent.h>
2731 if { (eval echo "$as_me:2731: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2734 egrep -v '^ *\+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2747 if test -z "$ac_cpp_err"; then
2748 # Broken: success on invalid input.
2751 echo "$as_me: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2753 # Passes both tests.
2757 rm -f conftest.err conftest.$ac_ext
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.$ac_ext
2762 if $ac_preproc_ok; then
2765 { { echo "$as_me:2765: error: C preprocessor \"$CPP\" fails sanity check" >&5
2766 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2767 { (exit 1); exit 1; }; }
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_main_return=return
2777 if test $ac_cv_c_compiler_gnu = yes; then
2778 echo "$as_me:2778: checking whether $CC needs -traditional" >&5
2779 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2780 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 ac_pattern="Autoconf.*'x'"
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line 2785 "configure"
2786 #include "confdefs.h"
2788 int Autoconf = TIOCGETP;
2790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2791 egrep "$ac_pattern" >/dev/null 2>&1; then
2792 ac_cv_prog_gcc_traditional=yes
2794 ac_cv_prog_gcc_traditional=no
2798 if test $ac_cv_prog_gcc_traditional = no; then
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line 2800 "configure"
2801 #include "confdefs.h"
2803 int Autoconf = TCGETA;
2805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2806 egrep "$ac_pattern" >/dev/null 2>&1; then
2807 ac_cv_prog_gcc_traditional=yes
2813 echo "$as_me:2813: result: $ac_cv_prog_gcc_traditional" >&5
2814 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2815 if test $ac_cv_prog_gcc_traditional = yes; then
2816 CC="$CC -traditional"
2820 echo "$as_me:2820: checking whether $CC understands -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2822 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 cat > conftest.$ac_ext <<CF_EOF
2829 ${cf_cv_main_return:-return}(0);
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2835 if { (eval echo "$as_me:2835: \"$ac_try\"") >&5
2838 echo "$as_me:2838: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 test -f conftest2.$ac_objext && { (eval echo "$as_me:2840: \"$ac_try\"") >&5
2843 echo "$as_me:2843: \$? = $ac_status" >&5
2844 (exit $ac_status); };
2846 eval cf_cv_prog_CC_c_o=yes
2848 eval cf_cv_prog_CC_c_o=no
2853 if test $cf_cv_prog_CC_c_o = yes; then
2854 echo "$as_me:2854: result: yes" >&5
2855 echo "${ECHO_T}yes" >&6
2857 echo "$as_me:2857: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2861 if test "$cross_compiling" = yes ; then
2864 case "$cf_cv_system_name" in
2865 (dragonfly*|mirbsd*|freebsd*)
2866 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2868 (*) LDPATH=$PATH:/sbin:/usr/sbin
2869 # Extract the first word of "ldconfig", so it can be a program name with args.
2870 set dummy ldconfig; ac_word=$2
2871 echo "$as_me:2871: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2881 ac_save_IFS=$IFS; IFS=$ac_path_separator
2883 for ac_dir in $ac_dummy; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if $as_executable_p "$ac_dir/$ac_word"; then
2887 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2888 echo "$as_me:2888: found $ac_dir/$ac_word" >&5
2896 LDCONFIG=$ac_cv_path_LDCONFIG
2898 if test -n "$LDCONFIG"; then
2899 echo "$as_me:2899: result: $LDCONFIG" >&5
2900 echo "${ECHO_T}$LDCONFIG" >&6
2902 echo "$as_me:2902: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2910 echo "$as_me:2910: checking if you want to ensure bool is consistent with C++" >&5
2911 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2913 # Check whether --with-cxx or --without-cxx was given.
2914 if test "${with_cxx+set}" = set; then
2916 cf_with_cxx=$withval
2920 echo "$as_me:2920: result: $cf_with_cxx" >&5
2921 echo "${ECHO_T}$cf_with_cxx" >&6
2922 if test "X$cf_with_cxx" = Xno ; then
2926 # with autoconf 2.13, we can change the error to a warning:
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 ac_main_return=return
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 echo "$as_me:2938: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CXX+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CXX"; then
2944 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2946 ac_save_IFS=$IFS; IFS=$ac_path_separator
2948 for ac_dir in $ac_dummy; do
2950 test -z "$ac_dir" && ac_dir=.
2951 $as_executable_p "$ac_dir/$ac_word" || continue
2952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2953 echo "$as_me:2953: found $ac_dir/$ac_word" >&5
2960 if test -n "$CXX"; then
2961 echo "$as_me:2961: result: $CXX" >&5
2962 echo "${ECHO_T}$CXX" >&6
2964 echo "$as_me:2964: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2968 test -n "$CXX" && break
2971 if test -z "$CXX"; then
2973 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 echo "$as_me:2977: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$ac_ct_CXX"; then
2983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2985 ac_save_IFS=$IFS; IFS=$ac_path_separator
2987 for ac_dir in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir=.
2990 $as_executable_p "$ac_dir/$ac_word" || continue
2991 ac_cv_prog_ac_ct_CXX="$ac_prog"
2992 echo "$as_me:2992: found $ac_dir/$ac_word" >&5
2998 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2999 if test -n "$ac_ct_CXX"; then
3000 echo "$as_me:3000: result: $ac_ct_CXX" >&5
3001 echo "${ECHO_T}$ac_ct_CXX" >&6
3003 echo "$as_me:3003: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3007 test -n "$ac_ct_CXX" && break
3009 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3014 # Provide some information about the compiler.
3015 echo "$as_me:3015:" \
3016 "checking for C++ compiler version" >&5
3017 ac_compiler=`set X $ac_compile; echo $2`
3018 { (eval echo "$as_me:3018: \"$ac_compiler --version </dev/null >&5\"") >&5
3019 (eval $ac_compiler --version </dev/null >&5) 2>&5
3021 echo "$as_me:3021: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:3023: \"$ac_compiler -v </dev/null >&5\"") >&5
3024 (eval $ac_compiler -v </dev/null >&5) 2>&5
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (eval echo "$as_me:3028: \"$ac_compiler -V </dev/null >&5\"") >&5
3029 (eval $ac_compiler -V </dev/null >&5) 2>&5
3031 echo "$as_me:3031: \$? = $ac_status" >&5
3032 (exit $ac_status); }
3034 echo "$as_me:3034: checking whether we are using the GNU C++ compiler" >&5
3035 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3036 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 cat >conftest.$ac_ext <<_ACEOF
3040 #line 3040 "configure"
3041 #include "confdefs.h"
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:3055: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>&5
3058 echo "$as_me:3058: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:3061: \"$ac_try\"") >&5
3064 echo "$as_me:3064: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3072 rm -f conftest.$ac_objext conftest.$ac_ext
3073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3076 echo "$as_me:3076: result: $ac_cv_cxx_compiler_gnu" >&5
3077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3078 GXX=`test $ac_compiler_gnu = yes && echo yes`
3079 ac_test_CXXFLAGS=${CXXFLAGS+set}
3080 ac_save_CXXFLAGS=$CXXFLAGS
3082 echo "$as_me:3082: checking whether $CXX accepts -g" >&5
3083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3084 if test "${ac_cv_prog_cxx_g+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:3100: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3103 echo "$as_me:3103: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:3106: \"$ac_try\"") >&5
3109 echo "$as_me:3109: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_cv_prog_cxx_g=yes
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3117 rm -f conftest.$ac_objext conftest.$ac_ext
3119 echo "$as_me:3119: result: $ac_cv_prog_cxx_g" >&5
3120 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3121 if test "$ac_test_CXXFLAGS" = set; then
3122 CXXFLAGS=$ac_save_CXXFLAGS
3123 elif test $ac_cv_prog_cxx_g = yes; then
3124 if test "$GXX" = yes; then
3130 if test "$GXX" = yes; then
3136 for ac_declaration in \
3138 '#include <stdlib.h>' \
3139 'extern "C" void std::exit (int) throw (); using std::exit;' \
3140 'extern "C" void std::exit (int); using std::exit;' \
3141 'extern "C" void exit (int) throw ();' \
3142 'extern "C" void exit (int);' \
3145 cat >conftest.$ac_ext <<_ACEOF
3146 #line 3146 "configure"
3147 #include "confdefs.h"
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:3159: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:3165: \"$ac_try\"") >&5
3168 echo "$as_me:3168: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3172 echo "$as_me: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3176 rm -f conftest.$ac_objext conftest.$ac_ext
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line 3178 "configure"
3179 #include "confdefs.h"
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:3190: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:3196: \"$ac_try\"") >&5
3199 echo "$as_me:3199: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 echo "$as_me: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 rm -f conftest.$ac_objext conftest.$ac_ext
3209 if test -n "$ac_declaration"; then
3210 echo '#ifdef __cplusplus' >>confdefs.h
3211 echo $ac_declaration >>confdefs.h
3212 echo '#endif' >>confdefs.h
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 ac_main_return=return
3223 ac_cpp='$CXXCPP $CPPFLAGS'
3224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3227 ac_main_return=return
3229 if test "x$cf_with_cxx" != xno
3231 # Several of the C++ configurations do not work, particularly when
3232 # cross-compiling (20140913 -TD)
3233 echo "$as_me:3233: checking if $CXX works" >&5
3234 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3236 save_CPPFLAGS="$CPPFLAGS"
3237 eval cf_includedir=${includedir}
3238 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3240 cat >conftest.$ac_ext <<_ACEOF
3241 #line 3241 "configure"
3242 #include "confdefs.h"
3251 printf("Hello world!\n")
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:3258: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:3264: \"$ac_try\"") >&5
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 echo "$as_me: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3276 CPPFLAGS="$save_CPPFLAGS"
3278 echo "$as_me:3278: result: $cf_cxx_works" >&5
3279 echo "${ECHO_T}$cf_cxx_works" >&6
3280 if test "x$cf_cxx_works" = xno
3282 { echo "$as_me:3282: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3283 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3284 cf_with_cxx=no; CXX=""; GXX="";
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 ac_main_return=return
3294 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3295 if test "$CXX" = "g++" ; then
3296 # Extract the first word of "g++", so it can be a program name with args.
3297 set dummy g++; ac_word=$2
3298 echo "$as_me:3298: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_path_CXX+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3308 ac_save_IFS=$IFS; IFS=$ac_path_separator
3310 for ac_dir in $ac_dummy; do
3312 test -z "$ac_dir" && ac_dir=.
3313 if $as_executable_p "$ac_dir/$ac_word"; then
3314 ac_cv_path_CXX="$ac_dir/$ac_word"
3315 echo "$as_me:3315: found $ac_dir/$ac_word" >&5
3325 if test -n "$CXX"; then
3326 echo "$as_me:3326: result: $CXX" >&5
3327 echo "${ECHO_T}$CXX" >&6
3329 echo "$as_me:3329: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3336 { echo "$as_me:3336: WARNING: You don't have any C++ compiler, too bad" >&5
3337 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3338 cf_with_cxx=no; CXX=""; GXX="";
3344 if test "$GXX" = yes; then
3345 echo "$as_me:3345: checking version of ${CXX:-g++}" >&5
3346 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3347 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3348 if test -z "$GXX_VERSION"
3353 echo "$as_me:3353: result: $GXX_VERSION" >&5
3354 echo "${ECHO_T}$GXX_VERSION" >&6
3357 case $GXX_VERSION in
3361 { echo "$as_me:3361: WARNING: templates do not work" >&5
3362 echo "$as_me: WARNING: templates do not work" >&2;}
3366 echo "$as_me:3366: checking if you want to build C++ binding and demo" >&5
3367 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3369 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3370 if test "${with_cxx_binding+set}" = set; then
3371 withval="$with_cxx_binding"
3372 cf_with_cxx_binding=$withval
3374 cf_with_cxx_binding=$cf_with_cxx
3376 echo "$as_me:3376: result: $cf_with_cxx_binding" >&5
3377 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3379 echo "$as_me:3379: checking if you want to build with Ada" >&5
3380 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3381 echo "$as_me:3381: result: $cf_with_ada" >&5
3382 echo "${ECHO_T}$cf_with_ada" >&6
3384 echo "$as_me:3384: checking if you want to install terminal database" >&5
3385 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3387 # Check whether --enable-db-install or --disable-db-install was given.
3388 if test "${enable_db_install+set}" = set; then
3389 enableval="$enable_db_install"
3390 cf_with_db_install=$enableval
3392 cf_with_db_install=yes
3394 echo "$as_me:3394: result: $cf_with_db_install" >&5
3395 echo "${ECHO_T}$cf_with_db_install" >&6
3397 echo "$as_me:3397: checking if you want to install manpages" >&5
3398 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3400 # Check whether --with-manpages or --without-manpages was given.
3401 if test "${with_manpages+set}" = set; then
3402 withval="$with_manpages"
3403 cf_with_manpages=$withval
3405 cf_with_manpages=yes
3407 echo "$as_me:3407: result: $cf_with_manpages" >&5
3408 echo "${ECHO_T}$cf_with_manpages" >&6
3410 echo "$as_me:3410: checking if you want to build programs such as tic" >&5
3411 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3413 # Check whether --with-progs or --without-progs was given.
3414 if test "${with_progs+set}" = set; then
3415 withval="$with_progs"
3416 cf_with_progs=$withval
3420 echo "$as_me:3420: result: $cf_with_progs" >&5
3421 echo "${ECHO_T}$cf_with_progs" >&6
3423 if test -f $srcdir/tack/tack.h; then
3424 if test "x$cross_compiling" = xyes ; then
3425 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3427 echo "${as_me:-configure}:3427: testing ignoring tack because we are cross-compiling ..." 1>&5
3431 echo "$as_me:3431: checking if you want to build the tack program" >&5
3432 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3434 # Check whether --with-tack or --without-tack was given.
3435 if test "${with_tack+set}" = set; then
3436 withval="$with_tack"
3437 cf_with_tack=$withval
3439 cf_with_tack=$cf_with_progs
3441 echo "$as_me:3441: result: $cf_with_tack" >&5
3442 echo "${ECHO_T}$cf_with_tack" >&6
3448 echo "$as_me:3448: checking if you want to build test-programs" >&5
3449 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3451 # Check whether --with-tests or --without-tests was given.
3452 if test "${with_tests+set}" = set; then
3453 withval="$with_tests"
3454 cf_with_tests=$withval
3458 echo "$as_me:3458: result: $cf_with_tests" >&5
3459 echo "${ECHO_T}$cf_with_tests" >&6
3461 echo "$as_me:3461: checking if you wish to install curses.h" >&5
3462 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3464 # Check whether --with-curses-h or --without-curses-h was given.
3465 if test "${with_curses_h+set}" = set; then
3466 withval="$with_curses_h"
3467 with_curses_h=$withval
3471 echo "$as_me:3471: result: $with_curses_h" >&5
3472 echo "${ECHO_T}$with_curses_h" >&6
3474 modules_to_build="ncurses"
3475 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3476 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3477 modules_to_build="$modules_to_build panel menu form"
3479 test "$program_prefix" != NONE &&
3480 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3481 # Use a double $ so make ignores it.
3482 test "$program_suffix" != NONE &&
3483 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3484 # Double any \ or $. echo might interpret backslashes.
3485 # By default was `s,x,x', remove it if useless.
3486 cat <<\_ACEOF >conftest.sed
3487 s/[\\$]/&&/g;s/;s,x,x,$//
3489 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3492 for ac_prog in mawk gawk nawk awk
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 echo "$as_me:3496: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_AWK+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if test -n "$AWK"; then
3502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3504 ac_save_IFS=$IFS; IFS=$ac_path_separator
3506 for ac_dir in $ac_dummy; do
3508 test -z "$ac_dir" && ac_dir=.
3509 $as_executable_p "$ac_dir/$ac_word" || continue
3510 ac_cv_prog_AWK="$ac_prog"
3511 echo "$as_me:3511: found $ac_dir/$ac_word" >&5
3518 if test -n "$AWK"; then
3519 echo "$as_me:3519: result: $AWK" >&5
3520 echo "${ECHO_T}$AWK" >&6
3522 echo "$as_me:3522: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3526 test -n "$AWK" && break
3529 test -z "$AWK" && { { echo "$as_me:3529: error: No awk program found" >&5
3530 echo "$as_me: error: No awk program found" >&2;}
3531 { (exit 1); exit 1; }; }
3533 echo "$as_me:3533: checking for egrep" >&5
3534 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3535 if test "${ac_cv_prog_egrep+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3539 then ac_cv_prog_egrep='grep -E'
3540 else ac_cv_prog_egrep='egrep'
3543 echo "$as_me:3543: result: $ac_cv_prog_egrep" >&5
3544 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3545 EGREP=$ac_cv_prog_egrep
3547 test -z "$EGREP" && { { echo "$as_me:3547: error: No egrep program found" >&5
3548 echo "$as_me: error: No egrep program found" >&2;}
3549 { (exit 1); exit 1; }; }
3551 # Find a good install program. We prefer a C program (faster),
3552 # so one script is as good as another. But avoid the broken or
3553 # incompatible versions:
3554 # SysV /etc/install, /usr/sbin/install
3555 # SunOS /usr/etc/install
3556 # IRIX /sbin/install
3558 # AmigaOS /C/install, which installs bootblocks on floppy discs
3559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3562 # ./install, which can be erroneously created by make from ./install.sh.
3563 echo "$as_me:3563: checking for a BSD compatible install" >&5
3564 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3565 if test -z "$INSTALL"; then
3566 if test "${ac_cv_path_install+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 ac_save_IFS=$IFS; IFS=$ac_path_separator
3570 for ac_dir in $PATH; do
3572 # Account for people who put trailing slashes in PATH elements.
3574 / | ./ | .// | /cC/* \
3575 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3578 # OSF1 and SCO ODT 3.0 have their own names for install.
3579 # Don't use installbsd from OSF since it installs stuff as root
3581 for ac_prog in ginstall scoinst install; do
3582 if $as_executable_p "$ac_dir/$ac_prog"; then
3583 if test $ac_prog = install &&
3584 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3585 # AIX install. It has an incompatible calling convention.
3587 elif test $ac_prog = install &&
3588 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3589 # program-specific install script used by HP pwplus--don't use.
3592 ac_cv_path_install="$ac_dir/$ac_prog -c"
3602 if test "${ac_cv_path_install+set}" = set; then
3603 INSTALL=$ac_cv_path_install
3605 # As a last resort, use the slow shell script. We don't cache a
3606 # path for INSTALL within a source directory, because that will
3607 # break other packages using the cache if that directory is
3608 # removed, or if the path is relative.
3609 INSTALL=$ac_install_sh
3612 echo "$as_me:3612: result: $INSTALL" >&5
3613 echo "${ECHO_T}$INSTALL" >&6
3615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3616 # It thinks the first close brace ends the variable substitution.
3617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3627 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3628 test -z "$cf_dir" && cf_dir=.
3629 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3633 for ac_prog in lint cppcheck splint
3635 # Extract the first word of "$ac_prog", so it can be a program name with args.
3636 set dummy $ac_prog; ac_word=$2
3637 echo "$as_me:3637: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639 if test "${ac_cv_prog_LINT+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 if test -n "$LINT"; then
3643 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3645 ac_save_IFS=$IFS; IFS=$ac_path_separator
3647 for ac_dir in $ac_dummy; do
3649 test -z "$ac_dir" && ac_dir=.
3650 $as_executable_p "$ac_dir/$ac_word" || continue
3651 ac_cv_prog_LINT="$ac_prog"
3652 echo "$as_me:3652: found $ac_dir/$ac_word" >&5
3658 LINT=$ac_cv_prog_LINT
3659 if test -n "$LINT"; then
3660 echo "$as_me:3660: result: $LINT" >&5
3661 echo "${ECHO_T}$LINT" >&6
3663 echo "$as_me:3663: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 test -n "$LINT" && break
3671 (xcppcheck|x*/cppcheck)
3672 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3676 echo "$as_me:3676: checking whether ln -s works" >&5
3677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3679 if test "$LN_S" = "ln -s"; then
3680 echo "$as_me:3680: result: yes" >&5
3681 echo "${ECHO_T}yes" >&6
3683 echo "$as_me:3683: result: no, using $LN_S" >&5
3684 echo "${ECHO_T}no, using $LN_S" >&6
3687 echo "$as_me:3687: checking if $LN_S -f options work" >&5
3688 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3690 rm -f conf$$.src conf$$dst
3692 echo first >conf$$.src
3693 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3698 rm -f conf$$.dst conf$$src
3699 echo "$as_me:3699: result: $cf_prog_ln_sf" >&5
3700 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3702 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3704 echo "$as_me:3704: checking for long file names" >&5
3705 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3706 if test "${ac_cv_sys_long_file_names+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_cv_sys_long_file_names=yes
3710 # Test for long file names in all the places we know might matter:
3711 # . the current directory, where building will happen
3712 # $prefix/lib where we will be installing things
3713 # $exec_prefix/lib likewise
3714 # eval it to expand exec_prefix.
3715 # $TMPDIR if set, where it might want to write temporary files
3716 # if $TMPDIR is not set:
3717 # /tmp where it might want to write temporary files
3720 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3723 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3725 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3726 test -d $ac_dir || continue
3727 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3728 ac_xdir=$ac_dir/cf$$
3729 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3730 ac_tf1=$ac_xdir/conftest9012345
3731 ac_tf2=$ac_xdir/conftest9012346
3732 (echo 1 >$ac_tf1) 2>/dev/null
3733 (echo 2 >$ac_tf2) 2>/dev/null
3734 ac_val=`cat $ac_tf1 2>/dev/null`
3735 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3736 ac_cv_sys_long_file_names=no
3737 rm -rf $ac_xdir 2>/dev/null
3740 rm -rf $ac_xdir 2>/dev/null
3743 echo "$as_me:3743: result: $ac_cv_sys_long_file_names" >&5
3744 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3745 if test $ac_cv_sys_long_file_names = yes; then
3747 cat >>confdefs.h <<\EOF
3748 #define HAVE_LONG_FILE_NAMES 1
3753 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3754 # of package conflict.
3757 # Check whether --with-config-suffix or --without-config-suffix was given.
3758 if test "${with_config_suffix+set}" = set; then
3759 withval="$with_config_suffix"
3762 { echo "$as_me:3762: WARNING: expected a value for config-suffix option" >&5
3763 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3765 (*) cf_config_suffix="$withval"
3770 # If we find pkg-config, check if we should install the ".pc" files.
3772 echo "$as_me:3772: checking if you want to use pkg-config" >&5
3773 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3775 # Check whether --with-pkg-config or --without-pkg-config was given.
3776 if test "${with_pkg_config+set}" = set; then
3777 withval="$with_pkg_config"
3778 cf_pkg_config=$withval
3782 echo "$as_me:3782: result: $cf_pkg_config" >&5
3783 echo "${ECHO_T}$cf_pkg_config" >&6
3785 case $cf_pkg_config in
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3794 echo "$as_me:3794: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3804 ac_save_IFS=$IFS; IFS=$ac_path_separator
3806 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 if $as_executable_p "$ac_dir/$ac_word"; then
3810 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3811 echo "$as_me:3811: found $ac_dir/$ac_word" >&5
3819 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3821 if test -n "$PKG_CONFIG"; then
3822 echo "$as_me:3822: result: $PKG_CONFIG" >&5
3823 echo "${ECHO_T}$PKG_CONFIG" >&6
3825 echo "$as_me:3825: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3830 if test -z "$ac_cv_path_PKG_CONFIG"; then
3831 ac_pt_PKG_CONFIG=$PKG_CONFIG
3832 # Extract the first word of "pkg-config", so it can be a program name with args.
3833 set dummy pkg-config; ac_word=$2
3834 echo "$as_me:3834: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 case $ac_pt_PKG_CONFIG in
3841 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3844 ac_save_IFS=$IFS; IFS=$ac_path_separator
3846 for ac_dir in $ac_dummy; do
3848 test -z "$ac_dir" && ac_dir=.
3849 if $as_executable_p "$ac_dir/$ac_word"; then
3850 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3851 echo "$as_me:3851: found $ac_dir/$ac_word" >&5
3856 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3860 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3862 if test -n "$ac_pt_PKG_CONFIG"; then
3863 echo "$as_me:3863: result: $ac_pt_PKG_CONFIG" >&5
3864 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3866 echo "$as_me:3866: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3870 PKG_CONFIG=$ac_pt_PKG_CONFIG
3872 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3881 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3882 if test "$PKG_CONFIG" != none ; then
3884 if test "x$prefix" != xNONE; then
3885 cf_path_syntax="$prefix"
3887 cf_path_syntax="$ac_default_prefix"
3890 case ".$PKG_CONFIG" in
3895 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3897 (.\${*prefix}*|.\${*dir}*)
3898 eval PKG_CONFIG="$PKG_CONFIG"
3899 case ".$PKG_CONFIG" in
3901 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3906 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3909 { { echo "$as_me:3909: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3910 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3911 { (exit 1); exit 1; }; }
3915 elif test "x$cf_pkg_config" != xno ; then
3916 { echo "$as_me:3916: WARNING: pkg-config is not installed" >&5
3917 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3922 echo "$as_me:3922: checking for pkg-config library directory" >&5
3923 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3926 echo "$as_me:3926: checking for $PKG_CONFIG library directory" >&5
3927 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3931 PKG_CONFIG_LIBDIR=no
3933 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3934 if test "${with_pkg_config_libdir+set}" = set; then
3935 withval="$with_pkg_config_libdir"
3936 PKG_CONFIG_LIBDIR=$withval
3938 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3941 case x$PKG_CONFIG_LIBDIR in
3945 # Look for the library directory using the same prefix as the executable
3946 if test "x$PKG_CONFIG" = xnone
3950 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3953 # If you don't like using the default architecture, you have to specify the
3954 # intended library directory and corresponding compiler/linker options.
3956 # This case allows for Debian's 2014-flavor of multiarch, along with the
3957 # most common variations before that point. Some other variants spell the
3958 # directory differently, e.g., "pkg-config", and put it in unusual places.
3959 # pkg-config has always been poorly standardized, which is ironic...
3960 case x`(arch) 2>/dev/null` in
3963 $cf_path/lib/*64-linux-gnu \
3971 $cf_path/lib/*-linux-gnu \
3979 test -n "$verbose" && echo " list..." 1>&6
3981 echo "${as_me:-configure}:3981: testing list... ..." 1>&5
3983 for cf_config in $cf_search_path
3985 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3987 echo "${as_me:-configure}:3987: testing checking $cf_config/pkgconfig ..." 1>&5
3989 if test -d $cf_config/pkgconfig
3991 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3992 echo "$as_me:3992: checking done" >&5
3993 echo $ECHO_N "checking done... $ECHO_C" >&6
4002 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
4003 echo "$as_me:4003: result: $PKG_CONFIG_LIBDIR" >&5
4004 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4007 if test "x$PKG_CONFIG" != xnone
4009 echo "$as_me:4009: checking if we should install .pc files for $PKG_CONFIG" >&5
4010 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4012 echo "$as_me:4012: checking if we should install .pc files" >&5
4013 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4016 # Check whether --enable-pc-files or --disable-pc-files was given.
4017 if test "${enable_pc_files+set}" = set; then
4018 enableval="$enable_pc_files"
4019 enable_pc_files=$enableval
4023 echo "$as_me:4023: result: $enable_pc_files" >&5
4024 echo "${ECHO_T}$enable_pc_files" >&6
4026 if test "x$enable_pc_files" != xno
4029 case "x$PKG_CONFIG_LIBDIR" in
4031 { echo "$as_me:4031: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4032 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4036 if test "x$prefix" != xNONE; then
4037 cf_path_syntax="$prefix"
4039 cf_path_syntax="$ac_default_prefix"
4042 case ".$PKG_CONFIG_LIBDIR" in
4047 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4049 (.\${*prefix}*|.\${*dir}*)
4050 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4051 case ".$PKG_CONFIG_LIBDIR" in
4053 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4058 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4061 { { echo "$as_me:4061: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4062 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4063 { (exit 1); exit 1; }; }
4073 if test -z "$MAKE_PC_FILES"
4075 echo "$as_me:4075: checking for suffix to add to pc-files" >&5
4076 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4078 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4079 if test "${with_pc_suffix+set}" = set; then
4080 withval="$with_pc_suffix"
4085 (*) PC_MODULE_SUFFIX="$withval"
4089 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4090 echo "$as_me:4090: result: $PC_MODULE_SUFFIX" >&5
4091 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4092 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4096 echo "$as_me:4096: checking if we should assume mixed-case filenames" >&5
4097 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4099 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4100 if test "${enable_mixed_case+set}" = set; then
4101 enableval="$enable_mixed_case"
4102 enable_mixedcase=$enableval
4104 enable_mixedcase=auto
4106 echo "$as_me:4106: result: $enable_mixedcase" >&5
4107 echo "${ECHO_T}$enable_mixedcase" >&6
4108 if test "$enable_mixedcase" = "auto" ; then
4110 echo "$as_me:4110: checking if filesystem supports mixed-case filenames" >&5
4111 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4112 if test "${cf_cv_mixedcase+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test "$cross_compiling" = yes ; then
4117 case $target_alias in
4118 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4126 rm -f conftest CONFTEST
4128 if test -f CONFTEST ; then
4133 rm -f conftest CONFTEST
4137 echo "$as_me:4137: result: $cf_cv_mixedcase" >&5
4138 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4139 test "$cf_cv_mixedcase" = yes &&
4140 cat >>confdefs.h <<\EOF
4141 #define MIXEDCASE_FILENAMES 1
4145 cf_cv_mixedcase=$enable_mixedcase
4146 if test "x$enable_mixedcase" = "xyes" ; then
4148 cat >>confdefs.h <<\EOF
4149 #define MIXEDCASE_FILENAMES 1
4155 # do this after mixed-case option (tags/TAGS is not as important as tic).
4156 echo "$as_me:4156: checking whether ${MAKE-make} sets \${MAKE}" >&5
4157 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4158 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4159 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 cat >conftest.make <<\EOF
4164 @echo 'ac_maketemp="${MAKE}"'
4166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4167 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4168 if test -n "$ac_maketemp"; then
4169 eval ac_cv_prog_make_${ac_make}_set=yes
4171 eval ac_cv_prog_make_${ac_make}_set=no
4175 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4176 echo "$as_me:4176: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6
4180 echo "$as_me:4180: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4182 SET_MAKE="MAKE=${MAKE-make}"
4185 for ac_prog in exctags ctags
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 echo "$as_me:4189: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191 if test "${ac_cv_prog_CTAGS+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 if test -n "$CTAGS"; then
4195 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4197 ac_save_IFS=$IFS; IFS=$ac_path_separator
4199 for ac_dir in $ac_dummy; do
4201 test -z "$ac_dir" && ac_dir=.
4202 $as_executable_p "$ac_dir/$ac_word" || continue
4203 ac_cv_prog_CTAGS="$ac_prog"
4204 echo "$as_me:4204: found $ac_dir/$ac_word" >&5
4210 CTAGS=$ac_cv_prog_CTAGS
4211 if test -n "$CTAGS"; then
4212 echo "$as_me:4212: result: $CTAGS" >&5
4213 echo "${ECHO_T}$CTAGS" >&6
4215 echo "$as_me:4215: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 test -n "$CTAGS" && break
4222 for ac_prog in exetags etags
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 echo "$as_me:4226: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_ETAGS+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$ETAGS"; then
4232 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4234 ac_save_IFS=$IFS; IFS=$ac_path_separator
4236 for ac_dir in $ac_dummy; do
4238 test -z "$ac_dir" && ac_dir=.
4239 $as_executable_p "$ac_dir/$ac_word" || continue
4240 ac_cv_prog_ETAGS="$ac_prog"
4241 echo "$as_me:4241: found $ac_dir/$ac_word" >&5
4247 ETAGS=$ac_cv_prog_ETAGS
4248 if test -n "$ETAGS"; then
4249 echo "$as_me:4249: result: $ETAGS" >&5
4250 echo "${ECHO_T}$ETAGS" >&6
4252 echo "$as_me:4252: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4256 test -n "$ETAGS" && break
4259 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4260 set dummy ${CTAGS:-ctags}; ac_word=$2
4261 echo "$as_me:4261: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test -n "$MAKE_LOWER_TAGS"; then
4267 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4269 ac_save_IFS=$IFS; IFS=$ac_path_separator
4271 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 $as_executable_p "$ac_dir/$ac_word" || continue
4275 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4276 echo "$as_me:4276: found $ac_dir/$ac_word" >&5
4280 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4283 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4284 if test -n "$MAKE_LOWER_TAGS"; then
4285 echo "$as_me:4285: result: $MAKE_LOWER_TAGS" >&5
4286 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4288 echo "$as_me:4288: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4292 if test "$cf_cv_mixedcase" = yes ; then
4293 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4294 set dummy ${ETAGS:-etags}; ac_word=$2
4295 echo "$as_me:4295: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$MAKE_UPPER_TAGS"; then
4301 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4303 ac_save_IFS=$IFS; IFS=$ac_path_separator
4305 for ac_dir in $ac_dummy; do
4307 test -z "$ac_dir" && ac_dir=.
4308 $as_executable_p "$ac_dir/$ac_word" || continue
4309 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4310 echo "$as_me:4310: found $ac_dir/$ac_word" >&5
4314 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4317 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4318 if test -n "$MAKE_UPPER_TAGS"; then
4319 echo "$as_me:4319: result: $MAKE_UPPER_TAGS" >&5
4320 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4322 echo "$as_me:4322: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4330 if test "$MAKE_UPPER_TAGS" = yes ; then
4336 if test "$MAKE_LOWER_TAGS" = yes ; then
4342 echo "$as_me:4342: checking for makeflags variable" >&5
4343 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4344 if test "${cf_cv_makeflags+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4351 cat >cf_makeflags.tmp <<CF_EOF
4354 @ echo '.$cf_option'
4356 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4357 case "$cf_result" in
4359 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4360 case "$cf_result" in
4361 (.*CC=*) cf_cv_makeflags=
4363 (*) cf_cv_makeflags=$cf_option
4372 echo "${as_me:-configure}:4372: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4377 rm -f cf_makeflags.tmp
4380 echo "$as_me:4380: result: $cf_cv_makeflags" >&5
4381 echo "${ECHO_T}$cf_cv_makeflags" >&6
4383 if test -n "$ac_tool_prefix"; then
4384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4386 echo "$as_me:4386: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388 if test "${ac_cv_prog_RANLIB+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$RANLIB"; then
4392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4394 ac_save_IFS=$IFS; IFS=$ac_path_separator
4396 for ac_dir in $ac_dummy; do
4398 test -z "$ac_dir" && ac_dir=.
4399 $as_executable_p "$ac_dir/$ac_word" || continue
4400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4401 echo "$as_me:4401: found $ac_dir/$ac_word" >&5
4407 RANLIB=$ac_cv_prog_RANLIB
4408 if test -n "$RANLIB"; then
4409 echo "$as_me:4409: result: $RANLIB" >&5
4410 echo "${ECHO_T}$RANLIB" >&6
4412 echo "$as_me:4412: result: no" >&5
4413 echo "${ECHO_T}no" >&6
4417 if test -z "$ac_cv_prog_RANLIB"; then
4418 ac_ct_RANLIB=$RANLIB
4419 # Extract the first word of "ranlib", so it can be a program name with args.
4420 set dummy ranlib; ac_word=$2
4421 echo "$as_me:4421: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 if test -n "$ac_ct_RANLIB"; then
4427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4429 ac_save_IFS=$IFS; IFS=$ac_path_separator
4431 for ac_dir in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir=.
4434 $as_executable_p "$ac_dir/$ac_word" || continue
4435 ac_cv_prog_ac_ct_RANLIB="ranlib"
4436 echo "$as_me:4436: found $ac_dir/$ac_word" >&5
4440 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 echo "$as_me:4445: result: $ac_ct_RANLIB" >&5
4446 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4448 echo "$as_me:4448: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4452 RANLIB=$ac_ct_RANLIB
4454 RANLIB="$ac_cv_prog_RANLIB"
4457 if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4459 set dummy ${ac_tool_prefix}ld; ac_word=$2
4460 echo "$as_me:4460: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_prog_LD+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$LD"; then
4466 ac_cv_prog_LD="$LD" # Let the user override the test.
4468 ac_save_IFS=$IFS; IFS=$ac_path_separator
4470 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 $as_executable_p "$ac_dir/$ac_word" || continue
4474 ac_cv_prog_LD="${ac_tool_prefix}ld"
4475 echo "$as_me:4475: found $ac_dir/$ac_word" >&5
4482 if test -n "$LD"; then
4483 echo "$as_me:4483: result: $LD" >&5
4484 echo "${ECHO_T}$LD" >&6
4486 echo "$as_me:4486: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4491 if test -z "$ac_cv_prog_LD"; then
4493 # Extract the first word of "ld", so it can be a program name with args.
4494 set dummy ld; ac_word=$2
4495 echo "$as_me:4495: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$ac_ct_LD"; then
4501 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4503 ac_save_IFS=$IFS; IFS=$ac_path_separator
4505 for ac_dir in $ac_dummy; do
4507 test -z "$ac_dir" && ac_dir=.
4508 $as_executable_p "$ac_dir/$ac_word" || continue
4509 ac_cv_prog_ac_ct_LD="ld"
4510 echo "$as_me:4510: found $ac_dir/$ac_word" >&5
4514 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4517 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4518 if test -n "$ac_ct_LD"; then
4519 echo "$as_me:4519: result: $ac_ct_LD" >&5
4520 echo "${ECHO_T}$ac_ct_LD" >&6
4522 echo "$as_me:4522: result: no" >&5
4523 echo "${ECHO_T}no" >&6
4531 if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4533 set dummy ${ac_tool_prefix}ar; ac_word=$2
4534 echo "$as_me:4534: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536 if test "${ac_cv_prog_AR+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 if test -n "$AR"; then
4540 ac_cv_prog_AR="$AR" # Let the user override the test.
4542 ac_save_IFS=$IFS; IFS=$ac_path_separator
4544 for ac_dir in $ac_dummy; do
4546 test -z "$ac_dir" && ac_dir=.
4547 $as_executable_p "$ac_dir/$ac_word" || continue
4548 ac_cv_prog_AR="${ac_tool_prefix}ar"
4549 echo "$as_me:4549: found $ac_dir/$ac_word" >&5
4556 if test -n "$AR"; then
4557 echo "$as_me:4557: result: $AR" >&5
4558 echo "${ECHO_T}$AR" >&6
4560 echo "$as_me:4560: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4565 if test -z "$ac_cv_prog_AR"; then
4567 # Extract the first word of "ar", so it can be a program name with args.
4568 set dummy ar; ac_word=$2
4569 echo "$as_me:4569: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 if test -n "$ac_ct_AR"; then
4575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4577 ac_save_IFS=$IFS; IFS=$ac_path_separator
4579 for ac_dir in $ac_dummy; do
4581 test -z "$ac_dir" && ac_dir=.
4582 $as_executable_p "$ac_dir/$ac_word" || continue
4583 ac_cv_prog_ac_ct_AR="ar"
4584 echo "$as_me:4584: found $ac_dir/$ac_word" >&5
4588 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4592 if test -n "$ac_ct_AR"; then
4593 echo "$as_me:4593: result: $ac_ct_AR" >&5
4594 echo "${ECHO_T}$ac_ct_AR" >&6
4596 echo "$as_me:4596: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4605 if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4607 set dummy ${ac_tool_prefix}nm; ac_word=$2
4608 echo "$as_me:4608: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610 if test "${ac_cv_prog_NM+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if test -n "$NM"; then
4614 ac_cv_prog_NM="$NM" # Let the user override the test.
4616 ac_save_IFS=$IFS; IFS=$ac_path_separator
4618 for ac_dir in $ac_dummy; do
4620 test -z "$ac_dir" && ac_dir=.
4621 $as_executable_p "$ac_dir/$ac_word" || continue
4622 ac_cv_prog_NM="${ac_tool_prefix}nm"
4623 echo "$as_me:4623: found $ac_dir/$ac_word" >&5
4630 if test -n "$NM"; then
4631 echo "$as_me:4631: result: $NM" >&5
4632 echo "${ECHO_T}$NM" >&6
4634 echo "$as_me:4634: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4639 if test -z "$ac_cv_prog_NM"; then
4641 # Extract the first word of "nm", so it can be a program name with args.
4642 set dummy nm; ac_word=$2
4643 echo "$as_me:4643: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 if test -n "$ac_ct_NM"; then
4649 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4651 ac_save_IFS=$IFS; IFS=$ac_path_separator
4653 for ac_dir in $ac_dummy; do
4655 test -z "$ac_dir" && ac_dir=.
4656 $as_executable_p "$ac_dir/$ac_word" || continue
4657 ac_cv_prog_ac_ct_NM="nm"
4658 echo "$as_me:4658: found $ac_dir/$ac_word" >&5
4662 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4665 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4666 if test -n "$ac_ct_NM"; then
4667 echo "$as_me:4667: result: $ac_ct_NM" >&5
4668 echo "${ECHO_T}$ac_ct_NM" >&6
4670 echo "$as_me:4670: result: no" >&5
4671 echo "${ECHO_T}no" >&6
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}ar; ac_word=$2
4682 echo "$as_me:4682: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684 if test "${ac_cv_prog_AR+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$AR"; then
4688 ac_cv_prog_AR="$AR" # Let the user override the test.
4690 ac_save_IFS=$IFS; IFS=$ac_path_separator
4692 for ac_dir in $ac_dummy; do
4694 test -z "$ac_dir" && ac_dir=.
4695 $as_executable_p "$ac_dir/$ac_word" || continue
4696 ac_cv_prog_AR="${ac_tool_prefix}ar"
4697 echo "$as_me:4697: found $ac_dir/$ac_word" >&5
4704 if test -n "$AR"; then
4705 echo "$as_me:4705: result: $AR" >&5
4706 echo "${ECHO_T}$AR" >&6
4708 echo "$as_me:4708: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4713 if test -z "$ac_cv_prog_AR"; then
4715 # Extract the first word of "ar", so it can be a program name with args.
4716 set dummy ar; ac_word=$2
4717 echo "$as_me:4717: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 if test -n "$ac_ct_AR"; then
4723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4725 ac_save_IFS=$IFS; IFS=$ac_path_separator
4727 for ac_dir in $ac_dummy; do
4729 test -z "$ac_dir" && ac_dir=.
4730 $as_executable_p "$ac_dir/$ac_word" || continue
4731 ac_cv_prog_ac_ct_AR="ar"
4732 echo "$as_me:4732: found $ac_dir/$ac_word" >&5
4736 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4739 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4740 if test -n "$ac_ct_AR"; then
4741 echo "$as_me:4741: result: $ac_ct_AR" >&5
4742 echo "${ECHO_T}$ac_ct_AR" >&6
4744 echo "$as_me:4744: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4753 echo "$as_me:4753: checking for options to update archives" >&5
4754 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4755 if test "${cf_cv_ar_flags+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 case $cf_cv_system_name in
4762 cat >mk_static_lib.sh <<-EOF
4767 exec \$MSVC_BIN -out:"\$out" \$@
4769 chmod +x mk_static_lib.sh
4770 AR=`pwd`/mk_static_lib.sh
4773 cf_cv_ar_flags=unknown
4774 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4777 # check if $ARFLAGS already contains this choice
4778 if test "x$ARFLAGS" != "x" ; then
4779 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4780 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4786 rm -f conftest.$ac_cv_objext
4789 cat >conftest.$ac_ext <<EOF
4790 #line 4790 "configure"
4791 int testdata[3] = { 123, 456, 789 };
4793 if { (eval echo "$as_me:4793: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>&5
4796 echo "$as_me:4796: \$? = $ac_status" >&5
4797 (exit $ac_status); } ; then
4798 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4799 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4800 if test -f conftest.a ; then
4801 cf_cv_ar_flags=$cf_ar_flags
4805 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4807 echo "${as_me:-configure}:4807: testing cannot compile test-program ..." 1>&5
4812 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4817 echo "$as_me:4817: result: $cf_cv_ar_flags" >&5
4818 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4820 if test -n "$ARFLAGS" ; then
4821 if test -n "$cf_cv_ar_flags" ; then
4822 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4825 ARFLAGS=$cf_cv_ar_flags
4828 echo "$as_me:4828: checking if you have specified an install-prefix" >&5
4829 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4831 # Check whether --with-install-prefix or --without-install-prefix was given.
4832 if test "${with_install_prefix+set}" = set; then
4833 withval="$with_install_prefix"
4837 (*) DESTDIR="$withval"
4841 echo "$as_me:4841: result: $DESTDIR" >&5
4842 echo "${ECHO_T}$DESTDIR" >&6
4844 ###############################################################################
4846 # If we're cross-compiling, allow the user to override the tools and their
4847 # options. The configure script is oriented toward identifying the host
4848 # compiler, etc., but we need a build compiler to generate parts of the source.
4850 if test "$cross_compiling" = yes ; then
4852 # defaults that we might want to override
4853 : ${BUILD_CFLAGS:=''}
4854 : ${BUILD_CPPFLAGS:=''}
4855 : ${BUILD_LDFLAGS:=''}
4857 : ${BUILD_EXEEXT:='$x'}
4858 : ${BUILD_OBJEXT:='o'}
4860 # Check whether --with-build-cc or --without-build-cc was given.
4861 if test "${with_build_cc+set}" = set; then
4862 withval="$with_build_cc"
4865 for ac_prog in gcc clang c99 c89 cc cl
4867 # Extract the first word of "$ac_prog", so it can be a program name with args.
4868 set dummy $ac_prog; ac_word=$2
4869 echo "$as_me:4869: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 if test -n "$BUILD_CC"; then
4875 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4877 ac_save_IFS=$IFS; IFS=$ac_path_separator
4879 for ac_dir in $ac_dummy; do
4881 test -z "$ac_dir" && ac_dir=.
4882 $as_executable_p "$ac_dir/$ac_word" || continue
4883 ac_cv_prog_BUILD_CC="$ac_prog"
4884 echo "$as_me:4884: found $ac_dir/$ac_word" >&5
4890 BUILD_CC=$ac_cv_prog_BUILD_CC
4891 if test -n "$BUILD_CC"; then
4892 echo "$as_me:4892: result: $BUILD_CC" >&5
4893 echo "${ECHO_T}$BUILD_CC" >&6
4895 echo "$as_me:4895: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4899 test -n "$BUILD_CC" && break
4901 test -n "$BUILD_CC" || BUILD_CC="none"
4904 echo "$as_me:4904: checking for native build C compiler" >&5
4905 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4906 echo "$as_me:4906: result: $BUILD_CC" >&5
4907 echo "${ECHO_T}$BUILD_CC" >&6
4909 echo "$as_me:4909: checking for native build C preprocessor" >&5
4910 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4912 # Check whether --with-build-cpp or --without-build-cpp was given.
4913 if test "${with_build_cpp+set}" = set; then
4914 withval="$with_build_cpp"
4915 BUILD_CPP="$withval"
4917 BUILD_CPP='${BUILD_CC} -E'
4919 echo "$as_me:4919: result: $BUILD_CPP" >&5
4920 echo "${ECHO_T}$BUILD_CPP" >&6
4922 echo "$as_me:4922: checking for native build C flags" >&5
4923 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4925 # Check whether --with-build-cflags or --without-build-cflags was given.
4926 if test "${with_build_cflags+set}" = set; then
4927 withval="$with_build_cflags"
4928 BUILD_CFLAGS="$withval"
4930 echo "$as_me:4930: result: $BUILD_CFLAGS" >&5
4931 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4933 echo "$as_me:4933: checking for native build C preprocessor-flags" >&5
4934 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4936 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4937 if test "${with_build_cppflags+set}" = set; then
4938 withval="$with_build_cppflags"
4939 BUILD_CPPFLAGS="$withval"
4941 echo "$as_me:4941: result: $BUILD_CPPFLAGS" >&5
4942 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4944 echo "$as_me:4944: checking for native build linker-flags" >&5
4945 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4947 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4948 if test "${with_build_ldflags+set}" = set; then
4949 withval="$with_build_ldflags"
4950 BUILD_LDFLAGS="$withval"
4952 echo "$as_me:4952: result: $BUILD_LDFLAGS" >&5
4953 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4955 echo "$as_me:4955: checking for native build linker-libraries" >&5
4956 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4958 # Check whether --with-build-libs or --without-build-libs was given.
4959 if test "${with_build_libs+set}" = set; then
4960 withval="$with_build_libs"
4961 BUILD_LIBS="$withval"
4963 echo "$as_me:4963: result: $BUILD_LIBS" >&5
4964 echo "${ECHO_T}$BUILD_LIBS" >&6
4966 # this assumes we're on Unix.
4970 : ${BUILD_CC:='${CC}'}
4972 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4973 { { echo "$as_me:4973: error: Cross-build requires two compilers.
4974 Use --with-build-cc to specify the native compiler." >&5
4975 echo "$as_me: error: Cross-build requires two compilers.
4976 Use --with-build-cc to specify the native compiler." >&2;}
4977 { (exit 1); exit 1; }; }
4981 : ${BUILD_CC:='${CC}'}
4982 : ${BUILD_CPP:='${CPP}'}
4983 : ${BUILD_CFLAGS:='${CFLAGS}'}
4984 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4985 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4986 : ${BUILD_LIBS:='${LIBS}'}
4987 : ${BUILD_EXEEXT:='$x'}
4988 : ${BUILD_OBJEXT:='o'}
4991 ###############################################################################
4993 ### Options to allow the user to specify the set of libraries which are used.
4994 ### Use "--without-normal --with-shared" to allow the default model to be
4995 ### shared, for example.
4998 echo "$as_me:4998: checking if libtool -version-number should be used" >&5
4999 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5001 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5002 if test "${enable_libtool_version+set}" = set; then
5003 enableval="$enable_libtool_version"
5004 test "$enableval" != no && enableval=yes
5005 if test "$enableval" != "yes" ; then
5006 cf_libtool_version=no
5008 cf_libtool_version=yes
5012 cf_libtool_version=yes
5015 echo "$as_me:5015: result: $cf_libtool_version" >&5
5016 echo "${ECHO_T}$cf_libtool_version" >&6
5018 if test "$cf_libtool_version" = yes ; then
5019 LIBTOOL_VERSION="-version-number"
5021 LIBTOOL_VERSION="-version-info"
5024 { echo "$as_me:5024: WARNING: VERSION was not set" >&5
5025 echo "$as_me: WARNING: VERSION was not set" >&2;}
5028 ABI_VERSION="$VERSION"
5029 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5031 echo "${as_me:-configure}:5031: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5035 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5036 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5038 echo "${as_me:-configure}:5038: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5042 { echo "$as_me:5042: WARNING: unexpected VERSION value: $VERSION" >&5
5043 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5050 # common library maintenance symbols that are convenient for libtool scripts:
5051 LIB_CREATE='${AR} -cr'
5052 LIB_OBJECT='${OBJECTS}'
5056 # symbols used to prop libtool up to enable it to determine what it should be
5064 echo "$as_me:5064: checking if you want to build libraries with libtool" >&5
5065 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5067 # Check whether --with-libtool or --without-libtool was given.
5068 if test "${with_libtool+set}" = set; then
5069 withval="$with_libtool"
5070 with_libtool=$withval
5074 echo "$as_me:5074: result: $with_libtool" >&5
5075 echo "${ECHO_T}$with_libtool" >&6
5076 if test "$with_libtool" != "no"; then
5078 if test "$with_libtool" != "yes" ; then
5080 if test "x$prefix" != xNONE; then
5081 cf_path_syntax="$prefix"
5083 cf_path_syntax="$ac_default_prefix"
5086 case ".$with_libtool" in
5091 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5093 (.\${*prefix}*|.\${*dir}*)
5094 eval with_libtool="$with_libtool"
5095 case ".$with_libtool" in
5097 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5102 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5105 { { echo "$as_me:5105: error: expected a pathname, not \"$with_libtool\"" >&5
5106 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5107 { (exit 1); exit 1; }; }
5111 LIBTOOL=$with_libtool
5113 if test -n "$ac_tool_prefix"; then
5114 for ac_prog in libtool glibtool
5116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5118 echo "$as_me:5118: checking for $ac_word" >&5
5119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 if test -n "$LIBTOOL"; then
5124 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5126 ac_save_IFS=$IFS; IFS=$ac_path_separator
5128 for ac_dir in $ac_dummy; do
5130 test -z "$ac_dir" && ac_dir=.
5131 $as_executable_p "$ac_dir/$ac_word" || continue
5132 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5133 echo "$as_me:5133: found $ac_dir/$ac_word" >&5
5139 LIBTOOL=$ac_cv_prog_LIBTOOL
5140 if test -n "$LIBTOOL"; then
5141 echo "$as_me:5141: result: $LIBTOOL" >&5
5142 echo "${ECHO_T}$LIBTOOL" >&6
5144 echo "$as_me:5144: result: no" >&5
5145 echo "${ECHO_T}no" >&6
5148 test -n "$LIBTOOL" && break
5151 if test -z "$LIBTOOL"; then
5152 ac_ct_LIBTOOL=$LIBTOOL
5153 for ac_prog in libtool glibtool
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 echo "$as_me:5157: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 if test -n "$ac_ct_LIBTOOL"; then
5163 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5165 ac_save_IFS=$IFS; IFS=$ac_path_separator
5167 for ac_dir in $ac_dummy; do
5169 test -z "$ac_dir" && ac_dir=.
5170 $as_executable_p "$ac_dir/$ac_word" || continue
5171 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5172 echo "$as_me:5172: found $ac_dir/$ac_word" >&5
5178 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5179 if test -n "$ac_ct_LIBTOOL"; then
5180 echo "$as_me:5180: result: $ac_ct_LIBTOOL" >&5
5181 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5183 echo "$as_me:5183: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5187 test -n "$ac_ct_LIBTOOL" && break
5189 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5191 LIBTOOL=$ac_ct_LIBTOOL
5194 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5196 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.].*//'`
5198 cf_cv_libtool_version=
5200 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5202 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5205 unset ac_cv_prog_ac_ct_LIBTOOL
5209 if test -n "$ac_tool_prefix"; then
5210 for ac_prog in glibtool
5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5214 echo "$as_me:5214: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 if test -n "$LIBTOOL"; then
5220 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5222 ac_save_IFS=$IFS; IFS=$ac_path_separator
5224 for ac_dir in $ac_dummy; do
5226 test -z "$ac_dir" && ac_dir=.
5227 $as_executable_p "$ac_dir/$ac_word" || continue
5228 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5229 echo "$as_me:5229: found $ac_dir/$ac_word" >&5
5235 LIBTOOL=$ac_cv_prog_LIBTOOL
5236 if test -n "$LIBTOOL"; then
5237 echo "$as_me:5237: result: $LIBTOOL" >&5
5238 echo "${ECHO_T}$LIBTOOL" >&6
5240 echo "$as_me:5240: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5244 test -n "$LIBTOOL" && break
5247 if test -z "$LIBTOOL"; then
5248 ac_ct_LIBTOOL=$LIBTOOL
5249 for ac_prog in glibtool
5251 # Extract the first word of "$ac_prog", so it can be a program name with args.
5252 set dummy $ac_prog; ac_word=$2
5253 echo "$as_me:5253: checking for $ac_word" >&5
5254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5255 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 if test -n "$ac_ct_LIBTOOL"; then
5259 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5261 ac_save_IFS=$IFS; IFS=$ac_path_separator
5263 for ac_dir in $ac_dummy; do
5265 test -z "$ac_dir" && ac_dir=.
5266 $as_executable_p "$ac_dir/$ac_word" || continue
5267 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5268 echo "$as_me:5268: found $ac_dir/$ac_word" >&5
5274 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5275 if test -n "$ac_ct_LIBTOOL"; then
5276 echo "$as_me:5276: result: $ac_ct_LIBTOOL" >&5
5277 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5279 echo "$as_me:5279: result: no" >&5
5280 echo "${ECHO_T}no" >&6
5283 test -n "$ac_ct_LIBTOOL" && break
5285 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5287 LIBTOOL=$ac_ct_LIBTOOL
5290 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5292 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.].*//'`
5294 cf_cv_libtool_version=
5296 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5300 if test -z "$LIBTOOL" ; then
5301 { { echo "$as_me:5301: error: Cannot find libtool" >&5
5302 echo "$as_me: error: Cannot find libtool" >&2;}
5303 { (exit 1); exit 1; }; }
5305 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5306 LIB_OBJECT='${OBJECTS:.o=.lo}'
5308 LIB_CLEAN='${LIBTOOL} --mode=clean'
5309 LIB_COMPILE='${LIBTOOL} --mode=compile'
5310 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5311 LIB_INSTALL='${LIBTOOL} --mode=install'
5312 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5315 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5317 echo "$as_me:5317: checking version of $LIBTOOL" >&5
5318 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5320 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5322 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.].*//'`
5324 cf_cv_libtool_version=
5326 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5328 echo "$as_me:5328: result: $cf_cv_libtool_version" >&5
5329 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5330 if test -z "$cf_cv_libtool_version" ; then
5331 { { echo "$as_me:5331: error: This is not GNU libtool" >&5
5332 echo "$as_me: error: This is not GNU libtool" >&2;}
5333 { (exit 1); exit 1; }; }
5336 { { echo "$as_me:5336: error: GNU libtool has not been found" >&5
5337 echo "$as_me: error: GNU libtool has not been found" >&2;}
5338 { (exit 1); exit 1; }; }
5341 # special hack to add -no-undefined (which libtool should do for itself)
5343 case "$cf_cv_system_name" in
5344 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5345 LT_UNDEF=-no-undefined
5349 # special hack to add --tag option for C++ compiler
5350 case $cf_cv_libtool_version in
5351 (1.[5-9]*|[2-9].[0-9.a-z]*)
5352 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5353 LIBTOOL="$LIBTOOL --tag=CC"
5356 LIBTOOL_CXX="$LIBTOOL"
5364 test -z "$LIBTOOL" && ECHO_LT=
5366 if test "$with_libtool" != "no" ; then
5368 cf_list_models="$cf_list_models libtool"
5372 echo "$as_me:5372: checking if you want to build shared libraries" >&5
5373 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5375 # Check whether --with-shared or --without-shared was given.
5376 if test "${with_shared+set}" = set; then
5377 withval="$with_shared"
5378 with_shared=$withval
5382 echo "$as_me:5382: result: $with_shared" >&5
5383 echo "${ECHO_T}$with_shared" >&6
5384 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5386 echo "$as_me:5386: checking if you want to build static libraries" >&5
5387 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5389 # Check whether --with-normal or --without-normal was given.
5390 if test "${with_normal+set}" = set; then
5391 withval="$with_normal"
5392 with_normal=$withval
5396 echo "$as_me:5396: result: $with_normal" >&5
5397 echo "${ECHO_T}$with_normal" >&6
5398 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5400 echo "$as_me:5400: checking if you want to build debug libraries" >&5
5401 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5403 # Check whether --with-debug or --without-debug was given.
5404 if test "${with_debug+set}" = set; then
5405 withval="$with_debug"
5410 echo "$as_me:5410: result: $with_debug" >&5
5411 echo "${ECHO_T}$with_debug" >&6
5412 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5414 echo "$as_me:5414: checking if you want to build profiling libraries" >&5
5415 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5417 # Check whether --with-profile or --without-profile was given.
5418 if test "${with_profile+set}" = set; then
5419 withval="$with_profile"
5420 with_profile=$withval
5424 echo "$as_me:5424: result: $with_profile" >&5
5425 echo "${ECHO_T}$with_profile" >&6
5426 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5430 if test "X$cf_with_cxx_binding" != Xno; then
5431 if test "x$with_shared" = "xyes"; then
5432 echo "$as_me:5432: checking if you want to build C++ shared libraries" >&5
5433 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5435 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5436 if test "${with_cxx_shared+set}" = set; then
5437 withval="$with_cxx_shared"
5438 with_shared_cxx=$withval
5442 echo "$as_me:5442: result: $with_shared_cxx" >&5
5443 echo "${ECHO_T}$with_shared_cxx" >&6
5447 ###############################################################################
5449 echo "$as_me:5449: checking for specified models" >&5
5450 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5451 test -z "$cf_list_models" && cf_list_models=normal
5452 test "$with_libtool" != "no" && cf_list_models=libtool
5453 echo "$as_me:5453: result: $cf_list_models" >&5
5454 echo "${ECHO_T}$cf_list_models" >&6
5456 ### Use the first model as the default, and save its suffix for use in building
5457 ### up test-applications.
5458 echo "$as_me:5458: checking for default model" >&5
5459 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5460 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5461 echo "$as_me:5461: result: $DFT_LWR_MODEL" >&5
5462 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5464 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5475 echo "$as_me:5475: checking if you want to have a library-prefix" >&5
5476 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5478 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5479 if test "${with_lib_prefix+set}" = set; then
5480 withval="$with_lib_prefix"
5481 with_lib_prefix=$withval
5483 with_lib_prefix=auto
5485 echo "$as_me:5485: result: $with_lib_prefix" >&5
5486 echo "${ECHO_T}$with_lib_prefix" >&6
5488 if test $with_lib_prefix = auto
5491 case $cf_cv_system_name in
5493 if test "$DFT_LWR_MODEL" = libtool; then
5502 (*) LIB_PREFIX='lib'
5505 cf_prefix=$LIB_PREFIX
5507 elif test $with_lib_prefix = no
5511 LIB_PREFIX=$with_lib_prefix
5516 echo "$as_me:5516: checking for PATH separator" >&5
5517 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5518 case $cf_cv_system_name in
5519 (os2*) PATH_SEPARATOR=';' ;;
5520 (*) ${PATH_SEPARATOR:=':'} ;;
5523 echo "$as_me:5523: result: $PATH_SEPARATOR" >&5
5524 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5526 ###############################################################################
5528 echo "$as_me:5528: checking if you want to build a separate terminfo library" >&5
5529 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5531 # Check whether --with-termlib or --without-termlib was given.
5532 if test "${with_termlib+set}" = set; then
5533 withval="$with_termlib"
5534 with_termlib=$withval
5538 echo "$as_me:5538: result: $with_termlib" >&5
5539 echo "${ECHO_T}$with_termlib" >&6
5541 echo "$as_me:5541: checking if you want to build a separate tic library" >&5
5542 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5544 # Check whether --with-ticlib or --without-ticlib was given.
5545 if test "${with_ticlib+set}" = set; then
5546 withval="$with_ticlib"
5547 with_ticlib=$withval
5551 echo "$as_me:5551: result: $with_ticlib" >&5
5552 echo "${ECHO_T}$with_ticlib" >&6
5554 if test X"$CC_G_OPT" = X"" ; then
5556 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5559 if test X"$CXX_G_OPT" = X"" ; then
5561 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5564 echo "$as_me:5564: checking for default loader flags" >&5
5565 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5566 case $DFT_LWR_MODEL in
5567 (libtool) LD_MODEL='' ;;
5568 (normal) LD_MODEL='' ;;
5569 (debug) LD_MODEL=$CC_G_OPT ;;
5570 (profile) LD_MODEL='-pg';;
5571 (shared) LD_MODEL='' ;;
5573 echo "$as_me:5573: result: $LD_MODEL" >&5
5574 echo "${ECHO_T}$LD_MODEL" >&6
5576 case $DFT_LWR_MODEL in
5579 echo "$as_me:5579: checking if rpath option should be used" >&5
5580 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5582 # Check whether --enable-rpath or --disable-rpath was given.
5583 if test "${enable_rpath+set}" = set; then
5584 enableval="$enable_rpath"
5585 cf_cv_enable_rpath=$enableval
5587 cf_cv_enable_rpath=no
5589 echo "$as_me:5589: result: $cf_cv_enable_rpath" >&5
5590 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5592 echo "$as_me:5592: checking if shared libraries should be relinked during install" >&5
5593 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5595 # Check whether --enable-relink or --disable-relink was given.
5596 if test "${enable_relink+set}" = set; then
5597 enableval="$enable_relink"
5598 cf_cv_do_relink=$enableval
5602 echo "$as_me:5602: result: $cf_cv_do_relink" >&5
5603 echo "${ECHO_T}$cf_cv_do_relink" >&6
5607 # we will build libraries one-level down.
5611 if test "x$cf_cv_enable_rpath" != xno
5613 echo "$as_me:5613: checking for an rpath option" >&5
5614 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5615 case $cf_cv_system_name in
5617 if test "$GCC" = yes; then
5618 LD_RPATH_OPT="-Wl,-rpath,"
5620 LD_RPATH_OPT="-rpath "
5623 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5624 LD_RPATH_OPT="-Wl,-rpath,"
5626 (openbsd[2-9].*|mirbsd*)
5627 LD_RPATH_OPT="-Wl,-rpath,"
5630 LD_RPATH_OPT="-rpath "
5633 LD_RPATH_OPT="-Wl,-rpath,"
5636 LD_RPATH_OPT="-rpath "
5644 echo "$as_me:5644: result: $LD_RPATH_OPT" >&5
5645 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5647 case "x$LD_RPATH_OPT" in
5649 echo "$as_me:5649: checking if we need a space after rpath option" >&5
5650 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5651 cf_save_LIBS="$LIBS"
5656 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5658 for cf_add_1lib in $cf_add_0lib; do
5659 for cf_add_2lib in $cf_add_libs; do
5660 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5665 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5669 cat >conftest.$ac_ext <<_ACEOF
5670 #line 5670 "configure"
5671 #include "confdefs.h"
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:5682: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>&5
5685 echo "$as_me:5685: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -s conftest$ac_exeext'
5688 { (eval echo "$as_me:5688: \"$ac_try\"") >&5
5691 echo "$as_me:5691: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5695 echo "$as_me: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5700 LIBS="$cf_save_LIBS"
5701 echo "$as_me:5701: result: $cf_rpath_space" >&5
5702 echo "${ECHO_T}$cf_rpath_space" >&6
5703 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5712 INSTALL_LIB="-m 644"
5713 : ${rel_builddir:=.}
5719 cf_cv_do_symlinks=no
5721 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5723 echo "$as_me:5723: checking if release/abi version should be used for shared libs" >&5
5724 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5726 # Check whether --with-shlib-version or --without-shlib-version was given.
5727 if test "${with_shlib_version+set}" = set; then
5728 withval="$with_shlib_version"
5729 test -z "$withval" && withval=auto
5732 cf_cv_shlib_version=auto
5735 cf_cv_shlib_version=$withval
5738 echo "$as_me:5738: result: $withval" >&5
5739 echo "${ECHO_T}$withval" >&6
5740 { { echo "$as_me:5740: error: option value must be one of: rel, abi, or auto" >&5
5741 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5742 { (exit 1); exit 1; }; }
5747 cf_cv_shlib_version=auto
5749 echo "$as_me:5749: result: $cf_cv_shlib_version" >&5
5750 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5755 # Some less-capable ports of gcc support only -fpic
5759 if test "$GCC" = yes
5763 case $cf_cv_system_name in
5764 (*linux*) # e.g., PGI compiler
5770 if test "$cf_try_fPIC" = yes
5772 echo "$as_me:5772: checking which $CC option to use" >&5
5773 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5774 cf_save_CFLAGS="$CFLAGS"
5775 for CC_SHARED_OPTS in -fPIC -fpic ''
5777 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5778 cat >conftest.$ac_ext <<_ACEOF
5779 #line 5779 "configure"
5780 #include "confdefs.h"
5790 rm -f conftest.$ac_objext
5791 if { (eval echo "$as_me:5791: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>&5
5794 echo "$as_me:5794: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
5796 { ac_try='test -s conftest.$ac_objext'
5797 { (eval echo "$as_me:5797: \"$ac_try\"") >&5
5800 echo "$as_me:5800: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5804 echo "$as_me: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5807 rm -f conftest.$ac_objext conftest.$ac_ext
5809 echo "$as_me:5809: result: $CC_SHARED_OPTS" >&5
5810 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5811 CFLAGS="$cf_save_CFLAGS"
5814 cf_cv_shlib_version_infix=no
5816 case $cf_cv_system_name in
5817 (aix4.3-9*|aix[5-7]*)
5818 if test "$GCC" = yes; then
5819 CC_SHARED_OPTS='-Wl,-brtl'
5820 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5822 CC_SHARED_OPTS='-brtl'
5823 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
5824 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5828 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5832 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5833 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5834 cf_cv_shlib_version=cygdll
5835 cf_cv_shlib_version_infix=cygdll
5838 cat >mk_shared_lib.sh <<-CF_EOF
5841 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5844 Linking shared library
5845 ** SHARED_LIB \$SHARED_LIB
5846 ** IMPORT_LIB \$IMPORT_LIB
5848 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5850 chmod +x mk_shared_lib.sh
5854 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5855 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5856 cf_cv_shlib_version=msysdll
5857 cf_cv_shlib_version_infix=msysdll
5860 cat >mk_shared_lib.sh <<-CF_EOF
5863 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5866 Linking shared library
5867 ** SHARED_LIB \$SHARED_LIB
5868 ** IMPORT_LIB \$IMPORT_LIB
5870 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5872 chmod +x mk_shared_lib.sh
5875 cf_try_cflags="no-cpp-precomp"
5876 CC_SHARED_OPTS="-dynamic"
5877 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5878 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5879 cf_cv_shlib_version_infix=yes
5880 echo "$as_me:5880: checking if ld -search_paths_first works" >&5
5881 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5882 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 cf_save_LDFLAGS=$LDFLAGS
5887 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5888 cat >conftest.$ac_ext <<_ACEOF
5889 #line 5889 "configure"
5890 #include "confdefs.h"
5900 rm -f conftest.$ac_objext conftest$ac_exeext
5901 if { (eval echo "$as_me:5901: \"$ac_link\"") >&5
5902 (eval $ac_link) 2>&5
5904 echo "$as_me:5904: \$? = $ac_status" >&5
5905 (exit $ac_status); } &&
5906 { ac_try='test -s conftest$ac_exeext'
5907 { (eval echo "$as_me:5907: \"$ac_try\"") >&5
5910 echo "$as_me:5910: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
5912 cf_cv_ldflags_search_paths_first=yes
5914 echo "$as_me: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5916 cf_cv_ldflags_search_paths_first=no
5918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5919 LDFLAGS=$cf_save_LDFLAGS
5921 echo "$as_me:5921: result: $cf_cv_ldflags_search_paths_first" >&5
5922 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5923 if test $cf_cv_ldflags_search_paths_first = yes; then
5924 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5928 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5929 if test "$GCC" != yes; then
5932 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
5933 INSTALL_LIB="-m 555"
5936 # (tested with gcc 2.7.2 -- I don't have c89)
5937 if test "$GCC" = yes; then
5938 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5941 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5943 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
5944 # HP-UX shared libraries must be executable, and should be
5945 # readonly to exploit a quirk in the memory manager.
5946 INSTALL_LIB="-m 555"
5949 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5950 if test "$cf_cv_shlib_version" = rel; then
5951 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5953 cf_shared_soname='`basename $@`'
5956 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
5959 if test "$cf_cv_enable_rpath" = yes ; then
5960 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5962 # tested with IRIX 5.2 and 'cc'.
5963 if test "$GCC" != yes; then
5964 CC_SHARED_OPTS='-KPIC'
5965 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
5967 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
5969 cf_cv_rm_so_locs=yes
5971 (linux*|gnu*|k*bsd*-gnu)
5972 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5973 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5974 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5976 if test "$cf_cv_enable_rpath" = yes ; then
5977 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5980 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5981 if test "$cf_cv_shlib_version" = rel; then
5982 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5984 cf_cv_shared_soname='`basename $@`'
5987 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5990 cf_cv_shlib_version=msvcdll
5991 cf_cv_shlib_version_infix=msvcdll
5994 if test "$DFT_LWR_MODEL" = "shared" ; then
5995 LOCAL_LDFLAGS="-link -dll"
5996 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5997 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6000 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6001 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6002 cat >mk_shared_lib.sh <<-CF_EOF
6005 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6010 Linking shared library
6011 ** SHARED LIB \$SHARED_LIB
6012 ** IMPORT_LIB \$IMPORT_LIB
6014 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6015 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6016 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6018 chmod +x mk_shared_lib.sh
6019 cat >mk_prog.sh <<-CF_EOF
6022 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6025 ldopts=("/subsystem:console")
6028 while test \$# -gt 0; do
6031 # ignore -link argument
6046 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6049 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6055 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6056 ldopts+=("\${linkarg}")
6064 ldopts+=("-out:\$1")
6073 if [ "\$isdll" -ne 0 ]; then
6074 for lib in \${libs[*]}; do
6075 ldopts+=("\$lib.dll.lib")
6078 for lib in \${libs[*]}; do
6079 ldopts+=("\$lib.lib")
6084 ** ld options: "\${ldopts[@]}"
6086 exec \$LD \${ldopts[@]}
6089 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6092 cf_cv_shlib_version=mingw
6093 cf_cv_shlib_version_infix=mingw
6096 if test "$DFT_LWR_MODEL" = "shared" ; then
6097 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6098 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6099 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6102 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6103 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6104 cat >mk_shared_lib.sh <<-CF_EOF
6107 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6110 Linking shared library
6111 ** SHARED_LIB \$SHARED_LIB
6112 ** IMPORT_LIB \$IMPORT_LIB
6114 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6116 chmod +x mk_shared_lib.sh
6118 (openbsd[2-9].*|mirbsd*)
6119 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6120 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6121 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6123 if test "$cf_cv_enable_rpath" = yes ; then
6124 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6126 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6128 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6129 if test "$cf_cv_shlib_version" = rel; then
6130 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6132 cf_cv_shared_soname='`basename $@`'
6135 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6137 (nto-qnx*|openbsd*|freebsd[12].*)
6138 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6139 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6140 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6142 (dragonfly*|freebsd*)
6143 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6144 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6145 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6146 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6147 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6150 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6151 if test "$cf_cv_shlib_version" = rel; then
6152 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6154 cf_cv_shared_soname='`basename $@`'
6157 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6160 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6161 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6162 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6163 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6164 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6165 if test "$cf_cv_shlib_version" = auto; then
6166 if test -f /usr/libexec/ld.elf_so; then
6167 cf_cv_shlib_version=abi
6169 cf_cv_shlib_version=rel
6173 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6174 if test "$cf_cv_shlib_version" = rel; then
6175 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6177 cf_cv_shared_soname='`basename $@`'
6180 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6182 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
6186 # tested with OSF/1 V3.2 and 'cc'
6187 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6188 # link with shared libs).
6189 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6192 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6195 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6196 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6197 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6198 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6200 cf_cv_rm_so_locs=yes
6202 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6203 # tested with osr5.0.5
6204 if test "$GCC" != yes; then
6205 CC_SHARED_OPTS='-belf -KPIC'
6207 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6208 if test "$cf_cv_enable_rpath" = yes ; then
6209 # only way is to set LD_RUN_PATH but no switch for it
6212 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6213 LINK_PROGS='LD_RUN_PATH=${libdir}'
6214 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6217 # tested with SunOS 4.1.1 and gcc 2.7.0
6218 if test "$GCC" != yes; then
6219 CC_SHARED_OPTS='-KPIC'
6221 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6222 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6225 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6226 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6227 if test "$DFT_LWR_MODEL" = "shared" ; then
6228 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6229 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6231 if test "$cf_cv_enable_rpath" = yes ; then
6232 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6235 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6236 if test "$cf_cv_shlib_version" = rel; then
6237 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6239 cf_cv_shared_soname='`basename $@`'
6242 if test "$GCC" != yes; then
6243 cf_save_CFLAGS="$CFLAGS"
6244 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6246 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6247 cat >conftest.$ac_ext <<_ACEOF
6248 #line 6248 "configure"
6249 #include "confdefs.h"
6259 rm -f conftest.$ac_objext
6260 if { (eval echo "$as_me:6260: \"$ac_compile\"") >&5
6261 (eval $ac_compile) 2>&5
6263 echo "$as_me:6263: \$? = $ac_status" >&5
6264 (exit $ac_status); } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:6266: \"$ac_try\"") >&5
6269 echo "$as_me:6269: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6273 echo "$as_me: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6276 rm -f conftest.$ac_objext conftest.$ac_ext
6278 CFLAGS="$cf_save_CFLAGS"
6279 CC_SHARED_OPTS=$cf_shared_opts
6280 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6282 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6285 (sysv5uw7*|unix_sv*)
6286 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6287 if test "$GCC" != yes; then
6288 CC_SHARED_OPTS='-KPIC'
6290 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6293 CC_SHARED_OPTS='unknown'
6294 MK_SHARED_LIB='echo unknown'
6298 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6299 case "$cf_cv_shlib_version" in
6301 case "$MK_SHARED_LIB" in
6303 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6306 { echo "$as_me:6306: WARNING: ignored --with-shlib-version" >&5
6307 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6313 if test -n "$cf_try_cflags"
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6316 "${as_me:-configure}"
6318 int main(int argc, char *argv[])
6321 return (argv[argc-1] == 0) ;
6324 cf_save_CFLAGS="$CFLAGS"
6325 for cf_opt in $cf_try_cflags
6327 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6328 echo "$as_me:6328: checking if CFLAGS option -$cf_opt works" >&5
6329 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6330 if { (eval echo "$as_me:6330: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6333 echo "$as_me:6333: \$? = $ac_status" >&5
6334 (exit $ac_status); }; then
6335 echo "$as_me:6335: result: yes" >&5
6336 echo "${ECHO_T}yes" >&6
6337 cf_save_CFLAGS="$CFLAGS"
6339 echo "$as_me:6339: result: no" >&5
6340 echo "${ECHO_T}no" >&6
6343 CFLAGS="$cf_save_CFLAGS"
6346 # RPATH_LIST is a colon-separated list of directories
6347 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6348 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6350 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6352 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6354 echo "${as_me:-configure}:6354: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6356 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6358 echo "${as_me:-configure}:6358: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6360 for model in $cf_list_models; do
6364 echo "$as_me:6364: checking for additional libtool options" >&5
6365 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6367 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6368 if test "${with_libtool_opts+set}" = set; then
6369 withval="$with_libtool_opts"
6370 with_libtool_opts=$withval
6372 with_libtool_opts=no
6374 echo "$as_me:6374: result: $with_libtool_opts" >&5
6375 echo "${ECHO_T}$with_libtool_opts" >&6
6377 case .$with_libtool_opts in
6381 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6385 echo "$as_me:6385: checking if exported-symbols file should be used" >&5
6386 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6388 # Check whether --with-export-syms or --without-export-syms was given.
6389 if test "${with_export_syms+set}" = set; then
6390 withval="$with_export_syms"
6391 with_export_syms=$withval
6395 if test "x$with_export_syms" = xyes
6397 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6400 echo "$as_me:6400: result: $with_export_syms" >&5
6401 echo "${ECHO_T}$with_export_syms" >&6
6402 if test "x$with_export_syms" != xno
6404 EXPORT_SYMS="-export-symbols $with_export_syms"
6410 if test "$CC_SHARED_OPTS" = "unknown"; then
6411 { { echo "$as_me:6411: error: Shared libraries are not supported in this version" >&5
6412 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6413 { (exit 1); exit 1; }; }
6415 # workaround for inept transition to PIE vs PIC...
6416 echo "$as_me:6416: checking if current CFLAGS link properly" >&5
6417 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6419 #line 6419 "configure"
6420 #include "confdefs.h"
6425 printf("Hello work\n");
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (eval echo "$as_me:6431: \"$ac_link\"") >&5
6432 (eval $ac_link) 2>&5
6434 echo "$as_me:6434: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -s conftest$ac_exeext'
6437 { (eval echo "$as_me:6437: \"$ac_try\"") >&5
6440 echo "$as_me:6440: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6444 echo "$as_me: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6449 echo "$as_me:6449: result: $cf_cflags_work" >&5
6450 echo "${ECHO_T}$cf_cflags_work" >&6
6451 if test "$cf_cflags_work" = no
6453 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6455 echo "${as_me:-configure}:6455: testing try to work around by appending shared-options ..." 1>&5
6457 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6460 echo "$as_me:6460: checking if versioned-symbols file should be used" >&5
6461 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6463 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6464 if test "${with_versioned_syms+set}" = set; then
6465 withval="$with_versioned_syms"
6466 with_versioned_syms=$withval
6468 with_versioned_syms=no
6470 case "x$with_versioned_syms" in
6472 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6478 test -f "$with_versioned_syms" || { { echo "$as_me:6478: error: expected a filename: $with_versioned_syms" >&5
6479 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6480 { (exit 1); exit 1; }; }
6483 test -f "$with_versioned_syms" || { { echo "$as_me:6483: error: expected a filename: $with_versioned_syms" >&5
6484 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6485 { (exit 1); exit 1; }; }
6486 with_versioned_syms=`pwd`/"$with_versioned_syms"
6489 echo "$as_me:6489: result: $with_versioned_syms" >&5
6490 echo "${ECHO_T}$with_versioned_syms" >&6
6496 if test "x$with_versioned_syms" != xno
6498 RESULTING_SYMS=$with_versioned_syms
6499 case "x$MK_SHARED_LIB" in
6501 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6502 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6503 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6505 echo "${as_me:-configure}:6505: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6509 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6510 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6511 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6513 echo "${as_me:-configure}:6513: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6517 { echo "$as_me:6517: WARNING: this system does not support versioned-symbols" >&5
6518 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6522 # Linux ld can selectively override scope, e.g., of symbols beginning with
6523 # "_" by first declaring some as global, and then using a wildcard to
6524 # declare the others as local. Some other loaders cannot do this. Check
6525 # by constructing a (very) simple shared library and inspecting its
6527 if test "x$VERSIONED_SYMS" != "x"
6529 echo "$as_me:6529: checking if wildcards can be used to selectively omit symbols" >&5
6530 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6536 cat >conftest.ver <<EOF
6565 cat >conftest.$ac_ext <<EOF
6566 #line 6566 "configure"
6567 int _ismissing(void) { return 1; }
6568 int _localf1(void) { return 1; }
6569 int _localf2(void) { return 2; }
6570 int globalf1(void) { return 1; }
6571 int globalf2(void) { return 2; }
6572 int _sublocalf1(void) { return 1; }
6573 int _sublocalf2(void) { return 2; }
6574 int subglobalf1(void) { return 1; }
6575 int subglobalf2(void) { return 2; }
6577 cat >conftest.mk <<EOF
6580 CPPFLAGS=${CPPFLAGS}
6583 VERSIONED_SYMS=${VERSIONED_SYMS}
6584 RESULTING_SYMS=conftest.ver
6585 MK_SHARED_LIB=${MK_SHARED_LIB}
6586 conftest.so: conftest.$ac_cv_objext
6587 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6590 # compile source, make library
6591 if make -f conftest.mk 2>&5 >/dev/null
6593 # test for missing symbol in either Data or Text section
6594 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6595 test -n "$cf_missing" && WILDCARD_SYMS=yes
6597 echo "$as_me:6597: result: $WILDCARD_SYMS" >&5
6598 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6607 ### Checks for special libraries, must be done up-front.
6610 echo "$as_me:6610: checking if you want to link with the GPM mouse library" >&5
6611 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6613 # Check whether --with-gpm or --without-gpm was given.
6614 if test "${with_gpm+set}" = set; then
6620 echo "$as_me:6620: result: $with_gpm" >&5
6621 echo "${ECHO_T}$with_gpm" >&6
6623 if test "$with_gpm" != no ; then
6624 echo "$as_me:6624: checking for gpm.h" >&5
6625 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6626 if test "${ac_cv_header_gpm_h+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6630 #line 6630 "configure"
6631 #include "confdefs.h"
6634 if { (eval echo "$as_me:6634: \"$ac_cpp conftest.$ac_ext\"") >&5
6635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637 egrep -v '^ *\+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit $ac_status); } >/dev/null; then
6642 if test -s conftest.err; then
6643 ac_cpp_err=$ac_c_preproc_warn_flag
6650 if test -z "$ac_cpp_err"; then
6651 ac_cv_header_gpm_h=yes
6653 echo "$as_me: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6655 ac_cv_header_gpm_h=no
6657 rm -f conftest.err conftest.$ac_ext
6659 echo "$as_me:6659: result: $ac_cv_header_gpm_h" >&5
6660 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6661 if test $ac_cv_header_gpm_h = yes; then
6663 cat >>confdefs.h <<\EOF
6664 #define HAVE_GPM_H 1
6667 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6668 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6670 echo "${as_me:-configure}:6670: testing assuming we really have GPM library ..." 1>&5
6672 cat >>confdefs.h <<\EOF
6673 #define HAVE_LIBGPM 1
6678 echo "$as_me:6678: checking for Gpm_Open in -lgpm" >&5
6679 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6680 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 ac_check_lib_save_LIBS=$LIBS
6685 cat >conftest.$ac_ext <<_ACEOF
6686 #line 6686 "configure"
6687 #include "confdefs.h"
6689 /* Override any gcc2 internal prototype to avoid an error. */
6693 /* We use char because int might match the return type of a gcc2
6694 builtin and then its argument prototype would still apply. */
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (eval echo "$as_me:6705: \"$ac_link\"") >&5
6706 (eval $ac_link) 2>&5
6708 echo "$as_me:6708: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:6711: \"$ac_try\"") >&5
6714 echo "$as_me:6714: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_lib_gpm_Gpm_Open=yes
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6720 ac_cv_lib_gpm_Gpm_Open=no
6722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6723 LIBS=$ac_check_lib_save_LIBS
6725 echo "$as_me:6725: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6726 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6727 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6731 if test "$with_gpm" = maybe; then
6732 { echo "$as_me:6732: WARNING: Cannot link with GPM library" >&5
6733 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6736 { { echo "$as_me:6736: error: Cannot link with GPM library" >&5
6737 echo "$as_me: error: Cannot link with GPM library" >&2;}
6738 { (exit 1); exit 1; }; }
6747 test "$with_gpm" != maybe && { echo "$as_me:6747: WARNING: Cannot find GPM header" >&5
6748 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6755 if test "$with_gpm" != no ; then
6756 echo "$as_me:6756: checking if you want to load GPM dynamically" >&5
6757 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6759 # Check whether --with-dlsym or --without-dlsym was given.
6760 if test "${with_dlsym+set}" = set; then
6761 withval="$with_dlsym"
6766 echo "$as_me:6766: result: $with_dlsym" >&5
6767 echo "${ECHO_T}$with_dlsym" >&6
6768 if test "x$with_dlsym" = xyes ; then
6771 echo "$as_me:6771: checking for dlsym" >&5
6772 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
6773 if test "${ac_cv_func_dlsym+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6777 #line 6777 "configure"
6778 #include "confdefs.h"
6779 #define dlsym autoconf_temporary
6780 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6787 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6795 /* The GNU C library defines stubs for functions which it implements
6796 to always fail with ENOSYS. Some functions are actually named
6797 something starting with __ and the normal name is an alias. */
6798 #if defined (__stub_dlsym) || defined (__stub___dlsym)
6799 #error found stub for dlsym
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (eval echo "$as_me:6808: \"$ac_link\"") >&5
6809 (eval $ac_link) 2>&5
6811 echo "$as_me:6811: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -s conftest$ac_exeext'
6814 { (eval echo "$as_me:6814: \"$ac_try\"") >&5
6817 echo "$as_me:6817: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_cv_func_dlsym=yes
6821 echo "$as_me: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6827 echo "$as_me:6827: result: $ac_cv_func_dlsym" >&5
6828 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
6829 if test $ac_cv_func_dlsym = yes; then
6834 echo "$as_me:6834: checking for dlsym in -ldl" >&5
6835 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6836 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 ac_check_lib_save_LIBS=$LIBS
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line 6842 "configure"
6843 #include "confdefs.h"
6845 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:6861: \"$ac_link\"") >&5
6862 (eval $ac_link) 2>&5
6864 echo "$as_me:6864: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -s conftest$ac_exeext'
6867 { (eval echo "$as_me:6867: \"$ac_try\"") >&5
6870 echo "$as_me:6870: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_cv_lib_dl_dlsym=yes
6874 echo "$as_me: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6876 ac_cv_lib_dl_dlsym=no
6878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6879 LIBS=$ac_check_lib_save_LIBS
6881 echo "$as_me:6881: result: $ac_cv_lib_dl_dlsym" >&5
6882 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6883 if test $ac_cv_lib_dl_dlsym = yes; then
6891 if test "$cf_have_dlsym" = yes ; then
6892 test "$cf_have_libdl" = yes && {
6896 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6898 for cf_add_1lib in $cf_add_0lib; do
6899 for cf_add_2lib in $cf_add_libs; do
6900 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6905 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6910 echo "$as_me:6910: checking whether able to link to dl*() functions" >&5
6911 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
6912 cat >conftest.$ac_ext <<_ACEOF
6913 #line 6913 "configure"
6914 #include "confdefs.h"
6921 if ((obj = dlopen("filename", 0)) != 0) {
6922 if (dlsym(obj, "symbolname") == 0) {
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:6931: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>&5
6934 echo "$as_me:6934: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -s conftest$ac_exeext'
6937 { (eval echo "$as_me:6937: \"$ac_try\"") >&5
6940 echo "$as_me:6940: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6943 cat >>confdefs.h <<\EOF
6944 #define HAVE_LIBDL 1
6948 echo "$as_me: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 { { echo "$as_me:6951: error: Cannot link test program for libdl" >&5
6952 echo "$as_me: error: Cannot link test program for libdl" >&2;}
6953 { (exit 1); exit 1; }; }
6955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6956 echo "$as_me:6956: result: ok" >&5
6957 echo "${ECHO_T}ok" >&6
6959 { { echo "$as_me:6959: error: Cannot find dlsym function" >&5
6960 echo "$as_me: error: Cannot find dlsym function" >&2;}
6961 { (exit 1); exit 1; }; }
6964 if test "x$with_gpm" != xyes ; then
6965 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
6967 echo "${as_me:-configure}:6967: testing assuming soname for gpm is $with_gpm ..." 1>&5
6969 cf_cv_gpm_soname="$with_gpm"
6972 echo "$as_me:6972: checking for soname of gpm library" >&5
6973 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
6974 if test "${cf_cv_gpm_soname+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cf_cv_gpm_soname=unknown
6979 if test "$cross_compiling" != yes ; then
6980 cat >conftest.$ac_ext <<CF_EOF
6984 if (Gpm_Open(0,0)) Gpm_Close();
6985 ${cf_cv_main_return:-return}(0);
6988 cf_save_LIBS="$LIBS"
6993 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6995 for cf_add_1lib in $cf_add_0lib; do
6996 for cf_add_2lib in $cf_add_libs; do
6997 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7002 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7006 if { (eval echo "$as_me:7006: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>&5
7009 echo "$as_me:7009: \$? = $ac_status" >&5
7010 (exit $ac_status); } ; then
7011 if { (eval echo "$as_me:7011: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>&5
7014 echo "$as_me:7014: \$? = $ac_status" >&5
7015 (exit $ac_status); } ; then
7016 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
7017 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7021 LIBS="$cf_save_LIBS"
7025 echo "$as_me:7025: result: $cf_cv_gpm_soname" >&5
7026 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7029 test "$cf_cv_gpm_soname" != "unknown" &&
7030 cat >>confdefs.h <<EOF
7031 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7034 SHLIB_LIST="-ldl $SHLIB_LIST"
7036 cf_add_libs="$PRIVATE_LIBS"
7039 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7041 for cf_add_1lib in $cf_add_0lib; do
7042 for cf_add_2lib in $cf_add_libs; do
7043 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7048 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7050 PRIVATE_LIBS="$cf_add_libs"
7053 SHLIB_LIST="-lgpm $SHLIB_LIST"
7055 cf_add_libs="$TEST_LIBS"
7058 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7060 for cf_add_1lib in $cf_add_0lib; do
7061 for cf_add_2lib in $cf_add_libs; do
7062 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7067 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7069 TEST_LIBS="$cf_add_libs"
7071 cf_add_libs="$PRIVATE_LIBS"
7074 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7076 for cf_add_1lib in $cf_add_0lib; do
7077 for cf_add_2lib in $cf_add_libs; do
7078 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7083 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7085 PRIVATE_LIBS="$cf_add_libs"
7089 cat >>confdefs.h <<\EOF
7090 #define HAVE_LIBGPM 1
7093 echo "$as_me:7093: checking for Gpm_Wgetch in -lgpm" >&5
7094 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7095 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 ac_check_lib_save_LIBS=$LIBS
7100 cat >conftest.$ac_ext <<_ACEOF
7101 #line 7101 "configure"
7102 #include "confdefs.h"
7104 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:7120: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>&5
7123 echo "$as_me:7123: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:7126: \"$ac_try\"") >&5
7129 echo "$as_me:7129: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_lib_gpm_Gpm_Wgetch=yes
7133 echo "$as_me: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7135 ac_cv_lib_gpm_Gpm_Wgetch=no
7137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7138 LIBS=$ac_check_lib_save_LIBS
7140 echo "$as_me:7140: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7141 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7142 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
7144 echo "$as_me:7144: checking if GPM is weakly bound to curses library" >&5
7145 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7146 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 cf_cv_check_gpm_wgetch=unknown
7151 if test "$cross_compiling" != yes ; then
7153 cat >conftest.$ac_ext <<CF_EOF
7158 ${cf_cv_main_return:-return}(0);
7162 cf_save_LIBS="$LIBS"
7163 # This only works if we can look at the symbol table. If a shared
7164 # library is stripped for install, we cannot use that. So we're forced
7165 # to rely on the static library, noting that some packagers may not
7167 LIBS="-static -lgpm -dynamic $LIBS"
7168 if { (eval echo "$as_me:7168: \"$ac_compile\"") >&5
7169 (eval $ac_compile) 2>&5
7171 echo "$as_me:7171: \$? = $ac_status" >&5
7172 (exit $ac_status); } ; then
7173 if { (eval echo "$as_me:7173: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>&5
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 (exit $ac_status); } ; then
7178 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
7179 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7180 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7184 LIBS="$cf_save_LIBS"
7188 echo "$as_me:7188: result: $cf_cv_check_gpm_wgetch" >&5
7189 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7191 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7192 { echo "$as_me:7192: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7193 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7200 echo "$as_me:7200: checking if you want to use PCRE2 for regular-expressions" >&5
7201 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7203 # Check whether --with-pcre2 or --without-pcre2 was given.
7204 if test "${with_pcre2+set}" = set; then
7205 withval="$with_pcre2"
7208 test -z "$with_pcre2" && with_pcre2=no
7209 echo "$as_me:7209: result: $with_pcre2" >&5
7210 echo "${ECHO_T}$with_pcre2" >&6
7212 if test "x$with_pcre2" != xno ; then
7214 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre2; then
7215 test -n "$verbose" && echo " found package libpcre2" 1>&6
7217 echo "${as_me:-configure}:7217: testing found package libpcre2 ..." 1>&5
7219 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre2 2>/dev/null`"
7220 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre2 2>/dev/null`"
7221 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7223 echo "${as_me:-configure}:7223: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7225 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7227 echo "${as_me:-configure}:7227: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7232 cf_new_extra_cppflags=
7234 for cf_add_cflags in $cf_pkgconfig_incs
7236 case $cf_fix_cppflags in
7238 case $cf_add_cflags in
7239 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7240 case $cf_add_cflags in
7242 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7244 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7245 && test -z "${cf_tst_cflags}" \
7246 && cf_fix_cppflags=yes
7248 if test $cf_fix_cppflags = yes ; then
7250 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7251 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7254 elif test "${cf_tst_cflags}" = "\"'" ; then
7256 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7257 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7267 case $cf_add_cflags in
7269 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7271 CPPFLAGS=`echo "$CPPFLAGS" | \
7272 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7273 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7278 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7279 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7286 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7287 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7294 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7295 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7297 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7299 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7300 && test -z "${cf_tst_cflags}" \
7301 && cf_fix_cppflags=no
7306 if test -n "$cf_new_cflags" ; then
7308 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7309 CFLAGS="${CFLAGS}$cf_new_cflags"
7313 if test -n "$cf_new_cppflags" ; then
7315 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7316 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7320 if test -n "$cf_new_extra_cppflags" ; then
7322 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7323 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7330 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7332 for cf_add_1lib in $cf_add_0lib; do
7333 for cf_add_2lib in $cf_add_libs; do
7334 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7339 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7348 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
7349 test -n "$verbose" && echo " found package libpcre" 1>&6
7351 echo "${as_me:-configure}:7351: testing found package libpcre ..." 1>&5
7353 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
7354 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
7355 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7357 echo "${as_me:-configure}:7357: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7359 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7361 echo "${as_me:-configure}:7361: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7366 cf_new_extra_cppflags=
7368 for cf_add_cflags in $cf_pkgconfig_incs
7370 case $cf_fix_cppflags in
7372 case $cf_add_cflags in
7373 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7374 case $cf_add_cflags in
7376 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7378 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7379 && test -z "${cf_tst_cflags}" \
7380 && cf_fix_cppflags=yes
7382 if test $cf_fix_cppflags = yes ; then
7384 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7385 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7388 elif test "${cf_tst_cflags}" = "\"'" ; then
7390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7391 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7401 case $cf_add_cflags in
7403 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7405 CPPFLAGS=`echo "$CPPFLAGS" | \
7406 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7407 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7412 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7413 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7420 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7421 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7428 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7429 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7431 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7433 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7434 && test -z "${cf_tst_cflags}" \
7435 && cf_fix_cppflags=no
7440 if test -n "$cf_new_cflags" ; then
7442 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7443 CFLAGS="${CFLAGS}$cf_new_cflags"
7447 if test -n "$cf_new_cppflags" ; then
7449 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7450 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7454 if test -n "$cf_new_extra_cppflags" ; then
7456 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7457 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7464 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7466 for cf_add_1lib in $cf_add_0lib; do
7467 for cf_add_2lib in $cf_add_libs; do
7468 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7473 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7482 { { echo "$as_me:7482: error: Cannot find PCRE2 library" >&5
7483 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7484 { (exit 1); exit 1; }; }
7489 cat >>confdefs.h <<\EOF
7490 #define HAVE_LIB_PCRE2 1
7493 # if pkgconfig gave no results, look for the libraries directly
7495 (*pcre2-posix*|*pcreposix*)
7498 echo "$as_me:7498: checking for regcomp in -lpcre2-posix" >&5
7499 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7500 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_check_lib_save_LIBS=$LIBS
7504 LIBS="-lpcre2-posix $LIBS"
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line 7506 "configure"
7507 #include "confdefs.h"
7509 /* Override any gcc2 internal prototype to avoid an error. */
7513 /* We use char because int might match the return type of a gcc2
7514 builtin and then its argument prototype would still apply. */
7524 rm -f conftest.$ac_objext conftest$ac_exeext
7525 if { (eval echo "$as_me:7525: \"$ac_link\"") >&5
7526 (eval $ac_link) 2>&5
7528 echo "$as_me:7528: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -s conftest$ac_exeext'
7531 { (eval echo "$as_me:7531: \"$ac_try\"") >&5
7534 echo "$as_me:7534: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_lib_pcre2_posix_regcomp=yes
7538 echo "$as_me: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7540 ac_cv_lib_pcre2_posix_regcomp=no
7542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7543 LIBS=$ac_check_lib_save_LIBS
7545 echo "$as_me:7545: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7546 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7547 if test $ac_cv_lib_pcre2_posix_regcomp = yes; then
7552 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7554 for cf_add_1lib in $cf_add_0lib; do
7555 for cf_add_2lib in $cf_add_libs; do
7556 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7566 echo "$as_me:7566: checking for regcomp in -lpcreposix" >&5
7567 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7568 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 ac_check_lib_save_LIBS=$LIBS
7572 LIBS="-lpcreposix $LIBS"
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line 7574 "configure"
7575 #include "confdefs.h"
7577 /* Override any gcc2 internal prototype to avoid an error. */
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (eval echo "$as_me:7593: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7596 echo "$as_me:7596: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:7599: \"$ac_try\"") >&5
7602 echo "$as_me:7602: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_lib_pcreposix_regcomp=yes
7606 echo "$as_me: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7608 ac_cv_lib_pcreposix_regcomp=no
7610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 echo "$as_me:7613: result: $ac_cv_lib_pcreposix_regcomp" >&5
7614 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7615 if test $ac_cv_lib_pcreposix_regcomp = yes; then
7620 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7622 for cf_add_1lib in $cf_add_0lib; do
7623 for cf_add_2lib in $cf_add_libs; do
7624 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7629 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7634 { { echo "$as_me:7634: error: Cannot find PCRE2 POSIX library" >&5
7635 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7636 { (exit 1); exit 1; }; }
7644 # either way, check for the library header files
7646 for ac_header in pcre2posix.h pcreposix.h
7648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 echo "$as_me:7649: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 cat >conftest.$ac_ext <<_ACEOF
7655 #line 7655 "configure"
7656 #include "confdefs.h"
7657 #include <$ac_header>
7659 if { (eval echo "$as_me:7659: \"$ac_cpp conftest.$ac_ext\"") >&5
7660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7662 egrep -v '^ *\+' conftest.er1 >conftest.err
7664 cat conftest.err >&5
7665 echo "$as_me:7665: \$? = $ac_status" >&5
7666 (exit $ac_status); } >/dev/null; then
7667 if test -s conftest.err; then
7668 ac_cpp_err=$ac_c_preproc_warn_flag
7675 if test -z "$ac_cpp_err"; then
7676 eval "$as_ac_Header=yes"
7678 echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 eval "$as_ac_Header=no"
7682 rm -f conftest.err conftest.$ac_ext
7684 echo "$as_me:7684: result: `eval echo '${'$as_ac_Header'}'`" >&5
7685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7687 cat >>confdefs.h <<EOF
7688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7696 # not everyone has "test -c"
7697 if test -c /dev/sysmouse 2>/dev/null ; then
7698 echo "$as_me:7698: checking if you want to use sysmouse" >&5
7699 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7701 # Check whether --with-sysmouse or --without-sysmouse was given.
7702 if test "${with_sysmouse+set}" = set; then
7703 withval="$with_sysmouse"
7704 cf_with_sysmouse=$withval
7706 cf_with_sysmouse=maybe
7708 if test "$cf_with_sysmouse" != no ; then
7709 cat >conftest.$ac_ext <<_ACEOF
7710 #line 7710 "configure"
7711 #include "confdefs.h"
7713 #include <osreldate.h>
7714 #if (__FreeBSD_version >= 400017)
7715 #include <sys/consio.h>
7716 #include <sys/fbio.h>
7718 #include <machine/console.h>
7725 struct mouse_info the_mouse;
7726 ioctl(0, CONS_MOUSECTL, &the_mouse);
7732 rm -f conftest.$ac_objext
7733 if { (eval echo "$as_me:7733: \"$ac_compile\"") >&5
7734 (eval $ac_compile) 2>&5
7736 echo "$as_me:7736: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:7739: \"$ac_try\"") >&5
7742 echo "$as_me:7742: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 cf_with_sysmouse=yes
7746 echo "$as_me: failed program was:" >&5
7747 cat conftest.$ac_ext >&5
7750 rm -f conftest.$ac_objext conftest.$ac_ext
7752 echo "$as_me:7752: result: $cf_with_sysmouse" >&5
7753 echo "${ECHO_T}$cf_with_sysmouse" >&6
7754 test "$cf_with_sysmouse" = yes &&
7755 cat >>confdefs.h <<\EOF
7756 #define USE_SYSMOUSE 1
7761 # pretend that ncurses==ncursesw==ncursest
7762 echo "$as_me:7762: checking if you want to disable library suffixes" >&5
7763 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7765 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7766 if test "${enable_lib_suffixes+set}" = set; then
7767 enableval="$enable_lib_suffixes"
7768 test "$enableval" != no && enableval=yes
7769 if test "$enableval" != "yes" ; then
7770 disable_lib_suffixes=yes
7772 disable_lib_suffixes=no
7776 disable_lib_suffixes=no
7779 echo "$as_me:7779: result: $disable_lib_suffixes" >&5
7780 echo "${ECHO_T}$disable_lib_suffixes" >&6
7782 ### If we're building with rpath, try to link non-standard libs that way too.
7783 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7785 echo "$as_me:7785: checking if rpath-hack should be disabled" >&5
7786 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7788 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7789 if test "${enable_rpath_hack+set}" = set; then
7790 enableval="$enable_rpath_hack"
7791 test "$enableval" != no && enableval=yes
7792 if test "$enableval" != "yes" ; then
7793 cf_disable_rpath_hack=yes
7795 cf_disable_rpath_hack=no
7799 cf_disable_rpath_hack=no
7802 echo "$as_me:7802: result: $cf_disable_rpath_hack" >&5
7803 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7804 if test "$cf_disable_rpath_hack" = no ; then
7806 echo "$as_me:7806: checking for updated LDFLAGS" >&5
7807 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7808 if test -n "$LD_RPATH_OPT" ; then
7809 echo "$as_me:7809: result: maybe" >&5
7810 echo "${ECHO_T}maybe" >&6
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 echo "$as_me:7816: checking for $ac_word" >&5
7817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7818 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 if test -n "$cf_ldd_prog"; then
7822 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7824 ac_save_IFS=$IFS; IFS=$ac_path_separator
7826 for ac_dir in $ac_dummy; do
7828 test -z "$ac_dir" && ac_dir=.
7829 $as_executable_p "$ac_dir/$ac_word" || continue
7830 ac_cv_prog_cf_ldd_prog="$ac_prog"
7831 echo "$as_me:7831: found $ac_dir/$ac_word" >&5
7837 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7838 if test -n "$cf_ldd_prog"; then
7839 echo "$as_me:7839: result: $cf_ldd_prog" >&5
7840 echo "${ECHO_T}$cf_ldd_prog" >&6
7842 echo "$as_me:7842: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7846 test -n "$cf_ldd_prog" && break
7848 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7850 cf_rpath_list="/usr/lib /lib"
7851 if test "$cf_ldd_prog" != no
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line 7856 "configure"
7857 #include "confdefs.h"
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (eval echo "$as_me:7868: \"$ac_link\"") >&5
7869 (eval $ac_link) 2>&5
7871 echo "$as_me:7871: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -s conftest$ac_exeext'
7874 { (eval echo "$as_me:7874: \"$ac_try\"") >&5
7877 echo "$as_me:7877: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7880 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7882 echo "$as_me: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7887 # If we passed the link-test, but get a "not found" on a given library,
7888 # this could be due to inept reconfiguration of gcc to make it only
7889 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
7890 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
7891 # /usr/local libraries.
7892 if test -n "$cf_rpath_oops"
7894 for cf_rpath_src in $cf_rpath_oops
7896 for cf_rpath_dir in \
7901 if test -f $cf_rpath_dir/lib/$cf_rpath_src
7903 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
7905 echo "${as_me:-configure}:7905: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
7907 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
7915 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7917 echo "${as_me:-configure}:7917: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7919 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
7921 echo "${as_me:-configure}:7921: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7924 for cf_rpath_src in $LDFLAGS
7926 case $cf_rpath_src in
7929 # check if this refers to a directory which we will ignore
7931 if test -n "$cf_rpath_list"
7933 for cf_rpath_item in $cf_rpath_list
7935 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7943 if test "$cf_rpath_skip" = no
7945 # transform the option
7946 if test "$LD_RPATH_OPT" = "-R " ; then
7947 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7949 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7952 # if we have not already added this, add it now
7953 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7954 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7956 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7958 echo "${as_me:-configure}:7958: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7960 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7965 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7967 LDFLAGS=$cf_rpath_dst
7969 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7971 echo "${as_me:-configure}:7971: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
7973 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
7975 echo "${as_me:-configure}:7975: testing ...checking LIBS $LIBS ..." 1>&5
7978 for cf_rpath_src in $LIBS
7980 case $cf_rpath_src in
7983 # check if this refers to a directory which we will ignore
7985 if test -n "$cf_rpath_list"
7987 for cf_rpath_item in $cf_rpath_list
7989 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7997 if test "$cf_rpath_skip" = no
7999 # transform the option
8000 if test "$LD_RPATH_OPT" = "-R " ; then
8001 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8003 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8006 # if we have not already added this, add it now
8007 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8008 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8010 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8012 echo "${as_me:-configure}:8012: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8014 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8019 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8023 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8025 echo "${as_me:-configure}:8025: testing ...checked LIBS $LIBS ..." 1>&5
8027 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8029 echo "${as_me:-configure}:8029: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8032 echo "$as_me:8032: result: no" >&5
8033 echo "${ECHO_T}no" >&6
8040 ### Depending on the system, someone may use rpath to build ncurses but not
8041 # want users of the package to rely upon that feature. Give those people an
8042 # option to suppress that detail from EXTRA_LDFLAGS.
8043 EXTRA_PKG_LDFLAGS="$EXTRA_LDFLAGS"
8044 if test -n "$EXTRA_PKG_LDFLAGS"
8046 echo "$as_me:8046: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8047 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8049 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8050 if test "${enable_pkg_ldflags+set}" = set; then
8051 enableval="$enable_pkg_ldflags"
8052 test "$enableval" != no && enableval=yes
8053 if test "$enableval" != "yes" ; then
8054 disable_pkg_ldflags=yes
8056 disable_pkg_ldflags=no
8060 disable_pkg_ldflags=no
8063 echo "$as_me:8063: result: $disable_pkg_ldflags" >&5
8064 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8065 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8068 ###############################################################################
8070 ### use option --with-extra-suffix to append suffix to headers and libraries
8071 echo "$as_me:8071: checking if you wish to append extra suffix to header/library paths" >&5
8072 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8075 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8076 if test "${with_extra_suffix+set}" = set; then
8077 withval="$with_extra_suffix"
8082 EXTRA_SUFFIX=$cf_cv_abi_version
8085 EXTRA_SUFFIX=$withval
8090 echo "$as_me:8090: result: $EXTRA_SUFFIX" >&5
8091 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8093 ### use option --disable-overwrite to leave out the link to -lcurses
8094 echo "$as_me:8094: checking if you wish to install ncurses overwriting curses" >&5
8095 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8097 # Check whether --enable-overwrite or --disable-overwrite was given.
8098 if test "${enable_overwrite+set}" = set; then
8099 enableval="$enable_overwrite"
8100 with_overwrite=$enableval
8102 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8104 echo "$as_me:8104: result: $with_overwrite" >&5
8105 echo "${ECHO_T}$with_overwrite" >&6
8107 echo "$as_me:8107: checking if external terminfo-database is used" >&5
8108 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8110 # Check whether --enable-database or --disable-database was given.
8111 if test "${enable_database+set}" = set; then
8112 enableval="$enable_database"
8113 use_database=$enableval
8117 echo "$as_me:8117: result: $use_database" >&5
8118 echo "${ECHO_T}$use_database" >&6
8122 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8125 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8129 NCURSES_USE_DATABASE=0
8130 if test "$use_database" != no ; then
8131 NCURSES_USE_DATABASE=1
8133 echo "$as_me:8133: checking which terminfo source-file will be installed" >&5
8134 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8136 # Check whether --with-database or --without-database was given.
8137 if test "${with_database+set}" = set; then
8138 withval="$with_database"
8139 TERMINFO_SRC=$withval
8141 echo "$as_me:8141: result: $TERMINFO_SRC" >&5
8142 echo "${ECHO_T}$TERMINFO_SRC" >&6
8144 echo "$as_me:8144: checking whether to use hashed database instead of directory/tree" >&5
8145 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8147 # Check whether --with-hashed-db or --without-hashed-db was given.
8148 if test "${with_hashed_db+set}" = set; then
8149 withval="$with_hashed_db"
8154 echo "$as_me:8154: result: $with_hashed_db" >&5
8155 echo "${ECHO_T}$with_hashed_db" >&6
8160 echo "$as_me:8160: checking for list of fallback descriptions" >&5
8161 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8163 # Check whether --with-fallbacks or --without-fallbacks was given.
8164 if test "${with_fallbacks+set}" = set; then
8165 withval="$with_fallbacks"
8166 with_fallback=$withval
8170 echo "$as_me:8170: result: $with_fallback" >&5
8171 echo "${ECHO_T}$with_fallback" >&6
8173 case ".$with_fallback" in
8178 { echo "$as_me:8178: WARNING: expected a list of terminal descriptions" >&5
8179 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8182 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8187 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8189 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8190 # tree for generating the terminal descriptions that will be compiled into the
8191 # library. If your toolchain is old, it may not handle current terminal
8192 # databases. Use configure-options to point to the tools which will be used,
8193 # rather than the first ones found on the $PATH.
8194 if test -n "$FALLBACK_LIST"
8197 # Check whether --with-tic-path or --without-tic-path was given.
8198 if test "${with_tic_path+set}" = set; then
8199 withval="$with_tic_path"
8200 echo "$as_me:8200: checking for tic program for fallbacks" >&5
8201 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8203 echo "$as_me:8203: result: $TIC" >&5
8204 echo "${ECHO_T}$TIC" >&6
8206 if test "x$prefix" != xNONE; then
8207 cf_path_syntax="$prefix"
8209 cf_path_syntax="$ac_default_prefix"
8217 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8219 (.\${*prefix}*|.\${*dir}*)
8223 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8228 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8231 { { echo "$as_me:8231: error: expected a pathname, not \"$TIC\"" >&5
8232 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8233 { (exit 1); exit 1; }; }
8239 test -z "$TIC" && TIC=tic
8240 for ac_prog in $TIC tic
8242 # Extract the first word of "$ac_prog", so it can be a program name with args.
8243 set dummy $ac_prog; ac_word=$2
8244 echo "$as_me:8244: checking for $ac_word" >&5
8245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8246 if test "${ac_cv_path_TIC+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8254 ac_save_IFS=$IFS; IFS=$ac_path_separator
8255 ac_dummy="$PATH:/usr/local/ncurses/bin"
8256 for ac_dir in $ac_dummy; do
8258 test -z "$ac_dir" && ac_dir=.
8259 if $as_executable_p "$ac_dir/$ac_word"; then
8260 ac_cv_path_TIC="$ac_dir/$ac_word"
8261 echo "$as_me:8261: found $ac_dir/$ac_word" >&5
8271 if test -n "$TIC"; then
8272 echo "$as_me:8272: result: $TIC" >&5
8273 echo "${ECHO_T}$TIC" >&6
8275 echo "$as_me:8275: result: no" >&5
8276 echo "${ECHO_T}no" >&6
8279 test -n "$TIC" && break
8281 test -n "$TIC" || TIC="$TIC"
8285 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8286 for cf_temp in $ac_cv_path_TIC
8288 if test -z "$cf_path_prog" ; then
8289 if test "$with_full_paths" = yes ; then
8291 if test "x$prefix" != xNONE; then
8292 cf_path_syntax="$prefix"
8294 cf_path_syntax="$ac_default_prefix"
8302 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8304 (.\${*prefix}*|.\${*dir}*)
8305 eval cf_temp="$cf_temp"
8308 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8313 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8320 cf_path_prog="$cf_temp"
8322 cf_path_prog="`basename $cf_temp`"
8324 elif test -z "$cf_path_args" ; then
8325 cf_path_args="$cf_temp"
8327 cf_path_args="$cf_path_args $cf_temp"
8332 if test -n "$cf_path_prog" ; then
8334 echo "${as_me:-configure}:8334: testing defining path for ${cf_path_prog} ..." 1>&5
8336 cat >>confdefs.h <<EOF
8337 #define TIC_PATH "$cf_path_prog"
8340 test -n "$cf_path_args" &&
8341 cat >>confdefs.h <<EOF
8342 #define TIC_ARGS "$cf_path_args"
8349 { echo "$as_me:8349: WARNING: no tic program found for fallbacks" >&5
8350 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8355 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8356 if test "${with_infocmp_path+set}" = set; then
8357 withval="$with_infocmp_path"
8358 echo "$as_me:8358: checking for infocmp program for fallbacks" >&5
8359 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8361 echo "$as_me:8361: result: $INFOCMP" >&5
8362 echo "${ECHO_T}$INFOCMP" >&6
8364 if test "x$prefix" != xNONE; then
8365 cf_path_syntax="$prefix"
8367 cf_path_syntax="$ac_default_prefix"
8375 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8377 (.\${*prefix}*|.\${*dir}*)
8378 eval INFOCMP="$INFOCMP"
8381 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8386 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8389 { { echo "$as_me:8389: error: expected a pathname, not \"$INFOCMP\"" >&5
8390 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8391 { (exit 1); exit 1; }; }
8397 test -z "$INFOCMP" && INFOCMP=infocmp
8398 for ac_prog in $INFOCMP infocmp
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 echo "$as_me:8402: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8404 if test "${ac_cv_path_INFOCMP+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8412 ac_save_IFS=$IFS; IFS=$ac_path_separator
8413 ac_dummy="$PATH:/usr/local/ncurses/bin"
8414 for ac_dir in $ac_dummy; do
8416 test -z "$ac_dir" && ac_dir=.
8417 if $as_executable_p "$ac_dir/$ac_word"; then
8418 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8419 echo "$as_me:8419: found $ac_dir/$ac_word" >&5
8427 INFOCMP=$ac_cv_path_INFOCMP
8429 if test -n "$INFOCMP"; then
8430 echo "$as_me:8430: result: $INFOCMP" >&5
8431 echo "${ECHO_T}$INFOCMP" >&6
8433 echo "$as_me:8433: result: no" >&5
8434 echo "${ECHO_T}no" >&6
8437 test -n "$INFOCMP" && break
8439 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8443 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8444 for cf_temp in $ac_cv_path_INFOCMP
8446 if test -z "$cf_path_prog" ; then
8447 if test "$with_full_paths" = yes ; then
8449 if test "x$prefix" != xNONE; then
8450 cf_path_syntax="$prefix"
8452 cf_path_syntax="$ac_default_prefix"
8460 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8462 (.\${*prefix}*|.\${*dir}*)
8463 eval cf_temp="$cf_temp"
8466 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8471 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8478 cf_path_prog="$cf_temp"
8480 cf_path_prog="`basename $cf_temp`"
8482 elif test -z "$cf_path_args" ; then
8483 cf_path_args="$cf_temp"
8485 cf_path_args="$cf_path_args $cf_temp"
8490 if test -n "$cf_path_prog" ; then
8492 echo "${as_me:-configure}:8492: testing defining path for ${cf_path_prog} ..." 1>&5
8494 cat >>confdefs.h <<EOF
8495 #define INFOCMP_PATH "$cf_path_prog"
8498 test -n "$cf_path_args" &&
8499 cat >>confdefs.h <<EOF
8500 #define INFOCMP_ARGS "$cf_path_args"
8505 if test -z "$INFOCMP"
8507 { echo "$as_me:8507: WARNING: no infocmp program found for fallbacks" >&5
8508 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8515 : ${INFOCMP:=infocmp}
8518 echo "$as_me:8518: checking if you want modern xterm or antique" >&5
8519 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8521 # Check whether --with-xterm-new or --without-xterm-new was given.
8522 if test "${with_xterm_new+set}" = set; then
8523 withval="$with_xterm_new"
8524 with_xterm_new=$withval
8528 case $with_xterm_new in
8529 (no) with_xterm_new=xterm-old;;
8530 (*) with_xterm_new=xterm-new;;
8532 echo "$as_me:8532: result: $with_xterm_new" >&5
8533 echo "${ECHO_T}$with_xterm_new" >&6
8534 WHICH_XTERM=$with_xterm_new
8536 echo "$as_me:8536: checking if xterm backspace sends BS or DEL" >&5
8537 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8539 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8540 if test "${with_xterm_kbs+set}" = set; then
8541 withval="$with_xterm_kbs"
8542 with_xterm_kbs=$withval
8546 case x$with_xterm_kbs in
8547 (xyes|xno|xBS|xbs|x8)
8554 with_xterm_kbs=$withval
8557 echo "$as_me:8557: result: $with_xterm_kbs" >&5
8558 echo "${ECHO_T}$with_xterm_kbs" >&6
8559 XTERM_KBS=$with_xterm_kbs
8562 if test "$use_database" = no ; then
8563 TERMINFO="${datadir}/terminfo"
8567 echo "$as_me:8567: checking for list of terminfo directories" >&5
8568 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8570 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8571 if test "${with_terminfo_dirs+set}" = set; then
8572 withval="$with_terminfo_dirs"
8575 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8577 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8579 for cf_src_path in $withval
8582 if test "x$prefix" != xNONE; then
8583 cf_path_syntax="$prefix"
8585 cf_path_syntax="$ac_default_prefix"
8588 case ".$cf_src_path" in
8593 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8595 (.\${*prefix}*|.\${*dir}*)
8596 eval cf_src_path="$cf_src_path"
8597 case ".$cf_src_path" in
8599 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8604 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8607 { { echo "$as_me:8607: error: expected a pathname, not \"$cf_src_path\"" >&5
8608 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8609 { (exit 1); exit 1; }; }
8613 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8614 cf_dst_path="${cf_dst_path}${cf_src_path}"
8618 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8619 # so we have to check/work around. We do prefer the result of "eval"...
8620 eval cf_dst_eval="$cf_dst_path"
8621 case "x$cf_dst_eval" in
8623 TERMINFO_DIRS=$cf_dst_path
8626 TERMINFO_DIRS="$cf_dst_eval"
8630 echo "$as_me:8630: result: $TERMINFO_DIRS" >&5
8631 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8632 test -n "$TERMINFO_DIRS" &&
8633 cat >>confdefs.h <<EOF
8634 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8637 case "x$TERMINFO" in
8639 { echo "$as_me:8639: WARNING: ignoring non-directory/file TERMINFO value" >&5
8640 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
8645 echo "$as_me:8645: checking for default terminfo directory" >&5
8646 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8648 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8649 if test "${with_default_terminfo_dir+set}" = set; then
8650 withval="$with_default_terminfo_dir"
8653 withval="${TERMINFO:-${datadir}/terminfo}"
8654 fi; if test -n "${datadir}/terminfo" ; then
8656 if test "x$prefix" != xNONE; then
8657 cf_path_syntax="$prefix"
8659 cf_path_syntax="$ac_default_prefix"
8667 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8669 (.\${*prefix}*|.\${*dir}*)
8670 eval withval="$withval"
8673 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8678 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8681 { { echo "$as_me:8681: error: expected a pathname, not \"$withval\"" >&5
8682 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8683 { (exit 1); exit 1; }; }
8688 eval TERMINFO="$withval"
8690 echo "$as_me:8690: result: $TERMINFO" >&5
8691 echo "${ECHO_T}$TERMINFO" >&6
8693 cat >>confdefs.h <<EOF
8694 #define TERMINFO "$TERMINFO"
8699 ### use option --disable-big-core to make tic run on small machines
8700 ### We need 4Mb, check if we can allocate 50% more than that.
8701 echo "$as_me:8701: checking if big-core option selected" >&5
8702 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8704 # Check whether --enable-big-core or --disable-big-core was given.
8705 if test "${enable_big_core+set}" = set; then
8706 enableval="$enable_big_core"
8707 with_big_core=$enableval
8709 if test "$cross_compiling" = yes; then
8712 cat >conftest.$ac_ext <<_ACEOF
8713 #line 8713 "configure"
8714 #include "confdefs.h"
8719 unsigned long n = 6000000L;
8720 char *s = malloc(n);
8723 ${cf_cv_main_return:-return}(s == 0);
8726 rm -f conftest$ac_exeext
8727 if { (eval echo "$as_me:8727: \"$ac_link\"") >&5
8728 (eval $ac_link) 2>&5
8730 echo "$as_me:8730: \$? = $ac_status" >&5
8731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8732 { (eval echo "$as_me:8732: \"$ac_try\"") >&5
8735 echo "$as_me:8735: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8739 echo "$as_me: program exited with status $ac_status" >&5
8740 echo "$as_me: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8744 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8747 echo "$as_me:8747: result: $with_big_core" >&5
8748 echo "${ECHO_T}$with_big_core" >&6
8749 test "x$with_big_core" = "xyes" &&
8750 cat >>confdefs.h <<\EOF
8751 #define HAVE_BIG_CORE 1
8754 ### ISO C only guarantees 512-char strings, we have tables which load faster
8755 ### when constructed using "big" strings. More than the C compiler, the awk
8756 ### program is a limit on most vendor UNIX systems. Check that we can build.
8757 echo "$as_me:8757: checking if big-strings option selected" >&5
8758 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
8760 # Check whether --enable-big-strings or --disable-big-strings was given.
8761 if test "${enable_big_strings+set}" = set; then
8762 enableval="$enable_big_strings"
8763 with_big_strings=$enableval
8768 eval with_big_strings=no
8771 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
8772 | $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
8773 eval with_big_strings=yes
8775 eval with_big_strings=no
8781 echo "$as_me:8781: result: $with_big_strings" >&5
8782 echo "${ECHO_T}$with_big_strings" >&6
8785 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
8787 ### use option --enable-termcap to compile in the termcap fallback support
8788 echo "$as_me:8788: checking if you want termcap-fallback support" >&5
8789 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
8791 # Check whether --enable-termcap or --disable-termcap was given.
8792 if test "${enable_termcap+set}" = set; then
8793 enableval="$enable_termcap"
8794 with_termcap=$enableval
8798 echo "$as_me:8798: result: $with_termcap" >&5
8799 echo "${ECHO_T}$with_termcap" >&6
8801 NCURSES_USE_TERMCAP=0
8802 if test "x$with_termcap" != "xyes" ; then
8803 if test "$use_database" = no ; then
8804 if test -z "$with_fallback" ; then
8805 { { echo "$as_me:8805: error: You have disabled the database w/o specifying fallbacks" >&5
8806 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
8807 { (exit 1); exit 1; }; }
8811 cat >>confdefs.h <<\EOF
8812 #define PURE_TERMINFO 1
8817 if test "$with_ticlib" != no ; then
8818 { { echo "$as_me:8818: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
8819 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
8820 { (exit 1); exit 1; }; }
8823 NCURSES_USE_TERMCAP=1
8824 echo "$as_me:8824: checking for list of termcap files" >&5
8825 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
8827 # Check whether --with-termpath or --without-termpath was given.
8828 if test "${with_termpath+set}" = set; then
8829 withval="$with_termpath"
8832 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
8834 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8836 for cf_src_path in $withval
8839 if test "x$prefix" != xNONE; then
8840 cf_path_syntax="$prefix"
8842 cf_path_syntax="$ac_default_prefix"
8845 case ".$cf_src_path" in
8850 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8852 (.\${*prefix}*|.\${*dir}*)
8853 eval cf_src_path="$cf_src_path"
8854 case ".$cf_src_path" in
8856 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8861 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8864 { { echo "$as_me:8864: error: expected a pathname, not \"$cf_src_path\"" >&5
8865 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8866 { (exit 1); exit 1; }; }
8870 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8871 cf_dst_path="${cf_dst_path}${cf_src_path}"
8875 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8876 # so we have to check/work around. We do prefer the result of "eval"...
8877 eval cf_dst_eval="$cf_dst_path"
8878 case "x$cf_dst_eval" in
8880 TERMPATH=$cf_dst_path
8883 TERMPATH="$cf_dst_eval"
8887 echo "$as_me:8887: result: $TERMPATH" >&5
8888 echo "${ECHO_T}$TERMPATH" >&6
8889 test -n "$TERMPATH" &&
8890 cat >>confdefs.h <<EOF
8891 #define TERMPATH "$TERMPATH"
8894 ### use option --enable-getcap to use a hacked getcap for reading termcaps
8895 echo "$as_me:8895: checking if fast termcap-loader is needed" >&5
8896 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
8898 # Check whether --enable-getcap or --disable-getcap was given.
8899 if test "${enable_getcap+set}" = set; then
8900 enableval="$enable_getcap"
8901 with_getcap=$enableval
8905 echo "$as_me:8905: result: $with_getcap" >&5
8906 echo "${ECHO_T}$with_getcap" >&6
8907 test "x$with_getcap" = "xyes" &&
8908 cat >>confdefs.h <<\EOF
8909 #define USE_GETCAP 1
8912 echo "$as_me:8912: checking if translated termcaps will be cached in ~/.terminfo" >&5
8913 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
8915 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
8916 if test "${enable_getcap_cache+set}" = set; then
8917 enableval="$enable_getcap_cache"
8918 with_getcap_cache=$enableval
8920 with_getcap_cache=no
8922 echo "$as_me:8922: result: $with_getcap_cache" >&5
8923 echo "${ECHO_T}$with_getcap_cache" >&6
8924 test "x$with_getcap_cache" = "xyes" &&
8925 cat >>confdefs.h <<\EOF
8926 #define USE_GETCAP_CACHE 1
8931 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
8932 echo "$as_me:8932: checking if ~/.terminfo is wanted" >&5
8933 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
8935 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
8936 if test "${enable_home_terminfo+set}" = set; then
8937 enableval="$enable_home_terminfo"
8938 with_home_terminfo=$enableval
8940 with_home_terminfo=yes
8942 echo "$as_me:8942: result: $with_home_terminfo" >&5
8943 echo "${ECHO_T}$with_home_terminfo" >&6
8944 test "x$with_home_terminfo" = "xyes" &&
8945 cat >>confdefs.h <<\EOF
8946 #define USE_HOME_TERMINFO 1
8949 echo "$as_me:8949: checking if you want to use restricted environment when running as root" >&5
8950 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
8952 # Check whether --enable-root-environ or --disable-root-environ was given.
8953 if test "${enable_root_environ+set}" = set; then
8954 enableval="$enable_root_environ"
8955 with_root_environ=$enableval
8957 with_root_environ=yes
8959 echo "$as_me:8959: result: $with_root_environ" >&5
8960 echo "${ECHO_T}$with_root_environ" >&6
8961 test "x$with_root_environ" = xyes &&
8962 cat >>confdefs.h <<\EOF
8963 #define USE_ROOT_ENVIRON 1
8966 ### Use option --enable-symlinks to make tic use symlinks, not hard links
8967 ### to reduce storage requirements for the terminfo database.
8973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8974 echo "$as_me:8974: checking for $ac_header" >&5
8975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8980 #line 8980 "configure"
8981 #include "confdefs.h"
8982 #include <$ac_header>
8984 if { (eval echo "$as_me:8984: \"$ac_cpp conftest.$ac_ext\"") >&5
8985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8987 egrep -v '^ *\+' conftest.er1 >conftest.err
8989 cat conftest.err >&5
8990 echo "$as_me:8990: \$? = $ac_status" >&5
8991 (exit $ac_status); } >/dev/null; then
8992 if test -s conftest.err; then
8993 ac_cpp_err=$ac_c_preproc_warn_flag
9000 if test -z "$ac_cpp_err"; then
9001 eval "$as_ac_Header=yes"
9003 echo "$as_me: failed program was:" >&5
9004 cat conftest.$ac_ext >&5
9005 eval "$as_ac_Header=no"
9007 rm -f conftest.err conftest.$ac_ext
9009 echo "$as_me:9009: result: `eval echo '${'$as_ac_Header'}'`" >&5
9010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9012 cat >>confdefs.h <<EOF
9013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9024 echo "$as_me:9024: checking for $ac_func" >&5
9025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9026 if eval "test \"\${$as_ac_var+set}\" = set"; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 cat >conftest.$ac_ext <<_ACEOF
9030 #line 9030 "configure"
9031 #include "confdefs.h"
9032 #define $ac_func autoconf_temporary
9033 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042 char $ac_func (void);
9048 /* The GNU C library defines stubs for functions which it implements
9049 to always fail with ENOSYS. Some functions are actually named
9050 something starting with __ and the normal name is an alias. */
9051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9052 #error found stub for $ac_func
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (eval echo "$as_me:9061: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>&5
9064 echo "$as_me:9064: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:9067: \"$ac_try\"") >&5
9070 echo "$as_me:9070: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 eval "$as_ac_var=yes"
9074 echo "$as_me: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9076 eval "$as_ac_var=no"
9078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9080 echo "$as_me:9080: result: `eval echo '${'$as_ac_var'}'`" >&5
9081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9082 if test `eval echo '${'$as_ac_var'}'` = yes; then
9083 cat >>confdefs.h <<EOF
9084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9090 if test "$cross_compiling" = yes ; then
9096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9097 echo "$as_me:9097: checking for $ac_func" >&5
9098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9099 if eval "test \"\${$as_ac_var+set}\" = set"; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9103 #line 9103 "configure"
9104 #include "confdefs.h"
9105 #define $ac_func autoconf_temporary
9106 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9113 /* We use char because int might match the return type of a gcc2
9114 builtin and then its argument prototype would still apply. */
9115 char $ac_func (void);
9121 /* The GNU C library defines stubs for functions which it implements
9122 to always fail with ENOSYS. Some functions are actually named
9123 something starting with __ and the normal name is an alias. */
9124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9125 #error found stub for $ac_func
9133 rm -f conftest.$ac_objext conftest$ac_exeext
9134 if { (eval echo "$as_me:9134: \"$ac_link\"") >&5
9135 (eval $ac_link) 2>&5
9137 echo "$as_me:9137: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:9140: \"$ac_try\"") >&5
9143 echo "$as_me:9143: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 eval "$as_ac_var=yes"
9147 echo "$as_me: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9149 eval "$as_ac_var=no"
9151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9153 echo "$as_me:9153: result: `eval echo '${'$as_ac_var'}'`" >&5
9154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9155 if test `eval echo '${'$as_ac_var'}'` = yes; then
9156 cat >>confdefs.h <<EOF
9157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9164 echo "$as_me:9164: checking if link/symlink functions work" >&5
9165 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9166 if test "${cf_cv_link_funcs+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 for cf_func in link symlink ; do
9172 if test "$cross_compiling" = yes; then
9174 eval 'ac_cv_func_'$cf_func'=error'
9176 cat >conftest.$ac_ext <<_ACEOF
9177 #line 9177 "configure"
9178 #include "confdefs.h"
9180 #include <sys/types.h>
9181 #include <sys/stat.h>
9182 #ifdef HAVE_UNISTD_H
9188 char *src = "config.log";
9189 char *dst = "conftest.chk";
9194 fail = ($cf_func("config.log", "conftest.chk") < 0)
9195 || (stat(dst, &dst_sb) < 0)
9196 || (dst_sb.st_mtime != src_sb.st_mtime);
9202 ${cf_cv_main_return:-return} (fail);
9206 rm -f conftest$ac_exeext
9207 if { (eval echo "$as_me:9207: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>&5
9210 echo "$as_me:9210: \$? = $ac_status" >&5
9211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9212 { (eval echo "$as_me:9212: \"$ac_try\"") >&5
9215 echo "$as_me:9215: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9218 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9219 eval 'ac_cv_func_'$cf_func'=yes'
9221 echo "$as_me: program exited with status $ac_status" >&5
9222 echo "$as_me: failed program was:" >&5
9223 cat conftest.$ac_ext >&5
9225 eval 'ac_cv_func_'$cf_func'=no'
9227 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9230 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9233 echo "$as_me:9233: result: $cf_cv_link_funcs" >&5
9234 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9235 test "$ac_cv_func_link" = yes &&
9236 cat >>confdefs.h <<\EOF
9240 test "$ac_cv_func_symlink" = yes &&
9241 cat >>confdefs.h <<\EOF
9242 #define HAVE_SYMLINK 1
9250 # soft links (symbolic links) are useful for some systems where hard links do
9251 # not work, or to make it simpler to copy terminfo trees around.
9252 if test "x$ac_cv_func_symlink" = xyes ; then
9253 echo "$as_me:9253: checking if tic should use symbolic links" >&5
9254 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9256 # Check whether --enable-symlinks or --disable-symlinks was given.
9257 if test "${enable_symlinks+set}" = set; then
9258 enableval="$enable_symlinks"
9259 with_symlinks=$enableval
9263 echo "$as_me:9263: result: $with_symlinks" >&5
9264 echo "${ECHO_T}$with_symlinks" >&6
9267 # If we have hard links and did not choose to use soft links instead, there is
9268 # no reason to make this choice optional - use the hard links.
9269 if test "$with_symlinks" = no ; then
9270 echo "$as_me:9270: checking if tic should use hard links" >&5
9271 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9272 if test "x$ac_cv_func_link" = xyes ; then
9277 echo "$as_me:9277: result: $with_links" >&5
9278 echo "${ECHO_T}$with_links" >&6
9281 test "x$with_links" = xyes &&
9282 cat >>confdefs.h <<\EOF
9286 test "x$with_symlinks" = xyes &&
9287 cat >>confdefs.h <<\EOF
9288 #define USE_SYMLINKS 1
9291 ### use option --enable-broken-linker to force on use of broken-linker support
9293 echo "$as_me:9293: checking if you want broken-linker support code" >&5
9294 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9296 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9297 if test "${enable_broken_linker+set}" = set; then
9298 enableval="$enable_broken_linker"
9299 with_broken_linker=$enableval
9301 with_broken_linker=no
9303 echo "$as_me:9303: result: $with_broken_linker" >&5
9304 echo "${ECHO_T}$with_broken_linker" >&6
9306 : ${BROKEN_LINKER:=0}
9307 if test "x$with_broken_linker" = xyes ; then
9309 cat >>confdefs.h <<\EOF
9310 #define BROKEN_LINKER 1
9316 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9317 echo "$as_me:9317: checking if tputs should process BSD-style prefix padding" >&5
9318 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9320 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9321 if test "${enable_bsdpad+set}" = set; then
9322 enableval="$enable_bsdpad"
9323 with_bsdpad=$enableval
9327 echo "$as_me:9327: result: $with_bsdpad" >&5
9328 echo "${ECHO_T}$with_bsdpad" >&6
9329 test "x$with_bsdpad" = xyes &&
9330 cat >>confdefs.h <<\EOF
9334 ### use option --enable-widec to turn on use of wide-character support
9343 # Check to define _XOPEN_SOURCE "automatically"
9344 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9346 echo "$as_me:9346: checking if the POSIX test-macros are already defined" >&5
9347 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9348 if test "${cf_cv_posix_visible+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9353 #line 9353 "configure"
9354 #include "confdefs.h"
9360 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9361 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9362 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9363 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9364 #error conflicting symbols found
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:9372: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>&5
9375 echo "$as_me:9375: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -s conftest.$ac_objext'
9378 { (eval echo "$as_me:9378: \"$ac_try\"") >&5
9381 echo "$as_me:9381: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 cf_cv_posix_visible=no
9385 echo "$as_me: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9387 cf_cv_posix_visible=yes
9389 rm -f conftest.$ac_objext conftest.$ac_ext
9392 echo "$as_me:9392: result: $cf_cv_posix_visible" >&5
9393 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9395 if test "$cf_cv_posix_visible" = no; then
9398 cf_POSIX_C_SOURCE=199506L
9403 cf_xopen_source="-D_ALL_SOURCE"
9409 cf_xopen_source="-D_APPLE_C_SOURCE"
9412 cf_xopen_source="-D_DARWIN_C_SOURCE"
9415 (freebsd*|dragonfly*|midnightbsd*)
9416 # 5.x headers associate
9417 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9418 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9419 cf_POSIX_C_SOURCE=200112L
9421 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9424 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9427 cf_xopen_source="-D_HPUX_SOURCE"
9430 cf_xopen_source="-D_SGI_SOURCE"
9433 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9435 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9437 echo "$as_me:9437: checking if this is the GNU C library" >&5
9438 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9439 if test "${cf_cv_gnu_library+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 cat >conftest.$ac_ext <<_ACEOF
9444 #line 9444 "configure"
9445 #include "confdefs.h"
9446 #include <sys/types.h>
9451 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9453 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9456 # error not GNU C library
9462 rm -f conftest.$ac_objext
9463 if { (eval echo "$as_me:9463: \"$ac_compile\"") >&5
9464 (eval $ac_compile) 2>&5
9466 echo "$as_me:9466: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -s conftest.$ac_objext'
9469 { (eval echo "$as_me:9469: \"$ac_try\"") >&5
9472 echo "$as_me:9472: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 cf_cv_gnu_library=yes
9476 echo "$as_me: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 cf_cv_gnu_library=no
9480 rm -f conftest.$ac_objext conftest.$ac_ext
9483 echo "$as_me:9483: result: $cf_cv_gnu_library" >&5
9484 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9486 if test x$cf_cv_gnu_library = xyes; then
9488 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9489 # was changed to help a little. newlib incorporated the change about 4
9491 echo "$as_me:9491: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9492 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9493 if test "${cf_cv_gnu_library_219+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9500 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9502 cat >conftest.$ac_ext <<_ACEOF
9503 #line 9503 "configure"
9504 #include "confdefs.h"
9505 #include <sys/types.h>
9510 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9512 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9515 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9521 rm -f conftest.$ac_objext
9522 if { (eval echo "$as_me:9522: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>&5
9525 echo "$as_me:9525: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try='test -s conftest.$ac_objext'
9528 { (eval echo "$as_me:9528: \"$ac_try\"") >&5
9531 echo "$as_me:9531: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 cf_cv_gnu_library_219=yes
9535 echo "$as_me: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 cf_cv_gnu_library_219=no
9539 rm -f conftest.$ac_objext conftest.$ac_ext
9543 echo "$as_me:9543: result: $cf_cv_gnu_library_219" >&5
9544 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9546 if test "x$cf_cv_gnu_library_219" = xyes; then
9548 echo "$as_me:9548: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9549 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9550 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 cf_new_extra_cppflags=
9559 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9561 case $cf_fix_cppflags in
9563 case $cf_add_cflags in
9564 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9565 case $cf_add_cflags in
9567 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9569 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9570 && test -z "${cf_tst_cflags}" \
9571 && cf_fix_cppflags=yes
9573 if test $cf_fix_cppflags = yes ; then
9575 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9576 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9579 elif test "${cf_tst_cflags}" = "\"'" ; then
9581 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9582 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9592 case $cf_add_cflags in
9594 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9596 CPPFLAGS=`echo "$CPPFLAGS" | \
9597 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9598 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9603 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9604 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9611 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9612 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9619 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9620 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9622 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9624 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9625 && test -z "${cf_tst_cflags}" \
9626 && cf_fix_cppflags=no
9631 if test -n "$cf_new_cflags" ; then
9633 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9634 CFLAGS="${CFLAGS}$cf_new_cflags"
9638 if test -n "$cf_new_cppflags" ; then
9640 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9641 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9645 if test -n "$cf_new_extra_cppflags" ; then
9647 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9648 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 #line 9653 "configure"
9654 #include "confdefs.h"
9657 #include <sys/types.h>
9663 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
9666 # error GNU C library is too old
9672 rm -f conftest.$ac_objext
9673 if { (eval echo "$as_me:9673: \"$ac_compile\"") >&5
9674 (eval $ac_compile) 2>&5
9676 echo "$as_me:9676: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:9679: \"$ac_try\"") >&5
9682 echo "$as_me:9682: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 cf_cv_gnu_dftsrc_219=yes
9686 echo "$as_me: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 cf_cv_gnu_dftsrc_219=no
9690 rm -f conftest.$ac_objext conftest.$ac_ext
9693 echo "$as_me:9693: result: $cf_cv_gnu_dftsrc_219" >&5
9694 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9695 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9697 cf_cv_gnu_dftsrc_219=maybe
9700 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9702 echo "$as_me:9702: checking if we must define _GNU_SOURCE" >&5
9703 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9704 if test "${cf_cv_gnu_source+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9709 #line 9709 "configure"
9710 #include "confdefs.h"
9711 #include <sys/types.h>
9716 #ifndef _XOPEN_SOURCE
9717 #error expected _XOPEN_SOURCE to be defined
9723 rm -f conftest.$ac_objext
9724 if { (eval echo "$as_me:9724: \"$ac_compile\"") >&5
9725 (eval $ac_compile) 2>&5
9727 echo "$as_me:9727: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (eval echo "$as_me:9730: \"$ac_try\"") >&5
9733 echo "$as_me:9733: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9737 echo "$as_me: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9744 cf_new_extra_cppflags=
9746 for cf_add_cflags in -D_GNU_SOURCE
9748 case $cf_fix_cppflags in
9750 case $cf_add_cflags in
9751 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9752 case $cf_add_cflags in
9754 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9756 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9757 && test -z "${cf_tst_cflags}" \
9758 && cf_fix_cppflags=yes
9760 if test $cf_fix_cppflags = yes ; then
9762 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9763 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9766 elif test "${cf_tst_cflags}" = "\"'" ; then
9768 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9769 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9779 case $cf_add_cflags in
9781 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9783 CPPFLAGS=`echo "$CPPFLAGS" | \
9784 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9785 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9790 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9791 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9798 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9799 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9806 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9807 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9809 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9811 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9812 && test -z "${cf_tst_cflags}" \
9813 && cf_fix_cppflags=no
9818 if test -n "$cf_new_cflags" ; then
9820 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9821 CFLAGS="${CFLAGS}$cf_new_cflags"
9825 if test -n "$cf_new_cppflags" ; then
9827 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9828 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9832 if test -n "$cf_new_extra_cppflags" ; then
9834 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9835 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9839 cat >conftest.$ac_ext <<_ACEOF
9840 #line 9840 "configure"
9841 #include "confdefs.h"
9842 #include <sys/types.h>
9847 #ifdef _XOPEN_SOURCE
9848 #error expected _XOPEN_SOURCE to be undefined
9854 rm -f conftest.$ac_objext
9855 if { (eval echo "$as_me:9855: \"$ac_compile\"") >&5
9856 (eval $ac_compile) 2>&5
9858 echo "$as_me:9858: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -s conftest.$ac_objext'
9861 { (eval echo "$as_me:9861: \"$ac_try\"") >&5
9864 echo "$as_me:9864: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9868 echo "$as_me: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9870 cf_cv_gnu_source=yes
9872 rm -f conftest.$ac_objext conftest.$ac_ext
9876 rm -f conftest.$ac_objext conftest.$ac_ext
9879 echo "$as_me:9879: result: $cf_cv_gnu_source" >&5
9880 echo "${ECHO_T}$cf_cv_gnu_source" >&6
9882 if test "$cf_cv_gnu_source" = yes
9884 echo "$as_me:9884: checking if we should also define _DEFAULT_SOURCE" >&5
9885 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
9886 if test "${cf_cv_default_source+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9891 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
9893 cat >conftest.$ac_ext <<_ACEOF
9894 #line 9894 "configure"
9895 #include "confdefs.h"
9896 #include <sys/types.h>
9901 #ifdef _DEFAULT_SOURCE
9902 #error expected _DEFAULT_SOURCE to be undefined
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:9909: \"$ac_compile\"") >&5
9910 (eval $ac_compile) 2>&5
9912 echo "$as_me:9912: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:9915: \"$ac_try\"") >&5
9918 echo "$as_me:9918: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 cf_cv_default_source=no
9922 echo "$as_me: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 cf_cv_default_source=yes
9926 rm -f conftest.$ac_objext conftest.$ac_ext
9929 echo "$as_me:9929: result: $cf_cv_default_source" >&5
9930 echo "${ECHO_T}$cf_cv_default_source" >&6
9931 if test "$cf_cv_default_source" = yes
9934 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9935 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9945 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
9948 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
9951 if test "$cf_cv_posix_visible" = no; then
9953 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
9955 cf_save_CFLAGS="$CFLAGS"
9956 cf_save_CPPFLAGS="$CPPFLAGS"
9958 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
9959 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9960 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9962 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
9963 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9964 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
9966 echo "$as_me:9966: checking if we should define _POSIX_C_SOURCE" >&5
9967 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
9968 if test "${cf_cv_posix_c_source+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 echo "${as_me:-configure}:9972: testing if the symbol is already defined go no further ..." 1>&5
9974 cat >conftest.$ac_ext <<_ACEOF
9975 #line 9975 "configure"
9976 #include "confdefs.h"
9977 #include <sys/types.h>
9982 #ifndef _POSIX_C_SOURCE
9989 rm -f conftest.$ac_objext
9990 if { (eval echo "$as_me:9990: \"$ac_compile\"") >&5
9991 (eval $ac_compile) 2>&5
9993 echo "$as_me:9993: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -s conftest.$ac_objext'
9996 { (eval echo "$as_me:9996: \"$ac_try\"") >&5
9999 echo "$as_me:9999: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 cf_cv_posix_c_source=no
10003 echo "$as_me: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 cf_want_posix_source=no
10006 case .$cf_POSIX_C_SOURCE in
10008 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10011 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10012 cf_want_posix_source=yes
10015 cf_want_posix_source=yes
10018 if test "$cf_want_posix_source" = yes ; then
10019 cat >conftest.$ac_ext <<_ACEOF
10020 #line 10020 "configure"
10021 #include "confdefs.h"
10022 #include <sys/types.h>
10027 #ifdef _POSIX_SOURCE
10034 rm -f conftest.$ac_objext
10035 if { (eval echo "$as_me:10035: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>&5
10038 echo "$as_me:10038: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -s conftest.$ac_objext'
10041 { (eval echo "$as_me:10041: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:10044: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10048 echo "$as_me: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10050 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10052 rm -f conftest.$ac_objext conftest.$ac_ext
10055 echo "${as_me:-configure}:10055: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10057 CFLAGS="$cf_trim_CFLAGS"
10058 CPPFLAGS="$cf_trim_CPPFLAGS"
10060 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10061 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10063 echo "${as_me:-configure}:10063: testing if the second compile does not leave our definition intact error ..." 1>&5
10065 cat >conftest.$ac_ext <<_ACEOF
10066 #line 10066 "configure"
10067 #include "confdefs.h"
10068 #include <sys/types.h>
10073 #ifndef _POSIX_C_SOURCE
10080 rm -f conftest.$ac_objext
10081 if { (eval echo "$as_me:10081: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>&5
10084 echo "$as_me:10084: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -s conftest.$ac_objext'
10087 { (eval echo "$as_me:10087: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10090 echo "$as_me:10090: \$? = $ac_status" >&5
10091 (exit $ac_status); }; }; then
10094 echo "$as_me: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10096 cf_cv_posix_c_source=no
10098 rm -f conftest.$ac_objext conftest.$ac_ext
10099 CFLAGS="$cf_save_CFLAGS"
10100 CPPFLAGS="$cf_save_CPPFLAGS"
10103 rm -f conftest.$ac_objext conftest.$ac_ext
10106 echo "$as_me:10106: result: $cf_cv_posix_c_source" >&5
10107 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10109 if test "$cf_cv_posix_c_source" != no ; then
10110 CFLAGS="$cf_trim_CFLAGS"
10111 CPPFLAGS="$cf_trim_CPPFLAGS"
10116 cf_new_extra_cppflags=
10118 for cf_add_cflags in $cf_cv_posix_c_source
10120 case $cf_fix_cppflags in
10122 case $cf_add_cflags in
10123 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10124 case $cf_add_cflags in
10126 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10128 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10129 && test -z "${cf_tst_cflags}" \
10130 && cf_fix_cppflags=yes
10132 if test $cf_fix_cppflags = yes ; then
10134 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10135 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10138 elif test "${cf_tst_cflags}" = "\"'" ; then
10140 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10141 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10147 case "$CPPFLAGS" in
10151 case $cf_add_cflags in
10153 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10155 CPPFLAGS=`echo "$CPPFLAGS" | \
10156 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10157 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10162 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10163 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10170 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10171 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10178 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10179 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10181 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10183 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10184 && test -z "${cf_tst_cflags}" \
10185 && cf_fix_cppflags=no
10190 if test -n "$cf_new_cflags" ; then
10192 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10193 CFLAGS="${CFLAGS}$cf_new_cflags"
10197 if test -n "$cf_new_cppflags" ; then
10199 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10200 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10204 if test -n "$cf_new_extra_cppflags" ; then
10206 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10207 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10213 fi # cf_cv_posix_visible
10217 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10220 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10221 cf_xopen_source="-D_BSD_SOURCE"
10222 cf_XOPEN_SOURCE=600
10225 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10228 cf_xopen_source="-D_OSF_SOURCE"
10231 cf_xopen_source="-D_QNX_SOURCE"
10234 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10237 cf_xopen_source="-D__EXTENSIONS__"
10238 cf_cv_xopen_source=broken
10240 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10246 echo "$as_me:10246: checking if we should define _XOPEN_SOURCE" >&5
10247 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10248 if test "${cf_cv_xopen_source+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 cat >conftest.$ac_ext <<_ACEOF
10253 #line 10253 "configure"
10254 #include "confdefs.h"
10256 #include <stdlib.h>
10257 #include <string.h>
10258 #include <sys/types.h>
10264 #ifndef _XOPEN_SOURCE
10271 rm -f conftest.$ac_objext
10272 if { (eval echo "$as_me:10272: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>&5
10275 echo "$as_me:10275: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:10278: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:10281: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 cf_cv_xopen_source=no
10285 echo "$as_me: failed program was:" >&5
10286 cat conftest.$ac_ext >&5
10287 cf_save="$CPPFLAGS"
10289 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10290 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10292 cat >conftest.$ac_ext <<_ACEOF
10293 #line 10293 "configure"
10294 #include "confdefs.h"
10296 #include <stdlib.h>
10297 #include <string.h>
10298 #include <sys/types.h>
10304 #ifdef _XOPEN_SOURCE
10311 rm -f conftest.$ac_objext
10312 if { (eval echo "$as_me:10312: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>&5
10315 echo "$as_me:10315: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -s conftest.$ac_objext'
10318 { (eval echo "$as_me:10318: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:10321: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 cf_cv_xopen_source=no
10325 echo "$as_me: failed program was:" >&5
10326 cat conftest.$ac_ext >&5
10327 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10329 rm -f conftest.$ac_objext conftest.$ac_ext
10330 CPPFLAGS="$cf_save"
10333 rm -f conftest.$ac_objext conftest.$ac_ext
10336 echo "$as_me:10336: result: $cf_cv_xopen_source" >&5
10337 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10339 if test "$cf_cv_xopen_source" != no ; then
10341 CFLAGS=`echo "$CFLAGS" | \
10342 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10343 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10345 CPPFLAGS=`echo "$CPPFLAGS" | \
10346 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10347 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10349 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10354 cf_new_extra_cppflags=
10356 for cf_add_cflags in $cf_temp_xopen_source
10358 case $cf_fix_cppflags in
10360 case $cf_add_cflags in
10361 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10362 case $cf_add_cflags in
10364 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10366 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10367 && test -z "${cf_tst_cflags}" \
10368 && cf_fix_cppflags=yes
10370 if test $cf_fix_cppflags = yes ; then
10372 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10373 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10376 elif test "${cf_tst_cflags}" = "\"'" ; then
10378 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10379 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10385 case "$CPPFLAGS" in
10389 case $cf_add_cflags in
10391 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10393 CPPFLAGS=`echo "$CPPFLAGS" | \
10394 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10395 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10400 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10401 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10408 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10409 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10416 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10417 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10419 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10421 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10422 && test -z "${cf_tst_cflags}" \
10423 && cf_fix_cppflags=no
10428 if test -n "$cf_new_cflags" ; then
10430 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10431 CFLAGS="${CFLAGS}$cf_new_cflags"
10435 if test -n "$cf_new_cppflags" ; then
10437 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10438 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10442 if test -n "$cf_new_extra_cppflags" ; then
10444 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10445 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10451 if test "$cf_cv_posix_visible" = no; then
10453 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10455 cf_save_CFLAGS="$CFLAGS"
10456 cf_save_CPPFLAGS="$CPPFLAGS"
10458 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10459 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10460 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10462 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10463 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10464 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10466 echo "$as_me:10466: checking if we should define _POSIX_C_SOURCE" >&5
10467 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10468 if test "${cf_cv_posix_c_source+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 echo "${as_me:-configure}:10472: testing if the symbol is already defined go no further ..." 1>&5
10474 cat >conftest.$ac_ext <<_ACEOF
10475 #line 10475 "configure"
10476 #include "confdefs.h"
10477 #include <sys/types.h>
10482 #ifndef _POSIX_C_SOURCE
10489 rm -f conftest.$ac_objext
10490 if { (eval echo "$as_me:10490: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>&5
10493 echo "$as_me:10493: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try='test -s conftest.$ac_objext'
10496 { (eval echo "$as_me:10496: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10499 echo "$as_me:10499: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 cf_cv_posix_c_source=no
10503 echo "$as_me: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 cf_want_posix_source=no
10506 case .$cf_POSIX_C_SOURCE in
10508 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10511 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10512 cf_want_posix_source=yes
10515 cf_want_posix_source=yes
10518 if test "$cf_want_posix_source" = yes ; then
10519 cat >conftest.$ac_ext <<_ACEOF
10520 #line 10520 "configure"
10521 #include "confdefs.h"
10522 #include <sys/types.h>
10527 #ifdef _POSIX_SOURCE
10534 rm -f conftest.$ac_objext
10535 if { (eval echo "$as_me:10535: \"$ac_compile\"") >&5
10536 (eval $ac_compile) 2>&5
10538 echo "$as_me:10538: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try='test -s conftest.$ac_objext'
10541 { (eval echo "$as_me:10541: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:10544: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10548 echo "$as_me: failed program was:" >&5
10549 cat conftest.$ac_ext >&5
10550 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10552 rm -f conftest.$ac_objext conftest.$ac_ext
10555 echo "${as_me:-configure}:10555: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10557 CFLAGS="$cf_trim_CFLAGS"
10558 CPPFLAGS="$cf_trim_CPPFLAGS"
10560 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10561 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10563 echo "${as_me:-configure}:10563: testing if the second compile does not leave our definition intact error ..." 1>&5
10565 cat >conftest.$ac_ext <<_ACEOF
10566 #line 10566 "configure"
10567 #include "confdefs.h"
10568 #include <sys/types.h>
10573 #ifndef _POSIX_C_SOURCE
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:10581: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>&5
10584 echo "$as_me:10584: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (eval echo "$as_me:10587: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:10590: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10594 echo "$as_me: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 cf_cv_posix_c_source=no
10598 rm -f conftest.$ac_objext conftest.$ac_ext
10599 CFLAGS="$cf_save_CFLAGS"
10600 CPPFLAGS="$cf_save_CPPFLAGS"
10603 rm -f conftest.$ac_objext conftest.$ac_ext
10606 echo "$as_me:10606: result: $cf_cv_posix_c_source" >&5
10607 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10609 if test "$cf_cv_posix_c_source" != no ; then
10610 CFLAGS="$cf_trim_CFLAGS"
10611 CPPFLAGS="$cf_trim_CPPFLAGS"
10616 cf_new_extra_cppflags=
10618 for cf_add_cflags in $cf_cv_posix_c_source
10620 case $cf_fix_cppflags in
10622 case $cf_add_cflags in
10623 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10624 case $cf_add_cflags in
10626 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10628 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10629 && test -z "${cf_tst_cflags}" \
10630 && cf_fix_cppflags=yes
10632 if test $cf_fix_cppflags = yes ; then
10634 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10635 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10638 elif test "${cf_tst_cflags}" = "\"'" ; then
10640 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10641 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10647 case "$CPPFLAGS" in
10651 case $cf_add_cflags in
10653 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10655 CPPFLAGS=`echo "$CPPFLAGS" | \
10656 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10657 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10662 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10663 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10670 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10671 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10678 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10679 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10681 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10683 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10684 && test -z "${cf_tst_cflags}" \
10685 && cf_fix_cppflags=no
10690 if test -n "$cf_new_cflags" ; then
10692 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10693 CFLAGS="${CFLAGS}$cf_new_cflags"
10697 if test -n "$cf_new_cppflags" ; then
10699 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10700 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10704 if test -n "$cf_new_extra_cppflags" ; then
10706 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10707 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10713 fi # cf_cv_posix_visible
10718 if test -n "$cf_xopen_source" ; then
10723 cf_new_extra_cppflags=
10725 for cf_add_cflags in $cf_xopen_source
10727 case $cf_fix_cppflags in
10729 case $cf_add_cflags in
10730 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10731 case $cf_add_cflags in
10733 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10735 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10736 && test -z "${cf_tst_cflags}" \
10737 && cf_fix_cppflags=yes
10739 if test $cf_fix_cppflags = yes ; then
10741 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10742 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10745 elif test "${cf_tst_cflags}" = "\"'" ; then
10747 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10748 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10754 case "$CPPFLAGS" in
10758 case $cf_add_cflags in
10760 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10762 CPPFLAGS=`echo "$CPPFLAGS" | \
10763 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10764 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10769 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10770 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10777 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10778 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10785 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10786 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10788 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10790 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10791 && test -z "${cf_tst_cflags}" \
10792 && cf_fix_cppflags=no
10797 if test -n "$cf_new_cflags" ; then
10798 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10800 echo "${as_me:-configure}:10800: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10802 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10803 CFLAGS="${CFLAGS}$cf_new_cflags"
10807 if test -n "$cf_new_cppflags" ; then
10808 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10810 echo "${as_me:-configure}:10810: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10812 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10813 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10817 if test -n "$cf_new_extra_cppflags" ; then
10818 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10820 echo "${as_me:-configure}:10820: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10822 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10823 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10829 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
10830 echo "$as_me:10830: checking if _XOPEN_SOURCE really is set" >&5
10831 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
10832 cat >conftest.$ac_ext <<_ACEOF
10833 #line 10833 "configure"
10834 #include "confdefs.h"
10835 #include <stdlib.h>
10840 #ifndef _XOPEN_SOURCE
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:10848: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>&5
10851 echo "$as_me:10851: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -s conftest.$ac_objext'
10854 { (eval echo "$as_me:10854: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10857 echo "$as_me:10857: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 cf_XOPEN_SOURCE_set=yes
10861 echo "$as_me: failed program was:" >&5
10862 cat conftest.$ac_ext >&5
10863 cf_XOPEN_SOURCE_set=no
10865 rm -f conftest.$ac_objext conftest.$ac_ext
10866 echo "$as_me:10866: result: $cf_XOPEN_SOURCE_set" >&5
10867 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
10868 if test $cf_XOPEN_SOURCE_set = yes
10870 cat >conftest.$ac_ext <<_ACEOF
10871 #line 10871 "configure"
10872 #include "confdefs.h"
10873 #include <stdlib.h>
10878 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
10885 rm -f conftest.$ac_objext
10886 if { (eval echo "$as_me:10886: \"$ac_compile\"") >&5
10887 (eval $ac_compile) 2>&5
10889 echo "$as_me:10889: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -s conftest.$ac_objext'
10892 { (eval echo "$as_me:10892: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10895 echo "$as_me:10895: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 cf_XOPEN_SOURCE_set_ok=yes
10899 echo "$as_me: failed program was:" >&5
10900 cat conftest.$ac_ext >&5
10901 cf_XOPEN_SOURCE_set_ok=no
10903 rm -f conftest.$ac_objext conftest.$ac_ext
10904 if test $cf_XOPEN_SOURCE_set_ok = no
10906 { echo "$as_me:10906: WARNING: _XOPEN_SOURCE is lower than requested" >&5
10907 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
10911 echo "$as_me:10911: checking if we should define _XOPEN_SOURCE" >&5
10912 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10913 if test "${cf_cv_xopen_source+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 cat >conftest.$ac_ext <<_ACEOF
10918 #line 10918 "configure"
10919 #include "confdefs.h"
10921 #include <stdlib.h>
10922 #include <string.h>
10923 #include <sys/types.h>
10929 #ifndef _XOPEN_SOURCE
10936 rm -f conftest.$ac_objext
10937 if { (eval echo "$as_me:10937: \"$ac_compile\"") >&5
10938 (eval $ac_compile) 2>&5
10940 echo "$as_me:10940: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (eval echo "$as_me:10943: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:10946: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 cf_cv_xopen_source=no
10950 echo "$as_me: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10952 cf_save="$CPPFLAGS"
10954 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10955 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10957 cat >conftest.$ac_ext <<_ACEOF
10958 #line 10958 "configure"
10959 #include "confdefs.h"
10961 #include <stdlib.h>
10962 #include <string.h>
10963 #include <sys/types.h>
10969 #ifdef _XOPEN_SOURCE
10976 rm -f conftest.$ac_objext
10977 if { (eval echo "$as_me:10977: \"$ac_compile\"") >&5
10978 (eval $ac_compile) 2>&5
10980 echo "$as_me:10980: \$? = $ac_status" >&5
10981 (exit $ac_status); } &&
10982 { ac_try='test -s conftest.$ac_objext'
10983 { (eval echo "$as_me:10983: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10986 echo "$as_me:10986: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 cf_cv_xopen_source=no
10990 echo "$as_me: failed program was:" >&5
10991 cat conftest.$ac_ext >&5
10992 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10994 rm -f conftest.$ac_objext conftest.$ac_ext
10995 CPPFLAGS="$cf_save"
10998 rm -f conftest.$ac_objext conftest.$ac_ext
11001 echo "$as_me:11001: result: $cf_cv_xopen_source" >&5
11002 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11004 if test "$cf_cv_xopen_source" != no ; then
11006 CFLAGS=`echo "$CFLAGS" | \
11007 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11008 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11010 CPPFLAGS=`echo "$CPPFLAGS" | \
11011 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11012 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11014 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11019 cf_new_extra_cppflags=
11021 for cf_add_cflags in $cf_temp_xopen_source
11023 case $cf_fix_cppflags in
11025 case $cf_add_cflags in
11026 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11027 case $cf_add_cflags in
11029 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11031 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11032 && test -z "${cf_tst_cflags}" \
11033 && cf_fix_cppflags=yes
11035 if test $cf_fix_cppflags = yes ; then
11037 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11038 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11041 elif test "${cf_tst_cflags}" = "\"'" ; then
11043 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11044 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11050 case "$CPPFLAGS" in
11054 case $cf_add_cflags in
11056 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11058 CPPFLAGS=`echo "$CPPFLAGS" | \
11059 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11060 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11065 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11066 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11073 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11074 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11081 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11082 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11084 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11087 && test -z "${cf_tst_cflags}" \
11088 && cf_fix_cppflags=no
11093 if test -n "$cf_new_cflags" ; then
11095 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11096 CFLAGS="${CFLAGS}$cf_new_cflags"
11100 if test -n "$cf_new_cppflags" ; then
11102 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11103 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11107 if test -n "$cf_new_extra_cppflags" ; then
11109 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11110 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11118 fi # cf_cv_posix_visible
11120 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11122 # Work around breakage on OS X
11124 echo "$as_me:11124: checking if SIGWINCH is defined" >&5
11125 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11126 if test "${cf_cv_define_sigwinch+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 cat >conftest.$ac_ext <<_ACEOF
11131 #line 11131 "configure"
11132 #include "confdefs.h"
11134 #include <sys/types.h>
11135 #include <sys/signal.h>
11140 int x = SIGWINCH; (void)x
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:11146: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>&5
11149 echo "$as_me:11149: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (eval echo "$as_me:11152: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:11155: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 cf_cv_define_sigwinch=yes
11159 echo "$as_me: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 cat >conftest.$ac_ext <<_ACEOF
11162 #line 11162 "configure"
11163 #include "confdefs.h"
11165 #undef _XOPEN_SOURCE
11166 #undef _POSIX_SOURCE
11167 #undef _POSIX_C_SOURCE
11168 #include <sys/types.h>
11169 #include <sys/signal.h>
11174 int x = SIGWINCH; (void)x
11179 rm -f conftest.$ac_objext
11180 if { (eval echo "$as_me:11180: \"$ac_compile\"") >&5
11181 (eval $ac_compile) 2>&5
11183 echo "$as_me:11183: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -s conftest.$ac_objext'
11186 { (eval echo "$as_me:11186: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:11189: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 cf_cv_define_sigwinch=maybe
11193 echo "$as_me: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11195 cf_cv_define_sigwinch=no
11197 rm -f conftest.$ac_objext conftest.$ac_ext
11200 rm -f conftest.$ac_objext conftest.$ac_ext
11203 echo "$as_me:11203: result: $cf_cv_define_sigwinch" >&5
11204 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11206 if test "$cf_cv_define_sigwinch" = maybe ; then
11207 echo "$as_me:11207: checking for actual SIGWINCH definition" >&5
11208 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11209 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 cf_cv_fixup_sigwinch=unknown
11215 while test $cf_sigwinch != 1
11217 cat >conftest.$ac_ext <<_ACEOF
11218 #line 11218 "configure"
11219 #include "confdefs.h"
11221 #undef _XOPEN_SOURCE
11222 #undef _POSIX_SOURCE
11223 #undef _POSIX_C_SOURCE
11224 #include <sys/types.h>
11225 #include <sys/signal.h>
11231 #if SIGWINCH != $cf_sigwinch
11234 int x = SIGWINCH; (void)x
11239 rm -f conftest.$ac_objext
11240 if { (eval echo "$as_me:11240: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>&5
11243 echo "$as_me:11243: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -s conftest.$ac_objext'
11246 { (eval echo "$as_me:11246: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:11249: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 cf_cv_fixup_sigwinch=$cf_sigwinch
11254 echo "$as_me: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11257 rm -f conftest.$ac_objext conftest.$ac_ext
11259 cf_sigwinch=`expr $cf_sigwinch - 1`
11263 echo "$as_me:11263: result: $cf_cv_fixup_sigwinch" >&5
11264 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11266 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11267 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11271 # Checks for CODESET support.
11273 echo "$as_me:11273: checking for nl_langinfo and CODESET" >&5
11274 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11275 if test "${am_cv_langinfo_codeset+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 cat >conftest.$ac_ext <<_ACEOF
11279 #line 11279 "configure"
11280 #include "confdefs.h"
11281 #include <langinfo.h>
11285 char* cs = nl_langinfo(CODESET); (void)cs
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:11291: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11294 echo "$as_me:11294: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -s conftest$ac_exeext'
11297 { (eval echo "$as_me:11297: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:11300: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 am_cv_langinfo_codeset=yes
11304 echo "$as_me: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 am_cv_langinfo_codeset=no
11308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11311 echo "$as_me:11311: result: $am_cv_langinfo_codeset" >&5
11312 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11313 if test $am_cv_langinfo_codeset = yes; then
11315 cat >>confdefs.h <<\EOF
11316 #define HAVE_LANGINFO_CODESET 1
11321 # use these variables to work around a defect in gcc's fixincludes.
11322 NCURSES_OK_WCHAR_T=
11325 echo "$as_me:11325: checking if you want wide-character code" >&5
11326 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11328 # Check whether --enable-widec or --disable-widec was given.
11329 if test "${enable_widec+set}" = set; then
11330 enableval="$enable_widec"
11331 with_widec=$enableval
11335 echo "$as_me:11335: result: $with_widec" >&5
11336 echo "${ECHO_T}$with_widec" >&6
11338 NCURSES_WCWIDTH_GRAPHICS=1
11340 if test "x$with_widec" = xyes ; then
11341 if test "x$disable_lib_suffixes" = xno ; then
11342 LIB_SUFFIX="w${LIB_SUFFIX}"
11345 cat >>confdefs.h <<\EOF
11346 #define USE_WIDEC_SUPPORT 1
11349 cat >>confdefs.h <<\EOF
11350 #define NCURSES_WIDECHAR 1
11358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11359 echo "$as_me:11359: checking for $ac_header" >&5
11360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 cat >conftest.$ac_ext <<_ACEOF
11365 #line 11365 "configure"
11366 #include "confdefs.h"
11367 #include <$ac_header>
11369 if { (eval echo "$as_me:11369: \"$ac_cpp conftest.$ac_ext\"") >&5
11370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11372 egrep -v '^ *\+' conftest.er1 >conftest.err
11374 cat conftest.err >&5
11375 echo "$as_me:11375: \$? = $ac_status" >&5
11376 (exit $ac_status); } >/dev/null; then
11377 if test -s conftest.err; then
11378 ac_cpp_err=$ac_c_preproc_warn_flag
11385 if test -z "$ac_cpp_err"; then
11386 eval "$as_ac_Header=yes"
11388 echo "$as_me: failed program was:" >&5
11389 cat conftest.$ac_ext >&5
11390 eval "$as_ac_Header=no"
11392 rm -f conftest.err conftest.$ac_ext
11394 echo "$as_me:11394: result: `eval echo '${'$as_ac_Header'}'`" >&5
11395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11397 cat >>confdefs.h <<EOF
11398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11404 echo "$as_me:11404: checking if wchar.h can be used as is" >&5
11405 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11406 if test "${cf_cv_wchar_h_okay+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11411 #line 11411 "configure"
11412 #include "confdefs.h"
11414 #include <stdlib.h>
11415 #ifdef HAVE_WCHAR_H
11418 #ifdef HAVE_WCTYPE_H
11419 #include <wctype.h>
11427 int bar = iswpunct(foo)
11432 rm -f conftest.$ac_objext
11433 if { (eval echo "$as_me:11433: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>&5
11436 echo "$as_me:11436: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:11439: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:11442: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 cf_cv_wchar_h_okay=yes
11446 echo "$as_me: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11448 cf_cv_wchar_h_okay=no
11450 rm -f conftest.$ac_objext conftest.$ac_ext
11452 echo "$as_me:11452: result: $cf_cv_wchar_h_okay" >&5
11453 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11455 if test $cf_cv_wchar_h_okay = no
11458 echo "$as_me:11458: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11459 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line 11461 "configure"
11462 #include "confdefs.h"
11463 #include <sys/types.h>
11469 #ifndef _XOPEN_SOURCE_EXTENDED
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:11477: \"$ac_compile\"") >&5
11478 (eval $ac_compile) 2>&5
11480 echo "$as_me:11480: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -s conftest.$ac_objext'
11483 { (eval echo "$as_me:11483: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:11486: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }; then
11490 echo "$as_me: failed program was:" >&5
11491 cat conftest.$ac_ext >&5
11494 rm -f conftest.$ac_objext conftest.$ac_ext
11495 echo "$as_me:11495: result: $cf_result" >&5
11496 echo "${ECHO_T}$cf_result" >&6
11498 if test "$cf_result" = yes ; then
11499 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11500 elif test "x" != "x" ; then
11501 echo "$as_me:11501: checking checking for compatible value versus " >&5
11502 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
11503 cat >conftest.$ac_ext <<_ACEOF
11504 #line 11504 "configure"
11505 #include "confdefs.h"
11506 #include <sys/types.h>
11512 #if _XOPEN_SOURCE_EXTENDED- < 0
11519 rm -f conftest.$ac_objext
11520 if { (eval echo "$as_me:11520: \"$ac_compile\"") >&5
11521 (eval $ac_compile) 2>&5
11523 echo "$as_me:11523: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -s conftest.$ac_objext'
11526 { (eval echo "$as_me:11526: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11529 echo "$as_me:11529: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11533 echo "$as_me: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11537 rm -f conftest.$ac_objext conftest.$ac_ext
11538 echo "$as_me:11538: result: $cf_result" >&5
11539 echo "${ECHO_T}$cf_result" >&6
11540 if test "$cf_result" = no ; then
11541 # perhaps we can override it - try...
11542 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
11548 echo "$as_me:11548: checking if wcwidth agrees graphics are single-width" >&5
11549 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
11550 if test "${cf_cv_wcwidth_graphics+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 cat >conftest.in <<CF_EOF
11556 0x250c upper left corner
11557 0x2514 lower left corner
11558 0x2510 upper right corner
11559 0x2518 lower right corner
11560 0x251c tee pointing left
11561 0x2524 tee pointing right
11562 0x2534 tee pointing up
11563 0x252c tee pointing down
11564 0x2500 horizontal line
11565 0x2502 vertical line
11566 0x253c large plus or crossover
11570 0x2592 checker board (stipple)
11571 0x00b0 degree symbol
11574 - Teletype 5410v1 symbols
11575 0x2190 arrow pointing left
11576 0x2192 arrow pointing right
11577 0x2193 arrow pointing down
11578 0x2191 arrow pointing up
11579 0x2592 board of squares
11580 0x2603 lantern symbol
11581 0x25ae solid square block
11582 - these defaults were invented for ncurses
11585 0x2264 less-than-or-equal-to
11586 0x2265 greater-than-or-equal-to
11589 0x00a3 pound-sterling symbol
11590 - thick-line-drawing
11591 0x250f upper left corner
11592 0x2517 lower left corner
11593 0x2513 upper right corner
11594 0x251b lower right corner
11595 0x2523 tee pointing left
11596 0x252b tee pointing right
11597 0x253b tee pointing up
11598 0x2533 tee pointing down
11599 0x2501 horizontal line
11600 0x2503 vertical line
11601 0x254b large plus or crossover
11602 - double-line-drawing
11603 0x2554 upper left corner
11604 0x255a lower left corner
11605 0x2557 upper right corner
11606 0x255d lower right corner
11607 0x2563 tee pointing left
11608 0x2560 tee pointing right
11609 0x2569 tee pointing up
11610 0x2566 tee pointing down
11611 0x2550 horizontal line
11612 0x2551 vertical line
11613 0x256c large plus or crossover
11615 if test "$cross_compiling" = yes; then
11616 cf_cv_wcwidth_graphics=unknown
11618 cat >conftest.$ac_ext <<_ACEOF
11619 #line 11619 "configure"
11620 #include "confdefs.h"
11622 #include <locale.h>
11633 char buffer[MY_LEN + 1];
11634 char notes[MY_LEN + 1];
11638 if (setlocale(LC_ALL, "en_US.UTF8") ||
11639 setlocale(LC_ALL, "en_US.UTF-8") ||
11640 setlocale(LC_ALL, "en_US.utf8") ||
11641 setlocale(LC_ALL, "en_US.utf-8")) {
11642 if ((fp = fopen("conftest.in", "r")) != 0) {
11643 while (fgets(buffer, MY_LEN, fp) != 0) {
11644 if (*buffer == '-') {
11645 fprintf(stderr, "\t%s", buffer);
11646 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
11648 if (wcwidth(value) == 1)
11650 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
11652 fprintf(stderr, "?\t%s", buffer);
11657 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
11658 return (totals == passed) ? 0 : 1;
11662 rm -f conftest$ac_exeext
11663 if { (eval echo "$as_me:11663: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>&5
11666 echo "$as_me:11666: \$? = $ac_status" >&5
11667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11668 { (eval echo "$as_me:11668: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:11671: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 cf_cv_wcwidth_graphics=yes
11675 echo "$as_me: program exited with status $ac_status" >&5
11676 echo "$as_me: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11678 cf_cv_wcwidth_graphics=no
11680 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11684 echo "$as_me:11684: result: $cf_cv_wcwidth_graphics" >&5
11685 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11687 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11689 # with_overwrite=no
11690 NCURSES_CH_T=cchar_t
11692 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11695 echo "$as_me:11695: checking for $ac_func" >&5
11696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11697 if eval "test \"\${$as_ac_var+set}\" = set"; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 cat >conftest.$ac_ext <<_ACEOF
11701 #line 11701 "configure"
11702 #include "confdefs.h"
11703 #define $ac_func autoconf_temporary
11704 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11711 /* We use char because int might match the return type of a gcc2
11712 builtin and then its argument prototype would still apply. */
11713 char $ac_func (void);
11719 /* The GNU C library defines stubs for functions which it implements
11720 to always fail with ENOSYS. Some functions are actually named
11721 something starting with __ and the normal name is an alias. */
11722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11723 #error found stub for $ac_func
11726 return $ac_func ();
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:11732: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>&5
11735 echo "$as_me:11735: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -s conftest$ac_exeext'
11738 { (eval echo "$as_me:11738: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:11741: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "$as_ac_var=yes"
11745 echo "$as_me: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11747 eval "$as_ac_var=no"
11749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11751 echo "$as_me:11751: result: `eval echo '${'$as_ac_var'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h <<EOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11761 if test "x$ac_cv_func_putwc" != xyes ; then
11763 echo "$as_me:11763: checking for multibyte character support" >&5
11764 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
11765 if test "${cf_cv_utf8_lib+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 cf_save_LIBS="$LIBS"
11770 cat >conftest.$ac_ext <<_ACEOF
11771 #line 11771 "configure"
11772 #include "confdefs.h"
11774 #include <stdlib.h>
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (eval echo "$as_me:11784: \"$ac_link\"") >&5
11785 (eval $ac_link) 2>&5
11787 echo "$as_me:11787: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (eval echo "$as_me:11790: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:11793: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11797 echo "$as_me: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11800 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
11801 # will be set on completion of the AC_TRY_LINK below.
11802 cf_cv_header_path_utf8=
11803 cf_cv_library_path_utf8=
11805 echo "${as_me:-configure}:11805: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
11807 cf_save_LIBS="$LIBS"
11809 cat >conftest.$ac_ext <<_ACEOF
11810 #line 11810 "configure"
11811 #include "confdefs.h"
11813 #include <libutf8.h>
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (eval echo "$as_me:11823: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>&5
11826 echo "$as_me:11826: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest$ac_exeext'
11829 { (eval echo "$as_me:11829: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:11832: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11835 cf_cv_find_linkage_utf8=yes
11836 cf_cv_header_path_utf8=/usr/include
11837 cf_cv_library_path_utf8=/usr/lib
11840 echo "$as_me: failed program was:" >&5
11841 cat conftest.$ac_ext >&5
11843 LIBS="-lutf8 $cf_save_LIBS"
11845 cat >conftest.$ac_ext <<_ACEOF
11846 #line 11846 "configure"
11847 #include "confdefs.h"
11849 #include <libutf8.h>
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (eval echo "$as_me:11859: \"$ac_link\"") >&5
11860 (eval $ac_link) 2>&5
11862 echo "$as_me:11862: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -s conftest$ac_exeext'
11865 { (eval echo "$as_me:11865: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:11868: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11871 cf_cv_find_linkage_utf8=yes
11872 cf_cv_header_path_utf8=/usr/include
11873 cf_cv_library_path_utf8=/usr/lib
11874 cf_cv_library_file_utf8="-lutf8"
11877 echo "$as_me: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11880 cf_cv_find_linkage_utf8=no
11881 LIBS="$cf_save_LIBS"
11883 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
11885 echo "${as_me:-configure}:11885: testing find linkage for utf8 library ..." 1>&5
11887 echo "${as_me:-configure}:11887: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
11889 cf_save_CPPFLAGS="$CPPFLAGS"
11890 cf_test_CPPFLAGS="$CPPFLAGS"
11894 # collect the current set of include-directories from compiler flags
11895 cf_header_path_list=""
11896 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11897 for cf_header_path in $CPPFLAGS $CFLAGS
11899 case $cf_header_path in
11901 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11903 test "x$cf_header_path" != "xNONE" && \
11904 test -d "$cf_header_path" && \
11906 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11907 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
11908 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
11909 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
11910 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
11911 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
11914 cf_header_path_list="$cf_header_path_list $cf_search"
11920 # add the variations for the package we are looking for
11924 test "x$prefix" != "xNONE" && \
11925 test -d "$prefix" && \
11927 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11928 test -d $prefix/include && cf_search="$cf_search $prefix/include"
11929 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
11930 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
11931 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
11932 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
11935 for cf_subdir_prefix in \
11944 test "x$cf_subdir_prefix" != "x$prefix" && \
11945 test -d "$cf_subdir_prefix" && \
11946 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11947 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
11948 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
11949 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
11950 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
11951 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
11952 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
11957 test "$includedir" != NONE && \
11958 test "$includedir" != "/usr/include" && \
11959 test -d "$includedir" && {
11960 test -d $includedir && cf_search="$cf_search $includedir"
11961 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
11964 test "$oldincludedir" != NONE && \
11965 test "$oldincludedir" != "/usr/include" && \
11966 test -d "$oldincludedir" && {
11967 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
11968 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
11971 cf_search="$cf_search $cf_header_path_list"
11973 for cf_cv_header_path_utf8 in $cf_search
11975 if test -d $cf_cv_header_path_utf8 ; then
11976 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
11978 echo "${as_me:-configure}:11978: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
11980 CPPFLAGS="$cf_save_CPPFLAGS"
11982 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11983 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
11985 cat >conftest.$ac_ext <<_ACEOF
11986 #line 11986 "configure"
11987 #include "confdefs.h"
11989 #include <libutf8.h>
11998 rm -f conftest.$ac_objext
11999 if { (eval echo "$as_me:11999: \"$ac_compile\"") >&5
12000 (eval $ac_compile) 2>&5
12002 echo "$as_me:12002: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -s conftest.$ac_objext'
12005 { (eval echo "$as_me:12005: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:12008: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12011 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12013 echo "${as_me:-configure}:12013: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12015 cf_cv_find_linkage_utf8=maybe
12016 cf_test_CPPFLAGS="$CPPFLAGS"
12019 echo "$as_me: failed program was:" >&5
12020 cat conftest.$ac_ext >&5
12022 CPPFLAGS="$cf_save_CPPFLAGS"
12025 rm -f conftest.$ac_objext conftest.$ac_ext
12029 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12031 echo "${as_me:-configure}:12031: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12033 cf_save_LIBS="$LIBS"
12034 cf_save_LDFLAGS="$LDFLAGS"
12036 if test "$cf_cv_find_linkage_utf8" != yes ; then
12039 cf_library_path_list=""
12040 if test -n "${LDFLAGS}${LIBS}" ; then
12041 for cf_library_path in $LDFLAGS $LIBS
12043 case $cf_library_path in
12045 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12047 test "x$cf_library_path" != "xNONE" && \
12048 test -d "$cf_library_path" && \
12050 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12051 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
12052 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
12053 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12054 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
12055 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12058 cf_library_path_list="$cf_library_path_list $cf_search"
12066 test "x$prefix" != "xNONE" && \
12067 test -d "$prefix" && \
12069 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12070 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
12071 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
12072 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
12073 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
12074 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
12077 for cf_subdir_prefix in \
12086 test "x$cf_subdir_prefix" != "x$prefix" && \
12087 test -d "$cf_subdir_prefix" && \
12088 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
12089 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12090 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
12091 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12092 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12093 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12094 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12099 cf_search="$cf_library_path_list $cf_search"
12101 for cf_cv_library_path_utf8 in $cf_search
12103 if test -d $cf_cv_library_path_utf8 ; then
12104 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12106 echo "${as_me:-configure}:12106: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12108 CPPFLAGS="$cf_test_CPPFLAGS"
12109 LIBS="-lutf8 $cf_save_LIBS"
12110 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12111 cat >conftest.$ac_ext <<_ACEOF
12112 #line 12112 "configure"
12113 #include "confdefs.h"
12115 #include <libutf8.h>
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (eval echo "$as_me:12125: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>&5
12128 echo "$as_me:12128: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (eval echo "$as_me:12131: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12134 echo "$as_me:12134: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12137 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12139 echo "${as_me:-configure}:12139: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12141 cf_cv_find_linkage_utf8=yes
12142 cf_cv_library_file_utf8="-lutf8"
12145 echo "$as_me: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12148 CPPFLAGS="$cf_save_CPPFLAGS"
12149 LIBS="$cf_save_LIBS"
12150 LDFLAGS="$cf_save_LDFLAGS"
12153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12156 CPPFLAGS="$cf_save_CPPFLAGS"
12157 LDFLAGS="$cf_save_LDFLAGS"
12161 cf_cv_find_linkage_utf8=no
12165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12170 LIBS="$cf_save_LIBS"
12172 if test "$cf_cv_find_linkage_utf8" = yes ; then
12173 cf_cv_utf8_lib=add-on
12179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12181 echo "$as_me:12181: result: $cf_cv_utf8_lib" >&5
12182 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12184 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12185 # ncurses/ncursesw:
12186 if test "$cf_cv_utf8_lib" = "add-on" ; then
12188 cat >>confdefs.h <<\EOF
12189 #define HAVE_LIBUTF8_H 1
12192 if test -n "$cf_cv_header_path_utf8" ; then
12193 for cf_add_incdir in $cf_cv_header_path_utf8
12195 while test $cf_add_incdir != /usr/include
12197 if test -d $cf_add_incdir
12200 if test -n "$CFLAGS$CPPFLAGS" ; then
12201 # a loop is needed to ensure we can add subdirs of existing dirs
12202 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12203 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12204 cf_have_incdir=yes; break
12209 if test "$cf_have_incdir" = no ; then
12210 if test "$cf_add_incdir" = /usr/local/include ; then
12211 if test "$GCC" = yes
12213 cf_save_CPPFLAGS=$CPPFLAGS
12215 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12216 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12218 cat >conftest.$ac_ext <<_ACEOF
12219 #line 12219 "configure"
12220 #include "confdefs.h"
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:12231: \"$ac_compile\"") >&5
12232 (eval $ac_compile) 2>&5
12234 echo "$as_me:12234: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:12237: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:12240: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12244 echo "$as_me: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12248 rm -f conftest.$ac_objext conftest.$ac_ext
12249 CPPFLAGS=$cf_save_CPPFLAGS
12254 if test "$cf_have_incdir" = no ; then
12255 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12257 echo "${as_me:-configure}:12257: testing adding $cf_add_incdir to include-path ..." 1>&5
12259 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12261 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
12262 test "$cf_top_incdir" = "$cf_add_incdir" && break
12263 cf_add_incdir="$cf_top_incdir"
12274 if test -n "$cf_cv_library_path_utf8" ; then
12275 for cf_add_libdir in $cf_cv_library_path_utf8
12277 if test $cf_add_libdir = /usr/lib ; then
12279 elif test -d $cf_add_libdir
12282 if test -n "$LDFLAGS$LIBS" ; then
12283 # a loop is needed to ensure we can add subdirs of existing dirs
12284 for cf_test_libdir in $LDFLAGS $LIBS ; do
12285 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12286 cf_have_libdir=yes; break
12290 if test "$cf_have_libdir" = no ; then
12291 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12293 echo "${as_me:-configure}:12293: testing adding $cf_add_libdir to library-path ..." 1>&5
12295 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12301 cf_add_libs="$LIBS"
12304 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12305 # filter duplicates
12306 for cf_add_1lib in $cf_add_0lib; do
12307 for cf_add_2lib in $cf_add_libs; do
12308 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12313 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12315 LIBS="$cf_add_libs"
12319 if test "$cf_cv_utf8_lib" != no ; then
12324 # This is needed on Tru64 5.0 to declare mbstate_t
12325 echo "$as_me:12325: checking if we must include wchar.h to declare mbstate_t" >&5
12326 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12327 if test "${cf_cv_mbstate_t+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12332 #line 12332 "configure"
12333 #include "confdefs.h"
12335 #include <stdlib.h>
12336 #include <stdarg.h>
12338 #ifdef HAVE_LIBUTF8_H
12339 #include <libutf8.h>
12349 rm -f conftest.$ac_objext
12350 if { (eval echo "$as_me:12350: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>&5
12353 echo "$as_me:12353: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -s conftest.$ac_objext'
12356 { (eval echo "$as_me:12356: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12359 echo "$as_me:12359: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12363 echo "$as_me: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 cat >conftest.$ac_ext <<_ACEOF
12366 #line 12366 "configure"
12367 #include "confdefs.h"
12369 #include <stdlib.h>
12370 #include <stdarg.h>
12373 #ifdef HAVE_LIBUTF8_H
12374 #include <libutf8.h>
12384 rm -f conftest.$ac_objext
12385 if { (eval echo "$as_me:12385: \"$ac_compile\"") >&5
12386 (eval $ac_compile) 2>&5
12388 echo "$as_me:12388: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -s conftest.$ac_objext'
12391 { (eval echo "$as_me:12391: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12394 echo "$as_me:12394: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 cf_cv_mbstate_t=yes
12398 echo "$as_me: failed program was:" >&5
12399 cat conftest.$ac_ext >&5
12400 cf_cv_mbstate_t=unknown
12402 rm -f conftest.$ac_objext conftest.$ac_ext
12404 rm -f conftest.$ac_objext conftest.$ac_ext
12406 echo "$as_me:12406: result: $cf_cv_mbstate_t" >&5
12407 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12409 if test "$cf_cv_mbstate_t" = yes ; then
12411 cat >>confdefs.h <<\EOF
12412 #define NEED_WCHAR_H 1
12418 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12419 if test "$cf_cv_mbstate_t" = unknown ; then
12420 NCURSES_MBSTATE_T=1
12423 # This is needed on Tru64 5.0 to declare wchar_t
12424 echo "$as_me:12424: checking if we must include wchar.h to declare wchar_t" >&5
12425 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12426 if test "${cf_cv_wchar_t+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 cat >conftest.$ac_ext <<_ACEOF
12431 #line 12431 "configure"
12432 #include "confdefs.h"
12434 #include <stdlib.h>
12435 #include <stdarg.h>
12437 #ifdef HAVE_LIBUTF8_H
12438 #include <libutf8.h>
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
12464 cat >conftest.$ac_ext <<_ACEOF
12465 #line 12465 "configure"
12466 #include "confdefs.h"
12468 #include <stdlib.h>
12469 #include <stdarg.h>
12472 #ifdef HAVE_LIBUTF8_H
12473 #include <libutf8.h>
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:12484: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12487 echo "$as_me:12487: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:12490: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:12493: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12497 echo "$as_me: failed program was:" >&5
12498 cat conftest.$ac_ext >&5
12499 cf_cv_wchar_t=unknown
12501 rm -f conftest.$ac_objext conftest.$ac_ext
12503 rm -f conftest.$ac_objext conftest.$ac_ext
12505 echo "$as_me:12505: result: $cf_cv_wchar_t" >&5
12506 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12508 if test "$cf_cv_wchar_t" = yes ; then
12510 cat >>confdefs.h <<\EOF
12511 #define NEED_WCHAR_H 1
12517 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12518 if test "$cf_cv_wchar_t" = unknown ; then
12522 # if we find wchar_t in either place, use substitution to provide a fallback.
12523 if test "$cf_cv_wchar_t" != unknown ; then
12524 NCURSES_OK_WCHAR_T=1
12527 # This is needed on Tru64 5.0 to declare wint_t
12528 echo "$as_me:12528: checking if we must include wchar.h to declare wint_t" >&5
12529 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12530 if test "${cf_cv_wint_t+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line 12535 "configure"
12536 #include "confdefs.h"
12538 #include <stdlib.h>
12539 #include <stdarg.h>
12541 #ifdef HAVE_LIBUTF8_H
12542 #include <libutf8.h>
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:12553: \"$ac_compile\"") >&5
12554 (eval $ac_compile) 2>&5
12556 echo "$as_me:12556: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -s conftest.$ac_objext'
12559 { (eval echo "$as_me:12559: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:12562: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12566 echo "$as_me: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12568 cat >conftest.$ac_ext <<_ACEOF
12569 #line 12569 "configure"
12570 #include "confdefs.h"
12572 #include <stdlib.h>
12573 #include <stdarg.h>
12576 #ifdef HAVE_LIBUTF8_H
12577 #include <libutf8.h>
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:12588: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>&5
12591 echo "$as_me:12591: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (eval echo "$as_me:12594: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:12597: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12601 echo "$as_me: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603 cf_cv_wint_t=unknown
12605 rm -f conftest.$ac_objext conftest.$ac_ext
12607 rm -f conftest.$ac_objext conftest.$ac_ext
12609 echo "$as_me:12609: result: $cf_cv_wint_t" >&5
12610 echo "${ECHO_T}$cf_cv_wint_t" >&6
12612 if test "$cf_cv_wint_t" = yes ; then
12614 cat >>confdefs.h <<\EOF
12615 #define NEED_WCHAR_H 1
12621 # if we do not find wint_t in either place, use substitution to provide a fallback.
12622 if test "$cf_cv_wint_t" = unknown ; then
12626 # if we find wint_t in either place, use substitution to provide a fallback.
12627 if test "$cf_cv_wint_t" != unknown ; then
12628 NCURSES_OK_WINT_T=1
12631 if test "$NCURSES_MBSTATE_T" != 0; then
12633 cat >>confdefs.h <<\EOF
12634 #define NEED_MBSTATE_T_DEF 1
12640 ### use option --disable-lp64 to allow long chtype
12641 echo "$as_me:12641: checking whether to enable _LP64 definition in curses.h" >&5
12642 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
12644 # Check whether --enable-lp64 or --disable-lp64 was given.
12645 if test "${enable_lp64+set}" = set; then
12646 enableval="$enable_lp64"
12647 with_lp64=$enableval
12649 with_lp64=$cf_dft_with_lp64
12651 echo "$as_me:12651: result: $with_lp64" >&5
12652 echo "${ECHO_T}$with_lp64" >&6
12654 if test "x$with_lp64" = xyes ; then
12655 cf_cv_enable_lp64=1
12657 cf_cv_enable_lp64=0
12660 # Check whether --enable-largefile or --disable-largefile was given.
12661 if test "${enable_largefile+set}" = set; then
12662 enableval="$enable_largefile"
12665 if test "$enable_largefile" != no; then
12667 echo "$as_me:12667: checking for special C compiler options needed for large files" >&5
12668 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12669 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 ac_cv_sys_largefile_CC=no
12673 if test "$GCC" != yes; then
12676 # IRIX 6.2 and later do not support large files by default,
12677 # so use the C compiler's -n32 option if that helps.
12678 cat >conftest.$ac_ext <<_ACEOF
12679 #line 12679 "configure"
12680 #include "confdefs.h"
12681 #include <sys/types.h>
12682 /* Check that off_t can represent 2**63 - 1 correctly.
12683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12684 since some C++ compilers masquerading as C compilers
12685 incorrectly reject 9223372036854775807. */
12686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12688 && LARGE_OFF_T % 2147483647 == 1)
12698 rm -f conftest.$ac_objext
12699 if { (eval echo "$as_me:12699: \"$ac_compile\"") >&5
12700 (eval $ac_compile) 2>&5
12702 echo "$as_me:12702: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -s conftest.$ac_objext'
12705 { (eval echo "$as_me:12705: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:12708: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12712 echo "$as_me: failed program was:" >&5
12713 cat conftest.$ac_ext >&5
12715 rm -f conftest.$ac_objext
12717 rm -f conftest.$ac_objext
12718 if { (eval echo "$as_me:12718: \"$ac_compile\"") >&5
12719 (eval $ac_compile) 2>&5
12721 echo "$as_me:12721: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:12724: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:12727: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_cv_sys_largefile_CC=' -n32'; break
12731 echo "$as_me: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12734 rm -f conftest.$ac_objext
12738 rm -f conftest.$ac_ext
12741 echo "$as_me:12741: result: $ac_cv_sys_largefile_CC" >&5
12742 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12743 if test "$ac_cv_sys_largefile_CC" != no; then
12744 CC=$CC$ac_cv_sys_largefile_CC
12747 echo "$as_me:12747: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12748 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12749 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 ac_cv_sys_file_offset_bits=no
12754 cat >conftest.$ac_ext <<_ACEOF
12755 #line 12755 "configure"
12756 #include "confdefs.h"
12757 #include <sys/types.h>
12758 /* Check that off_t can represent 2**63 - 1 correctly.
12759 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12760 since some C++ compilers masquerading as C compilers
12761 incorrectly reject 9223372036854775807. */
12762 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12763 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12764 && LARGE_OFF_T % 2147483647 == 1)
12774 rm -f conftest.$ac_objext
12775 if { (eval echo "$as_me:12775: \"$ac_compile\"") >&5
12776 (eval $ac_compile) 2>&5
12778 echo "$as_me:12778: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -s conftest.$ac_objext'
12781 { (eval echo "$as_me:12781: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12784 echo "$as_me:12784: \$? = $ac_status" >&5
12785 (exit $ac_status); }; }; then
12788 echo "$as_me: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12791 rm -f conftest.$ac_objext conftest.$ac_ext
12792 cat >conftest.$ac_ext <<_ACEOF
12793 #line 12793 "configure"
12794 #include "confdefs.h"
12795 #define _FILE_OFFSET_BITS 64
12796 #include <sys/types.h>
12797 /* Check that off_t can represent 2**63 - 1 correctly.
12798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12799 since some C++ compilers masquerading as C compilers
12800 incorrectly reject 9223372036854775807. */
12801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12803 && LARGE_OFF_T % 2147483647 == 1)
12813 rm -f conftest.$ac_objext
12814 if { (eval echo "$as_me:12814: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>&5
12817 echo "$as_me:12817: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:12820: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:12823: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_cv_sys_file_offset_bits=64; break
12827 echo "$as_me: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12830 rm -f conftest.$ac_objext conftest.$ac_ext
12834 echo "$as_me:12834: result: $ac_cv_sys_file_offset_bits" >&5
12835 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12836 if test "$ac_cv_sys_file_offset_bits" != no; then
12838 cat >>confdefs.h <<EOF
12839 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12844 echo "$as_me:12844: checking for _LARGE_FILES value needed for large files" >&5
12845 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
12846 if test "${ac_cv_sys_large_files+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 ac_cv_sys_large_files=no
12851 cat >conftest.$ac_ext <<_ACEOF
12852 #line 12852 "configure"
12853 #include "confdefs.h"
12854 #include <sys/types.h>
12855 /* Check that off_t can represent 2**63 - 1 correctly.
12856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12857 since some C++ compilers masquerading as C compilers
12858 incorrectly reject 9223372036854775807. */
12859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12861 && LARGE_OFF_T % 2147483647 == 1)
12871 rm -f conftest.$ac_objext
12872 if { (eval echo "$as_me:12872: \"$ac_compile\"") >&5
12873 (eval $ac_compile) 2>&5
12875 echo "$as_me:12875: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:12878: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:12881: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12885 echo "$as_me: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12888 rm -f conftest.$ac_objext conftest.$ac_ext
12889 cat >conftest.$ac_ext <<_ACEOF
12890 #line 12890 "configure"
12891 #include "confdefs.h"
12892 #define _LARGE_FILES 1
12893 #include <sys/types.h>
12894 /* Check that off_t can represent 2**63 - 1 correctly.
12895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12896 since some C++ compilers masquerading as C compilers
12897 incorrectly reject 9223372036854775807. */
12898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12900 && LARGE_OFF_T % 2147483647 == 1)
12910 rm -f conftest.$ac_objext
12911 if { (eval echo "$as_me:12911: \"$ac_compile\"") >&5
12912 (eval $ac_compile) 2>&5
12914 echo "$as_me:12914: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:12917: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12920 echo "$as_me:12920: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_cv_sys_large_files=1; break
12924 echo "$as_me: failed program was:" >&5
12925 cat conftest.$ac_ext >&5
12927 rm -f conftest.$ac_objext conftest.$ac_ext
12931 echo "$as_me:12931: result: $ac_cv_sys_large_files" >&5
12932 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12933 if test "$ac_cv_sys_large_files" != no; then
12935 cat >>confdefs.h <<EOF
12936 #define _LARGE_FILES $ac_cv_sys_large_files
12943 if test "$enable_largefile" != no ; then
12944 echo "$as_me:12944: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12945 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12946 if test "${ac_cv_sys_largefile_source+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 ac_cv_sys_largefile_source=no
12951 cat >conftest.$ac_ext <<_ACEOF
12952 #line 12952 "configure"
12953 #include "confdefs.h"
12963 rm -f conftest.$ac_objext
12964 if { (eval echo "$as_me:12964: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>&5
12967 echo "$as_me:12967: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -s conftest.$ac_objext'
12970 { (eval echo "$as_me:12970: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:12973: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12977 echo "$as_me: failed program was:" >&5
12978 cat conftest.$ac_ext >&5
12980 rm -f conftest.$ac_objext conftest.$ac_ext
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line 12982 "configure"
12983 #include "confdefs.h"
12984 #define _LARGEFILE_SOURCE 1
12994 rm -f conftest.$ac_objext
12995 if { (eval echo "$as_me:12995: \"$ac_compile\"") >&5
12996 (eval $ac_compile) 2>&5
12998 echo "$as_me:12998: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -s conftest.$ac_objext'
13001 { (eval echo "$as_me:13001: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13004 echo "$as_me:13004: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 ac_cv_sys_largefile_source=1; break
13008 echo "$as_me: failed program was:" >&5
13009 cat conftest.$ac_ext >&5
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13015 echo "$as_me:13015: result: $ac_cv_sys_largefile_source" >&5
13016 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13017 if test "$ac_cv_sys_largefile_source" != no; then
13019 cat >>confdefs.h <<EOF
13020 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13026 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13027 # in glibc 2.1.3, but that breaks too many other things.
13028 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13029 echo "$as_me:13029: checking for fseeko" >&5
13030 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13031 if test "${ac_cv_func_fseeko+set}" = set; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 cat >conftest.$ac_ext <<_ACEOF
13035 #line 13035 "configure"
13036 #include "confdefs.h"
13041 return fseeko && fseeko (stdin, 0, 0);
13046 rm -f conftest.$ac_objext conftest$ac_exeext
13047 if { (eval echo "$as_me:13047: \"$ac_link\"") >&5
13048 (eval $ac_link) 2>&5
13050 echo "$as_me:13050: \$? = $ac_status" >&5
13051 (exit $ac_status); } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (eval echo "$as_me:13053: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13056 echo "$as_me:13056: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_func_fseeko=yes
13060 echo "$as_me: failed program was:" >&5
13061 cat conftest.$ac_ext >&5
13062 ac_cv_func_fseeko=no
13064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13066 echo "$as_me:13066: result: $ac_cv_func_fseeko" >&5
13067 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13068 if test $ac_cv_func_fseeko = yes; then
13070 cat >>confdefs.h <<\EOF
13071 #define HAVE_FSEEKO 1
13076 # Normally we would collect these definitions in the config.h,
13077 # but (like _XOPEN_SOURCE), some environments rely on having these
13078 # defined before any of the system headers are included. Another
13079 # case comes up with C++, e.g., on AIX the compiler compiles the
13080 # header files by themselves before looking at the body files it is
13081 # told to compile. For ncurses, those header files do not include
13083 if test "$ac_cv_sys_large_files" != no
13086 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13087 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13090 if test "$ac_cv_sys_largefile_source" != no
13093 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13094 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13097 if test "$ac_cv_sys_file_offset_bits" != no
13100 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13101 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13105 echo "$as_me:13105: checking whether to use struct dirent64" >&5
13106 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13107 if test "${cf_cv_struct_dirent64+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 cat >conftest.$ac_ext <<_ACEOF
13112 #line 13112 "configure"
13113 #include "confdefs.h"
13115 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13116 #include <sys/types.h>
13117 #include <dirent.h>
13123 /* if transitional largefile support is setup, this is true */
13124 extern struct dirent64 * readdir(DIR *);
13125 struct dirent64 *x = readdir((DIR *)0);
13126 struct dirent *y = readdir((DIR *)0);
13134 rm -f conftest.$ac_objext
13135 if { (eval echo "$as_me:13135: \"$ac_compile\"") >&5
13136 (eval $ac_compile) 2>&5
13138 echo "$as_me:13138: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -s conftest.$ac_objext'
13141 { (eval echo "$as_me:13141: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13144 echo "$as_me:13144: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 cf_cv_struct_dirent64=yes
13148 echo "$as_me: failed program was:" >&5
13149 cat conftest.$ac_ext >&5
13150 cf_cv_struct_dirent64=no
13152 rm -f conftest.$ac_objext conftest.$ac_ext
13155 echo "$as_me:13155: result: $cf_cv_struct_dirent64" >&5
13156 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13157 test "$cf_cv_struct_dirent64" = yes &&
13158 cat >>confdefs.h <<\EOF
13159 #define HAVE_STRUCT_DIRENT64 1
13164 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13165 echo "$as_me:13165: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13166 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13168 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13169 if test "${enable_tparm_varargs+set}" = set; then
13170 enableval="$enable_tparm_varargs"
13171 with_tparm_varargs=$enableval
13173 with_tparm_varargs=yes
13175 echo "$as_me:13175: result: $with_tparm_varargs" >&5
13176 echo "${ECHO_T}$with_tparm_varargs" >&6
13177 NCURSES_TPARM_VARARGS=0
13178 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13180 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13181 if test "$with_ticlib" != no ; then
13182 echo "$as_me:13182: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13183 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13185 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13186 if test "${enable_tic_depends+set}" = set; then
13187 enableval="$enable_tic_depends"
13188 with_tic_depends=$enableval
13190 with_tic_depends=yes
13192 echo "$as_me:13192: result: $with_tic_depends" >&5
13193 echo "${ECHO_T}$with_tic_depends" >&6
13195 with_tic_depends=no
13198 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
13199 echo "$as_me:13199: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
13200 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
13202 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13203 if test "${enable_wattr_macros+set}" = set; then
13204 enableval="$enable_wattr_macros"
13205 with_wattr_macros=$enableval
13207 with_wattr_macros=yes
13209 if [ "x$with_wattr_macros" != xyes ]; then
13210 NCURSES_WATTR_MACROS=0
13211 echo "$as_me:13211: result: yes" >&5
13212 echo "${ECHO_T}yes" >&6
13214 NCURSES_WATTR_MACROS=1
13215 echo "$as_me:13215: result: no" >&5
13216 echo "${ECHO_T}no" >&6
13219 echo "$as_me:13219: checking for X11 rgb file" >&5
13220 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13222 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13223 if test "${with_x11_rgb+set}" = set; then
13224 withval="$with_x11_rgb"
13230 if test "x$RGB_PATH" = xauto
13232 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13234 /opt/local/share/X11/rgb.txt \
13235 /opt/X11/share/X11/rgb.txt \
13236 /usr/share/X11/rgb.txt \
13237 /usr/X11/share/X11/rgb.txt \
13238 /usr/X11/lib/X11/rgb.txt \
13239 /usr/lib/X11/rgb.txt \
13241 /usr/pkg/lib/X11/rgb.txt \
13242 /usr/X11R7/lib/X11/rgb.txt \
13243 /usr/X11R6/lib/X11/rgb.txt \
13244 /usr/X11R5/lib/X11/rgb.txt \
13245 /usr/X11R4/lib/X11/rgb.txt \
13246 /usr/local/lib/X11/rgb.txt \
13247 /usr/local/share/X11/rgb.txt \
13248 /usr/lib64/X11/rgb.txt
13250 if test -f "$cf_path" ; then
13251 RGB_PATH="$cf_path"
13258 if test "x$prefix" != xNONE; then
13259 cf_path_syntax="$prefix"
13261 cf_path_syntax="$ac_default_prefix"
13264 case ".$cf_path" in
13265 (.\$\(*\)*|.\'*\'*)
13269 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13271 (.\${*prefix}*|.\${*dir}*)
13272 eval cf_path="$cf_path"
13273 case ".$cf_path" in
13275 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13280 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13283 { { echo "$as_me:13283: error: expected a pathname, not \"$cf_path\"" >&5
13284 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13285 { (exit 1); exit 1; }; }
13291 echo "$as_me:13291: result: $RGB_PATH" >&5
13292 echo "${ECHO_T}$RGB_PATH" >&6
13294 cat >>confdefs.h <<EOF
13295 #define RGB_PATH "$cf_path"
13299 if test "$RGB_PATH" = no
13304 ### use option --with-bool to override bool's type
13305 echo "$as_me:13305: checking for type of bool" >&5
13306 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13308 # Check whether --with-bool or --without-bool was given.
13309 if test "${with_bool+set}" = set; then
13310 withval="$with_bool"
13311 NCURSES_BOOL="$withval"
13315 echo "$as_me:13315: result: $NCURSES_BOOL" >&5
13316 echo "${ECHO_T}$NCURSES_BOOL" >&6
13318 echo "$as_me:13318: checking for alternate terminal capabilities file" >&5
13319 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13321 # Check whether --with-caps or --without-caps was given.
13322 if test "${with_caps+set}" = set; then
13323 withval="$with_caps"
13324 TERMINFO_CAPS=Caps.$withval
13328 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13329 echo "$as_me:13329: result: $TERMINFO_CAPS" >&5
13330 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13332 ### use option --with-chtype to override chtype's type
13333 echo "$as_me:13333: checking for type of chtype" >&5
13334 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13336 # Check whether --with-chtype or --without-chtype was given.
13337 if test "${with_chtype+set}" = set; then
13338 withval="$with_chtype"
13339 NCURSES_CHTYPE="$withval"
13341 NCURSES_CHTYPE=$cf_dft_chtype
13343 echo "$as_me:13343: result: $NCURSES_CHTYPE" >&5
13344 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13346 ### use option --with-ospeed to override ospeed's type
13347 echo "$as_me:13347: checking for type of ospeed" >&5
13348 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13350 # Check whether --with-ospeed or --without-ospeed was given.
13351 if test "${with_ospeed+set}" = set; then
13352 withval="$with_ospeed"
13353 NCURSES_OSPEED="$withval"
13355 NCURSES_OSPEED=short
13357 echo "$as_me:13357: result: $NCURSES_OSPEED" >&5
13358 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13360 ### use option --with-mmask-t to override mmask_t's type
13361 echo "$as_me:13361: checking for type of mmask_t" >&5
13362 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13364 # Check whether --with-mmask-t or --without-mmask-t was given.
13365 if test "${with_mmask_t+set}" = set; then
13366 withval="$with_mmask_t"
13367 NCURSES_MMASK_T="$withval"
13369 NCURSES_MMASK_T=$cf_dft_mmask_t
13371 echo "$as_me:13371: result: $NCURSES_MMASK_T" >&5
13372 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13374 ### use option --with-ccharw-max to override CCHARW_MAX size
13375 echo "$as_me:13375: checking for size CCHARW_MAX" >&5
13376 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13378 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13379 if test "${with_ccharw_max+set}" = set; then
13380 withval="$with_ccharw_max"
13381 NCURSES_CCHARW_MAX="$withval"
13383 NCURSES_CCHARW_MAX=5
13385 echo "$as_me:13385: result: $NCURSES_CCHARW_MAX" >&5
13386 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13388 echo "$as_me:13388: checking for ANSI C header files" >&5
13389 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13390 if test "${ac_cv_header_stdc+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13394 #line 13394 "configure"
13395 #include "confdefs.h"
13396 #include <stdlib.h>
13397 #include <stdarg.h>
13398 #include <string.h>
13402 if { (eval echo "$as_me:13402: \"$ac_cpp conftest.$ac_ext\"") >&5
13403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13405 egrep -v '^ *\+' conftest.er1 >conftest.err
13407 cat conftest.err >&5
13408 echo "$as_me:13408: \$? = $ac_status" >&5
13409 (exit $ac_status); } >/dev/null; then
13410 if test -s conftest.err; then
13411 ac_cpp_err=$ac_c_preproc_warn_flag
13418 if test -z "$ac_cpp_err"; then
13419 ac_cv_header_stdc=yes
13421 echo "$as_me: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13423 ac_cv_header_stdc=no
13425 rm -f conftest.err conftest.$ac_ext
13427 if test $ac_cv_header_stdc = yes; then
13428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line 13430 "configure"
13431 #include "confdefs.h"
13432 #include <string.h>
13435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13436 egrep "memchr" >/dev/null 2>&1; then
13439 ac_cv_header_stdc=no
13445 if test $ac_cv_header_stdc = yes; then
13446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13447 cat >conftest.$ac_ext <<_ACEOF
13448 #line 13448 "configure"
13449 #include "confdefs.h"
13450 #include <stdlib.h>
13453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13454 egrep "free" >/dev/null 2>&1; then
13457 ac_cv_header_stdc=no
13463 if test $ac_cv_header_stdc = yes; then
13464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13465 if test "$cross_compiling" = yes; then
13468 cat >conftest.$ac_ext <<_ACEOF
13469 #line 13469 "configure"
13470 #include "confdefs.h"
13472 #if ((' ' & 0x0FF) == 0x020)
13473 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13474 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13476 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13477 || ('j' <= (c) && (c) <= 'r') \
13478 || ('s' <= (c) && (c) <= 'z'))
13479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13487 for (i = 0; i < 256; i++)
13488 if (XOR (islower (i), ISLOWER (i))
13489 || toupper (i) != TOUPPER (i))
13490 $ac_main_return(2);
13491 $ac_main_return (0);
13494 rm -f conftest$ac_exeext
13495 if { (eval echo "$as_me:13495: \"$ac_link\"") >&5
13496 (eval $ac_link) 2>&5
13498 echo "$as_me:13498: \$? = $ac_status" >&5
13499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13500 { (eval echo "$as_me:13500: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:13503: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13507 echo "$as_me: program exited with status $ac_status" >&5
13508 echo "$as_me: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13510 ac_cv_header_stdc=no
13512 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13516 echo "$as_me:13516: result: $ac_cv_header_stdc" >&5
13517 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13518 if test $ac_cv_header_stdc = yes; then
13520 cat >>confdefs.h <<\EOF
13521 #define STDC_HEADERS 1
13526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13528 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13529 inttypes.h stdint.h unistd.h
13531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13532 echo "$as_me:13532: checking for $ac_header" >&5
13533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 cat >conftest.$ac_ext <<_ACEOF
13538 #line 13538 "configure"
13539 #include "confdefs.h"
13540 $ac_includes_default
13541 #include <$ac_header>
13543 rm -f conftest.$ac_objext
13544 if { (eval echo "$as_me:13544: \"$ac_compile\"") >&5
13545 (eval $ac_compile) 2>&5
13547 echo "$as_me:13547: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:13550: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:13553: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 eval "$as_ac_Header=yes"
13557 echo "$as_me: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 eval "$as_ac_Header=no"
13561 rm -f conftest.$ac_objext conftest.$ac_ext
13563 echo "$as_me:13563: result: `eval echo '${'$as_ac_Header'}'`" >&5
13564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13566 cat >>confdefs.h <<EOF
13567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13573 echo "$as_me:13573: checking for signed char" >&5
13574 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13575 if test "${ac_cv_type_signed_char+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 cat >conftest.$ac_ext <<_ACEOF
13579 #line 13579 "configure"
13580 #include "confdefs.h"
13581 $ac_includes_default
13585 if ((signed char *) 0)
13587 if (sizeof (signed char))
13593 rm -f conftest.$ac_objext
13594 if { (eval echo "$as_me:13594: \"$ac_compile\"") >&5
13595 (eval $ac_compile) 2>&5
13597 echo "$as_me:13597: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (eval echo "$as_me:13600: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:13603: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 ac_cv_type_signed_char=yes
13607 echo "$as_me: failed program was:" >&5
13608 cat conftest.$ac_ext >&5
13609 ac_cv_type_signed_char=no
13611 rm -f conftest.$ac_objext conftest.$ac_ext
13613 echo "$as_me:13613: result: $ac_cv_type_signed_char" >&5
13614 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13616 echo "$as_me:13616: checking size of signed char" >&5
13617 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13618 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 if test "$ac_cv_type_signed_char" = yes; then
13622 if test "$cross_compiling" = yes; then
13623 # Depending upon the size, compute the lo and hi bounds.
13624 cat >conftest.$ac_ext <<_ACEOF
13625 #line 13625 "configure"
13626 #include "confdefs.h"
13627 $ac_includes_default
13631 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
13636 rm -f conftest.$ac_objext
13637 if { (eval echo "$as_me:13637: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>&5
13640 echo "$as_me:13640: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:13643: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:13646: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13650 cat >conftest.$ac_ext <<_ACEOF
13651 #line 13651 "configure"
13652 #include "confdefs.h"
13653 $ac_includes_default
13657 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13662 rm -f conftest.$ac_objext
13663 if { (eval echo "$as_me:13663: \"$ac_compile\"") >&5
13664 (eval $ac_compile) 2>&5
13666 echo "$as_me:13666: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -s conftest.$ac_objext'
13669 { (eval echo "$as_me:13669: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13672 echo "$as_me:13672: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_hi=$ac_mid; break
13676 echo "$as_me: failed program was:" >&5
13677 cat conftest.$ac_ext >&5
13678 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13683 echo "$as_me: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13687 cat >conftest.$ac_ext <<_ACEOF
13688 #line 13688 "configure"
13689 #include "confdefs.h"
13690 $ac_includes_default
13694 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:13700: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>&5
13703 echo "$as_me:13703: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:13706: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:13709: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_lo=$ac_mid; break
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13717 rm -f conftest.$ac_objext conftest.$ac_ext
13720 rm -f conftest.$ac_objext conftest.$ac_ext
13721 # Binary search between lo and hi bounds.
13722 while test "x$ac_lo" != "x$ac_hi"; do
13723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13724 cat >conftest.$ac_ext <<_ACEOF
13725 #line 13725 "configure"
13726 #include "confdefs.h"
13727 $ac_includes_default
13731 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:13737: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13740 echo "$as_me:13740: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:13743: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:13746: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13750 echo "$as_me: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13752 ac_lo=`expr $ac_mid + 1`
13754 rm -f conftest.$ac_objext conftest.$ac_ext
13756 ac_cv_sizeof_signed_char=$ac_lo
13758 if test "$cross_compiling" = yes; then
13759 { { echo "$as_me:13759: error: cannot run test program while cross compiling" >&5
13760 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13761 { (exit 1); exit 1; }; }
13763 cat >conftest.$ac_ext <<_ACEOF
13764 #line 13764 "configure"
13765 #include "confdefs.h"
13766 $ac_includes_default
13770 FILE *f = fopen ("conftest.val", "w");
13772 $ac_main_return (1);
13773 fprintf (f, "%d", (sizeof (signed char)));
13779 rm -f conftest$ac_exeext
13780 if { (eval echo "$as_me:13780: \"$ac_link\"") >&5
13781 (eval $ac_link) 2>&5
13783 echo "$as_me:13783: \$? = $ac_status" >&5
13784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13785 { (eval echo "$as_me:13785: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:13788: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_sizeof_signed_char=`cat conftest.val`
13792 echo "$as_me: program exited with status $ac_status" >&5
13793 echo "$as_me: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13796 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13801 ac_cv_sizeof_signed_char=0
13804 echo "$as_me:13804: result: $ac_cv_sizeof_signed_char" >&5
13805 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
13806 cat >>confdefs.h <<EOF
13807 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
13810 if test "$ac_cv_sizeof_signed_char" = 1 ; then
13811 NCURSES_SBOOL="signed char"
13813 NCURSES_SBOOL="char"
13815 echo "$as_me:13815: checking if you want to use signed Boolean array in term.h" >&5
13816 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
13818 # Check whether --enable-signed-char or --disable-signed-char was given.
13819 if test "${enable_signed_char+set}" = set; then
13820 enableval="$enable_signed_char"
13821 with_signed_char=$enableval
13823 with_signed_char=no
13825 echo "$as_me:13825: result: $with_signed_char" >&5
13826 echo "${ECHO_T}$with_signed_char" >&6
13827 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
13829 ### use option --with-tparm-arg to override tparm's argument type
13830 echo "$as_me:13830: checking for type of tparm args" >&5
13831 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
13833 # Check whether --with-tparm-arg or --without-tparm-arg was given.
13834 if test "${with_tparm_arg+set}" = set; then
13835 withval="$with_tparm_arg"
13836 NCURSES_TPARM_ARG="$withval"
13838 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
13840 echo "$as_me:13840: result: $NCURSES_TPARM_ARG" >&5
13841 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
13843 ### Enable compiling-in rcs id's
13844 echo "$as_me:13844: checking if RCS identifiers should be compiled-in" >&5
13845 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
13847 # Check whether --with-rcs-ids or --without-rcs-ids was given.
13848 if test "${with_rcs_ids+set}" = set; then
13849 withval="$with_rcs_ids"
13850 with_rcs_ids=$withval
13854 echo "$as_me:13854: result: $with_rcs_ids" >&5
13855 echo "${ECHO_T}$with_rcs_ids" >&6
13856 test "x$with_rcs_ids" = xyes &&
13857 cat >>confdefs.h <<\EOF
13858 #define USE_RCS_IDS 1
13861 ###############################################################################
13863 echo "$as_me:13863: checking format of man-pages" >&5
13864 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
13866 # Check whether --with-manpage-format or --without-manpage-format was given.
13867 if test "${with_manpage_format+set}" = set; then
13868 withval="$with_manpage_format"
13869 MANPAGE_FORMAT=$withval
13871 MANPAGE_FORMAT=unknown
13874 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
13875 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
13879 case $MANPAGE_FORMAT in
13881 if test -z "$MANPATH" ; then
13882 MANPATH="/usr/man:/usr/share/man"
13885 # look for the 'date' man-page (it's most likely to be installed!)
13891 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
13892 for cf_dir in $MANPATH; do
13893 test -z "$cf_dir" && cf_dir=/usr/man
13894 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
13896 cf_test=`echo $cf_name | sed -e 's/*//'`
13897 if test "x$cf_test" = "x$cf_name" ; then
13900 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
13901 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
13902 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
13903 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
13917 # if we found a match in either man* or cat*, stop looking
13918 if test -n "$MANPAGE_FORMAT" ; then
13920 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
13921 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
13927 test $cf_found=yes && break
13930 # only check the first directory in $MANPATH where we find manpages
13931 if test -n "$MANPAGE_FORMAT" ; then
13935 # if we did not find the example, just assume it is normal
13936 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
13940 for cf_option in $MANPAGE_FORMAT; do
13942 (gzip|compress|BSDI|normal|formatted|catonly)
13945 cf_unknown="$cf_unknown $cf_option"
13952 echo "$as_me:13952: result: $MANPAGE_FORMAT" >&5
13953 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
13954 if test -n "$cf_unknown" ; then
13955 { echo "$as_me:13955: WARNING: Unexpected manpage-format $cf_unknown" >&5
13956 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
13959 echo "$as_me:13959: checking for manpage renaming" >&5
13960 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
13962 # Check whether --with-manpage-renames or --without-manpage-renames was given.
13963 if test "${with_manpage_renames+set}" = set; then
13964 withval="$with_manpage_renames"
13965 MANPAGE_RENAMES=$withval
13967 MANPAGE_RENAMES=yes
13970 case ".$MANPAGE_RENAMES" in
13974 # Debian 'man' program?
13975 if test -f /etc/debian_version ; then
13976 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
13983 if test "$MANPAGE_RENAMES" != no ; then
13984 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
13985 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
13986 elif test ! -f $MANPAGE_RENAMES ; then
13987 { { echo "$as_me:13987: error: not a filename: $MANPAGE_RENAMES" >&5
13988 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
13989 { (exit 1); exit 1; }; }
13992 test ! -d man && mkdir man
13994 # Construct a sed-script to perform renaming within man-pages
13995 if test -n "$MANPAGE_RENAMES" ; then
13996 test ! -d man && mkdir man
13997 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
14001 echo "$as_me:14001: result: $MANPAGE_RENAMES" >&5
14002 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14004 echo "$as_me:14004: checking if manpage aliases will be installed" >&5
14005 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14007 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14008 if test "${with_manpage_aliases+set}" = set; then
14009 withval="$with_manpage_aliases"
14010 MANPAGE_ALIASES=$withval
14012 MANPAGE_ALIASES=yes
14015 echo "$as_me:14015: result: $MANPAGE_ALIASES" >&5
14016 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14020 cf_use_symlinks=yes
14027 MANPAGE_SYMLINKS=no
14028 if test "$MANPAGE_ALIASES" = yes ; then
14029 echo "$as_me:14029: checking if manpage symlinks should be used" >&5
14030 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14032 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14033 if test "${with_manpage_symlinks+set}" = set; then
14034 withval="$with_manpage_symlinks"
14035 MANPAGE_SYMLINKS=$withval
14037 MANPAGE_SYMLINKS=$cf_use_symlinks
14040 if test "$$cf_use_symlinks" = no; then
14041 if test "$MANPAGE_SYMLINKS" = yes ; then
14042 { echo "$as_me:14042: WARNING: cannot make symlinks" >&5
14043 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14044 MANPAGE_SYMLINKS=no
14048 echo "$as_me:14048: result: $MANPAGE_SYMLINKS" >&5
14049 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14052 echo "$as_me:14052: checking for manpage tbl" >&5
14053 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14055 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14056 if test "${with_manpage_tbl+set}" = set; then
14057 withval="$with_manpage_tbl"
14058 MANPAGE_TBL=$withval
14063 echo "$as_me:14063: result: $MANPAGE_TBL" >&5
14064 echo "${ECHO_T}$MANPAGE_TBL" >&6
14066 if test "$prefix" = "NONE" ; then
14067 cf_prefix="$ac_default_prefix"
14069 cf_prefix="$prefix"
14072 case "$MANPAGE_FORMAT" in
14087 test ! -d man && mkdir man
14091 case "$MANPAGE_FORMAT" in
14094 cf_compress=compress
14102 cf_edit_man=./edit_man.sh
14103 cf_man_alias=`pwd`/man_alias.sed
14105 cat >$cf_edit_man <<CF_EOF
14107 # this script is generated by the configure-script CF_MAN_PAGES macro.
14109 prefix="$cf_prefix"
14110 datarootdir="$datarootdir"
14113 NCURSES_MAJOR="$NCURSES_MAJOR"
14114 NCURSES_MINOR="$NCURSES_MINOR"
14115 NCURSES_PATCH="$NCURSES_PATCH"
14117 NCURSES_OSPEED="$NCURSES_OSPEED"
14118 TERMINFO="$TERMINFO"
14121 INSTALL_DATA="$INSTALL_DATA"
14123 transform="$program_transform_name"
14125 TMP=\${TMPDIR:=/tmp}/man\$\$
14126 trap "rm -f \$TMP" 0 1 2 3 15
14138 top_srcdir=\$srcdir/..
14141 if test "\$form" = normal ; then
14142 if test "$cf_format" = yes ; then
14143 if test "$cf_inboth" = no ; then
14144 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14148 cf_subdir=\$mandir/man
14149 cf_tables=$MANPAGE_TBL
14151 cf_subdir=\$mandir/cat
14155 # process the list of source-files
14160 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14161 if test \$verb = installing ; then
14162 if test ! -d \$cf_subdir\${section} ; then
14163 mkdir -p \$cf_subdir\$section
14167 # replace variables in man page
14168 if test ! -f $cf_man_alias ; then
14169 cat >>$cf_man_alias <<-CF_EOF2
14170 s,@DATADIR@,\$datadir,g
14171 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14172 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14173 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14174 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14175 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14176 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14179 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14181 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14182 cf_name=`echo $cf_name|sed "$program_transform_name"`
14183 cat >>$cf_edit_man <<-CF_EOF
14184 s,@$cf_NAME@,$cf_name,g
14188 cat >>$cf_edit_man <<CF_EOF
14190 echo "...made $cf_man_alias"
14194 cf_source=\`basename \$i\`
14195 inalias=\$cf_source
14196 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
14197 if test ! -f \$inalias ; then
14198 echo .. skipped \$cf_source
14203 if test "$MANPAGE_ALIASES" != no ; then
14204 cat >>$cf_edit_man <<CF_EOF
14206 test $with_curses_h = yes && nCurses=ncurses.3x
14207 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
14211 if test "$MANPAGE_RENAMES" = no ; then
14212 cat >>$cf_edit_man <<CF_EOF
14213 # perform program transformations for section 1 man pages
14214 if test \$section = 1 ; then
14215 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14217 cf_target=\$cf_subdir\${section}/\$cf_source
14221 cat >>$cf_edit_man <<CF_EOF
14222 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14223 if test -z "\$cf_target" ; then
14224 echo '? missing rename for '\$cf_source
14225 cf_target="\$cf_source"
14227 cf_target="\$cf_subdir\${section}/\${cf_target}"
14232 cat >>$cf_edit_man <<CF_EOF
14233 sed -f $cf_man_alias \\
14236 if test -f $MANPAGE_RENAMES ; then
14237 cat >>$cf_edit_man <<CF_EOF
14238 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
14241 cat >>$cf_edit_man <<CF_EOF
14246 cat >>$cf_edit_man <<CF_EOF
14247 if test \$cf_tables = yes ; then
14248 tbl \$TMP >\$TMP.out
14253 if test $with_overwrite != yes ; then
14254 cat >>$cf_edit_man <<CF_EOF
14255 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14260 if test $with_curses_h != yes ; then
14261 cat >>$cf_edit_man <<CF_EOF
14262 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14267 cat >>$cf_edit_man <<CF_EOF
14268 if test \$form = format ; then
14269 nroff -man \$TMP >\$TMP.out
14274 if test -n "$cf_compress" ; then
14275 cat >>$cf_edit_man <<CF_EOF
14276 if test \$verb = installing ; then
14277 if ( $cf_compress -f \$TMP )
14279 mv \$TMP.$cf_so_strip \$TMP
14282 cf_target="\$cf_target.$cf_so_strip"
14286 case "$MANPAGE_FORMAT" in
14288 cat >>$cf_edit_man <<CF_EOF
14289 if test \$form = format ; then
14290 # BSDI installs only .0 suffixes in the cat directories
14291 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
14297 cat >>$cf_edit_man <<CF_EOF
14298 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
14299 if test \$verb = installing ; then
14300 echo \$verb \$cf_target
14301 \$INSTALL_DATA \$TMP \$cf_target
14302 test -d \$cf_subdir\${section} &&
14303 test -n "\$aliases" && (
14304 cd \$cf_subdir\${section} && (
14305 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
14306 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
14307 cf_target=\`basename \$cf_target\`
14308 for cf_alias in \$aliases
14310 if test \$section = 1 ; then
14311 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14314 if test "$MANPAGE_SYMLINKS" = yes ; then
14315 if test -f \$cf_alias\${suffix} ; then
14316 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
14321 echo .. \$verb alias \$cf_alias\${suffix}
14325 cat >>$cf_edit_man <<CF_EOF
14326 $LN_S \$cf_target \$cf_alias\${suffix}
14330 cat >>$cf_edit_man <<CF_EOF
14331 rm -f \$cf_alias\${suffix}
14332 $LN_S \$cf_target \$cf_alias\${suffix}
14336 cat >>$cf_edit_man <<CF_EOF
14337 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14338 echo ".so \$cf_source" >\$TMP
14340 if test -n "$cf_compress" ; then
14341 cat >>$cf_edit_man <<CF_EOF
14342 if test -n "$cf_so_strip" ; then
14343 $cf_compress -f \$TMP
14344 mv \$TMP.$cf_so_strip \$TMP
14348 cat >>$cf_edit_man <<CF_EOF
14349 echo .. \$verb alias \$cf_alias\${suffix}
14350 rm -f \$cf_alias\${suffix}
14351 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
14356 elif test \$verb = removing ; then
14357 test -f \$cf_target && (
14358 echo \$verb \$cf_target
14361 test -d \$cf_subdir\${section} &&
14362 test -n "\$aliases" && (
14363 cd \$cf_subdir\${section} && (
14364 for cf_alias in \$aliases
14366 if test \$section = 1 ; then
14367 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14370 echo .. \$verb alias \$cf_alias\${suffix}
14371 rm -f \$cf_alias\${suffix}
14383 if test $cf_inboth = yes ; then
14384 if test \$form != format ; then
14385 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14391 chmod 755 $cf_edit_man
14393 ###############################################################################
14395 ### Note that some functions (such as const) are normally disabled anyway.
14396 echo "$as_me:14396: checking if you want to build with function extensions" >&5
14397 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14399 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14400 if test "${enable_ext_funcs+set}" = set; then
14401 enableval="$enable_ext_funcs"
14402 with_ext_funcs=$enableval
14406 echo "$as_me:14406: result: $with_ext_funcs" >&5
14407 echo "${ECHO_T}$with_ext_funcs" >&6
14408 if test "x$with_ext_funcs" = xyes ; then
14409 NCURSES_EXT_FUNCS=1
14411 cat >>confdefs.h <<\EOF
14412 #define NCURSES_EXT_FUNCS 1
14415 cat >>confdefs.h <<\EOF
14416 #define HAVE_ASSUME_DEFAULT_COLORS 1
14419 cat >>confdefs.h <<\EOF
14420 #define HAVE_CURSES_VERSION 1
14423 cat >>confdefs.h <<\EOF
14424 #define HAVE_HAS_KEY 1
14427 cat >>confdefs.h <<\EOF
14428 #define HAVE_RESIZETERM 1
14431 cat >>confdefs.h <<\EOF
14432 #define HAVE_RESIZE_TERM 1
14435 cat >>confdefs.h <<\EOF
14436 #define HAVE_TERM_ENTRY_H 1
14439 cat >>confdefs.h <<\EOF
14440 #define HAVE_USE_DEFAULT_COLORS 1
14443 cat >>confdefs.h <<\EOF
14444 #define HAVE_USE_EXTENDED_NAMES 1
14447 cat >>confdefs.h <<\EOF
14448 #define HAVE_USE_SCREEN 1
14451 cat >>confdefs.h <<\EOF
14452 #define HAVE_USE_WINDOW 1
14455 cat >>confdefs.h <<\EOF
14456 #define HAVE_WRESIZE 1
14459 GENERATED_EXT_FUNCS=generated
14460 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
14462 NCURSES_EXT_FUNCS=0
14463 GENERATED_EXT_FUNCS=
14466 echo "$as_me:14466: checking if you want to build with SCREEN extensions" >&5
14467 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
14469 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
14470 if test "${enable_sp_funcs+set}" = set; then
14471 enableval="$enable_sp_funcs"
14472 with_sp_funcs=$enableval
14474 with_sp_funcs=$cf_dft_ext_spfuncs
14476 echo "$as_me:14476: result: $with_sp_funcs" >&5
14477 echo "${ECHO_T}$with_sp_funcs" >&6
14478 if test "x$with_sp_funcs" = xyes ; then
14481 cat >>confdefs.h <<\EOF
14482 #define NCURSES_SP_FUNCS 1
14485 cat >>confdefs.h <<\EOF
14486 #define HAVE_TPUTS_SP 1
14489 GENERATED_SP_FUNCS=generated
14492 GENERATED_SP_FUNCS=
14495 echo "$as_me:14495: checking if you want to build with terminal-driver" >&5
14496 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
14498 # Check whether --enable-term-driver or --disable-term-driver was given.
14499 if test "${enable_term_driver+set}" = set; then
14500 enableval="$enable_term_driver"
14501 with_term_driver=$enableval
14503 with_term_driver=no
14505 echo "$as_me:14505: result: $with_term_driver" >&5
14506 echo "${ECHO_T}$with_term_driver" >&6
14507 if test "x$with_term_driver" = xyes ; then
14509 cat >>confdefs.h <<\EOF
14510 #define USE_TERM_DRIVER 1
14513 if test "x$with_termlib" != xno ; then
14514 { { echo "$as_me:14514: error: The term-driver option conflicts with the termlib option" >&5
14515 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
14516 { (exit 1); exit 1; }; }
14518 if test "x$with_sp_funcs" != xyes ; then
14519 { { echo "$as_me:14519: error: The term-driver option relies upon sp-funcs" >&5
14520 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
14521 { (exit 1); exit 1; }; }
14525 ### use option --enable-const to turn on use of const beyond that in XSI.
14526 echo "$as_me:14526: checking for extended use of const keyword" >&5
14527 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
14529 # Check whether --enable-const or --disable-const was given.
14530 if test "${enable_const+set}" = set; then
14531 enableval="$enable_const"
14532 with_ext_const=$enableval
14534 with_ext_const=$cf_dft_ext_const
14536 echo "$as_me:14536: result: $with_ext_const" >&5
14537 echo "${ECHO_T}$with_ext_const" >&6
14538 NCURSES_CONST='/*nothing*/'
14539 if test "x$with_ext_const" = xyes ; then
14540 NCURSES_CONST=const
14543 ### use option --enable-ext-colors to turn on use of colors beyond 16.
14544 echo "$as_me:14544: checking if you want to use extended colors" >&5
14545 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
14547 # Check whether --enable-ext-colors or --disable-ext-colors was given.
14548 if test "${enable_ext_colors+set}" = set; then
14549 enableval="$enable_ext_colors"
14550 with_ext_colors=$enableval
14552 with_ext_colors=$cf_dft_ext_colors
14554 echo "$as_me:14554: result: $with_ext_colors" >&5
14555 echo "${ECHO_T}$with_ext_colors" >&6
14556 NCURSES_EXT_COLORS=0
14557 if test "x$with_ext_colors" = xyes ; then
14558 if test "x$with_widec" != xyes ; then
14559 { echo "$as_me:14559: WARNING: This option applies only to wide-character library" >&5
14560 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
14562 # cannot be ABI 5 since it changes sizeof(cchar_t)
14564 if test "${with_abi_version+set}" != set; then
14565 case $cf_cv_rel_version in
14567 cf_cv_rel_version=6.0
14568 cf_cv_abi_version=6
14569 { echo "$as_me:14569: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14570 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14575 NCURSES_EXT_COLORS=1
14577 cat >>confdefs.h <<\EOF
14578 #define NCURSES_EXT_COLORS 1
14581 cat >>confdefs.h <<\EOF
14582 #define HAVE_ALLOC_PAIR 1
14585 cat >>confdefs.h <<\EOF
14586 #define HAVE_INIT_EXTENDED_COLOR 1
14589 cat >>confdefs.h <<\EOF
14590 #define HAVE_RESET_COLOR_PAIRS 1
14596 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14597 echo "$as_me:14597: checking if you want to use extended mouse encoding" >&5
14598 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14600 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14601 if test "${enable_ext_mouse+set}" = set; then
14602 enableval="$enable_ext_mouse"
14603 with_ext_mouse=$enableval
14605 with_ext_mouse=$cf_dft_ext_mouse
14607 echo "$as_me:14607: result: $with_ext_mouse" >&5
14608 echo "${ECHO_T}$with_ext_mouse" >&6
14609 NCURSES_MOUSE_VERSION=1
14610 if test "x$with_ext_mouse" = xyes ; then
14611 NCURSES_MOUSE_VERSION=2
14613 if test "${with_abi_version+set}" != set; then
14614 case $cf_cv_rel_version in
14616 cf_cv_rel_version=6.0
14617 cf_cv_abi_version=6
14618 { echo "$as_me:14618: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14619 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14626 ### use option --enable-ext-putwin to turn on extended screendumps
14627 echo "$as_me:14627: checking if you want to use extended putwin/screendump" >&5
14628 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
14630 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
14631 if test "${enable_ext_putwin+set}" = set; then
14632 enableval="$enable_ext_putwin"
14633 with_ext_putwin=$enableval
14635 with_ext_putwin=$cf_dft_ext_putwin
14637 echo "$as_me:14637: result: $with_ext_putwin" >&5
14638 echo "${ECHO_T}$with_ext_putwin" >&6
14639 if test "x$with_ext_putwin" = xyes ; then
14641 cat >>confdefs.h <<\EOF
14642 #define NCURSES_EXT_PUTWIN 1
14647 echo "$as_me:14647: checking if you want \$NCURSES_NO_PADDING code" >&5
14648 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
14650 # Check whether --enable-no-padding or --disable-no-padding was given.
14651 if test "${enable_no_padding+set}" = set; then
14652 enableval="$enable_no_padding"
14653 with_no_padding=$enableval
14655 with_no_padding=$with_ext_funcs
14657 echo "$as_me:14657: result: $with_no_padding" >&5
14658 echo "${ECHO_T}$with_no_padding" >&6
14659 test "x$with_no_padding" = xyes &&
14660 cat >>confdefs.h <<\EOF
14661 #define NCURSES_NO_PADDING 1
14664 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
14665 echo "$as_me:14665: checking if you want SIGWINCH handler" >&5
14666 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
14668 # Check whether --enable-sigwinch or --disable-sigwinch was given.
14669 if test "${enable_sigwinch+set}" = set; then
14670 enableval="$enable_sigwinch"
14671 with_sigwinch=$enableval
14673 with_sigwinch=$with_ext_funcs
14675 echo "$as_me:14675: result: $with_sigwinch" >&5
14676 echo "${ECHO_T}$with_sigwinch" >&6
14677 test "x$with_sigwinch" = xyes &&
14678 cat >>confdefs.h <<\EOF
14679 #define USE_SIGWINCH 1
14682 ### use option --enable-tcap-names to allow user to define new capabilities
14683 echo "$as_me:14683: checking if you want user-definable terminal capabilities like termcap" >&5
14684 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
14686 # Check whether --enable-tcap-names or --disable-tcap-names was given.
14687 if test "${enable_tcap_names+set}" = set; then
14688 enableval="$enable_tcap_names"
14689 with_tcap_names=$enableval
14691 with_tcap_names=$with_ext_funcs
14693 echo "$as_me:14693: result: $with_tcap_names" >&5
14694 echo "${ECHO_T}$with_tcap_names" >&6
14696 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
14698 ##############################################################################
14700 echo "$as_me:14700: checking if you want to link with the pthread library" >&5
14701 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
14703 # Check whether --with-pthread or --without-pthread was given.
14704 if test "${with_pthread+set}" = set; then
14705 withval="$with_pthread"
14706 with_pthread=$withval
14710 echo "$as_me:14710: result: $with_pthread" >&5
14711 echo "${ECHO_T}$with_pthread" >&6
14713 if test "$with_pthread" != no ; then
14714 echo "$as_me:14714: checking for pthread.h" >&5
14715 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14716 if test "${ac_cv_header_pthread_h+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 cat >conftest.$ac_ext <<_ACEOF
14720 #line 14720 "configure"
14721 #include "confdefs.h"
14722 #include <pthread.h>
14724 if { (eval echo "$as_me:14724: \"$ac_cpp conftest.$ac_ext\"") >&5
14725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14727 egrep -v '^ *\+' conftest.er1 >conftest.err
14729 cat conftest.err >&5
14730 echo "$as_me:14730: \$? = $ac_status" >&5
14731 (exit $ac_status); } >/dev/null; then
14732 if test -s conftest.err; then
14733 ac_cpp_err=$ac_c_preproc_warn_flag
14740 if test -z "$ac_cpp_err"; then
14741 ac_cv_header_pthread_h=yes
14743 echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 ac_cv_header_pthread_h=no
14747 rm -f conftest.err conftest.$ac_ext
14749 echo "$as_me:14749: result: $ac_cv_header_pthread_h" >&5
14750 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14751 if test $ac_cv_header_pthread_h = yes; then
14753 cat >>confdefs.h <<\EOF
14754 #define HAVE_PTHREADS_H 1
14757 for cf_lib_pthread in pthread c_r
14759 echo "$as_me:14759: checking if we can link with the $cf_lib_pthread library" >&5
14760 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
14761 cf_save_LIBS="$LIBS"
14763 cf_add_libs="$LIBS"
14766 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14767 # filter duplicates
14768 for cf_add_1lib in $cf_add_0lib; do
14769 for cf_add_2lib in $cf_add_libs; do
14770 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14775 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14777 LIBS="$cf_add_libs"
14779 cat >conftest.$ac_ext <<_ACEOF
14780 #line 14780 "configure"
14781 #include "confdefs.h"
14783 #include <pthread.h>
14789 int rc = pthread_create(0,0,0,0);
14790 int r2 = pthread_mutexattr_settype(0, 0);
14796 rm -f conftest.$ac_objext conftest$ac_exeext
14797 if { (eval echo "$as_me:14797: \"$ac_link\"") >&5
14798 (eval $ac_link) 2>&5
14800 echo "$as_me:14800: \$? = $ac_status" >&5
14801 (exit $ac_status); } &&
14802 { ac_try='test -s conftest$ac_exeext'
14803 { (eval echo "$as_me:14803: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14806 echo "$as_me:14806: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14810 echo "$as_me: failed program was:" >&5
14811 cat conftest.$ac_ext >&5
14814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14815 LIBS="$cf_save_LIBS"
14816 echo "$as_me:14816: result: $with_pthread" >&5
14817 echo "${ECHO_T}$with_pthread" >&6
14818 test "$with_pthread" = yes && break
14821 if test "$with_pthread" = yes ; then
14823 cf_add_libs="$LIBS"
14826 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14827 # filter duplicates
14828 for cf_add_1lib in $cf_add_0lib; do
14829 for cf_add_2lib in $cf_add_libs; do
14830 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14835 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14837 LIBS="$cf_add_libs"
14839 cat >>confdefs.h <<\EOF
14840 #define HAVE_LIBPTHREADS 1
14844 { { echo "$as_me:14844: error: Cannot link with pthread library" >&5
14845 echo "$as_me: error: Cannot link with pthread library" >&2;}
14846 { (exit 1); exit 1; }; }
14853 if test "x$with_pthread" != xno; then
14854 echo "$as_me:14854: checking for pthread_kill" >&5
14855 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
14856 if test "${ac_cv_func_pthread_kill+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 cat >conftest.$ac_ext <<_ACEOF
14860 #line 14860 "configure"
14861 #include "confdefs.h"
14862 #define pthread_kill autoconf_temporary
14863 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14864 #undef pthread_kill
14870 /* We use char because int might match the return type of a gcc2
14871 builtin and then its argument prototype would still apply. */
14872 char pthread_kill (void);
14878 /* The GNU C library defines stubs for functions which it implements
14879 to always fail with ENOSYS. Some functions are actually named
14880 something starting with __ and the normal name is an alias. */
14881 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
14882 #error found stub for pthread_kill
14885 return pthread_kill ();
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (eval echo "$as_me:14891: \"$ac_link\"") >&5
14892 (eval $ac_link) 2>&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -s conftest$ac_exeext'
14897 { (eval echo "$as_me:14897: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:14900: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 ac_cv_func_pthread_kill=yes
14904 echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 ac_cv_func_pthread_kill=no
14908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14910 echo "$as_me:14910: result: $ac_cv_func_pthread_kill" >&5
14911 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
14912 if test $ac_cv_func_pthread_kill = yes; then
14914 echo "$as_me:14914: checking if you want to allow EINTR in wgetch with pthreads" >&5
14915 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
14917 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
14918 if test "${enable_pthreads_eintr+set}" = set; then
14919 enableval="$enable_pthreads_eintr"
14920 use_pthreads_eintr=$enableval
14922 use_pthreads_eintr=no
14924 echo "$as_me:14924: result: $use_pthreads_eintr" >&5
14925 echo "${ECHO_T}$use_pthreads_eintr" >&6
14926 if test "x$use_pthreads_eintr" = xyes ; then
14928 cat >>confdefs.h <<\EOF
14929 #define USE_PTHREADS_EINTR 1
14935 echo "$as_me:14935: checking if you want to use weak-symbols for pthreads" >&5
14936 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
14938 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
14939 if test "${enable_weak_symbols+set}" = set; then
14940 enableval="$enable_weak_symbols"
14941 use_weak_symbols=$enableval
14943 use_weak_symbols=no
14945 echo "$as_me:14945: result: $use_weak_symbols" >&5
14946 echo "${ECHO_T}$use_weak_symbols" >&6
14947 if test "x$use_weak_symbols" = xyes ; then
14949 echo "$as_me:14949: checking if $CC supports weak symbols" >&5
14950 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
14951 if test "${cf_cv_weak_symbols+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 cat >conftest.$ac_ext <<_ACEOF
14956 #line 14956 "configure"
14957 #include "confdefs.h"
14964 #if defined(__GNUC__)
14965 # if defined __USE_ISOC99
14966 # define _cat_pragma(exp) _Pragma(#exp)
14967 # define _weak_pragma(exp) _cat_pragma(weak name)
14969 # define _weak_pragma(exp)
14971 # define _declare(name) __extension__ extern __typeof__(name) name
14972 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
14975 weak_symbol(fopen);
14981 rm -f conftest.$ac_objext
14982 if { (eval echo "$as_me:14982: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>&5
14985 echo "$as_me:14985: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -s conftest.$ac_objext'
14988 { (eval echo "$as_me:14988: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14991 echo "$as_me:14991: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 cf_cv_weak_symbols=yes
14995 echo "$as_me: failed program was:" >&5
14996 cat conftest.$ac_ext >&5
14997 cf_cv_weak_symbols=no
14999 rm -f conftest.$ac_objext conftest.$ac_ext
15002 echo "$as_me:15002: result: $cf_cv_weak_symbols" >&5
15003 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15006 cf_cv_weak_symbols=no
15009 if test "x$cf_cv_weak_symbols" = xyes ; then
15011 cat >>confdefs.h <<\EOF
15012 #define USE_WEAK_SYMBOLS 1
15019 if test "x$with_pthread" = "xyes" ; then
15021 cat >>confdefs.h <<\EOF
15022 #define USE_PTHREADS 1
15025 enable_reentrant=yes
15026 if test "x$cf_cv_weak_symbols" = xyes ; then
15029 cf_add_libs="$PRIVATE_LIBS"
15032 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15033 # filter duplicates
15034 for cf_add_1lib in $cf_add_0lib; do
15035 for cf_add_2lib in $cf_add_libs; do
15036 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15041 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15043 PRIVATE_LIBS="$cf_add_libs"
15048 # Reentrant code has to be opaque; there's little advantage to making ncurses
15049 # opaque outside of that, so there is no --enable-opaque option. We can use
15050 # this option without --with-pthreads, but this will be always set for
15052 echo "$as_me:15052: checking if you want reentrant code" >&5
15053 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15055 # Check whether --enable-reentrant or --disable-reentrant was given.
15056 if test "${enable_reentrant+set}" = set; then
15057 enableval="$enable_reentrant"
15058 with_reentrant=$enableval
15062 echo "$as_me:15062: result: $with_reentrant" >&5
15063 echo "${ECHO_T}$with_reentrant" >&6
15064 if test "x$with_reentrant" = xyes ; then
15065 cf_cv_enable_reentrant=1
15066 cf_cv_enable_opaque="NCURSES_INTERNALS"
15068 if test "x$cf_cv_weak_symbols" = xyes ; then
15070 # remove pthread library from $LIBS
15071 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15073 cf_add_libs="$TEST_LIBS"
15076 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15077 # filter duplicates
15078 for cf_add_1lib in $cf_add_0lib; do
15079 for cf_add_2lib in $cf_add_libs; do
15080 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15085 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15087 TEST_LIBS="$cf_add_libs"
15089 cf_add_libs="$TEST_LIBS2"
15092 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15093 # filter duplicates
15094 for cf_add_1lib in $cf_add_0lib; do
15095 for cf_add_2lib in $cf_add_libs; do
15096 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15101 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15103 TEST_LIBS2="$cf_add_libs"
15105 cf_add_libs="$PRIVATE_LIBS"
15108 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15109 # filter duplicates
15110 for cf_add_1lib in $cf_add_0lib; do
15111 for cf_add_2lib in $cf_add_libs; do
15112 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15117 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15119 PRIVATE_LIBS="$cf_add_libs"
15122 # when not using weak symbols but with_reentrant,
15123 # add 't' to the library suffix on all platforms
15124 # except cygwin, where we only do that if ALSO
15125 # compiling with full thread support.
15127 (*cygwin* | *msys*)
15128 if test "$with_pthread" = "yes" ; then
15129 if test "x$disable_lib_suffixes" = "xno" ; then
15130 LIB_SUFFIX="t${LIB_SUFFIX}"
15134 if test "x$disable_lib_suffixes" = "xno" ; then
15135 LIB_SUFFIX="t${LIB_SUFFIX}"
15141 cat >>confdefs.h <<\EOF
15142 #define USE_REENTRANT 1
15145 if test "${with_abi_version+set}" != set; then
15146 case $cf_cv_rel_version in
15148 cf_cv_rel_version=6.0
15149 cf_cv_abi_version=6
15150 { echo "$as_me:15150: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15151 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15157 cf_cv_enable_reentrant=0
15158 cf_cv_enable_opaque="NCURSES_OPAQUE"
15159 NCURSES_SIZE_T=short
15162 echo "$as_me:15162: checking if you want opaque curses-library structures" >&5
15163 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15165 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15166 if test "${enable_opaque_curses+set}" = set; then
15167 enableval="$enable_opaque_curses"
15168 test "$enableval" != yes && enableval=no
15169 if test "$enableval" != "no" ; then
15170 enable_opaque_curses=yes
15173 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15174 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15180 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15181 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15184 echo "$as_me:15184: result: $enable_opaque_curses" >&5
15185 echo "${ECHO_T}$enable_opaque_curses" >&6
15187 test "$cf_cv_enable_reentrant" = 1 && \
15188 test "$enable_opaque_curses" = no && \
15189 { { echo "$as_me:15189: error: reentrant configuration requires opaque library" >&5
15190 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15191 { (exit 1); exit 1; }; }
15193 echo "$as_me:15193: checking if you want opaque form-library structures" >&5
15194 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15196 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15197 if test "${enable_opaque_form+set}" = set; then
15198 enableval="$enable_opaque_form"
15199 enable_opaque_form=yes
15201 enable_opaque_form=no
15203 echo "$as_me:15203: result: $enable_opaque_form" >&5
15204 echo "${ECHO_T}$enable_opaque_form" >&6
15206 echo "$as_me:15206: checking if you want opaque menu-library structures" >&5
15207 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15209 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15210 if test "${enable_opaque_menu+set}" = set; then
15211 enableval="$enable_opaque_menu"
15212 enable_opaque_menu=yes
15214 enable_opaque_menu=no
15216 echo "$as_me:15216: result: $enable_opaque_menu" >&5
15217 echo "${ECHO_T}$enable_opaque_menu" >&6
15219 echo "$as_me:15219: checking if you want opaque panel-library structures" >&5
15220 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15222 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15223 if test "${enable_opaque_panel+set}" = set; then
15224 enableval="$enable_opaque_panel"
15225 enable_opaque_panel=yes
15227 enable_opaque_panel=no
15229 echo "$as_me:15229: result: $enable_opaque_panel" >&5
15230 echo "${ECHO_T}$enable_opaque_panel" >&6
15232 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15233 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15234 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15235 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15237 ### Allow using a different wrap-prefix
15238 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15239 echo "$as_me:15239: checking for prefix used to wrap public variables" >&5
15240 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15242 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15243 if test "${with_wrap_prefix+set}" = set; then
15244 withval="$with_wrap_prefix"
15245 NCURSES_WRAP_PREFIX=$withval
15247 NCURSES_WRAP_PREFIX=_nc_
15249 echo "$as_me:15249: result: $NCURSES_WRAP_PREFIX" >&5
15250 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15252 NCURSES_WRAP_PREFIX=_nc_
15255 cat >>confdefs.h <<EOF
15256 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15259 ###############################################################################
15260 # These options are relatively safe to experiment with.
15262 echo "$as_me:15262: checking if you want all development code" >&5
15263 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15265 # Check whether --with-develop or --without-develop was given.
15266 if test "${with_develop+set}" = set; then
15267 withval="$with_develop"
15268 with_develop=$withval
15272 echo "$as_me:15272: result: $with_develop" >&5
15273 echo "${ECHO_T}$with_develop" >&6
15275 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15276 echo "$as_me:15276: checking if you want hard-tabs code" >&5
15277 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15279 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15280 if test "${enable_hard_tabs+set}" = set; then
15281 enableval="$enable_hard_tabs"
15284 enable_hard_tabs=$with_develop
15286 echo "$as_me:15286: result: $enable_hard_tabs" >&5
15287 echo "${ECHO_T}$enable_hard_tabs" >&6
15288 test "x$enable_hard_tabs" = xyes &&
15289 cat >>confdefs.h <<\EOF
15290 #define USE_HARD_TABS 1
15293 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15294 echo "$as_me:15294: checking if you want limited support for xmc" >&5
15295 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15297 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15298 if test "${enable_xmc_glitch+set}" = set; then
15299 enableval="$enable_xmc_glitch"
15302 enable_xmc_glitch=$with_develop
15304 echo "$as_me:15304: result: $enable_xmc_glitch" >&5
15305 echo "${ECHO_T}$enable_xmc_glitch" >&6
15306 test "x$enable_xmc_glitch" = xyes &&
15307 cat >>confdefs.h <<\EOF
15308 #define USE_XMC_SUPPORT 1
15311 ###############################################################################
15312 # These are just experimental, probably should not be in a package:
15314 echo "$as_me:15314: checking if you do not want to assume colors are white-on-black" >&5
15315 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15317 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15318 if test "${enable_assumed_color+set}" = set; then
15319 enableval="$enable_assumed_color"
15320 with_assumed_color=$enableval
15322 with_assumed_color=yes
15324 echo "$as_me:15324: result: $with_assumed_color" >&5
15325 echo "${ECHO_T}$with_assumed_color" >&6
15326 test "x$with_assumed_color" = xyes &&
15327 cat >>confdefs.h <<\EOF
15328 #define USE_ASSUMED_COLOR 1
15331 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15332 echo "$as_me:15332: checking if you want hashmap scrolling-optimization code" >&5
15333 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15335 # Check whether --enable-hashmap or --disable-hashmap was given.
15336 if test "${enable_hashmap+set}" = set; then
15337 enableval="$enable_hashmap"
15338 with_hashmap=$enableval
15342 echo "$as_me:15342: result: $with_hashmap" >&5
15343 echo "${ECHO_T}$with_hashmap" >&6
15344 test "x$with_hashmap" = xyes &&
15345 cat >>confdefs.h <<\EOF
15346 #define USE_HASHMAP 1
15349 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15350 echo "$as_me:15350: checking if you want colorfgbg code" >&5
15351 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15353 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15354 if test "${enable_colorfgbg+set}" = set; then
15355 enableval="$enable_colorfgbg"
15356 with_colorfgbg=$enableval
15360 echo "$as_me:15360: result: $with_colorfgbg" >&5
15361 echo "${ECHO_T}$with_colorfgbg" >&6
15362 test "x$with_colorfgbg" = xyes &&
15363 cat >>confdefs.h <<\EOF
15364 #define USE_COLORFGBG 1
15367 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15368 echo "$as_me:15368: checking if you want to use gcc -fvisibility option" >&5
15369 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15371 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15372 if test "${enable_fvisibility+set}" = set; then
15373 enableval="$enable_fvisibility"
15374 cf_with_fvisibility=$enableval
15376 cf_with_fvisibility=no
15378 echo "$as_me:15378: result: $cf_with_fvisibility" >&5
15379 echo "${ECHO_T}$cf_with_fvisibility" >&6
15382 NCURSES_CXX_IMPEXP=
15383 if test "x$cf_with_fvisibility" = xyes; then
15385 echo "$as_me:15385: checking if $CC -fvisibility=hidden option works" >&5
15386 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15387 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 cf_save_cflags="$CFLAGS"
15392 CFLAGS="$CFLAGS -fvisibility=hidden"
15393 cat >conftest.$ac_ext <<_ACEOF
15394 #line 15394 "configure"
15395 #include "confdefs.h"
15397 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15403 if (somefunc()) return 1;
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (eval echo "$as_me:15410: \"$ac_link\"") >&5
15411 (eval $ac_link) 2>&5
15413 echo "$as_me:15413: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -s conftest$ac_exeext'
15416 { (eval echo "$as_me:15416: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:15419: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421 cf_cv_fvisibility_hidden=yes
15423 echo "$as_me: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15425 cf_cv_fvisibility_hidden=no
15427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15428 CFLAGS=$cf_save_cflags
15431 echo "$as_me:15431: result: $cf_cv_fvisibility_hidden" >&5
15432 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
15434 if test "x$cf_cv_fvisibility_hidden" = xyes
15440 cf_new_extra_cppflags=
15442 for cf_add_cflags in -fvisibility=hidden
15444 case $cf_fix_cppflags in
15446 case $cf_add_cflags in
15447 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15448 case $cf_add_cflags in
15450 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15452 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15453 && test -z "${cf_tst_cflags}" \
15454 && cf_fix_cppflags=yes
15456 if test $cf_fix_cppflags = yes ; then
15458 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15459 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15462 elif test "${cf_tst_cflags}" = "\"'" ; then
15464 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15465 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15471 case "$CPPFLAGS" in
15475 case $cf_add_cflags in
15477 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15479 CPPFLAGS=`echo "$CPPFLAGS" | \
15480 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15481 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15486 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15487 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15494 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15495 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15502 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15503 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15505 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15507 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15508 && test -z "${cf_tst_cflags}" \
15509 && cf_fix_cppflags=no
15514 if test -n "$cf_new_cflags" ; then
15516 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15517 CFLAGS="${CFLAGS}$cf_new_cflags"
15521 if test -n "$cf_new_cppflags" ; then
15523 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15524 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15528 if test -n "$cf_new_extra_cppflags" ; then
15530 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15531 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15535 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
15540 ac_cpp='$CXXCPP $CPPFLAGS'
15541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15544 ac_main_return=return
15546 echo "$as_me:15546: checking if $CXX -fvisibility=hidden option works" >&5
15547 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
15548 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 cf_save_cflags="$CXXFLAGS"
15553 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
15554 cat >conftest.$ac_ext <<_ACEOF
15555 #line 15555 "configure"
15556 #include "confdefs.h"
15558 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15564 if (somefunc()) return 1;
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (eval echo "$as_me:15571: \"$ac_link\"") >&5
15572 (eval $ac_link) 2>&5
15574 echo "$as_me:15574: \$? = $ac_status" >&5
15575 (exit $ac_status); } &&
15576 { ac_try='test -s conftest$ac_exeext'
15577 { (eval echo "$as_me:15577: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15580 echo "$as_me:15580: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 cf_cv_fvisibility_hidden2=yes
15584 echo "$as_me: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15586 cf_cv_fvisibility_hidden2=no
15588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15589 CXXFLAGS=$cf_save_cflags
15592 echo "$as_me:15592: result: $cf_cv_fvisibility_hidden2" >&5
15593 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
15595 if test "x$cf_cv_fvisibility_hidden2" = xyes
15598 cf_save_CXXFLAGS="$CFLAGS"
15604 cf_new_extra_cppflags=
15606 for cf_add_cflags in -fvisibility=hidden
15608 case $cf_fix_cppflags in
15610 case $cf_add_cflags in
15611 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15612 case $cf_add_cflags in
15614 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15616 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15617 && test -z "${cf_tst_cflags}" \
15618 && cf_fix_cppflags=yes
15620 if test $cf_fix_cppflags = yes ; then
15622 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15623 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15626 elif test "${cf_tst_cflags}" = "\"'" ; then
15628 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15629 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15635 case "$CPPFLAGS" in
15639 case $cf_add_cflags in
15641 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15643 CPPFLAGS=`echo "$CPPFLAGS" | \
15644 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15645 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15650 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15651 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15658 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15659 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15666 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15667 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15669 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15671 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15672 && test -z "${cf_tst_cflags}" \
15673 && cf_fix_cppflags=no
15678 if test -n "$cf_new_cflags" ; then
15680 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15681 CFLAGS="${CFLAGS}$cf_new_cflags"
15685 if test -n "$cf_new_cppflags" ; then
15687 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15688 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15692 if test -n "$cf_new_extra_cppflags" ; then
15694 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15695 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15700 CFLAGS="$cf_save_CXXFLAGS"
15702 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
15705 ac_cpp='$CPP $CPPFLAGS'
15706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15709 ac_main_return=return
15714 ### use option --enable-interop to turn on use of bindings used for interop
15715 echo "$as_me:15715: checking if you want interop bindings" >&5
15716 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
15718 # Check whether --enable-interop or --disable-interop was given.
15719 if test "${enable_interop+set}" = set; then
15720 enableval="$enable_interop"
15721 with_exp_interop=$enableval
15723 with_exp_interop=$cf_dft_interop
15725 echo "$as_me:15725: result: $with_exp_interop" >&5
15726 echo "${ECHO_T}$with_exp_interop" >&6
15728 NCURSES_INTEROP_FUNCS=0
15729 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
15731 echo "$as_me:15731: checking if you want experimental safe-sprintf code" >&5
15732 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
15734 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
15735 if test "${enable_safe_sprintf+set}" = set; then
15736 enableval="$enable_safe_sprintf"
15737 with_safe_sprintf=$enableval
15739 with_safe_sprintf=no
15741 echo "$as_me:15741: result: $with_safe_sprintf" >&5
15742 echo "${ECHO_T}$with_safe_sprintf" >&6
15744 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
15745 # when hashmap is used scroll hints are useless
15746 if test "$with_hashmap" = no ; then
15747 echo "$as_me:15747: checking if you want to experiment without scrolling-hints code" >&5
15748 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
15750 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
15751 if test "${enable_scroll_hints+set}" = set; then
15752 enableval="$enable_scroll_hints"
15753 with_scroll_hints=$enableval
15755 with_scroll_hints=yes
15757 echo "$as_me:15757: result: $with_scroll_hints" >&5
15758 echo "${ECHO_T}$with_scroll_hints" >&6
15759 test "x$with_scroll_hints" = xyes &&
15760 cat >>confdefs.h <<\EOF
15761 #define USE_SCROLL_HINTS 1
15766 echo "$as_me:15766: checking if you want wgetch-events code" >&5
15767 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
15769 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
15770 if test "${enable_wgetch_events+set}" = set; then
15771 enableval="$enable_wgetch_events"
15772 with_wgetch_events=$enableval
15774 with_wgetch_events=no
15776 echo "$as_me:15776: result: $with_wgetch_events" >&5
15777 echo "${ECHO_T}$with_wgetch_events" >&6
15778 test "x$with_wgetch_events" = xyes &&
15779 cat >>confdefs.h <<\EOF
15780 #define NCURSES_WGETCH_EVENTS 1
15783 ###############################################################################
15785 ### use option --disable-echo to suppress full display compiling commands
15787 echo "$as_me:15787: checking if you want to see long compiling messages" >&5
15788 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
15790 # Check whether --enable-echo or --disable-echo was given.
15791 if test "${enable_echo+set}" = set; then
15792 enableval="$enable_echo"
15793 test "$enableval" != no && enableval=yes
15794 if test "$enableval" != "yes" ; then
15797 ECHO_LD='@echo linking $@;'
15798 RULE_CC='@echo compiling $<'
15799 SHOW_CC='@echo compiling $@'
15821 echo "$as_me:15821: result: $enableval" >&5
15822 echo "${ECHO_T}$enableval" >&6
15824 if test "x$enable_echo" = xyes; then
15827 ECHO_LINK='@ echo linking $@ ... ;'
15828 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
15829 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
15832 # --disable-stripping is used for debugging
15834 echo "$as_me:15834: checking if you want to install stripped executables" >&5
15835 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
15837 # Check whether --enable-stripping or --disable-stripping was given.
15838 if test "${enable_stripping+set}" = set; then
15839 enableval="$enable_stripping"
15840 test "$enableval" != no && enableval=yes
15841 if test "$enableval" != "yes" ; then
15851 echo "$as_me:15851: result: $with_stripping" >&5
15852 echo "${ECHO_T}$with_stripping" >&6
15854 if test "$with_stripping" = yes
15861 : ${INSTALL:=install}
15862 echo "$as_me:15862: checking if install accepts -p option" >&5
15863 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
15864 if test "${cf_cv_install_p+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 if $INSTALL -p conftest.in conftest.out 2>/dev/null
15874 if test -f conftest.out/conftest.in
15876 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
15877 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
15878 if test -s conftest.err
15882 cf_cv_install_p=yes
15893 echo "$as_me:15893: result: $cf_cv_install_p" >&5
15894 echo "${ECHO_T}$cf_cv_install_p" >&6
15896 echo "$as_me:15896: checking if install needs to be told about ownership" >&5
15897 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
15898 case `$ac_config_guess` in
15907 echo "$as_me:15907: result: $with_install_o" >&5
15908 echo "${ECHO_T}$with_install_o" >&6
15909 if test "x$with_install_o" = xyes
15911 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'`
15916 # If we're avoiding relinking of shared libraries during install, that is to
15917 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
15918 # the install program has "-p" (for preserving timestamps).
15919 cf_cv_do_reranlib=yes
15920 if test "x$cf_cv_install_p" = xyes
15922 if test "x$cf_cv_do_relink" != xyes
15924 cf_cv_do_reranlib=no
15926 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
15930 ### use option --enable-warnings to turn on all gcc warnings
15931 echo "$as_me:15931: checking if you want to see compiler warnings" >&5
15932 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
15934 # Check whether --enable-warnings or --disable-warnings was given.
15935 if test "${enable_warnings+set}" = set; then
15936 enableval="$enable_warnings"
15937 with_warnings=$enableval
15939 echo "$as_me:15939: result: $with_warnings" >&5
15940 echo "${ECHO_T}$with_warnings" >&6
15942 if test "x$with_warnings" = "xyes"; then
15944 ADAFLAGS="$ADAFLAGS -gnatg"
15946 if test "x$have_x" = xyes; then
15948 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
15949 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
15950 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
15951 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15952 for cf_X_CFLAGS in $X_CFLAGS
15954 case "x$cf_X_CFLAGS" in
15956 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15959 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15964 cat >conftest.$ac_ext <<_ACEOF
15965 #line 15965 "configure"
15966 #include "confdefs.h"
15968 #include <stdlib.h>
15969 #include <X11/Intrinsic.h>
15974 String foo = malloc(1); (void)foo
15979 rm -f conftest.$ac_objext
15980 if { (eval echo "$as_me:15980: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>&5
15983 echo "$as_me:15983: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -s conftest.$ac_objext'
15986 { (eval echo "$as_me:15986: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:15989: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15992 echo "$as_me:15992: checking for X11/Xt const-feature" >&5
15993 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
15994 if test "${cf_cv_const_x_string+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 cat >conftest.$ac_ext <<_ACEOF
15999 #line 15999 "configure"
16000 #include "confdefs.h"
16002 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16003 #undef XTSTRINGDEFINES /* X11R5 and later */
16004 #include <stdlib.h>
16005 #include <X11/Intrinsic.h>
16010 String foo = malloc(1); *foo = 0
16015 rm -f conftest.$ac_objext
16016 if { (eval echo "$as_me:16016: \"$ac_compile\"") >&5
16017 (eval $ac_compile) 2>&5
16019 echo "$as_me:16019: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -s conftest.$ac_objext'
16022 { (eval echo "$as_me:16022: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16025 echo "$as_me:16025: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16028 cf_cv_const_x_string=no
16031 echo "$as_me: failed program was:" >&5
16032 cat conftest.$ac_ext >&5
16034 cf_cv_const_x_string=yes
16037 rm -f conftest.$ac_objext conftest.$ac_ext
16040 echo "$as_me:16040: result: $cf_cv_const_x_string" >&5
16041 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16043 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16044 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16045 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16047 case $cf_cv_const_x_string in
16050 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16051 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16056 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16057 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16063 echo "$as_me: failed program was:" >&5
16064 cat conftest.$ac_ext >&5
16066 rm -f conftest.$ac_objext conftest.$ac_ext
16068 cat > conftest.$ac_ext <<EOF
16069 #line 16069 "${as_me:-configure}"
16070 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16072 if test "$INTEL_COMPILER" = yes
16074 # The "-wdXXX" options suppress warnings:
16075 # remark #1419: external declaration in primary source file
16076 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16077 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16078 # remark #193: zero used for undefined preprocessing identifier
16079 # remark #593: variable "curs_sb_left_arrow" was set but never used
16080 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16081 # remark #869: parameter "tw" was never referenced
16082 # remark #981: operands are evaluated in unspecified order
16083 # warning #279: controlling expression is constant
16085 { echo "$as_me:16085: checking for $CC warning options..." >&5
16086 echo "$as_me: checking for $CC warning options..." >&6;}
16087 cf_save_CFLAGS="$CFLAGS"
16088 EXTRA_CFLAGS="-Wall"
16100 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16101 if { (eval echo "$as_me:16101: \"$ac_compile\"") >&5
16102 (eval $ac_compile) 2>&5
16104 echo "$as_me:16104: \$? = $ac_status" >&5
16105 (exit $ac_status); }; then
16106 test -n "$verbose" && echo "$as_me:16106: result: ... -$cf_opt" >&5
16107 echo "${ECHO_T}... -$cf_opt" >&6
16108 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16111 CFLAGS="$cf_save_CFLAGS"
16112 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16114 { echo "$as_me:16114: checking for $CC warning options..." >&5
16115 echo "$as_me: checking for $CC warning options..." >&6;}
16116 cf_save_CFLAGS="$CFLAGS"
16119 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16120 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16121 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16122 for cf_opt in W Wall \
16123 Wbad-function-cast \
16126 Wdeclaration-after-statement \
16129 Wmissing-declarations \
16130 Wmissing-prototypes \
16134 Wstrict-prototypes \
16135 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16137 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16138 if { (eval echo "$as_me:16138: \"$ac_compile\"") >&5
16139 (eval $ac_compile) 2>&5
16141 echo "$as_me:16141: \$? = $ac_status" >&5
16142 (exit $ac_status); }; then
16143 test -n "$verbose" && echo "$as_me:16143: result: ... -$cf_opt" >&5
16144 echo "${ECHO_T}... -$cf_opt" >&6
16147 case $GCC_VERSION in
16149 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16151 echo "${as_me:-configure}:16151: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16157 case $GCC_VERSION in
16159 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16161 echo "${as_me:-configure}:16161: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16167 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16170 CFLAGS="$cf_save_CFLAGS"
16174 if test "x$cf_with_cxx" = xyes ; then
16178 if test "$GCC" = yes ; then
16181 echo "$as_me:16181: checking if this is really Intel C++ compiler" >&5
16182 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
16183 cf_save_CFLAGS="$CXXFLAGS"
16184 CXXFLAGS="$CXXFLAGS -no-gcc"
16185 cat >conftest.$ac_ext <<_ACEOF
16186 #line 16186 "configure"
16187 #include "confdefs.h"
16193 #ifdef __INTEL_COMPILER
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:16203: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>&5
16206 echo "$as_me:16206: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try='test -s conftest.$ac_objext'
16209 { (eval echo "$as_me:16209: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 echo "$as_me:16212: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 INTEL_CPLUSPLUS=yes
16215 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16218 echo "$as_me: failed program was:" >&5
16219 cat conftest.$ac_ext >&5
16221 rm -f conftest.$ac_objext conftest.$ac_ext
16222 CXXFLAGS="$cf_save_CFLAGS"
16223 echo "$as_me:16223: result: $INTEL_CPLUSPLUS" >&5
16224 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
16231 if test "$GCC" = yes ; then
16232 echo "$as_me:16232: checking if this is really Clang C++ compiler" >&5
16233 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
16234 cf_save_CFLAGS="$CXXFLAGS"
16235 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
16236 cat >conftest.$ac_ext <<_ACEOF
16237 #line 16237 "configure"
16238 #include "confdefs.h"
16253 rm -f conftest.$ac_objext
16254 if { (eval echo "$as_me:16254: \"$ac_compile\"") >&5
16255 (eval $ac_compile) 2>&5
16257 echo "$as_me:16257: \$? = $ac_status" >&5
16258 (exit $ac_status); } &&
16259 { ac_try='test -s conftest.$ac_objext'
16260 { (eval echo "$as_me:16260: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16263 echo "$as_me:16263: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 CLANG_CPLUSPLUS=yes
16266 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
16269 echo "$as_me: failed program was:" >&5
16270 cat conftest.$ac_ext >&5
16272 rm -f conftest.$ac_objext conftest.$ac_ext
16273 CXXFLAGS="$cf_save_CFLAGS"
16274 echo "$as_me:16274: result: $CLANG_CPLUSPLUS" >&5
16275 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
16279 ac_cpp='$CXXCPP $CPPFLAGS'
16280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16283 ac_main_return=return
16285 cat > conftest.$ac_ext <<EOF
16286 #line 16286 "configure"
16287 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16290 if test "$INTEL_CPLUSPLUS" = yes
16292 # The "-wdXXX" options suppress warnings:
16293 # remark #1419: external declaration in primary source file
16294 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16295 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16296 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16297 # remark #193: zero used for undefined preprocessing identifier
16298 # remark #593: variable "curs_sb_left_arrow" was set but never used
16299 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16300 # remark #869: parameter "tw" was never referenced
16301 # remark #981: operands are evaluated in unspecified order
16302 # warning #269: invalid format string conversion
16304 { echo "$as_me:16304: checking for $CC warning options..." >&5
16305 echo "$as_me: checking for $CC warning options..." >&6;}
16306 cf_save_CXXFLAGS="$CXXFLAGS"
16307 EXTRA_CXXFLAGS="-Wall"
16320 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
16321 if { (eval echo "$as_me:16321: \"$ac_compile\"") >&5
16322 (eval $ac_compile) 2>&5
16324 echo "$as_me:16324: \$? = $ac_status" >&5
16325 (exit $ac_status); }; then
16326 test -n "$verbose" && echo "$as_me:16326: result: ... -$cf_opt" >&5
16327 echo "${ECHO_T}... -$cf_opt" >&6
16328 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
16331 CXXFLAGS="$cf_save_CXXFLAGS"
16333 elif test "$GXX" = yes
16335 { echo "$as_me:16335: checking for $CXX warning options..." >&5
16336 echo "$as_me: checking for $CXX warning options..." >&6;}
16337 cf_save_CXXFLAGS="$CXXFLAGS"
16338 EXTRA_CXXFLAGS="-W -Wall"
16339 cf_gxx_extra_warnings=""
16340 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
16341 case "$GCC_VERSION" in
16345 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
16352 Wignored-qualifiers \
16354 Woverloaded-virtual \
16362 Wundef $cf_gxx_extra_warnings Wno-unused
16364 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
16365 if { (eval echo "$as_me:16365: \"$ac_compile\"") >&5
16366 (eval $ac_compile) 2>&5
16368 echo "$as_me:16368: \$? = $ac_status" >&5
16369 (exit $ac_status); }; then
16370 test -n "$verbose" && echo "$as_me:16370: result: ... -$cf_opt" >&5
16371 echo "${ECHO_T}... -$cf_opt" >&6
16372 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
16374 test -n "$verbose" && echo "$as_me:16374: result: ... no -$cf_opt" >&5
16375 echo "${ECHO_T}... no -$cf_opt" >&6
16378 CXXFLAGS="$cf_save_CXXFLAGS"
16383 ac_cpp='$CPP $CPPFLAGS'
16384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16387 ac_main_return=return
16392 if test "$GCC" = yes
16394 cat > conftest.i <<EOF
16396 #define GCC_PRINTF 0
16399 #define GCC_SCANF 0
16401 #ifndef GCC_NORETURN
16402 #define GCC_NORETURN /* nothing */
16405 #define GCC_UNUSED /* nothing */
16408 if test "$GCC" = yes
16410 { echo "$as_me:16410: checking for $CC __attribute__ directives..." >&5
16411 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16412 cat > conftest.$ac_ext <<EOF
16413 #line 16413 "${as_me:-configure}"
16414 #include "confdefs.h"
16415 #include "conftest.h"
16416 #include "conftest.i"
16418 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16420 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16423 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16425 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16427 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16428 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16429 extern void foo(void) GCC_NORETURN;
16430 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
16432 cf_printf_attribute=no
16433 cf_scanf_attribute=no
16434 for cf_attribute in scanf printf unused noreturn
16437 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16439 cf_directive="__attribute__(($cf_attribute))"
16440 echo "checking for $CC $cf_directive" 1>&5
16442 case $cf_attribute in
16444 cf_printf_attribute=yes
16445 cat >conftest.h <<EOF
16446 #define GCC_$cf_ATTRIBUTE 1
16450 cf_scanf_attribute=yes
16451 cat >conftest.h <<EOF
16452 #define GCC_$cf_ATTRIBUTE 1
16456 cat >conftest.h <<EOF
16457 #define GCC_$cf_ATTRIBUTE $cf_directive
16462 if { (eval echo "$as_me:16462: \"$ac_compile\"") >&5
16463 (eval $ac_compile) 2>&5
16465 echo "$as_me:16465: \$? = $ac_status" >&5
16466 (exit $ac_status); }; then
16467 test -n "$verbose" && echo "$as_me:16467: result: ... $cf_attribute" >&5
16468 echo "${ECHO_T}... $cf_attribute" >&6
16469 cat conftest.h >>confdefs.h
16470 case $cf_attribute in
16473 cat >>confdefs.h <<EOF
16474 #define GCC_NORETURN $cf_directive
16479 cf_value='/* nothing */'
16480 if test "$cf_printf_attribute" != no ; then
16481 cf_value='__attribute__((format(printf,fmt,var)))'
16483 cat >>confdefs.h <<\EOF
16484 #define GCC_PRINTF 1
16489 cat >>confdefs.h <<EOF
16490 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16495 cf_value='/* nothing */'
16496 if test "$cf_scanf_attribute" != no ; then
16497 cf_value='__attribute__((format(scanf,fmt,var)))'
16499 cat >>confdefs.h <<\EOF
16500 #define GCC_SCANF 1
16505 cat >>confdefs.h <<EOF
16506 #define GCC_SCANFLIKE(fmt,var) $cf_value
16512 cat >>confdefs.h <<EOF
16513 #define GCC_UNUSED $cf_directive
16521 fgrep define conftest.i >>confdefs.h
16526 echo "$as_me:16526: checking if you want to work around bogus compiler/loader warnings" >&5
16527 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
16529 # Check whether --enable-string-hacks or --disable-string-hacks was given.
16530 if test "${enable_string_hacks+set}" = set; then
16531 enableval="$enable_string_hacks"
16532 with_string_hacks=$enableval
16534 with_string_hacks=no
16536 echo "$as_me:16536: result: $with_string_hacks" >&5
16537 echo "${ECHO_T}$with_string_hacks" >&6
16539 if test "x$with_string_hacks" = "xyes"; then
16541 cat >>confdefs.h <<\EOF
16542 #define USE_STRING_HACKS 1
16545 { echo "$as_me:16545: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
16546 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
16547 echo "$as_me:16547: checking for strlcat" >&5
16548 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
16549 if test "${ac_cv_func_strlcat+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 cat >conftest.$ac_ext <<_ACEOF
16553 #line 16553 "configure"
16554 #include "confdefs.h"
16555 #define strlcat autoconf_temporary
16556 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16563 /* We use char because int might match the return type of a gcc2
16564 builtin and then its argument prototype would still apply. */
16565 char strlcat (void);
16571 /* The GNU C library defines stubs for functions which it implements
16572 to always fail with ENOSYS. Some functions are actually named
16573 something starting with __ and the normal name is an alias. */
16574 #if defined (__stub_strlcat) || defined (__stub___strlcat)
16575 #error found stub for strlcat
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (eval echo "$as_me:16584: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>&5
16587 echo "$as_me:16587: \$? = $ac_status" >&5
16588 (exit $ac_status); } &&
16589 { ac_try='test -s conftest$ac_exeext'
16590 { (eval echo "$as_me:16590: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16593 echo "$as_me:16593: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 ac_cv_func_strlcat=yes
16597 echo "$as_me: failed program was:" >&5
16598 cat conftest.$ac_ext >&5
16599 ac_cv_func_strlcat=no
16601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16603 echo "$as_me:16603: result: $ac_cv_func_strlcat" >&5
16604 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
16605 if test $ac_cv_func_strlcat = yes; then
16607 cat >>confdefs.h <<\EOF
16608 #define HAVE_STRLCAT 1
16613 echo "$as_me:16613: checking for strlcat in -lbsd" >&5
16614 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
16615 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 ac_check_lib_save_LIBS=$LIBS
16620 cat >conftest.$ac_ext <<_ACEOF
16621 #line 16621 "configure"
16622 #include "confdefs.h"
16624 /* Override any gcc2 internal prototype to avoid an error. */
16628 /* We use char because int might match the return type of a gcc2
16629 builtin and then its argument prototype would still apply. */
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (eval echo "$as_me:16640: \"$ac_link\"") >&5
16641 (eval $ac_link) 2>&5
16643 echo "$as_me:16643: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -s conftest$ac_exeext'
16646 { (eval echo "$as_me:16646: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16649 echo "$as_me:16649: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_lib_bsd_strlcat=yes
16653 echo "$as_me: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16655 ac_cv_lib_bsd_strlcat=no
16657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16658 LIBS=$ac_check_lib_save_LIBS
16660 echo "$as_me:16660: result: $ac_cv_lib_bsd_strlcat" >&5
16661 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
16662 if test $ac_cv_lib_bsd_strlcat = yes; then
16664 cf_add_libs="$LIBS"
16667 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16668 # filter duplicates
16669 for cf_add_1lib in $cf_add_0lib; do
16670 for cf_add_2lib in $cf_add_libs; do
16671 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16676 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16678 LIBS="$cf_add_libs"
16680 for ac_header in bsd/string.h
16682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16683 echo "$as_me:16683: checking for $ac_header" >&5
16684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 cat >conftest.$ac_ext <<_ACEOF
16689 #line 16689 "configure"
16690 #include "confdefs.h"
16691 #include <$ac_header>
16693 if { (eval echo "$as_me:16693: \"$ac_cpp conftest.$ac_ext\"") >&5
16694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16696 egrep -v '^ *\+' conftest.er1 >conftest.err
16698 cat conftest.err >&5
16699 echo "$as_me:16699: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev/null; then
16701 if test -s conftest.err; then
16702 ac_cpp_err=$ac_c_preproc_warn_flag
16709 if test -z "$ac_cpp_err"; then
16710 eval "$as_ac_Header=yes"
16712 echo "$as_me: failed program was:" >&5
16713 cat conftest.$ac_ext >&5
16714 eval "$as_ac_Header=no"
16716 rm -f conftest.err conftest.$ac_ext
16718 echo "$as_me:16718: result: `eval echo '${'$as_ac_Header'}'`" >&5
16719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16721 cat >>confdefs.h <<EOF
16722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16728 cat >>confdefs.h <<\EOF
16729 #define HAVE_STRLCAT 1
16736 for ac_func in strlcpy snprintf
16738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16739 echo "$as_me:16739: checking for $ac_func" >&5
16740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16741 if eval "test \"\${$as_ac_var+set}\" = set"; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 cat >conftest.$ac_ext <<_ACEOF
16745 #line 16745 "configure"
16746 #include "confdefs.h"
16747 #define $ac_func autoconf_temporary
16748 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16755 /* We use char because int might match the return type of a gcc2
16756 builtin and then its argument prototype would still apply. */
16757 char $ac_func (void);
16763 /* The GNU C library defines stubs for functions which it implements
16764 to always fail with ENOSYS. Some functions are actually named
16765 something starting with __ and the normal name is an alias. */
16766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16767 #error found stub for $ac_func
16770 return $ac_func ();
16775 rm -f conftest.$ac_objext conftest$ac_exeext
16776 if { (eval echo "$as_me:16776: \"$ac_link\"") >&5
16777 (eval $ac_link) 2>&5
16779 echo "$as_me:16779: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -s conftest$ac_exeext'
16782 { (eval echo "$as_me:16782: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16785 echo "$as_me:16785: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 eval "$as_ac_var=yes"
16789 echo "$as_me: failed program was:" >&5
16790 cat conftest.$ac_ext >&5
16791 eval "$as_ac_var=no"
16793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16795 echo "$as_me:16795: result: `eval echo '${'$as_ac_var'}'`" >&5
16796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16797 if test `eval echo '${'$as_ac_var'}'` = yes; then
16798 cat >>confdefs.h <<EOF
16799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16807 ### use option --enable-assertions to turn on generation of assertion code
16808 echo "$as_me:16808: checking if you want to enable runtime assertions" >&5
16809 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
16811 # Check whether --enable-assertions or --disable-assertions was given.
16812 if test "${enable_assertions+set}" = set; then
16813 enableval="$enable_assertions"
16814 with_assertions=$enableval
16818 echo "$as_me:16818: result: $with_assertions" >&5
16819 echo "${ECHO_T}$with_assertions" >&6
16822 if test "$with_assertions" = no
16824 CPPFLAGS="$CPPFLAGS -DNDEBUG"
16827 ADAFLAGS="$ADAFLAGS -gnata"
16832 ### use option --disable-leaks to suppress "permanent" leaks, for testing
16834 echo "$as_me:16834: checking if you want to use dmalloc for testing" >&5
16835 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16837 # Check whether --with-dmalloc or --without-dmalloc was given.
16838 if test "${with_dmalloc+set}" = set; then
16839 withval="$with_dmalloc"
16841 cat >>confdefs.h <<EOF
16842 #define USE_DMALLOC 1
16845 : ${with_cflags:=-g}
16846 : ${with_no_leaks:=yes}
16851 echo "$as_me:16851: result: ${with_dmalloc:-no}" >&5
16852 echo "${ECHO_T}${with_dmalloc:-no}" >&6
16854 case .$with_cflags in
16864 cf_new_extra_cppflags=
16866 for cf_add_cflags in -g
16868 case $cf_fix_cppflags in
16870 case $cf_add_cflags in
16871 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16872 case $cf_add_cflags in
16874 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16876 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16877 && test -z "${cf_tst_cflags}" \
16878 && cf_fix_cppflags=yes
16880 if test $cf_fix_cppflags = yes ; then
16882 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16883 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16886 elif test "${cf_tst_cflags}" = "\"'" ; then
16888 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16889 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16895 case "$CPPFLAGS" in
16899 case $cf_add_cflags in
16901 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16903 CPPFLAGS=`echo "$CPPFLAGS" | \
16904 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16905 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16910 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16911 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16918 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16919 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16926 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16927 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16929 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16931 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16932 && test -z "${cf_tst_cflags}" \
16933 && cf_fix_cppflags=no
16938 if test -n "$cf_new_cflags" ; then
16940 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16941 CFLAGS="${CFLAGS}$cf_new_cflags"
16945 if test -n "$cf_new_cppflags" ; then
16947 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16948 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16952 if test -n "$cf_new_extra_cppflags" ; then
16954 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16955 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16964 if test "$with_dmalloc" = yes ; then
16965 echo "$as_me:16965: checking for dmalloc.h" >&5
16966 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16967 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 cat >conftest.$ac_ext <<_ACEOF
16971 #line 16971 "configure"
16972 #include "confdefs.h"
16973 #include <dmalloc.h>
16975 if { (eval echo "$as_me:16975: \"$ac_cpp conftest.$ac_ext\"") >&5
16976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16978 egrep -v '^ *\+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 echo "$as_me:16981: \$? = $ac_status" >&5
16982 (exit $ac_status); } >/dev/null; then
16983 if test -s conftest.err; then
16984 ac_cpp_err=$ac_c_preproc_warn_flag
16991 if test -z "$ac_cpp_err"; then
16992 ac_cv_header_dmalloc_h=yes
16994 echo "$as_me: failed program was:" >&5
16995 cat conftest.$ac_ext >&5
16996 ac_cv_header_dmalloc_h=no
16998 rm -f conftest.err conftest.$ac_ext
17000 echo "$as_me:17000: result: $ac_cv_header_dmalloc_h" >&5
17001 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17002 if test $ac_cv_header_dmalloc_h = yes; then
17004 echo "$as_me:17004: checking for dmalloc_debug in -ldmalloc" >&5
17005 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17006 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 ac_check_lib_save_LIBS=$LIBS
17010 LIBS="-ldmalloc $LIBS"
17011 cat >conftest.$ac_ext <<_ACEOF
17012 #line 17012 "configure"
17013 #include "confdefs.h"
17015 /* Override any gcc2 internal prototype to avoid an error. */
17019 /* We use char because int might match the return type of a gcc2
17020 builtin and then its argument prototype would still apply. */
17021 char dmalloc_debug ();
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (eval echo "$as_me:17031: \"$ac_link\"") >&5
17032 (eval $ac_link) 2>&5
17034 echo "$as_me:17034: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try='test -s conftest$ac_exeext'
17037 { (eval echo "$as_me:17037: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17040 echo "$as_me:17040: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 ac_cv_lib_dmalloc_dmalloc_debug=yes
17044 echo "$as_me: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17046 ac_cv_lib_dmalloc_dmalloc_debug=no
17048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17049 LIBS=$ac_check_lib_save_LIBS
17051 echo "$as_me:17051: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17052 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17053 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
17054 cat >>confdefs.h <<EOF
17055 #define HAVE_LIBDMALLOC 1
17058 LIBS="-ldmalloc $LIBS"
17066 echo "$as_me:17066: checking if you want to use dbmalloc for testing" >&5
17067 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17069 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17070 if test "${with_dbmalloc+set}" = set; then
17071 withval="$with_dbmalloc"
17073 cat >>confdefs.h <<EOF
17074 #define USE_DBMALLOC 1
17077 : ${with_cflags:=-g}
17078 : ${with_no_leaks:=yes}
17083 echo "$as_me:17083: result: ${with_dbmalloc:-no}" >&5
17084 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17086 case .$with_cflags in
17096 cf_new_extra_cppflags=
17098 for cf_add_cflags in -g
17100 case $cf_fix_cppflags in
17102 case $cf_add_cflags in
17103 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17104 case $cf_add_cflags in
17106 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17108 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17109 && test -z "${cf_tst_cflags}" \
17110 && cf_fix_cppflags=yes
17112 if test $cf_fix_cppflags = yes ; then
17114 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17115 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17118 elif test "${cf_tst_cflags}" = "\"'" ; then
17120 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17121 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17127 case "$CPPFLAGS" in
17131 case $cf_add_cflags in
17133 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17135 CPPFLAGS=`echo "$CPPFLAGS" | \
17136 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17137 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17142 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17143 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17150 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17151 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17158 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17159 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17161 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17163 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17164 && test -z "${cf_tst_cflags}" \
17165 && cf_fix_cppflags=no
17170 if test -n "$cf_new_cflags" ; then
17172 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17173 CFLAGS="${CFLAGS}$cf_new_cflags"
17177 if test -n "$cf_new_cppflags" ; then
17179 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17180 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17184 if test -n "$cf_new_extra_cppflags" ; then
17186 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17187 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17196 if test "$with_dbmalloc" = yes ; then
17197 echo "$as_me:17197: checking for dbmalloc.h" >&5
17198 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17199 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17203 #line 17203 "configure"
17204 #include "confdefs.h"
17205 #include <dbmalloc.h>
17207 if { (eval echo "$as_me:17207: \"$ac_cpp conftest.$ac_ext\"") >&5
17208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17210 egrep -v '^ *\+' conftest.er1 >conftest.err
17212 cat conftest.err >&5
17213 echo "$as_me:17213: \$? = $ac_status" >&5
17214 (exit $ac_status); } >/dev/null; then
17215 if test -s conftest.err; then
17216 ac_cpp_err=$ac_c_preproc_warn_flag
17223 if test -z "$ac_cpp_err"; then
17224 ac_cv_header_dbmalloc_h=yes
17226 echo "$as_me: failed program was:" >&5
17227 cat conftest.$ac_ext >&5
17228 ac_cv_header_dbmalloc_h=no
17230 rm -f conftest.err conftest.$ac_ext
17232 echo "$as_me:17232: result: $ac_cv_header_dbmalloc_h" >&5
17233 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17234 if test $ac_cv_header_dbmalloc_h = yes; then
17236 echo "$as_me:17236: checking for debug_malloc in -ldbmalloc" >&5
17237 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17238 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-ldbmalloc $LIBS"
17243 cat >conftest.$ac_ext <<_ACEOF
17244 #line 17244 "configure"
17245 #include "confdefs.h"
17247 /* Override any gcc2 internal prototype to avoid an error. */
17251 /* We use char because int might match the return type of a gcc2
17252 builtin and then its argument prototype would still apply. */
17253 char debug_malloc ();
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (eval echo "$as_me:17263: \"$ac_link\"") >&5
17264 (eval $ac_link) 2>&5
17266 echo "$as_me:17266: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -s conftest$ac_exeext'
17269 { (eval echo "$as_me:17269: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17272 echo "$as_me:17272: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_cv_lib_dbmalloc_debug_malloc=yes
17276 echo "$as_me: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17278 ac_cv_lib_dbmalloc_debug_malloc=no
17280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_lib_save_LIBS
17283 echo "$as_me:17283: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17284 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17285 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17286 cat >>confdefs.h <<EOF
17287 #define HAVE_LIBDBMALLOC 1
17290 LIBS="-ldbmalloc $LIBS"
17298 echo "$as_me:17298: checking if you want to use valgrind for testing" >&5
17299 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17301 # Check whether --with-valgrind or --without-valgrind was given.
17302 if test "${with_valgrind+set}" = set; then
17303 withval="$with_valgrind"
17305 cat >>confdefs.h <<EOF
17306 #define USE_VALGRIND 1
17309 : ${with_cflags:=-g}
17310 : ${with_no_leaks:=yes}
17315 echo "$as_me:17315: result: ${with_valgrind:-no}" >&5
17316 echo "${ECHO_T}${with_valgrind:-no}" >&6
17318 case .$with_cflags in
17328 cf_new_extra_cppflags=
17330 for cf_add_cflags in -g
17332 case $cf_fix_cppflags in
17334 case $cf_add_cflags in
17335 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17336 case $cf_add_cflags in
17338 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17340 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17341 && test -z "${cf_tst_cflags}" \
17342 && cf_fix_cppflags=yes
17344 if test $cf_fix_cppflags = yes ; then
17346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17347 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17350 elif test "${cf_tst_cflags}" = "\"'" ; then
17352 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17353 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17359 case "$CPPFLAGS" in
17363 case $cf_add_cflags in
17365 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17367 CPPFLAGS=`echo "$CPPFLAGS" | \
17368 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17369 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17374 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17375 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17382 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17383 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17391 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17393 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17395 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17396 && test -z "${cf_tst_cflags}" \
17397 && cf_fix_cppflags=no
17402 if test -n "$cf_new_cflags" ; then
17404 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17405 CFLAGS="${CFLAGS}$cf_new_cflags"
17409 if test -n "$cf_new_cppflags" ; then
17411 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17412 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17416 if test -n "$cf_new_extra_cppflags" ; then
17418 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17419 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17428 echo "$as_me:17428: checking if you want to perform memory-leak testing" >&5
17429 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17431 # Check whether --enable-leaks or --disable-leaks was given.
17432 if test "${enable_leaks+set}" = set; then
17433 enableval="$enable_leaks"
17434 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
17436 : ${with_no_leaks:=no}
17438 echo "$as_me:17438: result: $with_no_leaks" >&5
17439 echo "${ECHO_T}$with_no_leaks" >&6
17441 if test "$with_no_leaks" = yes ; then
17443 cat >>confdefs.h <<\EOF
17447 cat >>confdefs.h <<\EOF
17448 #define YY_NO_LEAKS 1
17453 cat >>confdefs.h <<\EOF
17454 #define HAVE_NC_ALLOC_H 1
17457 ### use option --enable-expanded to generate certain macros as functions
17459 # Check whether --enable-expanded or --disable-expanded was given.
17460 if test "${enable_expanded+set}" = set; then
17461 enableval="$enable_expanded"
17462 test "x$enableval" = xyes &&
17463 cat >>confdefs.h <<\EOF
17464 #define NCURSES_EXPANDED 1
17469 ### use option --disable-macros to suppress macros in favor of functions
17471 # Check whether --enable-macros or --disable-macros was given.
17472 if test "${enable_macros+set}" = set; then
17473 enableval="$enable_macros"
17474 test "$enableval" = no &&
17475 cat >>confdefs.h <<\EOF
17476 #define NCURSES_NOMACROS 1
17481 # Normally we only add trace() to the debug-library. Allow this to be
17482 # extended to all models of the ncurses library:
17484 case "$CFLAGS $CPPFLAGS" in
17490 echo "$as_me:17490: checking whether to add trace feature to all models" >&5
17491 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
17493 # Check whether --with-trace or --without-trace was given.
17494 if test "${with_trace+set}" = set; then
17495 withval="$with_trace"
17496 cf_with_trace=$withval
17498 cf_with_trace=$cf_all_traces
17500 echo "$as_me:17500: result: $cf_with_trace" >&5
17501 echo "${ECHO_T}$cf_with_trace" >&6
17503 if test "x$cf_with_trace" = xyes ; then
17510 cf_new_extra_cppflags=
17512 for cf_add_cflags in -DTRACE
17514 case $cf_fix_cppflags in
17516 case $cf_add_cflags in
17517 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17518 case $cf_add_cflags in
17520 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17522 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17523 && test -z "${cf_tst_cflags}" \
17524 && cf_fix_cppflags=yes
17526 if test $cf_fix_cppflags = yes ; then
17528 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17529 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17532 elif test "${cf_tst_cflags}" = "\"'" ; then
17534 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17535 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17541 case "$CPPFLAGS" in
17545 case $cf_add_cflags in
17547 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17549 CPPFLAGS=`echo "$CPPFLAGS" | \
17550 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17551 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17556 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17557 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17564 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17565 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17572 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17573 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17575 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17577 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17578 && test -z "${cf_tst_cflags}" \
17579 && cf_fix_cppflags=no
17584 if test -n "$cf_new_cflags" ; then
17586 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17587 CFLAGS="${CFLAGS}$cf_new_cflags"
17591 if test -n "$cf_new_cppflags" ; then
17593 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17594 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17598 if test -n "$cf_new_extra_cppflags" ; then
17600 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17601 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17605 cat >>confdefs.h <<\EOF
17606 #define HAVE__TRACEF 1
17614 echo "$as_me:17614: checking if we want to use GNAT projects" >&5
17615 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
17617 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
17618 if test "${enable_gnat_projects+set}" = set; then
17619 enableval="$enable_gnat_projects"
17620 test "$enableval" != no && enableval=yes
17621 if test "$enableval" != "yes" ; then
17622 enable_gnat_projects=no
17624 enable_gnat_projects=yes
17628 enable_gnat_projects=yes
17631 echo "$as_me:17631: result: $enable_gnat_projects" >&5
17632 echo "${ECHO_T}$enable_gnat_projects" >&6
17634 ### Checks for libraries.
17635 case $cf_cv_system_name in
17636 (*mingw32*|*mingw64*)
17637 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
17638 # Note: WINVER may be a problem with Windows 10
17641 echo "$as_me:17641: checking for gettimeofday" >&5
17642 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
17643 if test "${ac_cv_func_gettimeofday+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 cat >conftest.$ac_ext <<_ACEOF
17647 #line 17647 "configure"
17648 #include "confdefs.h"
17649 #define gettimeofday autoconf_temporary
17650 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17651 #undef gettimeofday
17657 /* We use char because int might match the return type of a gcc2
17658 builtin and then its argument prototype would still apply. */
17659 char gettimeofday (void);
17665 /* The GNU C library defines stubs for functions which it implements
17666 to always fail with ENOSYS. Some functions are actually named
17667 something starting with __ and the normal name is an alias. */
17668 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
17669 #error found stub for gettimeofday
17672 return gettimeofday ();
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (eval echo "$as_me:17678: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>&5
17681 echo "$as_me:17681: \$? = $ac_status" >&5
17682 (exit $ac_status); } &&
17683 { ac_try='test -s conftest$ac_exeext'
17684 { (eval echo "$as_me:17684: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17687 echo "$as_me:17687: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17689 ac_cv_func_gettimeofday=yes
17691 echo "$as_me: failed program was:" >&5
17692 cat conftest.$ac_ext >&5
17693 ac_cv_func_gettimeofday=no
17695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17697 echo "$as_me:17697: result: $ac_cv_func_gettimeofday" >&5
17698 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
17699 if test $ac_cv_func_gettimeofday = yes; then
17701 cat >>confdefs.h <<\EOF
17702 #define HAVE_GETTIMEOFDAY 1
17707 echo "$as_me:17707: checking for gettimeofday in -lbsd" >&5
17708 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
17709 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 ac_check_lib_save_LIBS=$LIBS
17714 cat >conftest.$ac_ext <<_ACEOF
17715 #line 17715 "configure"
17716 #include "confdefs.h"
17718 /* Override any gcc2 internal prototype to avoid an error. */
17722 /* We use char because int might match the return type of a gcc2
17723 builtin and then its argument prototype would still apply. */
17724 char gettimeofday ();
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (eval echo "$as_me:17734: \"$ac_link\"") >&5
17735 (eval $ac_link) 2>&5
17737 echo "$as_me:17737: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -s conftest$ac_exeext'
17740 { (eval echo "$as_me:17740: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17743 echo "$as_me:17743: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_lib_bsd_gettimeofday=yes
17747 echo "$as_me: failed program was:" >&5
17748 cat conftest.$ac_ext >&5
17749 ac_cv_lib_bsd_gettimeofday=no
17751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17752 LIBS=$ac_check_lib_save_LIBS
17754 echo "$as_me:17754: result: $ac_cv_lib_bsd_gettimeofday" >&5
17755 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
17756 if test $ac_cv_lib_bsd_gettimeofday = yes; then
17758 cat >>confdefs.h <<\EOF
17759 #define HAVE_GETTIMEOFDAY 1
17762 cf_add_libs="$LIBS"
17765 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17766 # filter duplicates
17767 for cf_add_1lib in $cf_add_0lib; do
17768 for cf_add_2lib in $cf_add_libs; do
17769 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17774 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17776 LIBS="$cf_add_libs"
17784 echo "$as_me:17784: checking if -lm needed for math functions" >&5
17785 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
17786 if test "${cf_cv_need_libm+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 cat >conftest.$ac_ext <<_ACEOF
17791 #line 17791 "configure"
17792 #include "confdefs.h"
17795 #include <stdlib.h>
17801 double x = rand(); printf("result = %g\n", pow(sin(x),x))
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (eval echo "$as_me:17807: \"$ac_link\"") >&5
17808 (eval $ac_link) 2>&5
17810 echo "$as_me:17810: \$? = $ac_status" >&5
17811 (exit $ac_status); } &&
17812 { ac_try='test -s conftest$ac_exeext'
17813 { (eval echo "$as_me:17813: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17816 echo "$as_me:17816: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17820 echo "$as_me: failed program was:" >&5
17821 cat conftest.$ac_ext >&5
17822 cf_cv_need_libm=yes
17824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17826 echo "$as_me:17826: result: $cf_cv_need_libm" >&5
17827 echo "${ECHO_T}$cf_cv_need_libm" >&6
17828 if test "$cf_cv_need_libm" = yes
17833 ### Checks for header files.
17834 echo "$as_me:17834: checking for ANSI C header files" >&5
17835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17836 if test "${ac_cv_header_stdc+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 cat >conftest.$ac_ext <<_ACEOF
17840 #line 17840 "configure"
17841 #include "confdefs.h"
17842 #include <stdlib.h>
17843 #include <stdarg.h>
17844 #include <string.h>
17848 if { (eval echo "$as_me:17848: \"$ac_cpp conftest.$ac_ext\"") >&5
17849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17851 egrep -v '^ *\+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:17854: \$? = $ac_status" >&5
17855 (exit $ac_status); } >/dev/null; then
17856 if test -s conftest.err; then
17857 ac_cpp_err=$ac_c_preproc_warn_flag
17864 if test -z "$ac_cpp_err"; then
17865 ac_cv_header_stdc=yes
17867 echo "$as_me: failed program was:" >&5
17868 cat conftest.$ac_ext >&5
17869 ac_cv_header_stdc=no
17871 rm -f conftest.err conftest.$ac_ext
17873 if test $ac_cv_header_stdc = yes; then
17874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17875 cat >conftest.$ac_ext <<_ACEOF
17876 #line 17876 "configure"
17877 #include "confdefs.h"
17878 #include <string.h>
17881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17882 egrep "memchr" >/dev/null 2>&1; then
17885 ac_cv_header_stdc=no
17891 if test $ac_cv_header_stdc = yes; then
17892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17893 cat >conftest.$ac_ext <<_ACEOF
17894 #line 17894 "configure"
17895 #include "confdefs.h"
17896 #include <stdlib.h>
17899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17900 egrep "free" >/dev/null 2>&1; then
17903 ac_cv_header_stdc=no
17909 if test $ac_cv_header_stdc = yes; then
17910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17911 if test "$cross_compiling" = yes; then
17914 cat >conftest.$ac_ext <<_ACEOF
17915 #line 17915 "configure"
17916 #include "confdefs.h"
17918 #if ((' ' & 0x0FF) == 0x020)
17919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17922 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
17923 || ('j' <= (c) && (c) <= 'r') \
17924 || ('s' <= (c) && (c) <= 'z'))
17925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17933 for (i = 0; i < 256; i++)
17934 if (XOR (islower (i), ISLOWER (i))
17935 || toupper (i) != TOUPPER (i))
17936 $ac_main_return(2);
17937 $ac_main_return (0);
17940 rm -f conftest$ac_exeext
17941 if { (eval echo "$as_me:17941: \"$ac_link\"") >&5
17942 (eval $ac_link) 2>&5
17944 echo "$as_me:17944: \$? = $ac_status" >&5
17945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17946 { (eval echo "$as_me:17946: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17949 echo "$as_me:17949: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17953 echo "$as_me: program exited with status $ac_status" >&5
17954 echo "$as_me: failed program was:" >&5
17955 cat conftest.$ac_ext >&5
17956 ac_cv_header_stdc=no
17958 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17962 echo "$as_me:17962: result: $ac_cv_header_stdc" >&5
17963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17964 if test $ac_cv_header_stdc = yes; then
17966 cat >>confdefs.h <<\EOF
17967 #define STDC_HEADERS 1
17972 ac_header_dirent=no
17973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17974 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17975 echo "$as_me:17975: checking for $ac_hdr that defines DIR" >&5
17976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 cat >conftest.$ac_ext <<_ACEOF
17981 #line 17981 "configure"
17982 #include "confdefs.h"
17983 #include <sys/types.h>
17995 rm -f conftest.$ac_objext
17996 if { (eval echo "$as_me:17996: \"$ac_compile\"") >&5
17997 (eval $ac_compile) 2>&5
17999 echo "$as_me:17999: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:18002: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18005 echo "$as_me:18005: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 eval "$as_ac_Header=yes"
18009 echo "$as_me: failed program was:" >&5
18010 cat conftest.$ac_ext >&5
18011 eval "$as_ac_Header=no"
18013 rm -f conftest.$ac_objext conftest.$ac_ext
18015 echo "$as_me:18015: result: `eval echo '${'$as_ac_Header'}'`" >&5
18016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18018 cat >>confdefs.h <<EOF
18019 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18022 ac_header_dirent=$ac_hdr; break
18026 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18027 if test $ac_header_dirent = dirent.h; then
18028 echo "$as_me:18028: checking for opendir in -ldir" >&5
18029 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18030 if test "${ac_cv_lib_dir_opendir+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 ac_check_lib_save_LIBS=$LIBS
18035 cat >conftest.$ac_ext <<_ACEOF
18036 #line 18036 "configure"
18037 #include "confdefs.h"
18039 /* Override any gcc2 internal prototype to avoid an error. */
18043 /* We use char because int might match the return type of a gcc2
18044 builtin and then its argument prototype would still apply. */
18054 rm -f conftest.$ac_objext conftest$ac_exeext
18055 if { (eval echo "$as_me:18055: \"$ac_link\"") >&5
18056 (eval $ac_link) 2>&5
18058 echo "$as_me:18058: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -s conftest$ac_exeext'
18061 { (eval echo "$as_me:18061: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18064 echo "$as_me:18064: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 ac_cv_lib_dir_opendir=yes
18068 echo "$as_me: failed program was:" >&5
18069 cat conftest.$ac_ext >&5
18070 ac_cv_lib_dir_opendir=no
18072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18073 LIBS=$ac_check_lib_save_LIBS
18075 echo "$as_me:18075: result: $ac_cv_lib_dir_opendir" >&5
18076 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
18077 if test $ac_cv_lib_dir_opendir = yes; then
18082 echo "$as_me:18082: checking for opendir in -lx" >&5
18083 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
18084 if test "${ac_cv_lib_x_opendir+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18087 ac_check_lib_save_LIBS=$LIBS
18089 cat >conftest.$ac_ext <<_ACEOF
18090 #line 18090 "configure"
18091 #include "confdefs.h"
18093 /* Override any gcc2 internal prototype to avoid an error. */
18097 /* We use char because int might match the return type of a gcc2
18098 builtin and then its argument prototype would still apply. */
18108 rm -f conftest.$ac_objext conftest$ac_exeext
18109 if { (eval echo "$as_me:18109: \"$ac_link\"") >&5
18110 (eval $ac_link) 2>&5
18112 echo "$as_me:18112: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -s conftest$ac_exeext'
18115 { (eval echo "$as_me:18115: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18118 echo "$as_me:18118: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_cv_lib_x_opendir=yes
18122 echo "$as_me: failed program was:" >&5
18123 cat conftest.$ac_ext >&5
18124 ac_cv_lib_x_opendir=no
18126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18127 LIBS=$ac_check_lib_save_LIBS
18129 echo "$as_me:18129: result: $ac_cv_lib_x_opendir" >&5
18130 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
18131 if test $ac_cv_lib_x_opendir = yes; then
18137 echo "$as_me:18137: checking whether time.h and sys/time.h may both be included" >&5
18138 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18139 if test "${ac_cv_header_time+set}" = set; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 cat >conftest.$ac_ext <<_ACEOF
18143 #line 18143 "configure"
18144 #include "confdefs.h"
18145 #include <sys/types.h>
18146 #include <sys/time.h>
18152 if ((struct tm *) 0)
18158 rm -f conftest.$ac_objext
18159 if { (eval echo "$as_me:18159: \"$ac_compile\"") >&5
18160 (eval $ac_compile) 2>&5
18162 echo "$as_me:18162: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -s conftest.$ac_objext'
18165 { (eval echo "$as_me:18165: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18168 echo "$as_me:18168: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_header_time=yes
18172 echo "$as_me: failed program was:" >&5
18173 cat conftest.$ac_ext >&5
18174 ac_cv_header_time=no
18176 rm -f conftest.$ac_objext conftest.$ac_ext
18178 echo "$as_me:18178: result: $ac_cv_header_time" >&5
18179 echo "${ECHO_T}$ac_cv_header_time" >&6
18180 if test $ac_cv_header_time = yes; then
18182 cat >>confdefs.h <<\EOF
18183 #define TIME_WITH_SYS_TIME 1
18190 cf_regex_libs="regex re"
18193 cf_regex_libs="systre gnurx $cf_regex_libs"
18197 echo "$as_me:18197: checking for regcomp" >&5
18198 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
18199 if test "${ac_cv_func_regcomp+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18202 cat >conftest.$ac_ext <<_ACEOF
18203 #line 18203 "configure"
18204 #include "confdefs.h"
18205 #define regcomp autoconf_temporary
18206 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18213 /* We use char because int might match the return type of a gcc2
18214 builtin and then its argument prototype would still apply. */
18215 char regcomp (void);
18221 /* The GNU C library defines stubs for functions which it implements
18222 to always fail with ENOSYS. Some functions are actually named
18223 something starting with __ and the normal name is an alias. */
18224 #if defined (__stub_regcomp) || defined (__stub___regcomp)
18225 #error found stub for regcomp
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (eval echo "$as_me:18234: \"$ac_link\"") >&5
18235 (eval $ac_link) 2>&5
18237 echo "$as_me:18237: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try='test -s conftest$ac_exeext'
18240 { (eval echo "$as_me:18240: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:18243: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_cv_func_regcomp=yes
18247 echo "$as_me: failed program was:" >&5
18248 cat conftest.$ac_ext >&5
18249 ac_cv_func_regcomp=no
18251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18253 echo "$as_me:18253: result: $ac_cv_func_regcomp" >&5
18254 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
18255 if test $ac_cv_func_regcomp = yes; then
18256 cf_regex_func=regcomp
18259 for cf_regex_lib in $cf_regex_libs
18261 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
18262 echo "$as_me:18262: checking for regcomp in -l$cf_regex_lib" >&5
18263 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
18264 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 ac_check_lib_save_LIBS=$LIBS
18268 LIBS="-l$cf_regex_lib $LIBS"
18269 cat >conftest.$ac_ext <<_ACEOF
18270 #line 18270 "configure"
18271 #include "confdefs.h"
18273 /* Override any gcc2 internal prototype to avoid an error. */
18277 /* We use char because int might match the return type of a gcc2
18278 builtin and then its argument prototype would still apply. */
18288 rm -f conftest.$ac_objext conftest$ac_exeext
18289 if { (eval echo "$as_me:18289: \"$ac_link\"") >&5
18290 (eval $ac_link) 2>&5
18292 echo "$as_me:18292: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -s conftest$ac_exeext'
18295 { (eval echo "$as_me:18295: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18298 echo "$as_me:18298: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 eval "$as_ac_Lib=yes"
18302 echo "$as_me: failed program was:" >&5
18303 cat conftest.$ac_ext >&5
18304 eval "$as_ac_Lib=no"
18306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18309 echo "$as_me:18309: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18310 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18311 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18313 cf_add_libs="$LIBS"
18316 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18317 # filter duplicates
18318 for cf_add_1lib in $cf_add_0lib; do
18319 for cf_add_2lib in $cf_add_libs; do
18320 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18325 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18327 LIBS="$cf_add_libs"
18329 cf_regex_func=regcomp
18337 if test "$cf_regex_func" = no ; then
18338 echo "$as_me:18338: checking for compile" >&5
18339 echo $ECHO_N "checking for compile... $ECHO_C" >&6
18340 if test "${ac_cv_func_compile+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 cat >conftest.$ac_ext <<_ACEOF
18344 #line 18344 "configure"
18345 #include "confdefs.h"
18346 #define compile autoconf_temporary
18347 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18354 /* We use char because int might match the return type of a gcc2
18355 builtin and then its argument prototype would still apply. */
18356 char compile (void);
18362 /* The GNU C library defines stubs for functions which it implements
18363 to always fail with ENOSYS. Some functions are actually named
18364 something starting with __ and the normal name is an alias. */
18365 #if defined (__stub_compile) || defined (__stub___compile)
18366 #error found stub for compile
18374 rm -f conftest.$ac_objext conftest$ac_exeext
18375 if { (eval echo "$as_me:18375: \"$ac_link\"") >&5
18376 (eval $ac_link) 2>&5
18378 echo "$as_me:18378: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -s conftest$ac_exeext'
18381 { (eval echo "$as_me:18381: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18384 echo "$as_me:18384: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_cv_func_compile=yes
18388 echo "$as_me: failed program was:" >&5
18389 cat conftest.$ac_ext >&5
18390 ac_cv_func_compile=no
18392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18394 echo "$as_me:18394: result: $ac_cv_func_compile" >&5
18395 echo "${ECHO_T}$ac_cv_func_compile" >&6
18396 if test $ac_cv_func_compile = yes; then
18397 cf_regex_func=compile
18400 echo "$as_me:18400: checking for compile in -lgen" >&5
18401 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
18402 if test "${ac_cv_lib_gen_compile+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 ac_check_lib_save_LIBS=$LIBS
18407 cat >conftest.$ac_ext <<_ACEOF
18408 #line 18408 "configure"
18409 #include "confdefs.h"
18411 /* Override any gcc2 internal prototype to avoid an error. */
18415 /* We use char because int might match the return type of a gcc2
18416 builtin and then its argument prototype would still apply. */
18426 rm -f conftest.$ac_objext conftest$ac_exeext
18427 if { (eval echo "$as_me:18427: \"$ac_link\"") >&5
18428 (eval $ac_link) 2>&5
18430 echo "$as_me:18430: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (eval echo "$as_me:18433: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18436 echo "$as_me:18436: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_lib_gen_compile=yes
18440 echo "$as_me: failed program was:" >&5
18441 cat conftest.$ac_ext >&5
18442 ac_cv_lib_gen_compile=no
18444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18447 echo "$as_me:18447: result: $ac_cv_lib_gen_compile" >&5
18448 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
18449 if test $ac_cv_lib_gen_compile = yes; then
18451 cf_add_libs="$LIBS"
18454 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18455 # filter duplicates
18456 for cf_add_1lib in $cf_add_0lib; do
18457 for cf_add_2lib in $cf_add_libs; do
18458 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18463 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18465 LIBS="$cf_add_libs"
18467 cf_regex_func=compile
18474 if test "$cf_regex_func" = no ; then
18475 { echo "$as_me:18475: WARNING: cannot find regular expression library" >&5
18476 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
18479 echo "$as_me:18479: checking for regular-expression headers" >&5
18480 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
18481 if test "${cf_cv_regex_hdrs+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 cf_cv_regex_hdrs=no
18486 case $cf_regex_func in
18488 for cf_regex_hdr in regexp.h regexpr.h
18490 cat >conftest.$ac_ext <<_ACEOF
18491 #line 18491 "configure"
18492 #include "confdefs.h"
18493 #include <$cf_regex_hdr>
18498 char *p = compile("", "", "", 0);
18499 int x = step("", "");
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (eval echo "$as_me:18508: \"$ac_link\"") >&5
18509 (eval $ac_link) 2>&5
18511 echo "$as_me:18511: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -s conftest$ac_exeext'
18514 { (eval echo "$as_me:18514: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18517 echo "$as_me:18517: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18520 cf_cv_regex_hdrs=$cf_regex_hdr
18524 echo "$as_me: failed program was:" >&5
18525 cat conftest.$ac_ext >&5
18527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18531 for cf_regex_hdr in regex.h
18533 cat >conftest.$ac_ext <<_ACEOF
18534 #line 18534 "configure"
18535 #include "confdefs.h"
18536 #include <sys/types.h>
18537 #include <$cf_regex_hdr>
18543 int x = regcomp(p, "", 0);
18544 int y = regexec(p, "", 0, 0, 0);
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (eval echo "$as_me:18554: \"$ac_link\"") >&5
18555 (eval $ac_link) 2>&5
18557 echo "$as_me:18557: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -s conftest$ac_exeext'
18560 { (eval echo "$as_me:18560: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18563 echo "$as_me:18563: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18566 cf_cv_regex_hdrs=$cf_regex_hdr
18570 echo "$as_me: failed program was:" >&5
18571 cat conftest.$ac_ext >&5
18573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18579 echo "$as_me:18579: result: $cf_cv_regex_hdrs" >&5
18580 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
18582 case $cf_cv_regex_hdrs in
18583 (no) { echo "$as_me:18583: WARNING: no regular expression header found" >&5
18584 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
18586 cat >>confdefs.h <<\EOF
18587 #define HAVE_REGEX_H_FUNCS 1
18591 cat >>confdefs.h <<\EOF
18592 #define HAVE_REGEXP_H_FUNCS 1
18596 cat >>confdefs.h <<\EOF
18597 #define HAVE_REGEXPR_H_FUNCS 1
18621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18622 echo "$as_me:18622: checking for $ac_header" >&5
18623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 cat >conftest.$ac_ext <<_ACEOF
18628 #line 18628 "configure"
18629 #include "confdefs.h"
18630 #include <$ac_header>
18632 if { (eval echo "$as_me:18632: \"$ac_cpp conftest.$ac_ext\"") >&5
18633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18635 egrep -v '^ *\+' conftest.er1 >conftest.err
18637 cat conftest.err >&5
18638 echo "$as_me:18638: \$? = $ac_status" >&5
18639 (exit $ac_status); } >/dev/null; then
18640 if test -s conftest.err; then
18641 ac_cpp_err=$ac_c_preproc_warn_flag
18648 if test -z "$ac_cpp_err"; then
18649 eval "$as_ac_Header=yes"
18651 echo "$as_me: failed program was:" >&5
18652 cat conftest.$ac_ext >&5
18653 eval "$as_ac_Header=no"
18655 rm -f conftest.err conftest.$ac_ext
18657 echo "$as_me:18657: result: `eval echo '${'$as_ac_Header'}'`" >&5
18658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18660 cat >>confdefs.h <<EOF
18661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18667 for ac_header in unistd.h getopt.h
18669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18670 echo "$as_me:18670: checking for $ac_header" >&5
18671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 cat >conftest.$ac_ext <<_ACEOF
18676 #line 18676 "configure"
18677 #include "confdefs.h"
18678 #include <$ac_header>
18680 if { (eval echo "$as_me:18680: \"$ac_cpp conftest.$ac_ext\"") >&5
18681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18683 egrep -v '^ *\+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:18686: \$? = $ac_status" >&5
18687 (exit $ac_status); } >/dev/null; then
18688 if test -s conftest.err; then
18689 ac_cpp_err=$ac_c_preproc_warn_flag
18696 if test -z "$ac_cpp_err"; then
18697 eval "$as_ac_Header=yes"
18699 echo "$as_me: failed program was:" >&5
18700 cat conftest.$ac_ext >&5
18701 eval "$as_ac_Header=no"
18703 rm -f conftest.err conftest.$ac_ext
18705 echo "$as_me:18705: result: `eval echo '${'$as_ac_Header'}'`" >&5
18706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18708 cat >>confdefs.h <<EOF
18709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18715 echo "$as_me:18715: checking for header declaring getopt variables" >&5
18716 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
18717 if test "${cf_cv_getopt_header+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 cf_cv_getopt_header=none
18722 for cf_header in stdio.h stdlib.h unistd.h getopt.h
18724 cat >conftest.$ac_ext <<_ACEOF
18725 #line 18725 "configure"
18726 #include "confdefs.h"
18728 #include <$cf_header>
18732 int x = optind; char *y = optarg
18737 rm -f conftest.$ac_objext
18738 if { (eval echo "$as_me:18738: \"$ac_compile\"") >&5
18739 (eval $ac_compile) 2>&5
18741 echo "$as_me:18741: \$? = $ac_status" >&5
18742 (exit $ac_status); } &&
18743 { ac_try='test -s conftest.$ac_objext'
18744 { (eval echo "$as_me:18744: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18747 echo "$as_me:18747: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 cf_cv_getopt_header=$cf_header
18752 echo "$as_me: failed program was:" >&5
18753 cat conftest.$ac_ext >&5
18755 rm -f conftest.$ac_objext conftest.$ac_ext
18759 echo "$as_me:18759: result: $cf_cv_getopt_header" >&5
18760 echo "${ECHO_T}$cf_cv_getopt_header" >&6
18761 if test $cf_cv_getopt_header != none ; then
18763 cat >>confdefs.h <<\EOF
18764 #define HAVE_GETOPT_HEADER 1
18768 if test $cf_cv_getopt_header = getopt.h ; then
18770 cat >>confdefs.h <<\EOF
18771 #define NEED_GETOPT_H 1
18776 echo "$as_me:18776: checking if external environ is declared" >&5
18777 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
18778 if test "${cf_cv_dcl_environ+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 cat >conftest.$ac_ext <<_ACEOF
18783 #line 18783 "configure"
18784 #include "confdefs.h"
18786 #ifdef HAVE_STDLIB_H
18787 #include <stdlib.h>
18789 #include <unistd.h>
18793 int x = (int) environ
18798 rm -f conftest.$ac_objext
18799 if { (eval echo "$as_me:18799: \"$ac_compile\"") >&5
18800 (eval $ac_compile) 2>&5
18802 echo "$as_me:18802: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
18804 { ac_try='test -s conftest.$ac_objext'
18805 { (eval echo "$as_me:18805: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18808 echo "$as_me:18808: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 cf_cv_dcl_environ=yes
18812 echo "$as_me: failed program was:" >&5
18813 cat conftest.$ac_ext >&5
18814 cf_cv_dcl_environ=no
18816 rm -f conftest.$ac_objext conftest.$ac_ext
18819 echo "$as_me:18819: result: $cf_cv_dcl_environ" >&5
18820 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
18822 if test "$cf_cv_dcl_environ" = no ; then
18824 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18826 cat >>confdefs.h <<EOF
18827 #define $cf_result 1
18832 # It's possible (for near-UNIX clones) that the data doesn't exist
18834 echo "$as_me:18834: checking if external environ exists" >&5
18835 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
18836 if test "${cf_cv_have_environ+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 cat >conftest.$ac_ext <<_ACEOF
18841 #line 18841 "configure"
18842 #include "confdefs.h"
18845 extern int environ;
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (eval echo "$as_me:18856: \"$ac_link\"") >&5
18857 (eval $ac_link) 2>&5
18859 echo "$as_me:18859: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -s conftest$ac_exeext'
18862 { (eval echo "$as_me:18862: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18865 echo "$as_me:18865: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 cf_cv_have_environ=yes
18869 echo "$as_me: failed program was:" >&5
18870 cat conftest.$ac_ext >&5
18871 cf_cv_have_environ=no
18873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18876 echo "$as_me:18876: result: $cf_cv_have_environ" >&5
18877 echo "${ECHO_T}$cf_cv_have_environ" >&6
18879 if test "$cf_cv_have_environ" = yes ; then
18881 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18883 cat >>confdefs.h <<EOF
18884 #define $cf_result 1
18889 echo "$as_me:18889: checking for getenv" >&5
18890 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
18891 if test "${ac_cv_func_getenv+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 cat >conftest.$ac_ext <<_ACEOF
18895 #line 18895 "configure"
18896 #include "confdefs.h"
18897 #define getenv autoconf_temporary
18898 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18905 /* We use char because int might match the return type of a gcc2
18906 builtin and then its argument prototype would still apply. */
18907 char getenv (void);
18913 /* The GNU C library defines stubs for functions which it implements
18914 to always fail with ENOSYS. Some functions are actually named
18915 something starting with __ and the normal name is an alias. */
18916 #if defined (__stub_getenv) || defined (__stub___getenv)
18917 #error found stub for getenv
18925 rm -f conftest.$ac_objext conftest$ac_exeext
18926 if { (eval echo "$as_me:18926: \"$ac_link\"") >&5
18927 (eval $ac_link) 2>&5
18929 echo "$as_me:18929: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -s conftest$ac_exeext'
18932 { (eval echo "$as_me:18932: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 echo "$as_me:18935: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_cv_func_getenv=yes
18939 echo "$as_me: failed program was:" >&5
18940 cat conftest.$ac_ext >&5
18941 ac_cv_func_getenv=no
18943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18945 echo "$as_me:18945: result: $ac_cv_func_getenv" >&5
18946 echo "${ECHO_T}$ac_cv_func_getenv" >&6
18948 for ac_func in putenv setenv strdup
18950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18951 echo "$as_me:18951: checking for $ac_func" >&5
18952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18953 if eval "test \"\${$as_ac_var+set}\" = set"; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18957 #line 18957 "configure"
18958 #include "confdefs.h"
18959 #define $ac_func autoconf_temporary
18960 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18967 /* We use char because int might match the return type of a gcc2
18968 builtin and then its argument prototype would still apply. */
18969 char $ac_func (void);
18975 /* The GNU C library defines stubs for functions which it implements
18976 to always fail with ENOSYS. Some functions are actually named
18977 something starting with __ and the normal name is an alias. */
18978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18979 #error found stub for $ac_func
18982 return $ac_func ();
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (eval echo "$as_me:18988: \"$ac_link\"") >&5
18989 (eval $ac_link) 2>&5
18991 echo "$as_me:18991: \$? = $ac_status" >&5
18992 (exit $ac_status); } &&
18993 { ac_try='test -s conftest$ac_exeext'
18994 { (eval echo "$as_me:18994: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18997 echo "$as_me:18997: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 eval "$as_ac_var=yes"
19001 echo "$as_me: failed program was:" >&5
19002 cat conftest.$ac_ext >&5
19003 eval "$as_ac_var=no"
19005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19007 echo "$as_me:19007: result: `eval echo '${'$as_ac_var'}'`" >&5
19008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19009 if test `eval echo '${'$as_ac_var'}'` = yes; then
19010 cat >>confdefs.h <<EOF
19011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19017 echo "$as_me:19017: checking if getenv returns consistent values" >&5
19018 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
19019 if test "${cf_cv_consistent_getenv+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 if test "$cross_compiling" = yes; then
19024 cf_cv_consistent_getenv=unknown
19026 cat >conftest.$ac_ext <<_ACEOF
19027 #line 19027 "configure"
19028 #include "confdefs.h"
19030 #include <stdlib.h>
19031 #include <unistd.h>
19033 #include <string.h>
19034 #include <sys/types.h>
19036 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
19037 extern char **environ; /* POSIX, but some systems are not... */
19040 #if defined(HAVE_STRDUP)
19041 #define str_alloc(s) strdup(s)
19043 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
19046 static void set_value(const char *name, const char *value)
19048 #if defined(HAVE_SETENV)
19049 setenv(name, value, 1);
19050 #elif defined(HAVE_PUTENV)
19052 sprintf(buffer, "%s=%s", name, value);
19053 putenv(str_alloc(buffer));
19055 #error neither putenv/setenv found
19061 size_t numenv, limit, j;
19066 for (numenv = 0; environ[numenv]; ++numenv) ;
19067 limit = numenv + 10;
19068 mynames = (char **) calloc(limit + 1, sizeof(char *));
19069 myvalues = (char **) calloc(limit + 1, sizeof(char *));
19070 mypointer = (char **) calloc(limit + 1, sizeof(char *));
19071 #if defined(HAVE_ENVIRON)
19072 for (j = 0; environ[j]; ++j) {
19073 mynames[j] = str_alloc(environ[j]);
19074 equals = strchr(mynames[j], '=');
19077 myvalues[j] = str_alloc(equals);
19079 myvalues[j] = str_alloc("");
19083 for (j = numenv; j < limit; ++j) {
19091 sprintf(name, "TERM%lu", (unsigned long) k);
19092 for (jk = 0; jk < j; ++jk) {
19093 if (!strcmp(name, mynames[jk])) {
19100 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
19101 set_value(name, value);
19102 mynames[j] = str_alloc(name);
19103 myvalues[j] = str_alloc(value);
19105 for (pass = 0; pass < 3; ++pass) {
19106 for (j = 0; j < limit; ++j) {
19107 char *value = getenv(mynames[j]);
19110 fprintf(stderr, "getenv returned null for %s\n", mynames[j]);
19111 ${cf_cv_main_return:-return}(1);
19112 } else if (value != mypointer[j]) {
19113 fprintf(stderr, "getenv returned different pointer for %s\n", mynames[j]);
19114 ${cf_cv_main_return:-return}(1);
19115 } else if (strcmp(value, myvalues[j])) {
19116 fprintf(stderr, "getenv returned different value for %s\n", mynames[j]);
19117 ${cf_cv_main_return:-return}(1);
19121 mypointer[j] = value;
19122 for (k = 0; k < j; ++k) {
19123 if (mypointer[j] == mypointer[k]) {
19124 fprintf(stderr, "getenv returned same pointer for %s and %s\n", mynames[j], mynames[k]);
19125 ${cf_cv_main_return:-return}(1);
19131 ${cf_cv_main_return:-return}(0);
19135 rm -f conftest$ac_exeext
19136 if { (eval echo "$as_me:19136: \"$ac_link\"") >&5
19137 (eval $ac_link) 2>&5
19139 echo "$as_me:19139: \$? = $ac_status" >&5
19140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19141 { (eval echo "$as_me:19141: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19144 echo "$as_me:19144: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 cf_cv_consistent_getenv=yes
19148 echo "$as_me: program exited with status $ac_status" >&5
19149 echo "$as_me: failed program was:" >&5
19150 cat conftest.$ac_ext >&5
19151 cf_cv_consistent_getenv=no
19153 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19157 echo "$as_me:19157: result: $cf_cv_consistent_getenv" >&5
19158 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
19160 if test "x$cf_cv_consistent_getenv" = xno
19163 cat >>confdefs.h <<\EOF
19164 #define HAVE_CONSISTENT_GETENV 1
19169 if test "x$cf_cv_consistent_getenv" = xno && \
19170 test "x$cf_with_trace" = xyes
19172 { echo "$as_me:19172: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
19173 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
19176 # check for ISC (this may also define _POSIX_SOURCE)
19177 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
19178 if test "x$ISC" = xyes ; then
19180 echo "$as_me:19180: checking for main in -lcposix" >&5
19181 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
19182 if test "${ac_cv_lib_cposix_main+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lcposix $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19188 #line 19188 "configure"
19189 #include "confdefs.h"
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (eval echo "$as_me:19200: \"$ac_link\"") >&5
19201 (eval $ac_link) 2>&5
19203 echo "$as_me:19203: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -s conftest$ac_exeext'
19206 { (eval echo "$as_me:19206: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:19209: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 ac_cv_lib_cposix_main=yes
19213 echo "$as_me: failed program was:" >&5
19214 cat conftest.$ac_ext >&5
19215 ac_cv_lib_cposix_main=no
19217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19218 LIBS=$ac_check_lib_save_LIBS
19220 echo "$as_me:19220: result: $ac_cv_lib_cposix_main" >&5
19221 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
19222 if test $ac_cv_lib_cposix_main = yes; then
19223 cat >>confdefs.h <<EOF
19224 #define HAVE_LIBCPOSIX 1
19227 LIBS="-lcposix $LIBS"
19231 echo "$as_me:19231: checking for bzero in -linet" >&5
19232 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
19233 if test "${ac_cv_lib_inet_bzero+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 ac_check_lib_save_LIBS=$LIBS
19237 LIBS="-linet $LIBS"
19238 cat >conftest.$ac_ext <<_ACEOF
19239 #line 19239 "configure"
19240 #include "confdefs.h"
19242 /* Override any gcc2 internal prototype to avoid an error. */
19246 /* We use char because int might match the return type of a gcc2
19247 builtin and then its argument prototype would still apply. */
19257 rm -f conftest.$ac_objext conftest$ac_exeext
19258 if { (eval echo "$as_me:19258: \"$ac_link\"") >&5
19259 (eval $ac_link) 2>&5
19261 echo "$as_me:19261: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -s 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 ac_cv_lib_inet_bzero=yes
19271 echo "$as_me: failed program was:" >&5
19272 cat conftest.$ac_ext >&5
19273 ac_cv_lib_inet_bzero=no
19275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19276 LIBS=$ac_check_lib_save_LIBS
19278 echo "$as_me:19278: result: $ac_cv_lib_inet_bzero" >&5
19279 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
19280 if test $ac_cv_lib_inet_bzero = yes; then
19282 cf_add_libs="$LIBS"
19285 for cf_add_1lib in -linet; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19286 # filter duplicates
19287 for cf_add_1lib in $cf_add_0lib; do
19288 for cf_add_2lib in $cf_add_libs; do
19289 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19294 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19296 LIBS="$cf_add_libs"
19301 echo "$as_me:19301: checking if sys/time.h works with sys/select.h" >&5
19302 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
19303 if test "${cf_cv_sys_time_select+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19308 #line 19308 "configure"
19309 #include "confdefs.h"
19311 #include <sys/types.h>
19312 #ifdef HAVE_SYS_TIME_H
19313 #include <sys/time.h>
19315 #ifdef HAVE_SYS_SELECT_H
19316 #include <sys/select.h>
19327 rm -f conftest.$ac_objext
19328 if { (eval echo "$as_me:19328: \"$ac_compile\"") >&5
19329 (eval $ac_compile) 2>&5
19331 echo "$as_me:19331: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -s conftest.$ac_objext'
19334 { (eval echo "$as_me:19334: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19337 echo "$as_me:19337: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 cf_cv_sys_time_select=yes
19341 echo "$as_me: failed program was:" >&5
19342 cat conftest.$ac_ext >&5
19343 cf_cv_sys_time_select=no
19345 rm -f conftest.$ac_objext conftest.$ac_ext
19349 echo "$as_me:19349: result: $cf_cv_sys_time_select" >&5
19350 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
19351 test "$cf_cv_sys_time_select" = yes &&
19352 cat >>confdefs.h <<\EOF
19353 #define HAVE_SYS_TIME_SELECT 1
19356 ### checks for compiler characteristics
19358 ac_cpp='$CPP $CPPFLAGS'
19359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19362 ac_main_return=return
19364 echo "$as_me:19364: checking for an ANSI C-conforming const" >&5
19365 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19366 if test "${ac_cv_c_const+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 cat >conftest.$ac_ext <<_ACEOF
19370 #line 19370 "configure"
19371 #include "confdefs.h"
19376 /* FIXME: Include the comments suggested by Paul. */
19377 #ifndef __cplusplus
19378 /* Ultrix mips cc rejects this. */
19379 typedef int charset[2];
19381 /* SunOS 4.1.1 cc rejects this. */
19382 char const *const *ccp;
19384 /* NEC SVR4.0.2 mips cc rejects this. */
19385 struct point {int x, y;};
19386 static struct point const zero = {0,0};
19387 /* AIX XL C 1.02.0.0 rejects this.
19388 It does not let you subtract one const X* pointer from another in
19389 an arm of an if-expression whose if-part is not a constant
19391 const char *g = "string";
19392 ccp = &g + (g ? g-g : 0);
19393 /* HPUX 7.0 cc rejects these. */
19396 ccp = (char const *const *) p;
19397 { /* SCO 3.2v4 cc rejects this. */
19399 char const *s = 0 ? (char *) 0 : (char const *) 0;
19403 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19404 int x[] = {25, 17};
19405 const int *foo = &x[0];
19408 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19409 typedef const int *iptr;
19413 { /* AIX XL C 1.02.0.0 rejects this saying
19414 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19415 struct s { int j; const int *ap[3]; };
19416 struct s *b; b->j = 5;
19418 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19419 const int foo = 10;
19427 rm -f conftest.$ac_objext
19428 if { (eval echo "$as_me:19428: \"$ac_compile\"") >&5
19429 (eval $ac_compile) 2>&5
19431 echo "$as_me:19431: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -s conftest.$ac_objext'
19434 { (eval echo "$as_me:19434: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19437 echo "$as_me:19437: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19441 echo "$as_me: failed program was:" >&5
19442 cat conftest.$ac_ext >&5
19445 rm -f conftest.$ac_objext conftest.$ac_ext
19447 echo "$as_me:19447: result: $ac_cv_c_const" >&5
19448 echo "${ECHO_T}$ac_cv_c_const" >&6
19449 if test $ac_cv_c_const = no; then
19451 cat >>confdefs.h <<\EOF
19457 echo "$as_me:19457: checking for inline" >&5
19458 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19459 if test "${ac_cv_c_inline+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 for ac_kw in inline __inline__ __inline; do
19464 cat >conftest.$ac_ext <<_ACEOF
19465 #line 19465 "configure"
19466 #include "confdefs.h"
19467 #ifndef __cplusplus
19468 static $ac_kw int static_foo () {return 0; }
19469 $ac_kw int foo () {return 0; }
19473 rm -f conftest.$ac_objext
19474 if { (eval echo "$as_me:19474: \"$ac_compile\"") >&5
19475 (eval $ac_compile) 2>&5
19477 echo "$as_me:19477: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -s conftest.$ac_objext'
19480 { (eval echo "$as_me:19480: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:19483: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_cv_c_inline=$ac_kw; break
19487 echo "$as_me: failed program was:" >&5
19488 cat conftest.$ac_ext >&5
19490 rm -f conftest.$ac_objext conftest.$ac_ext
19494 echo "$as_me:19494: result: $ac_cv_c_inline" >&5
19495 echo "${ECHO_T}$ac_cv_c_inline" >&6
19496 case $ac_cv_c_inline in
19499 cat >>confdefs.h <<\EOF
19503 *) cat >>confdefs.h <<EOF
19504 #define inline $ac_cv_c_inline
19510 if test "$ac_cv_c_inline" != no ; then
19511 NCURSES_INLINE=inline
19512 if test "$INTEL_COMPILER" = yes
19515 elif test "$CLANG_COMPILER" = yes
19518 elif test "$GCC" = yes
19520 echo "$as_me:19520: checking if $CC supports options to tune inlining" >&5
19521 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
19522 if test "${cf_cv_gcc_inline+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 cf_save_CFLAGS=$CFLAGS
19527 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
19528 cat >conftest.$ac_ext <<_ACEOF
19529 #line 19529 "configure"
19530 #include "confdefs.h"
19531 inline int foo(void) { return 1; }
19535 ${cf_cv_main_return:-return} foo()
19540 rm -f conftest.$ac_objext
19541 if { (eval echo "$as_me:19541: \"$ac_compile\"") >&5
19542 (eval $ac_compile) 2>&5
19544 echo "$as_me:19544: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -s conftest.$ac_objext'
19547 { (eval echo "$as_me:19547: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:19550: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 cf_cv_gcc_inline=yes
19554 echo "$as_me: failed program was:" >&5
19555 cat conftest.$ac_ext >&5
19556 cf_cv_gcc_inline=no
19558 rm -f conftest.$ac_objext conftest.$ac_ext
19559 CFLAGS=$cf_save_CFLAGS
19562 echo "$as_me:19562: result: $cf_cv_gcc_inline" >&5
19563 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
19564 if test "$cf_cv_gcc_inline" = yes ; then
19569 cf_new_extra_cppflags=
19571 for cf_add_cflags in --param max-inline-insns-single=1200
19573 case $cf_fix_cppflags in
19575 case $cf_add_cflags in
19576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19577 case $cf_add_cflags in
19579 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19582 && test -z "${cf_tst_cflags}" \
19583 && cf_fix_cppflags=yes
19585 if test $cf_fix_cppflags = yes ; then
19587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19591 elif test "${cf_tst_cflags}" = "\"'" ; then
19593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19600 case "$CPPFLAGS" in
19604 case $cf_add_cflags in
19606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19608 CPPFLAGS=`echo "$CPPFLAGS" | \
19609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19634 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19637 && test -z "${cf_tst_cflags}" \
19638 && cf_fix_cppflags=no
19643 if test -n "$cf_new_cflags" ; then
19645 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19646 CFLAGS="${CFLAGS}$cf_new_cflags"
19650 if test -n "$cf_new_cppflags" ; then
19652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19657 if test -n "$cf_new_extra_cppflags" ; then
19659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19668 echo "$as_me:19668: checking for signal global datatype" >&5
19669 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
19670 if test "${cf_cv_sig_atomic_t+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 "volatile sig_atomic_t" \
19679 cat >conftest.$ac_ext <<_ACEOF
19680 #line 19680 "configure"
19681 #include "confdefs.h"
19683 #include <sys/types.h>
19684 #include <signal.h>
19689 static void handler(int sig)
19697 signal(SIGINT, handler);
19703 rm -f conftest.$ac_objext
19704 if { (eval echo "$as_me:19704: \"$ac_compile\"") >&5
19705 (eval $ac_compile) 2>&5
19707 echo "$as_me:19707: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -s conftest.$ac_objext'
19710 { (eval echo "$as_me:19710: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19713 echo "$as_me:19713: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 cf_cv_sig_atomic_t=$cf_type
19717 echo "$as_me: failed program was:" >&5
19718 cat conftest.$ac_ext >&5
19719 cf_cv_sig_atomic_t=no
19721 rm -f conftest.$ac_objext conftest.$ac_ext
19722 test "$cf_cv_sig_atomic_t" != no && break
19727 echo "$as_me:19727: result: $cf_cv_sig_atomic_t" >&5
19728 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
19729 test "$cf_cv_sig_atomic_t" != no &&
19730 cat >>confdefs.h <<EOF
19731 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
19734 if test $NCURSES_CHTYPE = auto ; then
19736 echo "$as_me:19736: checking for type of chtype" >&5
19737 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
19738 if test "${cf_cv_typeof_chtype+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 if test "$cross_compiling" = yes; then
19743 cf_cv_typeof_chtype=long
19745 cat >conftest.$ac_ext <<_ACEOF
19746 #line 19746 "configure"
19747 #include "confdefs.h"
19749 #define WANT_BITS 31
19753 FILE *fp = fopen("cf_test.out", "w");
19755 char *result = "long";
19756 if (sizeof(unsigned long) > sizeof(unsigned int)) {
19759 for (n = 0; n < WANT_BITS; n++) {
19762 if (y != 1 || x == 0) {
19768 * If x is nonzero, an int is big enough for the bits
19771 result = (x != 0) ? "int" : "long";
19776 ${cf_cv_main_return:-return}(0);
19780 rm -f conftest$ac_exeext
19781 if { (eval echo "$as_me:19781: \"$ac_link\"") >&5
19782 (eval $ac_link) 2>&5
19784 echo "$as_me:19784: \$? = $ac_status" >&5
19785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19786 { (eval echo "$as_me:19786: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19789 echo "$as_me:19789: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 cf_cv_typeof_chtype=`cat cf_test.out`
19793 echo "$as_me: program exited with status $ac_status" >&5
19794 echo "$as_me: failed program was:" >&5
19795 cat conftest.$ac_ext >&5
19796 cf_cv_typeof_chtype=long
19798 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19804 echo "$as_me:19804: result: $cf_cv_typeof_chtype" >&5
19805 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
19807 cat >>confdefs.h <<EOF
19808 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
19812 cf_cv_typeof_chtype=$NCURSES_CHTYPE
19814 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
19816 echo "$as_me:19816: checking if unsigned literals are legal" >&5
19817 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
19818 if test "${cf_cv_unsigned_literals+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 cat >conftest.$ac_ext <<_ACEOF
19823 #line 19823 "configure"
19824 #include "confdefs.h"
19829 long x = 1L + 1UL + 1U + 1
19834 rm -f conftest.$ac_objext
19835 if { (eval echo "$as_me:19835: \"$ac_compile\"") >&5
19836 (eval $ac_compile) 2>&5
19838 echo "$as_me:19838: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
19840 { ac_try='test -s conftest.$ac_objext'
19841 { (eval echo "$as_me:19841: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19844 echo "$as_me:19844: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846 cf_cv_unsigned_literals=yes
19848 echo "$as_me: failed program was:" >&5
19849 cat conftest.$ac_ext >&5
19850 cf_cv_unsigned_literals=no
19852 rm -f conftest.$ac_objext conftest.$ac_ext
19856 echo "$as_me:19856: result: $cf_cv_unsigned_literals" >&5
19857 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
19860 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
19861 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
19863 if test $NCURSES_MMASK_T = auto ; then
19864 cf_cv_typeof_mmask_t=long
19866 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
19868 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
19870 ### Checks for external-data
19872 echo "$as_me:19872: checking if external errno is declared" >&5
19873 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
19874 if test "${cf_cv_dcl_errno+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 cat >conftest.$ac_ext <<_ACEOF
19879 #line 19879 "configure"
19880 #include "confdefs.h"
19882 #ifdef HAVE_STDLIB_H
19883 #include <stdlib.h>
19886 #include <sys/types.h>
19891 int x = (int) errno; (void)x
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:19897: \"$ac_compile\"") >&5
19898 (eval $ac_compile) 2>&5
19900 echo "$as_me:19900: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -s conftest.$ac_objext'
19903 { (eval echo "$as_me:19903: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:19906: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 cf_cv_dcl_errno=yes
19910 echo "$as_me: failed program was:" >&5
19911 cat conftest.$ac_ext >&5
19914 rm -f conftest.$ac_objext conftest.$ac_ext
19917 echo "$as_me:19917: result: $cf_cv_dcl_errno" >&5
19918 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
19920 if test "$cf_cv_dcl_errno" = no ; then
19922 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19924 cat >>confdefs.h <<EOF
19925 #define $cf_result 1
19930 # It's possible (for near-UNIX clones) that the data doesn't exist
19932 echo "$as_me:19932: checking if external errno exists" >&5
19933 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
19934 if test "${cf_cv_have_errno+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 cat >conftest.$ac_ext <<_ACEOF
19939 #line 19939 "configure"
19940 #include "confdefs.h"
19953 rm -f conftest.$ac_objext conftest$ac_exeext
19954 if { (eval echo "$as_me:19954: \"$ac_link\"") >&5
19955 (eval $ac_link) 2>&5
19957 echo "$as_me:19957: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -s conftest$ac_exeext'
19960 { (eval echo "$as_me:19960: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19963 echo "$as_me:19963: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 cf_cv_have_errno=yes
19967 echo "$as_me: failed program was:" >&5
19968 cat conftest.$ac_ext >&5
19969 cf_cv_have_errno=no
19971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19974 echo "$as_me:19974: result: $cf_cv_have_errno" >&5
19975 echo "${ECHO_T}$cf_cv_have_errno" >&6
19977 if test "$cf_cv_have_errno" = yes ; then
19979 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19981 cat >>confdefs.h <<EOF
19982 #define $cf_result 1
19987 echo "$as_me:19987: checking if data-only library module links" >&5
19988 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
19989 if test "${cf_cv_link_dataonly+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 cat >conftest.$ac_ext <<EOF
19995 #line 19995 "configure"
19996 int testdata[3] = { 123, 456, 789 };
19998 if { (eval echo "$as_me:19998: \"$ac_compile\"") >&5
19999 (eval $ac_compile) 2>&5
20001 echo "$as_me:20001: \$? = $ac_status" >&5
20002 (exit $ac_status); } ; then
20003 mv conftest.o data.o && \
20004 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
20006 rm -f conftest.$ac_ext data.o
20007 cat >conftest.$ac_ext <<EOF
20008 #line 20008 "configure"
20012 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
20014 extern int testdata[3];
20015 return testdata[0] == 123
20016 && testdata[1] == 456
20017 && testdata[2] == 789;
20021 if { (eval echo "$as_me:20021: \"$ac_compile\"") >&5
20022 (eval $ac_compile) 2>&5
20024 echo "$as_me:20024: \$? = $ac_status" >&5
20025 (exit $ac_status); }; then
20026 mv conftest.o func.o && \
20027 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
20029 rm -f conftest.$ac_ext func.o
20030 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
20031 cf_saveLIBS="$LIBS"
20032 LIBS="conftest.a $LIBS"
20033 if test "$cross_compiling" = yes; then
20034 cf_cv_link_dataonly=unknown
20036 cat >conftest.$ac_ext <<_ACEOF
20037 #line 20037 "configure"
20038 #include "confdefs.h"
20042 extern int testfunc();
20043 ${cf_cv_main_return:-return} (!testfunc());
20047 rm -f conftest$ac_exeext
20048 if { (eval echo "$as_me:20048: \"$ac_link\"") >&5
20049 (eval $ac_link) 2>&5
20051 echo "$as_me:20051: \$? = $ac_status" >&5
20052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20053 { (eval echo "$as_me:20053: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 echo "$as_me:20056: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 cf_cv_link_dataonly=yes
20060 echo "$as_me: program exited with status $ac_status" >&5
20061 echo "$as_me: failed program was:" >&5
20062 cat conftest.$ac_ext >&5
20063 cf_cv_link_dataonly=no
20065 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20067 LIBS="$cf_saveLIBS"
20071 echo "$as_me:20071: result: $cf_cv_link_dataonly" >&5
20072 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
20074 if test "$cf_cv_link_dataonly" = no ; then
20076 cat >>confdefs.h <<\EOF
20077 #define BROKEN_LINKER 1
20083 ### Checks for library functions.
20113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20114 echo "$as_me:20114: checking for $ac_func" >&5
20115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20116 if eval "test \"\${$as_ac_var+set}\" = set"; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 cat >conftest.$ac_ext <<_ACEOF
20120 #line 20120 "configure"
20121 #include "confdefs.h"
20122 #define $ac_func autoconf_temporary
20123 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20130 /* We use char because int might match the return type of a gcc2
20131 builtin and then its argument prototype would still apply. */
20132 char $ac_func (void);
20138 /* The GNU C library defines stubs for functions which it implements
20139 to always fail with ENOSYS. Some functions are actually named
20140 something starting with __ and the normal name is an alias. */
20141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20142 #error found stub for $ac_func
20145 return $ac_func ();
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (eval echo "$as_me:20151: \"$ac_link\"") >&5
20152 (eval $ac_link) 2>&5
20154 echo "$as_me:20154: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -s conftest$ac_exeext'
20157 { (eval echo "$as_me:20157: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20160 echo "$as_me:20160: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 eval "$as_ac_var=yes"
20164 echo "$as_me: failed program was:" >&5
20165 cat conftest.$ac_ext >&5
20166 eval "$as_ac_var=no"
20168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20170 echo "$as_me:20170: result: `eval echo '${'$as_ac_var'}'`" >&5
20171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20172 if test `eval echo '${'$as_ac_var'}'` = yes; then
20173 cat >>confdefs.h <<EOF
20174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20180 if test "x$ac_cv_func_getopt" = xno && \
20181 test "x$cf_with_progs$cf_with_tests" != xnono; then
20182 { { echo "$as_me:20182: error: getopt is required for building programs" >&5
20183 echo "$as_me: error: getopt is required for building programs" >&2;}
20184 { (exit 1); exit 1; }; }
20187 if test "x$with_safe_sprintf" = xyes
20189 if test "x$ac_cv_func_vsnprintf" = xyes
20191 { echo "$as_me:20191: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
20192 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
20195 cat >>confdefs.h <<\EOF
20196 #define USE_SAFE_SPRINTF 1
20202 if test "x$with_getcap" = "xyes" ; then
20204 echo "$as_me:20204: checking for terminal-capability database functions" >&5
20205 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
20206 if test "${cf_cv_cgetent+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 cat >conftest.$ac_ext <<_ACEOF
20211 #line 20211 "configure"
20212 #include "confdefs.h"
20214 #include <stdlib.h>
20221 char *db_array = temp;
20222 cgetent(&buf, &db_array, "vt100");
20223 cgetcap(buf, "tc", '=');
20224 cgetmatch(buf, "tc");
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (eval echo "$as_me:20231: \"$ac_link\"") >&5
20232 (eval $ac_link) 2>&5
20234 echo "$as_me:20234: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
20236 { ac_try='test -s conftest$ac_exeext'
20237 { (eval echo "$as_me:20237: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20240 echo "$as_me:20240: \$? = $ac_status" >&5
20241 (exit $ac_status); }; }; then
20244 echo "$as_me: failed program was:" >&5
20245 cat conftest.$ac_ext >&5
20248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20251 echo "$as_me:20251: result: $cf_cv_cgetent" >&5
20252 echo "${ECHO_T}$cf_cv_cgetent" >&6
20254 if test "$cf_cv_cgetent" = yes
20257 cat >>confdefs.h <<\EOF
20258 #define HAVE_BSD_CGETENT 1
20261 echo "$as_me:20261: checking if cgetent uses const parameter" >&5
20262 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
20263 if test "${cf_cv_cgetent_const+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 cat >conftest.$ac_ext <<_ACEOF
20268 #line 20268 "configure"
20269 #include "confdefs.h"
20271 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
20272 #include <stdlib.h>
20279 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
20280 const char *db_array = temp;
20281 cgetent(&buf, &db_array, "vt100");
20283 cgetcap(buf, "tc", '=');
20284 cgetmatch(buf, "tc");
20290 rm -f conftest.$ac_objext conftest$ac_exeext
20291 if { (eval echo "$as_me:20291: \"$ac_link\"") >&5
20292 (eval $ac_link) 2>&5
20294 echo "$as_me:20294: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -s conftest$ac_exeext'
20297 { (eval echo "$as_me:20297: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:20300: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }; then
20302 cf_cv_cgetent_const=yes
20304 echo "$as_me: failed program was:" >&5
20305 cat conftest.$ac_ext >&5
20306 cf_cv_cgetent_const=no
20308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20311 echo "$as_me:20311: result: $cf_cv_cgetent_const" >&5
20312 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
20313 if test "$cf_cv_cgetent_const" = yes
20316 cat >>confdefs.h <<EOF
20317 #define CGETENT_CONST const
20325 echo "$as_me:20325: checking for isascii" >&5
20326 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
20327 if test "${cf_cv_have_isascii+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 cat >conftest.$ac_ext <<_ACEOF
20332 #line 20332 "configure"
20333 #include "confdefs.h"
20338 int x = isascii(' ')
20343 rm -f conftest.$ac_objext conftest$ac_exeext
20344 if { (eval echo "$as_me:20344: \"$ac_link\"") >&5
20345 (eval $ac_link) 2>&5
20347 echo "$as_me:20347: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
20349 { ac_try='test -s conftest$ac_exeext'
20350 { (eval echo "$as_me:20350: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20353 echo "$as_me:20353: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 cf_cv_have_isascii=yes
20357 echo "$as_me: failed program was:" >&5
20358 cat conftest.$ac_ext >&5
20359 cf_cv_have_isascii=no
20361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20364 echo "$as_me:20364: result: $cf_cv_have_isascii" >&5
20365 echo "${ECHO_T}$cf_cv_have_isascii" >&6
20366 test "$cf_cv_have_isascii" = yes &&
20367 cat >>confdefs.h <<\EOF
20368 #define HAVE_ISASCII 1
20371 if test "$ac_cv_func_sigaction" = yes; then
20372 echo "$as_me:20372: checking whether sigaction needs _POSIX_SOURCE" >&5
20373 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
20374 cat >conftest.$ac_ext <<_ACEOF
20375 #line 20375 "configure"
20376 #include "confdefs.h"
20378 #include <sys/types.h>
20379 #include <signal.h>
20383 struct sigaction act
20388 rm -f conftest.$ac_objext
20389 if { (eval echo "$as_me:20389: \"$ac_compile\"") >&5
20390 (eval $ac_compile) 2>&5
20392 echo "$as_me:20392: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -s conftest.$ac_objext'
20395 { (eval echo "$as_me:20395: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20398 echo "$as_me:20398: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20402 echo "$as_me: failed program was:" >&5
20403 cat conftest.$ac_ext >&5
20405 cat >conftest.$ac_ext <<_ACEOF
20406 #line 20406 "configure"
20407 #include "confdefs.h"
20409 #define _POSIX_SOURCE
20410 #include <sys/types.h>
20411 #include <signal.h>
20415 struct sigaction act
20420 rm -f conftest.$ac_objext
20421 if { (eval echo "$as_me:20421: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>&5
20424 echo "$as_me:20424: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
20426 { ac_try='test -s conftest.$ac_objext'
20427 { (eval echo "$as_me:20427: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20430 echo "$as_me:20430: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20434 cat >>confdefs.h <<\EOF
20435 #define _POSIX_SOURCE 1
20439 echo "$as_me: failed program was:" >&5
20440 cat conftest.$ac_ext >&5
20443 rm -f conftest.$ac_objext conftest.$ac_ext
20445 rm -f conftest.$ac_objext conftest.$ac_ext
20446 echo "$as_me:20446: result: $sigact_bad" >&5
20447 echo "${ECHO_T}$sigact_bad" >&6
20450 echo "$as_me:20450: checking if nanosleep really works" >&5
20451 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
20452 if test "${cf_cv_func_nanosleep+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 if test "$cross_compiling" = yes; then
20457 cf_cv_func_nanosleep=unknown
20459 cat >conftest.$ac_ext <<_ACEOF
20460 #line 20460 "configure"
20461 #include "confdefs.h"
20467 #ifdef HAVE_SYS_TIME_H
20468 #include <sys/time.h>
20472 struct timespec ts1, ts2;
20475 ts1.tv_nsec = 750000000;
20479 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
20480 ${cf_cv_main_return:-return}(code != 0);
20484 rm -f conftest$ac_exeext
20485 if { (eval echo "$as_me:20485: \"$ac_link\"") >&5
20486 (eval $ac_link) 2>&5
20488 echo "$as_me:20488: \$? = $ac_status" >&5
20489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20490 { (eval echo "$as_me:20490: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20493 echo "$as_me:20493: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 cf_cv_func_nanosleep=yes
20497 echo "$as_me: program exited with status $ac_status" >&5
20498 echo "$as_me: failed program was:" >&5
20499 cat conftest.$ac_ext >&5
20500 cf_cv_func_nanosleep=no
20502 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20505 echo "$as_me:20505: result: $cf_cv_func_nanosleep" >&5
20506 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
20508 test "$cf_cv_func_nanosleep" = "yes" &&
20509 cat >>confdefs.h <<\EOF
20510 #define HAVE_NANOSLEEP 1
20521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20522 echo "$as_me:20522: checking for $ac_header" >&5
20523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 cat >conftest.$ac_ext <<_ACEOF
20528 #line 20528 "configure"
20529 #include "confdefs.h"
20530 #include <$ac_header>
20532 if { (eval echo "$as_me:20532: \"$ac_cpp conftest.$ac_ext\"") >&5
20533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20535 egrep -v '^ *\+' conftest.er1 >conftest.err
20537 cat conftest.err >&5
20538 echo "$as_me:20538: \$? = $ac_status" >&5
20539 (exit $ac_status); } >/dev/null; then
20540 if test -s conftest.err; then
20541 ac_cpp_err=$ac_c_preproc_warn_flag
20548 if test -z "$ac_cpp_err"; then
20549 eval "$as_ac_Header=yes"
20551 echo "$as_me: failed program was:" >&5
20552 cat conftest.$ac_ext >&5
20553 eval "$as_ac_Header=no"
20555 rm -f conftest.err conftest.$ac_ext
20557 echo "$as_me:20557: result: `eval echo '${'$as_ac_Header'}'`" >&5
20558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20560 cat >>confdefs.h <<EOF
20561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20567 if test "$ac_cv_header_termios_h" = yes ; then
20568 case "$CFLAGS $CPPFLAGS" in
20569 (*-D_POSIX_SOURCE*)
20570 termios_bad=dunno ;;
20571 (*) termios_bad=maybe ;;
20573 if test "$termios_bad" = maybe ; then
20574 echo "$as_me:20574: checking whether termios.h needs _POSIX_SOURCE" >&5
20575 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
20576 cat >conftest.$ac_ext <<_ACEOF
20577 #line 20577 "configure"
20578 #include "confdefs.h"
20579 #include <termios.h>
20583 struct termios foo; int x = foo.c_iflag = 1; (void)x
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:20589: \"$ac_compile\"") >&5
20590 (eval $ac_compile) 2>&5
20592 echo "$as_me:20592: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
20594 { ac_try='test -s conftest.$ac_objext'
20595 { (eval echo "$as_me:20595: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20598 echo "$as_me:20598: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20602 echo "$as_me: failed program was:" >&5
20603 cat conftest.$ac_ext >&5
20605 cat >conftest.$ac_ext <<_ACEOF
20606 #line 20606 "configure"
20607 #include "confdefs.h"
20609 #define _POSIX_SOURCE
20610 #include <termios.h>
20614 struct termios foo; int x = foo.c_iflag = 2; (void)x
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:20620: \"$ac_compile\"") >&5
20621 (eval $ac_compile) 2>&5
20623 echo "$as_me:20623: \$? = $ac_status" >&5
20624 (exit $ac_status); } &&
20625 { ac_try='test -s conftest.$ac_objext'
20626 { (eval echo "$as_me:20626: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20629 echo "$as_me:20629: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 termios_bad=unknown
20633 echo "$as_me: failed program was:" >&5
20634 cat conftest.$ac_ext >&5
20636 cat >>confdefs.h <<\EOF
20637 #define _POSIX_SOURCE 1
20641 rm -f conftest.$ac_objext conftest.$ac_ext
20644 rm -f conftest.$ac_objext conftest.$ac_ext
20645 echo "$as_me:20645: result: $termios_bad" >&5
20646 echo "${ECHO_T}$termios_bad" >&6
20650 echo "$as_me:20650: checking for tcgetattr" >&5
20651 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
20652 if test "${cf_cv_have_tcgetattr+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 cat >conftest.$ac_ext <<_ACEOF
20657 #line 20657 "configure"
20658 #include "confdefs.h"
20660 #include <sys/types.h>
20661 #ifdef HAVE_UNISTD_H
20662 #include <unistd.h>
20664 #ifdef HAVE_TERMIOS_H
20665 #include <termios.h>
20666 #define TTY struct termios
20668 #ifdef HAVE_TERMIO_H
20669 #include <termio.h>
20670 #define TTY struct termio
20679 tcgetattr(1, &foo);
20684 rm -f conftest.$ac_objext conftest$ac_exeext
20685 if { (eval echo "$as_me:20685: \"$ac_link\"") >&5
20686 (eval $ac_link) 2>&5
20688 echo "$as_me:20688: \$? = $ac_status" >&5
20689 (exit $ac_status); } &&
20690 { ac_try='test -s conftest$ac_exeext'
20691 { (eval echo "$as_me:20691: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:20694: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 cf_cv_have_tcgetattr=yes
20698 echo "$as_me: failed program was:" >&5
20699 cat conftest.$ac_ext >&5
20700 cf_cv_have_tcgetattr=no
20702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20704 echo "$as_me:20704: result: $cf_cv_have_tcgetattr" >&5
20705 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
20706 test "$cf_cv_have_tcgetattr" = yes &&
20707 cat >>confdefs.h <<\EOF
20708 #define HAVE_TCGETATTR 1
20711 echo "$as_me:20711: checking for vsscanf function or workaround" >&5
20712 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
20713 if test "${cf_cv_func_vsscanf+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 cat >conftest.$ac_ext <<_ACEOF
20718 #line 20718 "configure"
20719 #include "confdefs.h"
20721 #include <stdarg.h>
20728 vsscanf("from", "%d", ap)
20733 rm -f conftest.$ac_objext conftest$ac_exeext
20734 if { (eval echo "$as_me:20734: \"$ac_link\"") >&5
20735 (eval $ac_link) 2>&5
20737 echo "$as_me:20737: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -s conftest$ac_exeext'
20740 { (eval echo "$as_me:20740: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20743 echo "$as_me:20743: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
20745 cf_cv_func_vsscanf=vsscanf
20747 echo "$as_me: failed program was:" >&5
20748 cat conftest.$ac_ext >&5
20750 cat >conftest.$ac_ext <<_ACEOF
20751 #line 20751 "configure"
20752 #include "confdefs.h"
20754 #include <stdarg.h>
20761 char *str = "from";
20763 strbuf._flag = _IOREAD;
20764 strbuf._ptr = strbuf._base = (unsigned char *) str;
20765 strbuf._cnt = strlen(str);
20766 strbuf._file = _NFILE;
20767 return (vfscanf(&strbuf, "%d", ap))
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (eval echo "$as_me:20773: \"$ac_link\"") >&5
20774 (eval $ac_link) 2>&5
20776 echo "$as_me:20776: \$? = $ac_status" >&5
20777 (exit $ac_status); } &&
20778 { ac_try='test -s conftest$ac_exeext'
20779 { (eval echo "$as_me:20779: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20782 echo "$as_me:20782: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 cf_cv_func_vsscanf=vfscanf
20786 echo "$as_me: failed program was:" >&5
20787 cat conftest.$ac_ext >&5
20789 cat >conftest.$ac_ext <<_ACEOF
20790 #line 20790 "configure"
20791 #include "confdefs.h"
20793 #include <stdarg.h>
20800 char *str = "from";
20802 strbuf._flag = _IOREAD;
20803 strbuf._ptr = strbuf._base = (unsigned char *) str;
20804 strbuf._cnt = strlen(str);
20805 strbuf._file = _NFILE;
20806 return (_doscan(&strbuf, "%d", ap))
20811 rm -f conftest.$ac_objext conftest$ac_exeext
20812 if { (eval echo "$as_me:20812: \"$ac_link\"") >&5
20813 (eval $ac_link) 2>&5
20815 echo "$as_me:20815: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -s conftest$ac_exeext'
20818 { (eval echo "$as_me:20818: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20821 echo "$as_me:20821: \$? = $ac_status" >&5
20822 (exit $ac_status); }; }; then
20823 cf_cv_func_vsscanf=_doscan
20825 echo "$as_me: failed program was:" >&5
20826 cat conftest.$ac_ext >&5
20828 cf_cv_func_vsscanf=no
20830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20836 echo "$as_me:20836: result: $cf_cv_func_vsscanf" >&5
20837 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
20839 case $cf_cv_func_vsscanf in
20841 cat >>confdefs.h <<\EOF
20842 #define HAVE_VSSCANF 1
20846 cat >>confdefs.h <<\EOF
20847 #define HAVE_VFSCANF 1
20851 cat >>confdefs.h <<\EOF
20852 #define HAVE__DOSCAN 1
20861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20862 echo "$as_me:20862: checking for $ac_header" >&5
20863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 cat >conftest.$ac_ext <<_ACEOF
20868 #line 20868 "configure"
20869 #include "confdefs.h"
20870 #include <$ac_header>
20872 if { (eval echo "$as_me:20872: \"$ac_cpp conftest.$ac_ext\"") >&5
20873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20875 egrep -v '^ *\+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:20878: \$? = $ac_status" >&5
20879 (exit $ac_status); } >/dev/null; then
20880 if test -s conftest.err; then
20881 ac_cpp_err=$ac_c_preproc_warn_flag
20888 if test -z "$ac_cpp_err"; then
20889 eval "$as_ac_Header=yes"
20891 echo "$as_me: failed program was:" >&5
20892 cat conftest.$ac_ext >&5
20893 eval "$as_ac_Header=no"
20895 rm -f conftest.err conftest.$ac_ext
20897 echo "$as_me:20897: result: `eval echo '${'$as_ac_Header'}'`" >&5
20898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20900 cat >>confdefs.h <<EOF
20901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20907 echo "$as_me:20907: checking for working mkstemp" >&5
20908 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
20909 if test "${cf_cv_func_mkstemp+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 if test "$cross_compiling" = yes; then
20915 cf_cv_func_mkstemp=maybe
20917 cat >conftest.$ac_ext <<_ACEOF
20918 #line 20918 "configure"
20919 #include "confdefs.h"
20921 #include <sys/types.h>
20922 #ifdef HAVE_UNISTD_H
20923 #include <unistd.h>
20925 #include <stdlib.h>
20927 #include <string.h>
20928 #include <sys/stat.h>
20931 char *tmpl = "conftestXXXXXX";
20939 for (n = 0; n < 2; ++n) {
20940 strcpy(name[n], tmpl);
20941 if ((fd = mkstemp(name[n])) >= 0) {
20942 if (!strcmp(name[n], tmpl)
20943 || stat(name[n], &sb) != 0
20944 || (sb.st_mode & S_IFMT) != S_IFREG
20945 || (sb.st_mode & 077) != 0) {
20952 && !strcmp(name[0], name[1]))
20954 ${cf_cv_main_return:-return}(result);
20958 rm -f conftest$ac_exeext
20959 if { (eval echo "$as_me:20959: \"$ac_link\"") >&5
20960 (eval $ac_link) 2>&5
20962 echo "$as_me:20962: \$? = $ac_status" >&5
20963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20964 { (eval echo "$as_me:20964: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20967 echo "$as_me:20967: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969 cf_cv_func_mkstemp=yes
20972 echo "$as_me: program exited with status $ac_status" >&5
20973 echo "$as_me: failed program was:" >&5
20974 cat conftest.$ac_ext >&5
20975 cf_cv_func_mkstemp=no
20978 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20982 echo "$as_me:20982: result: $cf_cv_func_mkstemp" >&5
20983 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
20984 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
20985 echo "$as_me:20985: checking for mkstemp" >&5
20986 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
20987 if test "${ac_cv_func_mkstemp+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20990 cat >conftest.$ac_ext <<_ACEOF
20991 #line 20991 "configure"
20992 #include "confdefs.h"
20993 #define mkstemp autoconf_temporary
20994 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21001 /* We use char because int might match the return type of a gcc2
21002 builtin and then its argument prototype would still apply. */
21003 char mkstemp (void);
21009 /* The GNU C library defines stubs for functions which it implements
21010 to always fail with ENOSYS. Some functions are actually named
21011 something starting with __ and the normal name is an alias. */
21012 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
21013 #error found stub for mkstemp
21021 rm -f conftest.$ac_objext conftest$ac_exeext
21022 if { (eval echo "$as_me:21022: \"$ac_link\"") >&5
21023 (eval $ac_link) 2>&5
21025 echo "$as_me:21025: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -s conftest$ac_exeext'
21028 { (eval echo "$as_me:21028: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21031 echo "$as_me:21031: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_func_mkstemp=yes
21035 echo "$as_me: failed program was:" >&5
21036 cat conftest.$ac_ext >&5
21037 ac_cv_func_mkstemp=no
21039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21041 echo "$as_me:21041: result: $ac_cv_func_mkstemp" >&5
21042 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21045 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
21047 cat >>confdefs.h <<\EOF
21048 #define HAVE_MKSTEMP 1
21053 # setup for prototype of fallback for vsscanf()
21055 if test "$cf_cv_func_vsscanf" = vsscanf ; then
21061 if test "x$cross_compiling" = xyes ; then
21062 { echo "$as_me:21062: WARNING: cross compiling: assume setvbuf params not reversed" >&5
21063 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
21065 echo "$as_me:21065: checking whether setvbuf arguments are reversed" >&5
21066 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
21067 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 if test "$cross_compiling" = yes; then
21071 { { echo "$as_me:21071: error: cannot run test program while cross compiling" >&5
21072 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21073 { (exit 1); exit 1; }; }
21075 cat >conftest.$ac_ext <<_ACEOF
21076 #line 21076 "configure"
21077 #include "confdefs.h"
21079 /* If setvbuf has the reversed format, exit 0. */
21083 /* This call has the arguments reversed.
21084 A reversed system may check and see that the address of main
21085 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
21086 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
21087 $ac_main_return(1);
21088 putc('\r', stdout);
21089 $ac_main_return(0); /* Non-reversed systems segv here. */
21092 rm -f conftest$ac_exeext
21093 if { (eval echo "$as_me:21093: \"$ac_link\"") >&5
21094 (eval $ac_link) 2>&5
21096 echo "$as_me:21096: \$? = $ac_status" >&5
21097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21098 { (eval echo "$as_me:21098: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21101 echo "$as_me:21101: \$? = $ac_status" >&5
21102 (exit $ac_status); }; }; then
21103 ac_cv_func_setvbuf_reversed=yes
21105 echo "$as_me: program exited with status $ac_status" >&5
21106 echo "$as_me: failed program was:" >&5
21107 cat conftest.$ac_ext >&5
21108 ac_cv_func_setvbuf_reversed=no
21110 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21112 rm -f core core.* *.core
21114 echo "$as_me:21114: result: $ac_cv_func_setvbuf_reversed" >&5
21115 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
21116 if test $ac_cv_func_setvbuf_reversed = yes; then
21118 cat >>confdefs.h <<\EOF
21119 #define SETVBUF_REVERSED 1
21125 echo "$as_me:21125: checking for intptr_t" >&5
21126 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
21127 if test "${ac_cv_type_intptr_t+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 cat >conftest.$ac_ext <<_ACEOF
21131 #line 21131 "configure"
21132 #include "confdefs.h"
21133 $ac_includes_default
21137 if ((intptr_t *) 0)
21139 if (sizeof (intptr_t))
21145 rm -f conftest.$ac_objext
21146 if { (eval echo "$as_me:21146: \"$ac_compile\"") >&5
21147 (eval $ac_compile) 2>&5
21149 echo "$as_me:21149: \$? = $ac_status" >&5
21150 (exit $ac_status); } &&
21151 { ac_try='test -s conftest.$ac_objext'
21152 { (eval echo "$as_me:21152: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21155 echo "$as_me:21155: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_cv_type_intptr_t=yes
21159 echo "$as_me: failed program was:" >&5
21160 cat conftest.$ac_ext >&5
21161 ac_cv_type_intptr_t=no
21163 rm -f conftest.$ac_objext conftest.$ac_ext
21165 echo "$as_me:21165: result: $ac_cv_type_intptr_t" >&5
21166 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
21167 if test $ac_cv_type_intptr_t = yes; then
21171 cat >>confdefs.h <<EOF
21172 #define intptr_t long
21177 echo "$as_me:21177: checking for ssize_t" >&5
21178 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21179 if test "${ac_cv_type_ssize_t+set}" = set; then
21180 echo $ECHO_N "(cached) $ECHO_C" >&6
21182 cat >conftest.$ac_ext <<_ACEOF
21183 #line 21183 "configure"
21184 #include "confdefs.h"
21185 $ac_includes_default
21191 if (sizeof (ssize_t))
21197 rm -f conftest.$ac_objext
21198 if { (eval echo "$as_me:21198: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>&5
21201 echo "$as_me:21201: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
21203 { ac_try='test -s conftest.$ac_objext'
21204 { (eval echo "$as_me:21204: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21207 echo "$as_me:21207: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 ac_cv_type_ssize_t=yes
21211 echo "$as_me: failed program was:" >&5
21212 cat conftest.$ac_ext >&5
21213 ac_cv_type_ssize_t=no
21215 rm -f conftest.$ac_objext conftest.$ac_ext
21217 echo "$as_me:21217: result: $ac_cv_type_ssize_t" >&5
21218 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21219 if test $ac_cv_type_ssize_t = yes; then
21223 cat >>confdefs.h <<EOF
21224 #define ssize_t int
21229 echo "$as_me:21229: checking for type sigaction_t" >&5
21230 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
21231 if test "${cf_cv_type_sigaction+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 cat >conftest.$ac_ext <<_ACEOF
21236 #line 21236 "configure"
21237 #include "confdefs.h"
21239 #include <signal.h>
21248 rm -f conftest.$ac_objext
21249 if { (eval echo "$as_me:21249: \"$ac_compile\"") >&5
21250 (eval $ac_compile) 2>&5
21252 echo "$as_me:21252: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try='test -s conftest.$ac_objext'
21255 { (eval echo "$as_me:21255: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21258 echo "$as_me:21258: \$? = $ac_status" >&5
21259 (exit $ac_status); }; }; then
21260 cf_cv_type_sigaction=yes
21262 echo "$as_me: failed program was:" >&5
21263 cat conftest.$ac_ext >&5
21264 cf_cv_type_sigaction=no
21266 rm -f conftest.$ac_objext conftest.$ac_ext
21269 echo "$as_me:21269: result: $cf_cv_type_sigaction" >&5
21270 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
21271 test "$cf_cv_type_sigaction" = yes &&
21272 cat >>confdefs.h <<\EOF
21273 #define HAVE_TYPE_SIGACTION 1
21276 echo "$as_me:21276: checking declaration of size-change" >&5
21277 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
21278 if test "${cf_cv_sizechange+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 cf_cv_sizechange=unknown
21283 cf_save_CPPFLAGS="$CPPFLAGS"
21285 for cf_opts in "" "NEED_PTEM_H"
21288 CPPFLAGS="$cf_save_CPPFLAGS"
21289 if test -n "$cf_opts"
21292 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21293 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
21296 cat >conftest.$ac_ext <<_ACEOF
21297 #line 21297 "configure"
21298 #include "confdefs.h"
21299 #include <sys/types.h>
21300 #ifdef HAVE_TERMIOS_H
21301 #include <termios.h>
21303 #ifdef HAVE_TERMIO_H
21304 #include <termio.h>
21309 /* This is a workaround for SCO: they neglected to define struct winsize in
21310 * termios.h -- it's only in termio.h and ptem.h
21312 #include <sys/stream.h>
21313 #include <sys/ptem.h>
21316 #ifdef HAVE_SYS_IOCTL_H
21317 #include <sys/ioctl.h>
21325 struct ttysize win; /* SunOS 3.0... */
21326 int y = win.ts_lines = 2;
21327 int x = win.ts_cols = 1;
21332 struct winsize win; /* everything else */
21333 int y = win.ws_row = 2;
21334 int x = win.ws_col = 1;
21338 no TIOCGSIZE or TIOCGWINSZ
21339 #endif /* TIOCGWINSZ */
21340 #endif /* TIOCGSIZE */
21346 rm -f conftest.$ac_objext
21347 if { (eval echo "$as_me:21347: \"$ac_compile\"") >&5
21348 (eval $ac_compile) 2>&5
21350 echo "$as_me:21350: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -s conftest.$ac_objext'
21353 { (eval echo "$as_me:21353: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:21356: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 cf_cv_sizechange=yes
21360 echo "$as_me: failed program was:" >&5
21361 cat conftest.$ac_ext >&5
21362 cf_cv_sizechange=no
21364 rm -f conftest.$ac_objext conftest.$ac_ext
21366 CPPFLAGS="$cf_save_CPPFLAGS"
21367 if test "$cf_cv_sizechange" = yes ; then
21368 echo "size-change succeeded ($cf_opts)" >&5
21369 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
21375 echo "$as_me:21375: result: $cf_cv_sizechange" >&5
21376 echo "${ECHO_T}$cf_cv_sizechange" >&6
21377 if test "$cf_cv_sizechange" != no ; then
21379 cat >>confdefs.h <<\EOF
21380 #define HAVE_SIZECHANGE 1
21383 case $cf_cv_sizechange in
21385 cat >>confdefs.h <<EOF
21386 #define $cf_cv_sizechange 1
21393 echo "$as_me:21393: checking for memmove" >&5
21394 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
21395 if test "${ac_cv_func_memmove+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 cat >conftest.$ac_ext <<_ACEOF
21399 #line 21399 "configure"
21400 #include "confdefs.h"
21401 #define memmove autoconf_temporary
21402 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21409 /* We use char because int might match the return type of a gcc2
21410 builtin and then its argument prototype would still apply. */
21411 char memmove (void);
21417 /* The GNU C library defines stubs for functions which it implements
21418 to always fail with ENOSYS. Some functions are actually named
21419 something starting with __ and the normal name is an alias. */
21420 #if defined (__stub_memmove) || defined (__stub___memmove)
21421 #error found stub for memmove
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (eval echo "$as_me:21430: \"$ac_link\"") >&5
21431 (eval $ac_link) 2>&5
21433 echo "$as_me:21433: \$? = $ac_status" >&5
21434 (exit $ac_status); } &&
21435 { ac_try='test -s conftest$ac_exeext'
21436 { (eval echo "$as_me:21436: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21439 echo "$as_me:21439: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 ac_cv_func_memmove=yes
21443 echo "$as_me: failed program was:" >&5
21444 cat conftest.$ac_ext >&5
21445 ac_cv_func_memmove=no
21447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21449 echo "$as_me:21449: result: $ac_cv_func_memmove" >&5
21450 echo "${ECHO_T}$ac_cv_func_memmove" >&6
21451 if test $ac_cv_func_memmove = yes; then
21455 echo "$as_me:21455: checking for bcopy" >&5
21456 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
21457 if test "${ac_cv_func_bcopy+set}" = set; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 cat >conftest.$ac_ext <<_ACEOF
21461 #line 21461 "configure"
21462 #include "confdefs.h"
21463 #define bcopy autoconf_temporary
21464 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21471 /* We use char because int might match the return type of a gcc2
21472 builtin and then its argument prototype would still apply. */
21479 /* The GNU C library defines stubs for functions which it implements
21480 to always fail with ENOSYS. Some functions are actually named
21481 something starting with __ and the normal name is an alias. */
21482 #if defined (__stub_bcopy) || defined (__stub___bcopy)
21483 #error found stub for bcopy
21491 rm -f conftest.$ac_objext conftest$ac_exeext
21492 if { (eval echo "$as_me:21492: \"$ac_link\"") >&5
21493 (eval $ac_link) 2>&5
21495 echo "$as_me:21495: \$? = $ac_status" >&5
21496 (exit $ac_status); } &&
21497 { ac_try='test -s conftest$ac_exeext'
21498 { (eval echo "$as_me:21498: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21501 echo "$as_me:21501: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21503 ac_cv_func_bcopy=yes
21505 echo "$as_me: failed program was:" >&5
21506 cat conftest.$ac_ext >&5
21507 ac_cv_func_bcopy=no
21509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21511 echo "$as_me:21511: result: $ac_cv_func_bcopy" >&5
21512 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
21513 if test $ac_cv_func_bcopy = yes; then
21515 echo "$as_me:21515: checking if bcopy does overlapping moves" >&5
21516 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
21517 if test "${cf_cv_good_bcopy+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21521 if test "$cross_compiling" = yes; then
21522 cf_cv_good_bcopy=unknown
21524 cat >conftest.$ac_ext <<_ACEOF
21525 #line 21525 "configure"
21526 #include "confdefs.h"
21529 static char data[] = "abcdefghijklmnopqrstuwwxyz";
21531 bcopy(data, temp, sizeof(data));
21532 bcopy(temp+10, temp, 15);
21533 bcopy(temp+5, temp+15, 10);
21534 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
21538 rm -f conftest$ac_exeext
21539 if { (eval echo "$as_me:21539: \"$ac_link\"") >&5
21540 (eval $ac_link) 2>&5
21542 echo "$as_me:21542: \$? = $ac_status" >&5
21543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21544 { (eval echo "$as_me:21544: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21547 echo "$as_me:21547: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 cf_cv_good_bcopy=yes
21551 echo "$as_me: program exited with status $ac_status" >&5
21552 echo "$as_me: failed program was:" >&5
21553 cat conftest.$ac_ext >&5
21554 cf_cv_good_bcopy=no
21556 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21560 echo "$as_me:21560: result: $cf_cv_good_bcopy" >&5
21561 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
21564 cf_cv_good_bcopy=no
21567 if test "$cf_cv_good_bcopy" = yes ; then
21569 cat >>confdefs.h <<\EOF
21570 #define USE_OK_BCOPY 1
21575 cat >>confdefs.h <<\EOF
21576 #define USE_MY_MEMMOVE 1
21583 tty 2>&1 >/dev/null || {
21584 for ac_func in posix_openpt
21586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21587 echo "$as_me:21587: checking for $ac_func" >&5
21588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21589 if eval "test \"\${$as_ac_var+set}\" = set"; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 cat >conftest.$ac_ext <<_ACEOF
21593 #line 21593 "configure"
21594 #include "confdefs.h"
21595 #define $ac_func autoconf_temporary
21596 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21603 /* We use char because int might match the return type of a gcc2
21604 builtin and then its argument prototype would still apply. */
21605 char $ac_func (void);
21611 /* The GNU C library defines stubs for functions which it implements
21612 to always fail with ENOSYS. Some functions are actually named
21613 something starting with __ and the normal name is an alias. */
21614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21615 #error found stub for $ac_func
21618 return $ac_func ();
21623 rm -f conftest.$ac_objext conftest$ac_exeext
21624 if { (eval echo "$as_me:21624: \"$ac_link\"") >&5
21625 (eval $ac_link) 2>&5
21627 echo "$as_me:21627: \$? = $ac_status" >&5
21628 (exit $ac_status); } &&
21629 { ac_try='test -s conftest$ac_exeext'
21630 { (eval echo "$as_me:21630: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21633 echo "$as_me:21633: \$? = $ac_status" >&5
21634 (exit $ac_status); }; }; then
21635 eval "$as_ac_var=yes"
21637 echo "$as_me: failed program was:" >&5
21638 cat conftest.$ac_ext >&5
21639 eval "$as_ac_var=no"
21641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21643 echo "$as_me:21643: result: `eval echo '${'$as_ac_var'}'`" >&5
21644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21645 if test `eval echo '${'$as_ac_var'}'` = yes; then
21646 cat >>confdefs.h <<EOF
21647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21653 echo "$as_me:21653: checking if poll really works" >&5
21654 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
21655 if test "${cf_cv_working_poll+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 if test "$cross_compiling" = yes; then
21660 cf_cv_working_poll=unknown
21662 cat >conftest.$ac_ext <<_ACEOF
21663 #line 21663 "configure"
21664 #include "confdefs.h"
21666 #include <stdlib.h>
21668 #include <unistd.h>
21673 #include <sys/poll.h>
21676 struct pollfd myfds;
21679 /* check for Darwin bug with respect to "devices" */
21680 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
21683 myfds.events = POLLIN;
21686 ret = poll(&myfds, 1, 100);
21688 if (ret < 0 || (myfds.revents & POLLNVAL)) {
21693 fd = open("/dev/tty", 2); /* O_RDWR */
21695 #ifdef HAVE_POSIX_OPENPT
21697 fd = posix_openpt(O_RDWR);
21702 /* also check with standard input */
21704 myfds.events = POLLIN;
21706 ret = poll(&myfds, 1, 100);
21711 ${cf_cv_main_return:-return}(ret < 0);
21714 rm -f conftest$ac_exeext
21715 if { (eval echo "$as_me:21715: \"$ac_link\"") >&5
21716 (eval $ac_link) 2>&5
21718 echo "$as_me:21718: \$? = $ac_status" >&5
21719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21720 { (eval echo "$as_me:21720: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:21723: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 cf_cv_working_poll=yes
21727 echo "$as_me: program exited with status $ac_status" >&5
21728 echo "$as_me: failed program was:" >&5
21729 cat conftest.$ac_ext >&5
21730 cf_cv_working_poll=no
21732 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21735 echo "$as_me:21735: result: $cf_cv_working_poll" >&5
21736 echo "${ECHO_T}$cf_cv_working_poll" >&6
21737 test "$cf_cv_working_poll" = "yes" &&
21738 cat >>confdefs.h <<\EOF
21739 #define HAVE_WORKING_POLL 1
21742 echo "$as_me:21742: checking for va_copy" >&5
21743 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21744 if test "${cf_cv_have_va_copy+set}" = set; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 cat >conftest.$ac_ext <<_ACEOF
21749 #line 21749 "configure"
21750 #include "confdefs.h"
21752 #include <stdarg.h>
21758 static va_list dst;
21759 static va_list src;
21765 rm -f conftest.$ac_objext conftest$ac_exeext
21766 if { (eval echo "$as_me:21766: \"$ac_link\"") >&5
21767 (eval $ac_link) 2>&5
21769 echo "$as_me:21769: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
21771 { ac_try='test -s conftest$ac_exeext'
21772 { (eval echo "$as_me:21772: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21775 echo "$as_me:21775: \$? = $ac_status" >&5
21776 (exit $ac_status); }; }; then
21777 cf_cv_have_va_copy=yes
21779 echo "$as_me: failed program was:" >&5
21780 cat conftest.$ac_ext >&5
21781 cf_cv_have_va_copy=no
21783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21785 echo "$as_me:21785: result: $cf_cv_have_va_copy" >&5
21786 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
21788 if test "$cf_cv_have_va_copy" = yes;
21791 cat >>confdefs.h <<\EOF
21792 #define HAVE_VA_COPY 1
21795 else # !cf_cv_have_va_copy
21797 echo "$as_me:21797: checking for __va_copy" >&5
21798 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
21799 if test "${cf_cv_have___va_copy+set}" = set; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21803 cat >conftest.$ac_ext <<_ACEOF
21804 #line 21804 "configure"
21805 #include "confdefs.h"
21807 #include <stdarg.h>
21813 static va_list dst;
21814 static va_list src;
21815 __va_copy(dst, src)
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (eval echo "$as_me:21821: \"$ac_link\"") >&5
21822 (eval $ac_link) 2>&5
21824 echo "$as_me:21824: \$? = $ac_status" >&5
21825 (exit $ac_status); } &&
21826 { ac_try='test -s conftest$ac_exeext'
21827 { (eval echo "$as_me:21827: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21830 echo "$as_me:21830: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 cf_cv_have___va_copy=yes
21834 echo "$as_me: failed program was:" >&5
21835 cat conftest.$ac_ext >&5
21836 cf_cv_have___va_copy=no
21838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21840 echo "$as_me:21840: result: $cf_cv_have___va_copy" >&5
21841 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
21843 if test "$cf_cv_have___va_copy" = yes
21846 cat >>confdefs.h <<\EOF
21847 #define HAVE___VA_COPY 1
21850 else # !cf_cv_have___va_copy
21852 echo "$as_me:21852: checking for __builtin_va_copy" >&5
21853 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
21854 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 cat >conftest.$ac_ext <<_ACEOF
21859 #line 21859 "configure"
21860 #include "confdefs.h"
21862 #include <stdarg.h>
21868 static va_list dst;
21869 static va_list src;
21870 __builtin_va_copy(dst, src)
21875 rm -f conftest.$ac_objext conftest$ac_exeext
21876 if { (eval echo "$as_me:21876: \"$ac_link\"") >&5
21877 (eval $ac_link) 2>&5
21879 echo "$as_me:21879: \$? = $ac_status" >&5
21880 (exit $ac_status); } &&
21881 { ac_try='test -s conftest$ac_exeext'
21882 { (eval echo "$as_me:21882: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21885 echo "$as_me:21885: \$? = $ac_status" >&5
21886 (exit $ac_status); }; }; then
21887 cf_cv_have___builtin_va_copy=yes
21889 echo "$as_me: failed program was:" >&5
21890 cat conftest.$ac_ext >&5
21891 cf_cv_have___builtin_va_copy=no
21893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21895 echo "$as_me:21895: result: $cf_cv_have___builtin_va_copy" >&5
21896 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
21898 test "$cf_cv_have___builtin_va_copy" = yes &&
21900 cat >>confdefs.h <<\EOF
21901 #define HAVE___BUILTIN_VA_COPY 1
21904 fi # cf_cv_have___va_copy
21906 fi # cf_cv_have_va_copy
21908 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
21913 echo "$as_me:21913: checking if we can simply copy va_list" >&5
21914 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
21915 if test "${cf_cv_pointer_va_list+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 cat >conftest.$ac_ext <<_ACEOF
21920 #line 21920 "configure"
21921 #include "confdefs.h"
21923 #include <stdarg.h>
21936 rm -f conftest.$ac_objext conftest$ac_exeext
21937 if { (eval echo "$as_me:21937: \"$ac_link\"") >&5
21938 (eval $ac_link) 2>&5
21940 echo "$as_me:21940: \$? = $ac_status" >&5
21941 (exit $ac_status); } &&
21942 { ac_try='test -s conftest$ac_exeext'
21943 { (eval echo "$as_me:21943: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21946 echo "$as_me:21946: \$? = $ac_status" >&5
21947 (exit $ac_status); }; }; then
21948 cf_cv_pointer_va_list=yes
21950 echo "$as_me: failed program was:" >&5
21951 cat conftest.$ac_ext >&5
21952 cf_cv_pointer_va_list=no
21954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21956 echo "$as_me:21956: result: $cf_cv_pointer_va_list" >&5
21957 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
21959 if test "$cf_cv_pointer_va_list" = no
21961 echo "$as_me:21961: checking if we can copy va_list indirectly" >&5
21962 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
21963 if test "${cf_cv_array_va_list+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 cat >conftest.$ac_ext <<_ACEOF
21968 #line 21968 "configure"
21969 #include "confdefs.h"
21971 #include <stdarg.h>
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (eval echo "$as_me:21985: \"$ac_link\"") >&5
21986 (eval $ac_link) 2>&5
21988 echo "$as_me:21988: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
21990 { ac_try='test -s conftest$ac_exeext'
21991 { (eval echo "$as_me:21991: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21994 echo "$as_me:21994: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 cf_cv_array_va_list=yes
21998 echo "$as_me: failed program was:" >&5
21999 cat conftest.$ac_ext >&5
22000 cf_cv_array_va_list=no
22002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22004 echo "$as_me:22004: result: $cf_cv_array_va_list" >&5
22005 echo "${ECHO_T}$cf_cv_array_va_list" >&6
22006 test "$cf_cv_array_va_list" = yes &&
22007 cat >>confdefs.h <<\EOF
22008 #define ARRAY_VA_LIST 1
22015 echo "$as_me:22015: checking for pid_t" >&5
22016 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22017 if test "${ac_cv_type_pid_t+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 cat >conftest.$ac_ext <<_ACEOF
22021 #line 22021 "configure"
22022 #include "confdefs.h"
22023 $ac_includes_default
22029 if (sizeof (pid_t))
22035 rm -f conftest.$ac_objext
22036 if { (eval echo "$as_me:22036: \"$ac_compile\"") >&5
22037 (eval $ac_compile) 2>&5
22039 echo "$as_me:22039: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -s conftest.$ac_objext'
22042 { (eval echo "$as_me:22042: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:22045: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ac_cv_type_pid_t=yes
22049 echo "$as_me: failed program was:" >&5
22050 cat conftest.$ac_ext >&5
22051 ac_cv_type_pid_t=no
22053 rm -f conftest.$ac_objext conftest.$ac_ext
22055 echo "$as_me:22055: result: $ac_cv_type_pid_t" >&5
22056 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22057 if test $ac_cv_type_pid_t = yes; then
22061 cat >>confdefs.h <<EOF
22067 for ac_header in unistd.h vfork.h
22069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22070 echo "$as_me:22070: checking for $ac_header" >&5
22071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22075 cat >conftest.$ac_ext <<_ACEOF
22076 #line 22076 "configure"
22077 #include "confdefs.h"
22078 #include <$ac_header>
22080 if { (eval echo "$as_me:22080: \"$ac_cpp conftest.$ac_ext\"") >&5
22081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22083 egrep -v '^ *\+' conftest.er1 >conftest.err
22085 cat conftest.err >&5
22086 echo "$as_me:22086: \$? = $ac_status" >&5
22087 (exit $ac_status); } >/dev/null; then
22088 if test -s conftest.err; then
22089 ac_cpp_err=$ac_c_preproc_warn_flag
22096 if test -z "$ac_cpp_err"; then
22097 eval "$as_ac_Header=yes"
22099 echo "$as_me: failed program was:" >&5
22100 cat conftest.$ac_ext >&5
22101 eval "$as_ac_Header=no"
22103 rm -f conftest.err conftest.$ac_ext
22105 echo "$as_me:22105: result: `eval echo '${'$as_ac_Header'}'`" >&5
22106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22108 cat >>confdefs.h <<EOF
22109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22115 for ac_func in fork vfork
22117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22118 echo "$as_me:22118: checking for $ac_func" >&5
22119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22120 if eval "test \"\${$as_ac_var+set}\" = set"; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 cat >conftest.$ac_ext <<_ACEOF
22124 #line 22124 "configure"
22125 #include "confdefs.h"
22126 #define $ac_func autoconf_temporary
22127 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22134 /* We use char because int might match the return type of a gcc2
22135 builtin and then its argument prototype would still apply. */
22136 char $ac_func (void);
22142 /* The GNU C library defines stubs for functions which it implements
22143 to always fail with ENOSYS. Some functions are actually named
22144 something starting with __ and the normal name is an alias. */
22145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22146 #error found stub for $ac_func
22149 return $ac_func ();
22154 rm -f conftest.$ac_objext conftest$ac_exeext
22155 if { (eval echo "$as_me:22155: \"$ac_link\"") >&5
22156 (eval $ac_link) 2>&5
22158 echo "$as_me:22158: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -s conftest$ac_exeext'
22161 { (eval echo "$as_me:22161: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22164 echo "$as_me:22164: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 eval "$as_ac_var=yes"
22168 echo "$as_me: failed program was:" >&5
22169 cat conftest.$ac_ext >&5
22170 eval "$as_ac_var=no"
22172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22174 echo "$as_me:22174: result: `eval echo '${'$as_ac_var'}'`" >&5
22175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22176 if test `eval echo '${'$as_ac_var'}'` = yes; then
22177 cat >>confdefs.h <<EOF
22178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22184 ac_cv_func_fork_works=$ac_cv_func_fork
22185 if test "x$ac_cv_func_fork" = xyes; then
22186 echo "$as_me:22186: checking for working fork" >&5
22187 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22188 if test "${ac_cv_func_fork_works+set}" = set; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22191 if test "$cross_compiling" = yes; then
22192 ac_cv_func_fork_works=cross
22194 cat >conftest.$ac_ext <<_ACEOF
22195 /* By Rüdiger Kuhlmann. */
22196 #include <sys/types.h>
22198 # include <unistd.h>
22200 /* Some systems only have a dummy stub for fork() */
22204 $ac_main_return (1);
22205 $ac_main_return (0);
22208 rm -f conftest$ac_exeext
22209 if { (eval echo "$as_me:22209: \"$ac_link\"") >&5
22210 (eval $ac_link) 2>&5
22212 echo "$as_me:22212: \$? = $ac_status" >&5
22213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22214 { (eval echo "$as_me:22214: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22217 echo "$as_me:22217: \$? = $ac_status" >&5
22218 (exit $ac_status); }; }; then
22219 ac_cv_func_fork_works=yes
22221 echo "$as_me: program exited with status $ac_status" >&5
22222 echo "$as_me: failed program was:" >&5
22223 cat conftest.$ac_ext >&5
22224 ac_cv_func_fork_works=no
22226 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22229 echo "$as_me:22229: result: $ac_cv_func_fork_works" >&5
22230 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22233 if test "x$ac_cv_func_fork_works" = xcross; then
22235 *-*-amigaos* | *-*-msdosdjgpp*)
22236 # Override, as these systems have only a dummy fork() stub
22237 ac_cv_func_fork_works=no
22240 ac_cv_func_fork_works=yes
22243 { echo "$as_me:22243: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
22244 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
22246 ac_cv_func_vfork_works=$ac_cv_func_vfork
22247 if test "x$ac_cv_func_vfork" = xyes; then
22248 echo "$as_me:22248: checking for working vfork" >&5
22249 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22250 if test "${ac_cv_func_vfork_works+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 if test "$cross_compiling" = yes; then
22254 ac_cv_func_vfork_works=cross
22256 cat >conftest.$ac_ext <<_ACEOF
22257 #line 22257 "configure"
22258 #include "confdefs.h"
22259 /* Thanks to Paul Eggert for this test. */
22261 #include <sys/types.h>
22262 #include <sys/stat.h>
22264 # include <unistd.h>
22267 # include <vfork.h>
22269 /* On some sparc systems, changes by the child to local and incoming
22270 argument registers are propagated back to the parent. The compiler
22271 is told about this with #include <vfork.h>, but some compilers
22272 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22273 static variable whose address is put into a register that is
22274 clobbered by the vfork. */
22277 sparc_address_test (int arg)
22279 sparc_address_test (arg) int arg;
22282 static pid_t child;
22300 pid_t parent = getpid ();
22303 sparc_address_test ();
22308 /* Here is another test for sparc vfork register problems. This
22309 test uses lots of local variables, at least as many local
22310 variables as main has allocated so far including compiler
22311 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22312 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22313 reuse the register of parent for one of the local variables,
22314 since it will think that parent can't possibly be used any more
22315 in this routine. Assigning to the local variable will thus
22316 munge parent in the parent process. */
22318 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22319 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22320 /* Convince the compiler that p..p7 are live; otherwise, it might
22321 use the same hardware register for all 8 local variables. */
22322 if (p != p1 || p != p2 || p != p3 || p != p4
22323 || p != p5 || p != p6 || p != p7)
22326 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22327 from child file descriptors. If the child closes a descriptor
22328 before it execs or exits, this munges the parent's descriptor
22329 as well. Test for this by closing stdout in the child. */
22330 _exit(close(fileno(stdout)) != 0);
22335 while (wait(&status) != child)
22338 /* Was there some problem with vforking? */
22341 /* Did the child fail? (This shouldn't happen.) */
22344 /* Did the vfork/compiler bug occur? */
22345 || parent != getpid()
22347 /* Did the file descriptor bug occur? */
22348 || fstat(fileno(stdout), &st) != 0
22353 rm -f conftest$ac_exeext
22354 if { (eval echo "$as_me:22354: \"$ac_link\"") >&5
22355 (eval $ac_link) 2>&5
22357 echo "$as_me:22357: \$? = $ac_status" >&5
22358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22359 { (eval echo "$as_me:22359: \"$ac_try\"") >&5
22360 (eval $ac_try) 2>&5
22362 echo "$as_me:22362: \$? = $ac_status" >&5
22363 (exit $ac_status); }; }; then
22364 ac_cv_func_vfork_works=yes
22366 echo "$as_me: program exited with status $ac_status" >&5
22367 echo "$as_me: failed program was:" >&5
22368 cat conftest.$ac_ext >&5
22369 ac_cv_func_vfork_works=no
22371 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22374 echo "$as_me:22374: result: $ac_cv_func_vfork_works" >&5
22375 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22378 if test "x$ac_cv_func_fork_works" = xcross; then
22379 ac_cv_func_vfork_works=ac_cv_func_vfork
22380 { echo "$as_me:22380: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
22381 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
22384 if test "x$ac_cv_func_vfork_works" = xyes; then
22386 cat >>confdefs.h <<\EOF
22387 #define HAVE_WORKING_VFORK 1
22392 cat >>confdefs.h <<\EOF
22397 if test "x$ac_cv_func_fork_works" = xyes; then
22399 cat >>confdefs.h <<\EOF
22400 #define HAVE_WORKING_FORK 1
22405 echo "$as_me:22405: checking if fopen accepts explicit binary mode" >&5
22406 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
22407 if test "${cf_cv_fopen_bin_r+set}" = set; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22411 if test "$cross_compiling" = yes; then
22412 cf_cv_fopen_bin_r=unknown
22414 cat >conftest.$ac_ext <<_ACEOF
22415 #line 22415 "configure"
22416 #include "confdefs.h"
22420 FILE *fp = fopen("conftest.tmp", "wb");
22424 for (p = 0; p < 256; ++p) {
22428 fp = fopen("conftest.tmp", "rb");
22430 for (p = 0; p < 256; ++p) {
22443 ${cf_cv_main_return:-return} (rc);
22447 rm -f conftest$ac_exeext
22448 if { (eval echo "$as_me:22448: \"$ac_link\"") >&5
22449 (eval $ac_link) 2>&5
22451 echo "$as_me:22451: \$? = $ac_status" >&5
22452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22453 { (eval echo "$as_me:22453: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22456 echo "$as_me:22456: \$? = $ac_status" >&5
22457 (exit $ac_status); }; }; then
22458 cf_cv_fopen_bin_r=yes
22460 echo "$as_me: program exited with status $ac_status" >&5
22461 echo "$as_me: failed program was:" >&5
22462 cat conftest.$ac_ext >&5
22463 cf_cv_fopen_bin_r=no
22465 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22469 echo "$as_me:22469: result: $cf_cv_fopen_bin_r" >&5
22470 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
22471 test "x$cf_cv_fopen_bin_r" != xno &&
22472 cat >>confdefs.h <<\EOF
22473 #define USE_FOPEN_BIN_R 1
22476 # special check for test/ditto.c
22478 echo "$as_me:22478: checking for openpty in -lutil" >&5
22479 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
22480 if test "${ac_cv_lib_util_openpty+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 ac_check_lib_save_LIBS=$LIBS
22484 LIBS="-lutil $LIBS"
22485 cat >conftest.$ac_ext <<_ACEOF
22486 #line 22486 "configure"
22487 #include "confdefs.h"
22489 /* Override any gcc2 internal prototype to avoid an error. */
22493 /* We use char because int might match the return type of a gcc2
22494 builtin and then its argument prototype would still apply. */
22504 rm -f conftest.$ac_objext conftest$ac_exeext
22505 if { (eval echo "$as_me:22505: \"$ac_link\"") >&5
22506 (eval $ac_link) 2>&5
22508 echo "$as_me:22508: \$? = $ac_status" >&5
22509 (exit $ac_status); } &&
22510 { ac_try='test -s conftest$ac_exeext'
22511 { (eval echo "$as_me:22511: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22514 echo "$as_me:22514: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ac_cv_lib_util_openpty=yes
22518 echo "$as_me: failed program was:" >&5
22519 cat conftest.$ac_ext >&5
22520 ac_cv_lib_util_openpty=no
22522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22523 LIBS=$ac_check_lib_save_LIBS
22525 echo "$as_me:22525: result: $ac_cv_lib_util_openpty" >&5
22526 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
22527 if test $ac_cv_lib_util_openpty = yes; then
22533 echo "$as_me:22533: checking for openpty header" >&5
22534 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
22535 if test "${cf_cv_func_openpty+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 cf_save_LIBS="$LIBS"
22540 test $cf_cv_lib_util = yes && {
22541 cf_add_libs="$LIBS"
22544 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22545 # filter duplicates
22546 for cf_add_1lib in $cf_add_0lib; do
22547 for cf_add_2lib in $cf_add_libs; do
22548 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22553 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22555 LIBS="$cf_add_libs"
22557 for cf_header in pty.h libutil.h util.h
22559 cat >conftest.$ac_ext <<_ACEOF
22560 #line 22560 "configure"
22561 #include "confdefs.h"
22563 #include <$cf_header>
22569 int x = openpty((int *)0, (int *)0, (char *)0,
22570 (struct termios *)0, (struct winsize *)0);
22576 rm -f conftest.$ac_objext conftest$ac_exeext
22577 if { (eval echo "$as_me:22577: \"$ac_link\"") >&5
22578 (eval $ac_link) 2>&5
22580 echo "$as_me:22580: \$? = $ac_status" >&5
22581 (exit $ac_status); } &&
22582 { ac_try='test -s conftest$ac_exeext'
22583 { (eval echo "$as_me:22583: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22586 echo "$as_me:22586: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22589 cf_cv_func_openpty=$cf_header
22593 echo "$as_me: failed program was:" >&5
22594 cat conftest.$ac_ext >&5
22596 cf_cv_func_openpty=no
22599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22601 LIBS="$cf_save_LIBS"
22604 echo "$as_me:22604: result: $cf_cv_func_openpty" >&5
22605 echo "${ECHO_T}$cf_cv_func_openpty" >&6
22607 if test "$cf_cv_func_openpty" != no ; then
22609 cat >>confdefs.h <<EOF
22610 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
22613 cat >>confdefs.h <<\EOF
22614 #define USE_XTERM_PTY 1
22617 if test "x$cf_cv_lib_util" = xyes ; then
22619 cf_add_libs="$TEST_LIBS"
22622 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22623 # filter duplicates
22624 for cf_add_1lib in $cf_add_0lib; do
22625 for cf_add_2lib in $cf_add_libs; do
22626 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22631 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22633 TEST_LIBS="$cf_add_libs"
22638 if test "$with_hashed_db" != no ; then
22640 cat >>confdefs.h <<\EOF
22641 #define USE_HASHED_DB 1
22644 case $with_hashed_db in
22648 if test -d "$with_hashed_db" ; then
22650 if test -n "$with_hashed_db/include" ; then
22651 for cf_add_incdir in $with_hashed_db/include
22653 while test $cf_add_incdir != /usr/include
22655 if test -d $cf_add_incdir
22658 if test -n "$CFLAGS$CPPFLAGS" ; then
22659 # a loop is needed to ensure we can add subdirs of existing dirs
22660 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22661 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22662 cf_have_incdir=yes; break
22667 if test "$cf_have_incdir" = no ; then
22668 if test "$cf_add_incdir" = /usr/local/include ; then
22669 if test "$GCC" = yes
22671 cf_save_CPPFLAGS=$CPPFLAGS
22673 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22674 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22676 cat >conftest.$ac_ext <<_ACEOF
22677 #line 22677 "configure"
22678 #include "confdefs.h"
22688 rm -f conftest.$ac_objext
22689 if { (eval echo "$as_me:22689: \"$ac_compile\"") >&5
22690 (eval $ac_compile) 2>&5
22692 echo "$as_me:22692: \$? = $ac_status" >&5
22693 (exit $ac_status); } &&
22694 { ac_try='test -s conftest.$ac_objext'
22695 { (eval echo "$as_me:22695: \"$ac_try\"") >&5
22696 (eval $ac_try) 2>&5
22698 echo "$as_me:22698: \$? = $ac_status" >&5
22699 (exit $ac_status); }; }; then
22702 echo "$as_me: failed program was:" >&5
22703 cat conftest.$ac_ext >&5
22706 rm -f conftest.$ac_objext conftest.$ac_ext
22707 CPPFLAGS=$cf_save_CPPFLAGS
22712 if test "$cf_have_incdir" = no ; then
22713 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22715 echo "${as_me:-configure}:22715: testing adding $cf_add_incdir to include-path ..." 1>&5
22717 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22719 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22720 test "$cf_top_incdir" = "$cf_add_incdir" && break
22721 cf_add_incdir="$cf_top_incdir"
22732 if test -n "$with_hashed_db/lib" ; then
22733 for cf_add_libdir in $with_hashed_db/lib
22735 if test $cf_add_libdir = /usr/lib ; then
22737 elif test -d $cf_add_libdir
22740 if test -n "$LDFLAGS$LIBS" ; then
22741 # a loop is needed to ensure we can add subdirs of existing dirs
22742 for cf_test_libdir in $LDFLAGS $LIBS ; do
22743 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22744 cf_have_libdir=yes; break
22748 if test "$cf_have_libdir" = no ; then
22749 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22751 echo "${as_me:-configure}:22751: testing adding $cf_add_libdir to library-path ..." 1>&5
22753 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
22760 case "$with_hashed_db" in
22762 { echo "$as_me:22762: WARNING: no such directory $with_hashed_db" >&5
22763 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
22769 test "x$prefix" != "xNONE" && \
22770 test -d "$prefix" && \
22772 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
22773 test -d $prefix/include && cf_search="$cf_search $prefix/include"
22774 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
22775 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
22776 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
22777 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
22780 for cf_subdir_prefix in \
22789 test "x$cf_subdir_prefix" != "x$prefix" && \
22790 test -d "$cf_subdir_prefix" && \
22791 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22792 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
22793 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
22794 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
22795 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
22796 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
22797 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"
22802 for cf_item in $cf_search
22805 (*/$with_hashed_db)
22807 if test -n "$cf_item" ; then
22808 for cf_add_incdir in $cf_item
22810 while test $cf_add_incdir != /usr/include
22812 if test -d $cf_add_incdir
22815 if test -n "$CFLAGS$CPPFLAGS" ; then
22816 # a loop is needed to ensure we can add subdirs of existing dirs
22817 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
22818 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
22819 cf_have_incdir=yes; break
22824 if test "$cf_have_incdir" = no ; then
22825 if test "$cf_add_incdir" = /usr/local/include ; then
22826 if test "$GCC" = yes
22828 cf_save_CPPFLAGS=$CPPFLAGS
22830 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22831 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
22833 cat >conftest.$ac_ext <<_ACEOF
22834 #line 22834 "configure"
22835 #include "confdefs.h"
22845 rm -f conftest.$ac_objext
22846 if { (eval echo "$as_me:22846: \"$ac_compile\"") >&5
22847 (eval $ac_compile) 2>&5
22849 echo "$as_me:22849: \$? = $ac_status" >&5
22850 (exit $ac_status); } &&
22851 { ac_try='test -s conftest.$ac_objext'
22852 { (eval echo "$as_me:22852: \"$ac_try\"") >&5
22853 (eval $ac_try) 2>&5
22855 echo "$as_me:22855: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }; then
22859 echo "$as_me: failed program was:" >&5
22860 cat conftest.$ac_ext >&5
22863 rm -f conftest.$ac_objext conftest.$ac_ext
22864 CPPFLAGS=$cf_save_CPPFLAGS
22869 if test "$cf_have_incdir" = no ; then
22870 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
22872 echo "${as_me:-configure}:22872: testing adding $cf_add_incdir to include-path ..." 1>&5
22874 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
22876 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
22877 test "$cf_top_incdir" = "$cf_add_incdir" && break
22878 cf_add_incdir="$cf_top_incdir"
22895 test "x$prefix" != "xNONE" && \
22896 test -d "$prefix" && \
22898 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
22899 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
22900 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
22901 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
22902 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
22903 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
22906 for cf_subdir_prefix in \
22915 test "x$cf_subdir_prefix" != "x$prefix" && \
22916 test -d "$cf_subdir_prefix" && \
22917 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
22918 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
22919 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
22920 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
22921 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
22922 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
22923 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"
22928 for cf_item in $cf_search
22931 (*/$with_hashed_db)
22933 if test -n "$cf_item" ; then
22934 for cf_add_libdir in $cf_item
22936 if test $cf_add_libdir = /usr/lib ; then
22938 elif test -d $cf_add_libdir
22941 if test -n "$LDFLAGS$LIBS" ; then
22942 # a loop is needed to ensure we can add subdirs of existing dirs
22943 for cf_test_libdir in $LDFLAGS $LIBS ; do
22944 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
22945 cf_have_libdir=yes; break
22949 if test "$cf_have_libdir" = no ; then
22950 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
22952 echo "${as_me:-configure}:22952: testing adding $cf_add_libdir to library-path ..." 1>&5
22954 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
22969 echo "$as_me:22969: checking for db.h" >&5
22970 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
22971 if test "${ac_cv_header_db_h+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 cat >conftest.$ac_ext <<_ACEOF
22975 #line 22975 "configure"
22976 #include "confdefs.h"
22979 if { (eval echo "$as_me:22979: \"$ac_cpp conftest.$ac_ext\"") >&5
22980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22982 egrep -v '^ *\+' conftest.er1 >conftest.err
22984 cat conftest.err >&5
22985 echo "$as_me:22985: \$? = $ac_status" >&5
22986 (exit $ac_status); } >/dev/null; then
22987 if test -s conftest.err; then
22988 ac_cpp_err=$ac_c_preproc_warn_flag
22995 if test -z "$ac_cpp_err"; then
22996 ac_cv_header_db_h=yes
22998 echo "$as_me: failed program was:" >&5
22999 cat conftest.$ac_ext >&5
23000 ac_cv_header_db_h=no
23002 rm -f conftest.err conftest.$ac_ext
23004 echo "$as_me:23004: result: $ac_cv_header_db_h" >&5
23005 echo "${ECHO_T}$ac_cv_header_db_h" >&6
23006 if test $ac_cv_header_db_h = yes; then
23008 echo "$as_me:23008: checking for version of db" >&5
23009 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
23010 if test "${cf_cv_hashed_db_version+set}" = set; then
23011 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 cf_cv_hashed_db_version=unknown
23016 for cf_db_version in 1 2 3 4 5 6
23019 echo "${as_me:-configure}:23019: testing checking for db version $cf_db_version ..." 1>&5
23021 cat >conftest.$ac_ext <<_ACEOF
23022 #line 23022 "configure"
23023 #include "confdefs.h"
23025 $ac_includes_default
23028 #ifdef DB_VERSION_MAJOR
23029 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
23030 #if $cf_db_version == DB_VERSION_MAJOR
23036 #if $cf_db_version == 1
23037 /* ok: assuming this is DB 1.8.5 */
23051 rm -f conftest.$ac_objext
23052 if { (eval echo "$as_me:23052: \"$ac_compile\"") >&5
23053 (eval $ac_compile) 2>&5
23055 echo "$as_me:23055: \$? = $ac_status" >&5
23056 (exit $ac_status); } &&
23057 { ac_try='test -s conftest.$ac_objext'
23058 { (eval echo "$as_me:23058: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23061 echo "$as_me:23061: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }; then
23064 cf_cv_hashed_db_version=$cf_db_version
23068 echo "$as_me: failed program was:" >&5
23069 cat conftest.$ac_ext >&5
23071 rm -f conftest.$ac_objext conftest.$ac_ext
23075 echo "$as_me:23075: result: $cf_cv_hashed_db_version" >&5
23076 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
23078 if test "$cf_cv_hashed_db_version" = unknown ; then
23079 { { echo "$as_me:23079: error: Cannot determine version of db" >&5
23080 echo "$as_me: error: Cannot determine version of db" >&2;}
23081 { (exit 1); exit 1; }; }
23084 echo "$as_me:23084: checking for db libraries" >&5
23085 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
23086 if test "${cf_cv_hashed_db_libs+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 cf_cv_hashed_db_libs=unknown
23091 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
23093 cf_save_libs="$LIBS"
23094 if test -n "$cf_db_libs"; then
23096 cf_add_libs="$LIBS"
23099 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23100 # filter duplicates
23101 for cf_add_1lib in $cf_add_0lib; do
23102 for cf_add_2lib in $cf_add_libs; do
23103 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23108 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23110 LIBS="$cf_add_libs"
23114 echo "${as_me:-configure}:23114: testing checking for library "$cf_db_libs" ..." 1>&5
23116 cat >conftest.$ac_ext <<_ACEOF
23117 #line 23117 "configure"
23118 #include "confdefs.h"
23120 $ac_includes_default
23127 char *path = "/tmp/foo";
23128 #ifdef DB_VERSION_MAJOR
23129 #if DB_VERSION_MAJOR >= 4
23131 db_create(&result, NULL, 0);
23132 result->open(result,
23139 #elif DB_VERSION_MAJOR >= 3
23141 db_create(&result, NULL, 0);
23142 result->open(result,
23148 #elif DB_VERSION_MAJOR >= 2
23157 #endif /* DB_VERSION_MAJOR */
23159 DB *result = dbopen(path,
23165 ${cf_cv_main_return:-return}(result != 0)
23171 rm -f conftest.$ac_objext conftest$ac_exeext
23172 if { (eval echo "$as_me:23172: \"$ac_link\"") >&5
23173 (eval $ac_link) 2>&5
23175 echo "$as_me:23175: \$? = $ac_status" >&5
23176 (exit $ac_status); } &&
23177 { ac_try='test -s conftest$ac_exeext'
23178 { (eval echo "$as_me:23178: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23181 echo "$as_me:23181: \$? = $ac_status" >&5
23182 (exit $ac_status); }; }; then
23184 if test -n "$cf_db_libs" ; then
23185 cf_cv_hashed_db_libs=$cf_db_libs
23187 cf_cv_hashed_db_libs=default
23189 LIBS="$cf_save_libs"
23193 echo "$as_me: failed program was:" >&5
23194 cat conftest.$ac_ext >&5
23196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23197 LIBS="$cf_save_libs"
23201 echo "$as_me:23201: result: $cf_cv_hashed_db_libs" >&5
23202 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
23204 if test "$cf_cv_hashed_db_libs" = unknown ; then
23205 { { echo "$as_me:23205: error: Cannot determine library for db" >&5
23206 echo "$as_me: error: Cannot determine library for db" >&2;}
23207 { (exit 1); exit 1; }; }
23208 elif test "$cf_cv_hashed_db_libs" != default ; then
23210 cf_add_libs="$LIBS"
23213 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23214 # filter duplicates
23215 for cf_add_1lib in $cf_add_0lib; do
23216 for cf_add_2lib in $cf_add_libs; do
23217 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23222 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23224 LIBS="$cf_add_libs"
23231 { { echo "$as_me:23231: error: Cannot find db.h" >&5
23232 echo "$as_me: error: Cannot find db.h" >&2;}
23233 { (exit 1); exit 1; }; }
23239 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
23240 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
23241 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
23244 # Just in case, check if the C compiler has a bool type.
23246 echo "$as_me:23246: checking if we should include stdbool.h" >&5
23247 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
23249 if test "${cf_cv_header_stdbool_h+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23253 cat >conftest.$ac_ext <<_ACEOF
23254 #line 23254 "configure"
23255 #include "confdefs.h"
23265 rm -f conftest.$ac_objext
23266 if { (eval echo "$as_me:23266: \"$ac_compile\"") >&5
23267 (eval $ac_compile) 2>&5
23269 echo "$as_me:23269: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -s conftest.$ac_objext'
23272 { (eval echo "$as_me:23272: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23275 echo "$as_me:23275: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 cf_cv_header_stdbool_h=0
23279 echo "$as_me: failed program was:" >&5
23280 cat conftest.$ac_ext >&5
23281 cat >conftest.$ac_ext <<_ACEOF
23282 #line 23282 "configure"
23283 #include "confdefs.h"
23286 #include <stdbool.h>
23297 rm -f conftest.$ac_objext
23298 if { (eval echo "$as_me:23298: \"$ac_compile\"") >&5
23299 (eval $ac_compile) 2>&5
23301 echo "$as_me:23301: \$? = $ac_status" >&5
23302 (exit $ac_status); } &&
23303 { ac_try='test -s conftest.$ac_objext'
23304 { (eval echo "$as_me:23304: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23307 echo "$as_me:23307: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23309 cf_cv_header_stdbool_h=1
23311 echo "$as_me: failed program was:" >&5
23312 cat conftest.$ac_ext >&5
23313 cf_cv_header_stdbool_h=0
23315 rm -f conftest.$ac_objext conftest.$ac_ext
23317 rm -f conftest.$ac_objext conftest.$ac_ext
23320 if test "$cf_cv_header_stdbool_h" = 1
23321 then echo "$as_me:23321: result: yes" >&5
23322 echo "${ECHO_T}yes" >&6
23323 else echo "$as_me:23323: result: no" >&5
23324 echo "${ECHO_T}no" >&6
23327 echo "$as_me:23327: checking for builtin bool type" >&5
23328 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
23330 if test "${cf_cv_cc_bool_type+set}" = set; then
23331 echo $ECHO_N "(cached) $ECHO_C" >&6
23334 cat >conftest.$ac_ext <<_ACEOF
23335 #line 23335 "configure"
23336 #include "confdefs.h"
23339 #include <sys/types.h>
23349 rm -f conftest.$ac_objext
23350 if { (eval echo "$as_me:23350: \"$ac_compile\"") >&5
23351 (eval $ac_compile) 2>&5
23353 echo "$as_me:23353: \$? = $ac_status" >&5
23354 (exit $ac_status); } &&
23355 { ac_try='test -s conftest.$ac_objext'
23356 { (eval echo "$as_me:23356: \"$ac_try\"") >&5
23357 (eval $ac_try) 2>&5
23359 echo "$as_me:23359: \$? = $ac_status" >&5
23360 (exit $ac_status); }; }; then
23361 cf_cv_cc_bool_type=1
23363 echo "$as_me: failed program was:" >&5
23364 cat conftest.$ac_ext >&5
23365 cf_cv_cc_bool_type=0
23367 rm -f conftest.$ac_objext conftest.$ac_ext
23371 if test "$cf_cv_cc_bool_type" = 1
23372 then echo "$as_me:23372: result: yes" >&5
23373 echo "${ECHO_T}yes" >&6
23374 else echo "$as_me:23374: result: no" >&5
23375 echo "${ECHO_T}no" >&6
23378 # Check for C++ compiler characteristics (and ensure that it's there!)
23379 if test -n "$CXX" ; then
23381 ac_cpp='$CXXCPP $CPPFLAGS'
23382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23385 ac_main_return=return
23387 if test -n "$GXX" ; then
23390 LIBS="$LIBS $CXXLIBS"
23391 echo "$as_me:23391: checking if we already have C++ library" >&5
23392 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
23393 cat >conftest.$ac_ext <<_ACEOF
23394 #line 23394 "configure"
23395 #include "confdefs.h"
23397 #include <iostream>
23402 std::cout << "Hello World!" << std::endl;
23407 rm -f conftest.$ac_objext conftest$ac_exeext
23408 if { (eval echo "$as_me:23408: \"$ac_link\"") >&5
23409 (eval $ac_link) 2>&5
23411 echo "$as_me:23411: \$? = $ac_status" >&5
23412 (exit $ac_status); } &&
23413 { ac_try='test -s conftest$ac_exeext'
23414 { (eval echo "$as_me:23414: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23417 echo "$as_me:23417: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 cf_have_libstdcpp=yes
23421 echo "$as_me: failed program was:" >&5
23422 cat conftest.$ac_ext >&5
23423 cf_have_libstdcpp=no
23425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23426 echo "$as_me:23426: result: $cf_have_libstdcpp" >&5
23427 echo "${ECHO_T}$cf_have_libstdcpp" >&6
23430 if test $cf_have_libstdcpp != yes
23432 case $cf_cv_system_name in
23434 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
23435 cf_stdcpp_libname=stdcpp
23437 cf_stdcpp_libname=stdc++
23441 cf_stdcpp_libname=stdc++
23445 echo "$as_me:23445: checking for library $cf_stdcpp_libname" >&5
23446 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
23447 if test "${cf_cv_libstdcpp+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23452 LIBS="$LIBS $CXXLIBS"
23454 cf_add_libs="$LIBS"
23457 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23458 # filter duplicates
23459 for cf_add_1lib in $cf_add_0lib; do
23460 for cf_add_2lib in $cf_add_libs; do
23461 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23466 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23468 LIBS="$cf_add_libs"
23470 cat >conftest.$ac_ext <<_ACEOF
23471 #line 23471 "configure"
23472 #include "confdefs.h"
23474 #include <iostream>
23479 std::cout << "Hello World!" << std::endl;
23484 rm -f conftest.$ac_objext conftest$ac_exeext
23485 if { (eval echo "$as_me:23485: \"$ac_link\"") >&5
23486 (eval $ac_link) 2>&5
23488 echo "$as_me:23488: \$? = $ac_status" >&5
23489 (exit $ac_status); } &&
23490 { ac_try='test -s conftest$ac_exeext'
23491 { (eval echo "$as_me:23491: \"$ac_try\"") >&5
23492 (eval $ac_try) 2>&5
23494 echo "$as_me:23494: \$? = $ac_status" >&5
23495 (exit $ac_status); }; }; then
23496 cf_cv_libstdcpp=yes
23498 echo "$as_me: failed program was:" >&5
23499 cat conftest.$ac_ext >&5
23502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23506 echo "$as_me:23506: result: $cf_cv_libstdcpp" >&5
23507 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
23508 test "$cf_cv_libstdcpp" = yes && {
23509 cf_add_libs="$CXXLIBS"
23512 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23513 # filter duplicates
23514 for cf_add_1lib in $cf_add_0lib; do
23515 for cf_add_2lib in $cf_add_libs; do
23516 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23521 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23523 CXXLIBS="$cf_add_libs"
23528 echo "$as_me:23528: checking whether $CXX understands -c and -o together" >&5
23529 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
23530 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 cat > conftest.$ac_ext <<CF_EOF
23537 ${cf_cv_main_return:-return}(0);
23540 # We do the test twice because some compilers refuse to overwrite an
23541 # existing .o file with -o, though they will create one.
23542 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
23543 if { (eval echo "$as_me:23543: \"$ac_try\"") >&5
23544 (eval $ac_try) 2>&5
23546 echo "$as_me:23546: \$? = $ac_status" >&5
23547 (exit $ac_status); } &&
23548 test -f conftest2.$ac_objext && { (eval echo "$as_me:23548: \"$ac_try\"") >&5
23549 (eval $ac_try) 2>&5
23551 echo "$as_me:23551: \$? = $ac_status" >&5
23552 (exit $ac_status); };
23554 eval cf_cv_prog_CXX_c_o=yes
23556 eval cf_cv_prog_CXX_c_o=no
23561 if test $cf_cv_prog_CXX_c_o = yes; then
23562 echo "$as_me:23562: result: yes" >&5
23563 echo "${ECHO_T}yes" >&6
23565 echo "$as_me:23565: result: no" >&5
23566 echo "${ECHO_T}no" >&6
23569 case $GXX_VERSION in
23570 (1.*|2.[0-6]*|[1-9][0-9].*)
23575 cf_cxx_library=unknown
23576 case $cf_cv_system_name in
23584 if test "$GXX" = yes; then
23585 echo "$as_me:23585: checking for lib$cf_gpp_libname" >&5
23586 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
23589 cf_add_libs="$LIBS"
23592 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23593 # filter duplicates
23594 for cf_add_1lib in $cf_add_0lib; do
23595 for cf_add_2lib in $cf_add_libs; do
23596 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23601 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23603 LIBS="$cf_add_libs"
23605 cat >conftest.$ac_ext <<_ACEOF
23606 #line 23606 "configure"
23607 #include "confdefs.h"
23609 #include <$cf_gpp_libname/builtin.h>
23614 two_arg_error_handler_t foo2 = lib_error_handler
23619 rm -f conftest.$ac_objext conftest$ac_exeext
23620 if { (eval echo "$as_me:23620: \"$ac_link\"") >&5
23621 (eval $ac_link) 2>&5
23623 echo "$as_me:23623: \$? = $ac_status" >&5
23624 (exit $ac_status); } &&
23625 { ac_try='test -s conftest$ac_exeext'
23626 { (eval echo "$as_me:23626: \"$ac_try\"") >&5
23627 (eval $ac_try) 2>&5
23629 echo "$as_me:23629: \$? = $ac_status" >&5
23630 (exit $ac_status); }; }; then
23633 cf_add_libs="$CXXLIBS"
23636 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23637 # filter duplicates
23638 for cf_add_1lib in $cf_add_0lib; do
23639 for cf_add_2lib in $cf_add_libs; do
23640 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23645 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23647 CXXLIBS="$cf_add_libs"
23649 if test "$cf_gpp_libname" = cpp ; then
23651 cat >>confdefs.h <<\EOF
23652 #define HAVE_GPP_BUILTIN_H 1
23657 cat >>confdefs.h <<\EOF
23658 #define HAVE_GXX_BUILTIN_H 1
23663 echo "$as_me: failed program was:" >&5
23664 cat conftest.$ac_ext >&5
23665 cat >conftest.$ac_ext <<_ACEOF
23666 #line 23666 "configure"
23667 #include "confdefs.h"
23669 #include <builtin.h>
23674 two_arg_error_handler_t foo2 = lib_error_handler
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (eval echo "$as_me:23680: \"$ac_link\"") >&5
23681 (eval $ac_link) 2>&5
23683 echo "$as_me:23683: \$? = $ac_status" >&5
23684 (exit $ac_status); } &&
23685 { ac_try='test -s conftest$ac_exeext'
23686 { (eval echo "$as_me:23686: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23689 echo "$as_me:23689: \$? = $ac_status" >&5
23690 (exit $ac_status); }; }; then
23693 cf_add_libs="$CXXLIBS"
23696 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23697 # filter duplicates
23698 for cf_add_1lib in $cf_add_0lib; do
23699 for cf_add_2lib in $cf_add_libs; do
23700 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23705 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23707 CXXLIBS="$cf_add_libs"
23709 cat >>confdefs.h <<\EOF
23710 #define HAVE_BUILTIN_H 1
23714 echo "$as_me: failed program was:" >&5
23715 cat conftest.$ac_ext >&5
23718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23722 echo "$as_me:23722: result: $cf_cxx_library" >&5
23723 echo "${ECHO_T}$cf_cxx_library" >&6
23733 ac_cpp='$CXXCPP $CPPFLAGS'
23734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23737 ac_main_return=return
23738 echo "$as_me:23738: checking how to run the C++ preprocessor" >&5
23739 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
23740 if test -z "$CXXCPP"; then
23741 if test "${ac_cv_prog_CXXCPP+set}" = set; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 # Double quotes because CXXCPP needs to be expanded
23745 for CXXCPP in "$CXX -E" "/lib/cpp"
23747 ac_preproc_ok=false
23748 for ac_cxx_preproc_warn_flag in '' yes
23750 # Use a header file that comes with gcc, so configuring glibc
23751 # with a fresh cross-compiler works.
23752 # On the NeXT, cc -E runs the code through the compiler's parser,
23753 # not just through cpp. "Syntax error" is here to catch this case.
23754 cat >conftest.$ac_ext <<_ACEOF
23755 #line 23755 "configure"
23756 #include "confdefs.h"
23757 #include <assert.h>
23760 if { (eval echo "$as_me:23760: \"$ac_cpp conftest.$ac_ext\"") >&5
23761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23763 egrep -v '^ *\+' conftest.er1 >conftest.err
23765 cat conftest.err >&5
23766 echo "$as_me:23766: \$? = $ac_status" >&5
23767 (exit $ac_status); } >/dev/null; then
23768 if test -s conftest.err; then
23769 ac_cpp_err=$ac_cxx_preproc_warn_flag
23776 if test -z "$ac_cpp_err"; then
23779 echo "$as_me: failed program was:" >&5
23780 cat conftest.$ac_ext >&5
23781 # Broken: fails on valid input.
23784 rm -f conftest.err conftest.$ac_ext
23786 # OK, works on sane cases. Now check whether non-existent headers
23787 # can be detected and how.
23788 cat >conftest.$ac_ext <<_ACEOF
23789 #line 23789 "configure"
23790 #include "confdefs.h"
23791 #include <ac_nonexistent.h>
23793 if { (eval echo "$as_me:23793: \"$ac_cpp conftest.$ac_ext\"") >&5
23794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23796 egrep -v '^ *\+' conftest.er1 >conftest.err
23798 cat conftest.err >&5
23799 echo "$as_me:23799: \$? = $ac_status" >&5
23800 (exit $ac_status); } >/dev/null; then
23801 if test -s conftest.err; then
23802 ac_cpp_err=$ac_cxx_preproc_warn_flag
23809 if test -z "$ac_cpp_err"; then
23810 # Broken: success on invalid input.
23813 echo "$as_me: failed program was:" >&5
23814 cat conftest.$ac_ext >&5
23815 # Passes both tests.
23819 rm -f conftest.err conftest.$ac_ext
23822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23823 rm -f conftest.err conftest.$ac_ext
23824 if $ac_preproc_ok; then
23829 ac_cv_prog_CXXCPP=$CXXCPP
23832 CXXCPP=$ac_cv_prog_CXXCPP
23834 ac_cv_prog_CXXCPP=$CXXCPP
23836 echo "$as_me:23836: result: $CXXCPP" >&5
23837 echo "${ECHO_T}$CXXCPP" >&6
23838 ac_preproc_ok=false
23839 for ac_cxx_preproc_warn_flag in '' yes
23841 # Use a header file that comes with gcc, so configuring glibc
23842 # with a fresh cross-compiler works.
23843 # On the NeXT, cc -E runs the code through the compiler's parser,
23844 # not just through cpp. "Syntax error" is here to catch this case.
23845 cat >conftest.$ac_ext <<_ACEOF
23846 #line 23846 "configure"
23847 #include "confdefs.h"
23848 #include <assert.h>
23851 if { (eval echo "$as_me:23851: \"$ac_cpp conftest.$ac_ext\"") >&5
23852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23854 egrep -v '^ *\+' conftest.er1 >conftest.err
23856 cat conftest.err >&5
23857 echo "$as_me:23857: \$? = $ac_status" >&5
23858 (exit $ac_status); } >/dev/null; then
23859 if test -s conftest.err; then
23860 ac_cpp_err=$ac_cxx_preproc_warn_flag
23867 if test -z "$ac_cpp_err"; then
23870 echo "$as_me: failed program was:" >&5
23871 cat conftest.$ac_ext >&5
23872 # Broken: fails on valid input.
23875 rm -f conftest.err conftest.$ac_ext
23877 # OK, works on sane cases. Now check whether non-existent headers
23878 # can be detected and how.
23879 cat >conftest.$ac_ext <<_ACEOF
23880 #line 23880 "configure"
23881 #include "confdefs.h"
23882 #include <ac_nonexistent.h>
23884 if { (eval echo "$as_me:23884: \"$ac_cpp conftest.$ac_ext\"") >&5
23885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23887 egrep -v '^ *\+' conftest.er1 >conftest.err
23889 cat conftest.err >&5
23890 echo "$as_me:23890: \$? = $ac_status" >&5
23891 (exit $ac_status); } >/dev/null; then
23892 if test -s conftest.err; then
23893 ac_cpp_err=$ac_cxx_preproc_warn_flag
23900 if test -z "$ac_cpp_err"; then
23901 # Broken: success on invalid input.
23904 echo "$as_me: failed program was:" >&5
23905 cat conftest.$ac_ext >&5
23906 # Passes both tests.
23910 rm -f conftest.err conftest.$ac_ext
23913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23914 rm -f conftest.err conftest.$ac_ext
23915 if $ac_preproc_ok; then
23918 { { echo "$as_me:23918: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
23919 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
23920 { (exit 1); exit 1; }; }
23924 ac_cpp='$CXXCPP $CPPFLAGS'
23925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23928 ac_main_return=return
23930 for ac_header in typeinfo
23932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23933 echo "$as_me:23933: checking for $ac_header" >&5
23934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23938 cat >conftest.$ac_ext <<_ACEOF
23939 #line 23939 "configure"
23940 #include "confdefs.h"
23941 #include <$ac_header>
23943 if { (eval echo "$as_me:23943: \"$ac_cpp conftest.$ac_ext\"") >&5
23944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23946 egrep -v '^ *\+' conftest.er1 >conftest.err
23948 cat conftest.err >&5
23949 echo "$as_me:23949: \$? = $ac_status" >&5
23950 (exit $ac_status); } >/dev/null; then
23951 if test -s conftest.err; then
23952 ac_cpp_err=$ac_cxx_preproc_warn_flag
23959 if test -z "$ac_cpp_err"; then
23960 eval "$as_ac_Header=yes"
23962 echo "$as_me: failed program was:" >&5
23963 cat conftest.$ac_ext >&5
23964 eval "$as_ac_Header=no"
23966 rm -f conftest.err conftest.$ac_ext
23968 echo "$as_me:23968: result: `eval echo '${'$as_ac_Header'}'`" >&5
23969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23971 cat >>confdefs.h <<EOF
23972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23978 for ac_header in iostream
23980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23981 echo "$as_me:23981: checking for $ac_header" >&5
23982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23984 echo $ECHO_N "(cached) $ECHO_C" >&6
23986 cat >conftest.$ac_ext <<_ACEOF
23987 #line 23987 "configure"
23988 #include "confdefs.h"
23989 #include <$ac_header>
23991 if { (eval echo "$as_me:23991: \"$ac_cpp conftest.$ac_ext\"") >&5
23992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23994 egrep -v '^ *\+' conftest.er1 >conftest.err
23996 cat conftest.err >&5
23997 echo "$as_me:23997: \$? = $ac_status" >&5
23998 (exit $ac_status); } >/dev/null; then
23999 if test -s conftest.err; then
24000 ac_cpp_err=$ac_cxx_preproc_warn_flag
24007 if test -z "$ac_cpp_err"; then
24008 eval "$as_ac_Header=yes"
24010 echo "$as_me: failed program was:" >&5
24011 cat conftest.$ac_ext >&5
24012 eval "$as_ac_Header=no"
24014 rm -f conftest.err conftest.$ac_ext
24016 echo "$as_me:24016: result: `eval echo '${'$as_ac_Header'}'`" >&5
24017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24019 cat >>confdefs.h <<EOF
24020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24026 if test x"$ac_cv_header_iostream" = xyes ; then
24027 echo "$as_me:24027: checking if iostream uses std-namespace" >&5
24028 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
24029 cat >conftest.$ac_ext <<_ACEOF
24030 #line 24030 "configure"
24031 #include "confdefs.h"
24033 #include <iostream>
24040 cerr << "testing" << endl;
24046 rm -f conftest.$ac_objext
24047 if { (eval echo "$as_me:24047: \"$ac_compile\"") >&5
24048 (eval $ac_compile) 2>&5
24050 echo "$as_me:24050: \$? = $ac_status" >&5
24051 (exit $ac_status); } &&
24052 { ac_try='test -s conftest.$ac_objext'
24053 { (eval echo "$as_me:24053: \"$ac_try\"") >&5
24054 (eval $ac_try) 2>&5
24056 echo "$as_me:24056: \$? = $ac_status" >&5
24057 (exit $ac_status); }; }; then
24058 cf_iostream_namespace=yes
24060 echo "$as_me: failed program was:" >&5
24061 cat conftest.$ac_ext >&5
24062 cf_iostream_namespace=no
24064 rm -f conftest.$ac_objext conftest.$ac_ext
24065 echo "$as_me:24065: result: $cf_iostream_namespace" >&5
24066 echo "${ECHO_T}$cf_iostream_namespace" >&6
24067 if test "$cf_iostream_namespace" = yes ; then
24069 cat >>confdefs.h <<\EOF
24070 #define IOSTREAM_NAMESPACE 1
24076 echo "$as_me:24076: checking if we should include stdbool.h" >&5
24077 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24079 if test "${cf_cv_header_stdbool_h+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24083 cat >conftest.$ac_ext <<_ACEOF
24084 #line 24084 "configure"
24085 #include "confdefs.h"
24095 rm -f conftest.$ac_objext
24096 if { (eval echo "$as_me:24096: \"$ac_compile\"") >&5
24097 (eval $ac_compile) 2>&5
24099 echo "$as_me:24099: \$? = $ac_status" >&5
24100 (exit $ac_status); } &&
24101 { ac_try='test -s conftest.$ac_objext'
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_header_stdbool_h=0
24109 echo "$as_me: failed program was:" >&5
24110 cat conftest.$ac_ext >&5
24111 cat >conftest.$ac_ext <<_ACEOF
24112 #line 24112 "configure"
24113 #include "confdefs.h"
24116 #include <stdbool.h>
24127 rm -f conftest.$ac_objext
24128 if { (eval echo "$as_me:24128: \"$ac_compile\"") >&5
24129 (eval $ac_compile) 2>&5
24131 echo "$as_me:24131: \$? = $ac_status" >&5
24132 (exit $ac_status); } &&
24133 { ac_try='test -s conftest.$ac_objext'
24134 { (eval echo "$as_me:24134: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24137 echo "$as_me:24137: \$? = $ac_status" >&5
24138 (exit $ac_status); }; }; then
24139 cf_cv_header_stdbool_h=1
24141 echo "$as_me: failed program was:" >&5
24142 cat conftest.$ac_ext >&5
24143 cf_cv_header_stdbool_h=0
24145 rm -f conftest.$ac_objext conftest.$ac_ext
24147 rm -f conftest.$ac_objext conftest.$ac_ext
24150 if test "$cf_cv_header_stdbool_h" = 1
24151 then echo "$as_me:24151: result: yes" >&5
24152 echo "${ECHO_T}yes" >&6
24153 else echo "$as_me:24153: result: no" >&5
24154 echo "${ECHO_T}no" >&6
24157 echo "$as_me:24157: checking for builtin bool type" >&5
24158 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24160 if test "${cf_cv_builtin_bool+set}" = set; then
24161 echo $ECHO_N "(cached) $ECHO_C" >&6
24164 cat >conftest.$ac_ext <<_ACEOF
24165 #line 24165 "configure"
24166 #include "confdefs.h"
24169 #include <sys/types.h>
24179 rm -f conftest.$ac_objext
24180 if { (eval echo "$as_me:24180: \"$ac_compile\"") >&5
24181 (eval $ac_compile) 2>&5
24183 echo "$as_me:24183: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
24185 { ac_try='test -s conftest.$ac_objext'
24186 { (eval echo "$as_me:24186: \"$ac_try\"") >&5
24187 (eval $ac_try) 2>&5
24189 echo "$as_me:24189: \$? = $ac_status" >&5
24190 (exit $ac_status); }; }; then
24191 cf_cv_builtin_bool=1
24193 echo "$as_me: failed program was:" >&5
24194 cat conftest.$ac_ext >&5
24195 cf_cv_builtin_bool=0
24197 rm -f conftest.$ac_objext conftest.$ac_ext
24201 if test "$cf_cv_builtin_bool" = 1
24202 then echo "$as_me:24202: result: yes" >&5
24203 echo "${ECHO_T}yes" >&6
24204 else echo "$as_me:24204: result: no" >&5
24205 echo "${ECHO_T}no" >&6
24208 echo "$as_me:24208: checking for size of bool" >&5
24209 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24210 if test "${cf_cv_type_of_bool+set}" = set; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24215 if test "$cross_compiling" = yes; then
24216 cf_cv_type_of_bool=unknown
24218 cat >conftest.$ac_ext <<_ACEOF
24219 #line 24219 "configure"
24220 #include "confdefs.h"
24222 #include <stdlib.h>
24225 #if defined(__cplusplus)
24227 #ifdef HAVE_GXX_BUILTIN_H
24228 #include <g++/builtin.h>
24229 #elif HAVE_GPP_BUILTIN_H
24230 #include <gpp/builtin.h>
24231 #elif HAVE_BUILTIN_H
24232 #include <builtin.h>
24237 #if $cf_cv_header_stdbool_h
24238 #include <stdbool.h>
24245 FILE *fp = fopen("cf_test.out", "w");
24248 if ((bool)(-x) >= 0)
24249 fputs("unsigned ", fp);
24250 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24251 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24252 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24253 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24256 ${cf_cv_main_return:-return}(0);
24260 rm -f conftest$ac_exeext
24261 if { (eval echo "$as_me:24261: \"$ac_link\"") >&5
24262 (eval $ac_link) 2>&5
24264 echo "$as_me:24264: \$? = $ac_status" >&5
24265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24266 { (eval echo "$as_me:24266: \"$ac_try\"") >&5
24267 (eval $ac_try) 2>&5
24269 echo "$as_me:24269: \$? = $ac_status" >&5
24270 (exit $ac_status); }; }; then
24271 cf_cv_type_of_bool=`cat cf_test.out`
24272 if test -z "$cf_cv_type_of_bool"; then
24273 cf_cv_type_of_bool=unknown
24276 echo "$as_me: program exited with status $ac_status" >&5
24277 echo "$as_me: failed program was:" >&5
24278 cat conftest.$ac_ext >&5
24279 cf_cv_type_of_bool=unknown
24281 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24287 echo "$as_me:24287: result: $cf_cv_type_of_bool" >&5
24288 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24289 if test "$cf_cv_type_of_bool" = unknown ; then
24290 case .$NCURSES_BOOL in
24291 (.auto|.) NCURSES_BOOL=unsigned;;
24293 { echo "$as_me:24293: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24294 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24295 cf_cv_type_of_bool=$NCURSES_BOOL
24298 echo "$as_me:24298: checking for special defines needed for etip.h" >&5
24299 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
24300 cf_save_CXXFLAGS="$CXXFLAGS"
24303 # etip.h includes ncurses.h which includes ncurses_dll.h
24304 # But ncurses_dll.h is generated - fix here.
24305 test -d include || mkdir include
24306 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
24308 for cf_math in "" MATH_H
24310 for cf_excp in "" MATH_EXCEPTION
24312 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
24313 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
24314 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
24315 cat >conftest.$ac_ext <<_ACEOF
24316 #line 24316 "configure"
24317 #include "confdefs.h"
24319 #include <etip.h.in>
24329 rm -f conftest.$ac_objext
24330 if { (eval echo "$as_me:24330: \"$ac_compile\"") >&5
24331 (eval $ac_compile) 2>&5
24333 echo "$as_me:24333: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -s conftest.$ac_objext'
24336 { (eval echo "$as_me:24336: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24339 echo "$as_me:24339: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24342 test -n "$cf_math" && cat >>confdefs.h <<EOF
24343 #define ETIP_NEEDS_${cf_math} 1
24346 test -n "$cf_excp" && cat >>confdefs.h <<EOF
24347 #define ETIP_NEEDS_${cf_excp} 1
24350 cf_result="$cf_math $cf_excp"
24354 echo "$as_me: failed program was:" >&5
24355 cat conftest.$ac_ext >&5
24357 rm -f conftest.$ac_objext conftest.$ac_ext
24360 echo "$as_me:24360: result: $cf_result" >&5
24361 echo "${ECHO_T}$cf_result" >&6
24362 CXXFLAGS="$cf_save_CXXFLAGS"
24364 if test -n "$CXX"; then
24365 echo "$as_me:24365: checking if $CXX accepts parameter initialization" >&5
24366 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
24367 if test "${cf_cv_cpp_param_init+set}" = set; then
24368 echo $ECHO_N "(cached) $ECHO_C" >&6
24372 ac_cpp='$CXXCPP $CPPFLAGS'
24373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24376 ac_main_return=return
24378 if test "$cross_compiling" = yes; then
24379 cf_cv_cpp_param_init=unknown
24381 cat >conftest.$ac_ext <<_ACEOF
24382 #line 24382 "configure"
24383 #include "confdefs.h"
24393 TEST::TEST(int x = 1) // some compilers do not like second initializer
24400 rm -f conftest$ac_exeext
24401 if { (eval echo "$as_me:24401: \"$ac_link\"") >&5
24402 (eval $ac_link) 2>&5
24404 echo "$as_me:24404: \$? = $ac_status" >&5
24405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24406 { (eval echo "$as_me:24406: \"$ac_try\"") >&5
24407 (eval $ac_try) 2>&5
24409 echo "$as_me:24409: \$? = $ac_status" >&5
24410 (exit $ac_status); }; }; then
24411 cf_cv_cpp_param_init=yes
24413 echo "$as_me: program exited with status $ac_status" >&5
24414 echo "$as_me: failed program was:" >&5
24415 cat conftest.$ac_ext >&5
24416 cf_cv_cpp_param_init=no
24418 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24421 ac_cpp='$CXXCPP $CPPFLAGS'
24422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24425 ac_main_return=return
24428 echo "$as_me:24428: result: $cf_cv_cpp_param_init" >&5
24429 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
24431 test "$cf_cv_cpp_param_init" = yes &&
24432 cat >>confdefs.h <<\EOF
24433 #define CPP_HAS_PARAM_INIT 1
24436 if test -n "$CXX"; then
24438 echo "$as_me:24438: checking if $CXX accepts static_cast" >&5
24439 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
24440 if test "${cf_cv_cpp_static_cast+set}" = set; then
24441 echo $ECHO_N "(cached) $ECHO_C" >&6
24445 ac_cpp='$CXXCPP $CPPFLAGS'
24446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24449 ac_main_return=return
24451 cat >conftest.$ac_ext <<_ACEOF
24452 #line 24452 "configure"
24453 #include "confdefs.h"
24458 NCursesPanel(int nlines,
24468 template<class T> class NCursesUserPanel : public NCursesPanel
24471 NCursesUserPanel (int nlines,
24475 const T* p_UserData = static_cast<T*>(0))
24476 : NCursesPanel (nlines, ncols, begin_y, begin_x)
24479 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
24483 virtual ~NCursesUserPanel() {};
24490 const char* p_UserData = static_cast<char*>(0)
24495 rm -f conftest.$ac_objext
24496 if { (eval echo "$as_me:24496: \"$ac_compile\"") >&5
24497 (eval $ac_compile) 2>&5
24499 echo "$as_me:24499: \$? = $ac_status" >&5
24500 (exit $ac_status); } &&
24501 { ac_try='test -s conftest.$ac_objext'
24502 { (eval echo "$as_me:24502: \"$ac_try\"") >&5
24503 (eval $ac_try) 2>&5
24505 echo "$as_me:24505: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24507 cf_cv_cpp_static_cast=yes
24509 echo "$as_me: failed program was:" >&5
24510 cat conftest.$ac_ext >&5
24511 cf_cv_cpp_static_cast=no
24513 rm -f conftest.$ac_objext conftest.$ac_ext
24516 ac_cpp='$CXXCPP $CPPFLAGS'
24517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24520 ac_main_return=return
24523 echo "$as_me:24523: result: $cf_cv_cpp_static_cast" >&5
24524 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
24528 test "$cf_cv_cpp_static_cast" = yes &&
24529 cat >>confdefs.h <<\EOF
24530 #define CPP_HAS_STATIC_CAST 1
24534 CXX_ARFLAGS='$(ARFLAGS)'
24535 case $cf_cv_system_name in
24537 if test "$GXX" != yes ; then
24539 CXX_ARFLAGS='-ar -o'
24543 CXXLDFLAGS="-u main"
24546 if test "$GXX" != yes ; then
24548 CXX_ARFLAGS='-xar -o'
24555 cf_cv_builtin_bool=1
24557 # Just because we are not configuring against C++ right now does not
24558 # mean that a user will not want to use C++. Some distributors disable
24559 # the C++ portion of this configuration as a shortcut (or just to avoid
24560 # compiling the demo in the c++ directory). So we need a reasonable
24561 # default for the 'bool' type.
24563 # Caveat: since the storage of the bool type is not standardized, it
24566 if test "$NCURSES_BOOL" != auto ; then
24567 cf_cv_type_of_bool=$NCURSES_BOOL
24568 cf_cv_header_stdbool_h=0
24570 if test "$cf_cv_header_stdbool_h" = 1 ; then
24572 echo "$as_me:24572: checking for size of bool" >&5
24573 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24574 if test "${cf_cv_type_of_bool+set}" = set; then
24575 echo $ECHO_N "(cached) $ECHO_C" >&6
24579 if test "$cross_compiling" = yes; then
24580 cf_cv_type_of_bool=unknown
24582 cat >conftest.$ac_ext <<_ACEOF
24583 #line 24583 "configure"
24584 #include "confdefs.h"
24586 #include <stdlib.h>
24589 #if defined(__cplusplus)
24591 #ifdef HAVE_GXX_BUILTIN_H
24592 #include <g++/builtin.h>
24593 #elif HAVE_GPP_BUILTIN_H
24594 #include <gpp/builtin.h>
24595 #elif HAVE_BUILTIN_H
24596 #include <builtin.h>
24601 #if $cf_cv_header_stdbool_h
24602 #include <stdbool.h>
24609 FILE *fp = fopen("cf_test.out", "w");
24612 if ((bool)(-x) >= 0)
24613 fputs("unsigned ", fp);
24614 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24615 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24616 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24617 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24620 ${cf_cv_main_return:-return}(0);
24624 rm -f conftest$ac_exeext
24625 if { (eval echo "$as_me:24625: \"$ac_link\"") >&5
24626 (eval $ac_link) 2>&5
24628 echo "$as_me:24628: \$? = $ac_status" >&5
24629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24630 { (eval echo "$as_me:24630: \"$ac_try\"") >&5
24631 (eval $ac_try) 2>&5
24633 echo "$as_me:24633: \$? = $ac_status" >&5
24634 (exit $ac_status); }; }; then
24635 cf_cv_type_of_bool=`cat cf_test.out`
24636 if test -z "$cf_cv_type_of_bool"; then
24637 cf_cv_type_of_bool=unknown
24640 echo "$as_me: program exited with status $ac_status" >&5
24641 echo "$as_me: failed program was:" >&5
24642 cat conftest.$ac_ext >&5
24643 cf_cv_type_of_bool=unknown
24645 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24651 echo "$as_me:24651: result: $cf_cv_type_of_bool" >&5
24652 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24653 if test "$cf_cv_type_of_bool" = unknown ; then
24654 case .$NCURSES_BOOL in
24655 (.auto|.) NCURSES_BOOL=unsigned;;
24657 { echo "$as_me:24657: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24658 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24659 cf_cv_type_of_bool=$NCURSES_BOOL
24663 echo "$as_me:24663: checking for fallback type of bool" >&5
24664 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
24665 case "$host_cpu" in
24666 (i?86) cf_cv_type_of_bool=char ;;
24667 (*) cf_cv_type_of_bool=int ;;
24669 echo "$as_me:24669: result: $cf_cv_type_of_bool" >&5
24670 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24675 # If the C compiler did not declare bool, and we did not determine that the C++
24676 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
24677 # ncurses library use the same type as C++ bool. Note that this allows one to
24678 # specify the type of bool in a configure-script option and postpone
24679 # integration with the C++ compiler provided that the types are compatible.
24681 if test $cf_cv_cc_bool_type = 1
24683 # oops: C has a bool. Unlikely, but C++ could differ.
24685 elif test $cf_cv_builtin_bool = 0
24690 # this is the normal case
24691 USE_CXX_BOOL='defined(__cplusplus)'
24694 if test -f "${srcdir}/Ada95/Makefile.in" ; then
24696 if test "$cf_with_ada" != "no" ; then
24697 if test "$with_libtool" != "no"; then
24698 { echo "$as_me:24698: WARNING: libtool does not support Ada - disabling feature" >&5
24699 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
24704 if test "$cf_with_ada" != "no" ; then
24706 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
24709 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24711 unset ac_cv_path_cf_TEMP_gnat
24713 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
24714 set dummy $cf_prog_gnat; ac_word=$2
24715 echo "$as_me:24715: checking for $ac_word" >&5
24716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24717 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24720 case $cf_TEMP_gnat in
24722 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
24725 ac_save_IFS=$IFS; IFS=$ac_path_separator
24727 for ac_dir in $ac_dummy; do
24729 test -z "$ac_dir" && ac_dir=.
24730 if $as_executable_p "$ac_dir/$ac_word"; then
24731 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
24732 echo "$as_me:24732: found $ac_dir/$ac_word" >&5
24737 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
24741 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
24743 if test -n "$cf_TEMP_gnat"; then
24744 echo "$as_me:24744: result: $cf_TEMP_gnat" >&5
24745 echo "${ECHO_T}$cf_TEMP_gnat" >&6
24747 echo "$as_me:24747: result: no" >&5
24748 echo "${ECHO_T}no" >&6
24751 eval cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat
24753 if test "x$cf_TEMP_gnat" != xno; then
24754 unset cf_cv_gnat_version
24757 echo "$as_me:24757: checking for $cf_prog_gnat version" >&5
24758 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
24759 if test "${cf_cv_gnat_version+set}" = set; then
24760 echo $ECHO_N "(cached) $ECHO_C" >&6
24763 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
24764 grep '[0-9].[0-9][0-9]*' |\
24765 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24768 echo "$as_me:24768: result: $cf_cv_gnat_version" >&5
24769 echo "${ECHO_T}$cf_cv_gnat_version" >&6
24770 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
24771 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
24774 eval cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat
24777 unset cf_cv_gnat_version
24778 unset ac_cv_path_cf_TEMP_gnat
24781 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
24783 cf_cv_prog_gnat_correct=no
24785 cf_ada_make=gnatmake
24786 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
24787 # gprconfig is newer than gnatmake; we can continue...
24790 rm -rf conftest* *~conftest*
24791 if mkdir conftest.src
24795 for cf_gprconfig in Ada C
24797 echo "$as_me:24797: checking for gprconfig name for $cf_gprconfig" >&5
24798 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
24799 if test $cf_gprconfig = C
24801 for cf_gprconfig_param in \
24802 $cf_gprconfig,,,,GNATGCC \
24803 $cf_gprconfig,,,,GCC \
24806 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24807 test -n "$cf_gprconfig_value" && break
24810 cf_gprconfig_param=$cf_gprconfig
24811 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
24813 if test -n "$cf_gprconfig_value"
24815 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
24816 echo "$as_me:24816: result: $cf_gprconfig_value" >&5
24817 echo "${ECHO_T}$cf_gprconfig_value" >&6
24819 echo "$as_me:24819: result: missing" >&5
24820 echo "${ECHO_T}missing" >&6
24826 rm -rf conftest* *~conftest*
24829 if test "x$cf_ada_config" != "x#"
24832 echo "$as_me:24832: checking for gnat version" >&5
24833 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
24834 if test "${cf_cv_gnat_version+set}" = set; then
24835 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
24839 grep '[0-9].[0-9][0-9]*' |\
24840 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
24843 echo "$as_me:24843: result: $cf_cv_gnat_version" >&5
24844 echo "${ECHO_T}$cf_cv_gnat_version" >&6
24845 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
24847 case $cf_cv_gnat_version in
24848 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
24849 cf_cv_prog_gnat_correct=yes
24852 { echo "$as_me:24852: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
24853 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
24854 cf_cv_prog_gnat_correct=no
24858 # Extract the first word of "m4", so it can be a program name with args.
24859 set dummy m4; ac_word=$2
24860 echo "$as_me:24860: checking for $ac_word" >&5
24861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24862 if test "${ac_cv_prog_M4_exists+set}" = set; then
24863 echo $ECHO_N "(cached) $ECHO_C" >&6
24865 if test -n "$M4_exists"; then
24866 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
24868 ac_save_IFS=$IFS; IFS=$ac_path_separator
24870 for ac_dir in $ac_dummy; do
24872 test -z "$ac_dir" && ac_dir=.
24873 $as_executable_p "$ac_dir/$ac_word" || continue
24874 ac_cv_prog_M4_exists="yes"
24875 echo "$as_me:24875: found $ac_dir/$ac_word" >&5
24879 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
24882 M4_exists=$ac_cv_prog_M4_exists
24883 if test -n "$M4_exists"; then
24884 echo "$as_me:24884: result: $M4_exists" >&5
24885 echo "${ECHO_T}$M4_exists" >&6
24887 echo "$as_me:24887: result: no" >&5
24888 echo "${ECHO_T}no" >&6
24891 if test "$ac_cv_prog_M4_exists" = no; then
24892 cf_cv_prog_gnat_correct=no
24893 { echo "$as_me:24893: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
24894 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
24896 if test "$cf_cv_prog_gnat_correct" = yes; then
24897 echo "$as_me:24897: checking if GNAT works" >&5
24898 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
24900 rm -rf conftest* *~conftest*
24901 cat >>conftest.ads <<CF_EOF
24902 procedure conftest;
24904 cat >>conftest.adb <<CF_EOF
24907 procedure conftest is
24909 Text_IO.Put ("Hello World");
24911 GNAT.OS_Lib.OS_Exit (0);
24914 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
24915 if ( ./conftest 1>&5 2>&1 ) ; then
24916 cf_cv_prog_gnat_correct=yes
24918 cf_cv_prog_gnat_correct=no
24921 cf_cv_prog_gnat_correct=no
24923 rm -rf conftest* *~conftest*
24925 echo "$as_me:24925: result: $cf_cv_prog_gnat_correct" >&5
24926 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
24929 cf_cv_prog_gnat_correct=no
24933 if test "x$cf_cv_prog_gnat_correct" = xyes; then
24935 ADAFLAGS="$ADAFLAGS -gnatpn"
24937 echo "$as_me:24937: checking optimization options for ADAFLAGS" >&5
24938 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
24942 ADAFLAGS="$ADAFLAGS -g"
24948 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
24950 ADAFLAGS="$ADAFLAGS $cf_O_flag"
24954 echo "$as_me:24954: result: $ADAFLAGS" >&5
24955 echo "${ECHO_T}$ADAFLAGS" >&6
24957 echo "$as_me:24957: checking if GNATPREP supports -T option" >&5
24958 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
24959 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24963 cf_cv_gnatprep_opt_t=no
24964 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
24967 echo "$as_me:24967: result: $cf_cv_gnatprep_opt_t" >&5
24968 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
24969 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
24971 echo "$as_me:24971: checking if GNAT supports generics" >&5
24972 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
24973 case $cf_cv_gnat_version in
24974 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
24975 cf_gnat_generics=yes
24978 cf_gnat_generics=no
24981 echo "$as_me:24981: result: $cf_gnat_generics" >&5
24982 echo "${ECHO_T}$cf_gnat_generics" >&6
24984 if test "$cf_gnat_generics" = yes
24986 cf_compile_generics=generics
24987 cf_generic_objects="\${GENOBJS}"
24989 cf_compile_generics=
24990 cf_generic_objects=
24993 echo "$as_me:24993: checking if GNAT supports SIGINT" >&5
24994 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
24995 if test "${cf_cv_gnat_sigint+set}" = set; then
24996 echo $ECHO_N "(cached) $ECHO_C" >&6
24999 rm -rf conftest* *~conftest*
25000 cat >>conftest.ads <<CF_EOF
25001 with Ada.Interrupts.Names;
25003 package ConfTest is
25005 pragma Warnings (Off); -- the next pragma exists since 3.11p
25006 pragma Unreserve_All_Interrupts;
25007 pragma Warnings (On);
25009 protected Process is
25011 function Continue return Boolean;
25012 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
25014 Done : Boolean := False;
25019 cat >>conftest.adb <<CF_EOF
25020 package body ConfTest is
25021 protected body Process is
25026 function Continue return Boolean is
25033 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
25034 cf_cv_gnat_sigint=yes
25036 cf_cv_gnat_sigint=no
25038 rm -rf conftest* *~conftest*
25041 echo "$as_me:25041: result: $cf_cv_gnat_sigint" >&5
25042 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
25044 if test $cf_cv_gnat_sigint = yes ; then
25047 USE_GNAT_SIGINT="#"
25050 cf_gnat_libraries=no
25051 cf_gnat_projects=no
25053 if test "$enable_gnat_projects" != no ; then
25054 echo "$as_me:25054: checking if GNAT supports project files" >&5
25055 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
25056 case $cf_cv_gnat_version in
25060 case $cf_cv_system_name in
25064 rm -rf conftest* *~conftest*
25065 if mkdir conftest.src conftest.bin conftest.lib
25068 rm -rf conftest* *~conftest*
25069 cat >>library.gpr <<CF_EOF
25071 Kind := External ("LIB_KIND");
25072 for Library_Name use "ConfTest";
25073 for Object_Dir use ".";
25074 for Library_ALI_Dir use External("LIBRARY_DIR");
25075 for Library_Version use External ("SONAME");
25076 for Library_Kind use Kind;
25077 for Library_Dir use External("BUILD_DIR");
25078 Source_Dir := External ("SOURCE_DIR");
25079 for Source_Dirs use (Source_Dir);
25082 cat >>confpackage.ads <<CF_EOF
25083 package ConfPackage is
25084 procedure conftest;
25087 cat >>confpackage.adb <<CF_EOF
25089 package body ConfPackage is
25090 procedure conftest is
25092 Text_IO.Put ("Hello World");
25097 if ( $cf_ada_make $ADAFLAGS \
25099 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
25100 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
25101 -XSOURCE_DIR=`pwd` \
25102 -XSONAME=libConfTest.so.1 \
25103 -XLIB_KIND=static 1>&5 2>&1 ) ; then
25104 cf_gnat_projects=yes
25108 if test -f conftest.lib/confpackage.ali
25110 cf_gnat_libraries=yes
25112 rm -rf conftest* *~conftest*
25117 echo "$as_me:25117: result: $cf_gnat_projects" >&5
25118 echo "${ECHO_T}$cf_gnat_projects" >&6
25119 fi # enable_gnat_projects
25121 if test $cf_gnat_projects = yes
25123 echo "$as_me:25123: checking if GNAT supports libraries" >&5
25124 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
25125 echo "$as_me:25125: result: $cf_gnat_libraries" >&5
25126 echo "${ECHO_T}$cf_gnat_libraries" >&6
25129 if test "$cf_gnat_projects" = yes
25131 USE_OLD_MAKERULES="#"
25132 USE_GNAT_PROJECTS=""
25134 USE_OLD_MAKERULES=""
25135 USE_GNAT_PROJECTS="#"
25138 if test "$cf_gnat_libraries" = yes
25140 USE_GNAT_LIBRARIES=""
25142 USE_GNAT_LIBRARIES="#"
25145 echo "$as_me:25145: checking for ada-compiler" >&5
25146 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
25148 # Check whether --with-ada-compiler or --without-ada-compiler was given.
25149 if test "${with_ada_compiler+set}" = set; then
25150 withval="$with_ada_compiler"
25151 cf_ada_compiler=$withval
25153 cf_ada_compiler=gnatmake
25156 echo "$as_me:25156: result: $cf_ada_compiler" >&5
25157 echo "${ECHO_T}$cf_ada_compiler" >&6
25159 cf_ada_package=terminal_interface
25161 echo "$as_me:25161: checking for ada-include" >&5
25162 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
25164 # Check whether --with-ada-include or --without-ada-include was given.
25165 if test "${with_ada_include+set}" = set; then
25166 withval="$with_ada_include"
25169 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
25170 fi; if test -n "$prefix/share/ada/adainclude" ; then
25172 if test "x$prefix" != xNONE; then
25173 cf_path_syntax="$prefix"
25175 cf_path_syntax="$ac_default_prefix"
25178 case ".$withval" in
25179 (.\$\(*\)*|.\'*\'*)
25183 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
25185 (.\${*prefix}*|.\${*dir}*)
25186 eval withval="$withval"
25187 case ".$withval" in
25189 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25194 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25197 { { echo "$as_me:25197: error: expected a pathname, not \"$withval\"" >&5
25198 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
25199 { (exit 1); exit 1; }; }
25204 eval ADA_INCLUDE="$withval"
25206 echo "$as_me:25206: result: $ADA_INCLUDE" >&5
25207 echo "${ECHO_T}$ADA_INCLUDE" >&6
25209 echo "$as_me:25209: checking for ada-objects" >&5
25210 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
25212 # Check whether --with-ada-objects or --without-ada-objects was given.
25213 if test "${with_ada_objects+set}" = set; then
25214 withval="$with_ada_objects"
25217 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
25218 fi; if test -n "$prefix/lib/ada/adalib" ; then
25220 if test "x$prefix" != xNONE; then
25221 cf_path_syntax="$prefix"
25223 cf_path_syntax="$ac_default_prefix"
25226 case ".$withval" in
25227 (.\$\(*\)*|.\'*\'*)
25231 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
25233 (.\${*prefix}*|.\${*dir}*)
25234 eval withval="$withval"
25235 case ".$withval" in
25237 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25242 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25245 { { echo "$as_me:25245: error: expected a pathname, not \"$withval\"" >&5
25246 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
25247 { (exit 1); exit 1; }; }
25252 eval ADA_OBJECTS="$withval"
25254 echo "$as_me:25254: result: $ADA_OBJECTS" >&5
25255 echo "${ECHO_T}$ADA_OBJECTS" >&6
25257 echo "$as_me:25257: checking if an Ada95 shared-library should be built" >&5
25258 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
25260 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
25261 if test "${with_ada_sharedlib+set}" = set; then
25262 withval="$with_ada_sharedlib"
25263 with_ada_sharedlib=$withval
25265 with_ada_sharedlib=no
25267 echo "$as_me:25267: result: $with_ada_sharedlib" >&5
25268 echo "${ECHO_T}$with_ada_sharedlib" >&6
25270 if test "x$with_ada_sharedlib" != xno
25272 if test "x$cf_gnat_projects" != xyes
25274 { echo "$as_me:25274: WARNING: disabling shared-library since GNAT projects are not supported" >&5
25275 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
25276 with_ada_sharedlib=no
25280 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
25281 MAKE_ADA_SHAREDLIB="#"
25283 if test "x$with_ada_sharedlib" != xno
25285 MAKE_ADA_SHAREDLIB=
25286 if test "x$with_ada_sharedlib" != xyes
25288 ADA_SHAREDLIB="$with_ada_sharedlib"
25292 # allow the Ada binding to be renamed
25294 echo "$as_me:25294: checking for ada-libname" >&5
25295 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
25297 # Check whether --with-ada-libname or --without-ada-libname was given.
25298 if test "${with_ada_libname+set}" = set; then
25299 withval="$with_ada_libname"
25300 ADA_LIBNAME=$withval
25302 ADA_LIBNAME=AdaCurses
25304 case "x$ADA_LIBNAME" in
25306 ADA_LIBNAME=AdaCurses
25310 echo "$as_me:25310: result: $ADA_LIBNAME" >&5
25311 echo "${ECHO_T}$ADA_LIBNAME" >&6
25319 # do this "late" to avoid conflict with header-checks
25320 if test "x$with_widec" = xyes ; then
25321 echo "$as_me:25321: checking for wchar_t" >&5
25322 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
25323 if test "${ac_cv_type_wchar_t+set}" = set; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25326 cat >conftest.$ac_ext <<_ACEOF
25327 #line 25327 "configure"
25328 #include "confdefs.h"
25329 $ac_includes_default
25335 if (sizeof (wchar_t))
25341 rm -f conftest.$ac_objext
25342 if { (eval echo "$as_me:25342: \"$ac_compile\"") >&5
25343 (eval $ac_compile) 2>&5
25345 echo "$as_me:25345: \$? = $ac_status" >&5
25346 (exit $ac_status); } &&
25347 { ac_try='test -s conftest.$ac_objext'
25348 { (eval echo "$as_me:25348: \"$ac_try\"") >&5
25349 (eval $ac_try) 2>&5
25351 echo "$as_me:25351: \$? = $ac_status" >&5
25352 (exit $ac_status); }; }; then
25353 ac_cv_type_wchar_t=yes
25355 echo "$as_me: failed program was:" >&5
25356 cat conftest.$ac_ext >&5
25357 ac_cv_type_wchar_t=no
25359 rm -f conftest.$ac_objext conftest.$ac_ext
25361 echo "$as_me:25361: result: $ac_cv_type_wchar_t" >&5
25362 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
25364 echo "$as_me:25364: checking size of wchar_t" >&5
25365 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
25366 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25369 if test "$ac_cv_type_wchar_t" = yes; then
25370 if test "$cross_compiling" = yes; then
25371 # Depending upon the size, compute the lo and hi bounds.
25372 cat >conftest.$ac_ext <<_ACEOF
25373 #line 25373 "configure"
25374 #include "confdefs.h"
25375 $ac_includes_default
25379 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
25384 rm -f conftest.$ac_objext
25385 if { (eval echo "$as_me:25385: \"$ac_compile\"") >&5
25386 (eval $ac_compile) 2>&5
25388 echo "$as_me:25388: \$? = $ac_status" >&5
25389 (exit $ac_status); } &&
25390 { ac_try='test -s conftest.$ac_objext'
25391 { (eval echo "$as_me:25391: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25394 echo "$as_me:25394: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25398 cat >conftest.$ac_ext <<_ACEOF
25399 #line 25399 "configure"
25400 #include "confdefs.h"
25401 $ac_includes_default
25405 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
25410 rm -f conftest.$ac_objext
25411 if { (eval echo "$as_me:25411: \"$ac_compile\"") >&5
25412 (eval $ac_compile) 2>&5
25414 echo "$as_me:25414: \$? = $ac_status" >&5
25415 (exit $ac_status); } &&
25416 { ac_try='test -s conftest.$ac_objext'
25417 { (eval echo "$as_me:25417: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25420 echo "$as_me:25420: \$? = $ac_status" >&5
25421 (exit $ac_status); }; }; then
25422 ac_hi=$ac_mid; break
25424 echo "$as_me: failed program was:" >&5
25425 cat conftest.$ac_ext >&5
25426 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
25428 rm -f conftest.$ac_objext conftest.$ac_ext
25431 echo "$as_me: failed program was:" >&5
25432 cat conftest.$ac_ext >&5
25435 cat >conftest.$ac_ext <<_ACEOF
25436 #line 25436 "configure"
25437 #include "confdefs.h"
25438 $ac_includes_default
25442 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
25447 rm -f conftest.$ac_objext
25448 if { (eval echo "$as_me:25448: \"$ac_compile\"") >&5
25449 (eval $ac_compile) 2>&5
25451 echo "$as_me:25451: \$? = $ac_status" >&5
25452 (exit $ac_status); } &&
25453 { ac_try='test -s conftest.$ac_objext'
25454 { (eval echo "$as_me:25454: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25457 echo "$as_me:25457: \$? = $ac_status" >&5
25458 (exit $ac_status); }; }; then
25459 ac_lo=$ac_mid; break
25461 echo "$as_me: failed program was:" >&5
25462 cat conftest.$ac_ext >&5
25463 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
25465 rm -f conftest.$ac_objext conftest.$ac_ext
25468 rm -f conftest.$ac_objext conftest.$ac_ext
25469 # Binary search between lo and hi bounds.
25470 while test "x$ac_lo" != "x$ac_hi"; do
25471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25472 cat >conftest.$ac_ext <<_ACEOF
25473 #line 25473 "configure"
25474 #include "confdefs.h"
25475 $ac_includes_default
25479 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
25484 rm -f conftest.$ac_objext
25485 if { (eval echo "$as_me:25485: \"$ac_compile\"") >&5
25486 (eval $ac_compile) 2>&5
25488 echo "$as_me:25488: \$? = $ac_status" >&5
25489 (exit $ac_status); } &&
25490 { ac_try='test -s conftest.$ac_objext'
25491 { (eval echo "$as_me:25491: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 echo "$as_me:25494: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25498 echo "$as_me: failed program was:" >&5
25499 cat conftest.$ac_ext >&5
25500 ac_lo=`expr $ac_mid + 1`
25502 rm -f conftest.$ac_objext conftest.$ac_ext
25504 ac_cv_sizeof_wchar_t=$ac_lo
25506 if test "$cross_compiling" = yes; then
25507 { { echo "$as_me:25507: error: cannot run test program while cross compiling" >&5
25508 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
25509 { (exit 1); exit 1; }; }
25511 cat >conftest.$ac_ext <<_ACEOF
25512 #line 25512 "configure"
25513 #include "confdefs.h"
25514 $ac_includes_default
25518 FILE *f = fopen ("conftest.val", "w");
25520 $ac_main_return (1);
25521 fprintf (f, "%d", (sizeof (wchar_t)));
25527 rm -f conftest$ac_exeext
25528 if { (eval echo "$as_me:25528: \"$ac_link\"") >&5
25529 (eval $ac_link) 2>&5
25531 echo "$as_me:25531: \$? = $ac_status" >&5
25532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25533 { (eval echo "$as_me:25533: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25536 echo "$as_me:25536: \$? = $ac_status" >&5
25537 (exit $ac_status); }; }; then
25538 ac_cv_sizeof_wchar_t=`cat conftest.val`
25540 echo "$as_me: program exited with status $ac_status" >&5
25541 echo "$as_me: failed program was:" >&5
25542 cat conftest.$ac_ext >&5
25544 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25549 ac_cv_sizeof_wchar_t=0
25552 echo "$as_me:25552: result: $ac_cv_sizeof_wchar_t" >&5
25553 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
25554 cat >>confdefs.h <<EOF
25555 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25558 # cross-compiling to mingw can run into the problem that attempting to
25559 # link with the regex library fails, causing the test to not set this to
25560 # a number. "recent" autoconf does not address this problem either -TD
25561 if test -z "$ac_cv_sizeof_wchar_t"
25563 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
25565 echo "${as_me:-configure}:25565: testing test failed (assume 2) ..." 1>&5
25567 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
25568 mv confdefs.tmp confdefs.h
25569 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
25573 ### Construct the ncurses library-subsets, if any, from this set of keywords:
25574 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
25576 ### ticlib modules may be a separate library, otherwise contained in termlib.
25577 ### termlib modules may be a separate library, otherwise contained in ncurses.
25579 ### The of "+" or " " between the tokens controls the way the script
25580 ### chooses to split module lists into libraries.
25582 ### (see CF_LIB_RULES).
25583 echo "$as_me:25583: checking for library subsets" >&5
25584 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
25587 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
25588 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
25589 if test "$with_ticlib" != no ; then
25590 LIB_SUBSETS="${LIB_SUBSETS} "
25592 LIB_SUBSETS="${LIB_SUBSETS}+"
25596 LIB_SUBSETS="${LIB_SUBSETS}termlib"
25597 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
25599 if test "$with_termlib" != no ; then
25600 LIB_SUBSETS="${LIB_SUBSETS} "
25602 LIB_SUBSETS="${LIB_SUBSETS}+"
25605 LIB_SUBSETS="${LIB_SUBSETS}base"
25607 # Most term-driver calls are to tinfo, but some like init_pair are to the
25608 # base library (so it resides in base).
25609 if test "$with_term_driver" != no ; then
25610 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
25611 case $cf_cv_system_name in
25612 (*mingw32*|*mingw64*)
25613 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
25614 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
25617 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
25622 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
25623 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
25625 echo "$as_me:25625: result: $LIB_SUBSETS" >&5
25626 echo "${ECHO_T}$LIB_SUBSETS" >&6
25628 ### Construct the list of include-directories to be generated
25630 if test "$srcdir" != "."; then
25631 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
25633 CPPFLAGS="-I../include $CPPFLAGS"
25634 if test "$srcdir" != "."; then
25635 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
25637 CPPFLAGS="-I. $CPPFLAGS"
25639 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
25640 if test "$srcdir" != "."; then
25641 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
25643 if test "$GCC" != yes; then
25644 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25645 elif test "$includedir" != "/usr/include"; then
25646 if test "$includedir" = '${prefix}/include' ; then
25647 if test x$prefix != x/usr ; then
25648 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25651 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
25655 ### Build up pieces for makefile rules
25656 echo "$as_me:25656: checking default library suffix" >&5
25657 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
25659 case $DFT_LWR_MODEL in
25660 (libtool) DFT_ARG_SUFFIX='' ;;
25661 (normal) DFT_ARG_SUFFIX='' ;;
25662 (debug) DFT_ARG_SUFFIX='_g' ;;
25663 (profile) DFT_ARG_SUFFIX='_p' ;;
25664 (shared) DFT_ARG_SUFFIX='' ;;
25666 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
25667 echo "$as_me:25667: result: $DFT_ARG_SUFFIX" >&5
25668 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
25670 echo "$as_me:25670: checking default library-dependency suffix" >&5
25671 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
25673 case X$DFT_LWR_MODEL in
25675 DFT_LIB_SUFFIX='.la'
25676 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25679 case $cf_cv_system_name in
25681 DFT_LIB_SUFFIX='_g.lib'
25684 DFT_LIB_SUFFIX='_g.a'
25687 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25690 case $cf_cv_system_name in
25692 DFT_LIB_SUFFIX='_p.lib'
25695 DFT_LIB_SUFFIX='_p.a'
25698 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25701 case $cf_cv_system_name in
25703 DFT_LIB_SUFFIX='.so'
25704 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25707 DFT_LIB_SUFFIX='.dll'
25708 DFT_DEP_SUFFIX='.dll.lib'
25710 (cygwin*|msys*|mingw*)
25711 DFT_LIB_SUFFIX='.dll'
25712 DFT_DEP_SUFFIX='.dll.a'
25715 DFT_LIB_SUFFIX='.dylib'
25716 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25721 DFT_LIB_SUFFIX='.so'
25722 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25725 DFT_LIB_SUFFIX='.sl'
25726 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25731 DFT_LIB_SUFFIX='.so'
25732 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25739 DFT_LIB_SUFFIX='.lib'
25742 DFT_LIB_SUFFIX='.a'
25745 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
25748 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25750 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
25751 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
25753 echo "$as_me:25753: result: $DFT_DEP_SUFFIX" >&5
25754 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
25756 echo "$as_me:25756: checking default object directory" >&5
25757 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
25759 case $DFT_LWR_MODEL in
25760 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
25761 (normal) DFT_OBJ_SUBDIR='objects' ;;
25762 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
25763 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
25765 case $cf_cv_system_name in
25767 DFT_OBJ_SUBDIR='objects' ;;
25769 DFT_OBJ_SUBDIR='obj_s' ;;
25772 echo "$as_me:25772: result: $DFT_OBJ_SUBDIR" >&5
25773 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
25775 if test "x$cf_with_cxx" = xyes ; then
25776 echo "$as_me:25776: checking c++ library-dependency suffix" >&5
25777 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
25778 if test "$with_libtool" != "no"; then
25779 # libtool thinks it can make c++ shared libraries (perhaps only g++)
25780 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25781 elif test "$with_shared_cxx" != "no"; then
25782 # also for g++ users...
25783 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
25785 # we normally make a static library because C/C++ library rules differ
25789 CXX_LIB_SUFFIX='.la'
25790 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25793 case $cf_cv_system_name in
25795 CXX_LIB_SUFFIX='_g.lib'
25798 CXX_LIB_SUFFIX='_g.a'
25801 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25804 case $cf_cv_system_name in
25806 CXX_LIB_SUFFIX='_p.lib'
25809 CXX_LIB_SUFFIX='_p.a'
25812 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25815 case $cf_cv_system_name in
25817 CXX_LIB_SUFFIX='.so'
25818 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25821 CXX_LIB_SUFFIX='.dll'
25822 CXX_DEP_SUFFIX='.dll.lib'
25824 (cygwin*|msys*|mingw*)
25825 CXX_LIB_SUFFIX='.dll'
25826 CXX_DEP_SUFFIX='.dll.a'
25829 CXX_LIB_SUFFIX='.dylib'
25830 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25835 CXX_LIB_SUFFIX='.so'
25836 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25839 CXX_LIB_SUFFIX='.sl'
25840 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25845 CXX_LIB_SUFFIX='.so'
25846 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25853 CXX_LIB_SUFFIX='.lib'
25856 CXX_LIB_SUFFIX='.a'
25859 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
25862 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
25864 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
25865 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
25869 echo "$as_me:25869: result: $CXX_LIB_SUFFIX" >&5
25870 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
25874 # do not want -ldl in build except as needed for -lncurses dependency
25875 if test "x$with_dlsym" = xyes ; then
25876 if test $DFT_LWR_MODEL = shared || \
25877 test $DFT_LWR_MODEL = libtool ; then
25879 # remove dl library from $LIBS
25880 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25884 ### Set up low-level terminfo dependencies for makefiles.
25886 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
25887 # do not need libdl
25889 if test "x$with_dlsym" = xyes ; then
25891 # remove dl library from $SHLIB_LIST
25892 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25896 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
25897 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
25898 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
25899 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
25901 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
25904 if test "$with_ticlib" != no ; then
25906 if test "x$with_ticlib" != xyes ; then
25907 TICS_NAME=$with_ticlib
25908 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25909 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25910 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25911 TICS_LIB_SUFFIX="${with_ticlib}"
25913 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25914 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
25915 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
25916 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
25918 TICS_LDFLAGS="-L${LIB_DIR}"
25919 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
25921 TICS_SUFFIX=${DFT_LIB_SUFFIX}
25922 TICS_LDFLAGS="-L${LIB_DIR}"
25923 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
25926 if test "$with_termlib" != no ; then
25928 if test "x$with_termlib" != xyes ; then
25929 TINFO_NAME=$with_termlib
25930 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
25931 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25932 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
25933 TINFO_LIB_SUFFIX="${with_termlib}"
25935 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
25936 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
25937 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
25938 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
25941 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25942 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
25943 if test "$DFT_LWR_MODEL" = "libtool"; then
25944 TEST_ARGS="${TEST_DEPS}"
25945 TEST_ARG2="${TEST_DEP2}"
25946 TINFO_LDFLAGS="-L${LIB_DIR}"
25947 TINFO_LIBS="$TEST_ARGS"
25948 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
25949 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
25951 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
25952 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
25953 if test "x$with_term_driver" != xno ; then
25954 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
25955 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
25956 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
25958 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
25959 TINFO_LIBS="$TEST_ARGS"
25961 TINFO_LDFLAGS="-L${LIB_DIR}"
25962 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
25965 # the next lines are needed for linking libtic over libncurses
25966 TINFO_NAME=${LIB_NAME}
25967 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
25968 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
25969 if test "x$with_tic_depends" = xyes ; then
25970 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
25972 TICS_LIST="$SHLIB_LIST"
25975 TINFO_LDFLAGS="-L${LIB_DIR}"
25976 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
25979 if test "$DFT_LWR_MODEL" = shared ; then
25980 case $cf_cv_system_name in
25982 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
25988 if test "x$with_dlsym" = xyes ; then
25990 # remove dl library from $TICS_LIST
25991 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
25995 if test "$DFT_LWR_MODEL" = "libtool"; then
26000 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
26002 case $DFT_LWR_MODEL in
26003 (normal|debug|profile)
26005 if test "$GCC" = yes ; then
26006 case $cf_cv_system_name in
26007 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
26011 (*) # normally, except when broken
26012 LDFLAGS_STATIC=-static
26013 LDFLAGS_SHARED=-dynamic
26017 case $cf_cv_system_name in
26018 (aix[4-7]*) # from ld manpage
26019 LDFLAGS_STATIC=-bstatic
26020 LDFLAGS_SHARED=-bdynamic
26022 (hpux*) # from ld manpage for hpux10.20, hpux11.11
26023 # We could also use just "archive" and "shared".
26024 LDFLAGS_STATIC=-Wl,-a,archive_shared
26025 LDFLAGS_SHARED=-Wl,-a,shared_archive
26027 (irix*) # from ld manpage IRIX64
26028 LDFLAGS_STATIC=-Bstatic
26029 LDFLAGS_SHARED=-Bdynamic
26031 (osf[45]*) # from ld manpage osf4.0d, osf5.1
26032 # alternative "-oldstyle_liblookup" (not in cc manpage)
26033 LDFLAGS_STATIC=-noso
26034 LDFLAGS_SHARED=-so_archive
26037 LDFLAGS_STATIC=-Bstatic
26038 LDFLAGS_SHARED=-Bdynamic
26043 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
26045 echo "$as_me:26045: checking if linker supports switching between static/dynamic" >&5
26046 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
26048 rm -f libconftest.a
26049 cat >conftest.$ac_ext <<EOF
26050 #line 26050 "configure"
26052 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
26054 if { (eval echo "$as_me:26054: \"$ac_compile\"") >&5
26055 (eval $ac_compile) 2>&5
26057 echo "$as_me:26057: \$? = $ac_status" >&5
26058 (exit $ac_status); } ; then
26059 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
26060 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
26064 cf_save_LIBS="$LIBS"
26066 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
26067 cat >conftest.$ac_ext <<_ACEOF
26068 #line 26068 "configure"
26069 #include "confdefs.h"
26071 #line 26071 "configure"
26073 int cf_ldflags_static(FILE *fp);
26079 return cf_ldflags_static(stdin);
26085 rm -f conftest.$ac_objext conftest$ac_exeext
26086 if { (eval echo "$as_me:26086: \"$ac_link\"") >&5
26087 (eval $ac_link) 2>&5
26089 echo "$as_me:26089: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -s conftest$ac_exeext'
26092 { (eval echo "$as_me:26092: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26095 echo "$as_me:26095: \$? = $ac_status" >&5
26096 (exit $ac_status); }; }; then
26098 # some linkers simply ignore the -dynamic
26099 case x`file conftest$ac_exeext 2>/dev/null` in
26101 cf_ldflags_static=no
26104 cf_ldflags_static=yes
26109 echo "$as_me: failed program was:" >&5
26110 cat conftest.$ac_ext >&5
26111 cf_ldflags_static=no
26113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26115 rm -f libconftest.*
26116 LIBS="$cf_save_LIBS"
26118 echo "$as_me:26118: result: $cf_ldflags_static" >&5
26119 echo "${ECHO_T}$cf_ldflags_static" >&6
26121 if test $cf_ldflags_static != yes
26134 echo "$as_me:26134: checking where we will install curses.h" >&5
26135 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
26138 if test "$with_overwrite" = no && \
26139 ( test "x$includedir" = 'x${prefix}/include' || \
26140 test "x$includedir" = "x${prefix}/include" )
26142 includesubdir="/ncurses${USE_LIB_SUFFIX}"
26144 echo "$as_me:26144: result: ${includedir}${includesubdir}" >&5
26145 echo "${ECHO_T}${includedir}${includesubdir}" >&6
26147 ### Resolve a conflict between normal and wide-curses by forcing applications
26148 ### that will need libutf8 to add it to their configure script.
26149 if test "$with_overwrite" != no ; then
26150 if test "$NCURSES_LIBUTF8" = 1 ; then
26151 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
26152 { echo "$as_me:26152: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
26153 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
26156 WITH_OVERWRITE=$with_overwrite
26158 ### At least on MinGW a shared library build without libtool
26159 ### requires adding the additional libs to the link list.
26160 case $cf_cv_system_name in
26161 (*mingw32*|*mingw64*)
26162 if test "$DFT_LWR_MODEL" != "libtool"; then
26163 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
26169 # used to separate tack out of the tree
26172 ### predefined stuff for the test programs
26174 cat >>confdefs.h <<\EOF
26175 #define HAVE_SLK_COLOR 1
26178 # pkgsrc uses these
26180 echo "$as_me:26180: checking for desired basename for form library" >&5
26181 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
26183 # Check whether --with-form-libname or --without-form-libname was given.
26184 if test "${with_form_libname+set}" = set; then
26185 withval="$with_form_libname"
26186 with_lib_basename=$withval
26188 with_lib_basename=form
26190 FORM_NAME="$with_lib_basename"
26192 case "x$FORM_NAME" in
26200 echo "$as_me:26200: result: $FORM_NAME" >&5
26201 echo "${ECHO_T}$FORM_NAME" >&6
26203 echo "$as_me:26203: checking for desired basename for menu library" >&5
26204 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
26206 # Check whether --with-menu-libname or --without-menu-libname was given.
26207 if test "${with_menu_libname+set}" = set; then
26208 withval="$with_menu_libname"
26209 with_lib_basename=$withval
26211 with_lib_basename=menu
26213 MENU_NAME="$with_lib_basename"
26215 case "x$MENU_NAME" in
26223 echo "$as_me:26223: result: $MENU_NAME" >&5
26224 echo "${ECHO_T}$MENU_NAME" >&6
26226 echo "$as_me:26226: checking for desired basename for panel library" >&5
26227 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
26229 # Check whether --with-panel-libname or --without-panel-libname was given.
26230 if test "${with_panel_libname+set}" = set; then
26231 withval="$with_panel_libname"
26232 with_lib_basename=$withval
26234 with_lib_basename=panel
26236 PANEL_NAME="$with_lib_basename"
26238 case "x$PANEL_NAME" in
26246 echo "$as_me:26246: result: $PANEL_NAME" >&5
26247 echo "${ECHO_T}$PANEL_NAME" >&6
26249 echo "$as_me:26249: checking for desired basename for cxx library" >&5
26250 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
26252 # Check whether --with-cxx-libname or --without-cxx-libname was given.
26253 if test "${with_cxx_libname+set}" = set; then
26254 withval="$with_cxx_libname"
26255 with_lib_basename=$withval
26257 with_lib_basename=ncurses++
26259 CXX_NAME="$with_lib_basename"
26261 case "x$CXX_NAME" in
26269 echo "$as_me:26269: result: $CXX_NAME" >&5
26270 echo "${ECHO_T}$CXX_NAME" >&6
26272 ### Construct the list of subdirectories for which we'll customize makefiles
26273 ### with the appropriate compile-rules.
26275 echo "$as_me:26275: checking for src modules" >&5
26276 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
26278 # dependencies and linker-arguments for test-programs
26279 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
26280 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
26281 if test "$DFT_LWR_MODEL" = "libtool"; then
26282 TEST_ARGS="${TEST_DEPS}"
26283 TEST_ARG2="${TEST_DEP2}"
26285 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
26286 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
26289 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
26291 for cf_dir in $modules_to_build
26293 if test -f $srcdir/$cf_dir/modules; then
26295 # We may/may not have tack in the distribution, though the
26297 if test $cf_dir = tack ; then
26298 if test "x$cf_with_tack" != "xyes"; then
26303 if test -z "$cf_cv_src_modules"; then
26304 cf_cv_src_modules=$cf_dir
26306 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
26309 # Make the ncurses_cfg.h file record the library interface files as
26310 # well. These are header files that are the same name as their
26311 # directory. Ncurses is the only library that does not follow
26313 if test $cf_dir = tack ; then
26315 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
26317 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26319 cat >>confdefs.h <<EOF
26320 #define HAVE_${cf_have_include}_H 1
26323 cat >>confdefs.h <<EOF
26324 #define HAVE_LIB${cf_have_include} 1
26327 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26329 eval TEST_ROOT=\$${cf_map_lib_basename}_NAME
26331 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
26332 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
26333 if test "$DFT_LWR_MODEL" = "libtool"; then
26334 TEST_ARGS="${TEST_DEPS}"
26335 TEST_ARG2="${TEST_DEP2}"
26337 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
26338 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
26340 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
26344 echo "$as_me:26344: result: $cf_cv_src_modules" >&5
26345 echo "${ECHO_T}$cf_cv_src_modules" >&6
26347 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
26348 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
26351 if test "x$cf_with_manpages" != xno ; then
26352 SRC_SUBDIRS="$SRC_SUBDIRS man"
26354 SRC_SUBDIRS="$SRC_SUBDIRS include"
26355 for cf_dir in $cf_cv_src_modules
26357 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
26359 if test "x$cf_with_tests" != "xno" ; then
26360 SRC_SUBDIRS="$SRC_SUBDIRS test"
26362 # always make this, to install the ncurses-config script
26363 SRC_SUBDIRS="$SRC_SUBDIRS misc"
26364 if test "$cf_with_cxx_binding" != no; then
26365 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
26366 SRC_SUBDIRS="$SRC_SUBDIRS c++"
26369 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
26370 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
26373 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
26374 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
26375 ADA_SUBDIRS="gen src"
26376 if test "x$cf_with_tests" != "xno" ; then
26377 ADA_SUBDIRS="$ADA_SUBDIRS samples"
26382 for cf_dir in $SRC_SUBDIRS
26384 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
26387 if test -n "$ADA_SUBDIRS"; then
26388 for cf_dir in $ADA_SUBDIRS
26390 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
26395 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
26396 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
26397 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
26398 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
26402 for cf_item in $cf_list_models
26406 (libtool) cf_subdir='obj_lo' ;;
26407 (normal) cf_subdir='objects' ;;
26408 (debug) cf_subdir='obj_g' ;;
26409 (profile) cf_subdir='obj_p' ;;
26411 case $cf_cv_system_name in
26413 cf_subdir='objects' ;;
26415 cf_subdir='obj_s' ;;
26419 for cf_item2 in $DIRS_TO_MAKE
26421 test $cf_item2 = $cf_subdir && break
26423 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
26425 for cf_dir in $DIRS_TO_MAKE
26427 test ! -d $cf_dir && mkdir $cf_dir
26430 # symbols that differ when compiling Ada95 by itself.
26431 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
26433 # values to use as strings
26435 cat >>confdefs.h <<EOF
26436 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
26439 cat >>confdefs.h <<EOF
26440 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
26443 ### Now that we're done running tests, add the compiler-warnings, if any
26448 cf_new_extra_cppflags=
26450 for cf_add_cflags in $EXTRA_CFLAGS
26452 case $cf_fix_cppflags in
26454 case $cf_add_cflags in
26455 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
26456 case $cf_add_cflags in
26458 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
26460 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
26461 && test -z "${cf_tst_cflags}" \
26462 && cf_fix_cppflags=yes
26464 if test $cf_fix_cppflags = yes ; then
26466 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26467 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26470 elif test "${cf_tst_cflags}" = "\"'" ; then
26472 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26473 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26479 case "$CPPFLAGS" in
26483 case $cf_add_cflags in
26485 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
26487 CPPFLAGS=`echo "$CPPFLAGS" | \
26488 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
26489 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
26494 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
26495 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
26502 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
26503 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
26510 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
26511 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
26513 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
26515 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
26516 && test -z "${cf_tst_cflags}" \
26517 && cf_fix_cppflags=no
26522 if test -n "$cf_new_cflags" ; then
26524 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
26525 CFLAGS="${CFLAGS}$cf_new_cflags"
26529 if test -n "$cf_new_cppflags" ; then
26531 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
26532 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
26536 if test -n "$cf_new_extra_cppflags" ; then
26538 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
26539 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
26543 ### Define substitutions for header files to avoid name-pollution
26545 if test "x$cf_cv_have_tcgetattr" = xyes ; then
26551 if test "x$ac_cv_header_stdint_h" = xyes ; then
26557 if test "x$ac_cv_header_termio_h" = xyes ; then
26563 if test "x$ac_cv_header_termios_h" = xyes ; then
26569 ################################################################################
26570 test "x$use_database" = xyes && \
26571 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
26573 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
26574 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
26576 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
26577 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
26580 if test "x$cf_with_tests" != xno ; then
26586 ADAHTML_DIR=../../doc/html/ada
26588 # workaround for OS/2 (20151017)
26589 case $cf_cv_system_name in
26591 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
26598 # workaround for g++ versus Solaris (20131116)
26599 case $cf_cv_system_name in
26601 case "x$CPPFLAGS" in
26602 (*-D_XOPEN_SOURCE_EXTENDED*)
26603 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
26605 echo "${as_me:-configure}:26605: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
26607 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
26608 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
26614 # Help to automatically enable the extended curses features when using either
26615 # the *-config or the ".pc" files by adding defines.
26616 echo "$as_me:26616: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
26617 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
26619 for cf_loop1 in $CPPFLAGS_after_XOPEN
26622 for cf_loop2 in $CPPFLAGS_before_XOPEN
26624 if test "x$cf_loop1" = "x$cf_loop2"
26630 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
26632 echo "$as_me:26632: result: $PKG_CFLAGS" >&5
26633 echo "${ECHO_T}$PKG_CFLAGS" >&6
26635 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
26636 case "x$NCURSES_OSPEED" in
26645 cat >>confdefs.h <<EOF
26646 #define NCURSES_OSPEED_COMPAT $cf_compatible
26649 case "x$cf_cv_typeof_chtype" in
26650 (xshort|xint|xlong)
26651 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
26655 case "x$cf_cv_typeof_mmask_t" in
26656 (xshort|xint|xlong)
26657 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
26661 # substitute into misc/Makefile to suppress
26662 # (un)install.data from the
26663 # (un)install rules.
26664 if test "x$cf_with_db_install" = "xno"; then
26666 MISC_UNINSTALL_DATA=
26668 MISC_INSTALL_DATA=install.data
26669 MISC_UNINSTALL_DATA=uninstall.data
26672 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
26675 MAKE_DATABASE="$MAKE_TERMINFO"
26678 if test -n "$PACKAGE"
26680 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
26682 echo "package: $PACKAGE"
26688 if test -n "$RESULTING_SYMS"
26690 cf_filter_syms=$cf_dft_filter_syms
26691 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
26693 echo "${as_me:-configure}:26693: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
26697 if test "x$WILDCARD_SYMS" = xno
26702 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
26704 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
26705 if test $cf_filter_syms = yes
26707 RESULTING_SYMS=resulting.map
26710 if test "x$cross_compiling" = xyes ; then
26711 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
26714 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
26718 # This is used for the *-config script and *.pc data files.
26720 echo "$as_me:26720: checking for linker search path" >&5
26721 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
26722 if test "${cf_cv_ld_searchpath+set}" = set; then
26723 echo $ECHO_N "(cached) $ECHO_C" >&6
26726 if test "$cross_compiling" != yes ; then
26728 # GNU binutils' ld does not involve permissions which may stop ldconfig.
26729 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
26731 # The -NX options tell newer versions of Linux ldconfig to not attempt to
26732 # update the cache, which makes it run faster.
26733 test -z "$cf_pathlist" && \
26734 cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
26736 test -z "$cf_pathlist" &&
26737 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
26739 # This works with OpenBSD 6.5, which lists only filenames
26740 test -z "$cf_pathlist" &&
26741 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
26743 if test -z "$cf_pathlist"
26745 # dyld default path with MacOS
26746 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
26748 # do this to bypass check
26749 cf_cv_ld_searchpath='$HOME/lib'
26750 cf_pathlist="/usr/local/lib /lib /usr/lib"
26754 if test -z "$cf_pathlist"
26756 # Solaris is hardcoded
26757 if test -d /opt/SUNWspro/lib
26759 cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
26760 elif test -d /usr/ccs/lib
26762 cf_pathlist="/usr/ccs/lib /usr/lib"
26768 # If nothing else, assume it is conventional
26769 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
26771 # Finally, check that this is only directories
26772 for cf_path in $0 $cf_pathlist
26774 if test -d "$cf_path"; then
26775 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
26776 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
26780 # Ensure that it is nonempty
26781 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
26784 echo "$as_me:26784: result: $cf_cv_ld_searchpath" >&5
26785 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
26787 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
26789 cat >>confdefs.h <<\EOF
26790 #define HAVE_CURSES_DATA_BOOLNAMES 1
26793 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_MAKEFILES Makefile"
26794 ac_config_commands="$ac_config_commands default"
26795 cat >confcache <<\_ACEOF
26796 # This file is a shell script that caches the results of configure
26797 # tests run on this system so they can be shared between configure
26798 # scripts and configure runs, see configure's option --config-cache.
26799 # It is not useful on other systems. If it contains results you don't
26800 # want to keep, you may remove or edit it.
26802 # config.status only pays attention to the cache file if you give it
26803 # the --recheck option to rerun configure.
26805 # `ac_cv_env_foo' variables (set or unset) will be overriden when
26806 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26807 # following values.
26811 # The following way of writing the cache mishandles newlines in values,
26812 # but we know of no workaround that is simple, portable, and efficient.
26813 # So, don't put newlines in cache variables' values.
26814 # Ultrix sh set writes to stderr and can't be redirected directly,
26815 # and sets the high bit in the cache file unless we assign to the vars.
26818 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26820 # `set' does not quote correctly, so add quotes (double-quote
26821 # substitution turns \\\\ into \\, and sed turns \\ into \).
26824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26827 # `set' quotes correctly as required by POSIX, so do not add quotes.
26829 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26838 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26840 if cmp -s $cache_file confcache; then :; else
26841 if test -w $cache_file; then
26842 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26843 cat confcache >$cache_file
26845 echo "not updating unwritable cache $cache_file"
26850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26851 # Let make expand exec_prefix.
26852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26854 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26855 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26856 # trailing colons and then remove the whole line if VPATH becomes empty
26857 # (actually we leave an empty line to preserve line numbers).
26858 if test "x$srcdir" = x.; then
26859 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26860 s/:*\$(srcdir):*/:/;
26861 s/:*\${srcdir}:*/:/;
26863 s/^\([^=]*=[ ]*\):*/\1/;
26869 DEFS=-DHAVE_CONFIG_H
26871 : ${CONFIG_STATUS=./config.status}
26872 ac_clean_files_save=$ac_clean_files
26873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26874 { echo "$as_me:26874: creating $CONFIG_STATUS" >&5
26875 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26876 cat >$CONFIG_STATUS <<_ACEOF
26878 # Generated automatically by configure.
26879 # Run this file to recreate the current configuration.
26880 # Compiler output produced by configure, useful for debugging
26881 # configure, is in config.log if it exists.
26884 SHELL=\${CONFIG_SHELL-$SHELL}
26885 ac_cs_invocation="\$0 \$@"
26889 cat >>$CONFIG_STATUS <<\_ACEOF
26890 # Be Bourne compatible
26891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26894 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26898 # Name of the executable.
26899 as_me=`echo "$0" |sed 's,.*[\\/],,'`
26901 if expr a : '\(a\)' >/dev/null 2>&1; then
26907 rm -f conf$$ conf$$.exe conf$$.file
26909 if ln -s conf$$.file conf$$ 2>/dev/null; then
26910 # We could just check for DJGPP; but this test a) works b) is more generic
26911 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26912 if test -f conf$$.exe; then
26913 # Don't use ln at all; we don't have any links
26918 elif ln conf$$.file conf$$ 2>/dev/null; then
26923 rm -f conf$$ conf$$.exe conf$$.file
26925 as_executable_p="test -f"
26927 # Support unset when possible.
26928 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26935 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
26936 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
26937 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
26938 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
26939 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
26940 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
26941 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
26942 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
26945 # We need space, tab and new line, in precisely that order.
26951 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
26957 # Files that config.status was made for.
26958 if test -n "$ac_config_files"; then
26959 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26962 if test -n "$ac_config_headers"; then
26963 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26966 if test -n "$ac_config_links"; then
26967 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26970 if test -n "$ac_config_commands"; then
26971 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26974 cat >>$CONFIG_STATUS <<\EOF
26977 \`$as_me' instantiates files from templates according to the
26978 current configuration.
26980 Usage: $0 [OPTIONS] [FILE]...
26982 -h, --help print this help, then exit
26983 -V, --version print version number, then exit
26984 -d, --debug don't remove temporary files
26985 --recheck update $as_me by reconfiguring in the same conditions
26986 --file=FILE[:TEMPLATE]
26987 instantiate the configuration file FILE
26988 --header=FILE[:TEMPLATE]
26989 instantiate the configuration header FILE
26991 Configuration files:
26994 Configuration headers:
26997 Configuration commands:
27000 Report bugs to <dickey@invisible-island.net>."
27003 cat >>$CONFIG_STATUS <<EOF
27006 configured by $0, generated by GNU Autoconf 2.52.20200111,
27007 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27009 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
27010 Free Software Foundation, Inc.
27011 This config.status script is free software; the Free Software Foundation
27012 gives unlimited permission to copy, distribute and modify it."
27017 cat >>$CONFIG_STATUS <<\EOF
27018 # If no file are specified by the user, then we need to provide default
27019 # value. By we need to know if files were specified by the user.
27025 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27026 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27028 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
27032 *) # This is not an option, so the user has probably given explicit
27034 ac_need_defaults=false;;
27038 # Handling of the options.
27040 cat >>$CONFIG_STATUS <<EOF
27041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27042 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
27043 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
27045 cat >>$CONFIG_STATUS <<\EOF
27046 --version | --vers* | -V )
27047 echo "$ac_cs_version"; exit 0 ;;
27049 # Conflict between --help and --header
27050 { { echo "$as_me:27050: error: ambiguous option: $1
27051 Try \`$0 --help' for more information." >&5
27052 echo "$as_me: error: ambiguous option: $1
27053 Try \`$0 --help' for more information." >&2;}
27054 { (exit 1); exit 1; }; };;
27055 --help | --hel | -h )
27056 echo "$ac_cs_usage"; exit 0 ;;
27057 --debug | --d* | -d )
27059 --file | --fil | --fi | --f )
27061 CONFIG_FILES="$CONFIG_FILES $1"
27062 ac_need_defaults=false;;
27063 --header | --heade | --head | --hea )
27065 CONFIG_HEADERS="$CONFIG_HEADERS $1"
27066 ac_need_defaults=false;;
27068 # This is an error.
27069 -*) { { echo "$as_me:27069: error: unrecognized option: $1
27070 Try \`$0 --help' for more information." >&5
27071 echo "$as_me: error: unrecognized option: $1
27072 Try \`$0 --help' for more information." >&2;}
27073 { (exit 1); exit 1; }; } ;;
27075 *) ac_config_targets="$ac_config_targets $1" ;;
27084 ## ----------------------- ##
27085 ## Running config.status. ##
27086 ## ----------------------- ##
27088 This file was extended by $as_me 2.52.20200111, executed with
27089 CONFIG_FILES = $CONFIG_FILES
27090 CONFIG_HEADERS = $CONFIG_HEADERS
27091 CONFIG_LINKS = $CONFIG_LINKS
27092 CONFIG_COMMANDS = $CONFIG_COMMANDS
27093 > $ac_cs_invocation
27094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27099 cat >>$CONFIG_STATUS <<EOF
27101 # INIT-COMMANDS section.
27104 ### Special initialization commands, used to pass information from the
27105 ### configuration-run into config.status
27107 ALTERNATE_SYMS="$ALTERNATE_SYMS"
27109 CXX_NAME="$CXX_NAME"
27110 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
27111 DFT_LWR_MODEL="$DFT_LWR_MODEL"
27113 EXTRA_SUFFIX="$EXTRA_SUFFIX"
27114 FORM_NAME="$FORM_NAME"
27115 LDCONFIG="$LDCONFIG"
27116 LIBTOOL_VERSION="$LIBTOOL_VERSION"
27117 LIB_NAME="$LIB_NAME"
27118 LIB_PREFIX="$LIB_PREFIX"
27119 LIB_SUBSETS="$LIB_SUBSETS"
27120 LIB_SUFFIX="$LIB_SUFFIX"
27121 LIB_TRACING="$LIB_TRACING"
27123 MAKE_TERMINFO="$MAKE_TERMINFO"
27124 MENU_NAME="$MENU_NAME"
27125 NCURSES_MAJOR="$NCURSES_MAJOR"
27126 NCURSES_MINOR="$NCURSES_MINOR"
27127 NCURSES_OSPEED="$NCURSES_OSPEED"
27128 NCURSES_PATCH="$NCURSES_PATCH"
27129 PANEL_NAME="$PANEL_NAME"
27130 SRC_SUBDIRS="$SRC_SUBDIRS"
27131 TERMINFO="$TERMINFO"
27132 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
27133 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
27134 TICS_NAME="$TICS_NAME"
27135 TICS_SUFFIX="$TICS_SUFFIX"
27136 TIC_PATH="$TIC_PATH"
27137 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
27138 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
27139 TINFO_NAME="$TINFO_NAME"
27140 TINFO_SUFFIX="$TINFO_SUFFIX"
27141 UNALTERED_SYMS="$UNALTERED_SYMS"
27142 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
27143 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
27144 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
27145 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
27146 WILDCARD_SYMS="$WILDCARD_SYMS"
27147 WITH_CURSES_H="$with_curses_h"
27148 WITH_ECHO="${enable_echo:=yes}"
27149 WITH_OVERWRITE="$with_overwrite"
27150 cf_LIST_MODELS="$cf_list_models"
27151 cf_cv_abi_version="$cf_cv_abi_version"
27152 cf_cv_do_relink="$cf_cv_do_relink"
27153 cf_cv_do_reranlib="$cf_cv_do_reranlib"
27154 cf_cv_do_symlinks="$cf_cv_do_symlinks"
27155 cf_cv_enable_lp64="$cf_cv_enable_lp64"
27156 cf_cv_enable_opaque="$cf_cv_enable_opaque"
27157 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
27158 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
27159 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
27160 cf_cv_rel_version="$cf_cv_rel_version"
27161 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
27162 cf_cv_shared_soname='$cf_cv_shared_soname'
27163 cf_cv_shlib_version="$cf_cv_shlib_version"
27164 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
27165 cf_cv_system_name="$cf_cv_system_name"
27166 cf_cv_term_driver="$with_term_driver"
27167 cf_with_ada="$cf_with_ada"
27168 cf_with_cxx_binding="$cf_with_cxx_binding"
27169 cf_with_db_install="$cf_with_db_install"
27170 cf_with_manpages="$cf_with_manpages"
27171 cf_with_tests="$cf_with_tests"
27174 with_shared_cxx="$with_shared_cxx"
27178 cat >>$CONFIG_STATUS <<\EOF
27179 for ac_config_target in $ac_config_targets
27181 case "$ac_config_target" in
27182 # Handling of arguments.
27183 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
27184 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
27185 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
27186 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
27187 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
27188 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
27189 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27190 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27191 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
27192 *) { { echo "$as_me:27192: error: invalid argument: $ac_config_target" >&5
27193 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27194 { (exit 1); exit 1; }; };;
27198 # If the user did not use the arguments to specify the items to instantiate,
27199 # then the envvar interface is used. Set only those that are not.
27200 # We use the long form for the default assignment because of an extremely
27201 # bizarre bug on SunOS 4.1.3.
27202 if $ac_need_defaults; then
27203 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27204 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27205 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27208 # Create a temporary directory, and hook for its removal unless debugging.
27211 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27212 trap '{ (exit 1); exit 1; }' 1 2 13 15
27215 # Create a (secure) tmp directory for tmp files.
27218 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
27219 test -n "$tmp" && test -d "$tmp"
27222 tmp=$TMPDIR/cs$$-$RANDOM
27223 (umask 077 && mkdir $tmp)
27226 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
27227 { (exit 1); exit 1; }
27232 cat >>$CONFIG_STATUS <<EOF
27235 # CONFIG_FILES section.
27238 # No need to generate the scripts if there are no CONFIG_FILES.
27239 # This happens for instance when ./config.status config.h
27240 if test -n "\$CONFIG_FILES"; then
27241 # Protect against being on the right side of a sed subst in config.status.
27242 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27243 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27244 s,@SHELL@,$SHELL,;t t
27245 s,@exec_prefix@,$exec_prefix,;t t
27246 s,@prefix@,$prefix,;t t
27247 s,@program_transform_name@,$program_transform_name,;t t
27248 s,@bindir@,$bindir,;t t
27249 s,@sbindir@,$sbindir,;t t
27250 s,@libexecdir@,$libexecdir,;t t
27251 s,@datarootdir@,$datarootdir,;t t
27252 s,@datadir@,$datadir,;t t
27253 s,@sysconfdir@,$sysconfdir,;t t
27254 s,@sharedstatedir@,$sharedstatedir,;t t
27255 s,@localstatedir@,$localstatedir,;t t
27256 s,@runstatedir@,$runstatedir,;t t
27257 s,@libdir@,$libdir,;t t
27258 s,@includedir@,$includedir,;t t
27259 s,@oldincludedir@,$oldincludedir,;t t
27260 s,@infodir@,$infodir,;t t
27261 s,@mandir@,$mandir,;t t
27262 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27263 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27264 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27265 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27266 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27267 s,@build_alias@,$build_alias,;t t
27268 s,@host_alias@,$host_alias,;t t
27269 s,@target_alias@,$target_alias,;t t
27270 s,@ECHO_C@,$ECHO_C,;t t
27271 s,@ECHO_N@,$ECHO_N,;t t
27272 s,@ECHO_T@,$ECHO_T,;t t
27273 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27274 s,@DEFS@,$DEFS,;t t
27275 s,@LIBS@,$LIBS,;t t
27276 s,@top_builddir@,$top_builddir,;t t
27277 s,@EGREP@,$EGREP,;t t
27278 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
27279 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
27280 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
27281 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
27282 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
27283 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
27284 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
27285 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
27286 s,@VERSION@,$VERSION,;t t
27287 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
27288 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
27289 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
27290 s,@PACKAGE@,$PACKAGE,;t t
27291 s,@build@,$build,;t t
27292 s,@build_cpu@,$build_cpu,;t t
27293 s,@build_vendor@,$build_vendor,;t t
27294 s,@build_os@,$build_os,;t t
27295 s,@host@,$host,;t t
27296 s,@host_cpu@,$host_cpu,;t t
27297 s,@host_vendor@,$host_vendor,;t t
27298 s,@host_os@,$host_os,;t t
27299 s,@target@,$target,;t t
27300 s,@target_cpu@,$target_cpu,;t t
27301 s,@target_vendor@,$target_vendor,;t t
27302 s,@target_os@,$target_os,;t t
27304 s,@CFLAGS@,$CFLAGS,;t t
27305 s,@LDFLAGS@,$LDFLAGS,;t t
27306 s,@CPPFLAGS@,$CPPFLAGS,;t t
27307 s,@ac_ct_CC@,$ac_ct_CC,;t t
27308 s,@EXEEXT@,$EXEEXT,;t t
27309 s,@OBJEXT@,$OBJEXT,;t t
27310 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
27312 s,@LDCONFIG@,$LDCONFIG,;t t
27314 s,@CXXFLAGS@,$CXXFLAGS,;t t
27315 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27317 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27318 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27319 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27320 s,@LINT@,$LINT,;t t
27321 s,@LINT_OPTS@,$LINT_OPTS,;t t
27322 s,@LN_S@,$LN_S,;t t
27323 s,@cf_config_suffix@,$cf_config_suffix,;t t
27324 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27325 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
27326 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
27327 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
27328 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
27329 s,@SET_MAKE@,$SET_MAKE,;t t
27330 s,@CTAGS@,$CTAGS,;t t
27331 s,@ETAGS@,$ETAGS,;t t
27332 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
27333 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
27334 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
27335 s,@RANLIB@,$RANLIB,;t t
27336 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27338 s,@ac_ct_LD@,$ac_ct_LD,;t t
27340 s,@ac_ct_AR@,$ac_ct_AR,;t t
27342 s,@ac_ct_NM@,$ac_ct_NM,;t t
27343 s,@ARFLAGS@,$ARFLAGS,;t t
27344 s,@DESTDIR@,$DESTDIR,;t t
27345 s,@BUILD_CC@,$BUILD_CC,;t t
27346 s,@BUILD_CPP@,$BUILD_CPP,;t t
27347 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
27348 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
27349 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
27350 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
27351 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
27352 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
27353 s,@cf_list_models@,$cf_list_models,;t t
27354 s,@ABI_VERSION@,$ABI_VERSION,;t t
27355 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
27356 s,@LIBTOOL@,$LIBTOOL,;t t
27357 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
27358 s,@LT_UNDEF@,$LT_UNDEF,;t t
27359 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
27360 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
27361 s,@LIB_CREATE@,$LIB_CREATE,;t t
27362 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
27363 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
27364 s,@LIB_PREP@,$LIB_PREP,;t t
27365 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
27366 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
27367 s,@LIB_LINK@,$LIB_LINK,;t t
27368 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
27369 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
27370 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
27371 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
27372 s,@TICS_NAME@,$TICS_NAME,;t t
27373 s,@TINFO_NAME@,$TINFO_NAME,;t t
27374 s,@LIB_NAME@,$LIB_NAME,;t t
27375 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
27376 s,@CC_G_OPT@,$CC_G_OPT,;t t
27377 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
27378 s,@LD_MODEL@,$LD_MODEL,;t t
27379 s,@shlibdir@,$shlibdir,;t t
27380 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
27381 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
27382 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
27383 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
27384 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
27385 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
27386 s,@LINK_PROGS@,$LINK_PROGS,;t t
27387 s,@LINK_TESTS@,$LINK_TESTS,;t t
27388 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
27389 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27390 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
27391 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
27392 s,@RPATH_LIST@,$RPATH_LIST,;t t
27393 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
27394 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
27395 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
27396 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
27397 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
27398 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
27399 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
27400 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
27401 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
27402 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
27403 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
27405 s,@INFOCMP@,$INFOCMP,;t t
27406 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
27407 s,@XTERM_KBS@,$XTERM_KBS,;t t
27408 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
27409 s,@TERMINFO@,$TERMINFO,;t t
27410 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
27411 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
27412 s,@TERMPATH@,$TERMPATH,;t t
27413 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
27414 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
27415 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
27416 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
27417 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
27418 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
27419 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
27420 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
27421 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
27422 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
27423 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
27424 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
27425 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
27426 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
27427 s,@RGB_PATH@,$RGB_PATH,;t t
27428 s,@no_x11_rgb@,$no_x11_rgb,;t t
27429 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
27430 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
27431 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
27432 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
27433 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
27434 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
27435 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
27436 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
27437 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
27438 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
27439 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
27440 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
27441 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
27442 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
27443 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
27444 s,@PTHREAD@,$PTHREAD,;t t
27445 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
27446 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
27447 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
27448 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
27449 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
27450 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
27451 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
27452 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
27453 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
27454 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
27455 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
27456 s,@ECHO_LT@,$ECHO_LT,;t t
27457 s,@ECHO_LD@,$ECHO_LD,;t t
27458 s,@RULE_CC@,$RULE_CC,;t t
27459 s,@SHOW_CC@,$SHOW_CC,;t t
27460 s,@ECHO_CC@,$ECHO_CC,;t t
27461 s,@ECHO_LINK@,$ECHO_LINK,;t t
27462 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
27463 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
27464 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
27465 s,@ADAFLAGS@,$ADAFLAGS,;t t
27466 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
27467 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
27468 s,@ADA_TRACE@,$ADA_TRACE,;t t
27469 s,@MATH_LIB@,$MATH_LIB,;t t
27470 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
27471 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
27472 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
27473 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
27474 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
27475 s,@TEST_LIBS@,$TEST_LIBS,;t t
27476 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
27477 s,@CXXCPP@,$CXXCPP,;t t
27478 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
27479 s,@CXX_AR@,$CXX_AR,;t t
27480 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
27481 s,@CXXLIBS@,$CXXLIBS,;t t
27482 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
27483 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
27484 s,@M4_exists@,$M4_exists,;t t
27485 s,@cf_ada_make@,$cf_ada_make,;t t
27486 s,@cf_ada_config@,$cf_ada_config,;t t
27487 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
27488 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
27489 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
27490 s,@cf_compile_generics@,$cf_compile_generics,;t t
27491 s,@cf_generic_objects@,$cf_generic_objects,;t t
27492 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
27493 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
27494 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
27495 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
27496 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
27497 s,@cf_ada_package@,$cf_ada_package,;t t
27498 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
27499 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
27500 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
27501 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
27502 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
27503 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
27504 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
27505 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
27506 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
27507 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
27508 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
27509 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
27510 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
27511 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
27512 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
27513 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
27514 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
27515 s,@TICS_LIBS@,$TICS_LIBS,;t t
27516 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
27517 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
27518 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
27519 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
27520 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
27521 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
27522 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
27523 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
27524 s,@includesubdir@,$includesubdir,;t t
27525 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
27526 s,@TICS_LIST@,$TICS_LIST,;t t
27527 s,@TINFO_LIST@,$TINFO_LIST,;t t
27528 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
27529 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
27530 s,@FORM_NAME@,$FORM_NAME,;t t
27531 s,@MENU_NAME@,$MENU_NAME,;t t
27532 s,@PANEL_NAME@,$PANEL_NAME,;t t
27533 s,@CXX_NAME@,$CXX_NAME,;t t
27534 s,@TEST_ARGS@,$TEST_ARGS,;t t
27535 s,@TEST_DEPS@,$TEST_DEPS,;t t
27536 s,@TEST_ARG2@,$TEST_ARG2,;t t
27537 s,@TEST_DEP2@,$TEST_DEP2,;t t
27538 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
27539 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
27540 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
27541 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
27542 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
27543 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
27544 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
27545 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
27546 s,@cross_compiling@,$cross_compiling,;t t
27547 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
27548 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
27549 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
27550 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
27551 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
27552 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
27553 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
27554 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
27555 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
27556 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
27557 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
27558 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
27563 cat >>$CONFIG_STATUS <<\EOF
27564 # Split the substitutions into bite-sized pieces for seds with
27565 # small command number limits, like on Digital OSF/1 and HP-UX.
27566 ac_max_sed_lines=48
27567 ac_sed_frag=1 # Number of current file.
27568 ac_beg=1 # First line for current file.
27569 ac_end=$ac_max_sed_lines # Line after last line for current file.
27572 while $ac_more_lines; do
27573 if test $ac_beg -gt 1; then
27574 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27576 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27578 if test ! -s $tmp/subs.frag; then
27579 ac_more_lines=false
27581 # The purpose of the label and of the branching condition is to
27582 # speed up the sed processing (if there are no `@' at all, there
27583 # is no need to browse any of the substitutions).
27584 # These are the two extra sed commands mentioned above.
27586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27587 # It is possible to make a multiline substitution using escaped newlines.
27588 # Ensure that we do not split the substitution between script fragments.
27590 ac_END=`expr $ac_end + $ac_max_sed_lines`
27591 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
27592 if test -s $tmp/subs.next; then
27593 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
27594 if test ! -s $tmp/subs.edit; then
27595 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
27596 if test ! -s $tmp/subs.edit; then
27597 if test $ac_beg -gt 1; then
27598 ac_end=`expr $ac_end - 1`
27605 if test -z "$ac_sed_cmds"; then
27606 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27608 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27610 ac_sed_frag=`expr $ac_sed_frag + 1`
27612 ac_end=`expr $ac_end + $ac_max_sed_lines`
27615 if test -z "$ac_sed_cmds"; then
27618 fi # test -n "$CONFIG_FILES"
27621 cat >>$CONFIG_STATUS <<\EOF
27622 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27625 - | *:- | *:-:* ) # input from stdin
27627 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27628 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27629 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27630 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27631 * ) ac_file_in=$ac_file.in ;;
27634 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27635 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27636 X"$ac_file" : 'X\(//\)[^/]' \| \
27637 X"$ac_file" : 'X\(//\)$' \| \
27638 X"$ac_file" : 'X\(/\)' \| \
27639 . : '\(.\)' 2>/dev/null ||
27641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27643 /^X\(\/\/\)$/{ s//\1/; q; }
27644 /^X\(\/\).*/{ s//\1/; q; }
27646 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27647 { case "$ac_dir" in
27648 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27652 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27653 case $as_mkdir_dir in
27654 # Skip DOS drivespec
27655 ?:) as_incr_dir=$as_mkdir_dir ;;
27657 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27658 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
27663 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
27664 # A "../" for each directory in $ac_dir_suffix.
27665 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
27667 ac_dir_suffix= ac_dots=
27672 if test -z "$ac_dots"; then
27675 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
27677 [\\/]* | ?:[\\/]* )
27678 ac_srcdir=$srcdir$ac_dir_suffix;
27679 ac_top_srcdir=$srcdir ;;
27680 *) # Relative path.
27681 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
27682 ac_top_srcdir=$ac_dots$srcdir ;;
27686 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27687 *) ac_INSTALL=$ac_dots$INSTALL ;;
27690 if test x"$ac_file" != x-; then
27691 { echo "$as_me:27691: creating $ac_file" >&5
27692 echo "$as_me: creating $ac_file" >&6;}
27695 # Let's still pretend it is `configure' which instantiates (i.e., don't
27696 # use $as_me), people would be surprised to read:
27697 # /* config.h. Generated automatically by config.status. */
27698 configure_input="Generated automatically from `echo $ac_file_in |
27699 sed 's,.*/,,'` by configure."
27701 # First look for the input files in the build tree, otherwise in the
27703 ac_file_inputs=`IFS=:
27704 for f in $ac_file_in; do
27706 -) echo $tmp/stdin ;;
27708 # Absolute (can't be DOS-style, as IFS=:)
27709 test -f "$f" || { { echo "$as_me:27709: error: cannot find input file: $f" >&5
27710 echo "$as_me: error: cannot find input file: $f" >&2;}
27711 { (exit 1); exit 1; }; }
27714 if test -f "$f"; then
27717 elif test -f "$srcdir/$f"; then
27722 { { echo "$as_me:27722: error: cannot find input file: $f" >&5
27723 echo "$as_me: error: cannot find input file: $f" >&2;}
27724 { (exit 1); exit 1; }; }
27727 done` || { (exit 1); exit 1; }
27729 cat >>$CONFIG_STATUS <<\EOF
27730 ac_warn_datarootdir=no
27731 if test x"$ac_file" != x-; then
27732 for ac_item in $ac_file_inputs
27734 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
27735 if test -n "$ac_seen"; then
27736 ac_used=`grep '@datarootdir@' $ac_item`
27737 if test -z "$ac_used"; then
27738 { echo "$as_me:27738: WARNING: datarootdir was used implicitly but not set:
27740 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
27742 ac_warn_datarootdir=yes
27745 ac_seen=`grep '${datarootdir}' $ac_item`
27746 if test -n "$ac_seen"; then
27747 { echo "$as_me:27747: WARNING: datarootdir was used explicitly but not set:
27749 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
27751 ac_warn_datarootdir=yes
27756 if test "x$ac_warn_datarootdir" = xyes; then
27757 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
27761 cat >>$CONFIG_STATUS <<EOF
27765 cat >>$CONFIG_STATUS <<\EOF
27767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27768 s,@configure_input@,$configure_input,;t t
27769 s,@srcdir@,$ac_srcdir,;t t
27770 s,@top_srcdir@,$ac_top_srcdir,;t t
27771 s,@INSTALL@,$ac_INSTALL,;t t
27772 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27774 if test x"$ac_file" != x-; then
27775 cp $tmp/out $ac_file
27777 for ac_name in prefix exec_prefix datarootdir
27779 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
27780 if test -n "$ac_seen"; then
27781 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
27782 if test -z "$ac_init"; then
27783 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
27784 { echo "$as_me:27784: WARNING: Variable $ac_name is used but was not set:
27786 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
27791 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
27792 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
27793 if test -s $tmp/out; then
27794 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
27795 { echo "$as_me:27795: WARNING: Some variables may not be substituted:
27797 echo "$as_me: WARNING: Some variables may not be substituted:
27807 cat >>$CONFIG_STATUS <<\EOF
27810 # CONFIG_HEADER section.
27813 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27814 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27816 # ac_d sets the value in "#define NAME VALUE" lines.
27817 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27818 ac_dB='[ ].*$,\1#\2'
27821 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
27822 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27823 ac_iB='\([ ]\),\1#\2define\3'
27826 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27827 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27828 ac_uB='$,\1#\2define\3'
27832 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27835 - | *:- | *:-:* ) # input from stdin
27837 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27839 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27841 * ) ac_file_in=$ac_file.in ;;
27844 test x"$ac_file" != x- && { echo "$as_me:27844: creating $ac_file" >&5
27845 echo "$as_me: creating $ac_file" >&6;}
27847 # First look for the input files in the build tree, otherwise in the
27849 ac_file_inputs=`IFS=:
27850 for f in $ac_file_in; do
27852 -) echo $tmp/stdin ;;
27854 # Absolute (can't be DOS-style, as IFS=:)
27855 test -f "$f" || { { echo "$as_me:27855: error: cannot find input file: $f" >&5
27856 echo "$as_me: error: cannot find input file: $f" >&2;}
27857 { (exit 1); exit 1; }; }
27860 if test -f "$f"; then
27863 elif test -f "$srcdir/$f"; then
27868 { { echo "$as_me:27868: error: cannot find input file: $f" >&5
27869 echo "$as_me: error: cannot find input file: $f" >&2;}
27870 { (exit 1); exit 1; }; }
27873 done` || { (exit 1); exit 1; }
27874 # Remove the trailing spaces.
27875 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27879 # Transform confdefs.h into a list of #define's. We won't use it as a sed
27880 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
27881 # be either 'cat' or 'sort'.
27882 cat confdefs.h | uniq >conftest.vals
27884 # Break up conftest.vals because some shells have a limit on
27885 # the size of here documents, and old seds have small limits too.
27887 rm -f conftest.tail
27888 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
27889 while grep . conftest.vals >/dev/null
27891 # Write chunks of a limited-size here document to conftest.frag.
27892 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
27893 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
27894 echo 'CEOF' >> $CONFIG_STATUS
27895 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
27896 rm -f conftest.vals
27897 mv conftest.tail conftest.vals
27899 rm -f conftest.vals
27901 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
27903 echo ' cat >> conftest.edit <<CEOF
27904 /@DEFS@/r conftest.frag
27907 sed -f conftest.edit $tmp/in > $tmp/out
27909 mv $tmp/out $tmp/in
27910 rm -f conftest.edit conftest.frag
27911 ' >> $CONFIG_STATUS
27913 cat >>$CONFIG_STATUS <<\EOF
27914 # Let's still pretend it is `configure' which instantiates (i.e., don't
27915 # use $as_me), people would be surprised to read:
27916 # /* config.h. Generated automatically by config.status. */
27917 if test x"$ac_file" = x-; then
27918 echo "/* Generated automatically by configure. */" >$tmp/config.h
27920 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
27922 cat $tmp/in >>$tmp/config.h
27924 if test x"$ac_file" != x-; then
27925 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
27926 { echo "$as_me:27926: $ac_file is unchanged" >&5
27927 echo "$as_me: $ac_file is unchanged" >&6;}
27929 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27930 X"$ac_file" : 'X\(//\)[^/]' \| \
27931 X"$ac_file" : 'X\(//\)$' \| \
27932 X"$ac_file" : 'X\(/\)' \| \
27933 . : '\(.\)' 2>/dev/null ||
27935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27937 /^X\(\/\/\)$/{ s//\1/; q; }
27938 /^X\(\/\).*/{ s//\1/; q; }
27940 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27941 { case "$ac_dir" in
27942 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27946 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27947 case $as_mkdir_dir in
27948 # Skip DOS drivespec
27949 ?:) as_incr_dir=$as_mkdir_dir ;;
27951 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27952 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
27959 mv $tmp/config.h $ac_file
27963 rm -f $tmp/config.h
27967 cat >>$CONFIG_STATUS <<\EOF
27969 # CONFIG_COMMANDS section.
27971 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27972 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27973 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27977 if test "x$cf_with_tests" != xno ; then
27981 if test ! -d $srcdir/$cf_dir; then
27983 elif test -f $srcdir/$cf_dir/programs; then
27984 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
27990 cf_prefix=$LIB_PREFIX
27992 case $cf_cv_shlib_version in
27993 (cygdll|msysdll|mingw|msvcdll)
27994 TINFO_NAME=$TINFO_ARG_SUFFIX
27999 if test -n "$TINFO_SUFFIX" ; then
28000 case $TINFO_SUFFIX in
28002 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
28003 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
28006 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
28007 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
28010 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
28011 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
28016 for cf_dir in $SRC_SUBDIRS
28018 if test ! -d $srcdir/$cf_dir ; then
28020 elif test -f $srcdir/$cf_dir/modules; then
28025 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
28027 cf_awk_program="$cf_awk_program\
28028 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
28029 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
28033 if test "x$WILDCARD_SYMS" = xno
28035 cf_awk_program="$cf_awk_program\
28036 /[ ]_\\*;/ { skip=1; next; }\
28040 if test "x$cf_awk_program" != "x"
28042 cat >>$cf_dir/Makefile <<CF_EOF
28044 # Generated by CF_LIB_RULES
28045 resulting.map: $UNALTERED_SYMS
28046 $AWK 'BEGIN { skip = 1; last=""; } \
28048 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
28049 skip = 0; last = \$\$0; } \
28050 END { print last; }' < $UNALTERED_SYMS >\$@
28053 rm -f resulting.map
28057 for cf_item in $cf_LIST_MODELS
28063 cf_depsuf=$cf_suffix
28066 case $cf_cv_system_name in
28074 cf_depsuf=$cf_suffix
28077 case $cf_cv_system_name in
28085 cf_depsuf=$cf_suffix
28088 case $cf_cv_system_name in
28091 cf_depsuf=$cf_suffix
28095 cf_depsuf='.dll.lib'
28097 (cygwin*|msys*|mingw*)
28103 cf_depsuf=$cf_suffix
28109 cf_depsuf=$cf_suffix
28113 cf_depsuf=$cf_suffix
28119 cf_depsuf=$cf_suffix
28132 cf_depsuf=$cf_suffix
28135 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28137 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
28138 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
28141 if test "$cf_dir" = "c++"
28144 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28146 eval cf_libname=\$${cf_map_lib_basename}_NAME
28150 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28152 eval cf_libname=\$${cf_map_lib_basename}_NAME
28155 test -z "$cf_libname" && cf_libname="$cf_dir"
28156 if test $cf_item = shared ; then
28157 if test -n "${LIB_SUFFIX}"
28159 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
28161 cf_shared_suffix="$cf_suffix"
28163 if test "$cf_cv_do_symlinks" = yes ; then
28166 case "$cf_cv_shlib_version" in
28168 cf_version_name=REL_VERSION
28171 cf_version_name=ABI_VERSION
28175 if test -n "$cf_version_name"
28177 case "$cf_cv_system_name" in
28180 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
28183 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
28187 if test -n "${USE_LIB_SUFFIX}"
28189 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
28191 cf_shared_suffix="$cf_suffix"
28194 # cygwin needs import library, and has unique naming convention
28195 # use autodetected ${cf_prefix} for import lib and static lib, but
28196 # use 'cyg' prefix for shared lib.
28197 case $cf_cv_shlib_version in
28199 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28200 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
28203 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28204 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
28207 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28208 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
28211 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28212 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
28218 if test -n "$cf_add_lib"
28220 Libs_To_Make="$Libs_To_Make $cf_add_lib"
28224 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
28225 Libs_To_Make="$Libs_To_Make $cf_add_lib"
28228 if test $cf_dir = ncurses ; then
28229 cf_subsets="$LIB_SUBSETS"
28230 cf_r_parts="$cf_subsets"
28231 cf_liblist="$Libs_To_Make"
28233 while test -n "$cf_r_parts"
28235 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
28236 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
28237 if test "$cf_l_parts" != "$cf_r_parts" ; then
28239 case $cf_l_parts in
28241 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
28244 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
28250 if test -n "$cf_add_lib"; then
28251 Libs_To_Make="$cf_add_lib $Libs_To_Make"
28258 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
28261 if test $cf_dir = c++; then
28262 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
28264 for cf_item in $Libs_To_Make
28270 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
28273 for cf_test in $cf_list
28275 if test "$cf_test" = "$cf_item"
28277 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
28282 test -n "$cf_item" && cf_list="$cf_list $cf_item"
28284 Libs_To_Make="$cf_list"
28288 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
28289 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
28290 $cf_dir/Makefile >$cf_dir/Makefile.out
28291 mv $cf_dir/Makefile.out $cf_dir/Makefile
28293 $AWK -f $srcdir/mk-0th.awk \
28294 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
28295 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28297 for cf_subset in $cf_subsets
28300 for cf_item in $cf_LIST_MODELS
28303 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
28305 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28308 if test "$CXX_MODEL" = SHARED; then
28309 case $cf_cv_shlib_version in
28310 (cygdll|msysdll|mingw|msvcdll)
28311 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
28313 echo "${as_me:-configure}:28313: testing overriding CXX_MODEL to SHARED ..." 1>&5
28315 with_shared_cxx=yes
28318 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
28326 cf_depsuf=$cf_suffix
28329 case $cf_cv_system_name in
28337 cf_depsuf=$cf_suffix
28340 case $cf_cv_system_name in
28348 cf_depsuf=$cf_suffix
28351 case $cf_cv_system_name in
28354 cf_depsuf=$cf_suffix
28358 cf_depsuf='.dll.lib'
28360 (cygwin*|msys*|mingw*)
28366 cf_depsuf=$cf_suffix
28372 cf_depsuf=$cf_suffix
28376 cf_depsuf=$cf_suffix
28382 cf_depsuf=$cf_suffix
28395 cf_depsuf=$cf_suffix
28398 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28400 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
28401 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
28405 (libtool) cf_subdir='obj_lo' ;;
28406 (normal) cf_subdir='objects' ;;
28407 (debug) cf_subdir='obj_g' ;;
28408 (profile) cf_subdir='obj_p' ;;
28410 case $cf_cv_system_name in
28412 cf_subdir='objects' ;;
28414 cf_subdir='obj_s' ;;
28418 # Test for case where we build libtinfo with a different name.
28420 if test $cf_dir = ncurses ; then
28423 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28426 cf_libname=$TINFO_LIB_SUFFIX
28429 cf_libname=$TICS_LIB_SUFFIX
28432 elif test $cf_dir = c++ ; then
28434 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28436 eval cf_libname=\$${cf_map_lib_basename}_NAME
28438 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28441 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28443 eval cf_libname=\$${cf_map_lib_basename}_NAME
28445 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28447 if test -n "${USE_ARG_SUFFIX}" ; then
28448 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
28449 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
28452 # These dependencies really are for development, not
28453 # builds, but they are useful in porting, too.
28454 cf_depend="../include/ncurses_cfg.h"
28455 if test "$srcdir" = "."; then
28458 cf_reldir="\${srcdir}"
28461 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
28462 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
28463 elif test -f $srcdir/$cf_dir/curses.priv.h; then
28464 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
28468 old_cf_suffix="$cf_suffix"
28469 if test "$cf_cv_shlib_version_infix" = yes ; then
28470 if test -n "$USE_LIB_SUFFIX" ; then
28471 case $USE_LIB_SUFFIX in
28473 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
28474 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
28475 cf_dir_suffix=tw$EXTRA_SUFFIX
28478 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
28479 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
28480 cf_dir_suffix=t$EXTRA_SUFFIX
28483 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
28484 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
28485 cf_dir_suffix=w$EXTRA_SUFFIX
28488 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
28489 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
28490 cf_dir_suffix=$EXTRA_SUFFIX
28496 $AWK -f $srcdir/mk-1st.awk \
28497 name=${cf_libname}${cf_dir_suffix} \
28498 traces=$LIB_TRACING \
28500 CXX_MODEL=$CXX_MODEL \
28502 prefix=$cf_prefix \
28503 suffix=$cf_suffix \
28504 subset=$cf_subset \
28505 driver=$cf_cv_term_driver \
28507 TermlibRoot=$TINFO_NAME \
28508 TermlibSuffix=$TINFO_SUFFIX \
28509 ShlibVer=$cf_cv_shlib_version \
28510 ShlibVerInfix=$cf_cv_shlib_version_infix \
28511 ReLink=${cf_cv_do_relink:-no} \
28512 ReRanlib=${cf_cv_do_reranlib:-yes} \
28513 DoLinks=$cf_cv_do_symlinks \
28514 rmSoLocs=$cf_cv_rm_so_locs \
28515 ldconfig="$LDCONFIG" \
28516 overwrite=$WITH_OVERWRITE \
28517 depend="$cf_depend" \
28519 libtool_version="$LIBTOOL_VERSION" \
28520 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28522 cf_suffix="$old_cf_suffix"
28524 for cf_subdir2 in $cf_subdirs lib
28526 test $cf_subdir = $cf_subdir2 && break
28528 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
28529 $AWK -f $srcdir/mk-2nd.awk \
28531 traces=$LIB_TRACING \
28534 subset=$cf_subset \
28537 crenames=$cf_cv_prog_CC_c_o \
28538 cxxrenames=$cf_cv_prog_CXX_c_o \
28539 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28540 cf_subdirs="$cf_subdirs $cf_subdir"
28545 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
28548 for cf_dir in $SRC_SUBDIRS
28550 if test ! -d $srcdir/$cf_dir ; then
28554 if test -f $cf_dir/Makefile ; then
28557 echo 'libs \' >> Makefile
28558 echo 'install.libs \' >> Makefile
28559 echo 'uninstall.libs ::' >> Makefile
28560 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
28565 if test -f $srcdir/$cf_dir/modules; then
28567 if test -f $srcdir/$cf_dir/headers; then
28568 cat >> Makefile <<CF_EOF
28569 install.includes \\
28570 uninstall.includes \\
28573 if test "$cf_dir" != "c++" ; then
28574 echo 'lint \' >> Makefile
28576 cat >> Makefile <<CF_EOF
28582 uninstall.$cf_dir ::
28583 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
28585 elif test -f $srcdir/$cf_dir/headers; then
28586 cat >> Makefile <<CF_EOF
28591 install.includes \\
28592 uninstall.includes ::
28593 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
28598 if test "x$cf_with_db_install" = xyes; then
28599 cat >> Makefile <<CF_EOF
28601 install.libs uninstall.libs \\
28602 install.data uninstall.data ::
28603 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
28606 cat >> Makefile <<CF_EOF
28608 install.libs uninstall.libs ::
28609 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
28613 if test "x$cf_with_manpages" = xyes; then
28614 cat >> Makefile <<CF_EOF
28618 cd man && \${MAKE} \${TOP_MFLAGS} \$@
28622 cat >> Makefile <<CF_EOF
28625 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
28626 rm -f headers.sh headers.sed mk_shared_lib.sh
28627 rm -f edit_man.* man_alias.*
28628 rm -rf \${DIRS_TO_MAKE}
28631 # Special case: tack's manpage lives in its own directory.
28632 if test "x$cf_with_manpages" = xyes; then
28633 if test "x$cf_with_tack" = "xyes"; then
28634 cat >> Makefile <<CF_EOF
28638 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
28643 rm -f headers.sed headers.sh
28645 echo creating headers.sh
28646 cat >headers.sh <<CF_EOF
28648 # This shell script is generated by the 'configure' script. It is invoked in a
28649 # subdirectory of the build tree. It generates a sed-script in the parent
28650 # directory that is used to adjust includes for header files that reside in a
28651 # subdirectory of /usr/include, etc.
28653 while test \$# != 3
28655 PRG="\$PRG \$1"; shift
28660 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
28661 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
28662 echo installing \$SRC in \$DST
28665 if test $WITH_CURSES_H = yes; then
28666 cat >>headers.sh <<CF_EOF
28669 END=\`basename \$DST\`
28670 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
28672 NAME=\`basename \$i\`
28673 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
28677 echo "" >> \$TMPSED
28683 cat >>headers.sh <<CF_EOF
28686 END=\`basename \$DST\`
28687 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
28689 NAME=\`basename \$i\`
28690 if test "\$NAME" = "curses.h"
28692 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
28695 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
28699 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
28704 cat >>headers.sh <<CF_EOF
28706 sed -f \$TMPSED \$SRC > \$TMPSRC
28707 NAME=\`basename \$SRC\`
28709 if test $WITH_CURSES_H != yes; then
28710 cat >>headers.sh <<CF_EOF
28711 test "\$NAME" = "curses.h" && NAME=ncurses.h
28714 cat >>headers.sh <<CF_EOF
28715 # Just in case someone gzip'd manpages, remove the conflicting copy.
28716 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
28718 eval \$PRG \$TMPSRC \$DST/\$NAME
28719 rm -f \$TMPSRC \$TMPSED
28722 chmod 0755 headers.sh
28724 for cf_dir in $SRC_SUBDIRS
28726 if test ! -d $srcdir/$cf_dir ; then
28730 if test -f $srcdir/$cf_dir/headers; then
28731 $AWK -f $srcdir/mk-hdr.awk \
28732 subset="$LIB_SUBSETS" \
28733 compat="$WITH_CURSES_H" \
28734 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
28737 if test -f $srcdir/$cf_dir/modules; then
28738 if test "$cf_dir" != "c++" ; then
28739 cat >>$cf_dir/Makefile <<"CF_EOF"
28740 depend : ${AUTO_SRC}
28741 makedepend -- ${CPPFLAGS} -- ${C_SRC}
28743 # DO NOT DELETE THIS LINE -- make depend depends on it.
28749 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28750 if test -z "$USE_OLD_MAKERULES" ; then
28751 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
28759 cat >>$CONFIG_STATUS <<\EOF
28761 { (exit 0); exit 0; }
28763 chmod +x $CONFIG_STATUS
28764 ac_clean_files=$ac_clean_files_save
28766 # configure is writing to config.log, and then calls config.status.
28767 # config.status does its own redirection, appending to config.log.
28768 # Unfortunately, on DOS this fails, as config.log is still kept open
28769 # by configure, so config.status won't be able to write to it; its
28770 # output is simply discarded. So we exec the FD to /dev/null,
28771 # effectively closing config.log, so it can be properly (re)opened and
28772 # appended to by config.status. When coming back to configure, we
28773 # need to make the FD available again.
28774 if test "$no_create" != yes; then
28777 $SHELL $CONFIG_STATUS || ac_cs_success=false
28779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28780 # would make configure fail if this is the last instruction.
28781 $ac_cs_success || { (exit 1); exit 1; }
28783 ${MAKE:-make} preinstall