2 # From configure.in Revision: 1.725 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20200802.
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 --enable-exp-win32 compile with experimental-Windows driver
846 Testing/development Options:
847 --disable-echo do not display "compiling" commands
848 --disable-stripping do not strip (debug info) installed executables
849 --enable-warnings test: turn on gcc compiler warnings
850 --enable-string-hacks work around bogus compiler/loader warnings
851 --enable-assertions test: turn on generation of assertion code
852 --with-dmalloc test: use Gray Watson's dmalloc library
853 --with-dbmalloc test: use Conor Cahill's dbmalloc library
854 --with-valgrind test: use valgrind
855 --disable-leaks test: free permanent memory, analyze leaks
856 --enable-expanded test: generate functions for certain macros
857 --disable-macros test: use functions rather than macros
858 --with-trace test: add trace() function to all models of ncurses
859 --disable-gnat-projects test: disable GNAT projects even if usable
861 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
862 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
863 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
864 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
865 --with-ada-libname=XXX override default Ada library-name
866 --with-form-libname=XXX override form basename of library
867 --with-menu-libname=XXX override menu basename of library
868 --with-panel-libname=XXX override panel basename of library
869 --with-cxx-libname=XXX override ncurses++ basename of library
871 Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
879 CXX C++ compiler command
880 CXXFLAGS C++ compiler flags
881 CXXCPP C++ preprocessor
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
892 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
894 # A "../" for each directory in /$ac_subdir.
895 ac_dots=`echo $ac_subdir |
896 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
899 .) # No --srcdir option. We are building in place.
900 ac_sub_srcdir=$srcdir ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_sub_srcdir=$srcdir/$ac_subdir ;;
904 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
907 # Check for guested configure; otherwise get Cygnus style configure.
908 if test -f $ac_sub_srcdir/configure.gnu; then
910 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
911 elif test -f $ac_sub_srcdir/configure; then
913 $SHELL $ac_sub_srcdir/configure --help=recursive
914 elif test -f $ac_sub_srcdir/configure.ac ||
915 test -f $ac_sub_srcdir/configure.in; then
919 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
925 test -n "$ac_init_help" && exit 0
926 if $ac_init_version; then
929 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
930 Free Software Foundation, Inc.
931 This configure script is free software; the Free Software Foundation
932 gives unlimited permission to copy, distribute and modify it.
938 This file contains any messages produced by compilers while
939 running configure, to aid debugging if configure makes a mistake.
941 It was created by $as_me, which was
942 generated by GNU Autoconf 2.52.20200802. Invocation command line was
953 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
954 uname -m = `(uname -m) 2>/dev/null || echo unknown`
955 uname -r = `(uname -r) 2>/dev/null || echo unknown`
956 uname -s = `(uname -s) 2>/dev/null || echo unknown`
957 uname -v = `(uname -v) 2>/dev/null || echo unknown`
959 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
960 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
962 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
963 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
964 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
965 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
966 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
967 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
968 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982 # Keep a trace of the command line.
983 # Strip out --no-create and --no-recursion so they do not pile up.
984 # Also quote any args containing shell meta-characters.
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c) ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
994 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
995 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
996 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
998 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1001 # Get rid of the leading space.
1004 # When interrupted or exit'd, cleanup temporary files, and complete
1005 # config.log. We remove comments because anyway the quotes in there
1006 # would cause problems or look ugly.
1007 trap 'exit_status=$?
1008 # Save into config.log some information that might help in debugging.
1010 echo "## ----------------- ##" >&5
1011 echo "## Cache variables. ##" >&5
1012 echo "## ----------------- ##" >&5
1014 # The following way of writing the cache mishandles newlines in values,
1017 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1020 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1025 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1029 sed "/^$/d" confdefs.h >conftest.log
1030 if test -s conftest.log; then
1032 echo "## ------------ ##" >&5
1033 echo "## confdefs.h. ##" >&5
1034 echo "## ------------ ##" >&5
1036 cat conftest.log >&5
1039 test "$ac_signal" != 0 &&
1040 echo "$as_me: caught signal $ac_signal" >&5
1041 echo "$as_me: exit $exit_status" >&5
1042 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1045 for ac_signal in 1 2 13 15; do
1046 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1050 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1051 rm -rf conftest* confdefs.h
1052 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1055 # Let the site file select an alternate cache file if it wants to.
1056 # Prefer explicitly selected file to automatically selected ones.
1057 if test -z "$CONFIG_SITE"; then
1058 if test "x$prefix" != xNONE; then
1059 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1061 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1064 for ac_site_file in $CONFIG_SITE; do
1065 if test -r "$ac_site_file"; then
1066 { echo "$as_me:1066: loading site script $ac_site_file" >&5
1067 echo "$as_me: loading site script $ac_site_file" >&6;}
1068 cat "$ac_site_file" >&5
1073 if test -r "$cache_file"; then
1074 # Some versions of bash will fail to source /dev/null (special
1075 # files actually), so we avoid doing that.
1076 if test -f "$cache_file"; then
1077 { echo "$as_me:1077: loading cache $cache_file" >&5
1078 echo "$as_me: loading cache $cache_file" >&6;}
1080 [\\/]* | ?:[\\/]* ) . $cache_file;;
1081 *) . ./$cache_file;;
1085 { echo "$as_me:1085: creating cache $cache_file" >&5
1086 echo "$as_me: creating cache $cache_file" >&6;}
1090 # Check that the precious variables saved in the cache have kept the same
1092 ac_cache_corrupted=false
1093 for ac_var in `(set) 2>&1 |
1094 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1096 eval ac_new_set=\$ac_env_${ac_var}_set
1097 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1098 eval ac_new_val="\$ac_env_${ac_var}_value"
1099 case $ac_old_set,$ac_new_set in
1101 { echo "$as_me:1101: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1102 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1103 ac_cache_corrupted=: ;;
1105 { echo "$as_me:1105: error: \`$ac_var' was not set in the previous run" >&5
1106 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1107 ac_cache_corrupted=: ;;
1110 if test "x$ac_old_val" != "x$ac_new_val"; then
1111 { echo "$as_me:1111: error: \`$ac_var' has changed since the previous run:" >&5
1112 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1113 { echo "$as_me:1113: former value: $ac_old_val" >&5
1114 echo "$as_me: former value: $ac_old_val" >&2;}
1115 { echo "$as_me:1115: current value: $ac_new_val" >&5
1116 echo "$as_me: current value: $ac_new_val" >&2;}
1117 ac_cache_corrupted=:
1120 # Pass precious variables to config.status. It doesn't matter if
1121 # we pass some twice (in addition to the command line arguments).
1122 if test "$ac_new_set" = set; then
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1126 ac_configure_args="$ac_configure_args '$ac_arg'"
1128 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1133 if $ac_cache_corrupted; then
1134 { echo "$as_me:1134: error: changes in the environment can compromise the build" >&5
1135 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1136 { { echo "$as_me:1136: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1137 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1138 { (exit 1); exit 1; }; }
1142 ac_cpp='$CPP $CPPFLAGS'
1143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1146 ac_main_return=return
1148 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1149 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1151 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1152 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1154 echo "#! $SHELL" >conftest.sh
1155 echo "exit 0" >>conftest.sh
1156 chmod +x conftest.sh
1157 if { (echo "$as_me:1157: PATH=\".;.\"; conftest.sh") >&5
1158 (PATH=".;."; conftest.sh) 2>&5
1160 echo "$as_me:1160: \$? = $ac_status" >&5
1161 (exit $ac_status); }; then
1162 ac_path_separator=';'
1166 PATH_SEPARATOR="$ac_path_separator"
1169 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1173 echo "$as_me:1173: checking for egrep" >&5
1174 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1175 if test "${ac_cv_prog_egrep+set}" = set; then
1176 echo $ECHO_N "(cached) $ECHO_C" >&6
1178 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1179 then ac_cv_prog_egrep='grep -E'
1180 else ac_cv_prog_egrep='egrep'
1183 echo "$as_me:1183: result: $ac_cv_prog_egrep" >&5
1184 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1185 EGREP=$ac_cv_prog_egrep
1187 test -z "$EGREP" && { { echo "$as_me:1187: error: No egrep program found" >&5
1188 echo "$as_me: error: No egrep program found" >&2;}
1189 { (exit 1); exit 1; }; }
1191 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1192 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1193 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1194 cf_cv_abi_version=${NCURSES_MAJOR}
1195 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1196 cf_cv_timestamp=`date`
1197 echo "$as_me:1197: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1198 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1200 if test -f $srcdir/VERSION ; then
1201 echo "$as_me:1201: checking for package version" >&5
1202 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1204 # if there are not enough fields, cut returns the last one...
1205 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1206 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1207 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1209 # this is how CF_BUNDLED_INTL uses $VERSION:
1210 VERSION="$cf_field1"
1212 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1213 test -z "$VERSION_MAJOR" && { { echo "$as_me:1213: error: missing major-version" >&5
1214 echo "$as_me: error: missing major-version" >&2;}
1215 { (exit 1); exit 1; }; }
1217 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1218 test -z "$VERSION_MINOR" && { { echo "$as_me:1218: error: missing minor-version" >&5
1219 echo "$as_me: error: missing minor-version" >&2;}
1220 { (exit 1); exit 1; }; }
1222 echo "$as_me:1222: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1223 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1225 echo "$as_me:1225: checking for package patch date" >&5
1226 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1227 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1228 case .$VERSION_PATCH in
1230 { { echo "$as_me:1230: error: missing patch-date $VERSION_PATCH" >&5
1231 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1232 { (exit 1); exit 1; }; }
1234 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1237 { { echo "$as_me:1237: error: illegal patch-date $VERSION_PATCH" >&5
1238 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1239 { (exit 1); exit 1; }; }
1242 echo "$as_me:1242: result: $VERSION_PATCH" >&5
1243 echo "${ECHO_T}$VERSION_PATCH" >&6
1245 { { echo "$as_me:1245: error: did not find $srcdir/VERSION" >&5
1246 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1247 { (exit 1); exit 1; }; }
1250 # show the actual data that we have for versions:
1251 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1253 echo "${as_me:-configure}:1253: testing ABI VERSION $VERSION ..." 1>&5
1255 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1257 echo "${as_me:-configure}:1257: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1259 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1261 echo "${as_me:-configure}:1261: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1263 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1265 echo "${as_me:-configure}:1265: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1270 cat >>confdefs.h <<EOF
1271 #define PACKAGE "$PACKAGE"
1274 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1276 cat >>confdefs.h <<EOF
1277 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1280 cat >>confdefs.h <<EOF
1281 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1284 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1286 # Check whether --with-rel-version or --without-rel-version was given.
1287 if test "${with_rel_version+set}" = set; then
1288 withval="$with_rel_version"
1289 { echo "$as_me:1289: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1290 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1291 cf_cv_rel_version=$withval
1294 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1295 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1297 if test -n "$NCURSES_MAJOR" ; then
1298 case $NCURSES_MAJOR in
1302 { { echo "$as_me:1302: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1303 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1304 { (exit 1); exit 1; }; }
1308 { { echo "$as_me:1308: error: Release major-version value is empty" >&5
1309 echo "$as_me: error: Release major-version value is empty" >&2;}
1310 { (exit 1); exit 1; }; }
1313 if test -n "$NCURSES_MINOR" ; then
1314 case $NCURSES_MINOR in
1318 { { echo "$as_me:1318: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1319 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1320 { (exit 1); exit 1; }; }
1324 { { echo "$as_me:1324: error: Release minor-version value is empty" >&5
1325 echo "$as_me: error: Release minor-version value is empty" >&2;}
1326 { (exit 1); exit 1; }; }
1329 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1331 # Check whether --with-abi-version or --without-abi-version was given.
1332 if test "${with_abi_version+set}" = set; then
1333 withval="$with_abi_version"
1335 if test "x$cf_cv_abi_version" != "x$withval"
1337 { echo "$as_me:1337: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1338 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1339 case $cf_cv_rel_version in
1341 cf_cv_rel_version=$withval.0
1344 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1348 cf_cv_abi_version=$withval
1351 if test -n "$cf_cv_abi_version" ; then
1352 case $cf_cv_abi_version in
1356 { { echo "$as_me:1356: error: ABI version is not a number: $cf_cv_abi_version" >&5
1357 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1358 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:1362: error: ABI version value is empty" >&5
1363 echo "$as_me: error: ABI version value is empty" >&2;}
1364 { (exit 1); exit 1; }; }
1367 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1369 case $cf_cv_rel_version in
1371 cf_cv_rel_version=$with_abi_version.0
1377 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378 if test -f $ac_dir/install-sh; then
1380 ac_install_sh="$ac_aux_dir/install-sh -c"
1382 elif test -f $ac_dir/install.sh; then
1384 ac_install_sh="$ac_aux_dir/install.sh -c"
1386 elif test -f $ac_dir/shtool; then
1388 ac_install_sh="$ac_aux_dir/shtool install -c"
1392 if test -z "$ac_aux_dir"; then
1393 { { echo "$as_me:1393: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395 { (exit 1); exit 1; }; }
1397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:1403: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1407 echo "$as_me:1407: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:1416: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:1420: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1422 { (exit 1); exit 1; }; }
1425 echo "$as_me:1425: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$as_me:1432: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439 ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441 { { echo "$as_me:1441: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:1446: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1454 echo "$as_me:1454: checking target system type" >&5
1455 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1456 if test "${ac_cv_target+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 ac_cv_target_alias=$target_alias
1460 test "x$ac_cv_target_alias" = "x" &&
1461 ac_cv_target_alias=$ac_cv_host_alias
1462 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1463 { { echo "$as_me:1463: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1468 echo "$as_me:1468: result: $ac_cv_target" >&5
1469 echo "${ECHO_T}$ac_cv_target" >&6
1470 target=$ac_cv_target
1471 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475 # The aliases save the names the user supplied, while $host etc.
1476 # will get canonicalized.
1477 test -n "$target_alias" &&
1478 test "$program_prefix$program_suffix$program_transform_name" = \
1480 program_prefix=${target_alias}-
1481 system_name="$host_os"
1483 system_name="`(uname -s -r) 2>/dev/null`"
1484 if test -z "$system_name" ; then
1485 system_name="`(hostname) 2>/dev/null`"
1488 test -n "$system_name" &&
1489 cat >>confdefs.h <<EOF
1490 #define SYSTEM_NAME "$system_name"
1493 if test "${cf_cv_system_name+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 cf_cv_system_name="$system_name"
1499 test -z "$system_name" && system_name="$cf_cv_system_name"
1500 test -n "$cf_cv_system_name" && echo "$as_me:1500: result: Configuring for $cf_cv_system_name" >&5
1501 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1503 if test ".$system_name" != ".$cf_cv_system_name" ; then
1504 echo "$as_me:1504: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1505 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1506 { { echo "$as_me:1506: error: \"Please remove config.cache and try again.\"" >&5
1507 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1508 { (exit 1); exit 1; }; }
1511 # Check whether --with-system-type or --without-system-type was given.
1512 if test "${with_system_type+set}" = set; then
1513 withval="$with_system_type"
1514 { echo "$as_me:1514: WARNING: overriding system type to $withval" >&5
1515 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1516 cf_cv_system_name=$withval
1521 ### Save the given $CFLAGS to allow user-override.
1522 cf_user_CFLAGS="$CFLAGS"
1524 ### Default install-location
1526 echo "$as_me:1526: checking for prefix" >&5
1527 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1528 if test "x$prefix" = "xNONE" ; then
1529 case "$cf_cv_system_name" in
1530 # non-vendor systems don't have a conflict
1531 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1534 (*) prefix=$ac_default_prefix
1538 echo "$as_me:1538: result: $prefix" >&5
1539 echo "${ECHO_T}$prefix" >&6
1541 if test "x$prefix" = "xNONE" ; then
1542 echo "$as_me:1542: checking for default include-directory" >&5
1543 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1544 test -n "$verbose" && echo 1>&6
1547 $includedir/ncurses \
1549 $prefix/include/ncurses \
1550 /usr/local/include \
1551 /usr/local/include/ncurses \
1553 /usr/include/ncurses
1555 cf_dir=`eval echo $cf_symbol`
1556 if test -f $cf_dir/curses.h ; then
1557 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1558 includedir="$cf_symbol"
1559 test -n "$verbose" && echo $ac_n " found " 1>&6
1563 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1565 echo "$as_me:1565: result: $includedir" >&5
1566 echo "${ECHO_T}$includedir" >&6
1569 ### Defaults for ncurses ABI
1571 case x$cf_cv_abi_version in
1573 cf_dft_ext_colors=yes
1574 cf_dft_ext_const=yes
1575 cf_dft_ext_mouse=yes
1576 cf_dft_ext_putwin=yes
1577 cf_dft_ext_spfuncs=yes
1578 cf_dft_filter_syms=yes
1579 cf_dft_chtype=uint32_t
1580 cf_dft_mmask_t=uint32_t
1582 cf_dft_tparm_arg=intptr_t
1583 cf_dft_with_lp64=yes
1586 cf_dft_ext_colors=no
1589 cf_dft_ext_putwin=no
1590 cf_dft_ext_spfuncs=no
1591 cf_dft_filter_syms=no
1595 cf_dft_tparm_arg=long
1600 ### Checks for programs.
1602 # Check whether --with-ada or --without-ada was given.
1603 if test "${with_ada+set}" = set; then
1605 cf_with_ada=$withval
1610 if test "x$cf_with_ada" = xyes
1612 cf_prog_cc="gnatgcc gcc cc"
1618 ac_cpp='$CPP $CPPFLAGS'
1619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1622 ac_main_return=return
1623 if test -n "$ac_tool_prefix"; then
1624 for ac_prog in $cf_prog_cc
1626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1628 echo "$as_me:1628: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1636 ac_save_IFS=$IFS; IFS=$ac_path_separator
1638 for ac_dir in $ac_dummy; do
1640 test -z "$ac_dir" && ac_dir=.
1641 $as_executable_p "$ac_dir/$ac_word" || continue
1642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1643 echo "$as_me:1643: found $ac_dir/$ac_word" >&5
1650 if test -n "$CC"; then
1651 echo "$as_me:1651: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1654 echo "$as_me:1654: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1658 test -n "$CC" && break
1661 if test -z "$CC"; then
1663 for ac_prog in $cf_prog_cc
1665 # Extract the first word of "$ac_prog", so it can be a program name with args.
1666 set dummy $ac_prog; ac_word=$2
1667 echo "$as_me:1667: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1675 ac_save_IFS=$IFS; IFS=$ac_path_separator
1677 for ac_dir in $ac_dummy; do
1679 test -z "$ac_dir" && ac_dir=.
1680 $as_executable_p "$ac_dir/$ac_word" || continue
1681 ac_cv_prog_ac_ct_CC="$ac_prog"
1682 echo "$as_me:1682: found $ac_dir/$ac_word" >&5
1688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689 if test -n "$ac_ct_CC"; then
1690 echo "$as_me:1690: result: $ac_ct_CC" >&5
1691 echo "${ECHO_T}$ac_ct_CC" >&6
1693 echo "$as_me:1693: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1697 test -n "$ac_ct_CC" && break
1703 test -z "$CC" && { { echo "$as_me:1703: error: no acceptable cc found in \$PATH" >&5
1704 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1705 { (exit 1); exit 1; }; }
1707 # Provide some information about the compiler.
1708 echo "$as_me:1708:" \
1709 "checking for C compiler version" >&5
1710 ac_compiler=`set X $ac_compile; echo $2`
1711 { (eval echo "$as_me:1711: \"$ac_compiler --version </dev/null >&5\"") >&5
1712 (eval $ac_compiler --version </dev/null >&5) 2>&5
1714 echo "$as_me:1714: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1716 { (eval echo "$as_me:1716: \"$ac_compiler -v </dev/null >&5\"") >&5
1717 (eval $ac_compiler -v </dev/null >&5) 2>&5
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); }
1721 { (eval echo "$as_me:1721: \"$ac_compiler -V </dev/null >&5\"") >&5
1722 (eval $ac_compiler -V </dev/null >&5) 2>&5
1724 echo "$as_me:1724: \$? = $ac_status" >&5
1725 (exit $ac_status); }
1727 cat >conftest.$ac_ext <<_ACEOF
1728 #line 1728 "configure"
1729 #include "confdefs.h"
1739 ac_clean_files_save=$ac_clean_files
1740 ac_clean_files="$ac_clean_files a.out a.exe"
1741 # Try to create an executable without -o first, disregard a.out.
1742 # It will help us diagnose broken compilers, and finding out an intuition
1744 echo "$as_me:1744: checking for C compiler default output" >&5
1745 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1746 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1747 if { (eval echo "$as_me:1747: \"$ac_link_default\"") >&5
1748 (eval $ac_link_default) 2>&5
1750 echo "$as_me:1750: \$? = $ac_status" >&5
1751 (exit $ac_status); }; then
1752 # Find the output, starting from the most likely. This scheme is
1753 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1755 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1756 ls a.out conftest 2>/dev/null;
1757 ls a.* conftest.* 2>/dev/null`; do
1759 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1760 a.out ) # We found the default executable, but exeext='' is most
1763 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1764 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1771 echo "$as_me: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1773 { { echo "$as_me:1773: error: C compiler cannot create executables" >&5
1774 echo "$as_me: error: C compiler cannot create executables" >&2;}
1775 { (exit 77); exit 77; }; }
1778 ac_exeext=$ac_cv_exeext
1779 echo "$as_me:1779: result: $ac_file" >&5
1780 echo "${ECHO_T}$ac_file" >&6
1782 # Check the compiler produces executables we can run. If not, either
1783 # the compiler is broken, or we cross compile.
1784 echo "$as_me:1784: checking whether the C compiler works" >&5
1785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1787 # If not cross compiling, check that we can run a simple program.
1788 if test "$cross_compiling" != yes; then
1789 if { ac_try='./$ac_file'
1790 { (eval echo "$as_me:1790: \"$ac_try\"") >&5
1793 echo "$as_me:1793: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 if test "$cross_compiling" = maybe; then
1800 { { echo "$as_me:1800: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'." >&5
1802 echo "$as_me: error: cannot run C compiled programs.
1803 If you meant to cross compile, use \`--host'." >&2;}
1804 { (exit 1); exit 1; }; }
1808 echo "$as_me:1808: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1811 rm -f a.out a.exe conftest$ac_cv_exeext
1812 ac_clean_files=$ac_clean_files_save
1813 # Check the compiler produces executables we can run. If not, either
1814 # the compiler is broken, or we cross compile.
1815 echo "$as_me:1815: checking whether we are cross compiling" >&5
1816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817 echo "$as_me:1817: result: $cross_compiling" >&5
1818 echo "${ECHO_T}$cross_compiling" >&6
1820 echo "$as_me:1820: checking for executable suffix" >&5
1821 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1822 if { (eval echo "$as_me:1822: \"$ac_link\"") >&5
1823 (eval $ac_link) 2>&5
1825 echo "$as_me:1825: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1828 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1829 # work properly (i.e., refer to `conftest.exe'), while it won't with
1831 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 { { echo "$as_me:1841: error: cannot compute EXEEXT: cannot compile and link" >&5
1842 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1843 { (exit 1); exit 1; }; }
1846 rm -f conftest$ac_cv_exeext
1847 echo "$as_me:1847: result: $ac_cv_exeext" >&5
1848 echo "${ECHO_T}$ac_cv_exeext" >&6
1850 rm -f conftest.$ac_ext
1851 EXEEXT=$ac_cv_exeext
1853 echo "$as_me:1853: checking for object suffix" >&5
1854 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1855 if test "${ac_cv_objext+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 cat >conftest.$ac_ext <<_ACEOF
1859 #line 1859 "configure"
1860 #include "confdefs.h"
1870 rm -f conftest.o conftest.obj
1871 if { (eval echo "$as_me:1871: \"$ac_compile\"") >&5
1872 (eval $ac_compile) 2>&5
1874 echo "$as_me:1874: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1878 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1884 echo "$as_me: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 { { echo "$as_me:1886: error: cannot compute OBJEXT: cannot compile" >&5
1887 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1888 { (exit 1); exit 1; }; }
1891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1893 echo "$as_me:1893: result: $ac_cv_objext" >&5
1894 echo "${ECHO_T}$ac_cv_objext" >&6
1895 OBJEXT=$ac_cv_objext
1897 echo "$as_me:1897: checking whether we are using the GNU C compiler" >&5
1898 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1899 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 cat >conftest.$ac_ext <<_ACEOF
1903 #line 1903 "configure"
1904 #include "confdefs.h"
1917 rm -f conftest.$ac_objext
1918 if { (eval echo "$as_me:1918: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); } &&
1923 { ac_try='test -s conftest.$ac_objext'
1924 { (eval echo "$as_me:1924: \"$ac_try\"") >&5
1927 echo "$as_me:1927: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1935 rm -f conftest.$ac_objext conftest.$ac_ext
1936 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1939 echo "$as_me:1939: result: $ac_cv_c_compiler_gnu" >&5
1940 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1941 GCC=`test $ac_compiler_gnu = yes && echo yes`
1942 ac_test_CFLAGS=${CFLAGS+set}
1943 ac_save_CFLAGS=$CFLAGS
1945 echo "$as_me:1945: checking whether $CC accepts -g" >&5
1946 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1947 if test "${ac_cv_prog_cc_g+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1962 rm -f conftest.$ac_objext
1963 if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); } &&
1968 { ac_try='test -s conftest.$ac_objext'
1969 { (eval echo "$as_me:1969: \"$ac_try\"") >&5
1972 echo "$as_me:1972: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1976 echo "$as_me: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1980 rm -f conftest.$ac_objext conftest.$ac_ext
1982 echo "$as_me:1982: result: $ac_cv_prog_cc_g" >&5
1983 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1984 if test "$ac_test_CFLAGS" = set; then
1985 CFLAGS=$ac_save_CFLAGS
1986 elif test $ac_cv_prog_cc_g = yes; then
1987 if test "$GCC" = yes; then
1993 if test "$GCC" = yes; then
1999 # Some people use a C++ compiler to compile C. Since we use `exit',
2000 # in C++ we need to declare it. In case someone uses the same compiler
2001 # for both compiling C and C++ we need to have the C++ compiler decide
2002 # the declaration of exit, since it's the most demanding environment.
2003 cat >conftest.$ac_ext <<_ACEOF
2008 rm -f conftest.$ac_objext
2009 if { (eval echo "$as_me:2009: \"$ac_compile\"") >&5
2010 (eval $ac_compile) 2>&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:2015: \"$ac_try\"") >&5
2018 echo "$as_me:2018: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 for ac_declaration in \
2022 '#include <stdlib.h>' \
2023 'extern "C" void std::exit (int) throw (); using std::exit;' \
2024 'extern "C" void std::exit (int); using std::exit;' \
2025 'extern "C" void exit (int) throw ();' \
2026 'extern "C" void exit (int);' \
2029 cat >conftest.$ac_ext <<_ACEOF
2030 #line 2030 "configure"
2031 #include "confdefs.h"
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:2043: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>&5
2046 echo "$as_me:2046: \$? = $ac_status" >&5
2047 (exit $ac_status); } &&
2048 { ac_try='test -s conftest.$ac_objext'
2049 { (eval echo "$as_me:2049: \"$ac_try\"") >&5
2052 echo "$as_me:2052: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2056 echo "$as_me: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2060 rm -f conftest.$ac_objext conftest.$ac_ext
2061 cat >conftest.$ac_ext <<_ACEOF
2062 #line 2062 "configure"
2063 #include "confdefs.h"
2073 rm -f conftest.$ac_objext
2074 if { (eval echo "$as_me:2074: \"$ac_compile\"") >&5
2075 (eval $ac_compile) 2>&5
2077 echo "$as_me:2077: \$? = $ac_status" >&5
2078 (exit $ac_status); } &&
2079 { ac_try='test -s conftest.$ac_objext'
2080 { (eval echo "$as_me:2080: \"$ac_try\"") >&5
2083 echo "$as_me:2083: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2087 echo "$as_me: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2090 rm -f conftest.$ac_objext conftest.$ac_ext
2093 if test -n "$ac_declaration"; then
2094 echo '#ifdef __cplusplus' >>confdefs.h
2095 echo $ac_declaration >>confdefs.h
2096 echo '#endif' >>confdefs.h
2100 echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2105 ac_cpp='$CPP $CPPFLAGS'
2106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 ac_main_return=return
2112 if test "$GCC" = yes ; then
2113 echo "$as_me:2113: checking version of $CC" >&5
2114 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2115 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.].*//'`"
2116 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2117 echo "$as_me:2117: result: $GCC_VERSION" >&5
2118 echo "${ECHO_T}$GCC_VERSION" >&6
2123 if test "$GCC" = yes ; then
2126 echo "$as_me:2126: checking if this is really Intel C compiler" >&5
2127 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2128 cf_save_CFLAGS="$CFLAGS"
2129 CFLAGS="$CFLAGS -no-gcc"
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line 2131 "configure"
2132 #include "confdefs.h"
2138 #ifdef __INTEL_COMPILER
2147 rm -f conftest.$ac_objext
2148 if { (eval echo "$as_me:2148: \"$ac_compile\"") >&5
2149 (eval $ac_compile) 2>&5
2151 echo "$as_me:2151: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:2154: \"$ac_try\"") >&5
2157 echo "$as_me:2157: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2160 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2163 echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 rm -f conftest.$ac_objext conftest.$ac_ext
2167 CFLAGS="$cf_save_CFLAGS"
2168 echo "$as_me:2168: result: $INTEL_COMPILER" >&5
2169 echo "${ECHO_T}$INTEL_COMPILER" >&6
2176 if test "$GCC" = yes ; then
2177 echo "$as_me:2177: checking if this is really Clang C compiler" >&5
2178 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2179 cf_save_CFLAGS="$CFLAGS"
2180 CFLAGS="$CFLAGS -Qunused-arguments"
2181 cat >conftest.$ac_ext <<_ACEOF
2182 #line 2182 "configure"
2183 #include "confdefs.h"
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:2199: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2202 echo "$as_me:2202: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:2205: \"$ac_try\"") >&5
2208 echo "$as_me:2208: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2211 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
2214 echo "$as_me: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2217 rm -f conftest.$ac_objext conftest.$ac_ext
2218 CFLAGS="$cf_save_CFLAGS"
2219 echo "$as_me:2219: result: $CLANG_COMPILER" >&5
2220 echo "${ECHO_T}$CLANG_COMPILER" >&6
2223 if test "x$CLANG_COMPILER" = "xyes" ; then
2225 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2226 CFLAGS="${CFLAGS}-Wno-error=implicit-function-declaration"
2230 echo "$as_me:2230: checking for $CC option to accept ANSI C" >&5
2231 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2232 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 ac_cv_prog_cc_stdc=no
2237 cat >conftest.$ac_ext <<_ACEOF
2238 #line 2238 "configure"
2239 #include "confdefs.h"
2242 #include <sys/types.h>
2243 #include <sys/stat.h>
2244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2245 struct buf { int x; };
2246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2247 static char *e (p, i)
2253 static char *f (char * (*g) (char **, int), char **p, ...)
2258 s = g (p, va_arg (v,int));
2262 int test (int i, double x);
2263 struct s1 {int (*f) (int a);};
2264 struct s2 {int (*f) (double a);};
2265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2276 # Don't try gcc -ansi; that turns off useful extensions and
2277 # breaks some systems' header files.
2278 # AIX -qlanglvl=ansi
2279 # Ultrix and OSF/1 -std1
2280 # HP-UX 10.20 and later -Ae
2281 # HP-UX older versions -Aa -D_HPUX_SOURCE
2282 # SVR4 -Xc -D__EXTENSIONS__
2283 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2285 CC="$ac_save_CC $ac_arg"
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:2287: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>&5
2290 echo "$as_me:2290: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:2293: \"$ac_try\"") >&5
2296 echo "$as_me:2296: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_prog_cc_stdc=$ac_arg
2301 echo "$as_me: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 rm -f conftest.$ac_objext
2306 rm -f conftest.$ac_ext conftest.$ac_objext
2311 case "x$ac_cv_prog_cc_stdc" in
2313 echo "$as_me:2313: result: none needed" >&5
2314 echo "${ECHO_T}none needed" >&6 ;;
2316 echo "$as_me:2316: result: $ac_cv_prog_cc_stdc" >&5
2317 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2318 CC="$CC $ac_cv_prog_cc_stdc" ;;
2321 # This should have been defined by AC_PROG_CC
2324 echo "$as_me:2324: checking \$CFLAGS variable" >&5
2325 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2328 echo "$as_me:2328: result: broken" >&5
2329 echo "${ECHO_T}broken" >&6
2330 { echo "$as_me:2330: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2331 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2334 for cf_arg in $cf_flags
2340 cf_new_extra_cppflags=
2342 for cf_add_cflags in $cf_arg
2344 case $cf_fix_cppflags in
2346 case $cf_add_cflags in
2347 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2348 case $cf_add_cflags in
2350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2352 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2353 && test -z "${cf_tst_cflags}" \
2354 && cf_fix_cppflags=yes
2356 if test $cf_fix_cppflags = yes ; then
2358 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2359 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2362 elif test "${cf_tst_cflags}" = "\"'" ; then
2364 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2365 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2375 case $cf_add_cflags in
2377 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2379 CPPFLAGS=`echo "$CPPFLAGS" | \
2380 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2381 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2386 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2387 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2394 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2395 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2402 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2403 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2405 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2407 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2408 && test -z "${cf_tst_cflags}" \
2409 && cf_fix_cppflags=no
2414 if test -n "$cf_new_cflags" ; then
2416 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2417 CFLAGS="${CFLAGS}$cf_new_cflags"
2421 if test -n "$cf_new_cppflags" ; then
2423 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2424 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2428 if test -n "$cf_new_extra_cppflags" ; then
2430 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2431 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2438 echo "$as_me:2438: result: ok" >&5
2439 echo "${ECHO_T}ok" >&6
2443 echo "$as_me:2443: checking \$CC variable" >&5
2444 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2447 echo "$as_me:2447: result: broken" >&5
2448 echo "${ECHO_T}broken" >&6
2449 { echo "$as_me:2449: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2450 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2452 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2453 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2455 for cf_arg in $cf_flags
2463 cf_new_extra_cppflags=
2465 for cf_add_cflags in $cf_arg
2467 case $cf_fix_cppflags in
2469 case $cf_add_cflags in
2470 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2471 case $cf_add_cflags in
2473 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2475 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2476 && test -z "${cf_tst_cflags}" \
2477 && cf_fix_cppflags=yes
2479 if test $cf_fix_cppflags = yes ; then
2481 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2482 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2485 elif test "${cf_tst_cflags}" = "\"'" ; then
2487 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2488 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2498 case $cf_add_cflags in
2500 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2502 CPPFLAGS=`echo "$CPPFLAGS" | \
2503 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2504 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2509 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2510 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2517 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2518 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2525 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2526 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2528 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2530 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2531 && test -z "${cf_tst_cflags}" \
2532 && cf_fix_cppflags=no
2537 if test -n "$cf_new_cflags" ; then
2539 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2540 CFLAGS="${CFLAGS}$cf_new_cflags"
2544 if test -n "$cf_new_cppflags" ; then
2546 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2547 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2551 if test -n "$cf_new_extra_cppflags" ; then
2553 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2554 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2564 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2566 echo "${as_me:-configure}:2566: testing resulting CC: '$CC' ..." 1>&5
2568 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2570 echo "${as_me:-configure}:2570: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2572 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2574 echo "${as_me:-configure}:2574: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2578 echo "$as_me:2578: result: ok" >&5
2579 echo "${ECHO_T}ok" >&6
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 ac_main_return=return
2589 echo "$as_me:2589: checking how to run the C preprocessor" >&5
2590 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2591 # On Suns, sometimes $CPP names a directory.
2592 if test -n "$CPP" && test -d "$CPP"; then
2595 if test -z "$CPP"; then
2596 if test "${ac_cv_prog_CPP+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 # Double quotes because CPP needs to be expanded
2600 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2603 for ac_c_preproc_warn_flag in '' yes
2605 # Use a header file that comes with gcc, so configuring glibc
2606 # with a fresh cross-compiler works.
2607 # On the NeXT, cc -E runs the code through the compiler's parser,
2608 # not just through cpp. "Syntax error" is here to catch this case.
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line 2610 "configure"
2611 #include "confdefs.h"
2615 if { (eval echo "$as_me:2615: \"$ac_cpp conftest.$ac_ext\"") >&5
2616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2618 egrep -v '^ *\+' conftest.er1 >conftest.err
2620 cat conftest.err >&5
2621 echo "$as_me:2621: \$? = $ac_status" >&5
2622 (exit $ac_status); } >/dev/null; then
2623 if test -s conftest.err; then
2624 ac_cpp_err=$ac_c_preproc_warn_flag
2631 if test -z "$ac_cpp_err"; then
2634 echo "$as_me: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 # Broken: fails on valid input.
2639 rm -f conftest.err conftest.$ac_ext
2641 # OK, works on sane cases. Now check whether non-existent headers
2642 # can be detected and how.
2643 cat >conftest.$ac_ext <<_ACEOF
2644 #line 2644 "configure"
2645 #include "confdefs.h"
2646 #include <ac_nonexistent.h>
2648 if { (eval echo "$as_me:2648: \"$ac_cpp conftest.$ac_ext\"") >&5
2649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2651 egrep -v '^ *\+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:2654: \$? = $ac_status" >&5
2655 (exit $ac_status); } >/dev/null; then
2656 if test -s conftest.err; then
2657 ac_cpp_err=$ac_c_preproc_warn_flag
2664 if test -z "$ac_cpp_err"; then
2665 # Broken: success on invalid input.
2668 echo "$as_me: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2670 # Passes both tests.
2674 rm -f conftest.err conftest.$ac_ext
2677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2678 rm -f conftest.err conftest.$ac_ext
2679 if $ac_preproc_ok; then
2691 echo "$as_me:2691: result: $CPP" >&5
2692 echo "${ECHO_T}$CPP" >&6
2694 for ac_c_preproc_warn_flag in '' yes
2696 # Use a header file that comes with gcc, so configuring glibc
2697 # with a fresh cross-compiler works.
2698 # On the NeXT, cc -E runs the code through the compiler's parser,
2699 # not just through cpp. "Syntax error" is here to catch this case.
2700 cat >conftest.$ac_ext <<_ACEOF
2701 #line 2701 "configure"
2702 #include "confdefs.h"
2706 if { (eval echo "$as_me:2706: \"$ac_cpp conftest.$ac_ext\"") >&5
2707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2709 egrep -v '^ *\+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:2712: \$? = $ac_status" >&5
2713 (exit $ac_status); } >/dev/null; then
2714 if test -s conftest.err; then
2715 ac_cpp_err=$ac_c_preproc_warn_flag
2722 if test -z "$ac_cpp_err"; then
2725 echo "$as_me: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 # Broken: fails on valid input.
2730 rm -f conftest.err conftest.$ac_ext
2732 # OK, works on sane cases. Now check whether non-existent headers
2733 # can be detected and how.
2734 cat >conftest.$ac_ext <<_ACEOF
2735 #line 2735 "configure"
2736 #include "confdefs.h"
2737 #include <ac_nonexistent.h>
2739 if { (eval echo "$as_me:2739: \"$ac_cpp conftest.$ac_ext\"") >&5
2740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2742 egrep -v '^ *\+' conftest.er1 >conftest.err
2744 cat conftest.err >&5
2745 echo "$as_me:2745: \$? = $ac_status" >&5
2746 (exit $ac_status); } >/dev/null; then
2747 if test -s conftest.err; then
2748 ac_cpp_err=$ac_c_preproc_warn_flag
2755 if test -z "$ac_cpp_err"; then
2756 # Broken: success on invalid input.
2759 echo "$as_me: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 # Passes both tests.
2765 rm -f conftest.err conftest.$ac_ext
2768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2769 rm -f conftest.err conftest.$ac_ext
2770 if $ac_preproc_ok; then
2773 { { echo "$as_me:2773: error: C preprocessor \"$CPP\" fails sanity check" >&5
2774 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2775 { (exit 1); exit 1; }; }
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 ac_main_return=return
2785 if test $ac_cv_c_compiler_gnu = yes; then
2786 echo "$as_me:2786: checking whether $CC needs -traditional" >&5
2787 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2788 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 ac_pattern="Autoconf.*'x'"
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2796 int Autoconf = TIOCGETP;
2798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2799 egrep "$ac_pattern" >/dev/null 2>&1; then
2800 ac_cv_prog_gcc_traditional=yes
2802 ac_cv_prog_gcc_traditional=no
2806 if test $ac_cv_prog_gcc_traditional = no; then
2807 cat >conftest.$ac_ext <<_ACEOF
2808 #line 2808 "configure"
2809 #include "confdefs.h"
2811 int Autoconf = TCGETA;
2813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2814 egrep "$ac_pattern" >/dev/null 2>&1; then
2815 ac_cv_prog_gcc_traditional=yes
2821 echo "$as_me:2821: result: $ac_cv_prog_gcc_traditional" >&5
2822 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2823 if test $ac_cv_prog_gcc_traditional = yes; then
2824 CC="$CC -traditional"
2828 echo "$as_me:2828: checking whether $CC understands -c and -o together" >&5
2829 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2830 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 cat > conftest.$ac_ext <<CF_EOF
2837 ${cf_cv_main_return:-return}(0);
2840 # We do the test twice because some compilers refuse to overwrite an
2841 # existing .o file with -o, though they will create one.
2842 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2843 if { (eval echo "$as_me:2843: \"$ac_try\"") >&5
2846 echo "$as_me:2846: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 test -f conftest2.$ac_objext && { (eval echo "$as_me:2848: \"$ac_try\"") >&5
2851 echo "$as_me:2851: \$? = $ac_status" >&5
2852 (exit $ac_status); };
2854 eval cf_cv_prog_CC_c_o=yes
2856 eval cf_cv_prog_CC_c_o=no
2861 if test $cf_cv_prog_CC_c_o = yes; then
2862 echo "$as_me:2862: result: yes" >&5
2863 echo "${ECHO_T}yes" >&6
2865 echo "$as_me:2865: result: no" >&5
2866 echo "${ECHO_T}no" >&6
2869 if test "$cross_compiling" = yes ; then
2872 case "$cf_cv_system_name" in
2873 (dragonfly*|mirbsd*|freebsd*)
2874 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2876 (*) LDPATH=$PATH:/sbin:/usr/sbin
2877 # Extract the first word of "ldconfig", so it can be a program name with args.
2878 set dummy ldconfig; ac_word=$2
2879 echo "$as_me:2879: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2889 ac_save_IFS=$IFS; IFS=$ac_path_separator
2891 for ac_dir in $ac_dummy; do
2893 test -z "$ac_dir" && ac_dir=.
2894 if $as_executable_p "$ac_dir/$ac_word"; then
2895 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2896 echo "$as_me:2896: found $ac_dir/$ac_word" >&5
2904 LDCONFIG=$ac_cv_path_LDCONFIG
2906 if test -n "$LDCONFIG"; then
2907 echo "$as_me:2907: result: $LDCONFIG" >&5
2908 echo "${ECHO_T}$LDCONFIG" >&6
2910 echo "$as_me:2910: result: no" >&5
2911 echo "${ECHO_T}no" >&6
2918 echo "$as_me:2918: checking if you want to ensure bool is consistent with C++" >&5
2919 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2921 # Check whether --with-cxx or --without-cxx was given.
2922 if test "${with_cxx+set}" = set; then
2924 cf_with_cxx=$withval
2928 echo "$as_me:2928: result: $cf_with_cxx" >&5
2929 echo "${ECHO_T}$cf_with_cxx" >&6
2930 if test "X$cf_with_cxx" = Xno ; then
2934 # with autoconf 2.13, we can change the error to a warning:
2936 ac_cpp='$CXXCPP $CPPFLAGS'
2937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2940 ac_main_return=return
2941 if test -n "$ac_tool_prefix"; then
2942 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946 echo "$as_me:2946: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948 if test "${ac_cv_prog_CXX+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 if test -n "$CXX"; then
2952 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2954 ac_save_IFS=$IFS; IFS=$ac_path_separator
2956 for ac_dir in $ac_dummy; do
2958 test -z "$ac_dir" && ac_dir=.
2959 $as_executable_p "$ac_dir/$ac_word" || continue
2960 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2961 echo "$as_me:2961: found $ac_dir/$ac_word" >&5
2968 if test -n "$CXX"; then
2969 echo "$as_me:2969: result: $CXX" >&5
2970 echo "${ECHO_T}$CXX" >&6
2972 echo "$as_me:2972: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$CXX" && break
2979 if test -z "$CXX"; then
2981 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 echo "$as_me:2985: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CXX"; then
2991 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2993 ac_save_IFS=$IFS; IFS=$ac_path_separator
2995 for ac_dir in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir=.
2998 $as_executable_p "$ac_dir/$ac_word" || continue
2999 ac_cv_prog_ac_ct_CXX="$ac_prog"
3000 echo "$as_me:3000: found $ac_dir/$ac_word" >&5
3006 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3007 if test -n "$ac_ct_CXX"; then
3008 echo "$as_me:3008: result: $ac_ct_CXX" >&5
3009 echo "${ECHO_T}$ac_ct_CXX" >&6
3011 echo "$as_me:3011: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3015 test -n "$ac_ct_CXX" && break
3017 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3022 # Provide some information about the compiler.
3023 echo "$as_me:3023:" \
3024 "checking for C++ compiler version" >&5
3025 ac_compiler=`set X $ac_compile; echo $2`
3026 { (eval echo "$as_me:3026: \"$ac_compiler --version </dev/null >&5\"") >&5
3027 (eval $ac_compiler --version </dev/null >&5) 2>&5
3029 echo "$as_me:3029: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031 { (eval echo "$as_me:3031: \"$ac_compiler -v </dev/null >&5\"") >&5
3032 (eval $ac_compiler -v </dev/null >&5) 2>&5
3034 echo "$as_me:3034: \$? = $ac_status" >&5
3035 (exit $ac_status); }
3036 { (eval echo "$as_me:3036: \"$ac_compiler -V </dev/null >&5\"") >&5
3037 (eval $ac_compiler -V </dev/null >&5) 2>&5
3039 echo "$as_me:3039: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3042 echo "$as_me:3042: checking whether we are using the GNU C++ compiler" >&5
3043 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3044 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 cat >conftest.$ac_ext <<_ACEOF
3048 #line 3048 "configure"
3049 #include "confdefs.h"
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:3063: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>&5
3066 echo "$as_me:3066: \$? = $ac_status" >&5
3067 (exit $ac_status); } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (eval echo "$as_me:3069: \"$ac_try\"") >&5
3072 echo "$as_me:3072: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3076 echo "$as_me: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3080 rm -f conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3084 echo "$as_me:3084: result: $ac_cv_cxx_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3086 GXX=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CXXFLAGS=${CXXFLAGS+set}
3088 ac_save_CXXFLAGS=$CXXFLAGS
3090 echo "$as_me:3090: checking whether $CXX accepts -g" >&5
3091 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3092 if test "${ac_cv_prog_cxx_g+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 cat >conftest.$ac_ext <<_ACEOF
3096 #line 3096 "configure"
3097 #include "confdefs.h"
3107 rm -f conftest.$ac_objext
3108 if { (eval echo "$as_me:3108: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>&5
3111 echo "$as_me:3111: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (eval echo "$as_me:3114: \"$ac_try\"") >&5
3117 echo "$as_me:3117: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 ac_cv_prog_cxx_g=yes
3121 echo "$as_me: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3125 rm -f conftest.$ac_objext conftest.$ac_ext
3127 echo "$as_me:3127: result: $ac_cv_prog_cxx_g" >&5
3128 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3129 if test "$ac_test_CXXFLAGS" = set; then
3130 CXXFLAGS=$ac_save_CXXFLAGS
3131 elif test $ac_cv_prog_cxx_g = yes; then
3132 if test "$GXX" = yes; then
3138 if test "$GXX" = yes; then
3144 for ac_declaration in \
3146 '#include <stdlib.h>' \
3147 'extern "C" void std::exit (int) throw (); using std::exit;' \
3148 'extern "C" void std::exit (int); using std::exit;' \
3149 'extern "C" void exit (int) throw ();' \
3150 'extern "C" void exit (int);' \
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line 3154 "configure"
3155 #include "confdefs.h"
3166 rm -f conftest.$ac_objext
3167 if { (eval echo "$as_me:3167: \"$ac_compile\"") >&5
3168 (eval $ac_compile) 2>&5
3170 echo "$as_me:3170: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:3173: \"$ac_try\"") >&5
3176 echo "$as_me:3176: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3180 echo "$as_me: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3184 rm -f conftest.$ac_objext conftest.$ac_ext
3185 cat >conftest.$ac_ext <<_ACEOF
3186 #line 3186 "configure"
3187 #include "confdefs.h"
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:3198: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>&5
3201 echo "$as_me:3201: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:3204: \"$ac_try\"") >&5
3207 echo "$as_me:3207: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3211 echo "$as_me: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 rm -f conftest.$ac_objext conftest.$ac_ext
3217 if test -n "$ac_declaration"; then
3218 echo '#ifdef __cplusplus' >>confdefs.h
3219 echo $ac_declaration >>confdefs.h
3220 echo '#endif' >>confdefs.h
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 ac_main_return=return
3231 ac_cpp='$CXXCPP $CPPFLAGS'
3232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3235 ac_main_return=return
3237 if test "x$cf_with_cxx" != xno
3239 # Several of the C++ configurations do not work, particularly when
3240 # cross-compiling (20140913 -TD)
3241 echo "$as_me:3241: checking if $CXX works" >&5
3242 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3244 save_CPPFLAGS="$CPPFLAGS"
3245 eval cf_includedir=${includedir}
3246 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line 3249 "configure"
3250 #include "confdefs.h"
3259 printf("Hello world!\n")
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:3266: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>&5
3269 echo "$as_me:3269: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:3272: \"$ac_try\"") >&5
3275 echo "$as_me:3275: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3279 echo "$as_me: failed program was:" >&5
3280 cat conftest.$ac_ext >&5
3283 rm -f conftest.$ac_objext conftest.$ac_ext
3284 CPPFLAGS="$save_CPPFLAGS"
3286 echo "$as_me:3286: result: $cf_cxx_works" >&5
3287 echo "${ECHO_T}$cf_cxx_works" >&6
3288 if test "x$cf_cxx_works" = xno
3290 { echo "$as_me:3290: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3291 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3292 cf_with_cxx=no; CXX=""; GXX="";
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 ac_main_return=return
3302 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3303 if test "$CXX" = "g++" ; then
3304 # Extract the first word of "g++", so it can be a program name with args.
3305 set dummy g++; ac_word=$2
3306 echo "$as_me:3306: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_path_CXX+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3316 ac_save_IFS=$IFS; IFS=$ac_path_separator
3318 for ac_dir in $ac_dummy; do
3320 test -z "$ac_dir" && ac_dir=.
3321 if $as_executable_p "$ac_dir/$ac_word"; then
3322 ac_cv_path_CXX="$ac_dir/$ac_word"
3323 echo "$as_me:3323: found $ac_dir/$ac_word" >&5
3333 if test -n "$CXX"; then
3334 echo "$as_me:3334: result: $CXX" >&5
3335 echo "${ECHO_T}$CXX" >&6
3337 echo "$as_me:3337: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3344 { echo "$as_me:3344: WARNING: You don't have any C++ compiler, too bad" >&5
3345 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3346 cf_with_cxx=no; CXX=""; GXX="";
3352 if test "$GXX" = yes; then
3353 echo "$as_me:3353: checking version of ${CXX:-g++}" >&5
3354 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3355 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3356 if test -z "$GXX_VERSION"
3361 echo "$as_me:3361: result: $GXX_VERSION" >&5
3362 echo "${ECHO_T}$GXX_VERSION" >&6
3365 case $GXX_VERSION in
3369 { echo "$as_me:3369: WARNING: templates do not work" >&5
3370 echo "$as_me: WARNING: templates do not work" >&2;}
3374 echo "$as_me:3374: checking if you want to build C++ binding and demo" >&5
3375 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3377 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3378 if test "${with_cxx_binding+set}" = set; then
3379 withval="$with_cxx_binding"
3380 cf_with_cxx_binding=$withval
3382 cf_with_cxx_binding=$cf_with_cxx
3384 echo "$as_me:3384: result: $cf_with_cxx_binding" >&5
3385 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3387 echo "$as_me:3387: checking if you want to build with Ada" >&5
3388 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3389 echo "$as_me:3389: result: $cf_with_ada" >&5
3390 echo "${ECHO_T}$cf_with_ada" >&6
3392 echo "$as_me:3392: checking if you want to install terminal database" >&5
3393 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3395 # Check whether --enable-db-install or --disable-db-install was given.
3396 if test "${enable_db_install+set}" = set; then
3397 enableval="$enable_db_install"
3398 cf_with_db_install=$enableval
3400 cf_with_db_install=yes
3402 echo "$as_me:3402: result: $cf_with_db_install" >&5
3403 echo "${ECHO_T}$cf_with_db_install" >&6
3405 echo "$as_me:3405: checking if you want to install manpages" >&5
3406 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3408 # Check whether --with-manpages or --without-manpages was given.
3409 if test "${with_manpages+set}" = set; then
3410 withval="$with_manpages"
3411 cf_with_manpages=$withval
3413 cf_with_manpages=yes
3415 echo "$as_me:3415: result: $cf_with_manpages" >&5
3416 echo "${ECHO_T}$cf_with_manpages" >&6
3418 echo "$as_me:3418: checking if you want to build programs such as tic" >&5
3419 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3421 # Check whether --with-progs or --without-progs was given.
3422 if test "${with_progs+set}" = set; then
3423 withval="$with_progs"
3424 cf_with_progs=$withval
3428 echo "$as_me:3428: result: $cf_with_progs" >&5
3429 echo "${ECHO_T}$cf_with_progs" >&6
3431 if test -f $srcdir/tack/tack.h; then
3432 if test "x$cross_compiling" = xyes ; then
3433 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3435 echo "${as_me:-configure}:3435: testing ignoring tack because we are cross-compiling ..." 1>&5
3439 echo "$as_me:3439: checking if you want to build the tack program" >&5
3440 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3442 # Check whether --with-tack or --without-tack was given.
3443 if test "${with_tack+set}" = set; then
3444 withval="$with_tack"
3445 cf_with_tack=$withval
3447 cf_with_tack=$cf_with_progs
3449 echo "$as_me:3449: result: $cf_with_tack" >&5
3450 echo "${ECHO_T}$cf_with_tack" >&6
3456 echo "$as_me:3456: checking if you want to build test-programs" >&5
3457 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3459 # Check whether --with-tests or --without-tests was given.
3460 if test "${with_tests+set}" = set; then
3461 withval="$with_tests"
3462 cf_with_tests=$withval
3466 echo "$as_me:3466: result: $cf_with_tests" >&5
3467 echo "${ECHO_T}$cf_with_tests" >&6
3469 echo "$as_me:3469: checking if you wish to install curses.h" >&5
3470 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3472 # Check whether --with-curses-h or --without-curses-h was given.
3473 if test "${with_curses_h+set}" = set; then
3474 withval="$with_curses_h"
3475 with_curses_h=$withval
3479 echo "$as_me:3479: result: $with_curses_h" >&5
3480 echo "${ECHO_T}$with_curses_h" >&6
3482 modules_to_build="ncurses"
3483 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3484 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3485 modules_to_build="$modules_to_build panel menu form"
3487 test "$program_prefix" != NONE &&
3488 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3489 # Use a double $ so make ignores it.
3490 test "$program_suffix" != NONE &&
3491 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3492 # Double any \ or $. echo might interpret backslashes.
3493 # By default was `s,x,x', remove it if useless.
3494 cat <<\_ACEOF >conftest.sed
3495 s/[\\$]/&&/g;s/;s,x,x,$//
3497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3500 for ac_prog in mawk gawk nawk awk
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 echo "$as_me:3504: checking for $ac_word" >&5
3505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3506 if test "${ac_cv_prog_AWK+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 if test -n "$AWK"; then
3510 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3512 ac_save_IFS=$IFS; IFS=$ac_path_separator
3514 for ac_dir in $ac_dummy; do
3516 test -z "$ac_dir" && ac_dir=.
3517 $as_executable_p "$ac_dir/$ac_word" || continue
3518 ac_cv_prog_AWK="$ac_prog"
3519 echo "$as_me:3519: found $ac_dir/$ac_word" >&5
3526 if test -n "$AWK"; then
3527 echo "$as_me:3527: result: $AWK" >&5
3528 echo "${ECHO_T}$AWK" >&6
3530 echo "$as_me:3530: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3534 test -n "$AWK" && break
3537 test -z "$AWK" && { { echo "$as_me:3537: error: No awk program found" >&5
3538 echo "$as_me: error: No awk program found" >&2;}
3539 { (exit 1); exit 1; }; }
3541 echo "$as_me:3541: checking for egrep" >&5
3542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3543 if test "${ac_cv_prog_egrep+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3547 then ac_cv_prog_egrep='grep -E'
3548 else ac_cv_prog_egrep='egrep'
3551 echo "$as_me:3551: result: $ac_cv_prog_egrep" >&5
3552 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3553 EGREP=$ac_cv_prog_egrep
3555 test -z "$EGREP" && { { echo "$as_me:3555: error: No egrep program found" >&5
3556 echo "$as_me: error: No egrep program found" >&2;}
3557 { (exit 1); exit 1; }; }
3559 # Find a good install program. We prefer a C program (faster),
3560 # so one script is as good as another. But avoid the broken or
3561 # incompatible versions:
3562 # SysV /etc/install, /usr/sbin/install
3563 # SunOS /usr/etc/install
3564 # IRIX /sbin/install
3566 # AmigaOS /C/install, which installs bootblocks on floppy discs
3567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3570 # ./install, which can be erroneously created by make from ./install.sh.
3571 echo "$as_me:3571: checking for a BSD compatible install" >&5
3572 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3573 if test -z "$INSTALL"; then
3574 if test "${ac_cv_path_install+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 ac_save_IFS=$IFS; IFS=$ac_path_separator
3578 for ac_dir in $PATH; do
3580 # Account for people who put trailing slashes in PATH elements.
3582 / | ./ | .// | /cC/* \
3583 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3586 # OSF1 and SCO ODT 3.0 have their own names for install.
3587 # Don't use installbsd from OSF since it installs stuff as root
3589 for ac_prog in ginstall scoinst install; do
3590 if $as_executable_p "$ac_dir/$ac_prog"; then
3591 if test $ac_prog = install &&
3592 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3595 elif test $ac_prog = install &&
3596 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3600 ac_cv_path_install="$ac_dir/$ac_prog -c"
3610 if test "${ac_cv_path_install+set}" = set; then
3611 INSTALL=$ac_cv_path_install
3613 # As a last resort, use the slow shell script. We don't cache a
3614 # path for INSTALL within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the path is relative.
3617 INSTALL=$ac_install_sh
3620 echo "$as_me:3620: result: $INSTALL" >&5
3621 echo "${ECHO_T}$INSTALL" >&6
3623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624 # It thinks the first close brace ends the variable substitution.
3625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3635 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3636 test -z "$cf_dir" && cf_dir=.
3637 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3641 for ac_prog in lint cppcheck splint
3643 # Extract the first word of "$ac_prog", so it can be a program name with args.
3644 set dummy $ac_prog; ac_word=$2
3645 echo "$as_me:3645: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_prog_LINT+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 if test -n "$LINT"; then
3651 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3653 ac_save_IFS=$IFS; IFS=$ac_path_separator
3655 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 $as_executable_p "$ac_dir/$ac_word" || continue
3659 ac_cv_prog_LINT="$ac_prog"
3660 echo "$as_me:3660: found $ac_dir/$ac_word" >&5
3666 LINT=$ac_cv_prog_LINT
3667 if test -n "$LINT"; then
3668 echo "$as_me:3668: result: $LINT" >&5
3669 echo "${ECHO_T}$LINT" >&6
3671 echo "$as_me:3671: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 test -n "$LINT" && break
3679 (xcppcheck|x*/cppcheck)
3680 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3684 echo "$as_me:3684: checking whether ln -s works" >&5
3685 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3687 if test "$LN_S" = "ln -s"; then
3688 echo "$as_me:3688: result: yes" >&5
3689 echo "${ECHO_T}yes" >&6
3691 echo "$as_me:3691: result: no, using $LN_S" >&5
3692 echo "${ECHO_T}no, using $LN_S" >&6
3695 echo "$as_me:3695: checking if $LN_S -f options work" >&5
3696 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3698 rm -f conf$$.src conf$$dst
3700 echo first >conf$$.src
3701 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3706 rm -f conf$$.dst conf$$src
3707 echo "$as_me:3707: result: $cf_prog_ln_sf" >&5
3708 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3710 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3712 echo "$as_me:3712: checking for long file names" >&5
3713 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3714 if test "${ac_cv_sys_long_file_names+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 ac_cv_sys_long_file_names=yes
3718 # Test for long file names in all the places we know might matter:
3719 # . the current directory, where building will happen
3720 # $prefix/lib where we will be installing things
3721 # $exec_prefix/lib likewise
3722 # eval it to expand exec_prefix.
3723 # $TMPDIR if set, where it might want to write temporary files
3724 # if $TMPDIR is not set:
3725 # /tmp where it might want to write temporary files
3728 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3731 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3733 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3734 test -d $ac_dir || continue
3735 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3736 ac_xdir=$ac_dir/cf$$
3737 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3738 ac_tf1=$ac_xdir/conftest9012345
3739 ac_tf2=$ac_xdir/conftest9012346
3740 (echo 1 >$ac_tf1) 2>/dev/null
3741 (echo 2 >$ac_tf2) 2>/dev/null
3742 ac_val=`cat $ac_tf1 2>/dev/null`
3743 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3744 ac_cv_sys_long_file_names=no
3745 rm -rf $ac_xdir 2>/dev/null
3748 rm -rf $ac_xdir 2>/dev/null
3751 echo "$as_me:3751: result: $ac_cv_sys_long_file_names" >&5
3752 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3753 if test $ac_cv_sys_long_file_names = yes; then
3755 cat >>confdefs.h <<\EOF
3756 #define HAVE_LONG_FILE_NAMES 1
3761 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3762 # of package conflict.
3765 # Check whether --with-config-suffix or --without-config-suffix was given.
3766 if test "${with_config_suffix+set}" = set; then
3767 withval="$with_config_suffix"
3770 { echo "$as_me:3770: WARNING: expected a value for config-suffix option" >&5
3771 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3773 (*) cf_config_suffix="$withval"
3778 # If we find pkg-config, check if we should install the ".pc" files.
3780 echo "$as_me:3780: checking if you want to use pkg-config" >&5
3781 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3783 # Check whether --with-pkg-config or --without-pkg-config was given.
3784 if test "${with_pkg_config+set}" = set; then
3785 withval="$with_pkg_config"
3786 cf_pkg_config=$withval
3790 echo "$as_me:3790: result: $cf_pkg_config" >&5
3791 echo "${ECHO_T}$cf_pkg_config" >&6
3793 case $cf_pkg_config in
3799 if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3802 echo "$as_me:3802: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3812 ac_save_IFS=$IFS; IFS=$ac_path_separator
3814 for ac_dir in $ac_dummy; do
3816 test -z "$ac_dir" && ac_dir=.
3817 if $as_executable_p "$ac_dir/$ac_word"; then
3818 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3819 echo "$as_me:3819: found $ac_dir/$ac_word" >&5
3827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3829 if test -n "$PKG_CONFIG"; then
3830 echo "$as_me:3830: result: $PKG_CONFIG" >&5
3831 echo "${ECHO_T}$PKG_CONFIG" >&6
3833 echo "$as_me:3833: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3838 if test -z "$ac_cv_path_PKG_CONFIG"; then
3839 ac_pt_PKG_CONFIG=$PKG_CONFIG
3840 # Extract the first word of "pkg-config", so it can be a program name with args.
3841 set dummy pkg-config; ac_word=$2
3842 echo "$as_me:3842: checking for $ac_word" >&5
3843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3844 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 case $ac_pt_PKG_CONFIG in
3849 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3852 ac_save_IFS=$IFS; IFS=$ac_path_separator
3854 for ac_dir in $ac_dummy; do
3856 test -z "$ac_dir" && ac_dir=.
3857 if $as_executable_p "$ac_dir/$ac_word"; then
3858 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3859 echo "$as_me:3859: found $ac_dir/$ac_word" >&5
3864 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3868 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3870 if test -n "$ac_pt_PKG_CONFIG"; then
3871 echo "$as_me:3871: result: $ac_pt_PKG_CONFIG" >&5
3872 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3874 echo "$as_me:3874: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3878 PKG_CONFIG=$ac_pt_PKG_CONFIG
3880 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3889 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3890 if test "$PKG_CONFIG" != none ; then
3892 if test "x$prefix" != xNONE; then
3893 cf_path_syntax="$prefix"
3895 cf_path_syntax="$ac_default_prefix"
3898 case ".$PKG_CONFIG" in
3903 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3905 (.\${*prefix}*|.\${*dir}*)
3906 eval PKG_CONFIG="$PKG_CONFIG"
3907 case ".$PKG_CONFIG" in
3909 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3914 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3917 { { echo "$as_me:3917: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3918 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3919 { (exit 1); exit 1; }; }
3923 elif test "x$cf_pkg_config" != xno ; then
3924 { echo "$as_me:3924: WARNING: pkg-config is not installed" >&5
3925 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3930 echo "$as_me:3930: checking for pkg-config library directory" >&5
3931 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3934 echo "$as_me:3934: checking for $PKG_CONFIG library directory" >&5
3935 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3939 PKG_CONFIG_LIBDIR=no
3941 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3942 if test "${with_pkg_config_libdir+set}" = set; then
3943 withval="$with_pkg_config_libdir"
3944 PKG_CONFIG_LIBDIR=$withval
3946 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3949 case x$PKG_CONFIG_LIBDIR in
3953 # Look for the library directory using the same prefix as the executable
3954 if test "x$PKG_CONFIG" = xnone
3958 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3961 # If you don't like using the default architecture, you have to specify the
3962 # intended library directory and corresponding compiler/linker options.
3964 # This case allows for Debian's 2014-flavor of multiarch, along with the
3965 # most common variations before that point. Some other variants spell the
3966 # directory differently, e.g., "pkg-config", and put it in unusual places.
3967 # pkg-config has always been poorly standardized, which is ironic...
3968 case x`(arch) 2>/dev/null` in
3971 $cf_path/lib/*64-linux-gnu \
3979 $cf_path/lib/*-linux-gnu \
3987 test -n "$verbose" && echo " list..." 1>&6
3989 echo "${as_me:-configure}:3989: testing list... ..." 1>&5
3991 for cf_config in $cf_search_path
3993 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3995 echo "${as_me:-configure}:3995: testing checking $cf_config/pkgconfig ..." 1>&5
3997 if test -d $cf_config/pkgconfig
3999 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
4000 echo "$as_me:4000: checking done" >&5
4001 echo $ECHO_N "checking done... $ECHO_C" >&6
4010 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
4011 echo "$as_me:4011: result: $PKG_CONFIG_LIBDIR" >&5
4012 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4015 if test "x$PKG_CONFIG" != xnone
4017 echo "$as_me:4017: checking if we should install .pc files for $PKG_CONFIG" >&5
4018 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4020 echo "$as_me:4020: checking if we should install .pc files" >&5
4021 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4024 # Check whether --enable-pc-files or --disable-pc-files was given.
4025 if test "${enable_pc_files+set}" = set; then
4026 enableval="$enable_pc_files"
4027 enable_pc_files=$enableval
4031 echo "$as_me:4031: result: $enable_pc_files" >&5
4032 echo "${ECHO_T}$enable_pc_files" >&6
4034 if test "x$enable_pc_files" != xno
4037 case "x$PKG_CONFIG_LIBDIR" in
4039 { echo "$as_me:4039: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4040 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4044 if test "x$prefix" != xNONE; then
4045 cf_path_syntax="$prefix"
4047 cf_path_syntax="$ac_default_prefix"
4050 case ".$PKG_CONFIG_LIBDIR" in
4055 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4057 (.\${*prefix}*|.\${*dir}*)
4058 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4059 case ".$PKG_CONFIG_LIBDIR" in
4061 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4066 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
4069 { { echo "$as_me:4069: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4070 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4071 { (exit 1); exit 1; }; }
4081 if test -z "$MAKE_PC_FILES"
4083 echo "$as_me:4083: checking for suffix to add to pc-files" >&5
4084 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4086 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4087 if test "${with_pc_suffix+set}" = set; then
4088 withval="$with_pc_suffix"
4093 (*) PC_MODULE_SUFFIX="$withval"
4097 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4098 echo "$as_me:4098: result: $PC_MODULE_SUFFIX" >&5
4099 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4100 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4104 echo "$as_me:4104: checking if we should assume mixed-case filenames" >&5
4105 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4107 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4108 if test "${enable_mixed_case+set}" = set; then
4109 enableval="$enable_mixed_case"
4110 enable_mixedcase=$enableval
4112 enable_mixedcase=auto
4114 echo "$as_me:4114: result: $enable_mixedcase" >&5
4115 echo "${ECHO_T}$enable_mixedcase" >&6
4116 if test "$enable_mixedcase" = "auto" ; then
4118 echo "$as_me:4118: checking if filesystem supports mixed-case filenames" >&5
4119 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4120 if test "${cf_cv_mixedcase+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test "$cross_compiling" = yes ; then
4125 case $target_alias in
4126 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
4134 rm -f conftest CONFTEST
4136 if test -f CONFTEST ; then
4141 rm -f conftest CONFTEST
4145 echo "$as_me:4145: result: $cf_cv_mixedcase" >&5
4146 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4147 test "$cf_cv_mixedcase" = yes &&
4148 cat >>confdefs.h <<\EOF
4149 #define MIXEDCASE_FILENAMES 1
4153 cf_cv_mixedcase=$enable_mixedcase
4154 if test "x$enable_mixedcase" = "xyes" ; then
4156 cat >>confdefs.h <<\EOF
4157 #define MIXEDCASE_FILENAMES 1
4163 # do this after mixed-case option (tags/TAGS is not as important as tic).
4164 echo "$as_me:4164: checking whether ${MAKE-make} sets \${MAKE}" >&5
4165 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4166 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4167 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 cat >conftest.make <<\EOF
4172 @echo 'ac_maketemp="${MAKE}"'
4174 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4175 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4176 if test -n "$ac_maketemp"; then
4177 eval ac_cv_prog_make_${ac_make}_set=yes
4179 eval ac_cv_prog_make_${ac_make}_set=no
4183 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4184 echo "$as_me:4184: result: yes" >&5
4185 echo "${ECHO_T}yes" >&6
4188 echo "$as_me:4188: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4190 SET_MAKE="MAKE=${MAKE-make}"
4193 for ac_prog in exctags ctags
4195 # Extract the first word of "$ac_prog", so it can be a program name with args.
4196 set dummy $ac_prog; ac_word=$2
4197 echo "$as_me:4197: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_prog_CTAGS+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 if test -n "$CTAGS"; then
4203 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4205 ac_save_IFS=$IFS; IFS=$ac_path_separator
4207 for ac_dir in $ac_dummy; do
4209 test -z "$ac_dir" && ac_dir=.
4210 $as_executable_p "$ac_dir/$ac_word" || continue
4211 ac_cv_prog_CTAGS="$ac_prog"
4212 echo "$as_me:4212: found $ac_dir/$ac_word" >&5
4218 CTAGS=$ac_cv_prog_CTAGS
4219 if test -n "$CTAGS"; then
4220 echo "$as_me:4220: result: $CTAGS" >&5
4221 echo "${ECHO_T}$CTAGS" >&6
4223 echo "$as_me:4223: result: no" >&5
4224 echo "${ECHO_T}no" >&6
4227 test -n "$CTAGS" && break
4230 for ac_prog in exetags etags
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 echo "$as_me:4234: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_ETAGS+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 if test -n "$ETAGS"; then
4240 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4242 ac_save_IFS=$IFS; IFS=$ac_path_separator
4244 for ac_dir in $ac_dummy; do
4246 test -z "$ac_dir" && ac_dir=.
4247 $as_executable_p "$ac_dir/$ac_word" || continue
4248 ac_cv_prog_ETAGS="$ac_prog"
4249 echo "$as_me:4249: found $ac_dir/$ac_word" >&5
4255 ETAGS=$ac_cv_prog_ETAGS
4256 if test -n "$ETAGS"; then
4257 echo "$as_me:4257: result: $ETAGS" >&5
4258 echo "${ECHO_T}$ETAGS" >&6
4260 echo "$as_me:4260: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4264 test -n "$ETAGS" && break
4267 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4268 set dummy ${CTAGS:-ctags}; ac_word=$2
4269 echo "$as_me:4269: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$MAKE_LOWER_TAGS"; then
4275 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4277 ac_save_IFS=$IFS; IFS=$ac_path_separator
4279 for ac_dir in $ac_dummy; do
4281 test -z "$ac_dir" && ac_dir=.
4282 $as_executable_p "$ac_dir/$ac_word" || continue
4283 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4284 echo "$as_me:4284: found $ac_dir/$ac_word" >&5
4288 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4291 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4292 if test -n "$MAKE_LOWER_TAGS"; then
4293 echo "$as_me:4293: result: $MAKE_LOWER_TAGS" >&5
4294 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4296 echo "$as_me:4296: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4300 if test "$cf_cv_mixedcase" = yes ; then
4301 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4302 set dummy ${ETAGS:-etags}; ac_word=$2
4303 echo "$as_me:4303: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$MAKE_UPPER_TAGS"; then
4309 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4311 ac_save_IFS=$IFS; IFS=$ac_path_separator
4313 for ac_dir in $ac_dummy; do
4315 test -z "$ac_dir" && ac_dir=.
4316 $as_executable_p "$ac_dir/$ac_word" || continue
4317 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4318 echo "$as_me:4318: found $ac_dir/$ac_word" >&5
4322 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4325 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4326 if test -n "$MAKE_UPPER_TAGS"; then
4327 echo "$as_me:4327: result: $MAKE_UPPER_TAGS" >&5
4328 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4330 echo "$as_me:4330: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4338 if test "$MAKE_UPPER_TAGS" = yes ; then
4344 if test "$MAKE_LOWER_TAGS" = yes ; then
4350 echo "$as_me:4350: checking for makeflags variable" >&5
4351 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4352 if test "${cf_cv_makeflags+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4359 cat >cf_makeflags.tmp <<CF_EOF
4362 @ echo '.$cf_option'
4364 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4365 case "$cf_result" in
4367 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4368 case "$cf_result" in
4369 (.*CC=*) cf_cv_makeflags=
4371 (*) cf_cv_makeflags=$cf_option
4380 echo "${as_me:-configure}:4380: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4385 rm -f cf_makeflags.tmp
4388 echo "$as_me:4388: result: $cf_cv_makeflags" >&5
4389 echo "${ECHO_T}$cf_cv_makeflags" >&6
4391 if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4394 echo "$as_me:4394: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_RANLIB+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$RANLIB"; then
4400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4402 ac_save_IFS=$IFS; IFS=$ac_path_separator
4404 for ac_dir in $ac_dummy; do
4406 test -z "$ac_dir" && ac_dir=.
4407 $as_executable_p "$ac_dir/$ac_word" || continue
4408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4409 echo "$as_me:4409: found $ac_dir/$ac_word" >&5
4415 RANLIB=$ac_cv_prog_RANLIB
4416 if test -n "$RANLIB"; then
4417 echo "$as_me:4417: result: $RANLIB" >&5
4418 echo "${ECHO_T}$RANLIB" >&6
4420 echo "$as_me:4420: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4425 if test -z "$ac_cv_prog_RANLIB"; then
4426 ac_ct_RANLIB=$RANLIB
4427 # Extract the first word of "ranlib", so it can be a program name with args.
4428 set dummy ranlib; ac_word=$2
4429 echo "$as_me:4429: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$ac_ct_RANLIB"; then
4435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4437 ac_save_IFS=$IFS; IFS=$ac_path_separator
4439 for ac_dir in $ac_dummy; do
4441 test -z "$ac_dir" && ac_dir=.
4442 $as_executable_p "$ac_dir/$ac_word" || continue
4443 ac_cv_prog_ac_ct_RANLIB="ranlib"
4444 echo "$as_me:4444: found $ac_dir/$ac_word" >&5
4448 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4452 if test -n "$ac_ct_RANLIB"; then
4453 echo "$as_me:4453: result: $ac_ct_RANLIB" >&5
4454 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4456 echo "$as_me:4456: result: no" >&5
4457 echo "${ECHO_T}no" >&6
4460 RANLIB=$ac_ct_RANLIB
4462 RANLIB="$ac_cv_prog_RANLIB"
4465 if test -n "$ac_tool_prefix"; then
4466 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4467 set dummy ${ac_tool_prefix}ld; ac_word=$2
4468 echo "$as_me:4468: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_prog_LD+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$LD"; then
4474 ac_cv_prog_LD="$LD" # Let the user override the test.
4476 ac_save_IFS=$IFS; IFS=$ac_path_separator
4478 for ac_dir in $ac_dummy; do
4480 test -z "$ac_dir" && ac_dir=.
4481 $as_executable_p "$ac_dir/$ac_word" || continue
4482 ac_cv_prog_LD="${ac_tool_prefix}ld"
4483 echo "$as_me:4483: found $ac_dir/$ac_word" >&5
4490 if test -n "$LD"; then
4491 echo "$as_me:4491: result: $LD" >&5
4492 echo "${ECHO_T}$LD" >&6
4494 echo "$as_me:4494: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4499 if test -z "$ac_cv_prog_LD"; then
4501 # Extract the first word of "ld", so it can be a program name with args.
4502 set dummy ld; ac_word=$2
4503 echo "$as_me:4503: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$ac_ct_LD"; then
4509 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4511 ac_save_IFS=$IFS; IFS=$ac_path_separator
4513 for ac_dir in $ac_dummy; do
4515 test -z "$ac_dir" && ac_dir=.
4516 $as_executable_p "$ac_dir/$ac_word" || continue
4517 ac_cv_prog_ac_ct_LD="ld"
4518 echo "$as_me:4518: found $ac_dir/$ac_word" >&5
4522 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4525 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4526 if test -n "$ac_ct_LD"; then
4527 echo "$as_me:4527: result: $ac_ct_LD" >&5
4528 echo "${ECHO_T}$ac_ct_LD" >&6
4530 echo "$as_me:4530: result: no" >&5
4531 echo "${ECHO_T}no" >&6
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}ar; ac_word=$2
4542 echo "$as_me:4542: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_prog_AR+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 if test -n "$AR"; then
4548 ac_cv_prog_AR="$AR" # Let the user override the test.
4550 ac_save_IFS=$IFS; IFS=$ac_path_separator
4552 for ac_dir in $ac_dummy; do
4554 test -z "$ac_dir" && ac_dir=.
4555 $as_executable_p "$ac_dir/$ac_word" || continue
4556 ac_cv_prog_AR="${ac_tool_prefix}ar"
4557 echo "$as_me:4557: found $ac_dir/$ac_word" >&5
4564 if test -n "$AR"; then
4565 echo "$as_me:4565: result: $AR" >&5
4566 echo "${ECHO_T}$AR" >&6
4568 echo "$as_me:4568: result: no" >&5
4569 echo "${ECHO_T}no" >&6
4573 if test -z "$ac_cv_prog_AR"; then
4575 # Extract the first word of "ar", so it can be a program name with args.
4576 set dummy ar; ac_word=$2
4577 echo "$as_me:4577: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 if test -n "$ac_ct_AR"; then
4583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4585 ac_save_IFS=$IFS; IFS=$ac_path_separator
4587 for ac_dir in $ac_dummy; do
4589 test -z "$ac_dir" && ac_dir=.
4590 $as_executable_p "$ac_dir/$ac_word" || continue
4591 ac_cv_prog_ac_ct_AR="ar"
4592 echo "$as_me:4592: found $ac_dir/$ac_word" >&5
4596 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4600 if test -n "$ac_ct_AR"; then
4601 echo "$as_me:4601: result: $ac_ct_AR" >&5
4602 echo "${ECHO_T}$ac_ct_AR" >&6
4604 echo "$as_me:4604: result: no" >&5
4605 echo "${ECHO_T}no" >&6
4613 if test -n "$ac_tool_prefix"; then
4614 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4615 set dummy ${ac_tool_prefix}nm; ac_word=$2
4616 echo "$as_me:4616: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_prog_NM+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 if test -n "$NM"; then
4622 ac_cv_prog_NM="$NM" # Let the user override the test.
4624 ac_save_IFS=$IFS; IFS=$ac_path_separator
4626 for ac_dir in $ac_dummy; do
4628 test -z "$ac_dir" && ac_dir=.
4629 $as_executable_p "$ac_dir/$ac_word" || continue
4630 ac_cv_prog_NM="${ac_tool_prefix}nm"
4631 echo "$as_me:4631: found $ac_dir/$ac_word" >&5
4638 if test -n "$NM"; then
4639 echo "$as_me:4639: result: $NM" >&5
4640 echo "${ECHO_T}$NM" >&6
4642 echo "$as_me:4642: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4647 if test -z "$ac_cv_prog_NM"; then
4649 # Extract the first word of "nm", so it can be a program name with args.
4650 set dummy nm; ac_word=$2
4651 echo "$as_me:4651: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test -n "$ac_ct_NM"; then
4657 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4659 ac_save_IFS=$IFS; IFS=$ac_path_separator
4661 for ac_dir in $ac_dummy; do
4663 test -z "$ac_dir" && ac_dir=.
4664 $as_executable_p "$ac_dir/$ac_word" || continue
4665 ac_cv_prog_ac_ct_NM="nm"
4666 echo "$as_me:4666: found $ac_dir/$ac_word" >&5
4670 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4673 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4674 if test -n "$ac_ct_NM"; then
4675 echo "$as_me:4675: result: $ac_ct_NM" >&5
4676 echo "${ECHO_T}$ac_ct_NM" >&6
4678 echo "$as_me:4678: result: no" >&5
4679 echo "${ECHO_T}no" >&6
4687 if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4689 set dummy ${ac_tool_prefix}ar; ac_word=$2
4690 echo "$as_me:4690: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692 if test "${ac_cv_prog_AR+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test -n "$AR"; then
4696 ac_cv_prog_AR="$AR" # Let the user override the test.
4698 ac_save_IFS=$IFS; IFS=$ac_path_separator
4700 for ac_dir in $ac_dummy; do
4702 test -z "$ac_dir" && ac_dir=.
4703 $as_executable_p "$ac_dir/$ac_word" || continue
4704 ac_cv_prog_AR="${ac_tool_prefix}ar"
4705 echo "$as_me:4705: found $ac_dir/$ac_word" >&5
4712 if test -n "$AR"; then
4713 echo "$as_me:4713: result: $AR" >&5
4714 echo "${ECHO_T}$AR" >&6
4716 echo "$as_me:4716: result: no" >&5
4717 echo "${ECHO_T}no" >&6
4721 if test -z "$ac_cv_prog_AR"; then
4723 # Extract the first word of "ar", so it can be a program name with args.
4724 set dummy ar; ac_word=$2
4725 echo "$as_me:4725: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4727 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 if test -n "$ac_ct_AR"; then
4731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4733 ac_save_IFS=$IFS; IFS=$ac_path_separator
4735 for ac_dir in $ac_dummy; do
4737 test -z "$ac_dir" && ac_dir=.
4738 $as_executable_p "$ac_dir/$ac_word" || continue
4739 ac_cv_prog_ac_ct_AR="ar"
4740 echo "$as_me:4740: found $ac_dir/$ac_word" >&5
4744 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4747 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4748 if test -n "$ac_ct_AR"; then
4749 echo "$as_me:4749: result: $ac_ct_AR" >&5
4750 echo "${ECHO_T}$ac_ct_AR" >&6
4752 echo "$as_me:4752: result: no" >&5
4753 echo "${ECHO_T}no" >&6
4761 echo "$as_me:4761: checking for options to update archives" >&5
4762 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4763 if test "${cf_cv_ar_flags+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 case $cf_cv_system_name in
4770 cat >mk_static_lib.sh <<-EOF
4775 exec \$MSVC_BIN -out:"\$out" \$@
4777 chmod +x mk_static_lib.sh
4778 AR=`pwd`/mk_static_lib.sh
4781 cf_cv_ar_flags=unknown
4782 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4785 # check if $ARFLAGS already contains this choice
4786 if test "x$ARFLAGS" != "x" ; then
4787 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4788 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4794 rm -f conftest.$ac_cv_objext
4797 cat >conftest.$ac_ext <<EOF
4798 #line 4798 "configure"
4799 int testdata[3] = { 123, 456, 789 };
4801 if { (eval echo "$as_me:4801: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>&5
4804 echo "$as_me:4804: \$? = $ac_status" >&5
4805 (exit $ac_status); } ; then
4806 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4807 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4808 if test -f conftest.a ; then
4809 cf_cv_ar_flags=$cf_ar_flags
4813 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4815 echo "${as_me:-configure}:4815: testing cannot compile test-program ..." 1>&5
4820 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4825 echo "$as_me:4825: result: $cf_cv_ar_flags" >&5
4826 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4828 if test -n "$ARFLAGS" ; then
4829 if test -n "$cf_cv_ar_flags" ; then
4830 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4833 ARFLAGS=$cf_cv_ar_flags
4836 echo "$as_me:4836: checking if you have specified an install-prefix" >&5
4837 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4839 # Check whether --with-install-prefix or --without-install-prefix was given.
4840 if test "${with_install_prefix+set}" = set; then
4841 withval="$with_install_prefix"
4845 (*) DESTDIR="$withval"
4849 echo "$as_me:4849: result: $DESTDIR" >&5
4850 echo "${ECHO_T}$DESTDIR" >&6
4852 ###############################################################################
4854 # If we're cross-compiling, allow the user to override the tools and their
4855 # options. The configure script is oriented toward identifying the host
4856 # compiler, etc., but we need a build compiler to generate parts of the source.
4858 case $cf_cv_system_name in
4860 LDFLAGS="$LDFLAGS user32.lib"
4865 if test "$cross_compiling" = yes ; then
4867 # defaults that we might want to override
4868 : ${BUILD_CFLAGS:=''}
4869 : ${BUILD_CPPFLAGS:=''}
4870 : ${BUILD_LDFLAGS:=''}
4872 : ${BUILD_EXEEXT:='$x'}
4873 : ${BUILD_OBJEXT:='o'}
4875 # Check whether --with-build-cc or --without-build-cc was given.
4876 if test "${with_build_cc+set}" = set; then
4877 withval="$with_build_cc"
4880 for ac_prog in gcc clang c99 c89 cc cl
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 echo "$as_me:4884: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 if test -n "$BUILD_CC"; then
4890 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4892 ac_save_IFS=$IFS; IFS=$ac_path_separator
4894 for ac_dir in $ac_dummy; do
4896 test -z "$ac_dir" && ac_dir=.
4897 $as_executable_p "$ac_dir/$ac_word" || continue
4898 ac_cv_prog_BUILD_CC="$ac_prog"
4899 echo "$as_me:4899: found $ac_dir/$ac_word" >&5
4905 BUILD_CC=$ac_cv_prog_BUILD_CC
4906 if test -n "$BUILD_CC"; then
4907 echo "$as_me:4907: result: $BUILD_CC" >&5
4908 echo "${ECHO_T}$BUILD_CC" >&6
4910 echo "$as_me:4910: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4914 test -n "$BUILD_CC" && break
4916 test -n "$BUILD_CC" || BUILD_CC="none"
4919 echo "$as_me:4919: checking for native build C compiler" >&5
4920 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4921 echo "$as_me:4921: result: $BUILD_CC" >&5
4922 echo "${ECHO_T}$BUILD_CC" >&6
4924 echo "$as_me:4924: checking for native build C preprocessor" >&5
4925 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4927 # Check whether --with-build-cpp or --without-build-cpp was given.
4928 if test "${with_build_cpp+set}" = set; then
4929 withval="$with_build_cpp"
4930 BUILD_CPP="$withval"
4932 BUILD_CPP='${BUILD_CC} -E'
4934 echo "$as_me:4934: result: $BUILD_CPP" >&5
4935 echo "${ECHO_T}$BUILD_CPP" >&6
4937 echo "$as_me:4937: checking for native build C flags" >&5
4938 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4940 # Check whether --with-build-cflags or --without-build-cflags was given.
4941 if test "${with_build_cflags+set}" = set; then
4942 withval="$with_build_cflags"
4943 BUILD_CFLAGS="$withval"
4945 echo "$as_me:4945: result: $BUILD_CFLAGS" >&5
4946 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4948 echo "$as_me:4948: checking for native build C preprocessor-flags" >&5
4949 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4951 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4952 if test "${with_build_cppflags+set}" = set; then
4953 withval="$with_build_cppflags"
4954 BUILD_CPPFLAGS="$withval"
4956 echo "$as_me:4956: result: $BUILD_CPPFLAGS" >&5
4957 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4959 echo "$as_me:4959: checking for native build linker-flags" >&5
4960 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4962 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4963 if test "${with_build_ldflags+set}" = set; then
4964 withval="$with_build_ldflags"
4965 BUILD_LDFLAGS="$withval"
4967 echo "$as_me:4967: result: $BUILD_LDFLAGS" >&5
4968 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4970 echo "$as_me:4970: checking for native build linker-libraries" >&5
4971 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4973 # Check whether --with-build-libs or --without-build-libs was given.
4974 if test "${with_build_libs+set}" = set; then
4975 withval="$with_build_libs"
4976 BUILD_LIBS="$withval"
4978 echo "$as_me:4978: result: $BUILD_LIBS" >&5
4979 echo "${ECHO_T}$BUILD_LIBS" >&6
4981 # this assumes we're on Unix.
4985 : ${BUILD_CC:='${CC}'}
4987 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4988 { { echo "$as_me:4988: error: Cross-build requires two compilers.
4989 Use --with-build-cc to specify the native compiler." >&5
4990 echo "$as_me: error: Cross-build requires two compilers.
4991 Use --with-build-cc to specify the native compiler." >&2;}
4992 { (exit 1); exit 1; }; }
4996 : ${BUILD_CC:='${CC}'}
4997 : ${BUILD_CPP:='${CPP}'}
4998 : ${BUILD_CFLAGS:='${CFLAGS}'}
4999 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5000 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5001 : ${BUILD_LIBS:='${LIBS}'}
5002 : ${BUILD_EXEEXT:='$x'}
5003 : ${BUILD_OBJEXT:='o'}
5006 ###############################################################################
5008 ### Options to allow the user to specify the set of libraries which are used.
5009 ### Use "--without-normal --with-shared" to allow the default model to be
5010 ### shared, for example.
5013 echo "$as_me:5013: checking if libtool -version-number should be used" >&5
5014 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5016 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5017 if test "${enable_libtool_version+set}" = set; then
5018 enableval="$enable_libtool_version"
5019 test "$enableval" != no && enableval=yes
5020 if test "$enableval" != "yes" ; then
5021 cf_libtool_version=no
5023 cf_libtool_version=yes
5027 cf_libtool_version=yes
5030 echo "$as_me:5030: result: $cf_libtool_version" >&5
5031 echo "${ECHO_T}$cf_libtool_version" >&6
5033 if test "$cf_libtool_version" = yes ; then
5034 LIBTOOL_VERSION="-version-number"
5036 LIBTOOL_VERSION="-version-info"
5039 { echo "$as_me:5039: WARNING: VERSION was not set" >&5
5040 echo "$as_me: WARNING: VERSION was not set" >&2;}
5043 ABI_VERSION="$VERSION"
5044 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5046 echo "${as_me:-configure}:5046: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5050 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5051 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5053 echo "${as_me:-configure}:5053: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5057 { echo "$as_me:5057: WARNING: unexpected VERSION value: $VERSION" >&5
5058 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5065 # common library maintenance symbols that are convenient for libtool scripts:
5066 LIB_CREATE='${AR} -cr'
5067 LIB_OBJECT='${OBJECTS}'
5071 # symbols used to prop libtool up to enable it to determine what it should be
5079 echo "$as_me:5079: checking if you want to build libraries with libtool" >&5
5080 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5082 # Check whether --with-libtool or --without-libtool was given.
5083 if test "${with_libtool+set}" = set; then
5084 withval="$with_libtool"
5085 with_libtool=$withval
5089 echo "$as_me:5089: result: $with_libtool" >&5
5090 echo "${ECHO_T}$with_libtool" >&6
5091 if test "$with_libtool" != "no"; then
5093 if test "$with_libtool" != "yes" ; then
5095 if test "x$prefix" != xNONE; then
5096 cf_path_syntax="$prefix"
5098 cf_path_syntax="$ac_default_prefix"
5101 case ".$with_libtool" in
5106 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5108 (.\${*prefix}*|.\${*dir}*)
5109 eval with_libtool="$with_libtool"
5110 case ".$with_libtool" in
5112 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5117 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
5120 { { echo "$as_me:5120: error: expected a pathname, not \"$with_libtool\"" >&5
5121 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5122 { (exit 1); exit 1; }; }
5126 LIBTOOL=$with_libtool
5128 if test -n "$ac_tool_prefix"; then
5129 for ac_prog in libtool glibtool
5131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5133 echo "$as_me:5133: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 if test -n "$LIBTOOL"; then
5139 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5141 ac_save_IFS=$IFS; IFS=$ac_path_separator
5143 for ac_dir in $ac_dummy; do
5145 test -z "$ac_dir" && ac_dir=.
5146 $as_executable_p "$ac_dir/$ac_word" || continue
5147 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5148 echo "$as_me:5148: found $ac_dir/$ac_word" >&5
5154 LIBTOOL=$ac_cv_prog_LIBTOOL
5155 if test -n "$LIBTOOL"; then
5156 echo "$as_me:5156: result: $LIBTOOL" >&5
5157 echo "${ECHO_T}$LIBTOOL" >&6
5159 echo "$as_me:5159: result: no" >&5
5160 echo "${ECHO_T}no" >&6
5163 test -n "$LIBTOOL" && break
5166 if test -z "$LIBTOOL"; then
5167 ac_ct_LIBTOOL=$LIBTOOL
5168 for ac_prog in libtool glibtool
5170 # Extract the first word of "$ac_prog", so it can be a program name with args.
5171 set dummy $ac_prog; ac_word=$2
5172 echo "$as_me:5172: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$ac_ct_LIBTOOL"; then
5178 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5180 ac_save_IFS=$IFS; IFS=$ac_path_separator
5182 for ac_dir in $ac_dummy; do
5184 test -z "$ac_dir" && ac_dir=.
5185 $as_executable_p "$ac_dir/$ac_word" || continue
5186 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5187 echo "$as_me:5187: found $ac_dir/$ac_word" >&5
5193 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5194 if test -n "$ac_ct_LIBTOOL"; then
5195 echo "$as_me:5195: result: $ac_ct_LIBTOOL" >&5
5196 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5198 echo "$as_me:5198: result: no" >&5
5199 echo "${ECHO_T}no" >&6
5202 test -n "$ac_ct_LIBTOOL" && break
5204 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5206 LIBTOOL=$ac_ct_LIBTOOL
5209 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5211 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.].*//'`
5213 cf_cv_libtool_version=
5215 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5217 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5220 unset ac_cv_prog_ac_ct_LIBTOOL
5224 if test -n "$ac_tool_prefix"; then
5225 for ac_prog in glibtool
5227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5229 echo "$as_me:5229: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 if test -n "$LIBTOOL"; then
5235 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5237 ac_save_IFS=$IFS; IFS=$ac_path_separator
5239 for ac_dir in $ac_dummy; do
5241 test -z "$ac_dir" && ac_dir=.
5242 $as_executable_p "$ac_dir/$ac_word" || continue
5243 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5244 echo "$as_me:5244: found $ac_dir/$ac_word" >&5
5250 LIBTOOL=$ac_cv_prog_LIBTOOL
5251 if test -n "$LIBTOOL"; then
5252 echo "$as_me:5252: result: $LIBTOOL" >&5
5253 echo "${ECHO_T}$LIBTOOL" >&6
5255 echo "$as_me:5255: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5259 test -n "$LIBTOOL" && break
5262 if test -z "$LIBTOOL"; then
5263 ac_ct_LIBTOOL=$LIBTOOL
5264 for ac_prog in glibtool
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 echo "$as_me:5268: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test -n "$ac_ct_LIBTOOL"; then
5274 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5276 ac_save_IFS=$IFS; IFS=$ac_path_separator
5278 for ac_dir in $ac_dummy; do
5280 test -z "$ac_dir" && ac_dir=.
5281 $as_executable_p "$ac_dir/$ac_word" || continue
5282 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5283 echo "$as_me:5283: found $ac_dir/$ac_word" >&5
5289 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5290 if test -n "$ac_ct_LIBTOOL"; then
5291 echo "$as_me:5291: result: $ac_ct_LIBTOOL" >&5
5292 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5294 echo "$as_me:5294: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5298 test -n "$ac_ct_LIBTOOL" && break
5300 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5302 LIBTOOL=$ac_ct_LIBTOOL
5305 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5307 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.].*//'`
5309 cf_cv_libtool_version=
5311 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5315 if test -z "$LIBTOOL" ; then
5316 { { echo "$as_me:5316: error: Cannot find libtool" >&5
5317 echo "$as_me: error: Cannot find libtool" >&2;}
5318 { (exit 1); exit 1; }; }
5320 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5321 LIB_OBJECT='${OBJECTS:.o=.lo}'
5323 LIB_CLEAN='${LIBTOOL} --mode=clean'
5324 LIB_COMPILE='${LIBTOOL} --mode=compile'
5325 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5326 LIB_INSTALL='${LIBTOOL} --mode=install'
5327 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5330 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5332 echo "$as_me:5332: checking version of $LIBTOOL" >&5
5333 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5335 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5337 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.].*//'`
5339 cf_cv_libtool_version=
5341 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5343 echo "$as_me:5343: result: $cf_cv_libtool_version" >&5
5344 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5345 if test -z "$cf_cv_libtool_version" ; then
5346 { { echo "$as_me:5346: error: This is not GNU libtool" >&5
5347 echo "$as_me: error: This is not GNU libtool" >&2;}
5348 { (exit 1); exit 1; }; }
5351 { { echo "$as_me:5351: error: GNU libtool has not been found" >&5
5352 echo "$as_me: error: GNU libtool has not been found" >&2;}
5353 { (exit 1); exit 1; }; }
5356 # special hack to add -no-undefined (which libtool should do for itself)
5358 case "$cf_cv_system_name" in
5359 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5360 LT_UNDEF=-no-undefined
5364 # special hack to add --tag option for C++ compiler
5365 case $cf_cv_libtool_version in
5366 (1.[5-9]*|[2-9].[0-9.a-z]*)
5367 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5368 LIBTOOL="$LIBTOOL --tag=CC"
5371 LIBTOOL_CXX="$LIBTOOL"
5379 test -z "$LIBTOOL" && ECHO_LT=
5381 if test "$with_libtool" != "no" ; then
5383 cf_list_models="$cf_list_models libtool"
5387 echo "$as_me:5387: checking if you want to build shared libraries" >&5
5388 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5390 # Check whether --with-shared or --without-shared was given.
5391 if test "${with_shared+set}" = set; then
5392 withval="$with_shared"
5393 with_shared=$withval
5397 echo "$as_me:5397: result: $with_shared" >&5
5398 echo "${ECHO_T}$with_shared" >&6
5399 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5401 echo "$as_me:5401: checking if you want to build static libraries" >&5
5402 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5404 # Check whether --with-normal or --without-normal was given.
5405 if test "${with_normal+set}" = set; then
5406 withval="$with_normal"
5407 with_normal=$withval
5411 echo "$as_me:5411: result: $with_normal" >&5
5412 echo "${ECHO_T}$with_normal" >&6
5413 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5415 echo "$as_me:5415: checking if you want to build debug libraries" >&5
5416 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5418 # Check whether --with-debug or --without-debug was given.
5419 if test "${with_debug+set}" = set; then
5420 withval="$with_debug"
5425 echo "$as_me:5425: result: $with_debug" >&5
5426 echo "${ECHO_T}$with_debug" >&6
5427 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5429 echo "$as_me:5429: checking if you want to build profiling libraries" >&5
5430 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5432 # Check whether --with-profile or --without-profile was given.
5433 if test "${with_profile+set}" = set; then
5434 withval="$with_profile"
5435 with_profile=$withval
5439 echo "$as_me:5439: result: $with_profile" >&5
5440 echo "${ECHO_T}$with_profile" >&6
5441 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5445 if test "X$cf_with_cxx_binding" != Xno; then
5446 if test "x$with_shared" = "xyes"; then
5447 echo "$as_me:5447: checking if you want to build C++ shared libraries" >&5
5448 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5450 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5451 if test "${with_cxx_shared+set}" = set; then
5452 withval="$with_cxx_shared"
5453 with_shared_cxx=$withval
5457 echo "$as_me:5457: result: $with_shared_cxx" >&5
5458 echo "${ECHO_T}$with_shared_cxx" >&6
5462 ###############################################################################
5464 echo "$as_me:5464: checking for specified models" >&5
5465 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5466 test -z "$cf_list_models" && cf_list_models=normal
5467 test "$with_libtool" != "no" && cf_list_models=libtool
5468 echo "$as_me:5468: result: $cf_list_models" >&5
5469 echo "${ECHO_T}$cf_list_models" >&6
5471 ### Use the first model as the default, and save its suffix for use in building
5472 ### up test-applications.
5473 echo "$as_me:5473: checking for default model" >&5
5474 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5475 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5476 echo "$as_me:5476: result: $DFT_LWR_MODEL" >&5
5477 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5479 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5490 echo "$as_me:5490: checking if you want to have a library-prefix" >&5
5491 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5493 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5494 if test "${with_lib_prefix+set}" = set; then
5495 withval="$with_lib_prefix"
5496 with_lib_prefix=$withval
5498 with_lib_prefix=auto
5500 echo "$as_me:5500: result: $with_lib_prefix" >&5
5501 echo "${ECHO_T}$with_lib_prefix" >&6
5503 if test $with_lib_prefix = auto
5506 case $cf_cv_system_name in
5508 if test "$DFT_LWR_MODEL" = libtool; then
5517 (*) LIB_PREFIX='lib'
5520 cf_prefix=$LIB_PREFIX
5522 elif test $with_lib_prefix = no
5526 LIB_PREFIX=$with_lib_prefix
5531 echo "$as_me:5531: checking for PATH separator" >&5
5532 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5533 case $cf_cv_system_name in
5534 (os2*) PATH_SEPARATOR=';' ;;
5535 (*) ${PATH_SEPARATOR:=':'} ;;
5538 echo "$as_me:5538: result: $PATH_SEPARATOR" >&5
5539 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5541 ###############################################################################
5543 echo "$as_me:5543: checking if you want to build a separate terminfo library" >&5
5544 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5546 # Check whether --with-termlib or --without-termlib was given.
5547 if test "${with_termlib+set}" = set; then
5548 withval="$with_termlib"
5549 with_termlib=$withval
5553 echo "$as_me:5553: result: $with_termlib" >&5
5554 echo "${ECHO_T}$with_termlib" >&6
5556 echo "$as_me:5556: checking if you want to build a separate tic library" >&5
5557 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5559 # Check whether --with-ticlib or --without-ticlib was given.
5560 if test "${with_ticlib+set}" = set; then
5561 withval="$with_ticlib"
5562 with_ticlib=$withval
5566 echo "$as_me:5566: result: $with_ticlib" >&5
5567 echo "${ECHO_T}$with_ticlib" >&6
5569 if test X"$CC_G_OPT" = X"" ; then
5571 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5574 if test X"$CXX_G_OPT" = X"" ; then
5576 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5579 echo "$as_me:5579: checking for default loader flags" >&5
5580 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5581 case $DFT_LWR_MODEL in
5582 (libtool) LD_MODEL='' ;;
5583 (normal) LD_MODEL='' ;;
5584 (debug) LD_MODEL=$CC_G_OPT ;;
5585 (profile) LD_MODEL='-pg';;
5586 (shared) LD_MODEL='' ;;
5588 echo "$as_me:5588: result: $LD_MODEL" >&5
5589 echo "${ECHO_T}$LD_MODEL" >&6
5591 case $DFT_LWR_MODEL in
5594 echo "$as_me:5594: checking if rpath option should be used" >&5
5595 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5597 # Check whether --enable-rpath or --disable-rpath was given.
5598 if test "${enable_rpath+set}" = set; then
5599 enableval="$enable_rpath"
5600 cf_cv_enable_rpath=$enableval
5602 cf_cv_enable_rpath=no
5604 echo "$as_me:5604: result: $cf_cv_enable_rpath" >&5
5605 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5607 echo "$as_me:5607: checking if shared libraries should be relinked during install" >&5
5608 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5610 # Check whether --enable-relink or --disable-relink was given.
5611 if test "${enable_relink+set}" = set; then
5612 enableval="$enable_relink"
5613 cf_cv_do_relink=$enableval
5617 echo "$as_me:5617: result: $cf_cv_do_relink" >&5
5618 echo "${ECHO_T}$cf_cv_do_relink" >&6
5622 # we will build libraries one-level down.
5626 if test "x$cf_cv_enable_rpath" != xno
5628 echo "$as_me:5628: checking for an rpath option" >&5
5629 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5630 case $cf_cv_system_name in
5632 if test "$GCC" = yes; then
5633 LD_RPATH_OPT="-Wl,-rpath,"
5635 LD_RPATH_OPT="-rpath "
5638 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5639 LD_RPATH_OPT="-Wl,-rpath,"
5641 (openbsd[2-9].*|mirbsd*)
5642 LD_RPATH_OPT="-Wl,-rpath,"
5645 LD_RPATH_OPT="-rpath "
5648 LD_RPATH_OPT="-Wl,-rpath,"
5651 LD_RPATH_OPT="-rpath "
5659 echo "$as_me:5659: result: $LD_RPATH_OPT" >&5
5660 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5662 case "x$LD_RPATH_OPT" in
5664 echo "$as_me:5664: checking if we need a space after rpath option" >&5
5665 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5666 cf_save_LIBS="$LIBS"
5671 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5673 for cf_add_1lib in $cf_add_0lib; do
5674 for cf_add_2lib in $cf_add_libs; do
5675 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5680 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5684 cat >conftest.$ac_ext <<_ACEOF
5685 #line 5685 "configure"
5686 #include "confdefs.h"
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:5697: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>&5
5700 echo "$as_me:5700: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -s conftest$ac_exeext'
5703 { (eval echo "$as_me:5703: \"$ac_try\"") >&5
5706 echo "$as_me:5706: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5710 echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715 LIBS="$cf_save_LIBS"
5716 echo "$as_me:5716: result: $cf_rpath_space" >&5
5717 echo "${ECHO_T}$cf_rpath_space" >&6
5718 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5727 INSTALL_LIB="-m 644"
5728 : ${rel_builddir:=.}
5734 cf_cv_do_symlinks=no
5736 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5738 echo "$as_me:5738: checking if release/abi version should be used for shared libs" >&5
5739 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5741 # Check whether --with-shlib-version or --without-shlib-version was given.
5742 if test "${with_shlib_version+set}" = set; then
5743 withval="$with_shlib_version"
5744 test -z "$withval" && withval=auto
5747 cf_cv_shlib_version=auto
5750 cf_cv_shlib_version=$withval
5753 echo "$as_me:5753: result: $withval" >&5
5754 echo "${ECHO_T}$withval" >&6
5755 { { echo "$as_me:5755: error: option value must be one of: rel, abi, or auto" >&5
5756 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5757 { (exit 1); exit 1; }; }
5762 cf_cv_shlib_version=auto
5764 echo "$as_me:5764: result: $cf_cv_shlib_version" >&5
5765 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5770 # Some less-capable ports of gcc support only -fpic
5774 if test "$GCC" = yes
5778 case $cf_cv_system_name in
5779 (*linux*) # e.g., PGI compiler
5785 if test "$cf_try_fPIC" = yes
5787 echo "$as_me:5787: checking which $CC option to use" >&5
5788 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5789 cf_save_CFLAGS="$CFLAGS"
5790 for CC_SHARED_OPTS in -fPIC -fpic ''
5792 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5793 cat >conftest.$ac_ext <<_ACEOF
5794 #line 5794 "configure"
5795 #include "confdefs.h"
5805 rm -f conftest.$ac_objext
5806 if { (eval echo "$as_me:5806: \"$ac_compile\"") >&5
5807 (eval $ac_compile) 2>&5
5809 echo "$as_me:5809: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:5812: \"$ac_try\"") >&5
5815 echo "$as_me:5815: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5819 echo "$as_me: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 rm -f conftest.$ac_objext conftest.$ac_ext
5824 echo "$as_me:5824: result: $CC_SHARED_OPTS" >&5
5825 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5826 CFLAGS="$cf_save_CFLAGS"
5829 cf_cv_shlib_version_infix=no
5831 case $cf_cv_system_name in
5832 (aix4.3-9*|aix[5-7]*)
5833 if test "$GCC" = yes; then
5834 CC_SHARED_OPTS='-Wl,-brtl'
5835 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5837 CC_SHARED_OPTS='-brtl'
5838 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
5839 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5843 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5847 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5848 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5849 cf_cv_shlib_version=cygdll
5850 cf_cv_shlib_version_infix=cygdll
5853 cat >mk_shared_lib.sh <<-CF_EOF
5856 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5859 Linking shared library
5860 ** SHARED_LIB \$SHARED_LIB
5861 ** IMPORT_LIB \$IMPORT_LIB
5863 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5865 chmod +x mk_shared_lib.sh
5869 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5870 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5871 cf_cv_shlib_version=msysdll
5872 cf_cv_shlib_version_infix=msysdll
5875 cat >mk_shared_lib.sh <<-CF_EOF
5878 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5881 Linking shared library
5882 ** SHARED_LIB \$SHARED_LIB
5883 ** IMPORT_LIB \$IMPORT_LIB
5885 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5887 chmod +x mk_shared_lib.sh
5890 cf_try_cflags="no-cpp-precomp"
5891 CC_SHARED_OPTS="-dynamic"
5892 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5893 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5894 cf_cv_shlib_version_infix=yes
5895 echo "$as_me:5895: checking if ld -search_paths_first works" >&5
5896 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5897 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 cf_save_LDFLAGS=$LDFLAGS
5902 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5903 cat >conftest.$ac_ext <<_ACEOF
5904 #line 5904 "configure"
5905 #include "confdefs.h"
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:5916: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>&5
5919 echo "$as_me:5919: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:5922: \"$ac_try\"") >&5
5925 echo "$as_me:5925: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 cf_cv_ldflags_search_paths_first=yes
5929 echo "$as_me: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5931 cf_cv_ldflags_search_paths_first=no
5933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5934 LDFLAGS=$cf_save_LDFLAGS
5936 echo "$as_me:5936: result: $cf_cv_ldflags_search_paths_first" >&5
5937 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5938 if test $cf_cv_ldflags_search_paths_first = yes; then
5939 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5943 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5944 if test "$GCC" != yes; then
5947 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
5948 INSTALL_LIB="-m 555"
5951 # (tested with gcc 2.7.2 -- I don't have c89)
5952 if test "$GCC" = yes; then
5953 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5956 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5958 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
5959 # HP-UX shared libraries must be executable, and should be
5960 # readonly to exploit a quirk in the memory manager.
5961 INSTALL_LIB="-m 555"
5964 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5965 if test "$cf_cv_shlib_version" = rel; then
5966 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5968 cf_shared_soname='`basename $@`'
5971 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
5974 if test "$cf_cv_enable_rpath" = yes ; then
5975 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5977 # tested with IRIX 5.2 and 'cc'.
5978 if test "$GCC" != yes; then
5979 CC_SHARED_OPTS='-KPIC'
5980 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
5982 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
5984 cf_cv_rm_so_locs=yes
5986 (linux*|gnu*|k*bsd*-gnu)
5987 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
5988 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5989 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5991 if test "$cf_cv_enable_rpath" = yes ; then
5992 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5995 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5996 if test "$cf_cv_shlib_version" = rel; then
5997 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5999 cf_cv_shared_soname='`basename $@`'
6002 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6005 cf_cv_shlib_version=msvcdll
6006 cf_cv_shlib_version_infix=msvcdll
6009 if test "$DFT_LWR_MODEL" = "shared" ; then
6010 LOCAL_LDFLAGS="-link -dll"
6011 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6012 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6015 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6016 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6017 cat >mk_shared_lib.sh <<-CF_EOF
6020 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6025 Linking shared library
6026 ** SHARED LIB \$SHARED_LIB
6027 ** IMPORT_LIB \$IMPORT_LIB
6029 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6030 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6031 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6033 chmod +x mk_shared_lib.sh
6034 cat >mk_prog.sh <<-CF_EOF
6037 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6040 ldopts=("/subsystem:console")
6043 while test \$# -gt 0; do
6046 # ignore -link argument
6049 # ignore runtime-library option
6064 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6067 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6073 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6074 ldopts+=("\${linkarg}")
6082 ldopts+=("-out:\$1")
6091 if [ "\$isdll" -ne 0 ]; then
6092 for lib in \${libs[*]}; do
6093 ldopts+=("\$lib.dll.lib")
6096 for lib in \${libs[*]}; do
6097 ldopts+=("\$lib.lib")
6102 ** ld options: "\${ldopts[@]}"
6104 exec \$LD \${ldopts[@]}
6107 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6108 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6111 cf_cv_shlib_version=mingw
6112 cf_cv_shlib_version_infix=mingw
6115 if test "$DFT_LWR_MODEL" = "shared" ; then
6116 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6117 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6118 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6121 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6122 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6123 cat >mk_shared_lib.sh <<-CF_EOF
6126 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6129 Linking shared library
6130 ** SHARED_LIB \$SHARED_LIB
6131 ** IMPORT_LIB \$IMPORT_LIB
6133 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6135 chmod +x mk_shared_lib.sh
6137 (openbsd[2-9].*|mirbsd*)
6138 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6139 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6140 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6142 if test "$cf_cv_enable_rpath" = yes ; then
6143 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6145 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6147 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6148 if test "$cf_cv_shlib_version" = rel; then
6149 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6151 cf_cv_shared_soname='`basename $@`'
6154 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6158 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6162 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6164 (nto-qnx*|openbsd*|freebsd[12].*)
6165 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6166 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6167 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6169 (dragonfly*|freebsd*)
6170 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6171 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6172 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6173 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6174 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6177 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6178 if test "$cf_cv_shlib_version" = rel; then
6179 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6181 cf_cv_shared_soname='`basename $@`'
6184 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6187 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6188 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6189 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6190 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6191 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6192 if test "$cf_cv_shlib_version" = auto; then
6193 if test -f /usr/libexec/ld.elf_so; then
6194 cf_cv_shlib_version=abi
6196 cf_cv_shlib_version=rel
6200 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6201 if test "$cf_cv_shlib_version" = rel; then
6202 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6204 cf_cv_shared_soname='`basename $@`'
6207 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6209 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6213 # tested with OSF/1 V3.2 and 'cc'
6214 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6215 # link with shared libs).
6216 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6219 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6222 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6223 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6224 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6225 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6227 cf_cv_rm_so_locs=yes
6229 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6230 # tested with osr5.0.5
6231 if test "$GCC" != yes; then
6232 CC_SHARED_OPTS='-belf -KPIC'
6234 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6235 if test "$cf_cv_enable_rpath" = yes ; then
6236 # only way is to set LD_RUN_PATH but no switch for it
6239 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6240 LINK_PROGS='LD_RUN_PATH=${libdir}'
6241 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6244 # tested with SunOS 4.1.1 and gcc 2.7.0
6245 if test "$GCC" != yes; then
6246 CC_SHARED_OPTS='-KPIC'
6248 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6249 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6252 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6253 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6254 if test "$DFT_LWR_MODEL" = "shared" ; then
6255 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6256 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6258 if test "$cf_cv_enable_rpath" = yes ; then
6259 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6262 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6263 if test "$cf_cv_shlib_version" = rel; then
6264 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6266 cf_cv_shared_soname='`basename $@`'
6269 if test "$GCC" != yes; then
6270 cf_save_CFLAGS="$CFLAGS"
6271 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6273 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6274 cat >conftest.$ac_ext <<_ACEOF
6275 #line 6275 "configure"
6276 #include "confdefs.h"
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:6287: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>&5
6290 echo "$as_me:6290: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:6293: \"$ac_try\"") >&5
6296 echo "$as_me:6296: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6300 echo "$as_me: failed program was:" >&5
6301 cat conftest.$ac_ext >&5
6303 rm -f conftest.$ac_objext conftest.$ac_ext
6305 CFLAGS="$cf_save_CFLAGS"
6306 CC_SHARED_OPTS=$cf_shared_opts
6307 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6309 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6312 (sysv5uw7*|unix_sv*)
6313 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6314 if test "$GCC" != yes; then
6315 CC_SHARED_OPTS='-KPIC'
6317 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6320 CC_SHARED_OPTS='unknown'
6321 MK_SHARED_LIB='echo unknown'
6325 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6326 case "$cf_cv_shlib_version" in
6328 case "$MK_SHARED_LIB" in
6330 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6333 { echo "$as_me:6333: WARNING: ignored --with-shlib-version" >&5
6334 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6340 if test -n "$cf_try_cflags"
6342 cat > conftest.$ac_ext <<EOF
6343 #line 6343 "${as_me:-configure}"
6345 int main(int argc, char *argv[])
6348 return (argv[argc-1] == 0) ;
6351 cf_save_CFLAGS="$CFLAGS"
6352 for cf_opt in $cf_try_cflags
6354 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6355 echo "$as_me:6355: checking if CFLAGS option -$cf_opt works" >&5
6356 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6357 if { (eval echo "$as_me:6357: \"$ac_compile\"") >&5
6358 (eval $ac_compile) 2>&5
6360 echo "$as_me:6360: \$? = $ac_status" >&5
6361 (exit $ac_status); }; then
6362 echo "$as_me:6362: result: yes" >&5
6363 echo "${ECHO_T}yes" >&6
6364 cf_save_CFLAGS="$CFLAGS"
6366 echo "$as_me:6366: result: no" >&5
6367 echo "${ECHO_T}no" >&6
6370 CFLAGS="$cf_save_CFLAGS"
6373 # RPATH_LIST is a colon-separated list of directories
6374 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6375 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6377 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6379 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6381 echo "${as_me:-configure}:6381: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6383 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6385 echo "${as_me:-configure}:6385: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6387 for model in $cf_list_models; do
6391 echo "$as_me:6391: checking for additional libtool options" >&5
6392 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6394 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6395 if test "${with_libtool_opts+set}" = set; then
6396 withval="$with_libtool_opts"
6397 with_libtool_opts=$withval
6399 with_libtool_opts=no
6401 echo "$as_me:6401: result: $with_libtool_opts" >&5
6402 echo "${ECHO_T}$with_libtool_opts" >&6
6404 case .$with_libtool_opts in
6408 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6412 echo "$as_me:6412: checking if exported-symbols file should be used" >&5
6413 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6415 # Check whether --with-export-syms or --without-export-syms was given.
6416 if test "${with_export_syms+set}" = set; then
6417 withval="$with_export_syms"
6418 with_export_syms=$withval
6422 if test "x$with_export_syms" = xyes
6424 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6427 echo "$as_me:6427: result: $with_export_syms" >&5
6428 echo "${ECHO_T}$with_export_syms" >&6
6429 if test "x$with_export_syms" != xno
6431 EXPORT_SYMS="-export-symbols $with_export_syms"
6437 if test "$CC_SHARED_OPTS" = "unknown"; then
6438 { { echo "$as_me:6438: error: Shared libraries are not supported in this version" >&5
6439 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6440 { (exit 1); exit 1; }; }
6442 # workaround for inept transition to PIE vs PIC...
6443 echo "$as_me:6443: checking if current CFLAGS link properly" >&5
6444 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line 6446 "configure"
6447 #include "confdefs.h"
6452 printf("Hello work\n");
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (eval echo "$as_me:6458: \"$ac_link\"") >&5
6459 (eval $ac_link) 2>&5
6461 echo "$as_me:6461: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try='test -s conftest$ac_exeext'
6464 { (eval echo "$as_me:6464: \"$ac_try\"") >&5
6467 echo "$as_me:6467: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6471 echo "$as_me: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6476 echo "$as_me:6476: result: $cf_cflags_work" >&5
6477 echo "${ECHO_T}$cf_cflags_work" >&6
6478 if test "$cf_cflags_work" = no
6480 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6482 echo "${as_me:-configure}:6482: testing try to work around by appending shared-options ..." 1>&5
6484 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6487 echo "$as_me:6487: checking if versioned-symbols file should be used" >&5
6488 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6490 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6491 if test "${with_versioned_syms+set}" = set; then
6492 withval="$with_versioned_syms"
6493 with_versioned_syms=$withval
6495 with_versioned_syms=no
6497 case "x$with_versioned_syms" in
6499 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6505 test -f "$with_versioned_syms" || { { echo "$as_me:6505: error: expected a filename: $with_versioned_syms" >&5
6506 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6507 { (exit 1); exit 1; }; }
6510 test -f "$with_versioned_syms" || { { echo "$as_me:6510: error: expected a filename: $with_versioned_syms" >&5
6511 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6512 { (exit 1); exit 1; }; }
6513 with_versioned_syms=`pwd`/"$with_versioned_syms"
6516 echo "$as_me:6516: result: $with_versioned_syms" >&5
6517 echo "${ECHO_T}$with_versioned_syms" >&6
6523 if test "x$with_versioned_syms" != xno
6525 RESULTING_SYMS=$with_versioned_syms
6526 case "x$MK_SHARED_LIB" in
6528 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6529 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6530 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6532 echo "${as_me:-configure}:6532: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6536 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6537 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6538 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6540 echo "${as_me:-configure}:6540: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6544 { echo "$as_me:6544: WARNING: this system does not support versioned-symbols" >&5
6545 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6549 # Linux ld can selectively override scope, e.g., of symbols beginning with
6550 # "_" by first declaring some as global, and then using a wildcard to
6551 # declare the others as local. Some other loaders cannot do this. Check
6552 # by constructing a (very) simple shared library and inspecting its
6554 if test "x$VERSIONED_SYMS" != "x"
6556 echo "$as_me:6556: checking if wildcards can be used to selectively omit symbols" >&5
6557 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6563 cat >conftest.ver <<EOF
6592 cat >conftest.$ac_ext <<EOF
6593 #line 6593 "configure"
6594 int _ismissing(void) { return 1; }
6595 int _localf1(void) { return 1; }
6596 int _localf2(void) { return 2; }
6597 int globalf1(void) { return 1; }
6598 int globalf2(void) { return 2; }
6599 int _sublocalf1(void) { return 1; }
6600 int _sublocalf2(void) { return 2; }
6601 int subglobalf1(void) { return 1; }
6602 int subglobalf2(void) { return 2; }
6604 cat >conftest.mk <<EOF
6607 CPPFLAGS=${CPPFLAGS}
6610 VERSIONED_SYMS=${VERSIONED_SYMS}
6611 RESULTING_SYMS=conftest.ver
6612 MK_SHARED_LIB=${MK_SHARED_LIB}
6613 conftest.so: conftest.$ac_cv_objext
6614 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6617 # compile source, make library
6618 if make -f conftest.mk 2>&5 >/dev/null
6620 # test for missing symbol in either Data or Text section
6621 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6622 test -n "$cf_missing" && WILDCARD_SYMS=yes
6624 echo "$as_me:6624: result: $WILDCARD_SYMS" >&5
6625 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6634 ### Checks for special libraries, must be done up-front.
6637 echo "$as_me:6637: checking if you want to link with the GPM mouse library" >&5
6638 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6640 # Check whether --with-gpm or --without-gpm was given.
6641 if test "${with_gpm+set}" = set; then
6647 echo "$as_me:6647: result: $with_gpm" >&5
6648 echo "${ECHO_T}$with_gpm" >&6
6650 if test "$with_gpm" != no ; then
6651 echo "$as_me:6651: checking for gpm.h" >&5
6652 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6653 if test "${ac_cv_header_gpm_h+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 cat >conftest.$ac_ext <<_ACEOF
6657 #line 6657 "configure"
6658 #include "confdefs.h"
6661 if { (eval echo "$as_me:6661: \"$ac_cpp conftest.$ac_ext\"") >&5
6662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6664 egrep -v '^ *\+' conftest.er1 >conftest.err
6666 cat conftest.err >&5
6667 echo "$as_me:6667: \$? = $ac_status" >&5
6668 (exit $ac_status); } >/dev/null; then
6669 if test -s conftest.err; then
6670 ac_cpp_err=$ac_c_preproc_warn_flag
6677 if test -z "$ac_cpp_err"; then
6678 ac_cv_header_gpm_h=yes
6680 echo "$as_me: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6682 ac_cv_header_gpm_h=no
6684 rm -f conftest.err conftest.$ac_ext
6686 echo "$as_me:6686: result: $ac_cv_header_gpm_h" >&5
6687 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6688 if test $ac_cv_header_gpm_h = yes; then
6690 cat >>confdefs.h <<\EOF
6691 #define HAVE_GPM_H 1
6694 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6695 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6697 echo "${as_me:-configure}:6697: testing assuming we really have GPM library ..." 1>&5
6699 cat >>confdefs.h <<\EOF
6700 #define HAVE_LIBGPM 1
6705 echo "$as_me:6705: checking for Gpm_Open in -lgpm" >&5
6706 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6707 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 ac_check_lib_save_LIBS=$LIBS
6712 cat >conftest.$ac_ext <<_ACEOF
6713 #line 6713 "configure"
6714 #include "confdefs.h"
6716 /* Override any gcc2 internal prototype to avoid an error. */
6720 /* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (eval echo "$as_me:6732: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>&5
6735 echo "$as_me:6735: \$? = $ac_status" >&5
6736 (exit $ac_status); } &&
6737 { ac_try='test -s conftest$ac_exeext'
6738 { (eval echo "$as_me:6738: \"$ac_try\"") >&5
6741 echo "$as_me:6741: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 ac_cv_lib_gpm_Gpm_Open=yes
6745 echo "$as_me: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6747 ac_cv_lib_gpm_Gpm_Open=no
6749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6750 LIBS=$ac_check_lib_save_LIBS
6752 echo "$as_me:6752: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6753 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6754 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6758 if test "$with_gpm" = maybe; then
6759 { echo "$as_me:6759: WARNING: Cannot link with GPM library" >&5
6760 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6763 { { echo "$as_me:6763: error: Cannot link with GPM library" >&5
6764 echo "$as_me: error: Cannot link with GPM library" >&2;}
6765 { (exit 1); exit 1; }; }
6774 test "$with_gpm" != maybe && { echo "$as_me:6774: WARNING: Cannot find GPM header" >&5
6775 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6782 if test "$with_gpm" != no ; then
6783 echo "$as_me:6783: checking if you want to load GPM dynamically" >&5
6784 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6786 # Check whether --with-dlsym or --without-dlsym was given.
6787 if test "${with_dlsym+set}" = set; then
6788 withval="$with_dlsym"
6793 echo "$as_me:6793: result: $with_dlsym" >&5
6794 echo "${ECHO_T}$with_dlsym" >&6
6795 if test "x$with_dlsym" = xyes ; then
6798 echo "$as_me:6798: checking for dlsym" >&5
6799 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
6800 if test "${ac_cv_func_dlsym+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 cat >conftest.$ac_ext <<_ACEOF
6804 #line 6804 "configure"
6805 #include "confdefs.h"
6806 #define dlsym autoconf_temporary
6807 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6822 /* The GNU C library defines stubs for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_dlsym) || defined (__stub___dlsym)
6826 #error found stub for dlsym
6834 rm -f conftest.$ac_objext conftest$ac_exeext
6835 if { (eval echo "$as_me:6835: \"$ac_link\"") >&5
6836 (eval $ac_link) 2>&5
6838 echo "$as_me:6838: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -s conftest$ac_exeext'
6841 { (eval echo "$as_me:6841: \"$ac_try\"") >&5
6844 echo "$as_me:6844: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 ac_cv_func_dlsym=yes
6848 echo "$as_me: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6854 echo "$as_me:6854: result: $ac_cv_func_dlsym" >&5
6855 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
6856 if test $ac_cv_func_dlsym = yes; then
6861 echo "$as_me:6861: checking for dlsym in -ldl" >&5
6862 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6863 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 ac_check_lib_save_LIBS=$LIBS
6868 cat >conftest.$ac_ext <<_ACEOF
6869 #line 6869 "configure"
6870 #include "confdefs.h"
6872 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6887 rm -f conftest.$ac_objext conftest$ac_exeext
6888 if { (eval echo "$as_me:6888: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6891 echo "$as_me:6891: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -s conftest$ac_exeext'
6894 { (eval echo "$as_me:6894: \"$ac_try\"") >&5
6897 echo "$as_me:6897: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_lib_dl_dlsym=yes
6901 echo "$as_me: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6903 ac_cv_lib_dl_dlsym=no
6905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6906 LIBS=$ac_check_lib_save_LIBS
6908 echo "$as_me:6908: result: $ac_cv_lib_dl_dlsym" >&5
6909 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6910 if test $ac_cv_lib_dl_dlsym = yes; then
6918 if test "$cf_have_dlsym" = yes ; then
6919 test "$cf_have_libdl" = yes && {
6923 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6925 for cf_add_1lib in $cf_add_0lib; do
6926 for cf_add_2lib in $cf_add_libs; do
6927 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6932 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6937 echo "$as_me:6937: checking whether able to link to dl*() functions" >&5
6938 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
6939 cat >conftest.$ac_ext <<_ACEOF
6940 #line 6940 "configure"
6941 #include "confdefs.h"
6948 if ((obj = dlopen("filename", 0)) != 0) {
6949 if (dlsym(obj, "symbolname") == 0) {
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (eval echo "$as_me:6958: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>&5
6961 echo "$as_me:6961: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:6964: \"$ac_try\"") >&5
6967 echo "$as_me:6967: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6970 cat >>confdefs.h <<\EOF
6971 #define HAVE_LIBDL 1
6975 echo "$as_me: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6978 { { echo "$as_me:6978: error: Cannot link test program for libdl" >&5
6979 echo "$as_me: error: Cannot link test program for libdl" >&2;}
6980 { (exit 1); exit 1; }; }
6982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983 echo "$as_me:6983: result: ok" >&5
6984 echo "${ECHO_T}ok" >&6
6986 { { echo "$as_me:6986: error: Cannot find dlsym function" >&5
6987 echo "$as_me: error: Cannot find dlsym function" >&2;}
6988 { (exit 1); exit 1; }; }
6991 if test "x$with_gpm" != xyes ; then
6992 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
6994 echo "${as_me:-configure}:6994: testing assuming soname for gpm is $with_gpm ..." 1>&5
6996 cf_cv_gpm_soname="$with_gpm"
6999 echo "$as_me:6999: checking for soname of gpm library" >&5
7000 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7001 if test "${cf_cv_gpm_soname+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 cf_cv_gpm_soname=unknown
7006 if test "$cross_compiling" != yes ; then
7007 cat >conftest.$ac_ext <<CF_EOF
7011 if (Gpm_Open(0,0)) Gpm_Close();
7012 ${cf_cv_main_return:-return}(0);
7015 cf_save_LIBS="$LIBS"
7020 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7022 for cf_add_1lib in $cf_add_0lib; do
7023 for cf_add_2lib in $cf_add_libs; do
7024 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7029 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7033 if { (eval echo "$as_me:7033: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>&5
7036 echo "$as_me:7036: \$? = $ac_status" >&5
7037 (exit $ac_status); } ; then
7038 if { (eval echo "$as_me:7038: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>&5
7041 echo "$as_me:7041: \$? = $ac_status" >&5
7042 (exit $ac_status); } ; then
7043 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
7044 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7048 LIBS="$cf_save_LIBS"
7052 echo "$as_me:7052: result: $cf_cv_gpm_soname" >&5
7053 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7056 test "$cf_cv_gpm_soname" != "unknown" &&
7057 cat >>confdefs.h <<EOF
7058 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7061 SHLIB_LIST="-ldl $SHLIB_LIST"
7063 cf_add_libs="$PRIVATE_LIBS"
7066 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7068 for cf_add_1lib in $cf_add_0lib; do
7069 for cf_add_2lib in $cf_add_libs; do
7070 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7075 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7077 PRIVATE_LIBS="$cf_add_libs"
7080 SHLIB_LIST="-lgpm $SHLIB_LIST"
7082 cf_add_libs="$TEST_LIBS"
7085 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7087 for cf_add_1lib in $cf_add_0lib; do
7088 for cf_add_2lib in $cf_add_libs; do
7089 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7094 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7096 TEST_LIBS="$cf_add_libs"
7098 cf_add_libs="$PRIVATE_LIBS"
7101 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7103 for cf_add_1lib in $cf_add_0lib; do
7104 for cf_add_2lib in $cf_add_libs; do
7105 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7110 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7112 PRIVATE_LIBS="$cf_add_libs"
7116 cat >>confdefs.h <<\EOF
7117 #define HAVE_LIBGPM 1
7120 echo "$as_me:7120: checking for Gpm_Wgetch in -lgpm" >&5
7121 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7122 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 ac_check_lib_save_LIBS=$LIBS
7127 cat >conftest.$ac_ext <<_ACEOF
7128 #line 7128 "configure"
7129 #include "confdefs.h"
7131 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:7147: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>&5
7150 echo "$as_me:7150: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -s conftest$ac_exeext'
7153 { (eval echo "$as_me:7153: \"$ac_try\"") >&5
7156 echo "$as_me:7156: \$? = $ac_status" >&5
7157 (exit $ac_status); }; }; then
7158 ac_cv_lib_gpm_Gpm_Wgetch=yes
7160 echo "$as_me: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 ac_cv_lib_gpm_Gpm_Wgetch=no
7164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7165 LIBS=$ac_check_lib_save_LIBS
7167 echo "$as_me:7167: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7168 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7169 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
7171 echo "$as_me:7171: checking if GPM is weakly bound to curses library" >&5
7172 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7173 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 cf_cv_check_gpm_wgetch=unknown
7178 if test "$cross_compiling" != yes ; then
7180 cat >conftest.$ac_ext <<CF_EOF
7185 ${cf_cv_main_return:-return}(0);
7189 cf_save_LIBS="$LIBS"
7190 # This only works if we can look at the symbol table. If a shared
7191 # library is stripped for install, we cannot use that. So we're forced
7192 # to rely on the static library, noting that some packagers may not
7194 LIBS="-static -lgpm -dynamic $LIBS"
7195 if { (eval echo "$as_me:7195: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
7198 echo "$as_me:7198: \$? = $ac_status" >&5
7199 (exit $ac_status); } ; then
7200 if { (eval echo "$as_me:7200: \"$ac_link\"") >&5
7201 (eval $ac_link) 2>&5
7203 echo "$as_me:7203: \$? = $ac_status" >&5
7204 (exit $ac_status); } ; then
7205 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
7206 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7207 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7211 LIBS="$cf_save_LIBS"
7215 echo "$as_me:7215: result: $cf_cv_check_gpm_wgetch" >&5
7216 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7218 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7219 { echo "$as_me:7219: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7220 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7227 echo "$as_me:7227: checking if you want to use PCRE2 for regular-expressions" >&5
7228 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7230 # Check whether --with-pcre2 or --without-pcre2 was given.
7231 if test "${with_pcre2+set}" = set; then
7232 withval="$with_pcre2"
7235 test -z "$with_pcre2" && with_pcre2=no
7236 echo "$as_me:7236: result: $with_pcre2" >&5
7237 echo "${ECHO_T}$with_pcre2" >&6
7239 if test "x$with_pcre2" != xno ; then
7241 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre2; then
7242 test -n "$verbose" && echo " found package libpcre2" 1>&6
7244 echo "${as_me:-configure}:7244: testing found package libpcre2 ..." 1>&5
7246 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre2 2>/dev/null`"
7247 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre2 2>/dev/null`"
7248 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7250 echo "${as_me:-configure}:7250: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7252 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7254 echo "${as_me:-configure}:7254: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7259 cf_new_extra_cppflags=
7261 for cf_add_cflags in $cf_pkgconfig_incs
7263 case $cf_fix_cppflags in
7265 case $cf_add_cflags in
7266 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7267 case $cf_add_cflags in
7269 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7271 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7272 && test -z "${cf_tst_cflags}" \
7273 && cf_fix_cppflags=yes
7275 if test $cf_fix_cppflags = yes ; then
7277 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7278 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7281 elif test "${cf_tst_cflags}" = "\"'" ; then
7283 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7284 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7294 case $cf_add_cflags in
7296 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7298 CPPFLAGS=`echo "$CPPFLAGS" | \
7299 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7300 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7305 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7306 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7313 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7314 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7321 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7322 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7324 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7326 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7327 && test -z "${cf_tst_cflags}" \
7328 && cf_fix_cppflags=no
7333 if test -n "$cf_new_cflags" ; then
7335 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7336 CFLAGS="${CFLAGS}$cf_new_cflags"
7340 if test -n "$cf_new_cppflags" ; then
7342 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7343 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7347 if test -n "$cf_new_extra_cppflags" ; then
7349 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7350 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7357 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7359 for cf_add_1lib in $cf_add_0lib; do
7360 for cf_add_2lib in $cf_add_libs; do
7361 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7366 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7375 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
7376 test -n "$verbose" && echo " found package libpcre" 1>&6
7378 echo "${as_me:-configure}:7378: testing found package libpcre ..." 1>&5
7380 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
7381 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
7382 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7384 echo "${as_me:-configure}:7384: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7386 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7388 echo "${as_me:-configure}:7388: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7393 cf_new_extra_cppflags=
7395 for cf_add_cflags in $cf_pkgconfig_incs
7397 case $cf_fix_cppflags in
7399 case $cf_add_cflags in
7400 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7401 case $cf_add_cflags in
7403 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7405 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7406 && test -z "${cf_tst_cflags}" \
7407 && cf_fix_cppflags=yes
7409 if test $cf_fix_cppflags = yes ; then
7411 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7412 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7415 elif test "${cf_tst_cflags}" = "\"'" ; then
7417 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7418 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7428 case $cf_add_cflags in
7430 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7432 CPPFLAGS=`echo "$CPPFLAGS" | \
7433 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7434 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7439 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7440 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7447 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7448 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7455 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7456 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7458 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7460 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7461 && test -z "${cf_tst_cflags}" \
7462 && cf_fix_cppflags=no
7467 if test -n "$cf_new_cflags" ; then
7469 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7470 CFLAGS="${CFLAGS}$cf_new_cflags"
7474 if test -n "$cf_new_cppflags" ; then
7476 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7477 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7481 if test -n "$cf_new_extra_cppflags" ; then
7483 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7484 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7491 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7493 for cf_add_1lib in $cf_add_0lib; do
7494 for cf_add_2lib in $cf_add_libs; do
7495 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7500 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7509 { { echo "$as_me:7509: error: Cannot find PCRE2 library" >&5
7510 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7511 { (exit 1); exit 1; }; }
7516 cat >>confdefs.h <<\EOF
7517 #define HAVE_LIB_PCRE2 1
7520 # if pkgconfig gave no results, look for the libraries directly
7522 (*pcre2-posix*|*pcreposix*)
7525 echo "$as_me:7525: checking for regcomp in -lpcre2-posix" >&5
7526 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7527 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 ac_check_lib_save_LIBS=$LIBS
7531 LIBS="-lpcre2-posix $LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line 7533 "configure"
7534 #include "confdefs.h"
7536 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:7552: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>&5
7555 echo "$as_me:7555: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -s conftest$ac_exeext'
7558 { (eval echo "$as_me:7558: \"$ac_try\"") >&5
7561 echo "$as_me:7561: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_cv_lib_pcre2_posix_regcomp=yes
7565 echo "$as_me: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7567 ac_cv_lib_pcre2_posix_regcomp=no
7569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7570 LIBS=$ac_check_lib_save_LIBS
7572 echo "$as_me:7572: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7573 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7574 if test $ac_cv_lib_pcre2_posix_regcomp = yes; then
7579 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7581 for cf_add_1lib in $cf_add_0lib; do
7582 for cf_add_2lib in $cf_add_libs; do
7583 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7588 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7593 echo "$as_me:7593: checking for regcomp in -lpcreposix" >&5
7594 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7595 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 ac_check_lib_save_LIBS=$LIBS
7599 LIBS="-lpcreposix $LIBS"
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line 7601 "configure"
7602 #include "confdefs.h"
7604 /* Override any gcc2 internal prototype to avoid an error. */
7608 /* We use char because int might match the return type of a gcc2
7609 builtin and then its argument prototype would still apply. */
7619 rm -f conftest.$ac_objext conftest$ac_exeext
7620 if { (eval echo "$as_me:7620: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>&5
7623 echo "$as_me:7623: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:7626: \"$ac_try\"") >&5
7629 echo "$as_me:7629: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_lib_pcreposix_regcomp=yes
7633 echo "$as_me: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 ac_cv_lib_pcreposix_regcomp=no
7637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7638 LIBS=$ac_check_lib_save_LIBS
7640 echo "$as_me:7640: result: $ac_cv_lib_pcreposix_regcomp" >&5
7641 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7642 if test $ac_cv_lib_pcreposix_regcomp = yes; then
7647 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7649 for cf_add_1lib in $cf_add_0lib; do
7650 for cf_add_2lib in $cf_add_libs; do
7651 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7656 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7661 { { echo "$as_me:7661: error: Cannot find PCRE2 POSIX library" >&5
7662 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7663 { (exit 1); exit 1; }; }
7671 # either way, check for the library header files
7673 for ac_header in pcre2posix.h pcreposix.h
7675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7676 echo "$as_me:7676: checking for $ac_header" >&5
7677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 cat >conftest.$ac_ext <<_ACEOF
7682 #line 7682 "configure"
7683 #include "confdefs.h"
7684 #include <$ac_header>
7686 if { (eval echo "$as_me:7686: \"$ac_cpp conftest.$ac_ext\"") >&5
7687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7689 egrep -v '^ *\+' conftest.er1 >conftest.err
7691 cat conftest.err >&5
7692 echo "$as_me:7692: \$? = $ac_status" >&5
7693 (exit $ac_status); } >/dev/null; then
7694 if test -s conftest.err; then
7695 ac_cpp_err=$ac_c_preproc_warn_flag
7702 if test -z "$ac_cpp_err"; then
7703 eval "$as_ac_Header=yes"
7705 echo "$as_me: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 eval "$as_ac_Header=no"
7709 rm -f conftest.err conftest.$ac_ext
7711 echo "$as_me:7711: result: `eval echo '${'$as_ac_Header'}'`" >&5
7712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7714 cat >>confdefs.h <<EOF
7715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723 # not everyone has "test -c"
7724 if test -c /dev/sysmouse 2>/dev/null ; then
7725 echo "$as_me:7725: checking if you want to use sysmouse" >&5
7726 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7728 # Check whether --with-sysmouse or --without-sysmouse was given.
7729 if test "${with_sysmouse+set}" = set; then
7730 withval="$with_sysmouse"
7731 cf_with_sysmouse=$withval
7733 cf_with_sysmouse=maybe
7735 if test "$cf_with_sysmouse" != no ; then
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line 7737 "configure"
7738 #include "confdefs.h"
7740 #include <osreldate.h>
7741 #if (__FreeBSD_version >= 400017)
7742 #include <sys/consio.h>
7743 #include <sys/fbio.h>
7745 #include <machine/console.h>
7752 struct mouse_info the_mouse;
7753 ioctl(0, CONS_MOUSECTL, &the_mouse);
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:7760: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>&5
7763 echo "$as_me:7763: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -s conftest.$ac_objext'
7766 { (eval echo "$as_me:7766: \"$ac_try\"") >&5
7769 echo "$as_me:7769: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 cf_with_sysmouse=yes
7773 echo "$as_me: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7777 rm -f conftest.$ac_objext conftest.$ac_ext
7779 echo "$as_me:7779: result: $cf_with_sysmouse" >&5
7780 echo "${ECHO_T}$cf_with_sysmouse" >&6
7781 test "$cf_with_sysmouse" = yes &&
7782 cat >>confdefs.h <<\EOF
7783 #define USE_SYSMOUSE 1
7788 # pretend that ncurses==ncursesw==ncursest
7789 echo "$as_me:7789: checking if you want to disable library suffixes" >&5
7790 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7792 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7793 if test "${enable_lib_suffixes+set}" = set; then
7794 enableval="$enable_lib_suffixes"
7795 test "$enableval" != no && enableval=yes
7796 if test "$enableval" != "yes" ; then
7797 disable_lib_suffixes=yes
7799 disable_lib_suffixes=no
7803 disable_lib_suffixes=no
7806 echo "$as_me:7806: result: $disable_lib_suffixes" >&5
7807 echo "${ECHO_T}$disable_lib_suffixes" >&6
7809 ### If we're building with rpath, try to link non-standard libs that way too.
7810 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7812 echo "$as_me:7812: checking if rpath-hack should be disabled" >&5
7813 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7815 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7816 if test "${enable_rpath_hack+set}" = set; then
7817 enableval="$enable_rpath_hack"
7818 test "$enableval" != no && enableval=yes
7819 if test "$enableval" != "yes" ; then
7820 cf_disable_rpath_hack=yes
7822 cf_disable_rpath_hack=no
7826 cf_disable_rpath_hack=no
7829 echo "$as_me:7829: result: $cf_disable_rpath_hack" >&5
7830 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7831 if test "$cf_disable_rpath_hack" = no ; then
7833 echo "$as_me:7833: checking for updated LDFLAGS" >&5
7834 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7835 if test -n "$LD_RPATH_OPT" ; then
7836 echo "$as_me:7836: result: maybe" >&5
7837 echo "${ECHO_T}maybe" >&6
7841 # Extract the first word of "$ac_prog", so it can be a program name with args.
7842 set dummy $ac_prog; ac_word=$2
7843 echo "$as_me:7843: checking for $ac_word" >&5
7844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7845 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 if test -n "$cf_ldd_prog"; then
7849 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7851 ac_save_IFS=$IFS; IFS=$ac_path_separator
7853 for ac_dir in $ac_dummy; do
7855 test -z "$ac_dir" && ac_dir=.
7856 $as_executable_p "$ac_dir/$ac_word" || continue
7857 ac_cv_prog_cf_ldd_prog="$ac_prog"
7858 echo "$as_me:7858: found $ac_dir/$ac_word" >&5
7864 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7865 if test -n "$cf_ldd_prog"; then
7866 echo "$as_me:7866: result: $cf_ldd_prog" >&5
7867 echo "${ECHO_T}$cf_ldd_prog" >&6
7869 echo "$as_me:7869: result: no" >&5
7870 echo "${ECHO_T}no" >&6
7873 test -n "$cf_ldd_prog" && break
7875 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7877 cf_rpath_list="/usr/lib /lib"
7878 if test "$cf_ldd_prog" != no
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line 7883 "configure"
7884 #include "confdefs.h"
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (eval echo "$as_me:7895: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>&5
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try='test -s conftest$ac_exeext'
7901 { (eval echo "$as_me:7901: \"$ac_try\"") >&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7907 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7909 echo "$as_me: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7914 # If we passed the link-test, but get a "not found" on a given library,
7915 # this could be due to inept reconfiguration of gcc to make it only
7916 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
7917 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
7918 # /usr/local libraries.
7919 if test -n "$cf_rpath_oops"
7921 for cf_rpath_src in $cf_rpath_oops
7923 for cf_rpath_dir in \
7928 if test -f $cf_rpath_dir/lib/$cf_rpath_src
7930 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
7932 echo "${as_me:-configure}:7932: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
7934 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
7942 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7944 echo "${as_me:-configure}:7944: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7946 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
7948 echo "${as_me:-configure}:7948: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
7951 for cf_rpath_src in $LDFLAGS
7953 case $cf_rpath_src in
7956 # check if this refers to a directory which we will ignore
7958 if test -n "$cf_rpath_list"
7960 for cf_rpath_item in $cf_rpath_list
7962 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
7970 if test "$cf_rpath_skip" = no
7972 # transform the option
7973 if test "$LD_RPATH_OPT" = "-R " ; then
7974 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
7976 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
7979 # if we have not already added this, add it now
7980 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
7981 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7983 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7985 echo "${as_me:-configure}:7985: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7987 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7992 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7994 LDFLAGS=$cf_rpath_dst
7996 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
7998 echo "${as_me:-configure}:7998: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8000 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8002 echo "${as_me:-configure}:8002: testing ...checking LIBS $LIBS ..." 1>&5
8005 for cf_rpath_src in $LIBS
8007 case $cf_rpath_src in
8010 # check if this refers to a directory which we will ignore
8012 if test -n "$cf_rpath_list"
8014 for cf_rpath_item in $cf_rpath_list
8016 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8024 if test "$cf_rpath_skip" = no
8026 # transform the option
8027 if test "$LD_RPATH_OPT" = "-R " ; then
8028 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8030 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8033 # if we have not already added this, add it now
8034 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8035 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8037 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8039 echo "${as_me:-configure}:8039: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8041 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8046 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8050 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8052 echo "${as_me:-configure}:8052: testing ...checked LIBS $LIBS ..." 1>&5
8054 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8056 echo "${as_me:-configure}:8056: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8059 echo "$as_me:8059: result: no" >&5
8060 echo "${ECHO_T}no" >&6
8067 ### Depending on the system, someone may use rpath to build ncurses but not
8068 # want users of the package to rely upon that feature. Give those people an
8069 # option to suppress that detail from EXTRA_LDFLAGS.
8070 EXTRA_PKG_LDFLAGS="$EXTRA_LDFLAGS"
8071 if test -n "$EXTRA_PKG_LDFLAGS"
8073 echo "$as_me:8073: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8074 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8076 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8077 if test "${enable_pkg_ldflags+set}" = set; then
8078 enableval="$enable_pkg_ldflags"
8079 test "$enableval" != no && enableval=yes
8080 if test "$enableval" != "yes" ; then
8081 disable_pkg_ldflags=yes
8083 disable_pkg_ldflags=no
8087 disable_pkg_ldflags=no
8090 echo "$as_me:8090: result: $disable_pkg_ldflags" >&5
8091 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8092 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8095 ###############################################################################
8097 ### use option --with-extra-suffix to append suffix to headers and libraries
8098 echo "$as_me:8098: checking if you wish to append extra suffix to header/library paths" >&5
8099 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8102 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8103 if test "${with_extra_suffix+set}" = set; then
8104 withval="$with_extra_suffix"
8109 EXTRA_SUFFIX=$cf_cv_abi_version
8112 EXTRA_SUFFIX=$withval
8117 echo "$as_me:8117: result: $EXTRA_SUFFIX" >&5
8118 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8120 ### use option --disable-overwrite to leave out the link to -lcurses
8121 echo "$as_me:8121: checking if you wish to install ncurses overwriting curses" >&5
8122 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8124 # Check whether --enable-overwrite or --disable-overwrite was given.
8125 if test "${enable_overwrite+set}" = set; then
8126 enableval="$enable_overwrite"
8127 with_overwrite=$enableval
8129 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8131 echo "$as_me:8131: result: $with_overwrite" >&5
8132 echo "${ECHO_T}$with_overwrite" >&6
8134 echo "$as_me:8134: checking if external terminfo-database is used" >&5
8135 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8137 # Check whether --enable-database or --disable-database was given.
8138 if test "${enable_database+set}" = set; then
8139 enableval="$enable_database"
8140 use_database=$enableval
8144 echo "$as_me:8144: result: $use_database" >&5
8145 echo "${ECHO_T}$use_database" >&6
8149 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8152 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8156 NCURSES_USE_DATABASE=0
8157 if test "$use_database" != no ; then
8158 NCURSES_USE_DATABASE=1
8160 echo "$as_me:8160: checking which terminfo source-file will be installed" >&5
8161 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8163 # Check whether --with-database or --without-database was given.
8164 if test "${with_database+set}" = set; then
8165 withval="$with_database"
8166 TERMINFO_SRC=$withval
8168 echo "$as_me:8168: result: $TERMINFO_SRC" >&5
8169 echo "${ECHO_T}$TERMINFO_SRC" >&6
8171 echo "$as_me:8171: checking whether to use hashed database instead of directory/tree" >&5
8172 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8174 # Check whether --with-hashed-db or --without-hashed-db was given.
8175 if test "${with_hashed_db+set}" = set; then
8176 withval="$with_hashed_db"
8181 echo "$as_me:8181: result: $with_hashed_db" >&5
8182 echo "${ECHO_T}$with_hashed_db" >&6
8187 echo "$as_me:8187: checking for list of fallback descriptions" >&5
8188 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8190 # Check whether --with-fallbacks or --without-fallbacks was given.
8191 if test "${with_fallbacks+set}" = set; then
8192 withval="$with_fallbacks"
8193 with_fallback=$withval
8197 echo "$as_me:8197: result: $with_fallback" >&5
8198 echo "${ECHO_T}$with_fallback" >&6
8200 case ".$with_fallback" in
8205 { echo "$as_me:8205: WARNING: expected a list of terminal descriptions" >&5
8206 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8209 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8213 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8214 # tree for generating the terminal descriptions that will be compiled into the
8215 # library. If your toolchain is old, it may not handle current terminal
8216 # databases. Use configure-options to point to the tools which will be used,
8217 # rather than the first ones found on the $PATH.
8218 if test -n "$ac_tool_prefix"; then
8219 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8220 set dummy ${ac_tool_prefix}tic; ac_word=$2
8221 echo "$as_me:8221: checking for $ac_word" >&5
8222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8223 if test "${ac_cv_prog_TIC+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 if test -n "$TIC"; then
8227 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8229 ac_save_IFS=$IFS; IFS=$ac_path_separator
8231 for ac_dir in $ac_dummy; do
8233 test -z "$ac_dir" && ac_dir=.
8234 $as_executable_p "$ac_dir/$ac_word" || continue
8235 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8236 echo "$as_me:8236: found $ac_dir/$ac_word" >&5
8243 if test -n "$TIC"; then
8244 echo "$as_me:8244: result: $TIC" >&5
8245 echo "${ECHO_T}$TIC" >&6
8247 echo "$as_me:8247: result: no" >&5
8248 echo "${ECHO_T}no" >&6
8252 if test -z "$ac_cv_prog_TIC"; then
8254 # Extract the first word of "tic", so it can be a program name with args.
8255 set dummy tic; ac_word=$2
8256 echo "$as_me:8256: checking for $ac_word" >&5
8257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8258 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 if test -n "$ac_ct_TIC"; then
8262 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8264 ac_save_IFS=$IFS; IFS=$ac_path_separator
8266 for ac_dir in $ac_dummy; do
8268 test -z "$ac_dir" && ac_dir=.
8269 $as_executable_p "$ac_dir/$ac_word" || continue
8270 ac_cv_prog_ac_ct_TIC="tic"
8271 echo "$as_me:8271: found $ac_dir/$ac_word" >&5
8277 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8278 if test -n "$ac_ct_TIC"; then
8279 echo "$as_me:8279: result: $ac_ct_TIC" >&5
8280 echo "${ECHO_T}$ac_ct_TIC" >&6
8282 echo "$as_me:8282: result: no" >&5
8283 echo "${ECHO_T}no" >&6
8288 TIC="$ac_cv_prog_TIC"
8291 if test -n "$ac_tool_prefix"; then
8292 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8293 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8294 echo "$as_me:8294: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8296 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 if test -n "$INFOCMP"; then
8300 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8302 ac_save_IFS=$IFS; IFS=$ac_path_separator
8304 for ac_dir in $ac_dummy; do
8306 test -z "$ac_dir" && ac_dir=.
8307 $as_executable_p "$ac_dir/$ac_word" || continue
8308 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8309 echo "$as_me:8309: found $ac_dir/$ac_word" >&5
8315 INFOCMP=$ac_cv_prog_INFOCMP
8316 if test -n "$INFOCMP"; then
8317 echo "$as_me:8317: result: $INFOCMP" >&5
8318 echo "${ECHO_T}$INFOCMP" >&6
8320 echo "$as_me:8320: result: no" >&5
8321 echo "${ECHO_T}no" >&6
8325 if test -z "$ac_cv_prog_INFOCMP"; then
8326 ac_ct_INFOCMP=$INFOCMP
8327 # Extract the first word of "infocmp", so it can be a program name with args.
8328 set dummy infocmp; ac_word=$2
8329 echo "$as_me:8329: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8331 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 if test -n "$ac_ct_INFOCMP"; then
8335 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8337 ac_save_IFS=$IFS; IFS=$ac_path_separator
8339 for ac_dir in $ac_dummy; do
8341 test -z "$ac_dir" && ac_dir=.
8342 $as_executable_p "$ac_dir/$ac_word" || continue
8343 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8344 echo "$as_me:8344: found $ac_dir/$ac_word" >&5
8350 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8351 if test -n "$ac_ct_INFOCMP"; then
8352 echo "$as_me:8352: result: $ac_ct_INFOCMP" >&5
8353 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8355 echo "$as_me:8355: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8359 INFOCMP=$ac_ct_INFOCMP
8361 INFOCMP="$ac_cv_prog_INFOCMP"
8364 if test -n "$FALLBACK_LIST"
8367 # Check whether --with-tic-path or --without-tic-path was given.
8368 if test "${with_tic_path+set}" = set; then
8369 withval="$with_tic_path"
8370 echo "$as_me:8370: checking for tic program for fallbacks" >&5
8371 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8373 echo "$as_me:8373: result: $TIC" >&5
8374 echo "${ECHO_T}$TIC" >&6
8376 if test "x$prefix" != xNONE; then
8377 cf_path_syntax="$prefix"
8379 cf_path_syntax="$ac_default_prefix"
8387 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8389 (.\${*prefix}*|.\${*dir}*)
8393 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8398 TIC=`echo $TIC | sed -e s%NONE%$cf_path_syntax%`
8401 { { echo "$as_me:8401: error: expected a pathname, not \"$TIC\"" >&5
8402 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8403 { (exit 1); exit 1; }; }
8409 test -z "$TIC" && TIC=tic
8410 for ac_prog in $TIC tic
8412 # Extract the first word of "$ac_prog", so it can be a program name with args.
8413 set dummy $ac_prog; ac_word=$2
8414 echo "$as_me:8414: checking for $ac_word" >&5
8415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8416 if test "${ac_cv_path_TIC+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8424 ac_save_IFS=$IFS; IFS=$ac_path_separator
8425 ac_dummy="$PATH:/usr/local/ncurses/bin"
8426 for ac_dir in $ac_dummy; do
8428 test -z "$ac_dir" && ac_dir=.
8429 if $as_executable_p "$ac_dir/$ac_word"; then
8430 ac_cv_path_TIC="$ac_dir/$ac_word"
8431 echo "$as_me:8431: found $ac_dir/$ac_word" >&5
8441 if test -n "$TIC"; then
8442 echo "$as_me:8442: result: $TIC" >&5
8443 echo "${ECHO_T}$TIC" >&6
8445 echo "$as_me:8445: result: no" >&5
8446 echo "${ECHO_T}no" >&6
8449 test -n "$TIC" && break
8451 test -n "$TIC" || TIC="$TIC"
8455 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8456 for cf_temp in $ac_cv_path_TIC
8458 if test -z "$cf_path_prog" ; then
8459 if test "$with_full_paths" = yes ; then
8461 if test "x$prefix" != xNONE; then
8462 cf_path_syntax="$prefix"
8464 cf_path_syntax="$ac_default_prefix"
8472 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8474 (.\${*prefix}*|.\${*dir}*)
8475 eval cf_temp="$cf_temp"
8478 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8483 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8490 cf_path_prog="$cf_temp"
8492 cf_path_prog="`basename $cf_temp`"
8494 elif test -z "$cf_path_args" ; then
8495 cf_path_args="$cf_temp"
8497 cf_path_args="$cf_path_args $cf_temp"
8502 if test -n "$cf_path_prog" ; then
8504 echo "${as_me:-configure}:8504: testing defining path for ${cf_path_prog} ..." 1>&5
8506 cat >>confdefs.h <<EOF
8507 #define TIC_PATH "$cf_path_prog"
8510 test -n "$cf_path_args" &&
8511 cat >>confdefs.h <<EOF
8512 #define TIC_ARGS "$cf_path_args"
8519 { echo "$as_me:8519: WARNING: no tic program found for fallbacks" >&5
8520 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8525 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8526 if test "${with_infocmp_path+set}" = set; then
8527 withval="$with_infocmp_path"
8528 echo "$as_me:8528: checking for infocmp program for fallbacks" >&5
8529 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8531 echo "$as_me:8531: result: $INFOCMP" >&5
8532 echo "${ECHO_T}$INFOCMP" >&6
8534 if test "x$prefix" != xNONE; then
8535 cf_path_syntax="$prefix"
8537 cf_path_syntax="$ac_default_prefix"
8545 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8547 (.\${*prefix}*|.\${*dir}*)
8548 eval INFOCMP="$INFOCMP"
8551 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8556 INFOCMP=`echo $INFOCMP | sed -e s%NONE%$cf_path_syntax%`
8559 { { echo "$as_me:8559: error: expected a pathname, not \"$INFOCMP\"" >&5
8560 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8561 { (exit 1); exit 1; }; }
8567 test -z "$INFOCMP" && INFOCMP=infocmp
8568 for ac_prog in $INFOCMP infocmp
8570 # Extract the first word of "$ac_prog", so it can be a program name with args.
8571 set dummy $ac_prog; ac_word=$2
8572 echo "$as_me:8572: checking for $ac_word" >&5
8573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8574 if test "${ac_cv_path_INFOCMP+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8582 ac_save_IFS=$IFS; IFS=$ac_path_separator
8583 ac_dummy="$PATH:/usr/local/ncurses/bin"
8584 for ac_dir in $ac_dummy; do
8586 test -z "$ac_dir" && ac_dir=.
8587 if $as_executable_p "$ac_dir/$ac_word"; then
8588 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8589 echo "$as_me:8589: found $ac_dir/$ac_word" >&5
8597 INFOCMP=$ac_cv_path_INFOCMP
8599 if test -n "$INFOCMP"; then
8600 echo "$as_me:8600: result: $INFOCMP" >&5
8601 echo "${ECHO_T}$INFOCMP" >&6
8603 echo "$as_me:8603: result: no" >&5
8604 echo "${ECHO_T}no" >&6
8607 test -n "$INFOCMP" && break
8609 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8613 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8614 for cf_temp in $ac_cv_path_INFOCMP
8616 if test -z "$cf_path_prog" ; then
8617 if test "$with_full_paths" = yes ; then
8619 if test "x$prefix" != xNONE; then
8620 cf_path_syntax="$prefix"
8622 cf_path_syntax="$ac_default_prefix"
8630 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8632 (.\${*prefix}*|.\${*dir}*)
8633 eval cf_temp="$cf_temp"
8636 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8641 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
8648 cf_path_prog="$cf_temp"
8650 cf_path_prog="`basename $cf_temp`"
8652 elif test -z "$cf_path_args" ; then
8653 cf_path_args="$cf_temp"
8655 cf_path_args="$cf_path_args $cf_temp"
8660 if test -n "$cf_path_prog" ; then
8662 echo "${as_me:-configure}:8662: testing defining path for ${cf_path_prog} ..." 1>&5
8664 cat >>confdefs.h <<EOF
8665 #define INFOCMP_PATH "$cf_path_prog"
8668 test -n "$cf_path_args" &&
8669 cat >>confdefs.h <<EOF
8670 #define INFOCMP_ARGS "$cf_path_args"
8675 if test -z "$INFOCMP"
8677 { echo "$as_me:8677: WARNING: no infocmp program found for fallbacks" >&5
8678 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8683 test -z "$TIC" && FALLBACK_LIST=
8684 test -z "$INFOCMP" && FALLBACK_LIST=
8685 if test -z "$FALLBACK_LIST"
8687 { echo "$as_me:8687: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8688 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8693 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8695 echo "$as_me:8695: checking if you want modern xterm or antique" >&5
8696 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8698 # Check whether --with-xterm-new or --without-xterm-new was given.
8699 if test "${with_xterm_new+set}" = set; then
8700 withval="$with_xterm_new"
8701 with_xterm_new=$withval
8705 case $with_xterm_new in
8706 (no) with_xterm_new=xterm-old;;
8707 (*) with_xterm_new=xterm-new;;
8709 echo "$as_me:8709: result: $with_xterm_new" >&5
8710 echo "${ECHO_T}$with_xterm_new" >&6
8711 WHICH_XTERM=$with_xterm_new
8713 echo "$as_me:8713: checking if xterm backspace sends BS or DEL" >&5
8714 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8716 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8717 if test "${with_xterm_kbs+set}" = set; then
8718 withval="$with_xterm_kbs"
8719 with_xterm_kbs=$withval
8723 case x$with_xterm_kbs in
8724 (xyes|xno|xBS|xbs|x8)
8731 with_xterm_kbs=$withval
8734 echo "$as_me:8734: result: $with_xterm_kbs" >&5
8735 echo "${ECHO_T}$with_xterm_kbs" >&6
8736 XTERM_KBS=$with_xterm_kbs
8739 if test "$use_database" = no ; then
8740 TERMINFO="${datadir}/terminfo"
8744 echo "$as_me:8744: checking for list of terminfo directories" >&5
8745 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8747 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8748 if test "${with_terminfo_dirs+set}" = set; then
8749 withval="$with_terminfo_dirs"
8752 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8754 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8756 for cf_src_path in $withval
8759 if test "x$prefix" != xNONE; then
8760 cf_path_syntax="$prefix"
8762 cf_path_syntax="$ac_default_prefix"
8765 case ".$cf_src_path" in
8770 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8772 (.\${*prefix}*|.\${*dir}*)
8773 eval cf_src_path="$cf_src_path"
8774 case ".$cf_src_path" in
8776 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8781 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
8784 { { echo "$as_me:8784: error: expected a pathname, not \"$cf_src_path\"" >&5
8785 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8786 { (exit 1); exit 1; }; }
8790 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8791 cf_dst_path="${cf_dst_path}${cf_src_path}"
8795 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8796 # so we have to check/work around. We do prefer the result of "eval"...
8797 eval cf_dst_eval="$cf_dst_path"
8798 case "x$cf_dst_eval" in
8800 TERMINFO_DIRS=$cf_dst_path
8803 TERMINFO_DIRS="$cf_dst_eval"
8807 echo "$as_me:8807: result: $TERMINFO_DIRS" >&5
8808 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8809 test -n "$TERMINFO_DIRS" &&
8810 cat >>confdefs.h <<EOF
8811 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8814 case "x$TERMINFO" in
8816 { echo "$as_me:8816: WARNING: ignoring non-directory/file TERMINFO value" >&5
8817 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
8822 echo "$as_me:8822: checking for default terminfo directory" >&5
8823 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8825 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8826 if test "${with_default_terminfo_dir+set}" = set; then
8827 withval="$with_default_terminfo_dir"
8830 withval="${TERMINFO:-${datadir}/terminfo}"
8831 fi; if test -n "${datadir}/terminfo" ; then
8833 if test "x$prefix" != xNONE; then
8834 cf_path_syntax="$prefix"
8836 cf_path_syntax="$ac_default_prefix"
8844 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8846 (.\${*prefix}*|.\${*dir}*)
8847 eval withval="$withval"
8850 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8855 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8858 { { echo "$as_me:8858: error: expected a pathname, not \"$withval\"" >&5
8859 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8860 { (exit 1); exit 1; }; }
8865 eval TERMINFO="$withval"
8867 echo "$as_me:8867: result: $TERMINFO" >&5
8868 echo "${ECHO_T}$TERMINFO" >&6
8870 cat >>confdefs.h <<EOF
8871 #define TERMINFO "$TERMINFO"
8876 ### use option --disable-big-core to make tic run on small machines
8877 ### We need 4Mb, check if we can allocate 50% more than that.
8878 echo "$as_me:8878: checking if big-core option selected" >&5
8879 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8881 # Check whether --enable-big-core or --disable-big-core was given.
8882 if test "${enable_big_core+set}" = set; then
8883 enableval="$enable_big_core"
8884 with_big_core=$enableval
8886 if test "$cross_compiling" = yes; then
8889 cat >conftest.$ac_ext <<_ACEOF
8890 #line 8890 "configure"
8891 #include "confdefs.h"
8896 unsigned long n = 6000000L;
8897 char *s = malloc(n);
8900 ${cf_cv_main_return:-return}(s == 0);
8903 rm -f conftest$ac_exeext
8904 if { (eval echo "$as_me:8904: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>&5
8907 echo "$as_me:8907: \$? = $ac_status" >&5
8908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8909 { (eval echo "$as_me:8909: \"$ac_try\"") >&5
8912 echo "$as_me:8912: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8916 echo "$as_me: program exited with status $ac_status" >&5
8917 echo "$as_me: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8921 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8924 echo "$as_me:8924: result: $with_big_core" >&5
8925 echo "${ECHO_T}$with_big_core" >&6
8926 test "x$with_big_core" = "xyes" &&
8927 cat >>confdefs.h <<\EOF
8928 #define HAVE_BIG_CORE 1
8931 ### ISO C only guarantees 512-char strings, we have tables which load faster
8932 ### when constructed using "big" strings. More than the C compiler, the awk
8933 ### program is a limit on most vendor UNIX systems. Check that we can build.
8934 echo "$as_me:8934: checking if big-strings option selected" >&5
8935 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
8937 # Check whether --enable-big-strings or --disable-big-strings was given.
8938 if test "${enable_big_strings+set}" = set; then
8939 enableval="$enable_big_strings"
8940 with_big_strings=$enableval
8945 eval with_big_strings=no
8948 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
8949 | $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
8950 eval with_big_strings=yes
8952 eval with_big_strings=no
8958 echo "$as_me:8958: result: $with_big_strings" >&5
8959 echo "${ECHO_T}$with_big_strings" >&6
8962 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
8964 ### use option --enable-termcap to compile in the termcap fallback support
8965 echo "$as_me:8965: checking if you want termcap-fallback support" >&5
8966 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
8968 # Check whether --enable-termcap or --disable-termcap was given.
8969 if test "${enable_termcap+set}" = set; then
8970 enableval="$enable_termcap"
8971 with_termcap=$enableval
8975 echo "$as_me:8975: result: $with_termcap" >&5
8976 echo "${ECHO_T}$with_termcap" >&6
8978 NCURSES_USE_TERMCAP=0
8979 if test "x$with_termcap" != "xyes" ; then
8980 if test "$use_database" = no ; then
8981 if test -z "$with_fallback" ; then
8982 { { echo "$as_me:8982: error: You have disabled the database w/o specifying fallbacks" >&5
8983 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
8984 { (exit 1); exit 1; }; }
8988 cat >>confdefs.h <<\EOF
8989 #define PURE_TERMINFO 1
8994 if test "$with_ticlib" != no ; then
8995 { { echo "$as_me:8995: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
8996 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
8997 { (exit 1); exit 1; }; }
9000 NCURSES_USE_TERMCAP=1
9001 echo "$as_me:9001: checking for list of termcap files" >&5
9002 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9004 # Check whether --with-termpath or --without-termpath was given.
9005 if test "${with_termpath+set}" = set; then
9006 withval="$with_termpath"
9009 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9011 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9013 for cf_src_path in $withval
9016 if test "x$prefix" != xNONE; then
9017 cf_path_syntax="$prefix"
9019 cf_path_syntax="$ac_default_prefix"
9022 case ".$cf_src_path" in
9027 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9029 (.\${*prefix}*|.\${*dir}*)
9030 eval cf_src_path="$cf_src_path"
9031 case ".$cf_src_path" in
9033 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
9038 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
9041 { { echo "$as_me:9041: error: expected a pathname, not \"$cf_src_path\"" >&5
9042 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9043 { (exit 1); exit 1; }; }
9047 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9048 cf_dst_path="${cf_dst_path}${cf_src_path}"
9052 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9053 # so we have to check/work around. We do prefer the result of "eval"...
9054 eval cf_dst_eval="$cf_dst_path"
9055 case "x$cf_dst_eval" in
9057 TERMPATH=$cf_dst_path
9060 TERMPATH="$cf_dst_eval"
9064 echo "$as_me:9064: result: $TERMPATH" >&5
9065 echo "${ECHO_T}$TERMPATH" >&6
9066 test -n "$TERMPATH" &&
9067 cat >>confdefs.h <<EOF
9068 #define TERMPATH "$TERMPATH"
9071 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9072 echo "$as_me:9072: checking if fast termcap-loader is needed" >&5
9073 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9075 # Check whether --enable-getcap or --disable-getcap was given.
9076 if test "${enable_getcap+set}" = set; then
9077 enableval="$enable_getcap"
9078 with_getcap=$enableval
9082 echo "$as_me:9082: result: $with_getcap" >&5
9083 echo "${ECHO_T}$with_getcap" >&6
9084 test "x$with_getcap" = "xyes" &&
9085 cat >>confdefs.h <<\EOF
9086 #define USE_GETCAP 1
9089 echo "$as_me:9089: checking if translated termcaps will be cached in ~/.terminfo" >&5
9090 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9092 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9093 if test "${enable_getcap_cache+set}" = set; then
9094 enableval="$enable_getcap_cache"
9095 with_getcap_cache=$enableval
9097 with_getcap_cache=no
9099 echo "$as_me:9099: result: $with_getcap_cache" >&5
9100 echo "${ECHO_T}$with_getcap_cache" >&6
9101 test "x$with_getcap_cache" = "xyes" &&
9102 cat >>confdefs.h <<\EOF
9103 #define USE_GETCAP_CACHE 1
9108 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9109 echo "$as_me:9109: checking if ~/.terminfo is wanted" >&5
9110 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9112 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9113 if test "${enable_home_terminfo+set}" = set; then
9114 enableval="$enable_home_terminfo"
9115 with_home_terminfo=$enableval
9117 with_home_terminfo=yes
9119 echo "$as_me:9119: result: $with_home_terminfo" >&5
9120 echo "${ECHO_T}$with_home_terminfo" >&6
9121 test "x$with_home_terminfo" = "xyes" &&
9122 cat >>confdefs.h <<\EOF
9123 #define USE_HOME_TERMINFO 1
9126 echo "$as_me:9126: checking if you want to use restricted environment when running as root" >&5
9127 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
9129 # Check whether --enable-root-environ or --disable-root-environ was given.
9130 if test "${enable_root_environ+set}" = set; then
9131 enableval="$enable_root_environ"
9132 with_root_environ=$enableval
9134 with_root_environ=yes
9136 echo "$as_me:9136: result: $with_root_environ" >&5
9137 echo "${ECHO_T}$with_root_environ" >&6
9138 test "x$with_root_environ" = xyes &&
9139 cat >>confdefs.h <<\EOF
9140 #define USE_ROOT_ENVIRON 1
9143 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9144 ### to reduce storage requirements for the terminfo database.
9150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9151 echo "$as_me:9151: checking for $ac_header" >&5
9152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line 9157 "configure"
9158 #include "confdefs.h"
9159 #include <$ac_header>
9161 if { (eval echo "$as_me:9161: \"$ac_cpp conftest.$ac_ext\"") >&5
9162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9164 egrep -v '^ *\+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 (exit $ac_status); } >/dev/null; then
9169 if test -s conftest.err; then
9170 ac_cpp_err=$ac_c_preproc_warn_flag
9177 if test -z "$ac_cpp_err"; then
9178 eval "$as_ac_Header=yes"
9180 echo "$as_me: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9182 eval "$as_ac_Header=no"
9184 rm -f conftest.err conftest.$ac_ext
9186 echo "$as_me:9186: result: `eval echo '${'$as_ac_Header'}'`" >&5
9187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9189 cat >>confdefs.h <<EOF
9190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9201 echo "$as_me:9201: checking for $ac_func" >&5
9202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9203 if eval "test \"\${$as_ac_var+set}\" = set"; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 cat >conftest.$ac_ext <<_ACEOF
9207 #line 9207 "configure"
9208 #include "confdefs.h"
9209 #define $ac_func autoconf_temporary
9210 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9219 char $ac_func (void);
9225 /* The GNU C library defines stubs for functions which it implements
9226 to always fail with ENOSYS. Some functions are actually named
9227 something starting with __ and the normal name is an alias. */
9228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9229 #error found stub for $ac_func
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:9238: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>&5
9241 echo "$as_me:9241: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:9244: \"$ac_try\"") >&5
9247 echo "$as_me:9247: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 eval "$as_ac_var=yes"
9251 echo "$as_me: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 eval "$as_ac_var=no"
9255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9257 echo "$as_me:9257: result: `eval echo '${'$as_ac_var'}'`" >&5
9258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9259 if test `eval echo '${'$as_ac_var'}'` = yes; then
9260 cat >>confdefs.h <<EOF
9261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9267 if test "$cross_compiling" = yes ; then
9273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9274 echo "$as_me:9274: checking for $ac_func" >&5
9275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9276 if eval "test \"\${$as_ac_var+set}\" = set"; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9280 #line 9280 "configure"
9281 #include "confdefs.h"
9282 #define $ac_func autoconf_temporary
9283 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9292 char $ac_func (void);
9298 /* The GNU C library defines stubs for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9302 #error found stub for $ac_func
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (eval echo "$as_me:9311: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>&5
9314 echo "$as_me:9314: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:9317: \"$ac_try\"") >&5
9320 echo "$as_me:9320: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 eval "$as_ac_var=yes"
9324 echo "$as_me: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 eval "$as_ac_var=no"
9328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9330 echo "$as_me:9330: result: `eval echo '${'$as_ac_var'}'`" >&5
9331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9332 if test `eval echo '${'$as_ac_var'}'` = yes; then
9333 cat >>confdefs.h <<EOF
9334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9341 echo "$as_me:9341: checking if link/symlink functions work" >&5
9342 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9343 if test "${cf_cv_link_funcs+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 for cf_func in link symlink ; do
9349 if test "$cross_compiling" = yes; then
9351 eval 'ac_cv_func_'$cf_func'=error'
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line 9354 "configure"
9355 #include "confdefs.h"
9357 #include <sys/types.h>
9358 #include <sys/stat.h>
9359 #ifdef HAVE_UNISTD_H
9365 char *src = "config.log";
9366 char *dst = "conftest.chk";
9371 fail = ($cf_func("config.log", "conftest.chk") < 0)
9372 || (stat(dst, &dst_sb) < 0)
9373 || (dst_sb.st_mtime != src_sb.st_mtime);
9379 ${cf_cv_main_return:-return} (fail);
9383 rm -f conftest$ac_exeext
9384 if { (eval echo "$as_me:9384: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9387 echo "$as_me:9387: \$? = $ac_status" >&5
9388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9389 { (eval echo "$as_me:9389: \"$ac_try\"") >&5
9392 echo "$as_me:9392: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9395 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9396 eval 'ac_cv_func_'$cf_func'=yes'
9398 echo "$as_me: program exited with status $ac_status" >&5
9399 echo "$as_me: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9402 eval 'ac_cv_func_'$cf_func'=no'
9404 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9407 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9410 echo "$as_me:9410: result: $cf_cv_link_funcs" >&5
9411 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9412 test "$ac_cv_func_link" = yes &&
9413 cat >>confdefs.h <<\EOF
9417 test "$ac_cv_func_symlink" = yes &&
9418 cat >>confdefs.h <<\EOF
9419 #define HAVE_SYMLINK 1
9427 # soft links (symbolic links) are useful for some systems where hard links do
9428 # not work, or to make it simpler to copy terminfo trees around.
9429 if test "x$ac_cv_func_symlink" = xyes ; then
9430 echo "$as_me:9430: checking if tic should use symbolic links" >&5
9431 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9433 # Check whether --enable-symlinks or --disable-symlinks was given.
9434 if test "${enable_symlinks+set}" = set; then
9435 enableval="$enable_symlinks"
9436 with_symlinks=$enableval
9440 echo "$as_me:9440: result: $with_symlinks" >&5
9441 echo "${ECHO_T}$with_symlinks" >&6
9444 # If we have hard links and did not choose to use soft links instead, there is
9445 # no reason to make this choice optional - use the hard links.
9446 if test "$with_symlinks" = no ; then
9447 echo "$as_me:9447: checking if tic should use hard links" >&5
9448 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9449 if test "x$ac_cv_func_link" = xyes ; then
9454 echo "$as_me:9454: result: $with_links" >&5
9455 echo "${ECHO_T}$with_links" >&6
9458 test "x$with_links" = xyes &&
9459 cat >>confdefs.h <<\EOF
9463 test "x$with_symlinks" = xyes &&
9464 cat >>confdefs.h <<\EOF
9465 #define USE_SYMLINKS 1
9468 ### use option --enable-broken-linker to force on use of broken-linker support
9470 echo "$as_me:9470: checking if you want broken-linker support code" >&5
9471 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9473 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9474 if test "${enable_broken_linker+set}" = set; then
9475 enableval="$enable_broken_linker"
9476 with_broken_linker=$enableval
9478 with_broken_linker=no
9480 echo "$as_me:9480: result: $with_broken_linker" >&5
9481 echo "${ECHO_T}$with_broken_linker" >&6
9483 : ${BROKEN_LINKER:=0}
9484 if test "x$with_broken_linker" = xyes ; then
9486 cat >>confdefs.h <<\EOF
9487 #define BROKEN_LINKER 1
9493 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9494 echo "$as_me:9494: checking if tputs should process BSD-style prefix padding" >&5
9495 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9497 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9498 if test "${enable_bsdpad+set}" = set; then
9499 enableval="$enable_bsdpad"
9500 with_bsdpad=$enableval
9504 echo "$as_me:9504: result: $with_bsdpad" >&5
9505 echo "${ECHO_T}$with_bsdpad" >&6
9506 test "x$with_bsdpad" = xyes &&
9507 cat >>confdefs.h <<\EOF
9511 ### use option --enable-widec to turn on use of wide-character support
9520 # Check to define _XOPEN_SOURCE "automatically"
9521 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9523 echo "$as_me:9523: checking if the POSIX test-macros are already defined" >&5
9524 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9525 if test "${cf_cv_posix_visible+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9530 #line 9530 "configure"
9531 #include "confdefs.h"
9537 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9538 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9539 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9540 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9541 #error conflicting symbols found
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:9549: \"$ac_compile\"") >&5
9550 (eval $ac_compile) 2>&5
9552 echo "$as_me:9552: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -s conftest.$ac_objext'
9555 { (eval echo "$as_me:9555: \"$ac_try\"") >&5
9558 echo "$as_me:9558: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 cf_cv_posix_visible=no
9562 echo "$as_me: failed program was:" >&5
9563 cat conftest.$ac_ext >&5
9564 cf_cv_posix_visible=yes
9566 rm -f conftest.$ac_objext conftest.$ac_ext
9569 echo "$as_me:9569: result: $cf_cv_posix_visible" >&5
9570 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9572 if test "$cf_cv_posix_visible" = no; then
9575 cf_POSIX_C_SOURCE=199506L
9580 cf_xopen_source="-D_ALL_SOURCE"
9586 cf_xopen_source="-D_APPLE_C_SOURCE"
9589 cf_xopen_source="-D_DARWIN_C_SOURCE"
9592 (freebsd*|dragonfly*|midnightbsd*)
9593 # 5.x headers associate
9594 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9595 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9596 cf_POSIX_C_SOURCE=200112L
9598 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9601 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9604 cf_xopen_source="-D_HPUX_SOURCE"
9607 cf_xopen_source="-D_SGI_SOURCE"
9610 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9612 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9614 echo "$as_me:9614: checking if this is the GNU C library" >&5
9615 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9616 if test "${cf_cv_gnu_library+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 cat >conftest.$ac_ext <<_ACEOF
9621 #line 9621 "configure"
9622 #include "confdefs.h"
9623 #include <sys/types.h>
9628 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9630 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9633 # error not GNU C library
9639 rm -f conftest.$ac_objext
9640 if { (eval echo "$as_me:9640: \"$ac_compile\"") >&5
9641 (eval $ac_compile) 2>&5
9643 echo "$as_me:9643: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -s conftest.$ac_objext'
9646 { (eval echo "$as_me:9646: \"$ac_try\"") >&5
9649 echo "$as_me:9649: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 cf_cv_gnu_library=yes
9653 echo "$as_me: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9655 cf_cv_gnu_library=no
9657 rm -f conftest.$ac_objext conftest.$ac_ext
9660 echo "$as_me:9660: result: $cf_cv_gnu_library" >&5
9661 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9663 if test x$cf_cv_gnu_library = xyes; then
9665 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9666 # was changed to help a little. newlib incorporated the change about 4
9668 echo "$as_me:9668: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9669 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9670 if test "${cf_cv_gnu_library_219+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9677 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 #line 9680 "configure"
9681 #include "confdefs.h"
9682 #include <sys/types.h>
9687 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9689 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9692 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9698 rm -f conftest.$ac_objext
9699 if { (eval echo "$as_me:9699: \"$ac_compile\"") >&5
9700 (eval $ac_compile) 2>&5
9702 echo "$as_me:9702: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -s conftest.$ac_objext'
9705 { (eval echo "$as_me:9705: \"$ac_try\"") >&5
9708 echo "$as_me:9708: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 cf_cv_gnu_library_219=yes
9712 echo "$as_me: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 cf_cv_gnu_library_219=no
9716 rm -f conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:9720: result: $cf_cv_gnu_library_219" >&5
9721 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9723 if test "x$cf_cv_gnu_library_219" = xyes; then
9725 echo "$as_me:9725: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9726 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9727 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 cf_new_extra_cppflags=
9736 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9738 case $cf_fix_cppflags in
9740 case $cf_add_cflags in
9741 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9742 case $cf_add_cflags in
9744 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9746 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9747 && test -z "${cf_tst_cflags}" \
9748 && cf_fix_cppflags=yes
9750 if test $cf_fix_cppflags = yes ; then
9752 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9753 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9756 elif test "${cf_tst_cflags}" = "\"'" ; then
9758 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9759 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9769 case $cf_add_cflags in
9771 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9773 CPPFLAGS=`echo "$CPPFLAGS" | \
9774 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9775 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9780 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9781 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9788 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9789 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9796 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9797 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9799 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9801 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9802 && test -z "${cf_tst_cflags}" \
9803 && cf_fix_cppflags=no
9808 if test -n "$cf_new_cflags" ; then
9810 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9811 CFLAGS="${CFLAGS}$cf_new_cflags"
9815 if test -n "$cf_new_cppflags" ; then
9817 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9818 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9822 if test -n "$cf_new_extra_cppflags" ; then
9824 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9825 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9829 cat >conftest.$ac_ext <<_ACEOF
9830 #line 9830 "configure"
9831 #include "confdefs.h"
9834 #include <sys/types.h>
9840 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
9843 # error GNU C library is too old
9849 rm -f conftest.$ac_objext
9850 if { (eval echo "$as_me:9850: \"$ac_compile\"") >&5
9851 (eval $ac_compile) 2>&5
9853 echo "$as_me:9853: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:9856: \"$ac_try\"") >&5
9859 echo "$as_me:9859: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 cf_cv_gnu_dftsrc_219=yes
9863 echo "$as_me: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 cf_cv_gnu_dftsrc_219=no
9867 rm -f conftest.$ac_objext conftest.$ac_ext
9870 echo "$as_me:9870: result: $cf_cv_gnu_dftsrc_219" >&5
9871 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9872 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9874 cf_cv_gnu_dftsrc_219=maybe
9877 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9879 echo "$as_me:9879: checking if we must define _GNU_SOURCE" >&5
9880 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9881 if test "${cf_cv_gnu_source+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 cat >conftest.$ac_ext <<_ACEOF
9886 #line 9886 "configure"
9887 #include "confdefs.h"
9888 #include <sys/types.h>
9893 #ifndef _XOPEN_SOURCE
9894 #error expected _XOPEN_SOURCE to be defined
9900 rm -f conftest.$ac_objext
9901 if { (eval echo "$as_me:9901: \"$ac_compile\"") >&5
9902 (eval $ac_compile) 2>&5
9904 echo "$as_me:9904: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -s conftest.$ac_objext'
9907 { (eval echo "$as_me:9907: \"$ac_try\"") >&5
9910 echo "$as_me:9910: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9914 echo "$as_me: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9921 cf_new_extra_cppflags=
9923 for cf_add_cflags in -D_GNU_SOURCE
9925 case $cf_fix_cppflags in
9927 case $cf_add_cflags in
9928 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9929 case $cf_add_cflags in
9931 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9933 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9934 && test -z "${cf_tst_cflags}" \
9935 && cf_fix_cppflags=yes
9937 if test $cf_fix_cppflags = yes ; then
9939 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9940 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9943 elif test "${cf_tst_cflags}" = "\"'" ; then
9945 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9946 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9956 case $cf_add_cflags in
9958 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9960 CPPFLAGS=`echo "$CPPFLAGS" | \
9961 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9962 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9967 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9968 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9975 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9976 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9983 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9984 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9988 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9989 && test -z "${cf_tst_cflags}" \
9990 && cf_fix_cppflags=no
9995 if test -n "$cf_new_cflags" ; then
9997 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9998 CFLAGS="${CFLAGS}$cf_new_cflags"
10002 if test -n "$cf_new_cppflags" ; then
10004 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10005 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10009 if test -n "$cf_new_extra_cppflags" ; then
10011 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10012 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10016 cat >conftest.$ac_ext <<_ACEOF
10017 #line 10017 "configure"
10018 #include "confdefs.h"
10019 #include <sys/types.h>
10024 #ifdef _XOPEN_SOURCE
10025 #error expected _XOPEN_SOURCE to be undefined
10031 rm -f conftest.$ac_objext
10032 if { (eval echo "$as_me:10032: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>&5
10035 echo "$as_me:10035: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -s conftest.$ac_objext'
10038 { (eval echo "$as_me:10038: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:10041: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 cf_cv_gnu_source=no
10045 echo "$as_me: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10047 cf_cv_gnu_source=yes
10049 rm -f conftest.$ac_objext conftest.$ac_ext
10050 CPPFLAGS="$cf_save"
10053 rm -f conftest.$ac_objext conftest.$ac_ext
10056 echo "$as_me:10056: result: $cf_cv_gnu_source" >&5
10057 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10059 if test "$cf_cv_gnu_source" = yes
10061 echo "$as_me:10061: checking if we should also define _DEFAULT_SOURCE" >&5
10062 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10063 if test "${cf_cv_default_source+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10068 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10070 cat >conftest.$ac_ext <<_ACEOF
10071 #line 10071 "configure"
10072 #include "confdefs.h"
10073 #include <sys/types.h>
10078 #ifdef _DEFAULT_SOURCE
10079 #error expected _DEFAULT_SOURCE to be undefined
10085 rm -f conftest.$ac_objext
10086 if { (eval echo "$as_me:10086: \"$ac_compile\"") >&5
10087 (eval $ac_compile) 2>&5
10089 echo "$as_me:10089: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -s conftest.$ac_objext'
10092 { (eval echo "$as_me:10092: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:10095: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 cf_cv_default_source=no
10099 echo "$as_me: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10101 cf_cv_default_source=yes
10103 rm -f conftest.$ac_objext conftest.$ac_ext
10106 echo "$as_me:10106: result: $cf_cv_default_source" >&5
10107 echo "${ECHO_T}$cf_cv_default_source" >&6
10108 if test "$cf_cv_default_source" = yes
10111 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10112 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10122 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10125 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10128 if test "$cf_cv_posix_visible" = no; then
10130 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10132 cf_save_CFLAGS="$CFLAGS"
10133 cf_save_CPPFLAGS="$CPPFLAGS"
10135 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10136 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10137 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10139 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10140 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10141 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10143 echo "$as_me:10143: checking if we should define _POSIX_C_SOURCE" >&5
10144 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10145 if test "${cf_cv_posix_c_source+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 echo "${as_me:-configure}:10149: testing if the symbol is already defined go no further ..." 1>&5
10151 cat >conftest.$ac_ext <<_ACEOF
10152 #line 10152 "configure"
10153 #include "confdefs.h"
10154 #include <sys/types.h>
10159 #ifndef _POSIX_C_SOURCE
10166 rm -f conftest.$ac_objext
10167 if { (eval echo "$as_me:10167: \"$ac_compile\"") >&5
10168 (eval $ac_compile) 2>&5
10170 echo "$as_me:10170: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -s conftest.$ac_objext'
10173 { (eval echo "$as_me:10173: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:10176: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 cf_cv_posix_c_source=no
10180 echo "$as_me: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 cf_want_posix_source=no
10183 case .$cf_POSIX_C_SOURCE in
10185 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10188 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10189 cf_want_posix_source=yes
10192 cf_want_posix_source=yes
10195 if test "$cf_want_posix_source" = yes ; then
10196 cat >conftest.$ac_ext <<_ACEOF
10197 #line 10197 "configure"
10198 #include "confdefs.h"
10199 #include <sys/types.h>
10204 #ifdef _POSIX_SOURCE
10211 rm -f conftest.$ac_objext
10212 if { (eval echo "$as_me:10212: \"$ac_compile\"") >&5
10213 (eval $ac_compile) 2>&5
10215 echo "$as_me:10215: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -s conftest.$ac_objext'
10218 { (eval echo "$as_me:10218: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:10221: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10225 echo "$as_me: failed program was:" >&5
10226 cat conftest.$ac_ext >&5
10227 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10229 rm -f conftest.$ac_objext conftest.$ac_ext
10232 echo "${as_me:-configure}:10232: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10234 CFLAGS="$cf_trim_CFLAGS"
10235 CPPFLAGS="$cf_trim_CPPFLAGS"
10237 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10238 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10240 echo "${as_me:-configure}:10240: testing if the second compile does not leave our definition intact error ..." 1>&5
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line 10243 "configure"
10244 #include "confdefs.h"
10245 #include <sys/types.h>
10250 #ifndef _POSIX_C_SOURCE
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:10258: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10261 echo "$as_me:10261: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -s conftest.$ac_objext'
10264 { (eval echo "$as_me:10264: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:10267: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10271 echo "$as_me: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 cf_cv_posix_c_source=no
10275 rm -f conftest.$ac_objext conftest.$ac_ext
10276 CFLAGS="$cf_save_CFLAGS"
10277 CPPFLAGS="$cf_save_CPPFLAGS"
10280 rm -f conftest.$ac_objext conftest.$ac_ext
10283 echo "$as_me:10283: result: $cf_cv_posix_c_source" >&5
10284 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10286 if test "$cf_cv_posix_c_source" != no ; then
10287 CFLAGS="$cf_trim_CFLAGS"
10288 CPPFLAGS="$cf_trim_CPPFLAGS"
10293 cf_new_extra_cppflags=
10295 for cf_add_cflags in $cf_cv_posix_c_source
10297 case $cf_fix_cppflags in
10299 case $cf_add_cflags in
10300 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10301 case $cf_add_cflags in
10303 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10305 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10306 && test -z "${cf_tst_cflags}" \
10307 && cf_fix_cppflags=yes
10309 if test $cf_fix_cppflags = yes ; then
10311 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10312 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10315 elif test "${cf_tst_cflags}" = "\"'" ; then
10317 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10318 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10324 case "$CPPFLAGS" in
10328 case $cf_add_cflags in
10330 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10332 CPPFLAGS=`echo "$CPPFLAGS" | \
10333 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10334 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10339 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10340 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10347 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10348 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10355 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10356 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10358 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10360 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10361 && test -z "${cf_tst_cflags}" \
10362 && cf_fix_cppflags=no
10367 if test -n "$cf_new_cflags" ; then
10369 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10370 CFLAGS="${CFLAGS}$cf_new_cflags"
10374 if test -n "$cf_new_cppflags" ; then
10376 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10377 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10381 if test -n "$cf_new_extra_cppflags" ; then
10383 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10384 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10390 fi # cf_cv_posix_visible
10394 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10397 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10398 cf_xopen_source="-D_BSD_SOURCE"
10399 cf_XOPEN_SOURCE=600
10402 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10405 cf_xopen_source="-D_OSF_SOURCE"
10408 cf_xopen_source="-D_QNX_SOURCE"
10411 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10414 cf_xopen_source="-D__EXTENSIONS__"
10415 cf_cv_xopen_source=broken
10417 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10423 echo "$as_me:10423: checking if we should define _XOPEN_SOURCE" >&5
10424 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10425 if test "${cf_cv_xopen_source+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 cat >conftest.$ac_ext <<_ACEOF
10430 #line 10430 "configure"
10431 #include "confdefs.h"
10433 #include <stdlib.h>
10434 #include <string.h>
10435 #include <sys/types.h>
10441 #ifndef _XOPEN_SOURCE
10448 rm -f conftest.$ac_objext
10449 if { (eval echo "$as_me:10449: \"$ac_compile\"") >&5
10450 (eval $ac_compile) 2>&5
10452 echo "$as_me:10452: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -s conftest.$ac_objext'
10455 { (eval echo "$as_me:10455: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:10458: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 cf_cv_xopen_source=no
10462 echo "$as_me: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 cf_save="$CPPFLAGS"
10466 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10467 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line 10470 "configure"
10471 #include "confdefs.h"
10473 #include <stdlib.h>
10474 #include <string.h>
10475 #include <sys/types.h>
10481 #ifdef _XOPEN_SOURCE
10488 rm -f conftest.$ac_objext
10489 if { (eval echo "$as_me:10489: \"$ac_compile\"") >&5
10490 (eval $ac_compile) 2>&5
10492 echo "$as_me:10492: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 { ac_try='test -s conftest.$ac_objext'
10495 { (eval echo "$as_me:10495: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10498 echo "$as_me:10498: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 cf_cv_xopen_source=no
10502 echo "$as_me: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10504 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10506 rm -f conftest.$ac_objext conftest.$ac_ext
10507 CPPFLAGS="$cf_save"
10510 rm -f conftest.$ac_objext conftest.$ac_ext
10513 echo "$as_me:10513: result: $cf_cv_xopen_source" >&5
10514 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10516 if test "$cf_cv_xopen_source" != no ; then
10518 CFLAGS=`echo "$CFLAGS" | \
10519 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10520 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10522 CPPFLAGS=`echo "$CPPFLAGS" | \
10523 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10524 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10526 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10531 cf_new_extra_cppflags=
10533 for cf_add_cflags in $cf_temp_xopen_source
10535 case $cf_fix_cppflags in
10537 case $cf_add_cflags in
10538 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10539 case $cf_add_cflags in
10541 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10543 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10544 && test -z "${cf_tst_cflags}" \
10545 && cf_fix_cppflags=yes
10547 if test $cf_fix_cppflags = yes ; then
10549 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10550 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10553 elif test "${cf_tst_cflags}" = "\"'" ; then
10555 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10556 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10562 case "$CPPFLAGS" in
10566 case $cf_add_cflags in
10568 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10570 CPPFLAGS=`echo "$CPPFLAGS" | \
10571 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10572 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10577 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10578 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10585 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10586 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10596 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10598 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10599 && test -z "${cf_tst_cflags}" \
10600 && cf_fix_cppflags=no
10605 if test -n "$cf_new_cflags" ; then
10607 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10608 CFLAGS="${CFLAGS}$cf_new_cflags"
10612 if test -n "$cf_new_cppflags" ; then
10614 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10615 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10619 if test -n "$cf_new_extra_cppflags" ; then
10621 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10622 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10628 if test "$cf_cv_posix_visible" = no; then
10630 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10632 cf_save_CFLAGS="$CFLAGS"
10633 cf_save_CPPFLAGS="$CPPFLAGS"
10635 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10636 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10637 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10639 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10640 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10641 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10643 echo "$as_me:10643: checking if we should define _POSIX_C_SOURCE" >&5
10644 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10645 if test "${cf_cv_posix_c_source+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 echo "${as_me:-configure}:10649: testing if the symbol is already defined go no further ..." 1>&5
10651 cat >conftest.$ac_ext <<_ACEOF
10652 #line 10652 "configure"
10653 #include "confdefs.h"
10654 #include <sys/types.h>
10659 #ifndef _POSIX_C_SOURCE
10666 rm -f conftest.$ac_objext
10667 if { (eval echo "$as_me:10667: \"$ac_compile\"") >&5
10668 (eval $ac_compile) 2>&5
10670 echo "$as_me:10670: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try='test -s conftest.$ac_objext'
10673 { (eval echo "$as_me:10673: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10676 echo "$as_me:10676: \$? = $ac_status" >&5
10677 (exit $ac_status); }; }; then
10678 cf_cv_posix_c_source=no
10680 echo "$as_me: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10682 cf_want_posix_source=no
10683 case .$cf_POSIX_C_SOURCE in
10685 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10688 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10689 cf_want_posix_source=yes
10692 cf_want_posix_source=yes
10695 if test "$cf_want_posix_source" = yes ; then
10696 cat >conftest.$ac_ext <<_ACEOF
10697 #line 10697 "configure"
10698 #include "confdefs.h"
10699 #include <sys/types.h>
10704 #ifdef _POSIX_SOURCE
10711 rm -f conftest.$ac_objext
10712 if { (eval echo "$as_me:10712: \"$ac_compile\"") >&5
10713 (eval $ac_compile) 2>&5
10715 echo "$as_me:10715: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -s conftest.$ac_objext'
10718 { (eval echo "$as_me:10718: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:10721: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10725 echo "$as_me: failed program was:" >&5
10726 cat conftest.$ac_ext >&5
10727 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10729 rm -f conftest.$ac_objext conftest.$ac_ext
10732 echo "${as_me:-configure}:10732: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10734 CFLAGS="$cf_trim_CFLAGS"
10735 CPPFLAGS="$cf_trim_CPPFLAGS"
10737 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10738 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10740 echo "${as_me:-configure}:10740: testing if the second compile does not leave our definition intact error ..." 1>&5
10742 cat >conftest.$ac_ext <<_ACEOF
10743 #line 10743 "configure"
10744 #include "confdefs.h"
10745 #include <sys/types.h>
10750 #ifndef _POSIX_C_SOURCE
10757 rm -f conftest.$ac_objext
10758 if { (eval echo "$as_me:10758: \"$ac_compile\"") >&5
10759 (eval $ac_compile) 2>&5
10761 echo "$as_me:10761: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -s conftest.$ac_objext'
10764 { (eval echo "$as_me:10764: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10767 echo "$as_me:10767: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
10771 echo "$as_me: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10773 cf_cv_posix_c_source=no
10775 rm -f conftest.$ac_objext conftest.$ac_ext
10776 CFLAGS="$cf_save_CFLAGS"
10777 CPPFLAGS="$cf_save_CPPFLAGS"
10780 rm -f conftest.$ac_objext conftest.$ac_ext
10783 echo "$as_me:10783: result: $cf_cv_posix_c_source" >&5
10784 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10786 if test "$cf_cv_posix_c_source" != no ; then
10787 CFLAGS="$cf_trim_CFLAGS"
10788 CPPFLAGS="$cf_trim_CPPFLAGS"
10793 cf_new_extra_cppflags=
10795 for cf_add_cflags in $cf_cv_posix_c_source
10797 case $cf_fix_cppflags in
10799 case $cf_add_cflags in
10800 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10801 case $cf_add_cflags in
10803 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10805 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10806 && test -z "${cf_tst_cflags}" \
10807 && cf_fix_cppflags=yes
10809 if test $cf_fix_cppflags = yes ; then
10811 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10812 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10815 elif test "${cf_tst_cflags}" = "\"'" ; then
10817 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10818 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10824 case "$CPPFLAGS" in
10828 case $cf_add_cflags in
10830 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10832 CPPFLAGS=`echo "$CPPFLAGS" | \
10833 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10834 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10839 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10840 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10847 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10848 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10855 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10856 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10858 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10860 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10861 && test -z "${cf_tst_cflags}" \
10862 && cf_fix_cppflags=no
10867 if test -n "$cf_new_cflags" ; then
10869 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10870 CFLAGS="${CFLAGS}$cf_new_cflags"
10874 if test -n "$cf_new_cppflags" ; then
10876 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10877 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10881 if test -n "$cf_new_extra_cppflags" ; then
10883 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10884 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10890 fi # cf_cv_posix_visible
10895 if test -n "$cf_xopen_source" ; then
10900 cf_new_extra_cppflags=
10902 for cf_add_cflags in $cf_xopen_source
10904 case $cf_fix_cppflags in
10906 case $cf_add_cflags in
10907 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10908 case $cf_add_cflags in
10910 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10912 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10913 && test -z "${cf_tst_cflags}" \
10914 && cf_fix_cppflags=yes
10916 if test $cf_fix_cppflags = yes ; then
10918 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10919 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10922 elif test "${cf_tst_cflags}" = "\"'" ; then
10924 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10925 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10931 case "$CPPFLAGS" in
10935 case $cf_add_cflags in
10937 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10939 CPPFLAGS=`echo "$CPPFLAGS" | \
10940 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10941 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10946 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10947 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10954 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10955 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10962 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10963 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10965 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10967 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10968 && test -z "${cf_tst_cflags}" \
10969 && cf_fix_cppflags=no
10974 if test -n "$cf_new_cflags" ; then
10975 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10977 echo "${as_me:-configure}:10977: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10979 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10980 CFLAGS="${CFLAGS}$cf_new_cflags"
10984 if test -n "$cf_new_cppflags" ; then
10985 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10987 echo "${as_me:-configure}:10987: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10989 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10990 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10994 if test -n "$cf_new_extra_cppflags" ; then
10995 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10997 echo "${as_me:-configure}:10997: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10999 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11000 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11006 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11007 echo "$as_me:11007: checking if _XOPEN_SOURCE really is set" >&5
11008 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11009 cat >conftest.$ac_ext <<_ACEOF
11010 #line 11010 "configure"
11011 #include "confdefs.h"
11012 #include <stdlib.h>
11017 #ifndef _XOPEN_SOURCE
11024 rm -f conftest.$ac_objext
11025 if { (eval echo "$as_me:11025: \"$ac_compile\"") >&5
11026 (eval $ac_compile) 2>&5
11028 echo "$as_me:11028: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -s conftest.$ac_objext'
11031 { (eval echo "$as_me:11031: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:11034: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 cf_XOPEN_SOURCE_set=yes
11038 echo "$as_me: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11040 cf_XOPEN_SOURCE_set=no
11042 rm -f conftest.$ac_objext conftest.$ac_ext
11043 echo "$as_me:11043: result: $cf_XOPEN_SOURCE_set" >&5
11044 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11045 if test $cf_XOPEN_SOURCE_set = yes
11047 cat >conftest.$ac_ext <<_ACEOF
11048 #line 11048 "configure"
11049 #include "confdefs.h"
11050 #include <stdlib.h>
11055 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11062 rm -f conftest.$ac_objext
11063 if { (eval echo "$as_me:11063: \"$ac_compile\"") >&5
11064 (eval $ac_compile) 2>&5
11066 echo "$as_me:11066: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -s conftest.$ac_objext'
11069 { (eval echo "$as_me:11069: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:11072: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 cf_XOPEN_SOURCE_set_ok=yes
11076 echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 cf_XOPEN_SOURCE_set_ok=no
11080 rm -f conftest.$ac_objext conftest.$ac_ext
11081 if test $cf_XOPEN_SOURCE_set_ok = no
11083 { echo "$as_me:11083: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11084 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11088 echo "$as_me:11088: checking if we should define _XOPEN_SOURCE" >&5
11089 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11090 if test "${cf_cv_xopen_source+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 cat >conftest.$ac_ext <<_ACEOF
11095 #line 11095 "configure"
11096 #include "confdefs.h"
11098 #include <stdlib.h>
11099 #include <string.h>
11100 #include <sys/types.h>
11106 #ifndef _XOPEN_SOURCE
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:11114: \"$ac_compile\"") >&5
11115 (eval $ac_compile) 2>&5
11117 echo "$as_me:11117: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -s conftest.$ac_objext'
11120 { (eval echo "$as_me:11120: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:11123: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 cf_cv_xopen_source=no
11127 echo "$as_me: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 cf_save="$CPPFLAGS"
11131 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11132 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line 11135 "configure"
11136 #include "confdefs.h"
11138 #include <stdlib.h>
11139 #include <string.h>
11140 #include <sys/types.h>
11146 #ifdef _XOPEN_SOURCE
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:11154: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>&5
11157 echo "$as_me:11157: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:11160: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:11163: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 cf_cv_xopen_source=no
11167 echo "$as_me: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11169 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11171 rm -f conftest.$ac_objext conftest.$ac_ext
11172 CPPFLAGS="$cf_save"
11175 rm -f conftest.$ac_objext conftest.$ac_ext
11178 echo "$as_me:11178: result: $cf_cv_xopen_source" >&5
11179 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11181 if test "$cf_cv_xopen_source" != no ; then
11183 CFLAGS=`echo "$CFLAGS" | \
11184 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11185 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11187 CPPFLAGS=`echo "$CPPFLAGS" | \
11188 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11189 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11191 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11196 cf_new_extra_cppflags=
11198 for cf_add_cflags in $cf_temp_xopen_source
11200 case $cf_fix_cppflags in
11202 case $cf_add_cflags in
11203 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11204 case $cf_add_cflags in
11206 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11208 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11209 && test -z "${cf_tst_cflags}" \
11210 && cf_fix_cppflags=yes
11212 if test $cf_fix_cppflags = yes ; then
11214 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11215 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11218 elif test "${cf_tst_cflags}" = "\"'" ; then
11220 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11221 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11227 case "$CPPFLAGS" in
11231 case $cf_add_cflags in
11233 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11235 CPPFLAGS=`echo "$CPPFLAGS" | \
11236 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11237 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11242 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11243 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11250 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11251 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11258 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11259 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11261 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11263 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11264 && test -z "${cf_tst_cflags}" \
11265 && cf_fix_cppflags=no
11270 if test -n "$cf_new_cflags" ; then
11272 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11273 CFLAGS="${CFLAGS}$cf_new_cflags"
11277 if test -n "$cf_new_cppflags" ; then
11279 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11280 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11284 if test -n "$cf_new_extra_cppflags" ; then
11286 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11287 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11295 fi # cf_cv_posix_visible
11297 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11299 # Work around breakage on OS X
11301 echo "$as_me:11301: checking if SIGWINCH is defined" >&5
11302 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11303 if test "${cf_cv_define_sigwinch+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 cat >conftest.$ac_ext <<_ACEOF
11308 #line 11308 "configure"
11309 #include "confdefs.h"
11311 #include <sys/types.h>
11312 #include <sys/signal.h>
11317 int x = SIGWINCH; (void)x
11322 rm -f conftest.$ac_objext
11323 if { (eval echo "$as_me:11323: \"$ac_compile\"") >&5
11324 (eval $ac_compile) 2>&5
11326 echo "$as_me:11326: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -s conftest.$ac_objext'
11329 { (eval echo "$as_me:11329: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:11332: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 cf_cv_define_sigwinch=yes
11336 echo "$as_me: failed program was:" >&5
11337 cat conftest.$ac_ext >&5
11338 cat >conftest.$ac_ext <<_ACEOF
11339 #line 11339 "configure"
11340 #include "confdefs.h"
11342 #undef _XOPEN_SOURCE
11343 #undef _POSIX_SOURCE
11344 #undef _POSIX_C_SOURCE
11345 #include <sys/types.h>
11346 #include <sys/signal.h>
11351 int x = SIGWINCH; (void)x
11356 rm -f conftest.$ac_objext
11357 if { (eval echo "$as_me:11357: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>&5
11360 echo "$as_me:11360: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -s conftest.$ac_objext'
11363 { (eval echo "$as_me:11363: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:11366: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 cf_cv_define_sigwinch=maybe
11370 echo "$as_me: failed program was:" >&5
11371 cat conftest.$ac_ext >&5
11372 cf_cv_define_sigwinch=no
11374 rm -f conftest.$ac_objext conftest.$ac_ext
11377 rm -f conftest.$ac_objext conftest.$ac_ext
11380 echo "$as_me:11380: result: $cf_cv_define_sigwinch" >&5
11381 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11383 if test "$cf_cv_define_sigwinch" = maybe ; then
11384 echo "$as_me:11384: checking for actual SIGWINCH definition" >&5
11385 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11386 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cf_cv_fixup_sigwinch=unknown
11392 while test $cf_sigwinch != 1
11394 cat >conftest.$ac_ext <<_ACEOF
11395 #line 11395 "configure"
11396 #include "confdefs.h"
11398 #undef _XOPEN_SOURCE
11399 #undef _POSIX_SOURCE
11400 #undef _POSIX_C_SOURCE
11401 #include <sys/types.h>
11402 #include <sys/signal.h>
11408 #if SIGWINCH != $cf_sigwinch
11411 int x = SIGWINCH; (void)x
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:11417: \"$ac_compile\"") >&5
11418 (eval $ac_compile) 2>&5
11420 echo "$as_me:11420: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:11423: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:11426: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 cf_cv_fixup_sigwinch=$cf_sigwinch
11431 echo "$as_me: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11434 rm -f conftest.$ac_objext conftest.$ac_ext
11436 cf_sigwinch=`expr $cf_sigwinch - 1`
11440 echo "$as_me:11440: result: $cf_cv_fixup_sigwinch" >&5
11441 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11443 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11444 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11448 # Checks for CODESET support.
11450 echo "$as_me:11450: checking for nl_langinfo and CODESET" >&5
11451 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11452 if test "${am_cv_langinfo_codeset+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 cat >conftest.$ac_ext <<_ACEOF
11456 #line 11456 "configure"
11457 #include "confdefs.h"
11458 #include <langinfo.h>
11462 char* cs = nl_langinfo(CODESET); (void)cs
11467 rm -f conftest.$ac_objext conftest$ac_exeext
11468 if { (eval echo "$as_me:11468: \"$ac_link\"") >&5
11469 (eval $ac_link) 2>&5
11471 echo "$as_me:11471: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -s conftest$ac_exeext'
11474 { (eval echo "$as_me:11474: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11477 echo "$as_me:11477: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 am_cv_langinfo_codeset=yes
11481 echo "$as_me: failed program was:" >&5
11482 cat conftest.$ac_ext >&5
11483 am_cv_langinfo_codeset=no
11485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11488 echo "$as_me:11488: result: $am_cv_langinfo_codeset" >&5
11489 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11490 if test $am_cv_langinfo_codeset = yes; then
11492 cat >>confdefs.h <<\EOF
11493 #define HAVE_LANGINFO_CODESET 1
11498 # use these variables to work around a defect in gcc's fixincludes.
11499 NCURSES_OK_WCHAR_T=
11502 echo "$as_me:11502: checking if you want wide-character code" >&5
11503 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11505 # Check whether --enable-widec or --disable-widec was given.
11506 if test "${enable_widec+set}" = set; then
11507 enableval="$enable_widec"
11508 with_widec=$enableval
11512 echo "$as_me:11512: result: $with_widec" >&5
11513 echo "${ECHO_T}$with_widec" >&6
11515 NCURSES_WCWIDTH_GRAPHICS=1
11517 if test "x$with_widec" = xyes ; then
11518 if test "x$disable_lib_suffixes" = xno ; then
11519 LIB_SUFFIX="w${LIB_SUFFIX}"
11522 cat >>confdefs.h <<\EOF
11523 #define USE_WIDEC_SUPPORT 1
11526 cat >>confdefs.h <<\EOF
11527 #define NCURSES_WIDECHAR 1
11535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11536 echo "$as_me:11536: checking for $ac_header" >&5
11537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 cat >conftest.$ac_ext <<_ACEOF
11542 #line 11542 "configure"
11543 #include "confdefs.h"
11544 #include <$ac_header>
11546 if { (eval echo "$as_me:11546: \"$ac_cpp conftest.$ac_ext\"") >&5
11547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11549 egrep -v '^ *\+' conftest.er1 >conftest.err
11551 cat conftest.err >&5
11552 echo "$as_me:11552: \$? = $ac_status" >&5
11553 (exit $ac_status); } >/dev/null; then
11554 if test -s conftest.err; then
11555 ac_cpp_err=$ac_c_preproc_warn_flag
11562 if test -z "$ac_cpp_err"; then
11563 eval "$as_ac_Header=yes"
11565 echo "$as_me: failed program was:" >&5
11566 cat conftest.$ac_ext >&5
11567 eval "$as_ac_Header=no"
11569 rm -f conftest.err conftest.$ac_ext
11571 echo "$as_me:11571: result: `eval echo '${'$as_ac_Header'}'`" >&5
11572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11574 cat >>confdefs.h <<EOF
11575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11581 echo "$as_me:11581: checking if wchar.h can be used as is" >&5
11582 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11583 if test "${cf_cv_wchar_h_okay+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 cat >conftest.$ac_ext <<_ACEOF
11588 #line 11588 "configure"
11589 #include "confdefs.h"
11591 #include <stdlib.h>
11592 #ifdef HAVE_WCHAR_H
11595 #ifdef HAVE_WCTYPE_H
11596 #include <wctype.h>
11604 int bar = iswpunct(foo)
11609 rm -f conftest.$ac_objext
11610 if { (eval echo "$as_me:11610: \"$ac_compile\"") >&5
11611 (eval $ac_compile) 2>&5
11613 echo "$as_me:11613: \$? = $ac_status" >&5
11614 (exit $ac_status); } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (eval echo "$as_me:11616: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:11619: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 cf_cv_wchar_h_okay=yes
11623 echo "$as_me: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11625 cf_cv_wchar_h_okay=no
11627 rm -f conftest.$ac_objext conftest.$ac_ext
11629 echo "$as_me:11629: result: $cf_cv_wchar_h_okay" >&5
11630 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11632 if test $cf_cv_wchar_h_okay = no
11635 echo "$as_me:11635: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11636 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11637 cat >conftest.$ac_ext <<_ACEOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11640 #include <sys/types.h>
11646 #ifndef _XOPEN_SOURCE_EXTENDED
11653 rm -f conftest.$ac_objext
11654 if { (eval echo "$as_me:11654: \"$ac_compile\"") >&5
11655 (eval $ac_compile) 2>&5
11657 echo "$as_me:11657: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:11660: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:11663: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11667 echo "$as_me: failed program was:" >&5
11668 cat conftest.$ac_ext >&5
11671 rm -f conftest.$ac_objext conftest.$ac_ext
11672 echo "$as_me:11672: result: $cf_result" >&5
11673 echo "${ECHO_T}$cf_result" >&6
11675 if test "$cf_result" = yes ; then
11676 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11677 elif test "x" != "x" ; then
11678 echo "$as_me:11678: checking checking for compatible value versus " >&5
11679 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
11680 cat >conftest.$ac_ext <<_ACEOF
11681 #line 11681 "configure"
11682 #include "confdefs.h"
11683 #include <sys/types.h>
11689 #if _XOPEN_SOURCE_EXTENDED- < 0
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:11697: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>&5
11700 echo "$as_me:11700: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
11702 { ac_try='test -s conftest.$ac_objext'
11703 { (eval echo "$as_me:11703: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11706 echo "$as_me:11706: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11710 echo "$as_me: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11714 rm -f conftest.$ac_objext conftest.$ac_ext
11715 echo "$as_me:11715: result: $cf_result" >&5
11716 echo "${ECHO_T}$cf_result" >&6
11717 if test "$cf_result" = no ; then
11718 # perhaps we can override it - try...
11719 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
11725 echo "$as_me:11725: checking if wcwidth agrees graphics are single-width" >&5
11726 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
11727 if test "${cf_cv_wcwidth_graphics+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 cat >conftest.in <<CF_EOF
11733 0x250c upper left corner
11734 0x2514 lower left corner
11735 0x2510 upper right corner
11736 0x2518 lower right corner
11737 0x251c tee pointing left
11738 0x2524 tee pointing right
11739 0x2534 tee pointing up
11740 0x252c tee pointing down
11741 0x2500 horizontal line
11742 0x2502 vertical line
11743 0x253c large plus or crossover
11747 0x2592 checker board (stipple)
11748 0x00b0 degree symbol
11751 - Teletype 5410v1 symbols
11752 0x2190 arrow pointing left
11753 0x2192 arrow pointing right
11754 0x2193 arrow pointing down
11755 0x2191 arrow pointing up
11756 0x2592 board of squares
11757 0x2603 lantern symbol
11758 0x25ae solid square block
11759 - these defaults were invented for ncurses
11762 0x2264 less-than-or-equal-to
11763 0x2265 greater-than-or-equal-to
11766 0x00a3 pound-sterling symbol
11767 - thick-line-drawing
11768 0x250f upper left corner
11769 0x2517 lower left corner
11770 0x2513 upper right corner
11771 0x251b lower right corner
11772 0x2523 tee pointing left
11773 0x252b tee pointing right
11774 0x253b tee pointing up
11775 0x2533 tee pointing down
11776 0x2501 horizontal line
11777 0x2503 vertical line
11778 0x254b large plus or crossover
11779 - double-line-drawing
11780 0x2554 upper left corner
11781 0x255a lower left corner
11782 0x2557 upper right corner
11783 0x255d lower right corner
11784 0x2563 tee pointing left
11785 0x2560 tee pointing right
11786 0x2569 tee pointing up
11787 0x2566 tee pointing down
11788 0x2550 horizontal line
11789 0x2551 vertical line
11790 0x256c large plus or crossover
11792 if test "$cross_compiling" = yes; then
11793 cf_cv_wcwidth_graphics=unknown
11795 cat >conftest.$ac_ext <<_ACEOF
11796 #line 11796 "configure"
11797 #include "confdefs.h"
11799 #include <locale.h>
11810 char buffer[MY_LEN + 1];
11811 char notes[MY_LEN + 1];
11815 if (setlocale(LC_ALL, "en_US.UTF8") ||
11816 setlocale(LC_ALL, "en_US.UTF-8") ||
11817 setlocale(LC_ALL, "en_US.utf8") ||
11818 setlocale(LC_ALL, "en_US.utf-8")) {
11819 if ((fp = fopen("conftest.in", "r")) != 0) {
11820 while (fgets(buffer, MY_LEN, fp) != 0) {
11821 if (*buffer == '-') {
11822 fprintf(stderr, "\t%s", buffer);
11823 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
11825 if (wcwidth(value) == 1)
11827 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
11829 fprintf(stderr, "?\t%s", buffer);
11834 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
11835 return (totals == passed) ? 0 : 1;
11839 rm -f conftest$ac_exeext
11840 if { (eval echo "$as_me:11840: \"$ac_link\"") >&5
11841 (eval $ac_link) 2>&5
11843 echo "$as_me:11843: \$? = $ac_status" >&5
11844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11845 { (eval echo "$as_me:11845: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11848 echo "$as_me:11848: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 cf_cv_wcwidth_graphics=yes
11852 echo "$as_me: program exited with status $ac_status" >&5
11853 echo "$as_me: failed program was:" >&5
11854 cat conftest.$ac_ext >&5
11855 cf_cv_wcwidth_graphics=no
11857 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11861 echo "$as_me:11861: result: $cf_cv_wcwidth_graphics" >&5
11862 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11864 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11866 # with_overwrite=no
11867 NCURSES_CH_T=cchar_t
11869 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11872 echo "$as_me:11872: checking for $ac_func" >&5
11873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11874 if eval "test \"\${$as_ac_var+set}\" = set"; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 cat >conftest.$ac_ext <<_ACEOF
11878 #line 11878 "configure"
11879 #include "confdefs.h"
11880 #define $ac_func autoconf_temporary
11881 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11888 /* We use char because int might match the return type of a gcc2
11889 builtin and then its argument prototype would still apply. */
11890 char $ac_func (void);
11896 /* The GNU C library defines stubs for functions which it implements
11897 to always fail with ENOSYS. Some functions are actually named
11898 something starting with __ and the normal name is an alias. */
11899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11900 #error found stub for $ac_func
11903 return $ac_func ();
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:11909: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>&5
11912 echo "$as_me:11912: \$? = $ac_status" >&5
11913 (exit $ac_status); } &&
11914 { ac_try='test -s conftest$ac_exeext'
11915 { (eval echo "$as_me:11915: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:11918: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 eval "$as_ac_var=yes"
11922 echo "$as_me: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 eval "$as_ac_var=no"
11926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11928 echo "$as_me:11928: result: `eval echo '${'$as_ac_var'}'`" >&5
11929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11930 if test `eval echo '${'$as_ac_var'}'` = yes; then
11931 cat >>confdefs.h <<EOF
11932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11938 if test "x$ac_cv_func_putwc" != xyes ; then
11940 echo "$as_me:11940: checking for multibyte character support" >&5
11941 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
11942 if test "${cf_cv_utf8_lib+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cf_save_LIBS="$LIBS"
11947 cat >conftest.$ac_ext <<_ACEOF
11948 #line 11948 "configure"
11949 #include "confdefs.h"
11951 #include <stdlib.h>
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:11961: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11964 echo "$as_me:11964: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:11967: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:11970: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11974 echo "$as_me: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11977 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
11978 # will be set on completion of the AC_TRY_LINK below.
11979 cf_cv_header_path_utf8=
11980 cf_cv_library_path_utf8=
11982 echo "${as_me:-configure}:11982: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
11984 cf_save_LIBS="$LIBS"
11986 cat >conftest.$ac_ext <<_ACEOF
11987 #line 11987 "configure"
11988 #include "confdefs.h"
11990 #include <libutf8.h>
11999 rm -f conftest.$ac_objext conftest$ac_exeext
12000 if { (eval echo "$as_me:12000: \"$ac_link\"") >&5
12001 (eval $ac_link) 2>&5
12003 echo "$as_me:12003: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -s conftest$ac_exeext'
12006 { (eval echo "$as_me:12006: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:12009: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12012 cf_cv_find_linkage_utf8=yes
12013 cf_cv_header_path_utf8=/usr/include
12014 cf_cv_library_path_utf8=/usr/lib
12017 echo "$as_me: failed program was:" >&5
12018 cat conftest.$ac_ext >&5
12020 LIBS="-lutf8 $cf_save_LIBS"
12022 cat >conftest.$ac_ext <<_ACEOF
12023 #line 12023 "configure"
12024 #include "confdefs.h"
12026 #include <libutf8.h>
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:12036: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>&5
12039 echo "$as_me:12039: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:12042: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12048 cf_cv_find_linkage_utf8=yes
12049 cf_cv_header_path_utf8=/usr/include
12050 cf_cv_library_path_utf8=/usr/lib
12051 cf_cv_library_file_utf8="-lutf8"
12054 echo "$as_me: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12057 cf_cv_find_linkage_utf8=no
12058 LIBS="$cf_save_LIBS"
12060 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12062 echo "${as_me:-configure}:12062: testing find linkage for utf8 library ..." 1>&5
12064 echo "${as_me:-configure}:12064: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12066 cf_save_CPPFLAGS="$CPPFLAGS"
12067 cf_test_CPPFLAGS="$CPPFLAGS"
12071 # collect the current set of include-directories from compiler flags
12072 cf_header_path_list=""
12073 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12074 for cf_header_path in $CPPFLAGS $CFLAGS
12076 case $cf_header_path in
12078 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12080 test "x$cf_header_path" != "xNONE" && \
12081 test -d "$cf_header_path" && \
12083 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12084 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
12085 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
12086 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
12087 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
12088 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12091 cf_header_path_list="$cf_header_path_list $cf_search"
12097 # add the variations for the package we are looking for
12101 test "x$prefix" != "xNONE" && \
12102 test -d "$prefix" && \
12104 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12105 test -d $prefix/include && cf_search="$cf_search $prefix/include"
12106 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
12107 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
12108 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
12109 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
12112 for cf_subdir_prefix in \
12121 test "x$cf_subdir_prefix" != "x$prefix" && \
12122 test -d "$cf_subdir_prefix" && \
12123 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
12124 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12125 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
12126 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12127 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12128 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12129 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12134 test "$includedir" != NONE && \
12135 test "$includedir" != "/usr/include" && \
12136 test -d "$includedir" && {
12137 test -d $includedir && cf_search="$cf_search $includedir"
12138 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
12141 test "$oldincludedir" != NONE && \
12142 test "$oldincludedir" != "/usr/include" && \
12143 test -d "$oldincludedir" && {
12144 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
12145 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
12148 cf_search="$cf_search $cf_header_path_list"
12150 for cf_cv_header_path_utf8 in $cf_search
12152 if test -d $cf_cv_header_path_utf8 ; then
12153 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12155 echo "${as_me:-configure}:12155: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12157 CPPFLAGS="$cf_save_CPPFLAGS"
12159 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12160 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12162 cat >conftest.$ac_ext <<_ACEOF
12163 #line 12163 "configure"
12164 #include "confdefs.h"
12166 #include <libutf8.h>
12175 rm -f conftest.$ac_objext
12176 if { (eval echo "$as_me:12176: \"$ac_compile\"") >&5
12177 (eval $ac_compile) 2>&5
12179 echo "$as_me:12179: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -s conftest.$ac_objext'
12182 { (eval echo "$as_me:12182: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 echo "$as_me:12185: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12188 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12190 echo "${as_me:-configure}:12190: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12192 cf_cv_find_linkage_utf8=maybe
12193 cf_test_CPPFLAGS="$CPPFLAGS"
12196 echo "$as_me: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12199 CPPFLAGS="$cf_save_CPPFLAGS"
12202 rm -f conftest.$ac_objext conftest.$ac_ext
12206 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12208 echo "${as_me:-configure}:12208: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12210 cf_save_LIBS="$LIBS"
12211 cf_save_LDFLAGS="$LDFLAGS"
12213 if test "$cf_cv_find_linkage_utf8" != yes ; then
12216 cf_library_path_list=""
12217 if test -n "${LDFLAGS}${LIBS}" ; then
12218 for cf_library_path in $LDFLAGS $LIBS
12220 case $cf_library_path in
12222 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12224 test "x$cf_library_path" != "xNONE" && \
12225 test -d "$cf_library_path" && \
12227 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12228 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
12229 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
12230 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12231 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
12232 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12235 cf_library_path_list="$cf_library_path_list $cf_search"
12243 test "x$prefix" != "xNONE" && \
12244 test -d "$prefix" && \
12246 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12247 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
12248 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
12249 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
12250 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
12251 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
12254 for cf_subdir_prefix in \
12263 test "x$cf_subdir_prefix" != "x$prefix" && \
12264 test -d "$cf_subdir_prefix" && \
12265 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
12266 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12267 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
12268 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12269 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12270 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12271 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12276 cf_search="$cf_library_path_list $cf_search"
12278 for cf_cv_library_path_utf8 in $cf_search
12280 if test -d $cf_cv_library_path_utf8 ; then
12281 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12283 echo "${as_me:-configure}:12283: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12285 CPPFLAGS="$cf_test_CPPFLAGS"
12286 LIBS="-lutf8 $cf_save_LIBS"
12287 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 #line 12289 "configure"
12290 #include "confdefs.h"
12292 #include <libutf8.h>
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (eval echo "$as_me:12302: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>&5
12305 echo "$as_me:12305: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (eval echo "$as_me:12308: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:12311: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12314 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12316 echo "${as_me:-configure}:12316: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12318 cf_cv_find_linkage_utf8=yes
12319 cf_cv_library_file_utf8="-lutf8"
12322 echo "$as_me: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12325 CPPFLAGS="$cf_save_CPPFLAGS"
12326 LIBS="$cf_save_LIBS"
12327 LDFLAGS="$cf_save_LDFLAGS"
12330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12333 CPPFLAGS="$cf_save_CPPFLAGS"
12334 LDFLAGS="$cf_save_LDFLAGS"
12338 cf_cv_find_linkage_utf8=no
12342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12347 LIBS="$cf_save_LIBS"
12349 if test "$cf_cv_find_linkage_utf8" = yes ; then
12350 cf_cv_utf8_lib=add-on
12356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12358 echo "$as_me:12358: result: $cf_cv_utf8_lib" >&5
12359 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12361 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12362 # ncurses/ncursesw:
12363 if test "$cf_cv_utf8_lib" = "add-on" ; then
12365 cat >>confdefs.h <<\EOF
12366 #define HAVE_LIBUTF8_H 1
12369 if test -n "$cf_cv_header_path_utf8" ; then
12370 for cf_add_incdir in $cf_cv_header_path_utf8
12372 while test $cf_add_incdir != /usr/include
12374 if test -d $cf_add_incdir
12377 if test -n "$CFLAGS$CPPFLAGS" ; then
12378 # a loop is needed to ensure we can add subdirs of existing dirs
12379 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12380 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12381 cf_have_incdir=yes; break
12386 if test "$cf_have_incdir" = no ; then
12387 if test "$cf_add_incdir" = /usr/local/include ; then
12388 if test "$GCC" = yes
12390 cf_save_CPPFLAGS=$CPPFLAGS
12392 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12393 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12395 cat >conftest.$ac_ext <<_ACEOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12407 rm -f conftest.$ac_objext
12408 if { (eval echo "$as_me:12408: \"$ac_compile\"") >&5
12409 (eval $ac_compile) 2>&5
12411 echo "$as_me:12411: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -s conftest.$ac_objext'
12414 { (eval echo "$as_me:12414: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:12417: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12421 echo "$as_me: failed program was:" >&5
12422 cat conftest.$ac_ext >&5
12425 rm -f conftest.$ac_objext conftest.$ac_ext
12426 CPPFLAGS=$cf_save_CPPFLAGS
12431 if test "$cf_have_incdir" = no ; then
12432 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12434 echo "${as_me:-configure}:12434: testing adding $cf_add_incdir to include-path ..." 1>&5
12436 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12438 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
12439 test "$cf_top_incdir" = "$cf_add_incdir" && break
12440 cf_add_incdir="$cf_top_incdir"
12451 if test -n "$cf_cv_library_path_utf8" ; then
12452 for cf_add_libdir in $cf_cv_library_path_utf8
12454 if test $cf_add_libdir = /usr/lib ; then
12456 elif test -d $cf_add_libdir
12459 if test -n "$LDFLAGS$LIBS" ; then
12460 # a loop is needed to ensure we can add subdirs of existing dirs
12461 for cf_test_libdir in $LDFLAGS $LIBS ; do
12462 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12463 cf_have_libdir=yes; break
12467 if test "$cf_have_libdir" = no ; then
12468 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12470 echo "${as_me:-configure}:12470: testing adding $cf_add_libdir to library-path ..." 1>&5
12472 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12478 cf_add_libs="$LIBS"
12481 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12482 # filter duplicates
12483 for cf_add_1lib in $cf_add_0lib; do
12484 for cf_add_2lib in $cf_add_libs; do
12485 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12490 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12492 LIBS="$cf_add_libs"
12496 if test "$cf_cv_utf8_lib" != no ; then
12501 # This is needed on Tru64 5.0 to declare mbstate_t
12502 echo "$as_me:12502: checking if we must include wchar.h to declare mbstate_t" >&5
12503 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12504 if test "${cf_cv_mbstate_t+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12509 #line 12509 "configure"
12510 #include "confdefs.h"
12512 #include <stdlib.h>
12513 #include <stdarg.h>
12515 #ifdef HAVE_LIBUTF8_H
12516 #include <libutf8.h>
12526 rm -f conftest.$ac_objext
12527 if { (eval echo "$as_me:12527: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>&5
12530 echo "$as_me:12530: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:12533: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 echo "$as_me:12536: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12540 echo "$as_me: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12542 cat >conftest.$ac_ext <<_ACEOF
12543 #line 12543 "configure"
12544 #include "confdefs.h"
12546 #include <stdlib.h>
12547 #include <stdarg.h>
12550 #ifdef HAVE_LIBUTF8_H
12551 #include <libutf8.h>
12561 rm -f conftest.$ac_objext
12562 if { (eval echo "$as_me:12562: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>&5
12565 echo "$as_me:12565: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:12568: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:12571: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 cf_cv_mbstate_t=yes
12575 echo "$as_me: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 cf_cv_mbstate_t=unknown
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12583 echo "$as_me:12583: result: $cf_cv_mbstate_t" >&5
12584 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12586 if test "$cf_cv_mbstate_t" = yes ; then
12588 cat >>confdefs.h <<\EOF
12589 #define NEED_WCHAR_H 1
12595 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12596 if test "$cf_cv_mbstate_t" = unknown ; then
12597 NCURSES_MBSTATE_T=1
12600 # This is needed on Tru64 5.0 to declare wchar_t
12601 echo "$as_me:12601: checking if we must include wchar.h to declare wchar_t" >&5
12602 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12603 if test "${cf_cv_wchar_t+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 cat >conftest.$ac_ext <<_ACEOF
12608 #line 12608 "configure"
12609 #include "confdefs.h"
12611 #include <stdlib.h>
12612 #include <stdarg.h>
12614 #ifdef HAVE_LIBUTF8_H
12615 #include <libutf8.h>
12625 rm -f conftest.$ac_objext
12626 if { (eval echo "$as_me:12626: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>&5
12629 echo "$as_me:12629: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -s conftest.$ac_objext'
12632 { (eval echo "$as_me:12632: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:12635: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12639 echo "$as_me: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12641 cat >conftest.$ac_ext <<_ACEOF
12642 #line 12642 "configure"
12643 #include "confdefs.h"
12645 #include <stdlib.h>
12646 #include <stdarg.h>
12649 #ifdef HAVE_LIBUTF8_H
12650 #include <libutf8.h>
12660 rm -f conftest.$ac_objext
12661 if { (eval echo "$as_me:12661: \"$ac_compile\"") >&5
12662 (eval $ac_compile) 2>&5
12664 echo "$as_me:12664: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -s conftest.$ac_objext'
12667 { (eval echo "$as_me:12667: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:12670: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12674 echo "$as_me: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12676 cf_cv_wchar_t=unknown
12678 rm -f conftest.$ac_objext conftest.$ac_ext
12680 rm -f conftest.$ac_objext conftest.$ac_ext
12682 echo "$as_me:12682: result: $cf_cv_wchar_t" >&5
12683 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12685 if test "$cf_cv_wchar_t" = yes ; then
12687 cat >>confdefs.h <<\EOF
12688 #define NEED_WCHAR_H 1
12694 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12695 if test "$cf_cv_wchar_t" = unknown ; then
12699 # if we find wchar_t in either place, use substitution to provide a fallback.
12700 if test "$cf_cv_wchar_t" != unknown ; then
12701 NCURSES_OK_WCHAR_T=1
12704 # This is needed on Tru64 5.0 to declare wint_t
12705 echo "$as_me:12705: checking if we must include wchar.h to declare wint_t" >&5
12706 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12707 if test "${cf_cv_wint_t+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12712 #line 12712 "configure"
12713 #include "confdefs.h"
12715 #include <stdlib.h>
12716 #include <stdarg.h>
12718 #ifdef HAVE_LIBUTF8_H
12719 #include <libutf8.h>
12729 rm -f conftest.$ac_objext
12730 if { (eval echo "$as_me:12730: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>&5
12733 echo "$as_me:12733: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -s conftest.$ac_objext'
12736 { (eval echo "$as_me:12736: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:12739: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12743 echo "$as_me: failed program was:" >&5
12744 cat conftest.$ac_ext >&5
12745 cat >conftest.$ac_ext <<_ACEOF
12746 #line 12746 "configure"
12747 #include "confdefs.h"
12749 #include <stdlib.h>
12750 #include <stdarg.h>
12753 #ifdef HAVE_LIBUTF8_H
12754 #include <libutf8.h>
12764 rm -f conftest.$ac_objext
12765 if { (eval echo "$as_me:12765: \"$ac_compile\"") >&5
12766 (eval $ac_compile) 2>&5
12768 echo "$as_me:12768: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -s conftest.$ac_objext'
12771 { (eval echo "$as_me:12771: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12774 echo "$as_me:12774: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12778 echo "$as_me: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 cf_cv_wint_t=unknown
12782 rm -f conftest.$ac_objext conftest.$ac_ext
12784 rm -f conftest.$ac_objext conftest.$ac_ext
12786 echo "$as_me:12786: result: $cf_cv_wint_t" >&5
12787 echo "${ECHO_T}$cf_cv_wint_t" >&6
12789 if test "$cf_cv_wint_t" = yes ; then
12791 cat >>confdefs.h <<\EOF
12792 #define NEED_WCHAR_H 1
12798 # if we do not find wint_t in either place, use substitution to provide a fallback.
12799 if test "$cf_cv_wint_t" = unknown ; then
12803 # if we find wint_t in either place, use substitution to provide a fallback.
12804 if test "$cf_cv_wint_t" != unknown ; then
12805 NCURSES_OK_WINT_T=1
12808 if test "$NCURSES_MBSTATE_T" != 0; then
12810 cat >>confdefs.h <<\EOF
12811 #define NEED_MBSTATE_T_DEF 1
12817 ### use option --disable-lp64 to allow long chtype
12818 echo "$as_me:12818: checking whether to enable _LP64 definition in curses.h" >&5
12819 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
12821 # Check whether --enable-lp64 or --disable-lp64 was given.
12822 if test "${enable_lp64+set}" = set; then
12823 enableval="$enable_lp64"
12824 with_lp64=$enableval
12826 with_lp64=$cf_dft_with_lp64
12828 echo "$as_me:12828: result: $with_lp64" >&5
12829 echo "${ECHO_T}$with_lp64" >&6
12831 if test "x$with_lp64" = xyes ; then
12832 cf_cv_enable_lp64=1
12834 cf_cv_enable_lp64=0
12837 # Check whether --enable-largefile or --disable-largefile was given.
12838 if test "${enable_largefile+set}" = set; then
12839 enableval="$enable_largefile"
12842 if test "$enable_largefile" != no; then
12844 echo "$as_me:12844: checking for special C compiler options needed for large files" >&5
12845 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12846 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 ac_cv_sys_largefile_CC=no
12850 if test "$GCC" != yes; then
12853 # IRIX 6.2 and later do not support large files by default,
12854 # so use the C compiler's -n32 option if that helps.
12855 cat >conftest.$ac_ext <<_ACEOF
12856 #line 12856 "configure"
12857 #include "confdefs.h"
12858 #include <sys/types.h>
12859 /* Check that off_t can represent 2**63 - 1 correctly.
12860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12861 since some C++ compilers masquerading as C compilers
12862 incorrectly reject 9223372036854775807. */
12863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12865 && LARGE_OFF_T % 2147483647 == 1)
12875 rm -f conftest.$ac_objext
12876 if { (eval echo "$as_me:12876: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>&5
12879 echo "$as_me:12879: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -s conftest.$ac_objext'
12882 { (eval echo "$as_me:12882: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12889 echo "$as_me: failed program was:" >&5
12890 cat conftest.$ac_ext >&5
12892 rm -f conftest.$ac_objext
12894 rm -f conftest.$ac_objext
12895 if { (eval echo "$as_me:12895: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>&5
12898 echo "$as_me:12898: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:12901: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:12904: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_sys_largefile_CC=' -n32'; break
12908 echo "$as_me: failed program was:" >&5
12909 cat conftest.$ac_ext >&5
12911 rm -f conftest.$ac_objext
12915 rm -f conftest.$ac_ext
12918 echo "$as_me:12918: result: $ac_cv_sys_largefile_CC" >&5
12919 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12920 if test "$ac_cv_sys_largefile_CC" != no; then
12921 CC=$CC$ac_cv_sys_largefile_CC
12924 echo "$as_me:12924: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12925 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12926 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 ac_cv_sys_file_offset_bits=no
12931 cat >conftest.$ac_ext <<_ACEOF
12932 #line 12932 "configure"
12933 #include "confdefs.h"
12934 #include <sys/types.h>
12935 /* Check that off_t can represent 2**63 - 1 correctly.
12936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12937 since some C++ compilers masquerading as C compilers
12938 incorrectly reject 9223372036854775807. */
12939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12941 && LARGE_OFF_T % 2147483647 == 1)
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:12952: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>&5
12955 echo "$as_me:12955: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -s conftest.$ac_objext'
12958 { (eval echo "$as_me:12958: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:12961: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12965 echo "$as_me: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12968 rm -f conftest.$ac_objext conftest.$ac_ext
12969 cat >conftest.$ac_ext <<_ACEOF
12970 #line 12970 "configure"
12971 #include "confdefs.h"
12972 #define _FILE_OFFSET_BITS 64
12973 #include <sys/types.h>
12974 /* Check that off_t can represent 2**63 - 1 correctly.
12975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12976 since some C++ compilers masquerading as C compilers
12977 incorrectly reject 9223372036854775807. */
12978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12980 && LARGE_OFF_T % 2147483647 == 1)
12990 rm -f conftest.$ac_objext
12991 if { (eval echo "$as_me:12991: \"$ac_compile\"") >&5
12992 (eval $ac_compile) 2>&5
12994 echo "$as_me:12994: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -s conftest.$ac_objext'
12997 { (eval echo "$as_me:12997: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:13000: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_sys_file_offset_bits=64; break
13004 echo "$as_me: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13007 rm -f conftest.$ac_objext conftest.$ac_ext
13011 echo "$as_me:13011: result: $ac_cv_sys_file_offset_bits" >&5
13012 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13013 if test "$ac_cv_sys_file_offset_bits" != no; then
13015 cat >>confdefs.h <<EOF
13016 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13021 echo "$as_me:13021: checking for _LARGE_FILES value needed for large files" >&5
13022 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13023 if test "${ac_cv_sys_large_files+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 ac_cv_sys_large_files=no
13028 cat >conftest.$ac_ext <<_ACEOF
13029 #line 13029 "configure"
13030 #include "confdefs.h"
13031 #include <sys/types.h>
13032 /* Check that off_t can represent 2**63 - 1 correctly.
13033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13034 since some C++ compilers masquerading as C compilers
13035 incorrectly reject 9223372036854775807. */
13036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13038 && LARGE_OFF_T % 2147483647 == 1)
13048 rm -f conftest.$ac_objext
13049 if { (eval echo "$as_me:13049: \"$ac_compile\"") >&5
13050 (eval $ac_compile) 2>&5
13052 echo "$as_me:13052: \$? = $ac_status" >&5
13053 (exit $ac_status); } &&
13054 { ac_try='test -s conftest.$ac_objext'
13055 { (eval echo "$as_me:13055: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13058 echo "$as_me:13058: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13062 echo "$as_me: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13065 rm -f conftest.$ac_objext conftest.$ac_ext
13066 cat >conftest.$ac_ext <<_ACEOF
13067 #line 13067 "configure"
13068 #include "confdefs.h"
13069 #define _LARGE_FILES 1
13070 #include <sys/types.h>
13071 /* Check that off_t can represent 2**63 - 1 correctly.
13072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13073 since some C++ compilers masquerading as C compilers
13074 incorrectly reject 9223372036854775807. */
13075 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13077 && LARGE_OFF_T % 2147483647 == 1)
13087 rm -f conftest.$ac_objext
13088 if { (eval echo "$as_me:13088: \"$ac_compile\"") >&5
13089 (eval $ac_compile) 2>&5
13091 echo "$as_me:13091: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -s conftest.$ac_objext'
13094 { (eval echo "$as_me:13094: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13097 echo "$as_me:13097: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 ac_cv_sys_large_files=1; break
13101 echo "$as_me: failed program was:" >&5
13102 cat conftest.$ac_ext >&5
13104 rm -f conftest.$ac_objext conftest.$ac_ext
13108 echo "$as_me:13108: result: $ac_cv_sys_large_files" >&5
13109 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13110 if test "$ac_cv_sys_large_files" != no; then
13112 cat >>confdefs.h <<EOF
13113 #define _LARGE_FILES $ac_cv_sys_large_files
13120 if test "$enable_largefile" != no ; then
13121 echo "$as_me:13121: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13122 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13123 if test "${ac_cv_sys_largefile_source+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 ac_cv_sys_largefile_source=no
13128 cat >conftest.$ac_ext <<_ACEOF
13129 #line 13129 "configure"
13130 #include "confdefs.h"
13140 rm -f conftest.$ac_objext
13141 if { (eval echo "$as_me:13141: \"$ac_compile\"") >&5
13142 (eval $ac_compile) 2>&5
13144 echo "$as_me:13144: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try='test -s conftest.$ac_objext'
13147 { (eval echo "$as_me:13147: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:13150: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13154 echo "$as_me: failed program was:" >&5
13155 cat conftest.$ac_ext >&5
13157 rm -f conftest.$ac_objext conftest.$ac_ext
13158 cat >conftest.$ac_ext <<_ACEOF
13159 #line 13159 "configure"
13160 #include "confdefs.h"
13161 #define _LARGEFILE_SOURCE 1
13171 rm -f conftest.$ac_objext
13172 if { (eval echo "$as_me:13172: \"$ac_compile\"") >&5
13173 (eval $ac_compile) 2>&5
13175 echo "$as_me:13175: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
13177 { ac_try='test -s conftest.$ac_objext'
13178 { (eval echo "$as_me:13178: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:13181: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_cv_sys_largefile_source=1; break
13185 echo "$as_me: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13188 rm -f conftest.$ac_objext conftest.$ac_ext
13192 echo "$as_me:13192: result: $ac_cv_sys_largefile_source" >&5
13193 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13194 if test "$ac_cv_sys_largefile_source" != no; then
13196 cat >>confdefs.h <<EOF
13197 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13203 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13204 # in glibc 2.1.3, but that breaks too many other things.
13205 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13206 echo "$as_me:13206: checking for fseeko" >&5
13207 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13208 if test "${ac_cv_func_fseeko+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 cat >conftest.$ac_ext <<_ACEOF
13212 #line 13212 "configure"
13213 #include "confdefs.h"
13218 return fseeko && fseeko (stdin, 0, 0);
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (eval echo "$as_me:13224: \"$ac_link\"") >&5
13225 (eval $ac_link) 2>&5
13227 echo "$as_me:13227: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -s conftest$ac_exeext'
13230 { (eval echo "$as_me:13230: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:13233: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13235 ac_cv_func_fseeko=yes
13237 echo "$as_me: failed program was:" >&5
13238 cat conftest.$ac_ext >&5
13239 ac_cv_func_fseeko=no
13241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13243 echo "$as_me:13243: result: $ac_cv_func_fseeko" >&5
13244 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13245 if test $ac_cv_func_fseeko = yes; then
13247 cat >>confdefs.h <<\EOF
13248 #define HAVE_FSEEKO 1
13253 # Normally we would collect these definitions in the config.h,
13254 # but (like _XOPEN_SOURCE), some environments rely on having these
13255 # defined before any of the system headers are included. Another
13256 # case comes up with C++, e.g., on AIX the compiler compiles the
13257 # header files by themselves before looking at the body files it is
13258 # told to compile. For ncurses, those header files do not include
13260 if test "$ac_cv_sys_large_files" != no
13263 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13264 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13267 if test "$ac_cv_sys_largefile_source" != no
13270 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13271 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13274 if test "$ac_cv_sys_file_offset_bits" != no
13277 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13278 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13282 echo "$as_me:13282: checking whether to use struct dirent64" >&5
13283 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13284 if test "${cf_cv_struct_dirent64+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 cat >conftest.$ac_ext <<_ACEOF
13289 #line 13289 "configure"
13290 #include "confdefs.h"
13292 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13293 #include <sys/types.h>
13294 #include <dirent.h>
13300 /* if transitional largefile support is setup, this is true */
13301 extern struct dirent64 * readdir(DIR *);
13302 struct dirent64 *x = readdir((DIR *)0);
13303 struct dirent *y = readdir((DIR *)0);
13311 rm -f conftest.$ac_objext
13312 if { (eval echo "$as_me:13312: \"$ac_compile\"") >&5
13313 (eval $ac_compile) 2>&5
13315 echo "$as_me:13315: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:13318: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:13321: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 cf_cv_struct_dirent64=yes
13325 echo "$as_me: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 cf_cv_struct_dirent64=no
13329 rm -f conftest.$ac_objext conftest.$ac_ext
13332 echo "$as_me:13332: result: $cf_cv_struct_dirent64" >&5
13333 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13334 test "$cf_cv_struct_dirent64" = yes &&
13335 cat >>confdefs.h <<\EOF
13336 #define HAVE_STRUCT_DIRENT64 1
13341 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13342 echo "$as_me:13342: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13343 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13345 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13346 if test "${enable_tparm_varargs+set}" = set; then
13347 enableval="$enable_tparm_varargs"
13348 with_tparm_varargs=$enableval
13350 with_tparm_varargs=yes
13352 echo "$as_me:13352: result: $with_tparm_varargs" >&5
13353 echo "${ECHO_T}$with_tparm_varargs" >&6
13354 NCURSES_TPARM_VARARGS=0
13355 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13357 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13358 if test "$with_ticlib" != no ; then
13359 echo "$as_me:13359: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13360 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13362 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13363 if test "${enable_tic_depends+set}" = set; then
13364 enableval="$enable_tic_depends"
13365 with_tic_depends=$enableval
13367 with_tic_depends=yes
13369 echo "$as_me:13369: result: $with_tic_depends" >&5
13370 echo "${ECHO_T}$with_tic_depends" >&6
13372 with_tic_depends=no
13375 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
13376 echo "$as_me:13376: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
13377 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
13379 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13380 if test "${enable_wattr_macros+set}" = set; then
13381 enableval="$enable_wattr_macros"
13382 with_wattr_macros=$enableval
13384 with_wattr_macros=yes
13386 if [ "x$with_wattr_macros" != xyes ]; then
13387 NCURSES_WATTR_MACROS=0
13388 echo "$as_me:13388: result: yes" >&5
13389 echo "${ECHO_T}yes" >&6
13391 NCURSES_WATTR_MACROS=1
13392 echo "$as_me:13392: result: no" >&5
13393 echo "${ECHO_T}no" >&6
13396 echo "$as_me:13396: checking for X11 rgb file" >&5
13397 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13399 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13400 if test "${with_x11_rgb+set}" = set; then
13401 withval="$with_x11_rgb"
13407 if test "x$RGB_PATH" = xauto
13409 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13411 /opt/local/share/X11/rgb.txt \
13412 /opt/X11/share/X11/rgb.txt \
13413 /usr/share/X11/rgb.txt \
13414 /usr/X11/share/X11/rgb.txt \
13415 /usr/X11/lib/X11/rgb.txt \
13416 /usr/lib/X11/rgb.txt \
13418 /usr/pkg/lib/X11/rgb.txt \
13419 /usr/X11R7/lib/X11/rgb.txt \
13420 /usr/X11R6/lib/X11/rgb.txt \
13421 /usr/X11R5/lib/X11/rgb.txt \
13422 /usr/X11R4/lib/X11/rgb.txt \
13423 /usr/local/lib/X11/rgb.txt \
13424 /usr/local/share/X11/rgb.txt \
13425 /usr/lib64/X11/rgb.txt
13427 if test -f "$cf_path" ; then
13428 RGB_PATH="$cf_path"
13435 if test "x$prefix" != xNONE; then
13436 cf_path_syntax="$prefix"
13438 cf_path_syntax="$ac_default_prefix"
13441 case ".$cf_path" in
13442 (.\$\(*\)*|.\'*\'*)
13446 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13448 (.\${*prefix}*|.\${*dir}*)
13449 eval cf_path="$cf_path"
13450 case ".$cf_path" in
13452 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13457 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
13460 { { echo "$as_me:13460: error: expected a pathname, not \"$cf_path\"" >&5
13461 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13462 { (exit 1); exit 1; }; }
13468 echo "$as_me:13468: result: $RGB_PATH" >&5
13469 echo "${ECHO_T}$RGB_PATH" >&6
13471 cat >>confdefs.h <<EOF
13472 #define RGB_PATH "$cf_path"
13476 if test "$RGB_PATH" = no
13481 ### use option --with-bool to override bool's type
13482 echo "$as_me:13482: checking for type of bool" >&5
13483 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13485 # Check whether --with-bool or --without-bool was given.
13486 if test "${with_bool+set}" = set; then
13487 withval="$with_bool"
13488 NCURSES_BOOL="$withval"
13492 echo "$as_me:13492: result: $NCURSES_BOOL" >&5
13493 echo "${ECHO_T}$NCURSES_BOOL" >&6
13495 echo "$as_me:13495: checking for alternate terminal capabilities file" >&5
13496 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13498 # Check whether --with-caps or --without-caps was given.
13499 if test "${with_caps+set}" = set; then
13500 withval="$with_caps"
13501 TERMINFO_CAPS=Caps.$withval
13505 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13506 echo "$as_me:13506: result: $TERMINFO_CAPS" >&5
13507 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13509 ### use option --with-chtype to override chtype's type
13510 echo "$as_me:13510: checking for type of chtype" >&5
13511 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13513 # Check whether --with-chtype or --without-chtype was given.
13514 if test "${with_chtype+set}" = set; then
13515 withval="$with_chtype"
13516 NCURSES_CHTYPE="$withval"
13518 NCURSES_CHTYPE=$cf_dft_chtype
13520 echo "$as_me:13520: result: $NCURSES_CHTYPE" >&5
13521 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13523 ### use option --with-ospeed to override ospeed's type
13524 echo "$as_me:13524: checking for type of ospeed" >&5
13525 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13527 # Check whether --with-ospeed or --without-ospeed was given.
13528 if test "${with_ospeed+set}" = set; then
13529 withval="$with_ospeed"
13530 NCURSES_OSPEED="$withval"
13532 NCURSES_OSPEED=short
13534 echo "$as_me:13534: result: $NCURSES_OSPEED" >&5
13535 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13537 ### use option --with-mmask-t to override mmask_t's type
13538 echo "$as_me:13538: checking for type of mmask_t" >&5
13539 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13541 # Check whether --with-mmask-t or --without-mmask-t was given.
13542 if test "${with_mmask_t+set}" = set; then
13543 withval="$with_mmask_t"
13544 NCURSES_MMASK_T="$withval"
13546 NCURSES_MMASK_T=$cf_dft_mmask_t
13548 echo "$as_me:13548: result: $NCURSES_MMASK_T" >&5
13549 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13551 ### use option --with-ccharw-max to override CCHARW_MAX size
13552 echo "$as_me:13552: checking for size CCHARW_MAX" >&5
13553 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13555 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13556 if test "${with_ccharw_max+set}" = set; then
13557 withval="$with_ccharw_max"
13558 NCURSES_CCHARW_MAX="$withval"
13560 NCURSES_CCHARW_MAX=5
13562 echo "$as_me:13562: result: $NCURSES_CCHARW_MAX" >&5
13563 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13565 echo "$as_me:13565: checking for ANSI C header files" >&5
13566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13567 if test "${ac_cv_header_stdc+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 cat >conftest.$ac_ext <<_ACEOF
13571 #line 13571 "configure"
13572 #include "confdefs.h"
13573 #include <stdlib.h>
13574 #include <stdarg.h>
13575 #include <string.h>
13579 if { (eval echo "$as_me:13579: \"$ac_cpp conftest.$ac_ext\"") >&5
13580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13582 egrep -v '^ *\+' conftest.er1 >conftest.err
13584 cat conftest.err >&5
13585 echo "$as_me:13585: \$? = $ac_status" >&5
13586 (exit $ac_status); } >/dev/null; then
13587 if test -s conftest.err; then
13588 ac_cpp_err=$ac_c_preproc_warn_flag
13595 if test -z "$ac_cpp_err"; then
13596 ac_cv_header_stdc=yes
13598 echo "$as_me: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13600 ac_cv_header_stdc=no
13602 rm -f conftest.err conftest.$ac_ext
13604 if test $ac_cv_header_stdc = yes; then
13605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13606 cat >conftest.$ac_ext <<_ACEOF
13607 #line 13607 "configure"
13608 #include "confdefs.h"
13609 #include <string.h>
13612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13613 egrep "memchr" >/dev/null 2>&1; then
13616 ac_cv_header_stdc=no
13622 if test $ac_cv_header_stdc = yes; then
13623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13624 cat >conftest.$ac_ext <<_ACEOF
13625 #line 13625 "configure"
13626 #include "confdefs.h"
13627 #include <stdlib.h>
13630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13631 egrep "free" >/dev/null 2>&1; then
13634 ac_cv_header_stdc=no
13640 if test $ac_cv_header_stdc = yes; then
13641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13642 if test "$cross_compiling" = yes; then
13645 cat >conftest.$ac_ext <<_ACEOF
13646 #line 13646 "configure"
13647 #include "confdefs.h"
13649 #if ((' ' & 0x0FF) == 0x020)
13650 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13651 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13653 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13654 || ('j' <= (c) && (c) <= 'r') \
13655 || ('s' <= (c) && (c) <= 'z'))
13656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13664 for (i = 0; i < 256; i++)
13665 if (XOR (islower (i), ISLOWER (i))
13666 || toupper (i) != TOUPPER (i))
13667 $ac_main_return(2);
13668 $ac_main_return (0);
13671 rm -f conftest$ac_exeext
13672 if { (eval echo "$as_me:13672: \"$ac_link\"") >&5
13673 (eval $ac_link) 2>&5
13675 echo "$as_me:13675: \$? = $ac_status" >&5
13676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13677 { (eval echo "$as_me:13677: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:13680: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13684 echo "$as_me: program exited with status $ac_status" >&5
13685 echo "$as_me: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 ac_cv_header_stdc=no
13689 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13693 echo "$as_me:13693: result: $ac_cv_header_stdc" >&5
13694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13695 if test $ac_cv_header_stdc = yes; then
13697 cat >>confdefs.h <<\EOF
13698 #define STDC_HEADERS 1
13703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13705 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13706 inttypes.h stdint.h unistd.h
13708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13709 echo "$as_me:13709: checking for $ac_header" >&5
13710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 cat >conftest.$ac_ext <<_ACEOF
13715 #line 13715 "configure"
13716 #include "confdefs.h"
13717 $ac_includes_default
13718 #include <$ac_header>
13720 rm -f conftest.$ac_objext
13721 if { (eval echo "$as_me:13721: \"$ac_compile\"") >&5
13722 (eval $ac_compile) 2>&5
13724 echo "$as_me:13724: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (eval echo "$as_me:13727: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:13730: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 eval "$as_ac_Header=yes"
13734 echo "$as_me: failed program was:" >&5
13735 cat conftest.$ac_ext >&5
13736 eval "$as_ac_Header=no"
13738 rm -f conftest.$ac_objext conftest.$ac_ext
13740 echo "$as_me:13740: result: `eval echo '${'$as_ac_Header'}'`" >&5
13741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13743 cat >>confdefs.h <<EOF
13744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13750 echo "$as_me:13750: checking for signed char" >&5
13751 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13752 if test "${ac_cv_type_signed_char+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13756 #line 13756 "configure"
13757 #include "confdefs.h"
13758 $ac_includes_default
13762 if ((signed char *) 0)
13764 if (sizeof (signed char))
13770 rm -f conftest.$ac_objext
13771 if { (eval echo "$as_me:13771: \"$ac_compile\"") >&5
13772 (eval $ac_compile) 2>&5
13774 echo "$as_me:13774: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
13776 { ac_try='test -s conftest.$ac_objext'
13777 { (eval echo "$as_me:13777: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13780 echo "$as_me:13780: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 ac_cv_type_signed_char=yes
13784 echo "$as_me: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13786 ac_cv_type_signed_char=no
13788 rm -f conftest.$ac_objext conftest.$ac_ext
13790 echo "$as_me:13790: result: $ac_cv_type_signed_char" >&5
13791 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13793 echo "$as_me:13793: checking size of signed char" >&5
13794 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13795 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 if test "$ac_cv_type_signed_char" = yes; then
13799 if test "$cross_compiling" = yes; then
13800 # Depending upon the size, compute the lo and hi bounds.
13801 cat >conftest.$ac_ext <<_ACEOF
13802 #line 13802 "configure"
13803 #include "confdefs.h"
13804 $ac_includes_default
13808 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:13814: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>&5
13817 echo "$as_me:13817: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:13820: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:13823: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13827 cat >conftest.$ac_ext <<_ACEOF
13828 #line 13828 "configure"
13829 #include "confdefs.h"
13830 $ac_includes_default
13834 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:13840: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>&5
13843 echo "$as_me:13843: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:13846: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:13849: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 ac_hi=$ac_mid; break
13853 echo "$as_me: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13857 rm -f conftest.$ac_objext conftest.$ac_ext
13860 echo "$as_me: failed program was:" >&5
13861 cat conftest.$ac_ext >&5
13864 cat >conftest.$ac_ext <<_ACEOF
13865 #line 13865 "configure"
13866 #include "confdefs.h"
13867 $ac_includes_default
13871 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
13876 rm -f conftest.$ac_objext
13877 if { (eval echo "$as_me:13877: \"$ac_compile\"") >&5
13878 (eval $ac_compile) 2>&5
13880 echo "$as_me:13880: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -s conftest.$ac_objext'
13883 { (eval echo "$as_me:13883: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:13886: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_lo=$ac_mid; break
13890 echo "$as_me: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13894 rm -f conftest.$ac_objext conftest.$ac_ext
13897 rm -f conftest.$ac_objext conftest.$ac_ext
13898 # Binary search between lo and hi bounds.
13899 while test "x$ac_lo" != "x$ac_hi"; do
13900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13901 cat >conftest.$ac_ext <<_ACEOF
13902 #line 13902 "configure"
13903 #include "confdefs.h"
13904 $ac_includes_default
13908 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13913 rm -f conftest.$ac_objext
13914 if { (eval echo "$as_me:13914: \"$ac_compile\"") >&5
13915 (eval $ac_compile) 2>&5
13917 echo "$as_me:13917: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -s conftest.$ac_objext'
13920 { (eval echo "$as_me:13920: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13923 echo "$as_me:13923: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13927 echo "$as_me: failed program was:" >&5
13928 cat conftest.$ac_ext >&5
13929 ac_lo=`expr $ac_mid + 1`
13931 rm -f conftest.$ac_objext conftest.$ac_ext
13933 ac_cv_sizeof_signed_char=$ac_lo
13935 if test "$cross_compiling" = yes; then
13936 { { echo "$as_me:13936: error: cannot run test program while cross compiling" >&5
13937 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13938 { (exit 1); exit 1; }; }
13940 cat >conftest.$ac_ext <<_ACEOF
13941 #line 13941 "configure"
13942 #include "confdefs.h"
13943 $ac_includes_default
13947 FILE *f = fopen ("conftest.val", "w");
13949 $ac_main_return (1);
13950 fprintf (f, "%d", (sizeof (signed char)));
13956 rm -f conftest$ac_exeext
13957 if { (eval echo "$as_me:13957: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>&5
13960 echo "$as_me:13960: \$? = $ac_status" >&5
13961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13962 { (eval echo "$as_me:13962: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13965 echo "$as_me:13965: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 ac_cv_sizeof_signed_char=`cat conftest.val`
13969 echo "$as_me: program exited with status $ac_status" >&5
13970 echo "$as_me: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13973 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13978 ac_cv_sizeof_signed_char=0
13981 echo "$as_me:13981: result: $ac_cv_sizeof_signed_char" >&5
13982 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
13983 cat >>confdefs.h <<EOF
13984 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
13987 if test "$ac_cv_sizeof_signed_char" = 1 ; then
13988 NCURSES_SBOOL="signed char"
13990 NCURSES_SBOOL="char"
13992 echo "$as_me:13992: checking if you want to use signed Boolean array in term.h" >&5
13993 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
13995 # Check whether --enable-signed-char or --disable-signed-char was given.
13996 if test "${enable_signed_char+set}" = set; then
13997 enableval="$enable_signed_char"
13998 with_signed_char=$enableval
14000 with_signed_char=no
14002 echo "$as_me:14002: result: $with_signed_char" >&5
14003 echo "${ECHO_T}$with_signed_char" >&6
14004 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14006 ### use option --with-tparm-arg to override tparm's argument type
14007 echo "$as_me:14007: checking for type of tparm args" >&5
14008 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14010 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14011 if test "${with_tparm_arg+set}" = set; then
14012 withval="$with_tparm_arg"
14013 NCURSES_TPARM_ARG="$withval"
14015 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14017 echo "$as_me:14017: result: $NCURSES_TPARM_ARG" >&5
14018 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14020 ### Enable compiling-in rcs id's
14021 echo "$as_me:14021: checking if RCS identifiers should be compiled-in" >&5
14022 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14024 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14025 if test "${with_rcs_ids+set}" = set; then
14026 withval="$with_rcs_ids"
14027 with_rcs_ids=$withval
14031 echo "$as_me:14031: result: $with_rcs_ids" >&5
14032 echo "${ECHO_T}$with_rcs_ids" >&6
14033 test "x$with_rcs_ids" = xyes &&
14034 cat >>confdefs.h <<\EOF
14035 #define USE_RCS_IDS 1
14038 ###############################################################################
14040 echo "$as_me:14040: checking format of man-pages" >&5
14041 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14043 # Check whether --with-manpage-format or --without-manpage-format was given.
14044 if test "${with_manpage_format+set}" = set; then
14045 withval="$with_manpage_format"
14046 MANPAGE_FORMAT=$withval
14048 MANPAGE_FORMAT=unknown
14051 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14052 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14056 case $MANPAGE_FORMAT in
14058 if test -z "$MANPATH" ; then
14059 MANPATH="/usr/man:/usr/share/man"
14062 # look for the 'date' man-page (it's most likely to be installed!)
14068 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14069 for cf_dir in $MANPATH; do
14070 test -z "$cf_dir" && cf_dir=/usr/man
14071 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
14073 cf_test=`echo $cf_name | sed -e 's/*//'`
14074 if test "x$cf_test" = "x$cf_name" ; then
14077 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14078 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14079 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14080 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14094 # if we found a match in either man* or cat*, stop looking
14095 if test -n "$MANPAGE_FORMAT" ; then
14097 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14098 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14104 test $cf_found=yes && break
14107 # only check the first directory in $MANPATH where we find manpages
14108 if test -n "$MANPAGE_FORMAT" ; then
14112 # if we did not find the example, just assume it is normal
14113 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14117 for cf_option in $MANPAGE_FORMAT; do
14119 (gzip|compress|BSDI|normal|formatted|catonly)
14122 cf_unknown="$cf_unknown $cf_option"
14129 echo "$as_me:14129: result: $MANPAGE_FORMAT" >&5
14130 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14131 if test -n "$cf_unknown" ; then
14132 { echo "$as_me:14132: WARNING: Unexpected manpage-format $cf_unknown" >&5
14133 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14136 echo "$as_me:14136: checking for manpage renaming" >&5
14137 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14139 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14140 if test "${with_manpage_renames+set}" = set; then
14141 withval="$with_manpage_renames"
14142 MANPAGE_RENAMES=$withval
14144 MANPAGE_RENAMES=yes
14147 case ".$MANPAGE_RENAMES" in
14151 # Debian 'man' program?
14152 if test -f /etc/debian_version ; then
14153 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
14160 if test "$MANPAGE_RENAMES" != no ; then
14161 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
14162 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
14163 elif test ! -f $MANPAGE_RENAMES ; then
14164 { { echo "$as_me:14164: error: not a filename: $MANPAGE_RENAMES" >&5
14165 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14166 { (exit 1); exit 1; }; }
14169 test ! -d man && mkdir man
14171 # Construct a sed-script to perform renaming within man-pages
14172 if test -n "$MANPAGE_RENAMES" ; then
14173 test ! -d man && mkdir man
14174 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
14178 echo "$as_me:14178: result: $MANPAGE_RENAMES" >&5
14179 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14181 echo "$as_me:14181: checking if manpage aliases will be installed" >&5
14182 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14184 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14185 if test "${with_manpage_aliases+set}" = set; then
14186 withval="$with_manpage_aliases"
14187 MANPAGE_ALIASES=$withval
14189 MANPAGE_ALIASES=yes
14192 echo "$as_me:14192: result: $MANPAGE_ALIASES" >&5
14193 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14197 cf_use_symlinks=yes
14204 MANPAGE_SYMLINKS=no
14205 if test "$MANPAGE_ALIASES" = yes ; then
14206 echo "$as_me:14206: checking if manpage symlinks should be used" >&5
14207 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14209 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14210 if test "${with_manpage_symlinks+set}" = set; then
14211 withval="$with_manpage_symlinks"
14212 MANPAGE_SYMLINKS=$withval
14214 MANPAGE_SYMLINKS=$cf_use_symlinks
14217 if test "$$cf_use_symlinks" = no; then
14218 if test "$MANPAGE_SYMLINKS" = yes ; then
14219 { echo "$as_me:14219: WARNING: cannot make symlinks" >&5
14220 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14221 MANPAGE_SYMLINKS=no
14225 echo "$as_me:14225: result: $MANPAGE_SYMLINKS" >&5
14226 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14229 echo "$as_me:14229: checking for manpage tbl" >&5
14230 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14232 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14233 if test "${with_manpage_tbl+set}" = set; then
14234 withval="$with_manpage_tbl"
14235 MANPAGE_TBL=$withval
14240 echo "$as_me:14240: result: $MANPAGE_TBL" >&5
14241 echo "${ECHO_T}$MANPAGE_TBL" >&6
14243 if test "$prefix" = "NONE" ; then
14244 cf_prefix="$ac_default_prefix"
14246 cf_prefix="$prefix"
14249 case "$MANPAGE_FORMAT" in
14264 test ! -d man && mkdir man
14268 case "$MANPAGE_FORMAT" in
14271 cf_compress=compress
14279 cf_edit_man=./edit_man.sh
14280 cf_man_alias=`pwd`/man_alias.sed
14282 cat >$cf_edit_man <<CF_EOF
14284 # this script is generated by the configure-script CF_MAN_PAGES macro.
14286 prefix="$cf_prefix"
14287 datarootdir="$datarootdir"
14290 NCURSES_MAJOR="$NCURSES_MAJOR"
14291 NCURSES_MINOR="$NCURSES_MINOR"
14292 NCURSES_PATCH="$NCURSES_PATCH"
14294 NCURSES_OSPEED="$NCURSES_OSPEED"
14295 TERMINFO="$TERMINFO"
14298 INSTALL_DATA="$INSTALL_DATA"
14300 transform="$program_transform_name"
14302 TMP=\${TMPDIR:=/tmp}/man\$\$
14303 trap "rm -f \$TMP" 0 1 2 3 15
14315 top_srcdir=\$srcdir/..
14318 if test "\$form" = normal ; then
14319 if test "$cf_format" = yes ; then
14320 if test "$cf_inboth" = no ; then
14321 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14325 cf_subdir=\$mandir/man
14326 cf_tables=$MANPAGE_TBL
14328 cf_subdir=\$mandir/cat
14332 # process the list of source-files
14337 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14338 if test \$verb = installing ; then
14339 if test ! -d \$cf_subdir\${section} ; then
14340 mkdir -p \$cf_subdir\$section
14344 # replace variables in man page
14345 if test ! -f $cf_man_alias ; then
14346 cat >>$cf_man_alias <<-CF_EOF2
14347 s,@DATADIR@,\$datadir,g
14348 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14349 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14350 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14351 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14352 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14353 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14356 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14358 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14359 cf_name=`echo $cf_name|sed "$program_transform_name"`
14360 cat >>$cf_edit_man <<-CF_EOF
14361 s,@$cf_NAME@,$cf_name,g
14365 cat >>$cf_edit_man <<CF_EOF
14367 echo "...made $cf_man_alias"
14371 cf_source=\`basename \$i\`
14372 inalias=\$cf_source
14373 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
14374 if test ! -f \$inalias ; then
14375 echo .. skipped \$cf_source
14380 if test "$MANPAGE_ALIASES" != no ; then
14381 cat >>$cf_edit_man <<CF_EOF
14383 test $with_curses_h = yes && nCurses=ncurses.3x
14384 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
14388 if test "$MANPAGE_RENAMES" = no ; then
14389 cat >>$cf_edit_man <<CF_EOF
14390 # perform program transformations for section 1 man pages
14391 if test \$section = 1 ; then
14392 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14394 cf_target=\$cf_subdir\${section}/\$cf_source
14398 cat >>$cf_edit_man <<CF_EOF
14399 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14400 if test -z "\$cf_target" ; then
14401 echo '? missing rename for '\$cf_source
14402 cf_target="\$cf_source"
14404 cf_target="\$cf_subdir\${section}/\${cf_target}"
14409 cat >>$cf_edit_man <<CF_EOF
14410 sed -f $cf_man_alias \\
14413 if test -f $MANPAGE_RENAMES ; then
14414 cat >>$cf_edit_man <<CF_EOF
14415 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
14418 cat >>$cf_edit_man <<CF_EOF
14423 cat >>$cf_edit_man <<CF_EOF
14424 if test \$cf_tables = yes ; then
14425 tbl \$TMP >\$TMP.out
14430 if test $with_overwrite != yes ; then
14431 cat >>$cf_edit_man <<CF_EOF
14432 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14437 if test $with_curses_h != yes ; then
14438 cat >>$cf_edit_man <<CF_EOF
14439 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14444 cat >>$cf_edit_man <<CF_EOF
14445 if test \$form = format ; then
14446 nroff -man \$TMP >\$TMP.out
14451 if test -n "$cf_compress" ; then
14452 cat >>$cf_edit_man <<CF_EOF
14453 if test \$verb = installing ; then
14454 if ( $cf_compress -f \$TMP )
14456 mv \$TMP.$cf_so_strip \$TMP
14459 cf_target="\$cf_target.$cf_so_strip"
14463 case "$MANPAGE_FORMAT" in
14465 cat >>$cf_edit_man <<CF_EOF
14466 if test \$form = format ; then
14467 # BSDI installs only .0 suffixes in the cat directories
14468 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
14474 cat >>$cf_edit_man <<CF_EOF
14475 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
14476 if test \$verb = installing ; then
14477 echo \$verb \$cf_target
14478 \$INSTALL_DATA \$TMP \$cf_target
14479 test -d \$cf_subdir\${section} &&
14480 test -n "\$aliases" && (
14481 cd \$cf_subdir\${section} && (
14482 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
14483 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
14484 cf_target=\`basename \$cf_target\`
14485 for cf_alias in \$aliases
14487 if test \$section = 1 ; then
14488 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14491 if test "$MANPAGE_SYMLINKS" = yes ; then
14492 if test -f \$cf_alias\${suffix} ; then
14493 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
14498 echo .. \$verb alias \$cf_alias\${suffix}
14502 cat >>$cf_edit_man <<CF_EOF
14503 $LN_S \$cf_target \$cf_alias\${suffix}
14507 cat >>$cf_edit_man <<CF_EOF
14508 rm -f \$cf_alias\${suffix}
14509 $LN_S \$cf_target \$cf_alias\${suffix}
14513 cat >>$cf_edit_man <<CF_EOF
14514 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14515 echo ".so \$cf_source" >\$TMP
14517 if test -n "$cf_compress" ; then
14518 cat >>$cf_edit_man <<CF_EOF
14519 if test -n "$cf_so_strip" ; then
14520 $cf_compress -f \$TMP
14521 mv \$TMP.$cf_so_strip \$TMP
14525 cat >>$cf_edit_man <<CF_EOF
14526 echo .. \$verb alias \$cf_alias\${suffix}
14527 rm -f \$cf_alias\${suffix}
14528 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
14533 elif test \$verb = removing ; then
14534 test -f \$cf_target && (
14535 echo \$verb \$cf_target
14538 test -d \$cf_subdir\${section} &&
14539 test -n "\$aliases" && (
14540 cd \$cf_subdir\${section} && (
14541 for cf_alias in \$aliases
14543 if test \$section = 1 ; then
14544 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
14547 echo .. \$verb alias \$cf_alias\${suffix}
14548 rm -f \$cf_alias\${suffix}
14560 if test $cf_inboth = yes ; then
14561 if test \$form != format ; then
14562 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
14568 chmod 755 $cf_edit_man
14570 ###############################################################################
14572 ### Note that some functions (such as const) are normally disabled anyway.
14573 echo "$as_me:14573: checking if you want to build with function extensions" >&5
14574 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14576 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14577 if test "${enable_ext_funcs+set}" = set; then
14578 enableval="$enable_ext_funcs"
14579 with_ext_funcs=$enableval
14583 echo "$as_me:14583: result: $with_ext_funcs" >&5
14584 echo "${ECHO_T}$with_ext_funcs" >&6
14585 if test "x$with_ext_funcs" = xyes ; then
14586 NCURSES_EXT_FUNCS=1
14588 cat >>confdefs.h <<\EOF
14589 #define NCURSES_EXT_FUNCS 1
14592 cat >>confdefs.h <<\EOF
14593 #define HAVE_ASSUME_DEFAULT_COLORS 1
14596 cat >>confdefs.h <<\EOF
14597 #define HAVE_CURSES_VERSION 1
14600 cat >>confdefs.h <<\EOF
14601 #define HAVE_HAS_KEY 1
14604 cat >>confdefs.h <<\EOF
14605 #define HAVE_RESIZETERM 1
14608 cat >>confdefs.h <<\EOF
14609 #define HAVE_RESIZE_TERM 1
14612 cat >>confdefs.h <<\EOF
14613 #define HAVE_TERM_ENTRY_H 1
14616 cat >>confdefs.h <<\EOF
14617 #define HAVE_USE_DEFAULT_COLORS 1
14620 cat >>confdefs.h <<\EOF
14621 #define HAVE_USE_EXTENDED_NAMES 1
14624 cat >>confdefs.h <<\EOF
14625 #define HAVE_USE_SCREEN 1
14628 cat >>confdefs.h <<\EOF
14629 #define HAVE_USE_WINDOW 1
14632 cat >>confdefs.h <<\EOF
14633 #define HAVE_WRESIZE 1
14636 GENERATED_EXT_FUNCS=generated
14637 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
14639 NCURSES_EXT_FUNCS=0
14640 GENERATED_EXT_FUNCS=
14643 echo "$as_me:14643: checking if you want to build with SCREEN extensions" >&5
14644 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
14646 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
14647 if test "${enable_sp_funcs+set}" = set; then
14648 enableval="$enable_sp_funcs"
14649 with_sp_funcs=$enableval
14651 with_sp_funcs=$cf_dft_ext_spfuncs
14653 echo "$as_me:14653: result: $with_sp_funcs" >&5
14654 echo "${ECHO_T}$with_sp_funcs" >&6
14655 if test "x$with_sp_funcs" = xyes ; then
14658 cat >>confdefs.h <<\EOF
14659 #define NCURSES_SP_FUNCS 1
14662 cat >>confdefs.h <<\EOF
14663 #define HAVE_TPUTS_SP 1
14666 GENERATED_SP_FUNCS=generated
14669 GENERATED_SP_FUNCS=
14672 echo "$as_me:14672: checking if you want to build with terminal-driver" >&5
14673 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
14675 # Check whether --enable-term-driver or --disable-term-driver was given.
14676 if test "${enable_term_driver+set}" = set; then
14677 enableval="$enable_term_driver"
14678 with_term_driver=$enableval
14680 with_term_driver=no
14682 echo "$as_me:14682: result: $with_term_driver" >&5
14683 echo "${ECHO_T}$with_term_driver" >&6
14684 if test "x$with_term_driver" = xyes ; then
14686 cat >>confdefs.h <<\EOF
14687 #define USE_TERM_DRIVER 1
14690 if test "x$with_termlib" != xno ; then
14691 { { echo "$as_me:14691: error: The term-driver option conflicts with the termlib option" >&5
14692 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
14693 { (exit 1); exit 1; }; }
14695 if test "x$with_sp_funcs" != xyes ; then
14696 { { echo "$as_me:14696: error: The term-driver option relies upon sp-funcs" >&5
14697 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
14698 { (exit 1); exit 1; }; }
14702 ### use option --enable-const to turn on use of const beyond that in XSI.
14703 echo "$as_me:14703: checking for extended use of const keyword" >&5
14704 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
14706 # Check whether --enable-const or --disable-const was given.
14707 if test "${enable_const+set}" = set; then
14708 enableval="$enable_const"
14709 with_ext_const=$enableval
14711 with_ext_const=$cf_dft_ext_const
14713 echo "$as_me:14713: result: $with_ext_const" >&5
14714 echo "${ECHO_T}$with_ext_const" >&6
14715 NCURSES_CONST='/*nothing*/'
14716 if test "x$with_ext_const" = xyes ; then
14717 NCURSES_CONST=const
14720 ### use option --enable-ext-colors to turn on use of colors beyond 16.
14721 echo "$as_me:14721: checking if you want to use extended colors" >&5
14722 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
14724 # Check whether --enable-ext-colors or --disable-ext-colors was given.
14725 if test "${enable_ext_colors+set}" = set; then
14726 enableval="$enable_ext_colors"
14727 with_ext_colors=$enableval
14729 with_ext_colors=$cf_dft_ext_colors
14731 echo "$as_me:14731: result: $with_ext_colors" >&5
14732 echo "${ECHO_T}$with_ext_colors" >&6
14733 NCURSES_EXT_COLORS=0
14734 if test "x$with_ext_colors" = xyes ; then
14735 if test "x$with_widec" != xyes ; then
14736 { echo "$as_me:14736: WARNING: This option applies only to wide-character library" >&5
14737 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
14739 # cannot be ABI 5 since it changes sizeof(cchar_t)
14741 if test "${with_abi_version+set}" != set; then
14742 case $cf_cv_rel_version in
14744 cf_cv_rel_version=6.0
14745 cf_cv_abi_version=6
14746 { echo "$as_me:14746: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14747 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14752 NCURSES_EXT_COLORS=1
14754 cat >>confdefs.h <<\EOF
14755 #define NCURSES_EXT_COLORS 1
14758 cat >>confdefs.h <<\EOF
14759 #define HAVE_ALLOC_PAIR 1
14762 cat >>confdefs.h <<\EOF
14763 #define HAVE_INIT_EXTENDED_COLOR 1
14766 cat >>confdefs.h <<\EOF
14767 #define HAVE_RESET_COLOR_PAIRS 1
14773 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14774 echo "$as_me:14774: checking if you want to use extended mouse encoding" >&5
14775 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14777 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14778 if test "${enable_ext_mouse+set}" = set; then
14779 enableval="$enable_ext_mouse"
14780 with_ext_mouse=$enableval
14782 with_ext_mouse=$cf_dft_ext_mouse
14784 echo "$as_me:14784: result: $with_ext_mouse" >&5
14785 echo "${ECHO_T}$with_ext_mouse" >&6
14786 NCURSES_MOUSE_VERSION=1
14787 if test "x$with_ext_mouse" = xyes ; then
14788 NCURSES_MOUSE_VERSION=2
14790 if test "${with_abi_version+set}" != set; then
14791 case $cf_cv_rel_version in
14793 cf_cv_rel_version=6.0
14794 cf_cv_abi_version=6
14795 { echo "$as_me:14795: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14796 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14803 ### use option --enable-ext-putwin to turn on extended screendumps
14804 echo "$as_me:14804: checking if you want to use extended putwin/screendump" >&5
14805 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
14807 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
14808 if test "${enable_ext_putwin+set}" = set; then
14809 enableval="$enable_ext_putwin"
14810 with_ext_putwin=$enableval
14812 with_ext_putwin=$cf_dft_ext_putwin
14814 echo "$as_me:14814: result: $with_ext_putwin" >&5
14815 echo "${ECHO_T}$with_ext_putwin" >&6
14816 if test "x$with_ext_putwin" = xyes ; then
14818 cat >>confdefs.h <<\EOF
14819 #define NCURSES_EXT_PUTWIN 1
14824 echo "$as_me:14824: checking if you want \$NCURSES_NO_PADDING code" >&5
14825 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
14827 # Check whether --enable-no-padding or --disable-no-padding was given.
14828 if test "${enable_no_padding+set}" = set; then
14829 enableval="$enable_no_padding"
14830 with_no_padding=$enableval
14832 with_no_padding=$with_ext_funcs
14834 echo "$as_me:14834: result: $with_no_padding" >&5
14835 echo "${ECHO_T}$with_no_padding" >&6
14836 test "x$with_no_padding" = xyes &&
14837 cat >>confdefs.h <<\EOF
14838 #define NCURSES_NO_PADDING 1
14841 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
14842 echo "$as_me:14842: checking if you want SIGWINCH handler" >&5
14843 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
14845 # Check whether --enable-sigwinch or --disable-sigwinch was given.
14846 if test "${enable_sigwinch+set}" = set; then
14847 enableval="$enable_sigwinch"
14848 with_sigwinch=$enableval
14850 with_sigwinch=$with_ext_funcs
14852 echo "$as_me:14852: result: $with_sigwinch" >&5
14853 echo "${ECHO_T}$with_sigwinch" >&6
14854 test "x$with_sigwinch" = xyes &&
14855 cat >>confdefs.h <<\EOF
14856 #define USE_SIGWINCH 1
14859 ### use option --enable-tcap-names to allow user to define new capabilities
14860 echo "$as_me:14860: checking if you want user-definable terminal capabilities like termcap" >&5
14861 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
14863 # Check whether --enable-tcap-names or --disable-tcap-names was given.
14864 if test "${enable_tcap_names+set}" = set; then
14865 enableval="$enable_tcap_names"
14866 with_tcap_names=$enableval
14868 with_tcap_names=$with_ext_funcs
14870 echo "$as_me:14870: result: $with_tcap_names" >&5
14871 echo "${ECHO_T}$with_tcap_names" >&6
14873 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
14875 ##############################################################################
14877 echo "$as_me:14877: checking if you want to link with the pthread library" >&5
14878 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
14880 # Check whether --with-pthread or --without-pthread was given.
14881 if test "${with_pthread+set}" = set; then
14882 withval="$with_pthread"
14883 with_pthread=$withval
14887 echo "$as_me:14887: result: $with_pthread" >&5
14888 echo "${ECHO_T}$with_pthread" >&6
14890 if test "$with_pthread" != no ; then
14891 echo "$as_me:14891: checking for pthread.h" >&5
14892 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14893 if test "${ac_cv_header_pthread_h+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 cat >conftest.$ac_ext <<_ACEOF
14897 #line 14897 "configure"
14898 #include "confdefs.h"
14899 #include <pthread.h>
14901 if { (eval echo "$as_me:14901: \"$ac_cpp conftest.$ac_ext\"") >&5
14902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14904 egrep -v '^ *\+' conftest.er1 >conftest.err
14906 cat conftest.err >&5
14907 echo "$as_me:14907: \$? = $ac_status" >&5
14908 (exit $ac_status); } >/dev/null; then
14909 if test -s conftest.err; then
14910 ac_cpp_err=$ac_c_preproc_warn_flag
14917 if test -z "$ac_cpp_err"; then
14918 ac_cv_header_pthread_h=yes
14920 echo "$as_me: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 ac_cv_header_pthread_h=no
14924 rm -f conftest.err conftest.$ac_ext
14926 echo "$as_me:14926: result: $ac_cv_header_pthread_h" >&5
14927 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14928 if test $ac_cv_header_pthread_h = yes; then
14930 cat >>confdefs.h <<\EOF
14931 #define HAVE_PTHREADS_H 1
14934 for cf_lib_pthread in pthread c_r
14936 echo "$as_me:14936: checking if we can link with the $cf_lib_pthread library" >&5
14937 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
14938 cf_save_LIBS="$LIBS"
14940 cf_add_libs="$LIBS"
14943 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14944 # filter duplicates
14945 for cf_add_1lib in $cf_add_0lib; do
14946 for cf_add_2lib in $cf_add_libs; do
14947 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14952 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14954 LIBS="$cf_add_libs"
14956 cat >conftest.$ac_ext <<_ACEOF
14957 #line 14957 "configure"
14958 #include "confdefs.h"
14960 #include <pthread.h>
14966 int rc = pthread_create(0,0,0,0);
14967 int r2 = pthread_mutexattr_settype(0, 0);
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (eval echo "$as_me:14974: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>&5
14977 echo "$as_me:14977: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:14980: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:14983: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14987 echo "$as_me: failed program was:" >&5
14988 cat conftest.$ac_ext >&5
14991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14992 LIBS="$cf_save_LIBS"
14993 echo "$as_me:14993: result: $with_pthread" >&5
14994 echo "${ECHO_T}$with_pthread" >&6
14995 test "$with_pthread" = yes && break
14998 if test "$with_pthread" = yes ; then
15000 cf_add_libs="$LIBS"
15003 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15004 # filter duplicates
15005 for cf_add_1lib in $cf_add_0lib; do
15006 for cf_add_2lib in $cf_add_libs; do
15007 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15012 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15014 LIBS="$cf_add_libs"
15016 cat >>confdefs.h <<\EOF
15017 #define HAVE_LIBPTHREADS 1
15021 { { echo "$as_me:15021: error: Cannot link with pthread library" >&5
15022 echo "$as_me: error: Cannot link with pthread library" >&2;}
15023 { (exit 1); exit 1; }; }
15030 if test "x$with_pthread" != xno; then
15031 echo "$as_me:15031: checking for pthread_kill" >&5
15032 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15033 if test "${ac_cv_func_pthread_kill+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15037 #line 15037 "configure"
15038 #include "confdefs.h"
15039 #define pthread_kill autoconf_temporary
15040 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15041 #undef pthread_kill
15047 /* We use char because int might match the return type of a gcc2
15048 builtin and then its argument prototype would still apply. */
15049 char pthread_kill (void);
15055 /* The GNU C library defines stubs for functions which it implements
15056 to always fail with ENOSYS. Some functions are actually named
15057 something starting with __ and the normal name is an alias. */
15058 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15059 #error found stub for pthread_kill
15062 return pthread_kill ();
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (eval echo "$as_me:15068: \"$ac_link\"") >&5
15069 (eval $ac_link) 2>&5
15071 echo "$as_me:15071: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
15073 { ac_try='test -s conftest$ac_exeext'
15074 { (eval echo "$as_me:15074: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15077 echo "$as_me:15077: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 ac_cv_func_pthread_kill=yes
15081 echo "$as_me: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15083 ac_cv_func_pthread_kill=no
15085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15087 echo "$as_me:15087: result: $ac_cv_func_pthread_kill" >&5
15088 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15089 if test $ac_cv_func_pthread_kill = yes; then
15091 echo "$as_me:15091: checking if you want to allow EINTR in wgetch with pthreads" >&5
15092 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15094 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15095 if test "${enable_pthreads_eintr+set}" = set; then
15096 enableval="$enable_pthreads_eintr"
15097 use_pthreads_eintr=$enableval
15099 use_pthreads_eintr=no
15101 echo "$as_me:15101: result: $use_pthreads_eintr" >&5
15102 echo "${ECHO_T}$use_pthreads_eintr" >&6
15103 if test "x$use_pthreads_eintr" = xyes ; then
15105 cat >>confdefs.h <<\EOF
15106 #define USE_PTHREADS_EINTR 1
15112 echo "$as_me:15112: checking if you want to use weak-symbols for pthreads" >&5
15113 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15115 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15116 if test "${enable_weak_symbols+set}" = set; then
15117 enableval="$enable_weak_symbols"
15118 use_weak_symbols=$enableval
15120 use_weak_symbols=no
15122 echo "$as_me:15122: result: $use_weak_symbols" >&5
15123 echo "${ECHO_T}$use_weak_symbols" >&6
15124 if test "x$use_weak_symbols" = xyes ; then
15126 echo "$as_me:15126: checking if $CC supports weak symbols" >&5
15127 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15128 if test "${cf_cv_weak_symbols+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 cat >conftest.$ac_ext <<_ACEOF
15133 #line 15133 "configure"
15134 #include "confdefs.h"
15141 #if defined(__GNUC__)
15142 # if defined __USE_ISOC99
15143 # define _cat_pragma(exp) _Pragma(#exp)
15144 # define _weak_pragma(exp) _cat_pragma(weak name)
15146 # define _weak_pragma(exp)
15148 # define _declare(name) __extension__ extern __typeof__(name) name
15149 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15152 weak_symbol(fopen);
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:15159: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>&5
15162 echo "$as_me:15162: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -s conftest.$ac_objext'
15165 { (eval echo "$as_me:15165: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:15168: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 cf_cv_weak_symbols=yes
15172 echo "$as_me: failed program was:" >&5
15173 cat conftest.$ac_ext >&5
15174 cf_cv_weak_symbols=no
15176 rm -f conftest.$ac_objext conftest.$ac_ext
15179 echo "$as_me:15179: result: $cf_cv_weak_symbols" >&5
15180 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15183 cf_cv_weak_symbols=no
15186 if test "x$cf_cv_weak_symbols" = xyes ; then
15188 cat >>confdefs.h <<\EOF
15189 #define USE_WEAK_SYMBOLS 1
15196 if test "x$with_pthread" = "xyes" ; then
15198 cat >>confdefs.h <<\EOF
15199 #define USE_PTHREADS 1
15202 enable_reentrant=yes
15203 if test "x$cf_cv_weak_symbols" = xyes ; then
15206 cf_add_libs="$PRIVATE_LIBS"
15209 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15210 # filter duplicates
15211 for cf_add_1lib in $cf_add_0lib; do
15212 for cf_add_2lib in $cf_add_libs; do
15213 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15218 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15220 PRIVATE_LIBS="$cf_add_libs"
15225 # Reentrant code has to be opaque; there's little advantage to making ncurses
15226 # opaque outside of that, so there is no --enable-opaque option. We can use
15227 # this option without --with-pthreads, but this will be always set for
15229 echo "$as_me:15229: checking if you want reentrant code" >&5
15230 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15232 # Check whether --enable-reentrant or --disable-reentrant was given.
15233 if test "${enable_reentrant+set}" = set; then
15234 enableval="$enable_reentrant"
15235 with_reentrant=$enableval
15239 echo "$as_me:15239: result: $with_reentrant" >&5
15240 echo "${ECHO_T}$with_reentrant" >&6
15241 if test "x$with_reentrant" = xyes ; then
15242 cf_cv_enable_reentrant=1
15243 cf_cv_enable_opaque="NCURSES_INTERNALS"
15245 if test "x$cf_cv_weak_symbols" = xyes ; then
15247 # remove pthread library from $LIBS
15248 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15250 cf_add_libs="$TEST_LIBS"
15253 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15254 # filter duplicates
15255 for cf_add_1lib in $cf_add_0lib; do
15256 for cf_add_2lib in $cf_add_libs; do
15257 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15262 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15264 TEST_LIBS="$cf_add_libs"
15266 cf_add_libs="$TEST_LIBS2"
15269 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15270 # filter duplicates
15271 for cf_add_1lib in $cf_add_0lib; do
15272 for cf_add_2lib in $cf_add_libs; do
15273 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15278 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15280 TEST_LIBS2="$cf_add_libs"
15282 cf_add_libs="$PRIVATE_LIBS"
15285 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15286 # filter duplicates
15287 for cf_add_1lib in $cf_add_0lib; do
15288 for cf_add_2lib in $cf_add_libs; do
15289 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15294 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15296 PRIVATE_LIBS="$cf_add_libs"
15299 # when not using weak symbols but with_reentrant,
15300 # add 't' to the library suffix on all platforms
15301 # except cygwin, where we only do that if ALSO
15302 # compiling with full thread support.
15304 (*cygwin* | *msys*)
15305 if test "$with_pthread" = "yes" ; then
15306 if test "x$disable_lib_suffixes" = "xno" ; then
15307 LIB_SUFFIX="t${LIB_SUFFIX}"
15311 if test "x$disable_lib_suffixes" = "xno" ; then
15312 LIB_SUFFIX="t${LIB_SUFFIX}"
15318 cat >>confdefs.h <<\EOF
15319 #define USE_REENTRANT 1
15322 if test "${with_abi_version+set}" != set; then
15323 case $cf_cv_rel_version in
15325 cf_cv_rel_version=6.0
15326 cf_cv_abi_version=6
15327 { echo "$as_me:15327: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15328 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15334 cf_cv_enable_reentrant=0
15335 cf_cv_enable_opaque="NCURSES_OPAQUE"
15336 NCURSES_SIZE_T=short
15339 echo "$as_me:15339: checking if you want opaque curses-library structures" >&5
15340 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15342 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15343 if test "${enable_opaque_curses+set}" = set; then
15344 enableval="$enable_opaque_curses"
15345 test "$enableval" != yes && enableval=no
15346 if test "$enableval" != "no" ; then
15347 enable_opaque_curses=yes
15350 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15351 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15357 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15358 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15361 echo "$as_me:15361: result: $enable_opaque_curses" >&5
15362 echo "${ECHO_T}$enable_opaque_curses" >&6
15364 test "$cf_cv_enable_reentrant" = 1 && \
15365 test "$enable_opaque_curses" = no && \
15366 { { echo "$as_me:15366: error: reentrant configuration requires opaque library" >&5
15367 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15368 { (exit 1); exit 1; }; }
15370 echo "$as_me:15370: checking if you want opaque form-library structures" >&5
15371 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15373 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15374 if test "${enable_opaque_form+set}" = set; then
15375 enableval="$enable_opaque_form"
15376 enable_opaque_form=yes
15378 enable_opaque_form=no
15380 echo "$as_me:15380: result: $enable_opaque_form" >&5
15381 echo "${ECHO_T}$enable_opaque_form" >&6
15383 echo "$as_me:15383: checking if you want opaque menu-library structures" >&5
15384 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15386 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15387 if test "${enable_opaque_menu+set}" = set; then
15388 enableval="$enable_opaque_menu"
15389 enable_opaque_menu=yes
15391 enable_opaque_menu=no
15393 echo "$as_me:15393: result: $enable_opaque_menu" >&5
15394 echo "${ECHO_T}$enable_opaque_menu" >&6
15396 echo "$as_me:15396: checking if you want opaque panel-library structures" >&5
15397 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15399 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15400 if test "${enable_opaque_panel+set}" = set; then
15401 enableval="$enable_opaque_panel"
15402 enable_opaque_panel=yes
15404 enable_opaque_panel=no
15406 echo "$as_me:15406: result: $enable_opaque_panel" >&5
15407 echo "${ECHO_T}$enable_opaque_panel" >&6
15409 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15410 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15411 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15412 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15414 ### Allow using a different wrap-prefix
15415 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15416 echo "$as_me:15416: checking for prefix used to wrap public variables" >&5
15417 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15419 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15420 if test "${with_wrap_prefix+set}" = set; then
15421 withval="$with_wrap_prefix"
15422 NCURSES_WRAP_PREFIX=$withval
15424 NCURSES_WRAP_PREFIX=_nc_
15426 echo "$as_me:15426: result: $NCURSES_WRAP_PREFIX" >&5
15427 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15429 NCURSES_WRAP_PREFIX=_nc_
15432 cat >>confdefs.h <<EOF
15433 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15436 ###############################################################################
15437 # These options are relatively safe to experiment with.
15439 echo "$as_me:15439: checking if you want all development code" >&5
15440 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15442 # Check whether --with-develop or --without-develop was given.
15443 if test "${with_develop+set}" = set; then
15444 withval="$with_develop"
15445 with_develop=$withval
15449 echo "$as_me:15449: result: $with_develop" >&5
15450 echo "${ECHO_T}$with_develop" >&6
15452 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15453 echo "$as_me:15453: checking if you want hard-tabs code" >&5
15454 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15456 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15457 if test "${enable_hard_tabs+set}" = set; then
15458 enableval="$enable_hard_tabs"
15461 enable_hard_tabs=$with_develop
15463 echo "$as_me:15463: result: $enable_hard_tabs" >&5
15464 echo "${ECHO_T}$enable_hard_tabs" >&6
15465 test "x$enable_hard_tabs" = xyes &&
15466 cat >>confdefs.h <<\EOF
15467 #define USE_HARD_TABS 1
15470 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15471 echo "$as_me:15471: checking if you want limited support for xmc" >&5
15472 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15474 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15475 if test "${enable_xmc_glitch+set}" = set; then
15476 enableval="$enable_xmc_glitch"
15479 enable_xmc_glitch=$with_develop
15481 echo "$as_me:15481: result: $enable_xmc_glitch" >&5
15482 echo "${ECHO_T}$enable_xmc_glitch" >&6
15483 test "x$enable_xmc_glitch" = xyes &&
15484 cat >>confdefs.h <<\EOF
15485 #define USE_XMC_SUPPORT 1
15488 ###############################################################################
15489 # These are just experimental, probably should not be in a package:
15491 echo "$as_me:15491: checking if you do not want to assume colors are white-on-black" >&5
15492 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15494 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15495 if test "${enable_assumed_color+set}" = set; then
15496 enableval="$enable_assumed_color"
15497 with_assumed_color=$enableval
15499 with_assumed_color=yes
15501 echo "$as_me:15501: result: $with_assumed_color" >&5
15502 echo "${ECHO_T}$with_assumed_color" >&6
15503 test "x$with_assumed_color" = xyes &&
15504 cat >>confdefs.h <<\EOF
15505 #define USE_ASSUMED_COLOR 1
15508 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15509 echo "$as_me:15509: checking if you want hashmap scrolling-optimization code" >&5
15510 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15512 # Check whether --enable-hashmap or --disable-hashmap was given.
15513 if test "${enable_hashmap+set}" = set; then
15514 enableval="$enable_hashmap"
15515 with_hashmap=$enableval
15519 echo "$as_me:15519: result: $with_hashmap" >&5
15520 echo "${ECHO_T}$with_hashmap" >&6
15521 test "x$with_hashmap" = xyes &&
15522 cat >>confdefs.h <<\EOF
15523 #define USE_HASHMAP 1
15526 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15527 echo "$as_me:15527: checking if you want colorfgbg code" >&5
15528 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15530 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15531 if test "${enable_colorfgbg+set}" = set; then
15532 enableval="$enable_colorfgbg"
15533 with_colorfgbg=$enableval
15537 echo "$as_me:15537: result: $with_colorfgbg" >&5
15538 echo "${ECHO_T}$with_colorfgbg" >&6
15539 test "x$with_colorfgbg" = xyes &&
15540 cat >>confdefs.h <<\EOF
15541 #define USE_COLORFGBG 1
15544 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15545 echo "$as_me:15545: checking if you want to use gcc -fvisibility option" >&5
15546 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15548 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15549 if test "${enable_fvisibility+set}" = set; then
15550 enableval="$enable_fvisibility"
15551 cf_with_fvisibility=$enableval
15553 cf_with_fvisibility=no
15555 echo "$as_me:15555: result: $cf_with_fvisibility" >&5
15556 echo "${ECHO_T}$cf_with_fvisibility" >&6
15559 NCURSES_CXX_IMPEXP=
15560 if test "x$cf_with_fvisibility" = xyes; then
15562 echo "$as_me:15562: checking if $CC -fvisibility=hidden option works" >&5
15563 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15564 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 cf_save_cflags="$CFLAGS"
15569 CFLAGS="$CFLAGS -fvisibility=hidden"
15570 cat >conftest.$ac_ext <<_ACEOF
15571 #line 15571 "configure"
15572 #include "confdefs.h"
15574 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15580 if (somefunc()) return 1;
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (eval echo "$as_me:15587: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:15593: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:15596: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 cf_cv_fvisibility_hidden=yes
15600 echo "$as_me: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15602 cf_cv_fvisibility_hidden=no
15604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15605 CFLAGS=$cf_save_cflags
15608 echo "$as_me:15608: result: $cf_cv_fvisibility_hidden" >&5
15609 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
15611 if test "x$cf_cv_fvisibility_hidden" = xyes
15617 cf_new_extra_cppflags=
15619 for cf_add_cflags in -fvisibility=hidden
15621 case $cf_fix_cppflags in
15623 case $cf_add_cflags in
15624 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15625 case $cf_add_cflags in
15627 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15629 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15630 && test -z "${cf_tst_cflags}" \
15631 && cf_fix_cppflags=yes
15633 if test $cf_fix_cppflags = yes ; then
15635 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15636 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15639 elif test "${cf_tst_cflags}" = "\"'" ; then
15641 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15642 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15648 case "$CPPFLAGS" in
15652 case $cf_add_cflags in
15654 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15656 CPPFLAGS=`echo "$CPPFLAGS" | \
15657 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15658 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15663 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15664 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15671 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15672 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15679 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15680 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15682 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15684 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15685 && test -z "${cf_tst_cflags}" \
15686 && cf_fix_cppflags=no
15691 if test -n "$cf_new_cflags" ; then
15693 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15694 CFLAGS="${CFLAGS}$cf_new_cflags"
15698 if test -n "$cf_new_cppflags" ; then
15700 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15701 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15705 if test -n "$cf_new_extra_cppflags" ; then
15707 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15708 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15712 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
15717 ac_cpp='$CXXCPP $CPPFLAGS'
15718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15721 ac_main_return=return
15723 echo "$as_me:15723: checking if $CXX -fvisibility=hidden option works" >&5
15724 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
15725 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 cf_save_cflags="$CXXFLAGS"
15730 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
15731 cat >conftest.$ac_ext <<_ACEOF
15732 #line 15732 "configure"
15733 #include "confdefs.h"
15735 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15741 if (somefunc()) return 1;
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (eval echo "$as_me:15748: \"$ac_link\"") >&5
15749 (eval $ac_link) 2>&5
15751 echo "$as_me:15751: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -s conftest$ac_exeext'
15754 { (eval echo "$as_me:15754: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15757 echo "$as_me:15757: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 cf_cv_fvisibility_hidden2=yes
15761 echo "$as_me: failed program was:" >&5
15762 cat conftest.$ac_ext >&5
15763 cf_cv_fvisibility_hidden2=no
15765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15766 CXXFLAGS=$cf_save_cflags
15769 echo "$as_me:15769: result: $cf_cv_fvisibility_hidden2" >&5
15770 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
15772 if test "x$cf_cv_fvisibility_hidden2" = xyes
15775 cf_save_CXXFLAGS="$CFLAGS"
15781 cf_new_extra_cppflags=
15783 for cf_add_cflags in -fvisibility=hidden
15785 case $cf_fix_cppflags in
15787 case $cf_add_cflags in
15788 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15789 case $cf_add_cflags in
15791 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15793 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15794 && test -z "${cf_tst_cflags}" \
15795 && cf_fix_cppflags=yes
15797 if test $cf_fix_cppflags = yes ; then
15799 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15800 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15803 elif test "${cf_tst_cflags}" = "\"'" ; then
15805 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15806 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15812 case "$CPPFLAGS" in
15816 case $cf_add_cflags in
15818 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15820 CPPFLAGS=`echo "$CPPFLAGS" | \
15821 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15822 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15827 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15828 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15835 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15836 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15843 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15844 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15846 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15848 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15849 && test -z "${cf_tst_cflags}" \
15850 && cf_fix_cppflags=no
15855 if test -n "$cf_new_cflags" ; then
15857 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15858 CFLAGS="${CFLAGS}$cf_new_cflags"
15862 if test -n "$cf_new_cppflags" ; then
15864 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15865 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15869 if test -n "$cf_new_extra_cppflags" ; then
15871 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15872 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15877 CFLAGS="$cf_save_CXXFLAGS"
15879 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
15882 ac_cpp='$CPP $CPPFLAGS'
15883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15886 ac_main_return=return
15891 ### use option --enable-interop to turn on use of bindings used for interop
15892 echo "$as_me:15892: checking if you want interop bindings" >&5
15893 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
15895 # Check whether --enable-interop or --disable-interop was given.
15896 if test "${enable_interop+set}" = set; then
15897 enableval="$enable_interop"
15898 with_exp_interop=$enableval
15900 with_exp_interop=$cf_dft_interop
15902 echo "$as_me:15902: result: $with_exp_interop" >&5
15903 echo "${ECHO_T}$with_exp_interop" >&6
15905 NCURSES_INTEROP_FUNCS=0
15906 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
15908 echo "$as_me:15908: checking if you want experimental safe-sprintf code" >&5
15909 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
15911 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
15912 if test "${enable_safe_sprintf+set}" = set; then
15913 enableval="$enable_safe_sprintf"
15914 with_safe_sprintf=$enableval
15916 with_safe_sprintf=no
15918 echo "$as_me:15918: result: $with_safe_sprintf" >&5
15919 echo "${ECHO_T}$with_safe_sprintf" >&6
15921 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
15922 # when hashmap is used scroll hints are useless
15923 if test "$with_hashmap" = no ; then
15924 echo "$as_me:15924: checking if you want to experiment without scrolling-hints code" >&5
15925 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
15927 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
15928 if test "${enable_scroll_hints+set}" = set; then
15929 enableval="$enable_scroll_hints"
15930 with_scroll_hints=$enableval
15932 with_scroll_hints=yes
15934 echo "$as_me:15934: result: $with_scroll_hints" >&5
15935 echo "${ECHO_T}$with_scroll_hints" >&6
15936 test "x$with_scroll_hints" = xyes &&
15937 cat >>confdefs.h <<\EOF
15938 #define USE_SCROLL_HINTS 1
15943 echo "$as_me:15943: checking if you want wgetch-events code" >&5
15944 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
15946 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
15947 if test "${enable_wgetch_events+set}" = set; then
15948 enableval="$enable_wgetch_events"
15949 with_wgetch_events=$enableval
15951 with_wgetch_events=no
15953 echo "$as_me:15953: result: $with_wgetch_events" >&5
15954 echo "${ECHO_T}$with_wgetch_events" >&6
15955 if test "x$with_wgetch_events" = xyes ; then
15957 cat >>confdefs.h <<\EOF
15958 #define NCURSES_WGETCH_EVENTS 1
15961 NCURSES_WGETCH_EVENTS=1
15963 NCURSES_WGETCH_EVENTS=0
15966 case $cf_cv_system_name in
15967 (*mingw32*|*mingw64*|*-msvc*)
15968 echo "$as_me:15968: checking if you want experimental-Windows driver" >&5
15969 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
15971 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
15972 if test "${enable_exp_win32+set}" = set; then
15973 enableval="$enable_exp_win32"
15974 with_exp_win32=$enableval
15978 echo "$as_me:15978: result: $with_exp_win32" >&5
15979 echo "${ECHO_T}$with_exp_win32" >&6
15980 if test "x$with_exp_win32" = xyes
15983 cat >>confdefs.h <<\EOF
15984 #define EXP_WIN32_DRIVER 1
15988 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
15990 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16000 ###############################################################################
16002 ### use option --disable-echo to suppress full display compiling commands
16004 echo "$as_me:16004: checking if you want to see long compiling messages" >&5
16005 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16007 # Check whether --enable-echo or --disable-echo was given.
16008 if test "${enable_echo+set}" = set; then
16009 enableval="$enable_echo"
16010 test "$enableval" != no && enableval=yes
16011 if test "$enableval" != "yes" ; then
16014 ECHO_LD='@echo linking $@;'
16015 RULE_CC='@echo compiling $<'
16016 SHOW_CC='@echo compiling $@'
16038 echo "$as_me:16038: result: $enableval" >&5
16039 echo "${ECHO_T}$enableval" >&6
16041 if test "x$enable_echo" = xyes; then
16044 ECHO_LINK='@ echo linking $@ ... ;'
16045 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16046 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16049 # --disable-stripping is used for debugging
16051 echo "$as_me:16051: checking if you want to install stripped executables" >&5
16052 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16054 # Check whether --enable-stripping or --disable-stripping was given.
16055 if test "${enable_stripping+set}" = set; then
16056 enableval="$enable_stripping"
16057 test "$enableval" != no && enableval=yes
16058 if test "$enableval" != "yes" ; then
16068 echo "$as_me:16068: result: $with_stripping" >&5
16069 echo "${ECHO_T}$with_stripping" >&6
16071 if test "$with_stripping" = yes
16078 : ${INSTALL:=install}
16079 echo "$as_me:16079: checking if install accepts -p option" >&5
16080 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16081 if test "${cf_cv_install_p+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16091 if test -f conftest.out/conftest.in
16093 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16094 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16095 if test -s conftest.err
16099 cf_cv_install_p=yes
16110 echo "$as_me:16110: result: $cf_cv_install_p" >&5
16111 echo "${ECHO_T}$cf_cv_install_p" >&6
16113 echo "$as_me:16113: checking if install needs to be told about ownership" >&5
16114 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16115 case `$ac_config_guess` in
16124 echo "$as_me:16124: result: $with_install_o" >&5
16125 echo "${ECHO_T}$with_install_o" >&6
16126 if test "x$with_install_o" = xyes
16128 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'`
16133 # If we're avoiding relinking of shared libraries during install, that is to
16134 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16135 # the install program has "-p" (for preserving timestamps).
16136 cf_cv_do_reranlib=yes
16137 if test "x$cf_cv_install_p" = xyes
16139 if test "x$cf_cv_do_relink" != xyes
16141 cf_cv_do_reranlib=no
16143 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16147 ### use option --enable-warnings to turn on all gcc warnings
16149 if ( test "$GCC" = yes || test "$GXX" = yes )
16152 if ( test "$GCC" = yes || test "$GXX" = yes )
16156 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
16158 echo "${as_me:-configure}:16158: testing repairing CFLAGS: $CFLAGS ..." 1>&5
16161 for cf_temp_scan in $CFLAGS
16163 case "x$cf_temp_scan" in
16166 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16167 EXTRA_CFLAGS="${EXTRA_CFLAGS}"$cf_temp_scan""
16172 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16173 cf_temp_flags="${cf_temp_flags}"$cf_temp_scan""
16178 CFLAGS="$cf_temp_flags"
16179 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
16181 echo "${as_me:-configure}:16181: testing ... fixed $CFLAGS ..." 1>&5
16183 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16185 echo "${as_me:-configure}:16185: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16191 if ( test "$GCC" = yes || test "$GXX" = yes )
16195 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
16197 echo "${as_me:-configure}:16197: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
16200 for cf_temp_scan in $CPPFLAGS
16202 case "x$cf_temp_scan" in
16205 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16206 EXTRA_CFLAGS="${EXTRA_CFLAGS}"$cf_temp_scan""
16211 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16212 cf_temp_flags="${cf_temp_flags}"$cf_temp_scan""
16217 CPPFLAGS="$cf_temp_flags"
16218 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
16220 echo "${as_me:-configure}:16220: testing ... fixed $CPPFLAGS ..." 1>&5
16222 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16224 echo "${as_me:-configure}:16224: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16230 if ( test "$GCC" = yes || test "$GXX" = yes )
16234 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
16236 echo "${as_me:-configure}:16236: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
16239 for cf_temp_scan in $LDFLAGS
16241 case "x$cf_temp_scan" in
16244 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16245 EXTRA_CFLAGS="${EXTRA_CFLAGS}"$cf_temp_scan""
16250 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16251 cf_temp_flags="${cf_temp_flags}"$cf_temp_scan""
16256 LDFLAGS="$cf_temp_flags"
16257 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
16259 echo "${as_me:-configure}:16259: testing ... fixed $LDFLAGS ..." 1>&5
16261 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16263 echo "${as_me:-configure}:16263: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16269 echo "$as_me:16269: checking if you want to turn on gcc warnings" >&5
16270 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16272 # Check whether --enable-warnings or --disable-warnings was given.
16273 if test "${enable_warnings+set}" = set; then
16274 enableval="$enable_warnings"
16275 test "$enableval" != yes && enableval=no
16276 if test "$enableval" != "no" ; then
16286 echo "$as_me:16286: result: $with_warnings" >&5
16287 echo "${ECHO_T}$with_warnings" >&6
16288 if test "$with_warnings" = "yes"
16291 if test "x$have_x" = xyes; then
16293 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16294 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16295 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16296 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16297 for cf_X_CFLAGS in $X_CFLAGS
16299 case "x$cf_X_CFLAGS" in
16301 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16304 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16309 cat >conftest.$ac_ext <<_ACEOF
16310 #line 16310 "configure"
16311 #include "confdefs.h"
16313 #include <stdlib.h>
16314 #include <X11/Intrinsic.h>
16319 String foo = malloc(1); (void)foo
16324 rm -f conftest.$ac_objext
16325 if { (eval echo "$as_me:16325: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>&5
16328 echo "$as_me:16328: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -s conftest.$ac_objext'
16331 { (eval echo "$as_me:16331: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:16334: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16337 echo "$as_me:16337: checking for X11/Xt const-feature" >&5
16338 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16339 if test "${cf_cv_const_x_string+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 cat >conftest.$ac_ext <<_ACEOF
16344 #line 16344 "configure"
16345 #include "confdefs.h"
16347 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16348 #undef XTSTRINGDEFINES /* X11R5 and later */
16349 #include <stdlib.h>
16350 #include <X11/Intrinsic.h>
16355 String foo = malloc(1); *foo = 0
16360 rm -f conftest.$ac_objext
16361 if { (eval echo "$as_me:16361: \"$ac_compile\"") >&5
16362 (eval $ac_compile) 2>&5
16364 echo "$as_me:16364: \$? = $ac_status" >&5
16365 (exit $ac_status); } &&
16366 { ac_try='test -s conftest.$ac_objext'
16367 { (eval echo "$as_me:16367: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:16370: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16373 cf_cv_const_x_string=no
16376 echo "$as_me: failed program was:" >&5
16377 cat conftest.$ac_ext >&5
16379 cf_cv_const_x_string=yes
16382 rm -f conftest.$ac_objext conftest.$ac_ext
16385 echo "$as_me:16385: result: $cf_cv_const_x_string" >&5
16386 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16388 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16389 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16390 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16392 case $cf_cv_const_x_string in
16395 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16396 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16401 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16402 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16408 echo "$as_me: failed program was:" >&5
16409 cat conftest.$ac_ext >&5
16411 rm -f conftest.$ac_objext conftest.$ac_ext
16413 cat > conftest.$ac_ext <<EOF
16414 #line 16414 "${as_me:-configure}"
16415 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16417 if test "$INTEL_COMPILER" = yes
16419 # The "-wdXXX" options suppress warnings:
16420 # remark #1419: external declaration in primary source file
16421 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16422 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16423 # remark #193: zero used for undefined preprocessing identifier
16424 # remark #593: variable "curs_sb_left_arrow" was set but never used
16425 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16426 # remark #869: parameter "tw" was never referenced
16427 # remark #981: operands are evaluated in unspecified order
16428 # warning #279: controlling expression is constant
16430 { echo "$as_me:16430: checking for $CC warning options..." >&5
16431 echo "$as_me: checking for $CC warning options..." >&6;}
16432 cf_save_CFLAGS="$CFLAGS"
16433 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
16445 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16446 if { (eval echo "$as_me:16446: \"$ac_compile\"") >&5
16447 (eval $ac_compile) 2>&5
16449 echo "$as_me:16449: \$? = $ac_status" >&5
16450 (exit $ac_status); }; then
16451 test -n "$verbose" && echo "$as_me:16451: result: ... -$cf_opt" >&5
16452 echo "${ECHO_T}... -$cf_opt" >&6
16453 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16456 CFLAGS="$cf_save_CFLAGS"
16457 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16459 { echo "$as_me:16459: checking for $CC warning options..." >&5
16460 echo "$as_me: checking for $CC warning options..." >&6;}
16461 cf_save_CFLAGS="$CFLAGS"
16463 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16464 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16465 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16466 for cf_opt in W Wall \
16467 Wbad-function-cast \
16470 Wdeclaration-after-statement \
16473 Wmissing-declarations \
16474 Wmissing-prototypes \
16478 Wstrict-prototypes \
16479 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16481 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16482 if { (eval echo "$as_me:16482: \"$ac_compile\"") >&5
16483 (eval $ac_compile) 2>&5
16485 echo "$as_me:16485: \$? = $ac_status" >&5
16486 (exit $ac_status); }; then
16487 test -n "$verbose" && echo "$as_me:16487: result: ... -$cf_opt" >&5
16488 echo "${ECHO_T}... -$cf_opt" >&6
16491 case $GCC_VERSION in
16493 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16495 echo "${as_me:-configure}:16495: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16501 case $GCC_VERSION in
16503 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16505 echo "${as_me:-configure}:16505: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16511 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16514 CFLAGS="$cf_save_CFLAGS"
16520 if ( test "$GCC" = yes || test "$GXX" = yes )
16522 cat > conftest.i <<EOF
16524 #define GCC_PRINTF 0
16527 #define GCC_SCANF 0
16529 #ifndef GCC_NORETURN
16530 #define GCC_NORETURN /* nothing */
16533 #define GCC_UNUSED /* nothing */
16536 if test "$GCC" = yes
16538 { echo "$as_me:16538: checking for $CC __attribute__ directives..." >&5
16539 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16540 cat > conftest.$ac_ext <<EOF
16541 #line 16541 "${as_me:-configure}"
16542 #include "confdefs.h"
16543 #include "conftest.h"
16544 #include "conftest.i"
16546 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16548 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16551 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16553 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16555 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16556 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16557 extern void foo(void) GCC_NORETURN;
16558 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
16560 cf_printf_attribute=no
16561 cf_scanf_attribute=no
16562 for cf_attribute in scanf printf unused noreturn
16565 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16567 cf_directive="__attribute__(($cf_attribute))"
16568 echo "checking for $CC $cf_directive" 1>&5
16570 case $cf_attribute in
16572 cf_printf_attribute=yes
16573 cat >conftest.h <<EOF
16574 #define GCC_$cf_ATTRIBUTE 1
16578 cf_scanf_attribute=yes
16579 cat >conftest.h <<EOF
16580 #define GCC_$cf_ATTRIBUTE 1
16584 cat >conftest.h <<EOF
16585 #define GCC_$cf_ATTRIBUTE $cf_directive
16590 if { (eval echo "$as_me:16590: \"$ac_compile\"") >&5
16591 (eval $ac_compile) 2>&5
16593 echo "$as_me:16593: \$? = $ac_status" >&5
16594 (exit $ac_status); }; then
16595 test -n "$verbose" && echo "$as_me:16595: result: ... $cf_attribute" >&5
16596 echo "${ECHO_T}... $cf_attribute" >&6
16597 cat conftest.h >>confdefs.h
16598 case $cf_attribute in
16601 cat >>confdefs.h <<EOF
16602 #define GCC_NORETURN $cf_directive
16607 cf_value='/* nothing */'
16608 if test "$cf_printf_attribute" != no ; then
16609 cf_value='__attribute__((format(printf,fmt,var)))'
16611 cat >>confdefs.h <<\EOF
16612 #define GCC_PRINTF 1
16617 cat >>confdefs.h <<EOF
16618 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16623 cf_value='/* nothing */'
16624 if test "$cf_scanf_attribute" != no ; then
16625 cf_value='__attribute__((format(scanf,fmt,var)))'
16627 cat >>confdefs.h <<\EOF
16628 #define GCC_SCANF 1
16633 cat >>confdefs.h <<EOF
16634 #define GCC_SCANFLIKE(fmt,var) $cf_value
16640 cat >>confdefs.h <<EOF
16641 #define GCC_UNUSED $cf_directive
16649 fgrep define conftest.i >>confdefs.h
16656 if test "x$with_warnings" = "xyes"; then
16658 ADAFLAGS="$ADAFLAGS -gnatg"
16660 if test "x$cf_with_cxx" = xyes ; then
16664 if test "$GCC" = yes ; then
16667 echo "$as_me:16667: checking if this is really Intel C++ compiler" >&5
16668 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
16669 cf_save_CFLAGS="$CXXFLAGS"
16670 CXXFLAGS="$CXXFLAGS -no-gcc"
16671 cat >conftest.$ac_ext <<_ACEOF
16672 #line 16672 "configure"
16673 #include "confdefs.h"
16679 #ifdef __INTEL_COMPILER
16688 rm -f conftest.$ac_objext
16689 if { (eval echo "$as_me:16689: \"$ac_compile\"") >&5
16690 (eval $ac_compile) 2>&5
16692 echo "$as_me:16692: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -s conftest.$ac_objext'
16695 { (eval echo "$as_me:16695: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:16698: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 INTEL_CPLUSPLUS=yes
16701 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16704 echo "$as_me: failed program was:" >&5
16705 cat conftest.$ac_ext >&5
16707 rm -f conftest.$ac_objext conftest.$ac_ext
16708 CXXFLAGS="$cf_save_CFLAGS"
16709 echo "$as_me:16709: result: $INTEL_CPLUSPLUS" >&5
16710 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
16717 if test "$GCC" = yes ; then
16718 echo "$as_me:16718: checking if this is really Clang C++ compiler" >&5
16719 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
16720 cf_save_CFLAGS="$CXXFLAGS"
16721 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
16722 cat >conftest.$ac_ext <<_ACEOF
16723 #line 16723 "configure"
16724 #include "confdefs.h"
16739 rm -f conftest.$ac_objext
16740 if { (eval echo "$as_me:16740: \"$ac_compile\"") >&5
16741 (eval $ac_compile) 2>&5
16743 echo "$as_me:16743: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try='test -s conftest.$ac_objext'
16746 { (eval echo "$as_me:16746: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16749 echo "$as_me:16749: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 CLANG_CPLUSPLUS=yes
16752 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
16755 echo "$as_me: failed program was:" >&5
16756 cat conftest.$ac_ext >&5
16758 rm -f conftest.$ac_objext conftest.$ac_ext
16759 CXXFLAGS="$cf_save_CFLAGS"
16760 echo "$as_me:16760: result: $CLANG_CPLUSPLUS" >&5
16761 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
16764 if test "x$CLANG_COMPILER" = "xyes" ; then
16766 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16767 CFLAGS="${CFLAGS}-Wno-error=implicit-function-declaration"
16772 ac_cpp='$CXXCPP $CPPFLAGS'
16773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16776 ac_main_return=return
16778 cat > conftest.$ac_ext <<EOF
16779 #line 16779 "configure"
16780 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16783 if test "$INTEL_CPLUSPLUS" = yes
16785 # The "-wdXXX" options suppress warnings:
16786 # remark #1419: external declaration in primary source file
16787 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16788 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16789 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16790 # remark #193: zero used for undefined preprocessing identifier
16791 # remark #593: variable "curs_sb_left_arrow" was set but never used
16792 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16793 # remark #869: parameter "tw" was never referenced
16794 # remark #981: operands are evaluated in unspecified order
16795 # warning #269: invalid format string conversion
16797 { echo "$as_me:16797: checking for $CC warning options..." >&5
16798 echo "$as_me: checking for $CC warning options..." >&6;}
16799 cf_save_CXXFLAGS="$CXXFLAGS"
16800 EXTRA_CXXFLAGS="-Wall"
16813 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
16814 if { (eval echo "$as_me:16814: \"$ac_compile\"") >&5
16815 (eval $ac_compile) 2>&5
16817 echo "$as_me:16817: \$? = $ac_status" >&5
16818 (exit $ac_status); }; then
16819 test -n "$verbose" && echo "$as_me:16819: result: ... -$cf_opt" >&5
16820 echo "${ECHO_T}... -$cf_opt" >&6
16821 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
16824 CXXFLAGS="$cf_save_CXXFLAGS"
16826 elif test "$GXX" = yes
16828 { echo "$as_me:16828: checking for $CXX warning options..." >&5
16829 echo "$as_me: checking for $CXX warning options..." >&6;}
16830 cf_save_CXXFLAGS="$CXXFLAGS"
16831 EXTRA_CXXFLAGS="-W -Wall"
16832 cf_gxx_extra_warnings=""
16833 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
16834 case "$GCC_VERSION" in
16838 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
16845 Wignored-qualifiers \
16847 Woverloaded-virtual \
16855 Wundef $cf_gxx_extra_warnings Wno-unused
16857 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
16858 if { (eval echo "$as_me:16858: \"$ac_compile\"") >&5
16859 (eval $ac_compile) 2>&5
16861 echo "$as_me:16861: \$? = $ac_status" >&5
16862 (exit $ac_status); }; then
16863 test -n "$verbose" && echo "$as_me:16863: result: ... -$cf_opt" >&5
16864 echo "${ECHO_T}... -$cf_opt" >&6
16865 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
16867 test -n "$verbose" && echo "$as_me:16867: result: ... no -$cf_opt" >&5
16868 echo "${ECHO_T}... no -$cf_opt" >&6
16871 CXXFLAGS="$cf_save_CXXFLAGS"
16876 ac_cpp='$CPP $CPPFLAGS'
16877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16880 ac_main_return=return
16885 echo "$as_me:16885: checking if you want to work around bogus compiler/loader warnings" >&5
16886 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
16888 # Check whether --enable-string-hacks or --disable-string-hacks was given.
16889 if test "${enable_string_hacks+set}" = set; then
16890 enableval="$enable_string_hacks"
16891 with_string_hacks=$enableval
16893 with_string_hacks=no
16895 echo "$as_me:16895: result: $with_string_hacks" >&5
16896 echo "${ECHO_T}$with_string_hacks" >&6
16898 if test "x$with_string_hacks" = "xyes"; then
16900 cat >>confdefs.h <<\EOF
16901 #define USE_STRING_HACKS 1
16904 { echo "$as_me:16904: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
16905 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
16906 echo "$as_me:16906: checking for strlcat" >&5
16907 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
16908 if test "${ac_cv_func_strlcat+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 cat >conftest.$ac_ext <<_ACEOF
16912 #line 16912 "configure"
16913 #include "confdefs.h"
16914 #define strlcat autoconf_temporary
16915 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16922 /* We use char because int might match the return type of a gcc2
16923 builtin and then its argument prototype would still apply. */
16924 char strlcat (void);
16930 /* The GNU C library defines stubs for functions which it implements
16931 to always fail with ENOSYS. Some functions are actually named
16932 something starting with __ and the normal name is an alias. */
16933 #if defined (__stub_strlcat) || defined (__stub___strlcat)
16934 #error found stub for strlcat
16942 rm -f conftest.$ac_objext conftest$ac_exeext
16943 if { (eval echo "$as_me:16943: \"$ac_link\"") >&5
16944 (eval $ac_link) 2>&5
16946 echo "$as_me:16946: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try='test -s conftest$ac_exeext'
16949 { (eval echo "$as_me:16949: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16952 echo "$as_me:16952: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_cv_func_strlcat=yes
16956 echo "$as_me: failed program was:" >&5
16957 cat conftest.$ac_ext >&5
16958 ac_cv_func_strlcat=no
16960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16962 echo "$as_me:16962: result: $ac_cv_func_strlcat" >&5
16963 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
16964 if test $ac_cv_func_strlcat = yes; then
16966 cat >>confdefs.h <<\EOF
16967 #define HAVE_STRLCAT 1
16972 echo "$as_me:16972: checking for strlcat in -lbsd" >&5
16973 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
16974 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 ac_check_lib_save_LIBS=$LIBS
16979 cat >conftest.$ac_ext <<_ACEOF
16980 #line 16980 "configure"
16981 #include "confdefs.h"
16983 /* Override any gcc2 internal prototype to avoid an error. */
16987 /* We use char because int might match the return type of a gcc2
16988 builtin and then its argument prototype would still apply. */
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (eval echo "$as_me:16999: \"$ac_link\"") >&5
17000 (eval $ac_link) 2>&5
17002 echo "$as_me:17002: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -s conftest$ac_exeext'
17005 { (eval echo "$as_me:17005: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17008 echo "$as_me:17008: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_cv_lib_bsd_strlcat=yes
17012 echo "$as_me: failed program was:" >&5
17013 cat conftest.$ac_ext >&5
17014 ac_cv_lib_bsd_strlcat=no
17016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17017 LIBS=$ac_check_lib_save_LIBS
17019 echo "$as_me:17019: result: $ac_cv_lib_bsd_strlcat" >&5
17020 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
17021 if test $ac_cv_lib_bsd_strlcat = yes; then
17023 cf_add_libs="$LIBS"
17026 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17027 # filter duplicates
17028 for cf_add_1lib in $cf_add_0lib; do
17029 for cf_add_2lib in $cf_add_libs; do
17030 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17035 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17037 LIBS="$cf_add_libs"
17039 for ac_header in bsd/string.h
17041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17042 echo "$as_me:17042: checking for $ac_header" >&5
17043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17048 #line 17048 "configure"
17049 #include "confdefs.h"
17050 #include <$ac_header>
17052 if { (eval echo "$as_me:17052: \"$ac_cpp conftest.$ac_ext\"") >&5
17053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17055 egrep -v '^ *\+' conftest.er1 >conftest.err
17057 cat conftest.err >&5
17058 echo "$as_me:17058: \$? = $ac_status" >&5
17059 (exit $ac_status); } >/dev/null; then
17060 if test -s conftest.err; then
17061 ac_cpp_err=$ac_c_preproc_warn_flag
17068 if test -z "$ac_cpp_err"; then
17069 eval "$as_ac_Header=yes"
17071 echo "$as_me: failed program was:" >&5
17072 cat conftest.$ac_ext >&5
17073 eval "$as_ac_Header=no"
17075 rm -f conftest.err conftest.$ac_ext
17077 echo "$as_me:17077: result: `eval echo '${'$as_ac_Header'}'`" >&5
17078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17080 cat >>confdefs.h <<EOF
17081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17087 cat >>confdefs.h <<\EOF
17088 #define HAVE_STRLCAT 1
17095 for ac_func in strlcpy snprintf
17097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17098 echo "$as_me:17098: checking for $ac_func" >&5
17099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17100 if eval "test \"\${$as_ac_var+set}\" = set"; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17104 #line 17104 "configure"
17105 #include "confdefs.h"
17106 #define $ac_func autoconf_temporary
17107 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17114 /* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17116 char $ac_func (void);
17122 /* The GNU C library defines stubs for functions which it implements
17123 to always fail with ENOSYS. Some functions are actually named
17124 something starting with __ and the normal name is an alias. */
17125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17126 #error found stub for $ac_func
17129 return $ac_func ();
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:17135: \"$ac_link\"") >&5
17136 (eval $ac_link) 2>&5
17138 echo "$as_me:17138: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -s conftest$ac_exeext'
17141 { (eval echo "$as_me:17141: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:17144: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 eval "$as_ac_var=yes"
17148 echo "$as_me: failed program was:" >&5
17149 cat conftest.$ac_ext >&5
17150 eval "$as_ac_var=no"
17152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17154 echo "$as_me:17154: result: `eval echo '${'$as_ac_var'}'`" >&5
17155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17156 if test `eval echo '${'$as_ac_var'}'` = yes; then
17157 cat >>confdefs.h <<EOF
17158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17166 ### use option --enable-assertions to turn on generation of assertion code
17167 echo "$as_me:17167: checking if you want to enable runtime assertions" >&5
17168 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17170 # Check whether --enable-assertions or --disable-assertions was given.
17171 if test "${enable_assertions+set}" = set; then
17172 enableval="$enable_assertions"
17173 with_assertions=$enableval
17177 echo "$as_me:17177: result: $with_assertions" >&5
17178 echo "${ECHO_T}$with_assertions" >&6
17181 if test "$with_assertions" = no
17183 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17186 ADAFLAGS="$ADAFLAGS -gnata"
17191 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17193 echo "$as_me:17193: checking if you want to use dmalloc for testing" >&5
17194 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17196 # Check whether --with-dmalloc or --without-dmalloc was given.
17197 if test "${with_dmalloc+set}" = set; then
17198 withval="$with_dmalloc"
17200 cat >>confdefs.h <<EOF
17201 #define USE_DMALLOC 1
17204 : ${with_cflags:=-g}
17205 : ${with_no_leaks:=yes}
17210 echo "$as_me:17210: result: ${with_dmalloc:-no}" >&5
17211 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17213 case .$with_cflags in
17223 cf_new_extra_cppflags=
17225 for cf_add_cflags in -g
17227 case $cf_fix_cppflags in
17229 case $cf_add_cflags in
17230 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17231 case $cf_add_cflags in
17233 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17235 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17236 && test -z "${cf_tst_cflags}" \
17237 && cf_fix_cppflags=yes
17239 if test $cf_fix_cppflags = yes ; then
17241 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17242 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17245 elif test "${cf_tst_cflags}" = "\"'" ; then
17247 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17254 case "$CPPFLAGS" in
17258 case $cf_add_cflags in
17260 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17262 CPPFLAGS=`echo "$CPPFLAGS" | \
17263 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17264 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17269 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17270 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17277 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17278 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17285 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17286 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17288 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17290 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17291 && test -z "${cf_tst_cflags}" \
17292 && cf_fix_cppflags=no
17297 if test -n "$cf_new_cflags" ; then
17299 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17300 CFLAGS="${CFLAGS}$cf_new_cflags"
17304 if test -n "$cf_new_cppflags" ; then
17306 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17307 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17311 if test -n "$cf_new_extra_cppflags" ; then
17313 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17314 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17323 if test "$with_dmalloc" = yes ; then
17324 echo "$as_me:17324: checking for dmalloc.h" >&5
17325 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17326 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 cat >conftest.$ac_ext <<_ACEOF
17330 #line 17330 "configure"
17331 #include "confdefs.h"
17332 #include <dmalloc.h>
17334 if { (eval echo "$as_me:17334: \"$ac_cpp conftest.$ac_ext\"") >&5
17335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17337 egrep -v '^ *\+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:17340: \$? = $ac_status" >&5
17341 (exit $ac_status); } >/dev/null; then
17342 if test -s conftest.err; then
17343 ac_cpp_err=$ac_c_preproc_warn_flag
17350 if test -z "$ac_cpp_err"; then
17351 ac_cv_header_dmalloc_h=yes
17353 echo "$as_me: failed program was:" >&5
17354 cat conftest.$ac_ext >&5
17355 ac_cv_header_dmalloc_h=no
17357 rm -f conftest.err conftest.$ac_ext
17359 echo "$as_me:17359: result: $ac_cv_header_dmalloc_h" >&5
17360 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17361 if test $ac_cv_header_dmalloc_h = yes; then
17363 echo "$as_me:17363: checking for dmalloc_debug in -ldmalloc" >&5
17364 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17365 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 ac_check_lib_save_LIBS=$LIBS
17369 LIBS="-ldmalloc $LIBS"
17370 cat >conftest.$ac_ext <<_ACEOF
17371 #line 17371 "configure"
17372 #include "confdefs.h"
17374 /* Override any gcc2 internal prototype to avoid an error. */
17378 /* We use char because int might match the return type of a gcc2
17379 builtin and then its argument prototype would still apply. */
17380 char dmalloc_debug ();
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (eval echo "$as_me:17390: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>&5
17393 echo "$as_me:17393: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -s conftest$ac_exeext'
17396 { (eval echo "$as_me:17396: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17399 echo "$as_me:17399: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 ac_cv_lib_dmalloc_dmalloc_debug=yes
17403 echo "$as_me: failed program was:" >&5
17404 cat conftest.$ac_ext >&5
17405 ac_cv_lib_dmalloc_dmalloc_debug=no
17407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_lib_save_LIBS
17410 echo "$as_me:17410: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17411 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17412 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
17413 cat >>confdefs.h <<EOF
17414 #define HAVE_LIBDMALLOC 1
17417 LIBS="-ldmalloc $LIBS"
17425 echo "$as_me:17425: checking if you want to use dbmalloc for testing" >&5
17426 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17428 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17429 if test "${with_dbmalloc+set}" = set; then
17430 withval="$with_dbmalloc"
17432 cat >>confdefs.h <<EOF
17433 #define USE_DBMALLOC 1
17436 : ${with_cflags:=-g}
17437 : ${with_no_leaks:=yes}
17442 echo "$as_me:17442: result: ${with_dbmalloc:-no}" >&5
17443 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17445 case .$with_cflags in
17455 cf_new_extra_cppflags=
17457 for cf_add_cflags in -g
17459 case $cf_fix_cppflags in
17461 case $cf_add_cflags in
17462 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17463 case $cf_add_cflags in
17465 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17467 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17468 && test -z "${cf_tst_cflags}" \
17469 && cf_fix_cppflags=yes
17471 if test $cf_fix_cppflags = yes ; then
17473 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17474 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17477 elif test "${cf_tst_cflags}" = "\"'" ; then
17479 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17480 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17486 case "$CPPFLAGS" in
17490 case $cf_add_cflags in
17492 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17494 CPPFLAGS=`echo "$CPPFLAGS" | \
17495 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17496 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17501 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17502 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17509 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17510 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17517 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17518 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17520 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17522 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17523 && test -z "${cf_tst_cflags}" \
17524 && cf_fix_cppflags=no
17529 if test -n "$cf_new_cflags" ; then
17531 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17532 CFLAGS="${CFLAGS}$cf_new_cflags"
17536 if test -n "$cf_new_cppflags" ; then
17538 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17539 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17543 if test -n "$cf_new_extra_cppflags" ; then
17545 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17546 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17555 if test "$with_dbmalloc" = yes ; then
17556 echo "$as_me:17556: checking for dbmalloc.h" >&5
17557 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17558 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 cat >conftest.$ac_ext <<_ACEOF
17562 #line 17562 "configure"
17563 #include "confdefs.h"
17564 #include <dbmalloc.h>
17566 if { (eval echo "$as_me:17566: \"$ac_cpp conftest.$ac_ext\"") >&5
17567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17569 egrep -v '^ *\+' conftest.er1 >conftest.err
17571 cat conftest.err >&5
17572 echo "$as_me:17572: \$? = $ac_status" >&5
17573 (exit $ac_status); } >/dev/null; then
17574 if test -s conftest.err; then
17575 ac_cpp_err=$ac_c_preproc_warn_flag
17582 if test -z "$ac_cpp_err"; then
17583 ac_cv_header_dbmalloc_h=yes
17585 echo "$as_me: failed program was:" >&5
17586 cat conftest.$ac_ext >&5
17587 ac_cv_header_dbmalloc_h=no
17589 rm -f conftest.err conftest.$ac_ext
17591 echo "$as_me:17591: result: $ac_cv_header_dbmalloc_h" >&5
17592 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17593 if test $ac_cv_header_dbmalloc_h = yes; then
17595 echo "$as_me:17595: checking for debug_malloc in -ldbmalloc" >&5
17596 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17597 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 ac_check_lib_save_LIBS=$LIBS
17601 LIBS="-ldbmalloc $LIBS"
17602 cat >conftest.$ac_ext <<_ACEOF
17603 #line 17603 "configure"
17604 #include "confdefs.h"
17606 /* Override any gcc2 internal prototype to avoid an error. */
17610 /* We use char because int might match the return type of a gcc2
17611 builtin and then its argument prototype would still apply. */
17612 char debug_malloc ();
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (eval echo "$as_me:17622: \"$ac_link\"") >&5
17623 (eval $ac_link) 2>&5
17625 echo "$as_me:17625: \$? = $ac_status" >&5
17626 (exit $ac_status); } &&
17627 { ac_try='test -s conftest$ac_exeext'
17628 { (eval echo "$as_me:17628: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:17631: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_cv_lib_dbmalloc_debug_malloc=yes
17635 echo "$as_me: failed program was:" >&5
17636 cat conftest.$ac_ext >&5
17637 ac_cv_lib_dbmalloc_debug_malloc=no
17639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17640 LIBS=$ac_check_lib_save_LIBS
17642 echo "$as_me:17642: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17643 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17644 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17645 cat >>confdefs.h <<EOF
17646 #define HAVE_LIBDBMALLOC 1
17649 LIBS="-ldbmalloc $LIBS"
17657 echo "$as_me:17657: checking if you want to use valgrind for testing" >&5
17658 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17660 # Check whether --with-valgrind or --without-valgrind was given.
17661 if test "${with_valgrind+set}" = set; then
17662 withval="$with_valgrind"
17664 cat >>confdefs.h <<EOF
17665 #define USE_VALGRIND 1
17668 : ${with_cflags:=-g}
17669 : ${with_no_leaks:=yes}
17674 echo "$as_me:17674: result: ${with_valgrind:-no}" >&5
17675 echo "${ECHO_T}${with_valgrind:-no}" >&6
17677 case .$with_cflags in
17687 cf_new_extra_cppflags=
17689 for cf_add_cflags in -g
17691 case $cf_fix_cppflags in
17693 case $cf_add_cflags in
17694 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17695 case $cf_add_cflags in
17697 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17699 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17700 && test -z "${cf_tst_cflags}" \
17701 && cf_fix_cppflags=yes
17703 if test $cf_fix_cppflags = yes ; then
17705 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17706 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17709 elif test "${cf_tst_cflags}" = "\"'" ; then
17711 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17712 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17718 case "$CPPFLAGS" in
17722 case $cf_add_cflags in
17724 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17726 CPPFLAGS=`echo "$CPPFLAGS" | \
17727 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17728 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17733 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17734 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17741 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17742 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17749 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17750 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17752 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17754 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17755 && test -z "${cf_tst_cflags}" \
17756 && cf_fix_cppflags=no
17761 if test -n "$cf_new_cflags" ; then
17763 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17764 CFLAGS="${CFLAGS}$cf_new_cflags"
17768 if test -n "$cf_new_cppflags" ; then
17770 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17771 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17775 if test -n "$cf_new_extra_cppflags" ; then
17777 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17778 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17787 echo "$as_me:17787: checking if you want to perform memory-leak testing" >&5
17788 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17790 # Check whether --enable-leaks or --disable-leaks was given.
17791 if test "${enable_leaks+set}" = set; then
17792 enableval="$enable_leaks"
17793 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
17795 : ${with_no_leaks:=no}
17797 echo "$as_me:17797: result: $with_no_leaks" >&5
17798 echo "${ECHO_T}$with_no_leaks" >&6
17800 if test "$with_no_leaks" = yes ; then
17802 cat >>confdefs.h <<\EOF
17806 cat >>confdefs.h <<\EOF
17807 #define YY_NO_LEAKS 1
17812 cat >>confdefs.h <<\EOF
17813 #define HAVE_NC_ALLOC_H 1
17816 ### use option --enable-expanded to generate certain macros as functions
17818 # Check whether --enable-expanded or --disable-expanded was given.
17819 if test "${enable_expanded+set}" = set; then
17820 enableval="$enable_expanded"
17821 test "x$enableval" = xyes &&
17822 cat >>confdefs.h <<\EOF
17823 #define NCURSES_EXPANDED 1
17828 ### use option --disable-macros to suppress macros in favor of functions
17830 # Check whether --enable-macros or --disable-macros was given.
17831 if test "${enable_macros+set}" = set; then
17832 enableval="$enable_macros"
17833 test "$enableval" = no &&
17834 cat >>confdefs.h <<\EOF
17835 #define NCURSES_NOMACROS 1
17840 # Normally we only add trace() to the debug-library. Allow this to be
17841 # extended to all models of the ncurses library:
17843 case "$CFLAGS $CPPFLAGS" in
17849 echo "$as_me:17849: checking whether to add trace feature to all models" >&5
17850 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
17852 # Check whether --with-trace or --without-trace was given.
17853 if test "${with_trace+set}" = set; then
17854 withval="$with_trace"
17855 cf_with_trace=$withval
17857 cf_with_trace=$cf_all_traces
17859 echo "$as_me:17859: result: $cf_with_trace" >&5
17860 echo "${ECHO_T}$cf_with_trace" >&6
17862 if test "x$cf_with_trace" = xyes ; then
17869 cf_new_extra_cppflags=
17871 for cf_add_cflags in -DTRACE
17873 case $cf_fix_cppflags in
17875 case $cf_add_cflags in
17876 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17877 case $cf_add_cflags in
17879 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17881 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17882 && test -z "${cf_tst_cflags}" \
17883 && cf_fix_cppflags=yes
17885 if test $cf_fix_cppflags = yes ; then
17887 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17888 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17891 elif test "${cf_tst_cflags}" = "\"'" ; then
17893 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17894 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17900 case "$CPPFLAGS" in
17904 case $cf_add_cflags in
17906 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17908 CPPFLAGS=`echo "$CPPFLAGS" | \
17909 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17910 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17915 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17916 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17923 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17924 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17931 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17932 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17934 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17936 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17937 && test -z "${cf_tst_cflags}" \
17938 && cf_fix_cppflags=no
17943 if test -n "$cf_new_cflags" ; then
17945 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17946 CFLAGS="${CFLAGS}$cf_new_cflags"
17950 if test -n "$cf_new_cppflags" ; then
17952 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17953 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17957 if test -n "$cf_new_extra_cppflags" ; then
17959 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17960 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17964 cat >>confdefs.h <<\EOF
17965 #define HAVE__TRACEF 1
17973 echo "$as_me:17973: checking if we want to use GNAT projects" >&5
17974 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
17976 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
17977 if test "${enable_gnat_projects+set}" = set; then
17978 enableval="$enable_gnat_projects"
17979 test "$enableval" != no && enableval=yes
17980 if test "$enableval" != "yes" ; then
17981 enable_gnat_projects=no
17983 enable_gnat_projects=yes
17987 enable_gnat_projects=yes
17990 echo "$as_me:17990: result: $enable_gnat_projects" >&5
17991 echo "${ECHO_T}$enable_gnat_projects" >&6
17993 ### Checks for libraries.
17994 case $cf_cv_system_name in
17995 (*mingw32*|*mingw64*)
17996 if test "x$with_exp_win32" = xyes ; then
17997 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
17999 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
18001 # Note: WINVER may be a problem with Windows 10
18004 echo "$as_me:18004: checking for gettimeofday" >&5
18005 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18006 if test "${ac_cv_func_gettimeofday+set}" = set; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18009 cat >conftest.$ac_ext <<_ACEOF
18010 #line 18010 "configure"
18011 #include "confdefs.h"
18012 #define gettimeofday autoconf_temporary
18013 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18014 #undef gettimeofday
18020 /* We use char because int might match the return type of a gcc2
18021 builtin and then its argument prototype would still apply. */
18022 char gettimeofday (void);
18028 /* The GNU C library defines stubs for functions which it implements
18029 to always fail with ENOSYS. Some functions are actually named
18030 something starting with __ and the normal name is an alias. */
18031 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18032 #error found stub for gettimeofday
18035 return gettimeofday ();
18040 rm -f conftest.$ac_objext conftest$ac_exeext
18041 if { (eval echo "$as_me:18041: \"$ac_link\"") >&5
18042 (eval $ac_link) 2>&5
18044 echo "$as_me:18044: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -s conftest$ac_exeext'
18047 { (eval echo "$as_me:18047: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18050 echo "$as_me:18050: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_func_gettimeofday=yes
18054 echo "$as_me: failed program was:" >&5
18055 cat conftest.$ac_ext >&5
18056 ac_cv_func_gettimeofday=no
18058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18060 echo "$as_me:18060: result: $ac_cv_func_gettimeofday" >&5
18061 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18062 if test $ac_cv_func_gettimeofday = yes; then
18064 cat >>confdefs.h <<\EOF
18065 #define HAVE_GETTIMEOFDAY 1
18070 echo "$as_me:18070: checking for gettimeofday in -lbsd" >&5
18071 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18072 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 ac_check_lib_save_LIBS=$LIBS
18077 cat >conftest.$ac_ext <<_ACEOF
18078 #line 18078 "configure"
18079 #include "confdefs.h"
18081 /* Override any gcc2 internal prototype to avoid an error. */
18085 /* We use char because int might match the return type of a gcc2
18086 builtin and then its argument prototype would still apply. */
18087 char gettimeofday ();
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (eval echo "$as_me:18097: \"$ac_link\"") >&5
18098 (eval $ac_link) 2>&5
18100 echo "$as_me:18100: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -s conftest$ac_exeext'
18103 { (eval echo "$as_me:18103: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:18106: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 ac_cv_lib_bsd_gettimeofday=yes
18110 echo "$as_me: failed program was:" >&5
18111 cat conftest.$ac_ext >&5
18112 ac_cv_lib_bsd_gettimeofday=no
18114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18115 LIBS=$ac_check_lib_save_LIBS
18117 echo "$as_me:18117: result: $ac_cv_lib_bsd_gettimeofday" >&5
18118 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
18119 if test $ac_cv_lib_bsd_gettimeofday = yes; then
18121 cat >>confdefs.h <<\EOF
18122 #define HAVE_GETTIMEOFDAY 1
18125 cf_add_libs="$LIBS"
18128 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18129 # filter duplicates
18130 for cf_add_1lib in $cf_add_0lib; do
18131 for cf_add_2lib in $cf_add_libs; do
18132 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18137 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18139 LIBS="$cf_add_libs"
18147 echo "$as_me:18147: checking if -lm needed for math functions" >&5
18148 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
18149 if test "${cf_cv_need_libm+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 cat >conftest.$ac_ext <<_ACEOF
18154 #line 18154 "configure"
18155 #include "confdefs.h"
18158 #include <stdlib.h>
18164 double x = rand(); printf("result = %g\n", pow(sin(x),x))
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (eval echo "$as_me:18170: \"$ac_link\"") >&5
18171 (eval $ac_link) 2>&5
18173 echo "$as_me:18173: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (eval echo "$as_me:18176: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18179 echo "$as_me:18179: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18183 echo "$as_me: failed program was:" >&5
18184 cat conftest.$ac_ext >&5
18185 cf_cv_need_libm=yes
18187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18189 echo "$as_me:18189: result: $cf_cv_need_libm" >&5
18190 echo "${ECHO_T}$cf_cv_need_libm" >&6
18191 if test "$cf_cv_need_libm" = yes
18196 ### Checks for header files.
18197 echo "$as_me:18197: checking for ANSI C header files" >&5
18198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18199 if test "${ac_cv_header_stdc+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 #include <stdlib.h>
18206 #include <stdarg.h>
18207 #include <string.h>
18211 if { (eval echo "$as_me:18211: \"$ac_cpp conftest.$ac_ext\"") >&5
18212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18214 egrep -v '^ *\+' conftest.er1 >conftest.err
18216 cat conftest.err >&5
18217 echo "$as_me:18217: \$? = $ac_status" >&5
18218 (exit $ac_status); } >/dev/null; then
18219 if test -s conftest.err; then
18220 ac_cpp_err=$ac_c_preproc_warn_flag
18227 if test -z "$ac_cpp_err"; then
18228 ac_cv_header_stdc=yes
18230 echo "$as_me: failed program was:" >&5
18231 cat conftest.$ac_ext >&5
18232 ac_cv_header_stdc=no
18234 rm -f conftest.err conftest.$ac_ext
18236 if test $ac_cv_header_stdc = yes; then
18237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18238 cat >conftest.$ac_ext <<_ACEOF
18239 #line 18239 "configure"
18240 #include "confdefs.h"
18241 #include <string.h>
18244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18245 egrep "memchr" >/dev/null 2>&1; then
18248 ac_cv_header_stdc=no
18254 if test $ac_cv_header_stdc = yes; then
18255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18256 cat >conftest.$ac_ext <<_ACEOF
18257 #line 18257 "configure"
18258 #include "confdefs.h"
18259 #include <stdlib.h>
18262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18263 egrep "free" >/dev/null 2>&1; then
18266 ac_cv_header_stdc=no
18272 if test $ac_cv_header_stdc = yes; then
18273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18274 if test "$cross_compiling" = yes; then
18277 cat >conftest.$ac_ext <<_ACEOF
18278 #line 18278 "configure"
18279 #include "confdefs.h"
18281 #if ((' ' & 0x0FF) == 0x020)
18282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18285 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18286 || ('j' <= (c) && (c) <= 'r') \
18287 || ('s' <= (c) && (c) <= 'z'))
18288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18296 for (i = 0; i < 256; i++)
18297 if (XOR (islower (i), ISLOWER (i))
18298 || toupper (i) != TOUPPER (i))
18299 $ac_main_return(2);
18300 $ac_main_return (0);
18303 rm -f conftest$ac_exeext
18304 if { (eval echo "$as_me:18304: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>&5
18307 echo "$as_me:18307: \$? = $ac_status" >&5
18308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18309 { (eval echo "$as_me:18309: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 echo "$as_me:18312: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18316 echo "$as_me: program exited with status $ac_status" >&5
18317 echo "$as_me: failed program was:" >&5
18318 cat conftest.$ac_ext >&5
18319 ac_cv_header_stdc=no
18321 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18325 echo "$as_me:18325: result: $ac_cv_header_stdc" >&5
18326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18327 if test $ac_cv_header_stdc = yes; then
18329 cat >>confdefs.h <<\EOF
18330 #define STDC_HEADERS 1
18335 ac_header_dirent=no
18336 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18337 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18338 echo "$as_me:18338: checking for $ac_hdr that defines DIR" >&5
18339 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18340 if eval "test \"\${$as_ac_Header+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 #include <sys/types.h>
18358 rm -f conftest.$ac_objext
18359 if { (eval echo "$as_me:18359: \"$ac_compile\"") >&5
18360 (eval $ac_compile) 2>&5
18362 echo "$as_me:18362: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -s conftest.$ac_objext'
18365 { (eval echo "$as_me:18365: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:18368: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 eval "$as_ac_Header=yes"
18372 echo "$as_me: failed program was:" >&5
18373 cat conftest.$ac_ext >&5
18374 eval "$as_ac_Header=no"
18376 rm -f conftest.$ac_objext conftest.$ac_ext
18378 echo "$as_me:18378: result: `eval echo '${'$as_ac_Header'}'`" >&5
18379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18381 cat >>confdefs.h <<EOF
18382 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18385 ac_header_dirent=$ac_hdr; break
18389 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18390 if test $ac_header_dirent = dirent.h; then
18391 echo "$as_me:18391: checking for opendir in -ldir" >&5
18392 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18393 if test "${ac_cv_lib_dir_opendir+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 ac_check_lib_save_LIBS=$LIBS
18398 cat >conftest.$ac_ext <<_ACEOF
18399 #line 18399 "configure"
18400 #include "confdefs.h"
18402 /* Override any gcc2 internal prototype to avoid an error. */
18406 /* We use char because int might match the return type of a gcc2
18407 builtin and then its argument prototype would still apply. */
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (eval echo "$as_me:18418: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>&5
18421 echo "$as_me:18421: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -s conftest$ac_exeext'
18424 { (eval echo "$as_me:18424: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 echo "$as_me:18427: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_cv_lib_dir_opendir=yes
18431 echo "$as_me: failed program was:" >&5
18432 cat conftest.$ac_ext >&5
18433 ac_cv_lib_dir_opendir=no
18435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18436 LIBS=$ac_check_lib_save_LIBS
18438 echo "$as_me:18438: result: $ac_cv_lib_dir_opendir" >&5
18439 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
18440 if test $ac_cv_lib_dir_opendir = yes; then
18445 echo "$as_me:18445: checking for opendir in -lx" >&5
18446 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
18447 if test "${ac_cv_lib_x_opendir+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 ac_check_lib_save_LIBS=$LIBS
18452 cat >conftest.$ac_ext <<_ACEOF
18453 #line 18453 "configure"
18454 #include "confdefs.h"
18456 /* Override any gcc2 internal prototype to avoid an error. */
18460 /* We use char because int might match the return type of a gcc2
18461 builtin and then its argument prototype would still apply. */
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (eval echo "$as_me:18472: \"$ac_link\"") >&5
18473 (eval $ac_link) 2>&5
18475 echo "$as_me:18475: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
18477 { ac_try='test -s conftest$ac_exeext'
18478 { (eval echo "$as_me:18478: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18481 echo "$as_me:18481: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_cv_lib_x_opendir=yes
18485 echo "$as_me: failed program was:" >&5
18486 cat conftest.$ac_ext >&5
18487 ac_cv_lib_x_opendir=no
18489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18490 LIBS=$ac_check_lib_save_LIBS
18492 echo "$as_me:18492: result: $ac_cv_lib_x_opendir" >&5
18493 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
18494 if test $ac_cv_lib_x_opendir = yes; then
18500 echo "$as_me:18500: checking whether time.h and sys/time.h may both be included" >&5
18501 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18502 if test "${ac_cv_header_time+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 cat >conftest.$ac_ext <<_ACEOF
18506 #line 18506 "configure"
18507 #include "confdefs.h"
18508 #include <sys/types.h>
18509 #include <sys/time.h>
18515 if ((struct tm *) 0)
18521 rm -f conftest.$ac_objext
18522 if { (eval echo "$as_me:18522: \"$ac_compile\"") >&5
18523 (eval $ac_compile) 2>&5
18525 echo "$as_me:18525: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -s conftest.$ac_objext'
18528 { (eval echo "$as_me:18528: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18531 echo "$as_me:18531: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_header_time=yes
18535 echo "$as_me: failed program was:" >&5
18536 cat conftest.$ac_ext >&5
18537 ac_cv_header_time=no
18539 rm -f conftest.$ac_objext conftest.$ac_ext
18541 echo "$as_me:18541: result: $ac_cv_header_time" >&5
18542 echo "${ECHO_T}$ac_cv_header_time" >&6
18543 if test $ac_cv_header_time = yes; then
18545 cat >>confdefs.h <<\EOF
18546 #define TIME_WITH_SYS_TIME 1
18555 # -lsystre -ltre -lintl -liconv
18556 echo "$as_me:18556: checking for regcomp in -lsystre" >&5
18557 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
18558 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 ac_check_lib_save_LIBS=$LIBS
18562 LIBS="-lsystre $LIBS"
18563 cat >conftest.$ac_ext <<_ACEOF
18564 #line 18564 "configure"
18565 #include "confdefs.h"
18567 /* Override any gcc2 internal prototype to avoid an error. */
18571 /* We use char because int might match the return type of a gcc2
18572 builtin and then its argument prototype would still apply. */
18582 rm -f conftest.$ac_objext conftest$ac_exeext
18583 if { (eval echo "$as_me:18583: \"$ac_link\"") >&5
18584 (eval $ac_link) 2>&5
18586 echo "$as_me:18586: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -s conftest$ac_exeext'
18589 { (eval echo "$as_me:18589: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:18592: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_cv_lib_systre_regcomp=yes
18596 echo "$as_me: failed program was:" >&5
18597 cat conftest.$ac_ext >&5
18598 ac_cv_lib_systre_regcomp=no
18600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18601 LIBS=$ac_check_lib_save_LIBS
18603 echo "$as_me:18603: result: $ac_cv_lib_systre_regcomp" >&5
18604 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
18605 if test $ac_cv_lib_systre_regcomp = yes; then
18607 echo "$as_me:18607: checking for libiconv_open in -liconv" >&5
18608 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
18609 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 ac_check_lib_save_LIBS=$LIBS
18613 LIBS="-liconv $LIBS"
18614 cat >conftest.$ac_ext <<_ACEOF
18615 #line 18615 "configure"
18616 #include "confdefs.h"
18618 /* Override any gcc2 internal prototype to avoid an error. */
18622 /* We use char because int might match the return type of a gcc2
18623 builtin and then its argument prototype would still apply. */
18624 char libiconv_open ();
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (eval echo "$as_me:18634: \"$ac_link\"") >&5
18635 (eval $ac_link) 2>&5
18637 echo "$as_me:18637: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -s conftest$ac_exeext'
18640 { (eval echo "$as_me:18640: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18643 echo "$as_me:18643: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_cv_lib_iconv_libiconv_open=yes
18647 echo "$as_me: failed program was:" >&5
18648 cat conftest.$ac_ext >&5
18649 ac_cv_lib_iconv_libiconv_open=no
18651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18654 echo "$as_me:18654: result: $ac_cv_lib_iconv_libiconv_open" >&5
18655 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
18656 if test $ac_cv_lib_iconv_libiconv_open = yes; then
18658 cf_add_libs="$LIBS"
18661 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18662 # filter duplicates
18663 for cf_add_1lib in $cf_add_0lib; do
18664 for cf_add_2lib in $cf_add_libs; do
18665 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18670 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18672 LIBS="$cf_add_libs"
18676 echo "$as_me:18676: checking for libintl_gettext in -lintl" >&5
18677 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
18678 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
18679 echo $ECHO_N "(cached) $ECHO_C" >&6
18681 ac_check_lib_save_LIBS=$LIBS
18682 LIBS="-lintl $LIBS"
18683 cat >conftest.$ac_ext <<_ACEOF
18684 #line 18684 "configure"
18685 #include "confdefs.h"
18687 /* Override any gcc2 internal prototype to avoid an error. */
18691 /* We use char because int might match the return type of a gcc2
18692 builtin and then its argument prototype would still apply. */
18693 char libintl_gettext ();
18697 libintl_gettext ();
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (eval echo "$as_me:18703: \"$ac_link\"") >&5
18704 (eval $ac_link) 2>&5
18706 echo "$as_me:18706: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -s conftest$ac_exeext'
18709 { (eval echo "$as_me:18709: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18712 echo "$as_me:18712: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_lib_intl_libintl_gettext=yes
18716 echo "$as_me: failed program was:" >&5
18717 cat conftest.$ac_ext >&5
18718 ac_cv_lib_intl_libintl_gettext=no
18720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18723 echo "$as_me:18723: result: $ac_cv_lib_intl_libintl_gettext" >&5
18724 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
18725 if test $ac_cv_lib_intl_libintl_gettext = yes; then
18727 cf_add_libs="$LIBS"
18730 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18731 # filter duplicates
18732 for cf_add_1lib in $cf_add_0lib; do
18733 for cf_add_2lib in $cf_add_libs; do
18734 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18739 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18741 LIBS="$cf_add_libs"
18745 echo "$as_me:18745: checking for tre_regcomp in -ltre" >&5
18746 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
18747 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 ac_check_lib_save_LIBS=$LIBS
18752 cat >conftest.$ac_ext <<_ACEOF
18753 #line 18753 "configure"
18754 #include "confdefs.h"
18756 /* Override any gcc2 internal prototype to avoid an error. */
18760 /* We use char because int might match the return type of a gcc2
18761 builtin and then its argument prototype would still apply. */
18762 char tre_regcomp ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (eval echo "$as_me:18772: \"$ac_link\"") >&5
18773 (eval $ac_link) 2>&5
18775 echo "$as_me:18775: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try='test -s conftest$ac_exeext'
18778 { (eval echo "$as_me:18778: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18781 echo "$as_me:18781: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_lib_tre_tre_regcomp=yes
18785 echo "$as_me: failed program was:" >&5
18786 cat conftest.$ac_ext >&5
18787 ac_cv_lib_tre_tre_regcomp=no
18789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 echo "$as_me:18792: result: $ac_cv_lib_tre_tre_regcomp" >&5
18793 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
18794 if test $ac_cv_lib_tre_tre_regcomp = yes; then
18796 cf_add_libs="$LIBS"
18799 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18800 # filter duplicates
18801 for cf_add_1lib in $cf_add_0lib; do
18802 for cf_add_2lib in $cf_add_libs; do
18803 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18808 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18810 LIBS="$cf_add_libs"
18814 cf_add_libs="$LIBS"
18817 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18818 # filter duplicates
18819 for cf_add_1lib in $cf_add_0lib; do
18820 for cf_add_2lib in $cf_add_libs; do
18821 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18826 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18828 LIBS="$cf_add_libs"
18830 cf_regex_func=regcomp
18834 echo "$as_me:18834: checking for regcomp in -lgnurx" >&5
18835 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
18836 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 ac_check_lib_save_LIBS=$LIBS
18840 LIBS="-lgnurx $LIBS"
18841 cat >conftest.$ac_ext <<_ACEOF
18842 #line 18842 "configure"
18843 #include "confdefs.h"
18845 /* Override any gcc2 internal prototype to avoid an error. */
18849 /* We use char because int might match the return type of a gcc2
18850 builtin and then its argument prototype would still apply. */
18860 rm -f conftest.$ac_objext conftest$ac_exeext
18861 if { (eval echo "$as_me:18861: \"$ac_link\"") >&5
18862 (eval $ac_link) 2>&5
18864 echo "$as_me:18864: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -s conftest$ac_exeext'
18867 { (eval echo "$as_me:18867: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18870 echo "$as_me:18870: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_cv_lib_gnurx_regcomp=yes
18874 echo "$as_me: failed program was:" >&5
18875 cat conftest.$ac_ext >&5
18876 ac_cv_lib_gnurx_regcomp=no
18878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18879 LIBS=$ac_check_lib_save_LIBS
18881 echo "$as_me:18881: result: $ac_cv_lib_gnurx_regcomp" >&5
18882 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
18883 if test $ac_cv_lib_gnurx_regcomp = yes; then
18885 cf_add_libs="$LIBS"
18888 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18889 # filter duplicates
18890 for cf_add_1lib in $cf_add_0lib; do
18891 for cf_add_2lib in $cf_add_libs; do
18892 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18897 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18899 LIBS="$cf_add_libs"
18901 cf_regex_func=regcomp
18908 cf_regex_libs="regex re"
18909 echo "$as_me:18909: checking for regcomp" >&5
18910 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
18911 if test "${ac_cv_func_regcomp+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 cat >conftest.$ac_ext <<_ACEOF
18915 #line 18915 "configure"
18916 #include "confdefs.h"
18917 #define regcomp autoconf_temporary
18918 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18925 /* We use char because int might match the return type of a gcc2
18926 builtin and then its argument prototype would still apply. */
18927 char regcomp (void);
18933 /* The GNU C library defines stubs for functions which it implements
18934 to always fail with ENOSYS. Some functions are actually named
18935 something starting with __ and the normal name is an alias. */
18936 #if defined (__stub_regcomp) || defined (__stub___regcomp)
18937 #error found stub for regcomp
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (eval echo "$as_me:18946: \"$ac_link\"") >&5
18947 (eval $ac_link) 2>&5
18949 echo "$as_me:18949: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -s conftest$ac_exeext'
18952 { (eval echo "$as_me:18952: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18955 echo "$as_me:18955: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_func_regcomp=yes
18959 echo "$as_me: failed program was:" >&5
18960 cat conftest.$ac_ext >&5
18961 ac_cv_func_regcomp=no
18963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18965 echo "$as_me:18965: result: $ac_cv_func_regcomp" >&5
18966 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
18967 if test $ac_cv_func_regcomp = yes; then
18968 cf_regex_func=regcomp
18971 for cf_regex_lib in $cf_regex_libs
18973 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
18974 echo "$as_me:18974: checking for regcomp in -l$cf_regex_lib" >&5
18975 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
18976 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 ac_check_lib_save_LIBS=$LIBS
18980 LIBS="-l$cf_regex_lib $LIBS"
18981 cat >conftest.$ac_ext <<_ACEOF
18982 #line 18982 "configure"
18983 #include "confdefs.h"
18985 /* Override any gcc2 internal prototype to avoid an error. */
18989 /* We use char because int might match the return type of a gcc2
18990 builtin and then its argument prototype would still apply. */
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (eval echo "$as_me:19001: \"$ac_link\"") >&5
19002 (eval $ac_link) 2>&5
19004 echo "$as_me:19004: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -s conftest$ac_exeext'
19007 { (eval echo "$as_me:19007: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:19010: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 eval "$as_ac_Lib=yes"
19014 echo "$as_me: failed program was:" >&5
19015 cat conftest.$ac_ext >&5
19016 eval "$as_ac_Lib=no"
19018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19019 LIBS=$ac_check_lib_save_LIBS
19021 echo "$as_me:19021: result: `eval echo '${'$as_ac_Lib'}'`" >&5
19022 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
19023 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19025 cf_add_libs="$LIBS"
19028 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19029 # filter duplicates
19030 for cf_add_1lib in $cf_add_0lib; do
19031 for cf_add_2lib in $cf_add_libs; do
19032 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19037 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19039 LIBS="$cf_add_libs"
19041 cf_regex_func=regcomp
19052 if test "$cf_regex_func" = no ; then
19053 echo "$as_me:19053: checking for compile" >&5
19054 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19055 if test "${ac_cv_func_compile+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 cat >conftest.$ac_ext <<_ACEOF
19059 #line 19059 "configure"
19060 #include "confdefs.h"
19061 #define compile autoconf_temporary
19062 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19069 /* We use char because int might match the return type of a gcc2
19070 builtin and then its argument prototype would still apply. */
19071 char compile (void);
19077 /* The GNU C library defines stubs for functions which it implements
19078 to always fail with ENOSYS. Some functions are actually named
19079 something starting with __ and the normal name is an alias. */
19080 #if defined (__stub_compile) || defined (__stub___compile)
19081 #error found stub for compile
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (eval echo "$as_me:19090: \"$ac_link\"") >&5
19091 (eval $ac_link) 2>&5
19093 echo "$as_me:19093: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
19095 { ac_try='test -s conftest$ac_exeext'
19096 { (eval echo "$as_me:19096: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:19099: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_func_compile=yes
19103 echo "$as_me: failed program was:" >&5
19104 cat conftest.$ac_ext >&5
19105 ac_cv_func_compile=no
19107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19109 echo "$as_me:19109: result: $ac_cv_func_compile" >&5
19110 echo "${ECHO_T}$ac_cv_func_compile" >&6
19111 if test $ac_cv_func_compile = yes; then
19112 cf_regex_func=compile
19115 echo "$as_me:19115: checking for compile in -lgen" >&5
19116 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19117 if test "${ac_cv_lib_gen_compile+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 ac_check_lib_save_LIBS=$LIBS
19122 cat >conftest.$ac_ext <<_ACEOF
19123 #line 19123 "configure"
19124 #include "confdefs.h"
19126 /* Override any gcc2 internal prototype to avoid an error. */
19130 /* We use char because int might match the return type of a gcc2
19131 builtin and then its argument prototype would still apply. */
19141 rm -f conftest.$ac_objext conftest$ac_exeext
19142 if { (eval echo "$as_me:19142: \"$ac_link\"") >&5
19143 (eval $ac_link) 2>&5
19145 echo "$as_me:19145: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -s conftest$ac_exeext'
19148 { (eval echo "$as_me:19148: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:19151: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_lib_gen_compile=yes
19155 echo "$as_me: failed program was:" >&5
19156 cat conftest.$ac_ext >&5
19157 ac_cv_lib_gen_compile=no
19159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19162 echo "$as_me:19162: result: $ac_cv_lib_gen_compile" >&5
19163 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19164 if test $ac_cv_lib_gen_compile = yes; then
19166 cf_add_libs="$LIBS"
19169 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19170 # filter duplicates
19171 for cf_add_1lib in $cf_add_0lib; do
19172 for cf_add_2lib in $cf_add_libs; do
19173 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19178 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19180 LIBS="$cf_add_libs"
19182 cf_regex_func=compile
19189 if test "$cf_regex_func" = no ; then
19190 { echo "$as_me:19190: WARNING: cannot find regular expression library" >&5
19191 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19194 echo "$as_me:19194: checking for regular-expression headers" >&5
19195 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19196 if test "${cf_cv_regex_hdrs+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 cf_cv_regex_hdrs=no
19201 case $cf_regex_func in
19203 for cf_regex_hdr in regexp.h regexpr.h
19205 cat >conftest.$ac_ext <<_ACEOF
19206 #line 19206 "configure"
19207 #include "confdefs.h"
19208 #include <$cf_regex_hdr>
19213 char *p = compile("", "", "", 0);
19214 int x = step("", "");
19222 rm -f conftest.$ac_objext conftest$ac_exeext
19223 if { (eval echo "$as_me:19223: \"$ac_link\"") >&5
19224 (eval $ac_link) 2>&5
19226 echo "$as_me:19226: \$? = $ac_status" >&5
19227 (exit $ac_status); } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (eval echo "$as_me:19229: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19232 echo "$as_me:19232: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19235 cf_cv_regex_hdrs=$cf_regex_hdr
19239 echo "$as_me: failed program was:" >&5
19240 cat conftest.$ac_ext >&5
19242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19246 for cf_regex_hdr in regex.h
19248 cat >conftest.$ac_ext <<_ACEOF
19249 #line 19249 "configure"
19250 #include "confdefs.h"
19251 #include <sys/types.h>
19252 #include <$cf_regex_hdr>
19258 int x = regcomp(p, "", 0);
19259 int y = regexec(p, "", 0, 0, 0);
19268 rm -f conftest.$ac_objext conftest$ac_exeext
19269 if { (eval echo "$as_me:19269: \"$ac_link\"") >&5
19270 (eval $ac_link) 2>&5
19272 echo "$as_me:19272: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -s conftest$ac_exeext'
19275 { (eval echo "$as_me:19275: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19278 echo "$as_me:19278: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19281 cf_cv_regex_hdrs=$cf_regex_hdr
19285 echo "$as_me: failed program was:" >&5
19286 cat conftest.$ac_ext >&5
19288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19294 echo "$as_me:19294: result: $cf_cv_regex_hdrs" >&5
19295 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
19297 case $cf_cv_regex_hdrs in
19298 (no) { echo "$as_me:19298: WARNING: no regular expression header found" >&5
19299 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
19301 cat >>confdefs.h <<\EOF
19302 #define HAVE_REGEX_H_FUNCS 1
19306 cat >>confdefs.h <<\EOF
19307 #define HAVE_REGEXP_H_FUNCS 1
19311 cat >>confdefs.h <<\EOF
19312 #define HAVE_REGEXPR_H_FUNCS 1
19335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19336 echo "$as_me:19336: checking for $ac_header" >&5
19337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 cat >conftest.$ac_ext <<_ACEOF
19342 #line 19342 "configure"
19343 #include "confdefs.h"
19344 #include <$ac_header>
19346 if { (eval echo "$as_me:19346: \"$ac_cpp conftest.$ac_ext\"") >&5
19347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19349 egrep -v '^ *\+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:19352: \$? = $ac_status" >&5
19353 (exit $ac_status); } >/dev/null; then
19354 if test -s conftest.err; then
19355 ac_cpp_err=$ac_c_preproc_warn_flag
19362 if test -z "$ac_cpp_err"; then
19363 eval "$as_ac_Header=yes"
19365 echo "$as_me: failed program was:" >&5
19366 cat conftest.$ac_ext >&5
19367 eval "$as_ac_Header=no"
19369 rm -f conftest.err conftest.$ac_ext
19371 echo "$as_me:19371: result: `eval echo '${'$as_ac_Header'}'`" >&5
19372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19374 cat >>confdefs.h <<EOF
19375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19381 for ac_header in unistd.h getopt.h
19383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19384 echo "$as_me:19384: checking for $ac_header" >&5
19385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 cat >conftest.$ac_ext <<_ACEOF
19390 #line 19390 "configure"
19391 #include "confdefs.h"
19392 #include <$ac_header>
19394 if { (eval echo "$as_me:19394: \"$ac_cpp conftest.$ac_ext\"") >&5
19395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19397 egrep -v '^ *\+' conftest.er1 >conftest.err
19399 cat conftest.err >&5
19400 echo "$as_me:19400: \$? = $ac_status" >&5
19401 (exit $ac_status); } >/dev/null; then
19402 if test -s conftest.err; then
19403 ac_cpp_err=$ac_c_preproc_warn_flag
19410 if test -z "$ac_cpp_err"; then
19411 eval "$as_ac_Header=yes"
19413 echo "$as_me: failed program was:" >&5
19414 cat conftest.$ac_ext >&5
19415 eval "$as_ac_Header=no"
19417 rm -f conftest.err conftest.$ac_ext
19419 echo "$as_me:19419: result: `eval echo '${'$as_ac_Header'}'`" >&5
19420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19422 cat >>confdefs.h <<EOF
19423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19429 echo "$as_me:19429: checking for header declaring getopt variables" >&5
19430 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
19431 if test "${cf_cv_getopt_header+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 cf_cv_getopt_header=none
19436 for cf_header in stdio.h stdlib.h unistd.h getopt.h
19438 cat >conftest.$ac_ext <<_ACEOF
19439 #line 19439 "configure"
19440 #include "confdefs.h"
19442 #include <$cf_header>
19446 int x = optind; char *y = optarg
19451 rm -f conftest.$ac_objext
19452 if { (eval echo "$as_me:19452: \"$ac_compile\"") >&5
19453 (eval $ac_compile) 2>&5
19455 echo "$as_me:19455: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (eval echo "$as_me:19458: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19461 echo "$as_me:19461: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 cf_cv_getopt_header=$cf_header
19466 echo "$as_me: failed program was:" >&5
19467 cat conftest.$ac_ext >&5
19469 rm -f conftest.$ac_objext conftest.$ac_ext
19473 echo "$as_me:19473: result: $cf_cv_getopt_header" >&5
19474 echo "${ECHO_T}$cf_cv_getopt_header" >&6
19475 if test $cf_cv_getopt_header != none ; then
19477 cat >>confdefs.h <<\EOF
19478 #define HAVE_GETOPT_HEADER 1
19482 if test $cf_cv_getopt_header = getopt.h ; then
19484 cat >>confdefs.h <<\EOF
19485 #define NEED_GETOPT_H 1
19490 echo "$as_me:19490: checking if external environ is declared" >&5
19491 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
19492 if test "${cf_cv_dcl_environ+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19496 cat >conftest.$ac_ext <<_ACEOF
19497 #line 19497 "configure"
19498 #include "confdefs.h"
19500 #ifdef HAVE_STDLIB_H
19501 #include <stdlib.h>
19503 #include <unistd.h>
19507 int x = (int) environ
19512 rm -f conftest.$ac_objext
19513 if { (eval echo "$as_me:19513: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>&5
19516 echo "$as_me:19516: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:19519: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19522 echo "$as_me:19522: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 cf_cv_dcl_environ=yes
19526 echo "$as_me: failed program was:" >&5
19527 cat conftest.$ac_ext >&5
19528 cf_cv_dcl_environ=no
19530 rm -f conftest.$ac_objext conftest.$ac_ext
19533 echo "$as_me:19533: result: $cf_cv_dcl_environ" >&5
19534 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
19536 if test "$cf_cv_dcl_environ" = no ; then
19538 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19540 cat >>confdefs.h <<EOF
19541 #define $cf_result 1
19546 # It's possible (for near-UNIX clones) that the data doesn't exist
19548 echo "$as_me:19548: checking if external environ exists" >&5
19549 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
19550 if test "${cf_cv_have_environ+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 cat >conftest.$ac_ext <<_ACEOF
19555 #line 19555 "configure"
19556 #include "confdefs.h"
19559 extern int environ;
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (eval echo "$as_me:19570: \"$ac_link\"") >&5
19571 (eval $ac_link) 2>&5
19573 echo "$as_me:19573: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -s conftest$ac_exeext'
19576 { (eval echo "$as_me:19576: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 echo "$as_me:19579: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 cf_cv_have_environ=yes
19583 echo "$as_me: failed program was:" >&5
19584 cat conftest.$ac_ext >&5
19585 cf_cv_have_environ=no
19587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19590 echo "$as_me:19590: result: $cf_cv_have_environ" >&5
19591 echo "${ECHO_T}$cf_cv_have_environ" >&6
19593 if test "$cf_cv_have_environ" = yes ; then
19595 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19597 cat >>confdefs.h <<EOF
19598 #define $cf_result 1
19603 echo "$as_me:19603: checking for getenv" >&5
19604 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
19605 if test "${ac_cv_func_getenv+set}" = set; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 cat >conftest.$ac_ext <<_ACEOF
19609 #line 19609 "configure"
19610 #include "confdefs.h"
19611 #define getenv autoconf_temporary
19612 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19619 /* We use char because int might match the return type of a gcc2
19620 builtin and then its argument prototype would still apply. */
19621 char getenv (void);
19627 /* The GNU C library defines stubs for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined (__stub_getenv) || defined (__stub___getenv)
19631 #error found stub for getenv
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (eval echo "$as_me:19640: \"$ac_link\"") >&5
19641 (eval $ac_link) 2>&5
19643 echo "$as_me:19643: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:19646: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:19649: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_func_getenv=yes
19653 echo "$as_me: failed program was:" >&5
19654 cat conftest.$ac_ext >&5
19655 ac_cv_func_getenv=no
19657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19659 echo "$as_me:19659: result: $ac_cv_func_getenv" >&5
19660 echo "${ECHO_T}$ac_cv_func_getenv" >&6
19662 for ac_func in putenv setenv strdup
19664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19665 echo "$as_me:19665: checking for $ac_func" >&5
19666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19667 if eval "test \"\${$as_ac_var+set}\" = set"; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 cat >conftest.$ac_ext <<_ACEOF
19671 #line 19671 "configure"
19672 #include "confdefs.h"
19673 #define $ac_func autoconf_temporary
19674 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19681 /* We use char because int might match the return type of a gcc2
19682 builtin and then its argument prototype would still apply. */
19683 char $ac_func (void);
19689 /* The GNU C library defines stubs for functions which it implements
19690 to always fail with ENOSYS. Some functions are actually named
19691 something starting with __ and the normal name is an alias. */
19692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19693 #error found stub for $ac_func
19696 return $ac_func ();
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (eval echo "$as_me:19702: \"$ac_link\"") >&5
19703 (eval $ac_link) 2>&5
19705 echo "$as_me:19705: \$? = $ac_status" >&5
19706 (exit $ac_status); } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (eval echo "$as_me:19708: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:19711: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 eval "$as_ac_var=yes"
19715 echo "$as_me: failed program was:" >&5
19716 cat conftest.$ac_ext >&5
19717 eval "$as_ac_var=no"
19719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19721 echo "$as_me:19721: result: `eval echo '${'$as_ac_var'}'`" >&5
19722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19723 if test `eval echo '${'$as_ac_var'}'` = yes; then
19724 cat >>confdefs.h <<EOF
19725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19731 echo "$as_me:19731: checking if getenv returns consistent values" >&5
19732 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
19733 if test "${cf_cv_consistent_getenv+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 if test "$cross_compiling" = yes; then
19738 cf_cv_consistent_getenv=unknown
19740 cat >conftest.$ac_ext <<_ACEOF
19741 #line 19741 "configure"
19742 #include "confdefs.h"
19744 #include <stdlib.h>
19745 #include <unistd.h>
19747 #include <string.h>
19748 #include <sys/types.h>
19750 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
19751 extern char **environ; /* POSIX, but some systems are not... */
19754 #if defined(HAVE_STRDUP)
19755 #define str_alloc(s) strdup(s)
19757 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
19760 static void set_value(const char *name, const char *value)
19762 #if defined(HAVE_SETENV)
19763 setenv(name, value, 1);
19764 #elif defined(HAVE_PUTENV)
19766 sprintf(buffer, "%s=%s", name, value);
19767 putenv(str_alloc(buffer));
19769 #error neither putenv/setenv found
19775 size_t numenv, limit, j;
19780 for (numenv = 0; environ[numenv]; ++numenv) ;
19781 limit = numenv + 10;
19782 mynames = (char **) calloc(limit + 1, sizeof(char *));
19783 myvalues = (char **) calloc(limit + 1, sizeof(char *));
19784 mypointer = (char **) calloc(limit + 1, sizeof(char *));
19785 #if defined(HAVE_ENVIRON)
19786 for (j = 0; environ[j]; ++j) {
19787 mynames[j] = str_alloc(environ[j]);
19788 equals = strchr(mynames[j], '=');
19791 myvalues[j] = str_alloc(equals);
19793 myvalues[j] = str_alloc("");
19797 for (j = numenv; j < limit; ++j) {
19805 sprintf(name, "TERM%lu", (unsigned long) k);
19806 for (jk = 0; jk < j; ++jk) {
19807 if (!strcmp(name, mynames[jk])) {
19814 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
19815 set_value(name, value);
19816 mynames[j] = str_alloc(name);
19817 myvalues[j] = str_alloc(value);
19819 for (pass = 0; pass < 3; ++pass) {
19820 for (j = 0; j < limit; ++j) {
19821 char *value = getenv(mynames[j]);
19824 fprintf(stderr, "getenv returned null for %s\n", mynames[j]);
19825 ${cf_cv_main_return:-return}(1);
19826 } else if (value != mypointer[j]) {
19827 fprintf(stderr, "getenv returned different pointer for %s\n", mynames[j]);
19828 ${cf_cv_main_return:-return}(1);
19829 } else if (strcmp(value, myvalues[j])) {
19830 fprintf(stderr, "getenv returned different value for %s\n", mynames[j]);
19831 ${cf_cv_main_return:-return}(1);
19835 mypointer[j] = value;
19836 for (k = 0; k < j; ++k) {
19837 if (mypointer[j] == mypointer[k]) {
19838 fprintf(stderr, "getenv returned same pointer for %s and %s\n", mynames[j], mynames[k]);
19839 ${cf_cv_main_return:-return}(1);
19845 ${cf_cv_main_return:-return}(0);
19849 rm -f conftest$ac_exeext
19850 if { (eval echo "$as_me:19850: \"$ac_link\"") >&5
19851 (eval $ac_link) 2>&5
19853 echo "$as_me:19853: \$? = $ac_status" >&5
19854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19855 { (eval echo "$as_me:19855: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19858 echo "$as_me:19858: \$? = $ac_status" >&5
19859 (exit $ac_status); }; }; then
19860 cf_cv_consistent_getenv=yes
19862 echo "$as_me: program exited with status $ac_status" >&5
19863 echo "$as_me: failed program was:" >&5
19864 cat conftest.$ac_ext >&5
19865 cf_cv_consistent_getenv=no
19867 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19871 echo "$as_me:19871: result: $cf_cv_consistent_getenv" >&5
19872 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
19874 if test "x$cf_cv_consistent_getenv" = xno
19877 cat >>confdefs.h <<\EOF
19878 #define HAVE_CONSISTENT_GETENV 1
19883 if test "x$cf_cv_consistent_getenv" = xno && \
19884 test "x$cf_with_trace" = xyes
19886 { echo "$as_me:19886: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
19887 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
19890 echo "$as_me:19890: checking if sys/time.h works with sys/select.h" >&5
19891 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
19892 if test "${cf_cv_sys_time_select+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 cat >conftest.$ac_ext <<_ACEOF
19897 #line 19897 "configure"
19898 #include "confdefs.h"
19900 #include <sys/types.h>
19901 #ifdef HAVE_SYS_TIME_H
19902 #include <sys/time.h>
19904 #ifdef HAVE_SYS_SELECT_H
19905 #include <sys/select.h>
19916 rm -f conftest.$ac_objext
19917 if { (eval echo "$as_me:19917: \"$ac_compile\"") >&5
19918 (eval $ac_compile) 2>&5
19920 echo "$as_me:19920: \$? = $ac_status" >&5
19921 (exit $ac_status); } &&
19922 { ac_try='test -s conftest.$ac_objext'
19923 { (eval echo "$as_me:19923: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19926 echo "$as_me:19926: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 cf_cv_sys_time_select=yes
19930 echo "$as_me: failed program was:" >&5
19931 cat conftest.$ac_ext >&5
19932 cf_cv_sys_time_select=no
19934 rm -f conftest.$ac_objext conftest.$ac_ext
19938 echo "$as_me:19938: result: $cf_cv_sys_time_select" >&5
19939 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
19940 test "$cf_cv_sys_time_select" = yes &&
19941 cat >>confdefs.h <<\EOF
19942 #define HAVE_SYS_TIME_SELECT 1
19945 ### checks for compiler characteristics
19947 ac_cpp='$CPP $CPPFLAGS'
19948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19951 ac_main_return=return
19953 echo "$as_me:19953: checking for an ANSI C-conforming const" >&5
19954 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19955 if test "${ac_cv_c_const+set}" = set; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19959 #line 19959 "configure"
19960 #include "confdefs.h"
19965 /* FIXME: Include the comments suggested by Paul. */
19966 #ifndef __cplusplus
19967 /* Ultrix mips cc rejects this. */
19968 typedef int charset[2];
19970 /* SunOS 4.1.1 cc rejects this. */
19971 char const *const *ccp;
19973 /* NEC SVR4.0.2 mips cc rejects this. */
19974 struct point {int x, y;};
19975 static struct point const zero = {0,0};
19976 /* AIX XL C 1.02.0.0 rejects this.
19977 It does not let you subtract one const X* pointer from another in
19978 an arm of an if-expression whose if-part is not a constant
19980 const char *g = "string";
19981 ccp = &g + (g ? g-g : 0);
19982 /* HPUX 7.0 cc rejects these. */
19985 ccp = (char const *const *) p;
19986 { /* SCO 3.2v4 cc rejects this. */
19988 char const *s = 0 ? (char *) 0 : (char const *) 0;
19992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19993 int x[] = {25, 17};
19994 const int *foo = &x[0];
19997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19998 typedef const int *iptr;
20002 { /* AIX XL C 1.02.0.0 rejects this saying
20003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20004 struct s { int j; const int *ap[3]; };
20005 struct s *b; b->j = 5;
20007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20008 const int foo = 10;
20016 rm -f conftest.$ac_objext
20017 if { (eval echo "$as_me:20017: \"$ac_compile\"") >&5
20018 (eval $ac_compile) 2>&5
20020 echo "$as_me:20020: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
20022 { ac_try='test -s conftest.$ac_objext'
20023 { (eval echo "$as_me:20023: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20026 echo "$as_me:20026: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20030 echo "$as_me: failed program was:" >&5
20031 cat conftest.$ac_ext >&5
20034 rm -f conftest.$ac_objext conftest.$ac_ext
20036 echo "$as_me:20036: result: $ac_cv_c_const" >&5
20037 echo "${ECHO_T}$ac_cv_c_const" >&6
20038 if test $ac_cv_c_const = no; then
20040 cat >>confdefs.h <<\EOF
20046 echo "$as_me:20046: checking for inline" >&5
20047 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20048 if test "${ac_cv_c_inline+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 for ac_kw in inline __inline__ __inline; do
20053 cat >conftest.$ac_ext <<_ACEOF
20054 #line 20054 "configure"
20055 #include "confdefs.h"
20056 #ifndef __cplusplus
20057 static $ac_kw int static_foo () {return 0; }
20058 $ac_kw int foo () {return 0; }
20062 rm -f conftest.$ac_objext
20063 if { (eval echo "$as_me:20063: \"$ac_compile\"") >&5
20064 (eval $ac_compile) 2>&5
20066 echo "$as_me:20066: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:20069: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20072 echo "$as_me:20072: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_c_inline=$ac_kw; break
20076 echo "$as_me: failed program was:" >&5
20077 cat conftest.$ac_ext >&5
20079 rm -f conftest.$ac_objext conftest.$ac_ext
20083 echo "$as_me:20083: result: $ac_cv_c_inline" >&5
20084 echo "${ECHO_T}$ac_cv_c_inline" >&6
20085 case $ac_cv_c_inline in
20088 cat >>confdefs.h <<\EOF
20092 *) cat >>confdefs.h <<EOF
20093 #define inline $ac_cv_c_inline
20099 if test "$ac_cv_c_inline" != no ; then
20100 NCURSES_INLINE=inline
20101 if test "$INTEL_COMPILER" = yes
20104 elif test "$CLANG_COMPILER" = yes
20107 elif test "$GCC" = yes
20109 echo "$as_me:20109: checking if $CC supports options to tune inlining" >&5
20110 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20111 if test "${cf_cv_gcc_inline+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 cf_save_CFLAGS=$CFLAGS
20116 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20117 cat >conftest.$ac_ext <<_ACEOF
20118 #line 20118 "configure"
20119 #include "confdefs.h"
20120 inline int foo(void) { return 1; }
20124 ${cf_cv_main_return:-return} foo()
20129 rm -f conftest.$ac_objext
20130 if { (eval echo "$as_me:20130: \"$ac_compile\"") >&5
20131 (eval $ac_compile) 2>&5
20133 echo "$as_me:20133: \$? = $ac_status" >&5
20134 (exit $ac_status); } &&
20135 { ac_try='test -s conftest.$ac_objext'
20136 { (eval echo "$as_me:20136: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20139 echo "$as_me:20139: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20141 cf_cv_gcc_inline=yes
20143 echo "$as_me: failed program was:" >&5
20144 cat conftest.$ac_ext >&5
20145 cf_cv_gcc_inline=no
20147 rm -f conftest.$ac_objext conftest.$ac_ext
20148 CFLAGS=$cf_save_CFLAGS
20151 echo "$as_me:20151: result: $cf_cv_gcc_inline" >&5
20152 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20153 if test "$cf_cv_gcc_inline" = yes ; then
20158 cf_new_extra_cppflags=
20160 for cf_add_cflags in --param max-inline-insns-single=1200
20162 case $cf_fix_cppflags in
20164 case $cf_add_cflags in
20165 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20166 case $cf_add_cflags in
20168 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20170 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20171 && test -z "${cf_tst_cflags}" \
20172 && cf_fix_cppflags=yes
20174 if test $cf_fix_cppflags = yes ; then
20176 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20177 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20180 elif test "${cf_tst_cflags}" = "\"'" ; then
20182 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20183 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20189 case "$CPPFLAGS" in
20193 case $cf_add_cflags in
20195 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20197 CPPFLAGS=`echo "$CPPFLAGS" | \
20198 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20199 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20204 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20205 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20212 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20213 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20220 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20221 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20223 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20225 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20226 && test -z "${cf_tst_cflags}" \
20227 && cf_fix_cppflags=no
20232 if test -n "$cf_new_cflags" ; then
20234 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20235 CFLAGS="${CFLAGS}$cf_new_cflags"
20239 if test -n "$cf_new_cppflags" ; then
20241 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20242 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20246 if test -n "$cf_new_extra_cppflags" ; then
20248 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20249 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20257 echo "$as_me:20257: checking for signal global datatype" >&5
20258 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
20259 if test "${cf_cv_sig_atomic_t+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 "volatile sig_atomic_t" \
20268 cat >conftest.$ac_ext <<_ACEOF
20269 #line 20269 "configure"
20270 #include "confdefs.h"
20272 #include <sys/types.h>
20273 #include <signal.h>
20278 static void handler(int sig)
20286 signal(SIGINT, handler);
20292 rm -f conftest.$ac_objext
20293 if { (eval echo "$as_me:20293: \"$ac_compile\"") >&5
20294 (eval $ac_compile) 2>&5
20296 echo "$as_me:20296: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
20298 { ac_try='test -s conftest.$ac_objext'
20299 { (eval echo "$as_me:20299: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20302 echo "$as_me:20302: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 cf_cv_sig_atomic_t=$cf_type
20306 echo "$as_me: failed program was:" >&5
20307 cat conftest.$ac_ext >&5
20308 cf_cv_sig_atomic_t=no
20310 rm -f conftest.$ac_objext conftest.$ac_ext
20311 test "$cf_cv_sig_atomic_t" != no && break
20316 echo "$as_me:20316: result: $cf_cv_sig_atomic_t" >&5
20317 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
20318 test "$cf_cv_sig_atomic_t" != no &&
20319 cat >>confdefs.h <<EOF
20320 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
20323 if test $NCURSES_CHTYPE = auto ; then
20325 echo "$as_me:20325: checking for type of chtype" >&5
20326 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
20327 if test "${cf_cv_typeof_chtype+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 if test "$cross_compiling" = yes; then
20332 cf_cv_typeof_chtype=long
20334 cat >conftest.$ac_ext <<_ACEOF
20335 #line 20335 "configure"
20336 #include "confdefs.h"
20338 #define WANT_BITS 31
20342 FILE *fp = fopen("cf_test.out", "w");
20344 char *result = "long";
20345 if (sizeof(unsigned long) > sizeof(unsigned int)) {
20348 for (n = 0; n < WANT_BITS; n++) {
20351 if (y != 1 || x == 0) {
20357 * If x is nonzero, an int is big enough for the bits
20360 result = (x != 0) ? "int" : "long";
20365 ${cf_cv_main_return:-return}(0);
20369 rm -f conftest$ac_exeext
20370 if { (eval echo "$as_me:20370: \"$ac_link\"") >&5
20371 (eval $ac_link) 2>&5
20373 echo "$as_me:20373: \$? = $ac_status" >&5
20374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20375 { (eval echo "$as_me:20375: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20378 echo "$as_me:20378: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 cf_cv_typeof_chtype=`cat cf_test.out`
20382 echo "$as_me: program exited with status $ac_status" >&5
20383 echo "$as_me: failed program was:" >&5
20384 cat conftest.$ac_ext >&5
20385 cf_cv_typeof_chtype=long
20387 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20393 echo "$as_me:20393: result: $cf_cv_typeof_chtype" >&5
20394 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
20396 cat >>confdefs.h <<EOF
20397 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
20401 cf_cv_typeof_chtype=$NCURSES_CHTYPE
20403 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
20405 echo "$as_me:20405: checking if unsigned literals are legal" >&5
20406 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
20407 if test "${cf_cv_unsigned_literals+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20412 #line 20412 "configure"
20413 #include "confdefs.h"
20418 long x = 1L + 1UL + 1U + 1
20423 rm -f conftest.$ac_objext
20424 if { (eval echo "$as_me:20424: \"$ac_compile\"") >&5
20425 (eval $ac_compile) 2>&5
20427 echo "$as_me:20427: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -s conftest.$ac_objext'
20430 { (eval echo "$as_me:20430: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:20433: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 cf_cv_unsigned_literals=yes
20437 echo "$as_me: failed program was:" >&5
20438 cat conftest.$ac_ext >&5
20439 cf_cv_unsigned_literals=no
20441 rm -f conftest.$ac_objext conftest.$ac_ext
20445 echo "$as_me:20445: result: $cf_cv_unsigned_literals" >&5
20446 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
20449 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
20450 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
20452 if test $NCURSES_MMASK_T = auto ; then
20453 cf_cv_typeof_mmask_t=long
20455 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
20457 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
20459 ### Checks for external-data
20461 echo "$as_me:20461: checking if external errno is declared" >&5
20462 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
20463 if test "${cf_cv_dcl_errno+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 cat >conftest.$ac_ext <<_ACEOF
20468 #line 20468 "configure"
20469 #include "confdefs.h"
20471 #ifdef HAVE_STDLIB_H
20472 #include <stdlib.h>
20475 #include <sys/types.h>
20480 int x = (int) errno; (void)x
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:20486: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>&5
20489 echo "$as_me:20489: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -s conftest.$ac_objext'
20492 { (eval echo "$as_me:20492: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20495 echo "$as_me:20495: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
20497 cf_cv_dcl_errno=yes
20499 echo "$as_me: failed program was:" >&5
20500 cat conftest.$ac_ext >&5
20503 rm -f conftest.$ac_objext conftest.$ac_ext
20506 echo "$as_me:20506: result: $cf_cv_dcl_errno" >&5
20507 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
20509 if test "$cf_cv_dcl_errno" = no ; then
20511 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20513 cat >>confdefs.h <<EOF
20514 #define $cf_result 1
20519 # It's possible (for near-UNIX clones) that the data doesn't exist
20521 echo "$as_me:20521: checking if external errno exists" >&5
20522 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
20523 if test "${cf_cv_have_errno+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 cat >conftest.$ac_ext <<_ACEOF
20528 #line 20528 "configure"
20529 #include "confdefs.h"
20542 rm -f conftest.$ac_objext conftest$ac_exeext
20543 if { (eval echo "$as_me:20543: \"$ac_link\"") >&5
20544 (eval $ac_link) 2>&5
20546 echo "$as_me:20546: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -s conftest$ac_exeext'
20549 { (eval echo "$as_me:20549: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:20552: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 cf_cv_have_errno=yes
20556 echo "$as_me: failed program was:" >&5
20557 cat conftest.$ac_ext >&5
20558 cf_cv_have_errno=no
20560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20563 echo "$as_me:20563: result: $cf_cv_have_errno" >&5
20564 echo "${ECHO_T}$cf_cv_have_errno" >&6
20566 if test "$cf_cv_have_errno" = yes ; then
20568 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20570 cat >>confdefs.h <<EOF
20571 #define $cf_result 1
20576 echo "$as_me:20576: checking if data-only library module links" >&5
20577 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
20578 if test "${cf_cv_link_dataonly+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 cat >conftest.$ac_ext <<EOF
20584 #line 20584 "configure"
20585 int testdata[3] = { 123, 456, 789 };
20587 if { (eval echo "$as_me:20587: \"$ac_compile\"") >&5
20588 (eval $ac_compile) 2>&5
20590 echo "$as_me:20590: \$? = $ac_status" >&5
20591 (exit $ac_status); } ; then
20592 mv conftest.o data.o && \
20593 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
20595 rm -f conftest.$ac_ext data.o
20596 cat >conftest.$ac_ext <<EOF
20597 #line 20597 "configure"
20601 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
20603 extern int testdata[3];
20604 return testdata[0] == 123
20605 && testdata[1] == 456
20606 && testdata[2] == 789;
20610 if { (eval echo "$as_me:20610: \"$ac_compile\"") >&5
20611 (eval $ac_compile) 2>&5
20613 echo "$as_me:20613: \$? = $ac_status" >&5
20614 (exit $ac_status); }; then
20615 mv conftest.o func.o && \
20616 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
20618 rm -f conftest.$ac_ext func.o
20619 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
20620 cf_saveLIBS="$LIBS"
20621 LIBS="conftest.a $LIBS"
20622 if test "$cross_compiling" = yes; then
20623 cf_cv_link_dataonly=unknown
20625 cat >conftest.$ac_ext <<_ACEOF
20626 #line 20626 "configure"
20627 #include "confdefs.h"
20631 extern int testfunc();
20632 ${cf_cv_main_return:-return} (!testfunc());
20636 rm -f conftest$ac_exeext
20637 if { (eval echo "$as_me:20637: \"$ac_link\"") >&5
20638 (eval $ac_link) 2>&5
20640 echo "$as_me:20640: \$? = $ac_status" >&5
20641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20642 { (eval echo "$as_me:20642: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20645 echo "$as_me:20645: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 cf_cv_link_dataonly=yes
20649 echo "$as_me: program exited with status $ac_status" >&5
20650 echo "$as_me: failed program was:" >&5
20651 cat conftest.$ac_ext >&5
20652 cf_cv_link_dataonly=no
20654 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20656 LIBS="$cf_saveLIBS"
20660 echo "$as_me:20660: result: $cf_cv_link_dataonly" >&5
20661 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
20663 if test "$cf_cv_link_dataonly" = no ; then
20665 cat >>confdefs.h <<\EOF
20666 #define BROKEN_LINKER 1
20672 ### Checks for library functions.
20702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20703 echo "$as_me:20703: checking for $ac_func" >&5
20704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20705 if eval "test \"\${$as_ac_var+set}\" = set"; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 cat >conftest.$ac_ext <<_ACEOF
20709 #line 20709 "configure"
20710 #include "confdefs.h"
20711 #define $ac_func autoconf_temporary
20712 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20719 /* We use char because int might match the return type of a gcc2
20720 builtin and then its argument prototype would still apply. */
20721 char $ac_func (void);
20727 /* The GNU C library defines stubs for functions which it implements
20728 to always fail with ENOSYS. Some functions are actually named
20729 something starting with __ and the normal name is an alias. */
20730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20731 #error found stub for $ac_func
20734 return $ac_func ();
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (eval echo "$as_me:20740: \"$ac_link\"") >&5
20741 (eval $ac_link) 2>&5
20743 echo "$as_me:20743: \$? = $ac_status" >&5
20744 (exit $ac_status); } &&
20745 { ac_try='test -s conftest$ac_exeext'
20746 { (eval echo "$as_me:20746: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20749 echo "$as_me:20749: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 eval "$as_ac_var=yes"
20753 echo "$as_me: failed program was:" >&5
20754 cat conftest.$ac_ext >&5
20755 eval "$as_ac_var=no"
20757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20759 echo "$as_me:20759: result: `eval echo '${'$as_ac_var'}'`" >&5
20760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20761 if test `eval echo '${'$as_ac_var'}'` = yes; then
20762 cat >>confdefs.h <<EOF
20763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20769 if test "x$ac_cv_func_getopt" = xno && \
20770 test "x$cf_with_progs$cf_with_tests" != xnono; then
20771 { { echo "$as_me:20771: error: getopt is required for building programs" >&5
20772 echo "$as_me: error: getopt is required for building programs" >&2;}
20773 { (exit 1); exit 1; }; }
20776 if test "x$with_safe_sprintf" = xyes
20778 if test "x$ac_cv_func_vsnprintf" = xyes
20780 { echo "$as_me:20780: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
20781 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
20784 cat >>confdefs.h <<\EOF
20785 #define USE_SAFE_SPRINTF 1
20791 if test "x$with_getcap" = "xyes" ; then
20793 echo "$as_me:20793: checking for terminal-capability database functions" >&5
20794 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
20795 if test "${cf_cv_cgetent+set}" = set; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 cat >conftest.$ac_ext <<_ACEOF
20800 #line 20800 "configure"
20801 #include "confdefs.h"
20803 #include <stdlib.h>
20810 char *db_array = temp;
20811 cgetent(&buf, &db_array, "vt100");
20812 cgetcap(buf, "tc", '=');
20813 cgetmatch(buf, "tc");
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (eval echo "$as_me:20820: \"$ac_link\"") >&5
20821 (eval $ac_link) 2>&5
20823 echo "$as_me:20823: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -s conftest$ac_exeext'
20826 { (eval echo "$as_me:20826: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20829 echo "$as_me:20829: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20833 echo "$as_me: failed program was:" >&5
20834 cat conftest.$ac_ext >&5
20837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20840 echo "$as_me:20840: result: $cf_cv_cgetent" >&5
20841 echo "${ECHO_T}$cf_cv_cgetent" >&6
20843 if test "$cf_cv_cgetent" = yes
20846 cat >>confdefs.h <<\EOF
20847 #define HAVE_BSD_CGETENT 1
20850 echo "$as_me:20850: checking if cgetent uses const parameter" >&5
20851 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
20852 if test "${cf_cv_cgetent_const+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 cat >conftest.$ac_ext <<_ACEOF
20857 #line 20857 "configure"
20858 #include "confdefs.h"
20860 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
20861 #include <stdlib.h>
20868 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
20869 const char *db_array = temp;
20870 cgetent(&buf, &db_array, "vt100");
20872 cgetcap(buf, "tc", '=');
20873 cgetmatch(buf, "tc");
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (eval echo "$as_me:20880: \"$ac_link\"") >&5
20881 (eval $ac_link) 2>&5
20883 echo "$as_me:20883: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
20885 { ac_try='test -s conftest$ac_exeext'
20886 { (eval echo "$as_me:20886: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20889 echo "$as_me:20889: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20891 cf_cv_cgetent_const=yes
20893 echo "$as_me: failed program was:" >&5
20894 cat conftest.$ac_ext >&5
20895 cf_cv_cgetent_const=no
20897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20900 echo "$as_me:20900: result: $cf_cv_cgetent_const" >&5
20901 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
20902 if test "$cf_cv_cgetent_const" = yes
20905 cat >>confdefs.h <<EOF
20906 #define CGETENT_CONST const
20914 echo "$as_me:20914: checking for isascii" >&5
20915 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
20916 if test "${cf_cv_have_isascii+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 cat >conftest.$ac_ext <<_ACEOF
20921 #line 20921 "configure"
20922 #include "confdefs.h"
20927 int x = isascii(' ')
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (eval echo "$as_me:20933: \"$ac_link\"") >&5
20934 (eval $ac_link) 2>&5
20936 echo "$as_me:20936: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -s conftest$ac_exeext'
20939 { (eval echo "$as_me:20939: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:20942: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 cf_cv_have_isascii=yes
20946 echo "$as_me: failed program was:" >&5
20947 cat conftest.$ac_ext >&5
20948 cf_cv_have_isascii=no
20950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20953 echo "$as_me:20953: result: $cf_cv_have_isascii" >&5
20954 echo "${ECHO_T}$cf_cv_have_isascii" >&6
20955 test "$cf_cv_have_isascii" = yes &&
20956 cat >>confdefs.h <<\EOF
20957 #define HAVE_ISASCII 1
20960 if test "$ac_cv_func_sigaction" = yes; then
20961 echo "$as_me:20961: checking whether sigaction needs _POSIX_SOURCE" >&5
20962 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
20963 cat >conftest.$ac_ext <<_ACEOF
20964 #line 20964 "configure"
20965 #include "confdefs.h"
20967 #include <sys/types.h>
20968 #include <signal.h>
20972 struct sigaction act
20977 rm -f conftest.$ac_objext
20978 if { (eval echo "$as_me:20978: \"$ac_compile\"") >&5
20979 (eval $ac_compile) 2>&5
20981 echo "$as_me:20981: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
20983 { ac_try='test -s conftest.$ac_objext'
20984 { (eval echo "$as_me:20984: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20987 echo "$as_me:20987: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }; then
20991 echo "$as_me: failed program was:" >&5
20992 cat conftest.$ac_ext >&5
20994 cat >conftest.$ac_ext <<_ACEOF
20995 #line 20995 "configure"
20996 #include "confdefs.h"
20998 #define _POSIX_SOURCE
20999 #include <sys/types.h>
21000 #include <signal.h>
21004 struct sigaction act
21009 rm -f conftest.$ac_objext
21010 if { (eval echo "$as_me:21010: \"$ac_compile\"") >&5
21011 (eval $ac_compile) 2>&5
21013 echo "$as_me:21013: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (eval echo "$as_me:21016: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21019 echo "$as_me:21019: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21023 cat >>confdefs.h <<\EOF
21024 #define _POSIX_SOURCE 1
21028 echo "$as_me: failed program was:" >&5
21029 cat conftest.$ac_ext >&5
21032 rm -f conftest.$ac_objext conftest.$ac_ext
21034 rm -f conftest.$ac_objext conftest.$ac_ext
21035 echo "$as_me:21035: result: $sigact_bad" >&5
21036 echo "${ECHO_T}$sigact_bad" >&6
21039 echo "$as_me:21039: checking if nanosleep really works" >&5
21040 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
21041 if test "${cf_cv_func_nanosleep+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21045 if test "$cross_compiling" = yes; then
21046 cf_cv_func_nanosleep=unknown
21048 cat >conftest.$ac_ext <<_ACEOF
21049 #line 21049 "configure"
21050 #include "confdefs.h"
21056 #ifdef HAVE_SYS_TIME_H
21057 #include <sys/time.h>
21061 struct timespec ts1, ts2;
21064 ts1.tv_nsec = 750000000;
21068 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
21069 ${cf_cv_main_return:-return}(code != 0);
21073 rm -f conftest$ac_exeext
21074 if { (eval echo "$as_me:21074: \"$ac_link\"") >&5
21075 (eval $ac_link) 2>&5
21077 echo "$as_me:21077: \$? = $ac_status" >&5
21078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21079 { (eval echo "$as_me:21079: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21082 echo "$as_me:21082: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 cf_cv_func_nanosleep=yes
21086 echo "$as_me: program exited with status $ac_status" >&5
21087 echo "$as_me: failed program was:" >&5
21088 cat conftest.$ac_ext >&5
21089 cf_cv_func_nanosleep=no
21091 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21094 echo "$as_me:21094: result: $cf_cv_func_nanosleep" >&5
21095 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
21097 test "$cf_cv_func_nanosleep" = "yes" &&
21098 cat >>confdefs.h <<\EOF
21099 #define HAVE_NANOSLEEP 1
21110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21111 echo "$as_me:21111: checking for $ac_header" >&5
21112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 cat >conftest.$ac_ext <<_ACEOF
21117 #line 21117 "configure"
21118 #include "confdefs.h"
21119 #include <$ac_header>
21121 if { (eval echo "$as_me:21121: \"$ac_cpp conftest.$ac_ext\"") >&5
21122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21124 egrep -v '^ *\+' conftest.er1 >conftest.err
21126 cat conftest.err >&5
21127 echo "$as_me:21127: \$? = $ac_status" >&5
21128 (exit $ac_status); } >/dev/null; then
21129 if test -s conftest.err; then
21130 ac_cpp_err=$ac_c_preproc_warn_flag
21137 if test -z "$ac_cpp_err"; then
21138 eval "$as_ac_Header=yes"
21140 echo "$as_me: failed program was:" >&5
21141 cat conftest.$ac_ext >&5
21142 eval "$as_ac_Header=no"
21144 rm -f conftest.err conftest.$ac_ext
21146 echo "$as_me:21146: result: `eval echo '${'$as_ac_Header'}'`" >&5
21147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21149 cat >>confdefs.h <<EOF
21150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21156 if test "$ac_cv_header_termios_h" = yes ; then
21157 case "$CFLAGS $CPPFLAGS" in
21158 (*-D_POSIX_SOURCE*)
21159 termios_bad=dunno ;;
21160 (*) termios_bad=maybe ;;
21162 if test "$termios_bad" = maybe ; then
21163 echo "$as_me:21163: checking whether termios.h needs _POSIX_SOURCE" >&5
21164 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
21165 cat >conftest.$ac_ext <<_ACEOF
21166 #line 21166 "configure"
21167 #include "confdefs.h"
21168 #include <termios.h>
21172 struct termios foo; int x = foo.c_iflag = 1; (void)x
21177 rm -f conftest.$ac_objext
21178 if { (eval echo "$as_me:21178: \"$ac_compile\"") >&5
21179 (eval $ac_compile) 2>&5
21181 echo "$as_me:21181: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try='test -s conftest.$ac_objext'
21184 { (eval echo "$as_me:21184: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21187 echo "$as_me:21187: \$? = $ac_status" >&5
21188 (exit $ac_status); }; }; then
21191 echo "$as_me: failed program was:" >&5
21192 cat conftest.$ac_ext >&5
21194 cat >conftest.$ac_ext <<_ACEOF
21195 #line 21195 "configure"
21196 #include "confdefs.h"
21198 #define _POSIX_SOURCE
21199 #include <termios.h>
21203 struct termios foo; int x = foo.c_iflag = 2; (void)x
21208 rm -f conftest.$ac_objext
21209 if { (eval echo "$as_me:21209: \"$ac_compile\"") >&5
21210 (eval $ac_compile) 2>&5
21212 echo "$as_me:21212: \$? = $ac_status" >&5
21213 (exit $ac_status); } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:21215: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:21218: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 termios_bad=unknown
21222 echo "$as_me: failed program was:" >&5
21223 cat conftest.$ac_ext >&5
21225 cat >>confdefs.h <<\EOF
21226 #define _POSIX_SOURCE 1
21230 rm -f conftest.$ac_objext conftest.$ac_ext
21233 rm -f conftest.$ac_objext conftest.$ac_ext
21234 echo "$as_me:21234: result: $termios_bad" >&5
21235 echo "${ECHO_T}$termios_bad" >&6
21239 echo "$as_me:21239: checking for tcgetattr" >&5
21240 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
21241 if test "${cf_cv_have_tcgetattr+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 cat >conftest.$ac_ext <<_ACEOF
21246 #line 21246 "configure"
21247 #include "confdefs.h"
21249 #include <sys/types.h>
21250 #ifdef HAVE_UNISTD_H
21251 #include <unistd.h>
21253 #ifdef HAVE_TERMIOS_H
21254 #include <termios.h>
21255 #define TTY struct termios
21257 #ifdef HAVE_TERMIO_H
21258 #include <termio.h>
21259 #define TTY struct termio
21268 tcgetattr(1, &foo);
21273 rm -f conftest.$ac_objext conftest$ac_exeext
21274 if { (eval echo "$as_me:21274: \"$ac_link\"") >&5
21275 (eval $ac_link) 2>&5
21277 echo "$as_me:21277: \$? = $ac_status" >&5
21278 (exit $ac_status); } &&
21279 { ac_try='test -s conftest$ac_exeext'
21280 { (eval echo "$as_me:21280: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21283 echo "$as_me:21283: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 cf_cv_have_tcgetattr=yes
21287 echo "$as_me: failed program was:" >&5
21288 cat conftest.$ac_ext >&5
21289 cf_cv_have_tcgetattr=no
21291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21293 echo "$as_me:21293: result: $cf_cv_have_tcgetattr" >&5
21294 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
21295 test "$cf_cv_have_tcgetattr" = yes &&
21296 cat >>confdefs.h <<\EOF
21297 #define HAVE_TCGETATTR 1
21300 echo "$as_me:21300: checking for vsscanf function or workaround" >&5
21301 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
21302 if test "${cf_cv_func_vsscanf+set}" = set; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 cat >conftest.$ac_ext <<_ACEOF
21307 #line 21307 "configure"
21308 #include "confdefs.h"
21310 #include <stdarg.h>
21317 vsscanf("from", "%d", ap)
21322 rm -f conftest.$ac_objext conftest$ac_exeext
21323 if { (eval echo "$as_me:21323: \"$ac_link\"") >&5
21324 (eval $ac_link) 2>&5
21326 echo "$as_me:21326: \$? = $ac_status" >&5
21327 (exit $ac_status); } &&
21328 { ac_try='test -s conftest$ac_exeext'
21329 { (eval echo "$as_me:21329: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21332 echo "$as_me:21332: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 cf_cv_func_vsscanf=vsscanf
21336 echo "$as_me: failed program was:" >&5
21337 cat conftest.$ac_ext >&5
21339 cat >conftest.$ac_ext <<_ACEOF
21340 #line 21340 "configure"
21341 #include "confdefs.h"
21343 #include <stdarg.h>
21350 char *str = "from";
21352 strbuf._flag = _IOREAD;
21353 strbuf._ptr = strbuf._base = (unsigned char *) str;
21354 strbuf._cnt = strlen(str);
21355 strbuf._file = _NFILE;
21356 return (vfscanf(&strbuf, "%d", ap))
21361 rm -f conftest.$ac_objext conftest$ac_exeext
21362 if { (eval echo "$as_me:21362: \"$ac_link\"") >&5
21363 (eval $ac_link) 2>&5
21365 echo "$as_me:21365: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -s conftest$ac_exeext'
21368 { (eval echo "$as_me:21368: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21371 echo "$as_me:21371: \$? = $ac_status" >&5
21372 (exit $ac_status); }; }; then
21373 cf_cv_func_vsscanf=vfscanf
21375 echo "$as_me: failed program was:" >&5
21376 cat conftest.$ac_ext >&5
21378 cat >conftest.$ac_ext <<_ACEOF
21379 #line 21379 "configure"
21380 #include "confdefs.h"
21382 #include <stdarg.h>
21389 char *str = "from";
21391 strbuf._flag = _IOREAD;
21392 strbuf._ptr = strbuf._base = (unsigned char *) str;
21393 strbuf._cnt = strlen(str);
21394 strbuf._file = _NFILE;
21395 return (_doscan(&strbuf, "%d", ap))
21400 rm -f conftest.$ac_objext conftest$ac_exeext
21401 if { (eval echo "$as_me:21401: \"$ac_link\"") >&5
21402 (eval $ac_link) 2>&5
21404 echo "$as_me:21404: \$? = $ac_status" >&5
21405 (exit $ac_status); } &&
21406 { ac_try='test -s conftest$ac_exeext'
21407 { (eval echo "$as_me:21407: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21410 echo "$as_me:21410: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 cf_cv_func_vsscanf=_doscan
21414 echo "$as_me: failed program was:" >&5
21415 cat conftest.$ac_ext >&5
21417 cf_cv_func_vsscanf=no
21419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21425 echo "$as_me:21425: result: $cf_cv_func_vsscanf" >&5
21426 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
21428 case $cf_cv_func_vsscanf in
21430 cat >>confdefs.h <<\EOF
21431 #define HAVE_VSSCANF 1
21435 cat >>confdefs.h <<\EOF
21436 #define HAVE_VFSCANF 1
21440 cat >>confdefs.h <<\EOF
21441 #define HAVE__DOSCAN 1
21450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21451 echo "$as_me:21451: checking for $ac_header" >&5
21452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21456 cat >conftest.$ac_ext <<_ACEOF
21457 #line 21457 "configure"
21458 #include "confdefs.h"
21459 #include <$ac_header>
21461 if { (eval echo "$as_me:21461: \"$ac_cpp conftest.$ac_ext\"") >&5
21462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21464 egrep -v '^ *\+' conftest.er1 >conftest.err
21466 cat conftest.err >&5
21467 echo "$as_me:21467: \$? = $ac_status" >&5
21468 (exit $ac_status); } >/dev/null; then
21469 if test -s conftest.err; then
21470 ac_cpp_err=$ac_c_preproc_warn_flag
21477 if test -z "$ac_cpp_err"; then
21478 eval "$as_ac_Header=yes"
21480 echo "$as_me: failed program was:" >&5
21481 cat conftest.$ac_ext >&5
21482 eval "$as_ac_Header=no"
21484 rm -f conftest.err conftest.$ac_ext
21486 echo "$as_me:21486: result: `eval echo '${'$as_ac_Header'}'`" >&5
21487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21489 cat >>confdefs.h <<EOF
21490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21496 echo "$as_me:21496: checking for working mkstemp" >&5
21497 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
21498 if test "${cf_cv_func_mkstemp+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 if test "$cross_compiling" = yes; then
21504 cf_cv_func_mkstemp=maybe
21506 cat >conftest.$ac_ext <<_ACEOF
21507 #line 21507 "configure"
21508 #include "confdefs.h"
21510 #include <sys/types.h>
21511 #ifdef HAVE_UNISTD_H
21512 #include <unistd.h>
21514 #include <stdlib.h>
21516 #include <string.h>
21517 #include <sys/stat.h>
21520 char *tmpl = "conftestXXXXXX";
21528 for (n = 0; n < 2; ++n) {
21529 strcpy(name[n], tmpl);
21530 if ((fd = mkstemp(name[n])) >= 0) {
21531 if (!strcmp(name[n], tmpl)
21532 || stat(name[n], &sb) != 0
21533 || (sb.st_mode & S_IFMT) != S_IFREG
21534 || (sb.st_mode & 077) != 0) {
21541 && !strcmp(name[0], name[1]))
21543 ${cf_cv_main_return:-return}(result);
21547 rm -f conftest$ac_exeext
21548 if { (eval echo "$as_me:21548: \"$ac_link\"") >&5
21549 (eval $ac_link) 2>&5
21551 echo "$as_me:21551: \$? = $ac_status" >&5
21552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21553 { (eval echo "$as_me:21553: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21556 echo "$as_me:21556: \$? = $ac_status" >&5
21557 (exit $ac_status); }; }; then
21558 cf_cv_func_mkstemp=yes
21561 echo "$as_me: program exited with status $ac_status" >&5
21562 echo "$as_me: failed program was:" >&5
21563 cat conftest.$ac_ext >&5
21564 cf_cv_func_mkstemp=no
21567 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21571 echo "$as_me:21571: result: $cf_cv_func_mkstemp" >&5
21572 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
21573 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
21574 echo "$as_me:21574: checking for mkstemp" >&5
21575 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
21576 if test "${ac_cv_func_mkstemp+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21580 #line 21580 "configure"
21581 #include "confdefs.h"
21582 #define mkstemp autoconf_temporary
21583 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21590 /* We use char because int might match the return type of a gcc2
21591 builtin and then its argument prototype would still apply. */
21592 char mkstemp (void);
21598 /* The GNU C library defines stubs for functions which it implements
21599 to always fail with ENOSYS. Some functions are actually named
21600 something starting with __ and the normal name is an alias. */
21601 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
21602 #error found stub for mkstemp
21610 rm -f conftest.$ac_objext conftest$ac_exeext
21611 if { (eval echo "$as_me:21611: \"$ac_link\"") >&5
21612 (eval $ac_link) 2>&5
21614 echo "$as_me:21614: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -s conftest$ac_exeext'
21617 { (eval echo "$as_me:21617: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:21620: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 ac_cv_func_mkstemp=yes
21624 echo "$as_me: failed program was:" >&5
21625 cat conftest.$ac_ext >&5
21626 ac_cv_func_mkstemp=no
21628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21630 echo "$as_me:21630: result: $ac_cv_func_mkstemp" >&5
21631 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21634 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
21636 cat >>confdefs.h <<\EOF
21637 #define HAVE_MKSTEMP 1
21642 # setup for prototype of fallback for vsscanf()
21644 if test "$cf_cv_func_vsscanf" = vsscanf ; then
21650 if test "x$cross_compiling" = xyes ; then
21651 { echo "$as_me:21651: WARNING: cross compiling: assume setvbuf params not reversed" >&5
21652 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
21654 echo "$as_me:21654: checking whether setvbuf arguments are reversed" >&5
21655 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
21656 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 if test "$cross_compiling" = yes; then
21660 { { echo "$as_me:21660: error: cannot run test program while cross compiling" >&5
21661 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21662 { (exit 1); exit 1; }; }
21664 cat >conftest.$ac_ext <<_ACEOF
21665 #line 21665 "configure"
21666 #include "confdefs.h"
21668 /* If setvbuf has the reversed format, exit 0. */
21672 /* This call has the arguments reversed.
21673 A reversed system may check and see that the address of main
21674 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
21675 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
21676 $ac_main_return(1);
21677 putc('\r', stdout);
21678 $ac_main_return(0); /* Non-reversed systems segv here. */
21681 rm -f conftest$ac_exeext
21682 if { (eval echo "$as_me:21682: \"$ac_link\"") >&5
21683 (eval $ac_link) 2>&5
21685 echo "$as_me:21685: \$? = $ac_status" >&5
21686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21687 { (eval echo "$as_me:21687: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:21690: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 ac_cv_func_setvbuf_reversed=yes
21694 echo "$as_me: program exited with status $ac_status" >&5
21695 echo "$as_me: failed program was:" >&5
21696 cat conftest.$ac_ext >&5
21697 ac_cv_func_setvbuf_reversed=no
21699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21701 rm -f core core.* *.core
21703 echo "$as_me:21703: result: $ac_cv_func_setvbuf_reversed" >&5
21704 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
21705 if test $ac_cv_func_setvbuf_reversed = yes; then
21707 cat >>confdefs.h <<\EOF
21708 #define SETVBUF_REVERSED 1
21714 echo "$as_me:21714: checking for intptr_t" >&5
21715 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
21716 if test "${ac_cv_type_intptr_t+set}" = set; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6
21719 cat >conftest.$ac_ext <<_ACEOF
21720 #line 21720 "configure"
21721 #include "confdefs.h"
21722 $ac_includes_default
21726 if ((intptr_t *) 0)
21728 if (sizeof (intptr_t))
21734 rm -f conftest.$ac_objext
21735 if { (eval echo "$as_me:21735: \"$ac_compile\"") >&5
21736 (eval $ac_compile) 2>&5
21738 echo "$as_me:21738: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -s conftest.$ac_objext'
21741 { (eval echo "$as_me:21741: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21744 echo "$as_me:21744: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_cv_type_intptr_t=yes
21748 echo "$as_me: failed program was:" >&5
21749 cat conftest.$ac_ext >&5
21750 ac_cv_type_intptr_t=no
21752 rm -f conftest.$ac_objext conftest.$ac_ext
21754 echo "$as_me:21754: result: $ac_cv_type_intptr_t" >&5
21755 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
21756 if test $ac_cv_type_intptr_t = yes; then
21760 cat >>confdefs.h <<EOF
21761 #define intptr_t long
21766 echo "$as_me:21766: checking for ssize_t" >&5
21767 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21768 if test "${ac_cv_type_ssize_t+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 cat >conftest.$ac_ext <<_ACEOF
21772 #line 21772 "configure"
21773 #include "confdefs.h"
21774 $ac_includes_default
21780 if (sizeof (ssize_t))
21786 rm -f conftest.$ac_objext
21787 if { (eval echo "$as_me:21787: \"$ac_compile\"") >&5
21788 (eval $ac_compile) 2>&5
21790 echo "$as_me:21790: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -s conftest.$ac_objext'
21793 { (eval echo "$as_me:21793: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:21796: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_type_ssize_t=yes
21800 echo "$as_me: failed program was:" >&5
21801 cat conftest.$ac_ext >&5
21802 ac_cv_type_ssize_t=no
21804 rm -f conftest.$ac_objext conftest.$ac_ext
21806 echo "$as_me:21806: result: $ac_cv_type_ssize_t" >&5
21807 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21808 if test $ac_cv_type_ssize_t = yes; then
21812 cat >>confdefs.h <<EOF
21813 #define ssize_t int
21818 echo "$as_me:21818: checking for type sigaction_t" >&5
21819 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
21820 if test "${cf_cv_type_sigaction+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 cat >conftest.$ac_ext <<_ACEOF
21825 #line 21825 "configure"
21826 #include "confdefs.h"
21828 #include <signal.h>
21837 rm -f conftest.$ac_objext
21838 if { (eval echo "$as_me:21838: \"$ac_compile\"") >&5
21839 (eval $ac_compile) 2>&5
21841 echo "$as_me:21841: \$? = $ac_status" >&5
21842 (exit $ac_status); } &&
21843 { ac_try='test -s conftest.$ac_objext'
21844 { (eval echo "$as_me:21844: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21847 echo "$as_me:21847: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 cf_cv_type_sigaction=yes
21851 echo "$as_me: failed program was:" >&5
21852 cat conftest.$ac_ext >&5
21853 cf_cv_type_sigaction=no
21855 rm -f conftest.$ac_objext conftest.$ac_ext
21858 echo "$as_me:21858: result: $cf_cv_type_sigaction" >&5
21859 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
21860 test "$cf_cv_type_sigaction" = yes &&
21861 cat >>confdefs.h <<\EOF
21862 #define HAVE_TYPE_SIGACTION 1
21865 echo "$as_me:21865: checking declaration of size-change" >&5
21866 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
21867 if test "${cf_cv_sizechange+set}" = set; then
21868 echo $ECHO_N "(cached) $ECHO_C" >&6
21871 cf_cv_sizechange=unknown
21872 cf_save_CPPFLAGS="$CPPFLAGS"
21874 for cf_opts in "" "NEED_PTEM_H"
21877 CPPFLAGS="$cf_save_CPPFLAGS"
21878 if test -n "$cf_opts"
21881 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21882 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
21885 cat >conftest.$ac_ext <<_ACEOF
21886 #line 21886 "configure"
21887 #include "confdefs.h"
21888 #include <sys/types.h>
21889 #ifdef HAVE_TERMIOS_H
21890 #include <termios.h>
21892 #ifdef HAVE_TERMIO_H
21893 #include <termio.h>
21898 /* This is a workaround for SCO: they neglected to define struct winsize in
21899 * termios.h -- it's only in termio.h and ptem.h
21901 #include <sys/stream.h>
21902 #include <sys/ptem.h>
21905 #ifdef HAVE_SYS_IOCTL_H
21906 #include <sys/ioctl.h>
21914 struct ttysize win; /* SunOS 3.0... */
21915 int y = win.ts_lines = 2;
21916 int x = win.ts_cols = 1;
21921 struct winsize win; /* everything else */
21922 int y = win.ws_row = 2;
21923 int x = win.ws_col = 1;
21927 no TIOCGSIZE or TIOCGWINSZ
21928 #endif /* TIOCGWINSZ */
21929 #endif /* TIOCGSIZE */
21935 rm -f conftest.$ac_objext
21936 if { (eval echo "$as_me:21936: \"$ac_compile\"") >&5
21937 (eval $ac_compile) 2>&5
21939 echo "$as_me:21939: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
21941 { ac_try='test -s conftest.$ac_objext'
21942 { (eval echo "$as_me:21942: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:21945: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 cf_cv_sizechange=yes
21949 echo "$as_me: failed program was:" >&5
21950 cat conftest.$ac_ext >&5
21951 cf_cv_sizechange=no
21953 rm -f conftest.$ac_objext conftest.$ac_ext
21955 CPPFLAGS="$cf_save_CPPFLAGS"
21956 if test "$cf_cv_sizechange" = yes ; then
21957 echo "size-change succeeded ($cf_opts)" >&5
21958 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
21964 echo "$as_me:21964: result: $cf_cv_sizechange" >&5
21965 echo "${ECHO_T}$cf_cv_sizechange" >&6
21966 if test "$cf_cv_sizechange" != no ; then
21968 cat >>confdefs.h <<\EOF
21969 #define HAVE_SIZECHANGE 1
21972 case $cf_cv_sizechange in
21974 cat >>confdefs.h <<EOF
21975 #define $cf_cv_sizechange 1
21982 echo "$as_me:21982: checking for memmove" >&5
21983 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
21984 if test "${ac_cv_func_memmove+set}" = set; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 cat >conftest.$ac_ext <<_ACEOF
21988 #line 21988 "configure"
21989 #include "confdefs.h"
21990 #define memmove autoconf_temporary
21991 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21998 /* We use char because int might match the return type of a gcc2
21999 builtin and then its argument prototype would still apply. */
22000 char memmove (void);
22006 /* The GNU C library defines stubs for functions which it implements
22007 to always fail with ENOSYS. Some functions are actually named
22008 something starting with __ and the normal name is an alias. */
22009 #if defined (__stub_memmove) || defined (__stub___memmove)
22010 #error found stub for memmove
22018 rm -f conftest.$ac_objext conftest$ac_exeext
22019 if { (eval echo "$as_me:22019: \"$ac_link\"") >&5
22020 (eval $ac_link) 2>&5
22022 echo "$as_me:22022: \$? = $ac_status" >&5
22023 (exit $ac_status); } &&
22024 { ac_try='test -s conftest$ac_exeext'
22025 { (eval echo "$as_me:22025: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22028 echo "$as_me:22028: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030 ac_cv_func_memmove=yes
22032 echo "$as_me: failed program was:" >&5
22033 cat conftest.$ac_ext >&5
22034 ac_cv_func_memmove=no
22036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22038 echo "$as_me:22038: result: $ac_cv_func_memmove" >&5
22039 echo "${ECHO_T}$ac_cv_func_memmove" >&6
22040 if test $ac_cv_func_memmove = yes; then
22044 echo "$as_me:22044: checking for bcopy" >&5
22045 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
22046 if test "${ac_cv_func_bcopy+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 cat >conftest.$ac_ext <<_ACEOF
22050 #line 22050 "configure"
22051 #include "confdefs.h"
22052 #define bcopy autoconf_temporary
22053 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22060 /* We use char because int might match the return type of a gcc2
22061 builtin and then its argument prototype would still apply. */
22068 /* The GNU C library defines stubs for functions which it implements
22069 to always fail with ENOSYS. Some functions are actually named
22070 something starting with __ and the normal name is an alias. */
22071 #if defined (__stub_bcopy) || defined (__stub___bcopy)
22072 #error found stub for bcopy
22080 rm -f conftest.$ac_objext conftest$ac_exeext
22081 if { (eval echo "$as_me:22081: \"$ac_link\"") >&5
22082 (eval $ac_link) 2>&5
22084 echo "$as_me:22084: \$? = $ac_status" >&5
22085 (exit $ac_status); } &&
22086 { ac_try='test -s conftest$ac_exeext'
22087 { (eval echo "$as_me:22087: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22090 echo "$as_me:22090: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }; then
22092 ac_cv_func_bcopy=yes
22094 echo "$as_me: failed program was:" >&5
22095 cat conftest.$ac_ext >&5
22096 ac_cv_func_bcopy=no
22098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22100 echo "$as_me:22100: result: $ac_cv_func_bcopy" >&5
22101 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
22102 if test $ac_cv_func_bcopy = yes; then
22104 echo "$as_me:22104: checking if bcopy does overlapping moves" >&5
22105 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
22106 if test "${cf_cv_good_bcopy+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 if test "$cross_compiling" = yes; then
22111 cf_cv_good_bcopy=unknown
22113 cat >conftest.$ac_ext <<_ACEOF
22114 #line 22114 "configure"
22115 #include "confdefs.h"
22118 static char data[] = "abcdefghijklmnopqrstuwwxyz";
22120 bcopy(data, temp, sizeof(data));
22121 bcopy(temp+10, temp, 15);
22122 bcopy(temp+5, temp+15, 10);
22123 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
22127 rm -f conftest$ac_exeext
22128 if { (eval echo "$as_me:22128: \"$ac_link\"") >&5
22129 (eval $ac_link) 2>&5
22131 echo "$as_me:22131: \$? = $ac_status" >&5
22132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22133 { (eval echo "$as_me:22133: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22136 echo "$as_me:22136: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }; then
22138 cf_cv_good_bcopy=yes
22140 echo "$as_me: program exited with status $ac_status" >&5
22141 echo "$as_me: failed program was:" >&5
22142 cat conftest.$ac_ext >&5
22143 cf_cv_good_bcopy=no
22145 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22149 echo "$as_me:22149: result: $cf_cv_good_bcopy" >&5
22150 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
22153 cf_cv_good_bcopy=no
22156 if test "$cf_cv_good_bcopy" = yes ; then
22158 cat >>confdefs.h <<\EOF
22159 #define USE_OK_BCOPY 1
22164 cat >>confdefs.h <<\EOF
22165 #define USE_MY_MEMMOVE 1
22172 tty 2>&1 >/dev/null || {
22173 for ac_func in posix_openpt
22175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22176 echo "$as_me:22176: checking for $ac_func" >&5
22177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22178 if eval "test \"\${$as_ac_var+set}\" = set"; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 cat >conftest.$ac_ext <<_ACEOF
22182 #line 22182 "configure"
22183 #include "confdefs.h"
22184 #define $ac_func autoconf_temporary
22185 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22192 /* We use char because int might match the return type of a gcc2
22193 builtin and then its argument prototype would still apply. */
22194 char $ac_func (void);
22200 /* The GNU C library defines stubs for functions which it implements
22201 to always fail with ENOSYS. Some functions are actually named
22202 something starting with __ and the normal name is an alias. */
22203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22204 #error found stub for $ac_func
22207 return $ac_func ();
22212 rm -f conftest.$ac_objext conftest$ac_exeext
22213 if { (eval echo "$as_me:22213: \"$ac_link\"") >&5
22214 (eval $ac_link) 2>&5
22216 echo "$as_me:22216: \$? = $ac_status" >&5
22217 (exit $ac_status); } &&
22218 { ac_try='test -s conftest$ac_exeext'
22219 { (eval echo "$as_me:22219: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22222 echo "$as_me:22222: \$? = $ac_status" >&5
22223 (exit $ac_status); }; }; then
22224 eval "$as_ac_var=yes"
22226 echo "$as_me: failed program was:" >&5
22227 cat conftest.$ac_ext >&5
22228 eval "$as_ac_var=no"
22230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22232 echo "$as_me:22232: result: `eval echo '${'$as_ac_var'}'`" >&5
22233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22234 if test `eval echo '${'$as_ac_var'}'` = yes; then
22235 cat >>confdefs.h <<EOF
22236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22242 echo "$as_me:22242: checking if poll really works" >&5
22243 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
22244 if test "${cf_cv_working_poll+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 if test "$cross_compiling" = yes; then
22249 cf_cv_working_poll=unknown
22251 cat >conftest.$ac_ext <<_ACEOF
22252 #line 22252 "configure"
22253 #include "confdefs.h"
22255 #include <stdlib.h>
22257 #include <unistd.h>
22262 #include <sys/poll.h>
22265 struct pollfd myfds;
22268 /* check for Darwin bug with respect to "devices" */
22269 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
22272 myfds.events = POLLIN;
22275 ret = poll(&myfds, 1, 100);
22277 if (ret < 0 || (myfds.revents & POLLNVAL)) {
22282 fd = open("/dev/tty", 2); /* O_RDWR */
22284 #ifdef HAVE_POSIX_OPENPT
22286 fd = posix_openpt(O_RDWR);
22291 /* also check with standard input */
22293 myfds.events = POLLIN;
22295 ret = poll(&myfds, 1, 100);
22300 ${cf_cv_main_return:-return}(ret < 0);
22303 rm -f conftest$ac_exeext
22304 if { (eval echo "$as_me:22304: \"$ac_link\"") >&5
22305 (eval $ac_link) 2>&5
22307 echo "$as_me:22307: \$? = $ac_status" >&5
22308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22309 { (eval echo "$as_me:22309: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22312 echo "$as_me:22312: \$? = $ac_status" >&5
22313 (exit $ac_status); }; }; then
22314 cf_cv_working_poll=yes
22316 echo "$as_me: program exited with status $ac_status" >&5
22317 echo "$as_me: failed program was:" >&5
22318 cat conftest.$ac_ext >&5
22319 cf_cv_working_poll=no
22321 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22324 echo "$as_me:22324: result: $cf_cv_working_poll" >&5
22325 echo "${ECHO_T}$cf_cv_working_poll" >&6
22326 test "$cf_cv_working_poll" = "yes" &&
22327 cat >>confdefs.h <<\EOF
22328 #define HAVE_WORKING_POLL 1
22331 echo "$as_me:22331: checking for va_copy" >&5
22332 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22333 if test "${cf_cv_have_va_copy+set}" = set; then
22334 echo $ECHO_N "(cached) $ECHO_C" >&6
22337 cat >conftest.$ac_ext <<_ACEOF
22338 #line 22338 "configure"
22339 #include "confdefs.h"
22341 #include <stdarg.h>
22347 static va_list dst;
22348 static va_list src;
22354 rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (eval echo "$as_me:22355: \"$ac_link\"") >&5
22356 (eval $ac_link) 2>&5
22358 echo "$as_me:22358: \$? = $ac_status" >&5
22359 (exit $ac_status); } &&
22360 { ac_try='test -s conftest$ac_exeext'
22361 { (eval echo "$as_me:22361: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22364 echo "$as_me:22364: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 cf_cv_have_va_copy=yes
22368 echo "$as_me: failed program was:" >&5
22369 cat conftest.$ac_ext >&5
22370 cf_cv_have_va_copy=no
22372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22374 echo "$as_me:22374: result: $cf_cv_have_va_copy" >&5
22375 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
22377 if test "$cf_cv_have_va_copy" = yes;
22380 cat >>confdefs.h <<\EOF
22381 #define HAVE_VA_COPY 1
22384 else # !cf_cv_have_va_copy
22386 echo "$as_me:22386: checking for __va_copy" >&5
22387 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
22388 if test "${cf_cv_have___va_copy+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 cat >conftest.$ac_ext <<_ACEOF
22393 #line 22393 "configure"
22394 #include "confdefs.h"
22396 #include <stdarg.h>
22402 static va_list dst;
22403 static va_list src;
22404 __va_copy(dst, src)
22409 rm -f conftest.$ac_objext conftest$ac_exeext
22410 if { (eval echo "$as_me:22410: \"$ac_link\"") >&5
22411 (eval $ac_link) 2>&5
22413 echo "$as_me:22413: \$? = $ac_status" >&5
22414 (exit $ac_status); } &&
22415 { ac_try='test -s conftest$ac_exeext'
22416 { (eval echo "$as_me:22416: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22419 echo "$as_me:22419: \$? = $ac_status" >&5
22420 (exit $ac_status); }; }; then
22421 cf_cv_have___va_copy=yes
22423 echo "$as_me: failed program was:" >&5
22424 cat conftest.$ac_ext >&5
22425 cf_cv_have___va_copy=no
22427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22429 echo "$as_me:22429: result: $cf_cv_have___va_copy" >&5
22430 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
22432 if test "$cf_cv_have___va_copy" = yes
22435 cat >>confdefs.h <<\EOF
22436 #define HAVE___VA_COPY 1
22439 else # !cf_cv_have___va_copy
22441 echo "$as_me:22441: checking for __builtin_va_copy" >&5
22442 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
22443 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22447 cat >conftest.$ac_ext <<_ACEOF
22448 #line 22448 "configure"
22449 #include "confdefs.h"
22451 #include <stdarg.h>
22457 static va_list dst;
22458 static va_list src;
22459 __builtin_va_copy(dst, src)
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (eval echo "$as_me:22465: \"$ac_link\"") >&5
22466 (eval $ac_link) 2>&5
22468 echo "$as_me:22468: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -s conftest$ac_exeext'
22471 { (eval echo "$as_me:22471: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:22474: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 cf_cv_have___builtin_va_copy=yes
22478 echo "$as_me: failed program was:" >&5
22479 cat conftest.$ac_ext >&5
22480 cf_cv_have___builtin_va_copy=no
22482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22484 echo "$as_me:22484: result: $cf_cv_have___builtin_va_copy" >&5
22485 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
22487 test "$cf_cv_have___builtin_va_copy" = yes &&
22489 cat >>confdefs.h <<\EOF
22490 #define HAVE___BUILTIN_VA_COPY 1
22493 fi # cf_cv_have___va_copy
22495 fi # cf_cv_have_va_copy
22497 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
22502 echo "$as_me:22502: checking if we can simply copy va_list" >&5
22503 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
22504 if test "${cf_cv_pointer_va_list+set}" = set; then
22505 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 cat >conftest.$ac_ext <<_ACEOF
22509 #line 22509 "configure"
22510 #include "confdefs.h"
22512 #include <stdarg.h>
22525 rm -f conftest.$ac_objext conftest$ac_exeext
22526 if { (eval echo "$as_me:22526: \"$ac_link\"") >&5
22527 (eval $ac_link) 2>&5
22529 echo "$as_me:22529: \$? = $ac_status" >&5
22530 (exit $ac_status); } &&
22531 { ac_try='test -s conftest$ac_exeext'
22532 { (eval echo "$as_me:22532: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22535 echo "$as_me:22535: \$? = $ac_status" >&5
22536 (exit $ac_status); }; }; then
22537 cf_cv_pointer_va_list=yes
22539 echo "$as_me: failed program was:" >&5
22540 cat conftest.$ac_ext >&5
22541 cf_cv_pointer_va_list=no
22543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22545 echo "$as_me:22545: result: $cf_cv_pointer_va_list" >&5
22546 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
22548 if test "$cf_cv_pointer_va_list" = no
22550 echo "$as_me:22550: checking if we can copy va_list indirectly" >&5
22551 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
22552 if test "${cf_cv_array_va_list+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 cat >conftest.$ac_ext <<_ACEOF
22557 #line 22557 "configure"
22558 #include "confdefs.h"
22560 #include <stdarg.h>
22573 rm -f conftest.$ac_objext conftest$ac_exeext
22574 if { (eval echo "$as_me:22574: \"$ac_link\"") >&5
22575 (eval $ac_link) 2>&5
22577 echo "$as_me:22577: \$? = $ac_status" >&5
22578 (exit $ac_status); } &&
22579 { ac_try='test -s conftest$ac_exeext'
22580 { (eval echo "$as_me:22580: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22583 echo "$as_me:22583: \$? = $ac_status" >&5
22584 (exit $ac_status); }; }; then
22585 cf_cv_array_va_list=yes
22587 echo "$as_me: failed program was:" >&5
22588 cat conftest.$ac_ext >&5
22589 cf_cv_array_va_list=no
22591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22593 echo "$as_me:22593: result: $cf_cv_array_va_list" >&5
22594 echo "${ECHO_T}$cf_cv_array_va_list" >&6
22595 test "$cf_cv_array_va_list" = yes &&
22596 cat >>confdefs.h <<\EOF
22597 #define ARRAY_VA_LIST 1
22604 echo "$as_me:22604: checking for pid_t" >&5
22605 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22606 if test "${ac_cv_type_pid_t+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22609 cat >conftest.$ac_ext <<_ACEOF
22610 #line 22610 "configure"
22611 #include "confdefs.h"
22612 $ac_includes_default
22618 if (sizeof (pid_t))
22624 rm -f conftest.$ac_objext
22625 if { (eval echo "$as_me:22625: \"$ac_compile\"") >&5
22626 (eval $ac_compile) 2>&5
22628 echo "$as_me:22628: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -s conftest.$ac_objext'
22631 { (eval echo "$as_me:22631: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22634 echo "$as_me:22634: \$? = $ac_status" >&5
22635 (exit $ac_status); }; }; then
22636 ac_cv_type_pid_t=yes
22638 echo "$as_me: failed program was:" >&5
22639 cat conftest.$ac_ext >&5
22640 ac_cv_type_pid_t=no
22642 rm -f conftest.$ac_objext conftest.$ac_ext
22644 echo "$as_me:22644: result: $ac_cv_type_pid_t" >&5
22645 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22646 if test $ac_cv_type_pid_t = yes; then
22650 cat >>confdefs.h <<EOF
22656 for ac_header in unistd.h vfork.h
22658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22659 echo "$as_me:22659: checking for $ac_header" >&5
22660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22664 cat >conftest.$ac_ext <<_ACEOF
22665 #line 22665 "configure"
22666 #include "confdefs.h"
22667 #include <$ac_header>
22669 if { (eval echo "$as_me:22669: \"$ac_cpp conftest.$ac_ext\"") >&5
22670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22672 egrep -v '^ *\+' conftest.er1 >conftest.err
22674 cat conftest.err >&5
22675 echo "$as_me:22675: \$? = $ac_status" >&5
22676 (exit $ac_status); } >/dev/null; then
22677 if test -s conftest.err; then
22678 ac_cpp_err=$ac_c_preproc_warn_flag
22685 if test -z "$ac_cpp_err"; then
22686 eval "$as_ac_Header=yes"
22688 echo "$as_me: failed program was:" >&5
22689 cat conftest.$ac_ext >&5
22690 eval "$as_ac_Header=no"
22692 rm -f conftest.err conftest.$ac_ext
22694 echo "$as_me:22694: result: `eval echo '${'$as_ac_Header'}'`" >&5
22695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22697 cat >>confdefs.h <<EOF
22698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22704 for ac_func in fork vfork
22706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22707 echo "$as_me:22707: checking for $ac_func" >&5
22708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22709 if eval "test \"\${$as_ac_var+set}\" = set"; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 cat >conftest.$ac_ext <<_ACEOF
22713 #line 22713 "configure"
22714 #include "confdefs.h"
22715 #define $ac_func autoconf_temporary
22716 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22723 /* We use char because int might match the return type of a gcc2
22724 builtin and then its argument prototype would still apply. */
22725 char $ac_func (void);
22731 /* The GNU C library defines stubs for functions which it implements
22732 to always fail with ENOSYS. Some functions are actually named
22733 something starting with __ and the normal name is an alias. */
22734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22735 #error found stub for $ac_func
22738 return $ac_func ();
22743 rm -f conftest.$ac_objext conftest$ac_exeext
22744 if { (eval echo "$as_me:22744: \"$ac_link\"") >&5
22745 (eval $ac_link) 2>&5
22747 echo "$as_me:22747: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
22749 { ac_try='test -s conftest$ac_exeext'
22750 { (eval echo "$as_me:22750: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22753 echo "$as_me:22753: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22755 eval "$as_ac_var=yes"
22757 echo "$as_me: failed program was:" >&5
22758 cat conftest.$ac_ext >&5
22759 eval "$as_ac_var=no"
22761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22763 echo "$as_me:22763: result: `eval echo '${'$as_ac_var'}'`" >&5
22764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22765 if test `eval echo '${'$as_ac_var'}'` = yes; then
22766 cat >>confdefs.h <<EOF
22767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22773 ac_cv_func_fork_works=$ac_cv_func_fork
22774 if test "x$ac_cv_func_fork" = xyes; then
22775 echo "$as_me:22775: checking for working fork" >&5
22776 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22777 if test "${ac_cv_func_fork_works+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
22780 if test "$cross_compiling" = yes; then
22781 ac_cv_func_fork_works=cross
22783 cat >conftest.$ac_ext <<_ACEOF
22784 /* By Rüdiger Kuhlmann. */
22785 #include <sys/types.h>
22787 # include <unistd.h>
22789 /* Some systems only have a dummy stub for fork() */
22793 $ac_main_return (1);
22794 $ac_main_return (0);
22797 rm -f conftest$ac_exeext
22798 if { (eval echo "$as_me:22798: \"$ac_link\"") >&5
22799 (eval $ac_link) 2>&5
22801 echo "$as_me:22801: \$? = $ac_status" >&5
22802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803 { (eval echo "$as_me:22803: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:22806: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 ac_cv_func_fork_works=yes
22810 echo "$as_me: program exited with status $ac_status" >&5
22811 echo "$as_me: failed program was:" >&5
22812 cat conftest.$ac_ext >&5
22813 ac_cv_func_fork_works=no
22815 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22818 echo "$as_me:22818: result: $ac_cv_func_fork_works" >&5
22819 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22822 if test "x$ac_cv_func_fork_works" = xcross; then
22824 *-*-amigaos* | *-*-msdosdjgpp*)
22825 # Override, as these systems have only a dummy fork() stub
22826 ac_cv_func_fork_works=no
22829 ac_cv_func_fork_works=yes
22832 { echo "$as_me:22832: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
22833 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
22835 ac_cv_func_vfork_works=$ac_cv_func_vfork
22836 if test "x$ac_cv_func_vfork" = xyes; then
22837 echo "$as_me:22837: checking for working vfork" >&5
22838 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22839 if test "${ac_cv_func_vfork_works+set}" = set; then
22840 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 if test "$cross_compiling" = yes; then
22843 ac_cv_func_vfork_works=cross
22845 cat >conftest.$ac_ext <<_ACEOF
22846 #line 22846 "configure"
22847 #include "confdefs.h"
22848 /* Thanks to Paul Eggert for this test. */
22850 #include <sys/types.h>
22851 #include <sys/stat.h>
22853 # include <unistd.h>
22856 # include <vfork.h>
22858 /* On some sparc systems, changes by the child to local and incoming
22859 argument registers are propagated back to the parent. The compiler
22860 is told about this with #include <vfork.h>, but some compilers
22861 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22862 static variable whose address is put into a register that is
22863 clobbered by the vfork. */
22866 sparc_address_test (int arg)
22868 sparc_address_test (arg) int arg;
22871 static pid_t child;
22889 pid_t parent = getpid ();
22892 sparc_address_test ();
22897 /* Here is another test for sparc vfork register problems. This
22898 test uses lots of local variables, at least as many local
22899 variables as main has allocated so far including compiler
22900 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22901 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22902 reuse the register of parent for one of the local variables,
22903 since it will think that parent can't possibly be used any more
22904 in this routine. Assigning to the local variable will thus
22905 munge parent in the parent process. */
22907 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22908 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22909 /* Convince the compiler that p..p7 are live; otherwise, it might
22910 use the same hardware register for all 8 local variables. */
22911 if (p != p1 || p != p2 || p != p3 || p != p4
22912 || p != p5 || p != p6 || p != p7)
22915 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22916 from child file descriptors. If the child closes a descriptor
22917 before it execs or exits, this munges the parent's descriptor
22918 as well. Test for this by closing stdout in the child. */
22919 _exit(close(fileno(stdout)) != 0);
22924 while (wait(&status) != child)
22927 /* Was there some problem with vforking? */
22930 /* Did the child fail? (This shouldn't happen.) */
22933 /* Did the vfork/compiler bug occur? */
22934 || parent != getpid()
22936 /* Did the file descriptor bug occur? */
22937 || fstat(fileno(stdout), &st) != 0
22942 rm -f conftest$ac_exeext
22943 if { (eval echo "$as_me:22943: \"$ac_link\"") >&5
22944 (eval $ac_link) 2>&5
22946 echo "$as_me:22946: \$? = $ac_status" >&5
22947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22948 { (eval echo "$as_me:22948: \"$ac_try\"") >&5
22949 (eval $ac_try) 2>&5
22951 echo "$as_me:22951: \$? = $ac_status" >&5
22952 (exit $ac_status); }; }; then
22953 ac_cv_func_vfork_works=yes
22955 echo "$as_me: program exited with status $ac_status" >&5
22956 echo "$as_me: failed program was:" >&5
22957 cat conftest.$ac_ext >&5
22958 ac_cv_func_vfork_works=no
22960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22963 echo "$as_me:22963: result: $ac_cv_func_vfork_works" >&5
22964 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22967 if test "x$ac_cv_func_fork_works" = xcross; then
22968 ac_cv_func_vfork_works=ac_cv_func_vfork
22969 { echo "$as_me:22969: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
22970 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
22973 if test "x$ac_cv_func_vfork_works" = xyes; then
22975 cat >>confdefs.h <<\EOF
22976 #define HAVE_WORKING_VFORK 1
22981 cat >>confdefs.h <<\EOF
22986 if test "x$ac_cv_func_fork_works" = xyes; then
22988 cat >>confdefs.h <<\EOF
22989 #define HAVE_WORKING_FORK 1
22994 echo "$as_me:22994: checking if fopen accepts explicit binary mode" >&5
22995 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
22996 if test "${cf_cv_fopen_bin_r+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
23000 if test "$cross_compiling" = yes; then
23001 cf_cv_fopen_bin_r=unknown
23003 cat >conftest.$ac_ext <<_ACEOF
23004 #line 23004 "configure"
23005 #include "confdefs.h"
23009 FILE *fp = fopen("conftest.tmp", "wb");
23013 for (p = 0; p < 256; ++p) {
23017 fp = fopen("conftest.tmp", "rb");
23019 for (p = 0; p < 256; ++p) {
23032 ${cf_cv_main_return:-return} (rc);
23036 rm -f conftest$ac_exeext
23037 if { (eval echo "$as_me:23037: \"$ac_link\"") >&5
23038 (eval $ac_link) 2>&5
23040 echo "$as_me:23040: \$? = $ac_status" >&5
23041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23042 { (eval echo "$as_me:23042: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23045 echo "$as_me:23045: \$? = $ac_status" >&5
23046 (exit $ac_status); }; }; then
23047 cf_cv_fopen_bin_r=yes
23049 echo "$as_me: program exited with status $ac_status" >&5
23050 echo "$as_me: failed program was:" >&5
23051 cat conftest.$ac_ext >&5
23052 cf_cv_fopen_bin_r=no
23054 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23058 echo "$as_me:23058: result: $cf_cv_fopen_bin_r" >&5
23059 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
23060 test "x$cf_cv_fopen_bin_r" != xno &&
23061 cat >>confdefs.h <<\EOF
23062 #define USE_FOPEN_BIN_R 1
23065 # special check for test/ditto.c
23067 echo "$as_me:23067: checking for openpty in -lutil" >&5
23068 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
23069 if test "${ac_cv_lib_util_openpty+set}" = set; then
23070 echo $ECHO_N "(cached) $ECHO_C" >&6
23072 ac_check_lib_save_LIBS=$LIBS
23073 LIBS="-lutil $LIBS"
23074 cat >conftest.$ac_ext <<_ACEOF
23075 #line 23075 "configure"
23076 #include "confdefs.h"
23078 /* Override any gcc2 internal prototype to avoid an error. */
23082 /* We use char because int might match the return type of a gcc2
23083 builtin and then its argument prototype would still apply. */
23093 rm -f conftest.$ac_objext conftest$ac_exeext
23094 if { (eval echo "$as_me:23094: \"$ac_link\"") >&5
23095 (eval $ac_link) 2>&5
23097 echo "$as_me:23097: \$? = $ac_status" >&5
23098 (exit $ac_status); } &&
23099 { ac_try='test -s conftest$ac_exeext'
23100 { (eval echo "$as_me:23100: \"$ac_try\"") >&5
23101 (eval $ac_try) 2>&5
23103 echo "$as_me:23103: \$? = $ac_status" >&5
23104 (exit $ac_status); }; }; then
23105 ac_cv_lib_util_openpty=yes
23107 echo "$as_me: failed program was:" >&5
23108 cat conftest.$ac_ext >&5
23109 ac_cv_lib_util_openpty=no
23111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23112 LIBS=$ac_check_lib_save_LIBS
23114 echo "$as_me:23114: result: $ac_cv_lib_util_openpty" >&5
23115 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
23116 if test $ac_cv_lib_util_openpty = yes; then
23122 echo "$as_me:23122: checking for openpty header" >&5
23123 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
23124 if test "${cf_cv_func_openpty+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23128 cf_save_LIBS="$LIBS"
23129 test $cf_cv_lib_util = yes && {
23130 cf_add_libs="$LIBS"
23133 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23134 # filter duplicates
23135 for cf_add_1lib in $cf_add_0lib; do
23136 for cf_add_2lib in $cf_add_libs; do
23137 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23142 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23144 LIBS="$cf_add_libs"
23146 for cf_header in pty.h libutil.h util.h
23148 cat >conftest.$ac_ext <<_ACEOF
23149 #line 23149 "configure"
23150 #include "confdefs.h"
23152 #include <$cf_header>
23158 int x = openpty((int *)0, (int *)0, (char *)0,
23159 (struct termios *)0, (struct winsize *)0);
23165 rm -f conftest.$ac_objext conftest$ac_exeext
23166 if { (eval echo "$as_me:23166: \"$ac_link\"") >&5
23167 (eval $ac_link) 2>&5
23169 echo "$as_me:23169: \$? = $ac_status" >&5
23170 (exit $ac_status); } &&
23171 { ac_try='test -s conftest$ac_exeext'
23172 { (eval echo "$as_me:23172: \"$ac_try\"") >&5
23173 (eval $ac_try) 2>&5
23175 echo "$as_me:23175: \$? = $ac_status" >&5
23176 (exit $ac_status); }; }; then
23178 cf_cv_func_openpty=$cf_header
23182 echo "$as_me: failed program was:" >&5
23183 cat conftest.$ac_ext >&5
23185 cf_cv_func_openpty=no
23188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23190 LIBS="$cf_save_LIBS"
23193 echo "$as_me:23193: result: $cf_cv_func_openpty" >&5
23194 echo "${ECHO_T}$cf_cv_func_openpty" >&6
23196 if test "$cf_cv_func_openpty" != no ; then
23198 cat >>confdefs.h <<EOF
23199 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
23202 cat >>confdefs.h <<\EOF
23203 #define USE_XTERM_PTY 1
23206 if test "x$cf_cv_lib_util" = xyes ; then
23208 cf_add_libs="$TEST_LIBS"
23211 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23212 # filter duplicates
23213 for cf_add_1lib in $cf_add_0lib; do
23214 for cf_add_2lib in $cf_add_libs; do
23215 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23220 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23222 TEST_LIBS="$cf_add_libs"
23227 if test "$with_hashed_db" != no ; then
23229 cat >>confdefs.h <<\EOF
23230 #define USE_HASHED_DB 1
23233 case $with_hashed_db in
23237 if test -d "$with_hashed_db" ; then
23239 if test -n "$with_hashed_db/include" ; then
23240 for cf_add_incdir in $with_hashed_db/include
23242 while test $cf_add_incdir != /usr/include
23244 if test -d $cf_add_incdir
23247 if test -n "$CFLAGS$CPPFLAGS" ; then
23248 # a loop is needed to ensure we can add subdirs of existing dirs
23249 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23250 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23251 cf_have_incdir=yes; break
23256 if test "$cf_have_incdir" = no ; then
23257 if test "$cf_add_incdir" = /usr/local/include ; then
23258 if test "$GCC" = yes
23260 cf_save_CPPFLAGS=$CPPFLAGS
23262 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23263 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23265 cat >conftest.$ac_ext <<_ACEOF
23266 #line 23266 "configure"
23267 #include "confdefs.h"
23277 rm -f conftest.$ac_objext
23278 if { (eval echo "$as_me:23278: \"$ac_compile\"") >&5
23279 (eval $ac_compile) 2>&5
23281 echo "$as_me:23281: \$? = $ac_status" >&5
23282 (exit $ac_status); } &&
23283 { ac_try='test -s conftest.$ac_objext'
23284 { (eval echo "$as_me:23284: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23287 echo "$as_me:23287: \$? = $ac_status" >&5
23288 (exit $ac_status); }; }; then
23291 echo "$as_me: failed program was:" >&5
23292 cat conftest.$ac_ext >&5
23295 rm -f conftest.$ac_objext conftest.$ac_ext
23296 CPPFLAGS=$cf_save_CPPFLAGS
23301 if test "$cf_have_incdir" = no ; then
23302 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
23304 echo "${as_me:-configure}:23304: testing adding $cf_add_incdir to include-path ..." 1>&5
23306 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
23308 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
23309 test "$cf_top_incdir" = "$cf_add_incdir" && break
23310 cf_add_incdir="$cf_top_incdir"
23321 if test -n "$with_hashed_db/lib" ; then
23322 for cf_add_libdir in $with_hashed_db/lib
23324 if test $cf_add_libdir = /usr/lib ; then
23326 elif test -d $cf_add_libdir
23329 if test -n "$LDFLAGS$LIBS" ; then
23330 # a loop is needed to ensure we can add subdirs of existing dirs
23331 for cf_test_libdir in $LDFLAGS $LIBS ; do
23332 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
23333 cf_have_libdir=yes; break
23337 if test "$cf_have_libdir" = no ; then
23338 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
23340 echo "${as_me:-configure}:23340: testing adding $cf_add_libdir to library-path ..." 1>&5
23342 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23349 case "$with_hashed_db" in
23351 { echo "$as_me:23351: WARNING: no such directory $with_hashed_db" >&5
23352 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
23358 test "x$prefix" != "xNONE" && \
23359 test -d "$prefix" && \
23361 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
23362 test -d $prefix/include && cf_search="$cf_search $prefix/include"
23363 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
23364 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
23365 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
23366 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
23369 for cf_subdir_prefix in \
23378 test "x$cf_subdir_prefix" != "x$prefix" && \
23379 test -d "$cf_subdir_prefix" && \
23380 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
23381 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
23382 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
23383 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
23384 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
23385 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
23386 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"
23391 for cf_item in $cf_search
23394 (*/$with_hashed_db)
23396 if test -n "$cf_item" ; then
23397 for cf_add_incdir in $cf_item
23399 while test $cf_add_incdir != /usr/include
23401 if test -d $cf_add_incdir
23404 if test -n "$CFLAGS$CPPFLAGS" ; then
23405 # a loop is needed to ensure we can add subdirs of existing dirs
23406 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23407 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23408 cf_have_incdir=yes; break
23413 if test "$cf_have_incdir" = no ; then
23414 if test "$cf_add_incdir" = /usr/local/include ; then
23415 if test "$GCC" = yes
23417 cf_save_CPPFLAGS=$CPPFLAGS
23419 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23420 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23422 cat >conftest.$ac_ext <<_ACEOF
23423 #line 23423 "configure"
23424 #include "confdefs.h"
23434 rm -f conftest.$ac_objext
23435 if { (eval echo "$as_me:23435: \"$ac_compile\"") >&5
23436 (eval $ac_compile) 2>&5
23438 echo "$as_me:23438: \$? = $ac_status" >&5
23439 (exit $ac_status); } &&
23440 { ac_try='test -s conftest.$ac_objext'
23441 { (eval echo "$as_me:23441: \"$ac_try\"") >&5
23442 (eval $ac_try) 2>&5
23444 echo "$as_me:23444: \$? = $ac_status" >&5
23445 (exit $ac_status); }; }; then
23448 echo "$as_me: failed program was:" >&5
23449 cat conftest.$ac_ext >&5
23452 rm -f conftest.$ac_objext conftest.$ac_ext
23453 CPPFLAGS=$cf_save_CPPFLAGS
23458 if test "$cf_have_incdir" = no ; then
23459 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
23461 echo "${as_me:-configure}:23461: testing adding $cf_add_incdir to include-path ..." 1>&5
23463 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
23465 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
23466 test "$cf_top_incdir" = "$cf_add_incdir" && break
23467 cf_add_incdir="$cf_top_incdir"
23484 test "x$prefix" != "xNONE" && \
23485 test -d "$prefix" && \
23487 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
23488 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
23489 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
23490 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
23491 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
23492 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
23495 for cf_subdir_prefix in \
23504 test "x$cf_subdir_prefix" != "x$prefix" && \
23505 test -d "$cf_subdir_prefix" && \
23506 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
23507 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
23508 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
23509 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
23510 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
23511 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
23512 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"
23517 for cf_item in $cf_search
23520 (*/$with_hashed_db)
23522 if test -n "$cf_item" ; then
23523 for cf_add_libdir in $cf_item
23525 if test $cf_add_libdir = /usr/lib ; then
23527 elif test -d $cf_add_libdir
23530 if test -n "$LDFLAGS$LIBS" ; then
23531 # a loop is needed to ensure we can add subdirs of existing dirs
23532 for cf_test_libdir in $LDFLAGS $LIBS ; do
23533 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
23534 cf_have_libdir=yes; break
23538 if test "$cf_have_libdir" = no ; then
23539 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
23541 echo "${as_me:-configure}:23541: testing adding $cf_add_libdir to library-path ..." 1>&5
23543 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23558 echo "$as_me:23558: checking for db.h" >&5
23559 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
23560 if test "${ac_cv_header_db_h+set}" = set; then
23561 echo $ECHO_N "(cached) $ECHO_C" >&6
23563 cat >conftest.$ac_ext <<_ACEOF
23564 #line 23564 "configure"
23565 #include "confdefs.h"
23568 if { (eval echo "$as_me:23568: \"$ac_cpp conftest.$ac_ext\"") >&5
23569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23571 egrep -v '^ *\+' conftest.er1 >conftest.err
23573 cat conftest.err >&5
23574 echo "$as_me:23574: \$? = $ac_status" >&5
23575 (exit $ac_status); } >/dev/null; then
23576 if test -s conftest.err; then
23577 ac_cpp_err=$ac_c_preproc_warn_flag
23584 if test -z "$ac_cpp_err"; then
23585 ac_cv_header_db_h=yes
23587 echo "$as_me: failed program was:" >&5
23588 cat conftest.$ac_ext >&5
23589 ac_cv_header_db_h=no
23591 rm -f conftest.err conftest.$ac_ext
23593 echo "$as_me:23593: result: $ac_cv_header_db_h" >&5
23594 echo "${ECHO_T}$ac_cv_header_db_h" >&6
23595 if test $ac_cv_header_db_h = yes; then
23597 echo "$as_me:23597: checking for version of db" >&5
23598 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
23599 if test "${cf_cv_hashed_db_version+set}" = set; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
23603 cf_cv_hashed_db_version=unknown
23605 for cf_db_version in 1 2 3 4 5 6
23608 echo "${as_me:-configure}:23608: testing checking for db version $cf_db_version ..." 1>&5
23610 cat >conftest.$ac_ext <<_ACEOF
23611 #line 23611 "configure"
23612 #include "confdefs.h"
23614 $ac_includes_default
23617 #ifdef DB_VERSION_MAJOR
23618 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
23619 #if $cf_db_version == DB_VERSION_MAJOR
23625 #if $cf_db_version == 1
23626 /* ok: assuming this is DB 1.8.5 */
23640 rm -f conftest.$ac_objext
23641 if { (eval echo "$as_me:23641: \"$ac_compile\"") >&5
23642 (eval $ac_compile) 2>&5
23644 echo "$as_me:23644: \$? = $ac_status" >&5
23645 (exit $ac_status); } &&
23646 { ac_try='test -s conftest.$ac_objext'
23647 { (eval echo "$as_me:23647: \"$ac_try\"") >&5
23648 (eval $ac_try) 2>&5
23650 echo "$as_me:23650: \$? = $ac_status" >&5
23651 (exit $ac_status); }; }; then
23653 cf_cv_hashed_db_version=$cf_db_version
23657 echo "$as_me: failed program was:" >&5
23658 cat conftest.$ac_ext >&5
23660 rm -f conftest.$ac_objext conftest.$ac_ext
23664 echo "$as_me:23664: result: $cf_cv_hashed_db_version" >&5
23665 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
23667 if test "$cf_cv_hashed_db_version" = unknown ; then
23668 { { echo "$as_me:23668: error: Cannot determine version of db" >&5
23669 echo "$as_me: error: Cannot determine version of db" >&2;}
23670 { (exit 1); exit 1; }; }
23673 echo "$as_me:23673: checking for db libraries" >&5
23674 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
23675 if test "${cf_cv_hashed_db_libs+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23679 cf_cv_hashed_db_libs=unknown
23680 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
23682 cf_save_libs="$LIBS"
23683 if test -n "$cf_db_libs"; then
23685 cf_add_libs="$LIBS"
23688 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23689 # filter duplicates
23690 for cf_add_1lib in $cf_add_0lib; do
23691 for cf_add_2lib in $cf_add_libs; do
23692 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23697 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23699 LIBS="$cf_add_libs"
23703 echo "${as_me:-configure}:23703: testing checking for library "$cf_db_libs" ..." 1>&5
23705 cat >conftest.$ac_ext <<_ACEOF
23706 #line 23706 "configure"
23707 #include "confdefs.h"
23709 $ac_includes_default
23716 char *path = "/tmp/foo";
23717 #ifdef DB_VERSION_MAJOR
23718 #if DB_VERSION_MAJOR >= 4
23720 db_create(&result, NULL, 0);
23721 result->open(result,
23728 #elif DB_VERSION_MAJOR >= 3
23730 db_create(&result, NULL, 0);
23731 result->open(result,
23737 #elif DB_VERSION_MAJOR >= 2
23746 #endif /* DB_VERSION_MAJOR */
23748 DB *result = dbopen(path,
23754 ${cf_cv_main_return:-return}(result != 0)
23760 rm -f conftest.$ac_objext conftest$ac_exeext
23761 if { (eval echo "$as_me:23761: \"$ac_link\"") >&5
23762 (eval $ac_link) 2>&5
23764 echo "$as_me:23764: \$? = $ac_status" >&5
23765 (exit $ac_status); } &&
23766 { ac_try='test -s conftest$ac_exeext'
23767 { (eval echo "$as_me:23767: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23770 echo "$as_me:23770: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23773 if test -n "$cf_db_libs" ; then
23774 cf_cv_hashed_db_libs=$cf_db_libs
23776 cf_cv_hashed_db_libs=default
23778 LIBS="$cf_save_libs"
23782 echo "$as_me: failed program was:" >&5
23783 cat conftest.$ac_ext >&5
23785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23786 LIBS="$cf_save_libs"
23790 echo "$as_me:23790: result: $cf_cv_hashed_db_libs" >&5
23791 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
23793 if test "$cf_cv_hashed_db_libs" = unknown ; then
23794 { { echo "$as_me:23794: error: Cannot determine library for db" >&5
23795 echo "$as_me: error: Cannot determine library for db" >&2;}
23796 { (exit 1); exit 1; }; }
23797 elif test "$cf_cv_hashed_db_libs" != default ; then
23799 cf_add_libs="$LIBS"
23802 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23803 # filter duplicates
23804 for cf_add_1lib in $cf_add_0lib; do
23805 for cf_add_2lib in $cf_add_libs; do
23806 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23811 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23813 LIBS="$cf_add_libs"
23820 { { echo "$as_me:23820: error: Cannot find db.h" >&5
23821 echo "$as_me: error: Cannot find db.h" >&2;}
23822 { (exit 1); exit 1; }; }
23828 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
23829 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
23830 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
23833 # Just in case, check if the C compiler has a bool type.
23835 echo "$as_me:23835: checking if we should include stdbool.h" >&5
23836 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
23838 if test "${cf_cv_header_stdbool_h+set}" = set; then
23839 echo $ECHO_N "(cached) $ECHO_C" >&6
23842 cat >conftest.$ac_ext <<_ACEOF
23843 #line 23843 "configure"
23844 #include "confdefs.h"
23854 rm -f conftest.$ac_objext
23855 if { (eval echo "$as_me:23855: \"$ac_compile\"") >&5
23856 (eval $ac_compile) 2>&5
23858 echo "$as_me:23858: \$? = $ac_status" >&5
23859 (exit $ac_status); } &&
23860 { ac_try='test -s conftest.$ac_objext'
23861 { (eval echo "$as_me:23861: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23864 echo "$as_me:23864: \$? = $ac_status" >&5
23865 (exit $ac_status); }; }; then
23866 cf_cv_header_stdbool_h=0
23868 echo "$as_me: failed program was:" >&5
23869 cat conftest.$ac_ext >&5
23870 cat >conftest.$ac_ext <<_ACEOF
23871 #line 23871 "configure"
23872 #include "confdefs.h"
23875 #include <stdbool.h>
23886 rm -f conftest.$ac_objext
23887 if { (eval echo "$as_me:23887: \"$ac_compile\"") >&5
23888 (eval $ac_compile) 2>&5
23890 echo "$as_me:23890: \$? = $ac_status" >&5
23891 (exit $ac_status); } &&
23892 { ac_try='test -s conftest.$ac_objext'
23893 { (eval echo "$as_me:23893: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23896 echo "$as_me:23896: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
23898 cf_cv_header_stdbool_h=1
23900 echo "$as_me: failed program was:" >&5
23901 cat conftest.$ac_ext >&5
23902 cf_cv_header_stdbool_h=0
23904 rm -f conftest.$ac_objext conftest.$ac_ext
23906 rm -f conftest.$ac_objext conftest.$ac_ext
23909 if test "$cf_cv_header_stdbool_h" = 1
23910 then echo "$as_me:23910: result: yes" >&5
23911 echo "${ECHO_T}yes" >&6
23912 else echo "$as_me:23912: result: no" >&5
23913 echo "${ECHO_T}no" >&6
23916 echo "$as_me:23916: checking for builtin bool type" >&5
23917 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
23919 if test "${cf_cv_cc_bool_type+set}" = set; then
23920 echo $ECHO_N "(cached) $ECHO_C" >&6
23923 cat >conftest.$ac_ext <<_ACEOF
23924 #line 23924 "configure"
23925 #include "confdefs.h"
23928 #include <sys/types.h>
23938 rm -f conftest.$ac_objext
23939 if { (eval echo "$as_me:23939: \"$ac_compile\"") >&5
23940 (eval $ac_compile) 2>&5
23942 echo "$as_me:23942: \$? = $ac_status" >&5
23943 (exit $ac_status); } &&
23944 { ac_try='test -s conftest.$ac_objext'
23945 { (eval echo "$as_me:23945: \"$ac_try\"") >&5
23946 (eval $ac_try) 2>&5
23948 echo "$as_me:23948: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 cf_cv_cc_bool_type=1
23952 echo "$as_me: failed program was:" >&5
23953 cat conftest.$ac_ext >&5
23954 cf_cv_cc_bool_type=0
23956 rm -f conftest.$ac_objext conftest.$ac_ext
23960 if test "$cf_cv_cc_bool_type" = 1
23961 then echo "$as_me:23961: result: yes" >&5
23962 echo "${ECHO_T}yes" >&6
23963 else echo "$as_me:23963: result: no" >&5
23964 echo "${ECHO_T}no" >&6
23967 # Check for C++ compiler characteristics (and ensure that it's there!)
23968 if test -n "$CXX" ; then
23970 ac_cpp='$CXXCPP $CPPFLAGS'
23971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23974 ac_main_return=return
23976 if test -n "$GXX" ; then
23979 LIBS="$LIBS $CXXLIBS"
23980 echo "$as_me:23980: checking if we already have C++ library" >&5
23981 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
23982 cat >conftest.$ac_ext <<_ACEOF
23983 #line 23983 "configure"
23984 #include "confdefs.h"
23986 #include <iostream>
23991 std::cout << "Hello World!" << std::endl;
23996 rm -f conftest.$ac_objext conftest$ac_exeext
23997 if { (eval echo "$as_me:23997: \"$ac_link\"") >&5
23998 (eval $ac_link) 2>&5
24000 echo "$as_me:24000: \$? = $ac_status" >&5
24001 (exit $ac_status); } &&
24002 { ac_try='test -s conftest$ac_exeext'
24003 { (eval echo "$as_me:24003: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24006 echo "$as_me:24006: \$? = $ac_status" >&5
24007 (exit $ac_status); }; }; then
24008 cf_have_libstdcpp=yes
24010 echo "$as_me: failed program was:" >&5
24011 cat conftest.$ac_ext >&5
24012 cf_have_libstdcpp=no
24014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24015 echo "$as_me:24015: result: $cf_have_libstdcpp" >&5
24016 echo "${ECHO_T}$cf_have_libstdcpp" >&6
24019 if test $cf_have_libstdcpp != yes
24021 case $cf_cv_system_name in
24023 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
24024 cf_stdcpp_libname=stdcpp
24026 cf_stdcpp_libname=stdc++
24030 cf_stdcpp_libname=stdc++
24034 echo "$as_me:24034: checking for library $cf_stdcpp_libname" >&5
24035 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
24036 if test "${cf_cv_libstdcpp+set}" = set; then
24037 echo $ECHO_N "(cached) $ECHO_C" >&6
24041 LIBS="$LIBS $CXXLIBS"
24043 cf_add_libs="$LIBS"
24046 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24047 # filter duplicates
24048 for cf_add_1lib in $cf_add_0lib; do
24049 for cf_add_2lib in $cf_add_libs; do
24050 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24055 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24057 LIBS="$cf_add_libs"
24059 cat >conftest.$ac_ext <<_ACEOF
24060 #line 24060 "configure"
24061 #include "confdefs.h"
24063 #include <iostream>
24068 std::cout << "Hello World!" << std::endl;
24073 rm -f conftest.$ac_objext conftest$ac_exeext
24074 if { (eval echo "$as_me:24074: \"$ac_link\"") >&5
24075 (eval $ac_link) 2>&5
24077 echo "$as_me:24077: \$? = $ac_status" >&5
24078 (exit $ac_status); } &&
24079 { ac_try='test -s conftest$ac_exeext'
24080 { (eval echo "$as_me:24080: \"$ac_try\"") >&5
24081 (eval $ac_try) 2>&5
24083 echo "$as_me:24083: \$? = $ac_status" >&5
24084 (exit $ac_status); }; }; then
24085 cf_cv_libstdcpp=yes
24087 echo "$as_me: failed program was:" >&5
24088 cat conftest.$ac_ext >&5
24091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24095 echo "$as_me:24095: result: $cf_cv_libstdcpp" >&5
24096 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
24097 test "$cf_cv_libstdcpp" = yes && {
24098 cf_add_libs="$CXXLIBS"
24101 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24102 # filter duplicates
24103 for cf_add_1lib in $cf_add_0lib; do
24104 for cf_add_2lib in $cf_add_libs; do
24105 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24110 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24112 CXXLIBS="$cf_add_libs"
24117 echo "$as_me:24117: checking whether $CXX understands -c and -o together" >&5
24118 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
24119 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24123 cat > conftest.$ac_ext <<CF_EOF
24126 ${cf_cv_main_return:-return}(0);
24129 # We do the test twice because some compilers refuse to overwrite an
24130 # existing .o file with -o, though they will create one.
24131 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
24132 if { (eval echo "$as_me:24132: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24135 echo "$as_me:24135: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
24137 test -f conftest2.$ac_objext && { (eval echo "$as_me:24137: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24140 echo "$as_me:24140: \$? = $ac_status" >&5
24141 (exit $ac_status); };
24143 eval cf_cv_prog_CXX_c_o=yes
24145 eval cf_cv_prog_CXX_c_o=no
24150 if test $cf_cv_prog_CXX_c_o = yes; then
24151 echo "$as_me:24151: result: yes" >&5
24152 echo "${ECHO_T}yes" >&6
24154 echo "$as_me:24154: result: no" >&5
24155 echo "${ECHO_T}no" >&6
24158 case $GXX_VERSION in
24159 (1.*|2.[0-6]*|[1-9][0-9].*)
24164 cf_cxx_library=unknown
24165 case $cf_cv_system_name in
24173 if test "$GXX" = yes; then
24174 echo "$as_me:24174: checking for lib$cf_gpp_libname" >&5
24175 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
24178 cf_add_libs="$LIBS"
24181 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24182 # filter duplicates
24183 for cf_add_1lib in $cf_add_0lib; do
24184 for cf_add_2lib in $cf_add_libs; do
24185 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24190 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24192 LIBS="$cf_add_libs"
24194 cat >conftest.$ac_ext <<_ACEOF
24195 #line 24195 "configure"
24196 #include "confdefs.h"
24198 #include <$cf_gpp_libname/builtin.h>
24203 two_arg_error_handler_t foo2 = lib_error_handler
24208 rm -f conftest.$ac_objext conftest$ac_exeext
24209 if { (eval echo "$as_me:24209: \"$ac_link\"") >&5
24210 (eval $ac_link) 2>&5
24212 echo "$as_me:24212: \$? = $ac_status" >&5
24213 (exit $ac_status); } &&
24214 { ac_try='test -s conftest$ac_exeext'
24215 { (eval echo "$as_me:24215: \"$ac_try\"") >&5
24216 (eval $ac_try) 2>&5
24218 echo "$as_me:24218: \$? = $ac_status" >&5
24219 (exit $ac_status); }; }; then
24222 cf_add_libs="$CXXLIBS"
24225 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24226 # filter duplicates
24227 for cf_add_1lib in $cf_add_0lib; do
24228 for cf_add_2lib in $cf_add_libs; do
24229 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24234 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24236 CXXLIBS="$cf_add_libs"
24238 if test "$cf_gpp_libname" = cpp ; then
24240 cat >>confdefs.h <<\EOF
24241 #define HAVE_GPP_BUILTIN_H 1
24246 cat >>confdefs.h <<\EOF
24247 #define HAVE_GXX_BUILTIN_H 1
24252 echo "$as_me: failed program was:" >&5
24253 cat conftest.$ac_ext >&5
24254 cat >conftest.$ac_ext <<_ACEOF
24255 #line 24255 "configure"
24256 #include "confdefs.h"
24258 #include <builtin.h>
24263 two_arg_error_handler_t foo2 = lib_error_handler
24268 rm -f conftest.$ac_objext conftest$ac_exeext
24269 if { (eval echo "$as_me:24269: \"$ac_link\"") >&5
24270 (eval $ac_link) 2>&5
24272 echo "$as_me:24272: \$? = $ac_status" >&5
24273 (exit $ac_status); } &&
24274 { ac_try='test -s conftest$ac_exeext'
24275 { (eval echo "$as_me:24275: \"$ac_try\"") >&5
24276 (eval $ac_try) 2>&5
24278 echo "$as_me:24278: \$? = $ac_status" >&5
24279 (exit $ac_status); }; }; then
24282 cf_add_libs="$CXXLIBS"
24285 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24286 # filter duplicates
24287 for cf_add_1lib in $cf_add_0lib; do
24288 for cf_add_2lib in $cf_add_libs; do
24289 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24294 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24296 CXXLIBS="$cf_add_libs"
24298 cat >>confdefs.h <<\EOF
24299 #define HAVE_BUILTIN_H 1
24303 echo "$as_me: failed program was:" >&5
24304 cat conftest.$ac_ext >&5
24307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24311 echo "$as_me:24311: result: $cf_cxx_library" >&5
24312 echo "${ECHO_T}$cf_cxx_library" >&6
24322 ac_cpp='$CXXCPP $CPPFLAGS'
24323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24326 ac_main_return=return
24327 echo "$as_me:24327: checking how to run the C++ preprocessor" >&5
24328 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
24329 if test -z "$CXXCPP"; then
24330 if test "${ac_cv_prog_CXXCPP+set}" = set; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24333 # Double quotes because CXXCPP needs to be expanded
24334 for CXXCPP in "$CXX -E" "/lib/cpp"
24336 ac_preproc_ok=false
24337 for ac_cxx_preproc_warn_flag in '' yes
24339 # Use a header file that comes with gcc, so configuring glibc
24340 # with a fresh cross-compiler works.
24341 # On the NeXT, cc -E runs the code through the compiler's parser,
24342 # not just through cpp. "Syntax error" is here to catch this case.
24343 cat >conftest.$ac_ext <<_ACEOF
24344 #line 24344 "configure"
24345 #include "confdefs.h"
24346 #include <assert.h>
24349 if { (eval echo "$as_me:24349: \"$ac_cpp conftest.$ac_ext\"") >&5
24350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24352 egrep -v '^ *\+' conftest.er1 >conftest.err
24354 cat conftest.err >&5
24355 echo "$as_me:24355: \$? = $ac_status" >&5
24356 (exit $ac_status); } >/dev/null; then
24357 if test -s conftest.err; then
24358 ac_cpp_err=$ac_cxx_preproc_warn_flag
24365 if test -z "$ac_cpp_err"; then
24368 echo "$as_me: failed program was:" >&5
24369 cat conftest.$ac_ext >&5
24370 # Broken: fails on valid input.
24373 rm -f conftest.err conftest.$ac_ext
24375 # OK, works on sane cases. Now check whether non-existent headers
24376 # can be detected and how.
24377 cat >conftest.$ac_ext <<_ACEOF
24378 #line 24378 "configure"
24379 #include "confdefs.h"
24380 #include <ac_nonexistent.h>
24382 if { (eval echo "$as_me:24382: \"$ac_cpp conftest.$ac_ext\"") >&5
24383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24385 egrep -v '^ *\+' conftest.er1 >conftest.err
24387 cat conftest.err >&5
24388 echo "$as_me:24388: \$? = $ac_status" >&5
24389 (exit $ac_status); } >/dev/null; then
24390 if test -s conftest.err; then
24391 ac_cpp_err=$ac_cxx_preproc_warn_flag
24398 if test -z "$ac_cpp_err"; then
24399 # Broken: success on invalid input.
24402 echo "$as_me: failed program was:" >&5
24403 cat conftest.$ac_ext >&5
24404 # Passes both tests.
24408 rm -f conftest.err conftest.$ac_ext
24411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24412 rm -f conftest.err conftest.$ac_ext
24413 if $ac_preproc_ok; then
24418 ac_cv_prog_CXXCPP=$CXXCPP
24421 CXXCPP=$ac_cv_prog_CXXCPP
24423 ac_cv_prog_CXXCPP=$CXXCPP
24425 echo "$as_me:24425: result: $CXXCPP" >&5
24426 echo "${ECHO_T}$CXXCPP" >&6
24427 ac_preproc_ok=false
24428 for ac_cxx_preproc_warn_flag in '' yes
24430 # Use a header file that comes with gcc, so configuring glibc
24431 # with a fresh cross-compiler works.
24432 # On the NeXT, cc -E runs the code through the compiler's parser,
24433 # not just through cpp. "Syntax error" is here to catch this case.
24434 cat >conftest.$ac_ext <<_ACEOF
24435 #line 24435 "configure"
24436 #include "confdefs.h"
24437 #include <assert.h>
24440 if { (eval echo "$as_me:24440: \"$ac_cpp conftest.$ac_ext\"") >&5
24441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24443 egrep -v '^ *\+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 echo "$as_me:24446: \$? = $ac_status" >&5
24447 (exit $ac_status); } >/dev/null; then
24448 if test -s conftest.err; then
24449 ac_cpp_err=$ac_cxx_preproc_warn_flag
24456 if test -z "$ac_cpp_err"; then
24459 echo "$as_me: failed program was:" >&5
24460 cat conftest.$ac_ext >&5
24461 # Broken: fails on valid input.
24464 rm -f conftest.err conftest.$ac_ext
24466 # OK, works on sane cases. Now check whether non-existent headers
24467 # can be detected and how.
24468 cat >conftest.$ac_ext <<_ACEOF
24469 #line 24469 "configure"
24470 #include "confdefs.h"
24471 #include <ac_nonexistent.h>
24473 if { (eval echo "$as_me:24473: \"$ac_cpp conftest.$ac_ext\"") >&5
24474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24476 egrep -v '^ *\+' conftest.er1 >conftest.err
24478 cat conftest.err >&5
24479 echo "$as_me:24479: \$? = $ac_status" >&5
24480 (exit $ac_status); } >/dev/null; then
24481 if test -s conftest.err; then
24482 ac_cpp_err=$ac_cxx_preproc_warn_flag
24489 if test -z "$ac_cpp_err"; then
24490 # Broken: success on invalid input.
24493 echo "$as_me: failed program was:" >&5
24494 cat conftest.$ac_ext >&5
24495 # Passes both tests.
24499 rm -f conftest.err conftest.$ac_ext
24502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24503 rm -f conftest.err conftest.$ac_ext
24504 if $ac_preproc_ok; then
24507 { { echo "$as_me:24507: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
24508 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
24509 { (exit 1); exit 1; }; }
24513 ac_cpp='$CXXCPP $CPPFLAGS'
24514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24517 ac_main_return=return
24519 for ac_header in typeinfo
24521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24522 echo "$as_me:24522: checking for $ac_header" >&5
24523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24527 cat >conftest.$ac_ext <<_ACEOF
24528 #line 24528 "configure"
24529 #include "confdefs.h"
24530 #include <$ac_header>
24532 if { (eval echo "$as_me:24532: \"$ac_cpp conftest.$ac_ext\"") >&5
24533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24535 egrep -v '^ *\+' conftest.er1 >conftest.err
24537 cat conftest.err >&5
24538 echo "$as_me:24538: \$? = $ac_status" >&5
24539 (exit $ac_status); } >/dev/null; then
24540 if test -s conftest.err; then
24541 ac_cpp_err=$ac_cxx_preproc_warn_flag
24548 if test -z "$ac_cpp_err"; then
24549 eval "$as_ac_Header=yes"
24551 echo "$as_me: failed program was:" >&5
24552 cat conftest.$ac_ext >&5
24553 eval "$as_ac_Header=no"
24555 rm -f conftest.err conftest.$ac_ext
24557 echo "$as_me:24557: result: `eval echo '${'$as_ac_Header'}'`" >&5
24558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24560 cat >>confdefs.h <<EOF
24561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24567 for ac_header in iostream
24569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24570 echo "$as_me:24570: checking for $ac_header" >&5
24571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24575 cat >conftest.$ac_ext <<_ACEOF
24576 #line 24576 "configure"
24577 #include "confdefs.h"
24578 #include <$ac_header>
24580 if { (eval echo "$as_me:24580: \"$ac_cpp conftest.$ac_ext\"") >&5
24581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24583 egrep -v '^ *\+' conftest.er1 >conftest.err
24585 cat conftest.err >&5
24586 echo "$as_me:24586: \$? = $ac_status" >&5
24587 (exit $ac_status); } >/dev/null; then
24588 if test -s conftest.err; then
24589 ac_cpp_err=$ac_cxx_preproc_warn_flag
24596 if test -z "$ac_cpp_err"; then
24597 eval "$as_ac_Header=yes"
24599 echo "$as_me: failed program was:" >&5
24600 cat conftest.$ac_ext >&5
24601 eval "$as_ac_Header=no"
24603 rm -f conftest.err conftest.$ac_ext
24605 echo "$as_me:24605: result: `eval echo '${'$as_ac_Header'}'`" >&5
24606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24608 cat >>confdefs.h <<EOF
24609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24615 if test x"$ac_cv_header_iostream" = xyes ; then
24616 echo "$as_me:24616: checking if iostream uses std-namespace" >&5
24617 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
24618 cat >conftest.$ac_ext <<_ACEOF
24619 #line 24619 "configure"
24620 #include "confdefs.h"
24622 #include <iostream>
24629 cerr << "testing" << endl;
24635 rm -f conftest.$ac_objext
24636 if { (eval echo "$as_me:24636: \"$ac_compile\"") >&5
24637 (eval $ac_compile) 2>&5
24639 echo "$as_me:24639: \$? = $ac_status" >&5
24640 (exit $ac_status); } &&
24641 { ac_try='test -s conftest.$ac_objext'
24642 { (eval echo "$as_me:24642: \"$ac_try\"") >&5
24643 (eval $ac_try) 2>&5
24645 echo "$as_me:24645: \$? = $ac_status" >&5
24646 (exit $ac_status); }; }; then
24647 cf_iostream_namespace=yes
24649 echo "$as_me: failed program was:" >&5
24650 cat conftest.$ac_ext >&5
24651 cf_iostream_namespace=no
24653 rm -f conftest.$ac_objext conftest.$ac_ext
24654 echo "$as_me:24654: result: $cf_iostream_namespace" >&5
24655 echo "${ECHO_T}$cf_iostream_namespace" >&6
24656 if test "$cf_iostream_namespace" = yes ; then
24658 cat >>confdefs.h <<\EOF
24659 #define IOSTREAM_NAMESPACE 1
24665 echo "$as_me:24665: checking if we should include stdbool.h" >&5
24666 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24668 if test "${cf_cv_header_stdbool_h+set}" = set; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 cat >conftest.$ac_ext <<_ACEOF
24673 #line 24673 "configure"
24674 #include "confdefs.h"
24684 rm -f conftest.$ac_objext
24685 if { (eval echo "$as_me:24685: \"$ac_compile\"") >&5
24686 (eval $ac_compile) 2>&5
24688 echo "$as_me:24688: \$? = $ac_status" >&5
24689 (exit $ac_status); } &&
24690 { ac_try='test -s conftest.$ac_objext'
24691 { (eval echo "$as_me:24691: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24694 echo "$as_me:24694: \$? = $ac_status" >&5
24695 (exit $ac_status); }; }; then
24696 cf_cv_header_stdbool_h=0
24698 echo "$as_me: failed program was:" >&5
24699 cat conftest.$ac_ext >&5
24700 cat >conftest.$ac_ext <<_ACEOF
24701 #line 24701 "configure"
24702 #include "confdefs.h"
24705 #include <stdbool.h>
24716 rm -f conftest.$ac_objext
24717 if { (eval echo "$as_me:24717: \"$ac_compile\"") >&5
24718 (eval $ac_compile) 2>&5
24720 echo "$as_me:24720: \$? = $ac_status" >&5
24721 (exit $ac_status); } &&
24722 { ac_try='test -s conftest.$ac_objext'
24723 { (eval echo "$as_me:24723: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24726 echo "$as_me:24726: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 cf_cv_header_stdbool_h=1
24730 echo "$as_me: failed program was:" >&5
24731 cat conftest.$ac_ext >&5
24732 cf_cv_header_stdbool_h=0
24734 rm -f conftest.$ac_objext conftest.$ac_ext
24736 rm -f conftest.$ac_objext conftest.$ac_ext
24739 if test "$cf_cv_header_stdbool_h" = 1
24740 then echo "$as_me:24740: result: yes" >&5
24741 echo "${ECHO_T}yes" >&6
24742 else echo "$as_me:24742: result: no" >&5
24743 echo "${ECHO_T}no" >&6
24746 echo "$as_me:24746: checking for builtin bool type" >&5
24747 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24749 if test "${cf_cv_builtin_bool+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24753 cat >conftest.$ac_ext <<_ACEOF
24754 #line 24754 "configure"
24755 #include "confdefs.h"
24758 #include <sys/types.h>
24768 rm -f conftest.$ac_objext
24769 if { (eval echo "$as_me:24769: \"$ac_compile\"") >&5
24770 (eval $ac_compile) 2>&5
24772 echo "$as_me:24772: \$? = $ac_status" >&5
24773 (exit $ac_status); } &&
24774 { ac_try='test -s conftest.$ac_objext'
24775 { (eval echo "$as_me:24775: \"$ac_try\"") >&5
24776 (eval $ac_try) 2>&5
24778 echo "$as_me:24778: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 cf_cv_builtin_bool=1
24782 echo "$as_me: failed program was:" >&5
24783 cat conftest.$ac_ext >&5
24784 cf_cv_builtin_bool=0
24786 rm -f conftest.$ac_objext conftest.$ac_ext
24790 if test "$cf_cv_builtin_bool" = 1
24791 then echo "$as_me:24791: result: yes" >&5
24792 echo "${ECHO_T}yes" >&6
24793 else echo "$as_me:24793: result: no" >&5
24794 echo "${ECHO_T}no" >&6
24797 echo "$as_me:24797: checking for size of bool" >&5
24798 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
24799 if test "${cf_cv_type_of_bool+set}" = set; then
24800 echo $ECHO_N "(cached) $ECHO_C" >&6
24804 if test "$cross_compiling" = yes; then
24805 cf_cv_type_of_bool=unknown
24807 cat >conftest.$ac_ext <<_ACEOF
24808 #line 24808 "configure"
24809 #include "confdefs.h"
24811 #include <stdlib.h>
24814 #if defined(__cplusplus)
24816 #ifdef HAVE_GXX_BUILTIN_H
24817 #include <g++/builtin.h>
24818 #elif HAVE_GPP_BUILTIN_H
24819 #include <gpp/builtin.h>
24820 #elif HAVE_BUILTIN_H
24821 #include <builtin.h>
24826 #if $cf_cv_header_stdbool_h
24827 #include <stdbool.h>
24834 FILE *fp = fopen("cf_test.out", "w");
24837 if ((bool)(-x) >= 0)
24838 fputs("unsigned ", fp);
24839 if (sizeof(x) == sizeof(int)) fputs("int", fp);
24840 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
24841 else if (sizeof(x) == sizeof(short))fputs("short",fp);
24842 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
24845 ${cf_cv_main_return:-return}(0);
24849 rm -f conftest$ac_exeext
24850 if { (eval echo "$as_me:24850: \"$ac_link\"") >&5
24851 (eval $ac_link) 2>&5
24853 echo "$as_me:24853: \$? = $ac_status" >&5
24854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24855 { (eval echo "$as_me:24855: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24858 echo "$as_me:24858: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 cf_cv_type_of_bool=`cat cf_test.out`
24861 if test -z "$cf_cv_type_of_bool"; then
24862 cf_cv_type_of_bool=unknown
24865 echo "$as_me: program exited with status $ac_status" >&5
24866 echo "$as_me: failed program was:" >&5
24867 cat conftest.$ac_ext >&5
24868 cf_cv_type_of_bool=unknown
24870 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24876 echo "$as_me:24876: result: $cf_cv_type_of_bool" >&5
24877 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
24878 if test "$cf_cv_type_of_bool" = unknown ; then
24879 case .$NCURSES_BOOL in
24880 (.auto|.) NCURSES_BOOL=unsigned;;
24882 { echo "$as_me:24882: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
24883 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
24884 cf_cv_type_of_bool=$NCURSES_BOOL
24887 echo "$as_me:24887: checking for special defines needed for etip.h" >&5
24888 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
24889 cf_save_CXXFLAGS="$CXXFLAGS"
24892 # etip.h includes ncurses.h which includes ncurses_dll.h
24893 # But ncurses_dll.h is generated - fix here.
24894 test -d include || mkdir include
24895 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
24897 for cf_math in "" MATH_H
24899 for cf_excp in "" MATH_EXCEPTION
24901 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
24902 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
24903 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
24904 cat >conftest.$ac_ext <<_ACEOF
24905 #line 24905 "configure"
24906 #include "confdefs.h"
24908 #include <etip.h.in>
24918 rm -f conftest.$ac_objext
24919 if { (eval echo "$as_me:24919: \"$ac_compile\"") >&5
24920 (eval $ac_compile) 2>&5
24922 echo "$as_me:24922: \$? = $ac_status" >&5
24923 (exit $ac_status); } &&
24924 { ac_try='test -s conftest.$ac_objext'
24925 { (eval echo "$as_me:24925: \"$ac_try\"") >&5
24926 (eval $ac_try) 2>&5
24928 echo "$as_me:24928: \$? = $ac_status" >&5
24929 (exit $ac_status); }; }; then
24931 test -n "$cf_math" && cat >>confdefs.h <<EOF
24932 #define ETIP_NEEDS_${cf_math} 1
24935 test -n "$cf_excp" && cat >>confdefs.h <<EOF
24936 #define ETIP_NEEDS_${cf_excp} 1
24939 cf_result="$cf_math $cf_excp"
24943 echo "$as_me: failed program was:" >&5
24944 cat conftest.$ac_ext >&5
24946 rm -f conftest.$ac_objext conftest.$ac_ext
24949 echo "$as_me:24949: result: $cf_result" >&5
24950 echo "${ECHO_T}$cf_result" >&6
24951 CXXFLAGS="$cf_save_CXXFLAGS"
24953 if test -n "$CXX"; then
24954 echo "$as_me:24954: checking if $CXX accepts parameter initialization" >&5
24955 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
24956 if test "${cf_cv_cpp_param_init+set}" = set; then
24957 echo $ECHO_N "(cached) $ECHO_C" >&6
24961 ac_cpp='$CXXCPP $CPPFLAGS'
24962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24965 ac_main_return=return
24967 if test "$cross_compiling" = yes; then
24968 cf_cv_cpp_param_init=unknown
24970 cat >conftest.$ac_ext <<_ACEOF
24971 #line 24971 "configure"
24972 #include "confdefs.h"
24982 TEST::TEST(int x = 1) // some compilers do not like second initializer
24989 rm -f conftest$ac_exeext
24990 if { (eval echo "$as_me:24990: \"$ac_link\"") >&5
24991 (eval $ac_link) 2>&5
24993 echo "$as_me:24993: \$? = $ac_status" >&5
24994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24995 { (eval echo "$as_me:24995: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24998 echo "$as_me:24998: \$? = $ac_status" >&5
24999 (exit $ac_status); }; }; then
25000 cf_cv_cpp_param_init=yes
25002 echo "$as_me: program exited with status $ac_status" >&5
25003 echo "$as_me: failed program was:" >&5
25004 cat conftest.$ac_ext >&5
25005 cf_cv_cpp_param_init=no
25007 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25010 ac_cpp='$CXXCPP $CPPFLAGS'
25011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25014 ac_main_return=return
25017 echo "$as_me:25017: result: $cf_cv_cpp_param_init" >&5
25018 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
25020 test "$cf_cv_cpp_param_init" = yes &&
25021 cat >>confdefs.h <<\EOF
25022 #define CPP_HAS_PARAM_INIT 1
25025 if test -n "$CXX"; then
25027 echo "$as_me:25027: checking if $CXX accepts static_cast" >&5
25028 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
25029 if test "${cf_cv_cpp_static_cast+set}" = set; then
25030 echo $ECHO_N "(cached) $ECHO_C" >&6
25034 ac_cpp='$CXXCPP $CPPFLAGS'
25035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25038 ac_main_return=return
25040 cat >conftest.$ac_ext <<_ACEOF
25041 #line 25041 "configure"
25042 #include "confdefs.h"
25047 NCursesPanel(int nlines,
25057 template<class T> class NCursesUserPanel : public NCursesPanel
25060 NCursesUserPanel (int nlines,
25064 const T* p_UserData = static_cast<T*>(0))
25065 : NCursesPanel (nlines, ncols, begin_y, begin_x)
25068 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
25072 virtual ~NCursesUserPanel() {};
25079 const char* p_UserData = static_cast<char*>(0)
25084 rm -f conftest.$ac_objext
25085 if { (eval echo "$as_me:25085: \"$ac_compile\"") >&5
25086 (eval $ac_compile) 2>&5
25088 echo "$as_me:25088: \$? = $ac_status" >&5
25089 (exit $ac_status); } &&
25090 { ac_try='test -s conftest.$ac_objext'
25091 { (eval echo "$as_me:25091: \"$ac_try\"") >&5
25092 (eval $ac_try) 2>&5
25094 echo "$as_me:25094: \$? = $ac_status" >&5
25095 (exit $ac_status); }; }; then
25096 cf_cv_cpp_static_cast=yes
25098 echo "$as_me: failed program was:" >&5
25099 cat conftest.$ac_ext >&5
25100 cf_cv_cpp_static_cast=no
25102 rm -f conftest.$ac_objext conftest.$ac_ext
25105 ac_cpp='$CXXCPP $CPPFLAGS'
25106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25109 ac_main_return=return
25112 echo "$as_me:25112: result: $cf_cv_cpp_static_cast" >&5
25113 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
25117 test "$cf_cv_cpp_static_cast" = yes &&
25118 cat >>confdefs.h <<\EOF
25119 #define CPP_HAS_STATIC_CAST 1
25123 CXX_ARFLAGS='$(ARFLAGS)'
25124 case $cf_cv_system_name in
25126 if test "$GXX" != yes ; then
25128 CXX_ARFLAGS='-ar -o'
25132 CXXLDFLAGS="-u main"
25135 if test "$GXX" != yes ; then
25137 CXX_ARFLAGS='-xar -o'
25144 cf_cv_builtin_bool=1
25146 # Just because we are not configuring against C++ right now does not
25147 # mean that a user will not want to use C++. Some distributors disable
25148 # the C++ portion of this configuration as a shortcut (or just to avoid
25149 # compiling the demo in the c++ directory). So we need a reasonable
25150 # default for the 'bool' type.
25152 # Caveat: since the storage of the bool type is not standardized, it
25155 if test "$NCURSES_BOOL" != auto ; then
25156 cf_cv_type_of_bool=$NCURSES_BOOL
25157 cf_cv_header_stdbool_h=0
25159 if test "$cf_cv_header_stdbool_h" = 1 ; then
25161 echo "$as_me:25161: checking for size of bool" >&5
25162 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
25163 if test "${cf_cv_type_of_bool+set}" = set; then
25164 echo $ECHO_N "(cached) $ECHO_C" >&6
25168 if test "$cross_compiling" = yes; then
25169 cf_cv_type_of_bool=unknown
25171 cat >conftest.$ac_ext <<_ACEOF
25172 #line 25172 "configure"
25173 #include "confdefs.h"
25175 #include <stdlib.h>
25178 #if defined(__cplusplus)
25180 #ifdef HAVE_GXX_BUILTIN_H
25181 #include <g++/builtin.h>
25182 #elif HAVE_GPP_BUILTIN_H
25183 #include <gpp/builtin.h>
25184 #elif HAVE_BUILTIN_H
25185 #include <builtin.h>
25190 #if $cf_cv_header_stdbool_h
25191 #include <stdbool.h>
25198 FILE *fp = fopen("cf_test.out", "w");
25201 if ((bool)(-x) >= 0)
25202 fputs("unsigned ", fp);
25203 if (sizeof(x) == sizeof(int)) fputs("int", fp);
25204 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
25205 else if (sizeof(x) == sizeof(short))fputs("short",fp);
25206 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
25209 ${cf_cv_main_return:-return}(0);
25213 rm -f conftest$ac_exeext
25214 if { (eval echo "$as_me:25214: \"$ac_link\"") >&5
25215 (eval $ac_link) 2>&5
25217 echo "$as_me:25217: \$? = $ac_status" >&5
25218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25219 { (eval echo "$as_me:25219: \"$ac_try\"") >&5
25220 (eval $ac_try) 2>&5
25222 echo "$as_me:25222: \$? = $ac_status" >&5
25223 (exit $ac_status); }; }; then
25224 cf_cv_type_of_bool=`cat cf_test.out`
25225 if test -z "$cf_cv_type_of_bool"; then
25226 cf_cv_type_of_bool=unknown
25229 echo "$as_me: program exited with status $ac_status" >&5
25230 echo "$as_me: failed program was:" >&5
25231 cat conftest.$ac_ext >&5
25232 cf_cv_type_of_bool=unknown
25234 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25240 echo "$as_me:25240: result: $cf_cv_type_of_bool" >&5
25241 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
25242 if test "$cf_cv_type_of_bool" = unknown ; then
25243 case .$NCURSES_BOOL in
25244 (.auto|.) NCURSES_BOOL=unsigned;;
25246 { echo "$as_me:25246: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
25247 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
25248 cf_cv_type_of_bool=$NCURSES_BOOL
25252 echo "$as_me:25252: checking for fallback type of bool" >&5
25253 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
25254 case "$host_cpu" in
25255 (i?86) cf_cv_type_of_bool=char ;;
25256 (*) cf_cv_type_of_bool=int ;;
25258 echo "$as_me:25258: result: $cf_cv_type_of_bool" >&5
25259 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
25264 # If the C compiler did not declare bool, and we did not determine that the C++
25265 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
25266 # ncurses library use the same type as C++ bool. Note that this allows one to
25267 # specify the type of bool in a configure-script option and postpone
25268 # integration with the C++ compiler provided that the types are compatible.
25270 if test $cf_cv_cc_bool_type = 1
25272 # oops: C has a bool. Unlikely, but C++ could differ.
25274 elif test $cf_cv_builtin_bool = 0
25279 # this is the normal case
25280 USE_CXX_BOOL='defined(__cplusplus)'
25283 if test -f "${srcdir}/Ada95/Makefile.in" ; then
25285 if test "$cf_with_ada" != "no" ; then
25286 if test "$with_libtool" != "no"; then
25287 { echo "$as_me:25287: WARNING: libtool does not support Ada - disabling feature" >&5
25288 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
25293 if test "$cf_with_ada" != "no" ; then
25295 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
25298 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
25300 unset ac_cv_path_cf_TEMP_gnat
25302 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
25303 set dummy $cf_prog_gnat; ac_word=$2
25304 echo "$as_me:25304: checking for $ac_word" >&5
25305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25306 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
25307 echo $ECHO_N "(cached) $ECHO_C" >&6
25309 case $cf_TEMP_gnat in
25311 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
25314 ac_save_IFS=$IFS; IFS=$ac_path_separator
25316 for ac_dir in $ac_dummy; do
25318 test -z "$ac_dir" && ac_dir=.
25319 if $as_executable_p "$ac_dir/$ac_word"; then
25320 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
25321 echo "$as_me:25321: found $ac_dir/$ac_word" >&5
25326 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
25330 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
25332 if test -n "$cf_TEMP_gnat"; then
25333 echo "$as_me:25333: result: $cf_TEMP_gnat" >&5
25334 echo "${ECHO_T}$cf_TEMP_gnat" >&6
25336 echo "$as_me:25336: result: no" >&5
25337 echo "${ECHO_T}no" >&6
25340 eval cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat
25342 if test "x$cf_TEMP_gnat" != xno; then
25343 unset cf_cv_gnat_version
25346 echo "$as_me:25346: checking for $cf_prog_gnat version" >&5
25347 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
25348 if test "${cf_cv_gnat_version+set}" = set; then
25349 echo $ECHO_N "(cached) $ECHO_C" >&6
25352 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
25353 grep '[0-9].[0-9][0-9]*' |\
25354 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
25357 echo "$as_me:25357: result: $cf_cv_gnat_version" >&5
25358 echo "${ECHO_T}$cf_cv_gnat_version" >&6
25359 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
25360 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
25363 eval cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat
25366 unset cf_cv_gnat_version
25367 unset ac_cv_path_cf_TEMP_gnat
25370 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
25372 cf_cv_prog_gnat_correct=no
25374 cf_ada_make=gnatmake
25375 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
25376 # gprconfig is newer than gnatmake; we can continue...
25379 rm -rf conftest* *~conftest*
25380 if mkdir conftest.src
25384 for cf_gprconfig in Ada C
25386 echo "$as_me:25386: checking for gprconfig name for $cf_gprconfig" >&5
25387 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
25388 if test $cf_gprconfig = C
25390 for cf_gprconfig_param in \
25391 $cf_gprconfig,,,,GNATGCC \
25392 $cf_gprconfig,,,,GCC \
25395 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
25396 test -n "$cf_gprconfig_value" && break
25399 cf_gprconfig_param=$cf_gprconfig
25400 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
25402 if test -n "$cf_gprconfig_value"
25404 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
25405 echo "$as_me:25405: result: $cf_gprconfig_value" >&5
25406 echo "${ECHO_T}$cf_gprconfig_value" >&6
25408 echo "$as_me:25408: result: missing" >&5
25409 echo "${ECHO_T}missing" >&6
25415 rm -rf conftest* *~conftest*
25418 if test "x$cf_ada_config" != "x#"
25421 echo "$as_me:25421: checking for gnat version" >&5
25422 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
25423 if test "${cf_cv_gnat_version+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
25428 grep '[0-9].[0-9][0-9]*' |\
25429 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
25432 echo "$as_me:25432: result: $cf_cv_gnat_version" >&5
25433 echo "${ECHO_T}$cf_cv_gnat_version" >&6
25434 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
25436 case $cf_cv_gnat_version in
25437 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
25438 cf_cv_prog_gnat_correct=yes
25441 { echo "$as_me:25441: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
25442 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
25443 cf_cv_prog_gnat_correct=no
25447 # Extract the first word of "m4", so it can be a program name with args.
25448 set dummy m4; ac_word=$2
25449 echo "$as_me:25449: checking for $ac_word" >&5
25450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25451 if test "${ac_cv_prog_M4_exists+set}" = set; then
25452 echo $ECHO_N "(cached) $ECHO_C" >&6
25454 if test -n "$M4_exists"; then
25455 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
25457 ac_save_IFS=$IFS; IFS=$ac_path_separator
25459 for ac_dir in $ac_dummy; do
25461 test -z "$ac_dir" && ac_dir=.
25462 $as_executable_p "$ac_dir/$ac_word" || continue
25463 ac_cv_prog_M4_exists="yes"
25464 echo "$as_me:25464: found $ac_dir/$ac_word" >&5
25468 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
25471 M4_exists=$ac_cv_prog_M4_exists
25472 if test -n "$M4_exists"; then
25473 echo "$as_me:25473: result: $M4_exists" >&5
25474 echo "${ECHO_T}$M4_exists" >&6
25476 echo "$as_me:25476: result: no" >&5
25477 echo "${ECHO_T}no" >&6
25480 if test "$ac_cv_prog_M4_exists" = no; then
25481 cf_cv_prog_gnat_correct=no
25482 { echo "$as_me:25482: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
25483 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
25485 if test "$cf_cv_prog_gnat_correct" = yes; then
25486 echo "$as_me:25486: checking if GNAT works" >&5
25487 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
25489 rm -rf conftest* *~conftest*
25490 cat >>conftest.ads <<CF_EOF
25491 procedure conftest;
25493 cat >>conftest.adb <<CF_EOF
25496 procedure conftest is
25498 Text_IO.Put ("Hello World");
25500 GNAT.OS_Lib.OS_Exit (0);
25503 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
25504 if ( ./conftest 1>&5 2>&1 ) ; then
25505 cf_cv_prog_gnat_correct=yes
25507 cf_cv_prog_gnat_correct=no
25510 cf_cv_prog_gnat_correct=no
25512 rm -rf conftest* *~conftest*
25514 echo "$as_me:25514: result: $cf_cv_prog_gnat_correct" >&5
25515 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
25518 cf_cv_prog_gnat_correct=no
25522 if test "x$cf_cv_prog_gnat_correct" = xyes; then
25524 ADAFLAGS="$ADAFLAGS -gnatpn"
25526 echo "$as_me:25526: checking optimization options for ADAFLAGS" >&5
25527 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
25531 ADAFLAGS="$ADAFLAGS -g"
25537 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
25539 ADAFLAGS="$ADAFLAGS $cf_O_flag"
25543 echo "$as_me:25543: result: $ADAFLAGS" >&5
25544 echo "${ECHO_T}$ADAFLAGS" >&6
25546 echo "$as_me:25546: checking if GNATPREP supports -T option" >&5
25547 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
25548 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25552 cf_cv_gnatprep_opt_t=no
25553 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
25556 echo "$as_me:25556: result: $cf_cv_gnatprep_opt_t" >&5
25557 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
25558 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
25560 echo "$as_me:25560: checking if GNAT supports generics" >&5
25561 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
25562 case $cf_cv_gnat_version in
25563 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
25564 cf_gnat_generics=yes
25567 cf_gnat_generics=no
25570 echo "$as_me:25570: result: $cf_gnat_generics" >&5
25571 echo "${ECHO_T}$cf_gnat_generics" >&6
25573 if test "$cf_gnat_generics" = yes
25575 cf_compile_generics=generics
25576 cf_generic_objects="\${GENOBJS}"
25578 cf_compile_generics=
25579 cf_generic_objects=
25582 echo "$as_me:25582: checking if GNAT supports SIGINT" >&5
25583 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
25584 if test "${cf_cv_gnat_sigint+set}" = set; then
25585 echo $ECHO_N "(cached) $ECHO_C" >&6
25588 rm -rf conftest* *~conftest*
25589 cat >>conftest.ads <<CF_EOF
25590 with Ada.Interrupts.Names;
25592 package ConfTest is
25594 pragma Warnings (Off); -- the next pragma exists since 3.11p
25595 pragma Unreserve_All_Interrupts;
25596 pragma Warnings (On);
25598 protected Process is
25600 function Continue return Boolean;
25601 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
25603 Done : Boolean := False;
25608 cat >>conftest.adb <<CF_EOF
25609 package body ConfTest is
25610 protected body Process is
25615 function Continue return Boolean is
25622 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
25623 cf_cv_gnat_sigint=yes
25625 cf_cv_gnat_sigint=no
25627 rm -rf conftest* *~conftest*
25630 echo "$as_me:25630: result: $cf_cv_gnat_sigint" >&5
25631 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
25633 if test $cf_cv_gnat_sigint = yes ; then
25636 USE_GNAT_SIGINT="#"
25639 cf_gnat_libraries=no
25640 cf_gnat_projects=no
25642 if test "$enable_gnat_projects" != no ; then
25643 echo "$as_me:25643: checking if GNAT supports project files" >&5
25644 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
25645 case $cf_cv_gnat_version in
25649 case $cf_cv_system_name in
25653 rm -rf conftest* *~conftest*
25654 if mkdir conftest.src conftest.bin conftest.lib
25657 rm -rf conftest* *~conftest*
25658 cat >>library.gpr <<CF_EOF
25660 Kind := External ("LIB_KIND");
25661 for Library_Name use "ConfTest";
25662 for Object_Dir use ".";
25663 for Library_ALI_Dir use External("LIBRARY_DIR");
25664 for Library_Version use External ("SONAME");
25665 for Library_Kind use Kind;
25666 for Library_Dir use External("BUILD_DIR");
25667 Source_Dir := External ("SOURCE_DIR");
25668 for Source_Dirs use (Source_Dir);
25671 cat >>confpackage.ads <<CF_EOF
25672 package ConfPackage is
25673 procedure conftest;
25676 cat >>confpackage.adb <<CF_EOF
25678 package body ConfPackage is
25679 procedure conftest is
25681 Text_IO.Put ("Hello World");
25686 if ( $cf_ada_make $ADAFLAGS \
25688 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
25689 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
25690 -XSOURCE_DIR=`pwd` \
25691 -XSONAME=libConfTest.so.1 \
25692 -XLIB_KIND=static 1>&5 2>&1 ) ; then
25693 cf_gnat_projects=yes
25697 if test -f conftest.lib/confpackage.ali
25699 cf_gnat_libraries=yes
25701 rm -rf conftest* *~conftest*
25706 echo "$as_me:25706: result: $cf_gnat_projects" >&5
25707 echo "${ECHO_T}$cf_gnat_projects" >&6
25708 fi # enable_gnat_projects
25710 if test $cf_gnat_projects = yes
25712 echo "$as_me:25712: checking if GNAT supports libraries" >&5
25713 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
25714 echo "$as_me:25714: result: $cf_gnat_libraries" >&5
25715 echo "${ECHO_T}$cf_gnat_libraries" >&6
25718 if test "$cf_gnat_projects" = yes
25720 USE_OLD_MAKERULES="#"
25721 USE_GNAT_PROJECTS=""
25723 USE_OLD_MAKERULES=""
25724 USE_GNAT_PROJECTS="#"
25727 if test "$cf_gnat_libraries" = yes
25729 USE_GNAT_LIBRARIES=""
25731 USE_GNAT_LIBRARIES="#"
25734 echo "$as_me:25734: checking for ada-compiler" >&5
25735 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
25737 # Check whether --with-ada-compiler or --without-ada-compiler was given.
25738 if test "${with_ada_compiler+set}" = set; then
25739 withval="$with_ada_compiler"
25740 cf_ada_compiler=$withval
25742 cf_ada_compiler=gnatmake
25745 echo "$as_me:25745: result: $cf_ada_compiler" >&5
25746 echo "${ECHO_T}$cf_ada_compiler" >&6
25748 cf_ada_package=terminal_interface
25750 echo "$as_me:25750: checking for ada-include" >&5
25751 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
25753 # Check whether --with-ada-include or --without-ada-include was given.
25754 if test "${with_ada_include+set}" = set; then
25755 withval="$with_ada_include"
25758 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
25759 fi; if test -n "$prefix/share/ada/adainclude" ; then
25761 if test "x$prefix" != xNONE; then
25762 cf_path_syntax="$prefix"
25764 cf_path_syntax="$ac_default_prefix"
25767 case ".$withval" in
25768 (.\$\(*\)*|.\'*\'*)
25772 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
25774 (.\${*prefix}*|.\${*dir}*)
25775 eval withval="$withval"
25776 case ".$withval" in
25778 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25783 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25786 { { echo "$as_me:25786: error: expected a pathname, not \"$withval\"" >&5
25787 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
25788 { (exit 1); exit 1; }; }
25793 eval ADA_INCLUDE="$withval"
25795 echo "$as_me:25795: result: $ADA_INCLUDE" >&5
25796 echo "${ECHO_T}$ADA_INCLUDE" >&6
25798 echo "$as_me:25798: checking for ada-objects" >&5
25799 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
25801 # Check whether --with-ada-objects or --without-ada-objects was given.
25802 if test "${with_ada_objects+set}" = set; then
25803 withval="$with_ada_objects"
25806 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
25807 fi; if test -n "$prefix/lib/ada/adalib" ; then
25809 if test "x$prefix" != xNONE; then
25810 cf_path_syntax="$prefix"
25812 cf_path_syntax="$ac_default_prefix"
25815 case ".$withval" in
25816 (.\$\(*\)*|.\'*\'*)
25820 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
25822 (.\${*prefix}*|.\${*dir}*)
25823 eval withval="$withval"
25824 case ".$withval" in
25826 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25831 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
25834 { { echo "$as_me:25834: error: expected a pathname, not \"$withval\"" >&5
25835 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
25836 { (exit 1); exit 1; }; }
25841 eval ADA_OBJECTS="$withval"
25843 echo "$as_me:25843: result: $ADA_OBJECTS" >&5
25844 echo "${ECHO_T}$ADA_OBJECTS" >&6
25846 echo "$as_me:25846: checking if an Ada95 shared-library should be built" >&5
25847 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
25849 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
25850 if test "${with_ada_sharedlib+set}" = set; then
25851 withval="$with_ada_sharedlib"
25852 with_ada_sharedlib=$withval
25854 with_ada_sharedlib=no
25856 echo "$as_me:25856: result: $with_ada_sharedlib" >&5
25857 echo "${ECHO_T}$with_ada_sharedlib" >&6
25859 if test "x$with_ada_sharedlib" != xno
25861 if test "x$cf_gnat_projects" != xyes
25863 { echo "$as_me:25863: WARNING: disabling shared-library since GNAT projects are not supported" >&5
25864 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
25865 with_ada_sharedlib=no
25869 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
25870 MAKE_ADA_SHAREDLIB="#"
25872 if test "x$with_ada_sharedlib" != xno
25874 MAKE_ADA_SHAREDLIB=
25875 if test "x$with_ada_sharedlib" != xyes
25877 ADA_SHAREDLIB="$with_ada_sharedlib"
25881 # allow the Ada binding to be renamed
25883 echo "$as_me:25883: checking for ada-libname" >&5
25884 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
25886 # Check whether --with-ada-libname or --without-ada-libname was given.
25887 if test "${with_ada_libname+set}" = set; then
25888 withval="$with_ada_libname"
25889 ADA_LIBNAME=$withval
25891 ADA_LIBNAME=AdaCurses
25893 case "x$ADA_LIBNAME" in
25895 ADA_LIBNAME=AdaCurses
25899 echo "$as_me:25899: result: $ADA_LIBNAME" >&5
25900 echo "${ECHO_T}$ADA_LIBNAME" >&6
25908 # do this "late" to avoid conflict with header-checks
25909 if test "x$with_widec" = xyes ; then
25910 echo "$as_me:25910: checking for wchar_t" >&5
25911 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
25912 if test "${ac_cv_type_wchar_t+set}" = set; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25915 cat >conftest.$ac_ext <<_ACEOF
25916 #line 25916 "configure"
25917 #include "confdefs.h"
25918 $ac_includes_default
25924 if (sizeof (wchar_t))
25930 rm -f conftest.$ac_objext
25931 if { (eval echo "$as_me:25931: \"$ac_compile\"") >&5
25932 (eval $ac_compile) 2>&5
25934 echo "$as_me:25934: \$? = $ac_status" >&5
25935 (exit $ac_status); } &&
25936 { ac_try='test -s conftest.$ac_objext'
25937 { (eval echo "$as_me:25937: \"$ac_try\"") >&5
25938 (eval $ac_try) 2>&5
25940 echo "$as_me:25940: \$? = $ac_status" >&5
25941 (exit $ac_status); }; }; then
25942 ac_cv_type_wchar_t=yes
25944 echo "$as_me: failed program was:" >&5
25945 cat conftest.$ac_ext >&5
25946 ac_cv_type_wchar_t=no
25948 rm -f conftest.$ac_objext conftest.$ac_ext
25950 echo "$as_me:25950: result: $ac_cv_type_wchar_t" >&5
25951 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
25953 echo "$as_me:25953: checking size of wchar_t" >&5
25954 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
25955 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25956 echo $ECHO_N "(cached) $ECHO_C" >&6
25958 if test "$ac_cv_type_wchar_t" = yes; then
25959 if test "$cross_compiling" = yes; then
25960 # Depending upon the size, compute the lo and hi bounds.
25961 cat >conftest.$ac_ext <<_ACEOF
25962 #line 25962 "configure"
25963 #include "confdefs.h"
25964 $ac_includes_default
25968 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
25973 rm -f conftest.$ac_objext
25974 if { (eval echo "$as_me:25974: \"$ac_compile\"") >&5
25975 (eval $ac_compile) 2>&5
25977 echo "$as_me:25977: \$? = $ac_status" >&5
25978 (exit $ac_status); } &&
25979 { ac_try='test -s conftest.$ac_objext'
25980 { (eval echo "$as_me:25980: \"$ac_try\"") >&5
25981 (eval $ac_try) 2>&5
25983 echo "$as_me:25983: \$? = $ac_status" >&5
25984 (exit $ac_status); }; }; then
25987 cat >conftest.$ac_ext <<_ACEOF
25988 #line 25988 "configure"
25989 #include "confdefs.h"
25990 $ac_includes_default
25994 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
25999 rm -f conftest.$ac_objext
26000 if { (eval echo "$as_me:26000: \"$ac_compile\"") >&5
26001 (eval $ac_compile) 2>&5
26003 echo "$as_me:26003: \$? = $ac_status" >&5
26004 (exit $ac_status); } &&
26005 { ac_try='test -s conftest.$ac_objext'
26006 { (eval echo "$as_me:26006: \"$ac_try\"") >&5
26007 (eval $ac_try) 2>&5
26009 echo "$as_me:26009: \$? = $ac_status" >&5
26010 (exit $ac_status); }; }; then
26011 ac_hi=$ac_mid; break
26013 echo "$as_me: failed program was:" >&5
26014 cat conftest.$ac_ext >&5
26015 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
26017 rm -f conftest.$ac_objext conftest.$ac_ext
26020 echo "$as_me: failed program was:" >&5
26021 cat conftest.$ac_ext >&5
26024 cat >conftest.$ac_ext <<_ACEOF
26025 #line 26025 "configure"
26026 #include "confdefs.h"
26027 $ac_includes_default
26031 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
26036 rm -f conftest.$ac_objext
26037 if { (eval echo "$as_me:26037: \"$ac_compile\"") >&5
26038 (eval $ac_compile) 2>&5
26040 echo "$as_me:26040: \$? = $ac_status" >&5
26041 (exit $ac_status); } &&
26042 { ac_try='test -s conftest.$ac_objext'
26043 { (eval echo "$as_me:26043: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26046 echo "$as_me:26046: \$? = $ac_status" >&5
26047 (exit $ac_status); }; }; then
26048 ac_lo=$ac_mid; break
26050 echo "$as_me: failed program was:" >&5
26051 cat conftest.$ac_ext >&5
26052 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
26054 rm -f conftest.$ac_objext conftest.$ac_ext
26057 rm -f conftest.$ac_objext conftest.$ac_ext
26058 # Binary search between lo and hi bounds.
26059 while test "x$ac_lo" != "x$ac_hi"; do
26060 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26061 cat >conftest.$ac_ext <<_ACEOF
26062 #line 26062 "configure"
26063 #include "confdefs.h"
26064 $ac_includes_default
26068 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
26073 rm -f conftest.$ac_objext
26074 if { (eval echo "$as_me:26074: \"$ac_compile\"") >&5
26075 (eval $ac_compile) 2>&5
26077 echo "$as_me:26077: \$? = $ac_status" >&5
26078 (exit $ac_status); } &&
26079 { ac_try='test -s conftest.$ac_objext'
26080 { (eval echo "$as_me:26080: \"$ac_try\"") >&5
26081 (eval $ac_try) 2>&5
26083 echo "$as_me:26083: \$? = $ac_status" >&5
26084 (exit $ac_status); }; }; then
26087 echo "$as_me: failed program was:" >&5
26088 cat conftest.$ac_ext >&5
26089 ac_lo=`expr $ac_mid + 1`
26091 rm -f conftest.$ac_objext conftest.$ac_ext
26093 ac_cv_sizeof_wchar_t=$ac_lo
26095 if test "$cross_compiling" = yes; then
26096 { { echo "$as_me:26096: error: cannot run test program while cross compiling" >&5
26097 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26098 { (exit 1); exit 1; }; }
26100 cat >conftest.$ac_ext <<_ACEOF
26101 #line 26101 "configure"
26102 #include "confdefs.h"
26103 $ac_includes_default
26107 FILE *f = fopen ("conftest.val", "w");
26109 $ac_main_return (1);
26110 fprintf (f, "%d", (sizeof (wchar_t)));
26116 rm -f conftest$ac_exeext
26117 if { (eval echo "$as_me:26117: \"$ac_link\"") >&5
26118 (eval $ac_link) 2>&5
26120 echo "$as_me:26120: \$? = $ac_status" >&5
26121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26122 { (eval echo "$as_me:26122: \"$ac_try\"") >&5
26123 (eval $ac_try) 2>&5
26125 echo "$as_me:26125: \$? = $ac_status" >&5
26126 (exit $ac_status); }; }; then
26127 ac_cv_sizeof_wchar_t=`cat conftest.val`
26129 echo "$as_me: program exited with status $ac_status" >&5
26130 echo "$as_me: failed program was:" >&5
26131 cat conftest.$ac_ext >&5
26133 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26138 ac_cv_sizeof_wchar_t=0
26141 echo "$as_me:26141: result: $ac_cv_sizeof_wchar_t" >&5
26142 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
26143 cat >>confdefs.h <<EOF
26144 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
26147 # cross-compiling to mingw can run into the problem that attempting to
26148 # link with the regex library fails, causing the test to not set this to
26149 # a number. "recent" autoconf does not address this problem either -TD
26150 if test -z "$ac_cv_sizeof_wchar_t"
26152 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
26154 echo "${as_me:-configure}:26154: testing test failed (assume 2) ..." 1>&5
26156 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
26157 mv confdefs.tmp confdefs.h
26158 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
26162 ### Construct the ncurses library-subsets, if any, from this set of keywords:
26163 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
26165 ### ticlib modules may be a separate library, otherwise contained in termlib.
26166 ### termlib modules may be a separate library, otherwise contained in ncurses.
26168 ### The of "+" or " " between the tokens controls the way the script
26169 ### chooses to split module lists into libraries.
26171 ### (see CF_LIB_RULES).
26172 echo "$as_me:26172: checking for library subsets" >&5
26173 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
26176 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
26177 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
26178 if test "$with_ticlib" != no ; then
26179 LIB_SUBSETS="${LIB_SUBSETS} "
26181 LIB_SUBSETS="${LIB_SUBSETS}+"
26185 LIB_SUBSETS="${LIB_SUBSETS}termlib"
26186 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
26188 if test "$with_termlib" != no ; then
26189 LIB_SUBSETS="${LIB_SUBSETS} "
26191 LIB_SUBSETS="${LIB_SUBSETS}+"
26194 LIB_SUBSETS="${LIB_SUBSETS}base"
26196 # Most term-driver calls are to tinfo, but some like init_pair are to the
26197 # base library (so it resides in base).
26198 if test "$with_term_driver" != no ; then
26199 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
26200 case $cf_cv_system_name in
26201 (*mingw32*|*mingw64*)
26202 if test "x$with_exp_win32" = xyes ; then
26203 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
26205 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
26207 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
26210 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
26213 elif test "x$with_exp_win32" = xyes ; then
26214 case $cf_cv_system_name in
26215 (*mingw32*|*mingw64*)
26216 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
26223 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
26224 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
26226 echo "$as_me:26226: result: $LIB_SUBSETS" >&5
26227 echo "${ECHO_T}$LIB_SUBSETS" >&6
26229 ### Construct the list of include-directories to be generated
26231 if test "$srcdir" != "."; then
26232 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
26234 CPPFLAGS="-I../include $CPPFLAGS"
26235 if test "$srcdir" != "."; then
26236 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
26238 CPPFLAGS="-I. $CPPFLAGS"
26240 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
26241 if test "$srcdir" != "."; then
26242 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
26244 if test "$GCC" != yes; then
26245 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
26246 elif test "$includedir" != "/usr/include"; then
26247 if test "$includedir" = '${prefix}/include' ; then
26248 if test x$prefix != x/usr ; then
26249 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
26252 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
26256 ### Build up pieces for makefile rules
26257 echo "$as_me:26257: checking default library suffix" >&5
26258 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
26260 case $DFT_LWR_MODEL in
26261 (libtool) DFT_ARG_SUFFIX='' ;;
26262 (normal) DFT_ARG_SUFFIX='' ;;
26263 (debug) DFT_ARG_SUFFIX='_g' ;;
26264 (profile) DFT_ARG_SUFFIX='_p' ;;
26265 (shared) DFT_ARG_SUFFIX='' ;;
26267 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
26268 echo "$as_me:26268: result: $DFT_ARG_SUFFIX" >&5
26269 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
26271 echo "$as_me:26271: checking default library-dependency suffix" >&5
26272 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
26274 case X$DFT_LWR_MODEL in
26276 DFT_LIB_SUFFIX='.la'
26277 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26280 case $cf_cv_system_name in
26282 DFT_LIB_SUFFIX='_g.lib'
26285 DFT_LIB_SUFFIX='_g.a'
26288 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26291 case $cf_cv_system_name in
26293 DFT_LIB_SUFFIX='_p.lib'
26296 DFT_LIB_SUFFIX='_p.a'
26299 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26302 case $cf_cv_system_name in
26304 DFT_LIB_SUFFIX='.so'
26305 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26308 DFT_LIB_SUFFIX='.dll'
26309 DFT_DEP_SUFFIX='.dll.lib'
26311 (cygwin*|msys*|mingw*)
26312 DFT_LIB_SUFFIX='.dll'
26313 DFT_DEP_SUFFIX='.dll.a'
26316 DFT_LIB_SUFFIX='.dylib'
26317 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26322 DFT_LIB_SUFFIX='.so'
26323 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26326 DFT_LIB_SUFFIX='.sl'
26327 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26332 DFT_LIB_SUFFIX='.so'
26333 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26340 DFT_LIB_SUFFIX='.lib'
26343 DFT_LIB_SUFFIX='.a'
26346 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
26349 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
26351 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
26352 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
26354 echo "$as_me:26354: result: $DFT_DEP_SUFFIX" >&5
26355 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
26357 echo "$as_me:26357: checking default object directory" >&5
26358 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
26360 case $DFT_LWR_MODEL in
26361 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
26362 (normal) DFT_OBJ_SUBDIR='objects' ;;
26363 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
26364 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
26366 case $cf_cv_system_name in
26368 DFT_OBJ_SUBDIR='objects' ;;
26370 DFT_OBJ_SUBDIR='obj_s' ;;
26373 echo "$as_me:26373: result: $DFT_OBJ_SUBDIR" >&5
26374 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
26376 if test "x$cf_with_cxx" = xyes ; then
26377 echo "$as_me:26377: checking c++ library-dependency suffix" >&5
26378 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
26379 if test "$with_libtool" != "no"; then
26380 # libtool thinks it can make c++ shared libraries (perhaps only g++)
26381 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
26382 elif test "$with_shared_cxx" != "no"; then
26383 # also for g++ users...
26384 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
26386 # we normally make a static library because C/C++ library rules differ
26390 CXX_LIB_SUFFIX='.la'
26391 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26394 case $cf_cv_system_name in
26396 CXX_LIB_SUFFIX='_g.lib'
26399 CXX_LIB_SUFFIX='_g.a'
26402 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26405 case $cf_cv_system_name in
26407 CXX_LIB_SUFFIX='_p.lib'
26410 CXX_LIB_SUFFIX='_p.a'
26413 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26416 case $cf_cv_system_name in
26418 CXX_LIB_SUFFIX='.so'
26419 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26422 CXX_LIB_SUFFIX='.dll'
26423 CXX_DEP_SUFFIX='.dll.lib'
26425 (cygwin*|msys*|mingw*)
26426 CXX_LIB_SUFFIX='.dll'
26427 CXX_DEP_SUFFIX='.dll.a'
26430 CXX_LIB_SUFFIX='.dylib'
26431 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26436 CXX_LIB_SUFFIX='.so'
26437 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26440 CXX_LIB_SUFFIX='.sl'
26441 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26446 CXX_LIB_SUFFIX='.so'
26447 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26454 CXX_LIB_SUFFIX='.lib'
26457 CXX_LIB_SUFFIX='.a'
26460 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
26463 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
26465 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
26466 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
26470 echo "$as_me:26470: result: $CXX_LIB_SUFFIX" >&5
26471 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
26475 # do not want -ldl in build except as needed for -lncurses dependency
26476 if test "x$with_dlsym" = xyes ; then
26477 if test $DFT_LWR_MODEL = shared || \
26478 test $DFT_LWR_MODEL = libtool ; then
26480 # remove dl library from $LIBS
26481 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
26485 ### Set up low-level terminfo dependencies for makefiles.
26487 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
26488 # do not need libdl
26490 if test "x$with_dlsym" = xyes ; then
26492 # remove dl library from $SHLIB_LIST
26493 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
26497 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
26498 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
26499 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
26500 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
26502 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
26505 if test "$with_ticlib" != no ; then
26507 if test "x$with_ticlib" != xyes ; then
26508 TICS_NAME=$with_ticlib
26509 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
26510 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
26511 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
26512 TICS_LIB_SUFFIX="${with_ticlib}"
26514 TICS_SUFFIX=${DFT_LIB_SUFFIX}
26515 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
26516 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
26517 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
26519 TICS_LDFLAGS="-L${LIB_DIR}"
26520 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
26522 TICS_SUFFIX=${DFT_LIB_SUFFIX}
26523 TICS_LDFLAGS="-L${LIB_DIR}"
26524 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
26527 if test "$with_termlib" != no ; then
26529 if test "x$with_termlib" != xyes ; then
26530 TINFO_NAME=$with_termlib
26531 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
26532 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
26533 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
26534 TINFO_LIB_SUFFIX="${with_termlib}"
26536 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
26537 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
26538 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
26539 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
26542 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
26543 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
26544 if test "$DFT_LWR_MODEL" = "libtool"; then
26545 TEST_ARGS="${TEST_DEPS}"
26546 TEST_ARG2="${TEST_DEP2}"
26547 TINFO_LDFLAGS="-L${LIB_DIR}"
26548 TINFO_LIBS="$TEST_ARGS"
26549 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
26550 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
26552 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
26553 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
26554 if test "x$with_term_driver" != xno ; then
26555 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
26556 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
26557 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
26559 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
26560 TINFO_LIBS="$TEST_ARGS"
26562 TINFO_LDFLAGS="-L${LIB_DIR}"
26563 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
26566 # the next lines are needed for linking libtic over libncurses
26567 TINFO_NAME=${LIB_NAME}
26568 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
26569 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
26570 if test "x$with_tic_depends" = xyes ; then
26571 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
26573 TICS_LIST="$SHLIB_LIST"
26576 TINFO_LDFLAGS="-L${LIB_DIR}"
26577 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
26580 if test "$DFT_LWR_MODEL" = shared ; then
26581 case $cf_cv_system_name in
26583 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
26589 if test "x$with_dlsym" = xyes ; then
26591 # remove dl library from $TICS_LIST
26592 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
26596 if test "$DFT_LWR_MODEL" = "libtool"; then
26601 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
26603 case $DFT_LWR_MODEL in
26604 (normal|debug|profile)
26606 if test "$GCC" = yes ; then
26607 case $cf_cv_system_name in
26608 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
26612 (*) # normally, except when broken
26613 LDFLAGS_STATIC=-static
26614 LDFLAGS_SHARED=-dynamic
26618 case $cf_cv_system_name in
26619 (aix[4-7]*) # from ld manpage
26620 LDFLAGS_STATIC=-bstatic
26621 LDFLAGS_SHARED=-bdynamic
26623 (hpux*) # from ld manpage for hpux10.20, hpux11.11
26624 # We could also use just "archive" and "shared".
26625 LDFLAGS_STATIC=-Wl,-a,archive_shared
26626 LDFLAGS_SHARED=-Wl,-a,shared_archive
26628 (irix*) # from ld manpage IRIX64
26629 LDFLAGS_STATIC=-Bstatic
26630 LDFLAGS_SHARED=-Bdynamic
26632 (osf[45]*) # from ld manpage osf4.0d, osf5.1
26633 # alternative "-oldstyle_liblookup" (not in cc manpage)
26634 LDFLAGS_STATIC=-noso
26635 LDFLAGS_SHARED=-so_archive
26638 LDFLAGS_STATIC=-Bstatic
26639 LDFLAGS_SHARED=-Bdynamic
26644 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
26646 echo "$as_me:26646: checking if linker supports switching between static/dynamic" >&5
26647 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
26649 rm -f libconftest.a
26650 cat >conftest.$ac_ext <<EOF
26651 #line 26651 "configure"
26653 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
26655 if { (eval echo "$as_me:26655: \"$ac_compile\"") >&5
26656 (eval $ac_compile) 2>&5
26658 echo "$as_me:26658: \$? = $ac_status" >&5
26659 (exit $ac_status); } ; then
26660 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
26661 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
26665 cf_save_LIBS="$LIBS"
26667 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
26668 cat >conftest.$ac_ext <<_ACEOF
26669 #line 26669 "configure"
26670 #include "confdefs.h"
26672 #line 26672 "configure"
26674 int cf_ldflags_static(FILE *fp);
26680 return cf_ldflags_static(stdin);
26686 rm -f conftest.$ac_objext conftest$ac_exeext
26687 if { (eval echo "$as_me:26687: \"$ac_link\"") >&5
26688 (eval $ac_link) 2>&5
26690 echo "$as_me:26690: \$? = $ac_status" >&5
26691 (exit $ac_status); } &&
26692 { ac_try='test -s conftest$ac_exeext'
26693 { (eval echo "$as_me:26693: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26696 echo "$as_me:26696: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26699 # some linkers simply ignore the -dynamic
26700 case x`file conftest$ac_exeext 2>/dev/null` in
26702 cf_ldflags_static=no
26705 cf_ldflags_static=yes
26710 echo "$as_me: failed program was:" >&5
26711 cat conftest.$ac_ext >&5
26712 cf_ldflags_static=no
26714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26716 rm -f libconftest.*
26717 LIBS="$cf_save_LIBS"
26719 echo "$as_me:26719: result: $cf_ldflags_static" >&5
26720 echo "${ECHO_T}$cf_ldflags_static" >&6
26722 if test $cf_ldflags_static != yes
26735 echo "$as_me:26735: checking where we will install curses.h" >&5
26736 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
26739 if test "$with_overwrite" = no && \
26740 ( test "x$includedir" = 'x${prefix}/include' || \
26741 test "x$includedir" = "x${prefix}/include" )
26743 includesubdir="/ncurses${USE_LIB_SUFFIX}"
26745 echo "$as_me:26745: result: ${includedir}${includesubdir}" >&5
26746 echo "${ECHO_T}${includedir}${includesubdir}" >&6
26748 ### Resolve a conflict between normal and wide-curses by forcing applications
26749 ### that will need libutf8 to add it to their configure script.
26750 if test "$with_overwrite" != no ; then
26751 if test "$NCURSES_LIBUTF8" = 1 ; then
26752 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
26753 { echo "$as_me:26753: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
26754 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
26757 WITH_OVERWRITE=$with_overwrite
26759 ### At least on MinGW a shared library build without libtool
26760 ### requires adding the additional libs to the link list.
26761 case $cf_cv_system_name in
26762 (*mingw32*|*mingw64*)
26763 if test "$DFT_LWR_MODEL" != "libtool"; then
26764 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
26770 # used to separate tack out of the tree
26773 ### predefined stuff for the test programs
26775 cat >>confdefs.h <<\EOF
26776 #define HAVE_SLK_COLOR 1
26779 # pkgsrc uses these
26781 echo "$as_me:26781: checking for desired basename for form library" >&5
26782 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
26784 # Check whether --with-form-libname or --without-form-libname was given.
26785 if test "${with_form_libname+set}" = set; then
26786 withval="$with_form_libname"
26787 with_lib_basename=$withval
26789 with_lib_basename=form
26791 FORM_NAME="$with_lib_basename"
26793 case "x$FORM_NAME" in
26801 echo "$as_me:26801: result: $FORM_NAME" >&5
26802 echo "${ECHO_T}$FORM_NAME" >&6
26804 echo "$as_me:26804: checking for desired basename for menu library" >&5
26805 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
26807 # Check whether --with-menu-libname or --without-menu-libname was given.
26808 if test "${with_menu_libname+set}" = set; then
26809 withval="$with_menu_libname"
26810 with_lib_basename=$withval
26812 with_lib_basename=menu
26814 MENU_NAME="$with_lib_basename"
26816 case "x$MENU_NAME" in
26824 echo "$as_me:26824: result: $MENU_NAME" >&5
26825 echo "${ECHO_T}$MENU_NAME" >&6
26827 echo "$as_me:26827: checking for desired basename for panel library" >&5
26828 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
26830 # Check whether --with-panel-libname or --without-panel-libname was given.
26831 if test "${with_panel_libname+set}" = set; then
26832 withval="$with_panel_libname"
26833 with_lib_basename=$withval
26835 with_lib_basename=panel
26837 PANEL_NAME="$with_lib_basename"
26839 case "x$PANEL_NAME" in
26847 echo "$as_me:26847: result: $PANEL_NAME" >&5
26848 echo "${ECHO_T}$PANEL_NAME" >&6
26850 echo "$as_me:26850: checking for desired basename for cxx library" >&5
26851 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
26853 # Check whether --with-cxx-libname or --without-cxx-libname was given.
26854 if test "${with_cxx_libname+set}" = set; then
26855 withval="$with_cxx_libname"
26856 with_lib_basename=$withval
26858 with_lib_basename=ncurses++
26860 CXX_NAME="$with_lib_basename"
26862 case "x$CXX_NAME" in
26870 echo "$as_me:26870: result: $CXX_NAME" >&5
26871 echo "${ECHO_T}$CXX_NAME" >&6
26873 ### Construct the list of subdirectories for which we'll customize makefiles
26874 ### with the appropriate compile-rules.
26876 echo "$as_me:26876: checking for src modules" >&5
26877 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
26879 # dependencies and linker-arguments for test-programs
26880 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
26881 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
26882 if test "$DFT_LWR_MODEL" = "libtool"; then
26883 TEST_ARGS="${TEST_DEPS}"
26884 TEST_ARG2="${TEST_DEP2}"
26886 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
26887 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
26890 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
26892 for cf_dir in $modules_to_build
26894 if test -f $srcdir/$cf_dir/modules; then
26896 # We may/may not have tack in the distribution, though the
26898 if test $cf_dir = tack ; then
26899 if test "x$cf_with_tack" != "xyes"; then
26904 if test -z "$cf_cv_src_modules"; then
26905 cf_cv_src_modules=$cf_dir
26907 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
26910 # Make the ncurses_cfg.h file record the library interface files as
26911 # well. These are header files that are the same name as their
26912 # directory. Ncurses is the only library that does not follow
26914 if test $cf_dir = tack ; then
26916 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
26918 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26920 cat >>confdefs.h <<EOF
26921 #define HAVE_${cf_have_include}_H 1
26924 cat >>confdefs.h <<EOF
26925 #define HAVE_LIB${cf_have_include} 1
26928 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26930 eval TEST_ROOT=\$${cf_map_lib_basename}_NAME
26932 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
26933 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
26934 if test "$DFT_LWR_MODEL" = "libtool"; then
26935 TEST_ARGS="${TEST_DEPS}"
26936 TEST_ARG2="${TEST_DEP2}"
26938 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
26939 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
26941 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
26945 echo "$as_me:26945: result: $cf_cv_src_modules" >&5
26946 echo "${ECHO_T}$cf_cv_src_modules" >&6
26948 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
26949 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
26952 if test "x$cf_with_manpages" != xno ; then
26953 SRC_SUBDIRS="$SRC_SUBDIRS man"
26955 SRC_SUBDIRS="$SRC_SUBDIRS include"
26956 for cf_dir in $cf_cv_src_modules
26958 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
26960 if test "x$cf_with_tests" != "xno" ; then
26961 SRC_SUBDIRS="$SRC_SUBDIRS test"
26963 # always make this, to install the ncurses-config script
26964 SRC_SUBDIRS="$SRC_SUBDIRS misc"
26965 if test "$cf_with_cxx_binding" != no; then
26966 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
26967 SRC_SUBDIRS="$SRC_SUBDIRS c++"
26970 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
26971 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
26974 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
26975 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
26976 ADA_SUBDIRS="gen src"
26977 if test "x$cf_with_tests" != "xno" ; then
26978 ADA_SUBDIRS="$ADA_SUBDIRS samples"
26983 for cf_dir in $SRC_SUBDIRS
26985 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
26988 if test -n "$ADA_SUBDIRS"; then
26989 for cf_dir in $ADA_SUBDIRS
26991 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
26996 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
26997 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
26998 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
26999 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
27003 for cf_item in $cf_list_models
27007 (libtool) cf_subdir='obj_lo' ;;
27008 (normal) cf_subdir='objects' ;;
27009 (debug) cf_subdir='obj_g' ;;
27010 (profile) cf_subdir='obj_p' ;;
27012 case $cf_cv_system_name in
27014 cf_subdir='objects' ;;
27016 cf_subdir='obj_s' ;;
27020 for cf_item2 in $DIRS_TO_MAKE
27022 test $cf_item2 = $cf_subdir && break
27024 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
27026 for cf_dir in $DIRS_TO_MAKE
27028 test ! -d $cf_dir && mkdir $cf_dir
27031 # symbols that differ when compiling Ada95 by itself.
27032 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
27034 # values to use as strings
27036 cat >>confdefs.h <<EOF
27037 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
27040 cat >>confdefs.h <<EOF
27041 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
27044 ### Define substitutions for header files to avoid name-pollution
27046 if test "x$cf_cv_have_tcgetattr" = xyes ; then
27052 if test "x$ac_cv_header_stdint_h" = xyes ; then
27058 if test "x$ac_cv_header_termio_h" = xyes ; then
27064 if test "x$ac_cv_header_termios_h" = xyes ; then
27070 ################################################################################
27071 test "x$use_database" = xyes && \
27072 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
27074 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
27075 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
27077 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
27078 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
27081 if test "x$cf_with_tests" != xno ; then
27087 ADAHTML_DIR=../../doc/html/ada
27089 # workaround for OS/2 (20151017)
27090 case $cf_cv_system_name in
27092 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
27099 # workaround for g++ versus Solaris (20131116)
27100 case $cf_cv_system_name in
27102 case "x$CPPFLAGS" in
27103 (*-D_XOPEN_SOURCE_EXTENDED*)
27104 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
27106 echo "${as_me:-configure}:27106: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
27108 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
27109 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
27115 # Help to automatically enable the extended curses features when using either
27116 # the *-config or the ".pc" files by adding defines.
27117 echo "$as_me:27117: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
27118 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
27120 for cf_loop1 in $CPPFLAGS_after_XOPEN
27123 for cf_loop2 in $CPPFLAGS_before_XOPEN
27125 if test "x$cf_loop1" = "x$cf_loop2"
27131 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
27133 echo "$as_me:27133: result: $PKG_CFLAGS" >&5
27134 echo "${ECHO_T}$PKG_CFLAGS" >&6
27136 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
27137 case "x$NCURSES_OSPEED" in
27146 cat >>confdefs.h <<EOF
27147 #define NCURSES_OSPEED_COMPAT $cf_compatible
27150 case "x$cf_cv_typeof_chtype" in
27151 (xshort|xint|xlong)
27152 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
27156 case "x$cf_cv_typeof_mmask_t" in
27157 (xshort|xint|xlong)
27158 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
27162 # substitute into misc/Makefile to suppress
27163 # (un)install.data from the
27164 # (un)install rules.
27165 if test "x$cf_with_db_install" = "xno"; then
27167 MISC_UNINSTALL_DATA=
27169 MISC_INSTALL_DATA=install.data
27170 MISC_UNINSTALL_DATA=uninstall.data
27173 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
27176 MAKE_DATABASE="$MAKE_TERMINFO"
27179 if test -n "$PACKAGE"
27181 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
27183 echo "package: $PACKAGE"
27189 if test -n "$RESULTING_SYMS"
27191 cf_filter_syms=$cf_dft_filter_syms
27192 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
27194 echo "${as_me:-configure}:27194: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
27198 if test "x$WILDCARD_SYMS" = xno
27203 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
27205 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
27206 if test $cf_filter_syms = yes
27208 RESULTING_SYMS=resulting.map
27211 if test "x$cross_compiling" = xyes ; then
27212 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
27215 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
27219 # This is used for the *-config script and *.pc data files.
27221 echo "$as_me:27221: checking for linker search path" >&5
27222 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
27223 if test "${cf_cv_ld_searchpath+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27227 if test "$cross_compiling" != yes ; then
27229 # GNU binutils' ld does not involve permissions which may stop ldconfig.
27230 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
27232 # The -NX options tell newer versions of Linux ldconfig to not attempt to
27233 # update the cache, which makes it run faster.
27234 test -z "$cf_pathlist" && \
27235 cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
27237 test -z "$cf_pathlist" &&
27238 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
27240 # This works with OpenBSD 6.5, which lists only filenames
27241 test -z "$cf_pathlist" &&
27242 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
27244 if test -z "$cf_pathlist"
27246 # dyld default path with MacOS
27247 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
27249 # do this to bypass check
27250 cf_cv_ld_searchpath='$HOME/lib'
27251 cf_pathlist="/usr/local/lib /lib /usr/lib"
27255 if test -z "$cf_pathlist"
27257 # Solaris is hardcoded
27258 if test -d /opt/SUNWspro/lib
27260 cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
27261 elif test -d /usr/ccs/lib
27263 cf_pathlist="/usr/ccs/lib /usr/lib"
27269 # If nothing else, assume it is conventional
27270 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
27272 # Finally, check that this is only directories
27273 for cf_path in $0 $cf_pathlist
27275 if test -d "$cf_path"; then
27276 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
27277 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
27281 # Ensure that it is nonempty
27282 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
27285 echo "$as_me:27285: result: $cf_cv_ld_searchpath" >&5
27286 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
27288 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
27290 cat >>confdefs.h <<\EOF
27291 #define HAVE_CURSES_DATA_BOOLNAMES 1
27294 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"
27295 ac_config_commands="$ac_config_commands default"
27296 cat >confcache <<\_ACEOF
27297 # This file is a shell script that caches the results of configure
27298 # tests run on this system so they can be shared between configure
27299 # scripts and configure runs, see configure's option --config-cache.
27300 # It is not useful on other systems. If it contains results you don't
27301 # want to keep, you may remove or edit it.
27303 # config.status only pays attention to the cache file if you give it
27304 # the --recheck option to rerun configure.
27306 # `ac_cv_env_foo' variables (set or unset) will be overriden when
27307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27308 # following values.
27312 # The following way of writing the cache mishandles newlines in values,
27313 # but we know of no workaround that is simple, portable, and efficient.
27314 # So, don't put newlines in cache variables' values.
27315 # Ultrix sh set writes to stderr and can't be redirected directly,
27316 # and sets the high bit in the cache file unless we assign to the vars.
27319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27321 # `set' does not quote correctly, so add quotes (double-quote
27322 # substitution turns \\\\ into \\, and sed turns \\ into \).
27325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27328 # `set' quotes correctly as required by POSIX, so do not add quotes.
27330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27341 if cmp -s $cache_file confcache; then :; else
27342 if test -w $cache_file; then
27343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27344 cat confcache >$cache_file
27346 echo "not updating unwritable cache $cache_file"
27351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27352 # Let make expand exec_prefix.
27353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27355 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27356 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27357 # trailing colons and then remove the whole line if VPATH becomes empty
27358 # (actually we leave an empty line to preserve line numbers).
27359 if test "x$srcdir" = x.; then
27360 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27361 s/:*\$(srcdir):*/:/;
27362 s/:*\${srcdir}:*/:/;
27364 s/^\([^=]*=[ ]*\):*/\1/;
27370 DEFS=-DHAVE_CONFIG_H
27372 : ${CONFIG_STATUS=./config.status}
27373 ac_clean_files_save=$ac_clean_files
27374 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27375 { echo "$as_me:27375: creating $CONFIG_STATUS" >&5
27376 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27377 cat >$CONFIG_STATUS <<_ACEOF
27379 # Generated automatically by configure.
27380 # Run this file to recreate the current configuration.
27381 # Compiler output produced by configure, useful for debugging
27382 # configure, is in config.log if it exists.
27385 SHELL=\${CONFIG_SHELL-$SHELL}
27386 ac_cs_invocation="\$0 \$@"
27388 CLICOLOR_FORCE= GREP_OPTIONS=
27389 unset CLICOLOR_FORCE GREP_OPTIONS
27392 cat >>$CONFIG_STATUS <<\_ACEOF
27393 # Be Bourne compatible
27394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27397 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27401 # Name of the executable.
27402 as_me=`echo "$0" |sed 's,.*[\\/],,'`
27404 if expr a : '\(a\)' >/dev/null 2>&1; then
27410 rm -f conf$$ conf$$.exe conf$$.file
27412 if ln -s conf$$.file conf$$ 2>/dev/null; then
27413 # We could just check for DJGPP; but this test a) works b) is more generic
27414 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27415 if test -f conf$$.exe; then
27416 # Don't use ln at all; we don't have any links
27421 elif ln conf$$.file conf$$ 2>/dev/null; then
27426 rm -f conf$$ conf$$.exe conf$$.file
27428 as_executable_p="test -f"
27430 # Support unset when possible.
27431 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27438 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
27439 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
27440 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
27441 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
27442 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
27443 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
27444 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
27445 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
27448 # We need space, tab and new line, in precisely that order.
27454 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
27460 # Files that config.status was made for.
27461 if test -n "$ac_config_files"; then
27462 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27465 if test -n "$ac_config_headers"; then
27466 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27469 if test -n "$ac_config_links"; then
27470 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27473 if test -n "$ac_config_commands"; then
27474 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27477 cat >>$CONFIG_STATUS <<\EOF
27480 \`$as_me' instantiates files from templates according to the
27481 current configuration.
27483 Usage: $0 [OPTIONS] [FILE]...
27485 -h, --help print this help, then exit
27486 -V, --version print version number, then exit
27487 -d, --debug don't remove temporary files
27488 --recheck update $as_me by reconfiguring in the same conditions
27489 --file=FILE[:TEMPLATE]
27490 instantiate the configuration file FILE
27491 --header=FILE[:TEMPLATE]
27492 instantiate the configuration header FILE
27494 Configuration files:
27497 Configuration headers:
27500 Configuration commands:
27503 Report bugs to <dickey@invisible-island.net>."
27506 cat >>$CONFIG_STATUS <<EOF
27509 configured by $0, generated by GNU Autoconf 2.52.20200802,
27510 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27512 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
27513 Free Software Foundation, Inc.
27514 This config.status script is free software; the Free Software Foundation
27515 gives unlimited permission to copy, distribute and modify it."
27520 cat >>$CONFIG_STATUS <<\EOF
27521 # If no file are specified by the user, then we need to provide default
27522 # value. By we need to know if files were specified by the user.
27528 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27529 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27531 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
27535 *) # This is not an option, so the user has probably given explicit
27537 ac_need_defaults=false;;
27541 # Handling of the options.
27543 cat >>$CONFIG_STATUS <<EOF
27544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27545 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
27546 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
27548 cat >>$CONFIG_STATUS <<\EOF
27549 --version | --vers* | -V )
27550 echo "$ac_cs_version"; exit 0 ;;
27552 # Conflict between --help and --header
27553 { { echo "$as_me:27553: error: ambiguous option: $1
27554 Try \`$0 --help' for more information." >&5
27555 echo "$as_me: error: ambiguous option: $1
27556 Try \`$0 --help' for more information." >&2;}
27557 { (exit 1); exit 1; }; };;
27558 --help | --hel | -h )
27559 echo "$ac_cs_usage"; exit 0 ;;
27560 --debug | --d* | -d )
27562 --file | --fil | --fi | --f )
27564 CONFIG_FILES="$CONFIG_FILES $1"
27565 ac_need_defaults=false;;
27566 --header | --heade | --head | --hea )
27568 CONFIG_HEADERS="$CONFIG_HEADERS $1"
27569 ac_need_defaults=false;;
27571 # This is an error.
27572 -*) { { echo "$as_me:27572: error: unrecognized option: $1
27573 Try \`$0 --help' for more information." >&5
27574 echo "$as_me: error: unrecognized option: $1
27575 Try \`$0 --help' for more information." >&2;}
27576 { (exit 1); exit 1; }; } ;;
27578 *) ac_config_targets="$ac_config_targets $1" ;;
27587 ## ----------------------- ##
27588 ## Running config.status. ##
27589 ## ----------------------- ##
27591 This file was extended by $as_me 2.52.20200802, executed with
27592 CONFIG_FILES = $CONFIG_FILES
27593 CONFIG_HEADERS = $CONFIG_HEADERS
27594 CONFIG_LINKS = $CONFIG_LINKS
27595 CONFIG_COMMANDS = $CONFIG_COMMANDS
27596 > $ac_cs_invocation
27597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27602 cat >>$CONFIG_STATUS <<EOF
27604 # INIT-COMMANDS section.
27607 ### Special initialization commands, used to pass information from the
27608 ### configuration-run into config.status
27610 ALTERNATE_SYMS="$ALTERNATE_SYMS"
27612 CXX_NAME="$CXX_NAME"
27613 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
27614 DFT_LWR_MODEL="$DFT_LWR_MODEL"
27616 EXTRA_SUFFIX="$EXTRA_SUFFIX"
27617 FORM_NAME="$FORM_NAME"
27618 LDCONFIG="$LDCONFIG"
27619 LIBTOOL_VERSION="$LIBTOOL_VERSION"
27620 LIB_NAME="$LIB_NAME"
27621 LIB_PREFIX="$LIB_PREFIX"
27622 LIB_SUBSETS="$LIB_SUBSETS"
27623 LIB_SUFFIX="$LIB_SUFFIX"
27624 LIB_TRACING="$LIB_TRACING"
27626 MAKE_TERMINFO="$MAKE_TERMINFO"
27627 MENU_NAME="$MENU_NAME"
27628 NCURSES_MAJOR="$NCURSES_MAJOR"
27629 NCURSES_MINOR="$NCURSES_MINOR"
27630 NCURSES_OSPEED="$NCURSES_OSPEED"
27631 NCURSES_PATCH="$NCURSES_PATCH"
27632 PANEL_NAME="$PANEL_NAME"
27633 SRC_SUBDIRS="$SRC_SUBDIRS"
27634 TERMINFO="$TERMINFO"
27635 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
27636 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
27637 TICS_NAME="$TICS_NAME"
27638 TICS_SUFFIX="$TICS_SUFFIX"
27639 TIC_PATH="$TIC_PATH"
27640 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
27641 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
27642 TINFO_NAME="$TINFO_NAME"
27643 TINFO_SUFFIX="$TINFO_SUFFIX"
27644 UNALTERED_SYMS="$UNALTERED_SYMS"
27645 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
27646 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
27647 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
27648 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
27649 WILDCARD_SYMS="$WILDCARD_SYMS"
27650 WITH_CURSES_H="$with_curses_h"
27651 WITH_ECHO="${enable_echo:=yes}"
27652 WITH_OVERWRITE="$with_overwrite"
27653 cf_LIST_MODELS="$cf_list_models"
27654 cf_cv_abi_version="$cf_cv_abi_version"
27655 cf_cv_do_relink="$cf_cv_do_relink"
27656 cf_cv_do_reranlib="$cf_cv_do_reranlib"
27657 cf_cv_do_symlinks="$cf_cv_do_symlinks"
27658 cf_cv_enable_lp64="$cf_cv_enable_lp64"
27659 cf_cv_enable_opaque="$cf_cv_enable_opaque"
27660 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
27661 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
27662 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
27663 cf_cv_rel_version="$cf_cv_rel_version"
27664 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
27665 cf_cv_shared_soname='$cf_cv_shared_soname'
27666 cf_cv_shlib_version="$cf_cv_shlib_version"
27667 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
27668 cf_cv_system_name="$cf_cv_system_name"
27669 cf_cv_term_driver="$with_term_driver"
27670 cf_with_ada="$cf_with_ada"
27671 cf_with_cxx_binding="$cf_with_cxx_binding"
27672 cf_with_db_install="$cf_with_db_install"
27673 cf_with_manpages="$cf_with_manpages"
27674 cf_with_tests="$cf_with_tests"
27677 with_shared_cxx="$with_shared_cxx"
27681 cat >>$CONFIG_STATUS <<\EOF
27682 for ac_config_target in $ac_config_targets
27684 case "$ac_config_target" in
27685 # Handling of arguments.
27686 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
27687 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
27688 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
27689 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
27690 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
27691 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
27692 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27693 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27694 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
27695 *) { { echo "$as_me:27695: error: invalid argument: $ac_config_target" >&5
27696 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27697 { (exit 1); exit 1; }; };;
27701 # If the user did not use the arguments to specify the items to instantiate,
27702 # then the envvar interface is used. Set only those that are not.
27703 # We use the long form for the default assignment because of an extremely
27704 # bizarre bug on SunOS 4.1.3.
27705 if $ac_need_defaults; then
27706 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27707 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27708 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27711 # Create a temporary directory, and hook for its removal unless debugging.
27714 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27715 trap '{ (exit 1); exit 1; }' 1 2 13 15
27718 # Create a (secure) tmp directory for tmp files.
27721 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
27722 test -n "$tmp" && test -d "$tmp"
27725 tmp=$TMPDIR/cs$$-$RANDOM
27726 (umask 077 && mkdir $tmp)
27729 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
27730 { (exit 1); exit 1; }
27735 cat >>$CONFIG_STATUS <<EOF
27738 # CONFIG_FILES section.
27741 # No need to generate the scripts if there are no CONFIG_FILES.
27742 # This happens for instance when ./config.status config.h
27743 if test -n "\$CONFIG_FILES"; then
27744 # Protect against being on the right side of a sed subst in config.status.
27745 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27746 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27747 s,@SHELL@,$SHELL,;t t
27748 s,@exec_prefix@,$exec_prefix,;t t
27749 s,@prefix@,$prefix,;t t
27750 s,@program_transform_name@,$program_transform_name,;t t
27751 s,@bindir@,$bindir,;t t
27752 s,@sbindir@,$sbindir,;t t
27753 s,@libexecdir@,$libexecdir,;t t
27754 s,@datarootdir@,$datarootdir,;t t
27755 s,@datadir@,$datadir,;t t
27756 s,@sysconfdir@,$sysconfdir,;t t
27757 s,@sharedstatedir@,$sharedstatedir,;t t
27758 s,@localstatedir@,$localstatedir,;t t
27759 s,@runstatedir@,$runstatedir,;t t
27760 s,@libdir@,$libdir,;t t
27761 s,@includedir@,$includedir,;t t
27762 s,@oldincludedir@,$oldincludedir,;t t
27763 s,@infodir@,$infodir,;t t
27764 s,@mandir@,$mandir,;t t
27765 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27766 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27767 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27768 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27769 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27770 s,@build_alias@,$build_alias,;t t
27771 s,@host_alias@,$host_alias,;t t
27772 s,@target_alias@,$target_alias,;t t
27773 s,@ECHO_C@,$ECHO_C,;t t
27774 s,@ECHO_N@,$ECHO_N,;t t
27775 s,@ECHO_T@,$ECHO_T,;t t
27776 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27777 s,@DEFS@,$DEFS,;t t
27778 s,@LIBS@,$LIBS,;t t
27779 s,@top_builddir@,$top_builddir,;t t
27780 s,@EGREP@,$EGREP,;t t
27781 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
27782 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
27783 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
27784 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
27785 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
27786 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
27787 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
27788 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
27789 s,@VERSION@,$VERSION,;t t
27790 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
27791 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
27792 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
27793 s,@PACKAGE@,$PACKAGE,;t t
27794 s,@build@,$build,;t t
27795 s,@build_cpu@,$build_cpu,;t t
27796 s,@build_vendor@,$build_vendor,;t t
27797 s,@build_os@,$build_os,;t t
27798 s,@host@,$host,;t t
27799 s,@host_cpu@,$host_cpu,;t t
27800 s,@host_vendor@,$host_vendor,;t t
27801 s,@host_os@,$host_os,;t t
27802 s,@target@,$target,;t t
27803 s,@target_cpu@,$target_cpu,;t t
27804 s,@target_vendor@,$target_vendor,;t t
27805 s,@target_os@,$target_os,;t t
27807 s,@CFLAGS@,$CFLAGS,;t t
27808 s,@LDFLAGS@,$LDFLAGS,;t t
27809 s,@CPPFLAGS@,$CPPFLAGS,;t t
27810 s,@ac_ct_CC@,$ac_ct_CC,;t t
27811 s,@EXEEXT@,$EXEEXT,;t t
27812 s,@OBJEXT@,$OBJEXT,;t t
27813 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
27815 s,@LDCONFIG@,$LDCONFIG,;t t
27817 s,@CXXFLAGS@,$CXXFLAGS,;t t
27818 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27820 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27821 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27822 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27823 s,@LINT@,$LINT,;t t
27824 s,@LINT_OPTS@,$LINT_OPTS,;t t
27825 s,@LN_S@,$LN_S,;t t
27826 s,@cf_config_suffix@,$cf_config_suffix,;t t
27827 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27828 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
27829 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
27830 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
27831 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
27832 s,@SET_MAKE@,$SET_MAKE,;t t
27833 s,@CTAGS@,$CTAGS,;t t
27834 s,@ETAGS@,$ETAGS,;t t
27835 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
27836 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
27837 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
27838 s,@RANLIB@,$RANLIB,;t t
27839 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27841 s,@ac_ct_LD@,$ac_ct_LD,;t t
27843 s,@ac_ct_AR@,$ac_ct_AR,;t t
27845 s,@ac_ct_NM@,$ac_ct_NM,;t t
27846 s,@ARFLAGS@,$ARFLAGS,;t t
27847 s,@DESTDIR@,$DESTDIR,;t t
27848 s,@BUILD_CC@,$BUILD_CC,;t t
27849 s,@BUILD_CPP@,$BUILD_CPP,;t t
27850 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
27851 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
27852 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
27853 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
27854 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
27855 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
27856 s,@cf_list_models@,$cf_list_models,;t t
27857 s,@ABI_VERSION@,$ABI_VERSION,;t t
27858 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
27859 s,@LIBTOOL@,$LIBTOOL,;t t
27860 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
27861 s,@LT_UNDEF@,$LT_UNDEF,;t t
27862 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
27863 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
27864 s,@LIB_CREATE@,$LIB_CREATE,;t t
27865 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
27866 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
27867 s,@LIB_PREP@,$LIB_PREP,;t t
27868 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
27869 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
27870 s,@LIB_LINK@,$LIB_LINK,;t t
27871 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
27872 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
27873 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
27874 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
27875 s,@TICS_NAME@,$TICS_NAME,;t t
27876 s,@TINFO_NAME@,$TINFO_NAME,;t t
27877 s,@LIB_NAME@,$LIB_NAME,;t t
27878 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
27879 s,@CC_G_OPT@,$CC_G_OPT,;t t
27880 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
27881 s,@LD_MODEL@,$LD_MODEL,;t t
27882 s,@shlibdir@,$shlibdir,;t t
27883 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
27884 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
27885 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
27886 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
27887 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
27888 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
27889 s,@LINK_PROGS@,$LINK_PROGS,;t t
27890 s,@LINK_TESTS@,$LINK_TESTS,;t t
27891 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
27892 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27893 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
27894 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
27895 s,@RPATH_LIST@,$RPATH_LIST,;t t
27896 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
27897 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
27898 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
27899 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
27900 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
27901 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
27902 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
27903 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
27904 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
27906 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
27907 s,@INFOCMP@,$INFOCMP,;t t
27908 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
27909 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
27910 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
27911 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
27912 s,@XTERM_KBS@,$XTERM_KBS,;t t
27913 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
27914 s,@TERMINFO@,$TERMINFO,;t t
27915 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
27916 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
27917 s,@TERMPATH@,$TERMPATH,;t t
27918 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
27919 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
27920 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
27921 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
27922 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
27923 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
27924 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
27925 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
27926 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
27927 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
27928 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
27929 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
27930 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
27931 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
27932 s,@RGB_PATH@,$RGB_PATH,;t t
27933 s,@no_x11_rgb@,$no_x11_rgb,;t t
27934 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
27935 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
27936 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
27937 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
27938 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
27939 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
27940 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
27941 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
27942 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
27943 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
27944 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
27945 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
27946 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
27947 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
27948 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
27949 s,@PTHREAD@,$PTHREAD,;t t
27950 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
27951 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
27952 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
27953 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
27954 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
27955 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
27956 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
27957 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
27958 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
27959 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
27960 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
27961 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
27962 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
27963 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
27964 s,@ECHO_LT@,$ECHO_LT,;t t
27965 s,@ECHO_LD@,$ECHO_LD,;t t
27966 s,@RULE_CC@,$RULE_CC,;t t
27967 s,@SHOW_CC@,$SHOW_CC,;t t
27968 s,@ECHO_CC@,$ECHO_CC,;t t
27969 s,@ECHO_LINK@,$ECHO_LINK,;t t
27970 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
27971 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
27972 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
27973 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
27974 s,@ADAFLAGS@,$ADAFLAGS,;t t
27975 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
27976 s,@ADA_TRACE@,$ADA_TRACE,;t t
27977 s,@MATH_LIB@,$MATH_LIB,;t t
27978 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
27979 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
27980 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
27981 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
27982 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
27983 s,@TEST_LIBS@,$TEST_LIBS,;t t
27984 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
27985 s,@CXXCPP@,$CXXCPP,;t t
27986 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
27987 s,@CXX_AR@,$CXX_AR,;t t
27988 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
27989 s,@CXXLIBS@,$CXXLIBS,;t t
27990 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
27991 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
27992 s,@M4_exists@,$M4_exists,;t t
27993 s,@cf_ada_make@,$cf_ada_make,;t t
27994 s,@cf_ada_config@,$cf_ada_config,;t t
27995 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
27996 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
27997 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
27998 s,@cf_compile_generics@,$cf_compile_generics,;t t
27999 s,@cf_generic_objects@,$cf_generic_objects,;t t
28000 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
28001 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
28002 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
28003 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
28004 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
28005 s,@cf_ada_package@,$cf_ada_package,;t t
28006 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
28007 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
28008 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
28009 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
28010 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
28011 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
28012 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
28013 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
28014 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
28015 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
28016 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
28017 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
28018 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
28019 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
28020 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
28021 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
28022 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
28023 s,@TICS_LIBS@,$TICS_LIBS,;t t
28024 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
28025 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
28026 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
28027 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
28028 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
28029 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
28030 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
28031 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
28032 s,@includesubdir@,$includesubdir,;t t
28033 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
28034 s,@TICS_LIST@,$TICS_LIST,;t t
28035 s,@TINFO_LIST@,$TINFO_LIST,;t t
28036 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
28037 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
28038 s,@FORM_NAME@,$FORM_NAME,;t t
28039 s,@MENU_NAME@,$MENU_NAME,;t t
28040 s,@PANEL_NAME@,$PANEL_NAME,;t t
28041 s,@CXX_NAME@,$CXX_NAME,;t t
28042 s,@TEST_ARGS@,$TEST_ARGS,;t t
28043 s,@TEST_DEPS@,$TEST_DEPS,;t t
28044 s,@TEST_ARG2@,$TEST_ARG2,;t t
28045 s,@TEST_DEP2@,$TEST_DEP2,;t t
28046 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
28047 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
28048 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
28049 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
28050 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
28051 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
28052 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
28053 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
28054 s,@cross_compiling@,$cross_compiling,;t t
28055 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
28056 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
28057 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
28058 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
28059 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
28060 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
28061 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
28062 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
28063 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
28064 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
28065 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
28066 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
28071 cat >>$CONFIG_STATUS <<\EOF
28072 # Split the substitutions into bite-sized pieces for seds with
28073 # small command number limits, like on Digital OSF/1 and HP-UX.
28074 ac_max_sed_lines=48
28075 ac_sed_frag=1 # Number of current file.
28076 ac_beg=1 # First line for current file.
28077 ac_end=$ac_max_sed_lines # Line after last line for current file.
28080 while $ac_more_lines; do
28081 if test $ac_beg -gt 1; then
28082 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28084 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28086 if test ! -s $tmp/subs.frag; then
28087 ac_more_lines=false
28089 # The purpose of the label and of the branching condition is to
28090 # speed up the sed processing (if there are no `@' at all, there
28091 # is no need to browse any of the substitutions).
28092 # These are the two extra sed commands mentioned above.
28094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28095 # It is possible to make a multiline substitution using escaped newlines.
28096 # Ensure that we do not split the substitution between script fragments.
28098 ac_END=`expr $ac_end + $ac_max_sed_lines`
28099 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
28100 if test -s $tmp/subs.next; then
28101 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
28102 if test ! -s $tmp/subs.edit; then
28103 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
28104 if test ! -s $tmp/subs.edit; then
28105 if test $ac_beg -gt 1; then
28106 ac_end=`expr $ac_end - 1`
28113 if test -z "$ac_sed_cmds"; then
28114 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28116 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28118 ac_sed_frag=`expr $ac_sed_frag + 1`
28120 ac_end=`expr $ac_end + $ac_max_sed_lines`
28123 if test -z "$ac_sed_cmds"; then
28126 fi # test -n "$CONFIG_FILES"
28129 cat >>$CONFIG_STATUS <<\EOF
28130 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28131 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28133 - | *:- | *:-:* ) # input from stdin
28135 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28137 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28139 * ) ac_file_in=$ac_file.in ;;
28142 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28143 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28144 X"$ac_file" : 'X\(//\)[^/]' \| \
28145 X"$ac_file" : 'X\(//\)$' \| \
28146 X"$ac_file" : 'X\(/\)' \| \
28147 . : '\(.\)' 2>/dev/null ||
28149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28151 /^X\(\/\/\)$/{ s//\1/; q; }
28152 /^X\(\/\).*/{ s//\1/; q; }
28154 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
28155 { case "$ac_dir" in
28156 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
28160 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
28161 case $as_mkdir_dir in
28162 # Skip DOS drivespec
28163 ?:) as_incr_dir=$as_mkdir_dir ;;
28165 as_incr_dir=$as_incr_dir/$as_mkdir_dir
28166 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
28171 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
28172 # A "../" for each directory in $ac_dir_suffix.
28173 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
28175 ac_dir_suffix= ac_dots=
28180 if test -z "$ac_dots"; then
28183 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
28185 [\\/]* | ?:[\\/]* )
28186 ac_srcdir=$srcdir$ac_dir_suffix;
28187 ac_top_srcdir=$srcdir ;;
28188 *) # Relative path.
28189 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
28190 ac_top_srcdir=$ac_dots$srcdir ;;
28194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28195 *) ac_INSTALL=$ac_dots$INSTALL ;;
28198 if test x"$ac_file" != x-; then
28199 { echo "$as_me:28199: creating $ac_file" >&5
28200 echo "$as_me: creating $ac_file" >&6;}
28203 # Let's still pretend it is `configure' which instantiates (i.e., don't
28204 # use $as_me), people would be surprised to read:
28205 # /* config.h. Generated automatically by config.status. */
28206 configure_input="Generated automatically from `echo $ac_file_in |
28207 sed 's,.*/,,'` by configure."
28209 # First look for the input files in the build tree, otherwise in the
28211 ac_file_inputs=`IFS=:
28212 for f in $ac_file_in; do
28214 -) echo $tmp/stdin ;;
28216 # Absolute (can't be DOS-style, as IFS=:)
28217 test -f "$f" || { { echo "$as_me:28217: error: cannot find input file: $f" >&5
28218 echo "$as_me: error: cannot find input file: $f" >&2;}
28219 { (exit 1); exit 1; }; }
28222 if test -f "$f"; then
28225 elif test -f "$srcdir/$f"; then
28230 { { echo "$as_me:28230: error: cannot find input file: $f" >&5
28231 echo "$as_me: error: cannot find input file: $f" >&2;}
28232 { (exit 1); exit 1; }; }
28235 done` || { (exit 1); exit 1; }
28237 cat >>$CONFIG_STATUS <<\EOF
28238 ac_warn_datarootdir=no
28239 if test x"$ac_file" != x-; then
28240 for ac_item in $ac_file_inputs
28242 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
28243 if test -n "$ac_seen"; then
28244 ac_used=`grep '@datarootdir@' $ac_item`
28245 if test -z "$ac_used"; then
28246 { echo "$as_me:28246: WARNING: datarootdir was used implicitly but not set:
28248 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
28250 ac_warn_datarootdir=yes
28253 ac_seen=`grep '${datarootdir}' $ac_item`
28254 if test -n "$ac_seen"; then
28255 { echo "$as_me:28255: WARNING: datarootdir was used explicitly but not set:
28257 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
28259 ac_warn_datarootdir=yes
28264 if test "x$ac_warn_datarootdir" = xyes; then
28265 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
28269 cat >>$CONFIG_STATUS <<EOF
28273 cat >>$CONFIG_STATUS <<\EOF
28275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28276 s,@configure_input@,$configure_input,;t t
28277 s,@srcdir@,$ac_srcdir,;t t
28278 s,@top_srcdir@,$ac_top_srcdir,;t t
28279 s,@INSTALL@,$ac_INSTALL,;t t
28280 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28282 if test x"$ac_file" != x-; then
28283 cp $tmp/out $ac_file
28285 for ac_name in prefix exec_prefix datarootdir
28287 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
28288 if test -n "$ac_seen"; then
28289 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
28290 if test -z "$ac_init"; then
28291 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
28292 { echo "$as_me:28292: WARNING: Variable $ac_name is used but was not set:
28294 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
28299 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
28300 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
28301 if test -s $tmp/out; then
28302 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
28303 { echo "$as_me:28303: WARNING: Some variables may not be substituted:
28305 echo "$as_me: WARNING: Some variables may not be substituted:
28315 cat >>$CONFIG_STATUS <<\EOF
28318 # CONFIG_HEADER section.
28321 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28322 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28324 # ac_d sets the value in "#define NAME VALUE" lines.
28325 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28326 ac_dB='[ ].*$,\1#\2'
28329 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
28330 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28331 ac_iB='\([ ]\),\1#\2define\3'
28334 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28335 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28336 ac_uB='$,\1#\2define\3'
28340 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28341 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28343 - | *:- | *:-:* ) # input from stdin
28345 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28347 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28348 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28349 * ) ac_file_in=$ac_file.in ;;
28352 test x"$ac_file" != x- && { echo "$as_me:28352: creating $ac_file" >&5
28353 echo "$as_me: creating $ac_file" >&6;}
28355 # First look for the input files in the build tree, otherwise in the
28357 ac_file_inputs=`IFS=:
28358 for f in $ac_file_in; do
28360 -) echo $tmp/stdin ;;
28362 # Absolute (can't be DOS-style, as IFS=:)
28363 test -f "$f" || { { echo "$as_me:28363: error: cannot find input file: $f" >&5
28364 echo "$as_me: error: cannot find input file: $f" >&2;}
28365 { (exit 1); exit 1; }; }
28368 if test -f "$f"; then
28371 elif test -f "$srcdir/$f"; then
28376 { { echo "$as_me:28376: error: cannot find input file: $f" >&5
28377 echo "$as_me: error: cannot find input file: $f" >&2;}
28378 { (exit 1); exit 1; }; }
28381 done` || { (exit 1); exit 1; }
28382 # Remove the trailing spaces.
28383 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28387 # Transform confdefs.h into a list of #define's. We won't use it as a sed
28388 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
28389 # be either 'cat' or 'sort'.
28390 cat confdefs.h | uniq >conftest.vals
28392 # Break up conftest.vals because some shells have a limit on
28393 # the size of here documents, and old seds have small limits too.
28395 rm -f conftest.tail
28396 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
28397 while grep . conftest.vals >/dev/null
28399 # Write chunks of a limited-size here document to conftest.frag.
28400 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
28401 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
28402 echo 'CEOF' >> $CONFIG_STATUS
28403 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
28404 rm -f conftest.vals
28405 mv conftest.tail conftest.vals
28407 rm -f conftest.vals
28409 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
28411 echo ' cat >> conftest.edit <<CEOF
28412 /@DEFS@/r conftest.frag
28415 sed -f conftest.edit $tmp/in > $tmp/out
28417 mv $tmp/out $tmp/in
28418 rm -f conftest.edit conftest.frag
28419 ' >> $CONFIG_STATUS
28421 cat >>$CONFIG_STATUS <<\EOF
28422 # Let's still pretend it is `configure' which instantiates (i.e., don't
28423 # use $as_me), people would be surprised to read:
28424 # /* config.h. Generated automatically by config.status. */
28425 if test x"$ac_file" = x-; then
28426 echo "/* Generated automatically by configure. */" >$tmp/config.h
28428 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
28430 cat $tmp/in >>$tmp/config.h
28432 if test x"$ac_file" != x-; then
28433 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
28434 { echo "$as_me:28434: $ac_file is unchanged" >&5
28435 echo "$as_me: $ac_file is unchanged" >&6;}
28437 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28438 X"$ac_file" : 'X\(//\)[^/]' \| \
28439 X"$ac_file" : 'X\(//\)$' \| \
28440 X"$ac_file" : 'X\(/\)' \| \
28441 . : '\(.\)' 2>/dev/null ||
28443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28445 /^X\(\/\/\)$/{ s//\1/; q; }
28446 /^X\(\/\).*/{ s//\1/; q; }
28448 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
28449 { case "$ac_dir" in
28450 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
28454 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
28455 case $as_mkdir_dir in
28456 # Skip DOS drivespec
28457 ?:) as_incr_dir=$as_mkdir_dir ;;
28459 as_incr_dir=$as_incr_dir/$as_mkdir_dir
28460 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
28467 mv $tmp/config.h $ac_file
28471 rm -f $tmp/config.h
28475 cat >>$CONFIG_STATUS <<\EOF
28477 # CONFIG_COMMANDS section.
28479 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28480 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28481 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28485 if test "x$cf_with_tests" != xno ; then
28489 if test ! -d $srcdir/$cf_dir; then
28491 elif test -f $srcdir/$cf_dir/programs; then
28492 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
28498 cf_prefix=$LIB_PREFIX
28500 case $cf_cv_shlib_version in
28501 (cygdll|msysdll|mingw|msvcdll)
28502 TINFO_NAME=$TINFO_ARG_SUFFIX
28507 if test -n "$TINFO_SUFFIX" ; then
28508 case $TINFO_SUFFIX in
28510 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
28511 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
28514 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
28515 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
28518 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
28519 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
28524 for cf_dir in $SRC_SUBDIRS
28526 if test ! -d $srcdir/$cf_dir ; then
28528 elif test -f $srcdir/$cf_dir/modules; then
28533 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
28535 cf_awk_program="$cf_awk_program\
28536 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
28537 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
28541 if test "x$WILDCARD_SYMS" = xno
28543 cf_awk_program="$cf_awk_program\
28544 /[ ]_\\*;/ { skip=1; next; }\
28548 if test "x$cf_awk_program" != "x"
28550 cat >>$cf_dir/Makefile <<CF_EOF
28552 # Generated by CF_LIB_RULES
28553 resulting.map: $UNALTERED_SYMS
28554 $AWK 'BEGIN { skip = 1; last=""; } \
28556 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
28557 skip = 0; last = \$\$0; } \
28558 END { print last; }' < $UNALTERED_SYMS >\$@
28561 rm -f resulting.map
28565 for cf_item in $cf_LIST_MODELS
28571 cf_depsuf=$cf_suffix
28574 case $cf_cv_system_name in
28582 cf_depsuf=$cf_suffix
28585 case $cf_cv_system_name in
28593 cf_depsuf=$cf_suffix
28596 case $cf_cv_system_name in
28599 cf_depsuf=$cf_suffix
28603 cf_depsuf='.dll.lib'
28605 (cygwin*|msys*|mingw*)
28611 cf_depsuf=$cf_suffix
28617 cf_depsuf=$cf_suffix
28621 cf_depsuf=$cf_suffix
28627 cf_depsuf=$cf_suffix
28640 cf_depsuf=$cf_suffix
28643 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28645 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
28646 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
28649 if test "$cf_dir" = "c++"
28652 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28654 eval cf_libname=\$${cf_map_lib_basename}_NAME
28658 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28660 eval cf_libname=\$${cf_map_lib_basename}_NAME
28663 test -z "$cf_libname" && cf_libname="$cf_dir"
28664 if test $cf_item = shared ; then
28665 if test -n "${LIB_SUFFIX}"
28667 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
28669 cf_shared_suffix="$cf_suffix"
28671 if test "$cf_cv_do_symlinks" = yes ; then
28674 case "$cf_cv_shlib_version" in
28676 cf_version_name=REL_VERSION
28679 cf_version_name=ABI_VERSION
28683 if test -n "$cf_version_name"
28685 case "$cf_cv_system_name" in
28688 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
28691 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
28695 if test -n "${USE_LIB_SUFFIX}"
28697 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
28699 cf_shared_suffix="$cf_suffix"
28702 # cygwin needs import library, and has unique naming convention
28703 # use autodetected ${cf_prefix} for import lib and static lib, but
28704 # use 'cyg' prefix for shared lib.
28705 case $cf_cv_shlib_version in
28707 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28708 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
28711 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28712 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
28715 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28716 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
28719 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
28720 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
28726 if test -n "$cf_add_lib"
28728 Libs_To_Make="$Libs_To_Make $cf_add_lib"
28732 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
28733 Libs_To_Make="$Libs_To_Make $cf_add_lib"
28736 if test $cf_dir = ncurses ; then
28737 cf_subsets="$LIB_SUBSETS"
28738 cf_r_parts="$cf_subsets"
28739 cf_liblist="$Libs_To_Make"
28741 while test -n "$cf_r_parts"
28743 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
28744 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
28745 if test "$cf_l_parts" != "$cf_r_parts" ; then
28747 case $cf_l_parts in
28749 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
28752 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
28758 if test -n "$cf_add_lib"; then
28759 Libs_To_Make="$cf_add_lib $Libs_To_Make"
28766 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
28769 if test $cf_dir = c++; then
28770 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
28772 for cf_item in $Libs_To_Make
28778 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
28781 for cf_test in $cf_list
28783 if test "$cf_test" = "$cf_item"
28785 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
28790 test -n "$cf_item" && cf_list="$cf_list $cf_item"
28792 Libs_To_Make="$cf_list"
28796 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
28797 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
28798 $cf_dir/Makefile >$cf_dir/Makefile.out
28799 mv $cf_dir/Makefile.out $cf_dir/Makefile
28801 $AWK -f $srcdir/mk-0th.awk \
28802 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
28803 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
28805 for cf_subset in $cf_subsets
28808 for cf_item in $cf_LIST_MODELS
28811 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
28813 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28816 if test "$CXX_MODEL" = SHARED; then
28817 case $cf_cv_shlib_version in
28818 (cygdll|msysdll|mingw|msvcdll)
28819 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
28821 echo "${as_me:-configure}:28821: testing overriding CXX_MODEL to SHARED ..." 1>&5
28823 with_shared_cxx=yes
28826 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
28834 cf_depsuf=$cf_suffix
28837 case $cf_cv_system_name in
28845 cf_depsuf=$cf_suffix
28848 case $cf_cv_system_name in
28856 cf_depsuf=$cf_suffix
28859 case $cf_cv_system_name in
28862 cf_depsuf=$cf_suffix
28866 cf_depsuf='.dll.lib'
28868 (cygwin*|msys*|mingw*)
28874 cf_depsuf=$cf_suffix
28880 cf_depsuf=$cf_suffix
28884 cf_depsuf=$cf_suffix
28890 cf_depsuf=$cf_suffix
28903 cf_depsuf=$cf_suffix
28906 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28908 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
28909 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
28913 (libtool) cf_subdir='obj_lo' ;;
28914 (normal) cf_subdir='objects' ;;
28915 (debug) cf_subdir='obj_g' ;;
28916 (profile) cf_subdir='obj_p' ;;
28918 case $cf_cv_system_name in
28920 cf_subdir='objects' ;;
28922 cf_subdir='obj_s' ;;
28926 # Test for case where we build libtinfo with a different name.
28928 if test $cf_dir = ncurses ; then
28931 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28934 cf_libname=$TINFO_LIB_SUFFIX
28937 cf_libname=$TICS_LIB_SUFFIX
28940 elif test $cf_dir = c++ ; then
28942 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28944 eval cf_libname=\$${cf_map_lib_basename}_NAME
28946 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28949 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28951 eval cf_libname=\$${cf_map_lib_basename}_NAME
28953 cf_libname=${cf_libname}$USE_LIB_SUFFIX
28955 if test -n "${USE_ARG_SUFFIX}" ; then
28956 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
28957 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
28960 # These dependencies really are for development, not
28961 # builds, but they are useful in porting, too.
28962 cf_depend="../include/ncurses_cfg.h"
28963 if test "$srcdir" = "."; then
28966 cf_reldir="\${srcdir}"
28969 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
28970 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
28971 elif test -f $srcdir/$cf_dir/curses.priv.h; then
28972 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
28976 old_cf_suffix="$cf_suffix"
28977 if test "$cf_cv_shlib_version_infix" = yes ; then
28978 if test -n "$USE_LIB_SUFFIX" ; then
28979 case $USE_LIB_SUFFIX in
28981 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
28982 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
28983 cf_dir_suffix=tw$EXTRA_SUFFIX
28986 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
28987 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
28988 cf_dir_suffix=t$EXTRA_SUFFIX
28991 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
28992 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
28993 cf_dir_suffix=w$EXTRA_SUFFIX
28996 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
28997 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
28998 cf_dir_suffix=$EXTRA_SUFFIX
29004 $AWK -f $srcdir/mk-1st.awk \
29005 name=${cf_libname}${cf_dir_suffix} \
29006 traces=$LIB_TRACING \
29008 CXX_MODEL=$CXX_MODEL \
29010 prefix=$cf_prefix \
29011 suffix=$cf_suffix \
29012 subset=$cf_subset \
29013 driver=$cf_cv_term_driver \
29015 TermlibRoot=$TINFO_NAME \
29016 TermlibSuffix=$TINFO_SUFFIX \
29017 ShlibVer=$cf_cv_shlib_version \
29018 ShlibVerInfix=$cf_cv_shlib_version_infix \
29019 ReLink=${cf_cv_do_relink:-no} \
29020 ReRanlib=${cf_cv_do_reranlib:-yes} \
29021 DoLinks=$cf_cv_do_symlinks \
29022 rmSoLocs=$cf_cv_rm_so_locs \
29023 ldconfig="$LDCONFIG" \
29024 overwrite=$WITH_OVERWRITE \
29025 depend="$cf_depend" \
29027 libtool_version="$LIBTOOL_VERSION" \
29028 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
29030 cf_suffix="$old_cf_suffix"
29032 for cf_subdir2 in $cf_subdirs lib
29034 test $cf_subdir = $cf_subdir2 && break
29036 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
29037 $AWK -f $srcdir/mk-2nd.awk \
29039 traces=$LIB_TRACING \
29042 subset=$cf_subset \
29045 crenames=$cf_cv_prog_CC_c_o \
29046 cxxrenames=$cf_cv_prog_CXX_c_o \
29047 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
29048 cf_subdirs="$cf_subdirs $cf_subdir"
29053 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
29056 for cf_dir in $SRC_SUBDIRS
29058 if test ! -d $srcdir/$cf_dir ; then
29062 if test -f $cf_dir/Makefile ; then
29065 echo 'libs \' >> Makefile
29066 echo 'install.libs \' >> Makefile
29067 echo 'uninstall.libs ::' >> Makefile
29068 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
29073 if test -f $srcdir/$cf_dir/modules; then
29075 if test -f $srcdir/$cf_dir/headers; then
29076 cat >> Makefile <<CF_EOF
29077 install.includes \\
29078 uninstall.includes \\
29081 if test "$cf_dir" != "c++" ; then
29082 echo 'lint \' >> Makefile
29084 cat >> Makefile <<CF_EOF
29090 uninstall.$cf_dir ::
29091 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
29093 elif test -f $srcdir/$cf_dir/headers; then
29094 cat >> Makefile <<CF_EOF
29099 install.includes \\
29100 uninstall.includes ::
29101 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
29106 if test "x$cf_with_db_install" = xyes; then
29107 cat >> Makefile <<CF_EOF
29109 install.libs uninstall.libs \\
29110 install.data uninstall.data ::
29111 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
29114 cat >> Makefile <<CF_EOF
29116 install.libs uninstall.libs ::
29117 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
29121 if test "x$cf_with_manpages" = xyes; then
29122 cat >> Makefile <<CF_EOF
29126 cd man && \${MAKE} \${TOP_MFLAGS} \$@
29130 cat >> Makefile <<CF_EOF
29133 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
29134 rm -f headers.sh headers.sed mk_shared_lib.sh
29135 rm -f edit_man.* man_alias.*
29136 rm -rf \${DIRS_TO_MAKE}
29139 # Special case: tack's manpage lives in its own directory.
29140 if test "x$cf_with_manpages" = xyes; then
29141 if test "x$cf_with_tack" = "xyes"; then
29142 cat >> Makefile <<CF_EOF
29146 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
29151 rm -f headers.sed headers.sh
29153 echo creating headers.sh
29154 cat >headers.sh <<CF_EOF
29156 # This shell script is generated by the 'configure' script. It is invoked in a
29157 # subdirectory of the build tree. It generates a sed-script in the parent
29158 # directory that is used to adjust includes for header files that reside in a
29159 # subdirectory of /usr/include, etc.
29161 while test \$# != 3
29163 PRG="\$PRG \$1"; shift
29168 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
29169 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
29170 echo installing \$SRC in \$DST
29173 if test $WITH_CURSES_H = yes; then
29174 cat >>headers.sh <<CF_EOF
29177 END=\`basename \$DST\`
29178 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
29180 NAME=\`basename \$i\`
29181 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
29185 echo "" >> \$TMPSED
29191 cat >>headers.sh <<CF_EOF
29194 END=\`basename \$DST\`
29195 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
29197 NAME=\`basename \$i\`
29198 if test "\$NAME" = "curses.h"
29200 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
29203 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
29207 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
29212 cat >>headers.sh <<CF_EOF
29214 sed -f \$TMPSED \$SRC > \$TMPSRC
29215 NAME=\`basename \$SRC\`
29217 if test $WITH_CURSES_H != yes; then
29218 cat >>headers.sh <<CF_EOF
29219 test "\$NAME" = "curses.h" && NAME=ncurses.h
29222 cat >>headers.sh <<CF_EOF
29223 # Just in case someone gzip'd manpages, remove the conflicting copy.
29224 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
29226 eval \$PRG \$TMPSRC \$DST/\$NAME
29227 rm -f \$TMPSRC \$TMPSED
29230 chmod 0755 headers.sh
29232 for cf_dir in $SRC_SUBDIRS
29234 if test ! -d $srcdir/$cf_dir ; then
29238 if test -f $srcdir/$cf_dir/headers; then
29239 $AWK -f $srcdir/mk-hdr.awk \
29240 subset="$LIB_SUBSETS" \
29241 compat="$WITH_CURSES_H" \
29242 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
29245 if test -f $srcdir/$cf_dir/modules; then
29246 if test "$cf_dir" != "c++" ; then
29247 cat >>$cf_dir/Makefile <<"CF_EOF"
29248 depend : ${AUTO_SRC}
29249 makedepend -- ${CPPFLAGS} -- ${C_SRC}
29251 # DO NOT DELETE THIS LINE -- make depend depends on it.
29257 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
29258 if test -z "$USE_OLD_MAKERULES" ; then
29259 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
29267 cat >>$CONFIG_STATUS <<\EOF
29269 { (exit 0); exit 0; }
29271 chmod +x $CONFIG_STATUS
29272 ac_clean_files=$ac_clean_files_save
29274 # configure is writing to config.log, and then calls config.status.
29275 # config.status does its own redirection, appending to config.log.
29276 # Unfortunately, on DOS this fails, as config.log is still kept open
29277 # by configure, so config.status won't be able to write to it; its
29278 # output is simply discarded. So we exec the FD to /dev/null,
29279 # effectively closing config.log, so it can be properly (re)opened and
29280 # appended to by config.status. When coming back to configure, we
29281 # need to make the FD available again.
29282 if test "$no_create" != yes; then
29285 $SHELL $CONFIG_STATUS || ac_cs_success=false
29287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29288 # would make configure fail if this is the last instruction.
29289 $ac_cs_success || { (exit 1); exit 1; }
29291 ${MAKE:-make} preinstall