2 # From configure.in Revision: 1.741 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20210509.
6 # Copyright 2003-2020,2021 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --without-ada suppress check for Ada compiler, don't build demo
720 --without-cxx do not adjust ncurses bool to match C++
721 --without-cxx-binding do not build C++ binding and demo
722 --disable-db-install suppress install of terminal database
723 --without-manpages suppress install of manpages
724 --without-progs suppress build/install with programs (e.g., tic)
725 --without-tack suppress build/install with tack program
726 --without-tests suppress build/install with test-programs
727 --without-curses-h install curses.h as ncurses.h only
728 --with-config-suffix=X suffixes ncursesXX-config file
729 --with-pkg-config{=path} enable/disable use of pkg-config
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix suffixes pc-files
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix prefixes actual install-location ($DESTDIR)
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version=X Specify rel or abi version for shared libs
756 --with-libtool-opts=XXX specify additional libtool options
757 --with-export-syms=XXX limit exported symbols using libtool
758 --with-versioned-syms=X markup versioned symbols using ld
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict root use of ncurses environment variables
787 --disable-root-access restrict file-access when running setuid
788 --enable-symlinks make tic use symbolic links not hard links
789 --enable-broken_linker compile with broken-linker support code
790 --enable-bsdpad recognize BSD-style prefix padding
791 --enable-widec compile with wide-char/UTF-8 code
792 --disable-lp64 allow chtype to be long (ignore _LP64)
793 --disable-largefile omit support for large files
794 --disable-tparm-varargs compile tparm() without varargs interface
795 --disable-tic-depends link tic library without explicit dependency on ncurses library
796 --enable-wattr-macros enable wattr* macros
797 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
798 --with-bool=TYPE override fallback type of bool variable
799 --with-caps=alt compile with alternate Caps file
800 --with-chtype=TYPE override type of chtype
801 --with-ospeed=TYPE override type of ospeed variable
802 --with-mmask-t=TYPE override type of mmask_t
803 --with-ccharw-max=XXX override size CCHARW_MAX
804 --enable-signed-char compile using signed Boolean's in term.h
805 --with-tparm-arg=TYPE override parameter type of tparm
806 --with-rcs-ids compile-in RCS identifiers
807 Options to Specify How Manpages are Installed:
808 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
809 optionally formatted/catonly, e.g., gzip,formatted
810 --with-manpage-renames specify manpage-renaming
811 --with-manpage-aliases specify manpage-aliases using .so
812 --with-manpage-symlinks specify manpage-aliases using symlinks
813 --with-manpage-tbl specify manpage processing with tbl
815 --disable-ext-funcs disable function-extensions
816 --enable-sp-funcs enable SCREEN-extensions
817 --enable-term-driver enable terminal-driver
818 --enable-const compile with extra/non-standard const
819 --enable-ext-colors compile for 256-color support
820 --enable-ext-mouse compile for extended mouse-encoding
821 --enable-ext-putwin compile with extended putwin/screendump
822 --enable-no-padding compile with $NCURSES_NO_PADDING code
823 --enable-sigwinch compile with SIGWINCH handler
824 --enable-tcap-names compile with user-definable terminal capabilities
826 --with-pthread use POSIX thread library
827 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
828 --enable-weak-symbols enable weak-symbols for pthreads
829 --enable-reentrant compile with reentrant code
830 --enable-opaque-curses make curses WINDOW, etc., "opaque"
831 --enable-opaque-form make form-library structures "opaque"
832 --enable-opaque-menu make menu-library structures "opaque"
833 --enable-opaque-panel make panel-library structures "opaque"
834 --with-wrap-prefix=XXX override prefix used for public variables
836 --without-develop disable development options
837 --enable-hard-tabs compile with hard-tabs code
838 --enable-xmc-glitch compile with support for xmc (magic-cookie)
840 --disable-assumed-color do not assume anything about default-colors
841 --disable-hashmap compile without hashmap scrolling-optimization
842 --enable-colorfgbg compile-in experimental $COLORFGBG code
843 --enable-fvisibility compile with -fvisibility=hidden
844 --enable-interop compile-in interop bindings
845 --enable-safe-sprintf compile with experimental safe-sprintf code
846 --disable-scroll-hints compile without scroll-hints code
847 --enable-wgetch-events compile with wgetch-events code
848 --enable-exp-win32 compile with experimental-Windows driver
849 Testing/development Options:
850 --disable-echo do not display "compiling" commands
851 --disable-stripping do not strip (debug info) installed executables
852 --enable-warnings test: turn on gcc compiler warnings
853 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
854 --enable-string-hacks work around bogus compiler/loader warnings
855 --enable-assertions test: turn on generation of assertion code
856 --with-dmalloc test: use Gray Watson's dmalloc library
857 --with-dbmalloc test: use Conor Cahill's dbmalloc library
858 --with-valgrind test: use valgrind
859 --disable-leaks test: free permanent memory, analyze leaks
860 --enable-expanded test: generate functions for certain macros
861 --disable-macros test: use functions rather than macros
862 --with-trace test: add trace() function to all models of ncurses
863 --disable-gnat-projects test: disable GNAT projects even if usable
865 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
866 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
867 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
868 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
869 --with-ada-libname=XXX override default Ada library-name
870 --with-form-libname=XXX override form basename of library
871 --with-menu-libname=XXX override menu basename of library
872 --with-panel-libname=XXX override panel basename of library
873 --with-cxx-libname=XXX override ncurses++ basename of library
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
883 CXX C++ compiler command
884 CXXFLAGS C++ compiler flags
885 CXXCPP C++ preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
898 # A "../" for each directory in /$ac_subdir.
899 ac_dots=`echo "$ac_subdir" |
900 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
903 .) # No --srcdir option. We are building in place.
904 ac_sub_srcdir="$srcdir" ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
908 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f "$ac_sub_srcdir/configure.gnu"; then
914 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
915 elif test -f "$ac_sub_srcdir/configure"; then
917 $SHELL "$ac_sub_srcdir/configure" --help=recursive
918 elif test -f "$ac_sub_srcdir/configure.ac" ||
919 test -f "$ac_sub_srcdir/configure.in"; then
921 "$ac_configure" --help
923 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
929 test -n "$ac_init_help" && exit 0
930 if "$ac_init_version"; then
933 Copyright 2003-2020,2021 Thomas E. Dickey
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by $as_me, which was
947 generated by GNU Autoconf 2.52.20210509. Invocation command line was
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c) ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1001 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1003 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1006 # Get rid of the leading space.
1009 # When interrupted or exit'd, cleanup temporary files, and complete
1010 # config.log. We remove comments because anyway the quotes in there
1011 # would cause problems or look ugly.
1012 trap 'exit_status=$?
1013 # Save into config.log some information that might help in debugging.
1015 echo "## ----------------- ##" >&5
1016 echo "## Cache variables. ##" >&5
1017 echo "## ----------------- ##" >&5
1019 # The following way of writing the cache mishandles newlines in values,
1022 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1025 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034 sed "/^$/d" confdefs.h >conftest.log
1035 if test -s conftest.log; then
1037 echo "## ------------ ##" >&5
1038 echo "## confdefs.h. ##" >&5
1039 echo "## ------------ ##" >&5
1041 cat conftest.log >&5
1044 test "$ac_signal" != 0 &&
1045 echo "$as_me: caught signal $ac_signal" >&5
1046 echo "$as_me: exit $exit_status" >&5
1047 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1050 for ac_signal in 1 2 13 15; do
1051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1056 rm -rf conftest* confdefs.h
1057 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1060 # Let the site file select an alternate cache file if it wants to.
1061 # Prefer explicitly selected file to automatically selected ones.
1062 if test -z "$CONFIG_SITE"; then
1063 if test "x$prefix" != xNONE; then
1064 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1066 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1069 for ac_site_file in $CONFIG_SITE; do
1070 if test -r "$ac_site_file"; then
1071 { echo "$as_me:1071: loading site script $ac_site_file" >&5
1072 echo "$as_me: loading site script $ac_site_file" >&6;}
1073 cat "$ac_site_file" >&5
1078 if test -r "$cache_file"; then
1079 # Some versions of bash will fail to source /dev/null (special
1080 # files actually), so we avoid doing that.
1081 if test -f "$cache_file"; then
1082 { echo "$as_me:1082: loading cache $cache_file" >&5
1083 echo "$as_me: loading cache $cache_file" >&6;}
1085 [\\/]* | ?:[\\/]* ) . $cache_file;;
1086 *) . ./$cache_file;;
1090 { echo "$as_me:1090: creating cache $cache_file" >&5
1091 echo "$as_me: creating cache $cache_file" >&6;}
1095 # Check that the precious variables saved in the cache have kept the same
1097 ac_cache_corrupted=false
1098 for ac_var in `(set) 2>&1 |
1099 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1100 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1101 eval ac_new_set=\$ac_env_${ac_var}_set
1102 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1103 eval ac_new_val="\$ac_env_${ac_var}_value"
1104 case "$ac_old_set,$ac_new_set" in
1106 { echo "$as_me:1106: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1107 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1108 ac_cache_corrupted=: ;;
1110 { echo "$as_me:1110: error: \`$ac_var' was not set in the previous run" >&5
1111 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1112 ac_cache_corrupted=: ;;
1115 if test "x$ac_old_val" != "x$ac_new_val"; then
1116 { echo "$as_me:1116: error: \`$ac_var' has changed since the previous run:" >&5
1117 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1118 { echo "$as_me:1118: former value: $ac_old_val" >&5
1119 echo "$as_me: former value: $ac_old_val" >&2;}
1120 { echo "$as_me:1120: current value: $ac_new_val" >&5
1121 echo "$as_me: current value: $ac_new_val" >&2;}
1122 ac_cache_corrupted=:
1125 # Pass precious variables to config.status. It doesn't matter if
1126 # we pass some twice (in addition to the command line arguments).
1127 if test "$ac_new_set" = set; then
1128 case "$ac_new_val" in
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1131 ac_configure_args="$ac_configure_args '$ac_arg'"
1133 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1138 if "$ac_cache_corrupted"; then
1139 { echo "$as_me:1139: error: changes in the environment can compromise the build" >&5
1140 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1141 { { echo "$as_me:1141: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1142 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1143 { (exit 1); exit 1; }; }
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1149 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1151 ac_main_return="return"
1153 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1155 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1167 echo "#! $SHELL" >conftest.sh
1168 echo "exit 0" >>conftest.sh
1169 chmod +x conftest.sh
1170 if { (echo "$as_me:1170: PATH=\".;.\"; conftest.sh") >&5
1171 (PATH=".;."; conftest.sh) 2>&5
1173 echo "$as_me:1173: \$? = $ac_status" >&5
1174 (exit "$ac_status"); }; then
1175 ac_path_separator=';'
1179 PATH_SEPARATOR="$ac_path_separator"
1182 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1186 for ac_prog in ggrep grep
1188 # Extract the first word of "$ac_prog", so it can be a program name with args.
1189 set dummy $ac_prog; ac_word=$2
1190 echo "$as_me:1190: checking for $ac_word" >&5
1191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1192 if test "${ac_cv_prog_GREP+set}" = set; then
1193 echo $ECHO_N "(cached) $ECHO_C" >&6
1195 if test -n "$GREP"; then
1196 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1198 ac_save_IFS=$IFS; IFS=$ac_path_separator
1200 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 $as_executable_p "$ac_dir/$ac_word" || continue
1204 ac_cv_prog_GREP="$ac_prog"
1205 echo "$as_me:1205: found $ac_dir/$ac_word" >&5
1211 GREP=$ac_cv_prog_GREP
1212 if test -n "$GREP"; then
1213 echo "$as_me:1213: result: $GREP" >&5
1214 echo "${ECHO_T}$GREP" >&6
1216 echo "$as_me:1216: result: no" >&5
1217 echo "${ECHO_T}no" >&6
1220 test -n "$GREP" && break
1222 test -n "$GREP" || GREP=": "
1224 echo "$as_me:1224: checking for egrep" >&5
1225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1226 if test "${ac_cv_path_EGREP+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1230 then ac_cv_path_EGREP="$GREP -E"
1232 for ac_prog in gegrep egrep
1234 # Extract the first word of "$ac_prog", so it can be a program name with args.
1235 set dummy $ac_prog; ac_word=$2
1236 echo "$as_me:1236: checking for $ac_word" >&5
1237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238 if test "${ac_cv_path_EGREP+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1243 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1246 ac_save_IFS=$IFS; IFS=$ac_path_separator
1248 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if $as_executable_p "$ac_dir/$ac_word"; then
1252 ac_cv_path_EGREP="$ac_dir/$ac_word"
1253 echo "$as_me:1253: found $ac_dir/$ac_word" >&5
1261 EGREP=$ac_cv_path_EGREP
1263 if test -n "$EGREP"; then
1264 echo "$as_me:1264: result: $EGREP" >&5
1265 echo "${ECHO_T}$EGREP" >&6
1267 echo "$as_me:1267: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1271 test -n "$EGREP" && break
1273 test -n "$EGREP" || EGREP=": "
1275 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1275: error: cannot find workable egrep" >&5
1276 echo "$as_me: error: cannot find workable egrep" >&2;}
1277 { (exit 1); exit 1; }; }
1280 echo "$as_me:1280: result: $ac_cv_path_EGREP" >&5
1281 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1282 EGREP="$ac_cv_path_EGREP"
1284 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1285 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1286 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1287 cf_cv_abi_version=${NCURSES_MAJOR}
1288 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1289 cf_cv_timestamp=`date`
1290 echo "$as_me:1290: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1291 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1293 if test -f "$srcdir/VERSION" ; then
1294 echo "$as_me:1294: checking for package version" >&5
1295 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1297 # if there are not enough fields, cut returns the last one...
1298 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1299 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1300 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1302 # this is how CF_BUNDLED_INTL uses $VERSION:
1303 VERSION="$cf_field1"
1305 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1306 test -z "$VERSION_MAJOR" && { { echo "$as_me:1306: error: missing major-version" >&5
1307 echo "$as_me: error: missing major-version" >&2;}
1308 { (exit 1); exit 1; }; }
1310 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1311 test -z "$VERSION_MINOR" && { { echo "$as_me:1311: error: missing minor-version" >&5
1312 echo "$as_me: error: missing minor-version" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:1315: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1316 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1318 echo "$as_me:1318: checking for package patch date" >&5
1319 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1320 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1321 case .$VERSION_PATCH in
1323 { { echo "$as_me:1323: error: missing patch-date $VERSION_PATCH" >&5
1324 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1325 { (exit 1); exit 1; }; }
1327 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1330 { { echo "$as_me:1330: error: illegal patch-date $VERSION_PATCH" >&5
1331 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:1335: result: $VERSION_PATCH" >&5
1336 echo "${ECHO_T}$VERSION_PATCH" >&6
1338 { { echo "$as_me:1338: error: did not find $srcdir/VERSION" >&5
1339 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1340 { (exit 1); exit 1; }; }
1343 # show the actual data that we have for versions:
1344 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1346 echo "${as_me:-configure}:1346: testing ABI VERSION $VERSION ..." 1>&5
1348 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1350 echo "${as_me:-configure}:1350: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1352 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1354 echo "${as_me:-configure}:1354: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1356 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1358 echo "${as_me:-configure}:1358: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1363 cat >>confdefs.h <<EOF
1364 #define PACKAGE "$PACKAGE"
1367 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1369 cat >>confdefs.h <<EOF
1370 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1373 cat >>confdefs.h <<EOF
1374 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1377 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1379 # Check whether --with-rel-version or --without-rel-version was given.
1380 if test "${with_rel_version+set}" = set; then
1381 withval="$with_rel_version"
1382 { echo "$as_me:1382: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1383 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1384 cf_cv_rel_version=$withval
1387 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1388 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1390 if test -n "$NCURSES_MAJOR" ; then
1391 case $NCURSES_MAJOR in
1395 { { echo "$as_me:1395: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1396 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1397 { (exit 1); exit 1; }; }
1401 { { echo "$as_me:1401: error: Release major-version value is empty" >&5
1402 echo "$as_me: error: Release major-version value is empty" >&2;}
1403 { (exit 1); exit 1; }; }
1406 if test -n "$NCURSES_MINOR" ; then
1407 case $NCURSES_MINOR in
1411 { { echo "$as_me:1411: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1412 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1413 { (exit 1); exit 1; }; }
1417 { { echo "$as_me:1417: error: Release minor-version value is empty" >&5
1418 echo "$as_me: error: Release minor-version value is empty" >&2;}
1419 { (exit 1); exit 1; }; }
1422 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1424 # Check whether --with-abi-version or --without-abi-version was given.
1425 if test "${with_abi_version+set}" = set; then
1426 withval="$with_abi_version"
1428 if test "x$cf_cv_abi_version" != "x$withval"
1430 { echo "$as_me:1430: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1431 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1432 case "$cf_cv_rel_version" in
1434 cf_cv_rel_version=$withval.0
1437 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1441 cf_cv_abi_version=$withval
1444 if test -n "$cf_cv_abi_version" ; then
1445 case $cf_cv_abi_version in
1449 { { echo "$as_me:1449: error: ABI version is not a number: $cf_cv_abi_version" >&5
1450 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1451 { (exit 1); exit 1; }; }
1455 { { echo "$as_me:1455: error: ABI version value is empty" >&5
1456 echo "$as_me: error: ABI version value is empty" >&2;}
1457 { (exit 1); exit 1; }; }
1460 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1462 case "$cf_cv_rel_version" in
1464 cf_cv_rel_version=$with_abi_version.0
1470 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1471 if test -f "$ac_dir/install-sh"; then
1473 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 elif test -f "$ac_dir/install.sh"; then
1477 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 elif test -f "$ac_dir/shtool"; then
1481 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 if test -z "$ac_aux_dir"; then
1486 { { echo "$as_me:1486: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1487 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1488 { (exit 1); exit 1; }; }
1490 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1491 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1492 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1494 # Make sure we can run config.sub.
1495 $ac_config_sub sun4 >/dev/null 2>&1 ||
1496 { { echo "$as_me:1496: error: cannot run $ac_config_sub" >&5
1497 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1498 { (exit 1); exit 1; }; }
1500 echo "$as_me:1500: checking build system type" >&5
1501 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1502 if test "${ac_cv_build+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 ac_cv_build_alias=$build_alias
1506 test -z "$ac_cv_build_alias" &&
1507 ac_cv_build_alias=`$ac_config_guess`
1508 test -z "$ac_cv_build_alias" &&
1509 { { echo "$as_me:1509: error: cannot guess build type; you must specify one" >&5
1510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1511 { (exit 1); exit 1; }; }
1512 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1513 { { echo "$as_me:1513: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1514 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1515 { (exit 1); exit 1; }; }
1518 echo "$as_me:1518: result: $ac_cv_build" >&5
1519 echo "${ECHO_T}$ac_cv_build" >&6
1521 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 echo "$as_me:1525: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532 ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1534 { { echo "$as_me:1534: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:1539: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1542 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1547 echo "$as_me:1547: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554 ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1556 { { echo "$as_me:1556: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:1561: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568 # The aliases save the names the user supplied, while $host etc.
1569 # will get canonicalized.
1570 test -n "$target_alias" &&
1571 test "$program_prefix$program_suffix$program_transform_name" = \
1573 program_prefix=${target_alias}-
1574 system_name="$host_os"
1576 system_name="`(uname -s -r) 2>/dev/null`"
1577 if test -z "$system_name" ; then
1578 system_name="`(hostname) 2>/dev/null`"
1581 test -n "$system_name" &&
1582 cat >>confdefs.h <<EOF
1583 #define SYSTEM_NAME "$system_name"
1586 if test "${cf_cv_system_name+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 cf_cv_system_name="$system_name"
1592 test -z "$system_name" && system_name="$cf_cv_system_name"
1593 test -n "$cf_cv_system_name" && echo "$as_me:1593: result: Configuring for $cf_cv_system_name" >&5
1594 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1596 if test ".$system_name" != ".$cf_cv_system_name" ; then
1597 echo "$as_me:1597: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1598 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1599 { { echo "$as_me:1599: error: \"Please remove config.cache and try again.\"" >&5
1600 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1601 { (exit 1); exit 1; }; }
1604 # Check whether --with-system-type or --without-system-type was given.
1605 if test "${with_system_type+set}" = set; then
1606 withval="$with_system_type"
1607 { echo "$as_me:1607: WARNING: overriding system type to $withval" >&5
1608 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1609 cf_cv_system_name=$withval
1614 ### Save the given $CFLAGS to allow user-override.
1615 cf_user_CFLAGS="$CFLAGS"
1617 ### Default install-location
1618 echo "$as_me:1618: checking for fgrep" >&5
1619 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1620 if test "${ac_cv_path_FGREP+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1624 then ac_cv_path_FGREP="$GREP -F"
1626 for ac_prog in gfgrep fgrep
1628 # Extract the first word of "$ac_prog", so it can be a program name with args.
1629 set dummy $ac_prog; ac_word=$2
1630 echo "$as_me:1630: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_path_FGREP+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1640 ac_save_IFS=$IFS; IFS=$ac_path_separator
1642 for ac_dir in $ac_dummy; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if $as_executable_p "$ac_dir/$ac_word"; then
1646 ac_cv_path_FGREP="$ac_dir/$ac_word"
1647 echo "$as_me:1647: found $ac_dir/$ac_word" >&5
1655 FGREP=$ac_cv_path_FGREP
1657 if test -n "$FGREP"; then
1658 echo "$as_me:1658: result: $FGREP" >&5
1659 echo "${ECHO_T}$FGREP" >&6
1661 echo "$as_me:1661: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1665 test -n "$FGREP" && break
1667 test -n "$FGREP" || FGREP=": "
1669 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1669: error: cannot find workable fgrep" >&5
1670 echo "$as_me: error: cannot find workable fgrep" >&2;}
1671 { (exit 1); exit 1; }; }
1674 echo "$as_me:1674: result: $ac_cv_path_FGREP" >&5
1675 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1676 FGREP="$ac_cv_path_FGREP"
1678 echo "$as_me:1678: checking for prefix" >&5
1679 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1680 if test "x$prefix" = "xNONE" ; then
1681 case "$cf_cv_system_name" in
1682 # non-vendor systems don't have a conflict
1683 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1686 (*) prefix=$ac_default_prefix
1690 echo "$as_me:1690: result: $prefix" >&5
1691 echo "${ECHO_T}$prefix" >&6
1693 if test "x$prefix" = "xNONE" ; then
1694 echo "$as_me:1694: checking for default include-directory" >&5
1695 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1696 test -n "$verbose" && echo 1>&6
1699 "$includedir/ncurses" \
1701 "$prefix/include/ncurses" \
1702 /usr/local/include \
1703 /usr/local/include/ncurses \
1705 /usr/include/ncurses
1707 cf_dir=`eval echo "$cf_symbol"`
1708 if test -f "$cf_dir/curses.h" ; then
1709 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1710 includedir="$cf_symbol"
1711 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1715 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1717 echo "$as_me:1717: result: $includedir" >&5
1718 echo "${ECHO_T}$includedir" >&6
1721 ### Defaults for ncurses ABI
1726 cf_dft_ext_colors=no
1729 cf_dft_ext_putwin=no
1730 cf_dft_ext_spfuncs=no
1731 cf_dft_filter_syms=no
1734 cf_dft_opaque_curses=no
1735 cf_dft_ordinate_type=short
1736 cf_dft_signed_char=no
1737 cf_dft_tparm_arg=long
1741 case x$cf_cv_abi_version in
1743 cf_dft_chtype=uint32_t
1744 cf_dft_ext_colors=yes
1745 cf_dft_ext_const=yes
1746 cf_dft_ext_mouse=yes
1747 cf_dft_ext_putwin=yes
1748 cf_dft_ext_spfuncs=yes
1749 cf_dft_filter_syms=yes
1751 cf_dft_mmask_t=uint32_t
1752 cf_dft_tparm_arg=intptr_t
1753 cf_dft_with_lp64=yes
1758 case x$cf_cv_abi_version in
1761 cf_dft_mmask_t=uint64_t
1762 cf_dft_opaque_curses=yes
1763 cf_dft_ordinate_type=int
1764 cf_dft_signed_char=yes
1765 # also: remove the wgetch-events feature in ABI 7
1769 ### Checks for programs.
1771 # Check whether --with-ada or --without-ada was given.
1772 if test "${with_ada+set}" = set; then
1774 cf_with_ada=$withval
1779 if test "x$cf_with_ada" = xyes
1781 cf_prog_cc="gnatgcc gcc cc"
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1789 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 ac_main_return="return"
1792 if test -n "$ac_tool_prefix"; then
1793 for ac_prog in $cf_prog_cc
1795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1797 echo "$as_me:1797: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1805 ac_save_IFS=$IFS; IFS=$ac_path_separator
1807 for ac_dir in $ac_dummy; do
1809 test -z "$ac_dir" && ac_dir=.
1810 $as_executable_p "$ac_dir/$ac_word" || continue
1811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1812 echo "$as_me:1812: found $ac_dir/$ac_word" >&5
1819 if test -n "$CC"; then
1820 echo "$as_me:1820: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1823 echo "$as_me:1823: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1827 test -n "$CC" && break
1830 if test -z "$CC"; then
1832 for ac_prog in $cf_prog_cc
1834 # Extract the first word of "$ac_prog", so it can be a program name with args.
1835 set dummy $ac_prog; ac_word=$2
1836 echo "$as_me:1836: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 if test -n "$ac_ct_CC"; then
1842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844 ac_save_IFS=$IFS; IFS=$ac_path_separator
1846 for ac_dir in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir=.
1849 $as_executable_p "$ac_dir/$ac_word" || continue
1850 ac_cv_prog_ac_ct_CC="$ac_prog"
1851 echo "$as_me:1851: found $ac_dir/$ac_word" >&5
1857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1858 if test -n "$ac_ct_CC"; then
1859 echo "$as_me:1859: result: $ac_ct_CC" >&5
1860 echo "${ECHO_T}$ac_ct_CC" >&6
1862 echo "$as_me:1862: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 test -n "$ac_ct_CC" && break
1872 test -z "$CC" && { { echo "$as_me:1872: error: no acceptable cc found in \$PATH" >&5
1873 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1874 { (exit 1); exit 1; }; }
1876 # Provide some information about the compiler.
1877 echo "$as_me:1877:" \
1878 "checking for C compiler version" >&5
1879 ac_compiler=`set X $ac_compile; echo "$2"`
1880 { (eval echo "$as_me:1880: \"$ac_compiler --version </dev/null >&5\"") >&5
1881 (eval $ac_compiler --version </dev/null >&5) 2>&5
1883 echo "$as_me:1883: \$? = $ac_status" >&5
1884 (exit "$ac_status"); }
1885 { (eval echo "$as_me:1885: \"$ac_compiler -v </dev/null >&5\"") >&5
1886 (eval $ac_compiler -v </dev/null >&5) 2>&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit "$ac_status"); }
1890 { (eval echo "$as_me:1890: \"$ac_compiler -V </dev/null >&5\"") >&5
1891 (eval $ac_compiler -V </dev/null >&5) 2>&5
1893 echo "$as_me:1893: \$? = $ac_status" >&5
1894 (exit "$ac_status"); }
1896 cat >"conftest.$ac_ext" <<_ACEOF
1897 #line 1897 "configure"
1898 #include "confdefs.h"
1908 ac_clean_files_save=$ac_clean_files
1909 ac_clean_files="$ac_clean_files a.out a.exe"
1910 # Try to create an executable without -o first, disregard a.out.
1911 # It will help us diagnose broken compilers, and finding out an intuition
1913 echo "$as_me:1913: checking for C compiler default output" >&5
1914 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1915 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1916 if { (eval echo "$as_me:1916: \"$ac_link_default\"") >&5
1917 (eval $ac_link_default) 2>&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit "$ac_status"); }; then
1921 # Find the output, starting from the most likely. This scheme is
1922 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1924 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1925 ls a.out conftest 2>/dev/null;
1926 ls a.* conftest.* 2>/dev/null`; do
1928 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1929 a.out ) # We found the default executable, but exeext='' is most
1932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1940 echo "$as_me: failed program was:" >&5
1941 cat "conftest.$ac_ext" >&5
1942 { { echo "$as_me:1942: error: C compiler cannot create executables" >&5
1943 echo "$as_me: error: C compiler cannot create executables" >&2;}
1944 { (exit 77); exit 77; }; }
1947 ac_exeext=$ac_cv_exeext
1948 echo "$as_me:1948: result: $ac_file" >&5
1949 echo "${ECHO_T}$ac_file" >&6
1951 # Check the compiler produces executables we can run. If not, either
1952 # the compiler is broken, or we cross compile.
1953 echo "$as_me:1953: checking whether the C compiler works" >&5
1954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956 # If not cross compiling, check that we can run a simple program.
1957 if test "$cross_compiling" != yes; then
1958 if { ac_try='./$ac_file'
1959 { (eval echo "$as_me:1959: \"$ac_try\"") >&5
1962 echo "$as_me:1962: \$? = $ac_status" >&5
1963 (exit "$ac_status"); }; }; then
1966 if test "$cross_compiling" = maybe; then
1969 { { echo "$as_me:1969: error: cannot run C compiled programs.
1970 If you meant to cross compile, use \`--host'." >&5
1971 echo "$as_me: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'." >&2;}
1973 { (exit 1); exit 1; }; }
1977 echo "$as_me:1977: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1980 rm -f a.out a.exe "conftest$ac_cv_exeext"
1981 ac_clean_files=$ac_clean_files_save
1982 # Check the compiler produces executables we can run. If not, either
1983 # the compiler is broken, or we cross compile.
1984 echo "$as_me:1984: checking whether we are cross compiling" >&5
1985 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1986 echo "$as_me:1986: result: $cross_compiling" >&5
1987 echo "${ECHO_T}$cross_compiling" >&6
1989 echo "$as_me:1989: checking for executable suffix" >&5
1990 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1991 if { (eval echo "$as_me:1991: \"$ac_link\"") >&5
1992 (eval $ac_link) 2>&5
1994 echo "$as_me:1994: \$? = $ac_status" >&5
1995 (exit "$ac_status"); }; then
1996 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1997 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1998 # work properly (i.e., refer to `conftest.exe'), while it won't with
2000 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2002 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2010 { { echo "$as_me:2010: error: cannot compute EXEEXT: cannot compile and link" >&5
2011 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2012 { (exit 1); exit 1; }; }
2015 rm -f "conftest$ac_cv_exeext"
2016 echo "$as_me:2016: result: $ac_cv_exeext" >&5
2017 echo "${ECHO_T}$ac_cv_exeext" >&6
2019 rm -f "conftest.$ac_ext"
2020 EXEEXT=$ac_cv_exeext
2022 echo "$as_me:2022: checking for object suffix" >&5
2023 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2024 if test "${ac_cv_objext+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 cat >"conftest.$ac_ext" <<_ACEOF
2028 #line 2028 "configure"
2029 #include "confdefs.h"
2039 rm -f conftest.o conftest.obj
2040 if { (eval echo "$as_me:2040: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>&5
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit "$ac_status"); }; then
2045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2053 echo "$as_me: failed program was:" >&5
2054 cat "conftest.$ac_ext" >&5
2055 { { echo "$as_me:2055: error: cannot compute OBJEXT: cannot compile" >&5
2056 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2057 { (exit 1); exit 1; }; }
2060 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2062 echo "$as_me:2062: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2066 echo "$as_me:2066: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 cat >"conftest.$ac_ext" <<_ACEOF
2072 #line 2072 "configure"
2073 #include "confdefs.h"
2086 rm -f "conftest.$ac_objext"
2087 if { (eval echo "$as_me:2087: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>&5
2090 echo "$as_me:2090: \$? = $ac_status" >&5
2091 (exit "$ac_status"); } &&
2092 { ac_try='test -s "conftest.$ac_objext"'
2093 { (eval echo "$as_me:2093: \"$ac_try\"") >&5
2096 echo "$as_me:2096: \$? = $ac_status" >&5
2097 (exit "$ac_status"); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 cat "conftest.$ac_ext" >&5
2104 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2108 echo "$as_me:2108: result: $ac_cv_c_compiler_gnu" >&5
2109 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2110 GCC=`test $ac_compiler_gnu = yes && echo yes`
2111 ac_test_CFLAGS=${CFLAGS+set}
2112 ac_save_CFLAGS=$CFLAGS
2114 echo "$as_me:2114: checking whether $CC accepts -g" >&5
2115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2116 if test "${ac_cv_prog_cc_g+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 cat >"conftest.$ac_ext" <<_ACEOF
2120 #line 2120 "configure"
2121 #include "confdefs.h"
2131 rm -f "conftest.$ac_objext"
2132 if { (eval echo "$as_me:2132: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit "$ac_status"); } &&
2137 { ac_try='test -s "conftest.$ac_objext"'
2138 { (eval echo "$as_me:2138: \"$ac_try\"") >&5
2141 echo "$as_me:2141: \$? = $ac_status" >&5
2142 (exit "$ac_status"); }; }; then
2145 echo "$as_me: failed program was:" >&5
2146 cat "conftest.$ac_ext" >&5
2149 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2151 echo "$as_me:2151: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154 CFLAGS=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156 if test "$GCC" = yes; then
2162 if test "$GCC" = yes; then
2168 # Some people use a C++ compiler to compile C. Since we use `exit',
2169 # in C++ we need to declare it. In case someone uses the same compiler
2170 # for both compiling C and C++ we need to have the C++ compiler decide
2171 # the declaration of exit, since it's the most demanding environment.
2172 cat >"conftest.$ac_ext" <<_ACEOF
2177 rm -f "conftest.$ac_objext"
2178 if { (eval echo "$as_me:2178: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2181 echo "$as_me:2181: \$? = $ac_status" >&5
2182 (exit "$ac_status"); } &&
2183 { ac_try='test -s "conftest.$ac_objext"'
2184 { (eval echo "$as_me:2184: \"$ac_try\"") >&5
2187 echo "$as_me:2187: \$? = $ac_status" >&5
2188 (exit "$ac_status"); }; }; then
2189 for ac_declaration in \
2191 '#include <stdlib.h>' \
2192 'extern "C" void std::exit (int) throw (); using std::exit;' \
2193 'extern "C" void std::exit (int); using std::exit;' \
2194 'extern "C" void exit (int) throw ();' \
2195 'extern "C" void exit (int);' \
2198 cat >"conftest.$ac_ext" <<_ACEOF
2199 #line 2199 "configure"
2200 #include "confdefs.h"
2211 rm -f "conftest.$ac_objext"
2212 if { (eval echo "$as_me:2212: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>&5
2215 echo "$as_me:2215: \$? = $ac_status" >&5
2216 (exit "$ac_status"); } &&
2217 { ac_try='test -s "conftest.$ac_objext"'
2218 { (eval echo "$as_me:2218: \"$ac_try\"") >&5
2221 echo "$as_me:2221: \$? = $ac_status" >&5
2222 (exit "$ac_status"); }; }; then
2225 echo "$as_me: failed program was:" >&5
2226 cat "conftest.$ac_ext" >&5
2229 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2230 cat >"conftest.$ac_ext" <<_ACEOF
2231 #line 2231 "configure"
2232 #include "confdefs.h"
2242 rm -f "conftest.$ac_objext"
2243 if { (eval echo "$as_me:2243: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2246 echo "$as_me:2246: \$? = $ac_status" >&5
2247 (exit "$ac_status"); } &&
2248 { ac_try='test -s "conftest.$ac_objext"'
2249 { (eval echo "$as_me:2249: \"$ac_try\"") >&5
2252 echo "$as_me:2252: \$? = $ac_status" >&5
2253 (exit "$ac_status"); }; }; then
2256 echo "$as_me: failed program was:" >&5
2257 cat "conftest.$ac_ext" >&5
2259 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2262 if test -n "$ac_declaration"; then
2263 echo '#ifdef __cplusplus' >>confdefs.h
2264 echo "$ac_declaration" >>confdefs.h
2265 echo '#endif' >>confdefs.h
2269 echo "$as_me: failed program was:" >&5
2270 cat "conftest.$ac_ext" >&5
2272 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2276 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278 ac_main_return="return"
2281 if test "$GCC" = yes ; then
2282 echo "$as_me:2282: checking version of $CC" >&5
2283 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2284 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.].*//'`"
2285 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2286 echo "$as_me:2286: result: $GCC_VERSION" >&5
2287 echo "${ECHO_T}$GCC_VERSION" >&6
2292 if test "$GCC" = yes ; then
2295 echo "$as_me:2295: checking if this is really Intel C compiler" >&5
2296 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2297 cf_save_CFLAGS="$CFLAGS"
2298 CFLAGS="$CFLAGS -no-gcc"
2299 cat >"conftest.$ac_ext" <<_ACEOF
2300 #line 2300 "configure"
2301 #include "confdefs.h"
2307 #ifdef __INTEL_COMPILER
2316 rm -f "conftest.$ac_objext"
2317 if { (eval echo "$as_me:2317: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2320 echo "$as_me:2320: \$? = $ac_status" >&5
2321 (exit "$ac_status"); } &&
2322 { ac_try='test -s "conftest.$ac_objext"'
2323 { (eval echo "$as_me:2323: \"$ac_try\"") >&5
2326 echo "$as_me:2326: \$? = $ac_status" >&5
2327 (exit "$ac_status"); }; }; then
2329 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2332 echo "$as_me: failed program was:" >&5
2333 cat "conftest.$ac_ext" >&5
2335 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2336 CFLAGS="$cf_save_CFLAGS"
2337 echo "$as_me:2337: result: $INTEL_COMPILER" >&5
2338 echo "${ECHO_T}$INTEL_COMPILER" >&6
2345 if test "$GCC" = yes ; then
2346 echo "$as_me:2346: checking if this is really Clang C compiler" >&5
2347 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2348 cf_save_CFLAGS="$CFLAGS"
2349 cat >"conftest.$ac_ext" <<_ACEOF
2350 #line 2350 "configure"
2351 #include "confdefs.h"
2366 rm -f "conftest.$ac_objext"
2367 if { (eval echo "$as_me:2367: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>&5
2370 echo "$as_me:2370: \$? = $ac_status" >&5
2371 (exit "$ac_status"); } &&
2372 { ac_try='test -s "conftest.$ac_objext"'
2373 { (eval echo "$as_me:2373: \"$ac_try\"") >&5
2376 echo "$as_me:2376: \$? = $ac_status" >&5
2377 (exit "$ac_status"); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 cat "conftest.$ac_ext" >&5
2384 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2385 CFLAGS="$cf_save_CFLAGS"
2386 echo "$as_me:2386: result: $CLANG_COMPILER" >&5
2387 echo "${ECHO_T}$CLANG_COMPILER" >&6
2392 if test "x$CLANG_COMPILER" = "xyes" ; then
2394 (c[1-9][0-9]|*/c[1-9][0-9])
2395 { echo "$as_me:2395: WARNING: replacing broken compiler alias $CC" >&5
2396 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2397 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2402 echo "$as_me:2402: checking version of $CC" >&5
2403 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2404 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2405 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2406 echo "$as_me:2406: result: $CLANG_VERSION" >&5
2407 echo "${ECHO_T}$CLANG_VERSION" >&6
2409 for cf_clang_opt in \
2410 -Qunused-arguments \
2411 -Wno-error=implicit-function-declaration
2413 echo "$as_me:2413: checking if option $cf_clang_opt works" >&5
2414 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2415 cf_save_CFLAGS="$CFLAGS"
2416 CFLAGS="$CFLAGS $cf_clang_opt"
2417 cat >"conftest.$ac_ext" <<_ACEOF
2418 #line 2418 "configure"
2419 #include "confdefs.h"
2426 printf("hello!\\n");
2431 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2432 if { (eval echo "$as_me:2432: \"$ac_link\"") >&5
2433 (eval $ac_link) 2>&5
2435 echo "$as_me:2435: \$? = $ac_status" >&5
2436 (exit "$ac_status"); } &&
2437 { ac_try='test -s "conftest$ac_exeext"'
2438 { (eval echo "$as_me:2438: \"$ac_try\"") >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit "$ac_status"); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 cat "conftest.$ac_ext" >&5
2451 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2452 echo "$as_me:2452: result: $cf_clang_optok" >&5
2453 echo "${ECHO_T}$cf_clang_optok" >&6
2454 CFLAGS="$cf_save_CFLAGS"
2455 if test "$cf_clang_optok" = yes; then
2456 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2458 echo "${as_me:-configure}:2458: testing adding option $cf_clang_opt ..." 1>&5
2460 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2461 CFLAGS="${CFLAGS}$cf_clang_opt"
2467 echo "$as_me:2467: checking for $CC option to accept ANSI C" >&5
2468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 ac_cv_prog_cc_stdc=no
2474 cat >"conftest.$ac_ext" <<_ACEOF
2475 #line 2475 "configure"
2476 #include "confdefs.h"
2479 #include <sys/types.h>
2480 #include <sys/stat.h>
2481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2482 struct buf { int x; };
2483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2484 static char *e (p, i)
2490 static char *f (char * (*g) (char **, int), char **p, ...)
2495 s = g (p, va_arg (v,int));
2499 int test (int i, double x);
2500 struct s1 {int (*f) (int a);};
2501 struct s2 {int (*f) (double a);};
2502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2508 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2513 # Don't try gcc -ansi; that turns off useful extensions and
2514 # breaks some systems' header files.
2515 # AIX -qlanglvl=ansi
2516 # Ultrix and OSF/1 -std1
2517 # HP-UX 10.20 and later -Ae
2518 # HP-UX older versions -Aa -D_HPUX_SOURCE
2519 # SVR4 -Xc -D__EXTENSIONS__
2520 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2522 CC="$ac_save_CC $ac_arg"
2523 rm -f "conftest.$ac_objext"
2524 if { (eval echo "$as_me:2524: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:2527: \$? = $ac_status" >&5
2528 (exit "$ac_status"); } &&
2529 { ac_try='test -s "conftest.$ac_objext"'
2530 { (eval echo "$as_me:2530: \"$ac_try\"") >&5
2533 echo "$as_me:2533: \$? = $ac_status" >&5
2534 (exit "$ac_status"); }; }; then
2535 ac_cv_prog_cc_stdc=$ac_arg
2538 echo "$as_me: failed program was:" >&5
2539 cat "conftest.$ac_ext" >&5
2541 rm -f "conftest.$ac_objext"
2543 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2548 case "x$ac_cv_prog_cc_stdc" in
2550 echo "$as_me:2550: result: none needed" >&5
2551 echo "${ECHO_T}none needed" >&6 ;;
2553 echo "$as_me:2553: result: $ac_cv_prog_cc_stdc" >&5
2554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2555 CC="$CC $ac_cv_prog_cc_stdc" ;;
2558 # This should have been defined by AC_PROG_CC
2561 echo "$as_me:2561: checking \$CFLAGS variable" >&5
2562 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2565 echo "$as_me:2565: result: broken" >&5
2566 echo "${ECHO_T}broken" >&6
2567 { echo "$as_me:2567: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2568 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2571 for cf_arg in $cf_flags
2577 cf_new_extra_cppflags=
2579 for cf_add_cflags in $cf_arg
2581 case "$cf_fix_cppflags" in
2583 case "$cf_add_cflags" in
2584 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2585 case "$cf_add_cflags" in
2587 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2589 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2590 && test -z "${cf_tst_cflags}" \
2591 && cf_fix_cppflags=yes
2593 if test "$cf_fix_cppflags" = yes ; then
2595 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2596 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2599 elif test "${cf_tst_cflags}" = "\"'" ; then
2601 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2602 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2612 case "$cf_add_cflags" in
2614 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2616 CPPFLAGS=`echo "$CPPFLAGS" | \
2617 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2618 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2623 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2624 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2631 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2632 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2639 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2640 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2642 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2644 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2645 && test -z "${cf_tst_cflags}" \
2646 && cf_fix_cppflags=no
2651 if test -n "$cf_new_cflags" ; then
2653 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2654 CFLAGS="${CFLAGS}$cf_new_cflags"
2658 if test -n "$cf_new_cppflags" ; then
2660 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2661 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2665 if test -n "$cf_new_extra_cppflags" ; then
2667 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2668 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2675 echo "$as_me:2675: result: ok" >&5
2676 echo "${ECHO_T}ok" >&6
2680 echo "$as_me:2680: checking \$CC variable" >&5
2681 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2684 echo "$as_me:2684: result: broken" >&5
2685 echo "${ECHO_T}broken" >&6
2686 { echo "$as_me:2686: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2687 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2689 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2690 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2692 for cf_arg in $cf_flags
2700 cf_new_extra_cppflags=
2702 for cf_add_cflags in $cf_arg
2704 case "$cf_fix_cppflags" in
2706 case "$cf_add_cflags" in
2707 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2708 case "$cf_add_cflags" in
2710 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2712 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2713 && test -z "${cf_tst_cflags}" \
2714 && cf_fix_cppflags=yes
2716 if test "$cf_fix_cppflags" = yes ; then
2718 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2719 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2722 elif test "${cf_tst_cflags}" = "\"'" ; then
2724 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2725 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2735 case "$cf_add_cflags" in
2737 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2739 CPPFLAGS=`echo "$CPPFLAGS" | \
2740 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2741 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2746 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2747 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2754 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2755 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2762 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2763 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2765 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2767 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2768 && test -z "${cf_tst_cflags}" \
2769 && cf_fix_cppflags=no
2774 if test -n "$cf_new_cflags" ; then
2776 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2777 CFLAGS="${CFLAGS}$cf_new_cflags"
2781 if test -n "$cf_new_cppflags" ; then
2783 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2784 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2788 if test -n "$cf_new_extra_cppflags" ; then
2790 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2791 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2801 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2803 echo "${as_me:-configure}:2803: testing resulting CC: '$CC' ..." 1>&5
2805 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2807 echo "${as_me:-configure}:2807: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2809 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2811 echo "${as_me:-configure}:2811: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2815 echo "$as_me:2815: result: ok" >&5
2816 echo "${ECHO_T}ok" >&6
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2823 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 ac_main_return="return"
2826 echo "$as_me:2826: checking how to run the C preprocessor" >&5
2827 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2828 # On Suns, sometimes $CPP names a directory.
2829 if test -n "$CPP" && test -d "$CPP"; then
2832 if test -z "$CPP"; then
2833 if test "${ac_cv_prog_CPP+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 # Double quotes because CPP needs to be expanded
2837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2840 for ac_c_preproc_warn_flag in '' yes
2842 # Use a header file that comes with gcc, so configuring glibc
2843 # with a fresh cross-compiler works.
2844 # On the NeXT, cc -E runs the code through the compiler's parser,
2845 # not just through cpp. "Syntax error" is here to catch this case.
2846 cat >"conftest.$ac_ext" <<_ACEOF
2847 #line 2847 "configure"
2848 #include "confdefs.h"
2852 if { (eval echo "$as_me:2852: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2853 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2855 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2857 cat conftest.err >&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit "$ac_status"); } >/dev/null; then
2860 if test -s conftest.err; then
2861 ac_cpp_err=$ac_c_preproc_warn_flag
2868 if test -z "$ac_cpp_err"; then
2871 echo "$as_me: failed program was:" >&5
2872 cat "conftest.$ac_ext" >&5
2873 # Broken: fails on valid input.
2876 rm -f conftest.err "conftest.$ac_ext"
2878 # OK, works on sane cases. Now check whether non-existent headers
2879 # can be detected and how.
2880 cat >"conftest.$ac_ext" <<_ACEOF
2881 #line 2881 "configure"
2882 #include "confdefs.h"
2883 #include <ac_nonexistent.h>
2885 if { (eval echo "$as_me:2885: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2886 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2888 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit "$ac_status"); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_c_preproc_warn_flag
2901 if test -z "$ac_cpp_err"; then
2902 # Broken: success on invalid input.
2905 echo "$as_me: failed program was:" >&5
2906 cat "conftest.$ac_ext" >&5
2907 # Passes both tests.
2911 rm -f conftest.err "conftest.$ac_ext"
2914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2915 rm -f conftest.err "conftest.$ac_ext"
2916 if $ac_preproc_ok; then
2928 echo "$as_me:2928: result: $CPP" >&5
2929 echo "${ECHO_T}$CPP" >&6
2931 for ac_c_preproc_warn_flag in '' yes
2933 # Use a header file that comes with gcc, so configuring glibc
2934 # with a fresh cross-compiler works.
2935 # On the NeXT, cc -E runs the code through the compiler's parser,
2936 # not just through cpp. "Syntax error" is here to catch this case.
2937 cat >"conftest.$ac_ext" <<_ACEOF
2938 #line 2938 "configure"
2939 #include "confdefs.h"
2943 if { (eval echo "$as_me:2943: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2944 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2946 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:2949: \$? = $ac_status" >&5
2950 (exit "$ac_status"); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2959 if test -z "$ac_cpp_err"; then
2962 echo "$as_me: failed program was:" >&5
2963 cat "conftest.$ac_ext" >&5
2964 # Broken: fails on valid input.
2967 rm -f conftest.err "conftest.$ac_ext"
2969 # OK, works on sane cases. Now check whether non-existent headers
2970 # can be detected and how.
2971 cat >"conftest.$ac_ext" <<_ACEOF
2972 #line 2972 "configure"
2973 #include "confdefs.h"
2974 #include <ac_nonexistent.h>
2976 if { (eval echo "$as_me:2976: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2977 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2979 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:2982: \$? = $ac_status" >&5
2983 (exit "$ac_status"); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2992 if test -z "$ac_cpp_err"; then
2993 # Broken: success on invalid input.
2996 echo "$as_me: failed program was:" >&5
2997 cat "conftest.$ac_ext" >&5
2998 # Passes both tests.
3002 rm -f conftest.err "conftest.$ac_ext"
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err "conftest.$ac_ext"
3007 if $ac_preproc_ok; then
3010 { { echo "$as_me:3010: error: C preprocessor \"$CPP\" fails sanity check" >&5
3011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3012 { (exit 1); exit 1; }; }
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3018 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 ac_main_return="return"
3022 if test $ac_cv_c_compiler_gnu = yes; then
3023 echo "$as_me:3023: checking whether $CC needs -traditional" >&5
3024 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3025 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 ac_pattern="Autoconf.*'x'"
3029 cat >"conftest.$ac_ext" <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3033 int Autoconf = TIOCGETP;
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3037 ac_cv_prog_gcc_traditional=yes
3039 ac_cv_prog_gcc_traditional=no
3043 if test $ac_cv_prog_gcc_traditional = no; then
3044 cat >"conftest.$ac_ext" <<_ACEOF
3045 #line 3045 "configure"
3046 #include "confdefs.h"
3048 int Autoconf = TCGETA;
3050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3051 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3052 ac_cv_prog_gcc_traditional=yes
3058 echo "$as_me:3058: result: $ac_cv_prog_gcc_traditional" >&5
3059 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3060 if test $ac_cv_prog_gcc_traditional = yes; then
3061 CC="$CC -traditional"
3065 echo "$as_me:3065: checking whether $CC understands -c and -o together" >&5
3066 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3067 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 cat > conftest.$ac_ext <<CF_EOF
3074 ${cf_cv_main_return:-return}(0);
3077 # We do the test twice because some compilers refuse to overwrite an
3078 # existing .o file with -o, though they will create one.
3079 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3080 if { (eval echo "$as_me:3080: \"$ac_try\"") >&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit "$ac_status"); } &&
3085 test -f conftest2.$ac_objext && { (eval echo "$as_me:3085: \"$ac_try\"") >&5
3088 echo "$as_me:3088: \$? = $ac_status" >&5
3089 (exit "$ac_status"); };
3091 eval cf_cv_prog_CC_c_o=yes
3093 eval cf_cv_prog_CC_c_o=no
3098 if test "$cf_cv_prog_CC_c_o" = yes; then
3099 echo "$as_me:3099: result: yes" >&5
3100 echo "${ECHO_T}yes" >&6
3102 echo "$as_me:3102: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3106 if test "$cross_compiling" = yes ; then
3109 case "$cf_cv_system_name" in
3110 (dragonfly*|mirbsd*|freebsd*)
3111 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3113 (*) LDPATH=$PATH:/sbin:/usr/sbin
3114 # Extract the first word of "ldconfig", so it can be a program name with args.
3115 set dummy ldconfig; ac_word=$2
3116 echo "$as_me:3116: checking for $ac_word" >&5
3117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3126 ac_save_IFS=$IFS; IFS=$ac_path_separator
3128 for ac_dir in $ac_dummy; do
3130 test -z "$ac_dir" && ac_dir=.
3131 if $as_executable_p "$ac_dir/$ac_word"; then
3132 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3133 echo "$as_me:3133: found $ac_dir/$ac_word" >&5
3141 LDCONFIG=$ac_cv_path_LDCONFIG
3143 if test -n "$LDCONFIG"; then
3144 echo "$as_me:3144: result: $LDCONFIG" >&5
3145 echo "${ECHO_T}$LDCONFIG" >&6
3147 echo "$as_me:3147: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3155 echo "$as_me:3155: checking if you want to ensure bool is consistent with C++" >&5
3156 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3158 # Check whether --with-cxx or --without-cxx was given.
3159 if test "${with_cxx+set}" = set; then
3161 cf_with_cxx=$withval
3165 echo "$as_me:3165: result: $cf_with_cxx" >&5
3166 echo "${ECHO_T}$cf_with_cxx" >&6
3167 if test "X$cf_with_cxx" = Xno ; then
3171 # with autoconf 2.13, we can change the error to a warning:
3173 ac_cpp='$CXXCPP $CPPFLAGS'
3174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3175 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3177 ac_main_return="return"
3178 if test -n "$ac_tool_prefix"; then
3179 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3183 echo "$as_me:3183: checking for $ac_word" >&5
3184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3185 if test "${ac_cv_prog_CXX+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 if test -n "$CXX"; then
3189 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3191 ac_save_IFS=$IFS; IFS=$ac_path_separator
3193 for ac_dir in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir=.
3196 $as_executable_p "$ac_dir/$ac_word" || continue
3197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3198 echo "$as_me:3198: found $ac_dir/$ac_word" >&5
3205 if test -n "$CXX"; then
3206 echo "$as_me:3206: result: $CXX" >&5
3207 echo "${ECHO_T}$CXX" >&6
3209 echo "$as_me:3209: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3213 test -n "$CXX" && break
3216 if test -z "$CXX"; then
3218 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3220 # Extract the first word of "$ac_prog", so it can be a program name with args.
3221 set dummy $ac_prog; ac_word=$2
3222 echo "$as_me:3222: checking for $ac_word" >&5
3223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3224 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 if test -n "$ac_ct_CXX"; then
3228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3230 ac_save_IFS=$IFS; IFS=$ac_path_separator
3232 for ac_dir in $ac_dummy; do
3234 test -z "$ac_dir" && ac_dir=.
3235 $as_executable_p "$ac_dir/$ac_word" || continue
3236 ac_cv_prog_ac_ct_CXX="$ac_prog"
3237 echo "$as_me:3237: found $ac_dir/$ac_word" >&5
3243 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3244 if test -n "$ac_ct_CXX"; then
3245 echo "$as_me:3245: result: $ac_ct_CXX" >&5
3246 echo "${ECHO_T}$ac_ct_CXX" >&6
3248 echo "$as_me:3248: result: no" >&5
3249 echo "${ECHO_T}no" >&6
3252 test -n "$ac_ct_CXX" && break
3254 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3259 # Provide some information about the compiler.
3260 echo "$as_me:3260:" \
3261 "checking for C++ compiler version" >&5
3262 ac_compiler=`set X $ac_compile; echo $2`
3263 { (eval echo "$as_me:3263: \"$ac_compiler --version </dev/null >&5\"") >&5
3264 (eval $ac_compiler --version </dev/null >&5) 2>&5
3266 echo "$as_me:3266: \$? = $ac_status" >&5
3267 (exit "$ac_status"); }
3268 { (eval echo "$as_me:3268: \"$ac_compiler -v </dev/null >&5\"") >&5
3269 (eval $ac_compiler -v </dev/null >&5) 2>&5
3271 echo "$as_me:3271: \$? = $ac_status" >&5
3272 (exit "$ac_status"); }
3273 { (eval echo "$as_me:3273: \"$ac_compiler -V </dev/null >&5\"") >&5
3274 (eval $ac_compiler -V </dev/null >&5) 2>&5
3276 echo "$as_me:3276: \$? = $ac_status" >&5
3277 (exit "$ac_status"); }
3279 echo "$as_me:3279: checking whether we are using the GNU C++ compiler" >&5
3280 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3281 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 cat >"conftest.$ac_ext" <<_ACEOF
3285 #line 3285 "configure"
3286 #include "confdefs.h"
3299 rm -f "conftest.$ac_objext"
3300 if { (eval echo "$as_me:3300: \"$ac_compile\"") >&5
3301 (eval $ac_compile) 2>&5
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit "$ac_status"); } &&
3305 { ac_try='test -s "conftest.$ac_objext"'
3306 { (eval echo "$as_me:3306: \"$ac_try\"") >&5
3309 echo "$as_me:3309: \$? = $ac_status" >&5
3310 (exit "$ac_status"); }; }; then
3313 echo "$as_me: failed program was:" >&5
3314 cat "conftest.$ac_ext" >&5
3317 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3318 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3321 echo "$as_me:3321: result: $ac_cv_cxx_compiler_gnu" >&5
3322 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3323 GXX=`test $ac_compiler_gnu = yes && echo yes`
3324 ac_test_CXXFLAGS=${CXXFLAGS+set}
3325 ac_save_CXXFLAGS=$CXXFLAGS
3327 echo "$as_me:3327: checking whether $CXX accepts -g" >&5
3328 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3329 if test "${ac_cv_prog_cxx_g+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >"conftest.$ac_ext" <<_ACEOF
3333 #line 3333 "configure"
3334 #include "confdefs.h"
3344 rm -f "conftest.$ac_objext"
3345 if { (eval echo "$as_me:3345: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>&5
3348 echo "$as_me:3348: \$? = $ac_status" >&5
3349 (exit "$ac_status"); } &&
3350 { ac_try='test -s "conftest.$ac_objext"'
3351 { (eval echo "$as_me:3351: \"$ac_try\"") >&5
3354 echo "$as_me:3354: \$? = $ac_status" >&5
3355 (exit "$ac_status"); }; }; then
3356 ac_cv_prog_cxx_g=yes
3358 echo "$as_me: failed program was:" >&5
3359 cat "conftest.$ac_ext" >&5
3362 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3364 echo "$as_me:3364: result: $ac_cv_prog_cxx_g" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3366 if test "$ac_test_CXXFLAGS" = set; then
3367 CXXFLAGS=$ac_save_CXXFLAGS
3368 elif test $ac_cv_prog_cxx_g = yes; then
3369 if test "$GXX" = yes; then
3375 if test "$GXX" = yes; then
3381 for ac_declaration in \
3383 '#include <stdlib.h>' \
3384 'extern "C" void std::exit (int) throw (); using std::exit;' \
3385 'extern "C" void std::exit (int); using std::exit;' \
3386 'extern "C" void exit (int) throw ();' \
3387 'extern "C" void exit (int);' \
3390 cat >"conftest.$ac_ext" <<_ACEOF
3391 #line 3391 "configure"
3392 #include "confdefs.h"
3403 rm -f "conftest.$ac_objext"
3404 if { (eval echo "$as_me:3404: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>&5
3407 echo "$as_me:3407: \$? = $ac_status" >&5
3408 (exit "$ac_status"); } &&
3409 { ac_try='test -s "conftest.$ac_objext"'
3410 { (eval echo "$as_me:3410: \"$ac_try\"") >&5
3413 echo "$as_me:3413: \$? = $ac_status" >&5
3414 (exit "$ac_status"); }; }; then
3417 echo "$as_me: failed program was:" >&5
3418 cat "conftest.$ac_ext" >&5
3421 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3422 cat >"conftest.$ac_ext" <<_ACEOF
3423 #line 3423 "configure"
3424 #include "confdefs.h"
3434 rm -f "conftest.$ac_objext"
3435 if { (eval echo "$as_me:3435: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>&5
3438 echo "$as_me:3438: \$? = $ac_status" >&5
3439 (exit "$ac_status"); } &&
3440 { ac_try='test -s "conftest.$ac_objext"'
3441 { (eval echo "$as_me:3441: \"$ac_try\"") >&5
3444 echo "$as_me:3444: \$? = $ac_status" >&5
3445 (exit "$ac_status"); }; }; then
3448 echo "$as_me: failed program was:" >&5
3449 cat "conftest.$ac_ext" >&5
3451 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3454 if test -n "$ac_declaration"; then
3455 echo '#ifdef __cplusplus' >>confdefs.h
3456 echo "$ac_declaration" >>confdefs.h
3457 echo '#endif' >>confdefs.h
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3463 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 ac_main_return="return"
3468 ac_cpp='$CXXCPP $CPPFLAGS'
3469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3470 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3472 ac_main_return="return"
3474 if test "x$cf_with_cxx" != xno
3476 # Several of the C++ configurations do not work, particularly when
3477 # cross-compiling (20140913 -TD)
3478 echo "$as_me:3478: checking if $CXX works" >&5
3479 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3481 save_CPPFLAGS="$CPPFLAGS"
3482 eval cf_includedir=${includedir}
3483 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3485 cat >"conftest.$ac_ext" <<_ACEOF
3486 #line 3486 "configure"
3487 #include "confdefs.h"
3496 printf("Hello world!\n")
3502 rm -f "conftest.$ac_objext"
3503 if { (eval echo "$as_me:3503: \"$ac_compile\"") >&5
3504 (eval $ac_compile) 2>&5
3506 echo "$as_me:3506: \$? = $ac_status" >&5
3507 (exit "$ac_status"); } &&
3508 { ac_try='test -s "conftest.$ac_objext"'
3509 { (eval echo "$as_me:3509: \"$ac_try\"") >&5
3512 echo "$as_me:3512: \$? = $ac_status" >&5
3513 (exit "$ac_status"); }; }; then
3516 echo "$as_me: failed program was:" >&5
3517 cat "conftest.$ac_ext" >&5
3520 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3521 CPPFLAGS="$save_CPPFLAGS"
3523 echo "$as_me:3523: result: $cf_cxx_works" >&5
3524 echo "${ECHO_T}$cf_cxx_works" >&6
3525 if test "x$cf_cxx_works" = xno
3527 { echo "$as_me:3527: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3528 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3529 cf_with_cxx=no; CXX=""; GXX="";
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3535 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 ac_main_return="return"
3539 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3540 if test "$CXX" = "g++" ; then
3541 # Extract the first word of "g++", so it can be a program name with args.
3542 set dummy g++; ac_word=$2
3543 echo "$as_me:3543: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_path_CXX+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3553 ac_save_IFS=$IFS; IFS=$ac_path_separator
3555 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if $as_executable_p "$ac_dir/$ac_word"; then
3559 ac_cv_path_CXX="$ac_dir/$ac_word"
3560 echo "$as_me:3560: found $ac_dir/$ac_word" >&5
3570 if test -n "$CXX"; then
3571 echo "$as_me:3571: result: $CXX" >&5
3572 echo "${ECHO_T}$CXX" >&6
3574 echo "$as_me:3574: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3581 { echo "$as_me:3581: WARNING: You don't have any C++ compiler, too bad" >&5
3582 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3583 cf_with_cxx=no; CXX=""; GXX="";
3589 if test "$GXX" = yes; then
3590 echo "$as_me:3590: checking version of ${CXX:-g++}" >&5
3591 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3592 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3593 if test -z "$GXX_VERSION"
3598 echo "$as_me:3598: result: $GXX_VERSION" >&5
3599 echo "${ECHO_T}$GXX_VERSION" >&6
3602 case "$GXX_VERSION" in
3606 { echo "$as_me:3606: WARNING: templates do not work" >&5
3607 echo "$as_me: WARNING: templates do not work" >&2;}
3611 echo "$as_me:3611: checking if you want to build C++ binding and demo" >&5
3612 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3614 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3615 if test "${with_cxx_binding+set}" = set; then
3616 withval="$with_cxx_binding"
3617 cf_with_cxx_binding=$withval
3619 cf_with_cxx_binding=$cf_with_cxx
3621 echo "$as_me:3621: result: $cf_with_cxx_binding" >&5
3622 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3624 echo "$as_me:3624: checking if you want to build with Ada" >&5
3625 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3626 echo "$as_me:3626: result: $cf_with_ada" >&5
3627 echo "${ECHO_T}$cf_with_ada" >&6
3629 echo "$as_me:3629: checking if you want to install terminal database" >&5
3630 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3632 # Check whether --enable-db-install or --disable-db-install was given.
3633 if test "${enable_db_install+set}" = set; then
3634 enableval="$enable_db_install"
3635 cf_with_db_install=$enableval
3637 cf_with_db_install=yes
3639 echo "$as_me:3639: result: $cf_with_db_install" >&5
3640 echo "${ECHO_T}$cf_with_db_install" >&6
3642 echo "$as_me:3642: checking if you want to install manpages" >&5
3643 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3645 # Check whether --with-manpages or --without-manpages was given.
3646 if test "${with_manpages+set}" = set; then
3647 withval="$with_manpages"
3648 cf_with_manpages=$withval
3650 cf_with_manpages=yes
3652 echo "$as_me:3652: result: $cf_with_manpages" >&5
3653 echo "${ECHO_T}$cf_with_manpages" >&6
3655 echo "$as_me:3655: checking if you want to build programs such as tic" >&5
3656 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3658 # Check whether --with-progs or --without-progs was given.
3659 if test "${with_progs+set}" = set; then
3660 withval="$with_progs"
3661 cf_with_progs=$withval
3665 echo "$as_me:3665: result: $cf_with_progs" >&5
3666 echo "${ECHO_T}$cf_with_progs" >&6
3668 if test -f "$srcdir/tack/tack.h" ; then
3669 if test "x$cross_compiling" = xyes ; then
3670 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3672 echo "${as_me:-configure}:3672: testing ignoring tack because we are cross-compiling ..." 1>&5
3676 echo "$as_me:3676: checking if you want to build the tack program" >&5
3677 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3679 # Check whether --with-tack or --without-tack was given.
3680 if test "${with_tack+set}" = set; then
3681 withval="$with_tack"
3682 cf_with_tack=$withval
3684 cf_with_tack=$cf_with_progs
3686 echo "$as_me:3686: result: $cf_with_tack" >&5
3687 echo "${ECHO_T}$cf_with_tack" >&6
3693 echo "$as_me:3693: checking if you want to build test-programs" >&5
3694 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3696 # Check whether --with-tests or --without-tests was given.
3697 if test "${with_tests+set}" = set; then
3698 withval="$with_tests"
3699 cf_with_tests=$withval
3703 echo "$as_me:3703: result: $cf_with_tests" >&5
3704 echo "${ECHO_T}$cf_with_tests" >&6
3706 echo "$as_me:3706: checking if you wish to install curses.h" >&5
3707 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3709 # Check whether --with-curses-h or --without-curses-h was given.
3710 if test "${with_curses_h+set}" = set; then
3711 withval="$with_curses_h"
3712 with_curses_h=$withval
3716 echo "$as_me:3716: result: $with_curses_h" >&5
3717 echo "${ECHO_T}$with_curses_h" >&6
3719 modules_to_build="ncurses"
3720 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3721 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3722 modules_to_build="$modules_to_build panel menu form"
3724 test "$program_prefix" != NONE &&
3725 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3726 # Use a double $ so make ignores it.
3727 test "$program_suffix" != NONE &&
3728 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3729 # Double any \ or $. echo might interpret backslashes.
3730 # By default was `s,x,x', remove it if useless.
3731 cat <<\_ACEOF >conftest.sed
3732 s/[\\$]/&&/g;s/;s,x,x,$//
3734 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3737 for ac_prog in mawk gawk nawk awk
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 echo "$as_me:3741: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_prog_AWK+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 if test -n "$AWK"; then
3747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3749 ac_save_IFS=$IFS; IFS=$ac_path_separator
3751 for ac_dir in $ac_dummy; do
3753 test -z "$ac_dir" && ac_dir=.
3754 $as_executable_p "$ac_dir/$ac_word" || continue
3755 ac_cv_prog_AWK="$ac_prog"
3756 echo "$as_me:3756: found $ac_dir/$ac_word" >&5
3763 if test -n "$AWK"; then
3764 echo "$as_me:3764: result: $AWK" >&5
3765 echo "${ECHO_T}$AWK" >&6
3767 echo "$as_me:3767: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 test -n "$AWK" && break
3774 test -z "$AWK" && { { echo "$as_me:3774: error: No awk program found" >&5
3775 echo "$as_me: error: No awk program found" >&2;}
3776 { (exit 1); exit 1; }; }
3778 # Find a good install program. We prefer a C program (faster),
3779 # so one script is as good as another. But avoid the broken or
3780 # incompatible versions:
3781 # SysV /etc/install, /usr/sbin/install
3782 # SunOS /usr/etc/install
3783 # IRIX /sbin/install
3785 # AmigaOS /C/install, which installs bootblocks on floppy discs
3786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3789 # ./install, which can be erroneously created by make from ./install.sh.
3790 echo "$as_me:3790: checking for a BSD compatible install" >&5
3791 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3792 if test -z "$INSTALL"; then
3793 if test "${ac_cv_path_install+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 ac_save_IFS=$IFS; IFS=$ac_path_separator
3797 for ac_dir in $PATH; do
3799 # Account for people who put trailing slashes in PATH elements.
3801 / | ./ | .// | /cC/* \
3802 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3805 # OSF1 and SCO ODT 3.0 have their own names for install.
3806 # Don't use installbsd from OSF since it installs stuff as root
3808 for ac_prog in ginstall scoinst install; do
3809 if $as_executable_p "$ac_dir/$ac_prog"; then
3810 if test $ac_prog = install &&
3811 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3812 # AIX install. It has an incompatible calling convention.
3814 elif test $ac_prog = install &&
3815 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3816 # program-specific install script used by HP pwplus--don't use.
3819 ac_cv_path_install="$ac_dir/$ac_prog -c"
3829 if test "${ac_cv_path_install+set}" = set; then
3830 INSTALL=$ac_cv_path_install
3832 # As a last resort, use the slow shell script. We don't cache a
3833 # path for INSTALL within a source directory, because that will
3834 # break other packages using the cache if that directory is
3835 # removed, or if the path is relative.
3836 INSTALL=$ac_install_sh
3839 echo "$as_me:3839: result: $INSTALL" >&5
3840 echo "${ECHO_T}$INSTALL" >&6
3842 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3843 # It thinks the first close brace ends the variable substitution.
3844 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3846 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3848 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3855 test -z "$cf_dir" && cf_dir=.
3856 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3860 for ac_prog in lint cppcheck splint
3862 # Extract the first word of "$ac_prog", so it can be a program name with args.
3863 set dummy $ac_prog; ac_word=$2
3864 echo "$as_me:3864: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_LINT+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$LINT"; then
3870 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3872 ac_save_IFS=$IFS; IFS=$ac_path_separator
3874 for ac_dir in $ac_dummy; do
3876 test -z "$ac_dir" && ac_dir=.
3877 $as_executable_p "$ac_dir/$ac_word" || continue
3878 ac_cv_prog_LINT="$ac_prog"
3879 echo "$as_me:3879: found $ac_dir/$ac_word" >&5
3885 LINT=$ac_cv_prog_LINT
3886 if test -n "$LINT"; then
3887 echo "$as_me:3887: result: $LINT" >&5
3888 echo "${ECHO_T}$LINT" >&6
3890 echo "$as_me:3890: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3894 test -n "$LINT" && break
3898 (xcppcheck|x*/cppcheck)
3899 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3903 echo "$as_me:3903: checking whether ln -s works" >&5
3904 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3906 if test "$LN_S" = "ln -s"; then
3907 echo "$as_me:3907: result: yes" >&5
3908 echo "${ECHO_T}yes" >&6
3910 echo "$as_me:3910: result: no, using $LN_S" >&5
3911 echo "${ECHO_T}no, using $LN_S" >&6
3914 echo "$as_me:3914: checking if $LN_S -f options work" >&5
3915 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3917 rm -f conf$$.src conf$$dst
3919 echo first >conf$$.src
3920 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3925 rm -f conf$$.dst conf$$src
3926 echo "$as_me:3926: result: $cf_prog_ln_sf" >&5
3927 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3929 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3931 echo "$as_me:3931: checking for long file names" >&5
3932 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3933 if test "${ac_cv_sys_long_file_names+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 ac_cv_sys_long_file_names=yes
3937 # Test for long file names in all the places we know might matter:
3938 # . the current directory, where building will happen
3939 # $prefix/lib where we will be installing things
3940 # $exec_prefix/lib likewise
3941 # eval it to expand exec_prefix.
3942 # $TMPDIR if set, where it might want to write temporary files
3943 # if $TMPDIR is not set:
3944 # /tmp where it might want to write temporary files
3947 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3950 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3952 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3953 test -d "$ac_dir" || continue
3954 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3955 ac_xdir=$ac_dir/cf$$
3956 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3957 ac_tf1=$ac_xdir/conftest9012345
3958 ac_tf2=$ac_xdir/conftest9012346
3959 (echo 1 >"$ac_tf1") 2>/dev/null
3960 (echo 2 >"$ac_tf2") 2>/dev/null
3961 ac_val=`cat "$ac_tf1" 2>/dev/null`
3962 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3963 ac_cv_sys_long_file_names=no
3964 rm -rf "$ac_xdir" 2>/dev/null
3967 rm -rf "$ac_xdir" 2>/dev/null
3970 echo "$as_me:3970: result: $ac_cv_sys_long_file_names" >&5
3971 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3972 if test "$ac_cv_sys_long_file_names" = yes; then
3974 cat >>confdefs.h <<\EOF
3975 #define HAVE_LONG_FILE_NAMES 1
3980 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3981 # of package conflict.
3984 # Check whether --with-config-suffix or --without-config-suffix was given.
3985 if test "${with_config_suffix+set}" = set; then
3986 withval="$with_config_suffix"
3989 { echo "$as_me:3989: WARNING: expected a value for config-suffix option" >&5
3990 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3992 (*) cf_config_suffix="$withval"
3997 # If we find pkg-config, check if we should install the ".pc" files.
3999 echo "$as_me:3999: checking if you want to use pkg-config" >&5
4000 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4002 # Check whether --with-pkg-config or --without-pkg-config was given.
4003 if test "${with_pkg_config+set}" = set; then
4004 withval="$with_pkg_config"
4005 cf_pkg_config=$withval
4009 echo "$as_me:4009: result: $cf_pkg_config" >&5
4010 echo "${ECHO_T}$cf_pkg_config" >&6
4012 case "$cf_pkg_config" in
4018 if test -n "$ac_tool_prefix"; then
4019 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4020 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4021 echo "$as_me:4021: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4031 ac_save_IFS=$IFS; IFS=$ac_path_separator
4033 for ac_dir in $ac_dummy; do
4035 test -z "$ac_dir" && ac_dir=.
4036 if $as_executable_p "$ac_dir/$ac_word"; then
4037 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4038 echo "$as_me:4038: found $ac_dir/$ac_word" >&5
4046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4048 if test -n "$PKG_CONFIG"; then
4049 echo "$as_me:4049: result: $PKG_CONFIG" >&5
4050 echo "${ECHO_T}$PKG_CONFIG" >&6
4052 echo "$as_me:4052: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4057 if test -z "$ac_cv_path_PKG_CONFIG"; then
4058 ac_pt_PKG_CONFIG=$PKG_CONFIG
4059 # Extract the first word of "pkg-config", so it can be a program name with args.
4060 set dummy pkg-config; ac_word=$2
4061 echo "$as_me:4061: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 case $ac_pt_PKG_CONFIG in
4068 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4071 ac_save_IFS=$IFS; IFS=$ac_path_separator
4073 for ac_dir in $ac_dummy; do
4075 test -z "$ac_dir" && ac_dir=.
4076 if $as_executable_p "$ac_dir/$ac_word"; then
4077 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4078 echo "$as_me:4078: found $ac_dir/$ac_word" >&5
4083 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4087 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4089 if test -n "$ac_pt_PKG_CONFIG"; then
4090 echo "$as_me:4090: result: $ac_pt_PKG_CONFIG" >&5
4091 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4093 echo "$as_me:4093: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4097 PKG_CONFIG=$ac_pt_PKG_CONFIG
4099 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4108 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4109 if test "$PKG_CONFIG" != none ; then
4111 if test "x$prefix" != xNONE; then
4112 cf_path_syntax="$prefix"
4114 cf_path_syntax="$ac_default_prefix"
4117 case ".$PKG_CONFIG" in
4122 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4124 (.\$\{*prefix\}*|.\$\{*dir\}*)
4125 eval PKG_CONFIG="$PKG_CONFIG"
4126 case ".$PKG_CONFIG" in
4128 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4133 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4136 { { echo "$as_me:4136: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4137 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4138 { (exit 1); exit 1; }; }
4142 elif test "x$cf_pkg_config" != xno ; then
4143 { echo "$as_me:4143: WARNING: pkg-config is not installed" >&5
4144 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4147 case "$PKG_CONFIG" in
4149 echo "$as_me:4149: checking for pkg-config library directory" >&5
4150 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4153 echo "$as_me:4153: checking for $PKG_CONFIG library directory" >&5
4154 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4158 # if $PKG_CONFIG_LIBDIR is set, try to use that
4159 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,'`
4161 # if the option is used, let that override. otherwise default to "libdir"
4163 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4164 if test "${with_pkg_config_libdir+set}" = set; then
4165 withval="$with_pkg_config_libdir"
4166 cf_search_path=$withval
4168 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
4171 case x$cf_search_path in
4173 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4174 echo "$as_me:4174: result: $PKG_CONFIG_LIBDIR" >&5
4175 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4181 PKG_CONFIG_LIBDIR="$cf_search_path"
4182 echo "$as_me:4182: result: $PKG_CONFIG_LIBDIR" >&5
4183 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4187 echo "$as_me:4187: result: auto" >&5
4188 echo "${ECHO_T}auto" >&6
4190 # Look for the library directory using the same prefix as the executable
4191 echo "$as_me:4191: checking for search-list" >&5
4192 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4193 if test "x$PKG_CONFIG" != xnone
4195 # works for pkg-config since version 0.24 (2009)
4196 # works for pkgconf since version 0.8.3 (2012)
4197 for cf_pkg_program in \
4198 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4202 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4203 test -n "$cf_search_path" && break
4206 # works for pkg-config since import in 2005 of original 2001 HP code.
4207 test -z "$cf_search_path" && \
4209 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4210 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4211 sub(\"^[^']*'\",\"\"); \
4212 sub(\"'.*\",\"\"); \
4213 printf \" %s\", \\$0; } \
4218 echo "$as_me:4218: result: $cf_search_path" >&5
4219 echo "${ECHO_T}$cf_search_path" >&6
4222 { { echo "$as_me:4222: error: Unexpected option value: $cf_search_path" >&5
4223 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4224 { (exit 1); exit 1; }; }
4228 if test -n "$cf_search_path"
4230 echo "$as_me:4230: checking for first directory" >&5
4231 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4232 cf_pkg_config_path=none
4233 for cf_config in $cf_search_path
4235 if test -d "$cf_config"
4237 cf_pkg_config_path=$cf_config
4241 echo "$as_me:4241: result: $cf_pkg_config_path" >&5
4242 echo "${ECHO_T}$cf_pkg_config_path" >&6
4244 if test "x$cf_pkg_config_path" != xnone ; then
4245 # limit this to the first directory found
4246 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4249 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4251 echo "$as_me:4251: checking for workaround" >&5
4252 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4253 if test "$prefix" = "NONE" ; then
4254 cf_prefix="$ac_default_prefix"
4258 eval cf_libdir=$libdir
4259 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4261 for cf_config in $cf_search_path
4264 $cf_libdir/pkgconfig)
4265 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4269 test -z "$cf_backup" && cf_backup=$cf_config
4273 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4274 echo "$as_me:4274: result: $PKG_CONFIG_LIBDIR" >&5
4275 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4279 if test "x$PKG_CONFIG" != xnone
4281 echo "$as_me:4281: checking if we should install .pc files for $PKG_CONFIG" >&5
4282 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4284 echo "$as_me:4284: checking if we should install .pc files" >&5
4285 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4288 # Check whether --enable-pc-files or --disable-pc-files was given.
4289 if test "${enable_pc_files+set}" = set; then
4290 enableval="$enable_pc_files"
4291 enable_pc_files=$enableval
4295 echo "$as_me:4295: result: $enable_pc_files" >&5
4296 echo "${ECHO_T}$enable_pc_files" >&6
4298 if test "x$enable_pc_files" != xno
4301 case "x$PKG_CONFIG_LIBDIR" in
4303 { echo "$as_me:4303: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4304 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4307 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4309 if test "x$prefix" != xNONE; then
4310 cf_path_syntax="$prefix"
4312 cf_path_syntax="$ac_default_prefix"
4315 case ".$cf_pkg_config_libdir" in
4320 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4322 (.\$\{*prefix\}*|.\$\{*dir\}*)
4323 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4324 case ".$cf_pkg_config_libdir" in
4326 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4331 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4334 { { echo "$as_me:4334: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4335 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4336 { (exit 1); exit 1; }; }
4346 if test -z "$MAKE_PC_FILES"
4348 echo "$as_me:4348: checking for suffix to add to pc-files" >&5
4349 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4351 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4352 if test "${with_pc_suffix+set}" = set; then
4353 withval="$with_pc_suffix"
4358 (*) PC_MODULE_SUFFIX="$withval"
4362 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4363 echo "$as_me:4363: result: $PC_MODULE_SUFFIX" >&5
4364 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4365 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4369 echo "$as_me:4369: checking if we should assume mixed-case filenames" >&5
4370 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4372 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4373 if test "${enable_mixed_case+set}" = set; then
4374 enableval="$enable_mixed_case"
4375 enable_mixedcase=$enableval
4377 enable_mixedcase=auto
4379 echo "$as_me:4379: result: $enable_mixedcase" >&5
4380 echo "${ECHO_T}$enable_mixedcase" >&6
4381 if test "$enable_mixedcase" = "auto" ; then
4383 echo "$as_me:4383: checking if filesystem supports mixed-case filenames" >&5
4384 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4385 if test "${cf_cv_mixedcase+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 if test "$cross_compiling" = yes ; then
4390 case "$target_alias" in
4391 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4399 rm -f conftest CONFTEST
4401 if test -f CONFTEST ; then
4406 rm -f conftest CONFTEST
4410 echo "$as_me:4410: result: $cf_cv_mixedcase" >&5
4411 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4412 test "$cf_cv_mixedcase" = yes &&
4413 cat >>confdefs.h <<\EOF
4414 #define MIXEDCASE_FILENAMES 1
4418 cf_cv_mixedcase=$enable_mixedcase
4419 if test "x$enable_mixedcase" = "xyes" ; then
4421 cat >>confdefs.h <<\EOF
4422 #define MIXEDCASE_FILENAMES 1
4428 # do this after mixed-case option (tags/TAGS is not as important as tic).
4429 echo "$as_me:4429: checking whether ${MAKE-make} sets \${MAKE}" >&5
4430 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4431 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4432 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 cat >conftest.make <<\EOF
4437 @echo 'ac_maketemp="${MAKE}"'
4439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4440 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4441 if test -n "$ac_maketemp"; then
4442 eval ac_cv_prog_make_${ac_make}_set=yes
4444 eval ac_cv_prog_make_${ac_make}_set=no
4448 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4449 echo "$as_me:4449: result: yes" >&5
4450 echo "${ECHO_T}yes" >&6
4453 echo "$as_me:4453: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4455 SET_MAKE="MAKE=${MAKE-make}"
4458 echo "$as_me:4458: checking for \".PHONY\" make-support" >&5
4459 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4460 if test "${cf_cv_make_PHONY+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 mkdir conftest || exit 1
4468 cat >makefile <<'CF_EOF'
4472 @echo "** making $@ $(DATA)"
4474 @echo "** making $@ $(DATA)"
4476 @echo "** making $@ $(DATA)"
4479 @echo "** making $@ $(DATA)"
4482 for cf_data in 1 2 3
4484 ${MAKE:-make} always DATA=$cf_data
4485 ${MAKE:-make} once DATA=$cf_data
4486 ${MAKE:-make} -t always once
4487 if test -f always ; then
4488 echo "no (case 1)" > ../conftest.tmp
4489 elif test ! -f always.out ; then
4490 echo "no (case 2)" > ../conftest.tmp
4491 elif test ! -f once.out ; then
4492 echo "no (case 3)" > ../conftest.tmp
4493 elif ! cmp -s always.out once.out ; then
4494 echo "no (case 4)" > ../conftest.tmp
4495 diff always.out once.out
4497 cf_check="`cat always.out`"
4498 if test "x$cf_check" != "x$cf_data" ; then
4499 echo "no (case 5)" > ../conftest.tmp
4501 echo yes > ../conftest.tmp
4509 cf_cv_make_PHONY="`cat conftest.tmp`"
4513 echo "$as_me:4513: result: $cf_cv_make_PHONY" >&5
4514 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4517 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4518 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4520 for ac_prog in exctags ctags
4522 # Extract the first word of "$ac_prog", so it can be a program name with args.
4523 set dummy $ac_prog; ac_word=$2
4524 echo "$as_me:4524: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_prog_CTAGS+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$CTAGS"; then
4530 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4532 ac_save_IFS=$IFS; IFS=$ac_path_separator
4534 for ac_dir in $ac_dummy; do
4536 test -z "$ac_dir" && ac_dir=.
4537 $as_executable_p "$ac_dir/$ac_word" || continue
4538 ac_cv_prog_CTAGS="$ac_prog"
4539 echo "$as_me:4539: found $ac_dir/$ac_word" >&5
4545 CTAGS=$ac_cv_prog_CTAGS
4546 if test -n "$CTAGS"; then
4547 echo "$as_me:4547: result: $CTAGS" >&5
4548 echo "${ECHO_T}$CTAGS" >&6
4550 echo "$as_me:4550: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4554 test -n "$CTAGS" && break
4557 for ac_prog in exetags etags
4559 # Extract the first word of "$ac_prog", so it can be a program name with args.
4560 set dummy $ac_prog; ac_word=$2
4561 echo "$as_me:4561: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4563 if test "${ac_cv_prog_ETAGS+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 if test -n "$ETAGS"; then
4567 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4569 ac_save_IFS=$IFS; IFS=$ac_path_separator
4571 for ac_dir in $ac_dummy; do
4573 test -z "$ac_dir" && ac_dir=.
4574 $as_executable_p "$ac_dir/$ac_word" || continue
4575 ac_cv_prog_ETAGS="$ac_prog"
4576 echo "$as_me:4576: found $ac_dir/$ac_word" >&5
4582 ETAGS=$ac_cv_prog_ETAGS
4583 if test -n "$ETAGS"; then
4584 echo "$as_me:4584: result: $ETAGS" >&5
4585 echo "${ECHO_T}$ETAGS" >&6
4587 echo "$as_me:4587: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4591 test -n "$ETAGS" && break
4594 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4595 set dummy ${CTAGS:-ctags}; ac_word=$2
4596 echo "$as_me:4596: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$MAKE_LOWER_TAGS"; then
4602 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4604 ac_save_IFS=$IFS; IFS=$ac_path_separator
4606 for ac_dir in $ac_dummy; do
4608 test -z "$ac_dir" && ac_dir=.
4609 $as_executable_p "$ac_dir/$ac_word" || continue
4610 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4611 echo "$as_me:4611: found $ac_dir/$ac_word" >&5
4615 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4618 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4619 if test -n "$MAKE_LOWER_TAGS"; then
4620 echo "$as_me:4620: result: $MAKE_LOWER_TAGS" >&5
4621 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4623 echo "$as_me:4623: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4627 if test "$cf_cv_mixedcase" = yes ; then
4628 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4629 set dummy ${ETAGS:-etags}; ac_word=$2
4630 echo "$as_me:4630: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$MAKE_UPPER_TAGS"; then
4636 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4638 ac_save_IFS=$IFS; IFS=$ac_path_separator
4640 for ac_dir in $ac_dummy; do
4642 test -z "$ac_dir" && ac_dir=.
4643 $as_executable_p "$ac_dir/$ac_word" || continue
4644 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4645 echo "$as_me:4645: found $ac_dir/$ac_word" >&5
4649 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4652 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4653 if test -n "$MAKE_UPPER_TAGS"; then
4654 echo "$as_me:4654: result: $MAKE_UPPER_TAGS" >&5
4655 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4657 echo "$as_me:4657: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4665 if test "$MAKE_UPPER_TAGS" = yes ; then
4671 if test "$MAKE_LOWER_TAGS" = yes ; then
4677 echo "$as_me:4677: checking for makeflags variable" >&5
4678 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4679 if test "${cf_cv_makeflags+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4686 cat >cf_makeflags.tmp <<CF_EOF
4689 @ echo '.$cf_option'
4691 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4692 case "$cf_result" in
4694 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4695 case "$cf_result" in
4696 (.*CC=*) cf_cv_makeflags=
4698 (*) cf_cv_makeflags=$cf_option
4707 echo "${as_me:-configure}:4707: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4712 rm -f cf_makeflags.tmp
4715 echo "$as_me:4715: result: $cf_cv_makeflags" >&5
4716 echo "${ECHO_T}$cf_cv_makeflags" >&6
4718 if test -n "$ac_tool_prefix"; then
4719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4721 echo "$as_me:4721: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4723 if test "${ac_cv_prog_RANLIB+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 if test -n "$RANLIB"; then
4727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4729 ac_save_IFS=$IFS; IFS=$ac_path_separator
4731 for ac_dir in $ac_dummy; do
4733 test -z "$ac_dir" && ac_dir=.
4734 $as_executable_p "$ac_dir/$ac_word" || continue
4735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4736 echo "$as_me:4736: found $ac_dir/$ac_word" >&5
4742 RANLIB=$ac_cv_prog_RANLIB
4743 if test -n "$RANLIB"; then
4744 echo "$as_me:4744: result: $RANLIB" >&5
4745 echo "${ECHO_T}$RANLIB" >&6
4747 echo "$as_me:4747: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4752 if test -z "$ac_cv_prog_RANLIB"; then
4753 ac_ct_RANLIB=$RANLIB
4754 # Extract the first word of "ranlib", so it can be a program name with args.
4755 set dummy ranlib; ac_word=$2
4756 echo "$as_me:4756: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$ac_ct_RANLIB"; then
4762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4764 ac_save_IFS=$IFS; IFS=$ac_path_separator
4766 for ac_dir in $ac_dummy; do
4768 test -z "$ac_dir" && ac_dir=.
4769 $as_executable_p "$ac_dir/$ac_word" || continue
4770 ac_cv_prog_ac_ct_RANLIB="ranlib"
4771 echo "$as_me:4771: found $ac_dir/$ac_word" >&5
4775 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4779 if test -n "$ac_ct_RANLIB"; then
4780 echo "$as_me:4780: result: $ac_ct_RANLIB" >&5
4781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4783 echo "$as_me:4783: result: no" >&5
4784 echo "${ECHO_T}no" >&6
4787 RANLIB=$ac_ct_RANLIB
4789 RANLIB="$ac_cv_prog_RANLIB"
4792 if test -n "$ac_tool_prefix"; then
4793 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4794 set dummy ${ac_tool_prefix}ld; ac_word=$2
4795 echo "$as_me:4795: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4797 if test "${ac_cv_prog_LD+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 if test -n "$LD"; then
4801 ac_cv_prog_LD="$LD" # Let the user override the test.
4803 ac_save_IFS=$IFS; IFS=$ac_path_separator
4805 for ac_dir in $ac_dummy; do
4807 test -z "$ac_dir" && ac_dir=.
4808 $as_executable_p "$ac_dir/$ac_word" || continue
4809 ac_cv_prog_LD="${ac_tool_prefix}ld"
4810 echo "$as_me:4810: found $ac_dir/$ac_word" >&5
4817 if test -n "$LD"; then
4818 echo "$as_me:4818: result: $LD" >&5
4819 echo "${ECHO_T}$LD" >&6
4821 echo "$as_me:4821: result: no" >&5
4822 echo "${ECHO_T}no" >&6
4826 if test -z "$ac_cv_prog_LD"; then
4828 # Extract the first word of "ld", so it can be a program name with args.
4829 set dummy ld; ac_word=$2
4830 echo "$as_me:4830: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$ac_ct_LD"; then
4836 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4838 ac_save_IFS=$IFS; IFS=$ac_path_separator
4840 for ac_dir in $ac_dummy; do
4842 test -z "$ac_dir" && ac_dir=.
4843 $as_executable_p "$ac_dir/$ac_word" || continue
4844 ac_cv_prog_ac_ct_LD="ld"
4845 echo "$as_me:4845: found $ac_dir/$ac_word" >&5
4849 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4852 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4853 if test -n "$ac_ct_LD"; then
4854 echo "$as_me:4854: result: $ac_ct_LD" >&5
4855 echo "${ECHO_T}$ac_ct_LD" >&6
4857 echo "$as_me:4857: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}ar; ac_word=$2
4869 echo "$as_me:4869: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_prog_AR+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 if test -n "$AR"; then
4875 ac_cv_prog_AR="$AR" # Let the user override the test.
4877 ac_save_IFS=$IFS; IFS=$ac_path_separator
4879 for ac_dir in $ac_dummy; do
4881 test -z "$ac_dir" && ac_dir=.
4882 $as_executable_p "$ac_dir/$ac_word" || continue
4883 ac_cv_prog_AR="${ac_tool_prefix}ar"
4884 echo "$as_me:4884: found $ac_dir/$ac_word" >&5
4891 if test -n "$AR"; then
4892 echo "$as_me:4892: result: $AR" >&5
4893 echo "${ECHO_T}$AR" >&6
4895 echo "$as_me:4895: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4900 if test -z "$ac_cv_prog_AR"; then
4902 # Extract the first word of "ar", so it can be a program name with args.
4903 set dummy ar; ac_word=$2
4904 echo "$as_me:4904: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$ac_ct_AR"; then
4910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4912 ac_save_IFS=$IFS; IFS=$ac_path_separator
4914 for ac_dir in $ac_dummy; do
4916 test -z "$ac_dir" && ac_dir=.
4917 $as_executable_p "$ac_dir/$ac_word" || continue
4918 ac_cv_prog_ac_ct_AR="ar"
4919 echo "$as_me:4919: found $ac_dir/$ac_word" >&5
4923 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4926 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4927 if test -n "$ac_ct_AR"; then
4928 echo "$as_me:4928: result: $ac_ct_AR" >&5
4929 echo "${ECHO_T}$ac_ct_AR" >&6
4931 echo "$as_me:4931: result: no" >&5
4932 echo "${ECHO_T}no" >&6
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}nm; ac_word=$2
4943 echo "$as_me:4943: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_prog_NM+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 if test -n "$NM"; then
4949 ac_cv_prog_NM="$NM" # Let the user override the test.
4951 ac_save_IFS=$IFS; IFS=$ac_path_separator
4953 for ac_dir in $ac_dummy; do
4955 test -z "$ac_dir" && ac_dir=.
4956 $as_executable_p "$ac_dir/$ac_word" || continue
4957 ac_cv_prog_NM="${ac_tool_prefix}nm"
4958 echo "$as_me:4958: found $ac_dir/$ac_word" >&5
4965 if test -n "$NM"; then
4966 echo "$as_me:4966: result: $NM" >&5
4967 echo "${ECHO_T}$NM" >&6
4969 echo "$as_me:4969: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4974 if test -z "$ac_cv_prog_NM"; then
4976 # Extract the first word of "nm", so it can be a program name with args.
4977 set dummy nm; ac_word=$2
4978 echo "$as_me:4978: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 if test -n "$ac_ct_NM"; then
4984 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4986 ac_save_IFS=$IFS; IFS=$ac_path_separator
4988 for ac_dir in $ac_dummy; do
4990 test -z "$ac_dir" && ac_dir=.
4991 $as_executable_p "$ac_dir/$ac_word" || continue
4992 ac_cv_prog_ac_ct_NM="nm"
4993 echo "$as_me:4993: found $ac_dir/$ac_word" >&5
4997 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5000 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5001 if test -n "$ac_ct_NM"; then
5002 echo "$as_me:5002: result: $ac_ct_NM" >&5
5003 echo "${ECHO_T}$ac_ct_NM" >&6
5005 echo "$as_me:5005: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5014 if test -n "$ac_tool_prefix"; then
5015 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5016 set dummy ${ac_tool_prefix}ar; ac_word=$2
5017 echo "$as_me:5017: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5019 if test "${ac_cv_prog_AR+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 if test -n "$AR"; then
5023 ac_cv_prog_AR="$AR" # Let the user override the test.
5025 ac_save_IFS=$IFS; IFS=$ac_path_separator
5027 for ac_dir in $ac_dummy; do
5029 test -z "$ac_dir" && ac_dir=.
5030 $as_executable_p "$ac_dir/$ac_word" || continue
5031 ac_cv_prog_AR="${ac_tool_prefix}ar"
5032 echo "$as_me:5032: found $ac_dir/$ac_word" >&5
5039 if test -n "$AR"; then
5040 echo "$as_me:5040: result: $AR" >&5
5041 echo "${ECHO_T}$AR" >&6
5043 echo "$as_me:5043: result: no" >&5
5044 echo "${ECHO_T}no" >&6
5048 if test -z "$ac_cv_prog_AR"; then
5050 # Extract the first word of "ar", so it can be a program name with args.
5051 set dummy ar; ac_word=$2
5052 echo "$as_me:5052: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 if test -n "$ac_ct_AR"; then
5058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5060 ac_save_IFS=$IFS; IFS=$ac_path_separator
5062 for ac_dir in $ac_dummy; do
5064 test -z "$ac_dir" && ac_dir=.
5065 $as_executable_p "$ac_dir/$ac_word" || continue
5066 ac_cv_prog_ac_ct_AR="ar"
5067 echo "$as_me:5067: found $ac_dir/$ac_word" >&5
5071 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5074 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5075 if test -n "$ac_ct_AR"; then
5076 echo "$as_me:5076: result: $ac_ct_AR" >&5
5077 echo "${ECHO_T}$ac_ct_AR" >&6
5079 echo "$as_me:5079: result: no" >&5
5080 echo "${ECHO_T}no" >&6
5088 echo "$as_me:5088: checking for options to update archives" >&5
5089 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5090 if test "${cf_cv_ar_flags+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 case "$cf_cv_system_name" in
5097 cat >mk_static_lib.sh <<-EOF
5102 exec \$MSVC_BIN -out:"\$out" \$@
5104 chmod +x mk_static_lib.sh
5105 AR=`pwd`/mk_static_lib.sh
5108 cf_cv_ar_flags=unknown
5109 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5112 # check if $ARFLAGS already contains this choice
5113 if test "x$ARFLAGS" != "x" ; then
5114 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5115 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5121 rm -f "conftest.$ac_cv_objext"
5124 cat >"conftest.$ac_ext" <<EOF
5125 #line 5125 "configure"
5126 int testdata[3] = { 123, 456, 789 };
5128 if { (eval echo "$as_me:5128: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>&5
5131 echo "$as_me:5131: \$? = $ac_status" >&5
5132 (exit "$ac_status"); } ; then
5133 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5134 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5135 if test -f conftest.a ; then
5136 cf_cv_ar_flags="$cf_ar_flags"
5140 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5142 echo "${as_me:-configure}:5142: testing cannot compile test-program ..." 1>&5
5147 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5152 echo "$as_me:5152: result: $cf_cv_ar_flags" >&5
5153 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5155 if test -n "$ARFLAGS" ; then
5156 if test -n "$cf_cv_ar_flags" ; then
5157 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5160 ARFLAGS=$cf_cv_ar_flags
5163 echo "$as_me:5163: checking if you have specified an install-prefix" >&5
5164 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5166 # Check whether --with-install-prefix or --without-install-prefix was given.
5167 if test "${with_install_prefix+set}" = set; then
5168 withval="$with_install_prefix"
5172 (*) DESTDIR="$withval"
5176 echo "$as_me:5176: result: $DESTDIR" >&5
5177 echo "${ECHO_T}$DESTDIR" >&6
5179 ###############################################################################
5181 # If we're cross-compiling, allow the user to override the tools and their
5182 # options. The configure script is oriented toward identifying the host
5183 # compiler, etc., but we need a build compiler to generate parts of the source.
5185 case "$cf_cv_system_name" in
5187 LDFLAGS="$LDFLAGS user32.lib"
5192 if test "$cross_compiling" = yes ; then
5194 # defaults that we might want to override
5195 : ${BUILD_CFLAGS:=''}
5196 : ${BUILD_CPPFLAGS:=''}
5197 : ${BUILD_LDFLAGS:=''}
5199 : ${BUILD_EXEEXT:='$x'}
5200 : ${BUILD_OBJEXT:='o'}
5202 # Check whether --with-build-cc or --without-build-cc was given.
5203 if test "${with_build_cc+set}" = set; then
5204 withval="$with_build_cc"
5207 for ac_prog in gcc clang c99 c89 cc cl
5209 # Extract the first word of "$ac_prog", so it can be a program name with args.
5210 set dummy $ac_prog; ac_word=$2
5211 echo "$as_me:5211: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 if test -n "$BUILD_CC"; then
5217 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5219 ac_save_IFS=$IFS; IFS=$ac_path_separator
5221 for ac_dir in $ac_dummy; do
5223 test -z "$ac_dir" && ac_dir=.
5224 $as_executable_p "$ac_dir/$ac_word" || continue
5225 ac_cv_prog_BUILD_CC="$ac_prog"
5226 echo "$as_me:5226: found $ac_dir/$ac_word" >&5
5232 BUILD_CC=$ac_cv_prog_BUILD_CC
5233 if test -n "$BUILD_CC"; then
5234 echo "$as_me:5234: result: $BUILD_CC" >&5
5235 echo "${ECHO_T}$BUILD_CC" >&6
5237 echo "$as_me:5237: result: no" >&5
5238 echo "${ECHO_T}no" >&6
5241 test -n "$BUILD_CC" && break
5243 test -n "$BUILD_CC" || BUILD_CC="none"
5246 echo "$as_me:5246: checking for native build C compiler" >&5
5247 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5248 echo "$as_me:5248: result: $BUILD_CC" >&5
5249 echo "${ECHO_T}$BUILD_CC" >&6
5251 echo "$as_me:5251: checking for native build C preprocessor" >&5
5252 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5254 # Check whether --with-build-cpp or --without-build-cpp was given.
5255 if test "${with_build_cpp+set}" = set; then
5256 withval="$with_build_cpp"
5257 BUILD_CPP="$withval"
5259 BUILD_CPP='${BUILD_CC} -E'
5261 echo "$as_me:5261: result: $BUILD_CPP" >&5
5262 echo "${ECHO_T}$BUILD_CPP" >&6
5264 echo "$as_me:5264: checking for native build C flags" >&5
5265 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5267 # Check whether --with-build-cflags or --without-build-cflags was given.
5268 if test "${with_build_cflags+set}" = set; then
5269 withval="$with_build_cflags"
5270 BUILD_CFLAGS="$withval"
5272 echo "$as_me:5272: result: $BUILD_CFLAGS" >&5
5273 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5275 echo "$as_me:5275: checking for native build C preprocessor-flags" >&5
5276 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5278 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5279 if test "${with_build_cppflags+set}" = set; then
5280 withval="$with_build_cppflags"
5281 BUILD_CPPFLAGS="$withval"
5283 echo "$as_me:5283: result: $BUILD_CPPFLAGS" >&5
5284 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5286 echo "$as_me:5286: checking for native build linker-flags" >&5
5287 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5289 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5290 if test "${with_build_ldflags+set}" = set; then
5291 withval="$with_build_ldflags"
5292 BUILD_LDFLAGS="$withval"
5294 echo "$as_me:5294: result: $BUILD_LDFLAGS" >&5
5295 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5297 echo "$as_me:5297: checking for native build linker-libraries" >&5
5298 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5300 # Check whether --with-build-libs or --without-build-libs was given.
5301 if test "${with_build_libs+set}" = set; then
5302 withval="$with_build_libs"
5303 BUILD_LIBS="$withval"
5305 echo "$as_me:5305: result: $BUILD_LIBS" >&5
5306 echo "${ECHO_T}$BUILD_LIBS" >&6
5308 # this assumes we're on Unix.
5312 : ${BUILD_CC:='${CC}'}
5314 if { test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}'; } ; then
5315 { { echo "$as_me:5315: error: Cross-build requires two compilers.
5316 Use --with-build-cc to specify the native compiler." >&5
5317 echo "$as_me: error: Cross-build requires two compilers.
5318 Use --with-build-cc to specify the native compiler." >&2;}
5319 { (exit 1); exit 1; }; }
5323 : ${BUILD_CC:='${CC}'}
5324 : ${BUILD_CPP:='${CPP}'}
5325 : ${BUILD_CFLAGS:='${CFLAGS}'}
5326 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5327 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5328 : ${BUILD_LIBS:='${LIBS}'}
5329 : ${BUILD_EXEEXT:='$x'}
5330 : ${BUILD_OBJEXT:='o'}
5333 ###############################################################################
5335 ### Options to allow the user to specify the set of libraries which are used.
5336 ### Use "--without-normal --with-shared" to allow the default model to be
5337 ### shared, for example.
5340 echo "$as_me:5340: checking if libtool -version-number should be used" >&5
5341 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5343 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5344 if test "${enable_libtool_version+set}" = set; then
5345 enableval="$enable_libtool_version"
5346 test "$enableval" != no && enableval=yes
5347 if test "$enableval" != "yes" ; then
5348 cf_libtool_version=no
5350 cf_libtool_version=yes
5354 cf_libtool_version=yes
5357 echo "$as_me:5357: result: $cf_libtool_version" >&5
5358 echo "${ECHO_T}$cf_libtool_version" >&6
5360 if test "$cf_libtool_version" = yes ; then
5361 LIBTOOL_VERSION="-version-number"
5363 LIBTOOL_VERSION="-version-info"
5366 { echo "$as_me:5366: WARNING: VERSION was not set" >&5
5367 echo "$as_me: WARNING: VERSION was not set" >&2;}
5370 ABI_VERSION="$VERSION"
5371 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5373 echo "${as_me:-configure}:5373: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5377 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5378 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5380 echo "${as_me:-configure}:5380: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5384 { echo "$as_me:5384: WARNING: unexpected VERSION value: $VERSION" >&5
5385 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5392 # common library maintenance symbols that are convenient for libtool scripts:
5393 LIB_CREATE='${AR} -cr'
5394 LIB_OBJECT='${OBJECTS}'
5398 # symbols used to prop libtool up to enable it to determine what it should be
5406 echo "$as_me:5406: checking if you want to build libraries with libtool" >&5
5407 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5409 # Check whether --with-libtool or --without-libtool was given.
5410 if test "${with_libtool+set}" = set; then
5411 withval="$with_libtool"
5412 with_libtool=$withval
5416 echo "$as_me:5416: result: $with_libtool" >&5
5417 echo "${ECHO_T}$with_libtool" >&6
5418 if test "$with_libtool" != "no"; then
5420 if test "$with_libtool" != "yes" ; then
5422 if test "x$prefix" != xNONE; then
5423 cf_path_syntax="$prefix"
5425 cf_path_syntax="$ac_default_prefix"
5428 case ".$with_libtool" in
5433 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5435 (.\$\{*prefix\}*|.\$\{*dir\}*)
5436 eval with_libtool="$with_libtool"
5437 case ".$with_libtool" in
5439 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5444 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5447 { { echo "$as_me:5447: error: expected a pathname, not \"$with_libtool\"" >&5
5448 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5449 { (exit 1); exit 1; }; }
5453 LIBTOOL=$with_libtool
5455 if test -n "$ac_tool_prefix"; then
5456 for ac_prog in libtool glibtool
5458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5460 echo "$as_me:5460: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 if test -n "$LIBTOOL"; then
5466 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5468 ac_save_IFS=$IFS; IFS=$ac_path_separator
5470 for ac_dir in $ac_dummy; do
5472 test -z "$ac_dir" && ac_dir=.
5473 $as_executable_p "$ac_dir/$ac_word" || continue
5474 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5475 echo "$as_me:5475: found $ac_dir/$ac_word" >&5
5481 LIBTOOL=$ac_cv_prog_LIBTOOL
5482 if test -n "$LIBTOOL"; then
5483 echo "$as_me:5483: result: $LIBTOOL" >&5
5484 echo "${ECHO_T}$LIBTOOL" >&6
5486 echo "$as_me:5486: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5490 test -n "$LIBTOOL" && break
5493 if test -z "$LIBTOOL"; then
5494 ac_ct_LIBTOOL=$LIBTOOL
5495 for ac_prog in libtool glibtool
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 echo "$as_me:5499: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 if test -n "$ac_ct_LIBTOOL"; then
5505 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5507 ac_save_IFS=$IFS; IFS=$ac_path_separator
5509 for ac_dir in $ac_dummy; do
5511 test -z "$ac_dir" && ac_dir=.
5512 $as_executable_p "$ac_dir/$ac_word" || continue
5513 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5514 echo "$as_me:5514: found $ac_dir/$ac_word" >&5
5520 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5521 if test -n "$ac_ct_LIBTOOL"; then
5522 echo "$as_me:5522: result: $ac_ct_LIBTOOL" >&5
5523 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5525 echo "$as_me:5525: result: no" >&5
5526 echo "${ECHO_T}no" >&6
5529 test -n "$ac_ct_LIBTOOL" && break
5531 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5533 LIBTOOL=$ac_ct_LIBTOOL
5536 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5538 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.].*//'`
5540 cf_cv_libtool_version=
5542 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5544 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5547 unset ac_cv_prog_ac_ct_LIBTOOL
5551 if test -n "$ac_tool_prefix"; then
5552 for ac_prog in glibtool
5554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556 echo "$as_me:5556: checking for $ac_word" >&5
5557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5558 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 if test -n "$LIBTOOL"; then
5562 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5564 ac_save_IFS=$IFS; IFS=$ac_path_separator
5566 for ac_dir in $ac_dummy; do
5568 test -z "$ac_dir" && ac_dir=.
5569 $as_executable_p "$ac_dir/$ac_word" || continue
5570 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5571 echo "$as_me:5571: found $ac_dir/$ac_word" >&5
5577 LIBTOOL=$ac_cv_prog_LIBTOOL
5578 if test -n "$LIBTOOL"; then
5579 echo "$as_me:5579: result: $LIBTOOL" >&5
5580 echo "${ECHO_T}$LIBTOOL" >&6
5582 echo "$as_me:5582: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5586 test -n "$LIBTOOL" && break
5589 if test -z "$LIBTOOL"; then
5590 ac_ct_LIBTOOL=$LIBTOOL
5591 for ac_prog in glibtool
5593 # Extract the first word of "$ac_prog", so it can be a program name with args.
5594 set dummy $ac_prog; ac_word=$2
5595 echo "$as_me:5595: checking for $ac_word" >&5
5596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5597 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 if test -n "$ac_ct_LIBTOOL"; then
5601 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5603 ac_save_IFS=$IFS; IFS=$ac_path_separator
5605 for ac_dir in $ac_dummy; do
5607 test -z "$ac_dir" && ac_dir=.
5608 $as_executable_p "$ac_dir/$ac_word" || continue
5609 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5610 echo "$as_me:5610: found $ac_dir/$ac_word" >&5
5616 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5617 if test -n "$ac_ct_LIBTOOL"; then
5618 echo "$as_me:5618: result: $ac_ct_LIBTOOL" >&5
5619 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5621 echo "$as_me:5621: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5625 test -n "$ac_ct_LIBTOOL" && break
5627 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5629 LIBTOOL=$ac_ct_LIBTOOL
5632 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5634 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.].*//'`
5636 cf_cv_libtool_version=
5638 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5642 if test -z "$LIBTOOL" ; then
5643 { { echo "$as_me:5643: error: Cannot find libtool" >&5
5644 echo "$as_me: error: Cannot find libtool" >&2;}
5645 { (exit 1); exit 1; }; }
5647 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5648 LIB_OBJECT='${OBJECTS:.o=.lo}'
5650 LIB_CLEAN='${LIBTOOL} --mode=clean'
5651 LIB_COMPILE='${LIBTOOL} --mode=compile'
5652 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5653 LIB_INSTALL='${LIBTOOL} --mode=install'
5654 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5657 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5659 echo "$as_me:5659: checking version of $LIBTOOL" >&5
5660 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5662 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5664 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.].*//'`
5666 cf_cv_libtool_version=
5668 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5670 echo "$as_me:5670: result: $cf_cv_libtool_version" >&5
5671 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5672 if test -n "$cf_cv_libtool_version"
5674 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5675 case "x$cf_check_libtool_version" in
5676 (*...GNU-libtool...*)
5679 { { echo "$as_me:5679: error: This is not GNU libtool" >&5
5680 echo "$as_me: error: This is not GNU libtool" >&2;}
5681 { (exit 1); exit 1; }; }
5685 { { echo "$as_me:5685: error: No version found for $LIBTOOL" >&5
5686 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5687 { (exit 1); exit 1; }; }
5690 { { echo "$as_me:5690: error: GNU libtool has not been found" >&5
5691 echo "$as_me: error: GNU libtool has not been found" >&2;}
5692 { (exit 1); exit 1; }; }
5695 # special hack to add -no-undefined (which libtool should do for itself)
5697 case "$cf_cv_system_name" in
5698 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5699 LT_UNDEF=-no-undefined
5703 # special hack to add --tag option for C++ compiler
5704 case "$cf_cv_libtool_version" in
5705 (1.[5-9]*|[2-9].[0-9.a-z]*)
5706 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5707 LIBTOOL="$LIBTOOL --tag=CC"
5710 LIBTOOL_CXX="$LIBTOOL"
5718 test -z "$LIBTOOL" && ECHO_LT=
5720 if test "$with_libtool" != "no" ; then
5722 cf_list_models="$cf_list_models libtool"
5726 echo "$as_me:5726: checking if you want to build shared libraries" >&5
5727 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5729 # Check whether --with-shared or --without-shared was given.
5730 if test "${with_shared+set}" = set; then
5731 withval="$with_shared"
5732 with_shared=$withval
5736 echo "$as_me:5736: result: $with_shared" >&5
5737 echo "${ECHO_T}$with_shared" >&6
5738 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5740 echo "$as_me:5740: checking if you want to build static libraries" >&5
5741 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5743 # Check whether --with-normal or --without-normal was given.
5744 if test "${with_normal+set}" = set; then
5745 withval="$with_normal"
5746 with_normal=$withval
5750 echo "$as_me:5750: result: $with_normal" >&5
5751 echo "${ECHO_T}$with_normal" >&6
5752 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5754 echo "$as_me:5754: checking if you want to build debug libraries" >&5
5755 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5757 # Check whether --with-debug or --without-debug was given.
5758 if test "${with_debug+set}" = set; then
5759 withval="$with_debug"
5764 echo "$as_me:5764: result: $with_debug" >&5
5765 echo "${ECHO_T}$with_debug" >&6
5766 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5768 echo "$as_me:5768: checking if you want to build profiling libraries" >&5
5769 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5771 # Check whether --with-profile or --without-profile was given.
5772 if test "${with_profile+set}" = set; then
5773 withval="$with_profile"
5774 with_profile=$withval
5778 echo "$as_me:5778: result: $with_profile" >&5
5779 echo "${ECHO_T}$with_profile" >&6
5780 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5784 if test "X$cf_with_cxx_binding" != Xno; then
5785 if test "x$with_shared" = "xyes"; then
5786 echo "$as_me:5786: checking if you want to build C++ shared libraries" >&5
5787 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5789 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5790 if test "${with_cxx_shared+set}" = set; then
5791 withval="$with_cxx_shared"
5792 with_shared_cxx=$withval
5796 echo "$as_me:5796: result: $with_shared_cxx" >&5
5797 echo "${ECHO_T}$with_shared_cxx" >&6
5801 ###############################################################################
5803 echo "$as_me:5803: checking for specified models" >&5
5804 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5805 test -z "$cf_list_models" && cf_list_models=normal
5806 test "$with_libtool" != "no" && cf_list_models=libtool
5807 echo "$as_me:5807: result: $cf_list_models" >&5
5808 echo "${ECHO_T}$cf_list_models" >&6
5810 ### Use the first model as the default, and save its suffix for use in building
5811 ### up test-applications.
5812 echo "$as_me:5812: checking for default model" >&5
5813 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5814 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5815 echo "$as_me:5815: result: $DFT_LWR_MODEL" >&5
5816 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5818 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5829 echo "$as_me:5829: checking if you want to have a library-prefix" >&5
5830 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5832 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5833 if test "${with_lib_prefix+set}" = set; then
5834 withval="$with_lib_prefix"
5835 with_lib_prefix=$withval
5837 with_lib_prefix=auto
5839 echo "$as_me:5839: result: $with_lib_prefix" >&5
5840 echo "${ECHO_T}$with_lib_prefix" >&6
5842 if test "$with_lib_prefix" = auto
5845 case "$cf_cv_system_name" in
5847 if test "$DFT_LWR_MODEL" = libtool; then
5856 (*) LIB_PREFIX='lib'
5859 cf_prefix=$LIB_PREFIX
5861 elif test "$with_lib_prefix" = no
5865 LIB_PREFIX=$with_lib_prefix
5870 echo "$as_me:5870: checking for PATH separator" >&5
5871 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5872 case "$cf_cv_system_name" in
5873 (os2*) PATH_SEPARATOR=';' ;;
5874 (*) ${PATH_SEPARATOR:=':'} ;;
5877 echo "$as_me:5877: result: $PATH_SEPARATOR" >&5
5878 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5880 ###############################################################################
5882 echo "$as_me:5882: checking if you want to build a separate terminfo library" >&5
5883 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5885 # Check whether --with-termlib or --without-termlib was given.
5886 if test "${with_termlib+set}" = set; then
5887 withval="$with_termlib"
5888 with_termlib=$withval
5892 echo "$as_me:5892: result: $with_termlib" >&5
5893 echo "${ECHO_T}$with_termlib" >&6
5895 echo "$as_me:5895: checking if you want to build a separate tic library" >&5
5896 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5898 # Check whether --with-ticlib or --without-ticlib was given.
5899 if test "${with_ticlib+set}" = set; then
5900 withval="$with_ticlib"
5901 with_ticlib=$withval
5905 echo "$as_me:5905: result: $with_ticlib" >&5
5906 echo "${ECHO_T}$with_ticlib" >&6
5908 if test X"$CC_G_OPT" = X"" ; then
5910 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5913 if test X"$CXX_G_OPT" = X"" ; then
5915 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5918 echo "$as_me:5918: checking for default loader flags" >&5
5919 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5920 case "$DFT_LWR_MODEL" in
5921 (libtool) LD_MODEL='' ;;
5922 (normal) LD_MODEL='' ;;
5923 (debug) LD_MODEL=$CC_G_OPT ;;
5924 (profile) LD_MODEL='-pg';;
5925 (shared) LD_MODEL='' ;;
5927 echo "$as_me:5927: result: $LD_MODEL" >&5
5928 echo "${ECHO_T}$LD_MODEL" >&6
5930 case "$DFT_LWR_MODEL" in
5933 echo "$as_me:5933: checking if rpath option should be used" >&5
5934 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5936 # Check whether --enable-rpath or --disable-rpath was given.
5937 if test "${enable_rpath+set}" = set; then
5938 enableval="$enable_rpath"
5939 cf_cv_enable_rpath=$enableval
5941 cf_cv_enable_rpath=no
5943 echo "$as_me:5943: result: $cf_cv_enable_rpath" >&5
5944 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5946 echo "$as_me:5946: checking if shared libraries should be relinked during install" >&5
5947 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5949 # Check whether --enable-relink or --disable-relink was given.
5950 if test "${enable_relink+set}" = set; then
5951 enableval="$enable_relink"
5952 cf_cv_do_relink=$enableval
5956 echo "$as_me:5956: result: $cf_cv_do_relink" >&5
5957 echo "${ECHO_T}$cf_cv_do_relink" >&6
5961 # we will build libraries one-level down.
5965 if test "x$cf_cv_enable_rpath" != xno
5967 echo "$as_me:5967: checking for an rpath option" >&5
5968 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5969 case "$cf_cv_system_name" in
5971 if test "$GCC" = yes; then
5972 LD_RPATH_OPT="-Wl,-rpath,"
5974 LD_RPATH_OPT="-rpath "
5977 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5978 LD_RPATH_OPT="-Wl,-rpath,"
5980 (openbsd[2-9].*|mirbsd*)
5981 LD_RPATH_OPT="-Wl,-rpath,"
5984 LD_RPATH_OPT="-rpath "
5987 LD_RPATH_OPT="-Wl,-rpath,"
5990 LD_RPATH_OPT="-rpath "
5998 echo "$as_me:5998: result: $LD_RPATH_OPT" >&5
5999 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6001 case "x$LD_RPATH_OPT" in
6003 echo "$as_me:6003: checking if we need a space after rpath option" >&5
6004 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6005 cf_save_LIBS="$LIBS"
6010 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6012 for cf_add_1lib in $cf_add_0lib; do
6013 for cf_add_2lib in $cf_add_libs; do
6014 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6019 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6023 cat >"conftest.$ac_ext" <<_ACEOF
6024 #line 6024 "configure"
6025 #include "confdefs.h"
6035 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6036 if { (eval echo "$as_me:6036: \"$ac_link\"") >&5
6037 (eval $ac_link) 2>&5
6039 echo "$as_me:6039: \$? = $ac_status" >&5
6040 (exit "$ac_status"); } &&
6041 { ac_try='test -s "conftest$ac_exeext"'
6042 { (eval echo "$as_me:6042: \"$ac_try\"") >&5
6045 echo "$as_me:6045: \$? = $ac_status" >&5
6046 (exit "$ac_status"); }; }; then
6049 echo "$as_me: failed program was:" >&5
6050 cat "conftest.$ac_ext" >&5
6053 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6054 LIBS="$cf_save_LIBS"
6055 echo "$as_me:6055: result: $cf_rpath_space" >&5
6056 echo "${ECHO_T}$cf_rpath_space" >&6
6057 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6066 INSTALL_LIB="-m 644"
6067 : ${rel_builddir:=.}
6073 cf_cv_do_symlinks=no
6075 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6077 echo "$as_me:6077: checking if release/abi version should be used for shared libs" >&5
6078 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6080 # Check whether --with-shlib-version or --without-shlib-version was given.
6081 if test "${with_shlib_version+set}" = set; then
6082 withval="$with_shlib_version"
6083 test -z "$withval" && withval=auto
6086 cf_cv_shlib_version=auto
6089 cf_cv_shlib_version=$withval
6092 echo "$as_me:6092: result: $withval" >&5
6093 echo "${ECHO_T}$withval" >&6
6094 { { echo "$as_me:6094: error: option value must be one of: rel, abi, or auto" >&5
6095 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6096 { (exit 1); exit 1; }; }
6101 cf_cv_shlib_version=auto
6103 echo "$as_me:6103: result: $cf_cv_shlib_version" >&5
6104 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6109 # Some less-capable ports of gcc support only -fpic
6113 if test "$GCC" = yes
6117 case "$cf_cv_system_name" in
6118 (*linux*) # e.g., PGI compiler
6124 if test "$cf_try_fPIC" = yes
6126 echo "$as_me:6126: checking which $CC option to use" >&5
6127 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6128 cf_save_CFLAGS="$CFLAGS"
6129 for CC_SHARED_OPTS in -fPIC -fpic ''
6131 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6132 cat >"conftest.$ac_ext" <<_ACEOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6144 rm -f "conftest.$ac_objext"
6145 if { (eval echo "$as_me:6145: \"$ac_compile\"") >&5
6146 (eval $ac_compile) 2>&5
6148 echo "$as_me:6148: \$? = $ac_status" >&5
6149 (exit "$ac_status"); } &&
6150 { ac_try='test -s "conftest.$ac_objext"'
6151 { (eval echo "$as_me:6151: \"$ac_try\"") >&5
6154 echo "$as_me:6154: \$? = $ac_status" >&5
6155 (exit "$ac_status"); }; }; then
6158 echo "$as_me: failed program was:" >&5
6159 cat "conftest.$ac_ext" >&5
6161 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6163 echo "$as_me:6163: result: $CC_SHARED_OPTS" >&5
6164 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6165 CFLAGS="$cf_save_CFLAGS"
6168 cf_cv_shlib_version_infix=no
6170 case "$cf_cv_system_name" in
6171 (aix4.3-9*|aix[5-7]*)
6172 if test "$GCC" = yes; then
6173 CC_SHARED_OPTS='-Wl,-brtl'
6174 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6176 CC_SHARED_OPTS='-brtl'
6177 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6178 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6182 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6186 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6187 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6188 cf_cv_shlib_version=cygdll
6189 cf_cv_shlib_version_infix=cygdll
6192 cat >mk_shared_lib.sh <<-CF_EOF
6195 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6198 Linking shared library
6199 ** SHARED_LIB \$SHARED_LIB
6200 ** IMPORT_LIB \$IMPORT_LIB
6202 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6204 chmod +x mk_shared_lib.sh
6208 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6209 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6210 cf_cv_shlib_version=msysdll
6211 cf_cv_shlib_version_infix=msysdll
6214 cat >mk_shared_lib.sh <<-CF_EOF
6217 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6220 Linking shared library
6221 ** SHARED_LIB \$SHARED_LIB
6222 ** IMPORT_LIB \$IMPORT_LIB
6224 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6226 chmod +x mk_shared_lib.sh
6229 cf_try_cflags="no-cpp-precomp"
6230 CC_SHARED_OPTS="-dynamic"
6231 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6232 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6233 cf_cv_shlib_version_infix=yes
6234 echo "$as_me:6234: checking if ld -search_paths_first works" >&5
6235 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6236 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 cf_save_LDFLAGS=$LDFLAGS
6241 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6242 cat >"conftest.$ac_ext" <<_ACEOF
6243 #line 6243 "configure"
6244 #include "confdefs.h"
6254 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6255 if { (eval echo "$as_me:6255: \"$ac_link\"") >&5
6256 (eval $ac_link) 2>&5
6258 echo "$as_me:6258: \$? = $ac_status" >&5
6259 (exit "$ac_status"); } &&
6260 { ac_try='test -s "conftest$ac_exeext"'
6261 { (eval echo "$as_me:6261: \"$ac_try\"") >&5
6264 echo "$as_me:6264: \$? = $ac_status" >&5
6265 (exit "$ac_status"); }; }; then
6266 cf_cv_ldflags_search_paths_first=yes
6268 echo "$as_me: failed program was:" >&5
6269 cat "conftest.$ac_ext" >&5
6270 cf_cv_ldflags_search_paths_first=no
6272 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6273 LDFLAGS=$cf_save_LDFLAGS
6275 echo "$as_me:6275: result: $cf_cv_ldflags_search_paths_first" >&5
6276 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6277 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6278 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6283 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6284 if test "$cf_cv_shlib_version" = rel; then
6285 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6287 cf_cv_shared_soname='`basename $@`'
6290 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6293 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6294 if test "$GCC" != yes; then
6297 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6298 INSTALL_LIB="-m 555"
6301 # (tested with gcc 2.7.2 -- I don't have c89)
6302 if test "$GCC" = yes; then
6303 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6306 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6308 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6309 # HP-UX shared libraries must be executable, and should be
6310 # readonly to exploit a quirk in the memory manager.
6311 INSTALL_LIB="-m 555"
6314 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6315 if test "$cf_cv_shlib_version" = rel; then
6316 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6318 cf_shared_soname='`basename $@`'
6321 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6324 if test "$cf_cv_enable_rpath" = yes ; then
6325 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6327 # tested with IRIX 5.2 and 'cc'.
6328 if test "$GCC" != yes; then
6329 CC_SHARED_OPTS='-KPIC'
6330 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6332 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6334 cf_cv_rm_so_locs=yes
6336 (linux*|gnu*|k*bsd*-gnu)
6337 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6338 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6339 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6341 if test "$cf_cv_enable_rpath" = yes ; then
6342 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6345 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6346 if test "$cf_cv_shlib_version" = rel; then
6347 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6349 cf_cv_shared_soname='`basename $@`'
6352 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6355 cf_cv_shlib_version=msvcdll
6356 cf_cv_shlib_version_infix=msvcdll
6359 if test "$DFT_LWR_MODEL" = "shared" ; then
6360 LOCAL_LDFLAGS="-link -dll"
6361 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6362 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6365 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6366 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6367 cat >mk_shared_lib.sh <<-CF_EOF
6370 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6375 Linking shared library
6376 ** SHARED LIB \$SHARED_LIB
6377 ** IMPORT_LIB \$IMPORT_LIB
6379 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6380 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6381 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6383 chmod +x mk_shared_lib.sh
6384 cat >mk_prog.sh <<-CF_EOF
6387 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6390 ldopts=("/subsystem:console")
6393 while test \$# -gt 0; do
6396 # ignore -link argument
6399 # ignore runtime-library option
6414 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6417 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6423 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6424 ldopts+=("\${linkarg}")
6432 ldopts+=("-out:\$1")
6441 if [ "\$isdll" -ne 0 ]; then
6442 for lib in \${libs[*]}; do
6443 ldopts+=("\$lib.dll.lib")
6446 for lib in \${libs[*]}; do
6447 ldopts+=("\$lib.lib")
6452 ** ld options: "\${ldopts[@]}"
6454 exec \$LD \${ldopts[@]}
6457 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6458 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6461 cf_cv_shlib_version=mingw
6462 cf_cv_shlib_version_infix=mingw
6465 if test "$DFT_LWR_MODEL" = "shared" ; then
6466 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6467 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6468 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6471 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6472 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6473 cat >mk_shared_lib.sh <<-CF_EOF
6476 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6479 Linking shared library
6480 ** SHARED_LIB \$SHARED_LIB
6481 ** IMPORT_LIB \$IMPORT_LIB
6483 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6485 chmod +x mk_shared_lib.sh
6487 (openbsd[2-9].*|mirbsd*)
6488 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6489 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6490 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6492 if test "$cf_cv_enable_rpath" = yes ; then
6493 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6495 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6497 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6498 if test "$cf_cv_shlib_version" = rel; then
6499 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6501 cf_cv_shared_soname='`basename $@`'
6504 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6508 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6512 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6514 (nto-qnx*|openbsd*|freebsd[12].*)
6515 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6516 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6517 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6519 (dragonfly*|freebsd*)
6520 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6521 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6522 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6523 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6524 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6527 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6528 if test "$cf_cv_shlib_version" = rel; then
6529 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6531 cf_cv_shared_soname='`basename $@`'
6534 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6537 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6538 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6539 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6540 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6541 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6542 if test "$cf_cv_shlib_version" = auto; then
6543 if test -f /usr/libexec/ld.elf_so; then
6544 cf_cv_shlib_version=abi
6546 cf_cv_shlib_version=rel
6550 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6551 if test "$cf_cv_shlib_version" = rel; then
6552 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6554 cf_cv_shared_soname='`basename $@`'
6557 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6559 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6563 # tested with OSF/1 V3.2 and 'cc'
6564 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6565 # link with shared libs).
6566 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6569 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6572 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6573 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6574 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6575 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6577 cf_cv_rm_so_locs=yes
6579 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6580 # tested with osr5.0.5
6581 if test "$GCC" != yes; then
6582 CC_SHARED_OPTS='-belf -KPIC'
6584 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6585 if test "$cf_cv_enable_rpath" = yes ; then
6586 # only way is to set LD_RUN_PATH but no switch for it
6589 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6590 LINK_PROGS='LD_RUN_PATH=${libdir}'
6591 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6594 # tested with SunOS 4.1.1 and gcc 2.7.0
6595 if test "$GCC" != yes; then
6596 CC_SHARED_OPTS='-KPIC'
6598 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6599 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6602 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6603 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6604 if test "$DFT_LWR_MODEL" = "shared" ; then
6605 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6606 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6608 if test "$cf_cv_enable_rpath" = yes ; then
6609 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6612 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6613 if test "$cf_cv_shlib_version" = rel; then
6614 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6616 cf_cv_shared_soname='`basename $@`'
6619 if test "$GCC" != yes; then
6620 cf_save_CFLAGS="$CFLAGS"
6621 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6623 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6624 cat >"conftest.$ac_ext" <<_ACEOF
6625 #line 6625 "configure"
6626 #include "confdefs.h"
6636 rm -f "conftest.$ac_objext"
6637 if { (eval echo "$as_me:6637: \"$ac_compile\"") >&5
6638 (eval $ac_compile) 2>&5
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit "$ac_status"); } &&
6642 { ac_try='test -s "conftest.$ac_objext"'
6643 { (eval echo "$as_me:6643: \"$ac_try\"") >&5
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit "$ac_status"); }; }; then
6650 echo "$as_me: failed program was:" >&5
6651 cat "conftest.$ac_ext" >&5
6653 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6655 CFLAGS="$cf_save_CFLAGS"
6656 CC_SHARED_OPTS=$cf_shared_opts
6657 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6659 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6662 (sysv5uw7*|unix_sv*)
6663 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6664 if test "$GCC" != yes; then
6665 CC_SHARED_OPTS='-KPIC'
6667 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6670 CC_SHARED_OPTS='unknown'
6671 MK_SHARED_LIB='echo unknown'
6675 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6676 case "$cf_cv_shlib_version" in
6678 case "$MK_SHARED_LIB" in
6680 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6683 { echo "$as_me:6683: WARNING: ignored --with-shlib-version" >&5
6684 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6690 if test -n "$cf_try_cflags"
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6693 "${as_me:-configure}"
6695 int main(int argc, char *argv[])
6698 return (argv[argc-1] == 0) ;
6701 cf_save_CFLAGS="$CFLAGS"
6702 for cf_opt in $cf_try_cflags
6704 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6705 echo "$as_me:6705: checking if CFLAGS option -$cf_opt works" >&5
6706 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6707 if { (eval echo "$as_me:6707: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 (exit "$ac_status"); }; then
6712 echo "$as_me:6712: result: yes" >&5
6713 echo "${ECHO_T}yes" >&6
6714 cf_save_CFLAGS="$CFLAGS"
6716 echo "$as_me:6716: result: no" >&5
6717 echo "${ECHO_T}no" >&6
6720 CFLAGS="$cf_save_CFLAGS"
6723 # RPATH_LIST is a colon-separated list of directories
6724 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6725 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6727 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6729 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6731 echo "${as_me:-configure}:6731: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6733 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6735 echo "${as_me:-configure}:6735: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6737 for model in $cf_list_models ; do
6741 echo "$as_me:6741: checking for additional libtool options" >&5
6742 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6744 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6745 if test "${with_libtool_opts+set}" = set; then
6746 withval="$with_libtool_opts"
6747 with_libtool_opts=$withval
6749 with_libtool_opts=no
6751 echo "$as_me:6751: result: $with_libtool_opts" >&5
6752 echo "${ECHO_T}$with_libtool_opts" >&6
6754 case .$with_libtool_opts in
6758 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6762 echo "$as_me:6762: checking if exported-symbols file should be used" >&5
6763 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6765 # Check whether --with-export-syms or --without-export-syms was given.
6766 if test "${with_export_syms+set}" = set; then
6767 withval="$with_export_syms"
6768 with_export_syms=$withval
6772 if test "x$with_export_syms" = xyes
6774 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6777 echo "$as_me:6777: result: $with_export_syms" >&5
6778 echo "${ECHO_T}$with_export_syms" >&6
6779 if test "x$with_export_syms" != xno
6781 EXPORT_SYMS="-export-symbols $with_export_syms"
6787 if test "$CC_SHARED_OPTS" = "unknown"; then
6788 { { echo "$as_me:6788: error: Shared libraries are not supported in this version" >&5
6789 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6790 { (exit 1); exit 1; }; }
6792 # workaround for inept transition to PIE vs PIC...
6793 echo "$as_me:6793: checking if current CFLAGS link properly" >&5
6794 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6795 cat >"conftest.$ac_ext" <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6802 printf("Hello work\\n");
6807 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6808 if { (eval echo "$as_me:6808: \"$ac_link\"") >&5
6809 (eval $ac_link) 2>&5
6811 echo "$as_me:6811: \$? = $ac_status" >&5
6812 (exit "$ac_status"); } &&
6813 { ac_try='test -s "conftest$ac_exeext"'
6814 { (eval echo "$as_me:6814: \"$ac_try\"") >&5
6817 echo "$as_me:6817: \$? = $ac_status" >&5
6818 (exit "$ac_status"); }; }; then
6821 echo "$as_me: failed program was:" >&5
6822 cat "conftest.$ac_ext" >&5
6825 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6826 echo "$as_me:6826: result: $cf_cflags_work" >&5
6827 echo "${ECHO_T}$cf_cflags_work" >&6
6828 if test "$cf_cflags_work" = no
6830 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6832 echo "${as_me:-configure}:6832: testing try to work around by appending shared-options ..." 1>&5
6834 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6837 echo "$as_me:6837: checking if versioned-symbols file should be used" >&5
6838 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6840 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6841 if test "${with_versioned_syms+set}" = set; then
6842 withval="$with_versioned_syms"
6843 with_versioned_syms=$withval
6845 with_versioned_syms=no
6847 case "x$with_versioned_syms" in
6849 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6855 test -f "$with_versioned_syms" || { { echo "$as_me:6855: error: expected a filename: $with_versioned_syms" >&5
6856 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6857 { (exit 1); exit 1; }; }
6860 test -f "$with_versioned_syms" || { { echo "$as_me:6860: error: expected a filename: $with_versioned_syms" >&5
6861 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6862 { (exit 1); exit 1; }; }
6863 with_versioned_syms=`pwd`/"$with_versioned_syms"
6866 echo "$as_me:6866: result: $with_versioned_syms" >&5
6867 echo "${ECHO_T}$with_versioned_syms" >&6
6873 if test "x$with_versioned_syms" != xno
6875 RESULTING_SYMS=$with_versioned_syms
6876 case "x$MK_SHARED_LIB" in
6878 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6879 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6880 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6882 echo "${as_me:-configure}:6882: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6886 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6887 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6888 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6890 echo "${as_me:-configure}:6890: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6894 { echo "$as_me:6894: WARNING: this system does not support versioned-symbols" >&5
6895 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6899 # Linux ld can selectively override scope, e.g., of symbols beginning with
6900 # "_" by first declaring some as global, and then using a wildcard to
6901 # declare the others as local. Some other loaders cannot do this. Check
6902 # by constructing a (very) simple shared library and inspecting its
6904 if test "x$VERSIONED_SYMS" != "x"
6906 echo "$as_me:6906: checking if wildcards can be used to selectively omit symbols" >&5
6907 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6913 cat >conftest.ver <<EOF
6942 cat >conftest.$ac_ext <<EOF
6943 #line 6943 "configure"
6944 int _ismissing(void) { return 1; }
6945 int _localf1(void) { return 1; }
6946 int _localf2(void) { return 2; }
6947 int globalf1(void) { return 1; }
6948 int globalf2(void) { return 2; }
6949 int _sublocalf1(void) { return 1; }
6950 int _sublocalf2(void) { return 2; }
6951 int subglobalf1(void) { return 1; }
6952 int subglobalf2(void) { return 2; }
6954 cat >conftest.mk <<EOF
6957 CPPFLAGS=${CPPFLAGS}
6960 VERSIONED_SYMS=${VERSIONED_SYMS}
6961 RESULTING_SYMS=conftest.ver
6962 MK_SHARED_LIB=${MK_SHARED_LIB}
6963 conftest.so: conftest.$ac_cv_objext
6964 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6967 # compile source, make library
6968 if make -f conftest.mk 2>&5 >/dev/null
6970 # test for missing symbol in either Data or Text section
6971 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
6972 test -n "$cf_missing" && WILDCARD_SYMS=yes
6974 echo "$as_me:6974: result: $WILDCARD_SYMS" >&5
6975 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6984 ### Checks for special libraries, must be done up-front.
6987 echo "$as_me:6987: checking if you want to link with the GPM mouse library" >&5
6988 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6990 # Check whether --with-gpm or --without-gpm was given.
6991 if test "${with_gpm+set}" = set; then
6997 echo "$as_me:6997: result: $with_gpm" >&5
6998 echo "${ECHO_T}$with_gpm" >&6
7000 if test "$with_gpm" != no ; then
7001 echo "$as_me:7001: checking for gpm.h" >&5
7002 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7003 if test "${ac_cv_header_gpm_h+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 cat >"conftest.$ac_ext" <<_ACEOF
7007 #line 7007 "configure"
7008 #include "confdefs.h"
7011 if { (eval echo "$as_me:7011: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7012 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7014 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 echo "$as_me:7017: \$? = $ac_status" >&5
7018 (exit "$ac_status"); } >/dev/null; then
7019 if test -s conftest.err; then
7020 ac_cpp_err=$ac_c_preproc_warn_flag
7027 if test -z "$ac_cpp_err"; then
7028 ac_cv_header_gpm_h=yes
7030 echo "$as_me: failed program was:" >&5
7031 cat "conftest.$ac_ext" >&5
7032 ac_cv_header_gpm_h=no
7034 rm -f conftest.err "conftest.$ac_ext"
7036 echo "$as_me:7036: result: $ac_cv_header_gpm_h" >&5
7037 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7038 if test "$ac_cv_header_gpm_h" = yes; then
7040 cat >>confdefs.h <<\EOF
7041 #define HAVE_GPM_H 1
7044 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7045 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7047 echo "${as_me:-configure}:7047: testing assuming we really have GPM library ..." 1>&5
7049 cat >>confdefs.h <<\EOF
7050 #define HAVE_LIBGPM 1
7055 echo "$as_me:7055: checking for Gpm_Open in -lgpm" >&5
7056 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7057 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 ac_check_lib_save_LIBS=$LIBS
7062 cat >"conftest.$ac_ext" <<_ACEOF
7063 #line 7063 "configure"
7064 #include "confdefs.h"
7066 /* Override any gcc2 internal prototype to avoid an error. */
7070 /* We use char because int might match the return type of a gcc2
7071 builtin and then its argument prototype would still apply. */
7081 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7082 if { (eval echo "$as_me:7082: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>&5
7085 echo "$as_me:7085: \$? = $ac_status" >&5
7086 (exit "$ac_status"); } &&
7087 { ac_try='test -s "conftest$ac_exeext"'
7088 { (eval echo "$as_me:7088: \"$ac_try\"") >&5
7091 echo "$as_me:7091: \$? = $ac_status" >&5
7092 (exit "$ac_status"); }; }; then
7093 ac_cv_lib_gpm_Gpm_Open=yes
7095 echo "$as_me: failed program was:" >&5
7096 cat "conftest.$ac_ext" >&5
7097 ac_cv_lib_gpm_Gpm_Open=no
7099 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7100 LIBS=$ac_check_lib_save_LIBS
7102 echo "$as_me:7102: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7103 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7104 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7108 if test "$with_gpm" = maybe; then
7109 { echo "$as_me:7109: WARNING: Cannot link with GPM library" >&5
7110 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7113 { { echo "$as_me:7113: error: Cannot link with GPM library" >&5
7114 echo "$as_me: error: Cannot link with GPM library" >&2;}
7115 { (exit 1); exit 1; }; }
7124 test "$with_gpm" != maybe && { echo "$as_me:7124: WARNING: Cannot find GPM header" >&5
7125 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7132 if test "$with_gpm" != no ; then
7133 echo "$as_me:7133: checking if you want to load GPM dynamically" >&5
7134 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7136 # Check whether --with-dlsym or --without-dlsym was given.
7137 if test "${with_dlsym+set}" = set; then
7138 withval="$with_dlsym"
7143 echo "$as_me:7143: result: $with_dlsym" >&5
7144 echo "${ECHO_T}$with_dlsym" >&6
7145 if test "x$with_dlsym" = xyes ; then
7148 echo "$as_me:7148: checking for dlsym" >&5
7149 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7150 if test "${ac_cv_func_dlsym+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 cat >"conftest.$ac_ext" <<_ACEOF
7154 #line 7154 "configure"
7155 #include "confdefs.h"
7156 #define dlsym autoconf_temporary
7157 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7172 /* The GNU C library defines stubs for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7176 #error found stub for dlsym
7184 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7185 if { (eval echo "$as_me:7185: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>&5
7188 echo "$as_me:7188: \$? = $ac_status" >&5
7189 (exit "$ac_status"); } &&
7190 { ac_try='test -s "conftest$ac_exeext"'
7191 { (eval echo "$as_me:7191: \"$ac_try\"") >&5
7194 echo "$as_me:7194: \$? = $ac_status" >&5
7195 (exit "$ac_status"); }; }; then
7196 ac_cv_func_dlsym=yes
7198 echo "$as_me: failed program was:" >&5
7199 cat "conftest.$ac_ext" >&5
7202 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7204 echo "$as_me:7204: result: $ac_cv_func_dlsym" >&5
7205 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7206 if test "$ac_cv_func_dlsym" = yes; then
7211 echo "$as_me:7211: checking for dlsym in -ldl" >&5
7212 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7213 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 ac_check_lib_save_LIBS=$LIBS
7218 cat >"conftest.$ac_ext" <<_ACEOF
7219 #line 7219 "configure"
7220 #include "confdefs.h"
7222 /* Override any gcc2 internal prototype to avoid an error. */
7226 /* We use char because int might match the return type of a gcc2
7227 builtin and then its argument prototype would still apply. */
7237 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7238 if { (eval echo "$as_me:7238: \"$ac_link\"") >&5
7239 (eval $ac_link) 2>&5
7241 echo "$as_me:7241: \$? = $ac_status" >&5
7242 (exit "$ac_status"); } &&
7243 { ac_try='test -s "conftest$ac_exeext"'
7244 { (eval echo "$as_me:7244: \"$ac_try\"") >&5
7247 echo "$as_me:7247: \$? = $ac_status" >&5
7248 (exit "$ac_status"); }; }; then
7249 ac_cv_lib_dl_dlsym=yes
7251 echo "$as_me: failed program was:" >&5
7252 cat "conftest.$ac_ext" >&5
7253 ac_cv_lib_dl_dlsym=no
7255 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7256 LIBS=$ac_check_lib_save_LIBS
7258 echo "$as_me:7258: result: $ac_cv_lib_dl_dlsym" >&5
7259 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7260 if test "$ac_cv_lib_dl_dlsym" = yes; then
7268 if test "$cf_have_dlsym" = yes ; then
7269 test "$cf_have_libdl" = yes && {
7273 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7275 for cf_add_1lib in $cf_add_0lib; do
7276 for cf_add_2lib in $cf_add_libs; do
7277 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7282 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7287 echo "$as_me:7287: checking whether able to link to dl*() functions" >&5
7288 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7289 cat >"conftest.$ac_ext" <<_ACEOF
7290 #line 7290 "configure"
7291 #include "confdefs.h"
7298 if ((obj = dlopen("filename", 0)) != 0) {
7299 if (dlsym(obj, "symbolname") == 0) {
7307 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7308 if { (eval echo "$as_me:7308: \"$ac_link\"") >&5
7309 (eval $ac_link) 2>&5
7311 echo "$as_me:7311: \$? = $ac_status" >&5
7312 (exit "$ac_status"); } &&
7313 { ac_try='test -s "conftest$ac_exeext"'
7314 { (eval echo "$as_me:7314: \"$ac_try\"") >&5
7317 echo "$as_me:7317: \$? = $ac_status" >&5
7318 (exit "$ac_status"); }; }; then
7320 cat >>confdefs.h <<\EOF
7321 #define HAVE_LIBDL 1
7325 echo "$as_me: failed program was:" >&5
7326 cat "conftest.$ac_ext" >&5
7328 { { echo "$as_me:7328: error: Cannot link test program for libdl" >&5
7329 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7330 { (exit 1); exit 1; }; }
7332 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7333 echo "$as_me:7333: result: ok" >&5
7334 echo "${ECHO_T}ok" >&6
7336 { { echo "$as_me:7336: error: Cannot find dlsym function" >&5
7337 echo "$as_me: error: Cannot find dlsym function" >&2;}
7338 { (exit 1); exit 1; }; }
7341 if test "x$with_gpm" != xyes ; then
7342 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7344 echo "${as_me:-configure}:7344: testing assuming soname for gpm is $with_gpm ..." 1>&5
7346 cf_cv_gpm_soname="$with_gpm"
7349 echo "$as_me:7349: checking for soname of gpm library" >&5
7350 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7351 if test "${cf_cv_gpm_soname+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 cf_cv_gpm_soname=unknown
7356 if test "$cross_compiling" != yes ; then
7357 cat >conftest.$ac_ext <<CF_EOF
7361 if (Gpm_Open(0,0)) Gpm_Close();
7362 ${cf_cv_main_return:-return}(0);
7365 cf_save_LIBS="$LIBS"
7370 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7372 for cf_add_1lib in $cf_add_0lib; do
7373 for cf_add_2lib in $cf_add_libs; do
7374 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7379 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7383 if { (eval echo "$as_me:7383: \"$ac_compile\"") >&5
7384 (eval $ac_compile) 2>&5
7386 echo "$as_me:7386: \$? = $ac_status" >&5
7387 (exit "$ac_status"); } ; then
7388 if { (eval echo "$as_me:7388: \"$ac_link\"") >&5
7389 (eval $ac_link) 2>&5
7391 echo "$as_me:7391: \$? = $ac_status" >&5
7392 (exit "$ac_status"); } ; then
7393 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7394 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7398 LIBS="$cf_save_LIBS"
7402 echo "$as_me:7402: result: $cf_cv_gpm_soname" >&5
7403 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7406 test "$cf_cv_gpm_soname" != "unknown" &&
7407 cat >>confdefs.h <<EOF
7408 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7411 SHLIB_LIST="-ldl $SHLIB_LIST"
7413 cf_add_libs="$PRIVATE_LIBS"
7416 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7418 for cf_add_1lib in $cf_add_0lib; do
7419 for cf_add_2lib in $cf_add_libs; do
7420 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7425 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7427 PRIVATE_LIBS="$cf_add_libs"
7430 SHLIB_LIST="-lgpm $SHLIB_LIST"
7432 cf_add_libs="$TEST_LIBS"
7435 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7437 for cf_add_1lib in $cf_add_0lib; do
7438 for cf_add_2lib in $cf_add_libs; do
7439 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7444 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7446 TEST_LIBS="$cf_add_libs"
7448 cf_add_libs="$PRIVATE_LIBS"
7451 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7453 for cf_add_1lib in $cf_add_0lib; do
7454 for cf_add_2lib in $cf_add_libs; do
7455 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7460 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7462 PRIVATE_LIBS="$cf_add_libs"
7466 cat >>confdefs.h <<\EOF
7467 #define HAVE_LIBGPM 1
7470 echo "$as_me:7470: checking for Gpm_Wgetch in -lgpm" >&5
7471 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7472 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 ac_check_lib_save_LIBS=$LIBS
7477 cat >"conftest.$ac_ext" <<_ACEOF
7478 #line 7478 "configure"
7479 #include "confdefs.h"
7481 /* Override any gcc2 internal prototype to avoid an error. */
7485 /* We use char because int might match the return type of a gcc2
7486 builtin and then its argument prototype would still apply. */
7496 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7497 if { (eval echo "$as_me:7497: \"$ac_link\"") >&5
7498 (eval $ac_link) 2>&5
7500 echo "$as_me:7500: \$? = $ac_status" >&5
7501 (exit "$ac_status"); } &&
7502 { ac_try='test -s "conftest$ac_exeext"'
7503 { (eval echo "$as_me:7503: \"$ac_try\"") >&5
7506 echo "$as_me:7506: \$? = $ac_status" >&5
7507 (exit "$ac_status"); }; }; then
7508 ac_cv_lib_gpm_Gpm_Wgetch=yes
7510 echo "$as_me: failed program was:" >&5
7511 cat "conftest.$ac_ext" >&5
7512 ac_cv_lib_gpm_Gpm_Wgetch=no
7514 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7515 LIBS=$ac_check_lib_save_LIBS
7517 echo "$as_me:7517: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7518 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7519 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7521 echo "$as_me:7521: checking if GPM is weakly bound to curses library" >&5
7522 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7523 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 cf_cv_check_gpm_wgetch=unknown
7528 if test "$cross_compiling" != yes ; then
7530 cat >conftest.$ac_ext <<CF_EOF
7535 ${cf_cv_main_return:-return}(0);
7539 cf_save_LIBS="$LIBS"
7540 # This only works if we can look at the symbol table. If a shared
7541 # library is stripped for install, we cannot use that. So we're forced
7542 # to rely on the static library, noting that some packagers may not
7544 LIBS="-static -lgpm -dynamic $LIBS"
7545 if { (eval echo "$as_me:7545: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
7548 echo "$as_me:7548: \$? = $ac_status" >&5
7549 (exit "$ac_status"); } ; then
7550 if { (eval echo "$as_me:7550: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7553 echo "$as_me:7553: \$? = $ac_status" >&5
7554 (exit "$ac_status"); } ; then
7555 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
7556 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7557 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7561 LIBS="$cf_save_LIBS"
7565 echo "$as_me:7565: result: $cf_cv_check_gpm_wgetch" >&5
7566 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7568 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7569 { echo "$as_me:7569: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7570 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7577 echo "$as_me:7577: checking if you want to use PCRE2 for regular-expressions" >&5
7578 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7580 # Check whether --with-pcre2 or --without-pcre2 was given.
7581 if test "${with_pcre2+set}" = set; then
7582 withval="$with_pcre2"
7585 test -z "$with_pcre2" && with_pcre2=no
7586 echo "$as_me:7586: result: $with_pcre2" >&5
7587 echo "${ECHO_T}$with_pcre2" >&6
7589 if test "x$with_pcre2" != xno ; then
7591 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
7594 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
7595 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
7597 echo "${as_me:-configure}:7597: testing found package $cf_with_pcre2 ..." 1>&5
7599 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
7600 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
7601 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7603 echo "${as_me:-configure}:7603: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7605 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7607 echo "${as_me:-configure}:7607: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7612 cf_new_extra_cppflags=
7614 for cf_add_cflags in $cf_pkgconfig_incs
7616 case "$cf_fix_cppflags" in
7618 case "$cf_add_cflags" in
7619 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7620 case "$cf_add_cflags" in
7622 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7624 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7625 && test -z "${cf_tst_cflags}" \
7626 && cf_fix_cppflags=yes
7628 if test "$cf_fix_cppflags" = yes ; then
7630 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7631 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7634 elif test "${cf_tst_cflags}" = "\"'" ; then
7636 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7637 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7647 case "$cf_add_cflags" in
7649 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7651 CPPFLAGS=`echo "$CPPFLAGS" | \
7652 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7653 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7658 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7659 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7666 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7667 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7674 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7675 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7677 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7679 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7680 && test -z "${cf_tst_cflags}" \
7681 && cf_fix_cppflags=no
7686 if test -n "$cf_new_cflags" ; then
7688 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7689 CFLAGS="${CFLAGS}$cf_new_cflags"
7693 if test -n "$cf_new_cppflags" ; then
7695 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7696 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7700 if test -n "$cf_new_extra_cppflags" ; then
7702 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7703 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7710 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7712 for cf_add_1lib in $cf_add_0lib; do
7713 for cf_add_2lib in $cf_add_libs; do
7714 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7719 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7723 cf_with_pcre2_ok=yes; break
7731 cf_with_pcre2_ok=yes || { { echo "$as_me:7731: error: Cannot find PCRE2 library" >&5
7732 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7733 { (exit 1); exit 1; }; }
7735 cat >>confdefs.h <<\EOF
7736 #define HAVE_LIB_PCRE2 1
7739 # if pkgconfig gave no results, look for the libraries directly
7741 (*pcre2-posix*|*pcreposix*)
7744 echo "$as_me:7744: checking for regcomp in -lpcre2-posix" >&5
7745 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7746 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lpcre2-posix $LIBS"
7751 cat >"conftest.$ac_ext" <<_ACEOF
7752 #line 7752 "configure"
7753 #include "confdefs.h"
7755 /* Override any gcc2 internal prototype to avoid an error. */
7759 /* We use char because int might match the return type of a gcc2
7760 builtin and then its argument prototype would still apply. */
7770 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7771 if { (eval echo "$as_me:7771: \"$ac_link\"") >&5
7772 (eval $ac_link) 2>&5
7774 echo "$as_me:7774: \$? = $ac_status" >&5
7775 (exit "$ac_status"); } &&
7776 { ac_try='test -s "conftest$ac_exeext"'
7777 { (eval echo "$as_me:7777: \"$ac_try\"") >&5
7780 echo "$as_me:7780: \$? = $ac_status" >&5
7781 (exit "$ac_status"); }; }; then
7782 ac_cv_lib_pcre2_posix_regcomp=yes
7784 echo "$as_me: failed program was:" >&5
7785 cat "conftest.$ac_ext" >&5
7786 ac_cv_lib_pcre2_posix_regcomp=no
7788 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7789 LIBS=$ac_check_lib_save_LIBS
7791 echo "$as_me:7791: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7792 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7793 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
7798 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7800 for cf_add_1lib in $cf_add_0lib; do
7801 for cf_add_2lib in $cf_add_libs; do
7802 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7807 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7812 echo "$as_me:7812: checking for regcomp in -lpcreposix" >&5
7813 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7814 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 ac_check_lib_save_LIBS=$LIBS
7818 LIBS="-lpcreposix $LIBS"
7819 cat >"conftest.$ac_ext" <<_ACEOF
7820 #line 7820 "configure"
7821 #include "confdefs.h"
7823 /* Override any gcc2 internal prototype to avoid an error. */
7827 /* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7838 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7839 if { (eval echo "$as_me:7839: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>&5
7842 echo "$as_me:7842: \$? = $ac_status" >&5
7843 (exit "$ac_status"); } &&
7844 { ac_try='test -s "conftest$ac_exeext"'
7845 { (eval echo "$as_me:7845: \"$ac_try\"") >&5
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit "$ac_status"); }; }; then
7850 ac_cv_lib_pcreposix_regcomp=yes
7852 echo "$as_me: failed program was:" >&5
7853 cat "conftest.$ac_ext" >&5
7854 ac_cv_lib_pcreposix_regcomp=no
7856 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7857 LIBS=$ac_check_lib_save_LIBS
7859 echo "$as_me:7859: result: $ac_cv_lib_pcreposix_regcomp" >&5
7860 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7861 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
7866 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7868 for cf_add_1lib in $cf_add_0lib; do
7869 for cf_add_2lib in $cf_add_libs; do
7870 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7875 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7880 { { echo "$as_me:7880: error: Cannot find PCRE2 POSIX library" >&5
7881 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7882 { (exit 1); exit 1; }; }
7890 # either way, check for the library header files
7892 for ac_header in pcre2posix.h pcreposix.h
7894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895 echo "$as_me:7895: checking for $ac_header" >&5
7896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 cat >"conftest.$ac_ext" <<_ACEOF
7901 #line 7901 "configure"
7902 #include "confdefs.h"
7903 #include <$ac_header>
7905 if { (eval echo "$as_me:7905: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7906 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7908 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7910 cat conftest.err >&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit "$ac_status"); } >/dev/null; then
7913 if test -s conftest.err; then
7914 ac_cpp_err=$ac_c_preproc_warn_flag
7921 if test -z "$ac_cpp_err"; then
7922 eval "$as_ac_Header=yes"
7924 echo "$as_me: failed program was:" >&5
7925 cat "conftest.$ac_ext" >&5
7926 eval "$as_ac_Header=no"
7928 rm -f conftest.err "conftest.$ac_ext"
7930 echo "$as_me:7930: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7931 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7932 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7933 cat >>confdefs.h <<EOF
7934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7940 for ac_func in PCRE2regcomp
7942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7943 echo "$as_me:7943: checking for $ac_func" >&5
7944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7945 if eval "test \"\${$as_ac_var+set}\" = set"; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 cat >"conftest.$ac_ext" <<_ACEOF
7949 #line 7949 "configure"
7950 #include "confdefs.h"
7951 #define $ac_func autoconf_temporary
7952 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7959 /* We use char because int might match the return type of a gcc2
7960 builtin and then its argument prototype would still apply. */
7961 char $ac_func (void);
7967 /* The GNU C library defines stubs for functions which it implements
7968 to always fail with ENOSYS. Some functions are actually named
7969 something starting with __ and the normal name is an alias. */
7970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7971 #error found stub for $ac_func
7979 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7980 if { (eval echo "$as_me:7980: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>&5
7983 echo "$as_me:7983: \$? = $ac_status" >&5
7984 (exit "$ac_status"); } &&
7985 { ac_try='test -s "conftest$ac_exeext"'
7986 { (eval echo "$as_me:7986: \"$ac_try\"") >&5
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 (exit "$ac_status"); }; }; then
7991 eval "$as_ac_var=yes"
7993 echo "$as_me: failed program was:" >&5
7994 cat "conftest.$ac_ext" >&5
7995 eval "$as_ac_var=no"
7997 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7999 echo "$as_me:7999: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8000 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8001 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8002 cat >>confdefs.h <<EOF
8003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8011 # not everyone has "test -c"
8012 if test -c /dev/sysmouse 2>/dev/null ; then
8013 echo "$as_me:8013: checking if you want to use sysmouse" >&5
8014 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8016 # Check whether --with-sysmouse or --without-sysmouse was given.
8017 if test "${with_sysmouse+set}" = set; then
8018 withval="$with_sysmouse"
8019 cf_with_sysmouse=$withval
8021 cf_with_sysmouse=maybe
8023 if test "$cf_with_sysmouse" != no ; then
8024 cat >"conftest.$ac_ext" <<_ACEOF
8025 #line 8025 "configure"
8026 #include "confdefs.h"
8028 #include <osreldate.h>
8029 #if (__FreeBSD_version >= 400017)
8030 #include <sys/consio.h>
8031 #include <sys/fbio.h>
8033 #include <machine/console.h>
8040 struct mouse_info the_mouse;
8041 ioctl(0, CONS_MOUSECTL, &the_mouse);
8047 rm -f "conftest.$ac_objext"
8048 if { (eval echo "$as_me:8048: \"$ac_compile\"") >&5
8049 (eval $ac_compile) 2>&5
8051 echo "$as_me:8051: \$? = $ac_status" >&5
8052 (exit "$ac_status"); } &&
8053 { ac_try='test -s "conftest.$ac_objext"'
8054 { (eval echo "$as_me:8054: \"$ac_try\"") >&5
8057 echo "$as_me:8057: \$? = $ac_status" >&5
8058 (exit "$ac_status"); }; }; then
8059 cf_with_sysmouse=yes
8061 echo "$as_me: failed program was:" >&5
8062 cat "conftest.$ac_ext" >&5
8065 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8067 echo "$as_me:8067: result: $cf_with_sysmouse" >&5
8068 echo "${ECHO_T}$cf_with_sysmouse" >&6
8069 test "$cf_with_sysmouse" = yes &&
8070 cat >>confdefs.h <<\EOF
8071 #define USE_SYSMOUSE 1
8076 # pretend that ncurses==ncursesw==ncursest
8077 echo "$as_me:8077: checking if you want to disable library suffixes" >&5
8078 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8080 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8081 if test "${enable_lib_suffixes+set}" = set; then
8082 enableval="$enable_lib_suffixes"
8083 test "$enableval" != no && enableval=yes
8084 if test "$enableval" != "yes" ; then
8085 disable_lib_suffixes=yes
8087 disable_lib_suffixes=no
8091 disable_lib_suffixes=no
8094 echo "$as_me:8094: result: $disable_lib_suffixes" >&5
8095 echo "${ECHO_T}$disable_lib_suffixes" >&6
8097 ### If we're building with rpath, try to link non-standard libs that way too.
8098 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8100 echo "$as_me:8100: checking if rpath-hack should be disabled" >&5
8101 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8103 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8104 if test "${enable_rpath_hack+set}" = set; then
8105 enableval="$enable_rpath_hack"
8106 test "$enableval" != no && enableval=yes
8107 if test "$enableval" != "yes" ; then
8108 enable_rpath_hack=no
8110 enable_rpath_hack=yes
8114 enable_rpath_hack=yes
8117 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8118 echo "$as_me:8118: result: $cf_disable_rpath_hack" >&5
8119 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8121 if test "$enable_rpath_hack" = yes ; then
8123 echo "$as_me:8123: checking for updated LDFLAGS" >&5
8124 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8125 if test -n "$LD_RPATH_OPT" ; then
8126 echo "$as_me:8126: result: maybe" >&5
8127 echo "${ECHO_T}maybe" >&6
8131 # Extract the first word of "$ac_prog", so it can be a program name with args.
8132 set dummy $ac_prog; ac_word=$2
8133 echo "$as_me:8133: checking for $ac_word" >&5
8134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8135 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 if test -n "$cf_ldd_prog"; then
8139 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8141 ac_save_IFS=$IFS; IFS=$ac_path_separator
8143 for ac_dir in $ac_dummy; do
8145 test -z "$ac_dir" && ac_dir=.
8146 $as_executable_p "$ac_dir/$ac_word" || continue
8147 ac_cv_prog_cf_ldd_prog="$ac_prog"
8148 echo "$as_me:8148: found $ac_dir/$ac_word" >&5
8154 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8155 if test -n "$cf_ldd_prog"; then
8156 echo "$as_me:8156: result: $cf_ldd_prog" >&5
8157 echo "${ECHO_T}$cf_ldd_prog" >&6
8159 echo "$as_me:8159: result: no" >&5
8160 echo "${ECHO_T}no" >&6
8163 test -n "$cf_ldd_prog" && break
8165 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8167 cf_rpath_list="/usr/lib /lib"
8168 if test "$cf_ldd_prog" != no
8172 cat >"conftest.$ac_ext" <<_ACEOF
8173 #line 8173 "configure"
8174 #include "confdefs.h"
8184 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8185 if { (eval echo "$as_me:8185: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>&5
8188 echo "$as_me:8188: \$? = $ac_status" >&5
8189 (exit "$ac_status"); } &&
8190 { ac_try='test -s "conftest$ac_exeext"'
8191 { (eval echo "$as_me:8191: \"$ac_try\"") >&5
8194 echo "$as_me:8194: \$? = $ac_status" >&5
8195 (exit "$ac_status"); }; }; then
8196 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8197 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8199 echo "$as_me: failed program was:" >&5
8200 cat "conftest.$ac_ext" >&5
8202 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8204 # If we passed the link-test, but get a "not found" on a given library,
8205 # this could be due to inept reconfiguration of gcc to make it only
8206 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8207 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8208 # /usr/local libraries.
8209 if test -n "$cf_rpath_oops"
8211 for cf_rpath_src in $cf_rpath_oops
8213 for cf_rpath_dir in \
8218 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8220 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8222 echo "${as_me:-configure}:8222: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8224 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8232 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8234 echo "${as_me:-configure}:8234: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8236 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8238 echo "${as_me:-configure}:8238: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8241 for cf_rpath_src in $LDFLAGS
8243 case "$cf_rpath_src" in
8246 # check if this refers to a directory which we will ignore
8248 if test -n "$cf_rpath_list"
8250 for cf_rpath_item in $cf_rpath_list
8252 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8260 if test "$cf_rpath_skip" = no
8262 # transform the option
8263 if test "$LD_RPATH_OPT" = "-R " ; then
8264 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8266 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8269 # if we have not already added this, add it now
8270 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8271 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8273 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8275 echo "${as_me:-configure}:8275: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8277 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8282 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8284 LDFLAGS=$cf_rpath_dst
8286 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8288 echo "${as_me:-configure}:8288: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8290 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8292 echo "${as_me:-configure}:8292: testing ...checking LIBS $LIBS ..." 1>&5
8295 for cf_rpath_src in $LIBS
8297 case "$cf_rpath_src" in
8300 # check if this refers to a directory which we will ignore
8302 if test -n "$cf_rpath_list"
8304 for cf_rpath_item in $cf_rpath_list
8306 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8314 if test "$cf_rpath_skip" = no
8316 # transform the option
8317 if test "$LD_RPATH_OPT" = "-R " ; then
8318 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8320 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8323 # if we have not already added this, add it now
8324 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8325 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8327 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8329 echo "${as_me:-configure}:8329: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8331 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8336 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8340 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8342 echo "${as_me:-configure}:8342: testing ...checked LIBS $LIBS ..." 1>&5
8344 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8346 echo "${as_me:-configure}:8346: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8349 echo "$as_me:8349: result: no" >&5
8350 echo "${ECHO_T}no" >&6
8357 ### Depending on the system, someone may use rpath to build ncurses but not
8358 # want users of the package to rely upon that feature. Give those people an
8359 # option to suppress that detail from EXTRA_LDFLAGS.
8360 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8361 if test -n "$EXTRA_PKG_LDFLAGS"
8363 echo "$as_me:8363: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8364 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8366 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8367 if test "${enable_pkg_ldflags+set}" = set; then
8368 enableval="$enable_pkg_ldflags"
8369 test "$enableval" != no && enableval=yes
8370 if test "$enableval" != "yes" ; then
8371 disable_pkg_ldflags=yes
8373 disable_pkg_ldflags=no
8377 disable_pkg_ldflags=no
8380 echo "$as_me:8380: result: $disable_pkg_ldflags" >&5
8381 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8382 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8385 ###############################################################################
8387 ### use option --with-extra-suffix to append suffix to headers and libraries
8388 echo "$as_me:8388: checking if you wish to append extra suffix to header/library paths" >&5
8389 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8392 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8393 if test "${with_extra_suffix+set}" = set; then
8394 withval="$with_extra_suffix"
8399 EXTRA_SUFFIX=$cf_cv_abi_version
8402 EXTRA_SUFFIX=$withval
8407 echo "$as_me:8407: result: $EXTRA_SUFFIX" >&5
8408 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8410 ### use option --disable-overwrite to leave out the link to -lcurses
8411 echo "$as_me:8411: checking if you wish to install ncurses overwriting curses" >&5
8412 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8414 # Check whether --enable-overwrite or --disable-overwrite was given.
8415 if test "${enable_overwrite+set}" = set; then
8416 enableval="$enable_overwrite"
8417 with_overwrite=$enableval
8419 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8421 echo "$as_me:8421: result: $with_overwrite" >&5
8422 echo "${ECHO_T}$with_overwrite" >&6
8424 echo "$as_me:8424: checking if external terminfo-database is used" >&5
8425 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8427 # Check whether --enable-database or --disable-database was given.
8428 if test "${enable_database+set}" = set; then
8429 enableval="$enable_database"
8430 use_database=$enableval
8434 echo "$as_me:8434: result: $use_database" >&5
8435 echo "${ECHO_T}$use_database" >&6
8439 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8442 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8446 NCURSES_USE_DATABASE=0
8447 if test "$use_database" != no ; then
8448 NCURSES_USE_DATABASE=1
8450 echo "$as_me:8450: checking which terminfo source-file will be installed" >&5
8451 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8453 # Check whether --with-database or --without-database was given.
8454 if test "${with_database+set}" = set; then
8455 withval="$with_database"
8456 TERMINFO_SRC=$withval
8458 echo "$as_me:8458: result: $TERMINFO_SRC" >&5
8459 echo "${ECHO_T}$TERMINFO_SRC" >&6
8461 echo "$as_me:8461: checking whether to use hashed database instead of directory/tree" >&5
8462 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8464 # Check whether --with-hashed-db or --without-hashed-db was given.
8465 if test "${with_hashed_db+set}" = set; then
8466 withval="$with_hashed_db"
8471 echo "$as_me:8471: result: $with_hashed_db" >&5
8472 echo "${ECHO_T}$with_hashed_db" >&6
8477 echo "$as_me:8477: checking for list of fallback descriptions" >&5
8478 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8480 # Check whether --with-fallbacks or --without-fallbacks was given.
8481 if test "${with_fallbacks+set}" = set; then
8482 withval="$with_fallbacks"
8483 with_fallback=$withval
8487 echo "$as_me:8487: result: $with_fallback" >&5
8488 echo "${ECHO_T}$with_fallback" >&6
8490 case ".$with_fallback" in
8495 { echo "$as_me:8495: WARNING: expected a list of terminal descriptions" >&5
8496 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8499 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8503 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8504 # tree for generating the terminal descriptions that will be compiled into the
8505 # library. If your toolchain is old, it may not handle current terminal
8506 # databases. Use configure-options to point to the tools which will be used,
8507 # rather than the first ones found on the $PATH.
8508 if test -n "$ac_tool_prefix"; then
8509 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8510 set dummy ${ac_tool_prefix}tic; ac_word=$2
8511 echo "$as_me:8511: checking for $ac_word" >&5
8512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8513 if test "${ac_cv_prog_TIC+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 if test -n "$TIC"; then
8517 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8519 ac_save_IFS=$IFS; IFS=$ac_path_separator
8521 for ac_dir in $ac_dummy; do
8523 test -z "$ac_dir" && ac_dir=.
8524 $as_executable_p "$ac_dir/$ac_word" || continue
8525 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8526 echo "$as_me:8526: found $ac_dir/$ac_word" >&5
8533 if test -n "$TIC"; then
8534 echo "$as_me:8534: result: $TIC" >&5
8535 echo "${ECHO_T}$TIC" >&6
8537 echo "$as_me:8537: result: no" >&5
8538 echo "${ECHO_T}no" >&6
8542 if test -z "$ac_cv_prog_TIC"; then
8544 # Extract the first word of "tic", so it can be a program name with args.
8545 set dummy tic; ac_word=$2
8546 echo "$as_me:8546: checking for $ac_word" >&5
8547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8548 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 if test -n "$ac_ct_TIC"; then
8552 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8554 ac_save_IFS=$IFS; IFS=$ac_path_separator
8556 for ac_dir in $ac_dummy; do
8558 test -z "$ac_dir" && ac_dir=.
8559 $as_executable_p "$ac_dir/$ac_word" || continue
8560 ac_cv_prog_ac_ct_TIC="tic"
8561 echo "$as_me:8561: found $ac_dir/$ac_word" >&5
8567 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8568 if test -n "$ac_ct_TIC"; then
8569 echo "$as_me:8569: result: $ac_ct_TIC" >&5
8570 echo "${ECHO_T}$ac_ct_TIC" >&6
8572 echo "$as_me:8572: result: no" >&5
8573 echo "${ECHO_T}no" >&6
8578 TIC="$ac_cv_prog_TIC"
8581 if test -n "$ac_tool_prefix"; then
8582 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8583 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8584 echo "$as_me:8584: checking for $ac_word" >&5
8585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8586 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 if test -n "$INFOCMP"; then
8590 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8592 ac_save_IFS=$IFS; IFS=$ac_path_separator
8594 for ac_dir in $ac_dummy; do
8596 test -z "$ac_dir" && ac_dir=.
8597 $as_executable_p "$ac_dir/$ac_word" || continue
8598 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8599 echo "$as_me:8599: found $ac_dir/$ac_word" >&5
8605 INFOCMP=$ac_cv_prog_INFOCMP
8606 if test -n "$INFOCMP"; then
8607 echo "$as_me:8607: result: $INFOCMP" >&5
8608 echo "${ECHO_T}$INFOCMP" >&6
8610 echo "$as_me:8610: result: no" >&5
8611 echo "${ECHO_T}no" >&6
8615 if test -z "$ac_cv_prog_INFOCMP"; then
8616 ac_ct_INFOCMP=$INFOCMP
8617 # Extract the first word of "infocmp", so it can be a program name with args.
8618 set dummy infocmp; ac_word=$2
8619 echo "$as_me:8619: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 if test -n "$ac_ct_INFOCMP"; then
8625 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8627 ac_save_IFS=$IFS; IFS=$ac_path_separator
8629 for ac_dir in $ac_dummy; do
8631 test -z "$ac_dir" && ac_dir=.
8632 $as_executable_p "$ac_dir/$ac_word" || continue
8633 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8634 echo "$as_me:8634: found $ac_dir/$ac_word" >&5
8640 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8641 if test -n "$ac_ct_INFOCMP"; then
8642 echo "$as_me:8642: result: $ac_ct_INFOCMP" >&5
8643 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8645 echo "$as_me:8645: result: no" >&5
8646 echo "${ECHO_T}no" >&6
8649 INFOCMP=$ac_ct_INFOCMP
8651 INFOCMP="$ac_cv_prog_INFOCMP"
8654 if test -n "$FALLBACK_LIST"
8657 # Check whether --with-tic-path or --without-tic-path was given.
8658 if test "${with_tic_path+set}" = set; then
8659 withval="$with_tic_path"
8660 echo "$as_me:8660: checking for tic program for fallbacks" >&5
8661 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8663 echo "$as_me:8663: result: $TIC" >&5
8664 echo "${ECHO_T}$TIC" >&6
8666 if test "x$prefix" != xNONE; then
8667 cf_path_syntax="$prefix"
8669 cf_path_syntax="$ac_default_prefix"
8677 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8679 (.\$\{*prefix\}*|.\$\{*dir\}*)
8683 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8688 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8691 { { echo "$as_me:8691: error: expected a pathname, not \"$TIC\"" >&5
8692 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8693 { (exit 1); exit 1; }; }
8699 test -z "$TIC" && TIC="tic"
8700 for ac_prog in $TIC tic
8702 # Extract the first word of "$ac_prog", so it can be a program name with args.
8703 set dummy $ac_prog; ac_word=$2
8704 echo "$as_me:8704: checking for $ac_word" >&5
8705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8706 if test "${ac_cv_path_TIC+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8714 ac_save_IFS=$IFS; IFS=$ac_path_separator
8715 ac_dummy="$PATH:/usr/local/ncurses/bin"
8716 for ac_dir in $ac_dummy; do
8718 test -z "$ac_dir" && ac_dir=.
8719 if $as_executable_p "$ac_dir/$ac_word"; then
8720 ac_cv_path_TIC="$ac_dir/$ac_word"
8721 echo "$as_me:8721: found $ac_dir/$ac_word" >&5
8731 if test -n "$TIC"; then
8732 echo "$as_me:8732: result: $TIC" >&5
8733 echo "${ECHO_T}$TIC" >&6
8735 echo "$as_me:8735: result: no" >&5
8736 echo "${ECHO_T}no" >&6
8739 test -n "$TIC" && break
8741 test -n "$TIC" || TIC="$TIC"
8745 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8746 for cf_temp in $ac_cv_path_TIC
8748 if test -z "$cf_path_prog" ; then
8749 if test "$with_full_paths" = yes ; then
8751 if test "x$prefix" != xNONE; then
8752 cf_path_syntax="$prefix"
8754 cf_path_syntax="$ac_default_prefix"
8762 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8764 (.\$\{*prefix\}*|.\$\{*dir\}*)
8765 eval cf_temp="$cf_temp"
8768 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8773 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8780 cf_path_prog="$cf_temp"
8782 cf_path_prog="`basename "$cf_temp"`"
8784 elif test -z "$cf_path_args" ; then
8785 cf_path_args="$cf_temp"
8787 cf_path_args="$cf_path_args $cf_temp"
8792 if test -n "$cf_path_prog" ; then
8794 echo "${as_me:-configure}:8794: testing defining path for ${cf_path_prog} ..." 1>&5
8796 cat >>confdefs.h <<EOF
8797 #define TIC_PATH "$cf_path_prog"
8800 test -n "$cf_path_args" &&
8801 cat >>confdefs.h <<EOF
8802 #define TIC_ARGS "$cf_path_args"
8809 { echo "$as_me:8809: WARNING: no tic program found for fallbacks" >&5
8810 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8815 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8816 if test "${with_infocmp_path+set}" = set; then
8817 withval="$with_infocmp_path"
8818 echo "$as_me:8818: checking for infocmp program for fallbacks" >&5
8819 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8821 echo "$as_me:8821: result: $INFOCMP" >&5
8822 echo "${ECHO_T}$INFOCMP" >&6
8824 if test "x$prefix" != xNONE; then
8825 cf_path_syntax="$prefix"
8827 cf_path_syntax="$ac_default_prefix"
8835 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8837 (.\$\{*prefix\}*|.\$\{*dir\}*)
8838 eval INFOCMP="$INFOCMP"
8841 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8846 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8849 { { echo "$as_me:8849: error: expected a pathname, not \"$INFOCMP\"" >&5
8850 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8851 { (exit 1); exit 1; }; }
8857 test -z "$INFOCMP" && INFOCMP="infocmp"
8858 for ac_prog in $INFOCMP infocmp
8860 # Extract the first word of "$ac_prog", so it can be a program name with args.
8861 set dummy $ac_prog; ac_word=$2
8862 echo "$as_me:8862: checking for $ac_word" >&5
8863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8864 if test "${ac_cv_path_INFOCMP+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8872 ac_save_IFS=$IFS; IFS=$ac_path_separator
8873 ac_dummy="$PATH:/usr/local/ncurses/bin"
8874 for ac_dir in $ac_dummy; do
8876 test -z "$ac_dir" && ac_dir=.
8877 if $as_executable_p "$ac_dir/$ac_word"; then
8878 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8879 echo "$as_me:8879: found $ac_dir/$ac_word" >&5
8887 INFOCMP=$ac_cv_path_INFOCMP
8889 if test -n "$INFOCMP"; then
8890 echo "$as_me:8890: result: $INFOCMP" >&5
8891 echo "${ECHO_T}$INFOCMP" >&6
8893 echo "$as_me:8893: result: no" >&5
8894 echo "${ECHO_T}no" >&6
8897 test -n "$INFOCMP" && break
8899 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8903 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8904 for cf_temp in $ac_cv_path_INFOCMP
8906 if test -z "$cf_path_prog" ; then
8907 if test "$with_full_paths" = yes ; then
8909 if test "x$prefix" != xNONE; then
8910 cf_path_syntax="$prefix"
8912 cf_path_syntax="$ac_default_prefix"
8920 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8922 (.\$\{*prefix\}*|.\$\{*dir\}*)
8923 eval cf_temp="$cf_temp"
8926 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8931 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8938 cf_path_prog="$cf_temp"
8940 cf_path_prog="`basename "$cf_temp"`"
8942 elif test -z "$cf_path_args" ; then
8943 cf_path_args="$cf_temp"
8945 cf_path_args="$cf_path_args $cf_temp"
8950 if test -n "$cf_path_prog" ; then
8952 echo "${as_me:-configure}:8952: testing defining path for ${cf_path_prog} ..." 1>&5
8954 cat >>confdefs.h <<EOF
8955 #define INFOCMP_PATH "$cf_path_prog"
8958 test -n "$cf_path_args" &&
8959 cat >>confdefs.h <<EOF
8960 #define INFOCMP_ARGS "$cf_path_args"
8965 if test -z "$INFOCMP"
8967 { echo "$as_me:8967: WARNING: no infocmp program found for fallbacks" >&5
8968 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8973 test -z "$TIC" && FALLBACK_LIST=
8974 test -z "$INFOCMP" && FALLBACK_LIST=
8975 if test -z "$FALLBACK_LIST"
8977 { echo "$as_me:8977: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8978 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8983 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8985 echo "$as_me:8985: checking if you want modern xterm or antique" >&5
8986 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8988 # Check whether --with-xterm-new or --without-xterm-new was given.
8989 if test "${with_xterm_new+set}" = set; then
8990 withval="$with_xterm_new"
8991 with_xterm_new=$withval
8995 case "$with_xterm_new" in
8996 (no) with_xterm_new=xterm-old;;
8997 (*) with_xterm_new=xterm-new;;
8999 echo "$as_me:8999: result: $with_xterm_new" >&5
9000 echo "${ECHO_T}$with_xterm_new" >&6
9001 WHICH_XTERM=$with_xterm_new
9003 echo "$as_me:9003: checking if xterm backspace sends BS or DEL" >&5
9004 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9006 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9007 if test "${with_xterm_kbs+set}" = set; then
9008 withval="$with_xterm_kbs"
9009 with_xterm_kbs=$withval
9013 case x$with_xterm_kbs in
9014 (xyes|xno|xBS|xbs|x8)
9021 with_xterm_kbs=$withval
9024 echo "$as_me:9024: result: $with_xterm_kbs" >&5
9025 echo "${ECHO_T}$with_xterm_kbs" >&6
9026 XTERM_KBS=$with_xterm_kbs
9029 if test "$use_database" = no ; then
9030 TERMINFO="${datadir}/terminfo"
9034 echo "$as_me:9034: checking for list of terminfo directories" >&5
9035 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9037 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9038 if test "${with_terminfo_dirs+set}" = set; then
9039 withval="$with_terminfo_dirs"
9042 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9044 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9046 for cf_src_path in $withval
9049 if test "x$prefix" != xNONE; then
9050 cf_path_syntax="$prefix"
9052 cf_path_syntax="$ac_default_prefix"
9055 case ".$cf_src_path" in
9060 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9062 (.\$\{*prefix\}*|.\$\{*dir\}*)
9063 eval cf_src_path="$cf_src_path"
9064 case ".$cf_src_path" in
9066 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9071 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9074 { { echo "$as_me:9074: error: expected a pathname, not \"$cf_src_path\"" >&5
9075 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9076 { (exit 1); exit 1; }; }
9080 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9081 cf_dst_path="${cf_dst_path}${cf_src_path}"
9085 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9086 # so we have to check/work around. We do prefer the result of "eval"...
9087 eval cf_dst_eval="$cf_dst_path"
9088 case "x$cf_dst_eval" in
9090 TERMINFO_DIRS=$cf_dst_path
9093 TERMINFO_DIRS="$cf_dst_eval"
9097 echo "$as_me:9097: result: $TERMINFO_DIRS" >&5
9098 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9099 test -n "$TERMINFO_DIRS" &&
9100 cat >>confdefs.h <<EOF
9101 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9104 case "x$TERMINFO" in
9106 { echo "$as_me:9106: WARNING: ignoring non-directory/file TERMINFO value" >&5
9107 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9112 echo "$as_me:9112: checking for default terminfo directory" >&5
9113 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9115 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9116 if test "${with_default_terminfo_dir+set}" = set; then
9117 withval="$with_default_terminfo_dir"
9120 withval="${TERMINFO:-${datadir}/terminfo}"
9121 fi; if test -n "${datadir}/terminfo" ; then
9123 if test "x$prefix" != xNONE; then
9124 cf_path_syntax="$prefix"
9126 cf_path_syntax="$ac_default_prefix"
9134 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9136 (.\$\{*prefix\}*|.\$\{*dir\}*)
9137 eval withval="$withval"
9140 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9145 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9148 { { echo "$as_me:9148: error: expected a pathname, not \"$withval\"" >&5
9149 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9150 { (exit 1); exit 1; }; }
9155 eval TERMINFO="$withval"
9157 echo "$as_me:9157: result: $TERMINFO" >&5
9158 echo "${ECHO_T}$TERMINFO" >&6
9160 cat >>confdefs.h <<EOF
9161 #define TERMINFO "$TERMINFO"
9166 ### use option --disable-big-core to make tic run on small machines
9167 ### We need 4Mb, check if we can allocate 50% more than that.
9168 echo "$as_me:9168: checking if big-core option selected" >&5
9169 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9171 # Check whether --enable-big-core or --disable-big-core was given.
9172 if test "${enable_big_core+set}" = set; then
9173 enableval="$enable_big_core"
9174 with_big_core=$enableval
9176 if test "$cross_compiling" = yes; then
9179 cat >"conftest.$ac_ext" <<_ACEOF
9180 #line 9180 "configure"
9181 #include "confdefs.h"
9186 unsigned long n = 6000000L;
9187 char *s = malloc(n);
9190 ${cf_cv_main_return:-return}(s == 0);
9193 rm -f "conftest$ac_exeext"
9194 if { (eval echo "$as_me:9194: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>&5
9197 echo "$as_me:9197: \$? = $ac_status" >&5
9198 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9199 { (eval echo "$as_me:9199: \"$ac_try\"") >&5
9202 echo "$as_me:9202: \$? = $ac_status" >&5
9203 (exit "$ac_status"); }; }; then
9206 echo "$as_me: program exited with status $ac_status" >&5
9207 echo "$as_me: failed program was:" >&5
9208 cat "conftest.$ac_ext" >&5
9211 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9214 echo "$as_me:9214: result: $with_big_core" >&5
9215 echo "${ECHO_T}$with_big_core" >&6
9216 test "x$with_big_core" = "xyes" &&
9217 cat >>confdefs.h <<\EOF
9218 #define HAVE_BIG_CORE 1
9221 ### ISO C only guarantees 512-char strings, we have tables which load faster
9222 ### when constructed using "big" strings. More than the C compiler, the awk
9223 ### program is a limit on most vendor UNIX systems. Check that we can build.
9224 echo "$as_me:9224: checking if big-strings option selected" >&5
9225 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9227 # Check whether --enable-big-strings or --disable-big-strings was given.
9228 if test "${enable_big_strings+set}" = set; then
9229 enableval="$enable_big_strings"
9230 with_big_strings=$enableval
9235 eval with_big_strings=no
9238 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9239 | $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
9240 eval with_big_strings=yes
9242 eval with_big_strings=no
9248 echo "$as_me:9248: result: $with_big_strings" >&5
9249 echo "${ECHO_T}$with_big_strings" >&6
9252 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9254 ### use option --enable-termcap to compile in the termcap fallback support
9255 echo "$as_me:9255: checking if you want termcap-fallback support" >&5
9256 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9258 # Check whether --enable-termcap or --disable-termcap was given.
9259 if test "${enable_termcap+set}" = set; then
9260 enableval="$enable_termcap"
9261 with_termcap=$enableval
9265 echo "$as_me:9265: result: $with_termcap" >&5
9266 echo "${ECHO_T}$with_termcap" >&6
9268 NCURSES_USE_TERMCAP=0
9269 if test "x$with_termcap" != "xyes" ; then
9270 if test "$use_database" = no ; then
9271 if test -z "$with_fallback" ; then
9272 { { echo "$as_me:9272: error: You have disabled the database w/o specifying fallbacks" >&5
9273 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9274 { (exit 1); exit 1; }; }
9278 cat >>confdefs.h <<\EOF
9279 #define PURE_TERMINFO 1
9284 if test "$with_ticlib" != no ; then
9285 { { echo "$as_me:9285: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9286 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9287 { (exit 1); exit 1; }; }
9290 NCURSES_USE_TERMCAP=1
9291 echo "$as_me:9291: checking for list of termcap files" >&5
9292 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9294 # Check whether --with-termpath or --without-termpath was given.
9295 if test "${with_termpath+set}" = set; then
9296 withval="$with_termpath"
9299 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9301 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9303 for cf_src_path in $withval
9306 if test "x$prefix" != xNONE; then
9307 cf_path_syntax="$prefix"
9309 cf_path_syntax="$ac_default_prefix"
9312 case ".$cf_src_path" in
9317 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9319 (.\$\{*prefix\}*|.\$\{*dir\}*)
9320 eval cf_src_path="$cf_src_path"
9321 case ".$cf_src_path" in
9323 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9328 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9331 { { echo "$as_me:9331: error: expected a pathname, not \"$cf_src_path\"" >&5
9332 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9333 { (exit 1); exit 1; }; }
9337 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9338 cf_dst_path="${cf_dst_path}${cf_src_path}"
9342 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9343 # so we have to check/work around. We do prefer the result of "eval"...
9344 eval cf_dst_eval="$cf_dst_path"
9345 case "x$cf_dst_eval" in
9347 TERMPATH=$cf_dst_path
9350 TERMPATH="$cf_dst_eval"
9354 echo "$as_me:9354: result: $TERMPATH" >&5
9355 echo "${ECHO_T}$TERMPATH" >&6
9356 test -n "$TERMPATH" &&
9357 cat >>confdefs.h <<EOF
9358 #define TERMPATH "$TERMPATH"
9361 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9362 echo "$as_me:9362: checking if fast termcap-loader is needed" >&5
9363 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9365 # Check whether --enable-getcap or --disable-getcap was given.
9366 if test "${enable_getcap+set}" = set; then
9367 enableval="$enable_getcap"
9368 with_getcap=$enableval
9372 echo "$as_me:9372: result: $with_getcap" >&5
9373 echo "${ECHO_T}$with_getcap" >&6
9374 test "x$with_getcap" = "xyes" &&
9375 cat >>confdefs.h <<\EOF
9376 #define USE_GETCAP 1
9379 echo "$as_me:9379: checking if translated termcaps will be cached in ~/.terminfo" >&5
9380 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9382 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9383 if test "${enable_getcap_cache+set}" = set; then
9384 enableval="$enable_getcap_cache"
9385 with_getcap_cache=$enableval
9387 with_getcap_cache=no
9389 echo "$as_me:9389: result: $with_getcap_cache" >&5
9390 echo "${ECHO_T}$with_getcap_cache" >&6
9391 test "x$with_getcap_cache" = "xyes" &&
9392 cat >>confdefs.h <<\EOF
9393 #define USE_GETCAP_CACHE 1
9398 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9399 echo "$as_me:9399: checking if ~/.terminfo is wanted" >&5
9400 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9402 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9403 if test "${enable_home_terminfo+set}" = set; then
9404 enableval="$enable_home_terminfo"
9405 with_home_terminfo=$enableval
9407 with_home_terminfo=yes
9409 echo "$as_me:9409: result: $with_home_terminfo" >&5
9410 echo "${ECHO_T}$with_home_terminfo" >&6
9411 test "x$with_home_terminfo" = "xyes" &&
9412 cat >>confdefs.h <<\EOF
9413 #define USE_HOME_TERMINFO 1
9416 echo "$as_me:9416: checking if you want to permit root to use ncurses environment variables" >&5
9417 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9419 # Check whether --enable-root-environ or --disable-root-environ was given.
9420 if test "${enable_root_environ+set}" = set; then
9421 enableval="$enable_root_environ"
9422 with_root_environ=$enableval
9424 with_root_environ=yes
9426 echo "$as_me:9426: result: $with_root_environ" >&5
9427 echo "${ECHO_T}$with_root_environ" >&6
9428 test "x$with_root_environ" = xyes &&
9429 cat >>confdefs.h <<\EOF
9430 #define USE_ROOT_ENVIRON 1
9433 echo "$as_me:9433: checking if you want to permit setuid programs to access all files" >&5
9434 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9436 # Check whether --enable-root-environ or --disable-root-environ was given.
9437 if test "${enable_root_environ+set}" = set; then
9438 enableval="$enable_root_environ"
9439 with_root_access=$enableval
9441 with_root_access=yes
9443 echo "$as_me:9443: result: $with_root_access" >&5
9444 echo "${ECHO_T}$with_root_access" >&6
9445 test "x$with_root_access" = xyes &&
9446 cat >>confdefs.h <<\EOF
9447 #define USE_ROOT_ACCESS 1
9450 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9451 ### to reduce storage requirements for the terminfo database.
9457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9458 echo "$as_me:9458: checking for $ac_header" >&5
9459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 cat >"conftest.$ac_ext" <<_ACEOF
9464 #line 9464 "configure"
9465 #include "confdefs.h"
9466 #include <$ac_header>
9468 if { (eval echo "$as_me:9468: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9469 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9471 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:9474: \$? = $ac_status" >&5
9475 (exit "$ac_status"); } >/dev/null; then
9476 if test -s conftest.err; then
9477 ac_cpp_err=$ac_c_preproc_warn_flag
9484 if test -z "$ac_cpp_err"; then
9485 eval "$as_ac_Header=yes"
9487 echo "$as_me: failed program was:" >&5
9488 cat "conftest.$ac_ext" >&5
9489 eval "$as_ac_Header=no"
9491 rm -f conftest.err "conftest.$ac_ext"
9493 echo "$as_me:9493: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9494 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9495 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9496 cat >>confdefs.h <<EOF
9497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9508 echo "$as_me:9508: checking for $ac_func" >&5
9509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9510 if eval "test \"\${$as_ac_var+set}\" = set"; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 cat >"conftest.$ac_ext" <<_ACEOF
9514 #line 9514 "configure"
9515 #include "confdefs.h"
9516 #define $ac_func autoconf_temporary
9517 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9524 /* We use char because int might match the return type of a gcc2
9525 builtin and then its argument prototype would still apply. */
9526 char $ac_func (void);
9532 /* The GNU C library defines stubs for functions which it implements
9533 to always fail with ENOSYS. Some functions are actually named
9534 something starting with __ and the normal name is an alias. */
9535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9536 #error found stub for $ac_func
9544 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9545 if { (eval echo "$as_me:9545: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>&5
9548 echo "$as_me:9548: \$? = $ac_status" >&5
9549 (exit "$ac_status"); } &&
9550 { ac_try='test -s "conftest$ac_exeext"'
9551 { (eval echo "$as_me:9551: \"$ac_try\"") >&5
9554 echo "$as_me:9554: \$? = $ac_status" >&5
9555 (exit "$ac_status"); }; }; then
9556 eval "$as_ac_var=yes"
9558 echo "$as_me: failed program was:" >&5
9559 cat "conftest.$ac_ext" >&5
9560 eval "$as_ac_var=no"
9562 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9564 echo "$as_me:9564: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9565 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9566 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9567 cat >>confdefs.h <<EOF
9568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9574 if test "$cross_compiling" = yes ; then
9580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9581 echo "$as_me:9581: checking for $ac_func" >&5
9582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9583 if eval "test \"\${$as_ac_var+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 cat >"conftest.$ac_ext" <<_ACEOF
9587 #line 9587 "configure"
9588 #include "confdefs.h"
9589 #define $ac_func autoconf_temporary
9590 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9599 char $ac_func (void);
9605 /* The GNU C library defines stubs for functions which it implements
9606 to always fail with ENOSYS. Some functions are actually named
9607 something starting with __ and the normal name is an alias. */
9608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9609 #error found stub for $ac_func
9617 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9618 if { (eval echo "$as_me:9618: \"$ac_link\"") >&5
9619 (eval $ac_link) 2>&5
9621 echo "$as_me:9621: \$? = $ac_status" >&5
9622 (exit "$ac_status"); } &&
9623 { ac_try='test -s "conftest$ac_exeext"'
9624 { (eval echo "$as_me:9624: \"$ac_try\"") >&5
9627 echo "$as_me:9627: \$? = $ac_status" >&5
9628 (exit "$ac_status"); }; }; then
9629 eval "$as_ac_var=yes"
9631 echo "$as_me: failed program was:" >&5
9632 cat "conftest.$ac_ext" >&5
9633 eval "$as_ac_var=no"
9635 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9637 echo "$as_me:9637: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9638 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9639 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9640 cat >>confdefs.h <<EOF
9641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9648 echo "$as_me:9648: checking if link/symlink functions work" >&5
9649 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9650 if test "${cf_cv_link_funcs+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 for cf_func in link symlink ; do
9656 if test "$cross_compiling" = yes; then
9658 eval 'ac_cv_func_'$cf_func'=error'
9660 cat >"conftest.$ac_ext" <<_ACEOF
9661 #line 9661 "configure"
9662 #include "confdefs.h"
9665 #include <sys/types.h>
9666 #include <sys/stat.h>
9667 #ifdef HAVE_UNISTD_H
9673 char *src = "conftest.tmp";
9674 char *dst = "conftest.chk";
9675 struct stat src_sb, dst_sb;
9676 FILE *fp = fopen(src, "w");
9677 if (fp == 0) { fail = 3; } else {
9678 fclose(fp); stat(src, &src_sb);
9679 if ($cf_func(src, dst) < 0) {
9681 } else if (stat(dst, &dst_sb) < 0) {
9684 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
9685 if (diff < 0) diff = -diff;
9686 if (diff > 2) fail = 3;
9690 unlink(dst); unlink(src);
9692 remove(dst); remove(src);
9694 ${cf_cv_main_return:-return} (fail);
9698 rm -f "conftest$ac_exeext"
9699 if { (eval echo "$as_me:9699: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>&5
9702 echo "$as_me:9702: \$? = $ac_status" >&5
9703 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9704 { (eval echo "$as_me:9704: \"$ac_try\"") >&5
9707 echo "$as_me:9707: \$? = $ac_status" >&5
9708 (exit "$ac_status"); }; }; then
9710 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9711 eval 'ac_cv_func_'$cf_func'=yes'
9713 echo "$as_me: program exited with status $ac_status" >&5
9714 echo "$as_me: failed program was:" >&5
9715 cat "conftest.$ac_ext" >&5
9717 eval 'ac_cv_func_'$cf_func'=no'
9719 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9722 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9725 echo "$as_me:9725: result: $cf_cv_link_funcs" >&5
9726 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9727 test "$ac_cv_func_link" = yes &&
9728 cat >>confdefs.h <<\EOF
9732 test "$ac_cv_func_symlink" = yes &&
9733 cat >>confdefs.h <<\EOF
9734 #define HAVE_SYMLINK 1
9742 # soft links (symbolic links) are useful for some systems where hard links do
9743 # not work, or to make it simpler to copy terminfo trees around.
9744 if test "x$ac_cv_func_symlink" = xyes ; then
9745 echo "$as_me:9745: checking if tic should use symbolic links" >&5
9746 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9748 # Check whether --enable-symlinks or --disable-symlinks was given.
9749 if test "${enable_symlinks+set}" = set; then
9750 enableval="$enable_symlinks"
9751 with_symlinks=$enableval
9755 echo "$as_me:9755: result: $with_symlinks" >&5
9756 echo "${ECHO_T}$with_symlinks" >&6
9759 # If we have hard links and did not choose to use soft links instead, there is
9760 # no reason to make this choice optional - use the hard links.
9761 if test "$with_symlinks" = no ; then
9762 echo "$as_me:9762: checking if tic should use hard links" >&5
9763 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9764 if test "x$ac_cv_func_link" = xyes ; then
9769 echo "$as_me:9769: result: $with_links" >&5
9770 echo "${ECHO_T}$with_links" >&6
9773 test "x$with_links" = xyes &&
9774 cat >>confdefs.h <<\EOF
9778 test "x$with_symlinks" = xyes &&
9779 cat >>confdefs.h <<\EOF
9780 #define USE_SYMLINKS 1
9783 ### use option --enable-broken-linker to force on use of broken-linker support
9785 echo "$as_me:9785: checking if you want broken-linker support code" >&5
9786 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9788 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9789 if test "${enable_broken_linker+set}" = set; then
9790 enableval="$enable_broken_linker"
9791 with_broken_linker=$enableval
9793 with_broken_linker=no
9795 echo "$as_me:9795: result: $with_broken_linker" >&5
9796 echo "${ECHO_T}$with_broken_linker" >&6
9798 : "${BROKEN_LINKER:=0}"
9799 if test "x$with_broken_linker" = xyes ; then
9801 cat >>confdefs.h <<\EOF
9802 #define BROKEN_LINKER 1
9808 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9809 echo "$as_me:9809: checking if tputs should process BSD-style prefix padding" >&5
9810 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9812 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9813 if test "${enable_bsdpad+set}" = set; then
9814 enableval="$enable_bsdpad"
9815 with_bsdpad=$enableval
9819 echo "$as_me:9819: result: $with_bsdpad" >&5
9820 echo "${ECHO_T}$with_bsdpad" >&6
9821 test "x$with_bsdpad" = xyes &&
9822 cat >>confdefs.h <<\EOF
9826 ### use option --enable-widec to turn on use of wide-character support
9835 # Check to define _XOPEN_SOURCE "automatically"
9836 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9838 echo "$as_me:9838: checking if the POSIX test-macros are already defined" >&5
9839 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9840 if test "${cf_cv_posix_visible+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >"conftest.$ac_ext" <<_ACEOF
9845 #line 9845 "configure"
9846 #include "confdefs.h"
9852 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9853 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9854 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9855 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9856 #error conflicting symbols found
9863 rm -f "conftest.$ac_objext"
9864 if { (eval echo "$as_me:9864: \"$ac_compile\"") >&5
9865 (eval $ac_compile) 2>&5
9867 echo "$as_me:9867: \$? = $ac_status" >&5
9868 (exit "$ac_status"); } &&
9869 { ac_try='test -s "conftest.$ac_objext"'
9870 { (eval echo "$as_me:9870: \"$ac_try\"") >&5
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 (exit "$ac_status"); }; }; then
9875 cf_cv_posix_visible=no
9877 echo "$as_me: failed program was:" >&5
9878 cat "conftest.$ac_ext" >&5
9879 cf_cv_posix_visible=yes
9881 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9884 echo "$as_me:9884: result: $cf_cv_posix_visible" >&5
9885 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9887 if test "$cf_cv_posix_visible" = no; then
9890 cf_POSIX_C_SOURCE=199506L
9895 cf_xopen_source="-D_ALL_SOURCE"
9901 cf_xopen_source="-D_APPLE_C_SOURCE"
9904 cf_xopen_source="-D_DARWIN_C_SOURCE"
9907 (freebsd*|dragonfly*|midnightbsd*)
9908 # 5.x headers associate
9909 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9910 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9911 cf_POSIX_C_SOURCE=200112L
9913 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9916 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9919 cf_xopen_source="-D_HPUX_SOURCE"
9922 cf_xopen_source="-D_SGI_SOURCE"
9925 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9927 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9929 echo "$as_me:9929: checking if this is the GNU C library" >&5
9930 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9931 if test "${cf_cv_gnu_library+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 cat >"conftest.$ac_ext" <<_ACEOF
9936 #line 9936 "configure"
9937 #include "confdefs.h"
9938 #include <sys/types.h>
9943 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9945 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9948 # error not GNU C library
9954 rm -f "conftest.$ac_objext"
9955 if { (eval echo "$as_me:9955: \"$ac_compile\"") >&5
9956 (eval $ac_compile) 2>&5
9958 echo "$as_me:9958: \$? = $ac_status" >&5
9959 (exit "$ac_status"); } &&
9960 { ac_try='test -s "conftest.$ac_objext"'
9961 { (eval echo "$as_me:9961: \"$ac_try\"") >&5
9964 echo "$as_me:9964: \$? = $ac_status" >&5
9965 (exit "$ac_status"); }; }; then
9966 cf_cv_gnu_library=yes
9968 echo "$as_me: failed program was:" >&5
9969 cat "conftest.$ac_ext" >&5
9970 cf_cv_gnu_library=no
9972 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9975 echo "$as_me:9975: result: $cf_cv_gnu_library" >&5
9976 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9978 if test x$cf_cv_gnu_library = xyes; then
9980 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9981 # was changed to help a little. newlib incorporated the change about 4
9983 echo "$as_me:9983: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9984 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9985 if test "${cf_cv_gnu_library_219+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9992 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9994 cat >"conftest.$ac_ext" <<_ACEOF
9995 #line 9995 "configure"
9996 #include "confdefs.h"
9997 #include <sys/types.h>
10002 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10004 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10007 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10013 rm -f "conftest.$ac_objext"
10014 if { (eval echo "$as_me:10014: \"$ac_compile\"") >&5
10015 (eval $ac_compile) 2>&5
10017 echo "$as_me:10017: \$? = $ac_status" >&5
10018 (exit "$ac_status"); } &&
10019 { ac_try='test -s "conftest.$ac_objext"'
10020 { (eval echo "$as_me:10020: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:10023: \$? = $ac_status" >&5
10024 (exit "$ac_status"); }; }; then
10025 cf_cv_gnu_library_219=yes
10027 echo "$as_me: failed program was:" >&5
10028 cat "conftest.$ac_ext" >&5
10029 cf_cv_gnu_library_219=no
10031 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10032 CPPFLAGS="$cf_save"
10035 echo "$as_me:10035: result: $cf_cv_gnu_library_219" >&5
10036 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10038 if test "x$cf_cv_gnu_library_219" = xyes; then
10039 cf_save="$CPPFLAGS"
10040 echo "$as_me:10040: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10041 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10042 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 cf_new_extra_cppflags=
10051 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10053 case "$cf_fix_cppflags" in
10055 case "$cf_add_cflags" in
10056 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10057 case "$cf_add_cflags" in
10059 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10061 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10062 && test -z "${cf_tst_cflags}" \
10063 && cf_fix_cppflags=yes
10065 if test "$cf_fix_cppflags" = yes ; then
10067 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10068 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10071 elif test "${cf_tst_cflags}" = "\"'" ; then
10073 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10074 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10080 case "$CPPFLAGS" in
10084 case "$cf_add_cflags" in
10086 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10088 CPPFLAGS=`echo "$CPPFLAGS" | \
10089 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10090 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10095 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10096 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10103 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10104 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10111 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10112 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10114 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10116 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10117 && test -z "${cf_tst_cflags}" \
10118 && cf_fix_cppflags=no
10123 if test -n "$cf_new_cflags" ; then
10125 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10126 CFLAGS="${CFLAGS}$cf_new_cflags"
10130 if test -n "$cf_new_cppflags" ; then
10132 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10133 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10137 if test -n "$cf_new_extra_cppflags" ; then
10139 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10140 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10144 cat >"conftest.$ac_ext" <<_ACEOF
10145 #line 10145 "configure"
10146 #include "confdefs.h"
10148 #include <limits.h>
10149 #include <sys/types.h>
10155 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10158 # error GNU C library is too old
10164 rm -f "conftest.$ac_objext"
10165 if { (eval echo "$as_me:10165: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>&5
10168 echo "$as_me:10168: \$? = $ac_status" >&5
10169 (exit "$ac_status"); } &&
10170 { ac_try='test -s "conftest.$ac_objext"'
10171 { (eval echo "$as_me:10171: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:10174: \$? = $ac_status" >&5
10175 (exit "$ac_status"); }; }; then
10176 cf_cv_gnu_dftsrc_219=yes
10178 echo "$as_me: failed program was:" >&5
10179 cat "conftest.$ac_ext" >&5
10180 cf_cv_gnu_dftsrc_219=no
10182 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10185 echo "$as_me:10185: result: $cf_cv_gnu_dftsrc_219" >&5
10186 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10187 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10189 cf_cv_gnu_dftsrc_219=maybe
10192 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10194 echo "$as_me:10194: checking if we must define _GNU_SOURCE" >&5
10195 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10196 if test "${cf_cv_gnu_source+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 cat >"conftest.$ac_ext" <<_ACEOF
10201 #line 10201 "configure"
10202 #include "confdefs.h"
10203 #include <sys/types.h>
10208 #ifndef _XOPEN_SOURCE
10209 #error expected _XOPEN_SOURCE to be defined
10215 rm -f "conftest.$ac_objext"
10216 if { (eval echo "$as_me:10216: \"$ac_compile\"") >&5
10217 (eval $ac_compile) 2>&5
10219 echo "$as_me:10219: \$? = $ac_status" >&5
10220 (exit "$ac_status"); } &&
10221 { ac_try='test -s "conftest.$ac_objext"'
10222 { (eval echo "$as_me:10222: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10225 echo "$as_me:10225: \$? = $ac_status" >&5
10226 (exit "$ac_status"); }; }; then
10227 cf_cv_gnu_source=no
10229 echo "$as_me: failed program was:" >&5
10230 cat "conftest.$ac_ext" >&5
10231 cf_save="$CPPFLAGS"
10236 cf_new_extra_cppflags=
10238 for cf_add_cflags in -D_GNU_SOURCE
10240 case "$cf_fix_cppflags" in
10242 case "$cf_add_cflags" in
10243 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10244 case "$cf_add_cflags" in
10246 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10248 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10249 && test -z "${cf_tst_cflags}" \
10250 && cf_fix_cppflags=yes
10252 if test "$cf_fix_cppflags" = yes ; then
10254 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10255 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10258 elif test "${cf_tst_cflags}" = "\"'" ; then
10260 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10261 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10267 case "$CPPFLAGS" in
10271 case "$cf_add_cflags" in
10273 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10275 CPPFLAGS=`echo "$CPPFLAGS" | \
10276 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10277 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10282 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10283 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10290 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10291 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10298 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10299 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10301 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10303 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10304 && test -z "${cf_tst_cflags}" \
10305 && cf_fix_cppflags=no
10310 if test -n "$cf_new_cflags" ; then
10312 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10313 CFLAGS="${CFLAGS}$cf_new_cflags"
10317 if test -n "$cf_new_cppflags" ; then
10319 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10320 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10324 if test -n "$cf_new_extra_cppflags" ; then
10326 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10327 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10331 cat >"conftest.$ac_ext" <<_ACEOF
10332 #line 10332 "configure"
10333 #include "confdefs.h"
10334 #include <sys/types.h>
10339 #ifdef _XOPEN_SOURCE
10340 #error expected _XOPEN_SOURCE to be undefined
10346 rm -f "conftest.$ac_objext"
10347 if { (eval echo "$as_me:10347: \"$ac_compile\"") >&5
10348 (eval $ac_compile) 2>&5
10350 echo "$as_me:10350: \$? = $ac_status" >&5
10351 (exit "$ac_status"); } &&
10352 { ac_try='test -s "conftest.$ac_objext"'
10353 { (eval echo "$as_me:10353: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:10356: \$? = $ac_status" >&5
10357 (exit "$ac_status"); }; }; then
10358 cf_cv_gnu_source=no
10360 echo "$as_me: failed program was:" >&5
10361 cat "conftest.$ac_ext" >&5
10362 cf_cv_gnu_source=yes
10364 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10365 CPPFLAGS="$cf_save"
10368 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10371 echo "$as_me:10371: result: $cf_cv_gnu_source" >&5
10372 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10374 if test "$cf_cv_gnu_source" = yes
10376 echo "$as_me:10376: checking if we should also define _DEFAULT_SOURCE" >&5
10377 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10378 if test "${cf_cv_default_source+set}" = set; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10383 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10385 cat >"conftest.$ac_ext" <<_ACEOF
10386 #line 10386 "configure"
10387 #include "confdefs.h"
10388 #include <sys/types.h>
10393 #ifdef _DEFAULT_SOURCE
10394 #error expected _DEFAULT_SOURCE to be undefined
10400 rm -f "conftest.$ac_objext"
10401 if { (eval echo "$as_me:10401: \"$ac_compile\"") >&5
10402 (eval $ac_compile) 2>&5
10404 echo "$as_me:10404: \$? = $ac_status" >&5
10405 (exit "$ac_status"); } &&
10406 { ac_try='test -s "conftest.$ac_objext"'
10407 { (eval echo "$as_me:10407: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:10410: \$? = $ac_status" >&5
10411 (exit "$ac_status"); }; }; then
10412 cf_cv_default_source=no
10414 echo "$as_me: failed program was:" >&5
10415 cat "conftest.$ac_ext" >&5
10416 cf_cv_default_source=yes
10418 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10421 echo "$as_me:10421: result: $cf_cv_default_source" >&5
10422 echo "${ECHO_T}$cf_cv_default_source" >&6
10423 if test "$cf_cv_default_source" = yes
10426 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10427 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10437 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10440 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10443 if test "$cf_cv_posix_visible" = no; then
10445 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10447 cf_save_CFLAGS="$CFLAGS"
10448 cf_save_CPPFLAGS="$CPPFLAGS"
10450 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10451 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10452 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10454 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10455 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10456 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10458 echo "$as_me:10458: checking if we should define _POSIX_C_SOURCE" >&5
10459 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10460 if test "${cf_cv_posix_c_source+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 echo "${as_me:-configure}:10464: testing if the symbol is already defined go no further ..." 1>&5
10466 cat >"conftest.$ac_ext" <<_ACEOF
10467 #line 10467 "configure"
10468 #include "confdefs.h"
10469 #include <sys/types.h>
10474 #ifndef _POSIX_C_SOURCE
10481 rm -f "conftest.$ac_objext"
10482 if { (eval echo "$as_me:10482: \"$ac_compile\"") >&5
10483 (eval $ac_compile) 2>&5
10485 echo "$as_me:10485: \$? = $ac_status" >&5
10486 (exit "$ac_status"); } &&
10487 { ac_try='test -s "conftest.$ac_objext"'
10488 { (eval echo "$as_me:10488: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10491 echo "$as_me:10491: \$? = $ac_status" >&5
10492 (exit "$ac_status"); }; }; then
10493 cf_cv_posix_c_source=no
10495 echo "$as_me: failed program was:" >&5
10496 cat "conftest.$ac_ext" >&5
10497 cf_want_posix_source=no
10498 case .$cf_POSIX_C_SOURCE in
10500 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10503 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10504 cf_want_posix_source=yes
10507 cf_want_posix_source=yes
10510 if test "$cf_want_posix_source" = yes ; then
10511 cat >"conftest.$ac_ext" <<_ACEOF
10512 #line 10512 "configure"
10513 #include "confdefs.h"
10514 #include <sys/types.h>
10519 #ifdef _POSIX_SOURCE
10526 rm -f "conftest.$ac_objext"
10527 if { (eval echo "$as_me:10527: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>&5
10530 echo "$as_me:10530: \$? = $ac_status" >&5
10531 (exit "$ac_status"); } &&
10532 { ac_try='test -s "conftest.$ac_objext"'
10533 { (eval echo "$as_me:10533: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10536 echo "$as_me:10536: \$? = $ac_status" >&5
10537 (exit "$ac_status"); }; }; then
10540 echo "$as_me: failed program was:" >&5
10541 cat "conftest.$ac_ext" >&5
10542 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10544 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10547 echo "${as_me:-configure}:10547: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10549 CFLAGS="$cf_trim_CFLAGS"
10550 CPPFLAGS="$cf_trim_CPPFLAGS"
10552 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10553 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10555 echo "${as_me:-configure}:10555: testing if the second compile does not leave our definition intact error ..." 1>&5
10557 cat >"conftest.$ac_ext" <<_ACEOF
10558 #line 10558 "configure"
10559 #include "confdefs.h"
10560 #include <sys/types.h>
10565 #ifndef _POSIX_C_SOURCE
10572 rm -f "conftest.$ac_objext"
10573 if { (eval echo "$as_me:10573: \"$ac_compile\"") >&5
10574 (eval $ac_compile) 2>&5
10576 echo "$as_me:10576: \$? = $ac_status" >&5
10577 (exit "$ac_status"); } &&
10578 { ac_try='test -s "conftest.$ac_objext"'
10579 { (eval echo "$as_me:10579: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:10582: \$? = $ac_status" >&5
10583 (exit "$ac_status"); }; }; then
10586 echo "$as_me: failed program was:" >&5
10587 cat "conftest.$ac_ext" >&5
10588 cf_cv_posix_c_source=no
10590 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10591 CFLAGS="$cf_save_CFLAGS"
10592 CPPFLAGS="$cf_save_CPPFLAGS"
10595 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10598 echo "$as_me:10598: result: $cf_cv_posix_c_source" >&5
10599 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10601 if test "$cf_cv_posix_c_source" != no ; then
10602 CFLAGS="$cf_trim_CFLAGS"
10603 CPPFLAGS="$cf_trim_CPPFLAGS"
10608 cf_new_extra_cppflags=
10610 for cf_add_cflags in $cf_cv_posix_c_source
10612 case "$cf_fix_cppflags" in
10614 case "$cf_add_cflags" in
10615 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10616 case "$cf_add_cflags" in
10618 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10620 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10621 && test -z "${cf_tst_cflags}" \
10622 && cf_fix_cppflags=yes
10624 if test "$cf_fix_cppflags" = yes ; then
10626 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10627 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10630 elif test "${cf_tst_cflags}" = "\"'" ; then
10632 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10633 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10639 case "$CPPFLAGS" in
10643 case "$cf_add_cflags" in
10645 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10647 CPPFLAGS=`echo "$CPPFLAGS" | \
10648 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10649 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10654 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10655 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10662 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10663 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10670 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10671 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10673 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10675 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10676 && test -z "${cf_tst_cflags}" \
10677 && cf_fix_cppflags=no
10682 if test -n "$cf_new_cflags" ; then
10684 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10685 CFLAGS="${CFLAGS}$cf_new_cflags"
10689 if test -n "$cf_new_cppflags" ; then
10691 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10692 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10696 if test -n "$cf_new_extra_cppflags" ; then
10698 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10699 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10705 fi # cf_cv_posix_visible
10709 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10712 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
10713 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
10714 # Abusing the conformance level is a workaround.
10715 { echo "$as_me:10715: WARNING: this system does not provide usable locale support" >&5
10716 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
10717 cf_xopen_source="-D_BSD_SOURCE"
10718 cf_XOPEN_SOURCE=700
10721 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10722 cf_xopen_source="-D_BSD_SOURCE"
10723 cf_XOPEN_SOURCE=600
10726 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10729 cf_xopen_source="-D_OSF_SOURCE"
10732 cf_xopen_source="-D_QNX_SOURCE"
10735 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10738 cf_xopen_source="-D__EXTENSIONS__"
10739 cf_cv_xopen_source=broken
10741 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10747 echo "$as_me:10747: checking if we should define _XOPEN_SOURCE" >&5
10748 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10749 if test "${cf_cv_xopen_source+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >"conftest.$ac_ext" <<_ACEOF
10754 #line 10754 "configure"
10755 #include "confdefs.h"
10757 #include <stdlib.h>
10758 #include <string.h>
10759 #include <sys/types.h>
10765 #ifndef _XOPEN_SOURCE
10772 rm -f "conftest.$ac_objext"
10773 if { (eval echo "$as_me:10773: \"$ac_compile\"") >&5
10774 (eval $ac_compile) 2>&5
10776 echo "$as_me:10776: \$? = $ac_status" >&5
10777 (exit "$ac_status"); } &&
10778 { ac_try='test -s "conftest.$ac_objext"'
10779 { (eval echo "$as_me:10779: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:10782: \$? = $ac_status" >&5
10783 (exit "$ac_status"); }; }; then
10784 cf_cv_xopen_source=no
10786 echo "$as_me: failed program was:" >&5
10787 cat "conftest.$ac_ext" >&5
10788 cf_save="$CPPFLAGS"
10790 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10791 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10793 cat >"conftest.$ac_ext" <<_ACEOF
10794 #line 10794 "configure"
10795 #include "confdefs.h"
10797 #include <stdlib.h>
10798 #include <string.h>
10799 #include <sys/types.h>
10805 #ifdef _XOPEN_SOURCE
10812 rm -f "conftest.$ac_objext"
10813 if { (eval echo "$as_me:10813: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>&5
10816 echo "$as_me:10816: \$? = $ac_status" >&5
10817 (exit "$ac_status"); } &&
10818 { ac_try='test -s "conftest.$ac_objext"'
10819 { (eval echo "$as_me:10819: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:10822: \$? = $ac_status" >&5
10823 (exit "$ac_status"); }; }; then
10824 cf_cv_xopen_source=no
10826 echo "$as_me: failed program was:" >&5
10827 cat "conftest.$ac_ext" >&5
10828 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10830 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10831 CPPFLAGS="$cf_save"
10834 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10837 echo "$as_me:10837: result: $cf_cv_xopen_source" >&5
10838 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10840 if test "$cf_cv_xopen_source" != no ; then
10842 CFLAGS=`echo "$CFLAGS" | \
10843 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10844 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10846 CPPFLAGS=`echo "$CPPFLAGS" | \
10847 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10848 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10850 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10852 for cf_add_cflags in $cf_temp_xopen_source
10854 case "x$cf_add_cflags" in
10857 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10860 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10861 test "$CFLAGS" != "$cf_old_cflag" || break
10863 CFLAGS="$cf_old_cflag"
10866 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10869 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10870 test "$CPPFLAGS" != "$cf_old_cflag" || break
10872 CPPFLAGS="$cf_old_cflag"
10881 cf_new_extra_cppflags=
10883 for cf_add_cflags in $cf_add_cflags
10885 case "$cf_fix_cppflags" in
10887 case "$cf_add_cflags" in
10888 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10889 case "$cf_add_cflags" in
10891 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10893 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10894 && test -z "${cf_tst_cflags}" \
10895 && cf_fix_cppflags=yes
10897 if test "$cf_fix_cppflags" = yes ; then
10899 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10900 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10903 elif test "${cf_tst_cflags}" = "\"'" ; then
10905 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10906 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10912 case "$CPPFLAGS" in
10916 case "$cf_add_cflags" in
10918 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10920 CPPFLAGS=`echo "$CPPFLAGS" | \
10921 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10922 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10927 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10928 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10935 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10936 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10943 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10944 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10946 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10948 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10949 && test -z "${cf_tst_cflags}" \
10950 && cf_fix_cppflags=no
10955 if test -n "$cf_new_cflags" ; then
10957 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10958 CFLAGS="${CFLAGS}$cf_new_cflags"
10962 if test -n "$cf_new_cppflags" ; then
10964 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10965 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10969 if test -n "$cf_new_extra_cppflags" ; then
10971 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10972 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10980 if test "$cf_cv_posix_visible" = no; then
10982 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10984 cf_save_CFLAGS="$CFLAGS"
10985 cf_save_CPPFLAGS="$CPPFLAGS"
10987 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10988 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10989 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10991 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10992 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10993 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10995 echo "$as_me:10995: checking if we should define _POSIX_C_SOURCE" >&5
10996 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10997 if test "${cf_cv_posix_c_source+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 echo "${as_me:-configure}:11001: testing if the symbol is already defined go no further ..." 1>&5
11003 cat >"conftest.$ac_ext" <<_ACEOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11006 #include <sys/types.h>
11011 #ifndef _POSIX_C_SOURCE
11018 rm -f "conftest.$ac_objext"
11019 if { (eval echo "$as_me:11019: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>&5
11022 echo "$as_me:11022: \$? = $ac_status" >&5
11023 (exit "$ac_status"); } &&
11024 { ac_try='test -s "conftest.$ac_objext"'
11025 { (eval echo "$as_me:11025: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 echo "$as_me:11028: \$? = $ac_status" >&5
11029 (exit "$ac_status"); }; }; then
11030 cf_cv_posix_c_source=no
11032 echo "$as_me: failed program was:" >&5
11033 cat "conftest.$ac_ext" >&5
11034 cf_want_posix_source=no
11035 case .$cf_POSIX_C_SOURCE in
11037 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11040 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11041 cf_want_posix_source=yes
11044 cf_want_posix_source=yes
11047 if test "$cf_want_posix_source" = yes ; then
11048 cat >"conftest.$ac_ext" <<_ACEOF
11049 #line 11049 "configure"
11050 #include "confdefs.h"
11051 #include <sys/types.h>
11056 #ifdef _POSIX_SOURCE
11063 rm -f "conftest.$ac_objext"
11064 if { (eval echo "$as_me:11064: \"$ac_compile\"") >&5
11065 (eval $ac_compile) 2>&5
11067 echo "$as_me:11067: \$? = $ac_status" >&5
11068 (exit "$ac_status"); } &&
11069 { ac_try='test -s "conftest.$ac_objext"'
11070 { (eval echo "$as_me:11070: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:11073: \$? = $ac_status" >&5
11074 (exit "$ac_status"); }; }; then
11077 echo "$as_me: failed program was:" >&5
11078 cat "conftest.$ac_ext" >&5
11079 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11081 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11084 echo "${as_me:-configure}:11084: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11086 CFLAGS="$cf_trim_CFLAGS"
11087 CPPFLAGS="$cf_trim_CPPFLAGS"
11089 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11090 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11092 echo "${as_me:-configure}:11092: testing if the second compile does not leave our definition intact error ..." 1>&5
11094 cat >"conftest.$ac_ext" <<_ACEOF
11095 #line 11095 "configure"
11096 #include "confdefs.h"
11097 #include <sys/types.h>
11102 #ifndef _POSIX_C_SOURCE
11109 rm -f "conftest.$ac_objext"
11110 if { (eval echo "$as_me:11110: \"$ac_compile\"") >&5
11111 (eval $ac_compile) 2>&5
11113 echo "$as_me:11113: \$? = $ac_status" >&5
11114 (exit "$ac_status"); } &&
11115 { ac_try='test -s "conftest.$ac_objext"'
11116 { (eval echo "$as_me:11116: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:11119: \$? = $ac_status" >&5
11120 (exit "$ac_status"); }; }; then
11123 echo "$as_me: failed program was:" >&5
11124 cat "conftest.$ac_ext" >&5
11125 cf_cv_posix_c_source=no
11127 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11128 CFLAGS="$cf_save_CFLAGS"
11129 CPPFLAGS="$cf_save_CPPFLAGS"
11132 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11135 echo "$as_me:11135: result: $cf_cv_posix_c_source" >&5
11136 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11138 if test "$cf_cv_posix_c_source" != no ; then
11139 CFLAGS="$cf_trim_CFLAGS"
11140 CPPFLAGS="$cf_trim_CPPFLAGS"
11145 cf_new_extra_cppflags=
11147 for cf_add_cflags in $cf_cv_posix_c_source
11149 case "$cf_fix_cppflags" in
11151 case "$cf_add_cflags" in
11152 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11153 case "$cf_add_cflags" in
11155 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11157 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11158 && test -z "${cf_tst_cflags}" \
11159 && cf_fix_cppflags=yes
11161 if test "$cf_fix_cppflags" = yes ; then
11163 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11164 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11167 elif test "${cf_tst_cflags}" = "\"'" ; then
11169 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11170 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11176 case "$CPPFLAGS" in
11180 case "$cf_add_cflags" in
11182 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11184 CPPFLAGS=`echo "$CPPFLAGS" | \
11185 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11186 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11191 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11192 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11199 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11200 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11207 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11208 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11210 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11212 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11213 && test -z "${cf_tst_cflags}" \
11214 && cf_fix_cppflags=no
11219 if test -n "$cf_new_cflags" ; then
11221 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11222 CFLAGS="${CFLAGS}$cf_new_cflags"
11226 if test -n "$cf_new_cppflags" ; then
11228 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11229 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11233 if test -n "$cf_new_extra_cppflags" ; then
11235 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11236 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11242 fi # cf_cv_posix_visible
11247 if test -n "$cf_xopen_source" ; then
11249 for cf_add_cflags in $cf_xopen_source
11251 case "x$cf_add_cflags" in
11254 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11257 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11258 test "$CFLAGS" != "$cf_old_cflag" || break
11259 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11261 echo "${as_me:-configure}:11261: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11263 CFLAGS="$cf_old_cflag"
11266 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11269 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11270 test "$CPPFLAGS" != "$cf_old_cflag" || break
11271 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11273 echo "${as_me:-configure}:11273: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11275 CPPFLAGS="$cf_old_cflag"
11284 cf_new_extra_cppflags=
11286 for cf_add_cflags in $cf_add_cflags
11288 case "$cf_fix_cppflags" in
11290 case "$cf_add_cflags" in
11291 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11292 case "$cf_add_cflags" in
11294 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11296 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11297 && test -z "${cf_tst_cflags}" \
11298 && cf_fix_cppflags=yes
11300 if test "$cf_fix_cppflags" = yes ; then
11302 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11303 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11306 elif test "${cf_tst_cflags}" = "\"'" ; then
11308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11309 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11315 case "$CPPFLAGS" in
11319 case "$cf_add_cflags" in
11321 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11323 CPPFLAGS=`echo "$CPPFLAGS" | \
11324 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11325 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11330 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11331 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11338 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11339 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11346 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11347 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11349 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11351 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11352 && test -z "${cf_tst_cflags}" \
11353 && cf_fix_cppflags=no
11358 if test -n "$cf_new_cflags" ; then
11359 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11361 echo "${as_me:-configure}:11361: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11363 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11364 CFLAGS="${CFLAGS}$cf_new_cflags"
11368 if test -n "$cf_new_cppflags" ; then
11369 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11371 echo "${as_me:-configure}:11371: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11373 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11374 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11378 if test -n "$cf_new_extra_cppflags" ; then
11379 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11381 echo "${as_me:-configure}:11381: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11383 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11384 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11392 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11393 echo "$as_me:11393: checking if _XOPEN_SOURCE really is set" >&5
11394 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11395 cat >"conftest.$ac_ext" <<_ACEOF
11396 #line 11396 "configure"
11397 #include "confdefs.h"
11398 #include <stdlib.h>
11403 #ifndef _XOPEN_SOURCE
11410 rm -f "conftest.$ac_objext"
11411 if { (eval echo "$as_me:11411: \"$ac_compile\"") >&5
11412 (eval $ac_compile) 2>&5
11414 echo "$as_me:11414: \$? = $ac_status" >&5
11415 (exit "$ac_status"); } &&
11416 { ac_try='test -s "conftest.$ac_objext"'
11417 { (eval echo "$as_me:11417: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:11420: \$? = $ac_status" >&5
11421 (exit "$ac_status"); }; }; then
11422 cf_XOPEN_SOURCE_set=yes
11424 echo "$as_me: failed program was:" >&5
11425 cat "conftest.$ac_ext" >&5
11426 cf_XOPEN_SOURCE_set=no
11428 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11429 echo "$as_me:11429: result: $cf_XOPEN_SOURCE_set" >&5
11430 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11431 if test "$cf_XOPEN_SOURCE_set" = yes
11433 cat >"conftest.$ac_ext" <<_ACEOF
11434 #line 11434 "configure"
11435 #include "confdefs.h"
11436 #include <stdlib.h>
11441 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11448 rm -f "conftest.$ac_objext"
11449 if { (eval echo "$as_me:11449: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>&5
11452 echo "$as_me:11452: \$? = $ac_status" >&5
11453 (exit "$ac_status"); } &&
11454 { ac_try='test -s "conftest.$ac_objext"'
11455 { (eval echo "$as_me:11455: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11458 echo "$as_me:11458: \$? = $ac_status" >&5
11459 (exit "$ac_status"); }; }; then
11460 cf_XOPEN_SOURCE_set_ok=yes
11462 echo "$as_me: failed program was:" >&5
11463 cat "conftest.$ac_ext" >&5
11464 cf_XOPEN_SOURCE_set_ok=no
11466 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11467 if test "$cf_XOPEN_SOURCE_set_ok" = no
11469 { echo "$as_me:11469: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11470 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11474 echo "$as_me:11474: checking if we should define _XOPEN_SOURCE" >&5
11475 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11476 if test "${cf_cv_xopen_source+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 cat >"conftest.$ac_ext" <<_ACEOF
11481 #line 11481 "configure"
11482 #include "confdefs.h"
11484 #include <stdlib.h>
11485 #include <string.h>
11486 #include <sys/types.h>
11492 #ifndef _XOPEN_SOURCE
11499 rm -f "conftest.$ac_objext"
11500 if { (eval echo "$as_me:11500: \"$ac_compile\"") >&5
11501 (eval $ac_compile) 2>&5
11503 echo "$as_me:11503: \$? = $ac_status" >&5
11504 (exit "$ac_status"); } &&
11505 { ac_try='test -s "conftest.$ac_objext"'
11506 { (eval echo "$as_me:11506: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:11509: \$? = $ac_status" >&5
11510 (exit "$ac_status"); }; }; then
11511 cf_cv_xopen_source=no
11513 echo "$as_me: failed program was:" >&5
11514 cat "conftest.$ac_ext" >&5
11515 cf_save="$CPPFLAGS"
11517 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11518 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11520 cat >"conftest.$ac_ext" <<_ACEOF
11521 #line 11521 "configure"
11522 #include "confdefs.h"
11524 #include <stdlib.h>
11525 #include <string.h>
11526 #include <sys/types.h>
11532 #ifdef _XOPEN_SOURCE
11539 rm -f "conftest.$ac_objext"
11540 if { (eval echo "$as_me:11540: \"$ac_compile\"") >&5
11541 (eval $ac_compile) 2>&5
11543 echo "$as_me:11543: \$? = $ac_status" >&5
11544 (exit "$ac_status"); } &&
11545 { ac_try='test -s "conftest.$ac_objext"'
11546 { (eval echo "$as_me:11546: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11549 echo "$as_me:11549: \$? = $ac_status" >&5
11550 (exit "$ac_status"); }; }; then
11551 cf_cv_xopen_source=no
11553 echo "$as_me: failed program was:" >&5
11554 cat "conftest.$ac_ext" >&5
11555 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11557 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11558 CPPFLAGS="$cf_save"
11561 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11564 echo "$as_me:11564: result: $cf_cv_xopen_source" >&5
11565 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11567 if test "$cf_cv_xopen_source" != no ; then
11569 CFLAGS=`echo "$CFLAGS" | \
11570 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11571 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11573 CPPFLAGS=`echo "$CPPFLAGS" | \
11574 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11575 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11577 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11579 for cf_add_cflags in $cf_temp_xopen_source
11581 case "x$cf_add_cflags" in
11584 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11587 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11588 test "$CFLAGS" != "$cf_old_cflag" || break
11590 CFLAGS="$cf_old_cflag"
11593 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11596 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11597 test "$CPPFLAGS" != "$cf_old_cflag" || break
11599 CPPFLAGS="$cf_old_cflag"
11608 cf_new_extra_cppflags=
11610 for cf_add_cflags in $cf_add_cflags
11612 case "$cf_fix_cppflags" in
11614 case "$cf_add_cflags" in
11615 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11616 case "$cf_add_cflags" in
11618 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11620 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11621 && test -z "${cf_tst_cflags}" \
11622 && cf_fix_cppflags=yes
11624 if test "$cf_fix_cppflags" = yes ; then
11626 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11627 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11630 elif test "${cf_tst_cflags}" = "\"'" ; then
11632 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11633 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11639 case "$CPPFLAGS" in
11643 case "$cf_add_cflags" in
11645 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11647 CPPFLAGS=`echo "$CPPFLAGS" | \
11648 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11649 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11654 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11655 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11662 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11663 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11670 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11671 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11673 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11675 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11676 && test -z "${cf_tst_cflags}" \
11677 && cf_fix_cppflags=no
11682 if test -n "$cf_new_cflags" ; then
11684 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11685 CFLAGS="${CFLAGS}$cf_new_cflags"
11689 if test -n "$cf_new_cppflags" ; then
11691 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11692 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11696 if test -n "$cf_new_extra_cppflags" ; then
11698 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11699 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11709 fi # cf_cv_posix_visible
11711 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11713 # Work around breakage on OS X
11715 echo "$as_me:11715: checking if SIGWINCH is defined" >&5
11716 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11717 if test "${cf_cv_define_sigwinch+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 cat >"conftest.$ac_ext" <<_ACEOF
11722 #line 11722 "configure"
11723 #include "confdefs.h"
11725 #include <sys/types.h>
11726 #include <sys/signal.h>
11731 int x = SIGWINCH; (void)x
11736 rm -f "conftest.$ac_objext"
11737 if { (eval echo "$as_me:11737: \"$ac_compile\"") >&5
11738 (eval $ac_compile) 2>&5
11740 echo "$as_me:11740: \$? = $ac_status" >&5
11741 (exit "$ac_status"); } &&
11742 { ac_try='test -s "conftest.$ac_objext"'
11743 { (eval echo "$as_me:11743: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11746 echo "$as_me:11746: \$? = $ac_status" >&5
11747 (exit "$ac_status"); }; }; then
11748 cf_cv_define_sigwinch=yes
11750 echo "$as_me: failed program was:" >&5
11751 cat "conftest.$ac_ext" >&5
11752 cat >"conftest.$ac_ext" <<_ACEOF
11753 #line 11753 "configure"
11754 #include "confdefs.h"
11756 #undef _XOPEN_SOURCE
11757 #undef _POSIX_SOURCE
11758 #undef _POSIX_C_SOURCE
11759 #include <sys/types.h>
11760 #include <sys/signal.h>
11765 int x = SIGWINCH; (void)x
11770 rm -f "conftest.$ac_objext"
11771 if { (eval echo "$as_me:11771: \"$ac_compile\"") >&5
11772 (eval $ac_compile) 2>&5
11774 echo "$as_me:11774: \$? = $ac_status" >&5
11775 (exit "$ac_status"); } &&
11776 { ac_try='test -s "conftest.$ac_objext"'
11777 { (eval echo "$as_me:11777: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:11780: \$? = $ac_status" >&5
11781 (exit "$ac_status"); }; }; then
11782 cf_cv_define_sigwinch=maybe
11784 echo "$as_me: failed program was:" >&5
11785 cat "conftest.$ac_ext" >&5
11786 cf_cv_define_sigwinch=no
11788 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11791 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11794 echo "$as_me:11794: result: $cf_cv_define_sigwinch" >&5
11795 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11797 if test "$cf_cv_define_sigwinch" = maybe ; then
11798 echo "$as_me:11798: checking for actual SIGWINCH definition" >&5
11799 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11800 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 cf_cv_fixup_sigwinch=unknown
11806 while test "$cf_sigwinch" != 1
11808 cat >"conftest.$ac_ext" <<_ACEOF
11809 #line 11809 "configure"
11810 #include "confdefs.h"
11812 #undef _XOPEN_SOURCE
11813 #undef _POSIX_SOURCE
11814 #undef _POSIX_C_SOURCE
11815 #include <sys/types.h>
11816 #include <sys/signal.h>
11822 #if SIGWINCH != $cf_sigwinch
11825 int x = SIGWINCH; (void)x
11830 rm -f "conftest.$ac_objext"
11831 if { (eval echo "$as_me:11831: \"$ac_compile\"") >&5
11832 (eval $ac_compile) 2>&5
11834 echo "$as_me:11834: \$? = $ac_status" >&5
11835 (exit "$ac_status"); } &&
11836 { ac_try='test -s "conftest.$ac_objext"'
11837 { (eval echo "$as_me:11837: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:11840: \$? = $ac_status" >&5
11841 (exit "$ac_status"); }; }; then
11842 cf_cv_fixup_sigwinch=$cf_sigwinch
11845 echo "$as_me: failed program was:" >&5
11846 cat "conftest.$ac_ext" >&5
11848 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11850 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
11854 echo "$as_me:11854: result: $cf_cv_fixup_sigwinch" >&5
11855 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11857 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11858 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11862 # Checks for CODESET support.
11864 echo "$as_me:11864: checking for nl_langinfo and CODESET" >&5
11865 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11866 if test "${am_cv_langinfo_codeset+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 cat >"conftest.$ac_ext" <<_ACEOF
11870 #line 11870 "configure"
11871 #include "confdefs.h"
11872 #include <langinfo.h>
11876 char* cs = nl_langinfo(CODESET); (void)cs
11881 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11882 if { (eval echo "$as_me:11882: \"$ac_link\"") >&5
11883 (eval $ac_link) 2>&5
11885 echo "$as_me:11885: \$? = $ac_status" >&5
11886 (exit "$ac_status"); } &&
11887 { ac_try='test -s "conftest$ac_exeext"'
11888 { (eval echo "$as_me:11888: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:11891: \$? = $ac_status" >&5
11892 (exit "$ac_status"); }; }; then
11893 am_cv_langinfo_codeset=yes
11895 echo "$as_me: failed program was:" >&5
11896 cat "conftest.$ac_ext" >&5
11897 am_cv_langinfo_codeset=no
11899 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11902 echo "$as_me:11902: result: $am_cv_langinfo_codeset" >&5
11903 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11904 if test "$am_cv_langinfo_codeset" = yes; then
11906 cat >>confdefs.h <<\EOF
11907 #define HAVE_LANGINFO_CODESET 1
11912 # use these variables to work around a defect in gcc's fixincludes.
11913 NCURSES_OK_WCHAR_T=
11916 echo "$as_me:11916: checking if you want wide-character code" >&5
11917 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11919 # Check whether --enable-widec or --disable-widec was given.
11920 if test "${enable_widec+set}" = set; then
11921 enableval="$enable_widec"
11922 with_widec=$enableval
11926 echo "$as_me:11926: result: $with_widec" >&5
11927 echo "${ECHO_T}$with_widec" >&6
11929 NCURSES_WCWIDTH_GRAPHICS=1
11931 if test "x$with_widec" = xyes ; then
11932 if test "x$disable_lib_suffixes" = xno ; then
11933 LIB_SUFFIX="w${LIB_SUFFIX}"
11936 cat >>confdefs.h <<\EOF
11937 #define USE_WIDEC_SUPPORT 1
11940 cat >>confdefs.h <<\EOF
11941 #define NCURSES_WIDECHAR 1
11949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11950 echo "$as_me:11950: checking for $ac_header" >&5
11951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 cat >"conftest.$ac_ext" <<_ACEOF
11956 #line 11956 "configure"
11957 #include "confdefs.h"
11958 #include <$ac_header>
11960 if { (eval echo "$as_me:11960: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11961 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11963 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:11966: \$? = $ac_status" >&5
11967 (exit "$ac_status"); } >/dev/null; then
11968 if test -s conftest.err; then
11969 ac_cpp_err=$ac_c_preproc_warn_flag
11976 if test -z "$ac_cpp_err"; then
11977 eval "$as_ac_Header=yes"
11979 echo "$as_me: failed program was:" >&5
11980 cat "conftest.$ac_ext" >&5
11981 eval "$as_ac_Header=no"
11983 rm -f conftest.err "conftest.$ac_ext"
11985 echo "$as_me:11985: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11986 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11987 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11988 cat >>confdefs.h <<EOF
11989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11995 echo "$as_me:11995: checking if wchar.h can be used as is" >&5
11996 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11997 if test "${cf_cv_wchar_h_okay+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 cat >"conftest.$ac_ext" <<_ACEOF
12002 #line 12002 "configure"
12003 #include "confdefs.h"
12005 #include <stdlib.h>
12006 #ifdef HAVE_WCHAR_H
12009 #ifdef HAVE_WCTYPE_H
12010 #include <wctype.h>
12018 int bar = iswpunct(foo)
12023 rm -f "conftest.$ac_objext"
12024 if { (eval echo "$as_me:12024: \"$ac_compile\"") >&5
12025 (eval $ac_compile) 2>&5
12027 echo "$as_me:12027: \$? = $ac_status" >&5
12028 (exit "$ac_status"); } &&
12029 { ac_try='test -s "conftest.$ac_objext"'
12030 { (eval echo "$as_me:12030: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12033 echo "$as_me:12033: \$? = $ac_status" >&5
12034 (exit "$ac_status"); }; }; then
12035 cf_cv_wchar_h_okay=yes
12037 echo "$as_me: failed program was:" >&5
12038 cat "conftest.$ac_ext" >&5
12039 cf_cv_wchar_h_okay=no
12041 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12043 echo "$as_me:12043: result: $cf_cv_wchar_h_okay" >&5
12044 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12046 if test "$cf_cv_wchar_h_okay" = no
12049 echo "$as_me:12049: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12050 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12051 cat >"conftest.$ac_ext" <<_ACEOF
12052 #line 12052 "configure"
12053 #include "confdefs.h"
12054 #include <sys/types.h>
12060 #ifndef _XOPEN_SOURCE_EXTENDED
12067 rm -f "conftest.$ac_objext"
12068 if { (eval echo "$as_me:12068: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>&5
12071 echo "$as_me:12071: \$? = $ac_status" >&5
12072 (exit "$ac_status"); } &&
12073 { ac_try='test -s "conftest.$ac_objext"'
12074 { (eval echo "$as_me:12074: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12077 echo "$as_me:12077: \$? = $ac_status" >&5
12078 (exit "$ac_status"); }; }; then
12081 echo "$as_me: failed program was:" >&5
12082 cat "conftest.$ac_ext" >&5
12085 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12086 echo "$as_me:12086: result: $cf_result" >&5
12087 echo "${ECHO_T}$cf_result" >&6
12089 if test "$cf_result" = yes ; then
12090 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12091 elif test "x" != "x" ; then
12092 echo "$as_me:12092: checking checking for compatible value versus " >&5
12093 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12094 cat >"conftest.$ac_ext" <<_ACEOF
12095 #line 12095 "configure"
12096 #include "confdefs.h"
12097 #include <sys/types.h>
12103 #if _XOPEN_SOURCE_EXTENDED- < 0
12110 rm -f "conftest.$ac_objext"
12111 if { (eval echo "$as_me:12111: \"$ac_compile\"") >&5
12112 (eval $ac_compile) 2>&5
12114 echo "$as_me:12114: \$? = $ac_status" >&5
12115 (exit "$ac_status"); } &&
12116 { ac_try='test -s "conftest.$ac_objext"'
12117 { (eval echo "$as_me:12117: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:12120: \$? = $ac_status" >&5
12121 (exit "$ac_status"); }; }; then
12124 echo "$as_me: failed program was:" >&5
12125 cat "conftest.$ac_ext" >&5
12128 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12129 echo "$as_me:12129: result: $cf_result" >&5
12130 echo "${ECHO_T}$cf_result" >&6
12131 if test "$cf_result" = no ; then
12132 # perhaps we can override it - try...
12133 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12139 echo "$as_me:12139: checking if wcwidth agrees graphics are single-width" >&5
12140 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12141 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 cat >conftest.in <<CF_EOF
12147 0x250c upper left corner
12148 0x2514 lower left corner
12149 0x2510 upper right corner
12150 0x2518 lower right corner
12151 0x251c tee pointing left
12152 0x2524 tee pointing right
12153 0x2534 tee pointing up
12154 0x252c tee pointing down
12155 0x2500 horizontal line
12156 0x2502 vertical line
12157 0x253c large plus or crossover
12161 0x2592 checker board (stipple)
12162 0x00b0 degree symbol
12165 - Teletype 5410v1 symbols
12166 0x2190 arrow pointing left
12167 0x2192 arrow pointing right
12168 0x2193 arrow pointing down
12169 0x2191 arrow pointing up
12170 0x2592 board of squares
12171 0x2603 lantern symbol
12172 0x25ae solid square block
12173 - these defaults were invented for ncurses
12176 0x2264 less-than-or-equal-to
12177 0x2265 greater-than-or-equal-to
12180 0x00a3 pound-sterling symbol
12181 - thick-line-drawing
12182 0x250f upper left corner
12183 0x2517 lower left corner
12184 0x2513 upper right corner
12185 0x251b lower right corner
12186 0x2523 tee pointing left
12187 0x252b tee pointing right
12188 0x253b tee pointing up
12189 0x2533 tee pointing down
12190 0x2501 horizontal line
12191 0x2503 vertical line
12192 0x254b large plus or crossover
12193 - double-line-drawing
12194 0x2554 upper left corner
12195 0x255a lower left corner
12196 0x2557 upper right corner
12197 0x255d lower right corner
12198 0x2563 tee pointing left
12199 0x2560 tee pointing right
12200 0x2569 tee pointing up
12201 0x2566 tee pointing down
12202 0x2550 horizontal line
12203 0x2551 vertical line
12204 0x256c large plus or crossover
12206 if test "$cross_compiling" = yes; then
12207 cf_cv_wcwidth_graphics=unknown
12209 cat >"conftest.$ac_ext" <<_ACEOF
12210 #line 12210 "configure"
12211 #include "confdefs.h"
12213 #include <locale.h>
12224 char buffer[MY_LEN + 1];
12225 char notes[MY_LEN + 1];
12229 if (setlocale(LC_ALL, "en_US.UTF8") ||
12230 setlocale(LC_ALL, "en_US.UTF-8") ||
12231 setlocale(LC_ALL, "en_US.utf8") ||
12232 setlocale(LC_ALL, "en_US.utf-8")) {
12233 if ((fp = fopen("conftest.in", "r")) != 0) {
12234 while (fgets(buffer, MY_LEN, fp) != 0) {
12235 if (*buffer == '-') {
12236 fprintf(stderr, "\\t%s", buffer);
12237 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12239 if (wcwidth(value) == 1)
12241 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12243 fprintf(stderr, "?\\t%s", buffer);
12248 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12249 return (totals == passed) ? 0 : 1;
12253 rm -f "conftest$ac_exeext"
12254 if { (eval echo "$as_me:12254: \"$ac_link\"") >&5
12255 (eval $ac_link) 2>&5
12257 echo "$as_me:12257: \$? = $ac_status" >&5
12258 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12259 { (eval echo "$as_me:12259: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:12262: \$? = $ac_status" >&5
12263 (exit "$ac_status"); }; }; then
12264 cf_cv_wcwidth_graphics=yes
12266 echo "$as_me: program exited with status $ac_status" >&5
12267 echo "$as_me: failed program was:" >&5
12268 cat "conftest.$ac_ext" >&5
12269 cf_cv_wcwidth_graphics=no
12271 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12275 echo "$as_me:12275: result: $cf_cv_wcwidth_graphics" >&5
12276 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12278 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12280 # with_overwrite=no
12281 NCURSES_CH_T=cchar_t
12283 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12286 echo "$as_me:12286: checking for $ac_func" >&5
12287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12288 if eval "test \"\${$as_ac_var+set}\" = set"; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 cat >"conftest.$ac_ext" <<_ACEOF
12292 #line 12292 "configure"
12293 #include "confdefs.h"
12294 #define $ac_func autoconf_temporary
12295 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char $ac_func (void);
12310 /* The GNU C library defines stubs for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
12313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12314 #error found stub for $ac_func
12317 return $ac_func ();
12322 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12323 if { (eval echo "$as_me:12323: \"$ac_link\"") >&5
12324 (eval $ac_link) 2>&5
12326 echo "$as_me:12326: \$? = $ac_status" >&5
12327 (exit "$ac_status"); } &&
12328 { ac_try='test -s "conftest$ac_exeext"'
12329 { (eval echo "$as_me:12329: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12332 echo "$as_me:12332: \$? = $ac_status" >&5
12333 (exit "$ac_status"); }; }; then
12334 eval "$as_ac_var=yes"
12336 echo "$as_me: failed program was:" >&5
12337 cat "conftest.$ac_ext" >&5
12338 eval "$as_ac_var=no"
12340 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12342 echo "$as_me:12342: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12343 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12344 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12345 cat >>confdefs.h <<EOF
12346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12352 if test "x$ac_cv_func_putwc" != xyes ; then
12354 for ac_header in wchar.h
12356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357 echo "$as_me:12357: checking for $ac_header" >&5
12358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 cat >"conftest.$ac_ext" <<_ACEOF
12363 #line 12363 "configure"
12364 #include "confdefs.h"
12365 #include <$ac_header>
12367 if { (eval echo "$as_me:12367: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12368 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12370 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:12373: \$? = $ac_status" >&5
12374 (exit "$ac_status"); } >/dev/null; then
12375 if test -s conftest.err; then
12376 ac_cpp_err=$ac_c_preproc_warn_flag
12383 if test -z "$ac_cpp_err"; then
12384 eval "$as_ac_Header=yes"
12386 echo "$as_me: failed program was:" >&5
12387 cat "conftest.$ac_ext" >&5
12388 eval "$as_ac_Header=no"
12390 rm -f conftest.err "conftest.$ac_ext"
12392 echo "$as_me:12392: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12393 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12394 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12395 cat >>confdefs.h <<EOF
12396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12402 echo "$as_me:12402: checking for multibyte character support" >&5
12403 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12404 if test "${cf_cv_utf8_lib+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 cf_save_LIBS="$LIBS"
12409 cat >"conftest.$ac_ext" <<_ACEOF
12410 #line 12410 "configure"
12411 #include "confdefs.h"
12413 #include <stdlib.h>
12415 #ifdef HAVE_WCHAR_H
12427 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12428 if { (eval echo "$as_me:12428: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>&5
12431 echo "$as_me:12431: \$? = $ac_status" >&5
12432 (exit "$ac_status"); } &&
12433 { ac_try='test -s "conftest$ac_exeext"'
12434 { (eval echo "$as_me:12434: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12437 echo "$as_me:12437: \$? = $ac_status" >&5
12438 (exit "$ac_status"); }; }; then
12441 echo "$as_me: failed program was:" >&5
12442 cat "conftest.$ac_ext" >&5
12444 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12445 # will be set on completion of the AC_TRY_LINK below.
12446 cf_cv_header_path_utf8=
12447 cf_cv_library_path_utf8=
12449 echo "${as_me:-configure}:12449: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
12451 cf_save_LIBS="$LIBS"
12453 cat >"conftest.$ac_ext" <<_ACEOF
12454 #line 12454 "configure"
12455 #include "confdefs.h"
12457 #include <libutf8.h>
12466 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12467 if { (eval echo "$as_me:12467: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>&5
12470 echo "$as_me:12470: \$? = $ac_status" >&5
12471 (exit "$ac_status"); } &&
12472 { ac_try='test -s "conftest$ac_exeext"'
12473 { (eval echo "$as_me:12473: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:12476: \$? = $ac_status" >&5
12477 (exit "$ac_status"); }; }; then
12479 cf_cv_find_linkage_utf8=yes
12480 cf_cv_header_path_utf8=/usr/include
12481 cf_cv_library_path_utf8=/usr/lib
12484 echo "$as_me: failed program was:" >&5
12485 cat "conftest.$ac_ext" >&5
12487 LIBS="-lutf8 $cf_save_LIBS"
12489 cat >"conftest.$ac_ext" <<_ACEOF
12490 #line 12490 "configure"
12491 #include "confdefs.h"
12493 #include <libutf8.h>
12502 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12503 if { (eval echo "$as_me:12503: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>&5
12506 echo "$as_me:12506: \$? = $ac_status" >&5
12507 (exit "$ac_status"); } &&
12508 { ac_try='test -s "conftest$ac_exeext"'
12509 { (eval echo "$as_me:12509: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:12512: \$? = $ac_status" >&5
12513 (exit "$ac_status"); }; }; then
12515 cf_cv_find_linkage_utf8=yes
12516 cf_cv_header_path_utf8=/usr/include
12517 cf_cv_library_path_utf8=/usr/lib
12518 cf_cv_library_file_utf8="-lutf8"
12521 echo "$as_me: failed program was:" >&5
12522 cat "conftest.$ac_ext" >&5
12524 cf_cv_find_linkage_utf8=no
12525 LIBS="$cf_save_LIBS"
12527 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12529 echo "${as_me:-configure}:12529: testing find linkage for utf8 library ..." 1>&5
12531 echo "${as_me:-configure}:12531: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12533 cf_save_CPPFLAGS="$CPPFLAGS"
12534 cf_test_CPPFLAGS="$CPPFLAGS"
12538 # collect the current set of include-directories from compiler flags
12539 cf_header_path_list=""
12540 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12541 for cf_header_path in $CPPFLAGS $CFLAGS
12543 case "$cf_header_path" in
12545 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12547 test "x$cf_header_path" != "xNONE" && \
12548 test -d "$cf_header_path" && \
12550 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12551 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
12552 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
12553 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
12554 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
12555 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12558 cf_header_path_list="$cf_header_path_list $cf_search"
12564 # add the variations for the package we are looking for
12568 test "x$prefix" != "xNONE" && \
12569 test -d "$prefix" && \
12571 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12572 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
12573 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
12574 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
12575 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
12576 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
12579 for cf_subdir_prefix in \
12588 test "x$cf_subdir_prefix" != "x$prefix" && \
12589 test -d "$cf_subdir_prefix" && \
12590 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12591 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12592 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
12593 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12594 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12595 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12596 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12601 test "$includedir" != NONE && \
12602 test "$includedir" != "/usr/include" && \
12603 test -d "$includedir" && {
12604 test -d "$includedir" && cf_search="$cf_search $includedir"
12605 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
12608 test "$oldincludedir" != NONE && \
12609 test "$oldincludedir" != "/usr/include" && \
12610 test -d "$oldincludedir" && {
12611 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
12612 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
12615 cf_search="$cf_search $cf_header_path_list"
12617 for cf_cv_header_path_utf8 in $cf_search
12619 if test -d "$cf_cv_header_path_utf8" ; then
12620 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12622 echo "${as_me:-configure}:12622: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12624 CPPFLAGS="$cf_save_CPPFLAGS"
12626 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12627 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12629 cat >"conftest.$ac_ext" <<_ACEOF
12630 #line 12630 "configure"
12631 #include "confdefs.h"
12633 #include <libutf8.h>
12642 rm -f "conftest.$ac_objext"
12643 if { (eval echo "$as_me:12643: \"$ac_compile\"") >&5
12644 (eval $ac_compile) 2>&5
12646 echo "$as_me:12646: \$? = $ac_status" >&5
12647 (exit "$ac_status"); } &&
12648 { ac_try='test -s "conftest.$ac_objext"'
12649 { (eval echo "$as_me:12649: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:12652: \$? = $ac_status" >&5
12653 (exit "$ac_status"); }; }; then
12655 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12657 echo "${as_me:-configure}:12657: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12659 cf_cv_find_linkage_utf8=maybe
12660 cf_test_CPPFLAGS="$CPPFLAGS"
12663 echo "$as_me: failed program was:" >&5
12664 cat "conftest.$ac_ext" >&5
12666 CPPFLAGS="$cf_save_CPPFLAGS"
12669 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12673 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12675 echo "${as_me:-configure}:12675: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12677 cf_save_LIBS="$LIBS"
12678 cf_save_LDFLAGS="$LDFLAGS"
12680 if test "$cf_cv_find_linkage_utf8" != yes ; then
12683 cf_library_path_list=""
12684 if test -n "${LDFLAGS}${LIBS}" ; then
12685 for cf_library_path in $LDFLAGS $LIBS
12687 case "$cf_library_path" in
12689 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12691 test "x$cf_library_path" != "xNONE" && \
12692 test -d "$cf_library_path" && \
12694 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12695 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12696 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
12697 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12698 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
12699 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12702 cf_library_path_list="$cf_library_path_list $cf_search"
12710 test "x$prefix" != "xNONE" && \
12711 test -d "$prefix" && \
12713 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12714 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12715 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
12716 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
12717 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
12718 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
12721 for cf_subdir_prefix in \
12730 test "x$cf_subdir_prefix" != "x$prefix" && \
12731 test -d "$cf_subdir_prefix" && \
12732 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12733 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12734 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12735 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12736 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12737 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12738 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12743 cf_search="$cf_library_path_list $cf_search"
12745 for cf_cv_library_path_utf8 in $cf_search
12747 if test -d "$cf_cv_library_path_utf8" ; then
12748 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12750 echo "${as_me:-configure}:12750: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12752 CPPFLAGS="$cf_test_CPPFLAGS"
12753 LIBS="-lutf8 $cf_save_LIBS"
12754 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12755 cat >"conftest.$ac_ext" <<_ACEOF
12756 #line 12756 "configure"
12757 #include "confdefs.h"
12759 #include <libutf8.h>
12768 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12769 if { (eval echo "$as_me:12769: \"$ac_link\"") >&5
12770 (eval $ac_link) 2>&5
12772 echo "$as_me:12772: \$? = $ac_status" >&5
12773 (exit "$ac_status"); } &&
12774 { ac_try='test -s "conftest$ac_exeext"'
12775 { (eval echo "$as_me:12775: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12778 echo "$as_me:12778: \$? = $ac_status" >&5
12779 (exit "$ac_status"); }; }; then
12781 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12783 echo "${as_me:-configure}:12783: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12785 cf_cv_find_linkage_utf8=yes
12786 cf_cv_library_file_utf8="-lutf8"
12789 echo "$as_me: failed program was:" >&5
12790 cat "conftest.$ac_ext" >&5
12792 CPPFLAGS="$cf_save_CPPFLAGS"
12793 LIBS="$cf_save_LIBS"
12794 LDFLAGS="$cf_save_LDFLAGS"
12797 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12800 CPPFLAGS="$cf_save_CPPFLAGS"
12801 LDFLAGS="$cf_save_LDFLAGS"
12805 cf_cv_find_linkage_utf8=no
12809 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12812 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12814 LIBS="$cf_save_LIBS"
12816 if test "$cf_cv_find_linkage_utf8" = yes ; then
12817 cf_cv_utf8_lib=add-on
12823 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12825 echo "$as_me:12825: result: $cf_cv_utf8_lib" >&5
12826 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12828 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12829 # ncurses/ncursesw:
12830 if test "$cf_cv_utf8_lib" = "add-on" ; then
12832 cat >>confdefs.h <<\EOF
12833 #define HAVE_LIBUTF8_H 1
12836 if test -n "$cf_cv_header_path_utf8" ; then
12837 for cf_add_incdir in $cf_cv_header_path_utf8
12839 while test "$cf_add_incdir" != /usr/include
12841 if test -d "$cf_add_incdir"
12844 if test -n "$CFLAGS$CPPFLAGS" ; then
12845 # a loop is needed to ensure we can add subdirs of existing dirs
12846 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12847 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12848 cf_have_incdir=yes; break
12853 if test "$cf_have_incdir" = no ; then
12854 if test "$cf_add_incdir" = /usr/local/include ; then
12855 if test "$GCC" = yes
12857 cf_save_CPPFLAGS=$CPPFLAGS
12859 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12860 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12862 cat >"conftest.$ac_ext" <<_ACEOF
12863 #line 12863 "configure"
12864 #include "confdefs.h"
12874 rm -f "conftest.$ac_objext"
12875 if { (eval echo "$as_me:12875: \"$ac_compile\"") >&5
12876 (eval $ac_compile) 2>&5
12878 echo "$as_me:12878: \$? = $ac_status" >&5
12879 (exit "$ac_status"); } &&
12880 { ac_try='test -s "conftest.$ac_objext"'
12881 { (eval echo "$as_me:12881: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 echo "$as_me:12884: \$? = $ac_status" >&5
12885 (exit "$ac_status"); }; }; then
12888 echo "$as_me: failed program was:" >&5
12889 cat "conftest.$ac_ext" >&5
12892 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12893 CPPFLAGS=$cf_save_CPPFLAGS
12898 if test "$cf_have_incdir" = no ; then
12899 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12901 echo "${as_me:-configure}:12901: testing adding $cf_add_incdir to include-path ..." 1>&5
12903 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12905 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
12906 test "$cf_top_incdir" = "$cf_add_incdir" && break
12907 cf_add_incdir="$cf_top_incdir"
12918 if test -n "$cf_cv_library_path_utf8" ; then
12919 for cf_add_libdir in $cf_cv_library_path_utf8
12921 if test "$cf_add_libdir" = /usr/lib ; then
12923 elif test -d "$cf_add_libdir"
12926 if test -n "$LDFLAGS$LIBS" ; then
12927 # a loop is needed to ensure we can add subdirs of existing dirs
12928 for cf_test_libdir in $LDFLAGS $LIBS ; do
12929 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12930 cf_have_libdir=yes; break
12934 if test "$cf_have_libdir" = no ; then
12935 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12937 echo "${as_me:-configure}:12937: testing adding $cf_add_libdir to library-path ..." 1>&5
12939 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12945 cf_add_libs="$LIBS"
12948 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12949 # filter duplicates
12950 for cf_add_1lib in $cf_add_0lib; do
12951 for cf_add_2lib in $cf_add_libs; do
12952 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12957 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12959 LIBS="$cf_add_libs"
12963 if test "$cf_cv_utf8_lib" != no ; then
12968 # This is needed on Tru64 5.0 to declare mbstate_t
12969 echo "$as_me:12969: checking if we must include wchar.h to declare mbstate_t" >&5
12970 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12971 if test "${cf_cv_mbstate_t+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 cat >"conftest.$ac_ext" <<_ACEOF
12976 #line 12976 "configure"
12977 #include "confdefs.h"
12979 #include <stdlib.h>
12980 #include <stdarg.h>
12982 #ifdef HAVE_LIBUTF8_H
12983 #include <libutf8.h>
12993 rm -f "conftest.$ac_objext"
12994 if { (eval echo "$as_me:12994: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>&5
12997 echo "$as_me:12997: \$? = $ac_status" >&5
12998 (exit "$ac_status"); } &&
12999 { ac_try='test -s "conftest.$ac_objext"'
13000 { (eval echo "$as_me:13000: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13003 echo "$as_me:13003: \$? = $ac_status" >&5
13004 (exit "$ac_status"); }; }; then
13007 echo "$as_me: failed program was:" >&5
13008 cat "conftest.$ac_ext" >&5
13009 cat >"conftest.$ac_ext" <<_ACEOF
13010 #line 13010 "configure"
13011 #include "confdefs.h"
13013 #include <stdlib.h>
13014 #include <stdarg.h>
13017 #ifdef HAVE_LIBUTF8_H
13018 #include <libutf8.h>
13028 rm -f "conftest.$ac_objext"
13029 if { (eval echo "$as_me:13029: \"$ac_compile\"") >&5
13030 (eval $ac_compile) 2>&5
13032 echo "$as_me:13032: \$? = $ac_status" >&5
13033 (exit "$ac_status"); } &&
13034 { ac_try='test -s "conftest.$ac_objext"'
13035 { (eval echo "$as_me:13035: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13038 echo "$as_me:13038: \$? = $ac_status" >&5
13039 (exit "$ac_status"); }; }; then
13040 cf_cv_mbstate_t=yes
13042 echo "$as_me: failed program was:" >&5
13043 cat "conftest.$ac_ext" >&5
13044 cf_cv_mbstate_t=unknown
13046 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13048 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13050 echo "$as_me:13050: result: $cf_cv_mbstate_t" >&5
13051 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13053 if test "$cf_cv_mbstate_t" = yes ; then
13055 cat >>confdefs.h <<\EOF
13056 #define NEED_WCHAR_H 1
13062 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13063 if test "$cf_cv_mbstate_t" = unknown ; then
13064 NCURSES_MBSTATE_T=1
13067 # This is needed on Tru64 5.0 to declare wchar_t
13068 echo "$as_me:13068: checking if we must include wchar.h to declare wchar_t" >&5
13069 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13070 if test "${cf_cv_wchar_t+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 cat >"conftest.$ac_ext" <<_ACEOF
13075 #line 13075 "configure"
13076 #include "confdefs.h"
13078 #include <stdlib.h>
13079 #include <stdarg.h>
13081 #ifdef HAVE_LIBUTF8_H
13082 #include <libutf8.h>
13092 rm -f "conftest.$ac_objext"
13093 if { (eval echo "$as_me:13093: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>&5
13096 echo "$as_me:13096: \$? = $ac_status" >&5
13097 (exit "$ac_status"); } &&
13098 { ac_try='test -s "conftest.$ac_objext"'
13099 { (eval echo "$as_me:13099: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13102 echo "$as_me:13102: \$? = $ac_status" >&5
13103 (exit "$ac_status"); }; }; then
13106 echo "$as_me: failed program was:" >&5
13107 cat "conftest.$ac_ext" >&5
13108 cat >"conftest.$ac_ext" <<_ACEOF
13109 #line 13109 "configure"
13110 #include "confdefs.h"
13112 #include <stdlib.h>
13113 #include <stdarg.h>
13116 #ifdef HAVE_LIBUTF8_H
13117 #include <libutf8.h>
13127 rm -f "conftest.$ac_objext"
13128 if { (eval echo "$as_me:13128: \"$ac_compile\"") >&5
13129 (eval $ac_compile) 2>&5
13131 echo "$as_me:13131: \$? = $ac_status" >&5
13132 (exit "$ac_status"); } &&
13133 { ac_try='test -s "conftest.$ac_objext"'
13134 { (eval echo "$as_me:13134: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13137 echo "$as_me:13137: \$? = $ac_status" >&5
13138 (exit "$ac_status"); }; }; then
13141 echo "$as_me: failed program was:" >&5
13142 cat "conftest.$ac_ext" >&5
13143 cf_cv_wchar_t=unknown
13145 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13147 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13149 echo "$as_me:13149: result: $cf_cv_wchar_t" >&5
13150 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13152 if test "$cf_cv_wchar_t" = yes ; then
13154 cat >>confdefs.h <<\EOF
13155 #define NEED_WCHAR_H 1
13161 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13162 if test "$cf_cv_wchar_t" = unknown ; then
13166 # if we find wchar_t in either place, use substitution to provide a fallback.
13167 if test "$cf_cv_wchar_t" != unknown ; then
13168 NCURSES_OK_WCHAR_T=1
13171 # This is needed on Tru64 5.0 to declare wint_t
13172 echo "$as_me:13172: checking if we must include wchar.h to declare wint_t" >&5
13173 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13174 if test "${cf_cv_wint_t+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 cat >"conftest.$ac_ext" <<_ACEOF
13179 #line 13179 "configure"
13180 #include "confdefs.h"
13182 #include <stdlib.h>
13183 #include <stdarg.h>
13185 #ifdef HAVE_LIBUTF8_H
13186 #include <libutf8.h>
13196 rm -f "conftest.$ac_objext"
13197 if { (eval echo "$as_me:13197: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>&5
13200 echo "$as_me:13200: \$? = $ac_status" >&5
13201 (exit "$ac_status"); } &&
13202 { ac_try='test -s "conftest.$ac_objext"'
13203 { (eval echo "$as_me:13203: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:13206: \$? = $ac_status" >&5
13207 (exit "$ac_status"); }; }; then
13210 echo "$as_me: failed program was:" >&5
13211 cat "conftest.$ac_ext" >&5
13212 cat >"conftest.$ac_ext" <<_ACEOF
13213 #line 13213 "configure"
13214 #include "confdefs.h"
13216 #include <stdlib.h>
13217 #include <stdarg.h>
13220 #ifdef HAVE_LIBUTF8_H
13221 #include <libutf8.h>
13231 rm -f "conftest.$ac_objext"
13232 if { (eval echo "$as_me:13232: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>&5
13235 echo "$as_me:13235: \$? = $ac_status" >&5
13236 (exit "$ac_status"); } &&
13237 { ac_try='test -s "conftest.$ac_objext"'
13238 { (eval echo "$as_me:13238: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:13241: \$? = $ac_status" >&5
13242 (exit "$ac_status"); }; }; then
13245 echo "$as_me: failed program was:" >&5
13246 cat "conftest.$ac_ext" >&5
13247 cf_cv_wint_t=unknown
13249 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13251 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13253 echo "$as_me:13253: result: $cf_cv_wint_t" >&5
13254 echo "${ECHO_T}$cf_cv_wint_t" >&6
13256 if test "$cf_cv_wint_t" = yes ; then
13258 cat >>confdefs.h <<\EOF
13259 #define NEED_WCHAR_H 1
13265 # if we do not find wint_t in either place, use substitution to provide a fallback.
13266 if test "$cf_cv_wint_t" = unknown ; then
13270 # if we find wint_t in either place, use substitution to provide a fallback.
13271 if test "$cf_cv_wint_t" != unknown ; then
13272 NCURSES_OK_WINT_T=1
13275 if test "$NCURSES_MBSTATE_T" != 0; then
13277 cat >>confdefs.h <<\EOF
13278 #define NEED_MBSTATE_T_DEF 1
13284 ### use option --disable-lp64 to allow long chtype
13285 echo "$as_me:13285: checking whether to enable _LP64 definition in curses.h" >&5
13286 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13288 # Check whether --enable-lp64 or --disable-lp64 was given.
13289 if test "${enable_lp64+set}" = set; then
13290 enableval="$enable_lp64"
13291 with_lp64=$enableval
13293 with_lp64=$cf_dft_with_lp64
13295 echo "$as_me:13295: result: $with_lp64" >&5
13296 echo "${ECHO_T}$with_lp64" >&6
13298 if test "x$with_lp64" = xyes ; then
13299 cf_cv_enable_lp64=1
13301 cf_cv_enable_lp64=0
13304 # Check whether --enable-largefile or --disable-largefile was given.
13305 if test "${enable_largefile+set}" = set; then
13306 enableval="$enable_largefile"
13309 if test "$enable_largefile" != no; then
13311 echo "$as_me:13311: checking for special C compiler options needed for large files" >&5
13312 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13313 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 ac_cv_sys_largefile_CC=no
13317 if test "$GCC" != yes; then
13320 # IRIX 6.2 and later do not support large files by default,
13321 # so use the C compiler's -n32 option if that helps.
13322 cat >"conftest.$ac_ext" <<_ACEOF
13323 #line 13323 "configure"
13324 #include "confdefs.h"
13325 #include <sys/types.h>
13326 /* Check that off_t can represent 2**63 - 1 correctly.
13327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13328 since some C++ compilers masquerading as C compilers
13329 incorrectly reject 9223372036854775807. */
13330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13332 && LARGE_OFF_T % 2147483647 == 1)
13342 rm -f "conftest.$ac_objext"
13343 if { (eval echo "$as_me:13343: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13346 echo "$as_me:13346: \$? = $ac_status" >&5
13347 (exit "$ac_status"); } &&
13348 { ac_try='test -s "conftest.$ac_objext"'
13349 { (eval echo "$as_me:13349: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:13352: \$? = $ac_status" >&5
13353 (exit "$ac_status"); }; }; then
13356 echo "$as_me: failed program was:" >&5
13357 cat "conftest.$ac_ext" >&5
13359 rm -f "conftest.$ac_objext"
13361 rm -f "conftest.$ac_objext"
13362 if { (eval echo "$as_me:13362: \"$ac_compile\"") >&5
13363 (eval $ac_compile) 2>&5
13365 echo "$as_me:13365: \$? = $ac_status" >&5
13366 (exit "$ac_status"); } &&
13367 { ac_try='test -s "conftest.$ac_objext"'
13368 { (eval echo "$as_me:13368: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13371 echo "$as_me:13371: \$? = $ac_status" >&5
13372 (exit "$ac_status"); }; }; then
13373 ac_cv_sys_largefile_CC=' -n32'; break
13375 echo "$as_me: failed program was:" >&5
13376 cat "conftest.$ac_ext" >&5
13378 rm -f "conftest.$ac_objext"
13382 rm -f "conftest.$ac_ext"
13385 echo "$as_me:13385: result: $ac_cv_sys_largefile_CC" >&5
13386 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13387 if test "$ac_cv_sys_largefile_CC" != no; then
13388 CC=$CC$ac_cv_sys_largefile_CC
13391 echo "$as_me:13391: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13392 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13393 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 ac_cv_sys_file_offset_bits=no
13398 cat >"conftest.$ac_ext" <<_ACEOF
13399 #line 13399 "configure"
13400 #include "confdefs.h"
13401 #include <sys/types.h>
13402 /* Check that off_t can represent 2**63 - 1 correctly.
13403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13404 since some C++ compilers masquerading as C compilers
13405 incorrectly reject 9223372036854775807. */
13406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13408 && LARGE_OFF_T % 2147483647 == 1)
13418 rm -f "conftest.$ac_objext"
13419 if { (eval echo "$as_me:13419: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>&5
13422 echo "$as_me:13422: \$? = $ac_status" >&5
13423 (exit "$ac_status"); } &&
13424 { ac_try='test -s "conftest.$ac_objext"'
13425 { (eval echo "$as_me:13425: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:13428: \$? = $ac_status" >&5
13429 (exit "$ac_status"); }; }; then
13432 echo "$as_me: failed program was:" >&5
13433 cat "conftest.$ac_ext" >&5
13435 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13436 cat >"conftest.$ac_ext" <<_ACEOF
13437 #line 13437 "configure"
13438 #include "confdefs.h"
13439 #define _FILE_OFFSET_BITS 64
13440 #include <sys/types.h>
13441 /* Check that off_t can represent 2**63 - 1 correctly.
13442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13443 since some C++ compilers masquerading as C compilers
13444 incorrectly reject 9223372036854775807. */
13445 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13447 && LARGE_OFF_T % 2147483647 == 1)
13457 rm -f "conftest.$ac_objext"
13458 if { (eval echo "$as_me:13458: \"$ac_compile\"") >&5
13459 (eval $ac_compile) 2>&5
13461 echo "$as_me:13461: \$? = $ac_status" >&5
13462 (exit "$ac_status"); } &&
13463 { ac_try='test -s "conftest.$ac_objext"'
13464 { (eval echo "$as_me:13464: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:13467: \$? = $ac_status" >&5
13468 (exit "$ac_status"); }; }; then
13469 ac_cv_sys_file_offset_bits=64; break
13471 echo "$as_me: failed program was:" >&5
13472 cat "conftest.$ac_ext" >&5
13474 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13478 echo "$as_me:13478: result: $ac_cv_sys_file_offset_bits" >&5
13479 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13480 if test "$ac_cv_sys_file_offset_bits" != no; then
13482 cat >>confdefs.h <<EOF
13483 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13488 echo "$as_me:13488: checking for _LARGE_FILES value needed for large files" >&5
13489 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13490 if test "${ac_cv_sys_large_files+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 ac_cv_sys_large_files=no
13495 cat >"conftest.$ac_ext" <<_ACEOF
13496 #line 13496 "configure"
13497 #include "confdefs.h"
13498 #include <sys/types.h>
13499 /* Check that off_t can represent 2**63 - 1 correctly.
13500 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13501 since some C++ compilers masquerading as C compilers
13502 incorrectly reject 9223372036854775807. */
13503 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13504 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13505 && LARGE_OFF_T % 2147483647 == 1)
13515 rm -f "conftest.$ac_objext"
13516 if { (eval echo "$as_me:13516: \"$ac_compile\"") >&5
13517 (eval $ac_compile) 2>&5
13519 echo "$as_me:13519: \$? = $ac_status" >&5
13520 (exit "$ac_status"); } &&
13521 { ac_try='test -s "conftest.$ac_objext"'
13522 { (eval echo "$as_me:13522: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:13525: \$? = $ac_status" >&5
13526 (exit "$ac_status"); }; }; then
13529 echo "$as_me: failed program was:" >&5
13530 cat "conftest.$ac_ext" >&5
13532 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13533 cat >"conftest.$ac_ext" <<_ACEOF
13534 #line 13534 "configure"
13535 #include "confdefs.h"
13536 #define _LARGE_FILES 1
13537 #include <sys/types.h>
13538 /* Check that off_t can represent 2**63 - 1 correctly.
13539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13540 since some C++ compilers masquerading as C compilers
13541 incorrectly reject 9223372036854775807. */
13542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13544 && LARGE_OFF_T % 2147483647 == 1)
13554 rm -f "conftest.$ac_objext"
13555 if { (eval echo "$as_me:13555: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>&5
13558 echo "$as_me:13558: \$? = $ac_status" >&5
13559 (exit "$ac_status"); } &&
13560 { ac_try='test -s "conftest.$ac_objext"'
13561 { (eval echo "$as_me:13561: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:13564: \$? = $ac_status" >&5
13565 (exit "$ac_status"); }; }; then
13566 ac_cv_sys_large_files=1; break
13568 echo "$as_me: failed program was:" >&5
13569 cat "conftest.$ac_ext" >&5
13571 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13575 echo "$as_me:13575: result: $ac_cv_sys_large_files" >&5
13576 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13577 if test "$ac_cv_sys_large_files" != no; then
13579 cat >>confdefs.h <<EOF
13580 #define _LARGE_FILES $ac_cv_sys_large_files
13587 if test "$enable_largefile" != no ; then
13588 echo "$as_me:13588: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13589 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13590 if test "${ac_cv_sys_largefile_source+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 ac_cv_sys_largefile_source=no
13595 cat >"conftest.$ac_ext" <<_ACEOF
13596 #line 13596 "configure"
13597 #include "confdefs.h"
13607 rm -f "conftest.$ac_objext"
13608 if { (eval echo "$as_me:13608: \"$ac_compile\"") >&5
13609 (eval $ac_compile) 2>&5
13611 echo "$as_me:13611: \$? = $ac_status" >&5
13612 (exit "$ac_status"); } &&
13613 { ac_try='test -s "conftest.$ac_objext"'
13614 { (eval echo "$as_me:13614: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:13617: \$? = $ac_status" >&5
13618 (exit "$ac_status"); }; }; then
13621 echo "$as_me: failed program was:" >&5
13622 cat "conftest.$ac_ext" >&5
13624 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13625 cat >"conftest.$ac_ext" <<_ACEOF
13626 #line 13626 "configure"
13627 #include "confdefs.h"
13628 #define _LARGEFILE_SOURCE 1
13638 rm -f "conftest.$ac_objext"
13639 if { (eval echo "$as_me:13639: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>&5
13642 echo "$as_me:13642: \$? = $ac_status" >&5
13643 (exit "$ac_status"); } &&
13644 { ac_try='test -s "conftest.$ac_objext"'
13645 { (eval echo "$as_me:13645: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 (exit "$ac_status"); }; }; then
13650 ac_cv_sys_largefile_source=1; break
13652 echo "$as_me: failed program was:" >&5
13653 cat "conftest.$ac_ext" >&5
13655 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13659 echo "$as_me:13659: result: $ac_cv_sys_largefile_source" >&5
13660 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13661 if test "$ac_cv_sys_largefile_source" != no; then
13663 cat >>confdefs.h <<EOF
13664 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13670 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13671 # in glibc 2.1.3, but that breaks too many other things.
13672 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13673 echo "$as_me:13673: checking for fseeko" >&5
13674 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13675 if test "${ac_cv_func_fseeko+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 cat >"conftest.$ac_ext" <<_ACEOF
13679 #line 13679 "configure"
13680 #include "confdefs.h"
13685 return fseeko && fseeko (stdin, 0, 0);
13690 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13691 if { (eval echo "$as_me:13691: \"$ac_link\"") >&5
13692 (eval $ac_link) 2>&5
13694 echo "$as_me:13694: \$? = $ac_status" >&5
13695 (exit "$ac_status"); } &&
13696 { ac_try='test -s "conftest$ac_exeext"'
13697 { (eval echo "$as_me:13697: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13700 echo "$as_me:13700: \$? = $ac_status" >&5
13701 (exit "$ac_status"); }; }; then
13702 ac_cv_func_fseeko=yes
13704 echo "$as_me: failed program was:" >&5
13705 cat "conftest.$ac_ext" >&5
13706 ac_cv_func_fseeko=no
13708 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13710 echo "$as_me:13710: result: $ac_cv_func_fseeko" >&5
13711 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13712 if test $ac_cv_func_fseeko = yes; then
13714 cat >>confdefs.h <<\EOF
13715 #define HAVE_FSEEKO 1
13720 # Normally we would collect these definitions in the config.h,
13721 # but (like _XOPEN_SOURCE), some environments rely on having these
13722 # defined before any of the system headers are included. Another
13723 # case comes up with C++, e.g., on AIX the compiler compiles the
13724 # header files by themselves before looking at the body files it is
13725 # told to compile. For ncurses, those header files do not include
13727 if test "$ac_cv_sys_large_files" != no
13730 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13731 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13734 if test "$ac_cv_sys_largefile_source" != no
13737 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13738 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13741 if test "$ac_cv_sys_file_offset_bits" != no
13744 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13745 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13749 echo "$as_me:13749: checking whether to use struct dirent64" >&5
13750 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13751 if test "${cf_cv_struct_dirent64+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cat >"conftest.$ac_ext" <<_ACEOF
13756 #line 13756 "configure"
13757 #include "confdefs.h"
13759 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13760 #include <sys/types.h>
13761 #include <dirent.h>
13767 /* if transitional largefile support is setup, this is true */
13768 extern struct dirent64 * readdir(DIR *);
13769 struct dirent64 *x = readdir((DIR *)0);
13770 struct dirent *y = readdir((DIR *)0);
13778 rm -f "conftest.$ac_objext"
13779 if { (eval echo "$as_me:13779: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>&5
13782 echo "$as_me:13782: \$? = $ac_status" >&5
13783 (exit "$ac_status"); } &&
13784 { ac_try='test -s "conftest.$ac_objext"'
13785 { (eval echo "$as_me:13785: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:13788: \$? = $ac_status" >&5
13789 (exit "$ac_status"); }; }; then
13790 cf_cv_struct_dirent64=yes
13792 echo "$as_me: failed program was:" >&5
13793 cat "conftest.$ac_ext" >&5
13794 cf_cv_struct_dirent64=no
13796 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13799 echo "$as_me:13799: result: $cf_cv_struct_dirent64" >&5
13800 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13801 test "$cf_cv_struct_dirent64" = yes &&
13802 cat >>confdefs.h <<\EOF
13803 #define HAVE_STRUCT_DIRENT64 1
13808 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13809 echo "$as_me:13809: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13810 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13812 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13813 if test "${enable_tparm_varargs+set}" = set; then
13814 enableval="$enable_tparm_varargs"
13815 with_tparm_varargs=$enableval
13817 with_tparm_varargs=yes
13819 echo "$as_me:13819: result: $with_tparm_varargs" >&5
13820 echo "${ECHO_T}$with_tparm_varargs" >&6
13821 NCURSES_TPARM_VARARGS=0
13822 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13824 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13825 if test "$with_ticlib" != no ; then
13826 echo "$as_me:13826: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13827 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13829 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13830 if test "${enable_tic_depends+set}" = set; then
13831 enableval="$enable_tic_depends"
13832 with_tic_depends=$enableval
13834 with_tic_depends=yes
13836 echo "$as_me:13836: result: $with_tic_depends" >&5
13837 echo "${ECHO_T}$with_tic_depends" >&6
13839 with_tic_depends=no
13842 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
13843 echo "$as_me:13843: checking if you want to enable wattr* macros" >&5
13844 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
13846 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13847 if test "${enable_wattr_macros+set}" = set; then
13848 enableval="$enable_wattr_macros"
13849 with_wattr_macros=$enableval
13851 with_wattr_macros=no
13853 if [ "x$with_wattr_macros" != xyes ]; then
13854 NCURSES_WATTR_MACROS=0
13855 echo "$as_me:13855: result: no" >&5
13856 echo "${ECHO_T}no" >&6
13858 NCURSES_WATTR_MACROS=1
13859 echo "$as_me:13859: result: yes" >&5
13860 echo "${ECHO_T}yes" >&6
13863 echo "$as_me:13863: checking for X11 rgb file" >&5
13864 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13866 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13867 if test "${with_x11_rgb+set}" = set; then
13868 withval="$with_x11_rgb"
13874 if test "x$RGB_PATH" = xauto
13876 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13878 /opt/local/share/X11/rgb.txt \
13879 /opt/X11/share/X11/rgb.txt \
13880 /usr/share/X11/rgb.txt \
13881 /usr/X11/share/X11/rgb.txt \
13882 /usr/X11/lib/X11/rgb.txt \
13883 /usr/lib/X11/rgb.txt \
13885 /usr/pkg/lib/X11/rgb.txt \
13886 /usr/X11R7/lib/X11/rgb.txt \
13887 /usr/X11R6/lib/X11/rgb.txt \
13888 /usr/X11R5/lib/X11/rgb.txt \
13889 /usr/X11R4/lib/X11/rgb.txt \
13890 /usr/local/lib/X11/rgb.txt \
13891 /usr/local/share/X11/rgb.txt \
13892 /usr/lib64/X11/rgb.txt
13894 if test -f "$cf_path" ; then
13895 RGB_PATH="$cf_path"
13902 if test "x$prefix" != xNONE; then
13903 cf_path_syntax="$prefix"
13905 cf_path_syntax="$ac_default_prefix"
13908 case ".$cf_path" in
13909 (.\$\(*\)*|.\'*\'*)
13913 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13915 (.\$\{*prefix\}*|.\$\{*dir\}*)
13916 eval cf_path="$cf_path"
13917 case ".$cf_path" in
13919 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13924 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13927 { { echo "$as_me:13927: error: expected a pathname, not \"$cf_path\"" >&5
13928 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13929 { (exit 1); exit 1; }; }
13935 echo "$as_me:13935: result: $RGB_PATH" >&5
13936 echo "${ECHO_T}$RGB_PATH" >&6
13938 cat >>confdefs.h <<EOF
13939 #define RGB_PATH "$cf_path"
13943 if test "$RGB_PATH" = no
13948 ### use option --with-bool to override bool's type
13949 echo "$as_me:13949: checking for type of bool" >&5
13950 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13952 # Check whether --with-bool or --without-bool was given.
13953 if test "${with_bool+set}" = set; then
13954 withval="$with_bool"
13955 NCURSES_BOOL="$withval"
13959 echo "$as_me:13959: result: $NCURSES_BOOL" >&5
13960 echo "${ECHO_T}$NCURSES_BOOL" >&6
13962 echo "$as_me:13962: checking for alternate terminal capabilities file" >&5
13963 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13965 # Check whether --with-caps or --without-caps was given.
13966 if test "${with_caps+set}" = set; then
13967 withval="$with_caps"
13968 TERMINFO_CAPS=Caps.$withval
13972 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
13974 { echo "$as_me:13974: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
13975 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
13978 echo "$as_me:13978: result: $TERMINFO_CAPS" >&5
13979 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13981 ### use option --with-chtype to override chtype's type
13982 echo "$as_me:13982: checking for type of chtype" >&5
13983 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13985 # Check whether --with-chtype or --without-chtype was given.
13986 if test "${with_chtype+set}" = set; then
13987 withval="$with_chtype"
13988 NCURSES_CHTYPE="$withval"
13990 NCURSES_CHTYPE=$cf_dft_chtype
13992 echo "$as_me:13992: result: $NCURSES_CHTYPE" >&5
13993 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13995 ### use option --with-ospeed to override ospeed's type
13996 echo "$as_me:13996: checking for type of ospeed" >&5
13997 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13999 # Check whether --with-ospeed or --without-ospeed was given.
14000 if test "${with_ospeed+set}" = set; then
14001 withval="$with_ospeed"
14002 NCURSES_OSPEED="$withval"
14004 NCURSES_OSPEED=short
14006 echo "$as_me:14006: result: $NCURSES_OSPEED" >&5
14007 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14009 ### use option --with-mmask-t to override mmask_t's type
14010 echo "$as_me:14010: checking for type of mmask_t" >&5
14011 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
14013 # Check whether --with-mmask-t or --without-mmask-t was given.
14014 if test "${with_mmask_t+set}" = set; then
14015 withval="$with_mmask_t"
14016 NCURSES_MMASK_T="$withval"
14018 NCURSES_MMASK_T=$cf_dft_mmask_t
14020 echo "$as_me:14020: result: $NCURSES_MMASK_T" >&5
14021 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14023 ### use option --with-ccharw-max to override CCHARW_MAX size
14024 echo "$as_me:14024: checking for size CCHARW_MAX" >&5
14025 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14027 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14028 if test "${with_ccharw_max+set}" = set; then
14029 withval="$with_ccharw_max"
14030 NCURSES_CCHARW_MAX="$withval"
14032 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14034 echo "$as_me:14034: result: $NCURSES_CCHARW_MAX" >&5
14035 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14037 echo "$as_me:14037: checking for ANSI C header files" >&5
14038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14039 if test "${ac_cv_header_stdc+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 cat >"conftest.$ac_ext" <<_ACEOF
14043 #line 14043 "configure"
14044 #include "confdefs.h"
14045 #include <stdlib.h>
14046 #include <stdarg.h>
14047 #include <string.h>
14051 if { (eval echo "$as_me:14051: \"$ac_cpp "conftest.$ac_ext"\"") >&5
14052 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
14054 $EGREP -v '^ *\+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 echo "$as_me:14057: \$? = $ac_status" >&5
14058 (exit "$ac_status"); } >/dev/null; then
14059 if test -s conftest.err; then
14060 ac_cpp_err=$ac_c_preproc_warn_flag
14067 if test -z "$ac_cpp_err"; then
14068 ac_cv_header_stdc=yes
14070 echo "$as_me: failed program was:" >&5
14071 cat "conftest.$ac_ext" >&5
14072 ac_cv_header_stdc=no
14074 rm -f conftest.err "conftest.$ac_ext"
14076 if test $ac_cv_header_stdc = yes; then
14077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14078 cat >"conftest.$ac_ext" <<_ACEOF
14079 #line 14079 "configure"
14080 #include "confdefs.h"
14081 #include <string.h>
14084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14085 $EGREP "memchr" >/dev/null 2>&1; then
14088 ac_cv_header_stdc=no
14094 if test $ac_cv_header_stdc = yes; then
14095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14096 cat >"conftest.$ac_ext" <<_ACEOF
14097 #line 14097 "configure"
14098 #include "confdefs.h"
14099 #include <stdlib.h>
14102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14103 $EGREP "free" >/dev/null 2>&1; then
14106 ac_cv_header_stdc=no
14112 if test $ac_cv_header_stdc = yes; then
14113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14114 if test "$cross_compiling" = yes; then
14117 cat >"conftest.$ac_ext" <<_ACEOF
14118 #line 14118 "configure"
14119 #include "confdefs.h"
14121 #if ((' ' & 0x0FF) == 0x020)
14122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14125 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14126 || ('j' <= (c) && (c) <= 'r') \
14127 || ('s' <= (c) && (c) <= 'z'))
14128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14136 for (i = 0; i < 256; i++)
14137 if (XOR (islower (i), ISLOWER (i))
14138 || toupper (i) != TOUPPER (i))
14139 $ac_main_return(2);
14140 $ac_main_return (0);
14143 rm -f "conftest$ac_exeext"
14144 if { (eval echo "$as_me:14144: \"$ac_link\"") >&5
14145 (eval $ac_link) 2>&5
14147 echo "$as_me:14147: \$? = $ac_status" >&5
14148 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14149 { (eval echo "$as_me:14149: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:14152: \$? = $ac_status" >&5
14153 (exit "$ac_status"); }; }; then
14156 echo "$as_me: program exited with status $ac_status" >&5
14157 echo "$as_me: failed program was:" >&5
14158 cat "conftest.$ac_ext" >&5
14159 ac_cv_header_stdc=no
14161 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14165 echo "$as_me:14165: result: $ac_cv_header_stdc" >&5
14166 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14167 if test $ac_cv_header_stdc = yes; then
14169 cat >>confdefs.h <<\EOF
14170 #define STDC_HEADERS 1
14175 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14178 inttypes.h stdint.h unistd.h
14180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14181 echo "$as_me:14181: checking for $ac_header" >&5
14182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 cat >"conftest.$ac_ext" <<_ACEOF
14187 #line 14187 "configure"
14188 #include "confdefs.h"
14189 $ac_includes_default
14190 #include <$ac_header>
14192 rm -f "conftest.$ac_objext"
14193 if { (eval echo "$as_me:14193: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>&5
14196 echo "$as_me:14196: \$? = $ac_status" >&5
14197 (exit "$ac_status"); } &&
14198 { ac_try='test -s "conftest.$ac_objext"'
14199 { (eval echo "$as_me:14199: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:14202: \$? = $ac_status" >&5
14203 (exit "$ac_status"); }; }; then
14204 eval "$as_ac_Header=yes"
14206 echo "$as_me: failed program was:" >&5
14207 cat "conftest.$ac_ext" >&5
14208 eval "$as_ac_Header=no"
14210 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14212 echo "$as_me:14212: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
14213 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
14214 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
14215 cat >>confdefs.h <<EOF
14216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14222 echo "$as_me:14222: checking for signed char" >&5
14223 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14224 if test "${ac_cv_type_signed_char+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 cat >"conftest.$ac_ext" <<_ACEOF
14228 #line 14228 "configure"
14229 #include "confdefs.h"
14230 $ac_includes_default
14234 if ((signed char *) 0)
14236 if (sizeof (signed char))
14242 rm -f "conftest.$ac_objext"
14243 if { (eval echo "$as_me:14243: \"$ac_compile\"") >&5
14244 (eval $ac_compile) 2>&5
14246 echo "$as_me:14246: \$? = $ac_status" >&5
14247 (exit "$ac_status"); } &&
14248 { ac_try='test -s "conftest.$ac_objext"'
14249 { (eval echo "$as_me:14249: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:14252: \$? = $ac_status" >&5
14253 (exit "$ac_status"); }; }; then
14254 ac_cv_type_signed_char=yes
14256 echo "$as_me: failed program was:" >&5
14257 cat "conftest.$ac_ext" >&5
14258 ac_cv_type_signed_char=no
14260 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14262 echo "$as_me:14262: result: $ac_cv_type_signed_char" >&5
14263 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14265 echo "$as_me:14265: checking size of signed char" >&5
14266 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14267 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 if test "$ac_cv_type_signed_char" = yes; then
14271 if test "$cross_compiling" = yes; then
14272 # Depending upon the size, compute the lo and hi bounds.
14273 cat >"conftest.$ac_ext" <<_ACEOF
14274 #line 14274 "configure"
14275 #include "confdefs.h"
14276 $ac_includes_default
14280 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14285 rm -f "conftest.$ac_objext"
14286 if { (eval echo "$as_me:14286: \"$ac_compile\"") >&5
14287 (eval $ac_compile) 2>&5
14289 echo "$as_me:14289: \$? = $ac_status" >&5
14290 (exit "$ac_status"); } &&
14291 { ac_try='test -s "conftest.$ac_objext"'
14292 { (eval echo "$as_me:14292: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:14295: \$? = $ac_status" >&5
14296 (exit "$ac_status"); }; }; then
14299 cat >"conftest.$ac_ext" <<_ACEOF
14300 #line 14300 "configure"
14301 #include "confdefs.h"
14302 $ac_includes_default
14306 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14311 rm -f "conftest.$ac_objext"
14312 if { (eval echo "$as_me:14312: \"$ac_compile\"") >&5
14313 (eval $ac_compile) 2>&5
14315 echo "$as_me:14315: \$? = $ac_status" >&5
14316 (exit "$ac_status"); } &&
14317 { ac_try='test -s "conftest.$ac_objext"'
14318 { (eval echo "$as_me:14318: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 echo "$as_me:14321: \$? = $ac_status" >&5
14322 (exit "$ac_status"); }; }; then
14323 ac_hi=$ac_mid; break
14325 echo "$as_me: failed program was:" >&5
14326 cat "conftest.$ac_ext" >&5
14327 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14329 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14332 echo "$as_me: failed program was:" >&5
14333 cat "conftest.$ac_ext" >&5
14336 cat >"conftest.$ac_ext" <<_ACEOF
14337 #line 14337 "configure"
14338 #include "confdefs.h"
14339 $ac_includes_default
14343 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14348 rm -f "conftest.$ac_objext"
14349 if { (eval echo "$as_me:14349: \"$ac_compile\"") >&5
14350 (eval $ac_compile) 2>&5
14352 echo "$as_me:14352: \$? = $ac_status" >&5
14353 (exit "$ac_status"); } &&
14354 { ac_try='test -s "conftest.$ac_objext"'
14355 { (eval echo "$as_me:14355: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:14358: \$? = $ac_status" >&5
14359 (exit "$ac_status"); }; }; then
14360 ac_lo=$ac_mid; break
14362 echo "$as_me: failed program was:" >&5
14363 cat "conftest.$ac_ext" >&5
14364 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14366 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14369 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14370 # Binary search between lo and hi bounds.
14371 while test "x$ac_lo" != "x$ac_hi"; do
14372 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14373 cat >"conftest.$ac_ext" <<_ACEOF
14374 #line 14374 "configure"
14375 #include "confdefs.h"
14376 $ac_includes_default
14380 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14385 rm -f "conftest.$ac_objext"
14386 if { (eval echo "$as_me:14386: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>&5
14389 echo "$as_me:14389: \$? = $ac_status" >&5
14390 (exit "$ac_status"); } &&
14391 { ac_try='test -s "conftest.$ac_objext"'
14392 { (eval echo "$as_me:14392: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:14395: \$? = $ac_status" >&5
14396 (exit "$ac_status"); }; }; then
14399 echo "$as_me: failed program was:" >&5
14400 cat "conftest.$ac_ext" >&5
14401 ac_lo=`expr "$ac_mid" + 1`
14403 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14405 ac_cv_sizeof_signed_char=$ac_lo
14407 if test "$cross_compiling" = yes; then
14408 { { echo "$as_me:14408: error: cannot run test program while cross compiling" >&5
14409 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14410 { (exit 1); exit 1; }; }
14412 cat >"conftest.$ac_ext" <<_ACEOF
14413 #line 14413 "configure"
14414 #include "confdefs.h"
14415 $ac_includes_default
14419 FILE *f = fopen ("conftest.val", "w");
14421 $ac_main_return (1);
14422 fprintf (f, "%ld", (long)(sizeof (signed char)));
14428 rm -f "conftest$ac_exeext"
14429 if { (eval echo "$as_me:14429: \"$ac_link\"") >&5
14430 (eval $ac_link) 2>&5
14432 echo "$as_me:14432: \$? = $ac_status" >&5
14433 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14434 { (eval echo "$as_me:14434: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14437 echo "$as_me:14437: \$? = $ac_status" >&5
14438 (exit "$ac_status"); }; }; then
14439 ac_cv_sizeof_signed_char=`cat conftest.val`
14441 echo "$as_me: program exited with status $ac_status" >&5
14442 echo "$as_me: failed program was:" >&5
14443 cat "conftest.$ac_ext" >&5
14445 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14450 ac_cv_sizeof_signed_char=0
14453 echo "$as_me:14453: result: $ac_cv_sizeof_signed_char" >&5
14454 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14455 cat >>confdefs.h <<EOF
14456 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14459 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14460 NCURSES_SBOOL="signed char"
14462 NCURSES_SBOOL="char"
14464 echo "$as_me:14464: checking if you want to use signed Boolean array in term.h" >&5
14465 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14467 # Check whether --enable-signed-char or --disable-signed-char was given.
14468 if test "${enable_signed_char+set}" = set; then
14469 enableval="$enable_signed_char"
14470 with_signed_char=$enableval
14472 with_signed_char=$cf_dft_signed_char
14474 echo "$as_me:14474: result: $with_signed_char" >&5
14475 echo "${ECHO_T}$with_signed_char" >&6
14476 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14478 ### use option --with-tparm-arg to override tparm's argument type
14479 echo "$as_me:14479: checking for type of tparm args" >&5
14480 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14482 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14483 if test "${with_tparm_arg+set}" = set; then
14484 withval="$with_tparm_arg"
14485 NCURSES_TPARM_ARG="$withval"
14487 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14489 echo "$as_me:14489: result: $NCURSES_TPARM_ARG" >&5
14490 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14492 ### Enable compiling-in rcs id's
14493 echo "$as_me:14493: checking if RCS identifiers should be compiled-in" >&5
14494 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14496 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14497 if test "${with_rcs_ids+set}" = set; then
14498 withval="$with_rcs_ids"
14499 with_rcs_ids=$withval
14503 echo "$as_me:14503: result: $with_rcs_ids" >&5
14504 echo "${ECHO_T}$with_rcs_ids" >&6
14505 test "x$with_rcs_ids" = xyes &&
14506 cat >>confdefs.h <<\EOF
14507 #define USE_RCS_IDS 1
14510 ###############################################################################
14512 echo "$as_me:14512: checking format of man-pages" >&5
14513 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14515 # Check whether --with-manpage-format or --without-manpage-format was given.
14516 if test "${with_manpage_format+set}" = set; then
14517 withval="$with_manpage_format"
14518 MANPAGE_FORMAT=$withval
14520 MANPAGE_FORMAT=unknown
14523 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14524 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14528 case "$MANPAGE_FORMAT" in
14530 if test -z "$MANPATH" ; then
14531 MANPATH="/usr/man:/usr/share/man"
14534 # look for the 'date' man-page (it is most likely to be installed!)
14540 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14541 for cf_dir in $MANPATH; do
14542 test -z "$cf_dir" && cf_dir=/usr/man
14543 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
14545 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14546 if test "x$cf_test" = "x$cf_name" ; then
14549 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14550 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14551 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14552 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14566 # if we found a match in either man* or cat*, stop looking
14567 if test -n "$MANPAGE_FORMAT" ; then
14569 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14570 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14576 test "$cf_found" = yes && break
14579 # only check the first directory in $MANPATH where we find manpages
14580 if test -n "$MANPAGE_FORMAT" ; then
14584 # if we did not find the example, just assume it is normal
14585 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14589 for cf_option in $MANPAGE_FORMAT; do
14590 case "$cf_option" in
14591 (gzip|compress|BSDI|normal|formatted|catonly)
14594 cf_unknown="$cf_unknown $cf_option"
14601 echo "$as_me:14601: result: $MANPAGE_FORMAT" >&5
14602 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14603 if test -n "$cf_unknown" ; then
14604 { echo "$as_me:14604: WARNING: Unexpected manpage-format $cf_unknown" >&5
14605 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14608 echo "$as_me:14608: checking for manpage renaming" >&5
14609 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14611 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14612 if test "${with_manpage_renames+set}" = set; then
14613 withval="$with_manpage_renames"
14614 MANPAGE_RENAMES=$withval
14616 MANPAGE_RENAMES=yes
14619 case ".$MANPAGE_RENAMES" in
14623 # Debian 'man' program?
14624 if test -f /etc/debian_version ; then
14625 MANPAGE_RENAMES=`cd "$srcdir" && pwd`/man/man_db.renames
14632 if test "$MANPAGE_RENAMES" != no ; then
14633 if test -f "$srcdir/man/$MANPAGE_RENAMES" ; then
14634 MANPAGE_RENAMES=`cd "$srcdir/man" && pwd`/$MANPAGE_RENAMES
14635 elif test ! -f "$MANPAGE_RENAMES" ; then
14636 { { echo "$as_me:14636: error: not a filename: $MANPAGE_RENAMES" >&5
14637 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14638 { (exit 1); exit 1; }; }
14641 test ! -d man && mkdir man
14643 # Construct a sed-script to perform renaming within man-pages
14644 if test -n "$MANPAGE_RENAMES" ; then
14645 test ! -d man && mkdir man
14646 $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
14650 echo "$as_me:14650: result: $MANPAGE_RENAMES" >&5
14651 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14653 echo "$as_me:14653: checking if manpage aliases will be installed" >&5
14654 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14656 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14657 if test "${with_manpage_aliases+set}" = set; then
14658 withval="$with_manpage_aliases"
14659 MANPAGE_ALIASES=$withval
14661 MANPAGE_ALIASES=yes
14664 echo "$as_me:14664: result: $MANPAGE_ALIASES" >&5
14665 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14669 cf_use_symlinks=yes
14676 MANPAGE_SYMLINKS=no
14677 if test "$MANPAGE_ALIASES" = yes ; then
14678 echo "$as_me:14678: checking if manpage symlinks should be used" >&5
14679 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14681 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14682 if test "${with_manpage_symlinks+set}" = set; then
14683 withval="$with_manpage_symlinks"
14684 MANPAGE_SYMLINKS=$withval
14686 MANPAGE_SYMLINKS=$cf_use_symlinks
14689 if test "$$cf_use_symlinks" = no; then
14690 if test "$MANPAGE_SYMLINKS" = yes ; then
14691 { echo "$as_me:14691: WARNING: cannot make symlinks" >&5
14692 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14693 MANPAGE_SYMLINKS=no
14697 echo "$as_me:14697: result: $MANPAGE_SYMLINKS" >&5
14698 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14701 echo "$as_me:14701: checking for manpage tbl" >&5
14702 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14704 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14705 if test "${with_manpage_tbl+set}" = set; then
14706 withval="$with_manpage_tbl"
14707 MANPAGE_TBL=$withval
14712 echo "$as_me:14712: result: $MANPAGE_TBL" >&5
14713 echo "${ECHO_T}$MANPAGE_TBL" >&6
14715 if test "$prefix" = "NONE" ; then
14716 cf_prefix="$ac_default_prefix"
14718 cf_prefix="$prefix"
14721 case "$MANPAGE_FORMAT" in
14736 test ! -d man && mkdir man
14740 case "$MANPAGE_FORMAT" in
14743 cf_compress=compress
14751 cf_edit_man=./edit_man.sh
14752 cf_man_alias=`pwd`/man_alias.sed
14754 cat >$cf_edit_man <<CF_EOF
14756 # this script is generated by the configure-script CF_MAN_PAGES macro.
14758 prefix="$cf_prefix"
14759 datarootdir="$datarootdir"
14762 NCURSES_MAJOR="$NCURSES_MAJOR"
14763 NCURSES_MINOR="$NCURSES_MINOR"
14764 NCURSES_PATCH="$NCURSES_PATCH"
14766 NCURSES_OSPEED="$NCURSES_OSPEED"
14767 TERMINFO="$TERMINFO"
14770 INSTALL_DATA="$INSTALL_DATA"
14772 transform="$program_transform_name"
14774 TMP=\${TMPDIR:=/tmp}/man\$\$
14775 trap "rm -f \$TMP" 0 1 2 3 15
14787 top_srcdir=\$srcdir/..
14790 if test "\$form" = normal ; then
14791 if test "$cf_format" = yes ; then
14792 if test "$cf_inboth" = no ; then
14793 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14797 cf_subdir=\$mandir/man
14798 cf_tables=$MANPAGE_TBL
14800 cf_subdir=\$mandir/cat
14804 # process the list of source-files
14805 for i in "\$@" ; do
14809 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14810 if test "\$verb" = installing ; then
14811 if test ! -d "\$cf_subdir\${section}" ; then
14812 mkdir -p "\$cf_subdir\$section"
14816 # replace variables in man page
14817 if test ! -f "$cf_man_alias" ; then
14818 cat >>$cf_man_alias <<-CF_EOF2
14819 s,@DATADIR@,\$datadir,g
14820 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14821 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14822 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14823 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14824 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14825 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14828 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14830 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14831 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
14832 cat >>$cf_edit_man <<-CF_EOF
14833 s,@$cf_NAME@,$cf_name,g
14837 cat >>$cf_edit_man <<CF_EOF
14839 echo "...made $cf_man_alias"
14843 cf_source=\`basename "\$i"\`
14844 inalias=\$cf_source
14845 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias"
14846 if test ! -f "\$inalias" ; then
14847 echo ".. skipped \$cf_source"
14852 if test "$MANPAGE_ALIASES" != no ; then
14853 cat >>$cf_edit_man <<CF_EOF
14855 test "$with_curses_h" = yes && nCurses=ncurses.3x
14856 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\`
14860 if test "$MANPAGE_RENAMES" = no ; then
14861 cat >>$cf_edit_man <<CF_EOF
14862 # perform program transformations for section 1 man pages
14863 if test \$section = 1 ; then
14864 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14866 cf_target=\$cf_subdir\${section}/\$cf_source
14870 cat >>$cf_edit_man <<CF_EOF
14871 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14872 if test -z "\$cf_target" ; then
14873 echo "? missing rename for \$cf_source"
14874 cf_target="\$cf_source"
14876 cf_target="\$cf_subdir\${section}/\${cf_target}"
14881 cat >>$cf_edit_man <<CF_EOF
14882 sed -f "$cf_man_alias" \\
14885 if test -f "$MANPAGE_RENAMES" ; then
14886 cat >>$cf_edit_man <<CF_EOF
14887 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
14890 cat >>$cf_edit_man <<CF_EOF
14895 cat >>$cf_edit_man <<CF_EOF
14896 if test \$cf_tables = yes ; then
14897 tbl \$TMP >\$TMP.out
14902 if test "$with_overwrite" != yes ; then
14903 cat >>$cf_edit_man <<CF_EOF
14904 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14909 if test "$with_curses_h" != yes ; then
14910 cat >>$cf_edit_man <<CF_EOF
14911 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14916 cat >>$cf_edit_man <<CF_EOF
14917 if test "\$form" = format ; then
14918 nroff -man \$TMP >\$TMP.out
14923 if test -n "$cf_compress" ; then
14924 cat >>$cf_edit_man <<CF_EOF
14925 if test "\$verb" = installing ; then
14926 if ( "$cf_compress" -f \$TMP )
14928 mv \$TMP.$cf_so_strip \$TMP
14931 cf_target="\$cf_target.$cf_so_strip"
14935 case "$MANPAGE_FORMAT" in
14937 cat >>$cf_edit_man <<CF_EOF
14938 if test "\$form" = format ; then
14939 # BSDI installs only .0 suffixes in the cat directories
14940 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
14946 cat >>$cf_edit_man <<CF_EOF
14947 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
14948 if test "\$verb" = installing ; then
14949 echo "\$verb \$cf_target"
14950 \$INSTALL_DATA \$TMP "\$cf_target"
14951 test -d "\$cf_subdir\${section}" &&
14952 test -n "\$aliases" && (
14953 cd "\$cf_subdir\${section}" && (
14954 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
14955 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\`
14956 cf_target=\`basename "\$cf_target"\`
14957 for cf_alias in \$aliases
14959 if test "\$section" = 1 ; then
14960 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14963 if test "$MANPAGE_SYMLINKS" = yes ; then
14964 if test -f "\$cf_alias\${suffix}" ; then
14965 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
14970 echo ".. \$verb alias \$cf_alias\${suffix}"
14974 cat >>$cf_edit_man <<CF_EOF
14975 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14979 cat >>$cf_edit_man <<CF_EOF
14980 rm -f "\$cf_alias\${suffix}"
14981 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14985 cat >>$cf_edit_man <<CF_EOF
14986 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14987 echo ".so \$cf_source" >\$TMP
14989 if test -n "$cf_compress" ; then
14990 cat >>$cf_edit_man <<CF_EOF
14991 if test -n "$cf_so_strip" ; then
14992 "$cf_compress" -f \$TMP
14993 mv \$TMP.$cf_so_strip \$TMP
14997 cat >>$cf_edit_man <<CF_EOF
14998 echo ".. \$verb alias \$cf_alias\${suffix}"
14999 rm -f "\$cf_alias\${suffix}"
15000 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15005 elif test "\$verb" = removing ; then
15006 test -f "\$cf_target" && (
15007 echo "\$verb \$cf_target"
15008 rm -f "\$cf_target"
15010 test -d "\$cf_subdir\${section}" &&
15011 test -n "\$aliases" && (
15012 cd "\$cf_subdir\${section}" && (
15013 for cf_alias in \$aliases
15015 if test "\$section" = 1 ; then
15016 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15019 echo ".. \$verb alias \$cf_alias\${suffix}"
15020 rm -f "\$cf_alias\${suffix}"
15032 if test "$cf_inboth" = yes ; then
15033 if test "\$form" != format ; then
15034 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15040 chmod 755 "$cf_edit_man"
15042 ###############################################################################
15044 ### Note that some functions (such as const) are normally disabled anyway.
15045 echo "$as_me:15045: checking if you want to build with function extensions" >&5
15046 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15048 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15049 if test "${enable_ext_funcs+set}" = set; then
15050 enableval="$enable_ext_funcs"
15051 with_ext_funcs=$enableval
15055 echo "$as_me:15055: result: $with_ext_funcs" >&5
15056 echo "${ECHO_T}$with_ext_funcs" >&6
15057 if test "x$with_ext_funcs" = xyes ; then
15058 NCURSES_EXT_FUNCS=1
15060 cat >>confdefs.h <<\EOF
15061 #define NCURSES_EXT_FUNCS 1
15064 cat >>confdefs.h <<\EOF
15065 #define HAVE_ASSUME_DEFAULT_COLORS 1
15068 cat >>confdefs.h <<\EOF
15069 #define HAVE_CURSES_VERSION 1
15072 cat >>confdefs.h <<\EOF
15073 #define HAVE_HAS_KEY 1
15076 cat >>confdefs.h <<\EOF
15077 #define HAVE_RESIZETERM 1
15080 cat >>confdefs.h <<\EOF
15081 #define HAVE_RESIZE_TERM 1
15084 cat >>confdefs.h <<\EOF
15085 #define HAVE_TERM_ENTRY_H 1
15088 cat >>confdefs.h <<\EOF
15089 #define HAVE_USE_DEFAULT_COLORS 1
15092 cat >>confdefs.h <<\EOF
15093 #define HAVE_USE_EXTENDED_NAMES 1
15096 cat >>confdefs.h <<\EOF
15097 #define HAVE_USE_SCREEN 1
15100 cat >>confdefs.h <<\EOF
15101 #define HAVE_USE_WINDOW 1
15104 cat >>confdefs.h <<\EOF
15105 #define HAVE_WRESIZE 1
15108 GENERATED_EXT_FUNCS=generated
15109 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15111 NCURSES_EXT_FUNCS=0
15112 GENERATED_EXT_FUNCS=
15115 echo "$as_me:15115: checking if you want to build with SCREEN extensions" >&5
15116 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15118 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15119 if test "${enable_sp_funcs+set}" = set; then
15120 enableval="$enable_sp_funcs"
15121 with_sp_funcs=$enableval
15123 with_sp_funcs=$cf_dft_ext_spfuncs
15125 echo "$as_me:15125: result: $with_sp_funcs" >&5
15126 echo "${ECHO_T}$with_sp_funcs" >&6
15127 if test "x$with_sp_funcs" = xyes ; then
15130 cat >>confdefs.h <<\EOF
15131 #define NCURSES_SP_FUNCS 1
15134 cat >>confdefs.h <<\EOF
15135 #define HAVE_TPUTS_SP 1
15138 GENERATED_SP_FUNCS=generated
15141 GENERATED_SP_FUNCS=
15144 echo "$as_me:15144: checking if you want to build with terminal-driver" >&5
15145 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15147 # Check whether --enable-term-driver or --disable-term-driver was given.
15148 if test "${enable_term_driver+set}" = set; then
15149 enableval="$enable_term_driver"
15150 with_term_driver=$enableval
15152 with_term_driver=no
15154 echo "$as_me:15154: result: $with_term_driver" >&5
15155 echo "${ECHO_T}$with_term_driver" >&6
15156 if test "x$with_term_driver" = xyes ; then
15158 cat >>confdefs.h <<\EOF
15159 #define USE_TERM_DRIVER 1
15162 if test "x$with_termlib" != xno ; then
15163 { { echo "$as_me:15163: error: The term-driver option conflicts with the termlib option" >&5
15164 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15165 { (exit 1); exit 1; }; }
15167 if test "x$with_sp_funcs" != xyes ; then
15168 { { echo "$as_me:15168: error: The term-driver option relies upon sp-funcs" >&5
15169 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15170 { (exit 1); exit 1; }; }
15174 ### use option --enable-const to turn on use of const beyond that in XSI.
15175 echo "$as_me:15175: checking for extended use of const keyword" >&5
15176 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15178 # Check whether --enable-const or --disable-const was given.
15179 if test "${enable_const+set}" = set; then
15180 enableval="$enable_const"
15181 with_ext_const=$enableval
15183 with_ext_const=$cf_dft_ext_const
15185 echo "$as_me:15185: result: $with_ext_const" >&5
15186 echo "${ECHO_T}$with_ext_const" >&6
15187 NCURSES_CONST='/*nothing*/'
15188 if test "x$with_ext_const" = xyes ; then
15189 NCURSES_CONST=const
15192 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15193 echo "$as_me:15193: checking if you want to use extended colors" >&5
15194 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15196 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15197 if test "${enable_ext_colors+set}" = set; then
15198 enableval="$enable_ext_colors"
15199 with_ext_colors=$enableval
15201 with_ext_colors=$cf_dft_ext_colors
15203 echo "$as_me:15203: result: $with_ext_colors" >&5
15204 echo "${ECHO_T}$with_ext_colors" >&6
15205 NCURSES_EXT_COLORS=0
15206 if test "x$with_ext_colors" = xyes ; then
15207 if test "x$with_widec" != xyes ; then
15208 { echo "$as_me:15208: WARNING: This option applies only to wide-character library" >&5
15209 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15211 # cannot be ABI 5 since it changes sizeof(cchar_t)
15213 if test "${with_abi_version+set}" != set; then
15214 case "$cf_cv_rel_version" in
15216 cf_cv_rel_version=6.0
15217 cf_cv_abi_version=6
15218 { echo "$as_me:15218: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15219 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15224 NCURSES_EXT_COLORS=1
15226 cat >>confdefs.h <<\EOF
15227 #define NCURSES_EXT_COLORS 1
15230 cat >>confdefs.h <<\EOF
15231 #define HAVE_ALLOC_PAIR 1
15234 cat >>confdefs.h <<\EOF
15235 #define HAVE_INIT_EXTENDED_COLOR 1
15238 cat >>confdefs.h <<\EOF
15239 #define HAVE_RESET_COLOR_PAIRS 1
15245 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15246 echo "$as_me:15246: checking if you want to use extended mouse encoding" >&5
15247 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15249 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15250 if test "${enable_ext_mouse+set}" = set; then
15251 enableval="$enable_ext_mouse"
15252 with_ext_mouse=$enableval
15254 with_ext_mouse=$cf_dft_ext_mouse
15256 echo "$as_me:15256: result: $with_ext_mouse" >&5
15257 echo "${ECHO_T}$with_ext_mouse" >&6
15258 if test "x$with_ext_mouse" = xyes ; then
15260 if test "${with_abi_version+set}" != set; then
15261 case "$cf_cv_rel_version" in
15263 cf_cv_rel_version=6.0
15264 cf_cv_abi_version=6
15265 { echo "$as_me:15265: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15266 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15273 case $cf_cv_abi_version in
15275 NCURSES_MOUSE_VERSION=1
15278 NCURSES_MOUSE_VERSION=2
15281 NCURSES_MOUSE_VERSION=3
15285 ### use option --enable-ext-putwin to turn on extended screendumps
15286 echo "$as_me:15286: checking if you want to use extended putwin/screendump" >&5
15287 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15289 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15290 if test "${enable_ext_putwin+set}" = set; then
15291 enableval="$enable_ext_putwin"
15292 with_ext_putwin=$enableval
15294 with_ext_putwin=$cf_dft_ext_putwin
15296 echo "$as_me:15296: result: $with_ext_putwin" >&5
15297 echo "${ECHO_T}$with_ext_putwin" >&6
15298 if test "x$with_ext_putwin" = xyes ; then
15300 cat >>confdefs.h <<\EOF
15301 #define NCURSES_EXT_PUTWIN 1
15306 echo "$as_me:15306: checking if you want \$NCURSES_NO_PADDING code" >&5
15307 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15309 # Check whether --enable-no-padding or --disable-no-padding was given.
15310 if test "${enable_no_padding+set}" = set; then
15311 enableval="$enable_no_padding"
15312 with_no_padding=$enableval
15314 with_no_padding=$with_ext_funcs
15316 echo "$as_me:15316: result: $with_no_padding" >&5
15317 echo "${ECHO_T}$with_no_padding" >&6
15318 test "x$with_no_padding" = xyes &&
15319 cat >>confdefs.h <<\EOF
15320 #define NCURSES_NO_PADDING 1
15323 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15324 echo "$as_me:15324: checking if you want SIGWINCH handler" >&5
15325 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15327 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15328 if test "${enable_sigwinch+set}" = set; then
15329 enableval="$enable_sigwinch"
15330 with_sigwinch=$enableval
15332 with_sigwinch=$with_ext_funcs
15334 echo "$as_me:15334: result: $with_sigwinch" >&5
15335 echo "${ECHO_T}$with_sigwinch" >&6
15336 test "x$with_sigwinch" = xyes &&
15337 cat >>confdefs.h <<\EOF
15338 #define USE_SIGWINCH 1
15341 ### use option --enable-tcap-names to allow user to define new capabilities
15342 echo "$as_me:15342: checking if you want user-definable terminal capabilities like termcap" >&5
15343 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15345 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15346 if test "${enable_tcap_names+set}" = set; then
15347 enableval="$enable_tcap_names"
15348 with_tcap_names=$enableval
15350 with_tcap_names=$with_ext_funcs
15352 echo "$as_me:15352: result: $with_tcap_names" >&5
15353 echo "${ECHO_T}$with_tcap_names" >&6
15355 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
15357 ##############################################################################
15359 echo "$as_me:15359: checking if you want to link with the pthread library" >&5
15360 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15362 # Check whether --with-pthread or --without-pthread was given.
15363 if test "${with_pthread+set}" = set; then
15364 withval="$with_pthread"
15365 with_pthread=$withval
15369 echo "$as_me:15369: result: $with_pthread" >&5
15370 echo "${ECHO_T}$with_pthread" >&6
15372 if test "$with_pthread" != no ; then
15373 echo "$as_me:15373: checking for pthread.h" >&5
15374 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15375 if test "${ac_cv_header_pthread_h+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 cat >"conftest.$ac_ext" <<_ACEOF
15379 #line 15379 "configure"
15380 #include "confdefs.h"
15381 #include <pthread.h>
15383 if { (eval echo "$as_me:15383: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15384 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15386 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15388 cat conftest.err >&5
15389 echo "$as_me:15389: \$? = $ac_status" >&5
15390 (exit "$ac_status"); } >/dev/null; then
15391 if test -s conftest.err; then
15392 ac_cpp_err=$ac_c_preproc_warn_flag
15399 if test -z "$ac_cpp_err"; then
15400 ac_cv_header_pthread_h=yes
15402 echo "$as_me: failed program was:" >&5
15403 cat "conftest.$ac_ext" >&5
15404 ac_cv_header_pthread_h=no
15406 rm -f conftest.err "conftest.$ac_ext"
15408 echo "$as_me:15408: result: $ac_cv_header_pthread_h" >&5
15409 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15410 if test "$ac_cv_header_pthread_h" = yes; then
15412 cat >>confdefs.h <<\EOF
15413 #define HAVE_PTHREADS_H 1
15416 for cf_lib_pthread in pthread c_r
15418 echo "$as_me:15418: checking if we can link with the $cf_lib_pthread library" >&5
15419 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15420 cf_save_LIBS="$LIBS"
15422 cf_add_libs="$LIBS"
15425 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15426 # filter duplicates
15427 for cf_add_1lib in $cf_add_0lib; do
15428 for cf_add_2lib in $cf_add_libs; do
15429 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15434 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15436 LIBS="$cf_add_libs"
15438 cat >"conftest.$ac_ext" <<_ACEOF
15439 #line 15439 "configure"
15440 #include "confdefs.h"
15442 #include <pthread.h>
15448 int rc = pthread_create(0,0,0,0);
15449 int r2 = pthread_mutexattr_settype(0, 0);
15455 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15456 if { (eval echo "$as_me:15456: \"$ac_link\"") >&5
15457 (eval $ac_link) 2>&5
15459 echo "$as_me:15459: \$? = $ac_status" >&5
15460 (exit "$ac_status"); } &&
15461 { ac_try='test -s "conftest$ac_exeext"'
15462 { (eval echo "$as_me:15462: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:15465: \$? = $ac_status" >&5
15466 (exit "$ac_status"); }; }; then
15469 echo "$as_me: failed program was:" >&5
15470 cat "conftest.$ac_ext" >&5
15473 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15474 LIBS="$cf_save_LIBS"
15475 echo "$as_me:15475: result: $with_pthread" >&5
15476 echo "${ECHO_T}$with_pthread" >&6
15477 test "$with_pthread" = yes && break
15480 if test "$with_pthread" = yes ; then
15482 cf_add_libs="$LIBS"
15485 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15486 # filter duplicates
15487 for cf_add_1lib in $cf_add_0lib; do
15488 for cf_add_2lib in $cf_add_libs; do
15489 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15494 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15496 LIBS="$cf_add_libs"
15498 cat >>confdefs.h <<\EOF
15499 #define HAVE_LIBPTHREADS 1
15503 { { echo "$as_me:15503: error: Cannot link with pthread library" >&5
15504 echo "$as_me: error: Cannot link with pthread library" >&2;}
15505 { (exit 1); exit 1; }; }
15512 if test "x$with_pthread" != xno; then
15513 echo "$as_me:15513: checking for pthread_kill" >&5
15514 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15515 if test "${ac_cv_func_pthread_kill+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 cat >"conftest.$ac_ext" <<_ACEOF
15519 #line 15519 "configure"
15520 #include "confdefs.h"
15521 #define pthread_kill autoconf_temporary
15522 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15523 #undef pthread_kill
15529 /* We use char because int might match the return type of a gcc2
15530 builtin and then its argument prototype would still apply. */
15531 char pthread_kill (void);
15537 /* The GNU C library defines stubs for functions which it implements
15538 to always fail with ENOSYS. Some functions are actually named
15539 something starting with __ and the normal name is an alias. */
15540 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15541 #error found stub for pthread_kill
15544 return pthread_kill ();
15549 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15550 if { (eval echo "$as_me:15550: \"$ac_link\"") >&5
15551 (eval $ac_link) 2>&5
15553 echo "$as_me:15553: \$? = $ac_status" >&5
15554 (exit "$ac_status"); } &&
15555 { ac_try='test -s "conftest$ac_exeext"'
15556 { (eval echo "$as_me:15556: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:15559: \$? = $ac_status" >&5
15560 (exit "$ac_status"); }; }; then
15561 ac_cv_func_pthread_kill=yes
15563 echo "$as_me: failed program was:" >&5
15564 cat "conftest.$ac_ext" >&5
15565 ac_cv_func_pthread_kill=no
15567 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15569 echo "$as_me:15569: result: $ac_cv_func_pthread_kill" >&5
15570 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15571 if test "$ac_cv_func_pthread_kill" = yes; then
15573 echo "$as_me:15573: checking if you want to allow EINTR in wgetch with pthreads" >&5
15574 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15576 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15577 if test "${enable_pthreads_eintr+set}" = set; then
15578 enableval="$enable_pthreads_eintr"
15579 use_pthreads_eintr=$enableval
15581 use_pthreads_eintr=no
15583 echo "$as_me:15583: result: $use_pthreads_eintr" >&5
15584 echo "${ECHO_T}$use_pthreads_eintr" >&6
15585 if test "x$use_pthreads_eintr" = xyes ; then
15587 cat >>confdefs.h <<\EOF
15588 #define USE_PTHREADS_EINTR 1
15594 echo "$as_me:15594: checking if you want to use weak-symbols for pthreads" >&5
15595 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15597 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15598 if test "${enable_weak_symbols+set}" = set; then
15599 enableval="$enable_weak_symbols"
15600 use_weak_symbols=$enableval
15602 use_weak_symbols=no
15604 echo "$as_me:15604: result: $use_weak_symbols" >&5
15605 echo "${ECHO_T}$use_weak_symbols" >&6
15606 if test "x$use_weak_symbols" = xyes ; then
15608 echo "$as_me:15608: checking if $CC supports weak symbols" >&5
15609 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15610 if test "${cf_cv_weak_symbols+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 cat >"conftest.$ac_ext" <<_ACEOF
15615 #line 15615 "configure"
15616 #include "confdefs.h"
15623 #if defined(__GNUC__)
15624 # if defined __USE_ISOC99
15625 # define _cat_pragma(exp) _Pragma(#exp)
15626 # define _weak_pragma(exp) _cat_pragma(weak name)
15628 # define _weak_pragma(exp)
15630 # define _declare(name) __extension__ extern __typeof__(name) name
15631 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15634 weak_symbol(fopen);
15640 rm -f "conftest.$ac_objext"
15641 if { (eval echo "$as_me:15641: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>&5
15644 echo "$as_me:15644: \$? = $ac_status" >&5
15645 (exit "$ac_status"); } &&
15646 { ac_try='test -s "conftest.$ac_objext"'
15647 { (eval echo "$as_me:15647: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:15650: \$? = $ac_status" >&5
15651 (exit "$ac_status"); }; }; then
15652 cf_cv_weak_symbols=yes
15654 echo "$as_me: failed program was:" >&5
15655 cat "conftest.$ac_ext" >&5
15656 cf_cv_weak_symbols=no
15658 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15661 echo "$as_me:15661: result: $cf_cv_weak_symbols" >&5
15662 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15665 cf_cv_weak_symbols=no
15668 if test "x$cf_cv_weak_symbols" = xyes ; then
15670 cat >>confdefs.h <<\EOF
15671 #define USE_WEAK_SYMBOLS 1
15678 if test "x$with_pthread" = "xyes" ; then
15680 cat >>confdefs.h <<\EOF
15681 #define USE_PTHREADS 1
15684 enable_reentrant=yes
15685 if test "x$cf_cv_weak_symbols" = xyes ; then
15688 cf_add_libs="$PRIVATE_LIBS"
15691 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15692 # filter duplicates
15693 for cf_add_1lib in $cf_add_0lib; do
15694 for cf_add_2lib in $cf_add_libs; do
15695 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15700 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15702 PRIVATE_LIBS="$cf_add_libs"
15707 # Reentrant code has to be opaque; there's little advantage to making ncurses
15708 # opaque outside of that, so there is no --enable-opaque option. We can use
15709 # this option without --with-pthreads, but this will be always set for
15711 echo "$as_me:15711: checking if you want reentrant code" >&5
15712 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15714 # Check whether --enable-reentrant or --disable-reentrant was given.
15715 if test "${enable_reentrant+set}" = set; then
15716 enableval="$enable_reentrant"
15717 with_reentrant=$enableval
15721 echo "$as_me:15721: result: $with_reentrant" >&5
15722 echo "${ECHO_T}$with_reentrant" >&6
15723 if test "x$with_reentrant" = xyes ; then
15724 cf_cv_enable_reentrant=1
15725 cf_cv_enable_opaque="NCURSES_INTERNALS"
15727 if test "x$cf_cv_weak_symbols" = xyes ; then
15729 # remove pthread library from $LIBS
15730 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15732 cf_add_libs="$TEST_LIBS"
15735 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15736 # filter duplicates
15737 for cf_add_1lib in $cf_add_0lib; do
15738 for cf_add_2lib in $cf_add_libs; do
15739 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15744 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15746 TEST_LIBS="$cf_add_libs"
15748 cf_add_libs="$TEST_LIBS2"
15751 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15752 # filter duplicates
15753 for cf_add_1lib in $cf_add_0lib; do
15754 for cf_add_2lib in $cf_add_libs; do
15755 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15760 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15762 TEST_LIBS2="$cf_add_libs"
15764 cf_add_libs="$PRIVATE_LIBS"
15767 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15768 # filter duplicates
15769 for cf_add_1lib in $cf_add_0lib; do
15770 for cf_add_2lib in $cf_add_libs; do
15771 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15776 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15778 PRIVATE_LIBS="$cf_add_libs"
15781 # when not using weak symbols but with_reentrant,
15782 # add 't' to the library suffix on all platforms
15783 # except cygwin, where we only do that if ALSO
15784 # compiling with full thread support.
15786 (*cygwin* | *msys*)
15787 if test "$with_pthread" = "yes" ; then
15788 if test "x$disable_lib_suffixes" = "xno" ; then
15789 LIB_SUFFIX="t${LIB_SUFFIX}"
15793 if test "x$disable_lib_suffixes" = "xno" ; then
15794 LIB_SUFFIX="t${LIB_SUFFIX}"
15800 cat >>confdefs.h <<\EOF
15801 #define USE_REENTRANT 1
15804 if test "${with_abi_version+set}" != set; then
15805 case "$cf_cv_rel_version" in
15807 cf_cv_rel_version=6.0
15808 cf_cv_abi_version=6
15809 { echo "$as_me:15809: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15810 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15816 cf_cv_enable_reentrant=0
15817 cf_cv_enable_opaque="NCURSES_OPAQUE"
15818 NCURSES_SIZE_T=$cf_dft_ordinate_type
15821 echo "$as_me:15821: checking if you want opaque curses-library structures" >&5
15822 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15824 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15825 if test "${enable_opaque_curses+set}" = set; then
15826 enableval="$enable_opaque_curses"
15827 test "$enableval" != yes && enableval=no
15828 if test "$enableval" != "no" ; then
15829 enable_opaque_curses=yes
15832 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15833 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
15839 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15840 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
15843 echo "$as_me:15843: result: $enable_opaque_curses" >&5
15844 echo "${ECHO_T}$enable_opaque_curses" >&6
15846 test "$cf_cv_enable_reentrant" = 1 && \
15847 test "$enable_opaque_curses" = no && \
15848 { { echo "$as_me:15848: error: reentrant configuration requires opaque library" >&5
15849 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15850 { (exit 1); exit 1; }; }
15852 echo "$as_me:15852: checking if you want opaque form-library structures" >&5
15853 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15855 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15856 if test "${enable_opaque_form+set}" = set; then
15857 enableval="$enable_opaque_form"
15858 enable_opaque_form=yes
15860 enable_opaque_form=no
15862 echo "$as_me:15862: result: $enable_opaque_form" >&5
15863 echo "${ECHO_T}$enable_opaque_form" >&6
15865 echo "$as_me:15865: checking if you want opaque menu-library structures" >&5
15866 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15868 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15869 if test "${enable_opaque_menu+set}" = set; then
15870 enableval="$enable_opaque_menu"
15871 enable_opaque_menu=yes
15873 enable_opaque_menu=no
15875 echo "$as_me:15875: result: $enable_opaque_menu" >&5
15876 echo "${ECHO_T}$enable_opaque_menu" >&6
15878 echo "$as_me:15878: checking if you want opaque panel-library structures" >&5
15879 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15881 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15882 if test "${enable_opaque_panel+set}" = set; then
15883 enableval="$enable_opaque_panel"
15884 enable_opaque_panel=yes
15886 enable_opaque_panel=no
15888 echo "$as_me:15888: result: $enable_opaque_panel" >&5
15889 echo "${ECHO_T}$enable_opaque_panel" >&6
15891 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15892 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15893 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15894 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15896 ### Allow using a different wrap-prefix
15897 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15898 echo "$as_me:15898: checking for prefix used to wrap public variables" >&5
15899 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15901 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15902 if test "${with_wrap_prefix+set}" = set; then
15903 withval="$with_wrap_prefix"
15904 NCURSES_WRAP_PREFIX=$withval
15906 NCURSES_WRAP_PREFIX=_nc_
15908 echo "$as_me:15908: result: $NCURSES_WRAP_PREFIX" >&5
15909 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15911 NCURSES_WRAP_PREFIX=_nc_
15914 cat >>confdefs.h <<EOF
15915 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15918 ###############################################################################
15919 # These options are relatively safe to experiment with.
15921 echo "$as_me:15921: checking if you want all development code" >&5
15922 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15924 # Check whether --with-develop or --without-develop was given.
15925 if test "${with_develop+set}" = set; then
15926 withval="$with_develop"
15927 with_develop=$withval
15931 echo "$as_me:15931: result: $with_develop" >&5
15932 echo "${ECHO_T}$with_develop" >&6
15934 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15935 echo "$as_me:15935: checking if you want hard-tabs code" >&5
15936 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15938 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15939 if test "${enable_hard_tabs+set}" = set; then
15940 enableval="$enable_hard_tabs"
15943 enable_hard_tabs=$with_develop
15945 echo "$as_me:15945: result: $enable_hard_tabs" >&5
15946 echo "${ECHO_T}$enable_hard_tabs" >&6
15947 test "x$enable_hard_tabs" = xyes &&
15948 cat >>confdefs.h <<\EOF
15949 #define USE_HARD_TABS 1
15952 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15953 echo "$as_me:15953: checking if you want limited support for xmc" >&5
15954 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15956 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15957 if test "${enable_xmc_glitch+set}" = set; then
15958 enableval="$enable_xmc_glitch"
15961 enable_xmc_glitch=$with_develop
15963 echo "$as_me:15963: result: $enable_xmc_glitch" >&5
15964 echo "${ECHO_T}$enable_xmc_glitch" >&6
15965 test "x$enable_xmc_glitch" = xyes &&
15966 cat >>confdefs.h <<\EOF
15967 #define USE_XMC_SUPPORT 1
15970 ###############################################################################
15971 # These are just experimental, probably should not be in a package:
15973 echo "$as_me:15973: checking if you do not want to assume colors are white-on-black" >&5
15974 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15976 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15977 if test "${enable_assumed_color+set}" = set; then
15978 enableval="$enable_assumed_color"
15979 with_assumed_color=$enableval
15981 with_assumed_color=yes
15983 echo "$as_me:15983: result: $with_assumed_color" >&5
15984 echo "${ECHO_T}$with_assumed_color" >&6
15985 test "x$with_assumed_color" = xyes &&
15986 cat >>confdefs.h <<\EOF
15987 #define USE_ASSUMED_COLOR 1
15990 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15991 echo "$as_me:15991: checking if you want hashmap scrolling-optimization code" >&5
15992 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15994 # Check whether --enable-hashmap or --disable-hashmap was given.
15995 if test "${enable_hashmap+set}" = set; then
15996 enableval="$enable_hashmap"
15997 with_hashmap=$enableval
16001 echo "$as_me:16001: result: $with_hashmap" >&5
16002 echo "${ECHO_T}$with_hashmap" >&6
16003 test "x$with_hashmap" = xyes &&
16004 cat >>confdefs.h <<\EOF
16005 #define USE_HASHMAP 1
16008 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16009 echo "$as_me:16009: checking if you want colorfgbg code" >&5
16010 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16012 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16013 if test "${enable_colorfgbg+set}" = set; then
16014 enableval="$enable_colorfgbg"
16015 with_colorfgbg=$enableval
16019 echo "$as_me:16019: result: $with_colorfgbg" >&5
16020 echo "${ECHO_T}$with_colorfgbg" >&6
16021 test "x$with_colorfgbg" = xyes &&
16022 cat >>confdefs.h <<\EOF
16023 #define USE_COLORFGBG 1
16026 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16027 echo "$as_me:16027: checking if you want to use gcc -fvisibility option" >&5
16028 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16030 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16031 if test "${enable_fvisibility+set}" = set; then
16032 enableval="$enable_fvisibility"
16033 cf_with_fvisibility=$enableval
16035 cf_with_fvisibility=no
16037 echo "$as_me:16037: result: $cf_with_fvisibility" >&5
16038 echo "${ECHO_T}$cf_with_fvisibility" >&6
16041 NCURSES_CXX_IMPEXP=
16042 if test "x$cf_with_fvisibility" = xyes; then
16044 echo "$as_me:16044: checking if $CC -fvisibility=hidden option works" >&5
16045 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16046 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16047 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 cf_save_cflags="$CFLAGS"
16051 CFLAGS="$CFLAGS -fvisibility=hidden"
16052 cat >"conftest.$ac_ext" <<_ACEOF
16053 #line 16053 "configure"
16054 #include "confdefs.h"
16056 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16062 if (somefunc()) return 1;
16068 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16069 if { (eval echo "$as_me:16069: \"$ac_link\"") >&5
16070 (eval $ac_link) 2>&5
16072 echo "$as_me:16072: \$? = $ac_status" >&5
16073 (exit "$ac_status"); } &&
16074 { ac_try='test -s "conftest$ac_exeext"'
16075 { (eval echo "$as_me:16075: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16078 echo "$as_me:16078: \$? = $ac_status" >&5
16079 (exit "$ac_status"); }; }; then
16080 cf_cv_fvisibility_hidden=yes
16082 echo "$as_me: failed program was:" >&5
16083 cat "conftest.$ac_ext" >&5
16084 cf_cv_fvisibility_hidden=no
16086 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16087 CFLAGS=$cf_save_cflags
16090 echo "$as_me:16090: result: $cf_cv_fvisibility_hidden" >&5
16091 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16093 if test "x$cf_cv_fvisibility_hidden" = xyes
16099 cf_new_extra_cppflags=
16101 for cf_add_cflags in -fvisibility=hidden
16103 case "$cf_fix_cppflags" in
16105 case "$cf_add_cflags" in
16106 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16107 case "$cf_add_cflags" in
16109 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16111 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16112 && test -z "${cf_tst_cflags}" \
16113 && cf_fix_cppflags=yes
16115 if test "$cf_fix_cppflags" = yes ; then
16117 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16118 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16121 elif test "${cf_tst_cflags}" = "\"'" ; then
16123 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16124 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16130 case "$CPPFLAGS" in
16134 case "$cf_add_cflags" in
16136 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16138 CPPFLAGS=`echo "$CPPFLAGS" | \
16139 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16140 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16145 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16146 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16153 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16154 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16161 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16162 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16164 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16166 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16167 && test -z "${cf_tst_cflags}" \
16168 && cf_fix_cppflags=no
16173 if test -n "$cf_new_cflags" ; then
16175 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16176 CFLAGS="${CFLAGS}$cf_new_cflags"
16180 if test -n "$cf_new_cppflags" ; then
16182 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16183 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16187 if test -n "$cf_new_extra_cppflags" ; then
16189 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16190 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16194 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16199 ac_cpp='$CXXCPP $CPPFLAGS'
16200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16201 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16203 ac_main_return="return"
16205 echo "$as_me:16205: checking if $CXX -fvisibility=hidden option works" >&5
16206 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16207 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 cf_save_cflags="$CXXFLAGS"
16212 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16213 cat >"conftest.$ac_ext" <<_ACEOF
16214 #line 16214 "configure"
16215 #include "confdefs.h"
16217 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16223 if (somefunc()) return 1;
16229 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16230 if { (eval echo "$as_me:16230: \"$ac_link\"") >&5
16231 (eval $ac_link) 2>&5
16233 echo "$as_me:16233: \$? = $ac_status" >&5
16234 (exit "$ac_status"); } &&
16235 { ac_try='test -s "conftest$ac_exeext"'
16236 { (eval echo "$as_me:16236: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16239 echo "$as_me:16239: \$? = $ac_status" >&5
16240 (exit "$ac_status"); }; }; then
16241 cf_cv_fvisibility_hidden2=yes
16243 echo "$as_me: failed program was:" >&5
16244 cat "conftest.$ac_ext" >&5
16245 cf_cv_fvisibility_hidden2=no
16247 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16248 CXXFLAGS=$cf_save_cflags
16251 echo "$as_me:16251: result: $cf_cv_fvisibility_hidden2" >&5
16252 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16254 if test "x$cf_cv_fvisibility_hidden2" = xyes
16257 cf_save_CXXFLAGS="$CFLAGS"
16263 cf_new_extra_cppflags=
16265 for cf_add_cflags in -fvisibility=hidden
16267 case "$cf_fix_cppflags" in
16269 case "$cf_add_cflags" in
16270 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16271 case "$cf_add_cflags" in
16273 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16275 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16276 && test -z "${cf_tst_cflags}" \
16277 && cf_fix_cppflags=yes
16279 if test "$cf_fix_cppflags" = yes ; then
16281 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16282 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16285 elif test "${cf_tst_cflags}" = "\"'" ; then
16287 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16288 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16294 case "$CPPFLAGS" in
16298 case "$cf_add_cflags" in
16300 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16302 CPPFLAGS=`echo "$CPPFLAGS" | \
16303 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16304 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16309 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16310 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16317 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16318 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16325 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16326 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16328 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16330 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16331 && test -z "${cf_tst_cflags}" \
16332 && cf_fix_cppflags=no
16337 if test -n "$cf_new_cflags" ; then
16339 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16340 CFLAGS="${CFLAGS}$cf_new_cflags"
16344 if test -n "$cf_new_cppflags" ; then
16346 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16347 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16351 if test -n "$cf_new_extra_cppflags" ; then
16353 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16354 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16359 CFLAGS="$cf_save_CXXFLAGS"
16361 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16364 ac_cpp='$CPP $CPPFLAGS'
16365 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16366 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16368 ac_main_return="return"
16373 ### use option --enable-interop to turn on use of bindings used for interop
16374 echo "$as_me:16374: checking if you want interop bindings" >&5
16375 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16377 # Check whether --enable-interop or --disable-interop was given.
16378 if test "${enable_interop+set}" = set; then
16379 enableval="$enable_interop"
16380 with_exp_interop=$enableval
16382 with_exp_interop=$cf_dft_interop
16384 echo "$as_me:16384: result: $with_exp_interop" >&5
16385 echo "${ECHO_T}$with_exp_interop" >&6
16387 NCURSES_INTEROP_FUNCS=0
16388 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16390 echo "$as_me:16390: checking if you want experimental safe-sprintf code" >&5
16391 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16393 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16394 if test "${enable_safe_sprintf+set}" = set; then
16395 enableval="$enable_safe_sprintf"
16396 with_safe_sprintf=$enableval
16398 with_safe_sprintf=no
16400 echo "$as_me:16400: result: $with_safe_sprintf" >&5
16401 echo "${ECHO_T}$with_safe_sprintf" >&6
16403 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16404 # when hashmap is used scroll hints are useless
16405 if test "$with_hashmap" = no ; then
16406 echo "$as_me:16406: checking if you want to experiment without scrolling-hints code" >&5
16407 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16409 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16410 if test "${enable_scroll_hints+set}" = set; then
16411 enableval="$enable_scroll_hints"
16412 with_scroll_hints=$enableval
16414 with_scroll_hints=yes
16416 echo "$as_me:16416: result: $with_scroll_hints" >&5
16417 echo "${ECHO_T}$with_scroll_hints" >&6
16418 test "x$with_scroll_hints" = xyes &&
16419 cat >>confdefs.h <<\EOF
16420 #define USE_SCROLL_HINTS 1
16425 echo "$as_me:16425: checking if you want wgetch-events code" >&5
16426 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16428 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16429 if test "${enable_wgetch_events+set}" = set; then
16430 enableval="$enable_wgetch_events"
16431 with_wgetch_events=$enableval
16433 with_wgetch_events=no
16435 echo "$as_me:16435: result: $with_wgetch_events" >&5
16436 echo "${ECHO_T}$with_wgetch_events" >&6
16437 if test "x$with_wgetch_events" = xyes ; then
16439 cat >>confdefs.h <<\EOF
16440 #define NCURSES_WGETCH_EVENTS 1
16443 NCURSES_WGETCH_EVENTS=1
16445 NCURSES_WGETCH_EVENTS=0
16448 case "$cf_cv_system_name" in
16449 (*mingw32*|*mingw64*|*-msvc*)
16450 echo "$as_me:16450: checking if you want experimental-Windows driver" >&5
16451 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16453 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16454 if test "${enable_exp_win32+set}" = set; then
16455 enableval="$enable_exp_win32"
16456 with_exp_win32=$enableval
16460 echo "$as_me:16460: result: $with_exp_win32" >&5
16461 echo "${ECHO_T}$with_exp_win32" >&6
16462 if test "x$with_exp_win32" = xyes
16465 cat >>confdefs.h <<\EOF
16466 #define EXP_WIN32_DRIVER 1
16470 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16472 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16482 ###############################################################################
16484 ### use option --disable-echo to suppress full display compiling commands
16486 echo "$as_me:16486: checking if you want to see long compiling messages" >&5
16487 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16489 # Check whether --enable-echo or --disable-echo was given.
16490 if test "${enable_echo+set}" = set; then
16491 enableval="$enable_echo"
16492 test "$enableval" != no && enableval=yes
16493 if test "$enableval" != "yes" ; then
16496 ECHO_LD='@echo linking $@;'
16497 RULE_CC='@echo compiling $<'
16498 SHOW_CC='@echo compiling $@'
16520 echo "$as_me:16520: result: $enableval" >&5
16521 echo "${ECHO_T}$enableval" >&6
16523 if test "x$enable_echo" = xyes; then
16526 ECHO_LINK='@ echo linking $@ ... ;'
16527 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16528 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16531 # --disable-stripping is used for debugging
16533 echo "$as_me:16533: checking if you want to install stripped executables" >&5
16534 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16536 # Check whether --enable-stripping or --disable-stripping was given.
16537 if test "${enable_stripping+set}" = set; then
16538 enableval="$enable_stripping"
16539 test "$enableval" != no && enableval=yes
16540 if test "$enableval" != "yes" ; then
16541 enable_stripping=no
16543 enable_stripping=yes
16547 enable_stripping=yes
16550 echo "$as_me:16550: result: $enable_stripping" >&5
16551 echo "${ECHO_T}$enable_stripping" >&6
16553 if test "$enable_stripping" = yes
16560 : "${INSTALL:=install}"
16561 echo "$as_me:16561: checking if install accepts -p option" >&5
16562 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16563 if test "${cf_cv_install_p+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16573 if test -f conftest.out/conftest.in
16575 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16576 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16577 if test -s conftest.err
16581 cf_cv_install_p=yes
16592 echo "$as_me:16592: result: $cf_cv_install_p" >&5
16593 echo "${ECHO_T}$cf_cv_install_p" >&6
16595 echo "$as_me:16595: checking if install needs to be told about ownership" >&5
16596 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16597 case `$ac_config_guess` in
16606 echo "$as_me:16606: result: $with_install_o" >&5
16607 echo "${ECHO_T}$with_install_o" >&6
16608 if test "x$with_install_o" = xyes
16610 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'`"
16615 # If we're avoiding relinking of shared libraries during install, that is to
16616 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16617 # the install program has "-p" (for preserving timestamps).
16618 cf_cv_do_reranlib=yes
16619 if test "x$cf_cv_install_p" = xyes
16621 if test "x$cf_cv_do_relink" != xyes
16623 cf_cv_do_reranlib=no
16625 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16629 ### use option --enable-warnings to turn on all gcc warnings
16631 echo "$as_me:16631: checking if you want to use C11 _Noreturn feature" >&5
16632 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
16634 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
16635 if test "${enable_stdnoreturn+set}" = set; then
16636 enableval="$enable_stdnoreturn"
16637 test "$enableval" != yes && enableval=no
16638 if test "$enableval" != "no" ; then
16639 enable_stdnoreturn=yes
16641 enable_stdnoreturn=no
16645 enable_stdnoreturn=no
16648 echo "$as_me:16648: result: $enable_stdnoreturn" >&5
16649 echo "${ECHO_T}$enable_stdnoreturn" >&6
16651 if test $enable_stdnoreturn = yes; then
16652 echo "$as_me:16652: checking for C11 _Noreturn feature" >&5
16653 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
16654 if test "${cf_cv_c11_noreturn+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 cat >"conftest.$ac_ext" <<_ACEOF
16658 #line 16658 "configure"
16659 #include "confdefs.h"
16662 #include <stdlib.h>
16663 #include <stdnoreturn.h>
16664 static _Noreturn void giveup(void) { exit(0); }
16669 if (feof(stdin)) giveup()
16674 rm -f "conftest.$ac_objext"
16675 if { (eval echo "$as_me:16675: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>&5
16678 echo "$as_me:16678: \$? = $ac_status" >&5
16679 (exit "$ac_status"); } &&
16680 { ac_try='test -s "conftest.$ac_objext"'
16681 { (eval echo "$as_me:16681: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:16684: \$? = $ac_status" >&5
16685 (exit "$ac_status"); }; }; then
16686 cf_cv_c11_noreturn=yes
16688 echo "$as_me: failed program was:" >&5
16689 cat "conftest.$ac_ext" >&5
16690 cf_cv_c11_noreturn=no
16692 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16695 echo "$as_me:16695: result: $cf_cv_c11_noreturn" >&5
16696 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
16698 cf_cv_c11_noreturn=no,
16701 if test "$cf_cv_c11_noreturn" = yes; then
16703 cat >>confdefs.h <<\EOF
16704 #define HAVE_STDNORETURN_H 1
16707 cat >>confdefs.h <<EOF
16708 #define STDC_NORETURN _Noreturn
16711 HAVE_STDNORETURN_H=1
16713 HAVE_STDNORETURN_H=0
16716 if test "$GCC" = yes || test "$GXX" = yes
16719 if test "$GCC" = yes || test "$GXX" = yes
16724 for cf_temp_scan in $CFLAGS
16726 case "x$cf_temp_scan" in
16729 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16730 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16735 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16736 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16741 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16742 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16747 if test "x$CFLAGS" != "x$cf_temp_flags"
16749 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
16751 echo "${as_me:-configure}:16751: testing repairing CFLAGS: $CFLAGS ..." 1>&5
16753 CFLAGS="$cf_temp_flags"
16754 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
16756 echo "${as_me:-configure}:16756: testing ... fixed $CFLAGS ..." 1>&5
16758 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16760 echo "${as_me:-configure}:16760: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16767 if test "$GCC" = yes || test "$GXX" = yes
16772 for cf_temp_scan in $CPPFLAGS
16774 case "x$cf_temp_scan" in
16777 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16778 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16783 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16784 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16789 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16790 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16795 if test "x$CPPFLAGS" != "x$cf_temp_flags"
16797 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
16799 echo "${as_me:-configure}:16799: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
16801 CPPFLAGS="$cf_temp_flags"
16802 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
16804 echo "${as_me:-configure}:16804: testing ... fixed $CPPFLAGS ..." 1>&5
16806 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16808 echo "${as_me:-configure}:16808: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16815 if test "$GCC" = yes || test "$GXX" = yes
16820 for cf_temp_scan in $LDFLAGS
16822 case "x$cf_temp_scan" in
16825 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16826 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16831 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16832 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16837 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16838 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16843 if test "x$LDFLAGS" != "x$cf_temp_flags"
16845 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
16847 echo "${as_me:-configure}:16847: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
16849 LDFLAGS="$cf_temp_flags"
16850 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
16852 echo "${as_me:-configure}:16852: testing ... fixed $LDFLAGS ..." 1>&5
16854 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16856 echo "${as_me:-configure}:16856: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16863 echo "$as_me:16863: checking if you want to turn on gcc warnings" >&5
16864 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16866 # Check whether --enable-warnings or --disable-warnings was given.
16867 if test "${enable_warnings+set}" = set; then
16868 enableval="$enable_warnings"
16869 test "$enableval" != yes && enableval=no
16870 if test "$enableval" != "no" ; then
16871 enable_warnings=yes
16880 echo "$as_me:16880: result: $enable_warnings" >&5
16881 echo "${ECHO_T}$enable_warnings" >&6
16882 if test "$enable_warnings" = "yes"
16885 if test "x$have_x" = xyes; then
16887 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16888 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16889 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16890 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16891 for cf_X_CFLAGS in $X_CFLAGS
16893 case "x$cf_X_CFLAGS" in
16895 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16898 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16903 cat >"conftest.$ac_ext" <<_ACEOF
16904 #line 16904 "configure"
16905 #include "confdefs.h"
16907 #include <stdlib.h>
16908 #include <X11/Intrinsic.h>
16913 String foo = malloc(1); free((void*)foo)
16918 rm -f "conftest.$ac_objext"
16919 if { (eval echo "$as_me:16919: \"$ac_compile\"") >&5
16920 (eval $ac_compile) 2>&5
16922 echo "$as_me:16922: \$? = $ac_status" >&5
16923 (exit "$ac_status"); } &&
16924 { ac_try='test -s "conftest.$ac_objext"'
16925 { (eval echo "$as_me:16925: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16928 echo "$as_me:16928: \$? = $ac_status" >&5
16929 (exit "$ac_status"); }; }; then
16931 echo "$as_me:16931: checking for X11/Xt const-feature" >&5
16932 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16933 if test "${cf_cv_const_x_string+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 cat >"conftest.$ac_ext" <<_ACEOF
16938 #line 16938 "configure"
16939 #include "confdefs.h"
16941 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16942 #undef XTSTRINGDEFINES /* X11R5 and later */
16943 #include <stdlib.h>
16944 #include <X11/Intrinsic.h>
16949 String foo = malloc(1); *foo = 0
16954 rm -f "conftest.$ac_objext"
16955 if { (eval echo "$as_me:16955: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>&5
16958 echo "$as_me:16958: \$? = $ac_status" >&5
16959 (exit "$ac_status"); } &&
16960 { ac_try='test -s "conftest.$ac_objext"'
16961 { (eval echo "$as_me:16961: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16964 echo "$as_me:16964: \$? = $ac_status" >&5
16965 (exit "$ac_status"); }; }; then
16967 cf_cv_const_x_string=no
16970 echo "$as_me: failed program was:" >&5
16971 cat "conftest.$ac_ext" >&5
16973 cf_cv_const_x_string=yes
16976 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16979 echo "$as_me:16979: result: $cf_cv_const_x_string" >&5
16980 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16982 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16983 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16984 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16986 case "$cf_cv_const_x_string" in
16989 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16990 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16995 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16996 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17002 echo "$as_me: failed program was:" >&5
17003 cat "conftest.$ac_ext" >&5
17005 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17007 cat > "conftest.$ac_ext" <<EOF
17008 #line 17008 "${as_me:-configure}"
17009 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17011 if test "$INTEL_COMPILER" = yes
17013 # The "-wdXXX" options suppress warnings:
17014 # remark #1419: external declaration in primary source file
17015 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17016 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17017 # remark #193: zero used for undefined preprocessing identifier
17018 # remark #593: variable "curs_sb_left_arrow" was set but never used
17019 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17020 # remark #869: parameter "tw" was never referenced
17021 # remark #981: operands are evaluated in unspecified order
17022 # warning #279: controlling expression is constant
17024 { echo "$as_me:17024: checking for $CC warning options..." >&5
17025 echo "$as_me: checking for $CC warning options..." >&6;}
17026 cf_save_CFLAGS="$CFLAGS"
17027 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17039 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17040 if { (eval echo "$as_me:17040: \"$ac_compile\"") >&5
17041 (eval $ac_compile) 2>&5
17043 echo "$as_me:17043: \$? = $ac_status" >&5
17044 (exit "$ac_status"); }; then
17045 test -n "$verbose" && echo "$as_me:17045: result: ... -$cf_opt" >&5
17046 echo "${ECHO_T}... -$cf_opt" >&6
17047 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17050 CFLAGS="$cf_save_CFLAGS"
17051 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17053 { echo "$as_me:17053: checking for $CC warning options..." >&5
17054 echo "$as_me: checking for $CC warning options..." >&6;}
17055 cf_save_CFLAGS="$CFLAGS"
17057 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17058 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17059 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17060 for cf_opt in W Wall \
17061 Wbad-function-cast \
17064 Wdeclaration-after-statement \
17067 Wmissing-declarations \
17068 Wmissing-prototypes \
17072 Wstrict-prototypes \
17073 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17075 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17076 if { (eval echo "$as_me:17076: \"$ac_compile\"") >&5
17077 (eval $ac_compile) 2>&5
17079 echo "$as_me:17079: \$? = $ac_status" >&5
17080 (exit "$ac_status"); }; then
17081 test -n "$verbose" && echo "$as_me:17081: result: ... -$cf_opt" >&5
17082 echo "${ECHO_T}... -$cf_opt" >&6
17085 case "$GCC_VERSION" in
17087 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17089 echo "${as_me:-configure}:17089: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17095 case "$GCC_VERSION" in
17097 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17099 echo "${as_me:-configure}:17099: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17105 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17108 CFLAGS="$cf_save_CFLAGS"
17114 if test "$GCC" = yes || test "$GXX" = yes
17116 cat > conftest.i <<EOF
17118 #define GCC_PRINTF 0
17121 #define GCC_SCANF 0
17123 #ifndef GCC_NORETURN
17124 #define GCC_NORETURN /* nothing */
17127 #define GCC_UNUSED /* nothing */
17130 if test "$GCC" = yes
17132 { echo "$as_me:17132: checking for $CC __attribute__ directives..." >&5
17133 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17134 cat > "conftest.$ac_ext" <<EOF
17135 #line 17135 "${as_me:-configure}"
17136 #include "confdefs.h"
17137 #include "conftest.h"
17138 #include "conftest.i"
17140 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17142 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17145 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17147 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17149 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17150 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17151 extern GCC_NORETURN void foo(void);
17152 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17154 cf_printf_attribute=no
17155 cf_scanf_attribute=no
17156 for cf_attribute in scanf printf unused noreturn
17159 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17161 cf_directive="__attribute__(($cf_attribute))"
17162 echo "checking for $CC $cf_directive" 1>&5
17164 case "$cf_attribute" in
17166 cf_printf_attribute=yes
17167 cat >conftest.h <<EOF
17168 #define GCC_$cf_ATTRIBUTE 1
17172 cf_scanf_attribute=yes
17173 cat >conftest.h <<EOF
17174 #define GCC_$cf_ATTRIBUTE 1
17178 cat >conftest.h <<EOF
17179 #define GCC_$cf_ATTRIBUTE $cf_directive
17184 if { (eval echo "$as_me:17184: \"$ac_compile\"") >&5
17185 (eval $ac_compile) 2>&5
17187 echo "$as_me:17187: \$? = $ac_status" >&5
17188 (exit "$ac_status"); }; then
17189 test -n "$verbose" && echo "$as_me:17189: result: ... $cf_attribute" >&5
17190 echo "${ECHO_T}... $cf_attribute" >&6
17191 cat conftest.h >>confdefs.h
17192 case "$cf_attribute" in
17195 cat >>confdefs.h <<EOF
17196 #define GCC_NORETURN $cf_directive
17201 cf_value='/* nothing */'
17202 if test "$cf_printf_attribute" != no ; then
17203 cf_value='__attribute__((format(printf,fmt,var)))'
17205 cat >>confdefs.h <<\EOF
17206 #define GCC_PRINTF 1
17211 cat >>confdefs.h <<EOF
17212 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17217 cf_value='/* nothing */'
17218 if test "$cf_scanf_attribute" != no ; then
17219 cf_value='__attribute__((format(scanf,fmt,var)))'
17221 cat >>confdefs.h <<\EOF
17222 #define GCC_SCANF 1
17227 cat >>confdefs.h <<EOF
17228 #define GCC_SCANFLIKE(fmt,var) $cf_value
17234 cat >>confdefs.h <<EOF
17235 #define GCC_UNUSED $cf_directive
17243 ${FGREP-fgrep} define conftest.i >>confdefs.h
17250 if test "x$enable_warnings" = "xyes"; then
17252 ADAFLAGS="$ADAFLAGS -gnatg"
17254 if test "x$cf_with_cxx" = xyes ; then
17258 if test "$GCC" = yes ; then
17261 echo "$as_me:17261: checking if this is really Intel C++ compiler" >&5
17262 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17263 cf_save_CFLAGS="$CXXFLAGS"
17264 CXXFLAGS="$CXXFLAGS -no-gcc"
17265 cat >"conftest.$ac_ext" <<_ACEOF
17266 #line 17266 "configure"
17267 #include "confdefs.h"
17273 #ifdef __INTEL_COMPILER
17282 rm -f "conftest.$ac_objext"
17283 if { (eval echo "$as_me:17283: \"$ac_compile\"") >&5
17284 (eval $ac_compile) 2>&5
17286 echo "$as_me:17286: \$? = $ac_status" >&5
17287 (exit "$ac_status"); } &&
17288 { ac_try='test -s "conftest.$ac_objext"'
17289 { (eval echo "$as_me:17289: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17292 echo "$as_me:17292: \$? = $ac_status" >&5
17293 (exit "$ac_status"); }; }; then
17294 INTEL_CPLUSPLUS=yes
17295 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17298 echo "$as_me: failed program was:" >&5
17299 cat "conftest.$ac_ext" >&5
17301 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17302 CXXFLAGS="$cf_save_CFLAGS"
17303 echo "$as_me:17303: result: $INTEL_CPLUSPLUS" >&5
17304 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17311 if test "$GCC" = yes ; then
17312 echo "$as_me:17312: checking if this is really Clang C++ compiler" >&5
17313 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17314 cf_save_CFLAGS="$CXXFLAGS"
17315 cat >"conftest.$ac_ext" <<_ACEOF
17316 #line 17316 "configure"
17317 #include "confdefs.h"
17332 rm -f "conftest.$ac_objext"
17333 if { (eval echo "$as_me:17333: \"$ac_compile\"") >&5
17334 (eval $ac_compile) 2>&5
17336 echo "$as_me:17336: \$? = $ac_status" >&5
17337 (exit "$ac_status"); } &&
17338 { ac_try='test -s "conftest.$ac_objext"'
17339 { (eval echo "$as_me:17339: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:17342: \$? = $ac_status" >&5
17343 (exit "$ac_status"); }; }; then
17344 CLANG_CPLUSPLUS=yes
17347 echo "$as_me: failed program was:" >&5
17348 cat "conftest.$ac_ext" >&5
17350 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17351 CXXFLAGS="$cf_save_CFLAGS"
17352 echo "$as_me:17352: result: $CLANG_CPLUSPLUS" >&5
17353 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17358 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17360 (c[1-9][0-9]|*/c[1-9][0-9])
17361 { echo "$as_me:17361: WARNING: replacing broken compiler alias $CC" >&5
17362 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17363 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17368 echo "$as_me:17368: checking version of $CC" >&5
17369 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17370 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
17371 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17372 echo "$as_me:17372: result: $CLANG_VERSION" >&5
17373 echo "${ECHO_T}$CLANG_VERSION" >&6
17375 for cf_clang_opt in \
17376 -Qunused-arguments \
17377 -Wno-error=implicit-function-declaration
17379 echo "$as_me:17379: checking if option $cf_clang_opt works" >&5
17380 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17381 cf_save_CFLAGS="$CFLAGS"
17382 CFLAGS="$CFLAGS $cf_clang_opt"
17383 cat >"conftest.$ac_ext" <<_ACEOF
17384 #line 17384 "configure"
17385 #include "confdefs.h"
17392 printf("hello!\\n");
17397 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17398 if { (eval echo "$as_me:17398: \"$ac_link\"") >&5
17399 (eval $ac_link) 2>&5
17401 echo "$as_me:17401: \$? = $ac_status" >&5
17402 (exit "$ac_status"); } &&
17403 { ac_try='test -s "conftest$ac_exeext"'
17404 { (eval echo "$as_me:17404: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17407 echo "$as_me:17407: \$? = $ac_status" >&5
17408 (exit "$ac_status"); }; }; then
17412 echo "$as_me: failed program was:" >&5
17413 cat "conftest.$ac_ext" >&5
17417 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17418 echo "$as_me:17418: result: $cf_clang_optok" >&5
17419 echo "${ECHO_T}$cf_clang_optok" >&6
17420 CFLAGS="$cf_save_CFLAGS"
17421 if test "$cf_clang_optok" = yes; then
17422 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17424 echo "${as_me:-configure}:17424: testing adding option $cf_clang_opt ..." 1>&5
17426 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17427 CFLAGS="${CFLAGS}$cf_clang_opt"
17434 ac_cpp='$CXXCPP $CPPFLAGS'
17435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17436 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17438 ac_main_return="return"
17440 cat > conftest.$ac_ext <<EOF
17441 #line 17441 "configure"
17442 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17445 if test "$INTEL_CPLUSPLUS" = yes
17447 # The "-wdXXX" options suppress warnings:
17448 # remark #1419: external declaration in primary source file
17449 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17450 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17451 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17452 # remark #193: zero used for undefined preprocessing identifier
17453 # remark #593: variable "curs_sb_left_arrow" was set but never used
17454 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17455 # remark #869: parameter "tw" was never referenced
17456 # remark #981: operands are evaluated in unspecified order
17457 # warning #269: invalid format string conversion
17459 { echo "$as_me:17459: checking for $CC warning options..." >&5
17460 echo "$as_me: checking for $CC warning options..." >&6;}
17461 cf_save_CXXFLAGS="$CXXFLAGS"
17462 EXTRA_CXXFLAGS="-Wall"
17475 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17476 if { (eval echo "$as_me:17476: \"$ac_compile\"") >&5
17477 (eval $ac_compile) 2>&5
17479 echo "$as_me:17479: \$? = $ac_status" >&5
17480 (exit "$ac_status"); }; then
17481 test -n "$verbose" && echo "$as_me:17481: result: ... -$cf_opt" >&5
17482 echo "${ECHO_T}... -$cf_opt" >&6
17483 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17486 CXXFLAGS="$cf_save_CXXFLAGS"
17488 elif test "$GXX" = yes
17490 { echo "$as_me:17490: checking for $CXX warning options..." >&5
17491 echo "$as_me: checking for $CXX warning options..." >&6;}
17492 cf_save_CXXFLAGS="$CXXFLAGS"
17493 EXTRA_CXXFLAGS="-W -Wall"
17494 cf_gxx_extra_warnings=""
17495 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17496 case "$GXX_VERSION" in
17500 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17507 Wignored-qualifiers \
17509 Woverloaded-virtual \
17517 Wundef $cf_gxx_extra_warnings Wno-unused
17519 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17520 if { (eval echo "$as_me:17520: \"$ac_compile\"") >&5
17521 (eval $ac_compile) 2>&5
17523 echo "$as_me:17523: \$? = $ac_status" >&5
17524 (exit "$ac_status"); }; then
17525 test -n "$verbose" && echo "$as_me:17525: result: ... -$cf_opt" >&5
17526 echo "${ECHO_T}... -$cf_opt" >&6
17527 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17529 test -n "$verbose" && echo "$as_me:17529: result: ... no -$cf_opt" >&5
17530 echo "${ECHO_T}... no -$cf_opt" >&6
17533 CXXFLAGS="$cf_save_CXXFLAGS"
17538 ac_cpp='$CPP $CPPFLAGS'
17539 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17540 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17542 ac_main_return="return"
17547 echo "$as_me:17547: checking if you want to work around bogus compiler/loader warnings" >&5
17548 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17550 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17551 if test "${enable_string_hacks+set}" = set; then
17552 enableval="$enable_string_hacks"
17553 enable_string_hacks=$enableval
17555 enable_string_hacks=no
17557 echo "$as_me:17557: result: $enable_string_hacks" >&5
17558 echo "${ECHO_T}$enable_string_hacks" >&6
17560 if test "x$enable_string_hacks" = "xyes"; then
17562 cat >>confdefs.h <<\EOF
17563 #define USE_STRING_HACKS 1
17566 { echo "$as_me:17566: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17567 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17568 echo "$as_me:17568: checking for strlcat" >&5
17569 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17570 if test "${ac_cv_func_strlcat+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 cat >"conftest.$ac_ext" <<_ACEOF
17574 #line 17574 "configure"
17575 #include "confdefs.h"
17576 #define strlcat autoconf_temporary
17577 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17584 /* We use char because int might match the return type of a gcc2
17585 builtin and then its argument prototype would still apply. */
17586 char strlcat (void);
17592 /* The GNU C library defines stubs for functions which it implements
17593 to always fail with ENOSYS. Some functions are actually named
17594 something starting with __ and the normal name is an alias. */
17595 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17596 #error found stub for strlcat
17604 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17605 if { (eval echo "$as_me:17605: \"$ac_link\"") >&5
17606 (eval $ac_link) 2>&5
17608 echo "$as_me:17608: \$? = $ac_status" >&5
17609 (exit "$ac_status"); } &&
17610 { ac_try='test -s "conftest$ac_exeext"'
17611 { (eval echo "$as_me:17611: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:17614: \$? = $ac_status" >&5
17615 (exit "$ac_status"); }; }; then
17616 ac_cv_func_strlcat=yes
17618 echo "$as_me: failed program was:" >&5
17619 cat "conftest.$ac_ext" >&5
17620 ac_cv_func_strlcat=no
17622 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17624 echo "$as_me:17624: result: $ac_cv_func_strlcat" >&5
17625 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
17626 if test "$ac_cv_func_strlcat" = yes; then
17628 cat >>confdefs.h <<\EOF
17629 #define HAVE_STRLCAT 1
17634 echo "$as_me:17634: checking for strlcat in -lbsd" >&5
17635 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
17636 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 ac_check_lib_save_LIBS=$LIBS
17641 cat >"conftest.$ac_ext" <<_ACEOF
17642 #line 17642 "configure"
17643 #include "confdefs.h"
17645 /* Override any gcc2 internal prototype to avoid an error. */
17649 /* We use char because int might match the return type of a gcc2
17650 builtin and then its argument prototype would still apply. */
17660 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17661 if { (eval echo "$as_me:17661: \"$ac_link\"") >&5
17662 (eval $ac_link) 2>&5
17664 echo "$as_me:17664: \$? = $ac_status" >&5
17665 (exit "$ac_status"); } &&
17666 { ac_try='test -s "conftest$ac_exeext"'
17667 { (eval echo "$as_me:17667: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:17670: \$? = $ac_status" >&5
17671 (exit "$ac_status"); }; }; then
17672 ac_cv_lib_bsd_strlcat=yes
17674 echo "$as_me: failed program was:" >&5
17675 cat "conftest.$ac_ext" >&5
17676 ac_cv_lib_bsd_strlcat=no
17678 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17679 LIBS=$ac_check_lib_save_LIBS
17681 echo "$as_me:17681: result: $ac_cv_lib_bsd_strlcat" >&5
17682 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
17683 if test "$ac_cv_lib_bsd_strlcat" = yes; then
17685 cf_add_libs="$LIBS"
17688 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17689 # filter duplicates
17690 for cf_add_1lib in $cf_add_0lib; do
17691 for cf_add_2lib in $cf_add_libs; do
17692 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17697 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17699 LIBS="$cf_add_libs"
17701 for ac_header in bsd/string.h
17703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17704 echo "$as_me:17704: checking for $ac_header" >&5
17705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 cat >"conftest.$ac_ext" <<_ACEOF
17710 #line 17710 "configure"
17711 #include "confdefs.h"
17712 #include <$ac_header>
17714 if { (eval echo "$as_me:17714: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17715 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17717 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:17720: \$? = $ac_status" >&5
17721 (exit "$ac_status"); } >/dev/null; then
17722 if test -s conftest.err; then
17723 ac_cpp_err=$ac_c_preproc_warn_flag
17730 if test -z "$ac_cpp_err"; then
17731 eval "$as_ac_Header=yes"
17733 echo "$as_me: failed program was:" >&5
17734 cat "conftest.$ac_ext" >&5
17735 eval "$as_ac_Header=no"
17737 rm -f conftest.err "conftest.$ac_ext"
17739 echo "$as_me:17739: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
17740 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
17741 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
17742 cat >>confdefs.h <<EOF
17743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17749 cat >>confdefs.h <<\EOF
17750 #define HAVE_STRLCAT 1
17757 for ac_func in strlcpy snprintf
17759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17760 echo "$as_me:17760: checking for $ac_func" >&5
17761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17762 if eval "test \"\${$as_ac_var+set}\" = set"; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 cat >"conftest.$ac_ext" <<_ACEOF
17766 #line 17766 "configure"
17767 #include "confdefs.h"
17768 #define $ac_func autoconf_temporary
17769 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17776 /* We use char because int might match the return type of a gcc2
17777 builtin and then its argument prototype would still apply. */
17778 char $ac_func (void);
17784 /* The GNU C library defines stubs for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17788 #error found stub for $ac_func
17791 return $ac_func ();
17796 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17797 if { (eval echo "$as_me:17797: \"$ac_link\"") >&5
17798 (eval $ac_link) 2>&5
17800 echo "$as_me:17800: \$? = $ac_status" >&5
17801 (exit "$ac_status"); } &&
17802 { ac_try='test -s "conftest$ac_exeext"'
17803 { (eval echo "$as_me:17803: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17806 echo "$as_me:17806: \$? = $ac_status" >&5
17807 (exit "$ac_status"); }; }; then
17808 eval "$as_ac_var=yes"
17810 echo "$as_me: failed program was:" >&5
17811 cat "conftest.$ac_ext" >&5
17812 eval "$as_ac_var=no"
17814 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17816 echo "$as_me:17816: result: `eval echo '${'"$as_ac_var"'}'`" >&5
17817 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
17818 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
17819 cat >>confdefs.h <<EOF
17820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17828 ### use option --enable-assertions to turn on generation of assertion code
17829 echo "$as_me:17829: checking if you want to enable runtime assertions" >&5
17830 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17832 # Check whether --enable-assertions or --disable-assertions was given.
17833 if test "${enable_assertions+set}" = set; then
17834 enableval="$enable_assertions"
17835 with_assertions=$enableval
17839 echo "$as_me:17839: result: $with_assertions" >&5
17840 echo "${ECHO_T}$with_assertions" >&6
17843 if test "$with_assertions" = no
17845 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17848 ADAFLAGS="$ADAFLAGS -gnata"
17853 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17855 echo "$as_me:17855: checking if you want to use dmalloc for testing" >&5
17856 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17858 # Check whether --with-dmalloc or --without-dmalloc was given.
17859 if test "${with_dmalloc+set}" = set; then
17860 withval="$with_dmalloc"
17861 case "x$withval" in
17864 : "${with_cflags:=-g}"
17865 : "${enable_leaks:=no}"
17868 cat >>confdefs.h <<EOF
17869 #define USE_DMALLOC 1
17877 echo "$as_me:17877: result: ${with_dmalloc:-no}" >&5
17878 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17880 case ".$with_cflags" in
17890 cf_new_extra_cppflags=
17892 for cf_add_cflags in -g
17894 case "$cf_fix_cppflags" in
17896 case "$cf_add_cflags" in
17897 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17898 case "$cf_add_cflags" in
17900 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17902 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17903 && test -z "${cf_tst_cflags}" \
17904 && cf_fix_cppflags=yes
17906 if test "$cf_fix_cppflags" = yes ; then
17908 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17909 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17912 elif test "${cf_tst_cflags}" = "\"'" ; then
17914 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17915 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17921 case "$CPPFLAGS" in
17925 case "$cf_add_cflags" in
17927 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17929 CPPFLAGS=`echo "$CPPFLAGS" | \
17930 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17931 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17936 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17937 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17944 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17945 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17952 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17953 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17955 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17957 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17958 && test -z "${cf_tst_cflags}" \
17959 && cf_fix_cppflags=no
17964 if test -n "$cf_new_cflags" ; then
17966 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17967 CFLAGS="${CFLAGS}$cf_new_cflags"
17971 if test -n "$cf_new_cppflags" ; then
17973 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17974 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17978 if test -n "$cf_new_extra_cppflags" ; then
17980 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17981 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17990 if test "$with_dmalloc" = yes ; then
17991 echo "$as_me:17991: checking for dmalloc.h" >&5
17992 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17993 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 cat >"conftest.$ac_ext" <<_ACEOF
17997 #line 17997 "configure"
17998 #include "confdefs.h"
17999 #include <dmalloc.h>
18001 if { (eval echo "$as_me:18001: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18002 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18004 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18006 cat conftest.err >&5
18007 echo "$as_me:18007: \$? = $ac_status" >&5
18008 (exit "$ac_status"); } >/dev/null; then
18009 if test -s conftest.err; then
18010 ac_cpp_err=$ac_c_preproc_warn_flag
18017 if test -z "$ac_cpp_err"; then
18018 ac_cv_header_dmalloc_h=yes
18020 echo "$as_me: failed program was:" >&5
18021 cat "conftest.$ac_ext" >&5
18022 ac_cv_header_dmalloc_h=no
18024 rm -f conftest.err "conftest.$ac_ext"
18026 echo "$as_me:18026: result: $ac_cv_header_dmalloc_h" >&5
18027 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18028 if test "$ac_cv_header_dmalloc_h" = yes; then
18030 echo "$as_me:18030: checking for dmalloc_debug in -ldmalloc" >&5
18031 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18032 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 ac_check_lib_save_LIBS=$LIBS
18036 LIBS="-ldmalloc $LIBS"
18037 cat >"conftest.$ac_ext" <<_ACEOF
18038 #line 18038 "configure"
18039 #include "confdefs.h"
18041 /* Override any gcc2 internal prototype to avoid an error. */
18045 /* We use char because int might match the return type of a gcc2
18046 builtin and then its argument prototype would still apply. */
18047 char dmalloc_debug ();
18056 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18057 if { (eval echo "$as_me:18057: \"$ac_link\"") >&5
18058 (eval $ac_link) 2>&5
18060 echo "$as_me:18060: \$? = $ac_status" >&5
18061 (exit "$ac_status"); } &&
18062 { ac_try='test -s "conftest$ac_exeext"'
18063 { (eval echo "$as_me:18063: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:18066: \$? = $ac_status" >&5
18067 (exit "$ac_status"); }; }; then
18068 ac_cv_lib_dmalloc_dmalloc_debug=yes
18070 echo "$as_me: failed program was:" >&5
18071 cat "conftest.$ac_ext" >&5
18072 ac_cv_lib_dmalloc_dmalloc_debug=no
18074 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18075 LIBS=$ac_check_lib_save_LIBS
18077 echo "$as_me:18077: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18078 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18079 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18080 cat >>confdefs.h <<EOF
18081 #define HAVE_LIBDMALLOC 1
18084 LIBS="-ldmalloc $LIBS"
18092 echo "$as_me:18092: checking if you want to use dbmalloc for testing" >&5
18093 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18095 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18096 if test "${with_dbmalloc+set}" = set; then
18097 withval="$with_dbmalloc"
18098 case "x$withval" in
18101 : "${with_cflags:=-g}"
18102 : "${enable_leaks:=no}"
18105 cat >>confdefs.h <<EOF
18106 #define USE_DBMALLOC 1
18114 echo "$as_me:18114: result: ${with_dbmalloc:-no}" >&5
18115 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18117 case ".$with_cflags" in
18127 cf_new_extra_cppflags=
18129 for cf_add_cflags in -g
18131 case "$cf_fix_cppflags" in
18133 case "$cf_add_cflags" in
18134 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18135 case "$cf_add_cflags" in
18137 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18139 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18140 && test -z "${cf_tst_cflags}" \
18141 && cf_fix_cppflags=yes
18143 if test "$cf_fix_cppflags" = yes ; then
18145 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18146 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18149 elif test "${cf_tst_cflags}" = "\"'" ; then
18151 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18152 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18158 case "$CPPFLAGS" in
18162 case "$cf_add_cflags" in
18164 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18166 CPPFLAGS=`echo "$CPPFLAGS" | \
18167 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18168 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18173 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18174 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18181 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18182 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18189 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18190 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18192 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18194 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18195 && test -z "${cf_tst_cflags}" \
18196 && cf_fix_cppflags=no
18201 if test -n "$cf_new_cflags" ; then
18203 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18204 CFLAGS="${CFLAGS}$cf_new_cflags"
18208 if test -n "$cf_new_cppflags" ; then
18210 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18211 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18215 if test -n "$cf_new_extra_cppflags" ; then
18217 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18218 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18227 if test "$with_dbmalloc" = yes ; then
18228 echo "$as_me:18228: checking for dbmalloc.h" >&5
18229 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18230 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 cat >"conftest.$ac_ext" <<_ACEOF
18234 #line 18234 "configure"
18235 #include "confdefs.h"
18236 #include <dbmalloc.h>
18238 if { (eval echo "$as_me:18238: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18239 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18241 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18243 cat conftest.err >&5
18244 echo "$as_me:18244: \$? = $ac_status" >&5
18245 (exit "$ac_status"); } >/dev/null; then
18246 if test -s conftest.err; then
18247 ac_cpp_err=$ac_c_preproc_warn_flag
18254 if test -z "$ac_cpp_err"; then
18255 ac_cv_header_dbmalloc_h=yes
18257 echo "$as_me: failed program was:" >&5
18258 cat "conftest.$ac_ext" >&5
18259 ac_cv_header_dbmalloc_h=no
18261 rm -f conftest.err "conftest.$ac_ext"
18263 echo "$as_me:18263: result: $ac_cv_header_dbmalloc_h" >&5
18264 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18265 if test "$ac_cv_header_dbmalloc_h" = yes; then
18267 echo "$as_me:18267: checking for debug_malloc in -ldbmalloc" >&5
18268 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18269 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-ldbmalloc $LIBS"
18274 cat >"conftest.$ac_ext" <<_ACEOF
18275 #line 18275 "configure"
18276 #include "confdefs.h"
18278 /* Override any gcc2 internal prototype to avoid an error. */
18282 /* We use char because int might match the return type of a gcc2
18283 builtin and then its argument prototype would still apply. */
18284 char debug_malloc ();
18293 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18294 if { (eval echo "$as_me:18294: \"$ac_link\"") >&5
18295 (eval $ac_link) 2>&5
18297 echo "$as_me:18297: \$? = $ac_status" >&5
18298 (exit "$ac_status"); } &&
18299 { ac_try='test -s "conftest$ac_exeext"'
18300 { (eval echo "$as_me:18300: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18303 echo "$as_me:18303: \$? = $ac_status" >&5
18304 (exit "$ac_status"); }; }; then
18305 ac_cv_lib_dbmalloc_debug_malloc=yes
18307 echo "$as_me: failed program was:" >&5
18308 cat "conftest.$ac_ext" >&5
18309 ac_cv_lib_dbmalloc_debug_malloc=no
18311 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18312 LIBS=$ac_check_lib_save_LIBS
18314 echo "$as_me:18314: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18315 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18316 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18317 cat >>confdefs.h <<EOF
18318 #define HAVE_LIBDBMALLOC 1
18321 LIBS="-ldbmalloc $LIBS"
18329 echo "$as_me:18329: checking if you want to use valgrind for testing" >&5
18330 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18332 # Check whether --with-valgrind or --without-valgrind was given.
18333 if test "${with_valgrind+set}" = set; then
18334 withval="$with_valgrind"
18335 case "x$withval" in
18338 : "${with_cflags:=-g}"
18339 : "${enable_leaks:=no}"
18342 cat >>confdefs.h <<EOF
18343 #define USE_VALGRIND 1
18351 echo "$as_me:18351: result: ${with_valgrind:-no}" >&5
18352 echo "${ECHO_T}${with_valgrind:-no}" >&6
18354 case ".$with_cflags" in
18364 cf_new_extra_cppflags=
18366 for cf_add_cflags in -g
18368 case "$cf_fix_cppflags" in
18370 case "$cf_add_cflags" in
18371 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18372 case "$cf_add_cflags" in
18374 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18376 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18377 && test -z "${cf_tst_cflags}" \
18378 && cf_fix_cppflags=yes
18380 if test "$cf_fix_cppflags" = yes ; then
18382 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18383 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18386 elif test "${cf_tst_cflags}" = "\"'" ; then
18388 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18389 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18395 case "$CPPFLAGS" in
18399 case "$cf_add_cflags" in
18401 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18403 CPPFLAGS=`echo "$CPPFLAGS" | \
18404 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18405 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18410 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18411 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18418 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18419 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18426 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18427 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18429 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18431 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18432 && test -z "${cf_tst_cflags}" \
18433 && cf_fix_cppflags=no
18438 if test -n "$cf_new_cflags" ; then
18440 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18441 CFLAGS="${CFLAGS}$cf_new_cflags"
18445 if test -n "$cf_new_cppflags" ; then
18447 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18448 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18452 if test -n "$cf_new_extra_cppflags" ; then
18454 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18455 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18464 echo "$as_me:18464: checking if you want to perform memory-leak testing" >&5
18465 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18467 # Check whether --enable-leaks or --disable-leaks was given.
18468 if test "${enable_leaks+set}" = set; then
18469 enableval="$enable_leaks"
18470 enable_leaks=$enableval
18474 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18475 echo "$as_me:18475: result: $with_no_leaks" >&5
18476 echo "${ECHO_T}$with_no_leaks" >&6
18478 if test "$enable_leaks" = no ; then
18480 cat >>confdefs.h <<\EOF
18484 cat >>confdefs.h <<\EOF
18485 #define YY_NO_LEAKS 1
18490 cat >>confdefs.h <<\EOF
18491 #define HAVE_NC_ALLOC_H 1
18494 ### use option --enable-expanded to generate certain macros as functions
18496 # Check whether --enable-expanded or --disable-expanded was given.
18497 if test "${enable_expanded+set}" = set; then
18498 enableval="$enable_expanded"
18499 test "x$enableval" = xyes &&
18500 cat >>confdefs.h <<\EOF
18501 #define NCURSES_EXPANDED 1
18506 ### use option --disable-macros to suppress macros in favor of functions
18508 # Check whether --enable-macros or --disable-macros was given.
18509 if test "${enable_macros+set}" = set; then
18510 enableval="$enable_macros"
18511 test "$enableval" = no &&
18512 cat >>confdefs.h <<\EOF
18513 #define NCURSES_NOMACROS 1
18518 # Normally we only add trace() to the debug-library. Allow this to be
18519 # extended to all models of the ncurses library:
18521 case "$CFLAGS $CPPFLAGS" in
18527 echo "$as_me:18527: checking whether to add trace feature to all models" >&5
18528 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18530 # Check whether --with-trace or --without-trace was given.
18531 if test "${with_trace+set}" = set; then
18532 withval="$with_trace"
18533 cf_with_trace=$withval
18535 cf_with_trace=$cf_all_traces
18537 echo "$as_me:18537: result: $cf_with_trace" >&5
18538 echo "${ECHO_T}$cf_with_trace" >&6
18540 if test "x$cf_with_trace" = xyes ; then
18547 cf_new_extra_cppflags=
18549 for cf_add_cflags in -DTRACE
18551 case "$cf_fix_cppflags" in
18553 case "$cf_add_cflags" in
18554 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18555 case "$cf_add_cflags" in
18557 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18559 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18560 && test -z "${cf_tst_cflags}" \
18561 && cf_fix_cppflags=yes
18563 if test "$cf_fix_cppflags" = yes ; then
18565 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18566 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18569 elif test "${cf_tst_cflags}" = "\"'" ; then
18571 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18572 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18578 case "$CPPFLAGS" in
18582 case "$cf_add_cflags" in
18584 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18586 CPPFLAGS=`echo "$CPPFLAGS" | \
18587 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18588 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18593 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18594 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18601 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18602 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18609 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18610 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18612 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18614 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18615 && test -z "${cf_tst_cflags}" \
18616 && cf_fix_cppflags=no
18621 if test -n "$cf_new_cflags" ; then
18623 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18624 CFLAGS="${CFLAGS}$cf_new_cflags"
18628 if test -n "$cf_new_cppflags" ; then
18630 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18631 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18635 if test -n "$cf_new_extra_cppflags" ; then
18637 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18638 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18642 cat >>confdefs.h <<\EOF
18643 #define HAVE__TRACEF 1
18651 echo "$as_me:18651: checking if we want to use GNAT projects" >&5
18652 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
18654 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
18655 if test "${enable_gnat_projects+set}" = set; then
18656 enableval="$enable_gnat_projects"
18657 test "$enableval" != no && enableval=yes
18658 if test "$enableval" != "yes" ; then
18659 enable_gnat_projects=no
18661 enable_gnat_projects=yes
18665 enable_gnat_projects=yes
18668 echo "$as_me:18668: result: $enable_gnat_projects" >&5
18669 echo "${ECHO_T}$enable_gnat_projects" >&6
18671 ### Checks for libraries.
18672 case "$cf_cv_system_name" in
18673 (*mingw32*|*mingw64*)
18674 # Note: WINVER may be a problem with Windows 10
18675 if test "x$with_exp_win32" = xyes ; then
18676 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
18678 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
18681 echo "$as_me:18681: checking if ssp library is needed" >&5
18682 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
18683 if test "${cf_cv_need_libssp+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18687 cat >"conftest.$ac_ext" <<_ACEOF
18688 #line 18688 "configure"
18689 #include "confdefs.h"
18691 #include <sys/types.h>
18692 #include <dirent.h>
18698 DIR *dp = opendir(".");
18704 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18705 if { (eval echo "$as_me:18705: \"$ac_link\"") >&5
18706 (eval $ac_link) 2>&5
18708 echo "$as_me:18708: \$? = $ac_status" >&5
18709 (exit "$ac_status"); } &&
18710 { ac_try='test -s "conftest$ac_exeext"'
18711 { (eval echo "$as_me:18711: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18714 echo "$as_me:18714: \$? = $ac_status" >&5
18715 (exit "$ac_status"); }; }; then
18716 cf_cv_need_libssp=no
18718 echo "$as_me: failed program was:" >&5
18719 cat "conftest.$ac_ext" >&5
18721 cf_save_LIBS="$LIBS"
18723 cat >"conftest.$ac_ext" <<_ACEOF
18724 #line 18724 "configure"
18725 #include "confdefs.h"
18727 #include <sys/types.h>
18728 #include <dirent.h>
18734 DIR *dp = opendir(".");
18740 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18741 if { (eval echo "$as_me:18741: \"$ac_link\"") >&5
18742 (eval $ac_link) 2>&5
18744 echo "$as_me:18744: \$? = $ac_status" >&5
18745 (exit "$ac_status"); } &&
18746 { ac_try='test -s "conftest$ac_exeext"'
18747 { (eval echo "$as_me:18747: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18750 echo "$as_me:18750: \$? = $ac_status" >&5
18751 (exit "$ac_status"); }; }; then
18752 cf_cv_need_libssp=yes
18754 echo "$as_me: failed program was:" >&5
18755 cat "conftest.$ac_ext" >&5
18756 cf_cv_need_libssp=maybe
18758 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18759 LIBS="$cf_save_LIBS"
18762 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18764 echo "$as_me:18764: result: $cf_cv_need_libssp" >&5
18765 echo "${ECHO_T}$cf_cv_need_libssp" >&6
18767 if test "x$cf_cv_need_libssp" = xyes
18770 cf_add_libs="$LIBS"
18773 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18774 # filter duplicates
18775 for cf_add_1lib in $cf_add_0lib; do
18776 for cf_add_2lib in $cf_add_libs; do
18777 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18782 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18784 LIBS="$cf_add_libs"
18790 echo "$as_me:18790: checking for gettimeofday" >&5
18791 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18792 if test "${ac_cv_func_gettimeofday+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 cat >"conftest.$ac_ext" <<_ACEOF
18796 #line 18796 "configure"
18797 #include "confdefs.h"
18798 #define gettimeofday autoconf_temporary
18799 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18800 #undef gettimeofday
18806 /* We use char because int might match the return type of a gcc2
18807 builtin and then its argument prototype would still apply. */
18808 char gettimeofday (void);
18814 /* The GNU C library defines stubs for functions which it implements
18815 to always fail with ENOSYS. Some functions are actually named
18816 something starting with __ and the normal name is an alias. */
18817 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18818 #error found stub for gettimeofday
18821 return gettimeofday ();
18826 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18827 if { (eval echo "$as_me:18827: \"$ac_link\"") >&5
18828 (eval $ac_link) 2>&5
18830 echo "$as_me:18830: \$? = $ac_status" >&5
18831 (exit "$ac_status"); } &&
18832 { ac_try='test -s "conftest$ac_exeext"'
18833 { (eval echo "$as_me:18833: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18836 echo "$as_me:18836: \$? = $ac_status" >&5
18837 (exit "$ac_status"); }; }; then
18838 ac_cv_func_gettimeofday=yes
18840 echo "$as_me: failed program was:" >&5
18841 cat "conftest.$ac_ext" >&5
18842 ac_cv_func_gettimeofday=no
18844 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18846 echo "$as_me:18846: result: $ac_cv_func_gettimeofday" >&5
18847 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18848 if test "$ac_cv_func_gettimeofday" = yes; then
18850 cat >>confdefs.h <<\EOF
18851 #define HAVE_GETTIMEOFDAY 1
18856 echo "$as_me:18856: checking for gettimeofday in -lbsd" >&5
18857 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18858 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 ac_check_lib_save_LIBS=$LIBS
18863 cat >"conftest.$ac_ext" <<_ACEOF
18864 #line 18864 "configure"
18865 #include "confdefs.h"
18867 /* Override any gcc2 internal prototype to avoid an error. */
18871 /* We use char because int might match the return type of a gcc2
18872 builtin and then its argument prototype would still apply. */
18873 char gettimeofday ();
18882 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18883 if { (eval echo "$as_me:18883: \"$ac_link\"") >&5
18884 (eval $ac_link) 2>&5
18886 echo "$as_me:18886: \$? = $ac_status" >&5
18887 (exit "$ac_status"); } &&
18888 { ac_try='test -s "conftest$ac_exeext"'
18889 { (eval echo "$as_me:18889: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:18892: \$? = $ac_status" >&5
18893 (exit "$ac_status"); }; }; then
18894 ac_cv_lib_bsd_gettimeofday=yes
18896 echo "$as_me: failed program was:" >&5
18897 cat "conftest.$ac_ext" >&5
18898 ac_cv_lib_bsd_gettimeofday=no
18900 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18901 LIBS=$ac_check_lib_save_LIBS
18903 echo "$as_me:18903: result: $ac_cv_lib_bsd_gettimeofday" >&5
18904 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
18905 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
18907 cat >>confdefs.h <<\EOF
18908 #define HAVE_GETTIMEOFDAY 1
18911 cf_add_libs="$LIBS"
18914 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18915 # filter duplicates
18916 for cf_add_1lib in $cf_add_0lib; do
18917 for cf_add_2lib in $cf_add_libs; do
18918 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18923 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18925 LIBS="$cf_add_libs"
18933 echo "$as_me:18933: checking if -lm needed for math functions" >&5
18934 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
18935 if test "${cf_cv_need_libm+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 cat >"conftest.$ac_ext" <<_ACEOF
18940 #line 18940 "configure"
18941 #include "confdefs.h"
18944 #include <stdlib.h>
18950 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
18955 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18956 if { (eval echo "$as_me:18956: \"$ac_link\"") >&5
18957 (eval $ac_link) 2>&5
18959 echo "$as_me:18959: \$? = $ac_status" >&5
18960 (exit "$ac_status"); } &&
18961 { ac_try='test -s "conftest$ac_exeext"'
18962 { (eval echo "$as_me:18962: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:18965: \$? = $ac_status" >&5
18966 (exit "$ac_status"); }; }; then
18969 echo "$as_me: failed program was:" >&5
18970 cat "conftest.$ac_ext" >&5
18971 cf_cv_need_libm=yes
18973 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18975 echo "$as_me:18975: result: $cf_cv_need_libm" >&5
18976 echo "${ECHO_T}$cf_cv_need_libm" >&6
18977 if test "$cf_cv_need_libm" = yes
18982 ### Checks for header files.
18983 echo "$as_me:18983: checking for ANSI C header files" >&5
18984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18985 if test "${ac_cv_header_stdc+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 cat >"conftest.$ac_ext" <<_ACEOF
18989 #line 18989 "configure"
18990 #include "confdefs.h"
18991 #include <stdlib.h>
18992 #include <stdarg.h>
18993 #include <string.h>
18997 if { (eval echo "$as_me:18997: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18998 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19000 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19002 cat conftest.err >&5
19003 echo "$as_me:19003: \$? = $ac_status" >&5
19004 (exit "$ac_status"); } >/dev/null; then
19005 if test -s conftest.err; then
19006 ac_cpp_err=$ac_c_preproc_warn_flag
19013 if test -z "$ac_cpp_err"; then
19014 ac_cv_header_stdc=yes
19016 echo "$as_me: failed program was:" >&5
19017 cat "conftest.$ac_ext" >&5
19018 ac_cv_header_stdc=no
19020 rm -f conftest.err "conftest.$ac_ext"
19022 if test $ac_cv_header_stdc = yes; then
19023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19024 cat >"conftest.$ac_ext" <<_ACEOF
19025 #line 19025 "configure"
19026 #include "confdefs.h"
19027 #include <string.h>
19030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19031 $EGREP "memchr" >/dev/null 2>&1; then
19034 ac_cv_header_stdc=no
19040 if test $ac_cv_header_stdc = yes; then
19041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19042 cat >"conftest.$ac_ext" <<_ACEOF
19043 #line 19043 "configure"
19044 #include "confdefs.h"
19045 #include <stdlib.h>
19048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19049 $EGREP "free" >/dev/null 2>&1; then
19052 ac_cv_header_stdc=no
19058 if test $ac_cv_header_stdc = yes; then
19059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19060 if test "$cross_compiling" = yes; then
19063 cat >"conftest.$ac_ext" <<_ACEOF
19064 #line 19064 "configure"
19065 #include "confdefs.h"
19067 #if ((' ' & 0x0FF) == 0x020)
19068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19071 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
19072 || ('j' <= (c) && (c) <= 'r') \
19073 || ('s' <= (c) && (c) <= 'z'))
19074 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19082 for (i = 0; i < 256; i++)
19083 if (XOR (islower (i), ISLOWER (i))
19084 || toupper (i) != TOUPPER (i))
19085 $ac_main_return(2);
19086 $ac_main_return (0);
19089 rm -f "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"); } && { ac_try='"./conftest$ac_exeext"'
19095 { (eval echo "$as_me:19095: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19098 echo "$as_me:19098: \$? = $ac_status" >&5
19099 (exit "$ac_status"); }; }; then
19102 echo "$as_me: program exited with status $ac_status" >&5
19103 echo "$as_me: failed program was:" >&5
19104 cat "conftest.$ac_ext" >&5
19105 ac_cv_header_stdc=no
19107 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
19111 echo "$as_me:19111: result: $ac_cv_header_stdc" >&5
19112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19113 if test $ac_cv_header_stdc = yes; then
19115 cat >>confdefs.h <<\EOF
19116 #define STDC_HEADERS 1
19121 ac_header_dirent=no
19122 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19123 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19124 echo "$as_me:19124: checking for $ac_hdr that defines DIR" >&5
19125 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 cat >"conftest.$ac_ext" <<_ACEOF
19130 #line 19130 "configure"
19131 #include "confdefs.h"
19132 #include <sys/types.h>
19144 rm -f "conftest.$ac_objext"
19145 if { (eval echo "$as_me:19145: \"$ac_compile\"") >&5
19146 (eval $ac_compile) 2>&5
19148 echo "$as_me:19148: \$? = $ac_status" >&5
19149 (exit "$ac_status"); } &&
19150 { ac_try='test -s "conftest.$ac_objext"'
19151 { (eval echo "$as_me:19151: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19154 echo "$as_me:19154: \$? = $ac_status" >&5
19155 (exit "$ac_status"); }; }; then
19156 eval "$as_ac_Header=yes"
19158 echo "$as_me: failed program was:" >&5
19159 cat "conftest.$ac_ext" >&5
19160 eval "$as_ac_Header=no"
19162 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19164 echo "$as_me:19164: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19165 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19166 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19167 cat >>confdefs.h <<EOF
19168 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19171 ac_header_dirent=$ac_hdr; break
19175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19176 if test $ac_header_dirent = dirent.h; then
19177 echo "$as_me:19177: checking for opendir in -ldir" >&5
19178 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
19179 if test "${ac_cv_lib_dir_opendir+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 ac_check_lib_save_LIBS=$LIBS
19184 cat >"conftest.$ac_ext" <<_ACEOF
19185 #line 19185 "configure"
19186 #include "confdefs.h"
19188 /* Override any gcc2 internal prototype to avoid an error. */
19192 /* We use char because int might match the return type of a gcc2
19193 builtin and then its argument prototype would still apply. */
19203 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19204 if { (eval echo "$as_me:19204: \"$ac_link\"") >&5
19205 (eval $ac_link) 2>&5
19207 echo "$as_me:19207: \$? = $ac_status" >&5
19208 (exit "$ac_status"); } &&
19209 { ac_try='test -s "conftest$ac_exeext"'
19210 { (eval echo "$as_me:19210: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19213 echo "$as_me:19213: \$? = $ac_status" >&5
19214 (exit "$ac_status"); }; }; then
19215 ac_cv_lib_dir_opendir=yes
19217 echo "$as_me: failed program was:" >&5
19218 cat "conftest.$ac_ext" >&5
19219 ac_cv_lib_dir_opendir=no
19221 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19222 LIBS=$ac_check_lib_save_LIBS
19224 echo "$as_me:19224: result: $ac_cv_lib_dir_opendir" >&5
19225 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
19226 if test "$ac_cv_lib_dir_opendir" = yes; then
19231 echo "$as_me:19231: checking for opendir in -lx" >&5
19232 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
19233 if test "${ac_cv_lib_x_opendir+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 ac_check_lib_save_LIBS=$LIBS
19238 cat >"conftest.$ac_ext" <<_ACEOF
19239 #line 19239 "configure"
19240 #include "confdefs.h"
19242 /* Override any gcc2 internal prototype to avoid an error. */
19246 /* We use char because int might match the return type of a gcc2
19247 builtin and then its argument prototype would still apply. */
19257 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19258 if { (eval echo "$as_me:19258: \"$ac_link\"") >&5
19259 (eval $ac_link) 2>&5
19261 echo "$as_me:19261: \$? = $ac_status" >&5
19262 (exit "$ac_status"); } &&
19263 { ac_try='test -s "conftest$ac_exeext"'
19264 { (eval echo "$as_me:19264: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:19267: \$? = $ac_status" >&5
19268 (exit "$ac_status"); }; }; then
19269 ac_cv_lib_x_opendir=yes
19271 echo "$as_me: failed program was:" >&5
19272 cat "conftest.$ac_ext" >&5
19273 ac_cv_lib_x_opendir=no
19275 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19276 LIBS=$ac_check_lib_save_LIBS
19278 echo "$as_me:19278: result: $ac_cv_lib_x_opendir" >&5
19279 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
19280 if test "$ac_cv_lib_x_opendir" = yes; then
19286 echo "$as_me:19286: checking whether time.h and sys/time.h may both be included" >&5
19287 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19288 if test "${ac_cv_header_time+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 cat >"conftest.$ac_ext" <<_ACEOF
19292 #line 19292 "configure"
19293 #include "confdefs.h"
19294 #include <sys/types.h>
19295 #include <sys/time.h>
19301 if ((struct tm *) 0)
19307 rm -f "conftest.$ac_objext"
19308 if { (eval echo "$as_me:19308: \"$ac_compile\"") >&5
19309 (eval $ac_compile) 2>&5
19311 echo "$as_me:19311: \$? = $ac_status" >&5
19312 (exit "$ac_status"); } &&
19313 { ac_try='test -s "conftest.$ac_objext"'
19314 { (eval echo "$as_me:19314: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19317 echo "$as_me:19317: \$? = $ac_status" >&5
19318 (exit "$ac_status"); }; }; then
19319 ac_cv_header_time=yes
19321 echo "$as_me: failed program was:" >&5
19322 cat "conftest.$ac_ext" >&5
19323 ac_cv_header_time=no
19325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19327 echo "$as_me:19327: result: $ac_cv_header_time" >&5
19328 echo "${ECHO_T}$ac_cv_header_time" >&6
19329 if test $ac_cv_header_time = yes; then
19331 cat >>confdefs.h <<\EOF
19332 #define TIME_WITH_SYS_TIME 1
19341 # -lsystre -ltre -lintl -liconv
19342 echo "$as_me:19342: checking for regcomp in -lsystre" >&5
19343 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19344 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 ac_check_lib_save_LIBS=$LIBS
19348 LIBS="-lsystre $LIBS"
19349 cat >"conftest.$ac_ext" <<_ACEOF
19350 #line 19350 "configure"
19351 #include "confdefs.h"
19353 /* Override any gcc2 internal prototype to avoid an error. */
19357 /* We use char because int might match the return type of a gcc2
19358 builtin and then its argument prototype would still apply. */
19368 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19369 if { (eval echo "$as_me:19369: \"$ac_link\"") >&5
19370 (eval $ac_link) 2>&5
19372 echo "$as_me:19372: \$? = $ac_status" >&5
19373 (exit "$ac_status"); } &&
19374 { ac_try='test -s "conftest$ac_exeext"'
19375 { (eval echo "$as_me:19375: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19378 echo "$as_me:19378: \$? = $ac_status" >&5
19379 (exit "$ac_status"); }; }; then
19380 ac_cv_lib_systre_regcomp=yes
19382 echo "$as_me: failed program was:" >&5
19383 cat "conftest.$ac_ext" >&5
19384 ac_cv_lib_systre_regcomp=no
19386 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19387 LIBS=$ac_check_lib_save_LIBS
19389 echo "$as_me:19389: result: $ac_cv_lib_systre_regcomp" >&5
19390 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19391 if test "$ac_cv_lib_systre_regcomp" = yes; then
19393 echo "$as_me:19393: checking for libiconv_open in -liconv" >&5
19394 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19395 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-liconv $LIBS"
19400 cat >"conftest.$ac_ext" <<_ACEOF
19401 #line 19401 "configure"
19402 #include "confdefs.h"
19404 /* Override any gcc2 internal prototype to avoid an error. */
19408 /* We use char because int might match the return type of a gcc2
19409 builtin and then its argument prototype would still apply. */
19410 char libiconv_open ();
19419 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19420 if { (eval echo "$as_me:19420: \"$ac_link\"") >&5
19421 (eval $ac_link) 2>&5
19423 echo "$as_me:19423: \$? = $ac_status" >&5
19424 (exit "$ac_status"); } &&
19425 { ac_try='test -s "conftest$ac_exeext"'
19426 { (eval echo "$as_me:19426: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:19429: \$? = $ac_status" >&5
19430 (exit "$ac_status"); }; }; then
19431 ac_cv_lib_iconv_libiconv_open=yes
19433 echo "$as_me: failed program was:" >&5
19434 cat "conftest.$ac_ext" >&5
19435 ac_cv_lib_iconv_libiconv_open=no
19437 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19438 LIBS=$ac_check_lib_save_LIBS
19440 echo "$as_me:19440: result: $ac_cv_lib_iconv_libiconv_open" >&5
19441 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19442 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19444 cf_add_libs="$LIBS"
19447 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19448 # filter duplicates
19449 for cf_add_1lib in $cf_add_0lib; do
19450 for cf_add_2lib in $cf_add_libs; do
19451 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19456 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19458 LIBS="$cf_add_libs"
19462 echo "$as_me:19462: checking for libintl_gettext in -lintl" >&5
19463 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19464 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 ac_check_lib_save_LIBS=$LIBS
19468 LIBS="-lintl $LIBS"
19469 cat >"conftest.$ac_ext" <<_ACEOF
19470 #line 19470 "configure"
19471 #include "confdefs.h"
19473 /* Override any gcc2 internal prototype to avoid an error. */
19477 /* We use char because int might match the return type of a gcc2
19478 builtin and then its argument prototype would still apply. */
19479 char libintl_gettext ();
19483 libintl_gettext ();
19488 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19489 if { (eval echo "$as_me:19489: \"$ac_link\"") >&5
19490 (eval $ac_link) 2>&5
19492 echo "$as_me:19492: \$? = $ac_status" >&5
19493 (exit "$ac_status"); } &&
19494 { ac_try='test -s "conftest$ac_exeext"'
19495 { (eval echo "$as_me:19495: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19498 echo "$as_me:19498: \$? = $ac_status" >&5
19499 (exit "$ac_status"); }; }; then
19500 ac_cv_lib_intl_libintl_gettext=yes
19502 echo "$as_me: failed program was:" >&5
19503 cat "conftest.$ac_ext" >&5
19504 ac_cv_lib_intl_libintl_gettext=no
19506 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19507 LIBS=$ac_check_lib_save_LIBS
19509 echo "$as_me:19509: result: $ac_cv_lib_intl_libintl_gettext" >&5
19510 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19511 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19513 cf_add_libs="$LIBS"
19516 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19517 # filter duplicates
19518 for cf_add_1lib in $cf_add_0lib; do
19519 for cf_add_2lib in $cf_add_libs; do
19520 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19525 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19527 LIBS="$cf_add_libs"
19531 echo "$as_me:19531: checking for tre_regcomp in -ltre" >&5
19532 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19533 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 ac_check_lib_save_LIBS=$LIBS
19538 cat >"conftest.$ac_ext" <<_ACEOF
19539 #line 19539 "configure"
19540 #include "confdefs.h"
19542 /* Override any gcc2 internal prototype to avoid an error. */
19546 /* We use char because int might match the return type of a gcc2
19547 builtin and then its argument prototype would still apply. */
19548 char tre_regcomp ();
19557 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19558 if { (eval echo "$as_me:19558: \"$ac_link\"") >&5
19559 (eval $ac_link) 2>&5
19561 echo "$as_me:19561: \$? = $ac_status" >&5
19562 (exit "$ac_status"); } &&
19563 { ac_try='test -s "conftest$ac_exeext"'
19564 { (eval echo "$as_me:19564: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19567 echo "$as_me:19567: \$? = $ac_status" >&5
19568 (exit "$ac_status"); }; }; then
19569 ac_cv_lib_tre_tre_regcomp=yes
19571 echo "$as_me: failed program was:" >&5
19572 cat "conftest.$ac_ext" >&5
19573 ac_cv_lib_tre_tre_regcomp=no
19575 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19576 LIBS=$ac_check_lib_save_LIBS
19578 echo "$as_me:19578: result: $ac_cv_lib_tre_tre_regcomp" >&5
19579 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19580 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19582 cf_add_libs="$LIBS"
19585 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19586 # filter duplicates
19587 for cf_add_1lib in $cf_add_0lib; do
19588 for cf_add_2lib in $cf_add_libs; do
19589 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19594 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19596 LIBS="$cf_add_libs"
19600 cf_add_libs="$LIBS"
19603 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19604 # filter duplicates
19605 for cf_add_1lib in $cf_add_0lib; do
19606 for cf_add_2lib in $cf_add_libs; do
19607 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19612 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19614 LIBS="$cf_add_libs"
19616 cf_regex_func=regcomp
19620 echo "$as_me:19620: checking for regcomp in -lgnurx" >&5
19621 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19622 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 ac_check_lib_save_LIBS=$LIBS
19626 LIBS="-lgnurx $LIBS"
19627 cat >"conftest.$ac_ext" <<_ACEOF
19628 #line 19628 "configure"
19629 #include "confdefs.h"
19631 /* Override any gcc2 internal prototype to avoid an error. */
19635 /* We use char because int might match the return type of a gcc2
19636 builtin and then its argument prototype would still apply. */
19646 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19647 if { (eval echo "$as_me:19647: \"$ac_link\"") >&5
19648 (eval $ac_link) 2>&5
19650 echo "$as_me:19650: \$? = $ac_status" >&5
19651 (exit "$ac_status"); } &&
19652 { ac_try='test -s "conftest$ac_exeext"'
19653 { (eval echo "$as_me:19653: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19656 echo "$as_me:19656: \$? = $ac_status" >&5
19657 (exit "$ac_status"); }; }; then
19658 ac_cv_lib_gnurx_regcomp=yes
19660 echo "$as_me: failed program was:" >&5
19661 cat "conftest.$ac_ext" >&5
19662 ac_cv_lib_gnurx_regcomp=no
19664 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19665 LIBS=$ac_check_lib_save_LIBS
19667 echo "$as_me:19667: result: $ac_cv_lib_gnurx_regcomp" >&5
19668 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19669 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19671 cf_add_libs="$LIBS"
19674 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19675 # filter duplicates
19676 for cf_add_1lib in $cf_add_0lib; do
19677 for cf_add_2lib in $cf_add_libs; do
19678 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19683 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19685 LIBS="$cf_add_libs"
19687 cf_regex_func=regcomp
19694 cf_regex_libs="regex re"
19695 echo "$as_me:19695: checking for regcomp" >&5
19696 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19697 if test "${ac_cv_func_regcomp+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19700 cat >"conftest.$ac_ext" <<_ACEOF
19701 #line 19701 "configure"
19702 #include "confdefs.h"
19703 #define regcomp autoconf_temporary
19704 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19711 /* We use char because int might match the return type of a gcc2
19712 builtin and then its argument prototype would still apply. */
19713 char regcomp (void);
19719 /* The GNU C library defines stubs for functions which it implements
19720 to always fail with ENOSYS. Some functions are actually named
19721 something starting with __ and the normal name is an alias. */
19722 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19723 #error found stub for regcomp
19731 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19732 if { (eval echo "$as_me:19732: \"$ac_link\"") >&5
19733 (eval $ac_link) 2>&5
19735 echo "$as_me:19735: \$? = $ac_status" >&5
19736 (exit "$ac_status"); } &&
19737 { ac_try='test -s "conftest$ac_exeext"'
19738 { (eval echo "$as_me:19738: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19741 echo "$as_me:19741: \$? = $ac_status" >&5
19742 (exit "$ac_status"); }; }; then
19743 ac_cv_func_regcomp=yes
19745 echo "$as_me: failed program was:" >&5
19746 cat "conftest.$ac_ext" >&5
19747 ac_cv_func_regcomp=no
19749 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19751 echo "$as_me:19751: result: $ac_cv_func_regcomp" >&5
19752 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19753 if test "$ac_cv_func_regcomp" = yes; then
19754 cf_regex_func=regcomp
19757 for cf_regex_lib in $cf_regex_libs
19759 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19760 echo "$as_me:19760: checking for regcomp in -l$cf_regex_lib" >&5
19761 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19762 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 ac_check_lib_save_LIBS=$LIBS
19766 LIBS="-l$cf_regex_lib $LIBS"
19767 cat >"conftest.$ac_ext" <<_ACEOF
19768 #line 19768 "configure"
19769 #include "confdefs.h"
19771 /* Override any gcc2 internal prototype to avoid an error. */
19775 /* We use char because int might match the return type of a gcc2
19776 builtin and then its argument prototype would still apply. */
19786 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19787 if { (eval echo "$as_me:19787: \"$ac_link\"") >&5
19788 (eval $ac_link) 2>&5
19790 echo "$as_me:19790: \$? = $ac_status" >&5
19791 (exit "$ac_status"); } &&
19792 { ac_try='test -s "conftest$ac_exeext"'
19793 { (eval echo "$as_me:19793: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19796 echo "$as_me:19796: \$? = $ac_status" >&5
19797 (exit "$ac_status"); }; }; then
19798 eval "$as_ac_Lib=yes"
19800 echo "$as_me: failed program was:" >&5
19801 cat "conftest.$ac_ext" >&5
19802 eval "$as_ac_Lib=no"
19804 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19805 LIBS=$ac_check_lib_save_LIBS
19807 echo "$as_me:19807: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19808 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19809 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19811 cf_add_libs="$LIBS"
19814 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19815 # filter duplicates
19816 for cf_add_1lib in $cf_add_0lib; do
19817 for cf_add_2lib in $cf_add_libs; do
19818 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19823 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19825 LIBS="$cf_add_libs"
19827 cf_regex_func=regcomp
19838 if test "$cf_regex_func" = no ; then
19839 echo "$as_me:19839: checking for compile" >&5
19840 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19841 if test "${ac_cv_func_compile+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 cat >"conftest.$ac_ext" <<_ACEOF
19845 #line 19845 "configure"
19846 #include "confdefs.h"
19847 #define compile autoconf_temporary
19848 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19855 /* We use char because int might match the return type of a gcc2
19856 builtin and then its argument prototype would still apply. */
19857 char compile (void);
19863 /* The GNU C library defines stubs for functions which it implements
19864 to always fail with ENOSYS. Some functions are actually named
19865 something starting with __ and the normal name is an alias. */
19866 #if defined (__stub_compile) || defined (__stub___compile)
19867 #error found stub for compile
19875 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19876 if { (eval echo "$as_me:19876: \"$ac_link\"") >&5
19877 (eval $ac_link) 2>&5
19879 echo "$as_me:19879: \$? = $ac_status" >&5
19880 (exit "$ac_status"); } &&
19881 { ac_try='test -s "conftest$ac_exeext"'
19882 { (eval echo "$as_me:19882: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19885 echo "$as_me:19885: \$? = $ac_status" >&5
19886 (exit "$ac_status"); }; }; then
19887 ac_cv_func_compile=yes
19889 echo "$as_me: failed program was:" >&5
19890 cat "conftest.$ac_ext" >&5
19891 ac_cv_func_compile=no
19893 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19895 echo "$as_me:19895: result: $ac_cv_func_compile" >&5
19896 echo "${ECHO_T}$ac_cv_func_compile" >&6
19897 if test "$ac_cv_func_compile" = yes; then
19898 cf_regex_func=compile
19901 echo "$as_me:19901: checking for compile in -lgen" >&5
19902 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19903 if test "${ac_cv_lib_gen_compile+set}" = set; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 ac_check_lib_save_LIBS=$LIBS
19908 cat >"conftest.$ac_ext" <<_ACEOF
19909 #line 19909 "configure"
19910 #include "confdefs.h"
19912 /* Override any gcc2 internal prototype to avoid an error. */
19916 /* We use char because int might match the return type of a gcc2
19917 builtin and then its argument prototype would still apply. */
19927 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19928 if { (eval echo "$as_me:19928: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19931 echo "$as_me:19931: \$? = $ac_status" >&5
19932 (exit "$ac_status"); } &&
19933 { ac_try='test -s "conftest$ac_exeext"'
19934 { (eval echo "$as_me:19934: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19937 echo "$as_me:19937: \$? = $ac_status" >&5
19938 (exit "$ac_status"); }; }; then
19939 ac_cv_lib_gen_compile=yes
19941 echo "$as_me: failed program was:" >&5
19942 cat "conftest.$ac_ext" >&5
19943 ac_cv_lib_gen_compile=no
19945 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19946 LIBS=$ac_check_lib_save_LIBS
19948 echo "$as_me:19948: result: $ac_cv_lib_gen_compile" >&5
19949 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19950 if test "$ac_cv_lib_gen_compile" = yes; then
19952 cf_add_libs="$LIBS"
19955 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19956 # filter duplicates
19957 for cf_add_1lib in $cf_add_0lib; do
19958 for cf_add_2lib in $cf_add_libs; do
19959 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19964 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19966 LIBS="$cf_add_libs"
19968 cf_regex_func=compile
19975 if test "$cf_regex_func" = no ; then
19976 { echo "$as_me:19976: WARNING: cannot find regular expression library" >&5
19977 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19980 echo "$as_me:19980: checking for regular-expression headers" >&5
19981 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19982 if test "${cf_cv_regex_hdrs+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 cf_cv_regex_hdrs=no
19987 case "$cf_regex_func" in
19989 for cf_regex_hdr in regexp.h regexpr.h
19991 cat >"conftest.$ac_ext" <<_ACEOF
19992 #line 19992 "configure"
19993 #include "confdefs.h"
19994 #include <$cf_regex_hdr>
19999 char *p = compile("", "", "", 0);
20000 int x = step("", "");
20008 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20009 if { (eval echo "$as_me:20009: \"$ac_link\"") >&5
20010 (eval $ac_link) 2>&5
20012 echo "$as_me:20012: \$? = $ac_status" >&5
20013 (exit "$ac_status"); } &&
20014 { ac_try='test -s "conftest$ac_exeext"'
20015 { (eval echo "$as_me:20015: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:20018: \$? = $ac_status" >&5
20019 (exit "$ac_status"); }; }; then
20021 cf_cv_regex_hdrs=$cf_regex_hdr
20025 echo "$as_me: failed program was:" >&5
20026 cat "conftest.$ac_ext" >&5
20028 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20032 for cf_regex_hdr in regex.h
20034 cat >"conftest.$ac_ext" <<_ACEOF
20035 #line 20035 "configure"
20036 #include "confdefs.h"
20037 #include <sys/types.h>
20038 #include <$cf_regex_hdr>
20044 int x = regcomp(p, "", 0);
20045 int y = regexec(p, "", 0, 0, 0);
20054 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20055 if { (eval echo "$as_me:20055: \"$ac_link\"") >&5
20056 (eval $ac_link) 2>&5
20058 echo "$as_me:20058: \$? = $ac_status" >&5
20059 (exit "$ac_status"); } &&
20060 { ac_try='test -s "conftest$ac_exeext"'
20061 { (eval echo "$as_me:20061: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:20064: \$? = $ac_status" >&5
20065 (exit "$ac_status"); }; }; then
20067 cf_cv_regex_hdrs=$cf_regex_hdr
20071 echo "$as_me: failed program was:" >&5
20072 cat "conftest.$ac_ext" >&5
20074 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20080 echo "$as_me:20080: result: $cf_cv_regex_hdrs" >&5
20081 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20083 case "$cf_cv_regex_hdrs" in
20084 (no) { echo "$as_me:20084: WARNING: no regular expression header found" >&5
20085 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20087 cat >>confdefs.h <<\EOF
20088 #define HAVE_REGEX_H_FUNCS 1
20092 cat >>confdefs.h <<\EOF
20093 #define HAVE_REGEXP_H_FUNCS 1
20097 cat >>confdefs.h <<\EOF
20098 #define HAVE_REGEXPR_H_FUNCS 1
20120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20121 echo "$as_me:20121: checking for $ac_header" >&5
20122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 cat >"conftest.$ac_ext" <<_ACEOF
20127 #line 20127 "configure"
20128 #include "confdefs.h"
20129 #include <$ac_header>
20131 if { (eval echo "$as_me:20131: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20132 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20134 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:20137: \$? = $ac_status" >&5
20138 (exit "$ac_status"); } >/dev/null; then
20139 if test -s conftest.err; then
20140 ac_cpp_err=$ac_c_preproc_warn_flag
20147 if test -z "$ac_cpp_err"; then
20148 eval "$as_ac_Header=yes"
20150 echo "$as_me: failed program was:" >&5
20151 cat "conftest.$ac_ext" >&5
20152 eval "$as_ac_Header=no"
20154 rm -f conftest.err "conftest.$ac_ext"
20156 echo "$as_me:20156: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20157 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20158 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20159 cat >>confdefs.h <<EOF
20160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20166 for ac_header in unistd.h getopt.h
20168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20169 echo "$as_me:20169: checking for $ac_header" >&5
20170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 cat >"conftest.$ac_ext" <<_ACEOF
20175 #line 20175 "configure"
20176 #include "confdefs.h"
20177 #include <$ac_header>
20179 if { (eval echo "$as_me:20179: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20180 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20182 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:20185: \$? = $ac_status" >&5
20186 (exit "$ac_status"); } >/dev/null; then
20187 if test -s conftest.err; then
20188 ac_cpp_err=$ac_c_preproc_warn_flag
20195 if test -z "$ac_cpp_err"; then
20196 eval "$as_ac_Header=yes"
20198 echo "$as_me: failed program was:" >&5
20199 cat "conftest.$ac_ext" >&5
20200 eval "$as_ac_Header=no"
20202 rm -f conftest.err "conftest.$ac_ext"
20204 echo "$as_me:20204: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20205 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20206 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20207 cat >>confdefs.h <<EOF
20208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20214 echo "$as_me:20214: checking for header declaring getopt variables" >&5
20215 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20216 if test "${cf_cv_getopt_header+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 cf_cv_getopt_header=none
20221 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20223 cat >"conftest.$ac_ext" <<_ACEOF
20224 #line 20224 "configure"
20225 #include "confdefs.h"
20227 #include <$cf_header>
20231 int x = optind; char *y = optarg; (void)x; (void)y
20236 rm -f "conftest.$ac_objext"
20237 if { (eval echo "$as_me:20237: \"$ac_compile\"") >&5
20238 (eval $ac_compile) 2>&5
20240 echo "$as_me:20240: \$? = $ac_status" >&5
20241 (exit "$ac_status"); } &&
20242 { ac_try='test -s "conftest.$ac_objext"'
20243 { (eval echo "$as_me:20243: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20246 echo "$as_me:20246: \$? = $ac_status" >&5
20247 (exit "$ac_status"); }; }; then
20248 cf_cv_getopt_header=$cf_header
20251 echo "$as_me: failed program was:" >&5
20252 cat "conftest.$ac_ext" >&5
20254 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20258 echo "$as_me:20258: result: $cf_cv_getopt_header" >&5
20259 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20260 if test "$cf_cv_getopt_header" != none ; then
20262 cat >>confdefs.h <<\EOF
20263 #define HAVE_GETOPT_HEADER 1
20267 if test "$cf_cv_getopt_header" = getopt.h ; then
20269 cat >>confdefs.h <<\EOF
20270 #define NEED_GETOPT_H 1
20275 echo "$as_me:20275: checking if external environ is declared" >&5
20276 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20277 if test "${cf_cv_dcl_environ+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 cat >"conftest.$ac_ext" <<_ACEOF
20282 #line 20282 "configure"
20283 #include "confdefs.h"
20285 #ifdef HAVE_STDLIB_H
20286 #include <stdlib.h>
20288 #include <unistd.h>
20292 int x = (int) environ
20297 rm -f "conftest.$ac_objext"
20298 if { (eval echo "$as_me:20298: \"$ac_compile\"") >&5
20299 (eval $ac_compile) 2>&5
20301 echo "$as_me:20301: \$? = $ac_status" >&5
20302 (exit "$ac_status"); } &&
20303 { ac_try='test -s "conftest.$ac_objext"'
20304 { (eval echo "$as_me:20304: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:20307: \$? = $ac_status" >&5
20308 (exit "$ac_status"); }; }; then
20309 cf_cv_dcl_environ=yes
20311 echo "$as_me: failed program was:" >&5
20312 cat "conftest.$ac_ext" >&5
20313 cf_cv_dcl_environ=no
20315 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20318 echo "$as_me:20318: result: $cf_cv_dcl_environ" >&5
20319 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20321 if test "$cf_cv_dcl_environ" = no ; then
20323 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20325 cat >>confdefs.h <<EOF
20326 #define $cf_result 1
20331 # It's possible (for near-UNIX clones) that the data doesn't exist
20333 echo "$as_me:20333: checking if external environ exists" >&5
20334 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20335 if test "${cf_cv_have_environ+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 cat >"conftest.$ac_ext" <<_ACEOF
20340 #line 20340 "configure"
20341 #include "confdefs.h"
20344 extern int environ;
20354 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20355 if { (eval echo "$as_me:20355: \"$ac_link\"") >&5
20356 (eval $ac_link) 2>&5
20358 echo "$as_me:20358: \$? = $ac_status" >&5
20359 (exit "$ac_status"); } &&
20360 { ac_try='test -s "conftest$ac_exeext"'
20361 { (eval echo "$as_me:20361: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:20364: \$? = $ac_status" >&5
20365 (exit "$ac_status"); }; }; then
20366 cf_cv_have_environ=yes
20368 echo "$as_me: failed program was:" >&5
20369 cat "conftest.$ac_ext" >&5
20370 cf_cv_have_environ=no
20372 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20375 echo "$as_me:20375: result: $cf_cv_have_environ" >&5
20376 echo "${ECHO_T}$cf_cv_have_environ" >&6
20378 if test "$cf_cv_have_environ" = yes ; then
20380 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20382 cat >>confdefs.h <<EOF
20383 #define $cf_result 1
20388 echo "$as_me:20388: checking for getenv" >&5
20389 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20390 if test "${ac_cv_func_getenv+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 cat >"conftest.$ac_ext" <<_ACEOF
20394 #line 20394 "configure"
20395 #include "confdefs.h"
20396 #define getenv autoconf_temporary
20397 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20404 /* We use char because int might match the return type of a gcc2
20405 builtin and then its argument prototype would still apply. */
20406 char getenv (void);
20412 /* The GNU C library defines stubs for functions which it implements
20413 to always fail with ENOSYS. Some functions are actually named
20414 something starting with __ and the normal name is an alias. */
20415 #if defined (__stub_getenv) || defined (__stub___getenv)
20416 #error found stub for getenv
20424 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20425 if { (eval echo "$as_me:20425: \"$ac_link\"") >&5
20426 (eval $ac_link) 2>&5
20428 echo "$as_me:20428: \$? = $ac_status" >&5
20429 (exit "$ac_status"); } &&
20430 { ac_try='test -s "conftest$ac_exeext"'
20431 { (eval echo "$as_me:20431: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:20434: \$? = $ac_status" >&5
20435 (exit "$ac_status"); }; }; then
20436 ac_cv_func_getenv=yes
20438 echo "$as_me: failed program was:" >&5
20439 cat "conftest.$ac_ext" >&5
20440 ac_cv_func_getenv=no
20442 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20444 echo "$as_me:20444: result: $ac_cv_func_getenv" >&5
20445 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20447 for ac_func in putenv setenv strdup
20449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20450 echo "$as_me:20450: checking for $ac_func" >&5
20451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20452 if eval "test \"\${$as_ac_var+set}\" = set"; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 cat >"conftest.$ac_ext" <<_ACEOF
20456 #line 20456 "configure"
20457 #include "confdefs.h"
20458 #define $ac_func autoconf_temporary
20459 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20466 /* We use char because int might match the return type of a gcc2
20467 builtin and then its argument prototype would still apply. */
20468 char $ac_func (void);
20474 /* The GNU C library defines stubs for functions which it implements
20475 to always fail with ENOSYS. Some functions are actually named
20476 something starting with __ and the normal name is an alias. */
20477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20478 #error found stub for $ac_func
20481 return $ac_func ();
20486 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20487 if { (eval echo "$as_me:20487: \"$ac_link\"") >&5
20488 (eval $ac_link) 2>&5
20490 echo "$as_me:20490: \$? = $ac_status" >&5
20491 (exit "$ac_status"); } &&
20492 { ac_try='test -s "conftest$ac_exeext"'
20493 { (eval echo "$as_me:20493: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20496 echo "$as_me:20496: \$? = $ac_status" >&5
20497 (exit "$ac_status"); }; }; then
20498 eval "$as_ac_var=yes"
20500 echo "$as_me: failed program was:" >&5
20501 cat "conftest.$ac_ext" >&5
20502 eval "$as_ac_var=no"
20504 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20506 echo "$as_me:20506: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20507 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20508 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20509 cat >>confdefs.h <<EOF
20510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20516 echo "$as_me:20516: checking if getenv returns consistent values" >&5
20517 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20518 if test "${cf_cv_consistent_getenv+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 if test "$cross_compiling" = yes; then
20523 cf_cv_consistent_getenv=unknown
20525 cat >"conftest.$ac_ext" <<_ACEOF
20526 #line 20526 "configure"
20527 #include "confdefs.h"
20529 #include <stdlib.h>
20530 #include <unistd.h>
20532 #include <string.h>
20533 #include <sys/types.h>
20535 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20536 extern char **environ; /* POSIX, but some systems are not... */
20539 #if defined(HAVE_STRDUP)
20540 #define str_alloc(s) strdup(s)
20542 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20545 static void set_value(const char *name, const char *value)
20547 #if defined(HAVE_SETENV)
20548 setenv(name, value, 1);
20549 #elif defined(HAVE_PUTENV)
20551 sprintf(buffer, "%s=%s", name, value);
20552 putenv(str_alloc(buffer));
20554 #error neither putenv/setenv found
20560 size_t numenv, limit, j;
20565 for (numenv = 0; environ[numenv]; ++numenv) ;
20566 limit = numenv + 10;
20567 mynames = (char **) calloc(limit + 1, sizeof(char *));
20568 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20569 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20570 #if defined(HAVE_ENVIRON)
20571 for (j = 0; environ[j]; ++j) {
20572 mynames[j] = str_alloc(environ[j]);
20573 equals = strchr(mynames[j], '=');
20576 myvalues[j] = str_alloc(equals);
20578 myvalues[j] = str_alloc("");
20582 for (j = numenv; j < limit; ++j) {
20590 sprintf(name, "TERM%lu", (unsigned long) k);
20591 for (jk = 0; jk < j; ++jk) {
20592 if (!strcmp(name, mynames[jk])) {
20599 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20600 set_value(name, value);
20601 mynames[j] = str_alloc(name);
20602 myvalues[j] = str_alloc(value);
20604 for (pass = 0; pass < 3; ++pass) {
20605 for (j = 0; j < limit; ++j) {
20606 char *value = getenv(mynames[j]);
20609 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20610 ${cf_cv_main_return:-return}(1);
20611 } else if (value != mypointer[j]) {
20612 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20613 ${cf_cv_main_return:-return}(1);
20614 } else if (strcmp(value, myvalues[j])) {
20615 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20616 ${cf_cv_main_return:-return}(1);
20620 mypointer[j] = value;
20621 for (k = 0; k < j; ++k) {
20622 if (mypointer[j] == mypointer[k]) {
20623 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20624 ${cf_cv_main_return:-return}(1);
20630 ${cf_cv_main_return:-return}(0);
20634 rm -f "conftest$ac_exeext"
20635 if { (eval echo "$as_me:20635: \"$ac_link\"") >&5
20636 (eval $ac_link) 2>&5
20638 echo "$as_me:20638: \$? = $ac_status" >&5
20639 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20640 { (eval echo "$as_me:20640: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20643 echo "$as_me:20643: \$? = $ac_status" >&5
20644 (exit "$ac_status"); }; }; then
20645 cf_cv_consistent_getenv=yes
20647 echo "$as_me: program exited with status $ac_status" >&5
20648 echo "$as_me: failed program was:" >&5
20649 cat "conftest.$ac_ext" >&5
20650 cf_cv_consistent_getenv=no
20652 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20656 echo "$as_me:20656: result: $cf_cv_consistent_getenv" >&5
20657 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20659 if test "x$cf_cv_consistent_getenv" = xno
20662 cat >>confdefs.h <<\EOF
20663 #define HAVE_CONSISTENT_GETENV 1
20668 if test "x$cf_cv_consistent_getenv" = xno && \
20669 test "x$cf_with_trace" = xyes
20671 { echo "$as_me:20671: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20672 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20675 echo "$as_me:20675: checking if sys/time.h works with sys/select.h" >&5
20676 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20677 if test "${cf_cv_sys_time_select+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 cat >"conftest.$ac_ext" <<_ACEOF
20682 #line 20682 "configure"
20683 #include "confdefs.h"
20685 #include <sys/types.h>
20686 #ifdef HAVE_SYS_TIME_H
20687 #include <sys/time.h>
20689 #ifdef HAVE_SYS_SELECT_H
20690 #include <sys/select.h>
20701 rm -f "conftest.$ac_objext"
20702 if { (eval echo "$as_me:20702: \"$ac_compile\"") >&5
20703 (eval $ac_compile) 2>&5
20705 echo "$as_me:20705: \$? = $ac_status" >&5
20706 (exit "$ac_status"); } &&
20707 { ac_try='test -s "conftest.$ac_objext"'
20708 { (eval echo "$as_me:20708: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20711 echo "$as_me:20711: \$? = $ac_status" >&5
20712 (exit "$ac_status"); }; }; then
20713 cf_cv_sys_time_select=yes
20715 echo "$as_me: failed program was:" >&5
20716 cat "conftest.$ac_ext" >&5
20717 cf_cv_sys_time_select=no
20719 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20723 echo "$as_me:20723: result: $cf_cv_sys_time_select" >&5
20724 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20725 test "$cf_cv_sys_time_select" = yes &&
20726 cat >>confdefs.h <<\EOF
20727 #define HAVE_SYS_TIME_SELECT 1
20730 ### checks for compiler characteristics
20732 ac_cpp='$CPP $CPPFLAGS'
20733 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20734 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20736 ac_main_return="return"
20738 echo "$as_me:20738: checking for an ANSI C-conforming const" >&5
20739 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20740 if test "${ac_cv_c_const+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20743 cat >"conftest.$ac_ext" <<_ACEOF
20744 #line 20744 "configure"
20745 #include "confdefs.h"
20750 /* FIXME: Include the comments suggested by Paul. */
20751 #ifndef __cplusplus
20752 /* Ultrix mips cc rejects this. */
20753 typedef int charset[2];
20755 /* SunOS 4.1.1 cc rejects this. */
20756 char const *const *ccp;
20758 /* NEC SVR4.0.2 mips cc rejects this. */
20759 struct point {int x, y;};
20760 static struct point const zero = {0,0};
20761 /* AIX XL C 1.02.0.0 rejects this.
20762 It does not let you subtract one const X* pointer from another in
20763 an arm of an if-expression whose if-part is not a constant
20765 const char *g = "string";
20766 ccp = &g + (g ? g-g : 0);
20767 /* HPUX 7.0 cc rejects these. */
20770 ccp = (char const *const *) p;
20771 { /* SCO 3.2v4 cc rejects this. */
20773 char const *s = 0 ? (char *) 0 : (char const *) 0;
20777 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20778 int x[] = {25, 17};
20779 const int *foo = &x[0];
20782 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20783 typedef const int *iptr;
20787 { /* AIX XL C 1.02.0.0 rejects this saying
20788 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20789 struct s { int j; const int *ap[3]; };
20790 struct s *b; b->j = 5;
20792 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20793 const int foo = 10;
20801 rm -f "conftest.$ac_objext"
20802 if { (eval echo "$as_me:20802: \"$ac_compile\"") >&5
20803 (eval $ac_compile) 2>&5
20805 echo "$as_me:20805: \$? = $ac_status" >&5
20806 (exit "$ac_status"); } &&
20807 { ac_try='test -s "conftest.$ac_objext"'
20808 { (eval echo "$as_me:20808: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:20811: \$? = $ac_status" >&5
20812 (exit "$ac_status"); }; }; then
20815 echo "$as_me: failed program was:" >&5
20816 cat "conftest.$ac_ext" >&5
20819 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20821 echo "$as_me:20821: result: $ac_cv_c_const" >&5
20822 echo "${ECHO_T}$ac_cv_c_const" >&6
20823 if test $ac_cv_c_const = no; then
20825 cat >>confdefs.h <<\EOF
20831 echo "$as_me:20831: checking for inline" >&5
20832 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20833 if test "${ac_cv_c_inline+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 for ac_kw in inline __inline__ __inline; do
20838 cat >"conftest.$ac_ext" <<_ACEOF
20839 #line 20839 "configure"
20840 #include "confdefs.h"
20841 #ifndef __cplusplus
20842 static $ac_kw int static_foo () {return 0; }
20843 $ac_kw int foo () {return 0; }
20847 rm -f "conftest.$ac_objext"
20848 if { (eval echo "$as_me:20848: \"$ac_compile\"") >&5
20849 (eval $ac_compile) 2>&5
20851 echo "$as_me:20851: \$? = $ac_status" >&5
20852 (exit "$ac_status"); } &&
20853 { ac_try='test -s "conftest.$ac_objext"'
20854 { (eval echo "$as_me:20854: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20857 echo "$as_me:20857: \$? = $ac_status" >&5
20858 (exit "$ac_status"); }; }; then
20859 ac_cv_c_inline=$ac_kw; break
20861 echo "$as_me: failed program was:" >&5
20862 cat "conftest.$ac_ext" >&5
20864 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20868 echo "$as_me:20868: result: $ac_cv_c_inline" >&5
20869 echo "${ECHO_T}$ac_cv_c_inline" >&6
20870 case $ac_cv_c_inline in
20873 cat >>confdefs.h <<\EOF
20877 *) cat >>confdefs.h <<EOF
20878 #define inline $ac_cv_c_inline
20884 if test "$ac_cv_c_inline" != no ; then
20885 NCURSES_INLINE=inline
20886 if test "$INTEL_COMPILER" = yes
20889 elif test "$CLANG_COMPILER" = yes
20892 elif test "$GCC" = yes
20894 echo "$as_me:20894: checking if $CC supports options to tune inlining" >&5
20895 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20896 if test "${cf_cv_gcc_inline+set}" = set; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 cf_save_CFLAGS=$CFLAGS
20901 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20902 cat >"conftest.$ac_ext" <<_ACEOF
20903 #line 20903 "configure"
20904 #include "confdefs.h"
20905 inline int foo(void) { return 1; }
20909 ${cf_cv_main_return:-return} foo()
20914 rm -f "conftest.$ac_objext"
20915 if { (eval echo "$as_me:20915: \"$ac_compile\"") >&5
20916 (eval $ac_compile) 2>&5
20918 echo "$as_me:20918: \$? = $ac_status" >&5
20919 (exit "$ac_status"); } &&
20920 { ac_try='test -s "conftest.$ac_objext"'
20921 { (eval echo "$as_me:20921: \"$ac_try\"") >&5
20922 (eval $ac_try) 2>&5
20924 echo "$as_me:20924: \$? = $ac_status" >&5
20925 (exit "$ac_status"); }; }; then
20926 cf_cv_gcc_inline=yes
20928 echo "$as_me: failed program was:" >&5
20929 cat "conftest.$ac_ext" >&5
20930 cf_cv_gcc_inline=no
20932 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20933 CFLAGS=$cf_save_CFLAGS
20936 echo "$as_me:20936: result: $cf_cv_gcc_inline" >&5
20937 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20938 if test "$cf_cv_gcc_inline" = yes ; then
20943 cf_new_extra_cppflags=
20945 for cf_add_cflags in --param max-inline-insns-single=1200
20947 case "$cf_fix_cppflags" in
20949 case "$cf_add_cflags" in
20950 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20951 case "$cf_add_cflags" in
20953 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20955 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20956 && test -z "${cf_tst_cflags}" \
20957 && cf_fix_cppflags=yes
20959 if test "$cf_fix_cppflags" = yes ; then
20961 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20962 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20965 elif test "${cf_tst_cflags}" = "\"'" ; then
20967 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20968 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20974 case "$CPPFLAGS" in
20978 case "$cf_add_cflags" in
20980 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20982 CPPFLAGS=`echo "$CPPFLAGS" | \
20983 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20984 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20989 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20990 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20997 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20998 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21005 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21006 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21008 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
21010 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21011 && test -z "${cf_tst_cflags}" \
21012 && cf_fix_cppflags=no
21017 if test -n "$cf_new_cflags" ; then
21019 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21020 CFLAGS="${CFLAGS}$cf_new_cflags"
21024 if test -n "$cf_new_cppflags" ; then
21026 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21027 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21031 if test -n "$cf_new_extra_cppflags" ; then
21033 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21034 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21042 echo "$as_me:21042: checking for signal global datatype" >&5
21043 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21044 if test "${cf_cv_sig_atomic_t+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 "volatile sig_atomic_t" \
21053 cat >"conftest.$ac_ext" <<_ACEOF
21054 #line 21054 "configure"
21055 #include "confdefs.h"
21057 #include <sys/types.h>
21058 #include <signal.h>
21063 static void handler(int sig)
21071 signal(SIGINT, handler);
21077 rm -f "conftest.$ac_objext"
21078 if { (eval echo "$as_me:21078: \"$ac_compile\"") >&5
21079 (eval $ac_compile) 2>&5
21081 echo "$as_me:21081: \$? = $ac_status" >&5
21082 (exit "$ac_status"); } &&
21083 { ac_try='test -s "conftest.$ac_objext"'
21084 { (eval echo "$as_me:21084: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21087 echo "$as_me:21087: \$? = $ac_status" >&5
21088 (exit "$ac_status"); }; }; then
21089 cf_cv_sig_atomic_t=$cf_type
21091 echo "$as_me: failed program was:" >&5
21092 cat "conftest.$ac_ext" >&5
21093 cf_cv_sig_atomic_t=no
21095 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21096 test "$cf_cv_sig_atomic_t" != no && break
21101 echo "$as_me:21101: result: $cf_cv_sig_atomic_t" >&5
21102 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21103 test "$cf_cv_sig_atomic_t" != no &&
21104 cat >>confdefs.h <<EOF
21105 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21108 if test "$NCURSES_CHTYPE" = auto ; then
21110 echo "$as_me:21110: checking for type of chtype" >&5
21111 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21112 if test "${cf_cv_typeof_chtype+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 if test "$cross_compiling" = yes; then
21117 cf_cv_typeof_chtype=long
21119 cat >"conftest.$ac_ext" <<_ACEOF
21120 #line 21120 "configure"
21121 #include "confdefs.h"
21123 #define WANT_BITS 31
21127 FILE *fp = fopen("cf_test.out", "w");
21129 char *result = "long";
21130 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21133 for (n = 0; n < WANT_BITS; n++) {
21136 if (y != 1 || x == 0) {
21142 * If x is nonzero, an int is big enough for the bits
21145 result = (x != 0) ? "int" : "long";
21150 ${cf_cv_main_return:-return}(0);
21154 rm -f "conftest$ac_exeext"
21155 if { (eval echo "$as_me:21155: \"$ac_link\"") >&5
21156 (eval $ac_link) 2>&5
21158 echo "$as_me:21158: \$? = $ac_status" >&5
21159 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21160 { (eval echo "$as_me:21160: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:21163: \$? = $ac_status" >&5
21164 (exit "$ac_status"); }; }; then
21165 cf_cv_typeof_chtype=`cat cf_test.out`
21167 echo "$as_me: program exited with status $ac_status" >&5
21168 echo "$as_me: failed program was:" >&5
21169 cat "conftest.$ac_ext" >&5
21170 cf_cv_typeof_chtype=long
21172 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21178 echo "$as_me:21178: result: $cf_cv_typeof_chtype" >&5
21179 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21181 cat >>confdefs.h <<EOF
21182 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21186 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21188 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21190 echo "$as_me:21190: checking if unsigned literals are legal" >&5
21191 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21192 if test "${cf_cv_unsigned_literals+set}" = set; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 cat >"conftest.$ac_ext" <<_ACEOF
21197 #line 21197 "configure"
21198 #include "confdefs.h"
21203 long x = 1L + 1UL + 1U + 1
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 cf_cv_unsigned_literals=yes
21222 echo "$as_me: failed program was:" >&5
21223 cat "conftest.$ac_ext" >&5
21224 cf_cv_unsigned_literals=no
21226 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21230 echo "$as_me:21230: result: $cf_cv_unsigned_literals" >&5
21231 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21234 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21235 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21237 if test "$NCURSES_MMASK_T" = auto ; then
21238 cf_cv_typeof_mmask_t=long
21240 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21242 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21244 ### Checks for external-data
21246 echo "$as_me:21246: checking if external errno is declared" >&5
21247 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21248 if test "${cf_cv_dcl_errno+set}" = set; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 cat >"conftest.$ac_ext" <<_ACEOF
21253 #line 21253 "configure"
21254 #include "confdefs.h"
21256 #ifdef HAVE_STDLIB_H
21257 #include <stdlib.h>
21260 #include <sys/types.h>
21265 int x = (int) errno; (void)x
21270 rm -f "conftest.$ac_objext"
21271 if { (eval echo "$as_me:21271: \"$ac_compile\"") >&5
21272 (eval $ac_compile) 2>&5
21274 echo "$as_me:21274: \$? = $ac_status" >&5
21275 (exit "$ac_status"); } &&
21276 { ac_try='test -s "conftest.$ac_objext"'
21277 { (eval echo "$as_me:21277: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21280 echo "$as_me:21280: \$? = $ac_status" >&5
21281 (exit "$ac_status"); }; }; then
21282 cf_cv_dcl_errno=yes
21284 echo "$as_me: failed program was:" >&5
21285 cat "conftest.$ac_ext" >&5
21288 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21291 echo "$as_me:21291: result: $cf_cv_dcl_errno" >&5
21292 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21294 if test "$cf_cv_dcl_errno" = no ; then
21296 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21298 cat >>confdefs.h <<EOF
21299 #define $cf_result 1
21304 # It's possible (for near-UNIX clones) that the data doesn't exist
21306 echo "$as_me:21306: checking if external errno exists" >&5
21307 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21308 if test "${cf_cv_have_errno+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21312 cat >"conftest.$ac_ext" <<_ACEOF
21313 #line 21313 "configure"
21314 #include "confdefs.h"
21327 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21328 if { (eval echo "$as_me:21328: \"$ac_link\"") >&5
21329 (eval $ac_link) 2>&5
21331 echo "$as_me:21331: \$? = $ac_status" >&5
21332 (exit "$ac_status"); } &&
21333 { ac_try='test -s "conftest$ac_exeext"'
21334 { (eval echo "$as_me:21334: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21337 echo "$as_me:21337: \$? = $ac_status" >&5
21338 (exit "$ac_status"); }; }; then
21339 cf_cv_have_errno=yes
21341 echo "$as_me: failed program was:" >&5
21342 cat "conftest.$ac_ext" >&5
21343 cf_cv_have_errno=no
21345 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21348 echo "$as_me:21348: result: $cf_cv_have_errno" >&5
21349 echo "${ECHO_T}$cf_cv_have_errno" >&6
21351 if test "$cf_cv_have_errno" = yes ; then
21353 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21355 cat >>confdefs.h <<EOF
21356 #define $cf_result 1
21361 echo "$as_me:21361: checking if data-only library module links" >&5
21362 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21363 if test "${cf_cv_link_dataonly+set}" = set; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 cat >conftest.$ac_ext <<EOF
21369 #line 21369 "configure"
21370 int testdata[3] = { 123, 456, 789 };
21372 if { (eval echo "$as_me:21372: \"$ac_compile\"") >&5
21373 (eval $ac_compile) 2>&5
21375 echo "$as_me:21375: \$? = $ac_status" >&5
21376 (exit "$ac_status"); } ; then
21377 mv conftest.o data.o && \
21378 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21380 rm -f conftest.$ac_ext data.o
21381 cat >conftest.$ac_ext <<EOF
21382 #line 21382 "configure"
21386 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21388 extern int testdata[3];
21389 return testdata[0] == 123
21390 && testdata[1] == 456
21391 && testdata[2] == 789;
21395 if { (eval echo "$as_me:21395: \"$ac_compile\"") >&5
21396 (eval $ac_compile) 2>&5
21398 echo "$as_me:21398: \$? = $ac_status" >&5
21399 (exit "$ac_status"); }; then
21400 mv conftest.o func.o && \
21401 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21403 rm -f conftest.$ac_ext func.o
21404 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21405 cf_saveLIBS="$LIBS"
21406 LIBS="conftest.a $LIBS"
21407 if test "$cross_compiling" = yes; then
21408 cf_cv_link_dataonly=unknown
21410 cat >"conftest.$ac_ext" <<_ACEOF
21411 #line 21411 "configure"
21412 #include "confdefs.h"
21416 extern int testfunc();
21417 ${cf_cv_main_return:-return} (!testfunc());
21421 rm -f "conftest$ac_exeext"
21422 if { (eval echo "$as_me:21422: \"$ac_link\"") >&5
21423 (eval $ac_link) 2>&5
21425 echo "$as_me:21425: \$? = $ac_status" >&5
21426 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21427 { (eval echo "$as_me:21427: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21430 echo "$as_me:21430: \$? = $ac_status" >&5
21431 (exit "$ac_status"); }; }; then
21432 cf_cv_link_dataonly=yes
21434 echo "$as_me: program exited with status $ac_status" >&5
21435 echo "$as_me: failed program was:" >&5
21436 cat "conftest.$ac_ext" >&5
21437 cf_cv_link_dataonly=no
21439 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21441 LIBS="$cf_saveLIBS"
21445 echo "$as_me:21445: result: $cf_cv_link_dataonly" >&5
21446 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21448 if test "$cf_cv_link_dataonly" = no ; then
21450 cat >>confdefs.h <<\EOF
21451 #define BROKEN_LINKER 1
21457 ### Checks for library functions.
21487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21488 echo "$as_me:21488: checking for $ac_func" >&5
21489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21490 if eval "test \"\${$as_ac_var+set}\" = set"; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 cat >"conftest.$ac_ext" <<_ACEOF
21494 #line 21494 "configure"
21495 #include "confdefs.h"
21496 #define $ac_func autoconf_temporary
21497 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21504 /* We use char because int might match the return type of a gcc2
21505 builtin and then its argument prototype would still apply. */
21506 char $ac_func (void);
21512 /* The GNU C library defines stubs for functions which it implements
21513 to always fail with ENOSYS. Some functions are actually named
21514 something starting with __ and the normal name is an alias. */
21515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21516 #error found stub for $ac_func
21519 return $ac_func ();
21524 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21525 if { (eval echo "$as_me:21525: \"$ac_link\"") >&5
21526 (eval $ac_link) 2>&5
21528 echo "$as_me:21528: \$? = $ac_status" >&5
21529 (exit "$ac_status"); } &&
21530 { ac_try='test -s "conftest$ac_exeext"'
21531 { (eval echo "$as_me:21531: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21534 echo "$as_me:21534: \$? = $ac_status" >&5
21535 (exit "$ac_status"); }; }; then
21536 eval "$as_ac_var=yes"
21538 echo "$as_me: failed program was:" >&5
21539 cat "conftest.$ac_ext" >&5
21540 eval "$as_ac_var=no"
21542 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21544 echo "$as_me:21544: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21545 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21546 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21547 cat >>confdefs.h <<EOF
21548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21554 echo "$as_me:21554: checking if _PATH_TTYS is defined in ttyent.h" >&5
21555 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
21556 if test "${cf_cv_PATH_TTYS+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 cat >"conftest.$ac_ext" <<_ACEOF
21561 #line 21561 "configure"
21562 #include "confdefs.h"
21565 #include <ttyent.h>
21570 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
21575 rm -f "conftest.$ac_objext"
21576 if { (eval echo "$as_me:21576: \"$ac_compile\"") >&5
21577 (eval $ac_compile) 2>&5
21579 echo "$as_me:21579: \$? = $ac_status" >&5
21580 (exit "$ac_status"); } &&
21581 { ac_try='test -s "conftest.$ac_objext"'
21582 { (eval echo "$as_me:21582: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:21585: \$? = $ac_status" >&5
21586 (exit "$ac_status"); }; }; then
21587 cf_cv_PATH_TTYS=yes
21589 echo "$as_me: failed program was:" >&5
21590 cat "conftest.$ac_ext" >&5
21593 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21595 echo "$as_me:21595: result: $cf_cv_PATH_TTYS" >&5
21596 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
21598 if test $cf_cv_PATH_TTYS = no
21600 for cf_ttys in /etc/ttytype /etc/ttys
21602 if test -f $cf_ttys
21604 cf_cv_PATH_TTYS=maybe
21606 cat >>confdefs.h <<\EOF
21607 #define _PATH_TTYS $cf_ttys
21615 if test $cf_cv_PATH_TTYS != no
21617 echo "$as_me:21617: checking if _PATH_TTYS file exists" >&5
21618 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
21619 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21623 if test "$cross_compiling" = yes; then
21624 cf_cv_have_PATH_TTYS=unknown
21626 cat >"conftest.$ac_ext" <<_ACEOF
21627 #line 21627 "configure"
21628 #include "confdefs.h"
21631 #include <ttyent.h>
21633 FILE *fp = fopen(_PATH_TTYS, "r");
21634 ${cf_cv_main_return:-return} (fp == 0);
21637 rm -f "conftest$ac_exeext"
21638 if { (eval echo "$as_me:21638: \"$ac_link\"") >&5
21639 (eval $ac_link) 2>&5
21641 echo "$as_me:21641: \$? = $ac_status" >&5
21642 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21643 { (eval echo "$as_me:21643: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21646 echo "$as_me:21646: \$? = $ac_status" >&5
21647 (exit "$ac_status"); }; }; then
21648 cf_cv_have_PATH_TTYS=yes
21650 echo "$as_me: program exited with status $ac_status" >&5
21651 echo "$as_me: failed program was:" >&5
21652 cat "conftest.$ac_ext" >&5
21653 cf_cv_have_PATH_TTYS=no
21655 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21658 echo "$as_me:21658: result: $cf_cv_have_PATH_TTYS" >&5
21659 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
21660 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
21663 if test $cf_cv_PATH_TTYS != no
21666 cat >>confdefs.h <<\EOF
21667 #define HAVE_PATH_TTYS 1
21670 echo "$as_me:21670: checking for getttynam" >&5
21671 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
21672 if test "${cf_cv_func_getttynam+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 cat >"conftest.$ac_ext" <<_ACEOF
21677 #line 21677 "configure"
21678 #include "confdefs.h"
21679 #include <ttyent.h>
21683 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
21688 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21689 if { (eval echo "$as_me:21689: \"$ac_link\"") >&5
21690 (eval $ac_link) 2>&5
21692 echo "$as_me:21692: \$? = $ac_status" >&5
21693 (exit "$ac_status"); } &&
21694 { ac_try='test -s "conftest$ac_exeext"'
21695 { (eval echo "$as_me:21695: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21698 echo "$as_me:21698: \$? = $ac_status" >&5
21699 (exit "$ac_status"); }; }; then
21700 cf_cv_func_getttynam=yes
21702 echo "$as_me: failed program was:" >&5
21703 cat "conftest.$ac_ext" >&5
21704 cf_cv_func_getttynam=no
21706 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21708 echo "$as_me:21708: result: $cf_cv_func_getttynam" >&5
21709 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
21710 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
21711 #define HAVE_GETTTYNAM 1
21716 if test "x$ac_cv_func_getopt" = xno && \
21717 test "x$cf_with_progs$cf_with_tests" != xnono; then
21718 { { echo "$as_me:21718: error: getopt is required for building programs" >&5
21719 echo "$as_me: error: getopt is required for building programs" >&2;}
21720 { (exit 1); exit 1; }; }
21723 if test "x$with_safe_sprintf" = xyes
21725 if test "x$ac_cv_func_vsnprintf" = xyes
21727 { echo "$as_me:21727: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21728 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21731 cat >>confdefs.h <<\EOF
21732 #define USE_SAFE_SPRINTF 1
21738 if test "x$with_getcap" = "xyes" ; then
21740 echo "$as_me:21740: checking for terminal-capability database functions" >&5
21741 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21742 if test "${cf_cv_cgetent+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 cat >"conftest.$ac_ext" <<_ACEOF
21747 #line 21747 "configure"
21748 #include "confdefs.h"
21750 #include <stdlib.h>
21757 char *db_array = temp;
21758 cgetent(&buf, &db_array, "vt100");
21759 cgetcap(buf, "tc", '=');
21760 cgetmatch(buf, "tc");
21766 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21767 if { (eval echo "$as_me:21767: \"$ac_link\"") >&5
21768 (eval $ac_link) 2>&5
21770 echo "$as_me:21770: \$? = $ac_status" >&5
21771 (exit "$ac_status"); } &&
21772 { ac_try='test -s "conftest$ac_exeext"'
21773 { (eval echo "$as_me:21773: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21776 echo "$as_me:21776: \$? = $ac_status" >&5
21777 (exit "$ac_status"); }; }; then
21780 echo "$as_me: failed program was:" >&5
21781 cat "conftest.$ac_ext" >&5
21784 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21787 echo "$as_me:21787: result: $cf_cv_cgetent" >&5
21788 echo "${ECHO_T}$cf_cv_cgetent" >&6
21790 if test "$cf_cv_cgetent" = yes
21793 cat >>confdefs.h <<\EOF
21794 #define HAVE_BSD_CGETENT 1
21797 echo "$as_me:21797: checking if cgetent uses const parameter" >&5
21798 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21799 if test "${cf_cv_cgetent_const+set}" = set; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21803 cat >"conftest.$ac_ext" <<_ACEOF
21804 #line 21804 "configure"
21805 #include "confdefs.h"
21807 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21808 #include <stdlib.h>
21815 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
21816 const char *db_array = temp;
21817 cgetent(&buf, &db_array, "vt100");
21819 cgetcap(buf, "tc", '=');
21820 cgetmatch(buf, "tc");
21826 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21827 if { (eval echo "$as_me:21827: \"$ac_link\"") >&5
21828 (eval $ac_link) 2>&5
21830 echo "$as_me:21830: \$? = $ac_status" >&5
21831 (exit "$ac_status"); } &&
21832 { ac_try='test -s "conftest$ac_exeext"'
21833 { (eval echo "$as_me:21833: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21836 echo "$as_me:21836: \$? = $ac_status" >&5
21837 (exit "$ac_status"); }; }; then
21838 cf_cv_cgetent_const=yes
21840 echo "$as_me: failed program was:" >&5
21841 cat "conftest.$ac_ext" >&5
21842 cf_cv_cgetent_const=no
21844 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21847 echo "$as_me:21847: result: $cf_cv_cgetent_const" >&5
21848 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
21849 if test "$cf_cv_cgetent_const" = yes
21852 cat >>confdefs.h <<EOF
21853 #define CGETENT_CONST const
21861 echo "$as_me:21861: checking for isascii" >&5
21862 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
21863 if test "${cf_cv_have_isascii+set}" = set; then
21864 echo $ECHO_N "(cached) $ECHO_C" >&6
21867 cat >"conftest.$ac_ext" <<_ACEOF
21868 #line 21868 "configure"
21869 #include "confdefs.h"
21874 int x = isascii(' ')
21879 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21880 if { (eval echo "$as_me:21880: \"$ac_link\"") >&5
21881 (eval $ac_link) 2>&5
21883 echo "$as_me:21883: \$? = $ac_status" >&5
21884 (exit "$ac_status"); } &&
21885 { ac_try='test -s "conftest$ac_exeext"'
21886 { (eval echo "$as_me:21886: \"$ac_try\"") >&5
21887 (eval $ac_try) 2>&5
21889 echo "$as_me:21889: \$? = $ac_status" >&5
21890 (exit "$ac_status"); }; }; then
21891 cf_cv_have_isascii=yes
21893 echo "$as_me: failed program was:" >&5
21894 cat "conftest.$ac_ext" >&5
21895 cf_cv_have_isascii=no
21897 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21900 echo "$as_me:21900: result: $cf_cv_have_isascii" >&5
21901 echo "${ECHO_T}$cf_cv_have_isascii" >&6
21902 test "$cf_cv_have_isascii" = yes &&
21903 cat >>confdefs.h <<\EOF
21904 #define HAVE_ISASCII 1
21907 if test "$ac_cv_func_sigaction" = yes; then
21908 echo "$as_me:21908: checking whether sigaction needs _POSIX_SOURCE" >&5
21909 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
21910 cat >"conftest.$ac_ext" <<_ACEOF
21911 #line 21911 "configure"
21912 #include "confdefs.h"
21914 #include <sys/types.h>
21915 #include <signal.h>
21919 struct sigaction act
21924 rm -f "conftest.$ac_objext"
21925 if { (eval echo "$as_me:21925: \"$ac_compile\"") >&5
21926 (eval $ac_compile) 2>&5
21928 echo "$as_me:21928: \$? = $ac_status" >&5
21929 (exit "$ac_status"); } &&
21930 { ac_try='test -s "conftest.$ac_objext"'
21931 { (eval echo "$as_me:21931: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21934 echo "$as_me:21934: \$? = $ac_status" >&5
21935 (exit "$ac_status"); }; }; then
21938 echo "$as_me: failed program was:" >&5
21939 cat "conftest.$ac_ext" >&5
21941 cat >"conftest.$ac_ext" <<_ACEOF
21942 #line 21942 "configure"
21943 #include "confdefs.h"
21945 #define _POSIX_SOURCE
21946 #include <sys/types.h>
21947 #include <signal.h>
21951 struct sigaction act
21956 rm -f "conftest.$ac_objext"
21957 if { (eval echo "$as_me:21957: \"$ac_compile\"") >&5
21958 (eval $ac_compile) 2>&5
21960 echo "$as_me:21960: \$? = $ac_status" >&5
21961 (exit "$ac_status"); } &&
21962 { ac_try='test -s "conftest.$ac_objext"'
21963 { (eval echo "$as_me:21963: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21966 echo "$as_me:21966: \$? = $ac_status" >&5
21967 (exit "$ac_status"); }; }; then
21970 cat >>confdefs.h <<\EOF
21971 #define _POSIX_SOURCE 1
21975 echo "$as_me: failed program was:" >&5
21976 cat "conftest.$ac_ext" >&5
21979 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21981 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21982 echo "$as_me:21982: result: $sigact_bad" >&5
21983 echo "${ECHO_T}$sigact_bad" >&6
21986 echo "$as_me:21986: checking if nanosleep really works" >&5
21987 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
21988 if test "${cf_cv_func_nanosleep+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21992 if test "$cross_compiling" = yes; then
21993 cf_cv_func_nanosleep=unknown
21995 cat >"conftest.$ac_ext" <<_ACEOF
21996 #line 21996 "configure"
21997 #include "confdefs.h"
22003 #ifdef HAVE_SYS_TIME_H
22004 #include <sys/time.h>
22008 struct timespec ts1, ts2;
22011 ts1.tv_nsec = 750000000;
22015 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22016 ${cf_cv_main_return:-return}(code != 0);
22020 rm -f "conftest$ac_exeext"
22021 if { (eval echo "$as_me:22021: \"$ac_link\"") >&5
22022 (eval $ac_link) 2>&5
22024 echo "$as_me:22024: \$? = $ac_status" >&5
22025 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22026 { (eval echo "$as_me:22026: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22029 echo "$as_me:22029: \$? = $ac_status" >&5
22030 (exit "$ac_status"); }; }; then
22031 cf_cv_func_nanosleep=yes
22033 echo "$as_me: program exited with status $ac_status" >&5
22034 echo "$as_me: failed program was:" >&5
22035 cat "conftest.$ac_ext" >&5
22036 cf_cv_func_nanosleep=no
22038 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22041 echo "$as_me:22041: result: $cf_cv_func_nanosleep" >&5
22042 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22044 test "$cf_cv_func_nanosleep" = "yes" &&
22045 cat >>confdefs.h <<\EOF
22046 #define HAVE_NANOSLEEP 1
22057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22058 echo "$as_me:22058: checking for $ac_header" >&5
22059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 cat >"conftest.$ac_ext" <<_ACEOF
22064 #line 22064 "configure"
22065 #include "confdefs.h"
22066 #include <$ac_header>
22068 if { (eval echo "$as_me:22068: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22069 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22071 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22073 cat conftest.err >&5
22074 echo "$as_me:22074: \$? = $ac_status" >&5
22075 (exit "$ac_status"); } >/dev/null; then
22076 if test -s conftest.err; then
22077 ac_cpp_err=$ac_c_preproc_warn_flag
22084 if test -z "$ac_cpp_err"; then
22085 eval "$as_ac_Header=yes"
22087 echo "$as_me: failed program was:" >&5
22088 cat "conftest.$ac_ext" >&5
22089 eval "$as_ac_Header=no"
22091 rm -f conftest.err "conftest.$ac_ext"
22093 echo "$as_me:22093: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22094 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22095 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22096 cat >>confdefs.h <<EOF
22097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22103 if test "$ac_cv_header_termios_h" = yes ; then
22104 case "$CFLAGS $CPPFLAGS" in
22105 (*-D_POSIX_SOURCE*)
22106 termios_bad=dunno ;;
22107 (*) termios_bad=maybe ;;
22109 if test "$termios_bad" = maybe ; then
22110 echo "$as_me:22110: checking whether termios.h needs _POSIX_SOURCE" >&5
22111 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22112 cat >"conftest.$ac_ext" <<_ACEOF
22113 #line 22113 "configure"
22114 #include "confdefs.h"
22115 #include <termios.h>
22119 struct termios foo; int x = foo.c_iflag = 1; (void)x
22124 rm -f "conftest.$ac_objext"
22125 if { (eval echo "$as_me:22125: \"$ac_compile\"") >&5
22126 (eval $ac_compile) 2>&5
22128 echo "$as_me:22128: \$? = $ac_status" >&5
22129 (exit "$ac_status"); } &&
22130 { ac_try='test -s "conftest.$ac_objext"'
22131 { (eval echo "$as_me:22131: \"$ac_try\"") >&5
22132 (eval $ac_try) 2>&5
22134 echo "$as_me:22134: \$? = $ac_status" >&5
22135 (exit "$ac_status"); }; }; then
22138 echo "$as_me: failed program was:" >&5
22139 cat "conftest.$ac_ext" >&5
22141 cat >"conftest.$ac_ext" <<_ACEOF
22142 #line 22142 "configure"
22143 #include "confdefs.h"
22145 #define _POSIX_SOURCE
22146 #include <termios.h>
22150 struct termios foo; int x = foo.c_iflag = 2; (void)x
22155 rm -f "conftest.$ac_objext"
22156 if { (eval echo "$as_me:22156: \"$ac_compile\"") >&5
22157 (eval $ac_compile) 2>&5
22159 echo "$as_me:22159: \$? = $ac_status" >&5
22160 (exit "$ac_status"); } &&
22161 { ac_try='test -s "conftest.$ac_objext"'
22162 { (eval echo "$as_me:22162: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:22165: \$? = $ac_status" >&5
22166 (exit "$ac_status"); }; }; then
22167 termios_bad=unknown
22169 echo "$as_me: failed program was:" >&5
22170 cat "conftest.$ac_ext" >&5
22172 cat >>confdefs.h <<\EOF
22173 #define _POSIX_SOURCE 1
22177 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22180 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22181 echo "$as_me:22181: result: $termios_bad" >&5
22182 echo "${ECHO_T}$termios_bad" >&6
22186 echo "$as_me:22186: checking for tcgetattr" >&5
22187 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22188 if test "${cf_cv_have_tcgetattr+set}" = set; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22192 cat >"conftest.$ac_ext" <<_ACEOF
22193 #line 22193 "configure"
22194 #include "confdefs.h"
22196 #include <sys/types.h>
22197 #ifdef HAVE_UNISTD_H
22198 #include <unistd.h>
22200 #ifdef HAVE_TERMIOS_H
22201 #include <termios.h>
22202 #define TTY struct termios
22204 #ifdef HAVE_TERMIO_H
22205 #include <termio.h>
22206 #define TTY struct termio
22215 tcgetattr(1, &foo);
22220 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22221 if { (eval echo "$as_me:22221: \"$ac_link\"") >&5
22222 (eval $ac_link) 2>&5
22224 echo "$as_me:22224: \$? = $ac_status" >&5
22225 (exit "$ac_status"); } &&
22226 { ac_try='test -s "conftest$ac_exeext"'
22227 { (eval echo "$as_me:22227: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22230 echo "$as_me:22230: \$? = $ac_status" >&5
22231 (exit "$ac_status"); }; }; then
22232 cf_cv_have_tcgetattr=yes
22234 echo "$as_me: failed program was:" >&5
22235 cat "conftest.$ac_ext" >&5
22236 cf_cv_have_tcgetattr=no
22238 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22240 echo "$as_me:22240: result: $cf_cv_have_tcgetattr" >&5
22241 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22242 test "$cf_cv_have_tcgetattr" = yes &&
22243 cat >>confdefs.h <<\EOF
22244 #define HAVE_TCGETATTR 1
22247 echo "$as_me:22247: checking for vsscanf function or workaround" >&5
22248 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22249 if test "${cf_cv_func_vsscanf+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 cat >"conftest.$ac_ext" <<_ACEOF
22254 #line 22254 "configure"
22255 #include "confdefs.h"
22257 #include <stdarg.h>
22264 vsscanf("from", "%d", ap)
22269 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22270 if { (eval echo "$as_me:22270: \"$ac_link\"") >&5
22271 (eval $ac_link) 2>&5
22273 echo "$as_me:22273: \$? = $ac_status" >&5
22274 (exit "$ac_status"); } &&
22275 { ac_try='test -s "conftest$ac_exeext"'
22276 { (eval echo "$as_me:22276: \"$ac_try\"") >&5
22277 (eval $ac_try) 2>&5
22279 echo "$as_me:22279: \$? = $ac_status" >&5
22280 (exit "$ac_status"); }; }; then
22281 cf_cv_func_vsscanf=vsscanf
22283 echo "$as_me: failed program was:" >&5
22284 cat "conftest.$ac_ext" >&5
22286 cat >"conftest.$ac_ext" <<_ACEOF
22287 #line 22287 "configure"
22288 #include "confdefs.h"
22290 #include <stdarg.h>
22297 char *str = "from";
22299 strbuf._flag = _IOREAD;
22300 strbuf._ptr = strbuf._base = (unsigned char *) str;
22301 strbuf._cnt = strlen(str);
22302 strbuf._file = _NFILE;
22303 return (vfscanf(&strbuf, "%d", ap))
22308 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22309 if { (eval echo "$as_me:22309: \"$ac_link\"") >&5
22310 (eval $ac_link) 2>&5
22312 echo "$as_me:22312: \$? = $ac_status" >&5
22313 (exit "$ac_status"); } &&
22314 { ac_try='test -s "conftest$ac_exeext"'
22315 { (eval echo "$as_me:22315: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22318 echo "$as_me:22318: \$? = $ac_status" >&5
22319 (exit "$ac_status"); }; }; then
22320 cf_cv_func_vsscanf=vfscanf
22322 echo "$as_me: failed program was:" >&5
22323 cat "conftest.$ac_ext" >&5
22325 cat >"conftest.$ac_ext" <<_ACEOF
22326 #line 22326 "configure"
22327 #include "confdefs.h"
22329 #include <stdarg.h>
22336 char *str = "from";
22338 strbuf._flag = _IOREAD;
22339 strbuf._ptr = strbuf._base = (unsigned char *) str;
22340 strbuf._cnt = strlen(str);
22341 strbuf._file = _NFILE;
22342 return (_doscan(&strbuf, "%d", ap))
22347 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22348 if { (eval echo "$as_me:22348: \"$ac_link\"") >&5
22349 (eval $ac_link) 2>&5
22351 echo "$as_me:22351: \$? = $ac_status" >&5
22352 (exit "$ac_status"); } &&
22353 { ac_try='test -s "conftest$ac_exeext"'
22354 { (eval echo "$as_me:22354: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22357 echo "$as_me:22357: \$? = $ac_status" >&5
22358 (exit "$ac_status"); }; }; then
22359 cf_cv_func_vsscanf=_doscan
22361 echo "$as_me: failed program was:" >&5
22362 cat "conftest.$ac_ext" >&5
22364 cf_cv_func_vsscanf=no
22366 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22368 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22370 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22372 echo "$as_me:22372: result: $cf_cv_func_vsscanf" >&5
22373 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22375 case "$cf_cv_func_vsscanf" in
22377 cat >>confdefs.h <<\EOF
22378 #define HAVE_VSSCANF 1
22382 cat >>confdefs.h <<\EOF
22383 #define HAVE_VFSCANF 1
22387 cat >>confdefs.h <<\EOF
22388 #define HAVE__DOSCAN 1
22397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22398 echo "$as_me:22398: checking for $ac_header" >&5
22399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22401 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 cat >"conftest.$ac_ext" <<_ACEOF
22404 #line 22404 "configure"
22405 #include "confdefs.h"
22406 #include <$ac_header>
22408 if { (eval echo "$as_me:22408: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22409 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22411 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22413 cat conftest.err >&5
22414 echo "$as_me:22414: \$? = $ac_status" >&5
22415 (exit "$ac_status"); } >/dev/null; then
22416 if test -s conftest.err; then
22417 ac_cpp_err=$ac_c_preproc_warn_flag
22424 if test -z "$ac_cpp_err"; then
22425 eval "$as_ac_Header=yes"
22427 echo "$as_me: failed program was:" >&5
22428 cat "conftest.$ac_ext" >&5
22429 eval "$as_ac_Header=no"
22431 rm -f conftest.err "conftest.$ac_ext"
22433 echo "$as_me:22433: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22434 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22435 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22436 cat >>confdefs.h <<EOF
22437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22443 echo "$as_me:22443: checking for working mkstemp" >&5
22444 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22445 if test "${cf_cv_func_mkstemp+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22450 if test "$cross_compiling" = yes; then
22451 cf_cv_func_mkstemp=maybe
22453 cat >"conftest.$ac_ext" <<_ACEOF
22454 #line 22454 "configure"
22455 #include "confdefs.h"
22457 #include <sys/types.h>
22458 #ifdef HAVE_UNISTD_H
22459 #include <unistd.h>
22461 #include <stdlib.h>
22463 #include <string.h>
22464 #include <sys/stat.h>
22467 char *tmpl = "conftestXXXXXX";
22475 for (n = 0; n < 2; ++n) {
22476 strcpy(name[n], tmpl);
22477 if ((fd = mkstemp(name[n])) >= 0) {
22478 if (!strcmp(name[n], tmpl)
22479 || stat(name[n], &sb) != 0
22480 || (sb.st_mode & S_IFMT) != S_IFREG
22481 || (sb.st_mode & 077) != 0) {
22488 && !strcmp(name[0], name[1]))
22490 ${cf_cv_main_return:-return}(result);
22494 rm -f "conftest$ac_exeext"
22495 if { (eval echo "$as_me:22495: \"$ac_link\"") >&5
22496 (eval $ac_link) 2>&5
22498 echo "$as_me:22498: \$? = $ac_status" >&5
22499 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22500 { (eval echo "$as_me:22500: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22503 echo "$as_me:22503: \$? = $ac_status" >&5
22504 (exit "$ac_status"); }; }; then
22505 cf_cv_func_mkstemp=yes
22508 echo "$as_me: program exited with status $ac_status" >&5
22509 echo "$as_me: failed program was:" >&5
22510 cat "conftest.$ac_ext" >&5
22511 cf_cv_func_mkstemp=no
22514 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22518 echo "$as_me:22518: result: $cf_cv_func_mkstemp" >&5
22519 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22520 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22521 echo "$as_me:22521: checking for mkstemp" >&5
22522 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22523 if test "${ac_cv_func_mkstemp+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 cat >"conftest.$ac_ext" <<_ACEOF
22527 #line 22527 "configure"
22528 #include "confdefs.h"
22529 #define mkstemp autoconf_temporary
22530 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22537 /* We use char because int might match the return type of a gcc2
22538 builtin and then its argument prototype would still apply. */
22539 char mkstemp (void);
22545 /* The GNU C library defines stubs for functions which it implements
22546 to always fail with ENOSYS. Some functions are actually named
22547 something starting with __ and the normal name is an alias. */
22548 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22549 #error found stub for mkstemp
22557 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22558 if { (eval echo "$as_me:22558: \"$ac_link\"") >&5
22559 (eval $ac_link) 2>&5
22561 echo "$as_me:22561: \$? = $ac_status" >&5
22562 (exit "$ac_status"); } &&
22563 { ac_try='test -s "conftest$ac_exeext"'
22564 { (eval echo "$as_me:22564: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22567 echo "$as_me:22567: \$? = $ac_status" >&5
22568 (exit "$ac_status"); }; }; then
22569 ac_cv_func_mkstemp=yes
22571 echo "$as_me: failed program was:" >&5
22572 cat "conftest.$ac_ext" >&5
22573 ac_cv_func_mkstemp=no
22575 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22577 echo "$as_me:22577: result: $ac_cv_func_mkstemp" >&5
22578 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22581 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22583 cat >>confdefs.h <<\EOF
22584 #define HAVE_MKSTEMP 1
22589 # setup for prototype of fallback for vsscanf()
22591 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22597 if test "x$cross_compiling" = xyes ; then
22598 { echo "$as_me:22598: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22599 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22601 echo "$as_me:22601: checking whether setvbuf arguments are reversed" >&5
22602 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22603 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 if test "$cross_compiling" = yes; then
22607 { { echo "$as_me:22607: error: cannot run test program while cross compiling" >&5
22608 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22609 { (exit 1); exit 1; }; }
22611 cat >"conftest.$ac_ext" <<_ACEOF
22612 #line 22612 "configure"
22613 #include "confdefs.h"
22615 /* If setvbuf has the reversed format, exit 0. */
22619 /* This call has the arguments reversed.
22620 A reversed system may check and see that the address of main
22621 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22622 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22623 $ac_main_return(1);
22624 putc('\r', stdout);
22625 $ac_main_return(0); /* Non-reversed systems segv here. */
22628 rm -f "conftest$ac_exeext"
22629 if { (eval echo "$as_me:22629: \"$ac_link\"") >&5
22630 (eval $ac_link) 2>&5
22632 echo "$as_me:22632: \$? = $ac_status" >&5
22633 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22634 { (eval echo "$as_me:22634: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22637 echo "$as_me:22637: \$? = $ac_status" >&5
22638 (exit "$ac_status"); }; }; then
22639 ac_cv_func_setvbuf_reversed=yes
22641 echo "$as_me: program exited with status $ac_status" >&5
22642 echo "$as_me: failed program was:" >&5
22643 cat "conftest.$ac_ext" >&5
22644 ac_cv_func_setvbuf_reversed=no
22646 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22648 rm -f core ./core.* ./*.core
22650 echo "$as_me:22650: result: $ac_cv_func_setvbuf_reversed" >&5
22651 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22652 if test $ac_cv_func_setvbuf_reversed = yes; then
22654 cat >>confdefs.h <<\EOF
22655 #define SETVBUF_REVERSED 1
22661 echo "$as_me:22661: checking for intptr_t" >&5
22662 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22663 if test "${ac_cv_type_intptr_t+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22666 cat >"conftest.$ac_ext" <<_ACEOF
22667 #line 22667 "configure"
22668 #include "confdefs.h"
22669 $ac_includes_default
22673 if ((intptr_t *) 0)
22675 if (sizeof (intptr_t))
22681 rm -f "conftest.$ac_objext"
22682 if { (eval echo "$as_me:22682: \"$ac_compile\"") >&5
22683 (eval $ac_compile) 2>&5
22685 echo "$as_me:22685: \$? = $ac_status" >&5
22686 (exit "$ac_status"); } &&
22687 { ac_try='test -s "conftest.$ac_objext"'
22688 { (eval echo "$as_me:22688: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22691 echo "$as_me:22691: \$? = $ac_status" >&5
22692 (exit "$ac_status"); }; }; then
22693 ac_cv_type_intptr_t=yes
22695 echo "$as_me: failed program was:" >&5
22696 cat "conftest.$ac_ext" >&5
22697 ac_cv_type_intptr_t=no
22699 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22701 echo "$as_me:22701: result: $ac_cv_type_intptr_t" >&5
22702 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22703 if test "$ac_cv_type_intptr_t" = yes; then
22707 cat >>confdefs.h <<EOF
22708 #define intptr_t long
22713 echo "$as_me:22713: checking for ssize_t" >&5
22714 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22715 if test "${ac_cv_type_ssize_t+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 cat >"conftest.$ac_ext" <<_ACEOF
22719 #line 22719 "configure"
22720 #include "confdefs.h"
22721 $ac_includes_default
22727 if (sizeof (ssize_t))
22733 rm -f "conftest.$ac_objext"
22734 if { (eval echo "$as_me:22734: \"$ac_compile\"") >&5
22735 (eval $ac_compile) 2>&5
22737 echo "$as_me:22737: \$? = $ac_status" >&5
22738 (exit "$ac_status"); } &&
22739 { ac_try='test -s "conftest.$ac_objext"'
22740 { (eval echo "$as_me:22740: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22743 echo "$as_me:22743: \$? = $ac_status" >&5
22744 (exit "$ac_status"); }; }; then
22745 ac_cv_type_ssize_t=yes
22747 echo "$as_me: failed program was:" >&5
22748 cat "conftest.$ac_ext" >&5
22749 ac_cv_type_ssize_t=no
22751 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22753 echo "$as_me:22753: result: $ac_cv_type_ssize_t" >&5
22754 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22755 if test "$ac_cv_type_ssize_t" = yes; then
22759 cat >>confdefs.h <<EOF
22760 #define ssize_t int
22765 echo "$as_me:22765: checking for type sigaction_t" >&5
22766 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22767 if test "${cf_cv_type_sigaction+set}" = set; then
22768 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 cat >"conftest.$ac_ext" <<_ACEOF
22772 #line 22772 "configure"
22773 #include "confdefs.h"
22775 #include <signal.h>
22784 rm -f "conftest.$ac_objext"
22785 if { (eval echo "$as_me:22785: \"$ac_compile\"") >&5
22786 (eval $ac_compile) 2>&5
22788 echo "$as_me:22788: \$? = $ac_status" >&5
22789 (exit "$ac_status"); } &&
22790 { ac_try='test -s "conftest.$ac_objext"'
22791 { (eval echo "$as_me:22791: \"$ac_try\"") >&5
22792 (eval $ac_try) 2>&5
22794 echo "$as_me:22794: \$? = $ac_status" >&5
22795 (exit "$ac_status"); }; }; then
22796 cf_cv_type_sigaction=yes
22798 echo "$as_me: failed program was:" >&5
22799 cat "conftest.$ac_ext" >&5
22800 cf_cv_type_sigaction=no
22802 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22805 echo "$as_me:22805: result: $cf_cv_type_sigaction" >&5
22806 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22807 test "$cf_cv_type_sigaction" = yes &&
22808 cat >>confdefs.h <<\EOF
22809 #define HAVE_TYPE_SIGACTION 1
22812 echo "$as_me:22812: checking declaration of size-change" >&5
22813 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
22814 if test "${cf_cv_sizechange+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 cf_cv_sizechange=unknown
22819 cf_save_CPPFLAGS="$CPPFLAGS"
22821 for cf_opts in "" "NEED_PTEM_H"
22824 CPPFLAGS="$cf_save_CPPFLAGS"
22825 if test -n "$cf_opts"
22828 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22829 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
22832 cat >"conftest.$ac_ext" <<_ACEOF
22833 #line 22833 "configure"
22834 #include "confdefs.h"
22835 #include <sys/types.h>
22836 #ifdef HAVE_TERMIOS_H
22837 #include <termios.h>
22839 #ifdef HAVE_TERMIO_H
22840 #include <termio.h>
22845 /* This is a workaround for SCO: they neglected to define struct winsize in
22846 * termios.h -- it is only in termio.h and ptem.h
22848 #include <sys/stream.h>
22849 #include <sys/ptem.h>
22852 #ifdef HAVE_SYS_IOCTL_H
22853 #include <sys/ioctl.h>
22861 struct ttysize win; /* SunOS 3.0... */
22862 int y = win.ts_lines = 2;
22863 int x = win.ts_cols = 1;
22868 struct winsize win; /* everything else */
22869 int y = win.ws_row = 2;
22870 int x = win.ws_col = 1;
22874 no TIOCGSIZE or TIOCGWINSZ
22875 #endif /* TIOCGWINSZ */
22876 #endif /* TIOCGSIZE */
22882 rm -f "conftest.$ac_objext"
22883 if { (eval echo "$as_me:22883: \"$ac_compile\"") >&5
22884 (eval $ac_compile) 2>&5
22886 echo "$as_me:22886: \$? = $ac_status" >&5
22887 (exit "$ac_status"); } &&
22888 { ac_try='test -s "conftest.$ac_objext"'
22889 { (eval echo "$as_me:22889: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22892 echo "$as_me:22892: \$? = $ac_status" >&5
22893 (exit "$ac_status"); }; }; then
22894 cf_cv_sizechange=yes
22896 echo "$as_me: failed program was:" >&5
22897 cat "conftest.$ac_ext" >&5
22898 cf_cv_sizechange=no
22900 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22902 CPPFLAGS="$cf_save_CPPFLAGS"
22903 if test "$cf_cv_sizechange" = yes ; then
22904 echo "size-change succeeded ($cf_opts)" >&5
22905 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
22911 echo "$as_me:22911: result: $cf_cv_sizechange" >&5
22912 echo "${ECHO_T}$cf_cv_sizechange" >&6
22913 if test "$cf_cv_sizechange" != no ; then
22915 cat >>confdefs.h <<\EOF
22916 #define HAVE_SIZECHANGE 1
22919 case "$cf_cv_sizechange" in
22921 cat >>confdefs.h <<EOF
22922 #define $cf_cv_sizechange 1
22929 echo "$as_me:22929: checking for memmove" >&5
22930 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
22931 if test "${ac_cv_func_memmove+set}" = set; then
22932 echo $ECHO_N "(cached) $ECHO_C" >&6
22934 cat >"conftest.$ac_ext" <<_ACEOF
22935 #line 22935 "configure"
22936 #include "confdefs.h"
22937 #define memmove autoconf_temporary
22938 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22945 /* We use char because int might match the return type of a gcc2
22946 builtin and then its argument prototype would still apply. */
22947 char memmove (void);
22953 /* The GNU C library defines stubs for functions which it implements
22954 to always fail with ENOSYS. Some functions are actually named
22955 something starting with __ and the normal name is an alias. */
22956 #if defined (__stub_memmove) || defined (__stub___memmove)
22957 #error found stub for memmove
22965 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22966 if { (eval echo "$as_me:22966: \"$ac_link\"") >&5
22967 (eval $ac_link) 2>&5
22969 echo "$as_me:22969: \$? = $ac_status" >&5
22970 (exit "$ac_status"); } &&
22971 { ac_try='test -s "conftest$ac_exeext"'
22972 { (eval echo "$as_me:22972: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22975 echo "$as_me:22975: \$? = $ac_status" >&5
22976 (exit "$ac_status"); }; }; then
22977 ac_cv_func_memmove=yes
22979 echo "$as_me: failed program was:" >&5
22980 cat "conftest.$ac_ext" >&5
22981 ac_cv_func_memmove=no
22983 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22985 echo "$as_me:22985: result: $ac_cv_func_memmove" >&5
22986 echo "${ECHO_T}$ac_cv_func_memmove" >&6
22987 if test "$ac_cv_func_memmove" = yes; then
22991 echo "$as_me:22991: checking for bcopy" >&5
22992 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
22993 if test "${ac_cv_func_bcopy+set}" = set; then
22994 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 cat >"conftest.$ac_ext" <<_ACEOF
22997 #line 22997 "configure"
22998 #include "confdefs.h"
22999 #define bcopy autoconf_temporary
23000 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23007 /* We use char because int might match the return type of a gcc2
23008 builtin and then its argument prototype would still apply. */
23015 /* The GNU C library defines stubs for functions which it implements
23016 to always fail with ENOSYS. Some functions are actually named
23017 something starting with __ and the normal name is an alias. */
23018 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23019 #error found stub for bcopy
23027 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23028 if { (eval echo "$as_me:23028: \"$ac_link\"") >&5
23029 (eval $ac_link) 2>&5
23031 echo "$as_me:23031: \$? = $ac_status" >&5
23032 (exit "$ac_status"); } &&
23033 { ac_try='test -s "conftest$ac_exeext"'
23034 { (eval echo "$as_me:23034: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23037 echo "$as_me:23037: \$? = $ac_status" >&5
23038 (exit "$ac_status"); }; }; then
23039 ac_cv_func_bcopy=yes
23041 echo "$as_me: failed program was:" >&5
23042 cat "conftest.$ac_ext" >&5
23043 ac_cv_func_bcopy=no
23045 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23047 echo "$as_me:23047: result: $ac_cv_func_bcopy" >&5
23048 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23049 if test "$ac_cv_func_bcopy" = yes; then
23051 echo "$as_me:23051: checking if bcopy does overlapping moves" >&5
23052 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23053 if test "${cf_cv_good_bcopy+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 if test "$cross_compiling" = yes; then
23058 cf_cv_good_bcopy=unknown
23060 cat >"conftest.$ac_ext" <<_ACEOF
23061 #line 23061 "configure"
23062 #include "confdefs.h"
23065 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23067 bcopy(data, temp, sizeof(data));
23068 bcopy(temp+10, temp, 15);
23069 bcopy(temp+5, temp+15, 10);
23070 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23074 rm -f "conftest$ac_exeext"
23075 if { (eval echo "$as_me:23075: \"$ac_link\"") >&5
23076 (eval $ac_link) 2>&5
23078 echo "$as_me:23078: \$? = $ac_status" >&5
23079 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23080 { (eval echo "$as_me:23080: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 echo "$as_me:23083: \$? = $ac_status" >&5
23084 (exit "$ac_status"); }; }; then
23085 cf_cv_good_bcopy=yes
23087 echo "$as_me: program exited with status $ac_status" >&5
23088 echo "$as_me: failed program was:" >&5
23089 cat "conftest.$ac_ext" >&5
23090 cf_cv_good_bcopy=no
23092 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23096 echo "$as_me:23096: result: $cf_cv_good_bcopy" >&5
23097 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23100 cf_cv_good_bcopy=no
23103 if test "$cf_cv_good_bcopy" = yes ; then
23105 cat >>confdefs.h <<\EOF
23106 #define USE_OK_BCOPY 1
23111 cat >>confdefs.h <<\EOF
23112 #define USE_MY_MEMMOVE 1
23119 tty >/dev/null 2>&1 || {
23120 for ac_func in posix_openpt
23122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23123 echo "$as_me:23123: checking for $ac_func" >&5
23124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23125 if eval "test \"\${$as_ac_var+set}\" = set"; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
23128 cat >"conftest.$ac_ext" <<_ACEOF
23129 #line 23129 "configure"
23130 #include "confdefs.h"
23131 #define $ac_func autoconf_temporary
23132 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23139 /* We use char because int might match the return type of a gcc2
23140 builtin and then its argument prototype would still apply. */
23141 char $ac_func (void);
23147 /* The GNU C library defines stubs for functions which it implements
23148 to always fail with ENOSYS. Some functions are actually named
23149 something starting with __ and the normal name is an alias. */
23150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23151 #error found stub for $ac_func
23154 return $ac_func ();
23159 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23160 if { (eval echo "$as_me:23160: \"$ac_link\"") >&5
23161 (eval $ac_link) 2>&5
23163 echo "$as_me:23163: \$? = $ac_status" >&5
23164 (exit "$ac_status"); } &&
23165 { ac_try='test -s "conftest$ac_exeext"'
23166 { (eval echo "$as_me:23166: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23169 echo "$as_me:23169: \$? = $ac_status" >&5
23170 (exit "$ac_status"); }; }; then
23171 eval "$as_ac_var=yes"
23173 echo "$as_me: failed program was:" >&5
23174 cat "conftest.$ac_ext" >&5
23175 eval "$as_ac_var=no"
23177 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23179 echo "$as_me:23179: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23180 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23181 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23182 cat >>confdefs.h <<EOF
23183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23189 echo "$as_me:23189: checking if poll really works" >&5
23190 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23191 if test "${cf_cv_working_poll+set}" = set; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23195 if test "$cross_compiling" = yes; then
23196 cf_cv_working_poll=unknown
23198 cat >"conftest.$ac_ext" <<_ACEOF
23199 #line 23199 "configure"
23200 #include "confdefs.h"
23202 #include <stdlib.h>
23204 #include <unistd.h>
23209 #include <sys/poll.h>
23212 struct pollfd myfds;
23215 /* check for Darwin bug with respect to "devices" */
23216 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23219 myfds.events = POLLIN;
23222 ret = poll(&myfds, 1, 100);
23224 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23229 fd = open("/dev/tty", 2); /* O_RDWR */
23231 #ifdef HAVE_POSIX_OPENPT
23233 fd = posix_openpt(O_RDWR);
23238 /* also check with standard input */
23240 myfds.events = POLLIN;
23242 ret = poll(&myfds, 1, 100);
23247 ${cf_cv_main_return:-return}(ret < 0);
23250 rm -f "conftest$ac_exeext"
23251 if { (eval echo "$as_me:23251: \"$ac_link\"") >&5
23252 (eval $ac_link) 2>&5
23254 echo "$as_me:23254: \$? = $ac_status" >&5
23255 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23256 { (eval echo "$as_me:23256: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23259 echo "$as_me:23259: \$? = $ac_status" >&5
23260 (exit "$ac_status"); }; }; then
23261 cf_cv_working_poll=yes
23263 echo "$as_me: program exited with status $ac_status" >&5
23264 echo "$as_me: failed program was:" >&5
23265 cat "conftest.$ac_ext" >&5
23266 cf_cv_working_poll=no
23268 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23271 echo "$as_me:23271: result: $cf_cv_working_poll" >&5
23272 echo "${ECHO_T}$cf_cv_working_poll" >&6
23273 test "$cf_cv_working_poll" = "yes" &&
23274 cat >>confdefs.h <<\EOF
23275 #define HAVE_WORKING_POLL 1
23278 echo "$as_me:23278: checking for va_copy" >&5
23279 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23280 if test "${cf_cv_have_va_copy+set}" = set; then
23281 echo $ECHO_N "(cached) $ECHO_C" >&6
23284 cat >"conftest.$ac_ext" <<_ACEOF
23285 #line 23285 "configure"
23286 #include "confdefs.h"
23288 #include <stdarg.h>
23294 static va_list dst;
23295 static va_list src;
23301 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23302 if { (eval echo "$as_me:23302: \"$ac_link\"") >&5
23303 (eval $ac_link) 2>&5
23305 echo "$as_me:23305: \$? = $ac_status" >&5
23306 (exit "$ac_status"); } &&
23307 { ac_try='test -s "conftest$ac_exeext"'
23308 { (eval echo "$as_me:23308: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23311 echo "$as_me:23311: \$? = $ac_status" >&5
23312 (exit "$ac_status"); }; }; then
23313 cf_cv_have_va_copy=yes
23315 echo "$as_me: failed program was:" >&5
23316 cat "conftest.$ac_ext" >&5
23317 cf_cv_have_va_copy=no
23319 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23321 echo "$as_me:23321: result: $cf_cv_have_va_copy" >&5
23322 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23324 if test "$cf_cv_have_va_copy" = yes;
23327 cat >>confdefs.h <<\EOF
23328 #define HAVE_VA_COPY 1
23331 else # !cf_cv_have_va_copy
23333 echo "$as_me:23333: checking for __va_copy" >&5
23334 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23335 if test "${cf_cv_have___va_copy+set}" = set; then
23336 echo $ECHO_N "(cached) $ECHO_C" >&6
23339 cat >"conftest.$ac_ext" <<_ACEOF
23340 #line 23340 "configure"
23341 #include "confdefs.h"
23343 #include <stdarg.h>
23349 static va_list dst;
23350 static va_list src;
23351 __va_copy(dst, src)
23356 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23357 if { (eval echo "$as_me:23357: \"$ac_link\"") >&5
23358 (eval $ac_link) 2>&5
23360 echo "$as_me:23360: \$? = $ac_status" >&5
23361 (exit "$ac_status"); } &&
23362 { ac_try='test -s "conftest$ac_exeext"'
23363 { (eval echo "$as_me:23363: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23366 echo "$as_me:23366: \$? = $ac_status" >&5
23367 (exit "$ac_status"); }; }; then
23368 cf_cv_have___va_copy=yes
23370 echo "$as_me: failed program was:" >&5
23371 cat "conftest.$ac_ext" >&5
23372 cf_cv_have___va_copy=no
23374 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23376 echo "$as_me:23376: result: $cf_cv_have___va_copy" >&5
23377 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23379 if test "$cf_cv_have___va_copy" = yes
23382 cat >>confdefs.h <<\EOF
23383 #define HAVE___VA_COPY 1
23386 else # !cf_cv_have___va_copy
23388 echo "$as_me:23388: checking for __builtin_va_copy" >&5
23389 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23390 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23394 cat >"conftest.$ac_ext" <<_ACEOF
23395 #line 23395 "configure"
23396 #include "confdefs.h"
23398 #include <stdarg.h>
23404 static va_list dst;
23405 static va_list src;
23406 __builtin_va_copy(dst, src)
23411 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23412 if { (eval echo "$as_me:23412: \"$ac_link\"") >&5
23413 (eval $ac_link) 2>&5
23415 echo "$as_me:23415: \$? = $ac_status" >&5
23416 (exit "$ac_status"); } &&
23417 { ac_try='test -s "conftest$ac_exeext"'
23418 { (eval echo "$as_me:23418: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23421 echo "$as_me:23421: \$? = $ac_status" >&5
23422 (exit "$ac_status"); }; }; then
23423 cf_cv_have___builtin_va_copy=yes
23425 echo "$as_me: failed program was:" >&5
23426 cat "conftest.$ac_ext" >&5
23427 cf_cv_have___builtin_va_copy=no
23429 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23431 echo "$as_me:23431: result: $cf_cv_have___builtin_va_copy" >&5
23432 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23434 test "$cf_cv_have___builtin_va_copy" = yes &&
23436 cat >>confdefs.h <<\EOF
23437 #define HAVE___BUILTIN_VA_COPY 1
23440 fi # cf_cv_have___va_copy
23442 fi # cf_cv_have_va_copy
23444 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23449 echo "$as_me:23449: checking if we can simply copy va_list" >&5
23450 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23451 if test "${cf_cv_pointer_va_list+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23455 cat >"conftest.$ac_ext" <<_ACEOF
23456 #line 23456 "configure"
23457 #include "confdefs.h"
23459 #include <stdarg.h>
23472 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23473 if { (eval echo "$as_me:23473: \"$ac_link\"") >&5
23474 (eval $ac_link) 2>&5
23476 echo "$as_me:23476: \$? = $ac_status" >&5
23477 (exit "$ac_status"); } &&
23478 { ac_try='test -s "conftest$ac_exeext"'
23479 { (eval echo "$as_me:23479: \"$ac_try\"") >&5
23480 (eval $ac_try) 2>&5
23482 echo "$as_me:23482: \$? = $ac_status" >&5
23483 (exit "$ac_status"); }; }; then
23484 cf_cv_pointer_va_list=yes
23486 echo "$as_me: failed program was:" >&5
23487 cat "conftest.$ac_ext" >&5
23488 cf_cv_pointer_va_list=no
23490 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23492 echo "$as_me:23492: result: $cf_cv_pointer_va_list" >&5
23493 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23495 if test "$cf_cv_pointer_va_list" = no
23497 echo "$as_me:23497: checking if we can copy va_list indirectly" >&5
23498 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23499 if test "${cf_cv_array_va_list+set}" = set; then
23500 echo $ECHO_N "(cached) $ECHO_C" >&6
23503 cat >"conftest.$ac_ext" <<_ACEOF
23504 #line 23504 "configure"
23505 #include "confdefs.h"
23507 #include <stdarg.h>
23520 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23521 if { (eval echo "$as_me:23521: \"$ac_link\"") >&5
23522 (eval $ac_link) 2>&5
23524 echo "$as_me:23524: \$? = $ac_status" >&5
23525 (exit "$ac_status"); } &&
23526 { ac_try='test -s "conftest$ac_exeext"'
23527 { (eval echo "$as_me:23527: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23530 echo "$as_me:23530: \$? = $ac_status" >&5
23531 (exit "$ac_status"); }; }; then
23532 cf_cv_array_va_list=yes
23534 echo "$as_me: failed program was:" >&5
23535 cat "conftest.$ac_ext" >&5
23536 cf_cv_array_va_list=no
23538 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23540 echo "$as_me:23540: result: $cf_cv_array_va_list" >&5
23541 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23542 test "$cf_cv_array_va_list" = yes &&
23543 cat >>confdefs.h <<\EOF
23544 #define ARRAY_VA_LIST 1
23551 echo "$as_me:23551: checking for pid_t" >&5
23552 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23553 if test "${ac_cv_type_pid_t+set}" = set; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 cat >"conftest.$ac_ext" <<_ACEOF
23557 #line 23557 "configure"
23558 #include "confdefs.h"
23559 $ac_includes_default
23565 if (sizeof (pid_t))
23571 rm -f "conftest.$ac_objext"
23572 if { (eval echo "$as_me:23572: \"$ac_compile\"") >&5
23573 (eval $ac_compile) 2>&5
23575 echo "$as_me:23575: \$? = $ac_status" >&5
23576 (exit "$ac_status"); } &&
23577 { ac_try='test -s "conftest.$ac_objext"'
23578 { (eval echo "$as_me:23578: \"$ac_try\"") >&5
23579 (eval $ac_try) 2>&5
23581 echo "$as_me:23581: \$? = $ac_status" >&5
23582 (exit "$ac_status"); }; }; then
23583 ac_cv_type_pid_t=yes
23585 echo "$as_me: failed program was:" >&5
23586 cat "conftest.$ac_ext" >&5
23587 ac_cv_type_pid_t=no
23589 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23591 echo "$as_me:23591: result: $ac_cv_type_pid_t" >&5
23592 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23593 if test "$ac_cv_type_pid_t" = yes; then
23597 cat >>confdefs.h <<EOF
23603 for ac_header in unistd.h vfork.h
23605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23606 echo "$as_me:23606: checking for $ac_header" >&5
23607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23611 cat >"conftest.$ac_ext" <<_ACEOF
23612 #line 23612 "configure"
23613 #include "confdefs.h"
23614 #include <$ac_header>
23616 if { (eval echo "$as_me:23616: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23617 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23619 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23621 cat conftest.err >&5
23622 echo "$as_me:23622: \$? = $ac_status" >&5
23623 (exit "$ac_status"); } >/dev/null; then
23624 if test -s conftest.err; then
23625 ac_cpp_err=$ac_c_preproc_warn_flag
23632 if test -z "$ac_cpp_err"; then
23633 eval "$as_ac_Header=yes"
23635 echo "$as_me: failed program was:" >&5
23636 cat "conftest.$ac_ext" >&5
23637 eval "$as_ac_Header=no"
23639 rm -f conftest.err "conftest.$ac_ext"
23641 echo "$as_me:23641: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23642 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23643 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23644 cat >>confdefs.h <<EOF
23645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23651 for ac_func in fork vfork
23653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23654 echo "$as_me:23654: checking for $ac_func" >&5
23655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23656 if eval "test \"\${$as_ac_var+set}\" = set"; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 cat >"conftest.$ac_ext" <<_ACEOF
23660 #line 23660 "configure"
23661 #include "confdefs.h"
23662 #define $ac_func autoconf_temporary
23663 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23670 /* We use char because int might match the return type of a gcc2
23671 builtin and then its argument prototype would still apply. */
23672 char $ac_func (void);
23678 /* The GNU C library defines stubs for functions which it implements
23679 to always fail with ENOSYS. Some functions are actually named
23680 something starting with __ and the normal name is an alias. */
23681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23682 #error found stub for $ac_func
23685 return $ac_func ();
23690 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23691 if { (eval echo "$as_me:23691: \"$ac_link\"") >&5
23692 (eval $ac_link) 2>&5
23694 echo "$as_me:23694: \$? = $ac_status" >&5
23695 (exit "$ac_status"); } &&
23696 { ac_try='test -s "conftest$ac_exeext"'
23697 { (eval echo "$as_me:23697: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23700 echo "$as_me:23700: \$? = $ac_status" >&5
23701 (exit "$ac_status"); }; }; then
23702 eval "$as_ac_var=yes"
23704 echo "$as_me: failed program was:" >&5
23705 cat "conftest.$ac_ext" >&5
23706 eval "$as_ac_var=no"
23708 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23710 echo "$as_me:23710: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23711 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23712 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23713 cat >>confdefs.h <<EOF
23714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23720 ac_cv_func_fork_works=$ac_cv_func_fork
23721 if test "x$ac_cv_func_fork" = xyes; then
23722 echo "$as_me:23722: checking for working fork" >&5
23723 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23724 if test "${ac_cv_func_fork_works+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23727 if test "$cross_compiling" = yes; then
23728 ac_cv_func_fork_works=cross
23730 cat >"conftest.$ac_ext" <<_ACEOF
23731 /* By Rüdiger Kuhlmann. */
23732 #include <sys/types.h>
23734 # include <unistd.h>
23736 /* Some systems only have a dummy stub for fork() */
23740 $ac_main_return (1);
23741 $ac_main_return (0);
23744 rm -f "conftest$ac_exeext"
23745 if { (eval echo "$as_me:23745: \"$ac_link\"") >&5
23746 (eval $ac_link) 2>&5
23748 echo "$as_me:23748: \$? = $ac_status" >&5
23749 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23750 { (eval echo "$as_me:23750: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23753 echo "$as_me:23753: \$? = $ac_status" >&5
23754 (exit "$ac_status"); }; }; then
23755 ac_cv_func_fork_works=yes
23757 echo "$as_me: program exited with status $ac_status" >&5
23758 echo "$as_me: failed program was:" >&5
23759 cat "conftest.$ac_ext" >&5
23760 ac_cv_func_fork_works=no
23762 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23765 echo "$as_me:23765: result: $ac_cv_func_fork_works" >&5
23766 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23769 if test "x$ac_cv_func_fork_works" = xcross; then
23771 *-*-amigaos* | *-*-msdosdjgpp*)
23772 # Override, as these systems have only a dummy fork() stub
23773 ac_cv_func_fork_works=no
23776 ac_cv_func_fork_works=yes
23779 { echo "$as_me:23779: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23780 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23782 ac_cv_func_vfork_works=$ac_cv_func_vfork
23783 if test "x$ac_cv_func_vfork" = xyes; then
23784 echo "$as_me:23784: checking for working vfork" >&5
23785 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23786 if test "${ac_cv_func_vfork_works+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 if test "$cross_compiling" = yes; then
23790 ac_cv_func_vfork_works=cross
23792 cat >"conftest.$ac_ext" <<_ACEOF
23793 #line 23793 "configure"
23794 #include "confdefs.h"
23795 /* Thanks to Paul Eggert for this test. */
23797 #include <sys/types.h>
23798 #include <sys/stat.h>
23800 # include <unistd.h>
23803 # include <vfork.h>
23805 /* On some sparc systems, changes by the child to local and incoming
23806 argument registers are propagated back to the parent. The compiler
23807 is told about this with #include <vfork.h>, but some compilers
23808 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23809 static variable whose address is put into a register that is
23810 clobbered by the vfork. */
23813 sparc_address_test (int arg)
23815 sparc_address_test (arg) int arg;
23818 static pid_t child;
23836 pid_t parent = getpid ();
23839 sparc_address_test ();
23844 /* Here is another test for sparc vfork register problems. This
23845 test uses lots of local variables, at least as many local
23846 variables as main has allocated so far including compiler
23847 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23848 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23849 reuse the register of parent for one of the local variables,
23850 since it will think that parent can't possibly be used any more
23851 in this routine. Assigning to the local variable will thus
23852 munge parent in the parent process. */
23854 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23855 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23856 /* Convince the compiler that p..p7 are live; otherwise, it might
23857 use the same hardware register for all 8 local variables. */
23858 if (p != p1 || p != p2 || p != p3 || p != p4
23859 || p != p5 || p != p6 || p != p7)
23862 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23863 from child file descriptors. If the child closes a descriptor
23864 before it execs or exits, this munges the parent's descriptor
23865 as well. Test for this by closing stdout in the child. */
23866 _exit(close(fileno(stdout)) != 0);
23871 while (wait(&status) != child)
23874 /* Was there some problem with vforking? */
23877 /* Did the child fail? (This shouldn't happen.) */
23880 /* Did the vfork/compiler bug occur? */
23881 || parent != getpid()
23883 /* Did the file descriptor bug occur? */
23884 || fstat(fileno(stdout), &st) != 0
23889 rm -f "conftest$ac_exeext"
23890 if { (eval echo "$as_me:23890: \"$ac_link\"") >&5
23891 (eval $ac_link) 2>&5
23893 echo "$as_me:23893: \$? = $ac_status" >&5
23894 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23895 { (eval echo "$as_me:23895: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23898 echo "$as_me:23898: \$? = $ac_status" >&5
23899 (exit "$ac_status"); }; }; then
23900 ac_cv_func_vfork_works=yes
23902 echo "$as_me: program exited with status $ac_status" >&5
23903 echo "$as_me: failed program was:" >&5
23904 cat "conftest.$ac_ext" >&5
23905 ac_cv_func_vfork_works=no
23907 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23910 echo "$as_me:23910: result: $ac_cv_func_vfork_works" >&5
23911 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23914 if test "x$ac_cv_func_fork_works" = xcross; then
23915 ac_cv_func_vfork_works=ac_cv_func_vfork
23916 { echo "$as_me:23916: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
23917 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
23920 if test "x$ac_cv_func_vfork_works" = xyes; then
23922 cat >>confdefs.h <<\EOF
23923 #define HAVE_WORKING_VFORK 1
23928 cat >>confdefs.h <<\EOF
23933 if test "x$ac_cv_func_fork_works" = xyes; then
23935 cat >>confdefs.h <<\EOF
23936 #define HAVE_WORKING_FORK 1
23941 echo "$as_me:23941: checking if fopen accepts explicit binary mode" >&5
23942 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
23943 if test "${cf_cv_fopen_bin_r+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23947 if test "$cross_compiling" = yes; then
23948 cf_cv_fopen_bin_r=unknown
23950 cat >"conftest.$ac_ext" <<_ACEOF
23951 #line 23951 "configure"
23952 #include "confdefs.h"
23956 FILE *fp = fopen("conftest.tmp", "wb");
23960 for (p = 0; p < 256; ++p) {
23964 fp = fopen("conftest.tmp", "rb");
23966 for (p = 0; p < 256; ++p) {
23979 ${cf_cv_main_return:-return} (rc);
23983 rm -f "conftest$ac_exeext"
23984 if { (eval echo "$as_me:23984: \"$ac_link\"") >&5
23985 (eval $ac_link) 2>&5
23987 echo "$as_me:23987: \$? = $ac_status" >&5
23988 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23989 { (eval echo "$as_me:23989: \"$ac_try\"") >&5
23990 (eval $ac_try) 2>&5
23992 echo "$as_me:23992: \$? = $ac_status" >&5
23993 (exit "$ac_status"); }; }; then
23994 cf_cv_fopen_bin_r=yes
23996 echo "$as_me: program exited with status $ac_status" >&5
23997 echo "$as_me: failed program was:" >&5
23998 cat "conftest.$ac_ext" >&5
23999 cf_cv_fopen_bin_r=no
24001 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24005 echo "$as_me:24005: result: $cf_cv_fopen_bin_r" >&5
24006 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24007 test "x$cf_cv_fopen_bin_r" != xno &&
24008 cat >>confdefs.h <<\EOF
24009 #define USE_FOPEN_BIN_R 1
24012 # special check for test/ditto.c
24014 echo "$as_me:24014: checking for openpty in -lutil" >&5
24015 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24016 if test "${ac_cv_lib_util_openpty+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 ac_check_lib_save_LIBS=$LIBS
24020 LIBS="-lutil $LIBS"
24021 cat >"conftest.$ac_ext" <<_ACEOF
24022 #line 24022 "configure"
24023 #include "confdefs.h"
24025 /* Override any gcc2 internal prototype to avoid an error. */
24029 /* We use char because int might match the return type of a gcc2
24030 builtin and then its argument prototype would still apply. */
24040 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24041 if { (eval echo "$as_me:24041: \"$ac_link\"") >&5
24042 (eval $ac_link) 2>&5
24044 echo "$as_me:24044: \$? = $ac_status" >&5
24045 (exit "$ac_status"); } &&
24046 { ac_try='test -s "conftest$ac_exeext"'
24047 { (eval echo "$as_me:24047: \"$ac_try\"") >&5
24048 (eval $ac_try) 2>&5
24050 echo "$as_me:24050: \$? = $ac_status" >&5
24051 (exit "$ac_status"); }; }; then
24052 ac_cv_lib_util_openpty=yes
24054 echo "$as_me: failed program was:" >&5
24055 cat "conftest.$ac_ext" >&5
24056 ac_cv_lib_util_openpty=no
24058 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24059 LIBS=$ac_check_lib_save_LIBS
24061 echo "$as_me:24061: result: $ac_cv_lib_util_openpty" >&5
24062 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24063 if test "$ac_cv_lib_util_openpty" = yes; then
24069 echo "$as_me:24069: checking for openpty header" >&5
24070 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24071 if test "${cf_cv_func_openpty+set}" = set; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24075 cf_save_LIBS="$LIBS"
24076 test "$cf_cv_lib_util" = yes && {
24077 cf_add_libs="$LIBS"
24080 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24081 # filter duplicates
24082 for cf_add_1lib in $cf_add_0lib; do
24083 for cf_add_2lib in $cf_add_libs; do
24084 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24089 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24091 LIBS="$cf_add_libs"
24093 for cf_header in pty.h libutil.h util.h
24095 cat >"conftest.$ac_ext" <<_ACEOF
24096 #line 24096 "configure"
24097 #include "confdefs.h"
24099 #include <$cf_header>
24105 int x = openpty((int *)0, (int *)0, (char *)0,
24106 (struct termios *)0, (struct winsize *)0);
24112 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24113 if { (eval echo "$as_me:24113: \"$ac_link\"") >&5
24114 (eval $ac_link) 2>&5
24116 echo "$as_me:24116: \$? = $ac_status" >&5
24117 (exit "$ac_status"); } &&
24118 { ac_try='test -s "conftest$ac_exeext"'
24119 { (eval echo "$as_me:24119: \"$ac_try\"") >&5
24120 (eval $ac_try) 2>&5
24122 echo "$as_me:24122: \$? = $ac_status" >&5
24123 (exit "$ac_status"); }; }; then
24125 cf_cv_func_openpty=$cf_header
24129 echo "$as_me: failed program was:" >&5
24130 cat "conftest.$ac_ext" >&5
24132 cf_cv_func_openpty=no
24135 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24137 LIBS="$cf_save_LIBS"
24140 echo "$as_me:24140: result: $cf_cv_func_openpty" >&5
24141 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24143 if test "$cf_cv_func_openpty" != no ; then
24145 cat >>confdefs.h <<EOF
24146 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24149 cat >>confdefs.h <<\EOF
24150 #define USE_XTERM_PTY 1
24153 if test "x$cf_cv_lib_util" = xyes ; then
24155 cf_add_libs="$TEST_LIBS"
24158 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24159 # filter duplicates
24160 for cf_add_1lib in $cf_add_0lib; do
24161 for cf_add_2lib in $cf_add_libs; do
24162 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24167 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24169 TEST_LIBS="$cf_add_libs"
24174 if test "$with_hashed_db" != no ; then
24176 cat >>confdefs.h <<\EOF
24177 #define USE_HASHED_DB 1
24180 case $with_hashed_db in
24184 if test -d "$with_hashed_db" ; then
24186 if test -n "$with_hashed_db/include" ; then
24187 for cf_add_incdir in $with_hashed_db/include
24189 while test "$cf_add_incdir" != /usr/include
24191 if test -d "$cf_add_incdir"
24194 if test -n "$CFLAGS$CPPFLAGS" ; then
24195 # a loop is needed to ensure we can add subdirs of existing dirs
24196 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24197 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24198 cf_have_incdir=yes; break
24203 if test "$cf_have_incdir" = no ; then
24204 if test "$cf_add_incdir" = /usr/local/include ; then
24205 if test "$GCC" = yes
24207 cf_save_CPPFLAGS=$CPPFLAGS
24209 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24210 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24212 cat >"conftest.$ac_ext" <<_ACEOF
24213 #line 24213 "configure"
24214 #include "confdefs.h"
24224 rm -f "conftest.$ac_objext"
24225 if { (eval echo "$as_me:24225: \"$ac_compile\"") >&5
24226 (eval $ac_compile) 2>&5
24228 echo "$as_me:24228: \$? = $ac_status" >&5
24229 (exit "$ac_status"); } &&
24230 { ac_try='test -s "conftest.$ac_objext"'
24231 { (eval echo "$as_me:24231: \"$ac_try\"") >&5
24232 (eval $ac_try) 2>&5
24234 echo "$as_me:24234: \$? = $ac_status" >&5
24235 (exit "$ac_status"); }; }; then
24238 echo "$as_me: failed program was:" >&5
24239 cat "conftest.$ac_ext" >&5
24242 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24243 CPPFLAGS=$cf_save_CPPFLAGS
24248 if test "$cf_have_incdir" = no ; then
24249 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24251 echo "${as_me:-configure}:24251: testing adding $cf_add_incdir to include-path ..." 1>&5
24253 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24255 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24256 test "$cf_top_incdir" = "$cf_add_incdir" && break
24257 cf_add_incdir="$cf_top_incdir"
24268 if test -n "$with_hashed_db/lib" ; then
24269 for cf_add_libdir in $with_hashed_db/lib
24271 if test "$cf_add_libdir" = /usr/lib ; then
24273 elif test -d "$cf_add_libdir"
24276 if test -n "$LDFLAGS$LIBS" ; then
24277 # a loop is needed to ensure we can add subdirs of existing dirs
24278 for cf_test_libdir in $LDFLAGS $LIBS ; do
24279 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24280 cf_have_libdir=yes; break
24284 if test "$cf_have_libdir" = no ; then
24285 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24287 echo "${as_me:-configure}:24287: testing adding $cf_add_libdir to library-path ..." 1>&5
24289 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24296 case "$with_hashed_db" in
24298 { echo "$as_me:24298: WARNING: no such directory $with_hashed_db" >&5
24299 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24305 test "x$prefix" != "xNONE" && \
24306 test -d "$prefix" && \
24308 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24309 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24310 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24311 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24312 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24313 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24316 for cf_subdir_prefix in \
24325 test "x$cf_subdir_prefix" != "x$prefix" && \
24326 test -d "$cf_subdir_prefix" && \
24327 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24328 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24329 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24330 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24331 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24332 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24333 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"
24338 for cf_item in $cf_search
24341 (*/$with_hashed_db)
24343 if test -n "$cf_item" ; then
24344 for cf_add_incdir in $cf_item
24346 while test "$cf_add_incdir" != /usr/include
24348 if test -d "$cf_add_incdir"
24351 if test -n "$CFLAGS$CPPFLAGS" ; then
24352 # a loop is needed to ensure we can add subdirs of existing dirs
24353 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24354 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24355 cf_have_incdir=yes; break
24360 if test "$cf_have_incdir" = no ; then
24361 if test "$cf_add_incdir" = /usr/local/include ; then
24362 if test "$GCC" = yes
24364 cf_save_CPPFLAGS=$CPPFLAGS
24366 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24367 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24369 cat >"conftest.$ac_ext" <<_ACEOF
24370 #line 24370 "configure"
24371 #include "confdefs.h"
24381 rm -f "conftest.$ac_objext"
24382 if { (eval echo "$as_me:24382: \"$ac_compile\"") >&5
24383 (eval $ac_compile) 2>&5
24385 echo "$as_me:24385: \$? = $ac_status" >&5
24386 (exit "$ac_status"); } &&
24387 { ac_try='test -s "conftest.$ac_objext"'
24388 { (eval echo "$as_me:24388: \"$ac_try\"") >&5
24389 (eval $ac_try) 2>&5
24391 echo "$as_me:24391: \$? = $ac_status" >&5
24392 (exit "$ac_status"); }; }; then
24395 echo "$as_me: failed program was:" >&5
24396 cat "conftest.$ac_ext" >&5
24399 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24400 CPPFLAGS=$cf_save_CPPFLAGS
24405 if test "$cf_have_incdir" = no ; then
24406 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24408 echo "${as_me:-configure}:24408: testing adding $cf_add_incdir to include-path ..." 1>&5
24410 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24412 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24413 test "$cf_top_incdir" = "$cf_add_incdir" && break
24414 cf_add_incdir="$cf_top_incdir"
24431 test "x$prefix" != "xNONE" && \
24432 test -d "$prefix" && \
24434 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24435 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24436 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24437 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24438 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24439 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24442 for cf_subdir_prefix in \
24451 test "x$cf_subdir_prefix" != "x$prefix" && \
24452 test -d "$cf_subdir_prefix" && \
24453 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24454 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24455 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24456 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24457 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24458 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24459 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"
24464 for cf_item in $cf_search
24467 (*/$with_hashed_db)
24469 if test -n "$cf_item" ; then
24470 for cf_add_libdir in $cf_item
24472 if test "$cf_add_libdir" = /usr/lib ; then
24474 elif test -d "$cf_add_libdir"
24477 if test -n "$LDFLAGS$LIBS" ; then
24478 # a loop is needed to ensure we can add subdirs of existing dirs
24479 for cf_test_libdir in $LDFLAGS $LIBS ; do
24480 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24481 cf_have_libdir=yes; break
24485 if test "$cf_have_libdir" = no ; then
24486 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24488 echo "${as_me:-configure}:24488: testing adding $cf_add_libdir to library-path ..." 1>&5
24490 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24505 echo "$as_me:24505: checking for db.h" >&5
24506 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24507 if test "${ac_cv_header_db_h+set}" = set; then
24508 echo $ECHO_N "(cached) $ECHO_C" >&6
24510 cat >"conftest.$ac_ext" <<_ACEOF
24511 #line 24511 "configure"
24512 #include "confdefs.h"
24515 if { (eval echo "$as_me:24515: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24516 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24518 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24520 cat conftest.err >&5
24521 echo "$as_me:24521: \$? = $ac_status" >&5
24522 (exit "$ac_status"); } >/dev/null; then
24523 if test -s conftest.err; then
24524 ac_cpp_err=$ac_c_preproc_warn_flag
24531 if test -z "$ac_cpp_err"; then
24532 ac_cv_header_db_h=yes
24534 echo "$as_me: failed program was:" >&5
24535 cat "conftest.$ac_ext" >&5
24536 ac_cv_header_db_h=no
24538 rm -f conftest.err "conftest.$ac_ext"
24540 echo "$as_me:24540: result: $ac_cv_header_db_h" >&5
24541 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24542 if test "$ac_cv_header_db_h" = yes; then
24544 echo "$as_me:24544: checking for version of db" >&5
24545 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24546 if test "${cf_cv_hashed_db_version+set}" = set; then
24547 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 cf_cv_hashed_db_version=unknown
24552 for cf_db_version in 1 2 3 4 5 6
24555 echo "${as_me:-configure}:24555: testing checking for db version $cf_db_version ..." 1>&5
24557 cat >"conftest.$ac_ext" <<_ACEOF
24558 #line 24558 "configure"
24559 #include "confdefs.h"
24561 $ac_includes_default
24564 #ifdef DB_VERSION_MAJOR
24565 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24566 #if $cf_db_version == DB_VERSION_MAJOR
24572 #if $cf_db_version == 1
24573 /* ok: assuming this is DB 1.8.5 */
24587 rm -f "conftest.$ac_objext"
24588 if { (eval echo "$as_me:24588: \"$ac_compile\"") >&5
24589 (eval $ac_compile) 2>&5
24591 echo "$as_me:24591: \$? = $ac_status" >&5
24592 (exit "$ac_status"); } &&
24593 { ac_try='test -s "conftest.$ac_objext"'
24594 { (eval echo "$as_me:24594: \"$ac_try\"") >&5
24595 (eval $ac_try) 2>&5
24597 echo "$as_me:24597: \$? = $ac_status" >&5
24598 (exit "$ac_status"); }; }; then
24600 cf_cv_hashed_db_version=$cf_db_version
24604 echo "$as_me: failed program was:" >&5
24605 cat "conftest.$ac_ext" >&5
24607 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24611 echo "$as_me:24611: result: $cf_cv_hashed_db_version" >&5
24612 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24614 if test "$cf_cv_hashed_db_version" = unknown ; then
24615 { { echo "$as_me:24615: error: Cannot determine version of db" >&5
24616 echo "$as_me: error: Cannot determine version of db" >&2;}
24617 { (exit 1); exit 1; }; }
24620 echo "$as_me:24620: checking for db libraries" >&5
24621 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24622 if test "${cf_cv_hashed_db_libs+set}" = set; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24626 cf_cv_hashed_db_libs=unknown
24627 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24629 cf_save_libs="$LIBS"
24630 if test -n "$cf_db_libs"; then
24632 cf_add_libs="$LIBS"
24635 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24636 # filter duplicates
24637 for cf_add_1lib in $cf_add_0lib; do
24638 for cf_add_2lib in $cf_add_libs; do
24639 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24644 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24646 LIBS="$cf_add_libs"
24650 echo "${as_me:-configure}:24650: testing checking for library $cf_db_libs ..." 1>&5
24652 cat >"conftest.$ac_ext" <<_ACEOF
24653 #line 24653 "configure"
24654 #include "confdefs.h"
24656 $ac_includes_default
24663 char *path = "/tmp/foo";
24664 #ifdef DB_VERSION_MAJOR
24665 #if DB_VERSION_MAJOR >= 4
24667 db_create(&result, NULL, 0);
24668 result->open(result,
24675 #elif DB_VERSION_MAJOR >= 3
24677 db_create(&result, NULL, 0);
24678 result->open(result,
24684 #elif DB_VERSION_MAJOR >= 2
24693 #endif /* DB_VERSION_MAJOR */
24695 DB *result = dbopen(path,
24701 ${cf_cv_main_return:-return}(result != 0)
24707 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24708 if { (eval echo "$as_me:24708: \"$ac_link\"") >&5
24709 (eval $ac_link) 2>&5
24711 echo "$as_me:24711: \$? = $ac_status" >&5
24712 (exit "$ac_status"); } &&
24713 { ac_try='test -s "conftest$ac_exeext"'
24714 { (eval echo "$as_me:24714: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24717 echo "$as_me:24717: \$? = $ac_status" >&5
24718 (exit "$ac_status"); }; }; then
24720 if test -n "$cf_db_libs" ; then
24721 cf_cv_hashed_db_libs=$cf_db_libs
24723 cf_cv_hashed_db_libs=default
24725 LIBS="$cf_save_libs"
24729 echo "$as_me: failed program was:" >&5
24730 cat "conftest.$ac_ext" >&5
24732 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24733 LIBS="$cf_save_libs"
24737 echo "$as_me:24737: result: $cf_cv_hashed_db_libs" >&5
24738 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24740 if test "$cf_cv_hashed_db_libs" = unknown ; then
24741 { { echo "$as_me:24741: error: Cannot determine library for db" >&5
24742 echo "$as_me: error: Cannot determine library for db" >&2;}
24743 { (exit 1); exit 1; }; }
24744 elif test "$cf_cv_hashed_db_libs" != default ; then
24746 cf_add_libs="$LIBS"
24749 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24750 # filter duplicates
24751 for cf_add_1lib in $cf_add_0lib; do
24752 for cf_add_2lib in $cf_add_libs; do
24753 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24758 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24760 LIBS="$cf_add_libs"
24767 { { echo "$as_me:24767: error: Cannot find db.h" >&5
24768 echo "$as_me: error: Cannot find db.h" >&2;}
24769 { (exit 1); exit 1; }; }
24775 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24776 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24777 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24780 # Just in case, check if the C compiler has a bool type.
24782 echo "$as_me:24782: checking if we should include stdbool.h" >&5
24783 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24785 if test "${cf_cv_header_stdbool_h+set}" = set; then
24786 echo $ECHO_N "(cached) $ECHO_C" >&6
24789 cat >"conftest.$ac_ext" <<_ACEOF
24790 #line 24790 "configure"
24791 #include "confdefs.h"
24801 rm -f "conftest.$ac_objext"
24802 if { (eval echo "$as_me:24802: \"$ac_compile\"") >&5
24803 (eval $ac_compile) 2>&5
24805 echo "$as_me:24805: \$? = $ac_status" >&5
24806 (exit "$ac_status"); } &&
24807 { ac_try='test -s "conftest.$ac_objext"'
24808 { (eval echo "$as_me:24808: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24811 echo "$as_me:24811: \$? = $ac_status" >&5
24812 (exit "$ac_status"); }; }; then
24813 cf_cv_header_stdbool_h=0
24815 echo "$as_me: failed program was:" >&5
24816 cat "conftest.$ac_ext" >&5
24817 cat >"conftest.$ac_ext" <<_ACEOF
24818 #line 24818 "configure"
24819 #include "confdefs.h"
24822 #include <stdbool.h>
24833 rm -f "conftest.$ac_objext"
24834 if { (eval echo "$as_me:24834: \"$ac_compile\"") >&5
24835 (eval $ac_compile) 2>&5
24837 echo "$as_me:24837: \$? = $ac_status" >&5
24838 (exit "$ac_status"); } &&
24839 { ac_try='test -s "conftest.$ac_objext"'
24840 { (eval echo "$as_me:24840: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24843 echo "$as_me:24843: \$? = $ac_status" >&5
24844 (exit "$ac_status"); }; }; then
24845 cf_cv_header_stdbool_h=1
24847 echo "$as_me: failed program was:" >&5
24848 cat "conftest.$ac_ext" >&5
24849 cf_cv_header_stdbool_h=0
24851 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24853 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24856 if test "$cf_cv_header_stdbool_h" = 1
24857 then echo "$as_me:24857: result: yes" >&5
24858 echo "${ECHO_T}yes" >&6
24859 else echo "$as_me:24859: result: no" >&5
24860 echo "${ECHO_T}no" >&6
24863 echo "$as_me:24863: checking for builtin bool type" >&5
24864 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24866 if test "${cf_cv_cc_bool_type+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 cat >"conftest.$ac_ext" <<_ACEOF
24871 #line 24871 "configure"
24872 #include "confdefs.h"
24875 #include <sys/types.h>
24885 rm -f "conftest.$ac_objext"
24886 if { (eval echo "$as_me:24886: \"$ac_compile\"") >&5
24887 (eval $ac_compile) 2>&5
24889 echo "$as_me:24889: \$? = $ac_status" >&5
24890 (exit "$ac_status"); } &&
24891 { ac_try='test -s "conftest.$ac_objext"'
24892 { (eval echo "$as_me:24892: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24895 echo "$as_me:24895: \$? = $ac_status" >&5
24896 (exit "$ac_status"); }; }; then
24897 cf_cv_cc_bool_type=1
24899 echo "$as_me: failed program was:" >&5
24900 cat "conftest.$ac_ext" >&5
24901 cf_cv_cc_bool_type=0
24903 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24907 if test "$cf_cv_cc_bool_type" = 1
24908 then echo "$as_me:24908: result: yes" >&5
24909 echo "${ECHO_T}yes" >&6
24910 else echo "$as_me:24910: result: no" >&5
24911 echo "${ECHO_T}no" >&6
24914 # Check for C++ compiler characteristics (and ensure that it's there!)
24915 if test -n "$CXX" ; then
24917 ac_cpp='$CXXCPP $CPPFLAGS'
24918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24919 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24921 ac_main_return="return"
24923 if test -n "$GXX" ; then
24926 LIBS="$LIBS $CXXLIBS"
24927 echo "$as_me:24927: checking if we already have C++ library" >&5
24928 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
24929 cat >"conftest.$ac_ext" <<_ACEOF
24930 #line 24930 "configure"
24931 #include "confdefs.h"
24933 #include <iostream>
24938 std::cout << "Hello World!" << std::endl;
24943 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24944 if { (eval echo "$as_me:24944: \"$ac_link\"") >&5
24945 (eval $ac_link) 2>&5
24947 echo "$as_me:24947: \$? = $ac_status" >&5
24948 (exit "$ac_status"); } &&
24949 { ac_try='test -s "conftest$ac_exeext"'
24950 { (eval echo "$as_me:24950: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24953 echo "$as_me:24953: \$? = $ac_status" >&5
24954 (exit "$ac_status"); }; }; then
24955 cf_have_libstdcpp=yes
24957 echo "$as_me: failed program was:" >&5
24958 cat "conftest.$ac_ext" >&5
24959 cf_have_libstdcpp=no
24961 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24962 echo "$as_me:24962: result: $cf_have_libstdcpp" >&5
24963 echo "${ECHO_T}$cf_have_libstdcpp" >&6
24966 if test "$cf_have_libstdcpp" != yes
24968 case "$cf_cv_system_name" in
24970 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
24971 cf_stdcpp_libname=stdcpp
24973 cf_stdcpp_libname=stdc++
24977 cf_stdcpp_libname=stdc++
24981 echo "$as_me:24981: checking for library $cf_stdcpp_libname" >&5
24982 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
24983 if test "${cf_cv_libstdcpp+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24988 LIBS="$LIBS $CXXLIBS"
24990 cf_add_libs="$LIBS"
24993 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24994 # filter duplicates
24995 for cf_add_1lib in $cf_add_0lib; do
24996 for cf_add_2lib in $cf_add_libs; do
24997 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25002 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25004 LIBS="$cf_add_libs"
25006 cat >"conftest.$ac_ext" <<_ACEOF
25007 #line 25007 "configure"
25008 #include "confdefs.h"
25010 #include <iostream>
25015 std::cout << "Hello World!" << std::endl;
25020 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25021 if { (eval echo "$as_me:25021: \"$ac_link\"") >&5
25022 (eval $ac_link) 2>&5
25024 echo "$as_me:25024: \$? = $ac_status" >&5
25025 (exit "$ac_status"); } &&
25026 { ac_try='test -s "conftest$ac_exeext"'
25027 { (eval echo "$as_me:25027: \"$ac_try\"") >&5
25028 (eval $ac_try) 2>&5
25030 echo "$as_me:25030: \$? = $ac_status" >&5
25031 (exit "$ac_status"); }; }; then
25032 cf_cv_libstdcpp=yes
25034 echo "$as_me: failed program was:" >&5
25035 cat "conftest.$ac_ext" >&5
25038 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25042 echo "$as_me:25042: result: $cf_cv_libstdcpp" >&5
25043 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25044 test "$cf_cv_libstdcpp" = yes && {
25045 cf_add_libs="$CXXLIBS"
25048 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25049 # filter duplicates
25050 for cf_add_1lib in $cf_add_0lib; do
25051 for cf_add_2lib in $cf_add_libs; do
25052 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25057 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25059 CXXLIBS="$cf_add_libs"
25064 echo "$as_me:25064: checking whether $CXX understands -c and -o together" >&5
25065 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25066 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25070 cat > conftest.$ac_ext <<CF_EOF
25073 ${cf_cv_main_return:-return}(0);
25076 # We do the test twice because some compilers refuse to overwrite an
25077 # existing .o file with -o, though they will create one.
25078 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25079 if { (eval echo "$as_me:25079: \"$ac_try\"") >&5
25080 (eval $ac_try) 2>&5
25082 echo "$as_me:25082: \$? = $ac_status" >&5
25083 (exit "$ac_status"); } &&
25084 test -f conftest2.$ac_objext && { (eval echo "$as_me:25084: \"$ac_try\"") >&5
25085 (eval $ac_try) 2>&5
25087 echo "$as_me:25087: \$? = $ac_status" >&5
25088 (exit "$ac_status"); };
25090 eval cf_cv_prog_CXX_c_o=yes
25092 eval cf_cv_prog_CXX_c_o=no
25097 if test "$cf_cv_prog_CXX_c_o" = yes; then
25098 echo "$as_me:25098: result: yes" >&5
25099 echo "${ECHO_T}yes" >&6
25101 echo "$as_me:25101: result: no" >&5
25102 echo "${ECHO_T}no" >&6
25105 case "$GXX_VERSION" in
25106 (1.*|2.[0-6]*|[1-9][0-9].*)
25111 cf_cxx_library=unknown
25112 case "$cf_cv_system_name" in
25120 if test "$GXX" = yes; then
25121 echo "$as_me:25121: checking for lib$cf_gpp_libname" >&5
25122 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25125 cf_add_libs="$LIBS"
25128 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25129 # filter duplicates
25130 for cf_add_1lib in $cf_add_0lib; do
25131 for cf_add_2lib in $cf_add_libs; do
25132 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25137 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25139 LIBS="$cf_add_libs"
25141 cat >"conftest.$ac_ext" <<_ACEOF
25142 #line 25142 "configure"
25143 #include "confdefs.h"
25145 #include <$cf_gpp_libname/builtin.h>
25150 two_arg_error_handler_t foo2 = lib_error_handler
25155 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25156 if { (eval echo "$as_me:25156: \"$ac_link\"") >&5
25157 (eval $ac_link) 2>&5
25159 echo "$as_me:25159: \$? = $ac_status" >&5
25160 (exit "$ac_status"); } &&
25161 { ac_try='test -s "conftest$ac_exeext"'
25162 { (eval echo "$as_me:25162: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25165 echo "$as_me:25165: \$? = $ac_status" >&5
25166 (exit "$ac_status"); }; }; then
25169 cf_add_libs="$CXXLIBS"
25172 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25173 # filter duplicates
25174 for cf_add_1lib in $cf_add_0lib; do
25175 for cf_add_2lib in $cf_add_libs; do
25176 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25181 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25183 CXXLIBS="$cf_add_libs"
25185 if test "$cf_gpp_libname" = cpp ; then
25187 cat >>confdefs.h <<\EOF
25188 #define HAVE_GPP_BUILTIN_H 1
25193 cat >>confdefs.h <<\EOF
25194 #define HAVE_GXX_BUILTIN_H 1
25199 echo "$as_me: failed program was:" >&5
25200 cat "conftest.$ac_ext" >&5
25201 cat >"conftest.$ac_ext" <<_ACEOF
25202 #line 25202 "configure"
25203 #include "confdefs.h"
25205 #include <builtin.h>
25210 two_arg_error_handler_t foo2 = lib_error_handler
25215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25216 if { (eval echo "$as_me:25216: \"$ac_link\"") >&5
25217 (eval $ac_link) 2>&5
25219 echo "$as_me:25219: \$? = $ac_status" >&5
25220 (exit "$ac_status"); } &&
25221 { ac_try='test -s "conftest$ac_exeext"'
25222 { (eval echo "$as_me:25222: \"$ac_try\"") >&5
25223 (eval $ac_try) 2>&5
25225 echo "$as_me:25225: \$? = $ac_status" >&5
25226 (exit "$ac_status"); }; }; then
25229 cf_add_libs="$CXXLIBS"
25232 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25233 # filter duplicates
25234 for cf_add_1lib in $cf_add_0lib; do
25235 for cf_add_2lib in $cf_add_libs; do
25236 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25241 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25243 CXXLIBS="$cf_add_libs"
25245 cat >>confdefs.h <<\EOF
25246 #define HAVE_BUILTIN_H 1
25250 echo "$as_me: failed program was:" >&5
25251 cat "conftest.$ac_ext" >&5
25254 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25256 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25258 echo "$as_me:25258: result: $cf_cxx_library" >&5
25259 echo "${ECHO_T}$cf_cxx_library" >&6
25269 ac_cpp='$CXXCPP $CPPFLAGS'
25270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25271 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25273 ac_main_return="return"
25274 echo "$as_me:25274: checking how to run the C++ preprocessor" >&5
25275 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25276 if test -z "$CXXCPP"; then
25277 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25278 echo $ECHO_N "(cached) $ECHO_C" >&6
25280 # Double quotes because CXXCPP needs to be expanded
25281 for CXXCPP in "$CXX -E" "/lib/cpp"
25283 ac_preproc_ok=false
25284 for ac_cxx_preproc_warn_flag in '' yes
25286 # Use a header file that comes with gcc, so configuring glibc
25287 # with a fresh cross-compiler works.
25288 # On the NeXT, cc -E runs the code through the compiler's parser,
25289 # not just through cpp. "Syntax error" is here to catch this case.
25290 cat >"conftest.$ac_ext" <<_ACEOF
25291 #line 25291 "configure"
25292 #include "confdefs.h"
25293 #include <assert.h>
25296 if { (eval echo "$as_me:25296: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25297 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25299 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25301 cat conftest.err >&5
25302 echo "$as_me:25302: \$? = $ac_status" >&5
25303 (exit "$ac_status"); } >/dev/null; then
25304 if test -s conftest.err; then
25305 ac_cpp_err=$ac_cxx_preproc_warn_flag
25312 if test -z "$ac_cpp_err"; then
25315 echo "$as_me: failed program was:" >&5
25316 cat "conftest.$ac_ext" >&5
25317 # Broken: fails on valid input.
25320 rm -f conftest.err "conftest.$ac_ext"
25322 # OK, works on sane cases. Now check whether non-existent headers
25323 # can be detected and how.
25324 cat >"conftest.$ac_ext" <<_ACEOF
25325 #line 25325 "configure"
25326 #include "confdefs.h"
25327 #include <ac_nonexistent.h>
25329 if { (eval echo "$as_me:25329: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25330 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25332 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 echo "$as_me:25335: \$? = $ac_status" >&5
25336 (exit "$ac_status"); } >/dev/null; then
25337 if test -s conftest.err; then
25338 ac_cpp_err=$ac_cxx_preproc_warn_flag
25345 if test -z "$ac_cpp_err"; then
25346 # Broken: success on invalid input.
25349 echo "$as_me: failed program was:" >&5
25350 cat "conftest.$ac_ext" >&5
25351 # Passes both tests.
25355 rm -f conftest.err "conftest.$ac_ext"
25358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25359 rm -f conftest.err "conftest.$ac_ext"
25360 if $ac_preproc_ok; then
25365 ac_cv_prog_CXXCPP=$CXXCPP
25368 CXXCPP=$ac_cv_prog_CXXCPP
25370 ac_cv_prog_CXXCPP=$CXXCPP
25372 echo "$as_me:25372: result: $CXXCPP" >&5
25373 echo "${ECHO_T}$CXXCPP" >&6
25374 ac_preproc_ok=false
25375 for ac_cxx_preproc_warn_flag in '' yes
25377 # Use a header file that comes with gcc, so configuring glibc
25378 # with a fresh cross-compiler works.
25379 # On the NeXT, cc -E runs the code through the compiler's parser,
25380 # not just through cpp. "Syntax error" is here to catch this case.
25381 cat >"conftest.$ac_ext" <<_ACEOF
25382 #line 25382 "configure"
25383 #include "confdefs.h"
25384 #include <assert.h>
25387 if { (eval echo "$as_me:25387: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25388 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25390 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25392 cat conftest.err >&5
25393 echo "$as_me:25393: \$? = $ac_status" >&5
25394 (exit "$ac_status"); } >/dev/null; then
25395 if test -s conftest.err; then
25396 ac_cpp_err=$ac_cxx_preproc_warn_flag
25403 if test -z "$ac_cpp_err"; then
25406 echo "$as_me: failed program was:" >&5
25407 cat "conftest.$ac_ext" >&5
25408 # Broken: fails on valid input.
25411 rm -f conftest.err "conftest.$ac_ext"
25413 # OK, works on sane cases. Now check whether non-existent headers
25414 # can be detected and how.
25415 cat >"conftest.$ac_ext" <<_ACEOF
25416 #line 25416 "configure"
25417 #include "confdefs.h"
25418 #include <ac_nonexistent.h>
25420 if { (eval echo "$as_me:25420: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25421 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25423 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25425 cat conftest.err >&5
25426 echo "$as_me:25426: \$? = $ac_status" >&5
25427 (exit "$ac_status"); } >/dev/null; then
25428 if test -s conftest.err; then
25429 ac_cpp_err=$ac_cxx_preproc_warn_flag
25436 if test -z "$ac_cpp_err"; then
25437 # Broken: success on invalid input.
25440 echo "$as_me: failed program was:" >&5
25441 cat "conftest.$ac_ext" >&5
25442 # Passes both tests.
25446 rm -f conftest.err "conftest.$ac_ext"
25449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25450 rm -f conftest.err "conftest.$ac_ext"
25451 if $ac_preproc_ok; then
25454 { { echo "$as_me:25454: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25455 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25456 { (exit 1); exit 1; }; }
25460 ac_cpp='$CXXCPP $CPPFLAGS'
25461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25462 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25464 ac_main_return="return"
25466 for ac_header in typeinfo
25468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25469 echo "$as_me:25469: checking for $ac_header" >&5
25470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25472 echo $ECHO_N "(cached) $ECHO_C" >&6
25474 cat >"conftest.$ac_ext" <<_ACEOF
25475 #line 25475 "configure"
25476 #include "confdefs.h"
25477 #include <$ac_header>
25479 if { (eval echo "$as_me:25479: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25480 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25482 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25484 cat conftest.err >&5
25485 echo "$as_me:25485: \$? = $ac_status" >&5
25486 (exit "$ac_status"); } >/dev/null; then
25487 if test -s conftest.err; then
25488 ac_cpp_err=$ac_cxx_preproc_warn_flag
25495 if test -z "$ac_cpp_err"; then
25496 eval "$as_ac_Header=yes"
25498 echo "$as_me: failed program was:" >&5
25499 cat "conftest.$ac_ext" >&5
25500 eval "$as_ac_Header=no"
25502 rm -f conftest.err "conftest.$ac_ext"
25504 echo "$as_me:25504: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25505 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25506 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25507 cat >>confdefs.h <<EOF
25508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25514 for ac_header in iostream
25516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25517 echo "$as_me:25517: checking for $ac_header" >&5
25518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25522 cat >"conftest.$ac_ext" <<_ACEOF
25523 #line 25523 "configure"
25524 #include "confdefs.h"
25525 #include <$ac_header>
25527 if { (eval echo "$as_me:25527: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25528 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25530 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25532 cat conftest.err >&5
25533 echo "$as_me:25533: \$? = $ac_status" >&5
25534 (exit "$ac_status"); } >/dev/null; then
25535 if test -s conftest.err; then
25536 ac_cpp_err=$ac_cxx_preproc_warn_flag
25543 if test -z "$ac_cpp_err"; then
25544 eval "$as_ac_Header=yes"
25546 echo "$as_me: failed program was:" >&5
25547 cat "conftest.$ac_ext" >&5
25548 eval "$as_ac_Header=no"
25550 rm -f conftest.err "conftest.$ac_ext"
25552 echo "$as_me:25552: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25553 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25554 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25555 cat >>confdefs.h <<EOF
25556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25562 if test x"$ac_cv_header_iostream" = xyes ; then
25563 echo "$as_me:25563: checking if iostream uses std-namespace" >&5
25564 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25565 cat >"conftest.$ac_ext" <<_ACEOF
25566 #line 25566 "configure"
25567 #include "confdefs.h"
25569 #include <iostream>
25576 cerr << "testing" << endl;
25582 rm -f "conftest.$ac_objext"
25583 if { (eval echo "$as_me:25583: \"$ac_compile\"") >&5
25584 (eval $ac_compile) 2>&5
25586 echo "$as_me:25586: \$? = $ac_status" >&5
25587 (exit "$ac_status"); } &&
25588 { ac_try='test -s "conftest.$ac_objext"'
25589 { (eval echo "$as_me:25589: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25592 echo "$as_me:25592: \$? = $ac_status" >&5
25593 (exit "$ac_status"); }; }; then
25594 cf_iostream_namespace=yes
25596 echo "$as_me: failed program was:" >&5
25597 cat "conftest.$ac_ext" >&5
25598 cf_iostream_namespace=no
25600 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25601 echo "$as_me:25601: result: $cf_iostream_namespace" >&5
25602 echo "${ECHO_T}$cf_iostream_namespace" >&6
25603 if test "$cf_iostream_namespace" = yes ; then
25605 cat >>confdefs.h <<\EOF
25606 #define IOSTREAM_NAMESPACE 1
25612 echo "$as_me:25612: checking if we should include stdbool.h" >&5
25613 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25615 if test "${cf_cv_header_stdbool_h+set}" = set; then
25616 echo $ECHO_N "(cached) $ECHO_C" >&6
25619 cat >"conftest.$ac_ext" <<_ACEOF
25620 #line 25620 "configure"
25621 #include "confdefs.h"
25631 rm -f "conftest.$ac_objext"
25632 if { (eval echo "$as_me:25632: \"$ac_compile\"") >&5
25633 (eval $ac_compile) 2>&5
25635 echo "$as_me:25635: \$? = $ac_status" >&5
25636 (exit "$ac_status"); } &&
25637 { ac_try='test -s "conftest.$ac_objext"'
25638 { (eval echo "$as_me:25638: \"$ac_try\"") >&5
25639 (eval $ac_try) 2>&5
25641 echo "$as_me:25641: \$? = $ac_status" >&5
25642 (exit "$ac_status"); }; }; then
25643 cf_cv_header_stdbool_h=0
25645 echo "$as_me: failed program was:" >&5
25646 cat "conftest.$ac_ext" >&5
25647 cat >"conftest.$ac_ext" <<_ACEOF
25648 #line 25648 "configure"
25649 #include "confdefs.h"
25652 #include <stdbool.h>
25663 rm -f "conftest.$ac_objext"
25664 if { (eval echo "$as_me:25664: \"$ac_compile\"") >&5
25665 (eval $ac_compile) 2>&5
25667 echo "$as_me:25667: \$? = $ac_status" >&5
25668 (exit "$ac_status"); } &&
25669 { ac_try='test -s "conftest.$ac_objext"'
25670 { (eval echo "$as_me:25670: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25673 echo "$as_me:25673: \$? = $ac_status" >&5
25674 (exit "$ac_status"); }; }; then
25675 cf_cv_header_stdbool_h=1
25677 echo "$as_me: failed program was:" >&5
25678 cat "conftest.$ac_ext" >&5
25679 cf_cv_header_stdbool_h=0
25681 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25683 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25686 if test "$cf_cv_header_stdbool_h" = 1
25687 then echo "$as_me:25687: result: yes" >&5
25688 echo "${ECHO_T}yes" >&6
25689 else echo "$as_me:25689: result: no" >&5
25690 echo "${ECHO_T}no" >&6
25693 echo "$as_me:25693: checking for builtin bool type" >&5
25694 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25696 if test "${cf_cv_builtin_bool+set}" = set; then
25697 echo $ECHO_N "(cached) $ECHO_C" >&6
25700 cat >"conftest.$ac_ext" <<_ACEOF
25701 #line 25701 "configure"
25702 #include "confdefs.h"
25705 #include <sys/types.h>
25715 rm -f "conftest.$ac_objext"
25716 if { (eval echo "$as_me:25716: \"$ac_compile\"") >&5
25717 (eval $ac_compile) 2>&5
25719 echo "$as_me:25719: \$? = $ac_status" >&5
25720 (exit "$ac_status"); } &&
25721 { ac_try='test -s "conftest.$ac_objext"'
25722 { (eval echo "$as_me:25722: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25725 echo "$as_me:25725: \$? = $ac_status" >&5
25726 (exit "$ac_status"); }; }; then
25727 cf_cv_builtin_bool=1
25729 echo "$as_me: failed program was:" >&5
25730 cat "conftest.$ac_ext" >&5
25731 cf_cv_builtin_bool=0
25733 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25737 if test "$cf_cv_builtin_bool" = 1
25738 then echo "$as_me:25738: result: yes" >&5
25739 echo "${ECHO_T}yes" >&6
25740 else echo "$as_me:25740: result: no" >&5
25741 echo "${ECHO_T}no" >&6
25744 echo "$as_me:25744: checking for bool" >&5
25745 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25746 if test "${ac_cv_type_bool+set}" = set; then
25747 echo $ECHO_N "(cached) $ECHO_C" >&6
25749 cat >"conftest.$ac_ext" <<_ACEOF
25750 #line 25750 "configure"
25751 #include "confdefs.h"
25753 #include <stdlib.h>
25756 #if defined(__cplusplus)
25758 #ifdef HAVE_GXX_BUILTIN_H
25759 #include <g++/builtin.h>
25760 #elif HAVE_GPP_BUILTIN_H
25761 #include <gpp/builtin.h>
25762 #elif HAVE_BUILTIN_H
25763 #include <builtin.h>
25768 #if $cf_cv_header_stdbool_h
25769 #include <stdbool.h>
25785 rm -f "conftest.$ac_objext"
25786 if { (eval echo "$as_me:25786: \"$ac_compile\"") >&5
25787 (eval $ac_compile) 2>&5
25789 echo "$as_me:25789: \$? = $ac_status" >&5
25790 (exit "$ac_status"); } &&
25791 { ac_try='test -s "conftest.$ac_objext"'
25792 { (eval echo "$as_me:25792: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25795 echo "$as_me:25795: \$? = $ac_status" >&5
25796 (exit "$ac_status"); }; }; then
25797 ac_cv_type_bool=yes
25799 echo "$as_me: failed program was:" >&5
25800 cat "conftest.$ac_ext" >&5
25803 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25805 echo "$as_me:25805: result: $ac_cv_type_bool" >&5
25806 echo "${ECHO_T}$ac_cv_type_bool" >&6
25808 echo "$as_me:25808: checking size of bool" >&5
25809 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25810 if test "${ac_cv_sizeof_bool+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 if test "$ac_cv_type_bool" = yes; then
25814 if test "$cross_compiling" = yes; then
25815 # Depending upon the size, compute the lo and hi bounds.
25816 cat >"conftest.$ac_ext" <<_ACEOF
25817 #line 25817 "configure"
25818 #include "confdefs.h"
25820 #include <stdlib.h>
25823 #if defined(__cplusplus)
25825 #ifdef HAVE_GXX_BUILTIN_H
25826 #include <g++/builtin.h>
25827 #elif HAVE_GPP_BUILTIN_H
25828 #include <gpp/builtin.h>
25829 #elif HAVE_BUILTIN_H
25830 #include <builtin.h>
25835 #if $cf_cv_header_stdbool_h
25836 #include <stdbool.h>
25844 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
25849 rm -f "conftest.$ac_objext"
25850 if { (eval echo "$as_me:25850: \"$ac_compile\"") >&5
25851 (eval $ac_compile) 2>&5
25853 echo "$as_me:25853: \$? = $ac_status" >&5
25854 (exit "$ac_status"); } &&
25855 { ac_try='test -s "conftest.$ac_objext"'
25856 { (eval echo "$as_me:25856: \"$ac_try\"") >&5
25857 (eval $ac_try) 2>&5
25859 echo "$as_me:25859: \$? = $ac_status" >&5
25860 (exit "$ac_status"); }; }; then
25863 cat >"conftest.$ac_ext" <<_ACEOF
25864 #line 25864 "configure"
25865 #include "confdefs.h"
25867 #include <stdlib.h>
25870 #if defined(__cplusplus)
25872 #ifdef HAVE_GXX_BUILTIN_H
25873 #include <g++/builtin.h>
25874 #elif HAVE_GPP_BUILTIN_H
25875 #include <gpp/builtin.h>
25876 #elif HAVE_BUILTIN_H
25877 #include <builtin.h>
25882 #if $cf_cv_header_stdbool_h
25883 #include <stdbool.h>
25891 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25896 rm -f "conftest.$ac_objext"
25897 if { (eval echo "$as_me:25897: \"$ac_compile\"") >&5
25898 (eval $ac_compile) 2>&5
25900 echo "$as_me:25900: \$? = $ac_status" >&5
25901 (exit "$ac_status"); } &&
25902 { ac_try='test -s "conftest.$ac_objext"'
25903 { (eval echo "$as_me:25903: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25906 echo "$as_me:25906: \$? = $ac_status" >&5
25907 (exit "$ac_status"); }; }; then
25908 ac_hi=$ac_mid; break
25910 echo "$as_me: failed program was:" >&5
25911 cat "conftest.$ac_ext" >&5
25912 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
25914 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25917 echo "$as_me: failed program was:" >&5
25918 cat "conftest.$ac_ext" >&5
25921 cat >"conftest.$ac_ext" <<_ACEOF
25922 #line 25922 "configure"
25923 #include "confdefs.h"
25925 #include <stdlib.h>
25928 #if defined(__cplusplus)
25930 #ifdef HAVE_GXX_BUILTIN_H
25931 #include <g++/builtin.h>
25932 #elif HAVE_GPP_BUILTIN_H
25933 #include <gpp/builtin.h>
25934 #elif HAVE_BUILTIN_H
25935 #include <builtin.h>
25940 #if $cf_cv_header_stdbool_h
25941 #include <stdbool.h>
25949 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
25954 rm -f "conftest.$ac_objext"
25955 if { (eval echo "$as_me:25955: \"$ac_compile\"") >&5
25956 (eval $ac_compile) 2>&5
25958 echo "$as_me:25958: \$? = $ac_status" >&5
25959 (exit "$ac_status"); } &&
25960 { ac_try='test -s "conftest.$ac_objext"'
25961 { (eval echo "$as_me:25961: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25964 echo "$as_me:25964: \$? = $ac_status" >&5
25965 (exit "$ac_status"); }; }; then
25966 ac_lo=$ac_mid; break
25968 echo "$as_me: failed program was:" >&5
25969 cat "conftest.$ac_ext" >&5
25970 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
25972 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25975 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25976 # Binary search between lo and hi bounds.
25977 while test "x$ac_lo" != "x$ac_hi"; do
25978 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
25979 cat >"conftest.$ac_ext" <<_ACEOF
25980 #line 25980 "configure"
25981 #include "confdefs.h"
25983 #include <stdlib.h>
25986 #if defined(__cplusplus)
25988 #ifdef HAVE_GXX_BUILTIN_H
25989 #include <g++/builtin.h>
25990 #elif HAVE_GPP_BUILTIN_H
25991 #include <gpp/builtin.h>
25992 #elif HAVE_BUILTIN_H
25993 #include <builtin.h>
25998 #if $cf_cv_header_stdbool_h
25999 #include <stdbool.h>
26007 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26012 rm -f "conftest.$ac_objext"
26013 if { (eval echo "$as_me:26013: \"$ac_compile\"") >&5
26014 (eval $ac_compile) 2>&5
26016 echo "$as_me:26016: \$? = $ac_status" >&5
26017 (exit "$ac_status"); } &&
26018 { ac_try='test -s "conftest.$ac_objext"'
26019 { (eval echo "$as_me:26019: \"$ac_try\"") >&5
26020 (eval $ac_try) 2>&5
26022 echo "$as_me:26022: \$? = $ac_status" >&5
26023 (exit "$ac_status"); }; }; then
26026 echo "$as_me: failed program was:" >&5
26027 cat "conftest.$ac_ext" >&5
26028 ac_lo=`expr "$ac_mid" + 1`
26030 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26032 ac_cv_sizeof_bool=$ac_lo
26034 if test "$cross_compiling" = yes; then
26035 { { echo "$as_me:26035: error: cannot run test program while cross compiling" >&5
26036 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26037 { (exit 1); exit 1; }; }
26039 cat >"conftest.$ac_ext" <<_ACEOF
26040 #line 26040 "configure"
26041 #include "confdefs.h"
26043 #include <stdlib.h>
26046 #if defined(__cplusplus)
26048 #ifdef HAVE_GXX_BUILTIN_H
26049 #include <g++/builtin.h>
26050 #elif HAVE_GPP_BUILTIN_H
26051 #include <gpp/builtin.h>
26052 #elif HAVE_BUILTIN_H
26053 #include <builtin.h>
26058 #if $cf_cv_header_stdbool_h
26059 #include <stdbool.h>
26067 FILE *f = fopen ("conftest.val", "w");
26069 $ac_main_return (1);
26070 fprintf (f, "%ld", (long)(sizeof (bool)));
26076 rm -f "conftest$ac_exeext"
26077 if { (eval echo "$as_me:26077: \"$ac_link\"") >&5
26078 (eval $ac_link) 2>&5
26080 echo "$as_me:26080: \$? = $ac_status" >&5
26081 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26082 { (eval echo "$as_me:26082: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26085 echo "$as_me:26085: \$? = $ac_status" >&5
26086 (exit "$ac_status"); }; }; then
26087 ac_cv_sizeof_bool=`cat conftest.val`
26089 echo "$as_me: program exited with status $ac_status" >&5
26090 echo "$as_me: failed program was:" >&5
26091 cat "conftest.$ac_ext" >&5
26093 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26098 ac_cv_sizeof_bool=0
26101 echo "$as_me:26101: result: $ac_cv_sizeof_bool" >&5
26102 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26103 cat >>confdefs.h <<EOF
26104 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26107 echo "$as_me:26107: checking for type of bool" >&5
26108 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26109 if test "${cf_cv_type_of_bool+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
26114 if test "$cross_compiling" = yes; then
26116 case x$ac_cv_sizeof_bool in
26117 (x1) cf_cv_type_of_bool="unsigned char";;
26118 (x2) cf_cv_type_of_bool="unsigned short";;
26119 (x4) cf_cv_type_of_bool="unsigned int";;
26120 (x8) cf_cv_type_of_bool="unsigned long";;
26121 (*) cf_cv_type_of_bool=unknown;;
26125 cat >"conftest.$ac_ext" <<_ACEOF
26126 #line 26126 "configure"
26127 #include "confdefs.h"
26129 #include <stdlib.h>
26132 #if defined(__cplusplus)
26134 #ifdef HAVE_GXX_BUILTIN_H
26135 #include <g++/builtin.h>
26136 #elif HAVE_GPP_BUILTIN_H
26137 #include <gpp/builtin.h>
26138 #elif HAVE_BUILTIN_H
26139 #include <builtin.h>
26144 #if $cf_cv_header_stdbool_h
26145 #include <stdbool.h>
26152 FILE *fp = fopen("cf_test.out", "w");
26155 if ((bool)(-x) >= 0)
26156 fputs("unsigned ", fp);
26157 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26158 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26159 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26160 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26163 ${cf_cv_main_return:-return}(0);
26167 rm -f "conftest$ac_exeext"
26168 if { (eval echo "$as_me:26168: \"$ac_link\"") >&5
26169 (eval $ac_link) 2>&5
26171 echo "$as_me:26171: \$? = $ac_status" >&5
26172 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26173 { (eval echo "$as_me:26173: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26176 echo "$as_me:26176: \$? = $ac_status" >&5
26177 (exit "$ac_status"); }; }; then
26178 cf_cv_type_of_bool=`cat cf_test.out`
26179 if test -z "$cf_cv_type_of_bool"; then
26180 cf_cv_type_of_bool=unknown
26183 echo "$as_me: program exited with status $ac_status" >&5
26184 echo "$as_me: failed program was:" >&5
26185 cat "conftest.$ac_ext" >&5
26186 cf_cv_type_of_bool=unknown
26188 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26193 echo "$as_me:26193: result: $cf_cv_type_of_bool" >&5
26194 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26196 if test "$cf_cv_type_of_bool" = unknown ; then
26197 case .$NCURSES_BOOL in
26198 (.auto|.) NCURSES_BOOL=unsigned;;
26200 { echo "$as_me:26200: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26201 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26202 cf_cv_type_of_bool=$NCURSES_BOOL
26205 echo "$as_me:26205: checking for special defines needed for etip.h" >&5
26206 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26207 cf_save_CXXFLAGS="$CXXFLAGS"
26210 # etip.h includes ncurses.h which includes ncurses_dll.h
26211 # But ncurses_dll.h is generated - fix here.
26212 test -d include || mkdir include
26213 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
26215 for cf_math in "" MATH_H
26217 for cf_excp in "" MATH_EXCEPTION
26219 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26220 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26221 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26222 cat >"conftest.$ac_ext" <<_ACEOF
26223 #line 26223 "configure"
26224 #include "confdefs.h"
26226 #include <etip.h.in>
26236 rm -f "conftest.$ac_objext"
26237 if { (eval echo "$as_me:26237: \"$ac_compile\"") >&5
26238 (eval $ac_compile) 2>&5
26240 echo "$as_me:26240: \$? = $ac_status" >&5
26241 (exit "$ac_status"); } &&
26242 { ac_try='test -s "conftest.$ac_objext"'
26243 { (eval echo "$as_me:26243: \"$ac_try\"") >&5
26244 (eval $ac_try) 2>&5
26246 echo "$as_me:26246: \$? = $ac_status" >&5
26247 (exit "$ac_status"); }; }; then
26249 test -n "$cf_math" && cat >>confdefs.h <<EOF
26250 #define ETIP_NEEDS_${cf_math} 1
26253 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26254 #define ETIP_NEEDS_${cf_excp} 1
26257 cf_result="$cf_math $cf_excp"
26261 echo "$as_me: failed program was:" >&5
26262 cat "conftest.$ac_ext" >&5
26264 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26267 echo "$as_me:26267: result: $cf_result" >&5
26268 echo "${ECHO_T}$cf_result" >&6
26269 CXXFLAGS="$cf_save_CXXFLAGS"
26271 if test -n "$CXX"; then
26272 echo "$as_me:26272: checking if $CXX accepts parameter initialization" >&5
26273 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26274 if test "${cf_cv_cpp_param_init+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 ac_cpp='$CXXCPP $CPPFLAGS'
26280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26281 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26283 ac_main_return="return"
26285 if test "$cross_compiling" = yes; then
26286 cf_cv_cpp_param_init=unknown
26288 cat >"conftest.$ac_ext" <<_ACEOF
26289 #line 26289 "configure"
26290 #include "confdefs.h"
26300 TEST::TEST(int x = 1) // some compilers do not like second initializer
26307 rm -f "conftest$ac_exeext"
26308 if { (eval echo "$as_me:26308: \"$ac_link\"") >&5
26309 (eval $ac_link) 2>&5
26311 echo "$as_me:26311: \$? = $ac_status" >&5
26312 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26313 { (eval echo "$as_me:26313: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26316 echo "$as_me:26316: \$? = $ac_status" >&5
26317 (exit "$ac_status"); }; }; then
26318 cf_cv_cpp_param_init=yes
26320 echo "$as_me: program exited with status $ac_status" >&5
26321 echo "$as_me: failed program was:" >&5
26322 cat "conftest.$ac_ext" >&5
26323 cf_cv_cpp_param_init=no
26325 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26328 ac_cpp='$CXXCPP $CPPFLAGS'
26329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26330 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26332 ac_main_return="return"
26335 echo "$as_me:26335: result: $cf_cv_cpp_param_init" >&5
26336 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26338 test "$cf_cv_cpp_param_init" = yes &&
26339 cat >>confdefs.h <<\EOF
26340 #define CPP_HAS_PARAM_INIT 1
26343 if test -n "$CXX"; then
26345 echo "$as_me:26345: checking if $CXX accepts static_cast" >&5
26346 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26347 if test "${cf_cv_cpp_static_cast+set}" = set; then
26348 echo $ECHO_N "(cached) $ECHO_C" >&6
26352 ac_cpp='$CXXCPP $CPPFLAGS'
26353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26354 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26356 ac_main_return="return"
26358 cat >"conftest.$ac_ext" <<_ACEOF
26359 #line 26359 "configure"
26360 #include "confdefs.h"
26365 NCursesPanel(int nlines,
26375 template<class T> class NCursesUserPanel : public NCursesPanel
26378 NCursesUserPanel (int nlines,
26382 const T* p_UserData = static_cast<T*>(0))
26383 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26386 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26390 virtual ~NCursesUserPanel() {};
26397 const char* p_UserData = static_cast<char*>(0)
26402 rm -f "conftest.$ac_objext"
26403 if { (eval echo "$as_me:26403: \"$ac_compile\"") >&5
26404 (eval $ac_compile) 2>&5
26406 echo "$as_me:26406: \$? = $ac_status" >&5
26407 (exit "$ac_status"); } &&
26408 { ac_try='test -s "conftest.$ac_objext"'
26409 { (eval echo "$as_me:26409: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26412 echo "$as_me:26412: \$? = $ac_status" >&5
26413 (exit "$ac_status"); }; }; then
26414 cf_cv_cpp_static_cast=yes
26416 echo "$as_me: failed program was:" >&5
26417 cat "conftest.$ac_ext" >&5
26418 cf_cv_cpp_static_cast=no
26420 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26423 ac_cpp='$CXXCPP $CPPFLAGS'
26424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26425 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26427 ac_main_return="return"
26430 echo "$as_me:26430: result: $cf_cv_cpp_static_cast" >&5
26431 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26435 test "$cf_cv_cpp_static_cast" = yes &&
26436 cat >>confdefs.h <<\EOF
26437 #define CPP_HAS_STATIC_CAST 1
26441 CXX_ARFLAGS='$(ARFLAGS)'
26442 case "$cf_cv_system_name" in
26444 if test "$GXX" != yes ; then
26446 CXX_ARFLAGS='-ar -o'
26450 CXXLDFLAGS="-u main"
26453 if test "$GXX" != yes ; then
26455 CXX_ARFLAGS='-xar -o'
26462 cf_cv_builtin_bool=1
26464 # Just because we are not configuring against C++ right now does not
26465 # mean that a user will not want to use C++. Some distributors disable
26466 # the C++ portion of this configuration as a shortcut (or just to avoid
26467 # compiling the demo in the c++ directory). So we need a reasonable
26468 # default for the 'bool' type.
26470 # Caveat: since the storage of the bool type is not standardized, it
26473 if test "$NCURSES_BOOL" != auto ; then
26474 cf_cv_type_of_bool=$NCURSES_BOOL
26475 cf_cv_header_stdbool_h=0
26477 if test "$cf_cv_header_stdbool_h" = 1 ; then
26479 echo "$as_me:26479: checking for bool" >&5
26480 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26481 if test "${ac_cv_type_bool+set}" = set; then
26482 echo $ECHO_N "(cached) $ECHO_C" >&6
26484 cat >"conftest.$ac_ext" <<_ACEOF
26485 #line 26485 "configure"
26486 #include "confdefs.h"
26488 #include <stdlib.h>
26491 #if defined(__cplusplus)
26493 #ifdef HAVE_GXX_BUILTIN_H
26494 #include <g++/builtin.h>
26495 #elif HAVE_GPP_BUILTIN_H
26496 #include <gpp/builtin.h>
26497 #elif HAVE_BUILTIN_H
26498 #include <builtin.h>
26503 #if $cf_cv_header_stdbool_h
26504 #include <stdbool.h>
26520 rm -f "conftest.$ac_objext"
26521 if { (eval echo "$as_me:26521: \"$ac_compile\"") >&5
26522 (eval $ac_compile) 2>&5
26524 echo "$as_me:26524: \$? = $ac_status" >&5
26525 (exit "$ac_status"); } &&
26526 { ac_try='test -s "conftest.$ac_objext"'
26527 { (eval echo "$as_me:26527: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26530 echo "$as_me:26530: \$? = $ac_status" >&5
26531 (exit "$ac_status"); }; }; then
26532 ac_cv_type_bool=yes
26534 echo "$as_me: failed program was:" >&5
26535 cat "conftest.$ac_ext" >&5
26538 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26540 echo "$as_me:26540: result: $ac_cv_type_bool" >&5
26541 echo "${ECHO_T}$ac_cv_type_bool" >&6
26543 echo "$as_me:26543: checking size of bool" >&5
26544 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26545 if test "${ac_cv_sizeof_bool+set}" = set; then
26546 echo $ECHO_N "(cached) $ECHO_C" >&6
26548 if test "$ac_cv_type_bool" = yes; then
26549 if test "$cross_compiling" = yes; then
26550 # Depending upon the size, compute the lo and hi bounds.
26551 cat >"conftest.$ac_ext" <<_ACEOF
26552 #line 26552 "configure"
26553 #include "confdefs.h"
26555 #include <stdlib.h>
26558 #if defined(__cplusplus)
26560 #ifdef HAVE_GXX_BUILTIN_H
26561 #include <g++/builtin.h>
26562 #elif HAVE_GPP_BUILTIN_H
26563 #include <gpp/builtin.h>
26564 #elif HAVE_BUILTIN_H
26565 #include <builtin.h>
26570 #if $cf_cv_header_stdbool_h
26571 #include <stdbool.h>
26579 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26584 rm -f "conftest.$ac_objext"
26585 if { (eval echo "$as_me:26585: \"$ac_compile\"") >&5
26586 (eval $ac_compile) 2>&5
26588 echo "$as_me:26588: \$? = $ac_status" >&5
26589 (exit "$ac_status"); } &&
26590 { ac_try='test -s "conftest.$ac_objext"'
26591 { (eval echo "$as_me:26591: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26594 echo "$as_me:26594: \$? = $ac_status" >&5
26595 (exit "$ac_status"); }; }; then
26598 cat >"conftest.$ac_ext" <<_ACEOF
26599 #line 26599 "configure"
26600 #include "confdefs.h"
26602 #include <stdlib.h>
26605 #if defined(__cplusplus)
26607 #ifdef HAVE_GXX_BUILTIN_H
26608 #include <g++/builtin.h>
26609 #elif HAVE_GPP_BUILTIN_H
26610 #include <gpp/builtin.h>
26611 #elif HAVE_BUILTIN_H
26612 #include <builtin.h>
26617 #if $cf_cv_header_stdbool_h
26618 #include <stdbool.h>
26626 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26631 rm -f "conftest.$ac_objext"
26632 if { (eval echo "$as_me:26632: \"$ac_compile\"") >&5
26633 (eval $ac_compile) 2>&5
26635 echo "$as_me:26635: \$? = $ac_status" >&5
26636 (exit "$ac_status"); } &&
26637 { ac_try='test -s "conftest.$ac_objext"'
26638 { (eval echo "$as_me:26638: \"$ac_try\"") >&5
26639 (eval $ac_try) 2>&5
26641 echo "$as_me:26641: \$? = $ac_status" >&5
26642 (exit "$ac_status"); }; }; then
26643 ac_hi=$ac_mid; break
26645 echo "$as_me: failed program was:" >&5
26646 cat "conftest.$ac_ext" >&5
26647 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26649 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26652 echo "$as_me: failed program was:" >&5
26653 cat "conftest.$ac_ext" >&5
26656 cat >"conftest.$ac_ext" <<_ACEOF
26657 #line 26657 "configure"
26658 #include "confdefs.h"
26660 #include <stdlib.h>
26663 #if defined(__cplusplus)
26665 #ifdef HAVE_GXX_BUILTIN_H
26666 #include <g++/builtin.h>
26667 #elif HAVE_GPP_BUILTIN_H
26668 #include <gpp/builtin.h>
26669 #elif HAVE_BUILTIN_H
26670 #include <builtin.h>
26675 #if $cf_cv_header_stdbool_h
26676 #include <stdbool.h>
26684 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26689 rm -f "conftest.$ac_objext"
26690 if { (eval echo "$as_me:26690: \"$ac_compile\"") >&5
26691 (eval $ac_compile) 2>&5
26693 echo "$as_me:26693: \$? = $ac_status" >&5
26694 (exit "$ac_status"); } &&
26695 { ac_try='test -s "conftest.$ac_objext"'
26696 { (eval echo "$as_me:26696: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26699 echo "$as_me:26699: \$? = $ac_status" >&5
26700 (exit "$ac_status"); }; }; then
26701 ac_lo=$ac_mid; break
26703 echo "$as_me: failed program was:" >&5
26704 cat "conftest.$ac_ext" >&5
26705 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26707 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26710 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26711 # Binary search between lo and hi bounds.
26712 while test "x$ac_lo" != "x$ac_hi"; do
26713 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26714 cat >"conftest.$ac_ext" <<_ACEOF
26715 #line 26715 "configure"
26716 #include "confdefs.h"
26718 #include <stdlib.h>
26721 #if defined(__cplusplus)
26723 #ifdef HAVE_GXX_BUILTIN_H
26724 #include <g++/builtin.h>
26725 #elif HAVE_GPP_BUILTIN_H
26726 #include <gpp/builtin.h>
26727 #elif HAVE_BUILTIN_H
26728 #include <builtin.h>
26733 #if $cf_cv_header_stdbool_h
26734 #include <stdbool.h>
26742 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26747 rm -f "conftest.$ac_objext"
26748 if { (eval echo "$as_me:26748: \"$ac_compile\"") >&5
26749 (eval $ac_compile) 2>&5
26751 echo "$as_me:26751: \$? = $ac_status" >&5
26752 (exit "$ac_status"); } &&
26753 { ac_try='test -s "conftest.$ac_objext"'
26754 { (eval echo "$as_me:26754: \"$ac_try\"") >&5
26755 (eval $ac_try) 2>&5
26757 echo "$as_me:26757: \$? = $ac_status" >&5
26758 (exit "$ac_status"); }; }; then
26761 echo "$as_me: failed program was:" >&5
26762 cat "conftest.$ac_ext" >&5
26763 ac_lo=`expr "$ac_mid" + 1`
26765 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26767 ac_cv_sizeof_bool=$ac_lo
26769 if test "$cross_compiling" = yes; then
26770 { { echo "$as_me:26770: error: cannot run test program while cross compiling" >&5
26771 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26772 { (exit 1); exit 1; }; }
26774 cat >"conftest.$ac_ext" <<_ACEOF
26775 #line 26775 "configure"
26776 #include "confdefs.h"
26778 #include <stdlib.h>
26781 #if defined(__cplusplus)
26783 #ifdef HAVE_GXX_BUILTIN_H
26784 #include <g++/builtin.h>
26785 #elif HAVE_GPP_BUILTIN_H
26786 #include <gpp/builtin.h>
26787 #elif HAVE_BUILTIN_H
26788 #include <builtin.h>
26793 #if $cf_cv_header_stdbool_h
26794 #include <stdbool.h>
26802 FILE *f = fopen ("conftest.val", "w");
26804 $ac_main_return (1);
26805 fprintf (f, "%ld", (long)(sizeof (bool)));
26811 rm -f "conftest$ac_exeext"
26812 if { (eval echo "$as_me:26812: \"$ac_link\"") >&5
26813 (eval $ac_link) 2>&5
26815 echo "$as_me:26815: \$? = $ac_status" >&5
26816 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26817 { (eval echo "$as_me:26817: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26820 echo "$as_me:26820: \$? = $ac_status" >&5
26821 (exit "$ac_status"); }; }; then
26822 ac_cv_sizeof_bool=`cat conftest.val`
26824 echo "$as_me: program exited with status $ac_status" >&5
26825 echo "$as_me: failed program was:" >&5
26826 cat "conftest.$ac_ext" >&5
26828 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26833 ac_cv_sizeof_bool=0
26836 echo "$as_me:26836: result: $ac_cv_sizeof_bool" >&5
26837 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26838 cat >>confdefs.h <<EOF
26839 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26842 echo "$as_me:26842: checking for type of bool" >&5
26843 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26844 if test "${cf_cv_type_of_bool+set}" = set; then
26845 echo $ECHO_N "(cached) $ECHO_C" >&6
26849 if test "$cross_compiling" = yes; then
26851 case x$ac_cv_sizeof_bool in
26852 (x1) cf_cv_type_of_bool="unsigned char";;
26853 (x2) cf_cv_type_of_bool="unsigned short";;
26854 (x4) cf_cv_type_of_bool="unsigned int";;
26855 (x8) cf_cv_type_of_bool="unsigned long";;
26856 (*) cf_cv_type_of_bool=unknown;;
26860 cat >"conftest.$ac_ext" <<_ACEOF
26861 #line 26861 "configure"
26862 #include "confdefs.h"
26864 #include <stdlib.h>
26867 #if defined(__cplusplus)
26869 #ifdef HAVE_GXX_BUILTIN_H
26870 #include <g++/builtin.h>
26871 #elif HAVE_GPP_BUILTIN_H
26872 #include <gpp/builtin.h>
26873 #elif HAVE_BUILTIN_H
26874 #include <builtin.h>
26879 #if $cf_cv_header_stdbool_h
26880 #include <stdbool.h>
26887 FILE *fp = fopen("cf_test.out", "w");
26890 if ((bool)(-x) >= 0)
26891 fputs("unsigned ", fp);
26892 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26893 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26894 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26895 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26898 ${cf_cv_main_return:-return}(0);
26902 rm -f "conftest$ac_exeext"
26903 if { (eval echo "$as_me:26903: \"$ac_link\"") >&5
26904 (eval $ac_link) 2>&5
26906 echo "$as_me:26906: \$? = $ac_status" >&5
26907 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26908 { (eval echo "$as_me:26908: \"$ac_try\"") >&5
26909 (eval $ac_try) 2>&5
26911 echo "$as_me:26911: \$? = $ac_status" >&5
26912 (exit "$ac_status"); }; }; then
26913 cf_cv_type_of_bool=`cat cf_test.out`
26914 if test -z "$cf_cv_type_of_bool"; then
26915 cf_cv_type_of_bool=unknown
26918 echo "$as_me: program exited with status $ac_status" >&5
26919 echo "$as_me: failed program was:" >&5
26920 cat "conftest.$ac_ext" >&5
26921 cf_cv_type_of_bool=unknown
26923 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26928 echo "$as_me:26928: result: $cf_cv_type_of_bool" >&5
26929 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26931 if test "$cf_cv_type_of_bool" = unknown ; then
26932 case .$NCURSES_BOOL in
26933 (.auto|.) NCURSES_BOOL=unsigned;;
26935 { echo "$as_me:26935: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26936 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26937 cf_cv_type_of_bool=$NCURSES_BOOL
26941 echo "$as_me:26941: checking for fallback type of bool" >&5
26942 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
26943 case "$host_cpu" in
26944 (i?86) cf_cv_type_of_bool=char ;;
26945 (*) cf_cv_type_of_bool=int ;;
26947 echo "$as_me:26947: result: $cf_cv_type_of_bool" >&5
26948 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26953 # If the C compiler did not declare bool, and we did not determine that the C++
26954 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
26955 # ncurses library use the same type as C++ bool. Note that this allows one to
26956 # specify the type of bool in a configure-script option and postpone
26957 # integration with the C++ compiler provided that the types are compatible.
26959 if test "$cf_cv_cc_bool_type" = 1
26961 # oops: C has a bool. Unlikely, but C++ could differ.
26963 elif test "$cf_cv_builtin_bool" = 0
26968 # this is the normal case
26969 USE_CXX_BOOL='defined(__cplusplus)'
26972 if test -f "${srcdir}/Ada95/Makefile.in" ; then
26974 if test "$cf_with_ada" != "no" ; then
26975 if test "$with_libtool" != "no"; then
26976 { echo "$as_me:26976: WARNING: libtool does not support Ada - disabling feature" >&5
26977 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
26982 if test "$cf_with_ada" != "no" ; then
26984 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
26987 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26989 unset ac_cv_path_cf_TEMP_gnat
26991 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
26992 set dummy $cf_prog_gnat; ac_word=$2
26993 echo "$as_me:26993: checking for $ac_word" >&5
26994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26995 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 case $cf_TEMP_gnat in
27000 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
27003 ac_save_IFS=$IFS; IFS=$ac_path_separator
27005 for ac_dir in $ac_dummy; do
27007 test -z "$ac_dir" && ac_dir=.
27008 if $as_executable_p "$ac_dir/$ac_word"; then
27009 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
27010 echo "$as_me:27010: found $ac_dir/$ac_word" >&5
27015 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
27019 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
27021 if test -n "$cf_TEMP_gnat"; then
27022 echo "$as_me:27022: result: $cf_TEMP_gnat" >&5
27023 echo "${ECHO_T}$cf_TEMP_gnat" >&6
27025 echo "$as_me:27025: result: no" >&5
27026 echo "${ECHO_T}no" >&6
27029 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
27031 if test "x$cf_TEMP_gnat" != xno; then
27032 unset cf_cv_gnat_version
27035 echo "$as_me:27035: checking for $cf_prog_gnat version" >&5
27036 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
27037 if test "${cf_cv_gnat_version+set}" = set; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27041 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
27042 grep '[0-9].[0-9][0-9]*' |\
27043 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27046 echo "$as_me:27046: result: $cf_cv_gnat_version" >&5
27047 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27048 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27049 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
27052 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
27055 unset cf_cv_gnat_version
27056 unset ac_cv_path_cf_TEMP_gnat
27059 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
27061 cf_cv_prog_gnat_correct=no
27063 cf_ada_make=gnatmake
27064 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
27065 # gprconfig is newer than gnatmake; we can continue...
27068 rm -rf ./conftest* ./*~conftest*
27069 if mkdir conftest.src
27073 for cf_gprconfig in Ada C
27075 echo "$as_me:27075: checking for gprconfig name for $cf_gprconfig" >&5
27076 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
27077 if test "$cf_gprconfig" = C
27079 for cf_gprconfig_param in \
27080 "$cf_gprconfig,,,,GNATGCC" \
27081 "$cf_gprconfig,,,,GCC" \
27084 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27085 test -n "$cf_gprconfig_value" && break
27088 cf_gprconfig_param=$cf_gprconfig
27089 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27091 if test -n "$cf_gprconfig_value"
27093 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
27094 echo "$as_me:27094: result: $cf_gprconfig_value" >&5
27095 echo "${ECHO_T}$cf_gprconfig_value" >&6
27097 echo "$as_me:27097: result: missing" >&5
27098 echo "${ECHO_T}missing" >&6
27104 rm -rf ./conftest* ./*~conftest*
27107 if test "x$cf_ada_config" != "x#"
27110 echo "$as_me:27110: checking for gnat version" >&5
27111 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
27112 if test "${cf_cv_gnat_version+set}" = set; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27116 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
27117 grep '[0-9].[0-9][0-9]*' |\
27118 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27121 echo "$as_me:27121: result: $cf_cv_gnat_version" >&5
27122 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27123 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27125 case "$cf_cv_gnat_version" in
27126 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27127 cf_cv_prog_gnat_correct=yes
27130 { echo "$as_me:27130: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
27131 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
27132 cf_cv_prog_gnat_correct=no
27136 # Extract the first word of "m4", so it can be a program name with args.
27137 set dummy m4; ac_word=$2
27138 echo "$as_me:27138: checking for $ac_word" >&5
27139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27140 if test "${ac_cv_prog_M4_exists+set}" = set; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27143 if test -n "$M4_exists"; then
27144 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
27146 ac_save_IFS=$IFS; IFS=$ac_path_separator
27148 for ac_dir in $ac_dummy; do
27150 test -z "$ac_dir" && ac_dir=.
27151 $as_executable_p "$ac_dir/$ac_word" || continue
27152 ac_cv_prog_M4_exists="yes"
27153 echo "$as_me:27153: found $ac_dir/$ac_word" >&5
27157 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
27160 M4_exists=$ac_cv_prog_M4_exists
27161 if test -n "$M4_exists"; then
27162 echo "$as_me:27162: result: $M4_exists" >&5
27163 echo "${ECHO_T}$M4_exists" >&6
27165 echo "$as_me:27165: result: no" >&5
27166 echo "${ECHO_T}no" >&6
27169 if test "$ac_cv_prog_M4_exists" = no; then
27170 cf_cv_prog_gnat_correct=no
27171 { echo "$as_me:27171: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
27172 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
27174 if test "$cf_cv_prog_gnat_correct" = yes; then
27175 echo "$as_me:27175: checking if GNAT works" >&5
27176 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
27178 rm -rf ./conftest* ./*~conftest*
27179 cat >>conftest.ads <<CF_EOF
27180 procedure conftest;
27182 cat >>conftest.adb <<CF_EOF
27185 procedure conftest is
27187 Text_IO.Put ("Hello World");
27189 GNAT.OS_Lib.OS_Exit (0);
27192 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27193 if ( ./conftest 1>&5 2>&1 ) ; then
27194 cf_cv_prog_gnat_correct=yes
27196 cf_cv_prog_gnat_correct=no
27199 cf_cv_prog_gnat_correct=no
27201 rm -rf ./conftest* ./*~conftest*
27203 echo "$as_me:27203: result: $cf_cv_prog_gnat_correct" >&5
27204 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
27207 cf_cv_prog_gnat_correct=no
27211 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27213 ADAFLAGS="$ADAFLAGS -gnatpn"
27215 echo "$as_me:27215: checking optimization options for ADAFLAGS" >&5
27216 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27220 ADAFLAGS="$ADAFLAGS -g"
27226 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27228 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27232 echo "$as_me:27232: result: $ADAFLAGS" >&5
27233 echo "${ECHO_T}$ADAFLAGS" >&6
27235 echo "$as_me:27235: checking if GNATPREP supports -T option" >&5
27236 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27237 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27238 echo $ECHO_N "(cached) $ECHO_C" >&6
27241 cf_cv_gnatprep_opt_t=no
27242 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27245 echo "$as_me:27245: result: $cf_cv_gnatprep_opt_t" >&5
27246 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27247 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27249 echo "$as_me:27249: checking if GNAT supports generics" >&5
27250 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27251 case "$cf_cv_gnat_version" in
27252 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27253 cf_gnat_generics=yes
27256 cf_gnat_generics=no
27259 echo "$as_me:27259: result: $cf_gnat_generics" >&5
27260 echo "${ECHO_T}$cf_gnat_generics" >&6
27262 if test "$cf_gnat_generics" = yes
27264 cf_compile_generics=generics
27265 cf_generic_objects="\${GENOBJS}"
27267 cf_compile_generics=
27268 cf_generic_objects=
27271 echo "$as_me:27271: checking if GNAT supports SIGINT" >&5
27272 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27273 if test "${cf_cv_gnat_sigint+set}" = set; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
27277 rm -rf ./conftest* ./*~conftest*
27278 cat >>conftest.ads <<CF_EOF
27279 with Ada.Interrupts.Names;
27281 package ConfTest is
27283 pragma Warnings (Off); -- the next pragma exists since 3.11p
27284 pragma Unreserve_All_Interrupts;
27285 pragma Warnings (On);
27287 protected Process is
27289 function Continue return Boolean;
27290 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27292 Done : Boolean := False;
27297 cat >>conftest.adb <<CF_EOF
27298 package body ConfTest is
27299 protected body Process is
27304 function Continue return Boolean is
27311 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27312 cf_cv_gnat_sigint=yes
27314 cf_cv_gnat_sigint=no
27316 rm -rf ./conftest* ./*~conftest*
27319 echo "$as_me:27319: result: $cf_cv_gnat_sigint" >&5
27320 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27322 if test "$cf_cv_gnat_sigint" = yes ; then
27325 USE_GNAT_SIGINT="#"
27328 cf_gnat_libraries=no
27329 cf_gnat_projects=no
27331 if test "$enable_gnat_projects" != no ; then
27332 echo "$as_me:27332: checking if GNAT supports project files" >&5
27333 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27334 case "$cf_cv_gnat_version" in
27338 case "$cf_cv_system_name" in
27342 rm -rf ./conftest* ./*~conftest*
27343 if mkdir conftest.src conftest.bin conftest.lib
27346 rm -rf ./conftest* ./*~conftest*
27347 cat >>library.gpr <<CF_EOF
27349 Kind := External ("LIB_KIND");
27350 for Library_Name use "ConfTest";
27351 for Object_Dir use ".";
27352 for Library_ALI_Dir use External("LIBRARY_DIR");
27353 for Library_Version use External ("SONAME");
27354 for Library_Kind use Kind;
27355 for Library_Dir use External("BUILD_DIR");
27356 Source_Dir := External ("SOURCE_DIR");
27357 for Source_Dirs use (Source_Dir);
27360 cat >>confpackage.ads <<CF_EOF
27361 package ConfPackage is
27362 procedure conftest;
27365 cat >>confpackage.adb <<CF_EOF
27367 package body ConfPackage is
27368 procedure conftest is
27370 Text_IO.Put ("Hello World");
27375 if ( "$cf_ada_make" $ADAFLAGS \
27377 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27378 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27379 -XSOURCE_DIR="`pwd`" \
27380 -XSONAME=libConfTest.so.1 \
27381 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27382 cf_gnat_projects=yes
27386 if test -f conftest.lib/confpackage.ali
27388 cf_gnat_libraries=yes
27390 rm -rf ./conftest* ./*~conftest*
27395 echo "$as_me:27395: result: $cf_gnat_projects" >&5
27396 echo "${ECHO_T}$cf_gnat_projects" >&6
27397 fi # enable_gnat_projects
27399 if test "$cf_gnat_projects" = yes
27401 echo "$as_me:27401: checking if GNAT supports libraries" >&5
27402 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27403 echo "$as_me:27403: result: $cf_gnat_libraries" >&5
27404 echo "${ECHO_T}$cf_gnat_libraries" >&6
27407 USE_OLD_MAKERULES=""
27408 USE_GNAT_PROJECTS="#"
27409 USE_GNAT_MAKE_GPR="#"
27410 USE_GNAT_GPRBUILD="#"
27412 if test "$cf_gnat_projects" = yes
27414 USE_OLD_MAKERULES="#"
27415 USE_GNAT_PROJECTS=""
27416 if test "$cf_cv_VERSION_GPRBUILD" != no
27418 USE_GNAT_GPRBUILD=""
27419 elif test "$cf_cv_VERSION_GNATMAKE" != no
27421 USE_GNAT_MAKE_GPR=""
27423 { echo "$as_me:27423: WARNING: use old makefile rules since tools are missing" >&5
27424 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27428 if test "$cf_gnat_libraries" = yes
27430 USE_GNAT_LIBRARIES=""
27432 USE_GNAT_LIBRARIES="#"
27435 echo "$as_me:27435: checking for ada-compiler" >&5
27436 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27438 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27439 if test "${with_ada_compiler+set}" = set; then
27440 withval="$with_ada_compiler"
27441 cf_ada_compiler=$withval
27443 cf_ada_compiler=gnatmake
27446 echo "$as_me:27446: result: $cf_ada_compiler" >&5
27447 echo "${ECHO_T}$cf_ada_compiler" >&6
27449 cf_ada_package=terminal_interface
27451 echo "$as_me:27451: checking for ada-include" >&5
27452 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27454 # Check whether --with-ada-include or --without-ada-include was given.
27455 if test "${with_ada_include+set}" = set; then
27456 withval="$with_ada_include"
27459 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27460 fi; if test -n "$prefix/share/ada/adainclude" ; then
27462 if test "x$prefix" != xNONE; then
27463 cf_path_syntax="$prefix"
27465 cf_path_syntax="$ac_default_prefix"
27468 case ".$withval" in
27469 (.\$\(*\)*|.\'*\'*)
27473 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27475 (.\$\{*prefix\}*|.\$\{*dir\}*)
27476 eval withval="$withval"
27477 case ".$withval" in
27479 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27484 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27487 { { echo "$as_me:27487: error: expected a pathname, not \"$withval\"" >&5
27488 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27489 { (exit 1); exit 1; }; }
27494 eval ADA_INCLUDE="$withval"
27496 echo "$as_me:27496: result: $ADA_INCLUDE" >&5
27497 echo "${ECHO_T}$ADA_INCLUDE" >&6
27499 echo "$as_me:27499: checking for ada-objects" >&5
27500 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27502 # Check whether --with-ada-objects or --without-ada-objects was given.
27503 if test "${with_ada_objects+set}" = set; then
27504 withval="$with_ada_objects"
27507 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27508 fi; if test -n "$prefix/lib/ada/adalib" ; then
27510 if test "x$prefix" != xNONE; then
27511 cf_path_syntax="$prefix"
27513 cf_path_syntax="$ac_default_prefix"
27516 case ".$withval" in
27517 (.\$\(*\)*|.\'*\'*)
27521 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27523 (.\$\{*prefix\}*|.\$\{*dir\}*)
27524 eval withval="$withval"
27525 case ".$withval" in
27527 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27532 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27535 { { echo "$as_me:27535: error: expected a pathname, not \"$withval\"" >&5
27536 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27537 { (exit 1); exit 1; }; }
27542 eval ADA_OBJECTS="$withval"
27544 echo "$as_me:27544: result: $ADA_OBJECTS" >&5
27545 echo "${ECHO_T}$ADA_OBJECTS" >&6
27547 echo "$as_me:27547: checking if an Ada95 shared-library should be built" >&5
27548 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27550 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27551 if test "${with_ada_sharedlib+set}" = set; then
27552 withval="$with_ada_sharedlib"
27553 with_ada_sharedlib=$withval
27555 with_ada_sharedlib=no
27557 echo "$as_me:27557: result: $with_ada_sharedlib" >&5
27558 echo "${ECHO_T}$with_ada_sharedlib" >&6
27560 if test "x$with_ada_sharedlib" != xno
27562 if test "x$cf_gnat_projects" != xyes
27564 { echo "$as_me:27564: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27565 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27566 with_ada_sharedlib=no
27570 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27571 MAKE_ADA_SHAREDLIB="#"
27573 if test "x$with_ada_sharedlib" != xno
27575 MAKE_ADA_SHAREDLIB=
27576 if test "x$with_ada_sharedlib" != xyes
27578 ADA_SHAREDLIB="$with_ada_sharedlib"
27582 # allow the Ada binding to be renamed
27584 echo "$as_me:27584: checking for ada-libname" >&5
27585 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27587 # Check whether --with-ada-libname or --without-ada-libname was given.
27588 if test "${with_ada_libname+set}" = set; then
27589 withval="$with_ada_libname"
27590 ADA_LIBNAME=$withval
27592 ADA_LIBNAME=AdaCurses
27594 case "x$ADA_LIBNAME" in
27596 ADA_LIBNAME=AdaCurses
27600 echo "$as_me:27600: result: $ADA_LIBNAME" >&5
27601 echo "${ECHO_T}$ADA_LIBNAME" >&6
27609 # do this "late" to avoid conflict with header-checks
27610 if test "x$with_widec" = xyes ; then
27611 echo "$as_me:27611: checking for wchar_t" >&5
27612 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27613 if test "${ac_cv_type_wchar_t+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27616 cat >"conftest.$ac_ext" <<_ACEOF
27617 #line 27617 "configure"
27618 #include "confdefs.h"
27619 $ac_includes_default
27625 if (sizeof (wchar_t))
27631 rm -f "conftest.$ac_objext"
27632 if { (eval echo "$as_me:27632: \"$ac_compile\"") >&5
27633 (eval $ac_compile) 2>&5
27635 echo "$as_me:27635: \$? = $ac_status" >&5
27636 (exit "$ac_status"); } &&
27637 { ac_try='test -s "conftest.$ac_objext"'
27638 { (eval echo "$as_me:27638: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27641 echo "$as_me:27641: \$? = $ac_status" >&5
27642 (exit "$ac_status"); }; }; then
27643 ac_cv_type_wchar_t=yes
27645 echo "$as_me: failed program was:" >&5
27646 cat "conftest.$ac_ext" >&5
27647 ac_cv_type_wchar_t=no
27649 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27651 echo "$as_me:27651: result: $ac_cv_type_wchar_t" >&5
27652 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27654 echo "$as_me:27654: checking size of wchar_t" >&5
27655 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27656 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27657 echo $ECHO_N "(cached) $ECHO_C" >&6
27659 if test "$ac_cv_type_wchar_t" = yes; then
27660 if test "$cross_compiling" = yes; then
27661 # Depending upon the size, compute the lo and hi bounds.
27662 cat >"conftest.$ac_ext" <<_ACEOF
27663 #line 27663 "configure"
27664 #include "confdefs.h"
27665 $ac_includes_default
27669 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27674 rm -f "conftest.$ac_objext"
27675 if { (eval echo "$as_me:27675: \"$ac_compile\"") >&5
27676 (eval $ac_compile) 2>&5
27678 echo "$as_me:27678: \$? = $ac_status" >&5
27679 (exit "$ac_status"); } &&
27680 { ac_try='test -s "conftest.$ac_objext"'
27681 { (eval echo "$as_me:27681: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27684 echo "$as_me:27684: \$? = $ac_status" >&5
27685 (exit "$ac_status"); }; }; then
27688 cat >"conftest.$ac_ext" <<_ACEOF
27689 #line 27689 "configure"
27690 #include "confdefs.h"
27691 $ac_includes_default
27695 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27700 rm -f "conftest.$ac_objext"
27701 if { (eval echo "$as_me:27701: \"$ac_compile\"") >&5
27702 (eval $ac_compile) 2>&5
27704 echo "$as_me:27704: \$? = $ac_status" >&5
27705 (exit "$ac_status"); } &&
27706 { ac_try='test -s "conftest.$ac_objext"'
27707 { (eval echo "$as_me:27707: \"$ac_try\"") >&5
27708 (eval $ac_try) 2>&5
27710 echo "$as_me:27710: \$? = $ac_status" >&5
27711 (exit "$ac_status"); }; }; then
27712 ac_hi=$ac_mid; break
27714 echo "$as_me: failed program was:" >&5
27715 cat "conftest.$ac_ext" >&5
27716 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27718 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27721 echo "$as_me: failed program was:" >&5
27722 cat "conftest.$ac_ext" >&5
27725 cat >"conftest.$ac_ext" <<_ACEOF
27726 #line 27726 "configure"
27727 #include "confdefs.h"
27728 $ac_includes_default
27732 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
27737 rm -f "conftest.$ac_objext"
27738 if { (eval echo "$as_me:27738: \"$ac_compile\"") >&5
27739 (eval $ac_compile) 2>&5
27741 echo "$as_me:27741: \$? = $ac_status" >&5
27742 (exit "$ac_status"); } &&
27743 { ac_try='test -s "conftest.$ac_objext"'
27744 { (eval echo "$as_me:27744: \"$ac_try\"") >&5
27745 (eval $ac_try) 2>&5
27747 echo "$as_me:27747: \$? = $ac_status" >&5
27748 (exit "$ac_status"); }; }; then
27749 ac_lo=$ac_mid; break
27751 echo "$as_me: failed program was:" >&5
27752 cat "conftest.$ac_ext" >&5
27753 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27755 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27758 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27759 # Binary search between lo and hi bounds.
27760 while test "x$ac_lo" != "x$ac_hi"; do
27761 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27762 cat >"conftest.$ac_ext" <<_ACEOF
27763 #line 27763 "configure"
27764 #include "confdefs.h"
27765 $ac_includes_default
27769 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27774 rm -f "conftest.$ac_objext"
27775 if { (eval echo "$as_me:27775: \"$ac_compile\"") >&5
27776 (eval $ac_compile) 2>&5
27778 echo "$as_me:27778: \$? = $ac_status" >&5
27779 (exit "$ac_status"); } &&
27780 { ac_try='test -s "conftest.$ac_objext"'
27781 { (eval echo "$as_me:27781: \"$ac_try\"") >&5
27782 (eval $ac_try) 2>&5
27784 echo "$as_me:27784: \$? = $ac_status" >&5
27785 (exit "$ac_status"); }; }; then
27788 echo "$as_me: failed program was:" >&5
27789 cat "conftest.$ac_ext" >&5
27790 ac_lo=`expr "$ac_mid" + 1`
27792 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27794 ac_cv_sizeof_wchar_t=$ac_lo
27796 if test "$cross_compiling" = yes; then
27797 { { echo "$as_me:27797: error: cannot run test program while cross compiling" >&5
27798 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27799 { (exit 1); exit 1; }; }
27801 cat >"conftest.$ac_ext" <<_ACEOF
27802 #line 27802 "configure"
27803 #include "confdefs.h"
27804 $ac_includes_default
27808 FILE *f = fopen ("conftest.val", "w");
27810 $ac_main_return (1);
27811 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
27817 rm -f "conftest$ac_exeext"
27818 if { (eval echo "$as_me:27818: \"$ac_link\"") >&5
27819 (eval $ac_link) 2>&5
27821 echo "$as_me:27821: \$? = $ac_status" >&5
27822 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27823 { (eval echo "$as_me:27823: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27826 echo "$as_me:27826: \$? = $ac_status" >&5
27827 (exit "$ac_status"); }; }; then
27828 ac_cv_sizeof_wchar_t=`cat conftest.val`
27830 echo "$as_me: program exited with status $ac_status" >&5
27831 echo "$as_me: failed program was:" >&5
27832 cat "conftest.$ac_ext" >&5
27834 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27839 ac_cv_sizeof_wchar_t=0
27842 echo "$as_me:27842: result: $ac_cv_sizeof_wchar_t" >&5
27843 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
27844 cat >>confdefs.h <<EOF
27845 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
27848 # cross-compiling to mingw can run into the problem that attempting to
27849 # link with the regex library fails, causing the test to not set this to
27850 # a number. "recent" autoconf does not address this problem either -TD
27851 if test -z "$ac_cv_sizeof_wchar_t"
27853 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
27855 echo "${as_me:-configure}:27855: testing test failed (assume 2) ..." 1>&5
27857 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
27858 mv confdefs.tmp confdefs.h
27859 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
27863 ### Construct the ncurses library-subsets, if any, from this set of keywords:
27864 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
27866 ### ticlib modules may be a separate library, otherwise contained in termlib.
27867 ### termlib modules may be a separate library, otherwise contained in ncurses.
27869 ### The of "+" or " " between the tokens controls the way the script
27870 ### chooses to split module lists into libraries.
27872 ### (see CF_LIB_RULES).
27873 echo "$as_me:27873: checking for library subsets" >&5
27874 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
27877 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
27878 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
27879 if test "$with_ticlib" != no ; then
27880 LIB_SUBSETS="${LIB_SUBSETS} "
27882 LIB_SUBSETS="${LIB_SUBSETS}+"
27886 LIB_SUBSETS="${LIB_SUBSETS}termlib"
27887 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
27889 if test "$with_termlib" != no ; then
27890 LIB_SUBSETS="${LIB_SUBSETS} "
27892 LIB_SUBSETS="${LIB_SUBSETS}+"
27895 LIB_SUBSETS="${LIB_SUBSETS}base"
27897 # Most term-driver calls are to tinfo, but some like init_pair are to the
27898 # base library (so it resides in base).
27899 if test "$with_term_driver" != no ; then
27900 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
27901 case "$cf_cv_system_name" in
27902 (*mingw32*|*mingw64*)
27903 if test "x$with_exp_win32" = xyes ; then
27904 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
27906 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
27908 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
27911 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
27914 elif test "x$with_exp_win32" = xyes ; then
27915 case "$cf_cv_system_name" in
27916 (*mingw32*|*mingw64*)
27917 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
27924 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
27925 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
27927 echo "$as_me:27927: result: $LIB_SUBSETS" >&5
27928 echo "${ECHO_T}$LIB_SUBSETS" >&6
27930 ### Construct the list of include-directories to be generated
27932 if test "$srcdir" != "."; then
27933 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
27935 CPPFLAGS="-I../include $CPPFLAGS"
27936 if test "$srcdir" != "."; then
27937 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
27939 CPPFLAGS="-I. $CPPFLAGS"
27941 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
27942 if test "$srcdir" != "."; then
27943 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
27945 if test "$GCC" != yes; then
27946 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27947 elif test "$includedir" != "/usr/include"; then
27948 if test "$includedir" = '${prefix}/include' ; then
27949 if test x$prefix != x/usr ; then
27950 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27953 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27957 ### Build up pieces for makefile rules
27958 echo "$as_me:27958: checking default library suffix" >&5
27959 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
27961 case $DFT_LWR_MODEL in
27962 (libtool) DFT_ARG_SUFFIX='' ;;
27963 (normal) DFT_ARG_SUFFIX='' ;;
27964 (debug) DFT_ARG_SUFFIX='_g' ;;
27965 (profile) DFT_ARG_SUFFIX='_p' ;;
27966 (shared) DFT_ARG_SUFFIX='' ;;
27968 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
27969 echo "$as_me:27969: result: $DFT_ARG_SUFFIX" >&5
27970 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
27972 echo "$as_me:27972: checking default library-dependency suffix" >&5
27973 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
27975 case X$DFT_LWR_MODEL in
27977 DFT_LIB_SUFFIX='.la'
27978 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27981 case "$cf_cv_system_name" in
27983 DFT_LIB_SUFFIX='_g.lib'
27986 DFT_LIB_SUFFIX='_g.a'
27989 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27992 case "$cf_cv_system_name" in
27994 DFT_LIB_SUFFIX='_p.lib'
27997 DFT_LIB_SUFFIX='_p.a'
28000 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28003 case "$cf_cv_system_name" in
28005 DFT_LIB_SUFFIX='.so'
28006 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28009 DFT_LIB_SUFFIX='.dll'
28010 DFT_DEP_SUFFIX='.dll.lib'
28012 (cygwin*|msys*|mingw*)
28013 DFT_LIB_SUFFIX='.dll'
28014 DFT_DEP_SUFFIX='.dll.a'
28017 DFT_LIB_SUFFIX='.dylib'
28018 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28023 DFT_LIB_SUFFIX='.so'
28024 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28027 DFT_LIB_SUFFIX='.sl'
28028 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28033 DFT_LIB_SUFFIX='.so'
28034 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28041 DFT_LIB_SUFFIX='.lib'
28044 DFT_LIB_SUFFIX='.a'
28047 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28050 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28052 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28053 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28055 echo "$as_me:28055: result: $DFT_DEP_SUFFIX" >&5
28056 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28058 echo "$as_me:28058: checking default object directory" >&5
28059 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28061 case $DFT_LWR_MODEL in
28062 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28063 (normal) DFT_OBJ_SUBDIR='objects' ;;
28064 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28065 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28067 case "$cf_cv_system_name" in
28069 DFT_OBJ_SUBDIR='objects' ;;
28071 DFT_OBJ_SUBDIR='obj_s' ;;
28074 echo "$as_me:28074: result: $DFT_OBJ_SUBDIR" >&5
28075 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28077 if test "x$cf_with_cxx" = xyes ; then
28078 echo "$as_me:28078: checking c++ library-dependency suffix" >&5
28079 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28080 if test "$with_libtool" != "no"; then
28081 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28082 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28083 elif test "$with_shared_cxx" != "no"; then
28084 # also for g++ users...
28085 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28087 # we normally make a static library because C/C++ library rules differ
28091 CXX_LIB_SUFFIX='.la'
28092 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28095 case "$cf_cv_system_name" in
28097 CXX_LIB_SUFFIX='_g.lib'
28100 CXX_LIB_SUFFIX='_g.a'
28103 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28106 case "$cf_cv_system_name" in
28108 CXX_LIB_SUFFIX='_p.lib'
28111 CXX_LIB_SUFFIX='_p.a'
28114 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28117 case "$cf_cv_system_name" in
28119 CXX_LIB_SUFFIX='.so'
28120 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28123 CXX_LIB_SUFFIX='.dll'
28124 CXX_DEP_SUFFIX='.dll.lib'
28126 (cygwin*|msys*|mingw*)
28127 CXX_LIB_SUFFIX='.dll'
28128 CXX_DEP_SUFFIX='.dll.a'
28131 CXX_LIB_SUFFIX='.dylib'
28132 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28137 CXX_LIB_SUFFIX='.so'
28138 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28141 CXX_LIB_SUFFIX='.sl'
28142 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28147 CXX_LIB_SUFFIX='.so'
28148 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28155 CXX_LIB_SUFFIX='.lib'
28158 CXX_LIB_SUFFIX='.a'
28161 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28164 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28166 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28167 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28171 echo "$as_me:28171: result: $CXX_LIB_SUFFIX" >&5
28172 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28176 # do not want -ldl in build except as needed for -lncurses dependency
28177 if test "x$with_dlsym" = xyes ; then
28178 if test "$DFT_LWR_MODEL" = shared || \
28179 test "$DFT_LWR_MODEL" = libtool ; then
28181 # remove dl library from $LIBS
28182 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28186 ### Set up low-level terminfo dependencies for makefiles.
28188 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28189 # do not need libdl
28191 if test "x$with_dlsym" = xyes ; then
28193 # remove dl library from $SHLIB_LIST
28194 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28198 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28199 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28200 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28201 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28203 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28206 if test "$with_ticlib" != no ; then
28208 if test "x$with_ticlib" != xyes ; then
28209 TICS_NAME=$with_ticlib
28210 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28211 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28212 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28213 TICS_LIB_SUFFIX="${with_ticlib}"
28215 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28216 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28217 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28218 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28220 TICS_LDFLAGS="-L${LIB_DIR}"
28221 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28223 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28224 TICS_LDFLAGS="-L${LIB_DIR}"
28225 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28228 if test "$with_termlib" != no ; then
28230 if test "x$with_termlib" != xyes ; then
28231 TINFO_NAME=$with_termlib
28232 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28233 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28234 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28235 TINFO_LIB_SUFFIX="${with_termlib}"
28237 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28238 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28239 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28240 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28243 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28244 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28245 if test "$DFT_LWR_MODEL" = "libtool"; then
28246 TEST_ARGS="${TEST_DEPS}"
28247 TEST_ARG2="${TEST_DEP2}"
28248 TINFO_LDFLAGS="-L${LIB_DIR}"
28249 TINFO_LIBS="$TEST_ARGS"
28250 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28251 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28253 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28254 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28255 if test "x$with_term_driver" != xno ; then
28256 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28257 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28258 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28260 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28261 TINFO_LIBS="$TEST_ARGS"
28263 TINFO_LDFLAGS="-L${LIB_DIR}"
28264 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28267 # the next lines are needed for linking libtic over libncurses
28268 TINFO_NAME=${LIB_NAME}
28269 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28270 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28271 if test "x$with_tic_depends" = xyes ; then
28272 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28274 TICS_LIST="$SHLIB_LIST"
28277 TINFO_LDFLAGS="-L${LIB_DIR}"
28278 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28281 if test "$DFT_LWR_MODEL" = shared ; then
28282 case "$cf_cv_system_name" in
28284 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28290 if test "x$with_dlsym" = xyes ; then
28292 # remove dl library from $TICS_LIST
28293 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28297 if test "$DFT_LWR_MODEL" = "libtool"; then
28302 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28304 case "$DFT_LWR_MODEL" in
28305 (normal|debug|profile)
28307 if test "$GCC" = yes ; then
28308 case "$cf_cv_system_name" in
28309 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28313 (*) # normally, except when broken
28314 LDFLAGS_STATIC=-static
28315 LDFLAGS_SHARED=-dynamic
28319 case "$cf_cv_system_name" in
28320 (aix[4-7]*) # from ld manpage
28321 LDFLAGS_STATIC=-bstatic
28322 LDFLAGS_SHARED=-bdynamic
28324 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28325 # We could also use just "archive" and "shared".
28326 LDFLAGS_STATIC=-Wl,-a,archive_shared
28327 LDFLAGS_SHARED=-Wl,-a,shared_archive
28329 (irix*) # from ld manpage IRIX64
28330 LDFLAGS_STATIC=-Bstatic
28331 LDFLAGS_SHARED=-Bdynamic
28333 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28334 # alternative "-oldstyle_liblookup" (not in cc manpage)
28335 LDFLAGS_STATIC=-noso
28336 LDFLAGS_SHARED=-so_archive
28339 LDFLAGS_STATIC=-Bstatic
28340 LDFLAGS_SHARED=-Bdynamic
28345 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28347 echo "$as_me:28347: checking if linker supports switching between static/dynamic" >&5
28348 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28350 rm -f libconftest.a
28351 cat >conftest.$ac_ext <<EOF
28352 #line 28352 "configure"
28354 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28356 if { (eval echo "$as_me:28356: \"$ac_compile\"") >&5
28357 (eval $ac_compile) 2>&5
28359 echo "$as_me:28359: \$? = $ac_status" >&5
28360 (exit "$ac_status"); } ; then
28361 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28362 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28366 cf_save_LIBS="$LIBS"
28368 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28369 cat >"conftest.$ac_ext" <<_ACEOF
28370 #line 28370 "configure"
28371 #include "confdefs.h"
28373 #line 28373 "configure"
28375 int cf_ldflags_static(FILE *fp);
28381 return cf_ldflags_static(stdin);
28387 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28388 if { (eval echo "$as_me:28388: \"$ac_link\"") >&5
28389 (eval $ac_link) 2>&5
28391 echo "$as_me:28391: \$? = $ac_status" >&5
28392 (exit "$ac_status"); } &&
28393 { ac_try='test -s "conftest$ac_exeext"'
28394 { (eval echo "$as_me:28394: \"$ac_try\"") >&5
28395 (eval $ac_try) 2>&5
28397 echo "$as_me:28397: \$? = $ac_status" >&5
28398 (exit "$ac_status"); }; }; then
28400 # some linkers simply ignore the -dynamic
28401 case x`file "conftest$ac_exeext" 2>/dev/null` in
28403 cf_ldflags_static=no
28406 cf_ldflags_static=yes
28411 echo "$as_me: failed program was:" >&5
28412 cat "conftest.$ac_ext" >&5
28413 cf_ldflags_static=no
28415 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28417 rm -f libconftest.*
28418 LIBS="$cf_save_LIBS"
28420 echo "$as_me:28420: result: $cf_ldflags_static" >&5
28421 echo "${ECHO_T}$cf_ldflags_static" >&6
28423 if test "$cf_ldflags_static" != yes
28436 echo "$as_me:28436: checking where we will install curses.h" >&5
28437 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28440 if test "$with_overwrite" = no && \
28441 { test "x$includedir" = 'x${prefix}/include' || \
28442 test "x$includedir" = "x${prefix}/include"; }
28444 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28446 echo "$as_me:28446: result: ${includedir}${includesubdir}" >&5
28447 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28449 ### Resolve a conflict between normal and wide-curses by forcing applications
28450 ### that will need libutf8 to add it to their configure script.
28451 if test "$with_overwrite" != no ; then
28452 if test "$NCURSES_LIBUTF8" = 1 ; then
28453 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28454 { echo "$as_me:28454: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28455 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28458 WITH_OVERWRITE=$with_overwrite
28460 ### At least on MinGW a shared library build without libtool
28461 ### requires adding the additional libs to the link list.
28462 case "$cf_cv_system_name" in
28463 (*mingw32*|*mingw64*)
28464 if test "$DFT_LWR_MODEL" != "libtool"; then
28465 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28471 # used to separate tack out of the tree
28474 ### predefined stuff for the test programs
28476 cat >>confdefs.h <<\EOF
28477 #define HAVE_SLK_COLOR 1
28480 # pkgsrc uses these
28482 echo "$as_me:28482: checking for desired basename for form library" >&5
28483 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28485 # Check whether --with-form-libname or --without-form-libname was given.
28486 if test "${with_form_libname+set}" = set; then
28487 withval="$with_form_libname"
28488 with_lib_basename=$withval
28490 with_lib_basename=form
28492 FORM_NAME="$with_lib_basename"
28494 case "x$FORM_NAME" in
28502 echo "$as_me:28502: result: $FORM_NAME" >&5
28503 echo "${ECHO_T}$FORM_NAME" >&6
28505 echo "$as_me:28505: checking for desired basename for menu library" >&5
28506 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28508 # Check whether --with-menu-libname or --without-menu-libname was given.
28509 if test "${with_menu_libname+set}" = set; then
28510 withval="$with_menu_libname"
28511 with_lib_basename=$withval
28513 with_lib_basename=menu
28515 MENU_NAME="$with_lib_basename"
28517 case "x$MENU_NAME" in
28525 echo "$as_me:28525: result: $MENU_NAME" >&5
28526 echo "${ECHO_T}$MENU_NAME" >&6
28528 echo "$as_me:28528: checking for desired basename for panel library" >&5
28529 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28531 # Check whether --with-panel-libname or --without-panel-libname was given.
28532 if test "${with_panel_libname+set}" = set; then
28533 withval="$with_panel_libname"
28534 with_lib_basename=$withval
28536 with_lib_basename=panel
28538 PANEL_NAME="$with_lib_basename"
28540 case "x$PANEL_NAME" in
28548 echo "$as_me:28548: result: $PANEL_NAME" >&5
28549 echo "${ECHO_T}$PANEL_NAME" >&6
28551 echo "$as_me:28551: checking for desired basename for cxx library" >&5
28552 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28554 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28555 if test "${with_cxx_libname+set}" = set; then
28556 withval="$with_cxx_libname"
28557 with_lib_basename=$withval
28559 with_lib_basename=ncurses++
28561 CXX_NAME="$with_lib_basename"
28563 case "x$CXX_NAME" in
28571 echo "$as_me:28571: result: $CXX_NAME" >&5
28572 echo "${ECHO_T}$CXX_NAME" >&6
28574 ### Construct the list of subdirectories for which we'll customize makefiles
28575 ### with the appropriate compile-rules.
28577 echo "$as_me:28577: checking for src modules" >&5
28578 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28580 # dependencies and linker-arguments for test-programs
28581 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28582 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28583 if test "$DFT_LWR_MODEL" = "libtool"; then
28584 TEST_ARGS="${TEST_DEPS}"
28585 TEST_ARG2="${TEST_DEP2}"
28587 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28588 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28591 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28593 for cf_dir in $modules_to_build
28595 if test -f "$srcdir/$cf_dir/modules" ; then
28597 # We may/may not have tack in the distribution, though the
28599 if test "$cf_dir" = tack ; then
28600 if test "x$cf_with_tack" != "xyes"; then
28605 if test -z "$cf_cv_src_modules"; then
28606 cf_cv_src_modules=$cf_dir
28608 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28611 # Make the ncurses_cfg.h file record the library interface files as
28612 # well. These are header files that are the same name as their
28613 # directory. Ncurses is the only library that does not follow
28615 if test "$cf_dir" = tack ; then
28617 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28619 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28621 cat >>confdefs.h <<EOF
28622 #define HAVE_${cf_have_include}_H 1
28625 cat >>confdefs.h <<EOF
28626 #define HAVE_LIB${cf_have_include} 1
28629 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28631 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28633 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28634 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28635 if test "$DFT_LWR_MODEL" = "libtool"; then
28636 TEST_ARGS="${TEST_DEPS}"
28637 TEST_ARG2="${TEST_DEP2}"
28639 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28640 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28642 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28646 echo "$as_me:28646: result: $cf_cv_src_modules" >&5
28647 echo "${ECHO_T}$cf_cv_src_modules" >&6
28649 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28650 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28653 if test "x$cf_with_manpages" != xno ; then
28654 SRC_SUBDIRS="$SRC_SUBDIRS man"
28656 SRC_SUBDIRS="$SRC_SUBDIRS include"
28657 for cf_dir in $cf_cv_src_modules
28659 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28661 if test "x$cf_with_tests" != "xno" ; then
28662 SRC_SUBDIRS="$SRC_SUBDIRS test"
28664 # always make this, to install the ncurses-config script
28665 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28666 if test "$cf_with_cxx_binding" != no; then
28667 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28668 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28671 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28672 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28675 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28676 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28677 ADA_SUBDIRS="gen src"
28678 if test "x$cf_with_tests" != "xno" ; then
28679 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28684 for cf_dir in $SRC_SUBDIRS
28686 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28689 if test -n "$ADA_SUBDIRS"; then
28690 for cf_dir in $ADA_SUBDIRS
28692 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28697 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28698 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28699 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28700 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28704 for cf_item in $cf_list_models
28708 (libtool) cf_subdir='obj_lo' ;;
28709 (normal) cf_subdir='objects' ;;
28710 (debug) cf_subdir='obj_g' ;;
28711 (profile) cf_subdir='obj_p' ;;
28713 case "$cf_cv_system_name" in
28715 cf_subdir='objects' ;;
28717 cf_subdir='obj_s' ;;
28721 for cf_item2 in $DIRS_TO_MAKE
28723 test "$cf_item2" = "$cf_subdir" && break
28725 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28727 for cf_dir in $DIRS_TO_MAKE
28729 test ! -d "$cf_dir" && mkdir "$cf_dir"
28732 # symbols that differ when compiling Ada95 by itself.
28733 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28735 # values to use as strings
28737 cat >>confdefs.h <<EOF
28738 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
28741 cat >>confdefs.h <<EOF
28742 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
28745 ### Define substitutions for header files to avoid name-pollution
28747 if test "x$cf_cv_have_tcgetattr" = xyes ; then
28753 if test "x$ac_cv_header_stdint_h" = xyes ; then
28759 if test "x$ac_cv_header_termio_h" = xyes ; then
28765 if test "x$ac_cv_header_termios_h" = xyes ; then
28771 ################################################################################
28772 test "x$use_database" = xyes && \
28773 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
28775 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
28776 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
28778 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
28779 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
28782 if test "x$cf_with_tests" != xno ; then
28788 ADAHTML_DIR=../../doc/html/ada
28790 # workaround for OS/2 (20151017)
28791 case "$cf_cv_system_name" in
28793 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
28800 # workaround for g++ versus Solaris (20131116)
28801 case "$cf_cv_system_name" in
28803 case "x$CPPFLAGS" in
28804 (*-D_XOPEN_SOURCE_EXTENDED*)
28805 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
28807 echo "${as_me:-configure}:28807: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
28809 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
28810 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
28816 # Help to automatically enable the extended curses features when using either
28817 # the *-config or the ".pc" files by adding defines.
28818 echo "$as_me:28818: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
28819 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
28821 for cf_loop1 in $CPPFLAGS_after_XOPEN
28824 for cf_loop2 in $CPPFLAGS_before_XOPEN
28826 if test "x$cf_loop1" = "x$cf_loop2"
28832 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
28834 echo "$as_me:28834: result: $PKG_CFLAGS" >&5
28835 echo "${ECHO_T}$PKG_CFLAGS" >&6
28837 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
28838 case "x$NCURSES_OSPEED" in
28847 cat >>confdefs.h <<EOF
28848 #define NCURSES_OSPEED_COMPAT $cf_compatible
28851 case "x$cf_cv_typeof_chtype" in
28852 (xshort|xint|xlong)
28853 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
28857 case "x$cf_cv_typeof_mmask_t" in
28858 (xshort|xint|xlong)
28859 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
28863 # substitute into misc/Makefile to suppress
28864 # (un)install.data from the
28865 # (un)install rules.
28866 if test "x$cf_with_db_install" = "xno"; then
28868 MISC_UNINSTALL_DATA=
28870 MISC_INSTALL_DATA=install.data
28871 MISC_UNINSTALL_DATA=uninstall.data
28874 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
28877 MAKE_DATABASE="$MAKE_TERMINFO"
28880 if test -n "$PACKAGE"
28882 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
28884 echo "package: $PACKAGE"
28890 if test -n "$RESULTING_SYMS"
28892 cf_filter_syms=$cf_dft_filter_syms
28893 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
28895 echo "${as_me:-configure}:28895: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
28899 if test "x$WILDCARD_SYMS" = xno
28904 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
28906 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
28907 if test "$cf_filter_syms" = yes
28909 RESULTING_SYMS=resulting.map
28912 if test "x$cross_compiling" = xyes ; then
28913 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
28916 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
28920 # This is used for the *-config script and *.pc data files.
28922 echo "$as_me:28922: checking for linker search path" >&5
28923 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
28924 if test "${cf_cv_ld_searchpath+set}" = set; then
28925 echo $ECHO_N "(cached) $ECHO_C" >&6
28928 if test "$cross_compiling" != yes ; then
28930 # GNU binutils' ld does not involve permissions which may stop ldconfig.
28931 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
28933 # The -NX options tell newer versions of Linux ldconfig to not attempt to
28934 # update the cache, which makes it run faster.
28935 test -z "$cf_pathlist" && \
28936 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
28938 test -z "$cf_pathlist" &&
28939 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
28941 # This works with OpenBSD 6.5, which lists only filenames
28942 test -z "$cf_pathlist" &&
28943 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
28945 if test -z "$cf_pathlist"
28947 # dyld default path with MacOS
28948 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
28950 # do this to bypass check
28951 cf_cv_ld_searchpath='$HOME/lib'
28952 cf_pathlist="/usr/local/lib /lib /usr/lib"
28956 if test -z "$cf_pathlist"
28958 # Solaris is "SunOS"
28959 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
28961 case x`(isainfo -b)` in
28963 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
28966 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
28967 cf_pathlist="$cf_pathlist /lib /usr/lib"
28970 { echo "$as_me:28970: WARNING: problem with Solaris architecture" >&5
28971 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
28977 if test -z "$cf_pathlist"
28980 if test x"`uname -s`" = xHP-UX
28982 case x`getconf LONG_BIT` in
28984 cf_pathlist="/usr/lib/hpux64"
28987 cf_pathlist="/usr/lib/hpux32"
28995 # If nothing else, assume it is conventional
28996 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
28998 # Finally, check that this is only directories
28999 for cf_path in $0 $cf_pathlist
29001 if test -d "$cf_path"; then
29002 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29003 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29007 # Ensure that it is nonempty
29008 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29011 echo "$as_me:29011: result: $cf_cv_ld_searchpath" >&5
29012 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29014 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29016 cat >>confdefs.h <<\EOF
29017 #define HAVE_CURSES_DATA_BOOLNAMES 1
29020 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"
29021 ac_config_commands="$ac_config_commands default"
29022 cat >confcache <<\_ACEOF
29023 # This file is a shell script that caches the results of configure
29024 # tests run on this system so they can be shared between configure
29025 # scripts and configure runs, see configure's option --config-cache.
29026 # It is not useful on other systems. If it contains results you don't
29027 # want to keep, you may remove or edit it.
29029 # config.status only pays attention to the cache file if you give it
29030 # the --recheck option to rerun configure.
29032 # `ac_cv_env_foo' variables (set or unset) will be overriden when
29033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29034 # following values.
29038 # The following way of writing the cache mishandles newlines in values,
29039 # but we know of no workaround that is simple, portable, and efficient.
29040 # So, don't put newlines in cache variables' values.
29041 # Ultrix sh set writes to stderr and can't be redirected directly,
29042 # and sets the high bit in the cache file unless we assign to the vars.
29045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29047 # `set' does not quote correctly, so add quotes (double-quote
29048 # substitution turns \\\\ into \\, and sed turns \\ into \).
29051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29054 # `set' quotes correctly as required by POSIX, so do not add quotes.
29056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29065 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29067 if cmp -s $cache_file confcache; then :; else
29068 if test -w $cache_file; then
29069 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29070 cat confcache >$cache_file
29072 echo "not updating unwritable cache $cache_file"
29077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29078 # Let make expand exec_prefix.
29079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29081 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29083 # trailing colons and then remove the whole line if VPATH becomes empty
29084 # (actually we leave an empty line to preserve line numbers).
29085 if test "x$srcdir" = x.; then
29086 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29087 s/:*\$(srcdir):*/:/;
29088 s/:*\${srcdir}:*/:/;
29090 s/^\([^=]*=[ ]*\):*/\1/;
29096 DEFS=-DHAVE_CONFIG_H
29098 : "${CONFIG_STATUS=./config.status}"
29099 ac_clean_files_save=$ac_clean_files
29100 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29101 { echo "$as_me:29101: creating $CONFIG_STATUS" >&5
29102 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29103 cat >"$CONFIG_STATUS" <<_ACEOF
29105 # Generated automatically by configure.
29106 # Run this file to recreate the current configuration.
29107 # Compiler output produced by configure, useful for debugging
29108 # configure, is in config.log if it exists.
29111 SHELL=\${CONFIG_SHELL-$SHELL}
29112 ac_cs_invocation="\$0 \$@"
29114 CLICOLOR_FORCE= GREP_OPTIONS=
29115 unset CLICOLOR_FORCE GREP_OPTIONS
29118 cat >>"$CONFIG_STATUS" <<\_ACEOF
29119 # Be Bourne compatible
29120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29123 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29127 # Name of the executable.
29128 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29130 if expr a : '\(a\)' >/dev/null 2>&1; then
29136 rm -f conf$$ conf$$.exe conf$$.file
29138 if ln -s conf$$.file conf$$ 2>/dev/null; then
29139 # We could just check for DJGPP; but this test a) works b) is more generic
29140 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29141 if test -f conf$$.exe; then
29142 # Don't use ln at all; we don't have any links
29147 elif ln conf$$.file conf$$ 2>/dev/null; then
29152 rm -f conf$$ conf$$.exe conf$$.file
29154 as_executable_p="test -f"
29156 # Support unset when possible.
29157 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29164 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29165 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29166 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29167 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29168 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29169 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29170 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29171 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29174 # We need space, tab and new line, in precisely that order.
29180 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29186 # Files that config.status was made for.
29187 if test -n "$ac_config_files"; then
29188 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29191 if test -n "$ac_config_headers"; then
29192 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29195 if test -n "$ac_config_links"; then
29196 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29199 if test -n "$ac_config_commands"; then
29200 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29203 cat >>"$CONFIG_STATUS" <<\EOF
29206 \`$as_me' instantiates files from templates according to the
29207 current configuration.
29209 Usage: $0 [OPTIONS] [FILE]...
29211 -h, --help print this help, then exit
29212 -V, --version print version number, then exit
29213 -d, --debug don't remove temporary files
29214 --recheck update $as_me by reconfiguring in the same conditions
29215 --file=FILE[:TEMPLATE]
29216 instantiate the configuration file FILE
29217 --header=FILE[:TEMPLATE]
29218 instantiate the configuration header FILE
29220 Configuration files:
29223 Configuration headers:
29226 Configuration commands:
29229 Report bugs to <dickey@invisible-island.net>."
29232 cat >>"$CONFIG_STATUS" <<EOF
29235 configured by $0, generated by GNU Autoconf 2.52.20210509,
29236 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29238 Copyright 2003-2020,2021 Thomas E. Dickey
29239 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29240 Free Software Foundation, Inc.
29241 This config.status script is free software; the Free Software Foundation
29242 gives unlimited permission to copy, distribute and modify it."
29247 cat >>"$CONFIG_STATUS" <<\EOF
29248 # If no file are specified by the user, then we need to provide default
29249 # value. By we need to know if files were specified by the user.
29255 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29256 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29258 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29262 *) # This is not an option, so the user has probably given explicit
29264 ac_need_defaults=false;;
29268 # Handling of the options.
29270 cat >>"$CONFIG_STATUS" <<EOF
29271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29272 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29273 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29275 cat >>"$CONFIG_STATUS" <<\EOF
29276 --version | --vers* | -V )
29277 echo "$ac_cs_version"; exit 0 ;;
29279 # Conflict between --help and --header
29280 { { echo "$as_me:29280: error: ambiguous option: $1
29281 Try \`$0 --help' for more information." >&5
29282 echo "$as_me: error: ambiguous option: $1
29283 Try \`$0 --help' for more information." >&2;}
29284 { (exit 1); exit 1; }; };;
29285 --help | --hel | -h )
29286 echo "$ac_cs_usage"; exit 0 ;;
29287 --debug | --d* | -d )
29289 --file | --fil | --fi | --f )
29291 CONFIG_FILES="$CONFIG_FILES $1"
29292 ac_need_defaults=false;;
29293 --header | --heade | --head | --hea )
29295 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29296 ac_need_defaults=false;;
29298 # This is an error.
29299 -*) { { echo "$as_me:29299: error: unrecognized option: $1
29300 Try \`$0 --help' for more information." >&5
29301 echo "$as_me: error: unrecognized option: $1
29302 Try \`$0 --help' for more information." >&2;}
29303 { (exit 1); exit 1; }; } ;;
29305 *) ac_config_targets="$ac_config_targets $1" ;;
29314 ## ----------------------- ##
29315 ## Running config.status. ##
29316 ## ----------------------- ##
29318 This file was extended by $as_me 2.52.20210509, executed with
29319 CONFIG_FILES = $CONFIG_FILES
29320 CONFIG_HEADERS = $CONFIG_HEADERS
29321 CONFIG_LINKS = $CONFIG_LINKS
29322 CONFIG_COMMANDS = $CONFIG_COMMANDS
29323 > "$ac_cs_invocation"
29324 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29329 cat >>"$CONFIG_STATUS" <<EOF
29331 # INIT-COMMANDS section.
29334 ### Special initialization commands, used to pass information from the
29335 ### configuration-run into config.status
29337 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29339 CXX_NAME="$CXX_NAME"
29340 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29341 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29343 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29344 FORM_NAME="$FORM_NAME"
29345 LDCONFIG="$LDCONFIG"
29346 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29347 LIB_NAME="$LIB_NAME"
29348 LIB_PREFIX="$LIB_PREFIX"
29349 LIB_SUBSETS="$LIB_SUBSETS"
29350 LIB_SUFFIX="$LIB_SUFFIX"
29351 LIB_TRACING="$LIB_TRACING"
29353 MAKE_TERMINFO="$MAKE_TERMINFO"
29354 MENU_NAME="$MENU_NAME"
29355 NCURSES_MAJOR="$NCURSES_MAJOR"
29356 NCURSES_MINOR="$NCURSES_MINOR"
29357 NCURSES_OSPEED="$NCURSES_OSPEED"
29358 NCURSES_PATCH="$NCURSES_PATCH"
29359 PANEL_NAME="$PANEL_NAME"
29360 SRC_SUBDIRS="$SRC_SUBDIRS"
29361 TERMINFO="$TERMINFO"
29362 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29363 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29364 TICS_NAME="$TICS_NAME"
29365 TICS_SUFFIX="$TICS_SUFFIX"
29366 TIC_PATH="$TIC_PATH"
29367 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29368 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29369 TINFO_NAME="$TINFO_NAME"
29370 TINFO_SUFFIX="$TINFO_SUFFIX"
29371 UNALTERED_SYMS="$UNALTERED_SYMS"
29372 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29373 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29374 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29375 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29376 WILDCARD_SYMS="$WILDCARD_SYMS"
29377 WITH_CURSES_H="$with_curses_h"
29378 WITH_ECHO="${enable_echo:=yes}"
29379 WITH_OVERWRITE="$with_overwrite"
29380 cf_LIST_MODELS="$cf_list_models"
29381 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29382 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29383 cf_cv_abi_version="$cf_cv_abi_version"
29384 cf_cv_do_relink="$cf_cv_do_relink"
29385 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29386 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29387 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29388 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29389 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29390 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29391 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29392 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29393 cf_cv_rel_version="$cf_cv_rel_version"
29394 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29395 cf_cv_shared_soname='$cf_cv_shared_soname'
29396 cf_cv_shlib_version="$cf_cv_shlib_version"
29397 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29398 cf_cv_system_name="$cf_cv_system_name"
29399 cf_cv_term_driver="$with_term_driver"
29400 cf_with_ada="$cf_with_ada"
29401 cf_with_cxx_binding="$cf_with_cxx_binding"
29402 cf_with_db_install="$cf_with_db_install"
29403 cf_with_manpages="$cf_with_manpages"
29404 cf_with_tests="$cf_with_tests"
29407 with_shared_cxx="$with_shared_cxx"
29411 cat >>"$CONFIG_STATUS" <<\EOF
29412 for ac_config_target in $ac_config_targets
29414 case "$ac_config_target" in
29415 # Handling of arguments.
29416 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29417 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29418 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29419 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29420 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29421 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29422 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29423 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29424 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29425 *) { { echo "$as_me:29425: error: invalid argument: $ac_config_target" >&5
29426 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29427 { (exit 1); exit 1; }; };;
29431 # If the user did not use the arguments to specify the items to instantiate,
29432 # then the envvar interface is used. Set only those that are not.
29433 # We use the long form for the default assignment because of an extremely
29434 # bizarre bug on SunOS 4.1.3.
29435 if "$ac_need_defaults"; then
29436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29441 # Create a temporary directory, and hook for its removal unless debugging.
29444 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29445 trap '{ (exit 1); exit 1; }' 1 2 13 15
29448 # Create a (secure) tmp directory for tmp files.
29451 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29452 test -n "$tmp" && test -d "$tmp"
29455 tmp=$TMPDIR/cs$$-$RANDOM
29456 (umask 077 && mkdir $tmp)
29459 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29460 { (exit 1); exit 1; }
29465 cat >>"$CONFIG_STATUS" <<EOF
29468 # CONFIG_FILES section.
29471 # No need to generate the scripts if there are no CONFIG_FILES.
29472 # This happens for instance when ./config.status config.h
29473 if test -n "\$CONFIG_FILES"; then
29474 # Protect against being on the right side of a sed subst in config.status.
29475 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29476 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29477 s,@SHELL@,$SHELL,;t t
29478 s,@exec_prefix@,$exec_prefix,;t t
29479 s,@prefix@,$prefix,;t t
29480 s,@program_transform_name@,$program_transform_name,;t t
29481 s,@bindir@,$bindir,;t t
29482 s,@sbindir@,$sbindir,;t t
29483 s,@libexecdir@,$libexecdir,;t t
29484 s,@datarootdir@,$datarootdir,;t t
29485 s,@datadir@,$datadir,;t t
29486 s,@sysconfdir@,$sysconfdir,;t t
29487 s,@sharedstatedir@,$sharedstatedir,;t t
29488 s,@localstatedir@,$localstatedir,;t t
29489 s,@runstatedir@,$runstatedir,;t t
29490 s,@libdir@,$libdir,;t t
29491 s,@includedir@,$includedir,;t t
29492 s,@oldincludedir@,$oldincludedir,;t t
29493 s,@infodir@,$infodir,;t t
29494 s,@mandir@,$mandir,;t t
29495 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29496 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29497 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29498 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29499 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29500 s,@build_alias@,$build_alias,;t t
29501 s,@host_alias@,$host_alias,;t t
29502 s,@target_alias@,$target_alias,;t t
29503 s,@ECHO_C@,$ECHO_C,;t t
29504 s,@ECHO_N@,$ECHO_N,;t t
29505 s,@ECHO_T@,$ECHO_T,;t t
29506 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29507 s,@DEFS@,$DEFS,;t t
29508 s,@LIBS@,$LIBS,;t t
29509 s,@top_builddir@,$top_builddir,;t t
29510 s,@GREP@,$GREP,;t t
29511 s,@EGREP@,$EGREP,;t t
29512 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29513 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29514 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29515 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29516 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29517 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29518 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29519 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29520 s,@VERSION@,$VERSION,;t t
29521 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29522 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29523 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29524 s,@PACKAGE@,$PACKAGE,;t t
29525 s,@build@,$build,;t t
29526 s,@build_cpu@,$build_cpu,;t t
29527 s,@build_vendor@,$build_vendor,;t t
29528 s,@build_os@,$build_os,;t t
29529 s,@host@,$host,;t t
29530 s,@host_cpu@,$host_cpu,;t t
29531 s,@host_vendor@,$host_vendor,;t t
29532 s,@host_os@,$host_os,;t t
29533 s,@target@,$target,;t t
29534 s,@target_cpu@,$target_cpu,;t t
29535 s,@target_vendor@,$target_vendor,;t t
29536 s,@target_os@,$target_os,;t t
29537 s,@FGREP@,$FGREP,;t t
29539 s,@CFLAGS@,$CFLAGS,;t t
29540 s,@LDFLAGS@,$LDFLAGS,;t t
29541 s,@CPPFLAGS@,$CPPFLAGS,;t t
29542 s,@ac_ct_CC@,$ac_ct_CC,;t t
29543 s,@EXEEXT@,$EXEEXT,;t t
29544 s,@OBJEXT@,$OBJEXT,;t t
29545 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29547 s,@LDCONFIG@,$LDCONFIG,;t t
29549 s,@CXXFLAGS@,$CXXFLAGS,;t t
29550 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29552 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29553 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29554 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29555 s,@LINT@,$LINT,;t t
29556 s,@LINT_OPTS@,$LINT_OPTS,;t t
29557 s,@LN_S@,$LN_S,;t t
29558 s,@cf_config_suffix@,$cf_config_suffix,;t t
29559 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29560 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29561 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29562 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29563 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29564 s,@SET_MAKE@,$SET_MAKE,;t t
29565 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29566 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29567 s,@CTAGS@,$CTAGS,;t t
29568 s,@ETAGS@,$ETAGS,;t t
29569 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29570 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29571 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29572 s,@RANLIB@,$RANLIB,;t t
29573 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29575 s,@ac_ct_LD@,$ac_ct_LD,;t t
29577 s,@ac_ct_AR@,$ac_ct_AR,;t t
29579 s,@ac_ct_NM@,$ac_ct_NM,;t t
29580 s,@ARFLAGS@,$ARFLAGS,;t t
29581 s,@DESTDIR@,$DESTDIR,;t t
29582 s,@BUILD_CC@,$BUILD_CC,;t t
29583 s,@BUILD_CPP@,$BUILD_CPP,;t t
29584 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29585 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29586 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29587 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29588 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29589 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29590 s,@cf_list_models@,$cf_list_models,;t t
29591 s,@ABI_VERSION@,$ABI_VERSION,;t t
29592 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29593 s,@LIBTOOL@,$LIBTOOL,;t t
29594 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29595 s,@LT_UNDEF@,$LT_UNDEF,;t t
29596 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29597 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29598 s,@LIB_CREATE@,$LIB_CREATE,;t t
29599 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29600 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29601 s,@LIB_PREP@,$LIB_PREP,;t t
29602 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29603 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29604 s,@LIB_LINK@,$LIB_LINK,;t t
29605 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29606 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29607 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29608 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29609 s,@TICS_NAME@,$TICS_NAME,;t t
29610 s,@TINFO_NAME@,$TINFO_NAME,;t t
29611 s,@LIB_NAME@,$LIB_NAME,;t t
29612 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29613 s,@CC_G_OPT@,$CC_G_OPT,;t t
29614 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29615 s,@LD_MODEL@,$LD_MODEL,;t t
29616 s,@shlibdir@,$shlibdir,;t t
29617 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29618 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29619 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29620 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29621 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29622 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29623 s,@LINK_PROGS@,$LINK_PROGS,;t t
29624 s,@LINK_TESTS@,$LINK_TESTS,;t t
29625 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29626 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29627 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29628 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29629 s,@RPATH_LIST@,$RPATH_LIST,;t t
29630 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29631 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29632 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29633 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29634 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29635 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29636 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29637 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29638 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29640 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29641 s,@INFOCMP@,$INFOCMP,;t t
29642 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29643 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29644 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29645 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29646 s,@XTERM_KBS@,$XTERM_KBS,;t t
29647 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29648 s,@TERMINFO@,$TERMINFO,;t t
29649 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29650 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29651 s,@TERMPATH@,$TERMPATH,;t t
29652 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29653 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29654 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29655 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29656 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29657 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29658 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29659 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29660 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29661 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29662 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29663 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29664 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29665 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29666 s,@RGB_PATH@,$RGB_PATH,;t t
29667 s,@no_x11_rgb@,$no_x11_rgb,;t t
29668 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29669 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29670 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29671 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29672 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29673 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29674 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29675 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29676 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29677 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29678 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29679 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29680 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29681 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29682 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29683 s,@PTHREAD@,$PTHREAD,;t t
29684 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29685 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29686 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29687 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29688 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29689 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29690 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29691 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
29692 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
29693 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
29694 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
29695 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
29696 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
29697 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
29698 s,@ECHO_LT@,$ECHO_LT,;t t
29699 s,@ECHO_LD@,$ECHO_LD,;t t
29700 s,@RULE_CC@,$RULE_CC,;t t
29701 s,@SHOW_CC@,$SHOW_CC,;t t
29702 s,@ECHO_CC@,$ECHO_CC,;t t
29703 s,@ECHO_LINK@,$ECHO_LINK,;t t
29704 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29705 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29706 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29707 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29708 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
29709 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
29710 s,@ADAFLAGS@,$ADAFLAGS,;t t
29711 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29712 s,@ADA_TRACE@,$ADA_TRACE,;t t
29713 s,@MATH_LIB@,$MATH_LIB,;t t
29714 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29715 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29716 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29717 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29718 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29719 s,@TEST_LIBS@,$TEST_LIBS,;t t
29720 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29721 s,@CXXCPP@,$CXXCPP,;t t
29722 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29723 s,@CXX_AR@,$CXX_AR,;t t
29724 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29725 s,@CXXLIBS@,$CXXLIBS,;t t
29726 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29727 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29728 s,@M4_exists@,$M4_exists,;t t
29729 s,@cf_ada_make@,$cf_ada_make,;t t
29730 s,@cf_ada_config@,$cf_ada_config,;t t
29731 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29732 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
29733 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
29734 s,@cf_compile_generics@,$cf_compile_generics,;t t
29735 s,@cf_generic_objects@,$cf_generic_objects,;t t
29736 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
29737 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
29738 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
29739 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
29740 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
29741 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
29742 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
29743 s,@cf_ada_package@,$cf_ada_package,;t t
29744 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
29745 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
29746 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
29747 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
29748 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
29749 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
29750 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
29751 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
29752 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
29753 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
29754 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
29755 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
29756 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
29757 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
29758 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
29759 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
29760 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
29761 s,@TICS_LIBS@,$TICS_LIBS,;t t
29762 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
29763 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
29764 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
29765 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
29766 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
29767 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
29768 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
29769 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
29770 s,@includesubdir@,$includesubdir,;t t
29771 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
29772 s,@TICS_LIST@,$TICS_LIST,;t t
29773 s,@TINFO_LIST@,$TINFO_LIST,;t t
29774 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
29775 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
29776 s,@FORM_NAME@,$FORM_NAME,;t t
29777 s,@MENU_NAME@,$MENU_NAME,;t t
29778 s,@PANEL_NAME@,$PANEL_NAME,;t t
29779 s,@CXX_NAME@,$CXX_NAME,;t t
29780 s,@TEST_ARGS@,$TEST_ARGS,;t t
29781 s,@TEST_DEPS@,$TEST_DEPS,;t t
29782 s,@TEST_ARG2@,$TEST_ARG2,;t t
29783 s,@TEST_DEP2@,$TEST_DEP2,;t t
29784 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
29785 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
29786 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
29787 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
29788 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
29789 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29790 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
29791 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
29792 s,@cross_compiling@,$cross_compiling,;t t
29793 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
29794 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
29795 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
29796 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
29797 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
29798 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
29799 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
29800 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
29801 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
29802 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
29803 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
29804 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
29809 cat >>"$CONFIG_STATUS" <<\EOF
29810 # Split the substitutions into bite-sized pieces for seds with
29811 # small command number limits, like on Digital OSF/1 and HP-UX.
29812 ac_max_sed_lines=48
29813 ac_sed_frag=1 # Number of current file.
29814 ac_beg=1 # First line for current file.
29815 ac_end=$ac_max_sed_lines # Line after last line for current file.
29818 while "$ac_more_lines"; do
29819 if test "$ac_beg" -gt 1; then
29820 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29822 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29824 if test ! -s $tmp/subs.frag; then
29825 ac_more_lines=false
29827 # The purpose of the label and of the branching condition is to
29828 # speed up the sed processing (if there are no `@' at all, there
29829 # is no need to browse any of the substitutions).
29830 # These are the two extra sed commands mentioned above.
29832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29833 # It is possible to make a multiline substitution using escaped newlines.
29834 # Ensure that we do not split the substitution between script fragments.
29836 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
29837 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
29838 if test -s $tmp/subs.next; then
29839 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
29840 if test ! -s $tmp/subs.edit; then
29841 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
29842 if test ! -s $tmp/subs.edit; then
29843 if test "$ac_beg" -gt 1; then
29844 ac_end=`expr "$ac_end" - 1`
29851 if test -z "$ac_sed_cmds"; then
29852 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29854 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29856 ac_sed_frag=`expr "$ac_sed_frag" + 1`
29858 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
29861 if test -z "$ac_sed_cmds"; then
29864 fi # test -n "$CONFIG_FILES"
29867 cat >>"$CONFIG_STATUS" <<\EOF
29868 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29871 - | *:- | *:-:* ) # input from stdin
29873 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29875 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29877 * ) ac_file_in=$ac_file.in ;;
29880 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29881 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29882 X"$ac_file" : 'X\(//\)[^/]' \| \
29883 X"$ac_file" : 'X\(//\)$' \| \
29884 X"$ac_file" : 'X\(/\)' \| \
29885 . : '\(.\)' 2>/dev/null ||
29887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29889 /^X\(\/\/\)$/{ s//\1/; q; }
29890 /^X\(\/\).*/{ s//\1/; q; }
29892 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29893 { case "$ac_dir" in
29894 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29898 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29899 case $as_mkdir_dir in
29900 # Skip DOS drivespec
29901 ?:) as_incr_dir=$as_mkdir_dir ;;
29903 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29904 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29909 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
29910 # A "../" for each directory in $ac_dir_suffix.
29911 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
29913 ac_dir_suffix= ac_dots=
29918 if test -z "$ac_dots"; then
29921 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
29923 [\\/]* | ?:[\\/]* )
29924 ac_srcdir="$srcdir$ac_dir_suffix";
29925 ac_top_srcdir="$srcdir" ;;
29926 *) # Relative path.
29927 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
29928 ac_top_srcdir="$ac_dots$srcdir" ;;
29932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29933 *) ac_INSTALL=$ac_dots$INSTALL ;;
29936 if test x"$ac_file" != x-; then
29937 { echo "$as_me:29937: creating $ac_file" >&5
29938 echo "$as_me: creating $ac_file" >&6;}
29941 # Let's still pretend it is `configure' which instantiates (i.e., don't
29942 # use $as_me), people would be surprised to read:
29943 # /* config.h. Generated automatically by config.status. */
29944 configure_input="Generated automatically from `echo $ac_file_in |
29945 sed 's,.*/,,'` by configure."
29947 # First look for the input files in the build tree, otherwise in the
29949 ac_file_inputs=`IFS=:
29950 for f in $ac_file_in; do
29952 -) echo $tmp/stdin ;;
29954 # Absolute (can't be DOS-style, as IFS=:)
29955 test -f "$f" || { { echo "$as_me:29955: error: cannot find input file: $f" >&5
29956 echo "$as_me: error: cannot find input file: $f" >&2;}
29957 { (exit 1); exit 1; }; }
29960 if test -f "$f"; then
29963 elif test -f "$srcdir/$f"; then
29968 { { echo "$as_me:29968: error: cannot find input file: $f" >&5
29969 echo "$as_me: error: cannot find input file: $f" >&2;}
29970 { (exit 1); exit 1; }; }
29973 done` || { (exit 1); exit 1; }
29975 cat >>"$CONFIG_STATUS" <<\EOF
29976 ac_warn_datarootdir=no
29977 if test x"$ac_file" != x-; then
29978 for ac_item in $ac_file_inputs
29980 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
29981 if test -n "$ac_seen"; then
29982 ac_used=`grep '@datarootdir@' "$ac_item"`
29983 if test -z "$ac_used"; then
29984 { echo "$as_me:29984: WARNING: datarootdir was used implicitly but not set:
29986 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
29988 ac_warn_datarootdir=yes
29991 ac_seen=`grep '${datarootdir}' "$ac_item"`
29992 if test -n "$ac_seen"; then
29993 { echo "$as_me:29993: WARNING: datarootdir was used explicitly but not set:
29995 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
29997 ac_warn_datarootdir=yes
30002 if test "x$ac_warn_datarootdir" = xyes; then
30003 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30007 cat >>"$CONFIG_STATUS" <<EOF
30011 cat >>"$CONFIG_STATUS" <<\EOF
30013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30014 s,@configure_input@,$configure_input,;t t
30015 s,@srcdir@,$ac_srcdir,;t t
30016 s,@top_srcdir@,$ac_top_srcdir,;t t
30017 s,@INSTALL@,$ac_INSTALL,;t t
30018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30020 if test x"$ac_file" != x-; then
30021 cp "$tmp/out" "$ac_file"
30023 for ac_name in prefix exec_prefix datarootdir
30025 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
30026 if test -n "$ac_seen"; then
30027 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30028 if test -z "$ac_init"; then
30029 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
30030 { echo "$as_me:30030: WARNING: Variable $ac_name is used but was not set:
30032 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30037 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
30038 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
30039 if test -s $tmp/out; then
30040 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
30041 { echo "$as_me:30041: WARNING: Some variables may not be substituted:
30043 echo "$as_me: WARNING: Some variables may not be substituted:
30053 cat >>"$CONFIG_STATUS" <<\EOF
30056 # CONFIG_HEADER section.
30059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30062 # ac_d sets the value in "#define NAME VALUE" lines.
30063 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30064 ac_dB='[ ].*$,\1#\2'
30067 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30068 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30069 ac_iB='\([ ]\),\1#\2define\3'
30072 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30073 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30074 ac_uB='$,\1#\2define\3'
30078 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30081 - | *:- | *:-:* ) # input from stdin
30083 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30085 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30087 * ) ac_file_in=$ac_file.in ;;
30090 test x"$ac_file" != x- && { echo "$as_me:30090: creating $ac_file" >&5
30091 echo "$as_me: creating $ac_file" >&6;}
30093 # First look for the input files in the build tree, otherwise in the
30095 ac_file_inputs=`IFS=:
30096 for f in $ac_file_in; do
30098 -) echo $tmp/stdin ;;
30100 # Absolute (can't be DOS-style, as IFS=:)
30101 test -f "$f" || { { echo "$as_me:30101: error: cannot find input file: $f" >&5
30102 echo "$as_me: error: cannot find input file: $f" >&2;}
30103 { (exit 1); exit 1; }; }
30106 if test -f "$f"; then
30109 elif test -f "$srcdir/$f"; then
30114 { { echo "$as_me:30114: error: cannot find input file: $f" >&5
30115 echo "$as_me: error: cannot find input file: $f" >&2;}
30116 { (exit 1); exit 1; }; }
30119 done` || { (exit 1); exit 1; }
30120 # Remove the trailing spaces.
30121 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30125 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30126 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30127 # be either 'cat' or 'sort'.
30128 cat confdefs.h | uniq >conftest.vals
30130 # Break up conftest.vals because some shells have a limit on
30131 # the size of here documents, and old seds have small limits too.
30133 rm -f conftest.tail
30134 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30135 while grep . conftest.vals >/dev/null
30137 # Write chunks of a limited-size here document to conftest.frag.
30138 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30139 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30140 echo 'CEOF' >> "$CONFIG_STATUS"
30141 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30142 rm -f conftest.vals
30143 mv conftest.tail conftest.vals
30145 rm -f conftest.vals
30147 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30149 echo ' cat >> conftest.edit <<CEOF
30150 /@DEFS@/r conftest.frag
30153 sed -f conftest.edit $tmp/in > $tmp/out
30155 mv $tmp/out $tmp/in
30156 rm -f conftest.edit conftest.frag
30157 ' >> "$CONFIG_STATUS"
30159 cat >>"$CONFIG_STATUS" <<\EOF
30160 # Let's still pretend it is `configure' which instantiates (i.e., don't
30161 # use $as_me), people would be surprised to read:
30162 # /* config.h. Generated automatically by config.status. */
30163 if test x"$ac_file" = x-; then
30164 echo "/* Generated automatically by configure. */" >$tmp/config.h
30166 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
30168 cat $tmp/in >>$tmp/config.h
30170 if test x"$ac_file" != x-; then
30171 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30172 { echo "$as_me:30172: $ac_file is unchanged" >&5
30173 echo "$as_me: $ac_file is unchanged" >&6;}
30175 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30176 X"$ac_file" : 'X\(//\)[^/]' \| \
30177 X"$ac_file" : 'X\(//\)$' \| \
30178 X"$ac_file" : 'X\(/\)' \| \
30179 . : '\(.\)' 2>/dev/null ||
30181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30183 /^X\(\/\/\)$/{ s//\1/; q; }
30184 /^X\(\/\).*/{ s//\1/; q; }
30186 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30187 { case "$ac_dir" in
30188 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30192 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30193 case $as_mkdir_dir in
30194 # Skip DOS drivespec
30195 ?:) as_incr_dir=$as_mkdir_dir ;;
30197 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30198 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30205 mv "$tmp/config.h" "$ac_file"
30209 rm -f $tmp/config.h
30213 cat >>"$CONFIG_STATUS" <<\EOF
30215 # CONFIG_COMMANDS section.
30217 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30218 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30219 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30223 if test "x$cf_with_tests" != xno ; then
30227 if test ! -d "$srcdir/$cf_dir" ; then
30229 elif test -f "$srcdir/$cf_dir/programs" ; then
30230 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30236 cf_prefix=$LIB_PREFIX
30238 case "$cf_cv_shlib_version" in
30239 (cygdll|msysdll|mingw|msvcdll)
30240 TINFO_NAME=$TINFO_ARG_SUFFIX
30245 if test -n "$TINFO_SUFFIX" ; then
30246 case "$TINFO_SUFFIX" in
30248 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30249 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30252 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30253 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30256 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30257 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30262 for cf_dir in $SRC_SUBDIRS
30264 if test ! -d "$srcdir/$cf_dir" ; then
30266 elif test -f "$srcdir/$cf_dir/modules" ; then
30271 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
30273 cf_awk_program="$cf_awk_program\
30274 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
30275 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
30279 if test "x$WILDCARD_SYMS" = xno
30281 cf_awk_program="$cf_awk_program\
30282 /[ ]_\\*;/ { skip=1; next; }\
30286 if test "x$cf_awk_program" != "x"
30288 cat >>$cf_dir/Makefile <<CF_EOF
30290 # Generated by CF_LIB_RULES
30291 resulting.map: $UNALTERED_SYMS
30292 $AWK 'BEGIN { skip = 1; last=""; } \
30294 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30295 skip = 0; last = \$\$0; } \
30296 END { print last; }' < "$UNALTERED_SYMS" >\$@
30299 rm -f resulting.map
30303 for cf_item in $cf_LIST_MODELS
30309 cf_depsuf=$cf_suffix
30312 case "$cf_cv_system_name" in
30320 cf_depsuf=$cf_suffix
30323 case "$cf_cv_system_name" in
30331 cf_depsuf=$cf_suffix
30334 case "$cf_cv_system_name" in
30337 cf_depsuf=$cf_suffix
30341 cf_depsuf='.dll.lib'
30343 (cygwin*|msys*|mingw*)
30349 cf_depsuf=$cf_suffix
30355 cf_depsuf=$cf_suffix
30359 cf_depsuf=$cf_suffix
30365 cf_depsuf=$cf_suffix
30378 cf_depsuf=$cf_suffix
30381 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30383 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30384 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30387 if test "$cf_dir" = "c++"
30390 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30392 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30396 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30398 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30401 test -z "$cf_libname" && cf_libname="$cf_dir"
30402 if test "$cf_item" = shared ; then
30403 if test -n "${LIB_SUFFIX}"
30405 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30407 cf_shared_suffix="$cf_suffix"
30409 if test "$cf_cv_do_symlinks" = yes ; then
30412 case "$cf_cv_shlib_version" in
30414 cf_version_name=REL_VERSION
30417 cf_version_name=ABI_VERSION
30421 if test -n "$cf_version_name"
30423 case "$cf_cv_system_name" in
30426 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30429 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30433 if test -n "${USE_LIB_SUFFIX}"
30435 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30437 cf_shared_suffix="$cf_suffix"
30440 # cygwin needs import library, and has unique naming convention
30441 # use autodetected ${cf_prefix} for import lib and static lib, but
30442 # use 'cyg' prefix for shared lib.
30443 case "$cf_cv_shlib_version" in
30445 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30446 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30449 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30450 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30453 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30454 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30457 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30458 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30464 if test -n "$cf_add_lib"
30466 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30470 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30471 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30474 if test "$cf_dir" = ncurses ; then
30475 cf_subsets="$LIB_SUBSETS"
30476 cf_r_parts="$cf_subsets"
30477 cf_liblist="$Libs_To_Make"
30479 while test -n "$cf_r_parts"
30481 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30482 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30483 if test "$cf_l_parts" != "$cf_r_parts" ; then
30485 case "$cf_l_parts" in
30487 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30490 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30496 if test -n "$cf_add_lib"; then
30497 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30504 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30507 if test "$cf_dir" = c++; then
30508 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30510 for cf_item in $Libs_To_Make
30516 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30519 for cf_test in $cf_list
30521 if test "$cf_test" = "$cf_item"
30523 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30528 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30530 Libs_To_Make="$cf_list"
30534 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30535 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30536 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30537 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30539 $AWK -f "$srcdir/mk-0th.awk" \
30540 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30541 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30543 for cf_subset in $cf_subsets
30546 for cf_item in $cf_LIST_MODELS
30549 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30551 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30554 if test "$CXX_MODEL" = SHARED; then
30555 case "$cf_cv_shlib_version" in
30556 (cygdll|msysdll|mingw|msvcdll)
30557 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30559 echo "${as_me:-configure}:30559: testing overriding CXX_MODEL to SHARED ..." 1>&5
30561 with_shared_cxx=yes
30564 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30572 cf_depsuf=$cf_suffix
30575 case "$cf_cv_system_name" in
30583 cf_depsuf=$cf_suffix
30586 case "$cf_cv_system_name" in
30594 cf_depsuf=$cf_suffix
30597 case "$cf_cv_system_name" in
30600 cf_depsuf=$cf_suffix
30604 cf_depsuf='.dll.lib'
30606 (cygwin*|msys*|mingw*)
30612 cf_depsuf=$cf_suffix
30618 cf_depsuf=$cf_suffix
30622 cf_depsuf=$cf_suffix
30628 cf_depsuf=$cf_suffix
30641 cf_depsuf=$cf_suffix
30644 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30646 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30647 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30651 (libtool) cf_subdir='obj_lo' ;;
30652 (normal) cf_subdir='objects' ;;
30653 (debug) cf_subdir='obj_g' ;;
30654 (profile) cf_subdir='obj_p' ;;
30656 case "$cf_cv_system_name" in
30658 cf_subdir='objects' ;;
30660 cf_subdir='obj_s' ;;
30664 # Test for case where we build libtinfo with a different name.
30666 if test "$cf_dir" = ncurses ; then
30667 case "$cf_subset" in
30669 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30672 cf_libname=$TINFO_LIB_SUFFIX
30675 cf_libname=$TICS_LIB_SUFFIX
30678 elif test "$cf_dir" = c++ ; then
30680 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30682 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30684 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30687 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30689 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30691 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30693 if test -n "${USE_ARG_SUFFIX}" ; then
30694 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
30695 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
30698 # These dependencies really are for development, not
30699 # builds, but they are useful in porting, too.
30700 cf_depend="../include/ncurses_cfg.h"
30701 if test "$srcdir" = "."; then
30704 cf_reldir="\${srcdir}"
30707 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30708 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30709 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30710 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30714 old_cf_suffix="$cf_suffix"
30715 if test "$cf_cv_shlib_version_infix" = yes ; then
30716 if test -n "$USE_LIB_SUFFIX" ; then
30717 case "$USE_LIB_SUFFIX" in
30719 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30720 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30721 cf_dir_suffix=tw$EXTRA_SUFFIX
30724 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30725 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30726 cf_dir_suffix=t$EXTRA_SUFFIX
30729 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30730 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30731 cf_dir_suffix=w$EXTRA_SUFFIX
30734 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
30735 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
30736 cf_dir_suffix=$EXTRA_SUFFIX
30742 $AWK -f "$srcdir/mk-1st.awk" \
30743 name=${cf_libname}${cf_dir_suffix} \
30744 traces=$LIB_TRACING \
30746 CXX_MODEL=$CXX_MODEL \
30747 LIB_SUFFIX=$LIB_SUFFIX \
30748 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
30749 make_phony="${cf_cv_make_PHONY:-no}" \
30751 prefix=$cf_prefix \
30752 suffix=$cf_suffix \
30753 subset=$cf_subset \
30754 driver=$cf_cv_term_driver \
30756 TermlibRoot=$TINFO_NAME \
30757 TermlibSuffix=$TINFO_SUFFIX \
30758 ShlibVer=$cf_cv_shlib_version \
30759 ShlibVerInfix=$cf_cv_shlib_version_infix \
30760 ReLink=${cf_cv_do_relink:-no} \
30761 ReRanlib=${cf_cv_do_reranlib:-yes} \
30762 DoLinks=$cf_cv_do_symlinks \
30763 rmSoLocs=$cf_cv_rm_so_locs \
30764 ldconfig="$LDCONFIG" \
30765 overwrite=$WITH_OVERWRITE \
30766 depend="$cf_depend" \
30768 libtool_version="$LIBTOOL_VERSION" \
30769 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30771 cf_suffix="$old_cf_suffix"
30773 for cf_subdir2 in $cf_subdirs lib
30775 test "$cf_subdir" = "$cf_subdir2" && break
30777 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
30778 $AWK -f "$srcdir/mk-2nd.awk" \
30780 traces=$LIB_TRACING \
30783 subset=$cf_subset \
30786 crenames=$cf_cv_prog_CC_c_o \
30787 cxxrenames=$cf_cv_prog_CXX_c_o \
30788 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30789 cf_subdirs="$cf_subdirs $cf_subdir"
30794 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
30798 echo '# generated by CF_LIB_RULES' >> Makefile
30800 if test "x$cf_cv_make_PHONY" = xyes ; then
30801 cat >> Makefile <<-CF_EOF
30805 .PHONY : install.includes
30806 .PHONY : uninstall.includes
30807 .PHONY : install.libs
30808 .PHONY : uninstall.libs
30812 for cf_dir in $SRC_SUBDIRS
30814 if test ! -d "$srcdir/$cf_dir" ; then
30818 if test -f "$cf_dir/Makefile" ; then
30821 echo 'libs \' >> Makefile
30822 echo 'install.libs \' >> Makefile
30823 echo 'uninstall.libs ::' >> Makefile
30824 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
30829 if test -f "$srcdir/$cf_dir/modules" ; then
30831 if test "x$cf_cv_make_PHONY" = xyes ; then
30832 cat >> Makefile <<-CF_EOF
30834 .PHONY : install.$cf_dir
30835 .PHONY : uninstall.$cf_dir
30840 if test -f "$srcdir/$cf_dir/headers" ; then
30841 cat >> Makefile <<CF_EOF
30842 install.includes \\
30843 uninstall.includes \\
30847 cat >> Makefile <<CF_EOF
30854 uninstall.$cf_dir ::
30855 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30857 elif test -f "$srcdir/$cf_dir/headers" ; then
30858 cat >> Makefile <<CF_EOF
30863 install.includes \\
30864 uninstall.includes ::
30865 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30870 if test "x$cf_cv_make_PHONY" = xyes ; then
30871 cat >> Makefile <<-CF_EOF
30873 .PHONY : install.data
30874 .PHONY : uninstall.data
30878 if test "x$cf_with_db_install" = xyes; then
30879 cat >> Makefile <<CF_EOF
30881 install.libs uninstall.libs \\
30882 install.data uninstall.data ::
30883 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30886 cat >> Makefile <<CF_EOF
30888 install.libs uninstall.libs ::
30889 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30893 if test "x$cf_with_manpages" = xyes; then
30895 if test "x$cf_cv_make_PHONY" = xyes ; then
30896 cat >> Makefile <<-CF_EOF
30898 .PHONY : install.man
30899 .PHONY : uninstall.man
30903 cat >> Makefile <<CF_EOF
30907 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
30911 cat >> Makefile <<CF_EOF
30914 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
30915 rm -f headers.sh headers.sed mk_shared_lib.sh
30916 rm -f edit_man.* man_alias.*
30917 rm -rf \${DIRS_TO_MAKE}
30920 # Special case: tack's manpage lives in its own directory.
30921 if test "x$cf_with_manpages" = xyes; then
30922 if test "x$cf_with_tack" = "xyes"; then
30923 cat >> Makefile <<CF_EOF
30927 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ )
30932 rm -f headers.sed headers.sh
30934 echo creating headers.sh
30935 cat >headers.sh <<CF_EOF
30937 # This shell script is generated by the 'configure' script. It is invoked in a
30938 # subdirectory of the build tree. It generates a sed-script in the parent
30939 # directory that is used to adjust includes for header files that reside in a
30940 # subdirectory of /usr/include, etc.
30942 while test \$# != 3
30944 PRG="\$PRG \$1"; shift
30949 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
30950 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
30951 echo installing \$SRC in \$DST
30954 if test "$WITH_CURSES_H" = yes; then
30955 cat >>headers.sh <<CF_EOF
30958 END=\`basename \$DST\`
30959 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30961 NAME=\`basename \$i\`
30962 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30966 echo "" >> \$TMPSED
30972 cat >>headers.sh <<CF_EOF
30975 END=\`basename \$DST\`
30976 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30978 NAME=\`basename \$i\`
30979 if test "\$NAME" = "curses.h"
30981 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30984 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30988 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30993 cat >>headers.sh <<CF_EOF
30995 sed -f \$TMPSED \$SRC > \$TMPSRC
30996 NAME=\`basename \$SRC\`
30998 if test "$WITH_CURSES_H" != yes; then
30999 cat >>headers.sh <<CF_EOF
31000 test "\$NAME" = "curses.h" && NAME=ncurses.h
31003 cat >>headers.sh <<CF_EOF
31004 # Just in case someone gzip'd manpages, remove the conflicting copy.
31005 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31007 eval \$PRG \$TMPSRC \$DST/\$NAME
31008 rm -f \$TMPSRC \$TMPSED
31011 chmod 0755 headers.sh
31013 for cf_dir in $SRC_SUBDIRS
31015 if test ! -d "$srcdir/$cf_dir" ; then
31019 if test -f "$srcdir/$cf_dir/headers" ; then
31020 $AWK -f "$srcdir/mk-hdr.awk" \
31021 subset="$LIB_SUBSETS" \
31022 compat="$WITH_CURSES_H" \
31023 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31026 if test -f "$srcdir/$cf_dir/modules" ; then
31027 if test "$cf_dir" != "c++" ; then
31028 if test "x$cf_cv_make_PHONY" = xyes ; then
31029 cat >> $cf_dir/Makefile <<-CF_EOF
31035 cat >>$cf_dir/Makefile <<"CF_EOF"
31036 depend : ${AUTO_SRC}
31037 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31039 # DO NOT DELETE THIS LINE -- make depend depends on it.
31045 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31046 if test -z "$USE_OLD_MAKERULES" ; then
31047 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31055 cat >>"$CONFIG_STATUS" <<\EOF
31057 { (exit 0); exit 0; }
31059 chmod +x "$CONFIG_STATUS"
31060 ac_clean_files=$ac_clean_files_save
31062 # configure is writing to config.log, and then calls config.status.
31063 # config.status does its own redirection, appending to config.log.
31064 # Unfortunately, on DOS this fails, as config.log is still kept open
31065 # by configure, so config.status won't be able to write to it; its
31066 # output is simply discarded. So we exec the FD to /dev/null,
31067 # effectively closing config.log, so it can be properly (re)opened and
31068 # appended to by config.status. When coming back to configure, we
31069 # need to make the FD available again.
31070 if test "$no_create" != yes; then
31073 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31076 # would make configure fail if this is the last instruction.
31077 "$ac_cs_success" || { (exit 1); exit 1; }
31079 ${MAKE:-make} preinstall