2 # From configure.in Revision: 1.781 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20231210.
6 # Copyright 2003-2022,2023 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 --with-abi-altered=XXX override visible ABI version, for packaging
720 --without-ada suppress check for Ada compiler
721 --without-cxx do not adjust ncurses bool to match C++
722 --without-cxx-binding do not build C++ binding and demo
723 --disable-db-install suppress install of terminal database
724 --without-manpages suppress install of manpages
725 --without-progs suppress build/install with programs (e.g., tic)
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 name ncurses*X-config file with X
729 --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD
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[=XXX] suffix pkg-config files with XXX
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix=DESTDIR use DESTDIR as installation directory prefix
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[={rel|abi}] use release or ABI version in shared library file names
756 --with-libtool-opts[=XXX] give libtool additional options XXX
757 --with-export-syms[=SYM-FILE] limit symbols exported by libtool to those listed in SYM-FILE
758 --with-versioned-syms[=MAP-FILE] version ELF shared library symbols per MAP-FILE
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 X 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 --disable-setuid-environ restrict setuid use of ncurses environment variables
789 --enable-symlinks make tic use symbolic links not hard links
790 --enable-broken_linker compile with broken-linker support code
791 --enable-bsdpad recognize BSD-style prefix padding
792 --disable-widec compile without wide character and UTF-8 support
793 --disable-lp64 allow chtype to be long (ignore _LP64)
794 --disable-largefile omit support for large files
795 --disable-tparm-varargs compile tparm() without varargs interface
796 --disable-tic-depends link tic library without explicit dependency on ncurses library
797 --enable-wattr-macros enable wattr* macros
798 --with-x11-rgb=FILE obtain X11 color definitions from FILE (default: EPREFIX/lib/X11/rgb.txt)
799 --with-bool=TYPE fall back to TYPE for curses 'bool' typedef
800 --with-caps=alt compile with alternate Caps file
801 --with-chtype=TYPE override type of chtype
802 --with-ospeed=TYPE override type of ospeed variable
803 --with-mmask-t=TYPE override type of mmask_t
804 --with-ccharw-max=XXX override size CCHARW_MAX
805 --enable-signed-char use signed chars for Boolean array in term.h
806 --with-tparm-arg=TYPE override parameter type of tparm
807 --with-rcs-ids compile-in RCS identifiers
808 Options to Specify How Manpages are Installed:
809 --with-manpage-format specify manpage-format: gzip/compress/bzip2/xz,
810 BSDI/normal and optionally formatted/catonly,
812 --with-manpage-renames specify manpage-renaming
813 --with-manpage-aliases specify manpage-aliases using .so
814 --with-manpage-symlinks specify manpage-aliases using symlinks
815 --with-manpage-tbl specify manpage processing with tbl
817 --disable-ext-funcs disable function-extensions
818 --enable-sp-funcs enable SCREEN-extensions
819 --enable-term-driver enable terminal-driver
820 --enable-const compile with extra/non-standard const
821 --enable-ext-colors compile for 256-color support
822 --enable-ext-mouse compile for extended mouse-encoding
823 --enable-ext-putwin compile with extended putwin/screendump
824 --enable-no-padding compile with $NCURSES_NO_PADDING code
825 --enable-sigwinch compile with SIGWINCH handler
826 --enable-tcap-names compile with user-definable terminal capabilities
828 --with-pthread use POSIX thread library
829 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
830 --enable-weak-symbols enable weak-symbols for pthreads
831 --enable-reentrant compile with reentrant code
832 --disable-opaque-curses do not make WINDOW, etc., structures opaque
833 --disable-opaque-form do not make form library structures opaque
834 --disable-opaque-menu do not make menu library structures opaque
835 --disable-opaque-panel do not make panel library structures opaque
836 --with-wrap-prefix=XXX override prefix used for public variables
838 --without-develop disable development options
839 --enable-check-size compile-in code to detect screensize of serial terminals
840 --enable-hard-tabs compile with hard-tabs code
841 --enable-xmc-glitch compile with support for xmc (magic-cookie)
843 --disable-assumed-color do not assume anything about default-colors
844 --disable-hashmap compile without hashmap scrolling-optimization
845 --enable-colorfgbg compile-in experimental $COLORFGBG code
846 --enable-fvisibility compile with -fvisibility=hidden
847 --enable-interop compile-in interop bindings
848 --enable-safe-sprintf compile with experimental safe-sprintf code
849 --disable-scroll-hints compile without scroll-hints code
850 --enable-wgetch-events compile with wgetch-events code
851 --enable-exp-win32 compile with experimental-Windows driver
852 Testing/development Options:
853 --disable-echo do not display "compiling" commands
854 --disable-stripping do not strip (debug info) installed executables
855 --with-strip-program=XX specify program to use when stripping in install
856 --enable-warnings test: turn on gcc compiler warnings
857 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
858 --enable-string-hacks work around bogus compiler/loader warnings
859 --enable-assertions test: turn on generation of assertion code
860 --with-dmalloc test: use Gray Watson's dmalloc library
861 --with-dbmalloc test: use Conor Cahill's dbmalloc library
862 --with-valgrind test: use valgrind
863 --disable-leaks test: free permanent memory, analyze leaks
864 --enable-expanded test: generate functions for certain macros
865 --disable-macros test: use functions rather than macros
866 --with-trace test: add trace() function to all models of ncurses
867 --disable-gnat-projects test: disable GNAT projects even if usable
869 --with-ada-compiler[=CMD] use CMD as Ada95 compiler (default: gnatmake)
870 --with-ada-include=DIR find Ada95 includes in DIR (default: PREFIX/share/ada/adainclude)
871 --with-ada-objects=DIR find Ada95 objects in DIR (default: PREFIX/lib/ada/adalib)
872 --with-ada-sharedlib build Ada95 shared library; requires GNAT project support
873 --with-ada-libname[=XXX] use XXX as Ada95 library name
874 Library basenames for pkgsrc:
875 --with-form-libname[=XXX] override ifelse(,,form,) basename of library
876 --with-menu-libname[=XXX] override ifelse(,,menu,) basename of library
877 --with-panel-libname[=XXX] override ifelse(,,panel,) basename of library
878 --with-cxx-libname[=XXX] override ifelse(ncurses++,,cxx,ncurses++) basename of library
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
888 CXX C++ compiler command
889 CXXFLAGS C++ compiler flags
890 CXXCPP C++ preprocessor
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
903 # A "../" for each directory in /$ac_subdir.
904 ac_dots=`echo "$ac_subdir" |
905 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
908 .) # No --srcdir option. We are building in place.
909 ac_sub_srcdir="$srcdir" ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
913 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f "$ac_sub_srcdir/configure.gnu"; then
919 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
920 elif test -f "$ac_sub_srcdir/configure"; then
922 $SHELL "$ac_sub_srcdir/configure" --help=recursive
923 elif test -f "$ac_sub_srcdir/configure.ac" ||
924 test -f "$ac_sub_srcdir/configure.in"; then
926 "$ac_configure" --help
928 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
934 test -n "$ac_init_help" && exit 0
935 if "$ac_init_version"; then
938 Copyright 2003-2022,2023 Thomas E. Dickey
939 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
940 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
951 It was created by $as_me, which was
952 generated by GNU Autoconf 2.52.20231210. Invocation command line was
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
992 # Keep a trace of the command line.
993 # Strip out --no-create and --no-recursion so they do not pile up.
994 # Also quote any args containing shell meta-characters.
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c) ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1004 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1005 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1006 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1008 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1011 # Get rid of the leading space.
1014 # When interrupted or exit'd, cleanup temporary files, and complete
1015 # config.log. We remove comments because anyway the quotes in there
1016 # would cause problems or look ugly.
1017 trap 'exit_status=$?
1018 # Save into config.log some information that might help in debugging.
1020 echo "## ----------------- ##" >&5
1021 echo "## Cache variables. ##" >&5
1022 echo "## ----------------- ##" >&5
1024 # The following way of writing the cache mishandles newlines in values,
1027 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1035 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 sed "/^$/d" confdefs.h >conftest.log
1040 if test -s conftest.log; then
1042 echo "## ------------ ##" >&5
1043 echo "## confdefs.h. ##" >&5
1044 echo "## ------------ ##" >&5
1046 cat conftest.log >&5
1049 test "$ac_signal" != 0 &&
1050 echo "$as_me: caught signal $ac_signal" >&5
1051 echo "$as_me: exit $exit_status" >&5
1052 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1055 for ac_signal in 1 2 13 15; do
1056 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1061 rm -rf conftest* confdefs.h
1062 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1065 # Let the site file select an alternate cache file if it wants to.
1066 # Prefer explicitly selected file to automatically selected ones.
1067 if test -z "$CONFIG_SITE"; then
1068 if test "x$prefix" != xNONE; then
1069 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1071 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1074 for ac_site_file in $CONFIG_SITE; do
1075 if test -r "$ac_site_file"; then
1076 { echo "$as_me:1076: loading site script $ac_site_file" >&5
1077 echo "$as_me: loading site script $ac_site_file" >&6;}
1078 cat "$ac_site_file" >&5
1083 if test -r "$cache_file"; then
1084 # Some versions of bash will fail to source /dev/null (special
1085 # files actually), so we avoid doing that.
1086 if test -f "$cache_file"; then
1087 { echo "$as_me:1087: loading cache $cache_file" >&5
1088 echo "$as_me: loading cache $cache_file" >&6;}
1090 [\\/]* | ?:[\\/]* ) . $cache_file;;
1091 *) . ./$cache_file;;
1095 { echo "$as_me:1095: creating cache $cache_file" >&5
1096 echo "$as_me: creating cache $cache_file" >&6;}
1100 # Check that the precious variables saved in the cache have kept the same
1102 ac_cache_corrupted=false
1103 for ac_var in `(set) 2>&1 |
1104 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1106 eval ac_new_set=\$ac_env_${ac_var}_set
1107 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1108 eval ac_new_val="\$ac_env_${ac_var}_value"
1109 case "$ac_old_set,$ac_new_set" in
1111 { echo "$as_me:1111: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1112 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1113 ac_cache_corrupted=: ;;
1115 { echo "$as_me:1115: error: \`$ac_var' was not set in the previous run" >&5
1116 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1117 ac_cache_corrupted=: ;;
1120 if test "x$ac_old_val" != "x$ac_new_val"; then
1121 { echo "$as_me:1121: error: \`$ac_var' has changed since the previous run:" >&5
1122 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1123 { echo "$as_me:1123: former value: $ac_old_val" >&5
1124 echo "$as_me: former value: $ac_old_val" >&2;}
1125 { echo "$as_me:1125: current value: $ac_new_val" >&5
1126 echo "$as_me: current value: $ac_new_val" >&2;}
1127 ac_cache_corrupted=:
1130 # Pass precious variables to config.status. It doesn't matter if
1131 # we pass some twice (in addition to the command line arguments).
1132 if test "$ac_new_set" = set; then
1133 case "$ac_new_val" in
1134 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1135 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1136 ac_configure_args="$ac_configure_args '$ac_arg'"
1138 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1143 if "$ac_cache_corrupted"; then
1144 { echo "$as_me:1144: error: changes in the environment can compromise the build" >&5
1145 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1146 { { echo "$as_me:1146: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1147 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1148 { (exit 1); exit 1; }; }
1152 ac_cpp='$CPP $CPPFLAGS'
1153 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1154 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1156 ac_main_return="return"
1158 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1160 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1172 echo "#! $SHELL" >conftest.sh
1173 echo "exit 0" >>conftest.sh
1174 chmod +x conftest.sh
1175 if { (echo "$as_me:1175: PATH=\".;.\"; conftest.sh") >&5
1176 (PATH=".;."; conftest.sh) 2>&5
1178 echo "$as_me:1178: \$? = $ac_status" >&5
1179 (exit "$ac_status"); }; then
1180 ac_path_separator=';'
1184 PATH_SEPARATOR="$ac_path_separator"
1187 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1191 for ac_prog in ggrep grep
1193 # Extract the first word of "$ac_prog", so it can be a program name with args.
1194 set dummy $ac_prog; ac_word=$2
1195 echo "$as_me:1195: checking for $ac_word" >&5
1196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1197 if test "${ac_cv_prog_GREP+set}" = set; then
1198 echo $ECHO_N "(cached) $ECHO_C" >&6
1200 if test -n "$GREP"; then
1201 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1203 ac_save_IFS=$IFS; IFS=$ac_path_separator
1205 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 $as_executable_p "$ac_dir/$ac_word" || continue
1209 ac_cv_prog_GREP="$ac_prog"
1210 echo "$as_me:1210: found $ac_dir/$ac_word" >&5
1216 GREP=$ac_cv_prog_GREP
1217 if test -n "$GREP"; then
1218 echo "$as_me:1218: result: $GREP" >&5
1219 echo "${ECHO_T}$GREP" >&6
1221 echo "$as_me:1221: result: no" >&5
1222 echo "${ECHO_T}no" >&6
1225 test -n "$GREP" && break
1227 test -n "$GREP" || GREP=": "
1229 echo "$as_me:1229: checking for egrep" >&5
1230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1231 if test "${ac_cv_path_EGREP+set}" = set; then
1232 echo $ECHO_N "(cached) $ECHO_C" >&6
1234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1235 then ac_cv_path_EGREP="$GREP -E"
1237 for ac_prog in gegrep egrep
1239 # Extract the first word of "$ac_prog", so it can be a program name with args.
1240 set dummy $ac_prog; ac_word=$2
1241 echo "$as_me:1241: checking for $ac_word" >&5
1242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1243 if test "${ac_cv_path_EGREP+set}" = set; then
1244 echo $ECHO_N "(cached) $ECHO_C" >&6
1248 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1251 ac_save_IFS=$IFS; IFS=$ac_path_separator
1253 for ac_dir in $ac_dummy; do
1255 test -z "$ac_dir" && ac_dir=.
1256 if $as_executable_p "$ac_dir/$ac_word"; then
1257 ac_cv_path_EGREP="$ac_dir/$ac_word"
1258 echo "$as_me:1258: found $ac_dir/$ac_word" >&5
1266 EGREP=$ac_cv_path_EGREP
1268 if test -n "$EGREP"; then
1269 echo "$as_me:1269: result: $EGREP" >&5
1270 echo "${ECHO_T}$EGREP" >&6
1272 echo "$as_me:1272: result: no" >&5
1273 echo "${ECHO_T}no" >&6
1276 test -n "$EGREP" && break
1278 test -n "$EGREP" || EGREP=": "
1280 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1280: error: cannot find workable egrep" >&5
1281 echo "$as_me: error: cannot find workable egrep" >&2;}
1282 { (exit 1); exit 1; }; }
1285 echo "$as_me:1285: result: $ac_cv_path_EGREP" >&5
1286 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1287 EGREP="$ac_cv_path_EGREP"
1289 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1290 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1291 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1292 cf_cv_abi_version=${NCURSES_MAJOR}
1293 cf_cv_abi_default=${NCURSES_MAJOR}
1294 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1295 cf_cv_timestamp=`date`
1296 echo "$as_me:1296: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&5
1297 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&6
1299 if test -f "$srcdir/VERSION" ; then
1300 echo "$as_me:1300: checking for package version" >&5
1301 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1303 # if there are not enough fields, cut returns the last one...
1304 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1305 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1306 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1308 # this is how CF_BUNDLED_INTL uses $VERSION:
1309 VERSION="$cf_field1"
1311 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1312 test -z "$VERSION_MAJOR" && { { echo "$as_me:1312: error: missing major-version" >&5
1313 echo "$as_me: error: missing major-version" >&2;}
1314 { (exit 1); exit 1; }; }
1316 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1317 test -z "$VERSION_MINOR" && { { echo "$as_me:1317: error: missing minor-version" >&5
1318 echo "$as_me: error: missing minor-version" >&2;}
1319 { (exit 1); exit 1; }; }
1321 echo "$as_me:1321: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1322 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1324 echo "$as_me:1324: checking for package patch date" >&5
1325 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1326 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1327 case .$VERSION_PATCH in
1329 { { echo "$as_me:1329: error: missing patch-date $VERSION_PATCH" >&5
1330 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1331 { (exit 1); exit 1; }; }
1333 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1336 { { echo "$as_me:1336: error: illegal patch-date $VERSION_PATCH" >&5
1337 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1338 { (exit 1); exit 1; }; }
1341 echo "$as_me:1341: result: $VERSION_PATCH" >&5
1342 echo "${ECHO_T}$VERSION_PATCH" >&6
1344 { { echo "$as_me:1344: error: did not find $srcdir/VERSION" >&5
1345 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1346 { (exit 1); exit 1; }; }
1349 # show the actual data that we have for versions:
1350 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1352 echo "${as_me:-configure}:1352: testing ABI VERSION $VERSION ..." 1>&5
1354 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1356 echo "${as_me:-configure}:1356: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1358 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1360 echo "${as_me:-configure}:1360: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1362 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1364 echo "${as_me:-configure}:1364: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1369 cat >>confdefs.h <<EOF
1370 #define PACKAGE "$PACKAGE"
1373 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1375 cat >>confdefs.h <<EOF
1376 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1379 cat >>confdefs.h <<EOF
1380 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1383 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1385 # Check whether --with-rel-version or --without-rel-version was given.
1386 if test "${with_rel_version+set}" = set; then
1387 withval="$with_rel_version"
1388 { echo "$as_me:1388: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1389 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1390 cf_cv_rel_version=$withval
1393 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1394 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1395 test -n "NCURSES_MINOR" || NCURSES_MINOR=0
1397 if test -n "$NCURSES_MAJOR" ; then
1398 case `echo "$NCURSES_MAJOR" | sed -e 's/^[0-9]*$/0/g'` in
1402 { { echo "$as_me:1402: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1403 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1404 { (exit 1); exit 1; }; }
1408 { { echo "$as_me:1408: error: Release major-version value is empty" >&5
1409 echo "$as_me: error: Release major-version value is empty" >&2;}
1410 { (exit 1); exit 1; }; }
1413 if test -n "$NCURSES_MINOR" ; then
1414 case `echo "$NCURSES_MINOR" | sed -e 's/^[0-9]*$/0/g'` in
1418 { { echo "$as_me:1418: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1419 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1420 { (exit 1); exit 1; }; }
1424 { { echo "$as_me:1424: error: Release minor-version value is empty" >&5
1425 echo "$as_me: error: Release minor-version value is empty" >&2;}
1426 { (exit 1); exit 1; }; }
1429 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1431 # Check whether --with-abi-version or --without-abi-version was given.
1432 if test "${with_abi_version+set}" = set; then
1433 withval="$with_abi_version"
1435 if test "x$cf_cv_abi_version" != "x$withval"
1437 { echo "$as_me:1437: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1438 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1439 case "$cf_cv_rel_version" in
1441 cf_cv_rel_version=$withval.0
1444 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1448 cf_cv_abi_version=$withval
1451 if test -n "$cf_cv_abi_version" ; then
1452 case `echo "$cf_cv_abi_version" | sed -e 's/^[0-9]*$/0/g'` in
1456 { { echo "$as_me:1456: error: ABI version is not a number: $cf_cv_abi_version" >&5
1457 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1458 { (exit 1); exit 1; }; }
1462 { { echo "$as_me:1462: error: ABI version value is empty" >&5
1463 echo "$as_me: error: ABI version value is empty" >&2;}
1464 { (exit 1); exit 1; }; }
1467 cf_cv_abi_default=$cf_cv_abi_version
1469 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1471 case "$cf_cv_rel_version" in
1473 cf_cv_rel_version=$with_abi_version.0
1479 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1480 if test -f "$ac_dir/install-sh"; then
1482 ac_install_sh="$ac_aux_dir/install-sh -c"
1484 elif test -f "$ac_dir/install.sh"; then
1486 ac_install_sh="$ac_aux_dir/install.sh -c"
1488 elif test -f "$ac_dir/shtool"; then
1490 ac_install_sh="$ac_aux_dir/shtool install -c"
1494 if test -z "$ac_aux_dir"; then
1495 { { echo "$as_me:1495: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1496 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1497 { (exit 1); exit 1; }; }
1499 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1503 # Make sure we can run config.sub.
1504 $ac_config_sub sun4 >/dev/null 2>&1 ||
1505 { { echo "$as_me:1505: error: cannot run $ac_config_sub" >&5
1506 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1507 { (exit 1); exit 1; }; }
1509 echo "$as_me:1509: checking build system type" >&5
1510 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1511 if test "${ac_cv_build+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 ac_cv_build_alias=$build_alias
1515 test -z "$ac_cv_build_alias" &&
1516 ac_cv_build_alias=`$ac_config_guess`
1517 test -z "$ac_cv_build_alias" &&
1518 { { echo "$as_me:1518: error: cannot guess build type; you must specify one" >&5
1519 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1520 { (exit 1); exit 1; }; }
1521 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1522 { { echo "$as_me:1522: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1524 { (exit 1); exit 1; }; }
1527 echo "$as_me:1527: result: $ac_cv_build" >&5
1528 echo "${ECHO_T}$ac_cv_build" >&6
1530 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534 echo "$as_me:1534: checking host system type" >&5
1535 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536 if test "${ac_cv_host+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 ac_cv_host_alias=$host_alias
1540 test -z "$ac_cv_host_alias" &&
1541 ac_cv_host_alias=$ac_cv_build_alias
1542 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1543 { { echo "$as_me:1543: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1548 echo "$as_me:1548: result: $ac_cv_host" >&5
1549 echo "${ECHO_T}$ac_cv_host" >&6
1551 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1556 echo "$as_me:1556: checking target system type" >&5
1557 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558 if test "${ac_cv_target+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 ac_cv_target_alias=$target_alias
1562 test "x$ac_cv_target_alias" = "x" &&
1563 ac_cv_target_alias=$ac_cv_host_alias
1564 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1565 { { echo "$as_me:1565: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:1570: result: $ac_cv_target" >&5
1571 echo "${ECHO_T}$ac_cv_target" >&6
1572 target=$ac_cv_target
1573 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577 # The aliases save the names the user supplied, while $host etc.
1578 # will get canonicalized.
1579 test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1582 program_prefix=${target_alias}-
1583 system_name="$host_os"
1585 system_name="`(uname -s -r) 2>/dev/null`"
1586 if test -z "$system_name" ; then
1587 system_name="`(hostname) 2>/dev/null`"
1590 test -n "$system_name" &&
1591 cat >>confdefs.h <<EOF
1592 #define SYSTEM_NAME "$system_name"
1595 if test "${cf_cv_system_name+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 cf_cv_system_name="$system_name"
1601 test -z "$system_name" && system_name="$cf_cv_system_name"
1602 test -n "$cf_cv_system_name" && echo "$as_me:1602: result: Configuring for $cf_cv_system_name" >&5
1603 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1605 if test ".$system_name" != ".$cf_cv_system_name" ; then
1606 echo "$as_me:1606: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1607 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1608 { { echo "$as_me:1608: error: \"Please remove config.cache and try again.\"" >&5
1609 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1610 { (exit 1); exit 1; }; }
1613 # Check whether --with-system-type or --without-system-type was given.
1614 if test "${with_system_type+set}" = set; then
1615 withval="$with_system_type"
1616 { echo "$as_me:1616: WARNING: overriding system type to $withval" >&5
1617 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1618 cf_cv_system_name=$withval
1623 ### Save the given $CFLAGS to allow user-override.
1624 cf_user_CFLAGS="$CFLAGS"
1626 ### Default install-location
1627 echo "$as_me:1627: checking for fgrep" >&5
1628 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1629 if test "${ac_cv_path_FGREP+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1633 then ac_cv_path_FGREP="$GREP -F"
1635 for ac_prog in gfgrep fgrep
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:1639: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_path_FGREP+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1649 ac_save_IFS=$IFS; IFS=$ac_path_separator
1651 for ac_dir in $ac_dummy; do
1653 test -z "$ac_dir" && ac_dir=.
1654 if $as_executable_p "$ac_dir/$ac_word"; then
1655 ac_cv_path_FGREP="$ac_dir/$ac_word"
1656 echo "$as_me:1656: found $ac_dir/$ac_word" >&5
1664 FGREP=$ac_cv_path_FGREP
1666 if test -n "$FGREP"; then
1667 echo "$as_me:1667: result: $FGREP" >&5
1668 echo "${ECHO_T}$FGREP" >&6
1670 echo "$as_me:1670: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$FGREP" && break
1676 test -n "$FGREP" || FGREP=": "
1678 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1678: error: cannot find workable fgrep" >&5
1679 echo "$as_me: error: cannot find workable fgrep" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:1683: result: $ac_cv_path_FGREP" >&5
1684 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1685 FGREP="$ac_cv_path_FGREP"
1687 echo "$as_me:1687: checking for prefix" >&5
1688 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1689 if test "x$prefix" = "xNONE" ; then
1690 case "$cf_cv_system_name" in
1691 # non-vendor systems don't have a conflict
1692 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1695 (*) prefix=$ac_default_prefix
1699 echo "$as_me:1699: result: $prefix" >&5
1700 echo "${ECHO_T}$prefix" >&6
1702 if test "x$prefix" = "xNONE" ; then
1703 echo "$as_me:1703: checking for default include-directory" >&5
1704 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1705 test -n "$verbose" && echo 1>&6
1708 "$includedir/ncurses" \
1710 "$prefix/include/ncurses" \
1711 /usr/local/include \
1712 /usr/local/include/ncurses \
1714 /usr/include/ncurses
1716 cf_dir=`eval echo "$cf_symbol"`
1717 if test -f "$cf_dir/curses.h" ; then
1718 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1719 includedir="$cf_symbol"
1720 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1724 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1726 echo "$as_me:1726: result: $includedir" >&5
1727 echo "${ECHO_T}$includedir" >&6
1730 ### Defaults for ncurses ABI
1735 cf_dft_ext_colors=no
1738 cf_dft_ext_putwin=no
1739 cf_dft_ext_spfuncs=no
1740 cf_dft_filter_syms=no
1743 cf_dft_opaque_curses=no
1744 cf_dft_ordinate_type=short
1745 cf_dft_signed_char=no
1746 cf_dft_tparm_arg=long
1750 # ABI 6 default differences from ABI 5:
1751 case x$cf_cv_abi_default in
1753 cf_dft_chtype=uint32_t
1754 cf_dft_ext_colors=yes
1755 cf_dft_ext_const=yes
1756 cf_dft_ext_mouse=yes
1757 cf_dft_ext_putwin=yes
1758 cf_dft_ext_spfuncs=yes
1759 cf_dft_filter_syms=yes
1761 cf_dft_mmask_t=uint32_t
1762 cf_dft_opaque_curses=yes
1763 cf_dft_tparm_arg=intptr_t
1765 cf_dft_with_lp64=yes
1769 # ABI 7 default differences from ABI 6:
1770 case x$cf_cv_abi_default in
1773 cf_dft_mmask_t=uint64_t
1774 cf_dft_ordinate_type=int
1775 cf_dft_signed_char=yes
1776 # also: remove the wgetch-events feature in ABI 7
1780 ### override ABI version, e.g., packagers
1782 # Check whether --with-abi-altered or --without-abi-altered was given.
1783 if test "${with_abi_altered+set}" = set; then
1784 withval="$with_abi_altered"
1786 if test -n "$withval" ; then
1787 case `echo "$withval" | sed -e 's/^[0-9]*$/0/g'` in
1791 { { echo "$as_me:1791: error: ABI altered is not a number: $withval" >&5
1792 echo "$as_me: error: ABI altered is not a number: $withval" >&2;}
1793 { (exit 1); exit 1; }; }
1797 { { echo "$as_me:1797: error: ABI altered value is empty" >&5
1798 echo "$as_me: error: ABI altered value is empty" >&2;}
1799 { (exit 1); exit 1; }; }
1802 if test "$cf_cv_abi_version" != "$withval"
1804 { echo "$as_me:1804: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&5
1805 echo "$as_me: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&2;}
1806 cf_cv_abi_version=$withval
1811 ### Checks for programs.
1813 # Check whether --with-ada or --without-ada was given.
1814 if test "${with_ada+set}" = set; then
1816 cf_with_ada=$withval
1822 if test "x$cf_with_ada" = xyes
1825 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
1828 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1830 unset ac_cv_path_cf_TEMP_gnat
1832 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
1833 set dummy $cf_prog_gnat; ac_word=$2
1834 echo "$as_me:1834: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 case $cf_TEMP_gnat in
1841 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
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 if $as_executable_p "$ac_dir/$ac_word"; then
1850 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
1851 echo "$as_me:1851: found $ac_dir/$ac_word" >&5
1856 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
1860 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
1862 if test -n "$cf_TEMP_gnat"; then
1863 echo "$as_me:1863: result: $cf_TEMP_gnat" >&5
1864 echo "${ECHO_T}$cf_TEMP_gnat" >&6
1866 echo "$as_me:1866: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1870 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
1872 if test "x$cf_TEMP_gnat" != xno; then
1873 unset cf_cv_gnat_version
1876 echo "$as_me:1876: checking for $cf_prog_gnat version" >&5
1877 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
1878 if test "${cf_cv_gnat_version+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
1883 grep '[0-9].[0-9][0-9]*' |\
1884 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
1887 echo "$as_me:1887: result: $cf_cv_gnat_version" >&5
1888 echo "${ECHO_T}$cf_cv_gnat_version" >&6
1889 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
1890 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
1893 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
1896 unset cf_cv_gnat_version
1897 unset ac_cv_path_cf_TEMP_gnat
1900 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
1902 cf_cv_prog_gnat_correct=no
1904 cf_ada_make=gnatmake
1905 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
1906 # gprconfig is newer than gnatmake; we can continue...
1909 rm -rf ./conftest* ./*~conftest*
1910 if mkdir conftest.src
1914 for cf_gprconfig in Ada C
1916 echo "$as_me:1916: checking for gprconfig name for $cf_gprconfig" >&5
1917 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
1918 if test "$cf_gprconfig" = C
1920 for cf_gprconfig_param in \
1921 "$cf_gprconfig,,,,GNATGCC" \
1922 "$cf_gprconfig,,,,GCC" \
1925 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
1926 test -n "$cf_gprconfig_value" && break
1929 cf_gprconfig_param=$cf_gprconfig
1930 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
1932 if test -n "$cf_gprconfig_value"
1934 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
1935 echo "$as_me:1935: result: $cf_gprconfig_value" >&5
1936 echo "${ECHO_T}$cf_gprconfig_value" >&6
1938 echo "$as_me:1938: result: missing" >&5
1939 echo "${ECHO_T}missing" >&6
1945 rm -rf ./conftest* ./*~conftest*
1948 if test "x$cf_ada_config" != "x#"
1951 echo "$as_me:1951: checking for gnat version" >&5
1952 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
1953 if test "${cf_cv_gnat_version+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
1958 grep '[0-9].[0-9][0-9]*' |\
1959 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
1962 echo "$as_me:1962: result: $cf_cv_gnat_version" >&5
1963 echo "${ECHO_T}$cf_cv_gnat_version" >&6
1964 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
1966 case "$cf_cv_gnat_version" in
1967 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
1968 cf_cv_prog_gnat_correct=yes
1971 { echo "$as_me:1971: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
1972 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
1973 cf_cv_prog_gnat_correct=no
1977 # Extract the first word of "m4", so it can be a program name with args.
1978 set dummy m4; ac_word=$2
1979 echo "$as_me:1979: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_M4_exists+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$M4_exists"; then
1985 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
1987 ac_save_IFS=$IFS; IFS=$ac_path_separator
1989 for ac_dir in $ac_dummy; do
1991 test -z "$ac_dir" && ac_dir=.
1992 $as_executable_p "$ac_dir/$ac_word" || continue
1993 ac_cv_prog_M4_exists="yes"
1994 echo "$as_me:1994: found $ac_dir/$ac_word" >&5
1998 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
2001 M4_exists=$ac_cv_prog_M4_exists
2002 if test -n "$M4_exists"; then
2003 echo "$as_me:2003: result: $M4_exists" >&5
2004 echo "${ECHO_T}$M4_exists" >&6
2006 echo "$as_me:2006: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2010 if test "$ac_cv_prog_M4_exists" = no; then
2011 cf_cv_prog_gnat_correct=no
2012 { echo "$as_me:2012: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
2013 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
2015 if test "$cf_cv_prog_gnat_correct" = yes; then
2016 echo "$as_me:2016: checking if GNAT works" >&5
2017 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
2019 rm -rf ./conftest* ./*~conftest*
2020 cat >>conftest.ads <<CF_EOF
2023 cat >>conftest.adb <<CF_EOF
2026 procedure conftest is
2028 Text_IO.Put ("Hello World");
2030 GNAT.OS_Lib.OS_Exit (0);
2033 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
2034 if ( ./conftest 1>&5 2>&1 ) ; then
2035 cf_cv_prog_gnat_correct=yes
2037 cf_cv_prog_gnat_correct=no
2040 cf_cv_prog_gnat_correct=no
2042 rm -rf ./conftest* ./*~conftest*
2044 echo "$as_me:2044: result: $cf_cv_prog_gnat_correct" >&5
2045 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
2048 cf_cv_prog_gnat_correct=no
2052 if test "x$cf_cv_prog_gnat_correct" = xyes; then
2053 # gcc's developers chose to deprecate gnatgcc before making gprconfig
2054 # work. They replaced gnatgcc in gcc 13 with a script which spits out
2055 # a warning offering advice which could never work.
2057 # Here is a workaround.
2058 # Extract the first word of "gnatgcc", so it can be a program name with args.
2059 set dummy gnatgcc; ac_word=$2
2060 echo "$as_me:2060: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_path_cf_cv_path_gnatgcc+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 case $cf_cv_path_gnatgcc in
2067 ac_cv_path_cf_cv_path_gnatgcc="$cf_cv_path_gnatgcc" # Let the user override the test with a path.
2070 ac_save_IFS=$IFS; IFS=$ac_path_separator
2072 for ac_dir in $ac_dummy; do
2074 test -z "$ac_dir" && ac_dir=.
2075 if $as_executable_p "$ac_dir/$ac_word"; then
2076 ac_cv_path_cf_cv_path_gnatgcc="$ac_dir/$ac_word"
2077 echo "$as_me:2077: found $ac_dir/$ac_word" >&5
2082 test -z "$ac_cv_path_cf_cv_path_gnatgcc" && ac_cv_path_cf_cv_path_gnatgcc="no"
2086 cf_cv_path_gnatgcc=$ac_cv_path_cf_cv_path_gnatgcc
2088 if test -n "$cf_cv_path_gnatgcc"; then
2089 echo "$as_me:2089: result: $cf_cv_path_gnatgcc" >&5
2090 echo "${ECHO_T}$cf_cv_path_gnatgcc" >&6
2092 echo "$as_me:2092: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2096 if test "$cf_cv_path_gnatgcc" != no
2098 echo "$as_me:2098: checking for improvement" >&5
2099 echo $ECHO_N "checking for improvement... $ECHO_C" >&6
2100 cf_file_gnatgcc=`file -L "$cf_cv_path_gnatgcc" 2>/dev/null`
2101 case "x$cf_file_gnatgcc" in
2103 cf_cv_path_gnatgcc=`sh -x "$cf_cv_path_gnatgcc" --version 2>&1 | grep -w exec | sed -e 's/^[ ]*+[ ]*//' -e 's/exec[ ]//' -e 's/ .*//'`
2106 cf_cv_path_gnatgcc=no
2109 echo "$as_me:2109: result: $cf_cv_path_gnatgcc" >&5
2110 echo "${ECHO_T}$cf_cv_path_gnatgcc" >&6
2111 test "$cf_cv_path_gnatgcc" = no && cf_cv_path_gnatgcc=gnatgcc
2112 cf_prog_cc="$cf_cv_path_gnatgcc $cf_prog_cc"
2116 case "$cf_prog_cc" in
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2126 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128 ac_main_return="return"
2129 if test -n "$ac_tool_prefix"; then
2130 for ac_prog in $cf_prog_cc
2132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2134 echo "$as_me:2134: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 ac_save_IFS=$IFS; IFS=$ac_path_separator
2144 for ac_dir in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir=.
2147 $as_executable_p "$ac_dir/$ac_word" || continue
2148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2149 echo "$as_me:2149: found $ac_dir/$ac_word" >&5
2156 if test -n "$CC"; then
2157 echo "$as_me:2157: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2160 echo "$as_me:2160: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2164 test -n "$CC" && break
2167 if test -z "$CC"; then
2169 for ac_prog in $cf_prog_cc
2171 # Extract the first word of "$ac_prog", so it can be a program name with args.
2172 set dummy $ac_prog; ac_word=$2
2173 echo "$as_me:2173: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 if test -n "$ac_ct_CC"; then
2179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2181 ac_save_IFS=$IFS; IFS=$ac_path_separator
2183 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 $as_executable_p "$ac_dir/$ac_word" || continue
2187 ac_cv_prog_ac_ct_CC="$ac_prog"
2188 echo "$as_me:2188: found $ac_dir/$ac_word" >&5
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196 echo "$as_me:2196: result: $ac_ct_CC" >&5
2197 echo "${ECHO_T}$ac_ct_CC" >&6
2199 echo "$as_me:2199: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2203 test -n "$ac_ct_CC" && break
2209 test -z "$CC" && { { echo "$as_me:2209: error: no acceptable cc found in \$PATH" >&5
2210 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2211 { (exit 1); exit 1; }; }
2213 # Provide some information about the compiler.
2214 echo "$as_me:2214:" \
2215 "checking for C compiler version" >&5
2216 ac_compiler=`set X $ac_compile; echo "$2"`
2217 { (eval echo "$as_me:2217: \"$ac_compiler --version </dev/null >&5\"") >&5
2218 (eval $ac_compiler --version </dev/null >&5) 2>&5
2220 echo "$as_me:2220: \$? = $ac_status" >&5
2221 (exit "$ac_status"); }
2222 { (eval echo "$as_me:2222: \"$ac_compiler -v </dev/null >&5\"") >&5
2223 (eval $ac_compiler -v </dev/null >&5) 2>&5
2225 echo "$as_me:2225: \$? = $ac_status" >&5
2226 (exit "$ac_status"); }
2227 { (eval echo "$as_me:2227: \"$ac_compiler -V </dev/null >&5\"") >&5
2228 (eval $ac_compiler -V </dev/null >&5) 2>&5
2230 echo "$as_me:2230: \$? = $ac_status" >&5
2231 (exit "$ac_status"); }
2233 cat >"conftest.$ac_ext" <<_ACEOF
2234 #line 2234 "configure"
2235 #include "confdefs.h"
2245 ac_clean_files_save=$ac_clean_files
2246 ac_clean_files="$ac_clean_files a.out a.exe"
2247 # Try to create an executable without -o first, disregard a.out.
2248 # It will help us diagnose broken compilers, and finding out an intuition
2250 echo "$as_me:2250: checking for C compiler default output" >&5
2251 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2252 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
2253 if { (eval echo "$as_me:2253: \"$ac_link_default\"") >&5
2254 (eval $ac_link_default) 2>&5
2256 echo "$as_me:2256: \$? = $ac_status" >&5
2257 (exit "$ac_status"); }; then
2258 # Find the output, starting from the most likely. This scheme is
2259 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2261 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2262 ls a.out conftest 2>/dev/null;
2263 ls a.* conftest.* 2>/dev/null`; do
2265 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2266 a.out ) # We found the default executable, but exeext='' is most
2269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2277 echo "$as_me: failed program was:" >&5
2278 cat "conftest.$ac_ext" >&5
2279 { { echo "$as_me:2279: error: C compiler cannot create executables" >&5
2280 echo "$as_me: error: C compiler cannot create executables" >&2;}
2281 { (exit 77); exit 77; }; }
2284 ac_exeext=$ac_cv_exeext
2285 echo "$as_me:2285: result: $ac_file" >&5
2286 echo "${ECHO_T}$ac_file" >&6
2288 # Check the compiler produces executables we can run. If not, either
2289 # the compiler is broken, or we cross compile.
2290 echo "$as_me:2290: checking whether the C compiler works" >&5
2291 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2292 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2293 # If not cross compiling, check that we can run a simple program.
2294 if test "$cross_compiling" != yes; then
2295 if { ac_try='./$ac_file'
2296 { (eval echo "$as_me:2296: \"$ac_try\"") >&5
2299 echo "$as_me:2299: \$? = $ac_status" >&5
2300 (exit "$ac_status"); }; }; then
2303 if test "$cross_compiling" = maybe; then
2306 { { echo "$as_me:2306: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'." >&5
2308 echo "$as_me: error: cannot run C compiled programs.
2309 If you meant to cross compile, use \`--host'." >&2;}
2310 { (exit 1); exit 1; }; }
2314 echo "$as_me:2314: result: yes" >&5
2315 echo "${ECHO_T}yes" >&6
2317 rm -f a.out a.exe "conftest$ac_cv_exeext"
2318 ac_clean_files=$ac_clean_files_save
2319 # Check the compiler produces executables we can run. If not, either
2320 # the compiler is broken, or we cross compile.
2321 echo "$as_me:2321: checking whether we are cross compiling" >&5
2322 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2323 echo "$as_me:2323: result: $cross_compiling" >&5
2324 echo "${ECHO_T}$cross_compiling" >&6
2326 echo "$as_me:2326: checking for executable suffix" >&5
2327 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2328 if { (eval echo "$as_me:2328: \"$ac_link\"") >&5
2329 (eval $ac_link) 2>&5
2331 echo "$as_me:2331: \$? = $ac_status" >&5
2332 (exit "$ac_status"); }; then
2333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2334 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2335 # work properly (i.e., refer to `conftest.exe'), while it won't with
2337 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 { { echo "$as_me:2347: error: cannot compute EXEEXT: cannot compile and link" >&5
2348 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f "conftest$ac_cv_exeext"
2353 echo "$as_me:2353: result: $ac_cv_exeext" >&5
2354 echo "${ECHO_T}$ac_cv_exeext" >&6
2356 rm -f "conftest.$ac_ext"
2357 EXEEXT=$ac_cv_exeext
2359 echo "$as_me:2359: checking for object suffix" >&5
2360 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2361 if test "${ac_cv_objext+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >"conftest.$ac_ext" <<_ACEOF
2365 #line 2365 "configure"
2366 #include "confdefs.h"
2376 rm -f conftest.o conftest.obj
2377 if { (eval echo "$as_me:2377: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2380 echo "$as_me:2380: \$? = $ac_status" >&5
2381 (exit "$ac_status"); }; then
2382 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2390 echo "$as_me: failed program was:" >&5
2391 cat "conftest.$ac_ext" >&5
2392 { { echo "$as_me:2392: error: cannot compute OBJEXT: cannot compile" >&5
2393 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2394 { (exit 1); exit 1; }; }
2397 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2399 echo "$as_me:2399: result: $ac_cv_objext" >&5
2400 echo "${ECHO_T}$ac_cv_objext" >&6
2401 OBJEXT=$ac_cv_objext
2403 echo "$as_me:2403: checking whether we are using the GNU C compiler" >&5
2404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 cat >"conftest.$ac_ext" <<_ACEOF
2409 #line 2409 "configure"
2410 #include "confdefs.h"
2423 rm -f "conftest.$ac_objext"
2424 if { (eval echo "$as_me:2424: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>&5
2427 echo "$as_me:2427: \$? = $ac_status" >&5
2428 (exit "$ac_status"); } &&
2429 { ac_try='test -s "conftest.$ac_objext"'
2430 { (eval echo "$as_me:2430: \"$ac_try\"") >&5
2433 echo "$as_me:2433: \$? = $ac_status" >&5
2434 (exit "$ac_status"); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 cat "conftest.$ac_ext" >&5
2441 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2445 echo "$as_me:2445: result: $ac_cv_c_compiler_gnu" >&5
2446 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2447 GCC=`test $ac_compiler_gnu = yes && echo yes`
2448 ac_test_CFLAGS=${CFLAGS+set}
2449 ac_save_CFLAGS=$CFLAGS
2451 echo "$as_me:2451: checking whether $CC accepts -g" >&5
2452 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2453 if test "${ac_cv_prog_cc_g+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 cat >"conftest.$ac_ext" <<_ACEOF
2457 #line 2457 "configure"
2458 #include "confdefs.h"
2468 rm -f "conftest.$ac_objext"
2469 if { (eval echo "$as_me:2469: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:2472: \$? = $ac_status" >&5
2473 (exit "$ac_status"); } &&
2474 { ac_try='test -s "conftest.$ac_objext"'
2475 { (eval echo "$as_me:2475: \"$ac_try\"") >&5
2478 echo "$as_me:2478: \$? = $ac_status" >&5
2479 (exit "$ac_status"); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 cat "conftest.$ac_ext" >&5
2486 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2488 echo "$as_me:2488: result: $ac_cv_prog_cc_g" >&5
2489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490 if test "$ac_test_CFLAGS" = set; then
2491 CFLAGS=$ac_save_CFLAGS
2492 elif test $ac_cv_prog_cc_g = yes; then
2493 if test "$GCC" = yes; then
2499 if test "$GCC" = yes; then
2505 # Some people use a C++ compiler to compile C. Since we use `exit',
2506 # in C++ we need to declare it. In case someone uses the same compiler
2507 # for both compiling C and C++ we need to have the C++ compiler decide
2508 # the declaration of exit, since it's the most demanding environment.
2509 cat >"conftest.$ac_ext" <<_ACEOF
2514 rm -f "conftest.$ac_objext"
2515 if { (eval echo "$as_me:2515: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>&5
2518 echo "$as_me:2518: \$? = $ac_status" >&5
2519 (exit "$ac_status"); } &&
2520 { ac_try='test -s "conftest.$ac_objext"'
2521 { (eval echo "$as_me:2521: \"$ac_try\"") >&5
2524 echo "$as_me:2524: \$? = $ac_status" >&5
2525 (exit "$ac_status"); }; }; then
2526 for ac_declaration in \
2528 '#include <stdlib.h>' \
2529 'extern "C" void std::exit (int) throw (); using std::exit;' \
2530 'extern "C" void std::exit (int); using std::exit;' \
2531 'extern "C" void exit (int) throw ();' \
2532 'extern "C" void exit (int);' \
2535 cat >"conftest.$ac_ext" <<_ACEOF
2536 #line 2536 "configure"
2537 #include "confdefs.h"
2548 rm -f "conftest.$ac_objext"
2549 if { (eval echo "$as_me:2549: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit "$ac_status"); } &&
2554 { ac_try='test -s "conftest.$ac_objext"'
2555 { (eval echo "$as_me:2555: \"$ac_try\"") >&5
2558 echo "$as_me:2558: \$? = $ac_status" >&5
2559 (exit "$ac_status"); }; }; then
2562 echo "$as_me: failed program was:" >&5
2563 cat "conftest.$ac_ext" >&5
2566 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2567 cat >"conftest.$ac_ext" <<_ACEOF
2568 #line 2568 "configure"
2569 #include "confdefs.h"
2579 rm -f "conftest.$ac_objext"
2580 if { (eval echo "$as_me:2580: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2583 echo "$as_me:2583: \$? = $ac_status" >&5
2584 (exit "$ac_status"); } &&
2585 { ac_try='test -s "conftest.$ac_objext"'
2586 { (eval echo "$as_me:2586: \"$ac_try\"") >&5
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit "$ac_status"); }; }; then
2593 echo "$as_me: failed program was:" >&5
2594 cat "conftest.$ac_ext" >&5
2596 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2599 if test -n "$ac_declaration"; then
2600 echo '#ifdef __cplusplus' >>confdefs.h
2601 echo "$ac_declaration" >>confdefs.h
2602 echo '#endif' >>confdefs.h
2606 echo "$as_me: failed program was:" >&5
2607 cat "conftest.$ac_ext" >&5
2609 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2613 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 ac_main_return="return"
2618 if test "$GCC" = yes ; then
2619 echo "$as_me:2619: checking version of $CC" >&5
2620 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2621 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2622 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2623 echo "$as_me:2623: result: $GCC_VERSION" >&5
2624 echo "${ECHO_T}$GCC_VERSION" >&6
2629 if test "$GCC" = yes ; then
2632 echo "$as_me:2632: checking if this is really Intel C compiler" >&5
2633 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2634 cf_save_CFLAGS="$CFLAGS"
2635 CFLAGS="$CFLAGS -no-gcc"
2636 cat >"conftest.$ac_ext" <<_ACEOF
2637 #line 2637 "configure"
2638 #include "confdefs.h"
2644 #ifdef __INTEL_COMPILER
2646 #error __INTEL_COMPILER is not defined
2653 rm -f "conftest.$ac_objext"
2654 if { (eval echo "$as_me:2654: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit "$ac_status"); } &&
2659 { ac_try='test -s "conftest.$ac_objext"'
2660 { (eval echo "$as_me:2660: \"$ac_try\"") >&5
2663 echo "$as_me:2663: \$? = $ac_status" >&5
2664 (exit "$ac_status"); }; }; then
2666 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2669 echo "$as_me: failed program was:" >&5
2670 cat "conftest.$ac_ext" >&5
2672 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2673 CFLAGS="$cf_save_CFLAGS"
2674 echo "$as_me:2674: result: $INTEL_COMPILER" >&5
2675 echo "${ECHO_T}$INTEL_COMPILER" >&6
2682 if test "$GCC" = yes ; then
2683 echo "$as_me:2683: checking if this is really Clang C compiler" >&5
2684 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2685 cf_save_CFLAGS="$CFLAGS"
2686 cat >"conftest.$ac_ext" <<_ACEOF
2687 #line 2687 "configure"
2688 #include "confdefs.h"
2696 #error __clang__ is not defined
2703 rm -f "conftest.$ac_objext"
2704 if { (eval echo "$as_me:2704: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>&5
2707 echo "$as_me:2707: \$? = $ac_status" >&5
2708 (exit "$ac_status"); } &&
2709 { ac_try='test -s "conftest.$ac_objext"'
2710 { (eval echo "$as_me:2710: \"$ac_try\"") >&5
2713 echo "$as_me:2713: \$? = $ac_status" >&5
2714 (exit "$ac_status"); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 cat "conftest.$ac_ext" >&5
2721 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2722 CFLAGS="$cf_save_CFLAGS"
2723 echo "$as_me:2723: result: $CLANG_COMPILER" >&5
2724 echo "${ECHO_T}$CLANG_COMPILER" >&6
2729 if test "x$CLANG_COMPILER" = "xyes" ; then
2731 (c[1-9][0-9]|*/c[1-9][0-9])
2732 { echo "$as_me:2732: WARNING: replacing broken compiler alias $CC" >&5
2733 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2734 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2739 echo "$as_me:2739: checking version of $CC" >&5
2740 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2741 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.].*//'`"
2742 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2743 echo "$as_me:2743: result: $CLANG_VERSION" >&5
2744 echo "${ECHO_T}$CLANG_VERSION" >&6
2746 for cf_clang_opt in \
2747 -Qunused-arguments \
2748 -Wno-error=implicit-function-declaration
2750 echo "$as_me:2750: checking if option $cf_clang_opt works" >&5
2751 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2752 cf_save_CFLAGS="$CFLAGS"
2753 CFLAGS="$CFLAGS $cf_clang_opt"
2754 cat >"conftest.$ac_ext" <<_ACEOF
2755 #line 2755 "configure"
2756 #include "confdefs.h"
2763 printf("hello!\\n");
2768 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2769 if { (eval echo "$as_me:2769: \"$ac_link\"") >&5
2770 (eval $ac_link) 2>&5
2772 echo "$as_me:2772: \$? = $ac_status" >&5
2773 (exit "$ac_status"); } &&
2774 { ac_try='test -s "conftest$ac_exeext"'
2775 { (eval echo "$as_me:2775: \"$ac_try\"") >&5
2778 echo "$as_me:2778: \$? = $ac_status" >&5
2779 (exit "$ac_status"); }; }; then
2783 echo "$as_me: failed program was:" >&5
2784 cat "conftest.$ac_ext" >&5
2788 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2789 echo "$as_me:2789: result: $cf_clang_optok" >&5
2790 echo "${ECHO_T}$cf_clang_optok" >&6
2791 CFLAGS="$cf_save_CFLAGS"
2792 if test "$cf_clang_optok" = yes; then
2793 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2795 echo "${as_me:-configure}:2795: testing adding option $cf_clang_opt ..." 1>&5
2797 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2798 CFLAGS="${CFLAGS}$cf_clang_opt"
2804 echo "$as_me:2804: checking for $CC option to accept ANSI C" >&5
2805 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 ac_cv_prog_cc_stdc=no
2811 cat >"conftest.$ac_ext" <<_ACEOF
2812 #line 2812 "configure"
2813 #include "confdefs.h"
2816 #include <sys/types.h>
2817 #include <sys/stat.h>
2818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2819 struct buf { int x; };
2820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2821 static char *e (char **p, int i)
2825 static char *f (char * (*g) (char **, int), char **p, ...)
2830 s = g (p, va_arg (v,int));
2834 int test (int i, double x);
2835 struct s1 {int (*f) (int a);};
2836 struct s2 {int (*f) (double a);};
2837 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2843 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2848 # Don't try gcc -ansi; that turns off useful extensions and
2849 # breaks some systems' header files.
2850 # AIX -qlanglvl=ansi
2851 # Ultrix and OSF/1 -std1
2852 # HP-UX 10.20 and later -Ae
2853 # HP-UX older versions -Aa -D_HPUX_SOURCE
2854 # SVR4 -Xc -D__EXTENSIONS__
2855 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2857 CC="$ac_save_CC $ac_arg"
2858 rm -f "conftest.$ac_objext"
2859 if { (eval echo "$as_me:2859: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit "$ac_status"); } &&
2864 { ac_try='test -s "conftest.$ac_objext"'
2865 { (eval echo "$as_me:2865: \"$ac_try\"") >&5
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit "$ac_status"); }; }; then
2870 ac_cv_prog_cc_stdc=$ac_arg
2873 echo "$as_me: failed program was:" >&5
2874 cat "conftest.$ac_ext" >&5
2876 rm -f "conftest.$ac_objext"
2878 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2883 case "x$ac_cv_prog_cc_stdc" in
2885 echo "$as_me:2885: result: none needed" >&5
2886 echo "${ECHO_T}none needed" >&6 ;;
2888 echo "$as_me:2888: result: $ac_cv_prog_cc_stdc" >&5
2889 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2890 CC="$CC $ac_cv_prog_cc_stdc" ;;
2893 # This should have been defined by AC_PROG_CC
2896 echo "$as_me:2896: checking \$CFLAGS variable" >&5
2897 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2900 echo "$as_me:2900: result: broken" >&5
2901 echo "${ECHO_T}broken" >&6
2902 { echo "$as_me:2902: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2903 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2906 for cf_arg in $cf_flags
2912 cf_new_extra_cppflags=
2914 for cf_add_cflags in $cf_arg
2916 case "$cf_fix_cppflags" in
2918 case "$cf_add_cflags" in
2919 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2920 case "$cf_add_cflags" in
2922 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2924 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2925 && test -z "${cf_tst_cflags}" \
2926 && cf_fix_cppflags=yes
2928 if test "$cf_fix_cppflags" = yes ; then
2930 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2931 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2934 elif test "${cf_tst_cflags}" = "\"'" ; then
2936 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2937 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2947 case "$cf_add_cflags" in
2949 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2951 CPPFLAGS=`echo "$CPPFLAGS" | \
2952 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2953 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2958 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2959 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2966 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2967 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2974 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2975 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2977 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2979 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2980 && test -z "${cf_tst_cflags}" \
2981 && cf_fix_cppflags=no
2986 if test -n "$cf_new_cflags" ; then
2988 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2989 CFLAGS="${CFLAGS}$cf_new_cflags"
2993 if test -n "$cf_new_cppflags" ; then
2995 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2996 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3000 if test -n "$cf_new_extra_cppflags" ; then
3002 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3003 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3010 echo "$as_me:3010: result: ok" >&5
3011 echo "${ECHO_T}ok" >&6
3015 echo "$as_me:3015: checking \$CC variable" >&5
3016 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
3019 echo "$as_me:3019: result: broken" >&5
3020 echo "${ECHO_T}broken" >&6
3021 { echo "$as_me:3021: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
3022 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
3024 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
3025 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
3027 for cf_arg in $cf_flags
3035 cf_new_extra_cppflags=
3037 for cf_add_cflags in $cf_arg
3039 case "$cf_fix_cppflags" in
3041 case "$cf_add_cflags" in
3042 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3043 case "$cf_add_cflags" in
3045 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3047 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3048 && test -z "${cf_tst_cflags}" \
3049 && cf_fix_cppflags=yes
3051 if test "$cf_fix_cppflags" = yes ; then
3053 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3054 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3057 elif test "${cf_tst_cflags}" = "\"'" ; then
3059 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3060 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3070 case "$cf_add_cflags" in
3072 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3074 CPPFLAGS=`echo "$CPPFLAGS" | \
3075 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3076 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3081 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3082 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3089 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3090 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3097 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3098 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3100 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3102 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3103 && test -z "${cf_tst_cflags}" \
3104 && cf_fix_cppflags=no
3109 if test -n "$cf_new_cflags" ; then
3111 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3112 CFLAGS="${CFLAGS}$cf_new_cflags"
3116 if test -n "$cf_new_cppflags" ; then
3118 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3119 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3123 if test -n "$cf_new_extra_cppflags" ; then
3125 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3126 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3136 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
3138 echo "${as_me:-configure}:3138: testing resulting CC: '$CC' ..." 1>&5
3140 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
3142 echo "${as_me:-configure}:3142: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
3144 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
3146 echo "${as_me:-configure}:3146: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
3150 echo "$as_me:3150: result: ok" >&5
3151 echo "${ECHO_T}ok" >&6
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3161 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 ac_main_return="return"
3164 echo "$as_me:3164: checking how to run the C preprocessor" >&5
3165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3166 # On Suns, sometimes $CPP names a directory.
3167 if test -n "$CPP" && test -d "$CPP"; then
3170 if test -z "$CPP"; then
3171 if test "${ac_cv_prog_CPP+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 # Double quotes because CPP needs to be expanded
3175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178 for ac_c_preproc_warn_flag in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat >"conftest.$ac_ext" <<_ACEOF
3185 #line 3185 "configure"
3186 #include "confdefs.h"
3190 if { (eval echo "$as_me:3190: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3191 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3193 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:3196: \$? = $ac_status" >&5
3197 (exit "$ac_status"); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3206 if test -z "$ac_cpp_err"; then
3209 echo "$as_me: failed program was:" >&5
3210 cat "conftest.$ac_ext" >&5
3211 # Broken: fails on valid input.
3214 rm -f conftest.err "conftest.$ac_ext"
3216 # OK, works on sane cases. Now check whether non-existent headers
3217 # can be detected and how.
3218 cat >"conftest.$ac_ext" <<_ACEOF
3219 #line 3219 "configure"
3220 #include "confdefs.h"
3221 #include <ac_nonexistent.h>
3223 if { (eval echo "$as_me:3223: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3224 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3226 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 echo "$as_me:3229: \$? = $ac_status" >&5
3230 (exit "$ac_status"); } >/dev/null; then
3231 if test -s conftest.err; then
3232 ac_cpp_err=$ac_c_preproc_warn_flag
3239 if test -z "$ac_cpp_err"; then
3240 # Broken: success on invalid input.
3243 echo "$as_me: failed program was:" >&5
3244 cat "conftest.$ac_ext" >&5
3245 # Passes both tests.
3249 rm -f conftest.err "conftest.$ac_ext"
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err "conftest.$ac_ext"
3254 if $ac_preproc_ok; then
3266 echo "$as_me:3266: result: $CPP" >&5
3267 echo "${ECHO_T}$CPP" >&6
3269 for ac_c_preproc_warn_flag in '' yes
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # On the NeXT, cc -E runs the code through the compiler's parser,
3274 # not just through cpp. "Syntax error" is here to catch this case.
3275 cat >"conftest.$ac_ext" <<_ACEOF
3276 #line 3276 "configure"
3277 #include "confdefs.h"
3281 if { (eval echo "$as_me:3281: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3282 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3284 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:3287: \$? = $ac_status" >&5
3288 (exit "$ac_status"); } >/dev/null; then
3289 if test -s conftest.err; then
3290 ac_cpp_err=$ac_c_preproc_warn_flag
3297 if test -z "$ac_cpp_err"; then
3300 echo "$as_me: failed program was:" >&5
3301 cat "conftest.$ac_ext" >&5
3302 # Broken: fails on valid input.
3305 rm -f conftest.err "conftest.$ac_ext"
3307 # OK, works on sane cases. Now check whether non-existent headers
3308 # can be detected and how.
3309 cat >"conftest.$ac_ext" <<_ACEOF
3310 #line 3310 "configure"
3311 #include "confdefs.h"
3312 #include <ac_nonexistent.h>
3314 if { (eval echo "$as_me:3314: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3315 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3317 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3319 cat conftest.err >&5
3320 echo "$as_me:3320: \$? = $ac_status" >&5
3321 (exit "$ac_status"); } >/dev/null; then
3322 if test -s conftest.err; then
3323 ac_cpp_err=$ac_c_preproc_warn_flag
3330 if test -z "$ac_cpp_err"; then
3331 # Broken: success on invalid input.
3334 echo "$as_me: failed program was:" >&5
3335 cat "conftest.$ac_ext" >&5
3336 # Passes both tests.
3340 rm -f conftest.err "conftest.$ac_ext"
3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344 rm -f conftest.err "conftest.$ac_ext"
3345 if $ac_preproc_ok; then
3348 { { echo "$as_me:3348: error: C preprocessor \"$CPP\" fails sanity check" >&5
3349 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3350 { (exit 1); exit 1; }; }
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3356 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 ac_main_return="return"
3360 if test $ac_cv_c_compiler_gnu = yes; then
3361 echo "$as_me:3361: checking whether $CC needs -traditional" >&5
3362 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3363 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 ac_pattern="Autoconf.*'x'"
3367 cat >"conftest.$ac_ext" <<_ACEOF
3368 #line 3368 "configure"
3369 #include "confdefs.h"
3371 int Autoconf = TIOCGETP;
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3375 ac_cv_prog_gcc_traditional=yes
3377 ac_cv_prog_gcc_traditional=no
3381 if test $ac_cv_prog_gcc_traditional = no; then
3382 cat >"conftest.$ac_ext" <<_ACEOF
3383 #line 3383 "configure"
3384 #include "confdefs.h"
3386 int Autoconf = TCGETA;
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3390 ac_cv_prog_gcc_traditional=yes
3396 echo "$as_me:3396: result: $ac_cv_prog_gcc_traditional" >&5
3397 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3398 if test $ac_cv_prog_gcc_traditional = yes; then
3399 CC="$CC -traditional"
3403 echo "$as_me:3403: checking whether $CC understands -c and -o together" >&5
3404 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3405 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 cat > conftest.$ac_ext <<CF_EOF
3412 ${cf_cv_main_return:-return}(0);
3415 # We do the test twice because some compilers refuse to overwrite an
3416 # existing .o file with -o, though they will create one.
3417 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3418 if { (eval echo "$as_me:3418: \"$ac_try\"") >&5
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit "$ac_status"); } &&
3423 test -f conftest2.$ac_objext && { (eval echo "$as_me:3423: \"$ac_try\"") >&5
3426 echo "$as_me:3426: \$? = $ac_status" >&5
3427 (exit "$ac_status"); };
3429 eval cf_cv_prog_CC_c_o=yes
3431 eval cf_cv_prog_CC_c_o=no
3436 if test "$cf_cv_prog_CC_c_o" = yes; then
3437 echo "$as_me:3437: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6
3440 echo "$as_me:3440: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3444 if test "$cross_compiling" = yes ; then
3447 case "$cf_cv_system_name" in
3448 (dragonfly*|mirbsd*|freebsd*)
3449 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3451 (*) LDPATH=$PATH:/sbin:/usr/sbin
3452 # Extract the first word of "ldconfig", so it can be a program name with args.
3453 set dummy ldconfig; ac_word=$2
3454 echo "$as_me:3454: checking for $ac_word" >&5
3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3456 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3464 ac_save_IFS=$IFS; IFS=$ac_path_separator
3466 for ac_dir in $ac_dummy; do
3468 test -z "$ac_dir" && ac_dir=.
3469 if $as_executable_p "$ac_dir/$ac_word"; then
3470 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3471 echo "$as_me:3471: found $ac_dir/$ac_word" >&5
3479 LDCONFIG=$ac_cv_path_LDCONFIG
3481 if test -n "$LDCONFIG"; then
3482 echo "$as_me:3482: result: $LDCONFIG" >&5
3483 echo "${ECHO_T}$LDCONFIG" >&6
3485 echo "$as_me:3485: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3493 echo "$as_me:3493: checking if you want to ensure bool is consistent with C++" >&5
3494 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3496 # Check whether --with-cxx or --without-cxx was given.
3497 if test "${with_cxx+set}" = set; then
3499 cf_with_cxx=$withval
3503 echo "$as_me:3503: result: $cf_with_cxx" >&5
3504 echo "${ECHO_T}$cf_with_cxx" >&6
3505 if test "X$cf_with_cxx" = Xno ; then
3509 # with autoconf 2.13, we can change the error to a warning:
3511 ac_cpp='$CXXCPP $CPPFLAGS'
3512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3513 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3515 ac_main_return="return"
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 echo "$as_me:3521: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523 if test "${ac_cv_prog_CXX+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 if test -n "$CXX"; then
3527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3529 ac_save_IFS=$IFS; IFS=$ac_path_separator
3531 for ac_dir in $ac_dummy; do
3533 test -z "$ac_dir" && ac_dir=.
3534 $as_executable_p "$ac_dir/$ac_word" || continue
3535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3536 echo "$as_me:3536: found $ac_dir/$ac_word" >&5
3543 if test -n "$CXX"; then
3544 echo "$as_me:3544: result: $CXX" >&5
3545 echo "${ECHO_T}$CXX" >&6
3547 echo "$as_me:3547: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3551 test -n "$CXX" && break
3554 if test -z "$CXX"; then
3556 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3558 # Extract the first word of "$ac_prog", so it can be a program name with args.
3559 set dummy $ac_prog; ac_word=$2
3560 echo "$as_me:3560: checking for $ac_word" >&5
3561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3562 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 if test -n "$ac_ct_CXX"; then
3566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3568 ac_save_IFS=$IFS; IFS=$ac_path_separator
3570 for ac_dir in $ac_dummy; do
3572 test -z "$ac_dir" && ac_dir=.
3573 $as_executable_p "$ac_dir/$ac_word" || continue
3574 ac_cv_prog_ac_ct_CXX="$ac_prog"
3575 echo "$as_me:3575: found $ac_dir/$ac_word" >&5
3581 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3582 if test -n "$ac_ct_CXX"; then
3583 echo "$as_me:3583: result: $ac_ct_CXX" >&5
3584 echo "${ECHO_T}$ac_ct_CXX" >&6
3586 echo "$as_me:3586: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3590 test -n "$ac_ct_CXX" && break
3592 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3597 # Provide some information about the compiler.
3598 echo "$as_me:3598:" \
3599 "checking for C++ compiler version" >&5
3600 ac_compiler=`set X $ac_compile; echo $2`
3601 { (eval echo "$as_me:3601: \"$ac_compiler --version </dev/null >&5\"") >&5
3602 (eval $ac_compiler --version </dev/null >&5) 2>&5
3604 echo "$as_me:3604: \$? = $ac_status" >&5
3605 (exit "$ac_status"); }
3606 { (eval echo "$as_me:3606: \"$ac_compiler -v </dev/null >&5\"") >&5
3607 (eval $ac_compiler -v </dev/null >&5) 2>&5
3609 echo "$as_me:3609: \$? = $ac_status" >&5
3610 (exit "$ac_status"); }
3611 { (eval echo "$as_me:3611: \"$ac_compiler -V </dev/null >&5\"") >&5
3612 (eval $ac_compiler -V </dev/null >&5) 2>&5
3614 echo "$as_me:3614: \$? = $ac_status" >&5
3615 (exit "$ac_status"); }
3617 echo "$as_me:3617: checking whether we are using the GNU C++ compiler" >&5
3618 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3619 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 cat >"conftest.$ac_ext" <<_ACEOF
3623 #line 3623 "configure"
3624 #include "confdefs.h"
3637 rm -f "conftest.$ac_objext"
3638 if { (eval echo "$as_me:3638: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
3641 echo "$as_me:3641: \$? = $ac_status" >&5
3642 (exit "$ac_status"); } &&
3643 { ac_try='test -s "conftest.$ac_objext"'
3644 { (eval echo "$as_me:3644: \"$ac_try\"") >&5
3647 echo "$as_me:3647: \$? = $ac_status" >&5
3648 (exit "$ac_status"); }; }; then
3651 echo "$as_me: failed program was:" >&5
3652 cat "conftest.$ac_ext" >&5
3655 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3656 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3659 echo "$as_me:3659: result: $ac_cv_cxx_compiler_gnu" >&5
3660 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3661 GXX=`test $ac_compiler_gnu = yes && echo yes`
3662 ac_test_CXXFLAGS=${CXXFLAGS+set}
3663 ac_save_CXXFLAGS=$CXXFLAGS
3665 echo "$as_me:3665: checking whether $CXX accepts -g" >&5
3666 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3667 if test "${ac_cv_prog_cxx_g+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 cat >"conftest.$ac_ext" <<_ACEOF
3671 #line 3671 "configure"
3672 #include "confdefs.h"
3682 rm -f "conftest.$ac_objext"
3683 if { (eval echo "$as_me:3683: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>&5
3686 echo "$as_me:3686: \$? = $ac_status" >&5
3687 (exit "$ac_status"); } &&
3688 { ac_try='test -s "conftest.$ac_objext"'
3689 { (eval echo "$as_me:3689: \"$ac_try\"") >&5
3692 echo "$as_me:3692: \$? = $ac_status" >&5
3693 (exit "$ac_status"); }; }; then
3694 ac_cv_prog_cxx_g=yes
3696 echo "$as_me: failed program was:" >&5
3697 cat "conftest.$ac_ext" >&5
3700 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3702 echo "$as_me:3702: result: $ac_cv_prog_cxx_g" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3704 if test "$ac_test_CXXFLAGS" = set; then
3705 CXXFLAGS=$ac_save_CXXFLAGS
3706 elif test $ac_cv_prog_cxx_g = yes; then
3707 if test "$GXX" = yes; then
3713 if test "$GXX" = yes; then
3719 for ac_declaration in \
3721 '#include <stdlib.h>' \
3722 'extern "C" void std::exit (int) throw (); using std::exit;' \
3723 'extern "C" void std::exit (int); using std::exit;' \
3724 'extern "C" void exit (int) throw ();' \
3725 'extern "C" void exit (int);' \
3728 cat >"conftest.$ac_ext" <<_ACEOF
3729 #line 3729 "configure"
3730 #include "confdefs.h"
3741 rm -f "conftest.$ac_objext"
3742 if { (eval echo "$as_me:3742: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>&5
3745 echo "$as_me:3745: \$? = $ac_status" >&5
3746 (exit "$ac_status"); } &&
3747 { ac_try='test -s "conftest.$ac_objext"'
3748 { (eval echo "$as_me:3748: \"$ac_try\"") >&5
3751 echo "$as_me:3751: \$? = $ac_status" >&5
3752 (exit "$ac_status"); }; }; then
3755 echo "$as_me: failed program was:" >&5
3756 cat "conftest.$ac_ext" >&5
3759 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3760 cat >"conftest.$ac_ext" <<_ACEOF
3761 #line 3761 "configure"
3762 #include "confdefs.h"
3772 rm -f "conftest.$ac_objext"
3773 if { (eval echo "$as_me:3773: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>&5
3776 echo "$as_me:3776: \$? = $ac_status" >&5
3777 (exit "$ac_status"); } &&
3778 { ac_try='test -s "conftest.$ac_objext"'
3779 { (eval echo "$as_me:3779: \"$ac_try\"") >&5
3782 echo "$as_me:3782: \$? = $ac_status" >&5
3783 (exit "$ac_status"); }; }; then
3786 echo "$as_me: failed program was:" >&5
3787 cat "conftest.$ac_ext" >&5
3789 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3792 if test -n "$ac_declaration"; then
3793 echo '#ifdef __cplusplus' >>confdefs.h
3794 echo "$ac_declaration" >>confdefs.h
3795 echo '#endif' >>confdefs.h
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3801 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803 ac_main_return="return"
3806 ac_cpp='$CXXCPP $CPPFLAGS'
3807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3808 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3810 ac_main_return="return"
3812 if test "x$cf_with_cxx" != xno
3814 # Several of the C++ configurations do not work, particularly when
3815 # cross-compiling (20140913 -TD)
3816 echo "$as_me:3816: checking if $CXX works" >&5
3817 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3819 save_CPPFLAGS="$CPPFLAGS"
3820 eval cf_includedir=${includedir}
3821 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3823 cat >"conftest.$ac_ext" <<_ACEOF
3824 #line 3824 "configure"
3825 #include "confdefs.h"
3834 printf("Hello world!\n")
3840 rm -f "conftest.$ac_objext"
3841 if { (eval echo "$as_me:3841: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>&5
3844 echo "$as_me:3844: \$? = $ac_status" >&5
3845 (exit "$ac_status"); } &&
3846 { ac_try='test -s "conftest.$ac_objext"'
3847 { (eval echo "$as_me:3847: \"$ac_try\"") >&5
3850 echo "$as_me:3850: \$? = $ac_status" >&5
3851 (exit "$ac_status"); }; }; then
3854 echo "$as_me: failed program was:" >&5
3855 cat "conftest.$ac_ext" >&5
3858 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3859 CPPFLAGS="$save_CPPFLAGS"
3861 echo "$as_me:3861: result: $cf_cxx_works" >&5
3862 echo "${ECHO_T}$cf_cxx_works" >&6
3863 if test "x$cf_cxx_works" = xno
3865 { echo "$as_me:3865: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3866 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3867 cf_with_cxx=no; CXX=""; GXX="";
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3873 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875 ac_main_return="return"
3877 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3878 if test "$CXX" = "g++" ; then
3879 # Extract the first word of "g++", so it can be a program name with args.
3880 set dummy g++; ac_word=$2
3881 echo "$as_me:3881: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_path_CXX+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3891 ac_save_IFS=$IFS; IFS=$ac_path_separator
3893 for ac_dir in $ac_dummy; do
3895 test -z "$ac_dir" && ac_dir=.
3896 if $as_executable_p "$ac_dir/$ac_word"; then
3897 ac_cv_path_CXX="$ac_dir/$ac_word"
3898 echo "$as_me:3898: found $ac_dir/$ac_word" >&5
3908 if test -n "$CXX"; then
3909 echo "$as_me:3909: result: $CXX" >&5
3910 echo "${ECHO_T}$CXX" >&6
3912 echo "$as_me:3912: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3919 { echo "$as_me:3919: WARNING: You don't have any C++ compiler, too bad" >&5
3920 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3921 cf_with_cxx=no; CXX=""; GXX="";
3927 if test "$GXX" = yes; then
3928 echo "$as_me:3928: checking version of ${CXX:-g++}" >&5
3929 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3930 GXX_VERSION="`${CXX:-g++} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3931 if test -z "$GXX_VERSION"
3936 echo "$as_me:3936: result: $GXX_VERSION" >&5
3937 echo "${ECHO_T}$GXX_VERSION" >&6
3940 case "$GXX_VERSION" in
3944 { echo "$as_me:3944: WARNING: templates do not work" >&5
3945 echo "$as_me: WARNING: templates do not work" >&2;}
3949 echo "$as_me:3949: checking if you want to build C++ binding and demo" >&5
3950 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3952 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3953 if test "${with_cxx_binding+set}" = set; then
3954 withval="$with_cxx_binding"
3955 cf_with_cxx_binding=$withval
3957 cf_with_cxx_binding=$cf_with_cxx
3959 echo "$as_me:3959: result: $cf_with_cxx_binding" >&5
3960 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3962 echo "$as_me:3962: checking if you want to build with Ada" >&5
3963 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3964 echo "$as_me:3964: result: $cf_with_ada" >&5
3965 echo "${ECHO_T}$cf_with_ada" >&6
3967 echo "$as_me:3967: checking if you want to install terminal database" >&5
3968 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3970 # Check whether --enable-db-install or --disable-db-install was given.
3971 if test "${enable_db_install+set}" = set; then
3972 enableval="$enable_db_install"
3973 cf_with_db_install=$enableval
3975 cf_with_db_install=yes
3977 echo "$as_me:3977: result: $cf_with_db_install" >&5
3978 echo "${ECHO_T}$cf_with_db_install" >&6
3980 echo "$as_me:3980: checking if you want to install manpages" >&5
3981 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3983 # Check whether --with-manpages or --without-manpages was given.
3984 if test "${with_manpages+set}" = set; then
3985 withval="$with_manpages"
3986 cf_with_manpages=$withval
3988 cf_with_manpages=yes
3990 echo "$as_me:3990: result: $cf_with_manpages" >&5
3991 echo "${ECHO_T}$cf_with_manpages" >&6
3993 echo "$as_me:3993: checking if you want to build programs such as tic" >&5
3994 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3996 # Check whether --with-progs or --without-progs was given.
3997 if test "${with_progs+set}" = set; then
3998 withval="$with_progs"
3999 cf_with_progs=$withval
4003 echo "$as_me:4003: result: $cf_with_progs" >&5
4004 echo "${ECHO_T}$cf_with_progs" >&6
4006 echo "$as_me:4006: checking if you want to build test-programs" >&5
4007 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
4009 # Check whether --with-tests or --without-tests was given.
4010 if test "${with_tests+set}" = set; then
4011 withval="$with_tests"
4012 cf_with_tests=$withval
4016 echo "$as_me:4016: result: $cf_with_tests" >&5
4017 echo "${ECHO_T}$cf_with_tests" >&6
4019 echo "$as_me:4019: checking if you wish to install curses.h" >&5
4020 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
4022 # Check whether --with-curses-h or --without-curses-h was given.
4023 if test "${with_curses_h+set}" = set; then
4024 withval="$with_curses_h"
4025 with_curses_h=$withval
4029 echo "$as_me:4029: result: $with_curses_h" >&5
4030 echo "${ECHO_T}$with_curses_h" >&6
4032 modules_to_build="ncurses"
4033 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
4034 modules_to_build="$modules_to_build panel menu form"
4036 test "$program_prefix" != NONE &&
4037 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4038 # Use a double $ so make ignores it.
4039 test "$program_suffix" != NONE &&
4040 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4041 # Double any \ or $. echo might interpret backslashes.
4042 # By default was `s,x,x', remove it if useless.
4043 cat <<\_ACEOF >conftest.sed
4044 s/[\\$]/&&/g;s/;s,x,x,$//
4046 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4049 for ac_prog in mawk gawk nawk awk
4051 # Extract the first word of "$ac_prog", so it can be a program name with args.
4052 set dummy $ac_prog; ac_word=$2
4053 echo "$as_me:4053: checking for $ac_word" >&5
4054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4055 if test "${ac_cv_prog_AWK+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 if test -n "$AWK"; then
4059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4061 ac_save_IFS=$IFS; IFS=$ac_path_separator
4063 for ac_dir in $ac_dummy; do
4065 test -z "$ac_dir" && ac_dir=.
4066 $as_executable_p "$ac_dir/$ac_word" || continue
4067 ac_cv_prog_AWK="$ac_prog"
4068 echo "$as_me:4068: found $ac_dir/$ac_word" >&5
4075 if test -n "$AWK"; then
4076 echo "$as_me:4076: result: $AWK" >&5
4077 echo "${ECHO_T}$AWK" >&6
4079 echo "$as_me:4079: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4083 test -n "$AWK" && break
4086 test -z "$AWK" && { { echo "$as_me:4086: error: No awk program found" >&5
4087 echo "$as_me: error: No awk program found" >&2;}
4088 { (exit 1); exit 1; }; }
4090 # Find a good install program. We prefer a C program (faster),
4091 # so one script is as good as another. But avoid the broken or
4092 # incompatible versions:
4093 # SysV /etc/install, /usr/sbin/install
4094 # SunOS /usr/etc/install
4095 # IRIX /sbin/install
4097 # AmigaOS /C/install, which installs bootblocks on floppy discs
4098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4101 # ./install, which can be erroneously created by make from ./install.sh.
4102 echo "$as_me:4102: checking for a BSD compatible install" >&5
4103 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4104 if test -z "$INSTALL"; then
4105 if test "${ac_cv_path_install+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 ac_save_IFS=$IFS; IFS=$ac_path_separator
4109 for ac_dir in $PATH; do
4111 # Account for people who put trailing slashes in PATH elements.
4113 / | ./ | .// | /cC/* \
4114 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
4117 # OSF1 and SCO ODT 3.0 have their own names for install.
4118 # Don't use installbsd from OSF since it installs stuff as root
4120 for ac_prog in ginstall scoinst install; do
4121 if $as_executable_p "$ac_dir/$ac_prog"; then
4122 if test $ac_prog = install &&
4123 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4124 # AIX install. It has an incompatible calling convention.
4126 elif test $ac_prog = install &&
4127 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4128 # program-specific install script used by HP pwplus--don't use.
4131 ac_cv_path_install="$ac_dir/$ac_prog -c"
4141 if test "${ac_cv_path_install+set}" = set; then
4142 INSTALL=$ac_cv_path_install
4144 # As a last resort, use the slow shell script. We don't cache a
4145 # path for INSTALL within a source directory, because that will
4146 # break other packages using the cache if that directory is
4147 # removed, or if the path is relative.
4148 INSTALL=$ac_install_sh
4151 echo "$as_me:4151: result: $INSTALL" >&5
4152 echo "${ECHO_T}$INSTALL" >&6
4154 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4155 # It thinks the first close brace ends the variable substitution.
4156 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4158 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4160 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4166 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
4167 test -z "$cf_dir" && cf_dir=.
4168 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
4172 for ac_prog in lint cppcheck splint
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 echo "$as_me:4176: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_prog_LINT+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test -n "$LINT"; then
4182 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4184 ac_save_IFS=$IFS; IFS=$ac_path_separator
4186 for ac_dir in $ac_dummy; do
4188 test -z "$ac_dir" && ac_dir=.
4189 $as_executable_p "$ac_dir/$ac_word" || continue
4190 ac_cv_prog_LINT="$ac_prog"
4191 echo "$as_me:4191: found $ac_dir/$ac_word" >&5
4197 LINT=$ac_cv_prog_LINT
4198 if test -n "$LINT"; then
4199 echo "$as_me:4199: result: $LINT" >&5
4200 echo "${ECHO_T}$LINT" >&6
4202 echo "$as_me:4202: result: no" >&5
4203 echo "${ECHO_T}no" >&6
4206 test -n "$LINT" && break
4210 (xcppcheck|x*/cppcheck)
4211 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
4215 echo "$as_me:4215: checking whether ln -s works" >&5
4216 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4218 if test "$LN_S" = "ln -s"; then
4219 echo "$as_me:4219: result: yes" >&5
4220 echo "${ECHO_T}yes" >&6
4222 echo "$as_me:4222: result: no, using $LN_S" >&5
4223 echo "${ECHO_T}no, using $LN_S" >&6
4226 echo "$as_me:4226: checking if $LN_S -f options work" >&5
4227 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
4229 rm -f conf$$.src conf$$dst
4231 echo first >conf$$.src
4232 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
4237 rm -f conf$$.dst conf$$src
4238 echo "$as_me:4238: result: $cf_prog_ln_sf" >&5
4239 echo "${ECHO_T}$cf_prog_ln_sf" >&6
4241 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
4243 echo "$as_me:4243: checking for long file names" >&5
4244 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
4245 if test "${ac_cv_sys_long_file_names+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 ac_cv_sys_long_file_names=yes
4249 # Test for long file names in all the places we know might matter:
4250 # . the current directory, where building will happen
4251 # $prefix/lib where we will be installing things
4252 # $exec_prefix/lib likewise
4253 # eval it to expand exec_prefix.
4254 # $TMPDIR if set, where it might want to write temporary files
4255 # if $TMPDIR is not set:
4256 # /tmp where it might want to write temporary files
4259 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4262 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4264 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
4265 test -d "$ac_dir" || continue
4266 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
4267 ac_xdir=$ac_dir/cf$$
4268 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
4269 ac_tf1=$ac_xdir/conftest9012345
4270 ac_tf2=$ac_xdir/conftest9012346
4271 (echo 1 >"$ac_tf1") 2>/dev/null
4272 (echo 2 >"$ac_tf2") 2>/dev/null
4273 ac_val=`cat "$ac_tf1" 2>/dev/null`
4274 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
4275 ac_cv_sys_long_file_names=no
4276 rm -rf "$ac_xdir" 2>/dev/null
4279 rm -rf "$ac_xdir" 2>/dev/null
4282 echo "$as_me:4282: result: $ac_cv_sys_long_file_names" >&5
4283 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
4284 if test "$ac_cv_sys_long_file_names" = yes; then
4286 cat >>confdefs.h <<\EOF
4287 #define HAVE_LONG_FILE_NAMES 1
4292 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
4293 # of package conflict.
4296 # Check whether --with-config-suffix or --without-config-suffix was given.
4297 if test "${with_config_suffix+set}" = set; then
4298 withval="$with_config_suffix"
4301 { echo "$as_me:4301: WARNING: expected a value for config-suffix option" >&5
4302 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
4304 (*) cf_config_suffix="$withval"
4309 # If we find pkg-config, check if we should install the ".pc" files.
4311 echo "$as_me:4311: checking if you want to use pkg-config" >&5
4312 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4314 # Check whether --with-pkg-config or --without-pkg-config was given.
4315 if test "${with_pkg_config+set}" = set; then
4316 withval="$with_pkg_config"
4317 cf_pkg_config=$withval
4321 echo "$as_me:4321: result: $cf_pkg_config" >&5
4322 echo "${ECHO_T}$cf_pkg_config" >&6
4324 case "$cf_pkg_config" in
4330 if test -n "$ac_tool_prefix"; then
4331 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4332 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4333 echo "$as_me:4333: checking for $ac_word" >&5
4334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4335 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4343 ac_save_IFS=$IFS; IFS=$ac_path_separator
4345 for ac_dir in $ac_dummy; do
4347 test -z "$ac_dir" && ac_dir=.
4348 if $as_executable_p "$ac_dir/$ac_word"; then
4349 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4350 echo "$as_me:4350: found $ac_dir/$ac_word" >&5
4358 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4360 if test -n "$PKG_CONFIG"; then
4361 echo "$as_me:4361: result: $PKG_CONFIG" >&5
4362 echo "${ECHO_T}$PKG_CONFIG" >&6
4364 echo "$as_me:4364: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4369 if test -z "$ac_cv_path_PKG_CONFIG"; then
4370 ac_pt_PKG_CONFIG=$PKG_CONFIG
4371 # Extract the first word of "pkg-config", so it can be a program name with args.
4372 set dummy pkg-config; ac_word=$2
4373 echo "$as_me:4373: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 case $ac_pt_PKG_CONFIG in
4380 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4383 ac_save_IFS=$IFS; IFS=$ac_path_separator
4385 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if $as_executable_p "$ac_dir/$ac_word"; then
4389 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4390 echo "$as_me:4390: found $ac_dir/$ac_word" >&5
4395 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4399 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4401 if test -n "$ac_pt_PKG_CONFIG"; then
4402 echo "$as_me:4402: result: $ac_pt_PKG_CONFIG" >&5
4403 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4405 echo "$as_me:4405: result: no" >&5
4406 echo "${ECHO_T}no" >&6
4409 PKG_CONFIG=$ac_pt_PKG_CONFIG
4411 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4420 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4421 if test "$PKG_CONFIG" != none ; then
4423 if test "x$prefix" != xNONE; then
4424 cf_path_syntax="$prefix"
4426 cf_path_syntax="$ac_default_prefix"
4429 case ".$PKG_CONFIG" in
4434 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4436 (.\$\{*prefix\}*|.\$\{*dir\}*)
4437 eval PKG_CONFIG="$PKG_CONFIG"
4438 case ".$PKG_CONFIG" in
4440 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4445 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4448 { { echo "$as_me:4448: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4449 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4450 { (exit 1); exit 1; }; }
4454 elif test "x$cf_pkg_config" != xno ; then
4455 { echo "$as_me:4455: WARNING: pkg-config is not installed" >&5
4456 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4459 case "$PKG_CONFIG" in
4461 echo "$as_me:4461: checking for pkg-config library directory" >&5
4462 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4465 echo "$as_me:4465: checking for $PKG_CONFIG library directory" >&5
4466 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4470 # if $PKG_CONFIG_LIBDIR is set, try to use that
4471 if test -n "$PKG_CONFIG_PATH"; then
4472 cf_search_path=`echo "$PKG_CONFIG_PATH" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4473 elif test -n "$PKG_CONFIG_LIBDIR"; then
4474 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4479 # if the option is used, let that override. otherwise default to "libdir"
4481 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4482 if test "${with_pkg_config_libdir+set}" = set; then
4483 withval="$with_pkg_config_libdir"
4484 cf_search_path=$withval
4486 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
4489 case "x$cf_search_path" in
4491 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4492 echo "$as_me:4492: result: $PKG_CONFIG_LIBDIR" >&5
4493 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4502 PKG_CONFIG_LIBDIR="$cf_search_path"
4503 echo "$as_me:4503: result: $PKG_CONFIG_LIBDIR" >&5
4504 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4508 echo "$as_me:4508: result: auto" >&5
4509 echo "${ECHO_T}auto" >&6
4511 # Look for the library directory using the same prefix as the executable
4512 echo "$as_me:4512: checking for search-list" >&5
4513 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4514 if test "x$PKG_CONFIG" != xnone
4516 # works for pkg-config since version 0.24 (2009)
4517 # works for pkgconf since version 0.8.3 (2012)
4518 for cf_pkg_program in \
4519 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4523 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4524 test -n "$cf_search_path" && break
4527 # works for pkg-config since import in 2005 of original 2001 HP code.
4528 test -z "$cf_search_path" && \
4530 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4531 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4532 sub(\"^[^']*'\",\"\"); \
4533 sub(\"'.*\",\"\"); \
4534 printf \" %s\", \\$0; } \
4539 echo "$as_me:4539: result: $cf_search_path" >&5
4540 echo "${ECHO_T}$cf_search_path" >&6
4543 { { echo "$as_me:4543: error: Unexpected option value: $cf_search_path" >&5
4544 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4545 { (exit 1); exit 1; }; }
4549 if test -n "$cf_search_path"
4551 echo "$as_me:4551: checking for first directory" >&5
4552 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4553 cf_pkg_config_path=none
4554 for cf_config in $cf_search_path
4556 if test -d "$cf_config"
4558 cf_pkg_config_path=$cf_config
4562 echo "$as_me:4562: result: $cf_pkg_config_path" >&5
4563 echo "${ECHO_T}$cf_pkg_config_path" >&6
4565 if test "x$cf_pkg_config_path" != xnone ; then
4566 # limit this to the first directory found
4567 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4570 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4572 echo "$as_me:4572: checking for workaround" >&5
4573 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4574 if test "$prefix" = "NONE" ; then
4575 cf_prefix="$ac_default_prefix"
4579 eval cf_libdir=$libdir
4580 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4582 for cf_config in $cf_search_path
4585 $cf_libdir/pkgconfig)
4586 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4590 test -z "$cf_backup" && cf_backup=$cf_config
4594 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4595 echo "$as_me:4595: result: $PKG_CONFIG_LIBDIR" >&5
4596 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4600 if test "x$PKG_CONFIG" != xnone
4602 echo "$as_me:4602: checking if we should install .pc files for $PKG_CONFIG" >&5
4603 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4605 echo "$as_me:4605: checking if we should install .pc files" >&5
4606 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4609 # Check whether --enable-pc-files or --disable-pc-files was given.
4610 if test "${enable_pc_files+set}" = set; then
4611 enableval="$enable_pc_files"
4612 enable_pc_files=$enableval
4616 echo "$as_me:4616: result: $enable_pc_files" >&5
4617 echo "${ECHO_T}$enable_pc_files" >&6
4619 if test "x$enable_pc_files" != xno
4622 case "x$PKG_CONFIG_LIBDIR" in
4624 { echo "$as_me:4624: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4625 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4628 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4630 if test "x$prefix" != xNONE; then
4631 cf_path_syntax="$prefix"
4633 cf_path_syntax="$ac_default_prefix"
4636 case ".$cf_pkg_config_libdir" in
4641 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4643 (.\$\{*prefix\}*|.\$\{*dir\}*)
4644 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4645 case ".$cf_pkg_config_libdir" in
4647 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4652 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4655 { { echo "$as_me:4655: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4656 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4657 { (exit 1); exit 1; }; }
4667 if test -z "$MAKE_PC_FILES"
4669 echo "$as_me:4669: checking for suffix to add to pkg-config files" >&5
4670 echo $ECHO_N "checking for suffix to add to pkg-config files... $ECHO_C" >&6
4672 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4673 if test "${with_pc_suffix+set}" = set; then
4674 withval="$with_pc_suffix"
4679 (*) PC_MODULE_SUFFIX="$withval"
4683 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4684 echo "$as_me:4684: result: $PC_MODULE_SUFFIX" >&5
4685 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4686 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4690 echo "$as_me:4690: checking if we should assume mixed-case filenames" >&5
4691 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4693 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4694 if test "${enable_mixed_case+set}" = set; then
4695 enableval="$enable_mixed_case"
4696 enable_mixedcase=$enableval
4698 enable_mixedcase=auto
4700 echo "$as_me:4700: result: $enable_mixedcase" >&5
4701 echo "${ECHO_T}$enable_mixedcase" >&6
4702 if test "$enable_mixedcase" = "auto" ; then
4704 echo "$as_me:4704: checking if filesystem supports mixed-case filenames" >&5
4705 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4706 if test "${cf_cv_mixedcase+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test "$cross_compiling" = yes ; then
4711 case "$target_alias" in
4712 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4720 rm -f conftest CONFTEST
4722 if test -f CONFTEST ; then
4727 rm -f conftest CONFTEST
4731 echo "$as_me:4731: result: $cf_cv_mixedcase" >&5
4732 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4733 test "$cf_cv_mixedcase" = yes &&
4734 cat >>confdefs.h <<\EOF
4735 #define MIXEDCASE_FILENAMES 1
4739 cf_cv_mixedcase=$enable_mixedcase
4740 if test "x$enable_mixedcase" = "xyes" ; then
4742 cat >>confdefs.h <<\EOF
4743 #define MIXEDCASE_FILENAMES 1
4749 # do this after mixed-case option (tags/TAGS is not as important as tic).
4750 echo "$as_me:4750: checking whether ${MAKE-make} sets \${MAKE}" >&5
4751 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4752 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4753 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 cat >conftest.make <<\EOF
4758 @echo 'ac_maketemp="${MAKE}"'
4760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4761 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4762 if test -n "$ac_maketemp"; then
4763 eval ac_cv_prog_make_${ac_make}_set=yes
4765 eval ac_cv_prog_make_${ac_make}_set=no
4769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4770 echo "$as_me:4770: result: yes" >&5
4771 echo "${ECHO_T}yes" >&6
4774 echo "$as_me:4774: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4776 SET_MAKE="MAKE=${MAKE-make}"
4779 echo "$as_me:4779: checking for \".PHONY\" make-support" >&5
4780 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4781 if test "${cf_cv_make_PHONY+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 mkdir conftest || exit 1
4789 cat >makefile <<'CF_EOF'
4793 @echo "** making $@ $(DATA)"
4795 @echo "** making $@ $(DATA)"
4797 @echo "** making $@ $(DATA)"
4800 @echo "** making $@ $(DATA)"
4803 for cf_data in 1 2 3
4805 ${MAKE:-make} always DATA=$cf_data
4806 ${MAKE:-make} once DATA=$cf_data
4807 ${MAKE:-make} -t always once
4808 if test -f always ; then
4809 echo "no (case 1)" > ../conftest.tmp
4810 elif test ! -f always.out ; then
4811 echo "no (case 2)" > ../conftest.tmp
4812 elif test ! -f once.out ; then
4813 echo "no (case 3)" > ../conftest.tmp
4814 elif ! cmp -s always.out once.out ; then
4815 echo "no (case 4)" > ../conftest.tmp
4816 diff always.out once.out
4818 cf_check="`cat always.out`"
4819 if test "x$cf_check" != "x$cf_data" ; then
4820 echo "no (case 5)" > ../conftest.tmp
4822 echo yes > ../conftest.tmp
4830 cf_cv_make_PHONY="`cat conftest.tmp`"
4834 echo "$as_me:4834: result: $cf_cv_make_PHONY" >&5
4835 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4838 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4839 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4841 for ac_prog in exctags ctags
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 echo "$as_me:4845: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847 if test "${ac_cv_prog_CTAGS+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 if test -n "$CTAGS"; then
4851 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4853 ac_save_IFS=$IFS; IFS=$ac_path_separator
4855 for ac_dir in $ac_dummy; do
4857 test -z "$ac_dir" && ac_dir=.
4858 $as_executable_p "$ac_dir/$ac_word" || continue
4859 ac_cv_prog_CTAGS="$ac_prog"
4860 echo "$as_me:4860: found $ac_dir/$ac_word" >&5
4866 CTAGS=$ac_cv_prog_CTAGS
4867 if test -n "$CTAGS"; then
4868 echo "$as_me:4868: result: $CTAGS" >&5
4869 echo "${ECHO_T}$CTAGS" >&6
4871 echo "$as_me:4871: result: no" >&5
4872 echo "${ECHO_T}no" >&6
4875 test -n "$CTAGS" && break
4878 for ac_prog in exetags etags
4880 # Extract the first word of "$ac_prog", so it can be a program name with args.
4881 set dummy $ac_prog; ac_word=$2
4882 echo "$as_me:4882: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4884 if test "${ac_cv_prog_ETAGS+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 if test -n "$ETAGS"; then
4888 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4890 ac_save_IFS=$IFS; IFS=$ac_path_separator
4892 for ac_dir in $ac_dummy; do
4894 test -z "$ac_dir" && ac_dir=.
4895 $as_executable_p "$ac_dir/$ac_word" || continue
4896 ac_cv_prog_ETAGS="$ac_prog"
4897 echo "$as_me:4897: found $ac_dir/$ac_word" >&5
4903 ETAGS=$ac_cv_prog_ETAGS
4904 if test -n "$ETAGS"; then
4905 echo "$as_me:4905: result: $ETAGS" >&5
4906 echo "${ECHO_T}$ETAGS" >&6
4908 echo "$as_me:4908: result: no" >&5
4909 echo "${ECHO_T}no" >&6
4912 test -n "$ETAGS" && break
4915 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4916 set dummy ${CTAGS:-ctags}; ac_word=$2
4917 echo "$as_me:4917: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4919 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 if test -n "$MAKE_LOWER_TAGS"; then
4923 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4925 ac_save_IFS=$IFS; IFS=$ac_path_separator
4927 for ac_dir in $ac_dummy; do
4929 test -z "$ac_dir" && ac_dir=.
4930 $as_executable_p "$ac_dir/$ac_word" || continue
4931 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4932 echo "$as_me:4932: found $ac_dir/$ac_word" >&5
4936 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4939 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4940 if test -n "$MAKE_LOWER_TAGS"; then
4941 echo "$as_me:4941: result: $MAKE_LOWER_TAGS" >&5
4942 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4944 echo "$as_me:4944: result: no" >&5
4945 echo "${ECHO_T}no" >&6
4948 if test "$cf_cv_mixedcase" = yes ; then
4949 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4950 set dummy ${ETAGS:-etags}; ac_word=$2
4951 echo "$as_me:4951: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4953 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 if test -n "$MAKE_UPPER_TAGS"; then
4957 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4959 ac_save_IFS=$IFS; IFS=$ac_path_separator
4961 for ac_dir in $ac_dummy; do
4963 test -z "$ac_dir" && ac_dir=.
4964 $as_executable_p "$ac_dir/$ac_word" || continue
4965 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4966 echo "$as_me:4966: found $ac_dir/$ac_word" >&5
4970 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4973 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4974 if test -n "$MAKE_UPPER_TAGS"; then
4975 echo "$as_me:4975: result: $MAKE_UPPER_TAGS" >&5
4976 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4978 echo "$as_me:4978: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4986 if test "$MAKE_UPPER_TAGS" = yes ; then
4992 if test "$MAKE_LOWER_TAGS" = yes ; then
4998 echo "$as_me:4998: checking for makeflags variable" >&5
4999 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
5000 if test "${cf_cv_makeflags+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
5007 cat >cf_makeflags.tmp <<CF_EOF
5010 @ echo '.$cf_option'
5012 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
5013 case "$cf_result" in
5015 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
5016 case "$cf_result" in
5017 (.*CC=*) cf_cv_makeflags=
5019 (*) cf_cv_makeflags=$cf_option
5028 echo "${as_me:-configure}:5028: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
5033 rm -f cf_makeflags.tmp
5036 echo "$as_me:5036: result: $cf_cv_makeflags" >&5
5037 echo "${ECHO_T}$cf_cv_makeflags" >&6
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5042 echo "$as_me:5042: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_prog_RANLIB+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 if test -n "$RANLIB"; then
5048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5050 ac_save_IFS=$IFS; IFS=$ac_path_separator
5052 for ac_dir in $ac_dummy; do
5054 test -z "$ac_dir" && ac_dir=.
5055 $as_executable_p "$ac_dir/$ac_word" || continue
5056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5057 echo "$as_me:5057: found $ac_dir/$ac_word" >&5
5063 RANLIB=$ac_cv_prog_RANLIB
5064 if test -n "$RANLIB"; then
5065 echo "$as_me:5065: result: $RANLIB" >&5
5066 echo "${ECHO_T}$RANLIB" >&6
5068 echo "$as_me:5068: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5073 if test -z "$ac_cv_prog_RANLIB"; then
5074 ac_ct_RANLIB=$RANLIB
5075 # Extract the first word of "ranlib", so it can be a program name with args.
5076 set dummy ranlib; ac_word=$2
5077 echo "$as_me:5077: checking for $ac_word" >&5
5078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 if test -n "$ac_ct_RANLIB"; then
5083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5085 ac_save_IFS=$IFS; IFS=$ac_path_separator
5087 for ac_dir in $ac_dummy; do
5089 test -z "$ac_dir" && ac_dir=.
5090 $as_executable_p "$ac_dir/$ac_word" || continue
5091 ac_cv_prog_ac_ct_RANLIB="ranlib"
5092 echo "$as_me:5092: found $ac_dir/$ac_word" >&5
5096 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
5099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5100 if test -n "$ac_ct_RANLIB"; then
5101 echo "$as_me:5101: result: $ac_ct_RANLIB" >&5
5102 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5104 echo "$as_me:5104: result: no" >&5
5105 echo "${ECHO_T}no" >&6
5108 RANLIB=$ac_ct_RANLIB
5110 RANLIB="$ac_cv_prog_RANLIB"
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}ld; ac_word=$2
5116 echo "$as_me:5116: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5118 if test "${ac_cv_prog_LD+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 if test -n "$LD"; then
5122 ac_cv_prog_LD="$LD" # Let the user override the test.
5124 ac_save_IFS=$IFS; IFS=$ac_path_separator
5126 for ac_dir in $ac_dummy; do
5128 test -z "$ac_dir" && ac_dir=.
5129 $as_executable_p "$ac_dir/$ac_word" || continue
5130 ac_cv_prog_LD="${ac_tool_prefix}ld"
5131 echo "$as_me:5131: found $ac_dir/$ac_word" >&5
5138 if test -n "$LD"; then
5139 echo "$as_me:5139: result: $LD" >&5
5140 echo "${ECHO_T}$LD" >&6
5142 echo "$as_me:5142: result: no" >&5
5143 echo "${ECHO_T}no" >&6
5147 if test -z "$ac_cv_prog_LD"; then
5149 # Extract the first word of "ld", so it can be a program name with args.
5150 set dummy ld; ac_word=$2
5151 echo "$as_me:5151: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 if test -n "$ac_ct_LD"; then
5157 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5159 ac_save_IFS=$IFS; IFS=$ac_path_separator
5161 for ac_dir in $ac_dummy; do
5163 test -z "$ac_dir" && ac_dir=.
5164 $as_executable_p "$ac_dir/$ac_word" || continue
5165 ac_cv_prog_ac_ct_LD="ld"
5166 echo "$as_me:5166: found $ac_dir/$ac_word" >&5
5170 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5173 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5174 if test -n "$ac_ct_LD"; then
5175 echo "$as_me:5175: result: $ac_ct_LD" >&5
5176 echo "${ECHO_T}$ac_ct_LD" >&6
5178 echo "$as_me:5178: result: no" >&5
5179 echo "${ECHO_T}no" >&6
5187 if test -n "$ac_tool_prefix"; then
5188 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5189 set dummy ${ac_tool_prefix}ar; ac_word=$2
5190 echo "$as_me:5190: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192 if test "${ac_cv_prog_AR+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 if test -n "$AR"; then
5196 ac_cv_prog_AR="$AR" # Let the user override the test.
5198 ac_save_IFS=$IFS; IFS=$ac_path_separator
5200 for ac_dir in $ac_dummy; do
5202 test -z "$ac_dir" && ac_dir=.
5203 $as_executable_p "$ac_dir/$ac_word" || continue
5204 ac_cv_prog_AR="${ac_tool_prefix}ar"
5205 echo "$as_me:5205: found $ac_dir/$ac_word" >&5
5212 if test -n "$AR"; then
5213 echo "$as_me:5213: result: $AR" >&5
5214 echo "${ECHO_T}$AR" >&6
5216 echo "$as_me:5216: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5221 if test -z "$ac_cv_prog_AR"; then
5223 # Extract the first word of "ar", so it can be a program name with args.
5224 set dummy ar; ac_word=$2
5225 echo "$as_me:5225: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 if test -n "$ac_ct_AR"; then
5231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5233 ac_save_IFS=$IFS; IFS=$ac_path_separator
5235 for ac_dir in $ac_dummy; do
5237 test -z "$ac_dir" && ac_dir=.
5238 $as_executable_p "$ac_dir/$ac_word" || continue
5239 ac_cv_prog_ac_ct_AR="ar"
5240 echo "$as_me:5240: found $ac_dir/$ac_word" >&5
5244 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5247 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5248 if test -n "$ac_ct_AR"; then
5249 echo "$as_me:5249: result: $ac_ct_AR" >&5
5250 echo "${ECHO_T}$ac_ct_AR" >&6
5252 echo "$as_me:5252: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5261 if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5263 set dummy ${ac_tool_prefix}nm; ac_word=$2
5264 echo "$as_me:5264: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266 if test "${ac_cv_prog_NM+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 if test -n "$NM"; then
5270 ac_cv_prog_NM="$NM" # Let the user override the test.
5272 ac_save_IFS=$IFS; IFS=$ac_path_separator
5274 for ac_dir in $ac_dummy; do
5276 test -z "$ac_dir" && ac_dir=.
5277 $as_executable_p "$ac_dir/$ac_word" || continue
5278 ac_cv_prog_NM="${ac_tool_prefix}nm"
5279 echo "$as_me:5279: found $ac_dir/$ac_word" >&5
5286 if test -n "$NM"; then
5287 echo "$as_me:5287: result: $NM" >&5
5288 echo "${ECHO_T}$NM" >&6
5290 echo "$as_me:5290: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5295 if test -z "$ac_cv_prog_NM"; then
5297 # Extract the first word of "nm", so it can be a program name with args.
5298 set dummy nm; ac_word=$2
5299 echo "$as_me:5299: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 if test -n "$ac_ct_NM"; then
5305 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5307 ac_save_IFS=$IFS; IFS=$ac_path_separator
5309 for ac_dir in $ac_dummy; do
5311 test -z "$ac_dir" && ac_dir=.
5312 $as_executable_p "$ac_dir/$ac_word" || continue
5313 ac_cv_prog_ac_ct_NM="nm"
5314 echo "$as_me:5314: found $ac_dir/$ac_word" >&5
5318 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5321 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5322 if test -n "$ac_ct_NM"; then
5323 echo "$as_me:5323: result: $ac_ct_NM" >&5
5324 echo "${ECHO_T}$ac_ct_NM" >&6
5326 echo "$as_me:5326: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5335 if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5337 set dummy ${ac_tool_prefix}ar; ac_word=$2
5338 echo "$as_me:5338: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_prog_AR+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 if test -n "$AR"; then
5344 ac_cv_prog_AR="$AR" # Let the user override the test.
5346 ac_save_IFS=$IFS; IFS=$ac_path_separator
5348 for ac_dir in $ac_dummy; do
5350 test -z "$ac_dir" && ac_dir=.
5351 $as_executable_p "$ac_dir/$ac_word" || continue
5352 ac_cv_prog_AR="${ac_tool_prefix}ar"
5353 echo "$as_me:5353: found $ac_dir/$ac_word" >&5
5360 if test -n "$AR"; then
5361 echo "$as_me:5361: result: $AR" >&5
5362 echo "${ECHO_T}$AR" >&6
5364 echo "$as_me:5364: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5369 if test -z "$ac_cv_prog_AR"; then
5371 # Extract the first word of "ar", so it can be a program name with args.
5372 set dummy ar; ac_word=$2
5373 echo "$as_me:5373: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 if test -n "$ac_ct_AR"; then
5379 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5381 ac_save_IFS=$IFS; IFS=$ac_path_separator
5383 for ac_dir in $ac_dummy; do
5385 test -z "$ac_dir" && ac_dir=.
5386 $as_executable_p "$ac_dir/$ac_word" || continue
5387 ac_cv_prog_ac_ct_AR="ar"
5388 echo "$as_me:5388: found $ac_dir/$ac_word" >&5
5392 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5395 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5396 if test -n "$ac_ct_AR"; then
5397 echo "$as_me:5397: result: $ac_ct_AR" >&5
5398 echo "${ECHO_T}$ac_ct_AR" >&6
5400 echo "$as_me:5400: result: no" >&5
5401 echo "${ECHO_T}no" >&6
5409 echo "$as_me:5409: checking for options to update archives" >&5
5410 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5411 if test "${cf_cv_ar_flags+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 case "$cf_cv_system_name" in
5418 cat >mk_static_lib.sh <<-EOF
5423 exec \$MSVC_BIN -out:"\$out" \$@
5425 chmod +x mk_static_lib.sh
5426 AR=`pwd`/mk_static_lib.sh
5429 cf_cv_ar_flags=unknown
5430 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5433 # check if $ARFLAGS already contains this choice
5434 if test "x$ARFLAGS" != "x" ; then
5435 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5436 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5442 rm -f "conftest.$ac_cv_objext"
5445 cat >"conftest.$ac_ext" <<EOF
5446 #line 5446 "configure"
5447 int testdata[3] = { 123, 456, 789 };
5449 if { (eval echo "$as_me:5449: \"$ac_compile\"") >&5
5450 (eval $ac_compile) 2>&5
5452 echo "$as_me:5452: \$? = $ac_status" >&5
5453 (exit "$ac_status"); } ; then
5454 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5455 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5456 if test -f conftest.a ; then
5457 cf_cv_ar_flags="$cf_ar_flags"
5461 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5463 echo "${as_me:-configure}:5463: testing cannot compile test-program ..." 1>&5
5468 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5473 echo "$as_me:5473: result: $cf_cv_ar_flags" >&5
5474 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5476 if test -n "$ARFLAGS" ; then
5477 if test -n "$cf_cv_ar_flags" ; then
5478 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5481 ARFLAGS=$cf_cv_ar_flags
5484 echo "$as_me:5484: checking for an installation directory prefix" >&5
5485 echo $ECHO_N "checking for an installation directory prefix... $ECHO_C" >&6
5487 # Check whether --with-install-prefix or --without-install-prefix was given.
5488 if test "${with_install_prefix+set}" = set; then
5489 withval="$with_install_prefix"
5493 (*) DESTDIR="$withval"
5497 echo "$as_me:5497: result: ${DESTDIR:-(none)}" >&5
5498 echo "${ECHO_T}${DESTDIR:-(none)}" >&6
5500 ###############################################################################
5502 # If we're cross-compiling, allow the user to override the tools and their
5503 # options. The configure script is oriented toward identifying the host
5504 # compiler, etc., but we need a build compiler to generate parts of the source.
5506 case "$cf_cv_system_name" in
5508 LDFLAGS="$LDFLAGS user32.lib"
5513 if test "$cross_compiling" = yes ; then
5515 # defaults that we might want to override
5516 : ${BUILD_CFLAGS:=''}
5517 : ${BUILD_CPPFLAGS:=''}
5518 : ${BUILD_LDFLAGS:=''}
5520 : ${BUILD_EXEEXT:='$x'}
5521 : ${BUILD_OBJEXT:='o'}
5523 # Check whether --with-build-cc or --without-build-cc was given.
5524 if test "${with_build_cc+set}" = set; then
5525 withval="$with_build_cc"
5528 for ac_prog in gcc clang c99 c89 cc cl
5530 # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 echo "$as_me:5532: checking for $ac_word" >&5
5533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5534 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 if test -n "$BUILD_CC"; then
5538 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5540 ac_save_IFS=$IFS; IFS=$ac_path_separator
5542 for ac_dir in $ac_dummy; do
5544 test -z "$ac_dir" && ac_dir=.
5545 $as_executable_p "$ac_dir/$ac_word" || continue
5546 ac_cv_prog_BUILD_CC="$ac_prog"
5547 echo "$as_me:5547: found $ac_dir/$ac_word" >&5
5553 BUILD_CC=$ac_cv_prog_BUILD_CC
5554 if test -n "$BUILD_CC"; then
5555 echo "$as_me:5555: result: $BUILD_CC" >&5
5556 echo "${ECHO_T}$BUILD_CC" >&6
5558 echo "$as_me:5558: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5562 test -n "$BUILD_CC" && break
5564 test -n "$BUILD_CC" || BUILD_CC="none"
5567 echo "$as_me:5567: checking for native build C compiler" >&5
5568 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5569 echo "$as_me:5569: result: $BUILD_CC" >&5
5570 echo "${ECHO_T}$BUILD_CC" >&6
5572 echo "$as_me:5572: checking for native build C preprocessor" >&5
5573 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5575 # Check whether --with-build-cpp or --without-build-cpp was given.
5576 if test "${with_build_cpp+set}" = set; then
5577 withval="$with_build_cpp"
5578 BUILD_CPP="$withval"
5580 BUILD_CPP='${BUILD_CC} -E'
5582 echo "$as_me:5582: result: $BUILD_CPP" >&5
5583 echo "${ECHO_T}$BUILD_CPP" >&6
5585 echo "$as_me:5585: checking for native build C flags" >&5
5586 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5588 # Check whether --with-build-cflags or --without-build-cflags was given.
5589 if test "${with_build_cflags+set}" = set; then
5590 withval="$with_build_cflags"
5591 BUILD_CFLAGS="$withval"
5593 echo "$as_me:5593: result: $BUILD_CFLAGS" >&5
5594 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5596 echo "$as_me:5596: checking for native build C preprocessor-flags" >&5
5597 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5599 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5600 if test "${with_build_cppflags+set}" = set; then
5601 withval="$with_build_cppflags"
5602 BUILD_CPPFLAGS="$withval"
5604 echo "$as_me:5604: result: $BUILD_CPPFLAGS" >&5
5605 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5607 echo "$as_me:5607: checking for native build linker-flags" >&5
5608 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5610 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5611 if test "${with_build_ldflags+set}" = set; then
5612 withval="$with_build_ldflags"
5613 BUILD_LDFLAGS="$withval"
5615 echo "$as_me:5615: result: $BUILD_LDFLAGS" >&5
5616 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5618 echo "$as_me:5618: checking for native build linker-libraries" >&5
5619 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5621 # Check whether --with-build-libs or --without-build-libs was given.
5622 if test "${with_build_libs+set}" = set; then
5623 withval="$with_build_libs"
5624 BUILD_LIBS="$withval"
5626 echo "$as_me:5626: result: $BUILD_LIBS" >&5
5627 echo "${ECHO_T}$BUILD_LIBS" >&6
5629 # this assumes we're on Unix.
5633 : ${BUILD_CC:='${CC}'}
5635 echo "$as_me:5635: checking if the build-compiler \"$BUILD_CC\" works" >&5
5636 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
5638 cf_save_crossed=$cross_compiling
5639 cf_save_ac_link=$ac_link
5641 cf_build_cppflags=$BUILD_CPPFLAGS
5642 test "$cf_build_cppflags" = "#" && cf_build_cppflags=
5643 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
5645 if test "$cross_compiling" = yes; then
5646 cf_ok_build_cc=unknown
5648 cat >"conftest.$ac_ext" <<_ACEOF
5649 #line 5649 "configure"
5650 #include "confdefs.h"
5652 int main(int argc, char *argv[])
5654 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
5658 rm -f "conftest$ac_exeext"
5659 if { (eval echo "$as_me:5659: \"$ac_link\"") >&5
5660 (eval $ac_link) 2>&5
5662 echo "$as_me:5662: \$? = $ac_status" >&5
5663 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5664 { (eval echo "$as_me:5664: \"$ac_try\"") >&5
5667 echo "$as_me:5667: \$? = $ac_status" >&5
5668 (exit "$ac_status"); }; }; then
5671 echo "$as_me: program exited with status $ac_status" >&5
5672 echo "$as_me: failed program was:" >&5
5673 cat "conftest.$ac_ext" >&5
5676 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5679 cross_compiling=$cf_save_crossed
5680 ac_link=$cf_save_ac_link
5682 echo "$as_me:5682: result: $cf_ok_build_cc" >&5
5683 echo "${ECHO_T}$cf_ok_build_cc" >&6
5685 if test "$cf_ok_build_cc" != yes
5687 { { echo "$as_me:5687: error: Cross-build requires two compilers.
5688 Use --with-build-cc to specify the native compiler." >&5
5689 echo "$as_me: error: Cross-build requires two compilers.
5690 Use --with-build-cc to specify the native compiler." >&2;}
5691 { (exit 1); exit 1; }; }
5695 : ${BUILD_CC:='${CC}'}
5696 : ${BUILD_CPP:='${CPP}'}
5697 : ${BUILD_CFLAGS:='${CFLAGS}'}
5698 : ${BUILD_CPPFLAGS:=''${CPPFLAGS}''}
5699 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5700 : ${BUILD_LIBS:=''${LIBS}''}
5701 : ${BUILD_EXEEXT:='$x'}
5702 : ${BUILD_OBJEXT:='o'}
5705 ###############################################################################
5707 ### Options to allow the user to specify the set of libraries which are used.
5708 ### Use "--without-normal --with-shared" to allow the default model to be
5709 ### shared, for example.
5712 echo "$as_me:5712: checking if libtool -version-number should be used" >&5
5713 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5715 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5716 if test "${enable_libtool_version+set}" = set; then
5717 enableval="$enable_libtool_version"
5718 test "$enableval" != no && enableval=yes
5719 if test "$enableval" != "yes" ; then
5720 cf_libtool_version=no
5722 cf_libtool_version=yes
5726 cf_libtool_version=yes
5729 echo "$as_me:5729: result: $cf_libtool_version" >&5
5730 echo "${ECHO_T}$cf_libtool_version" >&6
5732 if test "$cf_libtool_version" = yes ; then
5733 LIBTOOL_VERSION="-version-number"
5735 LIBTOOL_VERSION="-version-info"
5738 { echo "$as_me:5738: WARNING: VERSION was not set" >&5
5739 echo "$as_me: WARNING: VERSION was not set" >&2;}
5742 ABI_VERSION="$VERSION"
5743 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5745 echo "${as_me:-configure}:5745: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5749 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5750 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5752 echo "${as_me:-configure}:5752: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5756 { echo "$as_me:5756: WARNING: unexpected VERSION value: $VERSION" >&5
5757 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5764 # common library maintenance symbols that are convenient for libtool scripts:
5765 LIB_CREATE='${AR} -cr'
5766 LIB_OBJECT='${OBJECTS}'
5770 # symbols used to prop libtool up to enable it to determine what it should be
5778 echo "$as_me:5778: checking if you want to build libraries with libtool" >&5
5779 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5781 # Check whether --with-libtool or --without-libtool was given.
5782 if test "${with_libtool+set}" = set; then
5783 withval="$with_libtool"
5784 with_libtool=$withval
5788 echo "$as_me:5788: result: $with_libtool" >&5
5789 echo "${ECHO_T}$with_libtool" >&6
5790 if test "$with_libtool" != "no"; then
5792 if test "$with_libtool" != "yes" ; then
5794 if test "x$prefix" != xNONE; then
5795 cf_path_syntax="$prefix"
5797 cf_path_syntax="$ac_default_prefix"
5800 case ".$with_libtool" in
5805 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5807 (.\$\{*prefix\}*|.\$\{*dir\}*)
5808 eval with_libtool="$with_libtool"
5809 case ".$with_libtool" in
5811 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5816 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5819 { { echo "$as_me:5819: error: expected a pathname, not \"$with_libtool\"" >&5
5820 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5821 { (exit 1); exit 1; }; }
5825 LIBTOOL=$with_libtool
5827 if test -n "$ac_tool_prefix"; then
5828 for ac_prog in libtool glibtool
5830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 echo "$as_me:5832: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 if test -n "$LIBTOOL"; then
5838 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5840 ac_save_IFS=$IFS; IFS=$ac_path_separator
5842 for ac_dir in $ac_dummy; do
5844 test -z "$ac_dir" && ac_dir=.
5845 $as_executable_p "$ac_dir/$ac_word" || continue
5846 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5847 echo "$as_me:5847: found $ac_dir/$ac_word" >&5
5853 LIBTOOL=$ac_cv_prog_LIBTOOL
5854 if test -n "$LIBTOOL"; then
5855 echo "$as_me:5855: result: $LIBTOOL" >&5
5856 echo "${ECHO_T}$LIBTOOL" >&6
5858 echo "$as_me:5858: result: no" >&5
5859 echo "${ECHO_T}no" >&6
5862 test -n "$LIBTOOL" && break
5865 if test -z "$LIBTOOL"; then
5866 ac_ct_LIBTOOL=$LIBTOOL
5867 for ac_prog in libtool glibtool
5869 # Extract the first word of "$ac_prog", so it can be a program name with args.
5870 set dummy $ac_prog; ac_word=$2
5871 echo "$as_me:5871: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 if test -n "$ac_ct_LIBTOOL"; then
5877 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5879 ac_save_IFS=$IFS; IFS=$ac_path_separator
5881 for ac_dir in $ac_dummy; do
5883 test -z "$ac_dir" && ac_dir=.
5884 $as_executable_p "$ac_dir/$ac_word" || continue
5885 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5886 echo "$as_me:5886: found $ac_dir/$ac_word" >&5
5892 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5893 if test -n "$ac_ct_LIBTOOL"; then
5894 echo "$as_me:5894: result: $ac_ct_LIBTOOL" >&5
5895 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5897 echo "$as_me:5897: result: no" >&5
5898 echo "${ECHO_T}no" >&6
5901 test -n "$ac_ct_LIBTOOL" && break
5903 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5905 LIBTOOL=$ac_ct_LIBTOOL
5908 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5910 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.].*//'`
5912 cf_cv_libtool_version=
5914 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5916 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5919 unset ac_cv_prog_ac_ct_LIBTOOL
5923 if test -n "$ac_tool_prefix"; then
5924 for ac_prog in glibtool
5926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5928 echo "$as_me:5928: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 if test -n "$LIBTOOL"; then
5934 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5936 ac_save_IFS=$IFS; IFS=$ac_path_separator
5938 for ac_dir in $ac_dummy; do
5940 test -z "$ac_dir" && ac_dir=.
5941 $as_executable_p "$ac_dir/$ac_word" || continue
5942 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5943 echo "$as_me:5943: found $ac_dir/$ac_word" >&5
5949 LIBTOOL=$ac_cv_prog_LIBTOOL
5950 if test -n "$LIBTOOL"; then
5951 echo "$as_me:5951: result: $LIBTOOL" >&5
5952 echo "${ECHO_T}$LIBTOOL" >&6
5954 echo "$as_me:5954: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5958 test -n "$LIBTOOL" && break
5961 if test -z "$LIBTOOL"; then
5962 ac_ct_LIBTOOL=$LIBTOOL
5963 for ac_prog in glibtool
5965 # Extract the first word of "$ac_prog", so it can be a program name with args.
5966 set dummy $ac_prog; ac_word=$2
5967 echo "$as_me:5967: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 if test -n "$ac_ct_LIBTOOL"; then
5973 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5975 ac_save_IFS=$IFS; IFS=$ac_path_separator
5977 for ac_dir in $ac_dummy; do
5979 test -z "$ac_dir" && ac_dir=.
5980 $as_executable_p "$ac_dir/$ac_word" || continue
5981 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5982 echo "$as_me:5982: found $ac_dir/$ac_word" >&5
5988 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5989 if test -n "$ac_ct_LIBTOOL"; then
5990 echo "$as_me:5990: result: $ac_ct_LIBTOOL" >&5
5991 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5993 echo "$as_me:5993: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5997 test -n "$ac_ct_LIBTOOL" && break
5999 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
6001 LIBTOOL=$ac_ct_LIBTOOL
6004 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
6006 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.].*//'`
6008 cf_cv_libtool_version=
6010 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
6014 if test -z "$LIBTOOL" ; then
6015 { { echo "$as_me:6015: error: Cannot find libtool" >&5
6016 echo "$as_me: error: Cannot find libtool" >&2;}
6017 { (exit 1); exit 1; }; }
6019 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
6020 LIB_OBJECT='${OBJECTS:.o=.lo}'
6022 LIB_CLEAN='${LIBTOOL} --mode=clean'
6023 LIB_COMPILE='${LIBTOOL} --mode=compile'
6024 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
6025 LIB_INSTALL='${LIBTOOL} --mode=install'
6026 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
6029 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
6031 echo "$as_me:6031: checking version of $LIBTOOL" >&5
6032 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
6034 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
6036 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.].*//'`
6038 cf_cv_libtool_version=
6040 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
6042 echo "$as_me:6042: result: $cf_cv_libtool_version" >&5
6043 echo "${ECHO_T}$cf_cv_libtool_version" >&6
6044 if test -n "$cf_cv_libtool_version"
6046 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
6047 case "x$cf_check_libtool_version" in
6048 (*...GNU-libtool...*)
6051 { { echo "$as_me:6051: error: This is not GNU libtool" >&5
6052 echo "$as_me: error: This is not GNU libtool" >&2;}
6053 { (exit 1); exit 1; }; }
6057 { { echo "$as_me:6057: error: No version found for $LIBTOOL" >&5
6058 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
6059 { (exit 1); exit 1; }; }
6062 { { echo "$as_me:6062: error: GNU libtool has not been found" >&5
6063 echo "$as_me: error: GNU libtool has not been found" >&2;}
6064 { (exit 1); exit 1; }; }
6067 # special hack to add -no-undefined (which libtool should do for itself)
6069 case "$cf_cv_system_name" in
6070 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
6071 LT_UNDEF=-no-undefined
6075 # special hack to add --tag option for C++ compiler
6076 case "$cf_cv_libtool_version" in
6077 (1.[5-9]*|[2-9].[0-9.a-z]*)
6078 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
6079 LIBTOOL="$LIBTOOL --tag=CC"
6082 LIBTOOL_CXX="$LIBTOOL"
6090 test -z "$LIBTOOL" && ECHO_LT=
6092 if test "$with_libtool" != "no" ; then
6094 cf_list_models="$cf_list_models libtool"
6098 echo "$as_me:6098: checking if you want to build shared libraries" >&5
6099 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
6101 # Check whether --with-shared or --without-shared was given.
6102 if test "${with_shared+set}" = set; then
6103 withval="$with_shared"
6104 with_shared=$withval
6108 echo "$as_me:6108: result: $with_shared" >&5
6109 echo "${ECHO_T}$with_shared" >&6
6110 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
6112 echo "$as_me:6112: checking if you want to build static libraries" >&5
6113 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
6115 # Check whether --with-normal or --without-normal was given.
6116 if test "${with_normal+set}" = set; then
6117 withval="$with_normal"
6118 with_normal=$withval
6122 echo "$as_me:6122: result: $with_normal" >&5
6123 echo "${ECHO_T}$with_normal" >&6
6124 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
6126 echo "$as_me:6126: checking if you want to build debug libraries" >&5
6127 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
6129 # Check whether --with-debug or --without-debug was given.
6130 if test "${with_debug+set}" = set; then
6131 withval="$with_debug"
6136 echo "$as_me:6136: result: $with_debug" >&5
6137 echo "${ECHO_T}$with_debug" >&6
6138 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
6140 echo "$as_me:6140: checking if you want to build profiling libraries" >&5
6141 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
6143 # Check whether --with-profile or --without-profile was given.
6144 if test "${with_profile+set}" = set; then
6145 withval="$with_profile"
6146 with_profile=$withval
6150 echo "$as_me:6150: result: $with_profile" >&5
6151 echo "${ECHO_T}$with_profile" >&6
6152 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
6156 if test "X$cf_with_cxx_binding" != Xno; then
6157 if test "x$with_shared" = "xyes"; then
6158 echo "$as_me:6158: checking if you want to build C++ shared libraries" >&5
6159 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
6161 # Check whether --with-cxx-shared or --without-cxx-shared was given.
6162 if test "${with_cxx_shared+set}" = set; then
6163 withval="$with_cxx_shared"
6164 with_shared_cxx=$withval
6168 echo "$as_me:6168: result: $with_shared_cxx" >&5
6169 echo "${ECHO_T}$with_shared_cxx" >&6
6173 ###############################################################################
6175 echo "$as_me:6175: checking for specified models" >&5
6176 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
6177 test -z "$cf_list_models" && cf_list_models=normal
6178 test "$with_libtool" != "no" && cf_list_models=libtool
6179 echo "$as_me:6179: result: $cf_list_models" >&5
6180 echo "${ECHO_T}$cf_list_models" >&6
6182 ### Use the first model as the default, and save its suffix for use in building
6183 ### up test-applications.
6184 echo "$as_me:6184: checking for default model" >&5
6185 echo $ECHO_N "checking for default model... $ECHO_C" >&6
6186 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
6187 echo "$as_me:6187: result: $DFT_LWR_MODEL" >&5
6188 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
6190 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6201 echo "$as_me:6201: checking if you want to have a library-prefix" >&5
6202 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
6204 # Check whether --with-lib-prefix or --without-lib-prefix was given.
6205 if test "${with_lib_prefix+set}" = set; then
6206 withval="$with_lib_prefix"
6207 with_lib_prefix=$withval
6209 with_lib_prefix=auto
6211 echo "$as_me:6211: result: $with_lib_prefix" >&5
6212 echo "${ECHO_T}$with_lib_prefix" >&6
6214 if test "$with_lib_prefix" = auto
6217 case "$cf_cv_system_name" in
6219 if test "$DFT_LWR_MODEL" = libtool; then
6228 (*) LIB_PREFIX='lib'
6231 cf_prefix=$LIB_PREFIX
6233 elif test "$with_lib_prefix" = no
6237 LIB_PREFIX=$with_lib_prefix
6242 echo "$as_me:6242: checking for PATH separator" >&5
6243 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
6244 case "$cf_cv_system_name" in
6245 (os2*) PATH_SEPARATOR=';' ;;
6246 (*) ${PATH_SEPARATOR:=':'} ;;
6249 echo "$as_me:6249: result: $PATH_SEPARATOR" >&5
6250 echo "${ECHO_T}$PATH_SEPARATOR" >&6
6252 # headers needed for checks...
6253 echo "$as_me:6253: checking for ANSI C header files" >&5
6254 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6255 if test "${ac_cv_header_stdc+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 cat >"conftest.$ac_ext" <<_ACEOF
6259 #line 6259 "configure"
6260 #include "confdefs.h"
6267 if { (eval echo "$as_me:6267: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6268 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6270 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6272 cat conftest.err >&5
6273 echo "$as_me:6273: \$? = $ac_status" >&5
6274 (exit "$ac_status"); } >/dev/null; then
6275 if test -s conftest.err; then
6276 ac_cpp_err=$ac_c_preproc_warn_flag
6283 if test -z "$ac_cpp_err"; then
6284 ac_cv_header_stdc=yes
6286 echo "$as_me: failed program was:" >&5
6287 cat "conftest.$ac_ext" >&5
6288 ac_cv_header_stdc=no
6290 rm -f conftest.err "conftest.$ac_ext"
6292 if test $ac_cv_header_stdc = yes; then
6293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6294 cat >"conftest.$ac_ext" <<_ACEOF
6295 #line 6295 "configure"
6296 #include "confdefs.h"
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "memchr" >/dev/null 2>&1; then
6304 ac_cv_header_stdc=no
6310 if test $ac_cv_header_stdc = yes; then
6311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6312 cat >"conftest.$ac_ext" <<_ACEOF
6313 #line 6313 "configure"
6314 #include "confdefs.h"
6318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6319 $EGREP "free" >/dev/null 2>&1; then
6322 ac_cv_header_stdc=no
6328 if test $ac_cv_header_stdc = yes; then
6329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6330 if test "$cross_compiling" = yes; then
6333 cat >"conftest.$ac_ext" <<_ACEOF
6334 #line 6334 "configure"
6335 #include "confdefs.h"
6337 #if ((' ' & 0x0FF) == 0x020)
6338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6341 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6342 || ('j' <= (c) && (c) <= 'r') \
6343 || ('s' <= (c) && (c) <= 'z'))
6344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6352 for (i = 0; i < 256; i++)
6353 if (XOR (islower (i), ISLOWER (i))
6354 || toupper (i) != TOUPPER (i))
6356 $ac_main_return (0);
6359 rm -f "conftest$ac_exeext"
6360 if { (eval echo "$as_me:6360: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6363 echo "$as_me:6363: \$? = $ac_status" >&5
6364 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6365 { (eval echo "$as_me:6365: \"$ac_try\"") >&5
6368 echo "$as_me:6368: \$? = $ac_status" >&5
6369 (exit "$ac_status"); }; }; then
6372 echo "$as_me: program exited with status $ac_status" >&5
6373 echo "$as_me: failed program was:" >&5
6374 cat "conftest.$ac_ext" >&5
6375 ac_cv_header_stdc=no
6377 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6381 echo "$as_me:6381: result: $ac_cv_header_stdc" >&5
6382 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6383 if test $ac_cv_header_stdc = yes; then
6385 cat >>confdefs.h <<\EOF
6386 #define STDC_HEADERS 1
6391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6394 inttypes.h stdint.h unistd.h
6396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397 echo "$as_me:6397: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 cat >"conftest.$ac_ext" <<_ACEOF
6403 #line 6403 "configure"
6404 #include "confdefs.h"
6405 $ac_includes_default
6406 #include <$ac_header>
6408 rm -f "conftest.$ac_objext"
6409 if { (eval echo "$as_me:6409: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>&5
6412 echo "$as_me:6412: \$? = $ac_status" >&5
6413 (exit "$ac_status"); } &&
6414 { ac_try='test -s "conftest.$ac_objext"'
6415 { (eval echo "$as_me:6415: \"$ac_try\"") >&5
6418 echo "$as_me:6418: \$? = $ac_status" >&5
6419 (exit "$ac_status"); }; }; then
6420 eval "$as_ac_Header=yes"
6422 echo "$as_me: failed program was:" >&5
6423 cat "conftest.$ac_ext" >&5
6424 eval "$as_ac_Header=no"
6426 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6428 echo "$as_me:6428: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6429 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6430 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6431 cat >>confdefs.h <<EOF
6432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6438 echo "$as_me:6438: checking whether exit is declared" >&5
6439 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
6440 if test "${ac_cv_have_decl_exit+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 cat >"conftest.$ac_ext" <<_ACEOF
6444 #line 6444 "configure"
6445 #include "confdefs.h"
6446 $ac_includes_default
6458 rm -f "conftest.$ac_objext"
6459 if { (eval echo "$as_me:6459: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>&5
6462 echo "$as_me:6462: \$? = $ac_status" >&5
6463 (exit "$ac_status"); } &&
6464 { ac_try='test -s "conftest.$ac_objext"'
6465 { (eval echo "$as_me:6465: \"$ac_try\"") >&5
6468 echo "$as_me:6468: \$? = $ac_status" >&5
6469 (exit "$ac_status"); }; }; then
6470 ac_cv_have_decl_exit=yes
6472 echo "$as_me: failed program was:" >&5
6473 cat "conftest.$ac_ext" >&5
6474 ac_cv_have_decl_exit=no
6476 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6478 echo "$as_me:6478: result: $ac_cv_have_decl_exit" >&5
6479 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
6482 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6483 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6484 echo "$as_me:6484: checking for $ac_hdr that defines DIR" >&5
6485 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 cat >"conftest.$ac_ext" <<_ACEOF
6490 #line 6490 "configure"
6491 #include "confdefs.h"
6492 #include <sys/types.h>
6504 rm -f "conftest.$ac_objext"
6505 if { (eval echo "$as_me:6505: \"$ac_compile\"") >&5
6506 (eval $ac_compile) 2>&5
6508 echo "$as_me:6508: \$? = $ac_status" >&5
6509 (exit "$ac_status"); } &&
6510 { ac_try='test -s "conftest.$ac_objext"'
6511 { (eval echo "$as_me:6511: \"$ac_try\"") >&5
6514 echo "$as_me:6514: \$? = $ac_status" >&5
6515 (exit "$ac_status"); }; }; then
6516 eval "$as_ac_Header=yes"
6518 echo "$as_me: failed program was:" >&5
6519 cat "conftest.$ac_ext" >&5
6520 eval "$as_ac_Header=no"
6522 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6524 echo "$as_me:6524: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6525 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6526 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6527 cat >>confdefs.h <<EOF
6528 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6531 ac_header_dirent=$ac_hdr; break
6535 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6536 if test $ac_header_dirent = dirent.h; then
6537 echo "$as_me:6537: checking for opendir in -ldir" >&5
6538 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6539 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 ac_check_lib_save_LIBS=$LIBS
6544 cat >"conftest.$ac_ext" <<_ACEOF
6545 #line 6545 "configure"
6546 #include "confdefs.h"
6548 /* Override any gcc2 internal prototype to avoid an error. */
6552 /* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */
6554 char opendir (void);
6563 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6564 if { (eval echo "$as_me:6564: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>&5
6567 echo "$as_me:6567: \$? = $ac_status" >&5
6568 (exit "$ac_status"); } &&
6569 { ac_try='test -s "conftest$ac_exeext"'
6570 { (eval echo "$as_me:6570: \"$ac_try\"") >&5
6573 echo "$as_me:6573: \$? = $ac_status" >&5
6574 (exit "$ac_status"); }; }; then
6575 ac_cv_lib_dir_opendir=yes
6577 echo "$as_me: failed program was:" >&5
6578 cat "conftest.$ac_ext" >&5
6579 ac_cv_lib_dir_opendir=no
6581 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6582 LIBS=$ac_check_lib_save_LIBS
6584 echo "$as_me:6584: result: $ac_cv_lib_dir_opendir" >&5
6585 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6586 if test "$ac_cv_lib_dir_opendir" = yes; then
6591 echo "$as_me:6591: checking for opendir in -lx" >&5
6592 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6593 if test "${ac_cv_lib_x_opendir+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 ac_check_lib_save_LIBS=$LIBS
6598 cat >"conftest.$ac_ext" <<_ACEOF
6599 #line 6599 "configure"
6600 #include "confdefs.h"
6602 /* Override any gcc2 internal prototype to avoid an error. */
6606 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */
6608 char opendir (void);
6617 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6618 if { (eval echo "$as_me:6618: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>&5
6621 echo "$as_me:6621: \$? = $ac_status" >&5
6622 (exit "$ac_status"); } &&
6623 { ac_try='test -s "conftest$ac_exeext"'
6624 { (eval echo "$as_me:6624: \"$ac_try\"") >&5
6627 echo "$as_me:6627: \$? = $ac_status" >&5
6628 (exit "$ac_status"); }; }; then
6629 ac_cv_lib_x_opendir=yes
6631 echo "$as_me: failed program was:" >&5
6632 cat "conftest.$ac_ext" >&5
6633 ac_cv_lib_x_opendir=no
6635 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6636 LIBS=$ac_check_lib_save_LIBS
6638 echo "$as_me:6638: result: $ac_cv_lib_x_opendir" >&5
6639 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6640 if test "$ac_cv_lib_x_opendir" = yes; then
6646 ###############################################################################
6648 echo "$as_me:6648: checking if you want to build a separate terminfo library" >&5
6649 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
6651 # Check whether --with-termlib or --without-termlib was given.
6652 if test "${with_termlib+set}" = set; then
6653 withval="$with_termlib"
6654 with_termlib=$withval
6658 echo "$as_me:6658: result: $with_termlib" >&5
6659 echo "${ECHO_T}$with_termlib" >&6
6661 echo "$as_me:6661: checking if you want to build a separate tic library" >&5
6662 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
6664 # Check whether --with-ticlib or --without-ticlib was given.
6665 if test "${with_ticlib+set}" = set; then
6666 withval="$with_ticlib"
6667 with_ticlib=$withval
6671 echo "$as_me:6671: result: $with_ticlib" >&5
6672 echo "${ECHO_T}$with_ticlib" >&6
6674 if test X"$CC_G_OPT" = X"" ; then
6676 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
6679 if test X"$CXX_G_OPT" = X"" ; then
6681 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
6684 echo "$as_me:6684: checking for default loader flags" >&5
6685 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6686 case "$DFT_LWR_MODEL" in
6687 (libtool) LD_MODEL='' ;;
6688 (normal) LD_MODEL='' ;;
6689 (debug) LD_MODEL=$CC_G_OPT ;;
6690 (profile) LD_MODEL='-pg';;
6691 (shared) LD_MODEL='' ;;
6693 echo "$as_me:6693: result: ${LD_MODEL:-(none)}" >&5
6694 echo "${ECHO_T}${LD_MODEL:-(none)}" >&6
6696 case "$DFT_LWR_MODEL" in
6699 echo "$as_me:6699: checking if rpath option should be used" >&5
6700 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
6702 # Check whether --enable-rpath or --disable-rpath was given.
6703 if test "${enable_rpath+set}" = set; then
6704 enableval="$enable_rpath"
6705 cf_cv_enable_rpath=$enableval
6707 cf_cv_enable_rpath=no
6709 echo "$as_me:6709: result: $cf_cv_enable_rpath" >&5
6710 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
6712 echo "$as_me:6712: checking if shared libraries should be relinked during install" >&5
6713 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
6715 # Check whether --enable-relink or --disable-relink was given.
6716 if test "${enable_relink+set}" = set; then
6717 enableval="$enable_relink"
6718 cf_cv_do_relink=$enableval
6722 echo "$as_me:6722: result: $cf_cv_do_relink" >&5
6723 echo "${ECHO_T}$cf_cv_do_relink" >&6
6727 # we will build libraries one-level down.
6731 if test "x$cf_cv_enable_rpath" != xno
6733 echo "$as_me:6733: checking for an rpath option" >&5
6734 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
6735 case "$cf_cv_system_name" in
6737 if test "$GCC" = yes; then
6738 LD_RPATH_OPT="-Wl,-rpath,"
6740 LD_RPATH_OPT="-rpath "
6743 (linux*|gnu*|k*bsd*-gnu|freebsd*)
6744 LD_RPATH_OPT="-Wl,-rpath,"
6746 (openbsd[2-9].*|mirbsd*)
6747 LD_RPATH_OPT="-Wl,-rpath,"
6750 LD_RPATH_OPT="-rpath "
6753 LD_RPATH_OPT="-Wl,-rpath,"
6756 LD_RPATH_OPT="-rpath "
6764 echo "$as_me:6764: result: $LD_RPATH_OPT" >&5
6765 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6767 case "x$LD_RPATH_OPT" in
6769 echo "$as_me:6769: checking if we need a space after rpath option" >&5
6770 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6771 cf_save_LIBS="$LIBS"
6776 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6778 for cf_add_1lib in $cf_add_0lib; do
6779 for cf_add_2lib in $cf_add_libs; do
6780 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6785 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6789 cat >"conftest.$ac_ext" <<_ACEOF
6790 #line 6790 "configure"
6791 #include "confdefs.h"
6801 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6802 if { (eval echo "$as_me:6802: \"$ac_link\"") >&5
6803 (eval $ac_link) 2>&5
6805 echo "$as_me:6805: \$? = $ac_status" >&5
6806 (exit "$ac_status"); } &&
6807 { ac_try='test -s "conftest$ac_exeext"'
6808 { (eval echo "$as_me:6808: \"$ac_try\"") >&5
6811 echo "$as_me:6811: \$? = $ac_status" >&5
6812 (exit "$ac_status"); }; }; then
6815 echo "$as_me: failed program was:" >&5
6816 cat "conftest.$ac_ext" >&5
6819 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6820 LIBS="$cf_save_LIBS"
6821 echo "$as_me:6821: result: $cf_rpath_space" >&5
6822 echo "${ECHO_T}$cf_rpath_space" >&6
6823 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6832 INSTALL_LIB="-m 644"
6833 : ${rel_builddir:=.}
6839 cf_cv_do_symlinks=no
6841 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6843 echo "$as_me:6843: checking whether to use release or ABI version in shared library file names" >&5
6844 echo $ECHO_N "checking whether to use release or ABI version in shared library file names... $ECHO_C" >&6
6846 # Check whether --with-shlib-version or --without-shlib-version was given.
6847 if test "${with_shlib_version+set}" = set; then
6848 withval="$with_shlib_version"
6849 test -z "$withval" && withval=auto
6852 cf_cv_shlib_version=auto
6855 cf_cv_shlib_version=$withval
6858 echo "$as_me:6858: result: $withval" >&5
6859 echo "${ECHO_T}$withval" >&6
6860 { { echo "$as_me:6860: error: option value must be one of: rel, abi, or auto" >&5
6861 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6862 { (exit 1); exit 1; }; }
6867 cf_cv_shlib_version=auto
6869 echo "$as_me:6869: result: $cf_cv_shlib_version" >&5
6870 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6875 # Some less-capable ports of gcc support only -fpic
6879 if test "$GCC" = yes
6883 case "$cf_cv_system_name" in
6884 (*linux*) # e.g., PGI compiler
6890 if test "$cf_try_fPIC" = yes
6892 echo "$as_me:6892: checking which $CC option to use" >&5
6893 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6894 cf_save_CFLAGS="$CFLAGS"
6895 for CC_SHARED_OPTS in -fPIC -fpic ''
6897 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6898 cat >"conftest.$ac_ext" <<_ACEOF
6899 #line 6899 "configure"
6900 #include "confdefs.h"
6910 rm -f "conftest.$ac_objext"
6911 if { (eval echo "$as_me:6911: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>&5
6914 echo "$as_me:6914: \$? = $ac_status" >&5
6915 (exit "$ac_status"); } &&
6916 { ac_try='test -s "conftest.$ac_objext"'
6917 { (eval echo "$as_me:6917: \"$ac_try\"") >&5
6920 echo "$as_me:6920: \$? = $ac_status" >&5
6921 (exit "$ac_status"); }; }; then
6924 echo "$as_me: failed program was:" >&5
6925 cat "conftest.$ac_ext" >&5
6927 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6929 echo "$as_me:6929: result: $CC_SHARED_OPTS" >&5
6930 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6931 CFLAGS="$cf_save_CFLAGS"
6934 cf_cv_shlib_version_infix=no
6936 case "$cf_cv_system_name" in
6937 (aix4.3-9*|aix[5-7]*)
6938 if test "$GCC" = yes; then
6939 CC_SHARED_OPTS='-Wl,-brtl'
6940 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6942 CC_SHARED_OPTS='-brtl'
6943 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6944 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6948 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6952 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6953 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6954 cf_cv_shlib_version=cygdll
6955 cf_cv_shlib_version_infix=cygdll
6958 cat >mk_shared_lib.sh <<-CF_EOF
6961 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6964 Linking shared library
6965 ** SHARED_LIB \$SHARED_LIB
6966 ** IMPORT_LIB \$IMPORT_LIB
6968 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6970 chmod +x mk_shared_lib.sh
6974 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6975 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6976 cf_cv_shlib_version=msysdll
6977 cf_cv_shlib_version_infix=msysdll
6980 cat >mk_shared_lib.sh <<-CF_EOF
6983 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6986 Linking shared library
6987 ** SHARED_LIB \$SHARED_LIB
6988 ** IMPORT_LIB \$IMPORT_LIB
6990 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6992 chmod +x mk_shared_lib.sh
6995 cf_try_cflags="no-cpp-precomp"
6996 CC_SHARED_OPTS="-dynamic"
6997 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6998 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6999 cf_cv_shlib_version_infix=yes
7000 echo "$as_me:7000: checking if ld -search_paths_first works" >&5
7001 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
7002 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 cf_save_LDFLAGS=$LDFLAGS
7007 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7008 cat >"conftest.$ac_ext" <<_ACEOF
7009 #line 7009 "configure"
7010 #include "confdefs.h"
7020 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7021 if { (eval echo "$as_me:7021: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>&5
7024 echo "$as_me:7024: \$? = $ac_status" >&5
7025 (exit "$ac_status"); } &&
7026 { ac_try='test -s "conftest$ac_exeext"'
7027 { (eval echo "$as_me:7027: \"$ac_try\"") >&5
7030 echo "$as_me:7030: \$? = $ac_status" >&5
7031 (exit "$ac_status"); }; }; then
7032 cf_cv_ldflags_search_paths_first=yes
7034 echo "$as_me: failed program was:" >&5
7035 cat "conftest.$ac_ext" >&5
7036 cf_cv_ldflags_search_paths_first=no
7038 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7039 LDFLAGS=$cf_save_LDFLAGS
7041 echo "$as_me:7041: result: $cf_cv_ldflags_search_paths_first" >&5
7042 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
7043 if test "$cf_cv_ldflags_search_paths_first" = yes; then
7044 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7049 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7050 if test "$cf_cv_shlib_version" = rel; then
7051 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7053 cf_cv_shared_soname='`basename $@`'
7056 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7059 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
7060 if test "$GCC" != yes; then
7063 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
7064 INSTALL_LIB="-m 555"
7067 # (tested with gcc 2.7.2 -- I don't have c89)
7068 if test "$GCC" = yes; then
7069 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
7072 LD_SHARED_OPTS='-Wl,+b,${libdir}'
7074 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
7075 # HP-UX shared libraries must be executable, and should be
7076 # readonly to exploit a quirk in the memory manager.
7077 INSTALL_LIB="-m 555"
7080 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7081 if test "$cf_cv_shlib_version" = rel; then
7082 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7084 cf_shared_soname='`basename $@`'
7087 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
7090 if test "$cf_cv_enable_rpath" = yes ; then
7091 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7093 # tested with IRIX 5.2 and 'cc'.
7094 if test "$GCC" != yes; then
7095 CC_SHARED_OPTS='-KPIC'
7096 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
7098 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
7100 cf_cv_rm_so_locs=yes
7102 (linux*|gnu*|k*bsd*-gnu)
7103 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7104 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7105 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7107 if test "$cf_cv_enable_rpath" = yes ; then
7108 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7111 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7112 if test "$cf_cv_shlib_version" = rel; then
7113 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7115 cf_cv_shared_soname='`basename $@`'
7118 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7121 cf_cv_shlib_version=msvcdll
7122 cf_cv_shlib_version_infix=msvcdll
7125 if test "$DFT_LWR_MODEL" = "shared" ; then
7126 LOCAL_LDFLAGS="-link -dll"
7127 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7128 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
7131 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
7132 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
7133 cat >mk_shared_lib.sh <<-CF_EOF
7136 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
7141 Linking shared library
7142 ** SHARED LIB \$SHARED_LIB
7143 ** IMPORT_LIB \$IMPORT_LIB
7145 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
7146 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
7147 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
7149 chmod +x mk_shared_lib.sh
7150 cat >mk_prog.sh <<-CF_EOF
7153 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
7156 ldopts=("/subsystem:console")
7159 while test \$# -gt 0; do
7162 # ignore -link argument
7165 # ignore runtime-library option
7180 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
7183 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
7189 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
7190 ldopts+=("\${linkarg}")
7198 ldopts+=("-out:\$1")
7207 if [ "\$isdll" -ne 0 ]; then
7208 for lib in \${libs[*]}; do
7209 ldopts+=("\$lib.dll.lib")
7212 for lib in \${libs[*]}; do
7213 ldopts+=("\$lib.lib")
7218 ** ld options: "\${ldopts[@]}"
7220 exec \$LD \${ldopts[@]}
7223 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
7224 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
7227 cf_cv_shlib_version=mingw
7228 cf_cv_shlib_version_infix=mingw
7231 if test "$DFT_LWR_MODEL" = "shared" ; then
7232 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
7233 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7234 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
7237 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7238 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
7239 cat >mk_shared_lib.sh <<-CF_EOF
7242 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
7245 Linking shared library
7246 ** SHARED_LIB \$SHARED_LIB
7247 ** IMPORT_LIB \$IMPORT_LIB
7249 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
7251 chmod +x mk_shared_lib.sh
7253 (openbsd[2-9].*|mirbsd*)
7254 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7255 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7256 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7258 if test "$cf_cv_enable_rpath" = yes ; then
7259 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7261 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7263 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7264 if test "$cf_cv_shlib_version" = rel; then
7265 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7267 cf_cv_shared_soname='`basename $@`'
7270 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7274 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
7278 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
7280 (nto-qnx*|openbsd*|freebsd[12].*)
7281 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7282 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
7283 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7285 (dragonfly*|freebsd*)
7286 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7287 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7288 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7289 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
7290 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7293 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7294 if test "$cf_cv_shlib_version" = rel; then
7295 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7297 cf_cv_shared_soname='`basename $@`'
7300 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7303 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7304 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7305 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7306 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7307 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7308 if test "$cf_cv_shlib_version" = auto; then
7309 if test -f /usr/libexec/ld.elf_so; then
7310 cf_cv_shlib_version=abi
7312 cf_cv_shlib_version=rel
7316 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7317 if test "$cf_cv_shlib_version" = rel; then
7318 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7320 cf_cv_shared_soname='`basename $@`'
7323 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7325 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
7329 # tested with OSF/1 V3.2 and 'cc'
7330 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7331 # link with shared libs).
7332 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7335 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7338 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7339 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7340 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7341 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7343 cf_cv_rm_so_locs=yes
7345 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
7346 # tested with osr5.0.5
7347 if test "$GCC" != yes; then
7348 CC_SHARED_OPTS='-belf -KPIC'
7350 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7351 if test "$cf_cv_enable_rpath" = yes ; then
7352 # only way is to set LD_RUN_PATH but no switch for it
7355 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7356 LINK_PROGS='LD_RUN_PATH=${libdir}'
7357 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7360 # tested with SunOS 4.1.1 and gcc 2.7.0
7361 if test "$GCC" != yes; then
7362 CC_SHARED_OPTS='-KPIC'
7364 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
7365 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7368 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7369 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7370 if test "$DFT_LWR_MODEL" = "shared" ; then
7371 LOCAL_LDFLAGS="-R\$(LOCAL_LIBDIR):\${libdir}"
7372 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7374 if test "$cf_cv_enable_rpath" = yes ; then
7375 EXTRA_LDFLAGS="-R\${libdir} $EXTRA_LDFLAGS"
7378 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7379 if test "$cf_cv_shlib_version" = rel; then
7380 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7382 cf_cv_shared_soname='`basename $@`'
7385 if test "$GCC" != yes; then
7386 cf_save_CFLAGS="$CFLAGS"
7387 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7389 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7390 cat >"conftest.$ac_ext" <<_ACEOF
7391 #line 7391 "configure"
7392 #include "confdefs.h"
7402 rm -f "conftest.$ac_objext"
7403 if { (eval echo "$as_me:7403: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>&5
7406 echo "$as_me:7406: \$? = $ac_status" >&5
7407 (exit "$ac_status"); } &&
7408 { ac_try='test -s "conftest.$ac_objext"'
7409 { (eval echo "$as_me:7409: \"$ac_try\"") >&5
7412 echo "$as_me:7412: \$? = $ac_status" >&5
7413 (exit "$ac_status"); }; }; then
7416 echo "$as_me: failed program was:" >&5
7417 cat "conftest.$ac_ext" >&5
7419 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7421 CFLAGS="$cf_save_CFLAGS"
7422 CC_SHARED_OPTS=$cf_shared_opts
7423 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $@'
7425 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $@'
7428 (sysv5uw7*|unix_sv*)
7429 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7430 if test "$GCC" != yes; then
7431 CC_SHARED_OPTS='-KPIC'
7433 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
7436 CC_SHARED_OPTS='unknown'
7437 MK_SHARED_LIB='echo unknown'
7441 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7442 case "$cf_cv_shlib_version" in
7444 case "$MK_SHARED_LIB" in
7446 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7449 { echo "$as_me:7449: WARNING: ignored --with-shlib-version" >&5
7450 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7456 if test -n "$cf_try_cflags"
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7459 "${as_me:-configure}"
7461 int main(int argc, char *argv[])
7464 return (argv[argc-1] == 0) ;
7467 cf_save_CFLAGS="$CFLAGS"
7468 for cf_opt in $cf_try_cflags
7470 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7471 echo "$as_me:7471: checking if CFLAGS option -$cf_opt works" >&5
7472 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7473 if { (eval echo "$as_me:7473: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>&5
7476 echo "$as_me:7476: \$? = $ac_status" >&5
7477 (exit "$ac_status"); }; then
7478 echo "$as_me:7478: result: yes" >&5
7479 echo "${ECHO_T}yes" >&6
7480 cf_save_CFLAGS="$CFLAGS"
7482 echo "$as_me:7482: result: no" >&5
7483 echo "${ECHO_T}no" >&6
7486 CFLAGS="$cf_save_CFLAGS"
7489 # RPATH_LIST is a colon-separated list of directories
7490 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7491 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7493 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7495 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7497 echo "${as_me:-configure}:7497: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7499 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7501 echo "${as_me:-configure}:7501: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7503 for model in $cf_list_models ; do
7507 echo "$as_me:7507: checking for additional libtool options" >&5
7508 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
7510 # Check whether --with-libtool-opts or --without-libtool-opts was given.
7511 if test "${with_libtool_opts+set}" = set; then
7512 withval="$with_libtool_opts"
7513 with_libtool_opts=$withval
7515 with_libtool_opts=no
7517 echo "$as_me:7517: result: $with_libtool_opts" >&5
7518 echo "${ECHO_T}$with_libtool_opts" >&6
7520 case .$with_libtool_opts in
7524 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
7528 echo "$as_me:7528: checking if exported-symbols file should be used" >&5
7529 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
7531 # Check whether --with-export-syms or --without-export-syms was given.
7532 if test "${with_export_syms+set}" = set; then
7533 withval="$with_export_syms"
7534 with_export_syms=$withval
7538 if test "x$with_export_syms" = xyes
7540 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
7543 echo "$as_me:7543: result: $with_export_syms" >&5
7544 echo "${ECHO_T}$with_export_syms" >&6
7545 if test "x$with_export_syms" != xno
7547 EXPORT_SYMS="-export-symbols $with_export_syms"
7553 if test "$CC_SHARED_OPTS" = "unknown"; then
7554 { { echo "$as_me:7554: error: Shared libraries are not supported in this version" >&5
7555 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
7556 { (exit 1); exit 1; }; }
7558 # workaround for inept transition to PIE vs PIC...
7559 echo "$as_me:7559: checking if current CFLAGS link properly" >&5
7560 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
7561 cat >"conftest.$ac_ext" <<_ACEOF
7562 #line 7562 "configure"
7563 #include "confdefs.h"
7568 printf("Hello work\\n");
7573 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7574 if { (eval echo "$as_me:7574: \"$ac_link\"") >&5
7575 (eval $ac_link) 2>&5
7577 echo "$as_me:7577: \$? = $ac_status" >&5
7578 (exit "$ac_status"); } &&
7579 { ac_try='test -s "conftest$ac_exeext"'
7580 { (eval echo "$as_me:7580: \"$ac_try\"") >&5
7583 echo "$as_me:7583: \$? = $ac_status" >&5
7584 (exit "$ac_status"); }; }; then
7587 echo "$as_me: failed program was:" >&5
7588 cat "conftest.$ac_ext" >&5
7591 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7592 echo "$as_me:7592: result: $cf_cflags_work" >&5
7593 echo "${ECHO_T}$cf_cflags_work" >&6
7594 if test "$cf_cflags_work" = no
7596 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
7598 echo "${as_me:-configure}:7598: testing try to work around by appending shared-options ..." 1>&5
7600 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
7603 echo "$as_me:7603: checking if versioned-symbols file should be used" >&5
7604 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
7606 # Check whether --with-versioned-syms or --without-versioned-syms was given.
7607 if test "${with_versioned_syms+set}" = set; then
7608 withval="$with_versioned_syms"
7609 with_versioned_syms=$withval
7611 with_versioned_syms=no
7613 case "x$with_versioned_syms" in
7615 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
7621 test -f "$with_versioned_syms" || { { echo "$as_me:7621: error: expected a filename: $with_versioned_syms" >&5
7622 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7623 { (exit 1); exit 1; }; }
7626 test -f "$with_versioned_syms" || { { echo "$as_me:7626: error: expected a filename: $with_versioned_syms" >&5
7627 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7628 { (exit 1); exit 1; }; }
7629 with_versioned_syms=`pwd`/"$with_versioned_syms"
7632 echo "$as_me:7632: result: $with_versioned_syms" >&5
7633 echo "${ECHO_T}$with_versioned_syms" >&6
7639 if test "x$with_versioned_syms" != xno
7641 RESULTING_SYMS=$with_versioned_syms
7642 case "x$MK_SHARED_LIB" in
7644 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
7645 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
7646 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7648 echo "${as_me:-configure}:7648: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7652 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
7653 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
7654 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7656 echo "${as_me:-configure}:7656: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7660 { echo "$as_me:7660: WARNING: this system does not support versioned-symbols" >&5
7661 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
7665 # Linux ld can selectively override scope, e.g., of symbols beginning with
7666 # "_" by first declaring some as global, and then using a wildcard to
7667 # declare the others as local. Some other loaders cannot do this. Check
7668 # by constructing a (very) simple shared library and inspecting its
7670 if test "x$VERSIONED_SYMS" != "x"
7672 echo "$as_me:7672: checking if wildcards can be used to selectively omit symbols" >&5
7673 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
7679 cat >conftest.ver <<EOF
7708 cat >conftest.$ac_ext <<EOF
7709 #line 7709 "configure"
7710 extern int _ismissing(void); int _ismissing(void) { return 1; }
7711 extern int _localf1(void); int _localf1(void) { return 1; }
7712 extern int _localf2(void); int _localf2(void) { return 2; }
7713 extern int globalf1(void); int globalf1(void) { return 1; }
7714 extern int globalf2(void); int globalf2(void) { return 2; }
7715 extern int _sublocalf1(void); int _sublocalf1(void) { return 1; }
7716 extern int _sublocalf2(void); int _sublocalf2(void) { return 2; }
7717 extern int subglobalf1(void); int subglobalf1(void) { return 1; }
7718 extern int subglobalf2(void); int subglobalf2(void) { return 2; }
7720 cat >conftest.mk <<EOF
7723 CPPFLAGS=${CPPFLAGS}
7726 VERSIONED_SYMS=${VERSIONED_SYMS}
7727 RESULTING_SYMS=conftest.ver
7728 MK_SHARED_LIB=${MK_SHARED_LIB}
7729 conftest.so: conftest.$ac_cv_objext
7730 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
7733 # compile source, make library
7734 if make -f conftest.mk 2>&5 >/dev/null
7736 # test for missing symbol in either Data or Text section
7737 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
7738 test -n "$cf_missing" && WILDCARD_SYMS=yes
7740 echo "$as_me:7740: result: $WILDCARD_SYMS" >&5
7741 echo "${ECHO_T}$WILDCARD_SYMS" >&6
7750 ### Checks for special libraries, must be done up-front.
7753 echo "$as_me:7753: checking if you want to link with the GPM mouse library" >&5
7754 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
7756 # Check whether --with-gpm or --without-gpm was given.
7757 if test "${with_gpm+set}" = set; then
7763 echo "$as_me:7763: result: $with_gpm" >&5
7764 echo "${ECHO_T}$with_gpm" >&6
7766 if test "$with_gpm" != no ; then
7767 echo "$as_me:7767: checking for gpm.h" >&5
7768 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7769 if test "${ac_cv_header_gpm_h+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 cat >"conftest.$ac_ext" <<_ACEOF
7773 #line 7773 "configure"
7774 #include "confdefs.h"
7777 if { (eval echo "$as_me:7777: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7778 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7780 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7782 cat conftest.err >&5
7783 echo "$as_me:7783: \$? = $ac_status" >&5
7784 (exit "$ac_status"); } >/dev/null; then
7785 if test -s conftest.err; then
7786 ac_cpp_err=$ac_c_preproc_warn_flag
7793 if test -z "$ac_cpp_err"; then
7794 ac_cv_header_gpm_h=yes
7796 echo "$as_me: failed program was:" >&5
7797 cat "conftest.$ac_ext" >&5
7798 ac_cv_header_gpm_h=no
7800 rm -f conftest.err "conftest.$ac_ext"
7802 echo "$as_me:7802: result: $ac_cv_header_gpm_h" >&5
7803 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7804 if test "$ac_cv_header_gpm_h" = yes; then
7806 cat >>confdefs.h <<\EOF
7807 #define HAVE_GPM_H 1
7810 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7811 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7813 echo "${as_me:-configure}:7813: testing assuming we really have GPM library ..." 1>&5
7815 cat >>confdefs.h <<\EOF
7816 #define HAVE_LIBGPM 1
7821 echo "$as_me:7821: checking for Gpm_Open in -lgpm" >&5
7822 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7823 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 ac_check_lib_save_LIBS=$LIBS
7828 cat >"conftest.$ac_ext" <<_ACEOF
7829 #line 7829 "configure"
7830 #include "confdefs.h"
7832 /* Override any gcc2 internal prototype to avoid an error. */
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7838 char Gpm_Open (void);
7847 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7848 if { (eval echo "$as_me:7848: \"$ac_link\"") >&5
7849 (eval $ac_link) 2>&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 (exit "$ac_status"); } &&
7853 { ac_try='test -s "conftest$ac_exeext"'
7854 { (eval echo "$as_me:7854: \"$ac_try\"") >&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 (exit "$ac_status"); }; }; then
7859 ac_cv_lib_gpm_Gpm_Open=yes
7861 echo "$as_me: failed program was:" >&5
7862 cat "conftest.$ac_ext" >&5
7863 ac_cv_lib_gpm_Gpm_Open=no
7865 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7866 LIBS=$ac_check_lib_save_LIBS
7868 echo "$as_me:7868: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7869 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7870 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7874 if test "$with_gpm" = maybe; then
7875 { echo "$as_me:7875: WARNING: Cannot link with GPM library" >&5
7876 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7879 { { echo "$as_me:7879: error: Cannot link with GPM library" >&5
7880 echo "$as_me: error: Cannot link with GPM library" >&2;}
7881 { (exit 1); exit 1; }; }
7890 test "$with_gpm" != maybe && { echo "$as_me:7890: WARNING: Cannot find GPM header" >&5
7891 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7898 if test "$with_gpm" != no ; then
7899 echo "$as_me:7899: checking if you want to load GPM dynamically" >&5
7900 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7902 # Check whether --with-dlsym or --without-dlsym was given.
7903 if test "${with_dlsym+set}" = set; then
7904 withval="$with_dlsym"
7909 echo "$as_me:7909: result: $with_dlsym" >&5
7910 echo "${ECHO_T}$with_dlsym" >&6
7911 if test "x$with_dlsym" = xyes ; then
7914 echo "$as_me:7914: checking for dlsym" >&5
7915 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7916 if test "${ac_cv_func_dlsym+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 cat >"conftest.$ac_ext" <<_ACEOF
7920 #line 7920 "configure"
7921 #include "confdefs.h"
7922 #define dlsym autoconf_temporary
7923 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7938 /* The GNU C library defines stubs for functions which it implements
7939 to always fail with ENOSYS. Some functions are actually named
7940 something starting with __ and the normal name is an alias. */
7941 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7942 #error found stub for dlsym
7950 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7951 if { (eval echo "$as_me:7951: \"$ac_link\"") >&5
7952 (eval $ac_link) 2>&5
7954 echo "$as_me:7954: \$? = $ac_status" >&5
7955 (exit "$ac_status"); } &&
7956 { ac_try='test -s "conftest$ac_exeext"'
7957 { (eval echo "$as_me:7957: \"$ac_try\"") >&5
7960 echo "$as_me:7960: \$? = $ac_status" >&5
7961 (exit "$ac_status"); }; }; then
7962 ac_cv_func_dlsym=yes
7964 echo "$as_me: failed program was:" >&5
7965 cat "conftest.$ac_ext" >&5
7968 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7970 echo "$as_me:7970: result: $ac_cv_func_dlsym" >&5
7971 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7972 if test "$ac_cv_func_dlsym" = yes; then
7977 echo "$as_me:7977: checking for dlsym in -ldl" >&5
7978 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7979 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 ac_check_lib_save_LIBS=$LIBS
7984 cat >"conftest.$ac_ext" <<_ACEOF
7985 #line 7985 "configure"
7986 #include "confdefs.h"
7988 /* Override any gcc2 internal prototype to avoid an error. */
7992 /* We use char because int might match the return type of a gcc2
7993 builtin and then its argument prototype would still apply. */
8003 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8004 if { (eval echo "$as_me:8004: \"$ac_link\"") >&5
8005 (eval $ac_link) 2>&5
8007 echo "$as_me:8007: \$? = $ac_status" >&5
8008 (exit "$ac_status"); } &&
8009 { ac_try='test -s "conftest$ac_exeext"'
8010 { (eval echo "$as_me:8010: \"$ac_try\"") >&5
8013 echo "$as_me:8013: \$? = $ac_status" >&5
8014 (exit "$ac_status"); }; }; then
8015 ac_cv_lib_dl_dlsym=yes
8017 echo "$as_me: failed program was:" >&5
8018 cat "conftest.$ac_ext" >&5
8019 ac_cv_lib_dl_dlsym=no
8021 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8022 LIBS=$ac_check_lib_save_LIBS
8024 echo "$as_me:8024: result: $ac_cv_lib_dl_dlsym" >&5
8025 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8026 if test "$ac_cv_lib_dl_dlsym" = yes; then
8034 if test "$cf_have_dlsym" = yes ; then
8035 test "$cf_have_libdl" = yes && {
8039 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8041 for cf_add_1lib in $cf_add_0lib; do
8042 for cf_add_2lib in $cf_add_libs; do
8043 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8048 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8053 echo "$as_me:8053: checking whether able to link to dl*() functions" >&5
8054 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
8055 cat >"conftest.$ac_ext" <<_ACEOF
8056 #line 8056 "configure"
8057 #include "confdefs.h"
8064 if ((obj = dlopen("filename", 0)) != 0) {
8065 if (dlsym(obj, "symbolname") == 0) {
8073 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8074 if { (eval echo "$as_me:8074: \"$ac_link\"") >&5
8075 (eval $ac_link) 2>&5
8077 echo "$as_me:8077: \$? = $ac_status" >&5
8078 (exit "$ac_status"); } &&
8079 { ac_try='test -s "conftest$ac_exeext"'
8080 { (eval echo "$as_me:8080: \"$ac_try\"") >&5
8083 echo "$as_me:8083: \$? = $ac_status" >&5
8084 (exit "$ac_status"); }; }; then
8086 cat >>confdefs.h <<\EOF
8087 #define HAVE_LIBDL 1
8091 echo "$as_me: failed program was:" >&5
8092 cat "conftest.$ac_ext" >&5
8094 { { echo "$as_me:8094: error: Cannot link test program for libdl" >&5
8095 echo "$as_me: error: Cannot link test program for libdl" >&2;}
8096 { (exit 1); exit 1; }; }
8098 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8099 echo "$as_me:8099: result: ok" >&5
8100 echo "${ECHO_T}ok" >&6
8102 { { echo "$as_me:8102: error: Cannot find dlsym function" >&5
8103 echo "$as_me: error: Cannot find dlsym function" >&2;}
8104 { (exit 1); exit 1; }; }
8107 if test "x$with_gpm" != xyes ; then
8108 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
8110 echo "${as_me:-configure}:8110: testing assuming soname for gpm is $with_gpm ..." 1>&5
8112 cf_cv_gpm_soname="$with_gpm"
8115 echo "$as_me:8115: checking for soname of gpm library" >&5
8116 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
8117 if test "${cf_cv_gpm_soname+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 cf_cv_gpm_soname=unknown
8122 if test "$cross_compiling" != yes ; then
8123 cat >conftest.$ac_ext <<CF_EOF
8127 if (Gpm_Open(0,0)) Gpm_Close();
8128 ${cf_cv_main_return:-return}(0);
8131 cf_save_LIBS="$LIBS"
8136 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8138 for cf_add_1lib in $cf_add_0lib; do
8139 for cf_add_2lib in $cf_add_libs; do
8140 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8145 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8149 if { (eval echo "$as_me:8149: \"$ac_compile\"") >&5
8150 (eval $ac_compile) 2>&5
8152 echo "$as_me:8152: \$? = $ac_status" >&5
8153 (exit "$ac_status"); } ; then
8154 if { (eval echo "$as_me:8154: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>&5
8157 echo "$as_me:8157: \$? = $ac_status" >&5
8158 (exit "$ac_status"); } ; then
8159 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
8160 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
8164 LIBS="$cf_save_LIBS"
8168 echo "$as_me:8168: result: $cf_cv_gpm_soname" >&5
8169 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
8172 test "$cf_cv_gpm_soname" != "unknown" &&
8173 cat >>confdefs.h <<EOF
8174 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
8177 SHLIB_LIST="-ldl $SHLIB_LIST"
8179 cf_add_libs="$PRIVATE_LIBS"
8182 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8184 for cf_add_1lib in $cf_add_0lib; do
8185 for cf_add_2lib in $cf_add_libs; do
8186 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8191 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8193 PRIVATE_LIBS="$cf_add_libs"
8196 SHLIB_LIST="-lgpm $SHLIB_LIST"
8198 cf_add_libs="$TEST_LIBS"
8201 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8203 for cf_add_1lib in $cf_add_0lib; do
8204 for cf_add_2lib in $cf_add_libs; do
8205 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8210 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8212 TEST_LIBS="$cf_add_libs"
8214 cf_add_libs="$PRIVATE_LIBS"
8217 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8219 for cf_add_1lib in $cf_add_0lib; do
8220 for cf_add_2lib in $cf_add_libs; do
8221 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8226 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8228 PRIVATE_LIBS="$cf_add_libs"
8232 cat >>confdefs.h <<\EOF
8233 #define HAVE_LIBGPM 1
8236 echo "$as_me:8236: checking for Gpm_Wgetch in -lgpm" >&5
8237 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
8238 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 ac_check_lib_save_LIBS=$LIBS
8243 cat >"conftest.$ac_ext" <<_ACEOF
8244 #line 8244 "configure"
8245 #include "confdefs.h"
8247 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8253 char Gpm_Wgetch (void);
8262 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8263 if { (eval echo "$as_me:8263: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8266 echo "$as_me:8266: \$? = $ac_status" >&5
8267 (exit "$ac_status"); } &&
8268 { ac_try='test -s "conftest$ac_exeext"'
8269 { (eval echo "$as_me:8269: \"$ac_try\"") >&5
8272 echo "$as_me:8272: \$? = $ac_status" >&5
8273 (exit "$ac_status"); }; }; then
8274 ac_cv_lib_gpm_Gpm_Wgetch=yes
8276 echo "$as_me: failed program was:" >&5
8277 cat "conftest.$ac_ext" >&5
8278 ac_cv_lib_gpm_Gpm_Wgetch=no
8280 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8281 LIBS=$ac_check_lib_save_LIBS
8283 echo "$as_me:8283: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
8284 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
8285 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
8287 echo "$as_me:8287: checking if GPM is weakly bound to curses library" >&5
8288 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
8289 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 cf_cv_check_gpm_wgetch=unknown
8294 if test "$cross_compiling" != yes ; then
8296 cat >conftest.$ac_ext <<CF_EOF
8301 ${cf_cv_main_return:-return}(0);
8305 cf_save_LIBS="$LIBS"
8306 # This only works if we can look at the symbol table. If a shared
8307 # library is stripped for install, we cannot use that. So we're forced
8308 # to rely on the static library, noting that some packagers may not
8310 LIBS="-static -lgpm -dynamic $LIBS"
8311 if { (eval echo "$as_me:8311: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>&5
8314 echo "$as_me:8314: \$? = $ac_status" >&5
8315 (exit "$ac_status"); } ; then
8316 if { (eval echo "$as_me:8316: \"$ac_link\"") >&5
8317 (eval $ac_link) 2>&5
8319 echo "$as_me:8319: \$? = $ac_status" >&5
8320 (exit "$ac_status"); } ; then
8321 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
8322 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
8323 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
8327 LIBS="$cf_save_LIBS"
8331 echo "$as_me:8331: result: $cf_cv_check_gpm_wgetch" >&5
8332 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
8334 if test "$cf_cv_check_gpm_wgetch" != yes ; then
8335 { echo "$as_me:8335: WARNING: GPM library is already linked with curses - read the FAQ" >&5
8336 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
8343 echo "$as_me:8343: checking if you want to use PCRE2 for regular-expressions" >&5
8344 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
8346 # Check whether --with-pcre2 or --without-pcre2 was given.
8347 if test "${with_pcre2+set}" = set; then
8348 withval="$with_pcre2"
8351 test -z "$with_pcre2" && with_pcre2=no
8352 echo "$as_me:8352: result: $with_pcre2" >&5
8353 echo "${ECHO_T}$with_pcre2" >&6
8355 if test "x$with_pcre2" != xno ; then
8357 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
8360 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
8361 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
8363 echo "${as_me:-configure}:8363: testing found package $cf_with_pcre2 ..." 1>&5
8365 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
8366 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
8367 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
8369 echo "${as_me:-configure}:8369: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8371 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
8373 echo "${as_me:-configure}:8373: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
8378 cf_new_extra_cppflags=
8380 for cf_add_cflags in $cf_pkgconfig_incs
8382 case "$cf_fix_cppflags" in
8384 case "$cf_add_cflags" in
8385 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8386 case "$cf_add_cflags" in
8388 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8390 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8391 && test -z "${cf_tst_cflags}" \
8392 && cf_fix_cppflags=yes
8394 if test "$cf_fix_cppflags" = yes ; then
8396 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8397 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8400 elif test "${cf_tst_cflags}" = "\"'" ; then
8402 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8403 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8413 case "$cf_add_cflags" in
8415 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8417 CPPFLAGS=`echo "$CPPFLAGS" | \
8418 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8419 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8424 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8425 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8432 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8433 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8440 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8441 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8443 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8445 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8446 && test -z "${cf_tst_cflags}" \
8447 && cf_fix_cppflags=no
8452 if test -n "$cf_new_cflags" ; then
8454 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8455 CFLAGS="${CFLAGS}$cf_new_cflags"
8459 if test -n "$cf_new_cppflags" ; then
8461 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8462 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8466 if test -n "$cf_new_extra_cppflags" ; then
8468 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8469 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8476 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8478 for cf_add_1lib in $cf_add_0lib; do
8479 for cf_add_2lib in $cf_add_libs; do
8480 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8485 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8489 cf_with_pcre2_ok=yes; break
8497 cf_with_pcre2_ok=yes || { { echo "$as_me:8497: error: Cannot find PCRE2 library" >&5
8498 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
8499 { (exit 1); exit 1; }; }
8501 cat >>confdefs.h <<\EOF
8502 #define HAVE_LIB_PCRE2 1
8505 # if pkgconfig gave no results, look for the libraries directly
8507 (*pcre2-posix*|*pcreposix*)
8510 echo "$as_me:8510: checking for regcomp in -lpcre2-posix" >&5
8511 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
8512 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 ac_check_lib_save_LIBS=$LIBS
8516 LIBS="-lpcre2-posix $LIBS"
8517 cat >"conftest.$ac_ext" <<_ACEOF
8518 #line 8518 "configure"
8519 #include "confdefs.h"
8521 /* Override any gcc2 internal prototype to avoid an error. */
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527 char regcomp (void);
8536 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8537 if { (eval echo "$as_me:8537: \"$ac_link\"") >&5
8538 (eval $ac_link) 2>&5
8540 echo "$as_me:8540: \$? = $ac_status" >&5
8541 (exit "$ac_status"); } &&
8542 { ac_try='test -s "conftest$ac_exeext"'
8543 { (eval echo "$as_me:8543: \"$ac_try\"") >&5
8546 echo "$as_me:8546: \$? = $ac_status" >&5
8547 (exit "$ac_status"); }; }; then
8548 ac_cv_lib_pcre2_posix_regcomp=yes
8550 echo "$as_me: failed program was:" >&5
8551 cat "conftest.$ac_ext" >&5
8552 ac_cv_lib_pcre2_posix_regcomp=no
8554 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8555 LIBS=$ac_check_lib_save_LIBS
8557 echo "$as_me:8557: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
8558 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
8559 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
8564 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8566 for cf_add_1lib in $cf_add_0lib; do
8567 for cf_add_2lib in $cf_add_libs; do
8568 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8573 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8578 echo "$as_me:8578: checking for regcomp in -lpcreposix" >&5
8579 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
8580 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 ac_check_lib_save_LIBS=$LIBS
8584 LIBS="-lpcreposix $LIBS"
8585 cat >"conftest.$ac_ext" <<_ACEOF
8586 #line 8586 "configure"
8587 #include "confdefs.h"
8589 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8595 char regcomp (void);
8604 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8605 if { (eval echo "$as_me:8605: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>&5
8608 echo "$as_me:8608: \$? = $ac_status" >&5
8609 (exit "$ac_status"); } &&
8610 { ac_try='test -s "conftest$ac_exeext"'
8611 { (eval echo "$as_me:8611: \"$ac_try\"") >&5
8614 echo "$as_me:8614: \$? = $ac_status" >&5
8615 (exit "$ac_status"); }; }; then
8616 ac_cv_lib_pcreposix_regcomp=yes
8618 echo "$as_me: failed program was:" >&5
8619 cat "conftest.$ac_ext" >&5
8620 ac_cv_lib_pcreposix_regcomp=no
8622 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8623 LIBS=$ac_check_lib_save_LIBS
8625 echo "$as_me:8625: result: $ac_cv_lib_pcreposix_regcomp" >&5
8626 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
8627 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
8632 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8634 for cf_add_1lib in $cf_add_0lib; do
8635 for cf_add_2lib in $cf_add_libs; do
8636 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8641 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8646 { { echo "$as_me:8646: error: Cannot find PCRE2 POSIX library" >&5
8647 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
8648 { (exit 1); exit 1; }; }
8656 # either way, check for the library header files
8658 for ac_header in pcre2posix.h pcreposix.h
8660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8661 echo "$as_me:8661: checking for $ac_header" >&5
8662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 cat >"conftest.$ac_ext" <<_ACEOF
8667 #line 8667 "configure"
8668 #include "confdefs.h"
8669 #include <$ac_header>
8671 if { (eval echo "$as_me:8671: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8672 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8674 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8676 cat conftest.err >&5
8677 echo "$as_me:8677: \$? = $ac_status" >&5
8678 (exit "$ac_status"); } >/dev/null; then
8679 if test -s conftest.err; then
8680 ac_cpp_err=$ac_c_preproc_warn_flag
8687 if test -z "$ac_cpp_err"; then
8688 eval "$as_ac_Header=yes"
8690 echo "$as_me: failed program was:" >&5
8691 cat "conftest.$ac_ext" >&5
8692 eval "$as_ac_Header=no"
8694 rm -f conftest.err "conftest.$ac_ext"
8696 echo "$as_me:8696: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8697 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8698 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8699 cat >>confdefs.h <<EOF
8700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8706 for ac_func in PCRE2regcomp
8708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8709 echo "$as_me:8709: checking for $ac_func" >&5
8710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8711 if eval "test \"\${$as_ac_var+set}\" = set"; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 cat >"conftest.$ac_ext" <<_ACEOF
8715 #line 8715 "configure"
8716 #include "confdefs.h"
8717 #define $ac_func autoconf_temporary
8718 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8727 char $ac_func (void);
8733 /* The GNU C library defines stubs for functions which it implements
8734 to always fail with ENOSYS. Some functions are actually named
8735 something starting with __ and the normal name is an alias. */
8736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8737 #error found stub for $ac_func
8745 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8746 if { (eval echo "$as_me:8746: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8749 echo "$as_me:8749: \$? = $ac_status" >&5
8750 (exit "$ac_status"); } &&
8751 { ac_try='test -s "conftest$ac_exeext"'
8752 { (eval echo "$as_me:8752: \"$ac_try\"") >&5
8755 echo "$as_me:8755: \$? = $ac_status" >&5
8756 (exit "$ac_status"); }; }; then
8757 eval "$as_ac_var=yes"
8759 echo "$as_me: failed program was:" >&5
8760 cat "conftest.$ac_ext" >&5
8761 eval "$as_ac_var=no"
8763 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8765 echo "$as_me:8765: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8766 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8767 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8768 cat >>confdefs.h <<EOF
8769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8777 # not everyone has "test -c"
8778 if test -c /dev/sysmouse 2>/dev/null ; then
8779 echo "$as_me:8779: checking if you want to use sysmouse" >&5
8780 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8782 # Check whether --with-sysmouse or --without-sysmouse was given.
8783 if test "${with_sysmouse+set}" = set; then
8784 withval="$with_sysmouse"
8785 cf_with_sysmouse=$withval
8787 cf_with_sysmouse=maybe
8789 if test "$cf_with_sysmouse" != no ; then
8790 cat >"conftest.$ac_ext" <<_ACEOF
8791 #line 8791 "configure"
8792 #include "confdefs.h"
8794 #include <osreldate.h>
8795 #if (__FreeBSD_version >= 400017)
8796 #include <sys/consio.h>
8797 #include <sys/fbio.h>
8799 #include <machine/console.h>
8806 struct mouse_info the_mouse;
8807 ioctl(0, CONS_MOUSECTL, &the_mouse);
8813 rm -f "conftest.$ac_objext"
8814 if { (eval echo "$as_me:8814: \"$ac_compile\"") >&5
8815 (eval $ac_compile) 2>&5
8817 echo "$as_me:8817: \$? = $ac_status" >&5
8818 (exit "$ac_status"); } &&
8819 { ac_try='test -s "conftest.$ac_objext"'
8820 { (eval echo "$as_me:8820: \"$ac_try\"") >&5
8823 echo "$as_me:8823: \$? = $ac_status" >&5
8824 (exit "$ac_status"); }; }; then
8825 cf_with_sysmouse=yes
8827 echo "$as_me: failed program was:" >&5
8828 cat "conftest.$ac_ext" >&5
8831 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8833 echo "$as_me:8833: result: $cf_with_sysmouse" >&5
8834 echo "${ECHO_T}$cf_with_sysmouse" >&6
8835 test "$cf_with_sysmouse" = yes &&
8836 cat >>confdefs.h <<\EOF
8837 #define USE_SYSMOUSE 1
8842 # pretend that ncurses==ncursesw==ncursest
8843 echo "$as_me:8843: checking if you want to disable library suffixes" >&5
8844 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8846 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8847 if test "${enable_lib_suffixes+set}" = set; then
8848 enableval="$enable_lib_suffixes"
8849 test "$enableval" != no && enableval=yes
8850 if test "$enableval" != "yes" ; then
8851 disable_lib_suffixes=yes
8853 disable_lib_suffixes=no
8857 disable_lib_suffixes=no
8860 echo "$as_me:8860: result: $disable_lib_suffixes" >&5
8861 echo "${ECHO_T}$disable_lib_suffixes" >&6
8863 ### If we're building with rpath, try to link non-standard libs that way too.
8864 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8866 echo "$as_me:8866: checking if rpath-hack should be disabled" >&5
8867 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8869 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8870 if test "${enable_rpath_hack+set}" = set; then
8871 enableval="$enable_rpath_hack"
8872 test "$enableval" != no && enableval=yes
8873 if test "$enableval" != "yes" ; then
8874 enable_rpath_hack=no
8876 enable_rpath_hack=yes
8880 enable_rpath_hack=yes
8883 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8884 echo "$as_me:8884: result: $cf_disable_rpath_hack" >&5
8885 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8887 if test "$enable_rpath_hack" = yes ; then
8889 echo "$as_me:8889: checking for updated LDFLAGS" >&5
8890 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8891 if test -n "$LD_RPATH_OPT" ; then
8892 echo "$as_me:8892: result: maybe" >&5
8893 echo "${ECHO_T}maybe" >&6
8897 # Extract the first word of "$ac_prog", so it can be a program name with args.
8898 set dummy $ac_prog; ac_word=$2
8899 echo "$as_me:8899: checking for $ac_word" >&5
8900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8901 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 if test -n "$cf_ldd_prog"; then
8905 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8907 ac_save_IFS=$IFS; IFS=$ac_path_separator
8909 for ac_dir in $ac_dummy; do
8911 test -z "$ac_dir" && ac_dir=.
8912 $as_executable_p "$ac_dir/$ac_word" || continue
8913 ac_cv_prog_cf_ldd_prog="$ac_prog"
8914 echo "$as_me:8914: found $ac_dir/$ac_word" >&5
8920 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8921 if test -n "$cf_ldd_prog"; then
8922 echo "$as_me:8922: result: $cf_ldd_prog" >&5
8923 echo "${ECHO_T}$cf_ldd_prog" >&6
8925 echo "$as_me:8925: result: no" >&5
8926 echo "${ECHO_T}no" >&6
8929 test -n "$cf_ldd_prog" && break
8931 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8933 cf_rpath_list="/usr/lib /lib"
8934 if test "$cf_ldd_prog" != no
8938 cat >"conftest.$ac_ext" <<_ACEOF
8939 #line 8939 "configure"
8940 #include "confdefs.h"
8950 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8951 if { (eval echo "$as_me:8951: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>&5
8954 echo "$as_me:8954: \$? = $ac_status" >&5
8955 (exit "$ac_status"); } &&
8956 { ac_try='test -s "conftest$ac_exeext"'
8957 { (eval echo "$as_me:8957: \"$ac_try\"") >&5
8960 echo "$as_me:8960: \$? = $ac_status" >&5
8961 (exit "$ac_status"); }; }; then
8962 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8963 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8965 echo "$as_me: failed program was:" >&5
8966 cat "conftest.$ac_ext" >&5
8968 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8970 # If we passed the link-test, but get a "not found" on a given library,
8971 # this could be due to inept reconfiguration of gcc to make it only
8972 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8973 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8974 # /usr/local libraries.
8975 if test -n "$cf_rpath_oops"
8977 for cf_rpath_src in $cf_rpath_oops
8979 for cf_rpath_dir in \
8984 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8986 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8988 echo "${as_me:-configure}:8988: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8990 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8998 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
9000 echo "${as_me:-configure}:9000: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
9002 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
9004 echo "${as_me:-configure}:9004: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
9007 for cf_rpath_src in $LDFLAGS
9009 case "$cf_rpath_src" in
9012 # check if this refers to a directory which we will ignore
9014 if test -n "$cf_rpath_list"
9016 for cf_rpath_item in $cf_rpath_list
9018 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
9026 if test "$cf_rpath_skip" = no
9028 # transform the option
9029 if test "$LD_RPATH_OPT" = "-R " ; then
9030 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
9032 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
9035 # if we have not already added this, add it now
9036 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
9037 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
9039 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
9041 echo "${as_me:-configure}:9041: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
9043 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
9048 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
9050 LDFLAGS=$cf_rpath_dst
9052 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
9054 echo "${as_me:-configure}:9054: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
9056 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
9058 echo "${as_me:-configure}:9058: testing ...checking LIBS $LIBS ..." 1>&5
9061 for cf_rpath_src in $LIBS
9063 case "$cf_rpath_src" in
9066 # check if this refers to a directory which we will ignore
9068 if test -n "$cf_rpath_list"
9070 for cf_rpath_item in $cf_rpath_list
9072 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
9080 if test "$cf_rpath_skip" = no
9082 # transform the option
9083 if test "$LD_RPATH_OPT" = "-R " ; then
9084 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
9086 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
9089 # if we have not already added this, add it now
9090 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
9091 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
9093 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
9095 echo "${as_me:-configure}:9095: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
9097 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
9102 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
9106 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
9108 echo "${as_me:-configure}:9108: testing ...checked LIBS $LIBS ..." 1>&5
9110 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
9112 echo "${as_me:-configure}:9112: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
9115 echo "$as_me:9115: result: no" >&5
9116 echo "${ECHO_T}no" >&6
9123 ### Depending on the system, someone may use rpath to build ncurses but not
9124 # want users of the package to rely upon that feature. Give those people an
9125 # option to suppress that detail from EXTRA_LDFLAGS.
9126 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
9127 if test -n "$EXTRA_PKG_LDFLAGS"
9129 echo "$as_me:9129: checking if you want to disable extra LDFLAGS for package-scripts" >&5
9130 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
9132 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
9133 if test "${enable_pkg_ldflags+set}" = set; then
9134 enableval="$enable_pkg_ldflags"
9135 test "$enableval" != no && enableval=yes
9136 if test "$enableval" != "yes" ; then
9137 disable_pkg_ldflags=yes
9139 disable_pkg_ldflags=no
9143 disable_pkg_ldflags=no
9146 echo "$as_me:9146: result: $disable_pkg_ldflags" >&5
9147 echo "${ECHO_T}$disable_pkg_ldflags" >&6
9148 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
9151 ###############################################################################
9153 ### use option --with-extra-suffix to append suffix to headers and libraries
9154 echo "$as_me:9154: checking for extra suffix to append to header/library paths" >&5
9155 echo $ECHO_N "checking for extra suffix to append to header/library paths... $ECHO_C" >&6
9158 # Check whether --with-extra-suffix or --without-extra-suffix was given.
9159 if test "${with_extra_suffix+set}" = set; then
9160 withval="$with_extra_suffix"
9165 EXTRA_SUFFIX=$cf_cv_abi_version
9168 EXTRA_SUFFIX=$withval
9173 echo "$as_me:9173: result: ${EXTRA_SUFFIX:-(none)}" >&5
9174 echo "${ECHO_T}${EXTRA_SUFFIX:-(none)}" >&6
9176 ### use option --disable-overwrite to leave out the link to -lcurses
9177 echo "$as_me:9177: checking if you wish to install ncurses overwriting curses" >&5
9178 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
9180 # Check whether --enable-overwrite or --disable-overwrite was given.
9181 if test "${enable_overwrite+set}" = set; then
9182 enableval="$enable_overwrite"
9183 with_overwrite=$enableval
9185 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
9187 echo "$as_me:9187: result: $with_overwrite" >&5
9188 echo "${ECHO_T}$with_overwrite" >&6
9190 echo "$as_me:9190: checking if external terminfo-database is used" >&5
9191 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
9193 # Check whether --enable-database or --disable-database was given.
9194 if test "${enable_database+set}" = set; then
9195 enableval="$enable_database"
9196 use_database=$enableval
9200 echo "$as_me:9200: result: $use_database" >&5
9201 echo "${ECHO_T}$use_database" >&6
9205 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
9208 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
9212 NCURSES_USE_DATABASE=0
9213 if test "$use_database" != no ; then
9214 NCURSES_USE_DATABASE=1
9216 echo "$as_me:9216: checking which terminfo source-file will be installed" >&5
9217 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
9219 # Check whether --with-database or --without-database was given.
9220 if test "${with_database+set}" = set; then
9221 withval="$with_database"
9222 TERMINFO_SRC=$withval
9224 echo "$as_me:9224: result: $TERMINFO_SRC" >&5
9225 echo "${ECHO_T}$TERMINFO_SRC" >&6
9227 echo "$as_me:9227: checking whether to use hashed database instead of directory/tree" >&5
9228 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
9230 # Check whether --with-hashed-db or --without-hashed-db was given.
9231 if test "${with_hashed_db+set}" = set; then
9232 withval="$with_hashed_db"
9237 echo "$as_me:9237: result: $with_hashed_db" >&5
9238 echo "${ECHO_T}$with_hashed_db" >&6
9243 echo "$as_me:9243: checking for list of fallback terminal descriptions" >&5
9244 echo $ECHO_N "checking for list of fallback terminal descriptions... $ECHO_C" >&6
9246 # Check whether --with-fallbacks or --without-fallbacks was given.
9247 if test "${with_fallbacks+set}" = set; then
9248 withval="$with_fallbacks"
9249 with_fallback=$withval
9253 echo "$as_me:9253: result: ${with_fallback:-(none)}" >&5
9254 echo "${ECHO_T}${with_fallback:-(none)}" >&6
9256 case ".$with_fallback" in
9261 { echo "$as_me:9261: WARNING: expected a list of terminal descriptions" >&5
9262 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
9265 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
9269 # The fallback feature in ncurses relies upon tic/infocmp outside the build
9270 # tree for generating the terminal descriptions that will be compiled into the
9271 # library. If your toolchain is old, it may not handle current terminal
9272 # databases. Use configure-options to point to the tools which will be used,
9273 # rather than the first ones found on the $PATH.
9274 if test -n "$ac_tool_prefix"; then
9275 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
9276 set dummy ${ac_tool_prefix}tic; ac_word=$2
9277 echo "$as_me:9277: checking for $ac_word" >&5
9278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9279 if test "${ac_cv_prog_TIC+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 if test -n "$TIC"; then
9283 ac_cv_prog_TIC="$TIC" # Let the user override the test.
9285 ac_save_IFS=$IFS; IFS=$ac_path_separator
9287 for ac_dir in $ac_dummy; do
9289 test -z "$ac_dir" && ac_dir=.
9290 $as_executable_p "$ac_dir/$ac_word" || continue
9291 ac_cv_prog_TIC="${ac_tool_prefix}tic"
9292 echo "$as_me:9292: found $ac_dir/$ac_word" >&5
9299 if test -n "$TIC"; then
9300 echo "$as_me:9300: result: $TIC" >&5
9301 echo "${ECHO_T}$TIC" >&6
9303 echo "$as_me:9303: result: no" >&5
9304 echo "${ECHO_T}no" >&6
9308 if test -z "$ac_cv_prog_TIC"; then
9310 # Extract the first word of "tic", so it can be a program name with args.
9311 set dummy tic; ac_word=$2
9312 echo "$as_me:9312: checking for $ac_word" >&5
9313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9314 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 if test -n "$ac_ct_TIC"; then
9318 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
9320 ac_save_IFS=$IFS; IFS=$ac_path_separator
9322 for ac_dir in $ac_dummy; do
9324 test -z "$ac_dir" && ac_dir=.
9325 $as_executable_p "$ac_dir/$ac_word" || continue
9326 ac_cv_prog_ac_ct_TIC="tic"
9327 echo "$as_me:9327: found $ac_dir/$ac_word" >&5
9333 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
9334 if test -n "$ac_ct_TIC"; then
9335 echo "$as_me:9335: result: $ac_ct_TIC" >&5
9336 echo "${ECHO_T}$ac_ct_TIC" >&6
9338 echo "$as_me:9338: result: no" >&5
9339 echo "${ECHO_T}no" >&6
9344 TIC="$ac_cv_prog_TIC"
9347 if test -n "$ac_tool_prefix"; then
9348 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
9349 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
9350 echo "$as_me:9350: checking for $ac_word" >&5
9351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9352 if test "${ac_cv_prog_INFOCMP+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 if test -n "$INFOCMP"; then
9356 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
9358 ac_save_IFS=$IFS; IFS=$ac_path_separator
9360 for ac_dir in $ac_dummy; do
9362 test -z "$ac_dir" && ac_dir=.
9363 $as_executable_p "$ac_dir/$ac_word" || continue
9364 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
9365 echo "$as_me:9365: found $ac_dir/$ac_word" >&5
9371 INFOCMP=$ac_cv_prog_INFOCMP
9372 if test -n "$INFOCMP"; then
9373 echo "$as_me:9373: result: $INFOCMP" >&5
9374 echo "${ECHO_T}$INFOCMP" >&6
9376 echo "$as_me:9376: result: no" >&5
9377 echo "${ECHO_T}no" >&6
9381 if test -z "$ac_cv_prog_INFOCMP"; then
9382 ac_ct_INFOCMP=$INFOCMP
9383 # Extract the first word of "infocmp", so it can be a program name with args.
9384 set dummy infocmp; ac_word=$2
9385 echo "$as_me:9385: checking for $ac_word" >&5
9386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9387 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 if test -n "$ac_ct_INFOCMP"; then
9391 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
9393 ac_save_IFS=$IFS; IFS=$ac_path_separator
9395 for ac_dir in $ac_dummy; do
9397 test -z "$ac_dir" && ac_dir=.
9398 $as_executable_p "$ac_dir/$ac_word" || continue
9399 ac_cv_prog_ac_ct_INFOCMP="infocmp"
9400 echo "$as_me:9400: found $ac_dir/$ac_word" >&5
9406 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
9407 if test -n "$ac_ct_INFOCMP"; then
9408 echo "$as_me:9408: result: $ac_ct_INFOCMP" >&5
9409 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
9411 echo "$as_me:9411: result: no" >&5
9412 echo "${ECHO_T}no" >&6
9415 INFOCMP=$ac_ct_INFOCMP
9417 INFOCMP="$ac_cv_prog_INFOCMP"
9420 if test -n "$FALLBACK_LIST"
9423 # Check whether --with-tic-path or --without-tic-path was given.
9424 if test "${with_tic_path+set}" = set; then
9425 withval="$with_tic_path"
9426 echo "$as_me:9426: checking for tic program for fallbacks" >&5
9427 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
9429 echo "$as_me:9429: result: $TIC" >&5
9430 echo "${ECHO_T}$TIC" >&6
9432 if test "x$prefix" != xNONE; then
9433 cf_path_syntax="$prefix"
9435 cf_path_syntax="$ac_default_prefix"
9443 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9445 (.\$\{*prefix\}*|.\$\{*dir\}*)
9449 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9454 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9457 { { echo "$as_me:9457: error: expected a pathname, not \"$TIC\"" >&5
9458 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
9459 { (exit 1); exit 1; }; }
9465 test -z "$TIC" && TIC="tic"
9466 for ac_prog in $TIC tic
9468 # Extract the first word of "$ac_prog", so it can be a program name with args.
9469 set dummy $ac_prog; ac_word=$2
9470 echo "$as_me:9470: checking for $ac_word" >&5
9471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9472 if test "${ac_cv_path_TIC+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9480 ac_save_IFS=$IFS; IFS=$ac_path_separator
9481 ac_dummy="$PATH:/usr/local/ncurses/bin"
9482 for ac_dir in $ac_dummy; do
9484 test -z "$ac_dir" && ac_dir=.
9485 if $as_executable_p "$ac_dir/$ac_word"; then
9486 ac_cv_path_TIC="$ac_dir/$ac_word"
9487 echo "$as_me:9487: found $ac_dir/$ac_word" >&5
9497 if test -n "$TIC"; then
9498 echo "$as_me:9498: result: $TIC" >&5
9499 echo "${ECHO_T}$TIC" >&6
9501 echo "$as_me:9501: result: no" >&5
9502 echo "${ECHO_T}no" >&6
9505 test -n "$TIC" && break
9507 test -n "$TIC" || TIC="$TIC"
9511 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9512 for cf_temp in $ac_cv_path_TIC
9514 if test -z "$cf_path_prog" ; then
9515 if test "$with_full_paths" = yes ; then
9517 if test "x$prefix" != xNONE; then
9518 cf_path_syntax="$prefix"
9520 cf_path_syntax="$ac_default_prefix"
9528 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9530 (.\$\{*prefix\}*|.\$\{*dir\}*)
9531 eval cf_temp="$cf_temp"
9534 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9539 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9546 cf_path_prog="$cf_temp"
9548 cf_path_prog="`basename "$cf_temp"`"
9550 elif test -z "$cf_path_args" ; then
9551 cf_path_args="$cf_temp"
9553 cf_path_args="$cf_path_args $cf_temp"
9558 if test -n "$cf_path_prog" ; then
9560 echo "${as_me:-configure}:9560: testing defining path for ${cf_path_prog} ..." 1>&5
9562 cat >>confdefs.h <<EOF
9563 #define TIC_PATH "$cf_path_prog"
9566 test -n "$cf_path_args" &&
9567 cat >>confdefs.h <<EOF
9568 #define TIC_ARGS "$cf_path_args"
9575 { echo "$as_me:9575: WARNING: no tic program found for fallbacks" >&5
9576 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
9581 # Check whether --with-infocmp-path or --without-infocmp-path was given.
9582 if test "${with_infocmp_path+set}" = set; then
9583 withval="$with_infocmp_path"
9584 echo "$as_me:9584: checking for infocmp program for fallbacks" >&5
9585 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
9587 echo "$as_me:9587: result: $INFOCMP" >&5
9588 echo "${ECHO_T}$INFOCMP" >&6
9590 if test "x$prefix" != xNONE; then
9591 cf_path_syntax="$prefix"
9593 cf_path_syntax="$ac_default_prefix"
9601 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9603 (.\$\{*prefix\}*|.\$\{*dir\}*)
9604 eval INFOCMP="$INFOCMP"
9607 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9612 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9615 { { echo "$as_me:9615: error: expected a pathname, not \"$INFOCMP\"" >&5
9616 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
9617 { (exit 1); exit 1; }; }
9623 test -z "$INFOCMP" && INFOCMP="infocmp"
9624 for ac_prog in $INFOCMP infocmp
9626 # Extract the first word of "$ac_prog", so it can be a program name with args.
9627 set dummy $ac_prog; ac_word=$2
9628 echo "$as_me:9628: checking for $ac_word" >&5
9629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9630 if test "${ac_cv_path_INFOCMP+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
9638 ac_save_IFS=$IFS; IFS=$ac_path_separator
9639 ac_dummy="$PATH:/usr/local/ncurses/bin"
9640 for ac_dir in $ac_dummy; do
9642 test -z "$ac_dir" && ac_dir=.
9643 if $as_executable_p "$ac_dir/$ac_word"; then
9644 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
9645 echo "$as_me:9645: found $ac_dir/$ac_word" >&5
9653 INFOCMP=$ac_cv_path_INFOCMP
9655 if test -n "$INFOCMP"; then
9656 echo "$as_me:9656: result: $INFOCMP" >&5
9657 echo "${ECHO_T}$INFOCMP" >&6
9659 echo "$as_me:9659: result: no" >&5
9660 echo "${ECHO_T}no" >&6
9663 test -n "$INFOCMP" && break
9665 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
9669 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9670 for cf_temp in $ac_cv_path_INFOCMP
9672 if test -z "$cf_path_prog" ; then
9673 if test "$with_full_paths" = yes ; then
9675 if test "x$prefix" != xNONE; then
9676 cf_path_syntax="$prefix"
9678 cf_path_syntax="$ac_default_prefix"
9686 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9688 (.\$\{*prefix\}*|.\$\{*dir\}*)
9689 eval cf_temp="$cf_temp"
9692 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9697 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9704 cf_path_prog="$cf_temp"
9706 cf_path_prog="`basename "$cf_temp"`"
9708 elif test -z "$cf_path_args" ; then
9709 cf_path_args="$cf_temp"
9711 cf_path_args="$cf_path_args $cf_temp"
9716 if test -n "$cf_path_prog" ; then
9718 echo "${as_me:-configure}:9718: testing defining path for ${cf_path_prog} ..." 1>&5
9720 cat >>confdefs.h <<EOF
9721 #define INFOCMP_PATH "$cf_path_prog"
9724 test -n "$cf_path_args" &&
9725 cat >>confdefs.h <<EOF
9726 #define INFOCMP_ARGS "$cf_path_args"
9731 if test -z "$INFOCMP"
9733 { echo "$as_me:9733: WARNING: no infocmp program found for fallbacks" >&5
9734 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
9739 test -z "$TIC" && FALLBACK_LIST=
9740 test -z "$INFOCMP" && FALLBACK_LIST=
9741 if test -z "$FALLBACK_LIST"
9743 { echo "$as_me:9743: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
9744 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
9749 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
9751 echo "$as_me:9751: checking if you want modern xterm or antique" >&5
9752 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
9754 # Check whether --with-xterm-new or --without-xterm-new was given.
9755 if test "${with_xterm_new+set}" = set; then
9756 withval="$with_xterm_new"
9757 with_xterm_new=$withval
9761 case "$with_xterm_new" in
9762 (no) with_xterm_new=xterm-old;;
9763 (*) with_xterm_new=xterm-new;;
9765 echo "$as_me:9765: result: $with_xterm_new" >&5
9766 echo "${ECHO_T}$with_xterm_new" >&6
9767 WHICH_XTERM=$with_xterm_new
9770 (*linux-gnu|*cygwin|*mingw32|*msys)
9778 echo "$as_me:9778: checking if xterm backspace sends BS or DEL" >&5
9779 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9781 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9782 if test "${with_xterm_kbs+set}" = set; then
9783 withval="$with_xterm_kbs"
9784 with_xterm_kbs=$withval
9788 case x$with_xterm_kbs in
9789 (xyes|xno|xBS|xbs|x8)
9796 with_xterm_kbs=$want_xterm_kbs
9799 with_xterm_kbs=$withval
9802 echo "$as_me:9802: result: $with_xterm_kbs" >&5
9803 echo "${ECHO_T}$with_xterm_kbs" >&6
9804 XTERM_KBS=$with_xterm_kbs
9806 if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
9808 { echo "$as_me:9808: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&5
9809 echo "$as_me: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&2;}
9813 if test "$use_database" = no ; then
9814 TERMINFO="${datadir}/terminfo"
9818 echo "$as_me:9818: checking for list of terminfo directories" >&5
9819 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9821 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9822 if test "${with_terminfo_dirs+set}" = set; then
9823 withval="$with_terminfo_dirs"
9826 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9828 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9830 for cf_src_path in $withval
9833 if test "x$prefix" != xNONE; then
9834 cf_path_syntax="$prefix"
9836 cf_path_syntax="$ac_default_prefix"
9839 case ".$cf_src_path" in
9844 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9846 (.\$\{*prefix\}*|.\$\{*dir\}*)
9847 eval cf_src_path="$cf_src_path"
9848 case ".$cf_src_path" in
9850 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9855 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9858 { { echo "$as_me:9858: error: expected a pathname, not \"$cf_src_path\"" >&5
9859 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9860 { (exit 1); exit 1; }; }
9864 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9865 cf_dst_path="${cf_dst_path}${cf_src_path}"
9869 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9870 # so we have to check/work around. We do prefer the result of "eval"...
9871 eval cf_dst_eval="$cf_dst_path"
9872 case "x$cf_dst_eval" in
9874 TERMINFO_DIRS=$cf_dst_path
9877 TERMINFO_DIRS="$cf_dst_eval"
9881 echo "$as_me:9881: result: $TERMINFO_DIRS" >&5
9882 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9883 test -n "$TERMINFO_DIRS" &&
9884 cat >>confdefs.h <<EOF
9885 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9888 case "x$TERMINFO" in
9890 { echo "$as_me:9890: WARNING: ignoring non-directory/file TERMINFO value" >&5
9891 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9896 echo "$as_me:9896: checking for default terminfo directory" >&5
9897 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9899 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9900 if test "${with_default_terminfo_dir+set}" = set; then
9901 withval="$with_default_terminfo_dir"
9904 withval="${TERMINFO:-${datadir}/terminfo}"
9905 fi; if test -n "${datadir}/terminfo" ; then
9907 if test "x$prefix" != xNONE; then
9908 cf_path_syntax="$prefix"
9910 cf_path_syntax="$ac_default_prefix"
9918 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9920 (.\$\{*prefix\}*|.\$\{*dir\}*)
9921 eval withval="$withval"
9924 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9929 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9932 { { echo "$as_me:9932: error: expected a pathname, not \"$withval\"" >&5
9933 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9934 { (exit 1); exit 1; }; }
9939 eval TERMINFO="$withval"
9941 echo "$as_me:9941: result: $TERMINFO" >&5
9942 echo "${ECHO_T}$TERMINFO" >&6
9944 cat >>confdefs.h <<EOF
9945 #define TERMINFO "$TERMINFO"
9950 ### use option --disable-big-core to make tic run on small machines
9951 ### We need 4Mb, check if we can allocate 50% more than that.
9952 echo "$as_me:9952: checking if big-core option selected" >&5
9953 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9955 # Check whether --enable-big-core or --disable-big-core was given.
9956 if test "${enable_big_core+set}" = set; then
9957 enableval="$enable_big_core"
9958 with_big_core=$enableval
9960 if test "$cross_compiling" = yes; then
9963 cat >"conftest.$ac_ext" <<_ACEOF
9964 #line 9964 "configure"
9965 #include "confdefs.h"
9970 unsigned long n = 6000000L;
9971 char *s = malloc(n);
9974 ${cf_cv_main_return:-return}(s == 0);
9977 rm -f "conftest$ac_exeext"
9978 if { (eval echo "$as_me:9978: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>&5
9981 echo "$as_me:9981: \$? = $ac_status" >&5
9982 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9983 { (eval echo "$as_me:9983: \"$ac_try\"") >&5
9986 echo "$as_me:9986: \$? = $ac_status" >&5
9987 (exit "$ac_status"); }; }; then
9990 echo "$as_me: program exited with status $ac_status" >&5
9991 echo "$as_me: failed program was:" >&5
9992 cat "conftest.$ac_ext" >&5
9995 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9998 echo "$as_me:9998: result: $with_big_core" >&5
9999 echo "${ECHO_T}$with_big_core" >&6
10000 test "x$with_big_core" = "xyes" &&
10001 cat >>confdefs.h <<\EOF
10002 #define HAVE_BIG_CORE 1
10005 ### ISO C only guarantees 512-char strings, we have tables which load faster
10006 ### when constructed using "big" strings. More than the C compiler, the awk
10007 ### program is a limit on most vendor UNIX systems. Check that we can build.
10008 echo "$as_me:10008: checking if big-strings option selected" >&5
10009 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
10011 # Check whether --enable-big-strings or --disable-big-strings was given.
10012 if test "${enable_big_strings+set}" = set; then
10013 enableval="$enable_big_strings"
10014 with_big_strings=$enableval
10019 eval with_big_strings=no
10022 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
10023 | $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
10024 eval with_big_strings=yes
10026 eval with_big_strings=no
10032 echo "$as_me:10032: result: $with_big_strings" >&5
10033 echo "${ECHO_T}$with_big_strings" >&6
10036 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
10038 ### use option --enable-termcap to compile in the termcap fallback support
10039 echo "$as_me:10039: checking if you want termcap-fallback support" >&5
10040 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
10042 # Check whether --enable-termcap or --disable-termcap was given.
10043 if test "${enable_termcap+set}" = set; then
10044 enableval="$enable_termcap"
10045 with_termcap=$enableval
10049 echo "$as_me:10049: result: $with_termcap" >&5
10050 echo "${ECHO_T}$with_termcap" >&6
10052 NCURSES_USE_TERMCAP=0
10053 if test "x$with_termcap" != "xyes" ; then
10054 if test "$use_database" = no ; then
10055 if test -z "$with_fallback" ; then
10056 { { echo "$as_me:10056: error: You have disabled the database w/o specifying fallbacks" >&5
10057 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
10058 { (exit 1); exit 1; }; }
10062 cat >>confdefs.h <<\EOF
10063 #define PURE_TERMINFO 1
10068 if test "$with_ticlib" != no ; then
10069 { { echo "$as_me:10069: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
10070 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
10071 { (exit 1); exit 1; }; }
10074 NCURSES_USE_TERMCAP=1
10075 echo "$as_me:10075: checking for list of termcap files" >&5
10076 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
10078 # Check whether --with-termpath or --without-termpath was given.
10079 if test "${with_termpath+set}" = set; then
10080 withval="$with_termpath"
10083 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
10085 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
10087 for cf_src_path in $withval
10090 if test "x$prefix" != xNONE; then
10091 cf_path_syntax="$prefix"
10093 cf_path_syntax="$ac_default_prefix"
10096 case ".$cf_src_path" in
10097 (.\$\(*\)*|.\'*\'*)
10101 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
10103 (.\$\{*prefix\}*|.\$\{*dir\}*)
10104 eval cf_src_path="$cf_src_path"
10105 case ".$cf_src_path" in
10107 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
10112 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
10115 { { echo "$as_me:10115: error: expected a pathname, not \"$cf_src_path\"" >&5
10116 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
10117 { (exit 1); exit 1; }; }
10121 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
10122 cf_dst_path="${cf_dst_path}${cf_src_path}"
10126 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
10127 # so we have to check/work around. We do prefer the result of "eval"...
10128 eval cf_dst_eval="$cf_dst_path"
10129 case "x$cf_dst_eval" in
10131 TERMPATH=$cf_dst_path
10134 TERMPATH="$cf_dst_eval"
10138 echo "$as_me:10138: result: $TERMPATH" >&5
10139 echo "${ECHO_T}$TERMPATH" >&6
10140 test -n "$TERMPATH" &&
10141 cat >>confdefs.h <<EOF
10142 #define TERMPATH "$TERMPATH"
10145 ### use option --enable-getcap to use a hacked getcap for reading termcaps
10146 echo "$as_me:10146: checking if fast termcap-loader is needed" >&5
10147 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
10149 # Check whether --enable-getcap or --disable-getcap was given.
10150 if test "${enable_getcap+set}" = set; then
10151 enableval="$enable_getcap"
10152 with_getcap=$enableval
10156 echo "$as_me:10156: result: $with_getcap" >&5
10157 echo "${ECHO_T}$with_getcap" >&6
10158 test "x$with_getcap" = "xyes" &&
10159 cat >>confdefs.h <<\EOF
10160 #define USE_GETCAP 1
10163 echo "$as_me:10163: checking if translated termcaps will be cached in ~/.terminfo" >&5
10164 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
10166 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
10167 if test "${enable_getcap_cache+set}" = set; then
10168 enableval="$enable_getcap_cache"
10169 with_getcap_cache=$enableval
10171 with_getcap_cache=no
10173 echo "$as_me:10173: result: $with_getcap_cache" >&5
10174 echo "${ECHO_T}$with_getcap_cache" >&6
10175 test "x$with_getcap_cache" = "xyes" &&
10176 cat >>confdefs.h <<\EOF
10177 #define USE_GETCAP_CACHE 1
10182 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
10183 echo "$as_me:10183: checking if ~/.terminfo is wanted" >&5
10184 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
10186 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
10187 if test "${enable_home_terminfo+set}" = set; then
10188 enableval="$enable_home_terminfo"
10189 with_home_terminfo=$enableval
10191 with_home_terminfo=yes
10193 echo "$as_me:10193: result: $with_home_terminfo" >&5
10194 echo "${ECHO_T}$with_home_terminfo" >&6
10195 test "x$with_home_terminfo" = "xyes" &&
10196 cat >>confdefs.h <<\EOF
10197 #define USE_HOME_TERMINFO 1
10200 echo "$as_me:10200: checking if you want to permit root to use ncurses environment variables" >&5
10201 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
10203 # Check whether --enable-root-environ or --disable-root-environ was given.
10204 if test "${enable_root_environ+set}" = set; then
10205 enableval="$enable_root_environ"
10206 with_root_environ=$enableval
10208 with_root_environ=yes
10210 echo "$as_me:10210: result: $with_root_environ" >&5
10211 echo "${ECHO_T}$with_root_environ" >&6
10212 test "x$with_root_environ" = xyes &&
10213 cat >>confdefs.h <<\EOF
10214 #define USE_ROOT_ENVIRON 1
10217 echo "$as_me:10217: checking if you want to permit setuid programs to access all files" >&5
10218 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
10220 # Check whether --enable-root-access or --disable-root-access was given.
10221 if test "${enable_root_access+set}" = set; then
10222 enableval="$enable_root_access"
10223 with_root_access=$enableval
10225 with_root_access=yes
10227 echo "$as_me:10227: result: $with_root_access" >&5
10228 echo "${ECHO_T}$with_root_access" >&6
10229 test "x$with_root_access" = xyes &&
10230 cat >>confdefs.h <<\EOF
10231 #define USE_ROOT_ACCESS 1
10234 echo "$as_me:10234: checking if you want to permit setuid use of ncurses environment variables" >&5
10235 echo $ECHO_N "checking if you want to permit setuid use of ncurses environment variables... $ECHO_C" >&6
10237 # Check whether --enable-setuid-environ or --disable-setuid-environ was given.
10238 if test "${enable_setuid_environ+set}" = set; then
10239 enableval="$enable_setuid_environ"
10240 with_setuid_environ=$enableval
10242 with_setuid_environ=$with_root_environ
10244 echo "$as_me:10244: result: $with_setuid_environ" >&5
10245 echo "${ECHO_T}$with_setuid_environ" >&6
10246 test "x$with_setuid_environ" = xyes &&
10247 cat >>confdefs.h <<\EOF
10248 #define USE_SETUID_ENVIRON 1
10251 ### Use option --enable-symlinks to make tic use symlinks, not hard links
10252 ### to reduce storage requirements for the terminfo database.
10258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10259 echo "$as_me:10259: checking for $ac_header" >&5
10260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 cat >"conftest.$ac_ext" <<_ACEOF
10265 #line 10265 "configure"
10266 #include "confdefs.h"
10267 #include <$ac_header>
10269 if { (eval echo "$as_me:10269: \"$ac_cpp "conftest.$ac_ext"\"") >&5
10270 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
10272 $EGREP -v '^ *\+' conftest.er1 >conftest.err
10274 cat conftest.err >&5
10275 echo "$as_me:10275: \$? = $ac_status" >&5
10276 (exit "$ac_status"); } >/dev/null; then
10277 if test -s conftest.err; then
10278 ac_cpp_err=$ac_c_preproc_warn_flag
10285 if test -z "$ac_cpp_err"; then
10286 eval "$as_ac_Header=yes"
10288 echo "$as_me: failed program was:" >&5
10289 cat "conftest.$ac_ext" >&5
10290 eval "$as_ac_Header=no"
10292 rm -f conftest.err "conftest.$ac_ext"
10294 echo "$as_me:10294: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
10295 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
10296 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
10297 cat >>confdefs.h <<EOF
10298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10309 echo "$as_me:10309: checking for $ac_func" >&5
10310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10311 if eval "test \"\${$as_ac_var+set}\" = set"; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 cat >"conftest.$ac_ext" <<_ACEOF
10315 #line 10315 "configure"
10316 #include "confdefs.h"
10317 #define $ac_func autoconf_temporary
10318 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10327 char $ac_func (void);
10333 /* The GNU C library defines stubs for functions which it implements
10334 to always fail with ENOSYS. Some functions are actually named
10335 something starting with __ and the normal name is an alias. */
10336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10337 #error found stub for $ac_func
10340 return $ac_func ();
10345 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10346 if { (eval echo "$as_me:10346: \"$ac_link\"") >&5
10347 (eval $ac_link) 2>&5
10349 echo "$as_me:10349: \$? = $ac_status" >&5
10350 (exit "$ac_status"); } &&
10351 { ac_try='test -s "conftest$ac_exeext"'
10352 { (eval echo "$as_me:10352: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:10355: \$? = $ac_status" >&5
10356 (exit "$ac_status"); }; }; then
10357 eval "$as_ac_var=yes"
10359 echo "$as_me: failed program was:" >&5
10360 cat "conftest.$ac_ext" >&5
10361 eval "$as_ac_var=no"
10363 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10365 echo "$as_me:10365: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10366 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10367 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10368 cat >>confdefs.h <<EOF
10369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10375 if test "$cross_compiling" = yes ; then
10381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10382 echo "$as_me:10382: checking for $ac_func" >&5
10383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10384 if eval "test \"\${$as_ac_var+set}\" = set"; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 cat >"conftest.$ac_ext" <<_ACEOF
10388 #line 10388 "configure"
10389 #include "confdefs.h"
10390 #define $ac_func autoconf_temporary
10391 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10398 /* We use char because int might match the return type of a gcc2
10399 builtin and then its argument prototype would still apply. */
10400 char $ac_func (void);
10406 /* The GNU C library defines stubs for functions which it implements
10407 to always fail with ENOSYS. Some functions are actually named
10408 something starting with __ and the normal name is an alias. */
10409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10410 #error found stub for $ac_func
10413 return $ac_func ();
10418 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10419 if { (eval echo "$as_me:10419: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10422 echo "$as_me:10422: \$? = $ac_status" >&5
10423 (exit "$ac_status"); } &&
10424 { ac_try='test -s "conftest$ac_exeext"'
10425 { (eval echo "$as_me:10425: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:10428: \$? = $ac_status" >&5
10429 (exit "$ac_status"); }; }; then
10430 eval "$as_ac_var=yes"
10432 echo "$as_me: failed program was:" >&5
10433 cat "conftest.$ac_ext" >&5
10434 eval "$as_ac_var=no"
10436 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10438 echo "$as_me:10438: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10439 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10440 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10441 cat >>confdefs.h <<EOF
10442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10449 echo "$as_me:10449: checking if link/symlink functions work" >&5
10450 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
10451 if test "${cf_cv_link_funcs+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 for cf_func in link symlink ; do
10457 if test "$cross_compiling" = yes; then
10459 eval 'ac_cv_func_'$cf_func'=error'
10461 cat >"conftest.$ac_ext" <<_ACEOF
10462 #line 10462 "configure"
10463 #include "confdefs.h"
10465 $ac_includes_default
10470 char src[] = "conftest.tmp";
10471 char dst[] = "conftest.chk";
10472 struct stat src_sb, dst_sb;
10473 FILE *fp = fopen(src, "w");
10474 if (fp == 0) { fail = 3; } else {
10475 fclose(fp); stat(src, &src_sb);
10476 if ($cf_func(src, dst) < 0) {
10478 } else if (stat(dst, &dst_sb) < 0) {
10481 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
10482 if (diff < 0) diff = -diff;
10483 if (diff > 2) fail = 3;
10487 unlink(dst); unlink(src);
10489 remove(dst); remove(src);
10491 ${cf_cv_main_return:-return} (fail);
10495 rm -f "conftest$ac_exeext"
10496 if { (eval echo "$as_me:10496: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>&5
10499 echo "$as_me:10499: \$? = $ac_status" >&5
10500 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10501 { (eval echo "$as_me:10501: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:10504: \$? = $ac_status" >&5
10505 (exit "$ac_status"); }; }; then
10507 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
10508 eval 'ac_cv_func_'$cf_func'=yes'
10510 echo "$as_me: program exited with status $ac_status" >&5
10511 echo "$as_me: failed program was:" >&5
10512 cat "conftest.$ac_ext" >&5
10514 eval 'ac_cv_func_'$cf_func'=no'
10516 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10519 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
10522 echo "$as_me:10522: result: $cf_cv_link_funcs" >&5
10523 echo "${ECHO_T}$cf_cv_link_funcs" >&6
10524 test "$ac_cv_func_link" = yes &&
10525 cat >>confdefs.h <<\EOF
10526 #define HAVE_LINK 1
10529 test "$ac_cv_func_symlink" = yes &&
10530 cat >>confdefs.h <<\EOF
10531 #define HAVE_SYMLINK 1
10539 # soft links (symbolic links) are useful for some systems where hard links do
10540 # not work, or to make it simpler to copy terminfo trees around.
10541 if test "x$ac_cv_func_symlink" = xyes ; then
10542 echo "$as_me:10542: checking if tic should use symbolic links" >&5
10543 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
10545 # Check whether --enable-symlinks or --disable-symlinks was given.
10546 if test "${enable_symlinks+set}" = set; then
10547 enableval="$enable_symlinks"
10548 with_symlinks=$enableval
10552 echo "$as_me:10552: result: $with_symlinks" >&5
10553 echo "${ECHO_T}$with_symlinks" >&6
10556 # If we have hard links and did not choose to use soft links instead, there is
10557 # no reason to make this choice optional - use the hard links.
10558 if test "$with_symlinks" = no ; then
10559 echo "$as_me:10559: checking if tic should use hard links" >&5
10560 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
10561 if test "x$ac_cv_func_link" = xyes ; then
10566 echo "$as_me:10566: result: $with_links" >&5
10567 echo "${ECHO_T}$with_links" >&6
10570 test "x$with_links" = xyes &&
10571 cat >>confdefs.h <<\EOF
10572 #define USE_LINKS 1
10575 test "x$with_symlinks" = xyes &&
10576 cat >>confdefs.h <<\EOF
10577 #define USE_SYMLINKS 1
10580 ### use option --enable-broken-linker to force on use of broken-linker support
10582 echo "$as_me:10582: checking if you want broken-linker support code" >&5
10583 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
10585 # Check whether --enable-broken_linker or --disable-broken_linker was given.
10586 if test "${enable_broken_linker+set}" = set; then
10587 enableval="$enable_broken_linker"
10588 with_broken_linker=$enableval
10590 with_broken_linker=no
10592 echo "$as_me:10592: result: $with_broken_linker" >&5
10593 echo "${ECHO_T}$with_broken_linker" >&6
10595 : "${BROKEN_LINKER:=0}"
10596 if test "x$with_broken_linker" = xyes ; then
10598 cat >>confdefs.h <<\EOF
10599 #define BROKEN_LINKER 1
10605 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
10606 echo "$as_me:10606: checking if tputs should process BSD-style prefix padding" >&5
10607 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
10609 # Check whether --enable-bsdpad or --disable-bsdpad was given.
10610 if test "${enable_bsdpad+set}" = set; then
10611 enableval="$enable_bsdpad"
10612 with_bsdpad=$enableval
10616 echo "$as_me:10616: result: $with_bsdpad" >&5
10617 echo "${ECHO_T}$with_bsdpad" >&6
10618 test "x$with_bsdpad" = xyes &&
10619 cat >>confdefs.h <<\EOF
10620 #define BSD_TPUTS 1
10623 ### use option --enable-widec to turn on use of wide-character support
10624 NCURSES_CH_T=chtype
10628 NCURSES_MBSTATE_T=0
10632 # Check to define _XOPEN_SOURCE "automatically"
10633 CPPFLAGS_before_XOPEN="$CPPFLAGS"
10635 echo "$as_me:10635: checking if the POSIX test-macros are already defined" >&5
10636 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
10637 if test "${cf_cv_posix_visible+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 cat >"conftest.$ac_ext" <<_ACEOF
10642 #line 10642 "configure"
10643 #include "confdefs.h"
10649 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
10650 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
10651 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
10652 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
10653 #error conflicting symbols found
10660 rm -f "conftest.$ac_objext"
10661 if { (eval echo "$as_me:10661: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10664 echo "$as_me:10664: \$? = $ac_status" >&5
10665 (exit "$ac_status"); } &&
10666 { ac_try='test -s "conftest.$ac_objext"'
10667 { (eval echo "$as_me:10667: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:10670: \$? = $ac_status" >&5
10671 (exit "$ac_status"); }; }; then
10672 cf_cv_posix_visible=no
10674 echo "$as_me: failed program was:" >&5
10675 cat "conftest.$ac_ext" >&5
10676 cf_cv_posix_visible=yes
10678 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10681 echo "$as_me:10681: result: $cf_cv_posix_visible" >&5
10682 echo "${ECHO_T}$cf_cv_posix_visible" >&6
10684 if test "$cf_cv_posix_visible" = no; then
10686 cf_XOPEN_SOURCE=600
10687 cf_POSIX_C_SOURCE=199506L
10692 cf_xopen_source="-D_ALL_SOURCE"
10695 cf_xopen_source="-D_APPLE_C_SOURCE"
10698 cf_xopen_source="-D_DARWIN_C_SOURCE"
10701 (freebsd*|dragonfly*|midnightbsd*)
10702 # 5.x headers associate
10703 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
10704 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
10705 cf_POSIX_C_SOURCE=200112L
10706 cf_XOPEN_SOURCE=600
10707 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10710 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
10713 cf_xopen_source="-D_HPUX_SOURCE"
10716 cf_xopen_source="-D_SGI_SOURCE"
10719 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
10721 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
10723 echo "$as_me:10723: checking if this is the GNU C library" >&5
10724 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
10725 if test "${cf_cv_gnu_library+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 cat >"conftest.$ac_ext" <<_ACEOF
10730 #line 10730 "configure"
10731 #include "confdefs.h"
10732 #include <sys/types.h>
10737 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
10739 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
10742 # error not GNU C library
10748 rm -f "conftest.$ac_objext"
10749 if { (eval echo "$as_me:10749: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>&5
10752 echo "$as_me:10752: \$? = $ac_status" >&5
10753 (exit "$ac_status"); } &&
10754 { ac_try='test -s "conftest.$ac_objext"'
10755 { (eval echo "$as_me:10755: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:10758: \$? = $ac_status" >&5
10759 (exit "$ac_status"); }; }; then
10760 cf_cv_gnu_library=yes
10762 echo "$as_me: failed program was:" >&5
10763 cat "conftest.$ac_ext" >&5
10764 cf_cv_gnu_library=no
10766 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10769 echo "$as_me:10769: result: $cf_cv_gnu_library" >&5
10770 echo "${ECHO_T}$cf_cv_gnu_library" >&6
10772 if test x$cf_cv_gnu_library = xyes; then
10774 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
10775 # was changed to help a little. newlib incorporated the change about 4
10777 echo "$as_me:10777: checking if _DEFAULT_SOURCE can be used as a basis" >&5
10778 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
10779 if test "${cf_cv_gnu_library_219+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 cf_save="$CPPFLAGS"
10785 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10786 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10788 cat >"conftest.$ac_ext" <<_ACEOF
10789 #line 10789 "configure"
10790 #include "confdefs.h"
10791 #include <sys/types.h>
10796 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10798 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10801 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10807 rm -f "conftest.$ac_objext"
10808 if { (eval echo "$as_me:10808: \"$ac_compile\"") >&5
10809 (eval $ac_compile) 2>&5
10811 echo "$as_me:10811: \$? = $ac_status" >&5
10812 (exit "$ac_status"); } &&
10813 { ac_try='test -s "conftest.$ac_objext"'
10814 { (eval echo "$as_me:10814: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:10817: \$? = $ac_status" >&5
10818 (exit "$ac_status"); }; }; then
10819 cf_cv_gnu_library_219=yes
10821 echo "$as_me: failed program was:" >&5
10822 cat "conftest.$ac_ext" >&5
10823 cf_cv_gnu_library_219=no
10825 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10826 CPPFLAGS="$cf_save"
10829 echo "$as_me:10829: result: $cf_cv_gnu_library_219" >&5
10830 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10832 if test "x$cf_cv_gnu_library_219" = xyes; then
10833 cf_save="$CPPFLAGS"
10834 echo "$as_me:10834: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10835 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10836 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 cf_new_extra_cppflags=
10845 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10847 case "$cf_fix_cppflags" in
10849 case "$cf_add_cflags" in
10850 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10851 case "$cf_add_cflags" in
10853 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10855 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10856 && test -z "${cf_tst_cflags}" \
10857 && cf_fix_cppflags=yes
10859 if test "$cf_fix_cppflags" = yes ; then
10861 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10862 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10865 elif test "${cf_tst_cflags}" = "\"'" ; then
10867 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10868 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10874 case "$CPPFLAGS" in
10878 case "$cf_add_cflags" in
10880 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10882 CPPFLAGS=`echo "$CPPFLAGS" | \
10883 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10884 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10889 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10890 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10897 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10898 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
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"
10908 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10910 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10911 && test -z "${cf_tst_cflags}" \
10912 && cf_fix_cppflags=no
10917 if test -n "$cf_new_cflags" ; then
10919 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10920 CFLAGS="${CFLAGS}$cf_new_cflags"
10924 if test -n "$cf_new_cppflags" ; then
10926 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10927 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10931 if test -n "$cf_new_extra_cppflags" ; then
10933 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10934 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10938 cat >"conftest.$ac_ext" <<_ACEOF
10939 #line 10939 "configure"
10940 #include "confdefs.h"
10942 #include <limits.h>
10943 #include <sys/types.h>
10949 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10952 # error GNU C library is too old
10958 rm -f "conftest.$ac_objext"
10959 if { (eval echo "$as_me:10959: \"$ac_compile\"") >&5
10960 (eval $ac_compile) 2>&5
10962 echo "$as_me:10962: \$? = $ac_status" >&5
10963 (exit "$ac_status"); } &&
10964 { ac_try='test -s "conftest.$ac_objext"'
10965 { (eval echo "$as_me:10965: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10968 echo "$as_me:10968: \$? = $ac_status" >&5
10969 (exit "$ac_status"); }; }; then
10970 cf_cv_gnu_dftsrc_219=yes
10972 echo "$as_me: failed program was:" >&5
10973 cat "conftest.$ac_ext" >&5
10974 cf_cv_gnu_dftsrc_219=no
10976 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10979 echo "$as_me:10979: result: $cf_cv_gnu_dftsrc_219" >&5
10980 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10981 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10983 cf_cv_gnu_dftsrc_219=maybe
10986 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10988 echo "$as_me:10988: checking if we must define _GNU_SOURCE" >&5
10989 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10990 if test "${cf_cv_gnu_source+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >"conftest.$ac_ext" <<_ACEOF
10995 #line 10995 "configure"
10996 #include "confdefs.h"
10997 #include <sys/types.h>
11002 #ifndef _XOPEN_SOURCE
11003 #error expected _XOPEN_SOURCE to be defined
11009 rm -f "conftest.$ac_objext"
11010 if { (eval echo "$as_me:11010: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>&5
11013 echo "$as_me:11013: \$? = $ac_status" >&5
11014 (exit "$ac_status"); } &&
11015 { ac_try='test -s "conftest.$ac_objext"'
11016 { (eval echo "$as_me:11016: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:11019: \$? = $ac_status" >&5
11020 (exit "$ac_status"); }; }; then
11021 cf_cv_gnu_source=no
11023 echo "$as_me: failed program was:" >&5
11024 cat "conftest.$ac_ext" >&5
11025 cf_save="$CPPFLAGS"
11030 cf_new_extra_cppflags=
11032 for cf_add_cflags in -D_GNU_SOURCE
11034 case "$cf_fix_cppflags" in
11036 case "$cf_add_cflags" in
11037 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11038 case "$cf_add_cflags" in
11040 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11042 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11043 && test -z "${cf_tst_cflags}" \
11044 && cf_fix_cppflags=yes
11046 if test "$cf_fix_cppflags" = yes ; then
11048 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11049 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11052 elif test "${cf_tst_cflags}" = "\"'" ; then
11054 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11055 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11061 case "$CPPFLAGS" in
11065 case "$cf_add_cflags" in
11067 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11069 CPPFLAGS=`echo "$CPPFLAGS" | \
11070 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11071 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11076 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11077 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11084 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11085 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11092 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11093 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11095 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11097 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11098 && test -z "${cf_tst_cflags}" \
11099 && cf_fix_cppflags=no
11104 if test -n "$cf_new_cflags" ; then
11106 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11107 CFLAGS="${CFLAGS}$cf_new_cflags"
11111 if test -n "$cf_new_cppflags" ; then
11113 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11114 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11118 if test -n "$cf_new_extra_cppflags" ; then
11120 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11121 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11125 cat >"conftest.$ac_ext" <<_ACEOF
11126 #line 11126 "configure"
11127 #include "confdefs.h"
11128 #include <sys/types.h>
11133 #ifdef _XOPEN_SOURCE
11134 #error expected _XOPEN_SOURCE to be undefined
11140 rm -f "conftest.$ac_objext"
11141 if { (eval echo "$as_me:11141: \"$ac_compile\"") >&5
11142 (eval $ac_compile) 2>&5
11144 echo "$as_me:11144: \$? = $ac_status" >&5
11145 (exit "$ac_status"); } &&
11146 { ac_try='test -s "conftest.$ac_objext"'
11147 { (eval echo "$as_me:11147: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:11150: \$? = $ac_status" >&5
11151 (exit "$ac_status"); }; }; then
11152 cf_cv_gnu_source=no
11154 echo "$as_me: failed program was:" >&5
11155 cat "conftest.$ac_ext" >&5
11156 cf_cv_gnu_source=yes
11158 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11159 CPPFLAGS="$cf_save"
11162 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11165 echo "$as_me:11165: result: $cf_cv_gnu_source" >&5
11166 echo "${ECHO_T}$cf_cv_gnu_source" >&6
11168 if test "$cf_cv_gnu_source" = yes
11170 echo "$as_me:11170: checking if we should also define _DEFAULT_SOURCE" >&5
11171 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
11172 if test "${cf_cv_default_source+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11177 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
11179 cat >"conftest.$ac_ext" <<_ACEOF
11180 #line 11180 "configure"
11181 #include "confdefs.h"
11182 #include <sys/types.h>
11187 #ifdef _DEFAULT_SOURCE
11188 #error expected _DEFAULT_SOURCE to be undefined
11194 rm -f "conftest.$ac_objext"
11195 if { (eval echo "$as_me:11195: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>&5
11198 echo "$as_me:11198: \$? = $ac_status" >&5
11199 (exit "$ac_status"); } &&
11200 { ac_try='test -s "conftest.$ac_objext"'
11201 { (eval echo "$as_me:11201: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:11204: \$? = $ac_status" >&5
11205 (exit "$ac_status"); }; }; then
11206 cf_cv_default_source=no
11208 echo "$as_me: failed program was:" >&5
11209 cat "conftest.$ac_ext" >&5
11210 cf_cv_default_source=yes
11212 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11215 echo "$as_me:11215: result: $cf_cv_default_source" >&5
11216 echo "${ECHO_T}$cf_cv_default_source" >&6
11217 if test "$cf_cv_default_source" = yes
11220 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11221 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
11231 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
11234 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
11237 if test "$cf_cv_posix_visible" = no; then
11239 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11241 cf_save_CFLAGS="$CFLAGS"
11242 cf_save_CPPFLAGS="$CPPFLAGS"
11244 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11245 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11246 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11248 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11249 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11250 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11252 echo "$as_me:11252: checking if we should define _POSIX_C_SOURCE" >&5
11253 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11254 if test "${cf_cv_posix_c_source+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 echo "${as_me:-configure}:11258: testing if the symbol is already defined go no further ..." 1>&5
11260 cat >"conftest.$ac_ext" <<_ACEOF
11261 #line 11261 "configure"
11262 #include "confdefs.h"
11263 #include <sys/types.h>
11268 #ifndef _POSIX_C_SOURCE
11269 #error _POSIX_C_SOURCE is not defined
11275 rm -f "conftest.$ac_objext"
11276 if { (eval echo "$as_me:11276: \"$ac_compile\"") >&5
11277 (eval $ac_compile) 2>&5
11279 echo "$as_me:11279: \$? = $ac_status" >&5
11280 (exit "$ac_status"); } &&
11281 { ac_try='test -s "conftest.$ac_objext"'
11282 { (eval echo "$as_me:11282: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:11285: \$? = $ac_status" >&5
11286 (exit "$ac_status"); }; }; then
11287 cf_cv_posix_c_source=no
11289 echo "$as_me: failed program was:" >&5
11290 cat "conftest.$ac_ext" >&5
11291 cf_want_posix_source=no
11292 case .$cf_POSIX_C_SOURCE in
11294 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11297 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11298 cf_want_posix_source=yes
11301 cf_want_posix_source=yes
11304 if test "$cf_want_posix_source" = yes ; then
11305 cat >"conftest.$ac_ext" <<_ACEOF
11306 #line 11306 "configure"
11307 #include "confdefs.h"
11308 #include <sys/types.h>
11313 #ifdef _POSIX_SOURCE
11314 #error _POSIX_SOURCE is defined
11320 rm -f "conftest.$ac_objext"
11321 if { (eval echo "$as_me:11321: \"$ac_compile\"") >&5
11322 (eval $ac_compile) 2>&5
11324 echo "$as_me:11324: \$? = $ac_status" >&5
11325 (exit "$ac_status"); } &&
11326 { ac_try='test -s "conftest.$ac_objext"'
11327 { (eval echo "$as_me:11327: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:11330: \$? = $ac_status" >&5
11331 (exit "$ac_status"); }; }; then
11334 echo "$as_me: failed program was:" >&5
11335 cat "conftest.$ac_ext" >&5
11336 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11338 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11341 echo "${as_me:-configure}:11341: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11343 CFLAGS="$cf_trim_CFLAGS"
11344 CPPFLAGS="$cf_trim_CPPFLAGS"
11346 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11347 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11349 echo "${as_me:-configure}:11349: testing if the second compile does not leave our definition intact error ..." 1>&5
11351 cat >"conftest.$ac_ext" <<_ACEOF
11352 #line 11352 "configure"
11353 #include "confdefs.h"
11354 #include <sys/types.h>
11359 #ifndef _POSIX_C_SOURCE
11360 #error _POSIX_C_SOURCE is not defined
11366 rm -f "conftest.$ac_objext"
11367 if { (eval echo "$as_me:11367: \"$ac_compile\"") >&5
11368 (eval $ac_compile) 2>&5
11370 echo "$as_me:11370: \$? = $ac_status" >&5
11371 (exit "$ac_status"); } &&
11372 { ac_try='test -s "conftest.$ac_objext"'
11373 { (eval echo "$as_me:11373: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11376 echo "$as_me:11376: \$? = $ac_status" >&5
11377 (exit "$ac_status"); }; }; then
11380 echo "$as_me: failed program was:" >&5
11381 cat "conftest.$ac_ext" >&5
11382 cf_cv_posix_c_source=no
11384 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11385 CFLAGS="$cf_save_CFLAGS"
11386 CPPFLAGS="$cf_save_CPPFLAGS"
11389 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11392 echo "$as_me:11392: result: $cf_cv_posix_c_source" >&5
11393 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11395 if test "$cf_cv_posix_c_source" != no ; then
11396 CFLAGS="$cf_trim_CFLAGS"
11397 CPPFLAGS="$cf_trim_CPPFLAGS"
11402 cf_new_extra_cppflags=
11404 for cf_add_cflags in $cf_cv_posix_c_source
11406 case "$cf_fix_cppflags" in
11408 case "$cf_add_cflags" in
11409 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11410 case "$cf_add_cflags" in
11412 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11414 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11415 && test -z "${cf_tst_cflags}" \
11416 && cf_fix_cppflags=yes
11418 if test "$cf_fix_cppflags" = yes ; then
11420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11424 elif test "${cf_tst_cflags}" = "\"'" ; then
11426 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11427 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11433 case "$CPPFLAGS" in
11437 case "$cf_add_cflags" in
11439 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11441 CPPFLAGS=`echo "$CPPFLAGS" | \
11442 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11443 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11448 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11449 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11456 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11457 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11464 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11465 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11467 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11469 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11470 && test -z "${cf_tst_cflags}" \
11471 && cf_fix_cppflags=no
11476 if test -n "$cf_new_cflags" ; then
11478 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11479 CFLAGS="${CFLAGS}$cf_new_cflags"
11483 if test -n "$cf_new_cppflags" ; then
11485 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11486 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11490 if test -n "$cf_new_extra_cppflags" ; then
11492 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11493 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11499 fi # cf_cv_posix_visible
11503 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
11506 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
11507 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
11508 # Abusing the conformance level is a workaround.
11509 { echo "$as_me:11509: WARNING: this system does not provide usable locale support" >&5
11510 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
11511 cf_xopen_source="-D_BSD_SOURCE"
11512 cf_XOPEN_SOURCE=700
11515 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
11516 cf_xopen_source="-D_BSD_SOURCE"
11517 cf_XOPEN_SOURCE=600
11520 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
11523 cf_xopen_source="-D_OSF_SOURCE"
11526 cf_xopen_source="-D_QNX_SOURCE"
11529 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
11532 cf_xopen_source="-D__EXTENSIONS__"
11533 cf_cv_xopen_source=broken
11535 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
11541 echo "$as_me:11541: checking if we should define _XOPEN_SOURCE" >&5
11542 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11543 if test "${cf_cv_xopen_source+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 cat >"conftest.$ac_ext" <<_ACEOF
11548 #line 11548 "configure"
11549 #include "confdefs.h"
11551 $ac_includes_default
11557 #ifndef _XOPEN_SOURCE
11558 #error _XOPEN_SOURCE is not defined
11565 rm -f "conftest.$ac_objext"
11566 if { (eval echo "$as_me:11566: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>&5
11569 echo "$as_me:11569: \$? = $ac_status" >&5
11570 (exit "$ac_status"); } &&
11571 { ac_try='test -s "conftest.$ac_objext"'
11572 { (eval echo "$as_me:11572: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:11575: \$? = $ac_status" >&5
11576 (exit "$ac_status"); }; }; then
11577 cf_cv_xopen_source=no
11579 echo "$as_me: failed program was:" >&5
11580 cat "conftest.$ac_ext" >&5
11581 cf_save="$CPPFLAGS"
11583 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11584 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11586 cat >"conftest.$ac_ext" <<_ACEOF
11587 #line 11587 "configure"
11588 #include "confdefs.h"
11590 $ac_includes_default
11596 #ifndef _XOPEN_SOURCE
11597 #error _XOPEN_SOURCE is not defined
11604 rm -f "conftest.$ac_objext"
11605 if { (eval echo "$as_me:11605: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>&5
11608 echo "$as_me:11608: \$? = $ac_status" >&5
11609 (exit "$ac_status"); } &&
11610 { ac_try='test -s "conftest.$ac_objext"'
11611 { (eval echo "$as_me:11611: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:11614: \$? = $ac_status" >&5
11615 (exit "$ac_status"); }; }; then
11616 cf_cv_xopen_source=no
11618 echo "$as_me: failed program was:" >&5
11619 cat "conftest.$ac_ext" >&5
11620 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11622 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11623 CPPFLAGS="$cf_save"
11626 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11629 echo "$as_me:11629: result: $cf_cv_xopen_source" >&5
11630 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11632 if test "$cf_cv_xopen_source" != no ; then
11634 CFLAGS=`echo "$CFLAGS" | \
11635 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11636 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11638 CPPFLAGS=`echo "$CPPFLAGS" | \
11639 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11640 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11642 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11644 for cf_add_cflags in $cf_temp_xopen_source
11646 case "x$cf_add_cflags" in
11649 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11652 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'`
11653 test "$CFLAGS" != "$cf_old_cflag" || break
11655 CFLAGS="$cf_old_cflag"
11658 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11661 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'`
11662 test "$CPPFLAGS" != "$cf_old_cflag" || break
11664 CPPFLAGS="$cf_old_cflag"
11673 cf_new_extra_cppflags=
11675 for cf_add_cflags in $cf_add_cflags
11677 case "$cf_fix_cppflags" in
11679 case "$cf_add_cflags" in
11680 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11681 case "$cf_add_cflags" in
11683 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11685 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11686 && test -z "${cf_tst_cflags}" \
11687 && cf_fix_cppflags=yes
11689 if test "$cf_fix_cppflags" = yes ; then
11691 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11692 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11695 elif test "${cf_tst_cflags}" = "\"'" ; then
11697 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11698 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11704 case "$CPPFLAGS" in
11708 case "$cf_add_cflags" in
11710 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11712 CPPFLAGS=`echo "$CPPFLAGS" | \
11713 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11714 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11719 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11720 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11727 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11728 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11735 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11736 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11738 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11740 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11741 && test -z "${cf_tst_cflags}" \
11742 && cf_fix_cppflags=no
11747 if test -n "$cf_new_cflags" ; then
11749 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11750 CFLAGS="${CFLAGS}$cf_new_cflags"
11754 if test -n "$cf_new_cppflags" ; then
11756 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11757 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11761 if test -n "$cf_new_extra_cppflags" ; then
11763 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11764 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11772 cf_save_xopen_cppflags="$CPPFLAGS"
11774 if test "$cf_cv_posix_visible" = no; then
11776 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11778 cf_save_CFLAGS="$CFLAGS"
11779 cf_save_CPPFLAGS="$CPPFLAGS"
11781 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11782 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11783 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11785 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11786 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11787 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11789 echo "$as_me:11789: checking if we should define _POSIX_C_SOURCE" >&5
11790 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11791 if test "${cf_cv_posix_c_source+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 echo "${as_me:-configure}:11795: testing if the symbol is already defined go no further ..." 1>&5
11797 cat >"conftest.$ac_ext" <<_ACEOF
11798 #line 11798 "configure"
11799 #include "confdefs.h"
11800 #include <sys/types.h>
11805 #ifndef _POSIX_C_SOURCE
11806 #error _POSIX_C_SOURCE is not defined
11812 rm -f "conftest.$ac_objext"
11813 if { (eval echo "$as_me:11813: \"$ac_compile\"") >&5
11814 (eval $ac_compile) 2>&5
11816 echo "$as_me:11816: \$? = $ac_status" >&5
11817 (exit "$ac_status"); } &&
11818 { ac_try='test -s "conftest.$ac_objext"'
11819 { (eval echo "$as_me:11819: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11822 echo "$as_me:11822: \$? = $ac_status" >&5
11823 (exit "$ac_status"); }; }; then
11824 cf_cv_posix_c_source=no
11826 echo "$as_me: failed program was:" >&5
11827 cat "conftest.$ac_ext" >&5
11828 cf_want_posix_source=no
11829 case .$cf_POSIX_C_SOURCE in
11831 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11834 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11835 cf_want_posix_source=yes
11838 cf_want_posix_source=yes
11841 if test "$cf_want_posix_source" = yes ; then
11842 cat >"conftest.$ac_ext" <<_ACEOF
11843 #line 11843 "configure"
11844 #include "confdefs.h"
11845 #include <sys/types.h>
11850 #ifdef _POSIX_SOURCE
11851 #error _POSIX_SOURCE is defined
11857 rm -f "conftest.$ac_objext"
11858 if { (eval echo "$as_me:11858: \"$ac_compile\"") >&5
11859 (eval $ac_compile) 2>&5
11861 echo "$as_me:11861: \$? = $ac_status" >&5
11862 (exit "$ac_status"); } &&
11863 { ac_try='test -s "conftest.$ac_objext"'
11864 { (eval echo "$as_me:11864: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11867 echo "$as_me:11867: \$? = $ac_status" >&5
11868 (exit "$ac_status"); }; }; then
11871 echo "$as_me: failed program was:" >&5
11872 cat "conftest.$ac_ext" >&5
11873 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11875 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11878 echo "${as_me:-configure}:11878: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11880 CFLAGS="$cf_trim_CFLAGS"
11881 CPPFLAGS="$cf_trim_CPPFLAGS"
11883 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11884 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11886 echo "${as_me:-configure}:11886: testing if the second compile does not leave our definition intact error ..." 1>&5
11888 cat >"conftest.$ac_ext" <<_ACEOF
11889 #line 11889 "configure"
11890 #include "confdefs.h"
11891 #include <sys/types.h>
11896 #ifndef _POSIX_C_SOURCE
11897 #error _POSIX_C_SOURCE is not defined
11903 rm -f "conftest.$ac_objext"
11904 if { (eval echo "$as_me:11904: \"$ac_compile\"") >&5
11905 (eval $ac_compile) 2>&5
11907 echo "$as_me:11907: \$? = $ac_status" >&5
11908 (exit "$ac_status"); } &&
11909 { ac_try='test -s "conftest.$ac_objext"'
11910 { (eval echo "$as_me:11910: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:11913: \$? = $ac_status" >&5
11914 (exit "$ac_status"); }; }; then
11917 echo "$as_me: failed program was:" >&5
11918 cat "conftest.$ac_ext" >&5
11919 cf_cv_posix_c_source=no
11921 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11922 CFLAGS="$cf_save_CFLAGS"
11923 CPPFLAGS="$cf_save_CPPFLAGS"
11926 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11929 echo "$as_me:11929: result: $cf_cv_posix_c_source" >&5
11930 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11932 if test "$cf_cv_posix_c_source" != no ; then
11933 CFLAGS="$cf_trim_CFLAGS"
11934 CPPFLAGS="$cf_trim_CPPFLAGS"
11939 cf_new_extra_cppflags=
11941 for cf_add_cflags in $cf_cv_posix_c_source
11943 case "$cf_fix_cppflags" in
11945 case "$cf_add_cflags" in
11946 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11947 case "$cf_add_cflags" in
11949 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11951 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11952 && test -z "${cf_tst_cflags}" \
11953 && cf_fix_cppflags=yes
11955 if test "$cf_fix_cppflags" = yes ; then
11957 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11958 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11961 elif test "${cf_tst_cflags}" = "\"'" ; then
11963 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11964 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11970 case "$CPPFLAGS" in
11974 case "$cf_add_cflags" in
11976 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11978 CPPFLAGS=`echo "$CPPFLAGS" | \
11979 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11980 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11985 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11986 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11993 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11994 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12001 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12002 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12004 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12006 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12007 && test -z "${cf_tst_cflags}" \
12008 && cf_fix_cppflags=no
12013 if test -n "$cf_new_cflags" ; then
12015 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12016 CFLAGS="${CFLAGS}$cf_new_cflags"
12020 if test -n "$cf_new_cppflags" ; then
12022 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12023 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12027 if test -n "$cf_new_extra_cppflags" ; then
12029 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12030 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12036 fi # cf_cv_posix_visible
12038 # Some of these niche implementations use copy/paste, double-check...
12039 if test "$cf_cv_xopen_source" = no ; then
12040 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
12042 echo "${as_me:-configure}:12042: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
12044 cat >"conftest.$ac_ext" <<_ACEOF
12045 #line 12045 "configure"
12046 #include "confdefs.h"
12048 $ac_includes_default
12054 #ifndef _XOPEN_SOURCE
12055 #error _XOPEN_SOURCE is not defined
12062 rm -f "conftest.$ac_objext"
12063 if { (eval echo "$as_me:12063: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>&5
12066 echo "$as_me:12066: \$? = $ac_status" >&5
12067 (exit "$ac_status"); } &&
12068 { ac_try='test -s "conftest.$ac_objext"'
12069 { (eval echo "$as_me:12069: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12072 echo "$as_me:12072: \$? = $ac_status" >&5
12073 (exit "$ac_status"); }; }; then
12076 echo "$as_me: failed program was:" >&5
12077 cat "conftest.$ac_ext" >&5
12079 { echo "$as_me:12079: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
12080 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
12081 CPPFLAGS="$cf_save_xopen_cppflags"
12083 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12088 if test -n "$cf_xopen_source" ; then
12090 for cf_add_cflags in $cf_xopen_source
12092 case "x$cf_add_cflags" in
12095 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12098 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'`
12099 test "$CFLAGS" != "$cf_old_cflag" || break
12100 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
12102 echo "${as_me:-configure}:12102: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
12104 CFLAGS="$cf_old_cflag"
12107 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12110 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'`
12111 test "$CPPFLAGS" != "$cf_old_cflag" || break
12112 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
12114 echo "${as_me:-configure}:12114: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
12116 CPPFLAGS="$cf_old_cflag"
12125 cf_new_extra_cppflags=
12127 for cf_add_cflags in $cf_add_cflags
12129 case "$cf_fix_cppflags" in
12131 case "$cf_add_cflags" in
12132 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12133 case "$cf_add_cflags" in
12135 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12137 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12138 && test -z "${cf_tst_cflags}" \
12139 && cf_fix_cppflags=yes
12141 if test "$cf_fix_cppflags" = yes ; then
12143 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12144 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12147 elif test "${cf_tst_cflags}" = "\"'" ; then
12149 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12150 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12156 case "$CPPFLAGS" in
12160 case "$cf_add_cflags" in
12162 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12164 CPPFLAGS=`echo "$CPPFLAGS" | \
12165 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12166 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12171 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12172 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12179 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12180 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12187 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12188 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12190 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12192 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12193 && test -z "${cf_tst_cflags}" \
12194 && cf_fix_cppflags=no
12199 if test -n "$cf_new_cflags" ; then
12200 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12202 echo "${as_me:-configure}:12202: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12204 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12205 CFLAGS="${CFLAGS}$cf_new_cflags"
12209 if test -n "$cf_new_cppflags" ; then
12210 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12212 echo "${as_me:-configure}:12212: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12214 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12215 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12219 if test -n "$cf_new_extra_cppflags" ; then
12220 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12222 echo "${as_me:-configure}:12222: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12224 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12225 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12233 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
12234 echo "$as_me:12234: checking if _XOPEN_SOURCE really is set" >&5
12235 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
12236 cat >"conftest.$ac_ext" <<_ACEOF
12237 #line 12237 "configure"
12238 #include "confdefs.h"
12239 #include <stdlib.h>
12244 #ifndef _XOPEN_SOURCE
12245 #error _XOPEN_SOURCE is not defined
12251 rm -f "conftest.$ac_objext"
12252 if { (eval echo "$as_me:12252: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>&5
12255 echo "$as_me:12255: \$? = $ac_status" >&5
12256 (exit "$ac_status"); } &&
12257 { ac_try='test -s "conftest.$ac_objext"'
12258 { (eval echo "$as_me:12258: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:12261: \$? = $ac_status" >&5
12262 (exit "$ac_status"); }; }; then
12263 cf_XOPEN_SOURCE_set=yes
12265 echo "$as_me: failed program was:" >&5
12266 cat "conftest.$ac_ext" >&5
12267 cf_XOPEN_SOURCE_set=no
12269 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12270 echo "$as_me:12270: result: $cf_XOPEN_SOURCE_set" >&5
12271 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
12272 if test "$cf_XOPEN_SOURCE_set" = yes
12274 cat >"conftest.$ac_ext" <<_ACEOF
12275 #line 12275 "configure"
12276 #include "confdefs.h"
12277 #include <stdlib.h>
12282 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
12283 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
12289 rm -f "conftest.$ac_objext"
12290 if { (eval echo "$as_me:12290: \"$ac_compile\"") >&5
12291 (eval $ac_compile) 2>&5
12293 echo "$as_me:12293: \$? = $ac_status" >&5
12294 (exit "$ac_status"); } &&
12295 { ac_try='test -s "conftest.$ac_objext"'
12296 { (eval echo "$as_me:12296: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:12299: \$? = $ac_status" >&5
12300 (exit "$ac_status"); }; }; then
12301 cf_XOPEN_SOURCE_set_ok=yes
12303 echo "$as_me: failed program was:" >&5
12304 cat "conftest.$ac_ext" >&5
12305 cf_XOPEN_SOURCE_set_ok=no
12307 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12308 if test "$cf_XOPEN_SOURCE_set_ok" = no
12310 { echo "$as_me:12310: WARNING: _XOPEN_SOURCE is lower than requested" >&5
12311 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
12315 echo "$as_me:12315: checking if we should define _XOPEN_SOURCE" >&5
12316 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
12317 if test "${cf_cv_xopen_source+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 cat >"conftest.$ac_ext" <<_ACEOF
12322 #line 12322 "configure"
12323 #include "confdefs.h"
12325 $ac_includes_default
12331 #ifndef _XOPEN_SOURCE
12332 #error _XOPEN_SOURCE is not defined
12339 rm -f "conftest.$ac_objext"
12340 if { (eval echo "$as_me:12340: \"$ac_compile\"") >&5
12341 (eval $ac_compile) 2>&5
12343 echo "$as_me:12343: \$? = $ac_status" >&5
12344 (exit "$ac_status"); } &&
12345 { ac_try='test -s "conftest.$ac_objext"'
12346 { (eval echo "$as_me:12346: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:12349: \$? = $ac_status" >&5
12350 (exit "$ac_status"); }; }; then
12351 cf_cv_xopen_source=no
12353 echo "$as_me: failed program was:" >&5
12354 cat "conftest.$ac_ext" >&5
12355 cf_save="$CPPFLAGS"
12357 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12358 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
12360 cat >"conftest.$ac_ext" <<_ACEOF
12361 #line 12361 "configure"
12362 #include "confdefs.h"
12364 $ac_includes_default
12370 #ifndef _XOPEN_SOURCE
12371 #error _XOPEN_SOURCE is not defined
12378 rm -f "conftest.$ac_objext"
12379 if { (eval echo "$as_me:12379: \"$ac_compile\"") >&5
12380 (eval $ac_compile) 2>&5
12382 echo "$as_me:12382: \$? = $ac_status" >&5
12383 (exit "$ac_status"); } &&
12384 { ac_try='test -s "conftest.$ac_objext"'
12385 { (eval echo "$as_me:12385: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:12388: \$? = $ac_status" >&5
12389 (exit "$ac_status"); }; }; then
12390 cf_cv_xopen_source=no
12392 echo "$as_me: failed program was:" >&5
12393 cat "conftest.$ac_ext" >&5
12394 cf_cv_xopen_source=$cf_XOPEN_SOURCE
12396 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12397 CPPFLAGS="$cf_save"
12400 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12403 echo "$as_me:12403: result: $cf_cv_xopen_source" >&5
12404 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12406 if test "$cf_cv_xopen_source" != no ; then
12408 CFLAGS=`echo "$CFLAGS" | \
12409 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12410 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12412 CPPFLAGS=`echo "$CPPFLAGS" | \
12413 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12414 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12416 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12418 for cf_add_cflags in $cf_temp_xopen_source
12420 case "x$cf_add_cflags" in
12423 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12426 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'`
12427 test "$CFLAGS" != "$cf_old_cflag" || break
12429 CFLAGS="$cf_old_cflag"
12432 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12435 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'`
12436 test "$CPPFLAGS" != "$cf_old_cflag" || break
12438 CPPFLAGS="$cf_old_cflag"
12447 cf_new_extra_cppflags=
12449 for cf_add_cflags in $cf_add_cflags
12451 case "$cf_fix_cppflags" in
12453 case "$cf_add_cflags" in
12454 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12455 case "$cf_add_cflags" in
12457 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12459 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12460 && test -z "${cf_tst_cflags}" \
12461 && cf_fix_cppflags=yes
12463 if test "$cf_fix_cppflags" = yes ; then
12465 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12466 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12469 elif test "${cf_tst_cflags}" = "\"'" ; then
12471 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12472 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12478 case "$CPPFLAGS" in
12482 case "$cf_add_cflags" in
12484 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12486 CPPFLAGS=`echo "$CPPFLAGS" | \
12487 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12488 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12493 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12494 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12501 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12502 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12509 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12510 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12512 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12514 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12515 && test -z "${cf_tst_cflags}" \
12516 && cf_fix_cppflags=no
12521 if test -n "$cf_new_cflags" ; then
12523 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12524 CFLAGS="${CFLAGS}$cf_new_cflags"
12528 if test -n "$cf_new_cppflags" ; then
12530 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12531 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12535 if test -n "$cf_new_extra_cppflags" ; then
12537 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12538 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12548 fi # cf_cv_posix_visible
12550 CPPFLAGS_after_XOPEN="$CPPFLAGS"
12552 # Work around breakage on OS X
12554 echo "$as_me:12554: checking if SIGWINCH is defined" >&5
12555 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
12556 if test "${cf_cv_define_sigwinch+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 cat >"conftest.$ac_ext" <<_ACEOF
12561 #line 12561 "configure"
12562 #include "confdefs.h"
12564 #include <sys/types.h>
12565 #include <sys/signal.h>
12570 int x = SIGWINCH; (void)x
12575 rm -f "conftest.$ac_objext"
12576 if { (eval echo "$as_me:12576: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>&5
12579 echo "$as_me:12579: \$? = $ac_status" >&5
12580 (exit "$ac_status"); } &&
12581 { ac_try='test -s "conftest.$ac_objext"'
12582 { (eval echo "$as_me:12582: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:12585: \$? = $ac_status" >&5
12586 (exit "$ac_status"); }; }; then
12587 cf_cv_define_sigwinch=yes
12589 echo "$as_me: failed program was:" >&5
12590 cat "conftest.$ac_ext" >&5
12591 cat >"conftest.$ac_ext" <<_ACEOF
12592 #line 12592 "configure"
12593 #include "confdefs.h"
12595 #undef _XOPEN_SOURCE
12596 #undef _POSIX_SOURCE
12597 #undef _POSIX_C_SOURCE
12598 #include <sys/types.h>
12599 #include <sys/signal.h>
12604 int x = SIGWINCH; (void)x
12609 rm -f "conftest.$ac_objext"
12610 if { (eval echo "$as_me:12610: \"$ac_compile\"") >&5
12611 (eval $ac_compile) 2>&5
12613 echo "$as_me:12613: \$? = $ac_status" >&5
12614 (exit "$ac_status"); } &&
12615 { ac_try='test -s "conftest.$ac_objext"'
12616 { (eval echo "$as_me:12616: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:12619: \$? = $ac_status" >&5
12620 (exit "$ac_status"); }; }; then
12621 cf_cv_define_sigwinch=maybe
12623 echo "$as_me: failed program was:" >&5
12624 cat "conftest.$ac_ext" >&5
12625 cf_cv_define_sigwinch=no
12627 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12630 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12633 echo "$as_me:12633: result: $cf_cv_define_sigwinch" >&5
12634 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
12636 if test "$cf_cv_define_sigwinch" = maybe ; then
12637 echo "$as_me:12637: checking for actual SIGWINCH definition" >&5
12638 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
12639 if test "${cf_cv_fixup_sigwinch+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 cf_cv_fixup_sigwinch=unknown
12645 while test "$cf_sigwinch" != 1
12647 cat >"conftest.$ac_ext" <<_ACEOF
12648 #line 12648 "configure"
12649 #include "confdefs.h"
12651 #undef _XOPEN_SOURCE
12652 #undef _POSIX_SOURCE
12653 #undef _POSIX_C_SOURCE
12654 #include <sys/types.h>
12655 #include <sys/signal.h>
12661 #if SIGWINCH != $cf_sigwinch
12662 #error SIGWINCH is not $cf_sigwinch
12664 int x = SIGWINCH; (void)x
12669 rm -f "conftest.$ac_objext"
12670 if { (eval echo "$as_me:12670: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>&5
12673 echo "$as_me:12673: \$? = $ac_status" >&5
12674 (exit "$ac_status"); } &&
12675 { ac_try='test -s "conftest.$ac_objext"'
12676 { (eval echo "$as_me:12676: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:12679: \$? = $ac_status" >&5
12680 (exit "$ac_status"); }; }; then
12681 cf_cv_fixup_sigwinch=$cf_sigwinch
12684 echo "$as_me: failed program was:" >&5
12685 cat "conftest.$ac_ext" >&5
12687 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12689 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
12693 echo "$as_me:12693: result: $cf_cv_fixup_sigwinch" >&5
12694 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
12696 if test "$cf_cv_fixup_sigwinch" != unknown ; then
12697 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
12701 # Checks for CODESET support.
12703 echo "$as_me:12703: checking for nl_langinfo and CODESET" >&5
12704 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12705 if test "${am_cv_langinfo_codeset+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 cat >"conftest.$ac_ext" <<_ACEOF
12709 #line 12709 "configure"
12710 #include "confdefs.h"
12712 $ac_includes_default
12713 #include <langinfo.h>
12717 char* cs = nl_langinfo(CODESET); (void)cs
12722 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12723 if { (eval echo "$as_me:12723: \"$ac_link\"") >&5
12724 (eval $ac_link) 2>&5
12726 echo "$as_me:12726: \$? = $ac_status" >&5
12727 (exit "$ac_status"); } &&
12728 { ac_try='test -s "conftest$ac_exeext"'
12729 { (eval echo "$as_me:12729: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12732 echo "$as_me:12732: \$? = $ac_status" >&5
12733 (exit "$ac_status"); }; }; then
12734 am_cv_langinfo_codeset=yes
12736 echo "$as_me: failed program was:" >&5
12737 cat "conftest.$ac_ext" >&5
12738 am_cv_langinfo_codeset=no
12740 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12743 echo "$as_me:12743: result: $am_cv_langinfo_codeset" >&5
12744 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12745 if test "$am_cv_langinfo_codeset" = yes; then
12747 cat >>confdefs.h <<\EOF
12748 #define HAVE_LANGINFO_CODESET 1
12753 # use these variables to work around a defect in gcc's fixincludes.
12754 NCURSES_OK_WCHAR_T=
12757 echo "$as_me:12757: checking if you want wide-character code" >&5
12758 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
12760 # Check whether --enable-widec or --disable-widec was given.
12761 if test "${enable_widec+set}" = set; then
12762 enableval="$enable_widec"
12763 with_widec=$enableval
12765 with_widec=$cf_dft_widec
12767 echo "$as_me:12767: result: $with_widec" >&5
12768 echo "${ECHO_T}$with_widec" >&6
12770 NCURSES_WCWIDTH_GRAPHICS=1
12772 if test "x$with_widec" = xyes ; then
12773 if test "x$disable_lib_suffixes" = xno ; then
12774 LIB_SUFFIX="w${LIB_SUFFIX}"
12777 cat >>confdefs.h <<\EOF
12778 #define USE_WIDEC_SUPPORT 1
12781 cat >>confdefs.h <<\EOF
12782 #define NCURSES_WIDECHAR 1
12785 case "$CPPFLAGS" in
12789 { echo "$as_me:12789: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&5
12790 echo "$as_me: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&2;}
12791 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
12792 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
12801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12802 echo "$as_me:12802: checking for $ac_header" >&5
12803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 cat >"conftest.$ac_ext" <<_ACEOF
12808 #line 12808 "configure"
12809 #include "confdefs.h"
12810 #include <$ac_header>
12812 if { (eval echo "$as_me:12812: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12813 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12815 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:12818: \$? = $ac_status" >&5
12819 (exit "$ac_status"); } >/dev/null; then
12820 if test -s conftest.err; then
12821 ac_cpp_err=$ac_c_preproc_warn_flag
12828 if test -z "$ac_cpp_err"; then
12829 eval "$as_ac_Header=yes"
12831 echo "$as_me: failed program was:" >&5
12832 cat "conftest.$ac_ext" >&5
12833 eval "$as_ac_Header=no"
12835 rm -f conftest.err "conftest.$ac_ext"
12837 echo "$as_me:12837: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12838 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12839 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12840 cat >>confdefs.h <<EOF
12841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12847 echo "$as_me:12847: checking if wchar.h can be used as is" >&5
12848 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
12849 if test "${cf_cv_wchar_h_okay+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 cat >"conftest.$ac_ext" <<_ACEOF
12854 #line 12854 "configure"
12855 #include "confdefs.h"
12857 $ac_includes_default
12858 #ifdef HAVE_WCHAR_H
12861 #ifdef HAVE_WCTYPE_H
12862 #include <wctype.h>
12870 int bar = iswpunct(foo); (void) bar
12875 rm -f "conftest.$ac_objext"
12876 if { (eval echo "$as_me:12876: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>&5
12879 echo "$as_me:12879: \$? = $ac_status" >&5
12880 (exit "$ac_status"); } &&
12881 { ac_try='test -s "conftest.$ac_objext"'
12882 { (eval echo "$as_me:12882: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit "$ac_status"); }; }; then
12887 cf_cv_wchar_h_okay=yes
12889 echo "$as_me: failed program was:" >&5
12890 cat "conftest.$ac_ext" >&5
12891 cf_cv_wchar_h_okay=no
12893 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12895 echo "$as_me:12895: result: $cf_cv_wchar_h_okay" >&5
12896 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12898 if test "$cf_cv_wchar_h_okay" = no
12901 echo "$as_me:12901: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12902 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12903 cat >"conftest.$ac_ext" <<_ACEOF
12904 #line 12904 "configure"
12905 #include "confdefs.h"
12906 #include <sys/types.h>
12912 #ifndef _XOPEN_SOURCE_EXTENDED
12913 #error _XOPEN_SOURCE_EXTENDED is not defined
12919 rm -f "conftest.$ac_objext"
12920 if { (eval echo "$as_me:12920: \"$ac_compile\"") >&5
12921 (eval $ac_compile) 2>&5
12923 echo "$as_me:12923: \$? = $ac_status" >&5
12924 (exit "$ac_status"); } &&
12925 { ac_try='test -s "conftest.$ac_objext"'
12926 { (eval echo "$as_me:12926: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 echo "$as_me:12929: \$? = $ac_status" >&5
12930 (exit "$ac_status"); }; }; then
12933 echo "$as_me: failed program was:" >&5
12934 cat "conftest.$ac_ext" >&5
12937 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12938 echo "$as_me:12938: result: $cf_result" >&5
12939 echo "${ECHO_T}$cf_result" >&6
12941 if test "$cf_result" = yes ; then
12942 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12943 elif test "x" != "x" ; then
12944 echo "$as_me:12944: checking checking for compatible value versus " >&5
12945 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12946 cat >"conftest.$ac_ext" <<_ACEOF
12947 #line 12947 "configure"
12948 #include "confdefs.h"
12949 #include <sys/types.h>
12955 #if _XOPEN_SOURCE_EXTENDED- < 0
12956 #error _XOPEN_SOURCE_EXTENDED- is negative
12962 rm -f "conftest.$ac_objext"
12963 if { (eval echo "$as_me:12963: \"$ac_compile\"") >&5
12964 (eval $ac_compile) 2>&5
12966 echo "$as_me:12966: \$? = $ac_status" >&5
12967 (exit "$ac_status"); } &&
12968 { ac_try='test -s "conftest.$ac_objext"'
12969 { (eval echo "$as_me:12969: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:12972: \$? = $ac_status" >&5
12973 (exit "$ac_status"); }; }; then
12976 echo "$as_me: failed program was:" >&5
12977 cat "conftest.$ac_ext" >&5
12980 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12981 echo "$as_me:12981: result: $cf_result" >&5
12982 echo "${ECHO_T}$cf_result" >&6
12983 if test "$cf_result" = no ; then
12984 # perhaps we can override it - try...
12985 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12991 echo "$as_me:12991: checking if wcwidth agrees graphics are single-width" >&5
12992 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12993 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 cat >conftest.in <<CF_EOF
12999 0x250c upper left corner
13000 0x2514 lower left corner
13001 0x2510 upper right corner
13002 0x2518 lower right corner
13003 0x251c tee pointing left
13004 0x2524 tee pointing right
13005 0x2534 tee pointing up
13006 0x252c tee pointing down
13007 0x2500 horizontal line
13008 0x2502 vertical line
13009 0x253c large plus or crossover
13013 0x2592 checker board (stipple)
13014 0x00b0 degree symbol
13017 - Teletype 5410v1 symbols
13018 0x2190 arrow pointing left
13019 0x2192 arrow pointing right
13020 0x2193 arrow pointing down
13021 0x2191 arrow pointing up
13022 0x2592 board of squares
13023 0x2603 lantern symbol
13024 0x25ae solid square block
13025 - these defaults were invented for ncurses
13028 0x2264 less-than-or-equal-to
13029 0x2265 greater-than-or-equal-to
13032 0x00a3 pound-sterling symbol
13033 - thick-line-drawing
13034 0x250f upper left corner
13035 0x2517 lower left corner
13036 0x2513 upper right corner
13037 0x251b lower right corner
13038 0x2523 tee pointing left
13039 0x252b tee pointing right
13040 0x253b tee pointing up
13041 0x2533 tee pointing down
13042 0x2501 horizontal line
13043 0x2503 vertical line
13044 0x254b large plus or crossover
13045 - double-line-drawing
13046 0x2554 upper left corner
13047 0x255a lower left corner
13048 0x2557 upper right corner
13049 0x255d lower right corner
13050 0x2563 tee pointing left
13051 0x2560 tee pointing right
13052 0x2569 tee pointing up
13053 0x2566 tee pointing down
13054 0x2550 horizontal line
13055 0x2551 vertical line
13056 0x256c large plus or crossover
13058 if test "$cross_compiling" = yes; then
13059 cf_cv_wcwidth_graphics=unknown
13061 cat >"conftest.$ac_ext" <<_ACEOF
13062 #line 13062 "configure"
13063 #include "confdefs.h"
13065 $ac_includes_default
13067 #include <locale.h>
13077 char buffer[MY_LEN + 1];
13078 char notes[MY_LEN + 1];
13082 if (setlocale(LC_ALL, "en_US.UTF8") ||
13083 setlocale(LC_ALL, "en_US.UTF-8") ||
13084 setlocale(LC_ALL, "en_US.utf8") ||
13085 setlocale(LC_ALL, "en_US.utf-8")) {
13086 if ((fp = fopen("conftest.in", "r")) != 0) {
13087 while (fgets(buffer, MY_LEN, fp) != 0) {
13088 if (*buffer == '-') {
13089 fprintf(stderr, "\\t%s", buffer);
13090 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
13092 if (wcwidth((int)value) == 1)
13094 fprintf(stderr, "%d\\t%s", wcwidth((int)value), buffer);
13096 fprintf(stderr, "?\\t%s", buffer);
13101 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
13102 return (totals == passed) ? 0 : 1;
13106 rm -f "conftest$ac_exeext"
13107 if { (eval echo "$as_me:13107: \"$ac_link\"") >&5
13108 (eval $ac_link) 2>&5
13110 echo "$as_me:13110: \$? = $ac_status" >&5
13111 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
13112 { (eval echo "$as_me:13112: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:13115: \$? = $ac_status" >&5
13116 (exit "$ac_status"); }; }; then
13117 cf_cv_wcwidth_graphics=yes
13119 echo "$as_me: program exited with status $ac_status" >&5
13120 echo "$as_me: failed program was:" >&5
13121 cat "conftest.$ac_ext" >&5
13122 cf_cv_wcwidth_graphics=no
13124 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
13128 echo "$as_me:13128: result: $cf_cv_wcwidth_graphics" >&5
13129 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
13131 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
13133 # with_overwrite=no
13134 NCURSES_CH_T=cchar_t
13136 for ac_func in putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
13138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13139 echo "$as_me:13139: checking for $ac_func" >&5
13140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13141 if eval "test \"\${$as_ac_var+set}\" = set"; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 cat >"conftest.$ac_ext" <<_ACEOF
13145 #line 13145 "configure"
13146 #include "confdefs.h"
13147 #define $ac_func autoconf_temporary
13148 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13155 /* We use char because int might match the return type of a gcc2
13156 builtin and then its argument prototype would still apply. */
13157 char $ac_func (void);
13163 /* The GNU C library defines stubs for functions which it implements
13164 to always fail with ENOSYS. Some functions are actually named
13165 something starting with __ and the normal name is an alias. */
13166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13167 #error found stub for $ac_func
13170 return $ac_func ();
13175 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13176 if { (eval echo "$as_me:13176: \"$ac_link\"") >&5
13177 (eval $ac_link) 2>&5
13179 echo "$as_me:13179: \$? = $ac_status" >&5
13180 (exit "$ac_status"); } &&
13181 { ac_try='test -s "conftest$ac_exeext"'
13182 { (eval echo "$as_me:13182: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:13185: \$? = $ac_status" >&5
13186 (exit "$ac_status"); }; }; then
13187 eval "$as_ac_var=yes"
13189 echo "$as_me: failed program was:" >&5
13190 cat "conftest.$ac_ext" >&5
13191 eval "$as_ac_var=no"
13193 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13195 echo "$as_me:13195: result: `eval echo '${'"$as_ac_var"'}'`" >&5
13196 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
13197 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
13198 cat >>confdefs.h <<EOF
13199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13205 if test "x$ac_cv_func_putwc" != xyes ; then
13207 for ac_header in wchar.h
13209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13210 echo "$as_me:13210: checking for $ac_header" >&5
13211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 cat >"conftest.$ac_ext" <<_ACEOF
13216 #line 13216 "configure"
13217 #include "confdefs.h"
13218 #include <$ac_header>
13220 if { (eval echo "$as_me:13220: \"$ac_cpp "conftest.$ac_ext"\"") >&5
13221 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
13223 $EGREP -v '^ *\+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:13226: \$? = $ac_status" >&5
13227 (exit "$ac_status"); } >/dev/null; then
13228 if test -s conftest.err; then
13229 ac_cpp_err=$ac_c_preproc_warn_flag
13236 if test -z "$ac_cpp_err"; then
13237 eval "$as_ac_Header=yes"
13239 echo "$as_me: failed program was:" >&5
13240 cat "conftest.$ac_ext" >&5
13241 eval "$as_ac_Header=no"
13243 rm -f conftest.err "conftest.$ac_ext"
13245 echo "$as_me:13245: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
13246 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
13247 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
13248 cat >>confdefs.h <<EOF
13249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13255 echo "$as_me:13255: checking for multibyte character support" >&5
13256 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
13257 if test "${cf_cv_utf8_lib+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 cf_save_LIBS="$LIBS"
13262 cat >"conftest.$ac_ext" <<_ACEOF
13263 #line 13263 "configure"
13264 #include "confdefs.h"
13266 $ac_includes_default
13267 #ifdef HAVE_WCHAR_H
13279 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13280 if { (eval echo "$as_me:13280: \"$ac_link\"") >&5
13281 (eval $ac_link) 2>&5
13283 echo "$as_me:13283: \$? = $ac_status" >&5
13284 (exit "$ac_status"); } &&
13285 { ac_try='test -s "conftest$ac_exeext"'
13286 { (eval echo "$as_me:13286: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:13289: \$? = $ac_status" >&5
13290 (exit "$ac_status"); }; }; then
13293 echo "$as_me: failed program was:" >&5
13294 cat "conftest.$ac_ext" >&5
13296 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
13297 # will be set on completion of the AC_TRY_LINK below.
13298 cf_cv_header_path_utf8=
13299 cf_cv_library_path_utf8=
13301 echo "${as_me:-configure}:13301: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
13303 cf_save_LIBS="$LIBS"
13305 cat >"conftest.$ac_ext" <<_ACEOF
13306 #line 13306 "configure"
13307 #include "confdefs.h"
13309 #include <libutf8.h>
13318 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13319 if { (eval echo "$as_me:13319: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13322 echo "$as_me:13322: \$? = $ac_status" >&5
13323 (exit "$ac_status"); } &&
13324 { ac_try='test -s "conftest$ac_exeext"'
13325 { (eval echo "$as_me:13325: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:13328: \$? = $ac_status" >&5
13329 (exit "$ac_status"); }; }; then
13331 cf_cv_find_linkage_utf8=yes
13332 cf_cv_header_path_utf8=/usr/include
13333 cf_cv_library_path_utf8=/usr/lib
13336 echo "$as_me: failed program was:" >&5
13337 cat "conftest.$ac_ext" >&5
13339 LIBS="-lutf8 $cf_save_LIBS"
13341 cat >"conftest.$ac_ext" <<_ACEOF
13342 #line 13342 "configure"
13343 #include "confdefs.h"
13345 #include <libutf8.h>
13354 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13355 if { (eval echo "$as_me:13355: \"$ac_link\"") >&5
13356 (eval $ac_link) 2>&5
13358 echo "$as_me:13358: \$? = $ac_status" >&5
13359 (exit "$ac_status"); } &&
13360 { ac_try='test -s "conftest$ac_exeext"'
13361 { (eval echo "$as_me:13361: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13364 echo "$as_me:13364: \$? = $ac_status" >&5
13365 (exit "$ac_status"); }; }; then
13367 cf_cv_find_linkage_utf8=yes
13368 cf_cv_header_path_utf8=/usr/include
13369 cf_cv_library_path_utf8=/usr/lib
13370 cf_cv_library_file_utf8="-lutf8"
13373 echo "$as_me: failed program was:" >&5
13374 cat "conftest.$ac_ext" >&5
13376 cf_cv_find_linkage_utf8=no
13377 LIBS="$cf_save_LIBS"
13379 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
13381 echo "${as_me:-configure}:13381: testing find linkage for utf8 library ..." 1>&5
13383 echo "${as_me:-configure}:13383: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
13385 cf_save_CPPFLAGS="$CPPFLAGS"
13386 cf_test_CPPFLAGS="$CPPFLAGS"
13390 # collect the current set of include-directories from compiler flags
13391 cf_header_path_list=""
13392 if test -n "${CFLAGS}${CPPFLAGS}" ; then
13393 for cf_header_path in $CPPFLAGS $CFLAGS
13395 case "$cf_header_path" in
13397 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
13399 test "x$cf_header_path" != "xNONE" && \
13400 test -d "$cf_header_path" && \
13402 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
13403 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
13404 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
13405 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
13406 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
13407 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
13410 cf_header_path_list="$cf_header_path_list $cf_search"
13416 # add the variations for the package we are looking for
13420 test "x$prefix" != "xNONE" && \
13421 test -d "$prefix" && \
13423 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
13424 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
13425 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
13426 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
13427 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
13428 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
13431 for cf_subdir_prefix in \
13440 test "x$cf_subdir_prefix" != "x$prefix" && \
13441 test -d "$cf_subdir_prefix" && \
13442 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13443 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
13444 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
13445 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
13446 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
13447 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
13448 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
13453 test "$includedir" != NONE && \
13454 test "$includedir" != "/usr/include" && \
13455 test -d "$includedir" && {
13456 test -d "$includedir" && cf_search="$cf_search $includedir"
13457 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
13460 test "$oldincludedir" != NONE && \
13461 test "$oldincludedir" != "/usr/include" && \
13462 test -d "$oldincludedir" && {
13463 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
13464 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
13467 cf_search="$cf_search $cf_header_path_list"
13469 for cf_cv_header_path_utf8 in $cf_search
13471 if test -d "$cf_cv_header_path_utf8" ; then
13472 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
13474 echo "${as_me:-configure}:13474: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
13476 CPPFLAGS="$cf_save_CPPFLAGS"
13478 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13479 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
13481 cat >"conftest.$ac_ext" <<_ACEOF
13482 #line 13482 "configure"
13483 #include "confdefs.h"
13485 #include <libutf8.h>
13494 rm -f "conftest.$ac_objext"
13495 if { (eval echo "$as_me:13495: \"$ac_compile\"") >&5
13496 (eval $ac_compile) 2>&5
13498 echo "$as_me:13498: \$? = $ac_status" >&5
13499 (exit "$ac_status"); } &&
13500 { ac_try='test -s "conftest.$ac_objext"'
13501 { (eval echo "$as_me:13501: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13504 echo "$as_me:13504: \$? = $ac_status" >&5
13505 (exit "$ac_status"); }; }; then
13507 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
13509 echo "${as_me:-configure}:13509: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
13511 cf_cv_find_linkage_utf8=maybe
13512 cf_test_CPPFLAGS="$CPPFLAGS"
13515 echo "$as_me: failed program was:" >&5
13516 cat "conftest.$ac_ext" >&5
13518 CPPFLAGS="$cf_save_CPPFLAGS"
13521 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13525 if test "$cf_cv_find_linkage_utf8" = maybe ; then
13527 echo "${as_me:-configure}:13527: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
13529 cf_save_LIBS="$LIBS"
13530 cf_save_LDFLAGS="$LDFLAGS"
13532 if test "$cf_cv_find_linkage_utf8" != yes ; then
13535 cf_library_path_list=""
13536 if test -n "${LDFLAGS}${LIBS}" ; then
13537 for cf_library_path in $LDFLAGS $LIBS
13539 case "$cf_library_path" in
13541 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
13543 test "x$cf_library_path" != "xNONE" && \
13544 test -d "$cf_library_path" && \
13546 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
13547 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
13548 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
13549 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
13550 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
13551 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
13554 cf_library_path_list="$cf_library_path_list $cf_search"
13562 test "x$prefix" != "xNONE" && \
13563 test -d "$prefix" && \
13565 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
13566 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
13567 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
13568 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
13569 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
13570 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
13573 for cf_subdir_prefix in \
13582 test "x$cf_subdir_prefix" != "x$prefix" && \
13583 test -d "$cf_subdir_prefix" && \
13584 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13585 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
13586 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
13587 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
13588 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
13589 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
13590 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
13595 cf_search="$cf_library_path_list $cf_search"
13597 for cf_cv_library_path_utf8 in $cf_search
13599 if test -d "$cf_cv_library_path_utf8" ; then
13600 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
13602 echo "${as_me:-configure}:13602: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
13604 CPPFLAGS="$cf_test_CPPFLAGS"
13605 LIBS="-lutf8 $cf_save_LIBS"
13606 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
13607 cat >"conftest.$ac_ext" <<_ACEOF
13608 #line 13608 "configure"
13609 #include "confdefs.h"
13611 #include <libutf8.h>
13620 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13621 if { (eval echo "$as_me:13621: \"$ac_link\"") >&5
13622 (eval $ac_link) 2>&5
13624 echo "$as_me:13624: \$? = $ac_status" >&5
13625 (exit "$ac_status"); } &&
13626 { ac_try='test -s "conftest$ac_exeext"'
13627 { (eval echo "$as_me:13627: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:13630: \$? = $ac_status" >&5
13631 (exit "$ac_status"); }; }; then
13633 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
13635 echo "${as_me:-configure}:13635: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
13637 cf_cv_find_linkage_utf8=yes
13638 cf_cv_library_file_utf8="-lutf8"
13641 echo "$as_me: failed program was:" >&5
13642 cat "conftest.$ac_ext" >&5
13644 CPPFLAGS="$cf_save_CPPFLAGS"
13645 LIBS="$cf_save_LIBS"
13646 LDFLAGS="$cf_save_LDFLAGS"
13649 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13652 CPPFLAGS="$cf_save_CPPFLAGS"
13653 LDFLAGS="$cf_save_LDFLAGS"
13657 cf_cv_find_linkage_utf8=no
13661 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13664 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13666 LIBS="$cf_save_LIBS"
13668 if test "$cf_cv_find_linkage_utf8" = yes ; then
13669 cf_cv_utf8_lib=add-on
13675 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13677 echo "$as_me:13677: result: $cf_cv_utf8_lib" >&5
13678 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
13680 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
13681 # ncurses/ncursesw:
13682 if test "$cf_cv_utf8_lib" = "add-on" ; then
13684 cat >>confdefs.h <<\EOF
13685 #define HAVE_LIBUTF8_H 1
13688 if test -n "$cf_cv_header_path_utf8" ; then
13689 for cf_add_incdir in $cf_cv_header_path_utf8
13691 while test "$cf_add_incdir" != /usr/include
13693 if test -d "$cf_add_incdir"
13696 if test -n "$CFLAGS$CPPFLAGS" ; then
13697 # a loop is needed to ensure we can add subdirs of existing dirs
13698 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13699 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13700 cf_have_incdir=yes; break
13705 if test "$cf_have_incdir" = no ; then
13706 if test "$cf_add_incdir" = /usr/local/include ; then
13707 if test "$GCC" = yes
13709 cf_save_CPPFLAGS=$CPPFLAGS
13711 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13712 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
13714 cat >"conftest.$ac_ext" <<_ACEOF
13715 #line 13715 "configure"
13716 #include "confdefs.h"
13726 rm -f "conftest.$ac_objext"
13727 if { (eval echo "$as_me:13727: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>&5
13730 echo "$as_me:13730: \$? = $ac_status" >&5
13731 (exit "$ac_status"); } &&
13732 { ac_try='test -s "conftest.$ac_objext"'
13733 { (eval echo "$as_me:13733: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13736 echo "$as_me:13736: \$? = $ac_status" >&5
13737 (exit "$ac_status"); }; }; then
13740 echo "$as_me: failed program was:" >&5
13741 cat "conftest.$ac_ext" >&5
13744 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13745 CPPFLAGS=$cf_save_CPPFLAGS
13750 if test "$cf_have_incdir" = no ; then
13751 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13753 echo "${as_me:-configure}:13753: testing adding $cf_add_incdir to include-path ..." 1>&5
13755 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13757 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
13758 test "$cf_top_incdir" = "$cf_add_incdir" && break
13759 cf_add_incdir="$cf_top_incdir"
13770 if test -n "$cf_cv_library_path_utf8" ; then
13771 for cf_add_libdir in $cf_cv_library_path_utf8
13773 if test "$cf_add_libdir" = /usr/lib ; then
13775 elif test -d "$cf_add_libdir"
13778 if test -n "$LDFLAGS$LIBS" ; then
13779 # a loop is needed to ensure we can add subdirs of existing dirs
13780 for cf_test_libdir in $LDFLAGS $LIBS ; do
13781 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13782 cf_have_libdir=yes; break
13786 if test "$cf_have_libdir" = no ; then
13787 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13789 echo "${as_me:-configure}:13789: testing adding $cf_add_libdir to library-path ..." 1>&5
13791 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13797 cf_add_libs="$LIBS"
13800 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13801 # filter duplicates
13802 for cf_add_1lib in $cf_add_0lib; do
13803 for cf_add_2lib in $cf_add_libs; do
13804 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13809 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13811 LIBS="$cf_add_libs"
13815 if test "$cf_cv_utf8_lib" != no ; then
13820 # This is needed on Tru64 5.0 to declare mbstate_t
13821 echo "$as_me:13821: checking if we must include wchar.h to declare mbstate_t" >&5
13822 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13823 if test "${cf_cv_mbstate_t+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 cat >"conftest.$ac_ext" <<_ACEOF
13828 #line 13828 "configure"
13829 #include "confdefs.h"
13831 #include <stdlib.h>
13832 #include <stdarg.h>
13834 #ifdef HAVE_LIBUTF8_H
13835 #include <libutf8.h>
13840 mbstate_t state; (void)state
13845 rm -f "conftest.$ac_objext"
13846 if { (eval echo "$as_me:13846: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>&5
13849 echo "$as_me:13849: \$? = $ac_status" >&5
13850 (exit "$ac_status"); } &&
13851 { ac_try='test -s "conftest.$ac_objext"'
13852 { (eval echo "$as_me:13852: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13855 echo "$as_me:13855: \$? = $ac_status" >&5
13856 (exit "$ac_status"); }; }; then
13859 echo "$as_me: failed program was:" >&5
13860 cat "conftest.$ac_ext" >&5
13861 cat >"conftest.$ac_ext" <<_ACEOF
13862 #line 13862 "configure"
13863 #include "confdefs.h"
13865 #include <stdlib.h>
13866 #include <stdarg.h>
13869 #ifdef HAVE_LIBUTF8_H
13870 #include <libutf8.h>
13875 mbstate_t value; (void) value
13880 rm -f "conftest.$ac_objext"
13881 if { (eval echo "$as_me:13881: \"$ac_compile\"") >&5
13882 (eval $ac_compile) 2>&5
13884 echo "$as_me:13884: \$? = $ac_status" >&5
13885 (exit "$ac_status"); } &&
13886 { ac_try='test -s "conftest.$ac_objext"'
13887 { (eval echo "$as_me:13887: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13890 echo "$as_me:13890: \$? = $ac_status" >&5
13891 (exit "$ac_status"); }; }; then
13892 cf_cv_mbstate_t=yes
13894 echo "$as_me: failed program was:" >&5
13895 cat "conftest.$ac_ext" >&5
13896 cf_cv_mbstate_t=unknown
13898 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13900 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13902 echo "$as_me:13902: result: $cf_cv_mbstate_t" >&5
13903 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13905 if test "$cf_cv_mbstate_t" = yes ; then
13907 cat >>confdefs.h <<\EOF
13908 #define NEED_WCHAR_H 1
13914 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13915 if test "$cf_cv_mbstate_t" = unknown ; then
13916 NCURSES_MBSTATE_T=1
13919 # This is needed on Tru64 5.0 to declare wchar_t
13920 echo "$as_me:13920: checking if we must include wchar.h to declare wchar_t" >&5
13921 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13922 if test "${cf_cv_wchar_t+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 cat >"conftest.$ac_ext" <<_ACEOF
13927 #line 13927 "configure"
13928 #include "confdefs.h"
13930 #include <stdlib.h>
13931 #include <stdarg.h>
13933 #ifdef HAVE_LIBUTF8_H
13934 #include <libutf8.h>
13939 wchar_t state; (void)state
13944 rm -f "conftest.$ac_objext"
13945 if { (eval echo "$as_me:13945: \"$ac_compile\"") >&5
13946 (eval $ac_compile) 2>&5
13948 echo "$as_me:13948: \$? = $ac_status" >&5
13949 (exit "$ac_status"); } &&
13950 { ac_try='test -s "conftest.$ac_objext"'
13951 { (eval echo "$as_me:13951: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:13954: \$? = $ac_status" >&5
13955 (exit "$ac_status"); }; }; then
13958 echo "$as_me: failed program was:" >&5
13959 cat "conftest.$ac_ext" >&5
13960 cat >"conftest.$ac_ext" <<_ACEOF
13961 #line 13961 "configure"
13962 #include "confdefs.h"
13964 #include <stdlib.h>
13965 #include <stdarg.h>
13968 #ifdef HAVE_LIBUTF8_H
13969 #include <libutf8.h>
13974 wchar_t value; (void) value
13979 rm -f "conftest.$ac_objext"
13980 if { (eval echo "$as_me:13980: \"$ac_compile\"") >&5
13981 (eval $ac_compile) 2>&5
13983 echo "$as_me:13983: \$? = $ac_status" >&5
13984 (exit "$ac_status"); } &&
13985 { ac_try='test -s "conftest.$ac_objext"'
13986 { (eval echo "$as_me:13986: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:13989: \$? = $ac_status" >&5
13990 (exit "$ac_status"); }; }; then
13993 echo "$as_me: failed program was:" >&5
13994 cat "conftest.$ac_ext" >&5
13995 cf_cv_wchar_t=unknown
13997 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13999 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14001 echo "$as_me:14001: result: $cf_cv_wchar_t" >&5
14002 echo "${ECHO_T}$cf_cv_wchar_t" >&6
14004 if test "$cf_cv_wchar_t" = yes ; then
14006 cat >>confdefs.h <<\EOF
14007 #define NEED_WCHAR_H 1
14013 # if we do not find wchar_t in either place, use substitution to provide a fallback.
14014 if test "$cf_cv_wchar_t" = unknown ; then
14018 # if we find wchar_t in either place, use substitution to provide a fallback.
14019 if test "$cf_cv_wchar_t" != unknown ; then
14020 NCURSES_OK_WCHAR_T=1
14023 # This is needed on Tru64 5.0 to declare wint_t
14024 echo "$as_me:14024: checking if we must include wchar.h to declare wint_t" >&5
14025 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
14026 if test "${cf_cv_wint_t+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 cat >"conftest.$ac_ext" <<_ACEOF
14031 #line 14031 "configure"
14032 #include "confdefs.h"
14034 #include <stdlib.h>
14035 #include <stdarg.h>
14037 #ifdef HAVE_LIBUTF8_H
14038 #include <libutf8.h>
14043 wint_t state; (void)state
14048 rm -f "conftest.$ac_objext"
14049 if { (eval echo "$as_me:14049: \"$ac_compile\"") >&5
14050 (eval $ac_compile) 2>&5
14052 echo "$as_me:14052: \$? = $ac_status" >&5
14053 (exit "$ac_status"); } &&
14054 { ac_try='test -s "conftest.$ac_objext"'
14055 { (eval echo "$as_me:14055: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:14058: \$? = $ac_status" >&5
14059 (exit "$ac_status"); }; }; then
14062 echo "$as_me: failed program was:" >&5
14063 cat "conftest.$ac_ext" >&5
14064 cat >"conftest.$ac_ext" <<_ACEOF
14065 #line 14065 "configure"
14066 #include "confdefs.h"
14068 #include <stdlib.h>
14069 #include <stdarg.h>
14072 #ifdef HAVE_LIBUTF8_H
14073 #include <libutf8.h>
14078 wint_t value; (void) value
14083 rm -f "conftest.$ac_objext"
14084 if { (eval echo "$as_me:14084: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>&5
14087 echo "$as_me:14087: \$? = $ac_status" >&5
14088 (exit "$ac_status"); } &&
14089 { ac_try='test -s "conftest.$ac_objext"'
14090 { (eval echo "$as_me:14090: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:14093: \$? = $ac_status" >&5
14094 (exit "$ac_status"); }; }; then
14097 echo "$as_me: failed program was:" >&5
14098 cat "conftest.$ac_ext" >&5
14099 cf_cv_wint_t=unknown
14101 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14103 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14105 echo "$as_me:14105: result: $cf_cv_wint_t" >&5
14106 echo "${ECHO_T}$cf_cv_wint_t" >&6
14108 if test "$cf_cv_wint_t" = yes ; then
14110 cat >>confdefs.h <<\EOF
14111 #define NEED_WCHAR_H 1
14117 # if we do not find wint_t in either place, use substitution to provide a fallback.
14118 if test "$cf_cv_wint_t" = unknown ; then
14122 # if we find wint_t in either place, use substitution to provide a fallback.
14123 if test "$cf_cv_wint_t" != unknown ; then
14124 NCURSES_OK_WINT_T=1
14127 if test "$NCURSES_MBSTATE_T" != 0; then
14129 cat >>confdefs.h <<\EOF
14130 #define NEED_MBSTATE_T_DEF 1
14136 ### use option --disable-lp64 to allow long chtype
14137 echo "$as_me:14137: checking whether to enable _LP64 definition in curses.h" >&5
14138 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
14140 # Check whether --enable-lp64 or --disable-lp64 was given.
14141 if test "${enable_lp64+set}" = set; then
14142 enableval="$enable_lp64"
14143 with_lp64=$enableval
14145 with_lp64=$cf_dft_with_lp64
14147 echo "$as_me:14147: result: $with_lp64" >&5
14148 echo "${ECHO_T}$with_lp64" >&6
14150 if test "x$with_lp64" = xyes ; then
14151 cf_cv_enable_lp64=1
14153 cf_cv_enable_lp64=0
14156 # Check whether --enable-largefile or --disable-largefile was given.
14157 if test "${enable_largefile+set}" = set; then
14158 enableval="$enable_largefile"
14161 if test "$enable_largefile" != no; then
14163 echo "$as_me:14163: checking for special C compiler options needed for large files" >&5
14164 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14165 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 ac_cv_sys_largefile_CC=no
14169 if test "$GCC" != yes; then
14172 # IRIX 6.2 and later do not support large files by default,
14173 # so use the C compiler's -n32 option if that helps.
14174 cat >"conftest.$ac_ext" <<_ACEOF
14175 #line 14175 "configure"
14176 #include "confdefs.h"
14177 #include <sys/types.h>
14178 /* Check that off_t can represent 2**63 - 1 correctly.
14179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14180 since some C++ compilers masquerading as C compilers
14181 incorrectly reject 9223372036854775807. */
14182 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14184 && LARGE_OFF_T % 2147483647 == 1)
14194 rm -f "conftest.$ac_objext"
14195 if { (eval echo "$as_me:14195: \"$ac_compile\"") >&5
14196 (eval $ac_compile) 2>&5
14198 echo "$as_me:14198: \$? = $ac_status" >&5
14199 (exit "$ac_status"); } &&
14200 { ac_try='test -s "conftest.$ac_objext"'
14201 { (eval echo "$as_me:14201: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:14204: \$? = $ac_status" >&5
14205 (exit "$ac_status"); }; }; then
14208 echo "$as_me: failed program was:" >&5
14209 cat "conftest.$ac_ext" >&5
14211 rm -f "conftest.$ac_objext"
14213 rm -f "conftest.$ac_objext"
14214 if { (eval echo "$as_me:14214: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>&5
14217 echo "$as_me:14217: \$? = $ac_status" >&5
14218 (exit "$ac_status"); } &&
14219 { ac_try='test -s "conftest.$ac_objext"'
14220 { (eval echo "$as_me:14220: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14223 echo "$as_me:14223: \$? = $ac_status" >&5
14224 (exit "$ac_status"); }; }; then
14225 ac_cv_sys_largefile_CC=' -n32'; break
14227 echo "$as_me: failed program was:" >&5
14228 cat "conftest.$ac_ext" >&5
14230 rm -f "conftest.$ac_objext"
14234 rm -f "conftest.$ac_ext"
14237 echo "$as_me:14237: result: $ac_cv_sys_largefile_CC" >&5
14238 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14239 if test "$ac_cv_sys_largefile_CC" != no; then
14240 CC=$CC$ac_cv_sys_largefile_CC
14243 echo "$as_me:14243: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14244 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14245 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 ac_cv_sys_file_offset_bits=no
14250 cat >"conftest.$ac_ext" <<_ACEOF
14251 #line 14251 "configure"
14252 #include "confdefs.h"
14253 #include <sys/types.h>
14254 /* Check that off_t can represent 2**63 - 1 correctly.
14255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14256 since some C++ compilers masquerading as C compilers
14257 incorrectly reject 9223372036854775807. */
14258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14260 && LARGE_OFF_T % 2147483647 == 1)
14270 rm -f "conftest.$ac_objext"
14271 if { (eval echo "$as_me:14271: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>&5
14274 echo "$as_me:14274: \$? = $ac_status" >&5
14275 (exit "$ac_status"); } &&
14276 { ac_try='test -s "conftest.$ac_objext"'
14277 { (eval echo "$as_me:14277: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:14280: \$? = $ac_status" >&5
14281 (exit "$ac_status"); }; }; then
14284 echo "$as_me: failed program was:" >&5
14285 cat "conftest.$ac_ext" >&5
14287 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14288 cat >"conftest.$ac_ext" <<_ACEOF
14289 #line 14289 "configure"
14290 #include "confdefs.h"
14291 #define _FILE_OFFSET_BITS 64
14292 #include <sys/types.h>
14293 /* Check that off_t can represent 2**63 - 1 correctly.
14294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14295 since some C++ compilers masquerading as C compilers
14296 incorrectly reject 9223372036854775807. */
14297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14299 && LARGE_OFF_T % 2147483647 == 1)
14309 rm -f "conftest.$ac_objext"
14310 if { (eval echo "$as_me:14310: \"$ac_compile\"") >&5
14311 (eval $ac_compile) 2>&5
14313 echo "$as_me:14313: \$? = $ac_status" >&5
14314 (exit "$ac_status"); } &&
14315 { ac_try='test -s "conftest.$ac_objext"'
14316 { (eval echo "$as_me:14316: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:14319: \$? = $ac_status" >&5
14320 (exit "$ac_status"); }; }; then
14321 ac_cv_sys_file_offset_bits=64; break
14323 echo "$as_me: failed program was:" >&5
14324 cat "conftest.$ac_ext" >&5
14326 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14330 echo "$as_me:14330: result: $ac_cv_sys_file_offset_bits" >&5
14331 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14332 if test "$ac_cv_sys_file_offset_bits" != no; then
14334 cat >>confdefs.h <<EOF
14335 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14340 echo "$as_me:14340: checking for _LARGE_FILES value needed for large files" >&5
14341 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14342 if test "${ac_cv_sys_large_files+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 ac_cv_sys_large_files=no
14347 cat >"conftest.$ac_ext" <<_ACEOF
14348 #line 14348 "configure"
14349 #include "confdefs.h"
14350 #include <sys/types.h>
14351 /* Check that off_t can represent 2**63 - 1 correctly.
14352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14353 since some C++ compilers masquerading as C compilers
14354 incorrectly reject 9223372036854775807. */
14355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14357 && LARGE_OFF_T % 2147483647 == 1)
14367 rm -f "conftest.$ac_objext"
14368 if { (eval echo "$as_me:14368: \"$ac_compile\"") >&5
14369 (eval $ac_compile) 2>&5
14371 echo "$as_me:14371: \$? = $ac_status" >&5
14372 (exit "$ac_status"); } &&
14373 { ac_try='test -s "conftest.$ac_objext"'
14374 { (eval echo "$as_me:14374: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:14377: \$? = $ac_status" >&5
14378 (exit "$ac_status"); }; }; then
14381 echo "$as_me: failed program was:" >&5
14382 cat "conftest.$ac_ext" >&5
14384 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14385 cat >"conftest.$ac_ext" <<_ACEOF
14386 #line 14386 "configure"
14387 #include "confdefs.h"
14388 #define _LARGE_FILES 1
14389 #include <sys/types.h>
14390 /* Check that off_t can represent 2**63 - 1 correctly.
14391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14392 since some C++ compilers masquerading as C compilers
14393 incorrectly reject 9223372036854775807. */
14394 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14396 && LARGE_OFF_T % 2147483647 == 1)
14406 rm -f "conftest.$ac_objext"
14407 if { (eval echo "$as_me:14407: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>&5
14410 echo "$as_me:14410: \$? = $ac_status" >&5
14411 (exit "$ac_status"); } &&
14412 { ac_try='test -s "conftest.$ac_objext"'
14413 { (eval echo "$as_me:14413: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:14416: \$? = $ac_status" >&5
14417 (exit "$ac_status"); }; }; then
14418 ac_cv_sys_large_files=1; break
14420 echo "$as_me: failed program was:" >&5
14421 cat "conftest.$ac_ext" >&5
14423 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14427 echo "$as_me:14427: result: $ac_cv_sys_large_files" >&5
14428 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14429 if test "$ac_cv_sys_large_files" != no; then
14431 cat >>confdefs.h <<EOF
14432 #define _LARGE_FILES $ac_cv_sys_large_files
14439 if test "$enable_largefile" != no ; then
14440 echo "$as_me:14440: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14441 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14442 if test "${ac_cv_sys_largefile_source+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 ac_cv_sys_largefile_source=no
14447 cat >"conftest.$ac_ext" <<_ACEOF
14448 #line 14448 "configure"
14449 #include "confdefs.h"
14451 #include <sys/types.h>
14456 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
14457 return my_fseeko(stdin, 0, 0);
14462 rm -f "conftest.$ac_objext"
14463 if { (eval echo "$as_me:14463: \"$ac_compile\"") >&5
14464 (eval $ac_compile) 2>&5
14466 echo "$as_me:14466: \$? = $ac_status" >&5
14467 (exit "$ac_status"); } &&
14468 { ac_try='test -s "conftest.$ac_objext"'
14469 { (eval echo "$as_me:14469: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14472 echo "$as_me:14472: \$? = $ac_status" >&5
14473 (exit "$ac_status"); }; }; then
14476 echo "$as_me: failed program was:" >&5
14477 cat "conftest.$ac_ext" >&5
14479 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14480 cat >"conftest.$ac_ext" <<_ACEOF
14481 #line 14481 "configure"
14482 #include "confdefs.h"
14483 #define _LARGEFILE_SOURCE 1
14485 #include <sys/types.h>
14490 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
14491 return my_fseeko(stdin, 0, 0);
14496 rm -f "conftest.$ac_objext"
14497 if { (eval echo "$as_me:14497: \"$ac_compile\"") >&5
14498 (eval $ac_compile) 2>&5
14500 echo "$as_me:14500: \$? = $ac_status" >&5
14501 (exit "$ac_status"); } &&
14502 { ac_try='test -s "conftest.$ac_objext"'
14503 { (eval echo "$as_me:14503: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14506 echo "$as_me:14506: \$? = $ac_status" >&5
14507 (exit "$ac_status"); }; }; then
14508 ac_cv_sys_largefile_source=1; break
14510 echo "$as_me: failed program was:" >&5
14511 cat "conftest.$ac_ext" >&5
14513 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14517 echo "$as_me:14517: result: $ac_cv_sys_largefile_source" >&5
14518 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14519 if test "$ac_cv_sys_largefile_source" != no; then
14521 cat >>confdefs.h <<EOF
14522 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14528 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14529 # in glibc 2.1.3, but that breaks too many other things.
14530 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14531 echo "$as_me:14531: checking for fseeko" >&5
14532 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14533 if test "${ac_cv_func_fseeko+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 cat >"conftest.$ac_ext" <<_ACEOF
14537 #line 14537 "configure"
14538 #include "confdefs.h"
14540 #include <sys/types.h>
14544 int (*my_fseeko)(FILE *, off_t, int) = fseeko;
14545 return my_fseeko && my_fseeko (stdin, 0, 0);
14550 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14551 if { (eval echo "$as_me:14551: \"$ac_link\"") >&5
14552 (eval $ac_link) 2>&5
14554 echo "$as_me:14554: \$? = $ac_status" >&5
14555 (exit "$ac_status"); } &&
14556 { ac_try='test -s "conftest$ac_exeext"'
14557 { (eval echo "$as_me:14557: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14560 echo "$as_me:14560: \$? = $ac_status" >&5
14561 (exit "$ac_status"); }; }; then
14562 ac_cv_func_fseeko=yes
14564 echo "$as_me: failed program was:" >&5
14565 cat "conftest.$ac_ext" >&5
14566 ac_cv_func_fseeko=no
14568 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14570 echo "$as_me:14570: result: $ac_cv_func_fseeko" >&5
14571 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14572 if test $ac_cv_func_fseeko = yes; then
14574 cat >>confdefs.h <<\EOF
14575 #define HAVE_FSEEKO 1
14580 # Normally we would collect these definitions in the config.h,
14581 # but (like _XOPEN_SOURCE), some environments rely on having these
14582 # defined before any of the system headers are included. Another
14583 # case comes up with C++, e.g., on AIX the compiler compiles the
14584 # header files by themselves before looking at the body files it is
14585 # told to compile. For ncurses, those header files do not include
14587 if test "$ac_cv_sys_large_files" != no
14590 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14591 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
14594 if test "$ac_cv_sys_largefile_source" != no
14597 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14598 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
14601 if test "$ac_cv_sys_file_offset_bits" != no
14604 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14605 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
14609 echo "$as_me:14609: checking whether to use struct dirent64" >&5
14610 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
14611 if test "${cf_cv_struct_dirent64+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 cat >"conftest.$ac_ext" <<_ACEOF
14616 #line 14616 "configure"
14617 #include "confdefs.h"
14619 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
14620 #include <sys/types.h>
14621 #include <dirent.h>
14624 /* if transitional largefile support is setup, this is true */
14625 extern struct dirent64 * readdir(DIR *);
14632 DIR *dp = opendir(".");
14633 struct dirent64 *x = readdir(dp);
14634 struct dirent *y = readdir(dp);
14642 rm -f "conftest.$ac_objext"
14643 if { (eval echo "$as_me:14643: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>&5
14646 echo "$as_me:14646: \$? = $ac_status" >&5
14647 (exit "$ac_status"); } &&
14648 { ac_try='test -s "conftest.$ac_objext"'
14649 { (eval echo "$as_me:14649: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:14652: \$? = $ac_status" >&5
14653 (exit "$ac_status"); }; }; then
14654 cf_cv_struct_dirent64=yes
14656 echo "$as_me: failed program was:" >&5
14657 cat "conftest.$ac_ext" >&5
14658 cf_cv_struct_dirent64=no
14660 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14663 echo "$as_me:14663: result: $cf_cv_struct_dirent64" >&5
14664 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
14665 test "$cf_cv_struct_dirent64" = yes &&
14666 cat >>confdefs.h <<\EOF
14667 #define HAVE_STRUCT_DIRENT64 1
14672 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
14673 echo "$as_me:14673: checking if you want tparm not to use X/Open fixed-parameter list" >&5
14674 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
14676 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
14677 if test "${enable_tparm_varargs+set}" = set; then
14678 enableval="$enable_tparm_varargs"
14679 with_tparm_varargs=$enableval
14681 with_tparm_varargs=yes
14683 echo "$as_me:14683: result: $with_tparm_varargs" >&5
14684 echo "${ECHO_T}$with_tparm_varargs" >&6
14685 NCURSES_TPARM_VARARGS=0
14686 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
14688 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
14689 if test "$with_ticlib" != no ; then
14690 echo "$as_me:14690: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
14691 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
14693 # Check whether --enable-tic-depends or --disable-tic-depends was given.
14694 if test "${enable_tic_depends+set}" = set; then
14695 enableval="$enable_tic_depends"
14696 with_tic_depends=$enableval
14698 with_tic_depends=yes
14700 echo "$as_me:14700: result: $with_tic_depends" >&5
14701 echo "${ECHO_T}$with_tic_depends" >&6
14703 with_tic_depends=no
14706 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
14707 echo "$as_me:14707: checking if you want to enable wattr* macros" >&5
14708 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
14710 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
14711 if test "${enable_wattr_macros+set}" = set; then
14712 enableval="$enable_wattr_macros"
14713 with_wattr_macros=$enableval
14715 with_wattr_macros=no
14717 if [ "x$with_wattr_macros" != xyes ]; then
14718 NCURSES_WATTR_MACROS=0
14719 echo "$as_me:14719: result: no" >&5
14720 echo "${ECHO_T}no" >&6
14722 NCURSES_WATTR_MACROS=1
14723 echo "$as_me:14723: result: yes" >&5
14724 echo "${ECHO_T}yes" >&6
14727 echo "$as_me:14727: checking for X11 rgb file" >&5
14728 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
14730 # Check whether --with-x11-rgb or --without-x11-rgb was given.
14731 if test "${with_x11_rgb+set}" = set; then
14732 withval="$with_x11_rgb"
14738 if test "x$RGB_PATH" = xauto
14740 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14742 /opt/local/share/X11/rgb.txt \
14743 /opt/X11/share/X11/rgb.txt \
14744 /usr/share/X11/rgb.txt \
14745 /usr/X11/share/X11/rgb.txt \
14746 /usr/X11/lib/X11/rgb.txt \
14747 /usr/lib/X11/rgb.txt \
14749 /usr/pkg/lib/X11/rgb.txt \
14750 /usr/X11R7/lib/X11/rgb.txt \
14751 /usr/X11R6/lib/X11/rgb.txt \
14752 /usr/X11R5/lib/X11/rgb.txt \
14753 /usr/X11R4/lib/X11/rgb.txt \
14754 /usr/local/lib/X11/rgb.txt \
14755 /usr/local/share/X11/rgb.txt \
14756 /usr/lib64/X11/rgb.txt
14758 if test -f "$cf_path" ; then
14759 RGB_PATH="$cf_path"
14766 if test "x$prefix" != xNONE; then
14767 cf_path_syntax="$prefix"
14769 cf_path_syntax="$ac_default_prefix"
14772 case ".$cf_path" in
14773 (.\$\(*\)*|.\'*\'*)
14777 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14779 (.\$\{*prefix\}*|.\$\{*dir\}*)
14780 eval cf_path="$cf_path"
14781 case ".$cf_path" in
14783 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14788 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14791 { { echo "$as_me:14791: error: expected a pathname, not \"$cf_path\"" >&5
14792 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14793 { (exit 1); exit 1; }; }
14799 echo "$as_me:14799: result: $RGB_PATH" >&5
14800 echo "${ECHO_T}$RGB_PATH" >&6
14802 cat >>confdefs.h <<EOF
14803 #define RGB_PATH "$cf_path"
14807 if test "$RGB_PATH" = no
14812 ### use option --with-bool to override bool's type
14814 echo "$as_me:14814: checking for type of bool" >&5
14815 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
14817 # Check whether --with-bool or --without-bool was given.
14818 if test "${with_bool+set}" = set; then
14819 withval="$with_bool"
14820 NCURSES_BOOL="$withval"
14824 echo "$as_me:14824: result: $NCURSES_BOOL" >&5
14825 echo "${ECHO_T}$NCURSES_BOOL" >&6
14826 case x$NCURSES_BOOL in
14828 { { echo "$as_me:14828: error: expected a type name for bool" >&5
14829 echo "$as_me: error: expected a type name for bool" >&2;}
14830 { (exit 1); exit 1; }; }
14834 echo "$as_me:14834: checking for alternate terminal capabilities file" >&5
14835 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
14837 # Check whether --with-caps or --without-caps was given.
14838 if test "${with_caps+set}" = set; then
14839 withval="$with_caps"
14840 TERMINFO_CAPS=Caps.$withval
14844 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
14846 { echo "$as_me:14846: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
14847 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
14850 echo "$as_me:14850: result: $TERMINFO_CAPS" >&5
14851 echo "${ECHO_T}$TERMINFO_CAPS" >&6
14853 ### use option --with-chtype to override chtype's type
14855 echo "$as_me:14855: checking for type of chtype" >&5
14856 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14858 # Check whether --with-chtype or --without-chtype was given.
14859 if test "${with_chtype+set}" = set; then
14860 withval="$with_chtype"
14861 NCURSES_CHTYPE="$withval"
14863 NCURSES_CHTYPE=$cf_dft_chtype
14865 echo "$as_me:14865: result: $NCURSES_CHTYPE" >&5
14866 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
14867 case x$NCURSES_CHTYPE in
14869 { { echo "$as_me:14869: error: expected a type name for chtype" >&5
14870 echo "$as_me: error: expected a type name for chtype" >&2;}
14871 { (exit 1); exit 1; }; }
14875 ### use option --with-ospeed to override ospeed's type
14877 echo "$as_me:14877: checking for type of ospeed" >&5
14878 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
14880 # Check whether --with-ospeed or --without-ospeed was given.
14881 if test "${with_ospeed+set}" = set; then
14882 withval="$with_ospeed"
14883 NCURSES_OSPEED="$withval"
14885 NCURSES_OSPEED=short
14887 echo "$as_me:14887: result: $NCURSES_OSPEED" >&5
14888 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14889 case x$NCURSES_OSPEED in
14891 { { echo "$as_me:14891: error: expected a type name for ospeed" >&5
14892 echo "$as_me: error: expected a type name for ospeed" >&2;}
14893 { (exit 1); exit 1; }; }
14897 ### use option --with-mmask-t to override mmask_t's type
14899 echo "$as_me:14899: checking for type of mmask-t" >&5
14900 echo $ECHO_N "checking for type of mmask-t... $ECHO_C" >&6
14902 # Check whether --with-mmask-t or --without-mmask-t was given.
14903 if test "${with_mmask_t+set}" = set; then
14904 withval="$with_mmask_t"
14905 NCURSES_MMASK_T="$withval"
14907 NCURSES_MMASK_T=$cf_dft_mmask_t
14909 echo "$as_me:14909: result: $NCURSES_MMASK_T" >&5
14910 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14911 case x$NCURSES_MMASK_T in
14913 { { echo "$as_me:14913: error: expected a type name for mmask-t" >&5
14914 echo "$as_me: error: expected a type name for mmask-t" >&2;}
14915 { (exit 1); exit 1; }; }
14919 ### use option --with-ccharw-max to override CCHARW_MAX size
14920 echo "$as_me:14920: checking for size CCHARW_MAX" >&5
14921 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14923 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14924 if test "${with_ccharw_max+set}" = set; then
14925 withval="$with_ccharw_max"
14926 NCURSES_CCHARW_MAX="$withval"
14928 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14930 echo "$as_me:14930: result: $NCURSES_CCHARW_MAX" >&5
14931 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14933 echo "$as_me:14933: checking for signed char" >&5
14934 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14935 if test "${ac_cv_type_signed_char+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 cat >"conftest.$ac_ext" <<_ACEOF
14939 #line 14939 "configure"
14940 #include "confdefs.h"
14941 $ac_includes_default
14945 if ((signed char *) 0)
14947 if (sizeof (signed char))
14953 rm -f "conftest.$ac_objext"
14954 if { (eval echo "$as_me:14954: \"$ac_compile\"") >&5
14955 (eval $ac_compile) 2>&5
14957 echo "$as_me:14957: \$? = $ac_status" >&5
14958 (exit "$ac_status"); } &&
14959 { ac_try='test -s "conftest.$ac_objext"'
14960 { (eval echo "$as_me:14960: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14963 echo "$as_me:14963: \$? = $ac_status" >&5
14964 (exit "$ac_status"); }; }; then
14965 ac_cv_type_signed_char=yes
14967 echo "$as_me: failed program was:" >&5
14968 cat "conftest.$ac_ext" >&5
14969 ac_cv_type_signed_char=no
14971 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14973 echo "$as_me:14973: result: $ac_cv_type_signed_char" >&5
14974 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14976 echo "$as_me:14976: checking size of signed char" >&5
14977 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14978 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 if test "$ac_cv_type_signed_char" = yes; then
14982 if test "$cross_compiling" = yes; then
14983 # Depending upon the size, compute the lo and hi bounds.
14984 cat >"conftest.$ac_ext" <<_ACEOF
14985 #line 14985 "configure"
14986 #include "confdefs.h"
14987 $ac_includes_default
14991 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14996 rm -f "conftest.$ac_objext"
14997 if { (eval echo "$as_me:14997: \"$ac_compile\"") >&5
14998 (eval $ac_compile) 2>&5
15000 echo "$as_me:15000: \$? = $ac_status" >&5
15001 (exit "$ac_status"); } &&
15002 { ac_try='test -s "conftest.$ac_objext"'
15003 { (eval echo "$as_me:15003: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:15006: \$? = $ac_status" >&5
15007 (exit "$ac_status"); }; }; then
15010 cat >"conftest.$ac_ext" <<_ACEOF
15011 #line 15011 "configure"
15012 #include "confdefs.h"
15013 $ac_includes_default
15017 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
15022 rm -f "conftest.$ac_objext"
15023 if { (eval echo "$as_me:15023: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>&5
15026 echo "$as_me:15026: \$? = $ac_status" >&5
15027 (exit "$ac_status"); } &&
15028 { ac_try='test -s "conftest.$ac_objext"'
15029 { (eval echo "$as_me:15029: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:15032: \$? = $ac_status" >&5
15033 (exit "$ac_status"); }; }; then
15034 ac_hi=$ac_mid; break
15036 echo "$as_me: failed program was:" >&5
15037 cat "conftest.$ac_ext" >&5
15038 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
15040 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15043 echo "$as_me: failed program was:" >&5
15044 cat "conftest.$ac_ext" >&5
15047 cat >"conftest.$ac_ext" <<_ACEOF
15048 #line 15048 "configure"
15049 #include "confdefs.h"
15050 $ac_includes_default
15054 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
15059 rm -f "conftest.$ac_objext"
15060 if { (eval echo "$as_me:15060: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>&5
15063 echo "$as_me:15063: \$? = $ac_status" >&5
15064 (exit "$ac_status"); } &&
15065 { ac_try='test -s "conftest.$ac_objext"'
15066 { (eval echo "$as_me:15066: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15069 echo "$as_me:15069: \$? = $ac_status" >&5
15070 (exit "$ac_status"); }; }; then
15071 ac_lo=$ac_mid; break
15073 echo "$as_me: failed program was:" >&5
15074 cat "conftest.$ac_ext" >&5
15075 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
15077 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15080 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15081 # Binary search between lo and hi bounds.
15082 while test "x$ac_lo" != "x$ac_hi"; do
15083 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
15084 cat >"conftest.$ac_ext" <<_ACEOF
15085 #line 15085 "configure"
15086 #include "confdefs.h"
15087 $ac_includes_default
15091 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
15096 rm -f "conftest.$ac_objext"
15097 if { (eval echo "$as_me:15097: \"$ac_compile\"") >&5
15098 (eval $ac_compile) 2>&5
15100 echo "$as_me:15100: \$? = $ac_status" >&5
15101 (exit "$ac_status"); } &&
15102 { ac_try='test -s "conftest.$ac_objext"'
15103 { (eval echo "$as_me:15103: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:15106: \$? = $ac_status" >&5
15107 (exit "$ac_status"); }; }; then
15110 echo "$as_me: failed program was:" >&5
15111 cat "conftest.$ac_ext" >&5
15112 ac_lo=`expr "$ac_mid" + 1`
15114 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15116 ac_cv_sizeof_signed_char=$ac_lo
15118 if test "$cross_compiling" = yes; then
15119 { { echo "$as_me:15119: error: cannot run test program while cross compiling" >&5
15120 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15121 { (exit 1); exit 1; }; }
15123 cat >"conftest.$ac_ext" <<_ACEOF
15124 #line 15124 "configure"
15125 #include "confdefs.h"
15126 $ac_includes_default
15130 FILE *f = fopen ("conftest.val", "w");
15132 $ac_main_return (1);
15133 fprintf (f, "%ld", (long)(sizeof (signed char)));
15139 rm -f "conftest$ac_exeext"
15140 if { (eval echo "$as_me:15140: \"$ac_link\"") >&5
15141 (eval $ac_link) 2>&5
15143 echo "$as_me:15143: \$? = $ac_status" >&5
15144 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
15145 { (eval echo "$as_me:15145: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:15148: \$? = $ac_status" >&5
15149 (exit "$ac_status"); }; }; then
15150 ac_cv_sizeof_signed_char=`cat conftest.val`
15152 echo "$as_me: program exited with status $ac_status" >&5
15153 echo "$as_me: failed program was:" >&5
15154 cat "conftest.$ac_ext" >&5
15156 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
15161 ac_cv_sizeof_signed_char=0
15164 echo "$as_me:15164: result: $ac_cv_sizeof_signed_char" >&5
15165 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
15166 cat >>confdefs.h <<EOF
15167 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
15170 if test "$ac_cv_sizeof_signed_char" = 1 ; then
15171 NCURSES_SBOOL="signed char"
15173 NCURSES_SBOOL="char"
15175 echo "$as_me:15175: checking whether to use signed chars for Boolean array in term.h" >&5
15176 echo $ECHO_N "checking whether to use signed chars for Boolean array in term.h... $ECHO_C" >&6
15178 # Check whether --enable-signed-char or --disable-signed-char was given.
15179 if test "${enable_signed_char+set}" = set; then
15180 enableval="$enable_signed_char"
15181 with_signed_char=$enableval
15183 with_signed_char=$cf_dft_signed_char
15185 echo "$as_me:15185: result: $with_signed_char" >&5
15186 echo "${ECHO_T}$with_signed_char" >&6
15187 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
15189 ### use option --with-tparm-arg to override tparm's argument type
15191 echo "$as_me:15191: checking for type of tparm-arg" >&5
15192 echo $ECHO_N "checking for type of tparm-arg... $ECHO_C" >&6
15194 # Check whether --with-tparm-arg or --without-tparm-arg was given.
15195 if test "${with_tparm_arg+set}" = set; then
15196 withval="$with_tparm_arg"
15197 NCURSES_TPARM_ARG="$withval"
15199 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
15201 echo "$as_me:15201: result: $NCURSES_TPARM_ARG" >&5
15202 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
15203 case x$NCURSES_TPARM_ARG in
15205 { { echo "$as_me:15205: error: expected a type name for tparm-arg" >&5
15206 echo "$as_me: error: expected a type name for tparm-arg" >&2;}
15207 { (exit 1); exit 1; }; }
15211 ### Enable compiling-in rcs id's
15212 echo "$as_me:15212: checking if RCS identifiers should be compiled-in" >&5
15213 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
15215 # Check whether --with-rcs-ids or --without-rcs-ids was given.
15216 if test "${with_rcs_ids+set}" = set; then
15217 withval="$with_rcs_ids"
15218 with_rcs_ids=$withval
15222 echo "$as_me:15222: result: $with_rcs_ids" >&5
15223 echo "${ECHO_T}$with_rcs_ids" >&6
15224 test "x$with_rcs_ids" = xyes &&
15225 cat >>confdefs.h <<\EOF
15226 #define USE_RCS_IDS 1
15229 ###############################################################################
15231 echo "$as_me:15231: checking format of man-pages" >&5
15232 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
15234 # Check whether --with-manpage-format or --without-manpage-format was given.
15235 if test "${with_manpage_format+set}" = set; then
15236 withval="$with_manpage_format"
15237 MANPAGE_FORMAT=$withval
15239 MANPAGE_FORMAT=unknown
15242 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
15243 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
15247 case "$MANPAGE_FORMAT" in
15249 if test -z "$MANPATH" ; then
15250 MANPATH="/usr/man:/usr/share/man"
15253 # look for the 'date' man-page (it is most likely to be installed!)
15259 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
15260 for cf_dir in $MANPATH; do
15261 test -z "$cf_dir" && cf_dir=/usr/man
15262 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
15264 cf_test=`echo "$cf_name" | sed -e 's/*//'`
15265 if test "x$cf_test" = "x$cf_name" ; then
15268 (*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
15269 (*.xz) MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
15270 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
15271 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
15272 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
15273 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
15287 # if we found a match in either man* or cat*, stop looking
15288 if test -n "$MANPAGE_FORMAT" ; then
15290 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
15291 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
15297 test "$cf_found" = yes && break
15300 # only check the first directory in $MANPATH where we find manpages
15301 if test -n "$MANPAGE_FORMAT" ; then
15305 # if we did not find the example, just assume it is normal
15306 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
15310 for cf_option in $MANPAGE_FORMAT; do
15311 case "$cf_option" in
15312 (xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
15315 cf_unknown="$cf_unknown $cf_option"
15322 echo "$as_me:15322: result: $MANPAGE_FORMAT" >&5
15323 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
15324 if test -n "$cf_unknown" ; then
15325 { echo "$as_me:15325: WARNING: Unexpected manpage-format $cf_unknown" >&5
15326 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
15329 cf_manpage_format=no
15330 cf_manpage_inboth=no
15331 cf_manpage_so_strip=
15332 cf_manpage_compress=
15333 cf_manpage_coptions=
15335 for cf_item in $MANPAGE_FORMAT
15339 cf_manpage_format=yes
15340 cf_manpage_inboth=no
15343 cf_manpage_format=yes
15344 cf_manpage_inboth=yes
15347 cf_manpage_so_strip="Z"
15348 cf_manpage_compress=compress
15351 cf_manpage_so_strip="gz"
15352 cf_manpage_compress=gzip
15353 cf_manpage_coptions=-n
15356 cf_manpage_so_strip="bz2"
15357 cf_manpage_compress=bzip2
15360 cf_manpage_so_strip="xz"
15361 cf_manpage_compress=xz
15366 echo "$as_me:15366: checking for manpage renaming" >&5
15367 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
15369 # Check whether --with-manpage-renames or --without-manpage-renames was given.
15370 if test "${with_manpage_renames+set}" = set; then
15371 withval="$with_manpage_renames"
15372 MANPAGE_RENAMES=$withval
15374 MANPAGE_RENAMES=yes
15377 case ".$MANPAGE_RENAMES" in
15381 # Debian 'man' program?
15382 if test -f /etc/debian_version ; then
15383 MANPAGE_RENAMES=man/man_db.renames
15390 if test "$MANPAGE_RENAMES" = man/man_db.renames ; then
15391 MANPAGE_RENAMES=`pwd`/$MANPAGE_RENAMES
15392 elif test "$MANPAGE_RENAMES" = no ; then
15394 elif test ! -f "$MANPAGE_RENAMES" ; then
15395 { { echo "$as_me:15395: error: not a filename: $MANPAGE_RENAMES" >&5
15396 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
15397 { (exit 1); exit 1; }; }
15400 echo "$as_me:15400: result: $MANPAGE_RENAMES" >&5
15401 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
15403 echo "$as_me:15403: checking if manpage aliases will be installed" >&5
15404 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
15406 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
15407 if test "${with_manpage_aliases+set}" = set; then
15408 withval="$with_manpage_aliases"
15409 MANPAGE_ALIASES=$withval
15411 MANPAGE_ALIASES=yes
15414 echo "$as_me:15414: result: $MANPAGE_ALIASES" >&5
15415 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
15419 cf_use_symlinks=yes
15426 MANPAGE_SYMLINKS=no
15427 if test "$MANPAGE_ALIASES" = yes ; then
15428 echo "$as_me:15428: checking if manpage symlinks should be used" >&5
15429 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
15431 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
15432 if test "${with_manpage_symlinks+set}" = set; then
15433 withval="$with_manpage_symlinks"
15434 MANPAGE_SYMLINKS=$withval
15436 MANPAGE_SYMLINKS=$cf_use_symlinks
15439 if test "$cf_use_symlinks" = no; then
15440 if test "$MANPAGE_SYMLINKS" = yes ; then
15441 { echo "$as_me:15441: WARNING: cannot make symlinks" >&5
15442 echo "$as_me: WARNING: cannot make symlinks" >&2;}
15443 MANPAGE_SYMLINKS=no
15447 echo "$as_me:15447: result: $MANPAGE_SYMLINKS" >&5
15448 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
15451 echo "$as_me:15451: checking for manpage tbl" >&5
15452 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
15454 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
15455 if test "${with_manpage_tbl+set}" = set; then
15456 withval="$with_manpage_tbl"
15457 MANPAGE_TBL=$withval
15462 echo "$as_me:15462: result: $MANPAGE_TBL" >&5
15463 echo "${ECHO_T}$MANPAGE_TBL" >&6
15465 if test "$prefix" = "NONE" ; then
15466 cf_prefix="$ac_default_prefix"
15468 cf_prefix="$prefix"
15471 test ! -d man && mkdir man
15473 cf_edit_man=./edit_man.sh
15474 cf_man_alias=`pwd`/man_alias.sed
15476 cat >$cf_edit_man <<CF_EOF
15478 # this script is generated by the configure-script CF_MAN_PAGES macro.
15480 prefix="$cf_prefix"
15481 datarootdir="$datarootdir"
15484 NCURSES_MAJOR="$NCURSES_MAJOR"
15485 NCURSES_MINOR="$NCURSES_MINOR"
15486 NCURSES_PATCH="$NCURSES_PATCH"
15488 NCURSES_OSPEED="$NCURSES_OSPEED"
15489 TERMINFO="$TERMINFO"
15490 TERMINFO_DIRS="$TERMINFO_DIRS"
15493 INSTALL_DATA="$INSTALL_DATA"
15495 transform="$program_transform_name"
15497 TMP=\${TMPDIR:=/tmp}/man\$\$
15498 trap "rm -f \$TMP; exit 1" 1 2 3 15
15499 trap "rm -f \$TMP" 0
15511 top_srcdir=\$srcdir/..
15514 if test "\$form" = normal ; then
15515 if test "$cf_manpage_format" = yes ; then
15516 if test "$cf_manpage_inboth" = no ; then
15517 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15521 cf_subdir=\$mandir/man
15522 cf_tables=$MANPAGE_TBL
15524 cf_subdir=\$mandir/cat
15528 # process the list of source-files
15529 for i in "\$@" ; do
15533 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
15534 if test "\$verb" = installing ; then
15535 if test ! -d "\$cf_subdir\${section}" ; then
15536 mkdir -p "\$cf_subdir\$section"
15540 # replace variables in man page
15541 if test ! -f "$cf_man_alias" ; then
15542 cat >>$cf_man_alias <<-CF_EOF2
15543 s,@DATADIR@,\$datadir,g
15544 s,@TERMINFO@,\${TERMINFO:="no default value"},g
15545 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
15546 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
15547 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
15548 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
15549 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
15552 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
15554 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15555 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
15556 cat >>$cf_edit_man <<-CF_EOF
15557 s,@$cf_NAME@,$cf_name,g
15561 cat >>$cf_edit_man <<CF_EOF
15563 echo "...made $cf_man_alias"
15567 cf_source=\`basename "\$i"\`
15568 cf_full_alias=\$cf_source
15569 test ! -f "\$cf_full_alias" && cf_full_alias="\$srcdir/\$cf_full_alias"
15570 if test ! -f "\$cf_full_alias" ; then
15571 echo ".. skipped \$cf_source"
15576 if test "$MANPAGE_ALIASES" != no ; then
15577 cat >>$cf_edit_man <<CF_EOF
15579 cf_part_alias=\`echo \$cf_full_alias| sed -e 's,^.*/,,'\`
15580 test "$with_curses_h" = yes && nCurses=ncurses.3x
15581 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$cf_full_alias" |sed -f "$cf_man_alias" | sort -u; test "\$cf_part_alias" = "\$nCurses" && echo curses\`
15585 if test "$MANPAGE_RENAMES" = no ; then
15586 cat >>$cf_edit_man <<CF_EOF
15587 # perform program transformations for section 1 man pages
15588 if test \$section = 1 ; then
15589 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
15591 cf_target=\$cf_subdir\${section}/\$cf_source
15595 cat >>$cf_edit_man <<CF_EOF
15596 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
15597 if test -z "\$cf_target" ; then
15598 echo "? missing rename for \$cf_source"
15599 cf_target="\$cf_source"
15601 cf_target="\$cf_subdir\${section}/\${cf_target}"
15606 cat >>$cf_edit_man <<CF_EOF
15607 sed -f "$cf_man_alias" \\
15610 if test "$MANPAGE_RENAMES" != no ; then
15611 cat >>$cf_edit_man <<CF_EOF
15612 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
15615 cat >>$cf_edit_man <<CF_EOF
15620 cat >>$cf_edit_man <<CF_EOF
15621 if test \$cf_tables = yes ; then
15622 tbl \$TMP >\$TMP.out
15627 if test "$with_overwrite" != yes ; then
15628 cat >>$cf_edit_man <<CF_EOF
15629 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
15634 if test "$with_curses_h" != yes ; then
15635 cat >>$cf_edit_man <<CF_EOF
15636 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
15641 cat >>$cf_edit_man <<CF_EOF
15642 if test "\$form" = format ; then
15643 nroff -man \$TMP >\$TMP.out
15648 if test -n "$cf_manpage_compress" ; then
15649 cat >>$cf_edit_man <<CF_EOF
15650 if test "\$verb" = installing ; then
15651 if ( "$cf_manpage_compress" -f \$TMP )
15653 mv \$TMP.$cf_manpage_so_strip \$TMP
15656 cf_target="\$cf_target.$cf_manpage_so_strip"
15660 case "$MANPAGE_FORMAT" in
15662 cat >>$cf_edit_man <<CF_EOF
15663 if test "\$form" = format ; then
15664 # BSDI installs only .0 suffixes in the cat directories
15665 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
15671 cat >>$cf_edit_man <<CF_EOF
15672 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
15674 if test -n "$EXTRA_SUFFIX" ; then
15675 case \$cf_target in
15676 (*${EXTRA_SUFFIX}\$suffix)
15677 extra_suffix="$EXTRA_SUFFIX"
15681 if test "\$verb" = installing ; then
15682 echo "\$verb \$cf_target"
15683 \$INSTALL_DATA \$TMP "\$cf_target"
15684 test -d "\$cf_subdir\${section}" &&
15685 test -n "\$aliases" && (
15686 cd "\$cf_subdir\${section}" && (
15687 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
15688 test -n "$cf_manpage_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_manpage_so_strip\$%%'\`
15689 cf_target=\`basename "\$cf_target"\`
15690 for cf_alias in \$aliases
15692 if test "\$section" = 1 ; then
15693 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15695 cf_alias="\${cf_alias}\${extra_suffix}"
15697 if test "$MANPAGE_SYMLINKS" = yes ; then
15698 if test -f "\$cf_alias\${suffix}" ; then
15699 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
15704 echo ".. \$verb alias \$cf_alias\${suffix}"
15708 cat >>$cf_edit_man <<CF_EOF
15709 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15713 cat >>$cf_edit_man <<CF_EOF
15714 rm -f "\$cf_alias\${suffix}"
15715 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15719 cat >>$cf_edit_man <<CF_EOF
15720 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
15721 echo ".so \$cf_source" >\$TMP
15723 if test -n "$cf_manpage_compress" ; then
15724 cat >>$cf_edit_man <<CF_EOF
15725 if test -n "$cf_manpage_so_strip" ; then
15726 "$cf_manpage_compress" $cf_manpage_coptions -f \$TMP
15727 mv \$TMP.$cf_manpage_so_strip \$TMP
15731 cat >>$cf_edit_man <<CF_EOF
15732 echo ".. \$verb alias \$cf_alias\${suffix}"
15733 rm -f "\$cf_alias\${suffix}"
15734 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15739 elif test "\$verb" = removing ; then
15740 test -f "\$cf_target" && (
15741 echo "\$verb \$cf_target"
15742 rm -f "\$cf_target"
15744 test -d "\$cf_subdir\${section}" &&
15745 test -n "\$aliases" && (
15746 cd "\$cf_subdir\${section}" && (
15747 for cf_alias in \$aliases
15749 if test "\$section" = 1 ; then
15750 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15752 cf_alias="\${cf_alias}\${extra_suffix}"
15754 echo ".. \$verb alias \$cf_alias\${suffix}"
15755 rm -f "\$cf_alias\${suffix}"
15767 if test "$cf_manpage_inboth" = yes ; then
15768 if test "\$form" != format ; then
15769 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15775 chmod 755 "$cf_edit_man"
15777 ###############################################################################
15779 ### Note that some functions (such as const) are normally disabled anyway.
15780 echo "$as_me:15780: checking if you want to build with function extensions" >&5
15781 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15783 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15784 if test "${enable_ext_funcs+set}" = set; then
15785 enableval="$enable_ext_funcs"
15786 with_ext_funcs=$enableval
15790 echo "$as_me:15790: result: $with_ext_funcs" >&5
15791 echo "${ECHO_T}$with_ext_funcs" >&6
15792 if test "x$with_ext_funcs" = xyes ; then
15793 NCURSES_EXT_FUNCS=1
15795 cat >>confdefs.h <<\EOF
15796 #define NCURSES_EXT_FUNCS 1
15799 cat >>confdefs.h <<\EOF
15800 #define HAVE_ASSUME_DEFAULT_COLORS 1
15803 cat >>confdefs.h <<\EOF
15804 #define HAVE_CURSES_VERSION 1
15807 cat >>confdefs.h <<\EOF
15808 #define HAVE_HAS_KEY 1
15811 cat >>confdefs.h <<\EOF
15812 #define HAVE_RESIZETERM 1
15815 cat >>confdefs.h <<\EOF
15816 #define HAVE_RESIZE_TERM 1
15819 cat >>confdefs.h <<\EOF
15820 #define HAVE_TERM_ENTRY_H 1
15823 cat >>confdefs.h <<\EOF
15824 #define HAVE_USE_DEFAULT_COLORS 1
15827 cat >>confdefs.h <<\EOF
15828 #define HAVE_USE_SCREEN 1
15831 cat >>confdefs.h <<\EOF
15832 #define HAVE_USE_WINDOW 1
15835 cat >>confdefs.h <<\EOF
15836 #define HAVE_WRESIZE 1
15839 GENERATED_EXT_FUNCS=generated
15840 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15842 NCURSES_EXT_FUNCS=0
15843 GENERATED_EXT_FUNCS=
15846 echo "$as_me:15846: checking if you want to build with SCREEN extensions" >&5
15847 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15849 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15850 if test "${enable_sp_funcs+set}" = set; then
15851 enableval="$enable_sp_funcs"
15852 with_sp_funcs=$enableval
15854 with_sp_funcs=$cf_dft_ext_spfuncs
15856 echo "$as_me:15856: result: $with_sp_funcs" >&5
15857 echo "${ECHO_T}$with_sp_funcs" >&6
15858 if test "x$with_sp_funcs" = xyes ; then
15861 cat >>confdefs.h <<\EOF
15862 #define NCURSES_SP_FUNCS 1
15865 cat >>confdefs.h <<\EOF
15866 #define HAVE_TPUTS_SP 1
15869 GENERATED_SP_FUNCS=generated
15872 GENERATED_SP_FUNCS=
15875 echo "$as_me:15875: checking if you want to build with terminal-driver" >&5
15876 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15878 # Check whether --enable-term-driver or --disable-term-driver was given.
15879 if test "${enable_term_driver+set}" = set; then
15880 enableval="$enable_term_driver"
15881 with_term_driver=$enableval
15883 with_term_driver=no
15885 echo "$as_me:15885: result: $with_term_driver" >&5
15886 echo "${ECHO_T}$with_term_driver" >&6
15887 if test "x$with_term_driver" = xyes ; then
15889 cat >>confdefs.h <<\EOF
15890 #define USE_TERM_DRIVER 1
15893 if test "x$with_termlib" != xno ; then
15894 { { echo "$as_me:15894: error: The term-driver option conflicts with the termlib option" >&5
15895 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15896 { (exit 1); exit 1; }; }
15898 if test "x$with_sp_funcs" != xyes ; then
15899 { { echo "$as_me:15899: error: The term-driver option relies upon sp-funcs" >&5
15900 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15901 { (exit 1); exit 1; }; }
15905 ### use option --enable-const to turn on use of const beyond that in XSI.
15906 echo "$as_me:15906: checking for extended use of const keyword" >&5
15907 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15909 # Check whether --enable-const or --disable-const was given.
15910 if test "${enable_const+set}" = set; then
15911 enableval="$enable_const"
15912 with_ext_const=$enableval
15914 with_ext_const=$cf_dft_ext_const
15916 echo "$as_me:15916: result: $with_ext_const" >&5
15917 echo "${ECHO_T}$with_ext_const" >&6
15918 NCURSES_CONST='/*nothing*/'
15919 if test "x$with_ext_const" = xyes ; then
15920 NCURSES_CONST=const
15923 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15924 echo "$as_me:15924: checking if you want to use extended colors" >&5
15925 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15927 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15928 if test "${enable_ext_colors+set}" = set; then
15929 enableval="$enable_ext_colors"
15930 with_ext_colors=$enableval
15932 with_ext_colors=$cf_dft_ext_colors
15934 echo "$as_me:15934: result: $with_ext_colors" >&5
15935 echo "${ECHO_T}$with_ext_colors" >&6
15936 NCURSES_EXT_COLORS=0
15937 if test "x$with_ext_colors" = xyes ; then
15938 if test "x$with_widec" != xyes ; then
15939 { echo "$as_me:15939: WARNING: This option applies only to wide-character library" >&5
15940 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15942 # cannot be ABI 5 since it changes sizeof(cchar_t)
15944 if test "${with_abi_version+set}" != set; then
15945 case "$cf_cv_rel_version" in
15947 cf_cv_rel_version=6.0
15948 cf_cv_abi_version=6
15949 cf_cv_abi_default=6
15950 { echo "$as_me:15950: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15951 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15956 NCURSES_EXT_COLORS=1
15958 cat >>confdefs.h <<\EOF
15959 #define NCURSES_EXT_COLORS 1
15962 cat >>confdefs.h <<\EOF
15963 #define HAVE_ALLOC_PAIR 1
15966 cat >>confdefs.h <<\EOF
15967 #define HAVE_INIT_EXTENDED_COLOR 1
15970 cat >>confdefs.h <<\EOF
15971 #define HAVE_RESET_COLOR_PAIRS 1
15977 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15978 echo "$as_me:15978: checking if you want to use extended mouse encoding" >&5
15979 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15981 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15982 if test "${enable_ext_mouse+set}" = set; then
15983 enableval="$enable_ext_mouse"
15984 with_ext_mouse=$enableval
15986 with_ext_mouse=$cf_dft_ext_mouse
15988 echo "$as_me:15988: result: $with_ext_mouse" >&5
15989 echo "${ECHO_T}$with_ext_mouse" >&6
15990 if test "x$with_ext_mouse" = xyes ; then
15992 if test "${with_abi_version+set}" != set; then
15993 case "$cf_cv_rel_version" in
15995 cf_cv_rel_version=6.0
15996 cf_cv_abi_version=6
15997 cf_cv_abi_default=6
15998 { echo "$as_me:15998: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15999 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
16006 if test $cf_cv_abi_default -le 5 ; then
16007 NCURSES_MOUSE_VERSION=1
16008 elif test $cf_cv_abi_default -le 6 ; then
16009 NCURSES_MOUSE_VERSION=2
16011 NCURSES_MOUSE_VERSION=3
16014 ### use option --enable-ext-putwin to turn on extended screendumps
16015 echo "$as_me:16015: checking if you want to use extended putwin/screendump" >&5
16016 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
16018 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
16019 if test "${enable_ext_putwin+set}" = set; then
16020 enableval="$enable_ext_putwin"
16021 with_ext_putwin=$enableval
16023 with_ext_putwin=$cf_dft_ext_putwin
16025 echo "$as_me:16025: result: $with_ext_putwin" >&5
16026 echo "${ECHO_T}$with_ext_putwin" >&6
16027 if test "x$with_ext_putwin" = xyes ; then
16029 cat >>confdefs.h <<\EOF
16030 #define NCURSES_EXT_PUTWIN 1
16035 echo "$as_me:16035: checking if you want \$NCURSES_NO_PADDING code" >&5
16036 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
16038 # Check whether --enable-no-padding or --disable-no-padding was given.
16039 if test "${enable_no_padding+set}" = set; then
16040 enableval="$enable_no_padding"
16041 with_no_padding=$enableval
16043 with_no_padding=$with_ext_funcs
16045 echo "$as_me:16045: result: $with_no_padding" >&5
16046 echo "${ECHO_T}$with_no_padding" >&6
16047 test "x$with_no_padding" = xyes &&
16048 cat >>confdefs.h <<\EOF
16049 #define NCURSES_NO_PADDING 1
16052 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
16053 echo "$as_me:16053: checking if you want SIGWINCH handler" >&5
16054 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
16056 # Check whether --enable-sigwinch or --disable-sigwinch was given.
16057 if test "${enable_sigwinch+set}" = set; then
16058 enableval="$enable_sigwinch"
16059 with_sigwinch=$enableval
16061 with_sigwinch=$with_ext_funcs
16063 echo "$as_me:16063: result: $with_sigwinch" >&5
16064 echo "${ECHO_T}$with_sigwinch" >&6
16065 if test "x$with_sigwinch" = xyes
16068 cat >>confdefs.h <<\EOF
16069 #define USE_SIGWINCH 1
16072 cf_cv_enable_sigwinch=1
16074 cf_cv_enable_sigwinch=0
16077 ### use option --enable-tcap-names to allow user to define new capabilities
16078 echo "$as_me:16078: checking if you want user-definable terminal capabilities like termcap" >&5
16079 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
16081 # Check whether --enable-tcap-names or --disable-tcap-names was given.
16082 if test "${enable_tcap_names+set}" = set; then
16083 enableval="$enable_tcap_names"
16084 with_tcap_names=$enableval
16086 with_tcap_names=$with_ext_funcs
16088 echo "$as_me:16088: result: $with_tcap_names" >&5
16089 echo "${ECHO_T}$with_tcap_names" >&6
16091 if test "x$with_tcap_names" = xyes; then
16094 cat >>confdefs.h <<\EOF
16095 #define NCURSES_XNAMES 1
16100 ##############################################################################
16102 echo "$as_me:16102: checking if you want to link with the pthread library" >&5
16103 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
16105 # Check whether --with-pthread or --without-pthread was given.
16106 if test "${with_pthread+set}" = set; then
16107 withval="$with_pthread"
16108 with_pthread=$withval
16112 echo "$as_me:16112: result: $with_pthread" >&5
16113 echo "${ECHO_T}$with_pthread" >&6
16115 if test "$with_pthread" != no ; then
16116 echo "$as_me:16116: checking for pthread.h" >&5
16117 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16118 if test "${ac_cv_header_pthread_h+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16121 cat >"conftest.$ac_ext" <<_ACEOF
16122 #line 16122 "configure"
16123 #include "confdefs.h"
16124 #include <pthread.h>
16126 if { (eval echo "$as_me:16126: \"$ac_cpp "conftest.$ac_ext"\"") >&5
16127 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
16129 $EGREP -v '^ *\+' conftest.er1 >conftest.err
16131 cat conftest.err >&5
16132 echo "$as_me:16132: \$? = $ac_status" >&5
16133 (exit "$ac_status"); } >/dev/null; then
16134 if test -s conftest.err; then
16135 ac_cpp_err=$ac_c_preproc_warn_flag
16142 if test -z "$ac_cpp_err"; then
16143 ac_cv_header_pthread_h=yes
16145 echo "$as_me: failed program was:" >&5
16146 cat "conftest.$ac_ext" >&5
16147 ac_cv_header_pthread_h=no
16149 rm -f conftest.err "conftest.$ac_ext"
16151 echo "$as_me:16151: result: $ac_cv_header_pthread_h" >&5
16152 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16153 if test "$ac_cv_header_pthread_h" = yes; then
16155 cat >>confdefs.h <<\EOF
16156 #define HAVE_PTHREADS_H 1
16159 for cf_lib_pthread in pthread c_r
16161 echo "$as_me:16161: checking if we can link with the $cf_lib_pthread library" >&5
16162 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
16163 cf_save_LIBS="$LIBS"
16165 cf_add_libs="$LIBS"
16168 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16169 # filter duplicates
16170 for cf_add_1lib in $cf_add_0lib; do
16171 for cf_add_2lib in $cf_add_libs; do
16172 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16177 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16179 LIBS="$cf_add_libs"
16181 cat >"conftest.$ac_ext" <<_ACEOF
16182 #line 16182 "configure"
16183 #include "confdefs.h"
16185 #include <pthread.h>
16191 int rc = pthread_create(0,0,0,0);
16192 int r2 = pthread_mutexattr_settype(0, 0);
16198 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16199 if { (eval echo "$as_me:16199: \"$ac_link\"") >&5
16200 (eval $ac_link) 2>&5
16202 echo "$as_me:16202: \$? = $ac_status" >&5
16203 (exit "$ac_status"); } &&
16204 { ac_try='test -s "conftest$ac_exeext"'
16205 { (eval echo "$as_me:16205: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:16208: \$? = $ac_status" >&5
16209 (exit "$ac_status"); }; }; then
16212 echo "$as_me: failed program was:" >&5
16213 cat "conftest.$ac_ext" >&5
16216 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16217 LIBS="$cf_save_LIBS"
16218 echo "$as_me:16218: result: $with_pthread" >&5
16219 echo "${ECHO_T}$with_pthread" >&6
16220 test "$with_pthread" = yes && break
16223 if test "$with_pthread" = yes ; then
16225 cf_add_libs="$LIBS"
16228 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16229 # filter duplicates
16230 for cf_add_1lib in $cf_add_0lib; do
16231 for cf_add_2lib in $cf_add_libs; do
16232 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16237 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16239 LIBS="$cf_add_libs"
16241 cat >>confdefs.h <<\EOF
16242 #define HAVE_LIBPTHREADS 1
16246 { { echo "$as_me:16246: error: Cannot link with pthread library" >&5
16247 echo "$as_me: error: Cannot link with pthread library" >&2;}
16248 { (exit 1); exit 1; }; }
16255 if test "x$with_pthread" != xno; then
16256 echo "$as_me:16256: checking for pthread_kill" >&5
16257 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
16258 if test "${ac_cv_func_pthread_kill+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 cat >"conftest.$ac_ext" <<_ACEOF
16262 #line 16262 "configure"
16263 #include "confdefs.h"
16264 #define pthread_kill autoconf_temporary
16265 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16266 #undef pthread_kill
16272 /* We use char because int might match the return type of a gcc2
16273 builtin and then its argument prototype would still apply. */
16274 char pthread_kill (void);
16280 /* The GNU C library defines stubs for functions which it implements
16281 to always fail with ENOSYS. Some functions are actually named
16282 something starting with __ and the normal name is an alias. */
16283 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
16284 #error found stub for pthread_kill
16287 return pthread_kill ();
16292 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16293 if { (eval echo "$as_me:16293: \"$ac_link\"") >&5
16294 (eval $ac_link) 2>&5
16296 echo "$as_me:16296: \$? = $ac_status" >&5
16297 (exit "$ac_status"); } &&
16298 { ac_try='test -s "conftest$ac_exeext"'
16299 { (eval echo "$as_me:16299: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16302 echo "$as_me:16302: \$? = $ac_status" >&5
16303 (exit "$ac_status"); }; }; then
16304 ac_cv_func_pthread_kill=yes
16306 echo "$as_me: failed program was:" >&5
16307 cat "conftest.$ac_ext" >&5
16308 ac_cv_func_pthread_kill=no
16310 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16312 echo "$as_me:16312: result: $ac_cv_func_pthread_kill" >&5
16313 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
16314 if test "$ac_cv_func_pthread_kill" = yes; then
16316 echo "$as_me:16316: checking if you want to allow EINTR in wgetch with pthreads" >&5
16317 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
16319 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
16320 if test "${enable_pthreads_eintr+set}" = set; then
16321 enableval="$enable_pthreads_eintr"
16322 use_pthreads_eintr=$enableval
16324 use_pthreads_eintr=no
16326 echo "$as_me:16326: result: $use_pthreads_eintr" >&5
16327 echo "${ECHO_T}$use_pthreads_eintr" >&6
16328 if test "x$use_pthreads_eintr" = xyes ; then
16330 cat >>confdefs.h <<\EOF
16331 #define USE_PTHREADS_EINTR 1
16337 echo "$as_me:16337: checking if you want to use weak-symbols for pthreads" >&5
16338 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
16340 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
16341 if test "${enable_weak_symbols+set}" = set; then
16342 enableval="$enable_weak_symbols"
16343 use_weak_symbols=$enableval
16345 use_weak_symbols=no
16347 echo "$as_me:16347: result: $use_weak_symbols" >&5
16348 echo "${ECHO_T}$use_weak_symbols" >&6
16349 if test "x$use_weak_symbols" = xyes ; then
16351 echo "$as_me:16351: checking if $CC supports weak symbols" >&5
16352 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
16353 if test "${cf_cv_weak_symbols+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 cat >"conftest.$ac_ext" <<_ACEOF
16358 #line 16358 "configure"
16359 #include "confdefs.h"
16366 #if defined(__GNUC__)
16367 # if defined __USE_ISOC99
16368 # define _cat_pragma(exp) _Pragma(#exp)
16369 # define _weak_pragma(exp) _cat_pragma(weak name)
16371 # define _weak_pragma(exp)
16373 # define _declare(name) __extension__ extern __typeof__(name) name
16374 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
16377 weak_symbol(fopen);
16383 rm -f "conftest.$ac_objext"
16384 if { (eval echo "$as_me:16384: \"$ac_compile\"") >&5
16385 (eval $ac_compile) 2>&5
16387 echo "$as_me:16387: \$? = $ac_status" >&5
16388 (exit "$ac_status"); } &&
16389 { ac_try='test -s "conftest.$ac_objext"'
16390 { (eval echo "$as_me:16390: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 echo "$as_me:16393: \$? = $ac_status" >&5
16394 (exit "$ac_status"); }; }; then
16395 cf_cv_weak_symbols=yes
16397 echo "$as_me: failed program was:" >&5
16398 cat "conftest.$ac_ext" >&5
16399 cf_cv_weak_symbols=no
16401 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16404 echo "$as_me:16404: result: $cf_cv_weak_symbols" >&5
16405 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
16408 cf_cv_weak_symbols=no
16411 if test "x$cf_cv_weak_symbols" = xyes ; then
16413 cat >>confdefs.h <<\EOF
16414 #define USE_WEAK_SYMBOLS 1
16421 if test "x$with_pthread" = "xyes" ; then
16423 cat >>confdefs.h <<\EOF
16424 #define USE_PTHREADS 1
16427 enable_reentrant=yes
16428 if test "x$cf_cv_weak_symbols" = xyes ; then
16431 cf_add_libs="$PRIVATE_LIBS"
16434 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16435 # filter duplicates
16436 for cf_add_1lib in $cf_add_0lib; do
16437 for cf_add_2lib in $cf_add_libs; do
16438 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16443 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16445 PRIVATE_LIBS="$cf_add_libs"
16450 # Reentrant code has to be opaque; there's little advantage to making ncurses
16451 # opaque outside of that, so there is no --enable-opaque option. We can use
16452 # this option without --with-pthreads, but this will be always set for
16454 echo "$as_me:16454: checking if you want reentrant code" >&5
16455 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
16457 # Check whether --enable-reentrant or --disable-reentrant was given.
16458 if test "${enable_reentrant+set}" = set; then
16459 enableval="$enable_reentrant"
16460 with_reentrant=$enableval
16464 echo "$as_me:16464: result: $with_reentrant" >&5
16465 echo "${ECHO_T}$with_reentrant" >&6
16466 if test "x$with_reentrant" = xyes ; then
16467 cf_cv_enable_reentrant=1
16468 cf_cv_enable_opaque="NCURSES_INTERNALS"
16470 if test "x$cf_cv_weak_symbols" = xyes ; then
16472 # remove pthread library from $LIBS
16473 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
16475 cf_add_libs="$TEST_LIBS"
16478 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16479 # filter duplicates
16480 for cf_add_1lib in $cf_add_0lib; do
16481 for cf_add_2lib in $cf_add_libs; do
16482 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16487 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16489 TEST_LIBS="$cf_add_libs"
16491 cf_add_libs="$TEST_LIBS2"
16494 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16495 # filter duplicates
16496 for cf_add_1lib in $cf_add_0lib; do
16497 for cf_add_2lib in $cf_add_libs; do
16498 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16503 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16505 TEST_LIBS2="$cf_add_libs"
16507 cf_add_libs="$PRIVATE_LIBS"
16510 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16511 # filter duplicates
16512 for cf_add_1lib in $cf_add_0lib; do
16513 for cf_add_2lib in $cf_add_libs; do
16514 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16519 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16521 PRIVATE_LIBS="$cf_add_libs"
16524 # when not using weak symbols but with_reentrant,
16525 # add 't' to the library suffix on all platforms
16526 # except cygwin, where we only do that if ALSO
16527 # compiling with full thread support.
16529 (*cygwin* | *msys*)
16530 if test "$with_pthread" = "yes" ; then
16531 if test "x$disable_lib_suffixes" = "xno" ; then
16532 LIB_SUFFIX="t${LIB_SUFFIX}"
16536 if test "x$disable_lib_suffixes" = "xno" ; then
16537 LIB_SUFFIX="t${LIB_SUFFIX}"
16543 cat >>confdefs.h <<\EOF
16544 #define USE_REENTRANT 1
16547 if test "${with_abi_version+set}" != set; then
16548 case "$cf_cv_rel_version" in
16550 cf_cv_rel_version=6.0
16551 cf_cv_abi_version=6
16552 cf_cv_abi_default=6
16553 { echo "$as_me:16553: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
16554 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
16560 cf_cv_enable_reentrant=0
16561 cf_cv_enable_opaque="NCURSES_OPAQUE"
16562 NCURSES_SIZE_T=$cf_dft_ordinate_type
16565 echo "$as_me:16565: checking whether curses library structures should be opaque" >&5
16566 echo $ECHO_N "checking whether curses library structures should be opaque... $ECHO_C" >&6
16568 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
16569 if test "${enable_opaque_curses+set}" = set; then
16570 enableval="$enable_opaque_curses"
16571 test "$enableval" != no && enableval=yes
16572 if test "$enableval" != "yes" ; then
16573 enable_opaque_curses=no
16576 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16577 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16583 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16584 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16587 echo "$as_me:16587: result: $enable_opaque_curses" >&5
16588 echo "${ECHO_T}$enable_opaque_curses" >&6
16590 test "$cf_cv_enable_reentrant" = 1 && \
16591 test "$enable_opaque_curses" = no && \
16592 { { echo "$as_me:16592: error: reentrant configuration requires opaque library" >&5
16593 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
16594 { (exit 1); exit 1; }; }
16596 echo "$as_me:16596: checking whether form library structures should be opaque" >&5
16597 echo $ECHO_N "checking whether form library structures should be opaque... $ECHO_C" >&6
16599 # Check whether --enable-opaque-form or --disable-opaque-form was given.
16600 if test "${enable_opaque_form+set}" = set; then
16601 enableval="$enable_opaque_form"
16602 test "$enableval" != no && enableval=yes
16603 if test "$enableval" != "yes" ; then
16604 enable_opaque_form=no
16606 enable_opaque_form=$cf_dft_opaque_curses
16610 enable_opaque_form=$cf_dft_opaque_curses
16613 echo "$as_me:16613: result: $enable_opaque_form" >&5
16614 echo "${ECHO_T}$enable_opaque_form" >&6
16616 echo "$as_me:16616: checking whether menu library structures should be opaque" >&5
16617 echo $ECHO_N "checking whether menu library structures should be opaque... $ECHO_C" >&6
16619 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
16620 if test "${enable_opaque_menu+set}" = set; then
16621 enableval="$enable_opaque_menu"
16622 test "$enableval" != no && enableval=yes
16623 if test "$enableval" != "yes" ; then
16624 enable_opaque_menu=no
16626 enable_opaque_menu=$cf_dft_opaque_curses
16630 enable_opaque_menu=$cf_dft_opaque_curses
16633 echo "$as_me:16633: result: $enable_opaque_menu" >&5
16634 echo "${ECHO_T}$enable_opaque_menu" >&6
16636 echo "$as_me:16636: checking whether panel library structures should be opaque" >&5
16637 echo $ECHO_N "checking whether panel library structures should be opaque... $ECHO_C" >&6
16639 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
16640 if test "${enable_opaque_panel+set}" = set; then
16641 enableval="$enable_opaque_panel"
16642 test "$enableval" != no && enableval=yes
16643 if test "$enableval" != "yes" ; then
16644 enable_opaque_panel=no
16646 enable_opaque_panel=$cf_dft_opaque_curses
16650 enable_opaque_panel=$cf_dft_opaque_curses
16653 echo "$as_me:16653: result: $enable_opaque_panel" >&5
16654 echo "${ECHO_T}$enable_opaque_panel" >&6
16656 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
16657 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
16658 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
16659 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
16661 ### Allow using a different wrap-prefix
16662 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
16663 echo "$as_me:16663: checking for prefix used to wrap public variables" >&5
16664 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16666 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16667 if test "${with_wrap_prefix+set}" = set; then
16668 withval="$with_wrap_prefix"
16669 NCURSES_WRAP_PREFIX=$withval
16671 NCURSES_WRAP_PREFIX=_nc_
16673 echo "$as_me:16673: result: $NCURSES_WRAP_PREFIX" >&5
16674 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
16676 NCURSES_WRAP_PREFIX=_nc_
16679 cat >>confdefs.h <<EOF
16680 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
16683 ###############################################################################
16684 # These options are relatively safe to experiment with.
16686 echo "$as_me:16686: checking if you want all development code" >&5
16687 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16689 # Check whether --with-develop or --without-develop was given.
16690 if test "${with_develop+set}" = set; then
16691 withval="$with_develop"
16692 with_develop=$withval
16696 echo "$as_me:16696: result: $with_develop" >&5
16697 echo "${ECHO_T}$with_develop" >&6
16699 ### use option --enable-check-size to detect screensize with CPR
16700 echo "$as_me:16700: checking if you want to check screensize of serial terminals" >&5
16701 echo $ECHO_N "checking if you want to check screensize of serial terminals... $ECHO_C" >&6
16703 # Check whether --enable-check-size or --disable-check-size was given.
16704 if test "${enable_check_size+set}" = set; then
16705 enableval="$enable_check_size"
16708 enable_check_size=$with_develop
16710 echo "$as_me:16710: result: $enable_check_size" >&5
16711 echo "${ECHO_T}$enable_check_size" >&6
16712 test "x$enable_check_size" = xyes &&
16713 cat >>confdefs.h <<\EOF
16714 #define USE_CHECK_SIZE 1
16717 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
16718 echo "$as_me:16718: checking if you want hard-tabs code" >&5
16719 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
16721 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
16722 if test "${enable_hard_tabs+set}" = set; then
16723 enableval="$enable_hard_tabs"
16726 enable_hard_tabs=$with_develop
16728 echo "$as_me:16728: result: $enable_hard_tabs" >&5
16729 echo "${ECHO_T}$enable_hard_tabs" >&6
16730 test "x$enable_hard_tabs" = xyes &&
16731 cat >>confdefs.h <<\EOF
16732 #define USE_HARD_TABS 1
16735 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
16736 echo "$as_me:16736: checking if you want limited support for xmc" >&5
16737 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
16739 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
16740 if test "${enable_xmc_glitch+set}" = set; then
16741 enableval="$enable_xmc_glitch"
16744 enable_xmc_glitch=$with_develop
16746 echo "$as_me:16746: result: $enable_xmc_glitch" >&5
16747 echo "${ECHO_T}$enable_xmc_glitch" >&6
16748 test "x$enable_xmc_glitch" = xyes &&
16749 cat >>confdefs.h <<\EOF
16750 #define USE_XMC_SUPPORT 1
16753 ###############################################################################
16754 # These are just experimental, probably should not be in a package:
16756 echo "$as_me:16756: checking if you do not want to assume colors are white-on-black" >&5
16757 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
16759 # Check whether --enable-assumed-color or --disable-assumed-color was given.
16760 if test "${enable_assumed_color+set}" = set; then
16761 enableval="$enable_assumed_color"
16762 with_assumed_color=$enableval
16764 with_assumed_color=yes
16766 echo "$as_me:16766: result: $with_assumed_color" >&5
16767 echo "${ECHO_T}$with_assumed_color" >&6
16768 test "x$with_assumed_color" = xyes &&
16769 cat >>confdefs.h <<\EOF
16770 #define USE_ASSUMED_COLOR 1
16773 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
16774 echo "$as_me:16774: checking if you want hashmap scrolling-optimization code" >&5
16775 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
16777 # Check whether --enable-hashmap or --disable-hashmap was given.
16778 if test "${enable_hashmap+set}" = set; then
16779 enableval="$enable_hashmap"
16780 with_hashmap=$enableval
16784 echo "$as_me:16784: result: $with_hashmap" >&5
16785 echo "${ECHO_T}$with_hashmap" >&6
16786 test "x$with_hashmap" = xyes &&
16787 cat >>confdefs.h <<\EOF
16788 #define USE_HASHMAP 1
16791 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16792 echo "$as_me:16792: checking if you want colorfgbg code" >&5
16793 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16795 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16796 if test "${enable_colorfgbg+set}" = set; then
16797 enableval="$enable_colorfgbg"
16798 with_colorfgbg=$enableval
16802 echo "$as_me:16802: result: $with_colorfgbg" >&5
16803 echo "${ECHO_T}$with_colorfgbg" >&6
16804 test "x$with_colorfgbg" = xyes &&
16805 cat >>confdefs.h <<\EOF
16806 #define USE_COLORFGBG 1
16809 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16810 echo "$as_me:16810: checking if you want to use gcc -fvisibility option" >&5
16811 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16813 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16814 if test "${enable_fvisibility+set}" = set; then
16815 enableval="$enable_fvisibility"
16816 cf_with_fvisibility=$enableval
16818 cf_with_fvisibility=no
16820 echo "$as_me:16820: result: $cf_with_fvisibility" >&5
16821 echo "${ECHO_T}$cf_with_fvisibility" >&6
16824 NCURSES_CXX_IMPEXP=
16825 if test "x$cf_with_fvisibility" = xyes; then
16827 echo "$as_me:16827: checking if $CC -fvisibility=hidden option works" >&5
16828 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16829 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 cf_save_cflags="$CFLAGS"
16834 CFLAGS="$CFLAGS -fvisibility=hidden"
16835 cat >"conftest.$ac_ext" <<_ACEOF
16836 #line 16836 "configure"
16837 #include "confdefs.h"
16839 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16845 if (somefunc()) return 1;
16851 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16852 if { (eval echo "$as_me:16852: \"$ac_link\"") >&5
16853 (eval $ac_link) 2>&5
16855 echo "$as_me:16855: \$? = $ac_status" >&5
16856 (exit "$ac_status"); } &&
16857 { ac_try='test -s "conftest$ac_exeext"'
16858 { (eval echo "$as_me:16858: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:16861: \$? = $ac_status" >&5
16862 (exit "$ac_status"); }; }; then
16863 cf_cv_fvisibility_hidden=yes
16865 echo "$as_me: failed program was:" >&5
16866 cat "conftest.$ac_ext" >&5
16867 cf_cv_fvisibility_hidden=no
16869 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16870 CFLAGS=$cf_save_cflags
16873 echo "$as_me:16873: result: $cf_cv_fvisibility_hidden" >&5
16874 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16876 if test "x$cf_cv_fvisibility_hidden" = xyes
16882 cf_new_extra_cppflags=
16884 for cf_add_cflags in -fvisibility=hidden
16886 case "$cf_fix_cppflags" in
16888 case "$cf_add_cflags" in
16889 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16890 case "$cf_add_cflags" in
16892 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16894 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16895 && test -z "${cf_tst_cflags}" \
16896 && cf_fix_cppflags=yes
16898 if test "$cf_fix_cppflags" = yes ; then
16900 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16901 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16904 elif test "${cf_tst_cflags}" = "\"'" ; then
16906 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16907 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16913 case "$CPPFLAGS" in
16917 case "$cf_add_cflags" in
16919 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16921 CPPFLAGS=`echo "$CPPFLAGS" | \
16922 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16923 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16928 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16929 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16936 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16937 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16944 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16945 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16947 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16949 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16950 && test -z "${cf_tst_cflags}" \
16951 && cf_fix_cppflags=no
16956 if test -n "$cf_new_cflags" ; then
16958 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16959 CFLAGS="${CFLAGS}$cf_new_cflags"
16963 if test -n "$cf_new_cppflags" ; then
16965 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16966 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16970 if test -n "$cf_new_extra_cppflags" ; then
16972 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16973 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16977 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16982 ac_cpp='$CXXCPP $CPPFLAGS'
16983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16984 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16986 ac_main_return="return"
16988 echo "$as_me:16988: checking if $CXX -fvisibility=hidden option works" >&5
16989 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16990 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 cf_save_cflags="$CXXFLAGS"
16995 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16996 cat >"conftest.$ac_ext" <<_ACEOF
16997 #line 16997 "configure"
16998 #include "confdefs.h"
17000 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
17006 if (somefunc()) return 1;
17012 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17013 if { (eval echo "$as_me:17013: \"$ac_link\"") >&5
17014 (eval $ac_link) 2>&5
17016 echo "$as_me:17016: \$? = $ac_status" >&5
17017 (exit "$ac_status"); } &&
17018 { ac_try='test -s "conftest$ac_exeext"'
17019 { (eval echo "$as_me:17019: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17022 echo "$as_me:17022: \$? = $ac_status" >&5
17023 (exit "$ac_status"); }; }; then
17024 cf_cv_fvisibility_hidden2=yes
17026 echo "$as_me: failed program was:" >&5
17027 cat "conftest.$ac_ext" >&5
17028 cf_cv_fvisibility_hidden2=no
17030 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17031 CXXFLAGS=$cf_save_cflags
17034 echo "$as_me:17034: result: $cf_cv_fvisibility_hidden2" >&5
17035 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
17037 if test "x$cf_cv_fvisibility_hidden2" = xyes
17040 cf_save_CXXFLAGS="$CFLAGS"
17046 cf_new_extra_cppflags=
17048 for cf_add_cflags in -fvisibility=hidden
17050 case "$cf_fix_cppflags" in
17052 case "$cf_add_cflags" in
17053 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17054 case "$cf_add_cflags" in
17056 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17058 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17059 && test -z "${cf_tst_cflags}" \
17060 && cf_fix_cppflags=yes
17062 if test "$cf_fix_cppflags" = yes ; then
17064 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17065 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17068 elif test "${cf_tst_cflags}" = "\"'" ; then
17070 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17071 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17077 case "$CPPFLAGS" in
17081 case "$cf_add_cflags" in
17083 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17085 CPPFLAGS=`echo "$CPPFLAGS" | \
17086 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17087 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17092 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17093 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17100 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17101 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17108 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17109 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17111 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17113 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17114 && test -z "${cf_tst_cflags}" \
17115 && cf_fix_cppflags=no
17120 if test -n "$cf_new_cflags" ; then
17122 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17123 CFLAGS="${CFLAGS}$cf_new_cflags"
17127 if test -n "$cf_new_cppflags" ; then
17129 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17130 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17134 if test -n "$cf_new_extra_cppflags" ; then
17136 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17137 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17142 CFLAGS="$cf_save_CXXFLAGS"
17144 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
17147 ac_cpp='$CPP $CPPFLAGS'
17148 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17149 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17151 ac_main_return="return"
17156 ### use option --enable-interop to turn on use of bindings used for interop
17157 echo "$as_me:17157: checking if you want interop bindings" >&5
17158 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
17160 # Check whether --enable-interop or --disable-interop was given.
17161 if test "${enable_interop+set}" = set; then
17162 enableval="$enable_interop"
17163 with_exp_interop=$enableval
17165 with_exp_interop=$cf_dft_interop
17167 echo "$as_me:17167: result: $with_exp_interop" >&5
17168 echo "${ECHO_T}$with_exp_interop" >&6
17170 NCURSES_INTEROP_FUNCS=0
17171 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
17173 echo "$as_me:17173: checking if you want experimental safe-sprintf code" >&5
17174 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
17176 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
17177 if test "${enable_safe_sprintf+set}" = set; then
17178 enableval="$enable_safe_sprintf"
17179 with_safe_sprintf=$enableval
17181 with_safe_sprintf=no
17183 echo "$as_me:17183: result: $with_safe_sprintf" >&5
17184 echo "${ECHO_T}$with_safe_sprintf" >&6
17186 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
17187 # when hashmap is used scroll hints are useless
17188 if test "$with_hashmap" = no ; then
17189 echo "$as_me:17189: checking if you want to experiment without scrolling-hints code" >&5
17190 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
17192 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
17193 if test "${enable_scroll_hints+set}" = set; then
17194 enableval="$enable_scroll_hints"
17195 with_scroll_hints=$enableval
17197 with_scroll_hints=yes
17199 echo "$as_me:17199: result: $with_scroll_hints" >&5
17200 echo "${ECHO_T}$with_scroll_hints" >&6
17201 test "x$with_scroll_hints" = xyes &&
17202 cat >>confdefs.h <<\EOF
17203 #define USE_SCROLL_HINTS 1
17208 echo "$as_me:17208: checking if you want wgetch-events code" >&5
17209 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
17211 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
17212 if test "${enable_wgetch_events+set}" = set; then
17213 enableval="$enable_wgetch_events"
17214 with_wgetch_events=$enableval
17216 with_wgetch_events=no
17218 echo "$as_me:17218: result: $with_wgetch_events" >&5
17219 echo "${ECHO_T}$with_wgetch_events" >&6
17220 if test "x$with_wgetch_events" = xyes ; then
17222 cat >>confdefs.h <<\EOF
17223 #define NCURSES_WGETCH_EVENTS 1
17226 NCURSES_WGETCH_EVENTS=1
17228 NCURSES_WGETCH_EVENTS=0
17231 case "$cf_cv_system_name" in
17232 (*mingw32*|*mingw64*|*-msvc*)
17233 echo "$as_me:17233: checking if you want experimental-Windows driver" >&5
17234 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
17236 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
17237 if test "${enable_exp_win32+set}" = set; then
17238 enableval="$enable_exp_win32"
17239 with_exp_win32=$enableval
17243 echo "$as_me:17243: result: $with_exp_win32" >&5
17244 echo "${ECHO_T}$with_exp_win32" >&6
17245 if test "x$with_exp_win32" = xyes
17248 cat >>confdefs.h <<\EOF
17249 #define EXP_WIN32_DRIVER 1
17253 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
17255 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
17265 ###############################################################################
17267 ### use option --disable-echo to suppress full display compiling commands
17269 echo "$as_me:17269: checking if you want to see long compiling messages" >&5
17270 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
17272 # Check whether --enable-echo or --disable-echo was given.
17273 if test "${enable_echo+set}" = set; then
17274 enableval="$enable_echo"
17275 test "$enableval" != no && enableval=yes
17276 if test "$enableval" != "yes" ; then
17279 ECHO_LD='@echo linking $@;'
17280 RULE_CC='@echo compiling $<'
17281 SHOW_CC='@echo compiling $@'
17303 echo "$as_me:17303: result: $enableval" >&5
17304 echo "${ECHO_T}$enableval" >&6
17306 if test "x$enable_echo" = xyes; then
17309 ECHO_LINK='@ echo linking $@ ... ;'
17310 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
17311 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
17314 # --disable-stripping is used for debugging
17316 echo "$as_me:17316: checking if you want to install stripped executables" >&5
17317 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
17319 # Check whether --enable-stripping or --disable-stripping was given.
17320 if test "${enable_stripping+set}" = set; then
17321 enableval="$enable_stripping"
17322 test "$enableval" != no && enableval=yes
17323 if test "$enableval" != "yes" ; then
17324 enable_stripping=no
17326 enable_stripping=yes
17330 enable_stripping=yes
17333 echo "$as_me:17333: result: $enable_stripping" >&5
17334 echo "${ECHO_T}$enable_stripping" >&6
17336 if test "$enable_stripping" = yes
17343 : "${INSTALL:=install}"
17344 echo "$as_me:17344: checking if install accepts -p option" >&5
17345 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
17346 if test "${cf_cv_install_p+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 if $INSTALL -p conftest.in conftest.out 2>/dev/null
17356 if test -f conftest.out/conftest.in
17358 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
17359 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
17360 if test -s conftest.err
17364 cf_cv_install_p=yes
17375 echo "$as_me:17375: result: $cf_cv_install_p" >&5
17376 echo "${ECHO_T}$cf_cv_install_p" >&6
17378 echo "$as_me:17378: checking if install needs to be told about ownership" >&5
17379 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
17380 case `$ac_config_guess` in
17389 echo "$as_me:17389: result: $with_install_o" >&5
17390 echo "${ECHO_T}$with_install_o" >&6
17391 if test "x$with_install_o" = xyes
17393 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'`"
17398 if test -n "$INSTALL_OPT_S"
17400 echo "$as_me:17400: checking if you want to specify strip-program" >&5
17401 echo $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
17403 # Check whether --with-strip-program or --without-strip-program was given.
17404 if test "${with_strip_program+set}" = set; then
17405 withval="$with_strip_program"
17406 with_strip_program=$withval
17408 with_strip_program=no
17410 echo "$as_me:17410: result: $with_strip_program" >&5
17411 echo "${ECHO_T}$with_strip_program" >&6
17412 if test "$with_strip_program" != no
17414 echo "$as_me:17414: checking if strip-program is supported with this installer" >&5
17415 echo $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
17416 cf_install_program=`echo "$INSTALL" | sed -e 's%[ ]*[ ]-.%%'`
17417 check_install_strip=no
17418 if test -f "$cf_install_program"
17420 check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
17421 if test -n "$check_install_version"
17423 check_install_strip="option"
17425 for check_strip_variable in STRIPBIN STRIP
17427 if strings "$cf_install_program" | grep "^$check_strip_variable$" >/dev/null
17429 check_install_strip="environ"
17435 echo "$as_me:17435: result: $check_install_strip" >&5
17436 echo "${ECHO_T}$check_install_strip" >&6
17437 case "$check_install_strip" in
17439 { echo "$as_me:17439: WARNING: $cf_install_program does not support strip program option" >&5
17440 echo "$as_me: WARNING: $cf_install_program does not support strip program option" >&2;}
17441 with_strip_program=no
17444 cat >install.tmp <<-CF_EOF
17446 STRIPBIN="$with_strip_program" \\
17447 STRIP="$with_strip_program" \\
17450 INSTALL="`pwd`/install.tmp"
17451 chmod +x "$INSTALL"
17452 test -n "$verbose" && echo " created $INSTALL" 1>&6
17454 echo "${as_me:-configure}:17454: testing created $INSTALL ..." 1>&5
17458 INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
17464 # If we're avoiding relinking of shared libraries during install, that is to
17465 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
17466 # the install program has "-p" (for preserving timestamps).
17467 cf_cv_do_reranlib=yes
17468 if test "x$cf_cv_install_p" = xyes
17470 if test "x$cf_cv_do_relink" != xyes
17472 cf_cv_do_reranlib=no
17474 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
17478 ### use option --enable-warnings to turn on all gcc warnings
17480 echo "$as_me:17480: checking if you want to use C11 _Noreturn feature" >&5
17481 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
17483 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
17484 if test "${enable_stdnoreturn+set}" = set; then
17485 enableval="$enable_stdnoreturn"
17486 test "$enableval" != yes && enableval=no
17487 if test "$enableval" != "no" ; then
17488 enable_stdnoreturn=yes
17490 enable_stdnoreturn=no
17494 enable_stdnoreturn=no
17497 echo "$as_me:17497: result: $enable_stdnoreturn" >&5
17498 echo "${ECHO_T}$enable_stdnoreturn" >&6
17500 if test $enable_stdnoreturn = yes; then
17501 echo "$as_me:17501: checking for C11 _Noreturn feature" >&5
17502 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
17503 if test "${cf_cv_c11_noreturn+set}" = set; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 cat >"conftest.$ac_ext" <<_ACEOF
17507 #line 17507 "configure"
17508 #include "confdefs.h"
17510 $ac_includes_default
17511 #include <stdnoreturn.h>
17512 static _Noreturn void giveup(void) { exit(0); }
17517 if (feof(stdin)) giveup()
17522 rm -f "conftest.$ac_objext"
17523 if { (eval echo "$as_me:17523: \"$ac_compile\"") >&5
17524 (eval $ac_compile) 2>&5
17526 echo "$as_me:17526: \$? = $ac_status" >&5
17527 (exit "$ac_status"); } &&
17528 { ac_try='test -s "conftest.$ac_objext"'
17529 { (eval echo "$as_me:17529: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:17532: \$? = $ac_status" >&5
17533 (exit "$ac_status"); }; }; then
17534 cf_cv_c11_noreturn=yes
17536 echo "$as_me: failed program was:" >&5
17537 cat "conftest.$ac_ext" >&5
17538 cf_cv_c11_noreturn=no
17540 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17543 echo "$as_me:17543: result: $cf_cv_c11_noreturn" >&5
17544 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
17546 cf_cv_c11_noreturn=no,
17549 if test "$cf_cv_c11_noreturn" = yes; then
17551 cat >>confdefs.h <<\EOF
17552 #define HAVE_STDNORETURN_H 1
17555 cat >>confdefs.h <<EOF
17556 #define STDC_NORETURN _Noreturn
17559 HAVE_STDNORETURN_H=1
17561 HAVE_STDNORETURN_H=0
17564 if test "$GCC" = yes || test "$GXX" = yes
17567 if test "$GCC" = yes || test "$GXX" = yes
17572 for cf_temp_scan in $CFLAGS
17574 case "x$cf_temp_scan" in
17577 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17578 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17583 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17584 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17589 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17590 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17595 if test "x$CFLAGS" != "x$cf_temp_flags"
17597 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
17599 echo "${as_me:-configure}:17599: testing repairing CFLAGS: $CFLAGS ..." 1>&5
17601 CFLAGS="$cf_temp_flags"
17602 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
17604 echo "${as_me:-configure}:17604: testing ... fixed $CFLAGS ..." 1>&5
17606 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17608 echo "${as_me:-configure}:17608: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17615 if test "$GCC" = yes || test "$GXX" = yes
17620 for cf_temp_scan in $CPPFLAGS
17622 case "x$cf_temp_scan" in
17625 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17626 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17631 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17632 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17637 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17638 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17643 if test "x$CPPFLAGS" != "x$cf_temp_flags"
17645 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
17647 echo "${as_me:-configure}:17647: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
17649 CPPFLAGS="$cf_temp_flags"
17650 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
17652 echo "${as_me:-configure}:17652: testing ... fixed $CPPFLAGS ..." 1>&5
17654 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17656 echo "${as_me:-configure}:17656: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17663 if test "$GCC" = yes || test "$GXX" = yes
17668 for cf_temp_scan in $LDFLAGS
17670 case "x$cf_temp_scan" in
17673 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17674 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17679 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17680 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17685 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17686 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17691 if test "x$LDFLAGS" != "x$cf_temp_flags"
17693 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
17695 echo "${as_me:-configure}:17695: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
17697 LDFLAGS="$cf_temp_flags"
17698 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
17700 echo "${as_me:-configure}:17700: testing ... fixed $LDFLAGS ..." 1>&5
17702 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17704 echo "${as_me:-configure}:17704: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17711 echo "$as_me:17711: checking if you want to turn on gcc warnings" >&5
17712 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17714 # Check whether --enable-warnings or --disable-warnings was given.
17715 if test "${enable_warnings+set}" = set; then
17716 enableval="$enable_warnings"
17717 test "$enableval" != yes && enableval=no
17718 if test "$enableval" != "no" ; then
17719 enable_warnings=yes
17728 echo "$as_me:17728: result: $enable_warnings" >&5
17729 echo "${ECHO_T}$enable_warnings" >&6
17730 if test "$enable_warnings" = "yes"
17733 if test "x$have_x" = xyes; then
17735 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17736 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17737 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17738 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17739 for cf_X_CFLAGS in $X_CFLAGS
17741 case "x$cf_X_CFLAGS" in
17743 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17746 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17751 cat >"conftest.$ac_ext" <<_ACEOF
17752 #line 17752 "configure"
17753 #include "confdefs.h"
17755 #include <stdlib.h>
17756 #include <X11/Intrinsic.h>
17761 String foo = malloc(1); free((void*)foo)
17766 rm -f "conftest.$ac_objext"
17767 if { (eval echo "$as_me:17767: \"$ac_compile\"") >&5
17768 (eval $ac_compile) 2>&5
17770 echo "$as_me:17770: \$? = $ac_status" >&5
17771 (exit "$ac_status"); } &&
17772 { ac_try='test -s "conftest.$ac_objext"'
17773 { (eval echo "$as_me:17773: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:17776: \$? = $ac_status" >&5
17777 (exit "$ac_status"); }; }; then
17779 echo "$as_me:17779: checking for X11/Xt const-feature" >&5
17780 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17781 if test "${cf_cv_const_x_string+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 cat >"conftest.$ac_ext" <<_ACEOF
17786 #line 17786 "configure"
17787 #include "confdefs.h"
17789 #undef _CONST_X_STRING
17790 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17791 #undef XTSTRINGDEFINES /* X11R5 and later */
17792 #include <stdlib.h>
17793 #include <X11/Intrinsic.h>
17798 String foo = malloc(1); *foo = 0
17803 rm -f "conftest.$ac_objext"
17804 if { (eval echo "$as_me:17804: \"$ac_compile\"") >&5
17805 (eval $ac_compile) 2>&5
17807 echo "$as_me:17807: \$? = $ac_status" >&5
17808 (exit "$ac_status"); } &&
17809 { ac_try='test -s "conftest.$ac_objext"'
17810 { (eval echo "$as_me:17810: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17813 echo "$as_me:17813: \$? = $ac_status" >&5
17814 (exit "$ac_status"); }; }; then
17816 cf_cv_const_x_string=no
17819 echo "$as_me: failed program was:" >&5
17820 cat "conftest.$ac_ext" >&5
17822 cf_cv_const_x_string=yes
17825 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17828 echo "$as_me:17828: result: $cf_cv_const_x_string" >&5
17829 echo "${ECHO_T}$cf_cv_const_x_string" >&6
17831 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17832 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17833 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17835 case "$cf_cv_const_x_string" in
17838 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17839 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17844 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17845 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17851 echo "$as_me: failed program was:" >&5
17852 cat "conftest.$ac_ext" >&5
17854 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17856 cat > "conftest.$ac_ext" <<EOF
17857 #line 17857 "${as_me:-configure}"
17858 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17860 if test "$INTEL_COMPILER" = yes
17862 # The "-wdXXX" options suppress warnings:
17863 # remark #1419: external declaration in primary source file
17864 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17865 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17866 # remark #193: zero used for undefined preprocessing identifier
17867 # remark #593: variable "curs_sb_left_arrow" was set but never used
17868 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17869 # remark #869: parameter "tw" was never referenced
17870 # remark #981: operands are evaluated in unspecified order
17871 # warning #279: controlling expression is constant
17873 { echo "$as_me:17873: checking for $CC warning options..." >&5
17874 echo "$as_me: checking for $CC warning options..." >&6;}
17875 cf_save_CFLAGS="$CFLAGS"
17876 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17888 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17889 if { (eval echo "$as_me:17889: \"$ac_compile\"") >&5
17890 (eval $ac_compile) 2>&5
17892 echo "$as_me:17892: \$? = $ac_status" >&5
17893 (exit "$ac_status"); }; then
17894 test -n "$verbose" && echo "$as_me:17894: result: ... -$cf_opt" >&5
17895 echo "${ECHO_T}... -$cf_opt" >&6
17896 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17899 CFLAGS="$cf_save_CFLAGS"
17900 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17902 { echo "$as_me:17902: checking for $CC warning options..." >&5
17903 echo "$as_me: checking for $CC warning options..." >&6;}
17904 cf_save_CFLAGS="$CFLAGS"
17906 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17907 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17908 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17909 for cf_opt in W Wall \
17910 Wbad-function-cast \
17913 Wdeclaration-after-statement \
17916 Wmissing-declarations \
17917 Wmissing-prototypes \
17921 Wstrict-prototypes \
17922 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17924 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17925 if { (eval echo "$as_me:17925: \"$ac_compile\"") >&5
17926 (eval $ac_compile) 2>&5
17928 echo "$as_me:17928: \$? = $ac_status" >&5
17929 (exit "$ac_status"); }; then
17930 test -n "$verbose" && echo "$as_me:17930: result: ... -$cf_opt" >&5
17931 echo "${ECHO_T}... -$cf_opt" >&6
17934 case "$GCC_VERSION" in
17936 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17938 echo "${as_me:-configure}:17938: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17944 case "$GCC_VERSION" in
17946 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17948 echo "${as_me:-configure}:17948: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17954 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17957 CFLAGS="$cf_save_CFLAGS"
17963 if test "$GCC" = yes || test "$GXX" = yes
17965 cat > conftest.i <<EOF
17967 #define GCC_PRINTF 0
17970 #define GCC_SCANF 0
17972 #ifndef GCC_NORETURN
17973 #define GCC_NORETURN /* nothing */
17976 #define GCC_UNUSED /* nothing */
17979 if test "$GCC" = yes
17981 { echo "$as_me:17981: checking for $CC __attribute__ directives..." >&5
17982 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17983 cat > "conftest.$ac_ext" <<EOF
17984 #line 17984 "${as_me:-configure}"
17986 #include "confdefs.h"
17987 #include "conftest.h"
17988 #include "conftest.i"
17990 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17992 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17995 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17997 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17999 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
18000 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
18001 extern GCC_NORETURN void foo(void);
18002 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
18004 cf_printf_attribute=no
18005 cf_scanf_attribute=no
18006 for cf_attribute in scanf printf unused noreturn
18009 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18011 cf_directive="__attribute__(($cf_attribute))"
18012 echo "checking for $CC $cf_directive" 1>&5
18014 case "$cf_attribute" in
18016 cf_printf_attribute=yes
18017 cat >conftest.h <<EOF
18018 #define GCC_$cf_ATTRIBUTE 1
18022 cf_scanf_attribute=yes
18023 cat >conftest.h <<EOF
18024 #define GCC_$cf_ATTRIBUTE 1
18028 cat >conftest.h <<EOF
18029 #define GCC_$cf_ATTRIBUTE $cf_directive
18034 if { (eval echo "$as_me:18034: \"$ac_compile\"") >&5
18035 (eval $ac_compile) 2>&5
18037 echo "$as_me:18037: \$? = $ac_status" >&5
18038 (exit "$ac_status"); }; then
18039 test -n "$verbose" && echo "$as_me:18039: result: ... $cf_attribute" >&5
18040 echo "${ECHO_T}... $cf_attribute" >&6
18041 cat conftest.h >>confdefs.h
18042 case "$cf_attribute" in
18045 cat >>confdefs.h <<EOF
18046 #define GCC_NORETURN $cf_directive
18051 cf_value='/* nothing */'
18052 if test "$cf_printf_attribute" != no ; then
18053 cf_value='__attribute__((format(printf,fmt,var)))'
18055 cat >>confdefs.h <<\EOF
18056 #define GCC_PRINTF 1
18061 cat >>confdefs.h <<EOF
18062 #define GCC_PRINTFLIKE(fmt,var) $cf_value
18067 cf_value='/* nothing */'
18068 if test "$cf_scanf_attribute" != no ; then
18069 cf_value='__attribute__((format(scanf,fmt,var)))'
18071 cat >>confdefs.h <<\EOF
18072 #define GCC_SCANF 1
18077 cat >>confdefs.h <<EOF
18078 #define GCC_SCANFLIKE(fmt,var) $cf_value
18084 cat >>confdefs.h <<EOF
18085 #define GCC_UNUSED $cf_directive
18093 ${FGREP-fgrep} define conftest.i >>confdefs.h
18100 if test "x$enable_warnings" = "xyes"; then
18102 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
18104 if test "x$cf_with_cxx" = xyes ; then
18108 if test "$GCC" = yes ; then
18111 echo "$as_me:18111: checking if this is really Intel C++ compiler" >&5
18112 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
18113 cf_save_CFLAGS="$CXXFLAGS"
18114 CXXFLAGS="$CXXFLAGS -no-gcc"
18115 cat >"conftest.$ac_ext" <<_ACEOF
18116 #line 18116 "configure"
18117 #include "confdefs.h"
18123 #ifdef __INTEL_COMPILER
18125 #error __INTEL_COMPILER is not defined
18132 rm -f "conftest.$ac_objext"
18133 if { (eval echo "$as_me:18133: \"$ac_compile\"") >&5
18134 (eval $ac_compile) 2>&5
18136 echo "$as_me:18136: \$? = $ac_status" >&5
18137 (exit "$ac_status"); } &&
18138 { ac_try='test -s "conftest.$ac_objext"'
18139 { (eval echo "$as_me:18139: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18142 echo "$as_me:18142: \$? = $ac_status" >&5
18143 (exit "$ac_status"); }; }; then
18144 INTEL_CPLUSPLUS=yes
18145 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
18148 echo "$as_me: failed program was:" >&5
18149 cat "conftest.$ac_ext" >&5
18151 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18152 CXXFLAGS="$cf_save_CFLAGS"
18153 echo "$as_me:18153: result: $INTEL_CPLUSPLUS" >&5
18154 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
18161 if test "$GCC" = yes ; then
18162 echo "$as_me:18162: checking if this is really Clang C++ compiler" >&5
18163 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
18164 cf_save_CFLAGS="$CXXFLAGS"
18165 cat >"conftest.$ac_ext" <<_ACEOF
18166 #line 18166 "configure"
18167 #include "confdefs.h"
18175 #error __clang__ is not defined
18182 rm -f "conftest.$ac_objext"
18183 if { (eval echo "$as_me:18183: \"$ac_compile\"") >&5
18184 (eval $ac_compile) 2>&5
18186 echo "$as_me:18186: \$? = $ac_status" >&5
18187 (exit "$ac_status"); } &&
18188 { ac_try='test -s "conftest.$ac_objext"'
18189 { (eval echo "$as_me:18189: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18192 echo "$as_me:18192: \$? = $ac_status" >&5
18193 (exit "$ac_status"); }; }; then
18194 CLANG_CPLUSPLUS=yes
18197 echo "$as_me: failed program was:" >&5
18198 cat "conftest.$ac_ext" >&5
18200 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18201 CXXFLAGS="$cf_save_CFLAGS"
18202 echo "$as_me:18202: result: $CLANG_CPLUSPLUS" >&5
18203 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
18208 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
18210 (c[1-9][0-9]|*/c[1-9][0-9])
18211 { echo "$as_me:18211: WARNING: replacing broken compiler alias $CC" >&5
18212 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
18213 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
18218 echo "$as_me:18218: checking version of $CC" >&5
18219 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
18220 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.].*//'`"
18221 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
18222 echo "$as_me:18222: result: $CLANG_VERSION" >&5
18223 echo "${ECHO_T}$CLANG_VERSION" >&6
18225 for cf_clang_opt in \
18226 -Qunused-arguments \
18227 -Wno-error=implicit-function-declaration
18229 echo "$as_me:18229: checking if option $cf_clang_opt works" >&5
18230 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
18231 cf_save_CFLAGS="$CFLAGS"
18232 CFLAGS="$CFLAGS $cf_clang_opt"
18233 cat >"conftest.$ac_ext" <<_ACEOF
18234 #line 18234 "configure"
18235 #include "confdefs.h"
18242 printf("hello!\\n");
18247 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18248 if { (eval echo "$as_me:18248: \"$ac_link\"") >&5
18249 (eval $ac_link) 2>&5
18251 echo "$as_me:18251: \$? = $ac_status" >&5
18252 (exit "$ac_status"); } &&
18253 { ac_try='test -s "conftest$ac_exeext"'
18254 { (eval echo "$as_me:18254: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18257 echo "$as_me:18257: \$? = $ac_status" >&5
18258 (exit "$ac_status"); }; }; then
18262 echo "$as_me: failed program was:" >&5
18263 cat "conftest.$ac_ext" >&5
18267 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18268 echo "$as_me:18268: result: $cf_clang_optok" >&5
18269 echo "${ECHO_T}$cf_clang_optok" >&6
18270 CFLAGS="$cf_save_CFLAGS"
18271 if test "$cf_clang_optok" = yes; then
18272 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
18274 echo "${as_me:-configure}:18274: testing adding option $cf_clang_opt ..." 1>&5
18276 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18277 CFLAGS="${CFLAGS}$cf_clang_opt"
18284 ac_cpp='$CXXCPP $CPPFLAGS'
18285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
18286 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
18287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288 ac_main_return="return"
18290 cat > conftest.$ac_ext <<EOF
18291 #line 18291 "configure"
18292 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
18295 if test "$INTEL_CPLUSPLUS" = yes
18297 # The "-wdXXX" options suppress warnings:
18298 # remark #1419: external declaration in primary source file
18299 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
18300 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
18301 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
18302 # remark #193: zero used for undefined preprocessing identifier
18303 # remark #593: variable "curs_sb_left_arrow" was set but never used
18304 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
18305 # remark #869: parameter "tw" was never referenced
18306 # remark #981: operands are evaluated in unspecified order
18307 # warning #269: invalid format string conversion
18309 { echo "$as_me:18309: checking for $CC warning options..." >&5
18310 echo "$as_me: checking for $CC warning options..." >&6;}
18311 cf_save_CXXFLAGS="$CXXFLAGS"
18312 EXTRA_CXXFLAGS="-Wall"
18325 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
18326 if { (eval echo "$as_me:18326: \"$ac_compile\"") >&5
18327 (eval $ac_compile) 2>&5
18329 echo "$as_me:18329: \$? = $ac_status" >&5
18330 (exit "$ac_status"); }; then
18331 test -n "$verbose" && echo "$as_me:18331: result: ... -$cf_opt" >&5
18332 echo "${ECHO_T}... -$cf_opt" >&6
18333 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
18336 CXXFLAGS="$cf_save_CXXFLAGS"
18338 elif test "$GXX" = yes
18340 { echo "$as_me:18340: checking for $CXX warning options..." >&5
18341 echo "$as_me: checking for $CXX warning options..." >&6;}
18342 cf_save_CXXFLAGS="$CXXFLAGS"
18343 EXTRA_CXXFLAGS="-W -Wall"
18344 cf_gxx_extra_warnings=""
18345 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
18346 case "$GXX_VERSION" in
18350 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
18357 Wignored-qualifiers \
18359 Woverloaded-virtual \
18367 Wundef $cf_gxx_extra_warnings Wno-unused
18369 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
18370 if { (eval echo "$as_me:18370: \"$ac_compile\"") >&5
18371 (eval $ac_compile) 2>&5
18373 echo "$as_me:18373: \$? = $ac_status" >&5
18374 (exit "$ac_status"); }; then
18375 test -n "$verbose" && echo "$as_me:18375: result: ... -$cf_opt" >&5
18376 echo "${ECHO_T}... -$cf_opt" >&6
18377 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
18379 test -n "$verbose" && echo "$as_me:18379: result: ... no -$cf_opt" >&5
18380 echo "${ECHO_T}... no -$cf_opt" >&6
18383 CXXFLAGS="$cf_save_CXXFLAGS"
18388 ac_cpp='$CPP $CPPFLAGS'
18389 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
18390 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18392 ac_main_return="return"
18397 echo "$as_me:18397: checking if you want to work around bogus compiler/loader warnings" >&5
18398 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
18400 # Check whether --enable-string-hacks or --disable-string-hacks was given.
18401 if test "${enable_string_hacks+set}" = set; then
18402 enableval="$enable_string_hacks"
18403 enable_string_hacks=$enableval
18405 enable_string_hacks=no
18407 echo "$as_me:18407: result: $enable_string_hacks" >&5
18408 echo "${ECHO_T}$enable_string_hacks" >&6
18410 if test "x$enable_string_hacks" = "xyes"; then
18412 cat >>confdefs.h <<\EOF
18413 #define USE_STRING_HACKS 1
18416 { echo "$as_me:18416: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
18417 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
18418 echo "$as_me:18418: checking for strlcat" >&5
18419 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
18420 if test "${ac_cv_func_strlcat+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 cat >"conftest.$ac_ext" <<_ACEOF
18424 #line 18424 "configure"
18425 #include "confdefs.h"
18426 #define strlcat autoconf_temporary
18427 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18434 /* We use char because int might match the return type of a gcc2
18435 builtin and then its argument prototype would still apply. */
18436 char strlcat (void);
18442 /* The GNU C library defines stubs for functions which it implements
18443 to always fail with ENOSYS. Some functions are actually named
18444 something starting with __ and the normal name is an alias. */
18445 #if defined (__stub_strlcat) || defined (__stub___strlcat)
18446 #error found stub for strlcat
18454 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18455 if { (eval echo "$as_me:18455: \"$ac_link\"") >&5
18456 (eval $ac_link) 2>&5
18458 echo "$as_me:18458: \$? = $ac_status" >&5
18459 (exit "$ac_status"); } &&
18460 { ac_try='test -s "conftest$ac_exeext"'
18461 { (eval echo "$as_me:18461: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:18464: \$? = $ac_status" >&5
18465 (exit "$ac_status"); }; }; then
18466 ac_cv_func_strlcat=yes
18468 echo "$as_me: failed program was:" >&5
18469 cat "conftest.$ac_ext" >&5
18470 ac_cv_func_strlcat=no
18472 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18474 echo "$as_me:18474: result: $ac_cv_func_strlcat" >&5
18475 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
18476 if test "$ac_cv_func_strlcat" = yes; then
18478 cat >>confdefs.h <<\EOF
18479 #define HAVE_STRLCAT 1
18484 echo "$as_me:18484: checking for strlcat in -lbsd" >&5
18485 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
18486 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 ac_check_lib_save_LIBS=$LIBS
18491 cat >"conftest.$ac_ext" <<_ACEOF
18492 #line 18492 "configure"
18493 #include "confdefs.h"
18495 /* Override any gcc2 internal prototype to avoid an error. */
18499 /* We use char because int might match the return type of a gcc2
18500 builtin and then its argument prototype would still apply. */
18501 char strlcat (void);
18510 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18511 if { (eval echo "$as_me:18511: \"$ac_link\"") >&5
18512 (eval $ac_link) 2>&5
18514 echo "$as_me:18514: \$? = $ac_status" >&5
18515 (exit "$ac_status"); } &&
18516 { ac_try='test -s "conftest$ac_exeext"'
18517 { (eval echo "$as_me:18517: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18520 echo "$as_me:18520: \$? = $ac_status" >&5
18521 (exit "$ac_status"); }; }; then
18522 ac_cv_lib_bsd_strlcat=yes
18524 echo "$as_me: failed program was:" >&5
18525 cat "conftest.$ac_ext" >&5
18526 ac_cv_lib_bsd_strlcat=no
18528 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18529 LIBS=$ac_check_lib_save_LIBS
18531 echo "$as_me:18531: result: $ac_cv_lib_bsd_strlcat" >&5
18532 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
18533 if test "$ac_cv_lib_bsd_strlcat" = yes; then
18535 cf_add_libs="$LIBS"
18538 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18539 # filter duplicates
18540 for cf_add_1lib in $cf_add_0lib; do
18541 for cf_add_2lib in $cf_add_libs; do
18542 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18547 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18549 LIBS="$cf_add_libs"
18551 for ac_header in bsd/string.h
18553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18554 echo "$as_me:18554: checking for $ac_header" >&5
18555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 cat >"conftest.$ac_ext" <<_ACEOF
18560 #line 18560 "configure"
18561 #include "confdefs.h"
18562 #include <$ac_header>
18564 if { (eval echo "$as_me:18564: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18565 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18567 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18569 cat conftest.err >&5
18570 echo "$as_me:18570: \$? = $ac_status" >&5
18571 (exit "$ac_status"); } >/dev/null; then
18572 if test -s conftest.err; then
18573 ac_cpp_err=$ac_c_preproc_warn_flag
18580 if test -z "$ac_cpp_err"; then
18581 eval "$as_ac_Header=yes"
18583 echo "$as_me: failed program was:" >&5
18584 cat "conftest.$ac_ext" >&5
18585 eval "$as_ac_Header=no"
18587 rm -f conftest.err "conftest.$ac_ext"
18589 echo "$as_me:18589: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18590 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18591 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18592 cat >>confdefs.h <<EOF
18593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18599 cat >>confdefs.h <<\EOF
18600 #define HAVE_STRLCAT 1
18607 for ac_func in strlcpy snprintf
18609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18610 echo "$as_me:18610: checking for $ac_func" >&5
18611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18612 if eval "test \"\${$as_ac_var+set}\" = set"; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 cat >"conftest.$ac_ext" <<_ACEOF
18616 #line 18616 "configure"
18617 #include "confdefs.h"
18618 #define $ac_func autoconf_temporary
18619 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18626 /* We use char because int might match the return type of a gcc2
18627 builtin and then its argument prototype would still apply. */
18628 char $ac_func (void);
18634 /* The GNU C library defines stubs for functions which it implements
18635 to always fail with ENOSYS. Some functions are actually named
18636 something starting with __ and the normal name is an alias. */
18637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18638 #error found stub for $ac_func
18641 return $ac_func ();
18646 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18647 if { (eval echo "$as_me:18647: \"$ac_link\"") >&5
18648 (eval $ac_link) 2>&5
18650 echo "$as_me:18650: \$? = $ac_status" >&5
18651 (exit "$ac_status"); } &&
18652 { ac_try='test -s "conftest$ac_exeext"'
18653 { (eval echo "$as_me:18653: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18656 echo "$as_me:18656: \$? = $ac_status" >&5
18657 (exit "$ac_status"); }; }; then
18658 eval "$as_ac_var=yes"
18660 echo "$as_me: failed program was:" >&5
18661 cat "conftest.$ac_ext" >&5
18662 eval "$as_ac_var=no"
18664 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18666 echo "$as_me:18666: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18667 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18668 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18669 cat >>confdefs.h <<EOF
18670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18678 ### use option --enable-assertions to turn on generation of assertion code
18679 echo "$as_me:18679: checking if you want to enable runtime assertions" >&5
18680 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
18682 # Check whether --enable-assertions or --disable-assertions was given.
18683 if test "${enable_assertions+set}" = set; then
18684 enableval="$enable_assertions"
18685 with_assertions=$enableval
18689 echo "$as_me:18689: result: $with_assertions" >&5
18690 echo "${ECHO_T}$with_assertions" >&6
18693 if test "$with_assertions" = no
18695 CPPFLAGS="$CPPFLAGS -DNDEBUG"
18698 ADAFLAGS="$ADAFLAGS -gnata"
18703 ### use option --disable-leaks to suppress "permanent" leaks, for testing
18705 echo "$as_me:18705: checking if you want to use dmalloc for testing" >&5
18706 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18708 # Check whether --with-dmalloc or --without-dmalloc was given.
18709 if test "${with_dmalloc+set}" = set; then
18710 withval="$with_dmalloc"
18711 case "x$withval" in
18714 : "${with_cflags:=-g}"
18715 : "${enable_leaks:=no}"
18718 cat >>confdefs.h <<EOF
18719 #define USE_DMALLOC 1
18727 echo "$as_me:18727: result: ${with_dmalloc:-no}" >&5
18728 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18730 case ".$with_cflags" in
18740 cf_new_extra_cppflags=
18742 for cf_add_cflags in -g
18744 case "$cf_fix_cppflags" in
18746 case "$cf_add_cflags" in
18747 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18748 case "$cf_add_cflags" in
18750 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18752 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18753 && test -z "${cf_tst_cflags}" \
18754 && cf_fix_cppflags=yes
18756 if test "$cf_fix_cppflags" = yes ; then
18758 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18759 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18762 elif test "${cf_tst_cflags}" = "\"'" ; then
18764 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18765 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18771 case "$CPPFLAGS" in
18775 case "$cf_add_cflags" in
18777 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18779 CPPFLAGS=`echo "$CPPFLAGS" | \
18780 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18781 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18786 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18787 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18794 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18795 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18802 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18803 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18805 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18807 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18808 && test -z "${cf_tst_cflags}" \
18809 && cf_fix_cppflags=no
18814 if test -n "$cf_new_cflags" ; then
18816 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18817 CFLAGS="${CFLAGS}$cf_new_cflags"
18821 if test -n "$cf_new_cppflags" ; then
18823 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18824 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18828 if test -n "$cf_new_extra_cppflags" ; then
18830 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18831 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18840 if test "$with_dmalloc" = yes ; then
18841 echo "$as_me:18841: checking for dmalloc.h" >&5
18842 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18843 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 cat >"conftest.$ac_ext" <<_ACEOF
18847 #line 18847 "configure"
18848 #include "confdefs.h"
18849 #include <dmalloc.h>
18851 if { (eval echo "$as_me:18851: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18852 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18854 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18856 cat conftest.err >&5
18857 echo "$as_me:18857: \$? = $ac_status" >&5
18858 (exit "$ac_status"); } >/dev/null; then
18859 if test -s conftest.err; then
18860 ac_cpp_err=$ac_c_preproc_warn_flag
18867 if test -z "$ac_cpp_err"; then
18868 ac_cv_header_dmalloc_h=yes
18870 echo "$as_me: failed program was:" >&5
18871 cat "conftest.$ac_ext" >&5
18872 ac_cv_header_dmalloc_h=no
18874 rm -f conftest.err "conftest.$ac_ext"
18876 echo "$as_me:18876: result: $ac_cv_header_dmalloc_h" >&5
18877 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18878 if test "$ac_cv_header_dmalloc_h" = yes; then
18880 echo "$as_me:18880: checking for dmalloc_debug in -ldmalloc" >&5
18881 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18882 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18885 ac_check_lib_save_LIBS=$LIBS
18886 LIBS="-ldmalloc $LIBS"
18887 cat >"conftest.$ac_ext" <<_ACEOF
18888 #line 18888 "configure"
18889 #include "confdefs.h"
18891 /* Override any gcc2 internal prototype to avoid an error. */
18895 /* We use char because int might match the return type of a gcc2
18896 builtin and then its argument prototype would still apply. */
18897 char dmalloc_debug (void);
18906 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18907 if { (eval echo "$as_me:18907: \"$ac_link\"") >&5
18908 (eval $ac_link) 2>&5
18910 echo "$as_me:18910: \$? = $ac_status" >&5
18911 (exit "$ac_status"); } &&
18912 { ac_try='test -s "conftest$ac_exeext"'
18913 { (eval echo "$as_me:18913: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18916 echo "$as_me:18916: \$? = $ac_status" >&5
18917 (exit "$ac_status"); }; }; then
18918 ac_cv_lib_dmalloc_dmalloc_debug=yes
18920 echo "$as_me: failed program was:" >&5
18921 cat "conftest.$ac_ext" >&5
18922 ac_cv_lib_dmalloc_dmalloc_debug=no
18924 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18925 LIBS=$ac_check_lib_save_LIBS
18927 echo "$as_me:18927: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18928 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18929 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18930 cat >>confdefs.h <<EOF
18931 #define HAVE_LIBDMALLOC 1
18934 LIBS="-ldmalloc $LIBS"
18942 echo "$as_me:18942: checking if you want to use dbmalloc for testing" >&5
18943 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18945 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18946 if test "${with_dbmalloc+set}" = set; then
18947 withval="$with_dbmalloc"
18948 case "x$withval" in
18951 : "${with_cflags:=-g}"
18952 : "${enable_leaks:=no}"
18955 cat >>confdefs.h <<EOF
18956 #define USE_DBMALLOC 1
18964 echo "$as_me:18964: result: ${with_dbmalloc:-no}" >&5
18965 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18967 case ".$with_cflags" in
18977 cf_new_extra_cppflags=
18979 for cf_add_cflags in -g
18981 case "$cf_fix_cppflags" in
18983 case "$cf_add_cflags" in
18984 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18985 case "$cf_add_cflags" in
18987 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18989 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18990 && test -z "${cf_tst_cflags}" \
18991 && cf_fix_cppflags=yes
18993 if test "$cf_fix_cppflags" = yes ; then
18995 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18996 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18999 elif test "${cf_tst_cflags}" = "\"'" ; then
19001 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19002 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19008 case "$CPPFLAGS" in
19012 case "$cf_add_cflags" in
19014 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19016 CPPFLAGS=`echo "$CPPFLAGS" | \
19017 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19018 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19023 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19024 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19031 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19032 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19039 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19040 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19042 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19044 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19045 && test -z "${cf_tst_cflags}" \
19046 && cf_fix_cppflags=no
19051 if test -n "$cf_new_cflags" ; then
19053 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19054 CFLAGS="${CFLAGS}$cf_new_cflags"
19058 if test -n "$cf_new_cppflags" ; then
19060 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19061 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19065 if test -n "$cf_new_extra_cppflags" ; then
19067 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19068 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19077 if test "$with_dbmalloc" = yes ; then
19078 echo "$as_me:19078: checking for dbmalloc.h" >&5
19079 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
19080 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 cat >"conftest.$ac_ext" <<_ACEOF
19084 #line 19084 "configure"
19085 #include "confdefs.h"
19086 #include <dbmalloc.h>
19088 if { (eval echo "$as_me:19088: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19089 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19091 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:19094: \$? = $ac_status" >&5
19095 (exit "$ac_status"); } >/dev/null; then
19096 if test -s conftest.err; then
19097 ac_cpp_err=$ac_c_preproc_warn_flag
19104 if test -z "$ac_cpp_err"; then
19105 ac_cv_header_dbmalloc_h=yes
19107 echo "$as_me: failed program was:" >&5
19108 cat "conftest.$ac_ext" >&5
19109 ac_cv_header_dbmalloc_h=no
19111 rm -f conftest.err "conftest.$ac_ext"
19113 echo "$as_me:19113: result: $ac_cv_header_dbmalloc_h" >&5
19114 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
19115 if test "$ac_cv_header_dbmalloc_h" = yes; then
19117 echo "$as_me:19117: checking for debug_malloc in -ldbmalloc" >&5
19118 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
19119 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 ac_check_lib_save_LIBS=$LIBS
19123 LIBS="-ldbmalloc $LIBS"
19124 cat >"conftest.$ac_ext" <<_ACEOF
19125 #line 19125 "configure"
19126 #include "confdefs.h"
19128 /* Override any gcc2 internal prototype to avoid an error. */
19132 /* We use char because int might match the return type of a gcc2
19133 builtin and then its argument prototype would still apply. */
19134 char debug_malloc (void);
19143 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19144 if { (eval echo "$as_me:19144: \"$ac_link\"") >&5
19145 (eval $ac_link) 2>&5
19147 echo "$as_me:19147: \$? = $ac_status" >&5
19148 (exit "$ac_status"); } &&
19149 { ac_try='test -s "conftest$ac_exeext"'
19150 { (eval echo "$as_me:19150: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:19153: \$? = $ac_status" >&5
19154 (exit "$ac_status"); }; }; then
19155 ac_cv_lib_dbmalloc_debug_malloc=yes
19157 echo "$as_me: failed program was:" >&5
19158 cat "conftest.$ac_ext" >&5
19159 ac_cv_lib_dbmalloc_debug_malloc=no
19161 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19162 LIBS=$ac_check_lib_save_LIBS
19164 echo "$as_me:19164: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
19165 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
19166 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
19167 cat >>confdefs.h <<EOF
19168 #define HAVE_LIBDBMALLOC 1
19171 LIBS="-ldbmalloc $LIBS"
19179 echo "$as_me:19179: checking if you want to use valgrind for testing" >&5
19180 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
19182 # Check whether --with-valgrind or --without-valgrind was given.
19183 if test "${with_valgrind+set}" = set; then
19184 withval="$with_valgrind"
19185 case "x$withval" in
19188 : "${with_cflags:=-g}"
19189 : "${enable_leaks:=no}"
19192 cat >>confdefs.h <<EOF
19193 #define USE_VALGRIND 1
19201 echo "$as_me:19201: result: ${with_valgrind:-no}" >&5
19202 echo "${ECHO_T}${with_valgrind:-no}" >&6
19204 case ".$with_cflags" in
19214 cf_new_extra_cppflags=
19216 for cf_add_cflags in -g
19218 case "$cf_fix_cppflags" in
19220 case "$cf_add_cflags" in
19221 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19222 case "$cf_add_cflags" in
19224 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19226 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19227 && test -z "${cf_tst_cflags}" \
19228 && cf_fix_cppflags=yes
19230 if test "$cf_fix_cppflags" = yes ; then
19232 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19233 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19236 elif test "${cf_tst_cflags}" = "\"'" ; then
19238 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19239 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19245 case "$CPPFLAGS" in
19249 case "$cf_add_cflags" in
19251 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19253 CPPFLAGS=`echo "$CPPFLAGS" | \
19254 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19255 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19260 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19261 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19268 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19269 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19276 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19277 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19279 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19281 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19282 && test -z "${cf_tst_cflags}" \
19283 && cf_fix_cppflags=no
19288 if test -n "$cf_new_cflags" ; then
19290 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19291 CFLAGS="${CFLAGS}$cf_new_cflags"
19295 if test -n "$cf_new_cppflags" ; then
19297 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19298 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19302 if test -n "$cf_new_extra_cppflags" ; then
19304 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19305 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19314 echo "$as_me:19314: checking if you want to perform memory-leak testing" >&5
19315 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
19317 # Check whether --enable-leaks or --disable-leaks was given.
19318 if test "${enable_leaks+set}" = set; then
19319 enableval="$enable_leaks"
19320 enable_leaks=$enableval
19324 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
19325 echo "$as_me:19325: result: $with_no_leaks" >&5
19326 echo "${ECHO_T}$with_no_leaks" >&6
19328 if test "$enable_leaks" = no ; then
19330 cat >>confdefs.h <<\EOF
19334 cat >>confdefs.h <<\EOF
19335 #define YY_NO_LEAKS 1
19340 cat >>confdefs.h <<\EOF
19341 #define HAVE_NC_ALLOC_H 1
19344 ### use option --enable-expanded to generate certain macros as functions
19346 # Check whether --enable-expanded or --disable-expanded was given.
19347 if test "${enable_expanded+set}" = set; then
19348 enableval="$enable_expanded"
19349 test "x$enableval" = xyes &&
19350 cat >>confdefs.h <<\EOF
19351 #define NCURSES_EXPANDED 1
19356 ### use option --disable-macros to suppress macros in favor of functions
19358 # Check whether --enable-macros or --disable-macros was given.
19359 if test "${enable_macros+set}" = set; then
19360 enableval="$enable_macros"
19361 test "$enableval" = no &&
19362 cat >>confdefs.h <<\EOF
19363 #define NCURSES_NOMACROS 1
19368 # Normally we only add trace() to the debug-library. Allow this to be
19369 # extended to all models of the ncurses library:
19371 case "$CFLAGS $CPPFLAGS" in
19377 echo "$as_me:19377: checking whether to add trace feature to all models" >&5
19378 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
19380 # Check whether --with-trace or --without-trace was given.
19381 if test "${with_trace+set}" = set; then
19382 withval="$with_trace"
19383 cf_with_trace=$withval
19385 cf_with_trace=$cf_all_traces
19387 echo "$as_me:19387: result: $cf_with_trace" >&5
19388 echo "${ECHO_T}$cf_with_trace" >&6
19390 if test "x$cf_with_trace" = xyes ; then
19394 cat >>confdefs.h <<\EOF
19398 cat >>confdefs.h <<\EOF
19399 #define HAVE__TRACEF 1
19407 echo "$as_me:19407: checking if we want to use GNAT projects" >&5
19408 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
19410 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
19411 if test "${enable_gnat_projects+set}" = set; then
19412 enableval="$enable_gnat_projects"
19413 test "$enableval" != no && enableval=yes
19414 if test "$enableval" != "yes" ; then
19415 enable_gnat_projects=no
19417 enable_gnat_projects=yes
19421 enable_gnat_projects=yes
19424 echo "$as_me:19424: result: $enable_gnat_projects" >&5
19425 echo "${ECHO_T}$enable_gnat_projects" >&6
19427 ### Checks for libraries.
19428 case "$cf_cv_system_name" in
19429 (*mingw32*|*mingw64*)
19430 # Note: WINVER may be a problem with Windows 10
19431 if test "x$with_exp_win32" = xyes ; then
19432 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
19434 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
19437 echo "$as_me:19437: checking if ssp library is needed" >&5
19438 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
19439 if test "${cf_cv_need_libssp+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 cat >"conftest.$ac_ext" <<_ACEOF
19444 #line 19444 "configure"
19445 #include "confdefs.h"
19447 #include <sys/types.h>
19448 #include <dirent.h>
19454 DIR *dp = opendir(".");
19460 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19461 if { (eval echo "$as_me:19461: \"$ac_link\"") >&5
19462 (eval $ac_link) 2>&5
19464 echo "$as_me:19464: \$? = $ac_status" >&5
19465 (exit "$ac_status"); } &&
19466 { ac_try='test -s "conftest$ac_exeext"'
19467 { (eval echo "$as_me:19467: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:19470: \$? = $ac_status" >&5
19471 (exit "$ac_status"); }; }; then
19472 cf_cv_need_libssp=no
19474 echo "$as_me: failed program was:" >&5
19475 cat "conftest.$ac_ext" >&5
19477 cf_save_LIBS="$LIBS"
19479 cat >"conftest.$ac_ext" <<_ACEOF
19480 #line 19480 "configure"
19481 #include "confdefs.h"
19483 #include <sys/types.h>
19484 #include <dirent.h>
19490 DIR *dp = opendir(".");
19496 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19497 if { (eval echo "$as_me:19497: \"$ac_link\"") >&5
19498 (eval $ac_link) 2>&5
19500 echo "$as_me:19500: \$? = $ac_status" >&5
19501 (exit "$ac_status"); } &&
19502 { ac_try='test -s "conftest$ac_exeext"'
19503 { (eval echo "$as_me:19503: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:19506: \$? = $ac_status" >&5
19507 (exit "$ac_status"); }; }; then
19508 cf_cv_need_libssp=yes
19510 echo "$as_me: failed program was:" >&5
19511 cat "conftest.$ac_ext" >&5
19512 cf_cv_need_libssp=maybe
19514 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19515 LIBS="$cf_save_LIBS"
19518 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19520 echo "$as_me:19520: result: $cf_cv_need_libssp" >&5
19521 echo "${ECHO_T}$cf_cv_need_libssp" >&6
19523 if test "x$cf_cv_need_libssp" = xyes
19526 cf_add_libs="$LIBS"
19529 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19530 # filter duplicates
19531 for cf_add_1lib in $cf_add_0lib; do
19532 for cf_add_2lib in $cf_add_libs; do
19533 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19538 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19540 LIBS="$cf_add_libs"
19549 echo "$as_me:19549: checking if -lm needed for math functions" >&5
19550 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19551 if test "${cf_cv_need_libm+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 cat >"conftest.$ac_ext" <<_ACEOF
19556 #line 19556 "configure"
19557 #include "confdefs.h"
19560 #include <stdlib.h>
19566 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19571 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19572 if { (eval echo "$as_me:19572: \"$ac_link\"") >&5
19573 (eval $ac_link) 2>&5
19575 echo "$as_me:19575: \$? = $ac_status" >&5
19576 (exit "$ac_status"); } &&
19577 { ac_try='test -s "conftest$ac_exeext"'
19578 { (eval echo "$as_me:19578: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:19581: \$? = $ac_status" >&5
19582 (exit "$ac_status"); }; }; then
19585 echo "$as_me: failed program was:" >&5
19586 cat "conftest.$ac_ext" >&5
19587 cf_cv_need_libm=yes
19589 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19591 echo "$as_me:19591: result: $cf_cv_need_libm" >&5
19592 echo "${ECHO_T}$cf_cv_need_libm" >&6
19594 if test "$cf_cv_need_libm" = yes
19597 cf_save_LIBS="$LIBS"
19599 echo "$as_me:19599: checking if -lm is available for math functions" >&5
19600 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
19601 if test "${cf_cv_have_libm+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 cat >"conftest.$ac_ext" <<_ACEOF
19606 #line 19606 "configure"
19607 #include "confdefs.h"
19610 #include <stdlib.h>
19616 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19621 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19622 if { (eval echo "$as_me:19622: \"$ac_link\"") >&5
19623 (eval $ac_link) 2>&5
19625 echo "$as_me:19625: \$? = $ac_status" >&5
19626 (exit "$ac_status"); } &&
19627 { ac_try='test -s "conftest$ac_exeext"'
19628 { (eval echo "$as_me:19628: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19631 echo "$as_me:19631: \$? = $ac_status" >&5
19632 (exit "$ac_status"); }; }; then
19633 cf_cv_have_libm=yes
19635 echo "$as_me: failed program was:" >&5
19636 cat "conftest.$ac_ext" >&5
19639 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19641 echo "$as_me:19641: result: $cf_cv_have_libm" >&5
19642 echo "${ECHO_T}$cf_cv_have_libm" >&6
19643 LIBS="$cf_save_LIBS"
19645 if test "$cf_cv_have_libm" = yes
19650 cf_cv_have_libm=yes
19653 if test "$cf_cv_have_libm" = yes
19656 cat >>confdefs.h <<\EOF
19657 #define HAVE_MATH_FUNCS 1
19662 ### Checks for header files.
19663 echo "$as_me:19663: checking whether time.h and sys/time.h may both be included" >&5
19664 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19665 if test "${ac_cv_header_time+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 cat >"conftest.$ac_ext" <<_ACEOF
19669 #line 19669 "configure"
19670 #include "confdefs.h"
19671 #include <sys/types.h>
19672 #include <sys/time.h>
19678 if ((struct tm *) 0)
19684 rm -f "conftest.$ac_objext"
19685 if { (eval echo "$as_me:19685: \"$ac_compile\"") >&5
19686 (eval $ac_compile) 2>&5
19688 echo "$as_me:19688: \$? = $ac_status" >&5
19689 (exit "$ac_status"); } &&
19690 { ac_try='test -s "conftest.$ac_objext"'
19691 { (eval echo "$as_me:19691: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19694 echo "$as_me:19694: \$? = $ac_status" >&5
19695 (exit "$ac_status"); }; }; then
19696 ac_cv_header_time=yes
19698 echo "$as_me: failed program was:" >&5
19699 cat "conftest.$ac_ext" >&5
19700 ac_cv_header_time=no
19702 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19704 echo "$as_me:19704: result: $ac_cv_header_time" >&5
19705 echo "${ECHO_T}$ac_cv_header_time" >&6
19706 if test $ac_cv_header_time = yes; then
19708 cat >>confdefs.h <<\EOF
19709 #define TIME_WITH_SYS_TIME 1
19718 # -lsystre -ltre -lintl -liconv
19719 echo "$as_me:19719: checking for regcomp in -lsystre" >&5
19720 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19721 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 ac_check_lib_save_LIBS=$LIBS
19725 LIBS="-lsystre $LIBS"
19726 cat >"conftest.$ac_ext" <<_ACEOF
19727 #line 19727 "configure"
19728 #include "confdefs.h"
19730 /* Override any gcc2 internal prototype to avoid an error. */
19734 /* We use char because int might match the return type of a gcc2
19735 builtin and then its argument prototype would still apply. */
19736 char regcomp (void);
19745 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19746 if { (eval echo "$as_me:19746: \"$ac_link\"") >&5
19747 (eval $ac_link) 2>&5
19749 echo "$as_me:19749: \$? = $ac_status" >&5
19750 (exit "$ac_status"); } &&
19751 { ac_try='test -s "conftest$ac_exeext"'
19752 { (eval echo "$as_me:19752: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:19755: \$? = $ac_status" >&5
19756 (exit "$ac_status"); }; }; then
19757 ac_cv_lib_systre_regcomp=yes
19759 echo "$as_me: failed program was:" >&5
19760 cat "conftest.$ac_ext" >&5
19761 ac_cv_lib_systre_regcomp=no
19763 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19764 LIBS=$ac_check_lib_save_LIBS
19766 echo "$as_me:19766: result: $ac_cv_lib_systre_regcomp" >&5
19767 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19768 if test "$ac_cv_lib_systre_regcomp" = yes; then
19770 echo "$as_me:19770: checking for libiconv_open in -liconv" >&5
19771 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19772 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 ac_check_lib_save_LIBS=$LIBS
19776 LIBS="-liconv $LIBS"
19777 cat >"conftest.$ac_ext" <<_ACEOF
19778 #line 19778 "configure"
19779 #include "confdefs.h"
19781 /* Override any gcc2 internal prototype to avoid an error. */
19785 /* We use char because int might match the return type of a gcc2
19786 builtin and then its argument prototype would still apply. */
19787 char libiconv_open (void);
19796 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19797 if { (eval echo "$as_me:19797: \"$ac_link\"") >&5
19798 (eval $ac_link) 2>&5
19800 echo "$as_me:19800: \$? = $ac_status" >&5
19801 (exit "$ac_status"); } &&
19802 { ac_try='test -s "conftest$ac_exeext"'
19803 { (eval echo "$as_me:19803: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 echo "$as_me:19806: \$? = $ac_status" >&5
19807 (exit "$ac_status"); }; }; then
19808 ac_cv_lib_iconv_libiconv_open=yes
19810 echo "$as_me: failed program was:" >&5
19811 cat "conftest.$ac_ext" >&5
19812 ac_cv_lib_iconv_libiconv_open=no
19814 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19815 LIBS=$ac_check_lib_save_LIBS
19817 echo "$as_me:19817: result: $ac_cv_lib_iconv_libiconv_open" >&5
19818 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19819 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19821 cf_add_libs="$LIBS"
19824 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19825 # filter duplicates
19826 for cf_add_1lib in $cf_add_0lib; do
19827 for cf_add_2lib in $cf_add_libs; do
19828 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19833 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19835 LIBS="$cf_add_libs"
19839 echo "$as_me:19839: checking for libintl_gettext in -lintl" >&5
19840 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19841 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 ac_check_lib_save_LIBS=$LIBS
19845 LIBS="-lintl $LIBS"
19846 cat >"conftest.$ac_ext" <<_ACEOF
19847 #line 19847 "configure"
19848 #include "confdefs.h"
19850 /* Override any gcc2 internal prototype to avoid an error. */
19854 /* We use char because int might match the return type of a gcc2
19855 builtin and then its argument prototype would still apply. */
19856 char libintl_gettext (void);
19860 libintl_gettext ();
19865 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19866 if { (eval echo "$as_me:19866: \"$ac_link\"") >&5
19867 (eval $ac_link) 2>&5
19869 echo "$as_me:19869: \$? = $ac_status" >&5
19870 (exit "$ac_status"); } &&
19871 { ac_try='test -s "conftest$ac_exeext"'
19872 { (eval echo "$as_me:19872: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:19875: \$? = $ac_status" >&5
19876 (exit "$ac_status"); }; }; then
19877 ac_cv_lib_intl_libintl_gettext=yes
19879 echo "$as_me: failed program was:" >&5
19880 cat "conftest.$ac_ext" >&5
19881 ac_cv_lib_intl_libintl_gettext=no
19883 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19884 LIBS=$ac_check_lib_save_LIBS
19886 echo "$as_me:19886: result: $ac_cv_lib_intl_libintl_gettext" >&5
19887 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19888 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19890 cf_add_libs="$LIBS"
19893 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19894 # filter duplicates
19895 for cf_add_1lib in $cf_add_0lib; do
19896 for cf_add_2lib in $cf_add_libs; do
19897 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19902 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19904 LIBS="$cf_add_libs"
19908 echo "$as_me:19908: checking for tre_regcomp in -ltre" >&5
19909 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19910 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 ac_check_lib_save_LIBS=$LIBS
19915 cat >"conftest.$ac_ext" <<_ACEOF
19916 #line 19916 "configure"
19917 #include "confdefs.h"
19919 /* Override any gcc2 internal prototype to avoid an error. */
19923 /* We use char because int might match the return type of a gcc2
19924 builtin and then its argument prototype would still apply. */
19925 char tre_regcomp (void);
19934 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19935 if { (eval echo "$as_me:19935: \"$ac_link\"") >&5
19936 (eval $ac_link) 2>&5
19938 echo "$as_me:19938: \$? = $ac_status" >&5
19939 (exit "$ac_status"); } &&
19940 { ac_try='test -s "conftest$ac_exeext"'
19941 { (eval echo "$as_me:19941: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19944 echo "$as_me:19944: \$? = $ac_status" >&5
19945 (exit "$ac_status"); }; }; then
19946 ac_cv_lib_tre_tre_regcomp=yes
19948 echo "$as_me: failed program was:" >&5
19949 cat "conftest.$ac_ext" >&5
19950 ac_cv_lib_tre_tre_regcomp=no
19952 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19953 LIBS=$ac_check_lib_save_LIBS
19955 echo "$as_me:19955: result: $ac_cv_lib_tre_tre_regcomp" >&5
19956 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19957 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19959 cf_add_libs="$LIBS"
19962 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19963 # filter duplicates
19964 for cf_add_1lib in $cf_add_0lib; do
19965 for cf_add_2lib in $cf_add_libs; do
19966 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19971 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19973 LIBS="$cf_add_libs"
19977 cf_add_libs="$LIBS"
19980 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19981 # filter duplicates
19982 for cf_add_1lib in $cf_add_0lib; do
19983 for cf_add_2lib in $cf_add_libs; do
19984 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19989 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19991 LIBS="$cf_add_libs"
19993 cf_regex_func=regcomp
19997 echo "$as_me:19997: checking for regcomp in -lgnurx" >&5
19998 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19999 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 ac_check_lib_save_LIBS=$LIBS
20003 LIBS="-lgnurx $LIBS"
20004 cat >"conftest.$ac_ext" <<_ACEOF
20005 #line 20005 "configure"
20006 #include "confdefs.h"
20008 /* Override any gcc2 internal prototype to avoid an error. */
20012 /* We use char because int might match the return type of a gcc2
20013 builtin and then its argument prototype would still apply. */
20014 char regcomp (void);
20023 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20024 if { (eval echo "$as_me:20024: \"$ac_link\"") >&5
20025 (eval $ac_link) 2>&5
20027 echo "$as_me:20027: \$? = $ac_status" >&5
20028 (exit "$ac_status"); } &&
20029 { ac_try='test -s "conftest$ac_exeext"'
20030 { (eval echo "$as_me:20030: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 echo "$as_me:20033: \$? = $ac_status" >&5
20034 (exit "$ac_status"); }; }; then
20035 ac_cv_lib_gnurx_regcomp=yes
20037 echo "$as_me: failed program was:" >&5
20038 cat "conftest.$ac_ext" >&5
20039 ac_cv_lib_gnurx_regcomp=no
20041 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20042 LIBS=$ac_check_lib_save_LIBS
20044 echo "$as_me:20044: result: $ac_cv_lib_gnurx_regcomp" >&5
20045 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
20046 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
20048 cf_add_libs="$LIBS"
20051 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20052 # filter duplicates
20053 for cf_add_1lib in $cf_add_0lib; do
20054 for cf_add_2lib in $cf_add_libs; do
20055 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20060 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20062 LIBS="$cf_add_libs"
20064 cf_regex_func=regcomp
20071 cf_regex_libs="regex re"
20072 echo "$as_me:20072: checking for regcomp" >&5
20073 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
20074 if test "${ac_cv_func_regcomp+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 cat >"conftest.$ac_ext" <<_ACEOF
20078 #line 20078 "configure"
20079 #include "confdefs.h"
20080 #define regcomp autoconf_temporary
20081 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20088 /* We use char because int might match the return type of a gcc2
20089 builtin and then its argument prototype would still apply. */
20090 char regcomp (void);
20096 /* The GNU C library defines stubs for functions which it implements
20097 to always fail with ENOSYS. Some functions are actually named
20098 something starting with __ and the normal name is an alias. */
20099 #if defined (__stub_regcomp) || defined (__stub___regcomp)
20100 #error found stub for regcomp
20108 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20109 if { (eval echo "$as_me:20109: \"$ac_link\"") >&5
20110 (eval $ac_link) 2>&5
20112 echo "$as_me:20112: \$? = $ac_status" >&5
20113 (exit "$ac_status"); } &&
20114 { ac_try='test -s "conftest$ac_exeext"'
20115 { (eval echo "$as_me:20115: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 echo "$as_me:20118: \$? = $ac_status" >&5
20119 (exit "$ac_status"); }; }; then
20120 ac_cv_func_regcomp=yes
20122 echo "$as_me: failed program was:" >&5
20123 cat "conftest.$ac_ext" >&5
20124 ac_cv_func_regcomp=no
20126 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20128 echo "$as_me:20128: result: $ac_cv_func_regcomp" >&5
20129 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
20130 if test "$ac_cv_func_regcomp" = yes; then
20131 cf_regex_func=regcomp
20134 for cf_regex_lib in $cf_regex_libs
20136 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
20137 echo "$as_me:20137: checking for regcomp in -l$cf_regex_lib" >&5
20138 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
20139 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 ac_check_lib_save_LIBS=$LIBS
20143 LIBS="-l$cf_regex_lib $LIBS"
20144 cat >"conftest.$ac_ext" <<_ACEOF
20145 #line 20145 "configure"
20146 #include "confdefs.h"
20148 /* Override any gcc2 internal prototype to avoid an error. */
20152 /* We use char because int might match the return type of a gcc2
20153 builtin and then its argument prototype would still apply. */
20154 char regcomp (void);
20163 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20164 if { (eval echo "$as_me:20164: \"$ac_link\"") >&5
20165 (eval $ac_link) 2>&5
20167 echo "$as_me:20167: \$? = $ac_status" >&5
20168 (exit "$ac_status"); } &&
20169 { ac_try='test -s "conftest$ac_exeext"'
20170 { (eval echo "$as_me:20170: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20173 echo "$as_me:20173: \$? = $ac_status" >&5
20174 (exit "$ac_status"); }; }; then
20175 eval "$as_ac_Lib=yes"
20177 echo "$as_me: failed program was:" >&5
20178 cat "conftest.$ac_ext" >&5
20179 eval "$as_ac_Lib=no"
20181 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20182 LIBS=$ac_check_lib_save_LIBS
20184 echo "$as_me:20184: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
20185 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
20186 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
20188 cf_add_libs="$LIBS"
20191 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20192 # filter duplicates
20193 for cf_add_1lib in $cf_add_0lib; do
20194 for cf_add_2lib in $cf_add_libs; do
20195 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20200 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20202 LIBS="$cf_add_libs"
20204 cf_regex_func=regcomp
20215 if test "$cf_regex_func" = no ; then
20216 echo "$as_me:20216: checking for compile" >&5
20217 echo $ECHO_N "checking for compile... $ECHO_C" >&6
20218 if test "${ac_cv_func_compile+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 cat >"conftest.$ac_ext" <<_ACEOF
20222 #line 20222 "configure"
20223 #include "confdefs.h"
20224 #define compile autoconf_temporary
20225 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20232 /* We use char because int might match the return type of a gcc2
20233 builtin and then its argument prototype would still apply. */
20234 char compile (void);
20240 /* The GNU C library defines stubs for functions which it implements
20241 to always fail with ENOSYS. Some functions are actually named
20242 something starting with __ and the normal name is an alias. */
20243 #if defined (__stub_compile) || defined (__stub___compile)
20244 #error found stub for compile
20252 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20253 if { (eval echo "$as_me:20253: \"$ac_link\"") >&5
20254 (eval $ac_link) 2>&5
20256 echo "$as_me:20256: \$? = $ac_status" >&5
20257 (exit "$ac_status"); } &&
20258 { ac_try='test -s "conftest$ac_exeext"'
20259 { (eval echo "$as_me:20259: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20262 echo "$as_me:20262: \$? = $ac_status" >&5
20263 (exit "$ac_status"); }; }; then
20264 ac_cv_func_compile=yes
20266 echo "$as_me: failed program was:" >&5
20267 cat "conftest.$ac_ext" >&5
20268 ac_cv_func_compile=no
20270 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20272 echo "$as_me:20272: result: $ac_cv_func_compile" >&5
20273 echo "${ECHO_T}$ac_cv_func_compile" >&6
20274 if test "$ac_cv_func_compile" = yes; then
20275 cf_regex_func=compile
20278 echo "$as_me:20278: checking for compile in -lgen" >&5
20279 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
20280 if test "${ac_cv_lib_gen_compile+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 ac_check_lib_save_LIBS=$LIBS
20285 cat >"conftest.$ac_ext" <<_ACEOF
20286 #line 20286 "configure"
20287 #include "confdefs.h"
20289 /* Override any gcc2 internal prototype to avoid an error. */
20293 /* We use char because int might match the return type of a gcc2
20294 builtin and then its argument prototype would still apply. */
20295 char compile (void);
20304 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20305 if { (eval echo "$as_me:20305: \"$ac_link\"") >&5
20306 (eval $ac_link) 2>&5
20308 echo "$as_me:20308: \$? = $ac_status" >&5
20309 (exit "$ac_status"); } &&
20310 { ac_try='test -s "conftest$ac_exeext"'
20311 { (eval echo "$as_me:20311: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 echo "$as_me:20314: \$? = $ac_status" >&5
20315 (exit "$ac_status"); }; }; then
20316 ac_cv_lib_gen_compile=yes
20318 echo "$as_me: failed program was:" >&5
20319 cat "conftest.$ac_ext" >&5
20320 ac_cv_lib_gen_compile=no
20322 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20323 LIBS=$ac_check_lib_save_LIBS
20325 echo "$as_me:20325: result: $ac_cv_lib_gen_compile" >&5
20326 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
20327 if test "$ac_cv_lib_gen_compile" = yes; then
20329 cf_add_libs="$LIBS"
20332 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20333 # filter duplicates
20334 for cf_add_1lib in $cf_add_0lib; do
20335 for cf_add_2lib in $cf_add_libs; do
20336 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20341 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20343 LIBS="$cf_add_libs"
20345 cf_regex_func=compile
20352 if test "$cf_regex_func" = no ; then
20353 { echo "$as_me:20353: WARNING: cannot find regular expression library" >&5
20354 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
20357 echo "$as_me:20357: checking for regular-expression headers" >&5
20358 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
20359 if test "${cf_cv_regex_hdrs+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 cf_cv_regex_hdrs=no
20364 case "$cf_regex_func" in
20366 for cf_regex_hdr in regexp.h regexpr.h
20368 cat >"conftest.$ac_ext" <<_ACEOF
20369 #line 20369 "configure"
20370 #include "confdefs.h"
20371 #include <$cf_regex_hdr>
20376 char *p = compile("", "", "", 0);
20377 int x = step("", "");
20385 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20386 if { (eval echo "$as_me:20386: \"$ac_link\"") >&5
20387 (eval $ac_link) 2>&5
20389 echo "$as_me:20389: \$? = $ac_status" >&5
20390 (exit "$ac_status"); } &&
20391 { ac_try='test -s "conftest$ac_exeext"'
20392 { (eval echo "$as_me:20392: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:20395: \$? = $ac_status" >&5
20396 (exit "$ac_status"); }; }; then
20398 cf_cv_regex_hdrs=$cf_regex_hdr
20402 echo "$as_me: failed program was:" >&5
20403 cat "conftest.$ac_ext" >&5
20405 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20409 for cf_regex_hdr in regex.h
20411 cat >"conftest.$ac_ext" <<_ACEOF
20412 #line 20412 "configure"
20413 #include "confdefs.h"
20414 #include <sys/types.h>
20415 #include <$cf_regex_hdr>
20421 int x = regcomp(p, "", 0);
20422 int y = regexec(p, "", 0, 0, 0);
20431 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20432 if { (eval echo "$as_me:20432: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>&5
20435 echo "$as_me:20435: \$? = $ac_status" >&5
20436 (exit "$ac_status"); } &&
20437 { ac_try='test -s "conftest$ac_exeext"'
20438 { (eval echo "$as_me:20438: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20441 echo "$as_me:20441: \$? = $ac_status" >&5
20442 (exit "$ac_status"); }; }; then
20444 cf_cv_regex_hdrs=$cf_regex_hdr
20448 echo "$as_me: failed program was:" >&5
20449 cat "conftest.$ac_ext" >&5
20451 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20457 echo "$as_me:20457: result: $cf_cv_regex_hdrs" >&5
20458 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20460 case "$cf_cv_regex_hdrs" in
20461 (no) { echo "$as_me:20461: WARNING: no regular expression header found" >&5
20462 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20464 cat >>confdefs.h <<\EOF
20465 #define HAVE_REGEX_H_FUNCS 1
20469 cat >>confdefs.h <<\EOF
20470 #define HAVE_REGEXP_H_FUNCS 1
20474 cat >>confdefs.h <<\EOF
20475 #define HAVE_REGEXPR_H_FUNCS 1
20498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499 echo "$as_me:20499: checking for $ac_header" >&5
20500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 cat >"conftest.$ac_ext" <<_ACEOF
20505 #line 20505 "configure"
20506 #include "confdefs.h"
20507 #include <$ac_header>
20509 if { (eval echo "$as_me:20509: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20510 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20512 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20514 cat conftest.err >&5
20515 echo "$as_me:20515: \$? = $ac_status" >&5
20516 (exit "$ac_status"); } >/dev/null; then
20517 if test -s conftest.err; then
20518 ac_cpp_err=$ac_c_preproc_warn_flag
20525 if test -z "$ac_cpp_err"; then
20526 eval "$as_ac_Header=yes"
20528 echo "$as_me: failed program was:" >&5
20529 cat "conftest.$ac_ext" >&5
20530 eval "$as_ac_Header=no"
20532 rm -f conftest.err "conftest.$ac_ext"
20534 echo "$as_me:20534: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20535 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20536 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20537 cat >>confdefs.h <<EOF
20538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20544 for ac_header in unistd.h getopt.h
20546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20547 echo "$as_me:20547: checking for $ac_header" >&5
20548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 cat >"conftest.$ac_ext" <<_ACEOF
20553 #line 20553 "configure"
20554 #include "confdefs.h"
20555 #include <$ac_header>
20557 if { (eval echo "$as_me:20557: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20558 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20560 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20562 cat conftest.err >&5
20563 echo "$as_me:20563: \$? = $ac_status" >&5
20564 (exit "$ac_status"); } >/dev/null; then
20565 if test -s conftest.err; then
20566 ac_cpp_err=$ac_c_preproc_warn_flag
20573 if test -z "$ac_cpp_err"; then
20574 eval "$as_ac_Header=yes"
20576 echo "$as_me: failed program was:" >&5
20577 cat "conftest.$ac_ext" >&5
20578 eval "$as_ac_Header=no"
20580 rm -f conftest.err "conftest.$ac_ext"
20582 echo "$as_me:20582: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20583 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20584 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20585 cat >>confdefs.h <<EOF
20586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20592 echo "$as_me:20592: checking for header declaring getopt variables" >&5
20593 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20594 if test "${cf_cv_getopt_header+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20598 cf_cv_getopt_header=none
20599 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20601 cat >"conftest.$ac_ext" <<_ACEOF
20602 #line 20602 "configure"
20603 #include "confdefs.h"
20605 #include <$cf_header>
20609 int x = optind; char *y = optarg; (void)x; (void)y
20614 rm -f "conftest.$ac_objext"
20615 if { (eval echo "$as_me:20615: \"$ac_compile\"") >&5
20616 (eval $ac_compile) 2>&5
20618 echo "$as_me:20618: \$? = $ac_status" >&5
20619 (exit "$ac_status"); } &&
20620 { ac_try='test -s "conftest.$ac_objext"'
20621 { (eval echo "$as_me:20621: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20624 echo "$as_me:20624: \$? = $ac_status" >&5
20625 (exit "$ac_status"); }; }; then
20626 cf_cv_getopt_header=$cf_header
20629 echo "$as_me: failed program was:" >&5
20630 cat "conftest.$ac_ext" >&5
20632 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20636 echo "$as_me:20636: result: $cf_cv_getopt_header" >&5
20637 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20638 if test "$cf_cv_getopt_header" != none ; then
20640 cat >>confdefs.h <<\EOF
20641 #define HAVE_GETOPT_HEADER 1
20645 if test "$cf_cv_getopt_header" = getopt.h ; then
20647 cat >>confdefs.h <<\EOF
20648 #define NEED_GETOPT_H 1
20653 echo "$as_me:20653: checking if external environ is declared" >&5
20654 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20655 if test "${cf_cv_dcl_environ+set}" = set; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 cat >"conftest.$ac_ext" <<_ACEOF
20660 #line 20660 "configure"
20661 #include "confdefs.h"
20663 $ac_includes_default
20667 void* x = (void*) environ; (void)x
20672 rm -f "conftest.$ac_objext"
20673 if { (eval echo "$as_me:20673: \"$ac_compile\"") >&5
20674 (eval $ac_compile) 2>&5
20676 echo "$as_me:20676: \$? = $ac_status" >&5
20677 (exit "$ac_status"); } &&
20678 { ac_try='test -s "conftest.$ac_objext"'
20679 { (eval echo "$as_me:20679: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:20682: \$? = $ac_status" >&5
20683 (exit "$ac_status"); }; }; then
20684 cf_cv_dcl_environ=yes
20686 echo "$as_me: failed program was:" >&5
20687 cat "conftest.$ac_ext" >&5
20688 cf_cv_dcl_environ=no
20690 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20693 echo "$as_me:20693: result: $cf_cv_dcl_environ" >&5
20694 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20696 if test "$cf_cv_dcl_environ" = no ; then
20698 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20700 cat >>confdefs.h <<EOF
20701 #define $cf_result 1
20706 # It's possible (for near-UNIX clones) that the data doesn't exist
20708 echo "$as_me:20708: checking if external environ exists" >&5
20709 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20710 if test "${cf_cv_have_environ+set}" = set; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >"conftest.$ac_ext" <<_ACEOF
20715 #line 20715 "configure"
20716 #include "confdefs.h"
20719 extern int environ;
20729 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20730 if { (eval echo "$as_me:20730: \"$ac_link\"") >&5
20731 (eval $ac_link) 2>&5
20733 echo "$as_me:20733: \$? = $ac_status" >&5
20734 (exit "$ac_status"); } &&
20735 { ac_try='test -s "conftest$ac_exeext"'
20736 { (eval echo "$as_me:20736: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20739 echo "$as_me:20739: \$? = $ac_status" >&5
20740 (exit "$ac_status"); }; }; then
20741 cf_cv_have_environ=yes
20743 echo "$as_me: failed program was:" >&5
20744 cat "conftest.$ac_ext" >&5
20745 cf_cv_have_environ=no
20747 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20750 echo "$as_me:20750: result: $cf_cv_have_environ" >&5
20751 echo "${ECHO_T}$cf_cv_have_environ" >&6
20753 if test "$cf_cv_have_environ" = yes ; then
20755 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20757 cat >>confdefs.h <<EOF
20758 #define $cf_result 1
20763 echo "$as_me:20763: checking for getenv" >&5
20764 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20765 if test "${ac_cv_func_getenv+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 cat >"conftest.$ac_ext" <<_ACEOF
20769 #line 20769 "configure"
20770 #include "confdefs.h"
20771 #define getenv autoconf_temporary
20772 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20779 /* We use char because int might match the return type of a gcc2
20780 builtin and then its argument prototype would still apply. */
20781 char getenv (void);
20787 /* The GNU C library defines stubs for functions which it implements
20788 to always fail with ENOSYS. Some functions are actually named
20789 something starting with __ and the normal name is an alias. */
20790 #if defined (__stub_getenv) || defined (__stub___getenv)
20791 #error found stub for getenv
20799 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20800 if { (eval echo "$as_me:20800: \"$ac_link\"") >&5
20801 (eval $ac_link) 2>&5
20803 echo "$as_me:20803: \$? = $ac_status" >&5
20804 (exit "$ac_status"); } &&
20805 { ac_try='test -s "conftest$ac_exeext"'
20806 { (eval echo "$as_me:20806: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20809 echo "$as_me:20809: \$? = $ac_status" >&5
20810 (exit "$ac_status"); }; }; then
20811 ac_cv_func_getenv=yes
20813 echo "$as_me: failed program was:" >&5
20814 cat "conftest.$ac_ext" >&5
20815 ac_cv_func_getenv=no
20817 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20819 echo "$as_me:20819: result: $ac_cv_func_getenv" >&5
20820 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20822 for ac_func in putenv setenv strdup
20824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20825 echo "$as_me:20825: checking for $ac_func" >&5
20826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20827 if eval "test \"\${$as_ac_var+set}\" = set"; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 cat >"conftest.$ac_ext" <<_ACEOF
20831 #line 20831 "configure"
20832 #include "confdefs.h"
20833 #define $ac_func autoconf_temporary
20834 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20841 /* We use char because int might match the return type of a gcc2
20842 builtin and then its argument prototype would still apply. */
20843 char $ac_func (void);
20849 /* The GNU C library defines stubs for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20853 #error found stub for $ac_func
20856 return $ac_func ();
20861 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20862 if { (eval echo "$as_me:20862: \"$ac_link\"") >&5
20863 (eval $ac_link) 2>&5
20865 echo "$as_me:20865: \$? = $ac_status" >&5
20866 (exit "$ac_status"); } &&
20867 { ac_try='test -s "conftest$ac_exeext"'
20868 { (eval echo "$as_me:20868: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:20871: \$? = $ac_status" >&5
20872 (exit "$ac_status"); }; }; then
20873 eval "$as_ac_var=yes"
20875 echo "$as_me: failed program was:" >&5
20876 cat "conftest.$ac_ext" >&5
20877 eval "$as_ac_var=no"
20879 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20881 echo "$as_me:20881: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20882 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20883 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20884 cat >>confdefs.h <<EOF
20885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20891 echo "$as_me:20891: checking if getenv returns consistent values" >&5
20892 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20893 if test "${cf_cv_consistent_getenv+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20897 if test "$cross_compiling" = yes; then
20898 cf_cv_consistent_getenv=unknown
20900 cat >"conftest.$ac_ext" <<_ACEOF
20901 #line 20901 "configure"
20902 #include "confdefs.h"
20904 $ac_includes_default
20906 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20907 extern char **environ; /* POSIX, but some systems are not... */
20910 #if defined(HAVE_STRDUP)
20911 #define str_alloc(s) strdup(s)
20913 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20916 static void set_value(const char *name, const char *value)
20918 #if defined(HAVE_SETENV)
20919 setenv(name, value, 1);
20920 #elif defined(HAVE_PUTENV)
20922 sprintf(buffer, "%s=%s", name, value);
20923 putenv(str_alloc(buffer));
20925 #error neither putenv/setenv found
20931 size_t numenv, limit, j;
20936 for (numenv = 0; environ[numenv]; ++numenv) ;
20937 limit = numenv + 10;
20938 mynames = (char **) calloc(limit + 1, sizeof(char *));
20939 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20940 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20941 #if defined(HAVE_ENVIRON)
20942 for (j = 0; environ[j]; ++j) {
20943 mynames[j] = str_alloc(environ[j]);
20944 equals = strchr(mynames[j], '=');
20947 myvalues[j] = str_alloc(equals);
20949 myvalues[j] = str_alloc("");
20953 for (j = numenv; j < limit; ++j) {
20961 sprintf(name, "TERM%lu", (unsigned long) k);
20962 for (jk = 0; jk < j; ++jk) {
20963 if (!strcmp(name, mynames[jk])) {
20970 sprintf(value, "%lu:%p", (unsigned long) k, (void*)&mynames[j]);
20971 set_value(name, value);
20972 mynames[j] = str_alloc(name);
20973 myvalues[j] = str_alloc(value);
20975 for (pass = 0; pass < 3; ++pass) {
20976 for (j = 0; j < limit; ++j) {
20977 char *value = getenv(mynames[j]);
20980 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20981 ${cf_cv_main_return:-return}(1);
20982 } else if (value != mypointer[j]) {
20983 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20984 ${cf_cv_main_return:-return}(1);
20985 } else if (strcmp(value, myvalues[j])) {
20986 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20987 ${cf_cv_main_return:-return}(1);
20991 mypointer[j] = value;
20992 for (k = 0; k < j; ++k) {
20993 if (mypointer[j] == mypointer[k]) {
20994 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20995 ${cf_cv_main_return:-return}(1);
21001 ${cf_cv_main_return:-return}(0);
21005 rm -f "conftest$ac_exeext"
21006 if { (eval echo "$as_me:21006: \"$ac_link\"") >&5
21007 (eval $ac_link) 2>&5
21009 echo "$as_me:21009: \$? = $ac_status" >&5
21010 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21011 { (eval echo "$as_me:21011: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 echo "$as_me:21014: \$? = $ac_status" >&5
21015 (exit "$ac_status"); }; }; then
21016 cf_cv_consistent_getenv=yes
21018 echo "$as_me: program exited with status $ac_status" >&5
21019 echo "$as_me: failed program was:" >&5
21020 cat "conftest.$ac_ext" >&5
21021 cf_cv_consistent_getenv=no
21023 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21027 echo "$as_me:21027: result: $cf_cv_consistent_getenv" >&5
21028 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
21030 if test "x$cf_cv_consistent_getenv" = xno
21033 cat >>confdefs.h <<\EOF
21034 #define HAVE_CONSISTENT_GETENV 1
21039 if test "x$cf_cv_consistent_getenv" = xno && \
21040 test "x$cf_with_trace" = xyes
21042 { echo "$as_me:21042: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
21043 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
21046 echo "$as_me:21046: checking if sys/time.h works with sys/select.h" >&5
21047 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
21048 if test "${cf_cv_sys_time_select+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 cat >"conftest.$ac_ext" <<_ACEOF
21053 #line 21053 "configure"
21054 #include "confdefs.h"
21056 #include <sys/types.h>
21057 #ifdef HAVE_SYS_TIME_H
21058 #include <sys/time.h>
21060 #ifdef HAVE_SYS_SELECT_H
21061 #include <sys/select.h>
21072 rm -f "conftest.$ac_objext"
21073 if { (eval echo "$as_me:21073: \"$ac_compile\"") >&5
21074 (eval $ac_compile) 2>&5
21076 echo "$as_me:21076: \$? = $ac_status" >&5
21077 (exit "$ac_status"); } &&
21078 { ac_try='test -s "conftest.$ac_objext"'
21079 { (eval echo "$as_me:21079: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21082 echo "$as_me:21082: \$? = $ac_status" >&5
21083 (exit "$ac_status"); }; }; then
21084 cf_cv_sys_time_select=yes
21086 echo "$as_me: failed program was:" >&5
21087 cat "conftest.$ac_ext" >&5
21088 cf_cv_sys_time_select=no
21090 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21094 echo "$as_me:21094: result: $cf_cv_sys_time_select" >&5
21095 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
21096 test "$cf_cv_sys_time_select" = yes &&
21097 cat >>confdefs.h <<\EOF
21098 #define HAVE_SYS_TIME_SELECT 1
21101 ### checks for compiler characteristics
21103 ac_cpp='$CPP $CPPFLAGS'
21104 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
21105 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21107 ac_main_return="return"
21109 echo "$as_me:21109: checking for an ANSI C-conforming const" >&5
21110 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21111 if test "${ac_cv_c_const+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 cat >"conftest.$ac_ext" <<_ACEOF
21115 #line 21115 "configure"
21116 #include "confdefs.h"
21121 /* FIXME: Include the comments suggested by Paul. */
21122 #ifndef __cplusplus
21123 /* Ultrix mips cc rejects this. */
21124 typedef int charset[2];
21125 const charset x; (void)x;
21126 /* SunOS 4.1.1 cc rejects this. */
21127 char const *const *ccp;
21129 /* NEC SVR4.0.2 mips cc rejects this. */
21130 struct point {int x, y;};
21131 static struct point const zero = {0,0}; (void)zero;
21132 /* AIX XL C 1.02.0.0 rejects this.
21133 It does not let you subtract one const X* pointer from another in
21134 an arm of an if-expression whose if-part is not a constant
21136 const char *g = "string";
21137 ccp = &g + (g ? g-g : 0);
21138 /* HPUX 7.0 cc rejects these. */
21141 ccp = (char const *const *) p;
21142 { /* SCO 3.2v4 cc rejects this. */
21144 char const *s = 0 ? (char *) 0 : (char const *) 0;
21149 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21150 int x[] = {25, 17};
21151 const int *foo = &x[0];
21155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21156 typedef const int *iptr;
21161 { /* AIX XL C 1.02.0.0 rejects this saying
21162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21163 struct s { int j; const int *ap[3]; };
21164 struct s *b; b->j = 5;
21166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21167 const int foo = 10;
21176 rm -f "conftest.$ac_objext"
21177 if { (eval echo "$as_me:21177: \"$ac_compile\"") >&5
21178 (eval $ac_compile) 2>&5
21180 echo "$as_me:21180: \$? = $ac_status" >&5
21181 (exit "$ac_status"); } &&
21182 { ac_try='test -s "conftest.$ac_objext"'
21183 { (eval echo "$as_me:21183: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21186 echo "$as_me:21186: \$? = $ac_status" >&5
21187 (exit "$ac_status"); }; }; then
21190 echo "$as_me: failed program was:" >&5
21191 cat "conftest.$ac_ext" >&5
21194 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21196 echo "$as_me:21196: result: $ac_cv_c_const" >&5
21197 echo "${ECHO_T}$ac_cv_c_const" >&6
21198 if test $ac_cv_c_const = no; then
21200 cat >>confdefs.h <<\EOF
21206 echo "$as_me:21206: checking for inline" >&5
21207 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21208 if test "${ac_cv_c_inline+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 for ac_kw in inline __inline__ __inline; do
21213 cat >"conftest.$ac_ext" <<_ACEOF
21214 #line 21214 "configure"
21215 #include "confdefs.h"
21216 #ifndef __cplusplus
21217 static $ac_kw int static_foo (void) {return 0; }
21218 $ac_kw int foo (void) {return 0; }
21222 rm -f "conftest.$ac_objext"
21223 if { (eval echo "$as_me:21223: \"$ac_compile\"") >&5
21224 (eval $ac_compile) 2>&5
21226 echo "$as_me:21226: \$? = $ac_status" >&5
21227 (exit "$ac_status"); } &&
21228 { ac_try='test -s "conftest.$ac_objext"'
21229 { (eval echo "$as_me:21229: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21232 echo "$as_me:21232: \$? = $ac_status" >&5
21233 (exit "$ac_status"); }; }; then
21234 ac_cv_c_inline=$ac_kw; break
21236 echo "$as_me: failed program was:" >&5
21237 cat "conftest.$ac_ext" >&5
21239 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21243 echo "$as_me:21243: result: $ac_cv_c_inline" >&5
21244 echo "${ECHO_T}$ac_cv_c_inline" >&6
21245 case $ac_cv_c_inline in
21248 cat >>confdefs.h <<\EOF
21252 *) cat >>confdefs.h <<EOF
21253 #define inline $ac_cv_c_inline
21259 if test "$ac_cv_c_inline" != no ; then
21260 NCURSES_INLINE=inline
21261 if test "$INTEL_COMPILER" = yes
21264 elif test "$CLANG_COMPILER" = yes
21267 elif test "$GCC" = yes
21269 echo "$as_me:21269: checking if $CC supports options to tune inlining" >&5
21270 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
21271 if test "${cf_cv_gcc_inline+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 cf_save_CFLAGS=$CFLAGS
21276 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
21277 cat >"conftest.$ac_ext" <<_ACEOF
21278 #line 21278 "configure"
21279 #include "confdefs.h"
21280 inline int foo(void) { return 1; }
21284 ${cf_cv_main_return:-return} foo()
21289 rm -f "conftest.$ac_objext"
21290 if { (eval echo "$as_me:21290: \"$ac_compile\"") >&5
21291 (eval $ac_compile) 2>&5
21293 echo "$as_me:21293: \$? = $ac_status" >&5
21294 (exit "$ac_status"); } &&
21295 { ac_try='test -s "conftest.$ac_objext"'
21296 { (eval echo "$as_me:21296: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:21299: \$? = $ac_status" >&5
21300 (exit "$ac_status"); }; }; then
21301 cf_cv_gcc_inline=yes
21303 echo "$as_me: failed program was:" >&5
21304 cat "conftest.$ac_ext" >&5
21305 cf_cv_gcc_inline=no
21307 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21308 CFLAGS=$cf_save_CFLAGS
21311 echo "$as_me:21311: result: $cf_cv_gcc_inline" >&5
21312 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
21313 if test "$cf_cv_gcc_inline" = yes ; then
21318 cf_new_extra_cppflags=
21320 for cf_add_cflags in --param max-inline-insns-single=1200
21322 case "$cf_fix_cppflags" in
21324 case "$cf_add_cflags" in
21325 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
21326 case "$cf_add_cflags" in
21328 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21330 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21331 && test -z "${cf_tst_cflags}" \
21332 && cf_fix_cppflags=yes
21334 if test "$cf_fix_cppflags" = yes ; then
21336 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21337 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21340 elif test "${cf_tst_cflags}" = "\"'" ; then
21342 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21343 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21349 case "$CPPFLAGS" in
21353 case "$cf_add_cflags" in
21355 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21357 CPPFLAGS=`echo "$CPPFLAGS" | \
21358 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21359 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21364 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
21365 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
21372 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
21373 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21380 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21381 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21383 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
21385 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21386 && test -z "${cf_tst_cflags}" \
21387 && cf_fix_cppflags=no
21392 if test -n "$cf_new_cflags" ; then
21394 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21395 CFLAGS="${CFLAGS}$cf_new_cflags"
21399 if test -n "$cf_new_cppflags" ; then
21401 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21402 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21406 if test -n "$cf_new_extra_cppflags" ; then
21408 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21409 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21417 echo "$as_me:21417: checking for signal global datatype" >&5
21418 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21419 if test "${cf_cv_sig_atomic_t+set}" = set; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 "volatile sig_atomic_t" \
21428 cat >"conftest.$ac_ext" <<_ACEOF
21429 #line 21429 "configure"
21430 #include "confdefs.h"
21432 #include <sys/types.h>
21433 #include <signal.h>
21438 static void handler(int sig)
21446 signal(SIGINT, handler);
21452 rm -f "conftest.$ac_objext"
21453 if { (eval echo "$as_me:21453: \"$ac_compile\"") >&5
21454 (eval $ac_compile) 2>&5
21456 echo "$as_me:21456: \$? = $ac_status" >&5
21457 (exit "$ac_status"); } &&
21458 { ac_try='test -s "conftest.$ac_objext"'
21459 { (eval echo "$as_me:21459: \"$ac_try\"") >&5
21460 (eval $ac_try) 2>&5
21462 echo "$as_me:21462: \$? = $ac_status" >&5
21463 (exit "$ac_status"); }; }; then
21464 cf_cv_sig_atomic_t=$cf_type
21466 echo "$as_me: failed program was:" >&5
21467 cat "conftest.$ac_ext" >&5
21468 cf_cv_sig_atomic_t=no
21470 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21471 test "$cf_cv_sig_atomic_t" != no && break
21476 echo "$as_me:21476: result: $cf_cv_sig_atomic_t" >&5
21477 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21478 test "$cf_cv_sig_atomic_t" != no &&
21479 cat >>confdefs.h <<EOF
21480 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21483 if test "$NCURSES_CHTYPE" = auto ; then
21485 echo "$as_me:21485: checking for type of chtype" >&5
21486 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21487 if test "${cf_cv_typeof_chtype+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 if test "$cross_compiling" = yes; then
21492 cf_cv_typeof_chtype=long
21494 cat >"conftest.$ac_ext" <<_ACEOF
21495 #line 21495 "configure"
21496 #include "confdefs.h"
21498 $ac_includes_default
21499 #define WANT_BITS 31
21502 FILE *fp = fopen("cf_test.out", "w");
21504 char *result = "long";
21505 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21508 for (n = 0; n < WANT_BITS; n++) {
21511 if (y != 1 || x == 0) {
21517 * If x is nonzero, an int is big enough for the bits
21520 result = (x != 0) ? "int" : "long";
21525 ${cf_cv_main_return:-return}(0);
21529 rm -f "conftest$ac_exeext"
21530 if { (eval echo "$as_me:21530: \"$ac_link\"") >&5
21531 (eval $ac_link) 2>&5
21533 echo "$as_me:21533: \$? = $ac_status" >&5
21534 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21535 { (eval echo "$as_me:21535: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 echo "$as_me:21538: \$? = $ac_status" >&5
21539 (exit "$ac_status"); }; }; then
21540 cf_cv_typeof_chtype=`cat cf_test.out`
21542 echo "$as_me: program exited with status $ac_status" >&5
21543 echo "$as_me: failed program was:" >&5
21544 cat "conftest.$ac_ext" >&5
21545 cf_cv_typeof_chtype=long
21547 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21553 echo "$as_me:21553: result: $cf_cv_typeof_chtype" >&5
21554 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21556 cat >>confdefs.h <<EOF
21557 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21561 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21563 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21565 echo "$as_me:21565: checking if unsigned literals are legal" >&5
21566 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21567 if test "${cf_cv_unsigned_literals+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 cat >"conftest.$ac_ext" <<_ACEOF
21572 #line 21572 "configure"
21573 #include "confdefs.h"
21578 long x = 1L + 1UL + 1U + 1; (void)x
21583 rm -f "conftest.$ac_objext"
21584 if { (eval echo "$as_me:21584: \"$ac_compile\"") >&5
21585 (eval $ac_compile) 2>&5
21587 echo "$as_me:21587: \$? = $ac_status" >&5
21588 (exit "$ac_status"); } &&
21589 { ac_try='test -s "conftest.$ac_objext"'
21590 { (eval echo "$as_me:21590: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21593 echo "$as_me:21593: \$? = $ac_status" >&5
21594 (exit "$ac_status"); }; }; then
21595 cf_cv_unsigned_literals=yes
21597 echo "$as_me: failed program was:" >&5
21598 cat "conftest.$ac_ext" >&5
21599 cf_cv_unsigned_literals=no
21601 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21605 echo "$as_me:21605: result: $cf_cv_unsigned_literals" >&5
21606 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21609 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21610 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21612 if test "$NCURSES_MMASK_T" = auto ; then
21613 cf_cv_typeof_mmask_t=long
21615 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21617 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21619 ### Checks for external-data
21621 echo "$as_me:21621: checking if external errno is declared" >&5
21622 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21623 if test "${cf_cv_dcl_errno+set}" = set; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 cat >"conftest.$ac_ext" <<_ACEOF
21628 #line 21628 "configure"
21629 #include "confdefs.h"
21631 $ac_includes_default
21636 int x = (int) errno; (void)x
21641 rm -f "conftest.$ac_objext"
21642 if { (eval echo "$as_me:21642: \"$ac_compile\"") >&5
21643 (eval $ac_compile) 2>&5
21645 echo "$as_me:21645: \$? = $ac_status" >&5
21646 (exit "$ac_status"); } &&
21647 { ac_try='test -s "conftest.$ac_objext"'
21648 { (eval echo "$as_me:21648: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21651 echo "$as_me:21651: \$? = $ac_status" >&5
21652 (exit "$ac_status"); }; }; then
21653 cf_cv_dcl_errno=yes
21655 echo "$as_me: failed program was:" >&5
21656 cat "conftest.$ac_ext" >&5
21659 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21662 echo "$as_me:21662: result: $cf_cv_dcl_errno" >&5
21663 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21665 if test "$cf_cv_dcl_errno" = no ; then
21667 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21669 cat >>confdefs.h <<EOF
21670 #define $cf_result 1
21675 # It's possible (for near-UNIX clones) that the data doesn't exist
21677 echo "$as_me:21677: checking if external errno exists" >&5
21678 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21679 if test "${cf_cv_have_errno+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 cat >"conftest.$ac_ext" <<_ACEOF
21684 #line 21684 "configure"
21685 #include "confdefs.h"
21698 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21699 if { (eval echo "$as_me:21699: \"$ac_link\"") >&5
21700 (eval $ac_link) 2>&5
21702 echo "$as_me:21702: \$? = $ac_status" >&5
21703 (exit "$ac_status"); } &&
21704 { ac_try='test -s "conftest$ac_exeext"'
21705 { (eval echo "$as_me:21705: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21708 echo "$as_me:21708: \$? = $ac_status" >&5
21709 (exit "$ac_status"); }; }; then
21710 cf_cv_have_errno=yes
21712 echo "$as_me: failed program was:" >&5
21713 cat "conftest.$ac_ext" >&5
21714 cf_cv_have_errno=no
21716 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21719 echo "$as_me:21719: result: $cf_cv_have_errno" >&5
21720 echo "${ECHO_T}$cf_cv_have_errno" >&6
21722 if test "$cf_cv_have_errno" = yes ; then
21724 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21726 cat >>confdefs.h <<EOF
21727 #define $cf_result 1
21732 echo "$as_me:21732: checking if data-only library module links" >&5
21733 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21734 if test "${cf_cv_link_dataonly+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 cat >conftest.$ac_ext <<EOF
21740 #line 21740 "configure"
21741 int testdata[3] = { 123, 456, 789 };
21743 if { (eval echo "$as_me:21743: \"$ac_compile\"") >&5
21744 (eval $ac_compile) 2>&5
21746 echo "$as_me:21746: \$? = $ac_status" >&5
21747 (exit "$ac_status"); } ; then
21748 mv conftest.o data.o && \
21749 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21751 rm -f conftest.$ac_ext data.o
21752 cat >conftest.$ac_ext <<EOF
21753 #line 21753 "configure"
21754 extern int testfunc(void);
21758 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21761 extern int testdata[3];
21764 return testdata[0] == 123
21765 && testdata[1] == 456
21766 && testdata[2] == 789;
21770 if { (eval echo "$as_me:21770: \"$ac_compile\"") >&5
21771 (eval $ac_compile) 2>&5
21773 echo "$as_me:21773: \$? = $ac_status" >&5
21774 (exit "$ac_status"); }; then
21775 mv conftest.o func.o && \
21776 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21778 rm -f conftest.$ac_ext func.o
21779 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21780 cf_saveLIBS="$LIBS"
21781 LIBS="conftest.a $LIBS"
21782 if test "$cross_compiling" = yes; then
21783 cf_cv_link_dataonly=unknown
21785 cat >"conftest.$ac_ext" <<_ACEOF
21786 #line 21786 "configure"
21787 #include "confdefs.h"
21789 extern int testfunc(void);
21792 ${cf_cv_main_return:-return} (!testfunc());
21796 rm -f "conftest$ac_exeext"
21797 if { (eval echo "$as_me:21797: \"$ac_link\"") >&5
21798 (eval $ac_link) 2>&5
21800 echo "$as_me:21800: \$? = $ac_status" >&5
21801 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21802 { (eval echo "$as_me:21802: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21805 echo "$as_me:21805: \$? = $ac_status" >&5
21806 (exit "$ac_status"); }; }; then
21807 cf_cv_link_dataonly=yes
21809 echo "$as_me: program exited with status $ac_status" >&5
21810 echo "$as_me: failed program was:" >&5
21811 cat "conftest.$ac_ext" >&5
21812 cf_cv_link_dataonly=no
21814 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21816 LIBS="$cf_saveLIBS"
21820 echo "$as_me:21820: result: $cf_cv_link_dataonly" >&5
21821 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21823 if test "$cf_cv_link_dataonly" = no ; then
21825 cat >>confdefs.h <<\EOF
21826 #define BROKEN_LINKER 1
21832 ### Checks for library functions.
21834 cf_save_libs="$LIBS"
21835 echo "$as_me:21835: checking for clock_gettime" >&5
21836 echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
21837 if test "${ac_cv_func_clock_gettime+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 cat >"conftest.$ac_ext" <<_ACEOF
21841 #line 21841 "configure"
21842 #include "confdefs.h"
21843 #define clock_gettime autoconf_temporary
21844 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21845 #undef clock_gettime
21851 /* We use char because int might match the return type of a gcc2
21852 builtin and then its argument prototype would still apply. */
21853 char clock_gettime (void);
21859 /* The GNU C library defines stubs for functions which it implements
21860 to always fail with ENOSYS. Some functions are actually named
21861 something starting with __ and the normal name is an alias. */
21862 #if defined (__stub_clock_gettime) || defined (__stub___clock_gettime)
21863 #error found stub for clock_gettime
21866 return clock_gettime ();
21871 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21872 if { (eval echo "$as_me:21872: \"$ac_link\"") >&5
21873 (eval $ac_link) 2>&5
21875 echo "$as_me:21875: \$? = $ac_status" >&5
21876 (exit "$ac_status"); } &&
21877 { ac_try='test -s "conftest$ac_exeext"'
21878 { (eval echo "$as_me:21878: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21881 echo "$as_me:21881: \$? = $ac_status" >&5
21882 (exit "$ac_status"); }; }; then
21883 ac_cv_func_clock_gettime=yes
21885 echo "$as_me: failed program was:" >&5
21886 cat "conftest.$ac_ext" >&5
21887 ac_cv_func_clock_gettime=no
21889 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21891 echo "$as_me:21891: result: $ac_cv_func_clock_gettime" >&5
21892 echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6
21893 if test "$ac_cv_func_clock_gettime" = yes; then
21894 cf_cv_test_clock_gettime=yes
21896 echo "$as_me:21896: checking for clock_gettime in -lrt" >&5
21897 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
21898 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21901 ac_check_lib_save_LIBS=$LIBS
21903 cat >"conftest.$ac_ext" <<_ACEOF
21904 #line 21904 "configure"
21905 #include "confdefs.h"
21907 /* Override any gcc2 internal prototype to avoid an error. */
21911 /* We use char because int might match the return type of a gcc2
21912 builtin and then its argument prototype would still apply. */
21913 char clock_gettime (void);
21922 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21923 if { (eval echo "$as_me:21923: \"$ac_link\"") >&5
21924 (eval $ac_link) 2>&5
21926 echo "$as_me:21926: \$? = $ac_status" >&5
21927 (exit "$ac_status"); } &&
21928 { ac_try='test -s "conftest$ac_exeext"'
21929 { (eval echo "$as_me:21929: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21932 echo "$as_me:21932: \$? = $ac_status" >&5
21933 (exit "$ac_status"); }; }; then
21934 ac_cv_lib_rt_clock_gettime=yes
21936 echo "$as_me: failed program was:" >&5
21937 cat "conftest.$ac_ext" >&5
21938 ac_cv_lib_rt_clock_gettime=no
21940 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21941 LIBS=$ac_check_lib_save_LIBS
21943 echo "$as_me:21943: result: $ac_cv_lib_rt_clock_gettime" >&5
21944 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
21945 if test "$ac_cv_lib_rt_clock_gettime" = yes; then
21947 cf_cv_test_clock_gettime=yes
21949 cf_cv_test_clock_gettime=no
21954 if test "$cf_cv_test_clock_gettime" = yes ; then
21955 echo "$as_me:21955: checking if clock_gettime links" >&5
21956 echo $ECHO_N "checking if clock_gettime links... $ECHO_C" >&6
21957 if test "${cf_cv_func_clock_gettime+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 cat >"conftest.$ac_ext" <<_ACEOF
21962 #line 21962 "configure"
21963 #include "confdefs.h"
21965 $ac_includes_default
21971 struct timespec ts;
21972 int rc = clock_gettime(CLOCK_REALTIME, &ts)
21973 + clock_gettime(CLOCK_MONOTONIC, &ts);
21974 (void) rc; (void)ts
21979 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21980 if { (eval echo "$as_me:21980: \"$ac_link\"") >&5
21981 (eval $ac_link) 2>&5
21983 echo "$as_me:21983: \$? = $ac_status" >&5
21984 (exit "$ac_status"); } &&
21985 { ac_try='test -s "conftest$ac_exeext"'
21986 { (eval echo "$as_me:21986: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21989 echo "$as_me:21989: \$? = $ac_status" >&5
21990 (exit "$ac_status"); }; }; then
21991 cf_cv_func_clock_gettime=yes
21993 echo "$as_me: failed program was:" >&5
21994 cat "conftest.$ac_ext" >&5
21995 cf_cv_func_clock_gettime=no
21997 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22000 echo "$as_me:22000: result: $cf_cv_func_clock_gettime" >&5
22001 echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6
22003 cf_cv_func_clock_gettime=no
22006 if test "$cf_cv_func_clock_gettime" = yes
22009 cat >>confdefs.h <<\EOF
22010 #define HAVE_CLOCK_GETTIME 1
22014 echo "$as_me:22014: checking for gettimeofday" >&5
22015 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
22016 if test "${ac_cv_func_gettimeofday+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 cat >"conftest.$ac_ext" <<_ACEOF
22020 #line 22020 "configure"
22021 #include "confdefs.h"
22022 #define gettimeofday autoconf_temporary
22023 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22024 #undef gettimeofday
22030 /* We use char because int might match the return type of a gcc2
22031 builtin and then its argument prototype would still apply. */
22032 char gettimeofday (void);
22038 /* The GNU C library defines stubs for functions which it implements
22039 to always fail with ENOSYS. Some functions are actually named
22040 something starting with __ and the normal name is an alias. */
22041 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
22042 #error found stub for gettimeofday
22045 return gettimeofday ();
22050 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22051 if { (eval echo "$as_me:22051: \"$ac_link\"") >&5
22052 (eval $ac_link) 2>&5
22054 echo "$as_me:22054: \$? = $ac_status" >&5
22055 (exit "$ac_status"); } &&
22056 { ac_try='test -s "conftest$ac_exeext"'
22057 { (eval echo "$as_me:22057: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22060 echo "$as_me:22060: \$? = $ac_status" >&5
22061 (exit "$ac_status"); }; }; then
22062 ac_cv_func_gettimeofday=yes
22064 echo "$as_me: failed program was:" >&5
22065 cat "conftest.$ac_ext" >&5
22066 ac_cv_func_gettimeofday=no
22068 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22070 echo "$as_me:22070: result: $ac_cv_func_gettimeofday" >&5
22071 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
22072 if test "$ac_cv_func_gettimeofday" = yes; then
22074 cat >>confdefs.h <<\EOF
22075 #define HAVE_GETTIMEOFDAY 1
22080 echo "$as_me:22080: checking for gettimeofday in -lbsd" >&5
22081 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
22082 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 ac_check_lib_save_LIBS=$LIBS
22087 cat >"conftest.$ac_ext" <<_ACEOF
22088 #line 22088 "configure"
22089 #include "confdefs.h"
22091 /* Override any gcc2 internal prototype to avoid an error. */
22095 /* We use char because int might match the return type of a gcc2
22096 builtin and then its argument prototype would still apply. */
22097 char gettimeofday (void);
22106 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22107 if { (eval echo "$as_me:22107: \"$ac_link\"") >&5
22108 (eval $ac_link) 2>&5
22110 echo "$as_me:22110: \$? = $ac_status" >&5
22111 (exit "$ac_status"); } &&
22112 { ac_try='test -s "conftest$ac_exeext"'
22113 { (eval echo "$as_me:22113: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:22116: \$? = $ac_status" >&5
22117 (exit "$ac_status"); }; }; then
22118 ac_cv_lib_bsd_gettimeofday=yes
22120 echo "$as_me: failed program was:" >&5
22121 cat "conftest.$ac_ext" >&5
22122 ac_cv_lib_bsd_gettimeofday=no
22124 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22125 LIBS=$ac_check_lib_save_LIBS
22127 echo "$as_me:22127: result: $ac_cv_lib_bsd_gettimeofday" >&5
22128 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
22129 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
22131 cat >>confdefs.h <<\EOF
22132 #define HAVE_GETTIMEOFDAY 1
22135 cf_add_libs="$LIBS"
22138 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22139 # filter duplicates
22140 for cf_add_1lib in $cf_add_0lib; do
22141 for cf_add_2lib in $cf_add_libs; do
22142 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22147 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22149 LIBS="$cf_add_libs"
22185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22186 echo "$as_me:22186: checking for $ac_func" >&5
22187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22188 if eval "test \"\${$as_ac_var+set}\" = set"; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22191 cat >"conftest.$ac_ext" <<_ACEOF
22192 #line 22192 "configure"
22193 #include "confdefs.h"
22194 #define $ac_func autoconf_temporary
22195 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22202 /* We use char because int might match the return type of a gcc2
22203 builtin and then its argument prototype would still apply. */
22204 char $ac_func (void);
22210 /* The GNU C library defines stubs for functions which it implements
22211 to always fail with ENOSYS. Some functions are actually named
22212 something starting with __ and the normal name is an alias. */
22213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22214 #error found stub for $ac_func
22217 return $ac_func ();
22222 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22223 if { (eval echo "$as_me:22223: \"$ac_link\"") >&5
22224 (eval $ac_link) 2>&5
22226 echo "$as_me:22226: \$? = $ac_status" >&5
22227 (exit "$ac_status"); } &&
22228 { ac_try='test -s "conftest$ac_exeext"'
22229 { (eval echo "$as_me:22229: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22232 echo "$as_me:22232: \$? = $ac_status" >&5
22233 (exit "$ac_status"); }; }; then
22234 eval "$as_ac_var=yes"
22236 echo "$as_me: failed program was:" >&5
22237 cat "conftest.$ac_ext" >&5
22238 eval "$as_ac_var=no"
22240 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22242 echo "$as_me:22242: result: `eval echo '${'"$as_ac_var"'}'`" >&5
22243 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
22244 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
22245 cat >>confdefs.h <<EOF
22246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22252 echo "$as_me:22252: checking if _PATH_TTYS is defined in ttyent.h" >&5
22253 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
22254 if test "${cf_cv_PATH_TTYS+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 cat >"conftest.$ac_ext" <<_ACEOF
22259 #line 22259 "configure"
22260 #include "confdefs.h"
22263 #include <ttyent.h>
22268 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
22273 rm -f "conftest.$ac_objext"
22274 if { (eval echo "$as_me:22274: \"$ac_compile\"") >&5
22275 (eval $ac_compile) 2>&5
22277 echo "$as_me:22277: \$? = $ac_status" >&5
22278 (exit "$ac_status"); } &&
22279 { ac_try='test -s "conftest.$ac_objext"'
22280 { (eval echo "$as_me:22280: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22283 echo "$as_me:22283: \$? = $ac_status" >&5
22284 (exit "$ac_status"); }; }; then
22285 cf_cv_PATH_TTYS=yes
22287 echo "$as_me: failed program was:" >&5
22288 cat "conftest.$ac_ext" >&5
22291 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22293 echo "$as_me:22293: result: $cf_cv_PATH_TTYS" >&5
22294 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
22296 if test $cf_cv_PATH_TTYS = no
22298 for cf_ttys in /etc/ttytype /etc/ttys
22300 if test -f $cf_ttys
22302 cf_cv_PATH_TTYS=maybe
22304 cat >>confdefs.h <<\EOF
22305 #define _PATH_TTYS $cf_ttys
22313 if test $cf_cv_PATH_TTYS != no
22315 echo "$as_me:22315: checking if _PATH_TTYS file exists" >&5
22316 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
22317 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 if test "$cross_compiling" = yes; then
22322 cf_cv_have_PATH_TTYS=unknown
22324 cat >"conftest.$ac_ext" <<_ACEOF
22325 #line 22325 "configure"
22326 #include "confdefs.h"
22328 $ac_includes_default
22330 #include <ttyent.h>
22333 FILE *fp = fopen(_PATH_TTYS, "r");
22334 ${cf_cv_main_return:-return} (fp == 0);
22337 rm -f "conftest$ac_exeext"
22338 if { (eval echo "$as_me:22338: \"$ac_link\"") >&5
22339 (eval $ac_link) 2>&5
22341 echo "$as_me:22341: \$? = $ac_status" >&5
22342 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22343 { (eval echo "$as_me:22343: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22346 echo "$as_me:22346: \$? = $ac_status" >&5
22347 (exit "$ac_status"); }; }; then
22348 cf_cv_have_PATH_TTYS=yes
22350 echo "$as_me: program exited with status $ac_status" >&5
22351 echo "$as_me: failed program was:" >&5
22352 cat "conftest.$ac_ext" >&5
22353 cf_cv_have_PATH_TTYS=no
22355 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22358 echo "$as_me:22358: result: $cf_cv_have_PATH_TTYS" >&5
22359 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
22360 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
22363 if test $cf_cv_PATH_TTYS != no
22366 cat >>confdefs.h <<\EOF
22367 #define HAVE_PATH_TTYS 1
22370 echo "$as_me:22370: checking for getttynam" >&5
22371 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
22372 if test "${cf_cv_func_getttynam+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 cat >"conftest.$ac_ext" <<_ACEOF
22377 #line 22377 "configure"
22378 #include "confdefs.h"
22379 #include <ttyent.h>
22383 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
22388 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22389 if { (eval echo "$as_me:22389: \"$ac_link\"") >&5
22390 (eval $ac_link) 2>&5
22392 echo "$as_me:22392: \$? = $ac_status" >&5
22393 (exit "$ac_status"); } &&
22394 { ac_try='test -s "conftest$ac_exeext"'
22395 { (eval echo "$as_me:22395: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22398 echo "$as_me:22398: \$? = $ac_status" >&5
22399 (exit "$ac_status"); }; }; then
22400 cf_cv_func_getttynam=yes
22402 echo "$as_me: failed program was:" >&5
22403 cat "conftest.$ac_ext" >&5
22404 cf_cv_func_getttynam=no
22406 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22408 echo "$as_me:22408: result: $cf_cv_func_getttynam" >&5
22409 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
22410 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
22411 #define HAVE_GETTTYNAM 1
22416 if test "x$ac_cv_func_getopt" = xno && \
22417 test "x$cf_with_progs$cf_with_tests" != xnono; then
22418 { { echo "$as_me:22418: error: getopt is required for building programs" >&5
22419 echo "$as_me: error: getopt is required for building programs" >&2;}
22420 { (exit 1); exit 1; }; }
22423 if test "x$with_safe_sprintf" = xyes
22425 if test "x$ac_cv_func_vsnprintf" = xyes
22427 { echo "$as_me:22427: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
22428 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
22431 cat >>confdefs.h <<\EOF
22432 #define USE_SAFE_SPRINTF 1
22438 if test "x$with_getcap" = "xyes" ; then
22440 echo "$as_me:22440: checking for terminal-capability database functions" >&5
22441 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
22442 if test "${cf_cv_cgetent+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 cat >"conftest.$ac_ext" <<_ACEOF
22447 #line 22447 "configure"
22448 #include "confdefs.h"
22450 $ac_includes_default
22457 char *db_array = temp;
22458 cgetent(&buf, &db_array, "vt100");
22459 cgetcap(buf, "tc", '=');
22460 cgetmatch(buf, "tc");
22466 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22467 if { (eval echo "$as_me:22467: \"$ac_link\"") >&5
22468 (eval $ac_link) 2>&5
22470 echo "$as_me:22470: \$? = $ac_status" >&5
22471 (exit "$ac_status"); } &&
22472 { ac_try='test -s "conftest$ac_exeext"'
22473 { (eval echo "$as_me:22473: \"$ac_try\"") >&5
22474 (eval $ac_try) 2>&5
22476 echo "$as_me:22476: \$? = $ac_status" >&5
22477 (exit "$ac_status"); }; }; then
22480 echo "$as_me: failed program was:" >&5
22481 cat "conftest.$ac_ext" >&5
22484 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22487 echo "$as_me:22487: result: $cf_cv_cgetent" >&5
22488 echo "${ECHO_T}$cf_cv_cgetent" >&6
22490 if test "$cf_cv_cgetent" = yes
22493 cat >>confdefs.h <<\EOF
22494 #define HAVE_BSD_CGETENT 1
22497 echo "$as_me:22497: checking if cgetent uses const parameter" >&5
22498 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
22499 if test "${cf_cv_cgetent_const+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 cat >"conftest.$ac_ext" <<_ACEOF
22504 #line 22504 "configure"
22505 #include "confdefs.h"
22507 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
22508 $ac_includes_default
22515 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
22516 const char *db_array = temp;
22517 cgetent(&buf, &db_array, "vt100");
22519 cgetcap(buf, "tc", '=');
22520 cgetmatch(buf, "tc");
22526 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22527 if { (eval echo "$as_me:22527: \"$ac_link\"") >&5
22528 (eval $ac_link) 2>&5
22530 echo "$as_me:22530: \$? = $ac_status" >&5
22531 (exit "$ac_status"); } &&
22532 { ac_try='test -s "conftest$ac_exeext"'
22533 { (eval echo "$as_me:22533: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:22536: \$? = $ac_status" >&5
22537 (exit "$ac_status"); }; }; then
22538 cf_cv_cgetent_const=yes
22540 echo "$as_me: failed program was:" >&5
22541 cat "conftest.$ac_ext" >&5
22542 cf_cv_cgetent_const=no
22544 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22547 echo "$as_me:22547: result: $cf_cv_cgetent_const" >&5
22548 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
22549 if test "$cf_cv_cgetent_const" = yes
22552 cat >>confdefs.h <<EOF
22553 #define CGETENT_CONST const
22561 echo "$as_me:22561: checking for isascii" >&5
22562 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
22563 if test "${cf_cv_have_isascii+set}" = set; then
22564 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 cat >"conftest.$ac_ext" <<_ACEOF
22568 #line 22568 "configure"
22569 #include "confdefs.h"
22574 int x = isascii(' '); (void)x
22579 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22580 if { (eval echo "$as_me:22580: \"$ac_link\"") >&5
22581 (eval $ac_link) 2>&5
22583 echo "$as_me:22583: \$? = $ac_status" >&5
22584 (exit "$ac_status"); } &&
22585 { ac_try='test -s "conftest$ac_exeext"'
22586 { (eval echo "$as_me:22586: \"$ac_try\"") >&5
22587 (eval $ac_try) 2>&5
22589 echo "$as_me:22589: \$? = $ac_status" >&5
22590 (exit "$ac_status"); }; }; then
22591 cf_cv_have_isascii=yes
22593 echo "$as_me: failed program was:" >&5
22594 cat "conftest.$ac_ext" >&5
22595 cf_cv_have_isascii=no
22597 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22600 echo "$as_me:22600: result: $cf_cv_have_isascii" >&5
22601 echo "${ECHO_T}$cf_cv_have_isascii" >&6
22602 test "$cf_cv_have_isascii" = yes &&
22603 cat >>confdefs.h <<\EOF
22604 #define HAVE_ISASCII 1
22607 if test "$ac_cv_func_sigaction" = yes; then
22608 echo "$as_me:22608: checking whether sigaction needs _POSIX_SOURCE" >&5
22609 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
22610 cat >"conftest.$ac_ext" <<_ACEOF
22611 #line 22611 "configure"
22612 #include "confdefs.h"
22614 #include <sys/types.h>
22615 #include <signal.h>
22619 struct sigaction act; (void)act
22624 rm -f "conftest.$ac_objext"
22625 if { (eval echo "$as_me:22625: \"$ac_compile\"") >&5
22626 (eval $ac_compile) 2>&5
22628 echo "$as_me:22628: \$? = $ac_status" >&5
22629 (exit "$ac_status"); } &&
22630 { ac_try='test -s "conftest.$ac_objext"'
22631 { (eval echo "$as_me:22631: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22634 echo "$as_me:22634: \$? = $ac_status" >&5
22635 (exit "$ac_status"); }; }; then
22638 echo "$as_me: failed program was:" >&5
22639 cat "conftest.$ac_ext" >&5
22641 cat >"conftest.$ac_ext" <<_ACEOF
22642 #line 22642 "configure"
22643 #include "confdefs.h"
22645 #define _POSIX_SOURCE
22646 #include <sys/types.h>
22647 #include <signal.h>
22651 struct sigaction act; (void)act
22656 rm -f "conftest.$ac_objext"
22657 if { (eval echo "$as_me:22657: \"$ac_compile\"") >&5
22658 (eval $ac_compile) 2>&5
22660 echo "$as_me:22660: \$? = $ac_status" >&5
22661 (exit "$ac_status"); } &&
22662 { ac_try='test -s "conftest.$ac_objext"'
22663 { (eval echo "$as_me:22663: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22666 echo "$as_me:22666: \$? = $ac_status" >&5
22667 (exit "$ac_status"); }; }; then
22670 cat >>confdefs.h <<\EOF
22671 #define _POSIX_SOURCE 1
22675 echo "$as_me: failed program was:" >&5
22676 cat "conftest.$ac_ext" >&5
22679 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22681 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22682 echo "$as_me:22682: result: $sigact_bad" >&5
22683 echo "${ECHO_T}$sigact_bad" >&6
22686 echo "$as_me:22686: checking if nanosleep really works" >&5
22687 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
22688 if test "${cf_cv_func_nanosleep+set}" = set; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22692 if test "$cross_compiling" = yes; then
22693 cf_cv_func_nanosleep=unknown
22695 cat >"conftest.$ac_ext" <<_ACEOF
22696 #line 22696 "configure"
22697 #include "confdefs.h"
22699 $ac_includes_default
22704 #ifdef HAVE_SYS_TIME_H
22705 #include <sys/time.h>
22709 struct timespec ts1, ts2;
22712 ts1.tv_nsec = 750000000;
22716 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22717 ${cf_cv_main_return:-return}(code != 0);
22721 rm -f "conftest$ac_exeext"
22722 if { (eval echo "$as_me:22722: \"$ac_link\"") >&5
22723 (eval $ac_link) 2>&5
22725 echo "$as_me:22725: \$? = $ac_status" >&5
22726 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22727 { (eval echo "$as_me:22727: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22730 echo "$as_me:22730: \$? = $ac_status" >&5
22731 (exit "$ac_status"); }; }; then
22732 cf_cv_func_nanosleep=yes
22734 echo "$as_me: program exited with status $ac_status" >&5
22735 echo "$as_me: failed program was:" >&5
22736 cat "conftest.$ac_ext" >&5
22737 cf_cv_func_nanosleep=no
22739 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22742 echo "$as_me:22742: result: $cf_cv_func_nanosleep" >&5
22743 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22745 test "$cf_cv_func_nanosleep" = "yes" &&
22746 cat >>confdefs.h <<\EOF
22747 #define HAVE_NANOSLEEP 1
22758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22759 echo "$as_me:22759: checking for $ac_header" >&5
22760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
22764 cat >"conftest.$ac_ext" <<_ACEOF
22765 #line 22765 "configure"
22766 #include "confdefs.h"
22767 #include <$ac_header>
22769 if { (eval echo "$as_me:22769: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22770 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22772 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22774 cat conftest.err >&5
22775 echo "$as_me:22775: \$? = $ac_status" >&5
22776 (exit "$ac_status"); } >/dev/null; then
22777 if test -s conftest.err; then
22778 ac_cpp_err=$ac_c_preproc_warn_flag
22785 if test -z "$ac_cpp_err"; then
22786 eval "$as_ac_Header=yes"
22788 echo "$as_me: failed program was:" >&5
22789 cat "conftest.$ac_ext" >&5
22790 eval "$as_ac_Header=no"
22792 rm -f conftest.err "conftest.$ac_ext"
22794 echo "$as_me:22794: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22795 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22796 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22797 cat >>confdefs.h <<EOF
22798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22804 if test "$ac_cv_header_termios_h" = yes ; then
22805 case "$CFLAGS $CPPFLAGS" in
22806 (*-D_POSIX_SOURCE*)
22807 termios_bad=dunno ;;
22808 (*) termios_bad=maybe ;;
22810 if test "$termios_bad" = maybe ; then
22811 echo "$as_me:22811: checking whether termios.h needs _POSIX_SOURCE" >&5
22812 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22813 cat >"conftest.$ac_ext" <<_ACEOF
22814 #line 22814 "configure"
22815 #include "confdefs.h"
22816 #include <termios.h>
22820 struct termios foo; int x = (int)(foo.c_iflag = 1); (void)x
22825 rm -f "conftest.$ac_objext"
22826 if { (eval echo "$as_me:22826: \"$ac_compile\"") >&5
22827 (eval $ac_compile) 2>&5
22829 echo "$as_me:22829: \$? = $ac_status" >&5
22830 (exit "$ac_status"); } &&
22831 { ac_try='test -s "conftest.$ac_objext"'
22832 { (eval echo "$as_me:22832: \"$ac_try\"") >&5
22833 (eval $ac_try) 2>&5
22835 echo "$as_me:22835: \$? = $ac_status" >&5
22836 (exit "$ac_status"); }; }; then
22839 echo "$as_me: failed program was:" >&5
22840 cat "conftest.$ac_ext" >&5
22842 cat >"conftest.$ac_ext" <<_ACEOF
22843 #line 22843 "configure"
22844 #include "confdefs.h"
22846 #define _POSIX_SOURCE
22847 #include <termios.h>
22851 struct termios foo; int x = (int)(foo.c_iflag = 2); (void)x
22856 rm -f "conftest.$ac_objext"
22857 if { (eval echo "$as_me:22857: \"$ac_compile\"") >&5
22858 (eval $ac_compile) 2>&5
22860 echo "$as_me:22860: \$? = $ac_status" >&5
22861 (exit "$ac_status"); } &&
22862 { ac_try='test -s "conftest.$ac_objext"'
22863 { (eval echo "$as_me:22863: \"$ac_try\"") >&5
22864 (eval $ac_try) 2>&5
22866 echo "$as_me:22866: \$? = $ac_status" >&5
22867 (exit "$ac_status"); }; }; then
22868 termios_bad=unknown
22870 echo "$as_me: failed program was:" >&5
22871 cat "conftest.$ac_ext" >&5
22873 cat >>confdefs.h <<\EOF
22874 #define _POSIX_SOURCE 1
22878 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22881 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22882 echo "$as_me:22882: result: $termios_bad" >&5
22883 echo "${ECHO_T}$termios_bad" >&6
22887 echo "$as_me:22887: checking for tcgetattr" >&5
22888 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22889 if test "${cf_cv_have_tcgetattr+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22893 cat >"conftest.$ac_ext" <<_ACEOF
22894 #line 22894 "configure"
22895 #include "confdefs.h"
22897 #include <sys/types.h>
22898 #ifdef HAVE_UNISTD_H
22899 #include <unistd.h>
22901 #ifdef HAVE_TERMIOS_H
22902 #include <termios.h>
22903 #define TTY struct termios
22905 #ifdef HAVE_TERMIO_H
22906 #include <termio.h>
22907 #define TTY struct termio
22916 tcgetattr(1, &foo);
22921 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22922 if { (eval echo "$as_me:22922: \"$ac_link\"") >&5
22923 (eval $ac_link) 2>&5
22925 echo "$as_me:22925: \$? = $ac_status" >&5
22926 (exit "$ac_status"); } &&
22927 { ac_try='test -s "conftest$ac_exeext"'
22928 { (eval echo "$as_me:22928: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22931 echo "$as_me:22931: \$? = $ac_status" >&5
22932 (exit "$ac_status"); }; }; then
22933 cf_cv_have_tcgetattr=yes
22935 echo "$as_me: failed program was:" >&5
22936 cat "conftest.$ac_ext" >&5
22937 cf_cv_have_tcgetattr=no
22939 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22941 echo "$as_me:22941: result: $cf_cv_have_tcgetattr" >&5
22942 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22943 test "$cf_cv_have_tcgetattr" = yes &&
22944 cat >>confdefs.h <<\EOF
22945 #define HAVE_TCGETATTR 1
22948 echo "$as_me:22948: checking for vsscanf function or workaround" >&5
22949 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22950 if test "${cf_cv_func_vsscanf+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22954 cat >"conftest.$ac_ext" <<_ACEOF
22955 #line 22955 "configure"
22956 #include "confdefs.h"
22958 #include <stdarg.h>
22962 myfunc(const char *str, const char *fmt, ...)
22966 vsscanf(str, fmt, ap);
22974 myfunc("55", "%d");
22980 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22981 if { (eval echo "$as_me:22981: \"$ac_link\"") >&5
22982 (eval $ac_link) 2>&5
22984 echo "$as_me:22984: \$? = $ac_status" >&5
22985 (exit "$ac_status"); } &&
22986 { ac_try='test -s "conftest$ac_exeext"'
22987 { (eval echo "$as_me:22987: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22990 echo "$as_me:22990: \$? = $ac_status" >&5
22991 (exit "$ac_status"); }; }; then
22992 cf_cv_func_vsscanf=vsscanf
22994 echo "$as_me: failed program was:" >&5
22995 cat "conftest.$ac_ext" >&5
22997 cat >"conftest.$ac_ext" <<_ACEOF
22998 #line 22998 "configure"
22999 #include "confdefs.h"
23001 #include <stdarg.h>
23008 char *str = "from";
23010 strbuf._flag = _IOREAD;
23011 strbuf._ptr = strbuf._base = (unsigned char *) str;
23012 strbuf._cnt = strlen(str);
23013 strbuf._file = _NFILE;
23014 return (vfscanf(&strbuf, "%d", ap))
23019 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23020 if { (eval echo "$as_me:23020: \"$ac_link\"") >&5
23021 (eval $ac_link) 2>&5
23023 echo "$as_me:23023: \$? = $ac_status" >&5
23024 (exit "$ac_status"); } &&
23025 { ac_try='test -s "conftest$ac_exeext"'
23026 { (eval echo "$as_me:23026: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23029 echo "$as_me:23029: \$? = $ac_status" >&5
23030 (exit "$ac_status"); }; }; then
23031 cf_cv_func_vsscanf=vfscanf
23033 echo "$as_me: failed program was:" >&5
23034 cat "conftest.$ac_ext" >&5
23036 cat >"conftest.$ac_ext" <<_ACEOF
23037 #line 23037 "configure"
23038 #include "confdefs.h"
23040 #include <stdarg.h>
23047 char *str = "from";
23049 strbuf._flag = _IOREAD;
23050 strbuf._ptr = strbuf._base = (unsigned char *) str;
23051 strbuf._cnt = strlen(str);
23052 strbuf._file = _NFILE;
23053 return (_doscan(&strbuf, "%d", ap))
23058 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23059 if { (eval echo "$as_me:23059: \"$ac_link\"") >&5
23060 (eval $ac_link) 2>&5
23062 echo "$as_me:23062: \$? = $ac_status" >&5
23063 (exit "$ac_status"); } &&
23064 { ac_try='test -s "conftest$ac_exeext"'
23065 { (eval echo "$as_me:23065: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23068 echo "$as_me:23068: \$? = $ac_status" >&5
23069 (exit "$ac_status"); }; }; then
23070 cf_cv_func_vsscanf=_doscan
23072 echo "$as_me: failed program was:" >&5
23073 cat "conftest.$ac_ext" >&5
23075 cf_cv_func_vsscanf=no
23077 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23079 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23081 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23083 echo "$as_me:23083: result: $cf_cv_func_vsscanf" >&5
23084 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
23086 case "$cf_cv_func_vsscanf" in
23088 cat >>confdefs.h <<\EOF
23089 #define HAVE_VSSCANF 1
23093 cat >>confdefs.h <<\EOF
23094 #define HAVE_VFSCANF 1
23098 cat >>confdefs.h <<\EOF
23099 #define HAVE__DOSCAN 1
23108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23109 echo "$as_me:23109: checking for $ac_header" >&5
23110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23114 cat >"conftest.$ac_ext" <<_ACEOF
23115 #line 23115 "configure"
23116 #include "confdefs.h"
23117 #include <$ac_header>
23119 if { (eval echo "$as_me:23119: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23120 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23122 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23124 cat conftest.err >&5
23125 echo "$as_me:23125: \$? = $ac_status" >&5
23126 (exit "$ac_status"); } >/dev/null; then
23127 if test -s conftest.err; then
23128 ac_cpp_err=$ac_c_preproc_warn_flag
23135 if test -z "$ac_cpp_err"; then
23136 eval "$as_ac_Header=yes"
23138 echo "$as_me: failed program was:" >&5
23139 cat "conftest.$ac_ext" >&5
23140 eval "$as_ac_Header=no"
23142 rm -f conftest.err "conftest.$ac_ext"
23144 echo "$as_me:23144: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23145 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23146 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23147 cat >>confdefs.h <<EOF
23148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23154 echo "$as_me:23154: checking for working mkstemp" >&5
23155 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
23156 if test "${cf_cv_func_mkstemp+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23161 if test "$cross_compiling" = yes; then
23162 cf_cv_func_mkstemp=maybe
23164 cat >"conftest.$ac_ext" <<_ACEOF
23165 #line 23165 "configure"
23166 #include "confdefs.h"
23168 $ac_includes_default
23172 static char tmpl[] = "conftestXXXXXX";
23180 for (n = 0; n < 2; ++n) {
23181 strcpy(name[n], tmpl);
23182 if ((fd = mkstemp(name[n])) >= 0) {
23183 if (!strcmp(name[n], tmpl)
23184 || stat(name[n], &sb) != 0
23185 || (sb.st_mode & S_IFMT) != S_IFREG
23186 || (sb.st_mode & 077) != 0) {
23193 && !strcmp(name[0], name[1]))
23195 ${cf_cv_main_return:-return}(result);
23199 rm -f "conftest$ac_exeext"
23200 if { (eval echo "$as_me:23200: \"$ac_link\"") >&5
23201 (eval $ac_link) 2>&5
23203 echo "$as_me:23203: \$? = $ac_status" >&5
23204 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23205 { (eval echo "$as_me:23205: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23208 echo "$as_me:23208: \$? = $ac_status" >&5
23209 (exit "$ac_status"); }; }; then
23210 cf_cv_func_mkstemp=yes
23213 echo "$as_me: program exited with status $ac_status" >&5
23214 echo "$as_me: failed program was:" >&5
23215 cat "conftest.$ac_ext" >&5
23216 cf_cv_func_mkstemp=no
23219 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23223 echo "$as_me:23223: result: $cf_cv_func_mkstemp" >&5
23224 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
23225 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
23226 echo "$as_me:23226: checking for mkstemp" >&5
23227 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
23228 if test "${ac_cv_func_mkstemp+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23231 cat >"conftest.$ac_ext" <<_ACEOF
23232 #line 23232 "configure"
23233 #include "confdefs.h"
23234 #define mkstemp autoconf_temporary
23235 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23242 /* We use char because int might match the return type of a gcc2
23243 builtin and then its argument prototype would still apply. */
23244 char mkstemp (void);
23250 /* The GNU C library defines stubs for functions which it implements
23251 to always fail with ENOSYS. Some functions are actually named
23252 something starting with __ and the normal name is an alias. */
23253 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
23254 #error found stub for mkstemp
23262 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23263 if { (eval echo "$as_me:23263: \"$ac_link\"") >&5
23264 (eval $ac_link) 2>&5
23266 echo "$as_me:23266: \$? = $ac_status" >&5
23267 (exit "$ac_status"); } &&
23268 { ac_try='test -s "conftest$ac_exeext"'
23269 { (eval echo "$as_me:23269: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:23272: \$? = $ac_status" >&5
23273 (exit "$ac_status"); }; }; then
23274 ac_cv_func_mkstemp=yes
23276 echo "$as_me: failed program was:" >&5
23277 cat "conftest.$ac_ext" >&5
23278 ac_cv_func_mkstemp=no
23280 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23282 echo "$as_me:23282: result: $ac_cv_func_mkstemp" >&5
23283 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
23286 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
23288 cat >>confdefs.h <<\EOF
23289 #define HAVE_MKSTEMP 1
23294 # setup for prototype of fallback for vsscanf()
23296 if test "$cf_cv_func_vsscanf" = vsscanf ; then
23302 if test "x$cross_compiling" = xyes ; then
23303 { echo "$as_me:23303: WARNING: cross compiling: assume setvbuf params not reversed" >&5
23304 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
23306 echo "$as_me:23306: checking whether setvbuf arguments are reversed" >&5
23307 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
23308 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 if test "$cross_compiling" = yes; then
23312 { { echo "$as_me:23312: error: cannot run test program while cross compiling" >&5
23313 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
23314 { (exit 1); exit 1; }; }
23316 cat >"conftest.$ac_ext" <<_ACEOF
23317 #line 23317 "configure"
23318 #include "confdefs.h"
23320 /* If setvbuf has the reversed format, exit 0. */
23324 /* This call has the arguments reversed.
23325 A reversed system may check and see that the address of main
23326 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
23327 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
23328 $ac_main_return(1);
23329 putc('\r', stdout);
23330 $ac_main_return(0); /* Non-reversed systems segv here. */
23333 rm -f "conftest$ac_exeext"
23334 if { (eval echo "$as_me:23334: \"$ac_link\"") >&5
23335 (eval $ac_link) 2>&5
23337 echo "$as_me:23337: \$? = $ac_status" >&5
23338 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23339 { (eval echo "$as_me:23339: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:23342: \$? = $ac_status" >&5
23343 (exit "$ac_status"); }; }; then
23344 ac_cv_func_setvbuf_reversed=yes
23346 echo "$as_me: program exited with status $ac_status" >&5
23347 echo "$as_me: failed program was:" >&5
23348 cat "conftest.$ac_ext" >&5
23349 ac_cv_func_setvbuf_reversed=no
23351 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23353 rm -f core ./core.* ./*.core
23355 echo "$as_me:23355: result: $ac_cv_func_setvbuf_reversed" >&5
23356 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
23357 if test $ac_cv_func_setvbuf_reversed = yes; then
23359 cat >>confdefs.h <<\EOF
23360 #define SETVBUF_REVERSED 1
23366 echo "$as_me:23366: checking for intptr_t" >&5
23367 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
23368 if test "${ac_cv_type_intptr_t+set}" = set; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 cat >"conftest.$ac_ext" <<_ACEOF
23372 #line 23372 "configure"
23373 #include "confdefs.h"
23374 $ac_includes_default
23378 if ((intptr_t *) 0)
23380 if (sizeof (intptr_t))
23386 rm -f "conftest.$ac_objext"
23387 if { (eval echo "$as_me:23387: \"$ac_compile\"") >&5
23388 (eval $ac_compile) 2>&5
23390 echo "$as_me:23390: \$? = $ac_status" >&5
23391 (exit "$ac_status"); } &&
23392 { ac_try='test -s "conftest.$ac_objext"'
23393 { (eval echo "$as_me:23393: \"$ac_try\"") >&5
23394 (eval $ac_try) 2>&5
23396 echo "$as_me:23396: \$? = $ac_status" >&5
23397 (exit "$ac_status"); }; }; then
23398 ac_cv_type_intptr_t=yes
23400 echo "$as_me: failed program was:" >&5
23401 cat "conftest.$ac_ext" >&5
23402 ac_cv_type_intptr_t=no
23404 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23406 echo "$as_me:23406: result: $ac_cv_type_intptr_t" >&5
23407 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
23408 if test "$ac_cv_type_intptr_t" = yes; then
23412 cat >>confdefs.h <<EOF
23413 #define intptr_t long
23418 echo "$as_me:23418: checking for ssize_t" >&5
23419 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
23420 if test "${ac_cv_type_ssize_t+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 cat >"conftest.$ac_ext" <<_ACEOF
23424 #line 23424 "configure"
23425 #include "confdefs.h"
23426 $ac_includes_default
23432 if (sizeof (ssize_t))
23438 rm -f "conftest.$ac_objext"
23439 if { (eval echo "$as_me:23439: \"$ac_compile\"") >&5
23440 (eval $ac_compile) 2>&5
23442 echo "$as_me:23442: \$? = $ac_status" >&5
23443 (exit "$ac_status"); } &&
23444 { ac_try='test -s "conftest.$ac_objext"'
23445 { (eval echo "$as_me:23445: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23448 echo "$as_me:23448: \$? = $ac_status" >&5
23449 (exit "$ac_status"); }; }; then
23450 ac_cv_type_ssize_t=yes
23452 echo "$as_me: failed program was:" >&5
23453 cat "conftest.$ac_ext" >&5
23454 ac_cv_type_ssize_t=no
23456 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23458 echo "$as_me:23458: result: $ac_cv_type_ssize_t" >&5
23459 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
23460 if test "$ac_cv_type_ssize_t" = yes; then
23464 cat >>confdefs.h <<EOF
23465 #define ssize_t int
23470 echo "$as_me:23470: checking for type sigaction_t" >&5
23471 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
23472 if test "${cf_cv_type_sigaction+set}" = set; then
23473 echo $ECHO_N "(cached) $ECHO_C" >&6
23476 cat >"conftest.$ac_ext" <<_ACEOF
23477 #line 23477 "configure"
23478 #include "confdefs.h"
23480 #include <signal.h>
23484 sigaction_t x; (void)x
23489 rm -f "conftest.$ac_objext"
23490 if { (eval echo "$as_me:23490: \"$ac_compile\"") >&5
23491 (eval $ac_compile) 2>&5
23493 echo "$as_me:23493: \$? = $ac_status" >&5
23494 (exit "$ac_status"); } &&
23495 { ac_try='test -s "conftest.$ac_objext"'
23496 { (eval echo "$as_me:23496: \"$ac_try\"") >&5
23497 (eval $ac_try) 2>&5
23499 echo "$as_me:23499: \$? = $ac_status" >&5
23500 (exit "$ac_status"); }; }; then
23501 cf_cv_type_sigaction=yes
23503 echo "$as_me: failed program was:" >&5
23504 cat "conftest.$ac_ext" >&5
23505 cf_cv_type_sigaction=no
23507 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23510 echo "$as_me:23510: result: $cf_cv_type_sigaction" >&5
23511 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
23512 test "$cf_cv_type_sigaction" = yes &&
23513 cat >>confdefs.h <<\EOF
23514 #define HAVE_TYPE_SIGACTION 1
23517 echo "$as_me:23517: checking declaration of size-change" >&5
23518 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
23519 if test "${cf_cv_sizechange+set}" = set; then
23520 echo $ECHO_N "(cached) $ECHO_C" >&6
23523 cf_cv_sizechange=unknown
23524 cf_save_CPPFLAGS="$CPPFLAGS"
23526 for cf_opts in "" "NEED_PTEM_H"
23529 CPPFLAGS="$cf_save_CPPFLAGS"
23530 if test -n "$cf_opts"
23533 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23534 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
23537 cat >"conftest.$ac_ext" <<_ACEOF
23538 #line 23538 "configure"
23539 #include "confdefs.h"
23540 #include <sys/types.h>
23541 #ifdef HAVE_TERMIOS_H
23542 #include <termios.h>
23544 #ifdef HAVE_TERMIO_H
23545 #include <termio.h>
23550 /* This is a workaround for SCO: they neglected to define struct winsize in
23551 * termios.h -- it is only in termio.h and ptem.h
23553 #include <sys/stream.h>
23554 #include <sys/ptem.h>
23557 #ifdef HAVE_SYS_IOCTL_H
23558 #include <sys/ioctl.h>
23566 struct ttysize win; /* SunOS 3.0... */
23567 int y = win.ts_lines = 2;
23568 int x = win.ts_cols = 1;
23573 struct winsize win; /* everything else */
23574 int y = win.ws_row = 2;
23575 int x = win.ws_col = 1;
23579 no TIOCGSIZE or TIOCGWINSZ
23580 #endif /* TIOCGWINSZ */
23581 #endif /* TIOCGSIZE */
23587 rm -f "conftest.$ac_objext"
23588 if { (eval echo "$as_me:23588: \"$ac_compile\"") >&5
23589 (eval $ac_compile) 2>&5
23591 echo "$as_me:23591: \$? = $ac_status" >&5
23592 (exit "$ac_status"); } &&
23593 { ac_try='test -s "conftest.$ac_objext"'
23594 { (eval echo "$as_me:23594: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23597 echo "$as_me:23597: \$? = $ac_status" >&5
23598 (exit "$ac_status"); }; }; then
23599 cf_cv_sizechange=yes
23601 echo "$as_me: failed program was:" >&5
23602 cat "conftest.$ac_ext" >&5
23603 cf_cv_sizechange=no
23605 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23607 CPPFLAGS="$cf_save_CPPFLAGS"
23608 if test "$cf_cv_sizechange" = yes ; then
23609 echo "size-change succeeded ($cf_opts)" >&5
23610 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
23616 echo "$as_me:23616: result: $cf_cv_sizechange" >&5
23617 echo "${ECHO_T}$cf_cv_sizechange" >&6
23618 if test "$cf_cv_sizechange" != no ; then
23620 cat >>confdefs.h <<\EOF
23621 #define HAVE_SIZECHANGE 1
23624 case "$cf_cv_sizechange" in
23626 cat >>confdefs.h <<EOF
23627 #define $cf_cv_sizechange 1
23634 echo "$as_me:23634: checking for memmove" >&5
23635 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
23636 if test "${ac_cv_func_memmove+set}" = set; then
23637 echo $ECHO_N "(cached) $ECHO_C" >&6
23639 cat >"conftest.$ac_ext" <<_ACEOF
23640 #line 23640 "configure"
23641 #include "confdefs.h"
23642 #define memmove autoconf_temporary
23643 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23650 /* We use char because int might match the return type of a gcc2
23651 builtin and then its argument prototype would still apply. */
23652 char memmove (void);
23658 /* The GNU C library defines stubs for functions which it implements
23659 to always fail with ENOSYS. Some functions are actually named
23660 something starting with __ and the normal name is an alias. */
23661 #if defined (__stub_memmove) || defined (__stub___memmove)
23662 #error found stub for memmove
23670 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23671 if { (eval echo "$as_me:23671: \"$ac_link\"") >&5
23672 (eval $ac_link) 2>&5
23674 echo "$as_me:23674: \$? = $ac_status" >&5
23675 (exit "$ac_status"); } &&
23676 { ac_try='test -s "conftest$ac_exeext"'
23677 { (eval echo "$as_me:23677: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23680 echo "$as_me:23680: \$? = $ac_status" >&5
23681 (exit "$ac_status"); }; }; then
23682 ac_cv_func_memmove=yes
23684 echo "$as_me: failed program was:" >&5
23685 cat "conftest.$ac_ext" >&5
23686 ac_cv_func_memmove=no
23688 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23690 echo "$as_me:23690: result: $ac_cv_func_memmove" >&5
23691 echo "${ECHO_T}$ac_cv_func_memmove" >&6
23692 if test "$ac_cv_func_memmove" = yes; then
23696 echo "$as_me:23696: checking for bcopy" >&5
23697 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
23698 if test "${ac_cv_func_bcopy+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 cat >"conftest.$ac_ext" <<_ACEOF
23702 #line 23702 "configure"
23703 #include "confdefs.h"
23704 #define bcopy autoconf_temporary
23705 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23712 /* We use char because int might match the return type of a gcc2
23713 builtin and then its argument prototype would still apply. */
23720 /* The GNU C library defines stubs for functions which it implements
23721 to always fail with ENOSYS. Some functions are actually named
23722 something starting with __ and the normal name is an alias. */
23723 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23724 #error found stub for bcopy
23732 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23733 if { (eval echo "$as_me:23733: \"$ac_link\"") >&5
23734 (eval $ac_link) 2>&5
23736 echo "$as_me:23736: \$? = $ac_status" >&5
23737 (exit "$ac_status"); } &&
23738 { ac_try='test -s "conftest$ac_exeext"'
23739 { (eval echo "$as_me:23739: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:23742: \$? = $ac_status" >&5
23743 (exit "$ac_status"); }; }; then
23744 ac_cv_func_bcopy=yes
23746 echo "$as_me: failed program was:" >&5
23747 cat "conftest.$ac_ext" >&5
23748 ac_cv_func_bcopy=no
23750 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23752 echo "$as_me:23752: result: $ac_cv_func_bcopy" >&5
23753 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23754 if test "$ac_cv_func_bcopy" = yes; then
23756 echo "$as_me:23756: checking if bcopy does overlapping moves" >&5
23757 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23758 if test "${cf_cv_good_bcopy+set}" = set; then
23759 echo $ECHO_N "(cached) $ECHO_C" >&6
23762 if test "$cross_compiling" = yes; then
23763 cf_cv_good_bcopy=unknown
23765 cat >"conftest.$ac_ext" <<_ACEOF
23766 #line 23766 "configure"
23767 #include "confdefs.h"
23769 $ac_includes_default
23772 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23774 bcopy(data, temp, sizeof(data));
23775 bcopy(temp+10, temp, 15);
23776 bcopy(temp+5, temp+15, 10);
23777 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23781 rm -f "conftest$ac_exeext"
23782 if { (eval echo "$as_me:23782: \"$ac_link\"") >&5
23783 (eval $ac_link) 2>&5
23785 echo "$as_me:23785: \$? = $ac_status" >&5
23786 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23787 { (eval echo "$as_me:23787: \"$ac_try\"") >&5
23788 (eval $ac_try) 2>&5
23790 echo "$as_me:23790: \$? = $ac_status" >&5
23791 (exit "$ac_status"); }; }; then
23792 cf_cv_good_bcopy=yes
23794 echo "$as_me: program exited with status $ac_status" >&5
23795 echo "$as_me: failed program was:" >&5
23796 cat "conftest.$ac_ext" >&5
23797 cf_cv_good_bcopy=no
23799 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23803 echo "$as_me:23803: result: $cf_cv_good_bcopy" >&5
23804 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23807 cf_cv_good_bcopy=no
23810 if test "$cf_cv_good_bcopy" = yes ; then
23812 cat >>confdefs.h <<\EOF
23813 #define USE_OK_BCOPY 1
23818 cat >>confdefs.h <<\EOF
23819 #define USE_MY_MEMMOVE 1
23826 tty >/dev/null 2>&1 || {
23827 for ac_func in posix_openpt
23829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23830 echo "$as_me:23830: checking for $ac_func" >&5
23831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23832 if eval "test \"\${$as_ac_var+set}\" = set"; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23835 cat >"conftest.$ac_ext" <<_ACEOF
23836 #line 23836 "configure"
23837 #include "confdefs.h"
23838 #define $ac_func autoconf_temporary
23839 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23846 /* We use char because int might match the return type of a gcc2
23847 builtin and then its argument prototype would still apply. */
23848 char $ac_func (void);
23854 /* The GNU C library defines stubs for functions which it implements
23855 to always fail with ENOSYS. Some functions are actually named
23856 something starting with __ and the normal name is an alias. */
23857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23858 #error found stub for $ac_func
23861 return $ac_func ();
23866 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23867 if { (eval echo "$as_me:23867: \"$ac_link\"") >&5
23868 (eval $ac_link) 2>&5
23870 echo "$as_me:23870: \$? = $ac_status" >&5
23871 (exit "$ac_status"); } &&
23872 { ac_try='test -s "conftest$ac_exeext"'
23873 { (eval echo "$as_me:23873: \"$ac_try\"") >&5
23874 (eval $ac_try) 2>&5
23876 echo "$as_me:23876: \$? = $ac_status" >&5
23877 (exit "$ac_status"); }; }; then
23878 eval "$as_ac_var=yes"
23880 echo "$as_me: failed program was:" >&5
23881 cat "conftest.$ac_ext" >&5
23882 eval "$as_ac_var=no"
23884 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23886 echo "$as_me:23886: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23887 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23888 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23889 cat >>confdefs.h <<EOF
23890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23896 echo "$as_me:23896: checking if poll really works" >&5
23897 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23898 if test "${cf_cv_working_poll+set}" = set; then
23899 echo $ECHO_N "(cached) $ECHO_C" >&6
23902 if test "$cross_compiling" = yes; then
23903 cf_cv_working_poll=unknown
23905 cat >"conftest.$ac_ext" <<_ACEOF
23906 #line 23906 "configure"
23907 #include "confdefs.h"
23909 $ac_includes_default
23916 #include <sys/poll.h>
23920 struct pollfd myfds;
23923 /* check for Darwin bug with respect to "devices" */
23924 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23927 myfds.events = POLLIN;
23930 ret = poll(&myfds, 1, 100);
23932 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23937 fd = open("/dev/tty", 2); /* O_RDWR */
23939 #ifdef HAVE_POSIX_OPENPT
23941 fd = posix_openpt(O_RDWR);
23946 /* also check with standard input */
23948 myfds.events = POLLIN;
23950 ret = poll(&myfds, 1, 100);
23955 ${cf_cv_main_return:-return}(ret < 0);
23958 rm -f "conftest$ac_exeext"
23959 if { (eval echo "$as_me:23959: \"$ac_link\"") >&5
23960 (eval $ac_link) 2>&5
23962 echo "$as_me:23962: \$? = $ac_status" >&5
23963 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23964 { (eval echo "$as_me:23964: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23967 echo "$as_me:23967: \$? = $ac_status" >&5
23968 (exit "$ac_status"); }; }; then
23969 cf_cv_working_poll=yes
23971 echo "$as_me: program exited with status $ac_status" >&5
23972 echo "$as_me: failed program was:" >&5
23973 cat "conftest.$ac_ext" >&5
23974 cf_cv_working_poll=no
23976 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23979 echo "$as_me:23979: result: $cf_cv_working_poll" >&5
23980 echo "${ECHO_T}$cf_cv_working_poll" >&6
23981 test "$cf_cv_working_poll" = "yes" &&
23982 cat >>confdefs.h <<\EOF
23983 #define HAVE_WORKING_POLL 1
23986 echo "$as_me:23986: checking if MB_LEN_MAX is usable" >&5
23987 echo $ECHO_N "checking if MB_LEN_MAX is usable... $ECHO_C" >&6
23988 if test "${cf_cv_mb_len_max+set}" = set; then
23989 echo $ECHO_N "(cached) $ECHO_C" >&6
23992 cat >"conftest.$ac_ext" <<_ACEOF
23993 #line 23993 "configure"
23994 #include "confdefs.h"
23996 $ac_includes_default
23997 #include <limits.h>
24002 #if defined(MB_LEN_MAX) && MB_LEN_MAX >= 6
24003 ${cf_cv_main_return:-return}(0);
24005 #error MB_LEN_MAX is not usable
24012 rm -f "conftest.$ac_objext"
24013 if { (eval echo "$as_me:24013: \"$ac_compile\"") >&5
24014 (eval $ac_compile) 2>&5
24016 echo "$as_me:24016: \$? = $ac_status" >&5
24017 (exit "$ac_status"); } &&
24018 { ac_try='test -s "conftest.$ac_objext"'
24019 { (eval echo "$as_me:24019: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24022 echo "$as_me:24022: \$? = $ac_status" >&5
24023 (exit "$ac_status"); }; }; then
24024 cf_cv_mb_len_max=yes
24026 echo "$as_me: failed program was:" >&5
24027 cat "conftest.$ac_ext" >&5
24028 cf_cv_mb_len_max=no
24030 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24032 echo "$as_me:24032: result: $cf_cv_mb_len_max" >&5
24033 echo "${ECHO_T}$cf_cv_mb_len_max" >&6
24034 if test "$cf_cv_mb_len_max" = yes
24037 cat >>confdefs.h <<\EOF
24038 #define HAVE_CONSISTENT_MB_LEN_MAX 1
24042 { echo "$as_me:24042: WARNING: MB_LEN_MAX is missing/inconsistent in system headers" >&5
24043 echo "$as_me: WARNING: MB_LEN_MAX is missing/inconsistent in system headers" >&2;}
24046 echo "$as_me:24046: checking for va_copy" >&5
24047 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
24048 if test "${cf_cv_have_va_copy+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 cat >"conftest.$ac_ext" <<_ACEOF
24053 #line 24053 "configure"
24054 #include "confdefs.h"
24056 #include <stdarg.h>
24062 static va_list dst;
24063 static va_list src;
24069 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24070 if { (eval echo "$as_me:24070: \"$ac_link\"") >&5
24071 (eval $ac_link) 2>&5
24073 echo "$as_me:24073: \$? = $ac_status" >&5
24074 (exit "$ac_status"); } &&
24075 { ac_try='test -s "conftest$ac_exeext"'
24076 { (eval echo "$as_me:24076: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24079 echo "$as_me:24079: \$? = $ac_status" >&5
24080 (exit "$ac_status"); }; }; then
24081 cf_cv_have_va_copy=yes
24083 echo "$as_me: failed program was:" >&5
24084 cat "conftest.$ac_ext" >&5
24085 cf_cv_have_va_copy=no
24087 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24089 echo "$as_me:24089: result: $cf_cv_have_va_copy" >&5
24090 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
24092 if test "$cf_cv_have_va_copy" = yes;
24095 cat >>confdefs.h <<\EOF
24096 #define HAVE_VA_COPY 1
24099 else # !cf_cv_have_va_copy
24101 echo "$as_me:24101: checking for __va_copy" >&5
24102 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
24103 if test "${cf_cv_have___va_copy+set}" = set; then
24104 echo $ECHO_N "(cached) $ECHO_C" >&6
24107 cat >"conftest.$ac_ext" <<_ACEOF
24108 #line 24108 "configure"
24109 #include "confdefs.h"
24111 #include <stdarg.h>
24117 static va_list dst;
24118 static va_list src;
24119 __va_copy(dst, src)
24124 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24125 if { (eval echo "$as_me:24125: \"$ac_link\"") >&5
24126 (eval $ac_link) 2>&5
24128 echo "$as_me:24128: \$? = $ac_status" >&5
24129 (exit "$ac_status"); } &&
24130 { ac_try='test -s "conftest$ac_exeext"'
24131 { (eval echo "$as_me:24131: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24134 echo "$as_me:24134: \$? = $ac_status" >&5
24135 (exit "$ac_status"); }; }; then
24136 cf_cv_have___va_copy=yes
24138 echo "$as_me: failed program was:" >&5
24139 cat "conftest.$ac_ext" >&5
24140 cf_cv_have___va_copy=no
24142 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24144 echo "$as_me:24144: result: $cf_cv_have___va_copy" >&5
24145 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
24147 if test "$cf_cv_have___va_copy" = yes
24150 cat >>confdefs.h <<\EOF
24151 #define HAVE___VA_COPY 1
24154 else # !cf_cv_have___va_copy
24156 echo "$as_me:24156: checking for __builtin_va_copy" >&5
24157 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
24158 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24162 cat >"conftest.$ac_ext" <<_ACEOF
24163 #line 24163 "configure"
24164 #include "confdefs.h"
24166 #include <stdarg.h>
24172 static va_list dst;
24173 static va_list src;
24174 __builtin_va_copy(dst, src)
24179 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24180 if { (eval echo "$as_me:24180: \"$ac_link\"") >&5
24181 (eval $ac_link) 2>&5
24183 echo "$as_me:24183: \$? = $ac_status" >&5
24184 (exit "$ac_status"); } &&
24185 { ac_try='test -s "conftest$ac_exeext"'
24186 { (eval echo "$as_me:24186: \"$ac_try\"") >&5
24187 (eval $ac_try) 2>&5
24189 echo "$as_me:24189: \$? = $ac_status" >&5
24190 (exit "$ac_status"); }; }; then
24191 cf_cv_have___builtin_va_copy=yes
24193 echo "$as_me: failed program was:" >&5
24194 cat "conftest.$ac_ext" >&5
24195 cf_cv_have___builtin_va_copy=no
24197 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24199 echo "$as_me:24199: result: $cf_cv_have___builtin_va_copy" >&5
24200 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
24202 test "$cf_cv_have___builtin_va_copy" = yes &&
24204 cat >>confdefs.h <<\EOF
24205 #define HAVE___BUILTIN_VA_COPY 1
24208 fi # cf_cv_have___va_copy
24210 fi # cf_cv_have_va_copy
24212 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
24217 echo "$as_me:24217: checking if we can simply copy va_list" >&5
24218 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
24219 if test "${cf_cv_pointer_va_list+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24223 cat >"conftest.$ac_ext" <<_ACEOF
24224 #line 24224 "configure"
24225 #include "confdefs.h"
24227 #include <stdarg.h>
24240 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24241 if { (eval echo "$as_me:24241: \"$ac_link\"") >&5
24242 (eval $ac_link) 2>&5
24244 echo "$as_me:24244: \$? = $ac_status" >&5
24245 (exit "$ac_status"); } &&
24246 { ac_try='test -s "conftest$ac_exeext"'
24247 { (eval echo "$as_me:24247: \"$ac_try\"") >&5
24248 (eval $ac_try) 2>&5
24250 echo "$as_me:24250: \$? = $ac_status" >&5
24251 (exit "$ac_status"); }; }; then
24252 cf_cv_pointer_va_list=yes
24254 echo "$as_me: failed program was:" >&5
24255 cat "conftest.$ac_ext" >&5
24256 cf_cv_pointer_va_list=no
24258 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24260 echo "$as_me:24260: result: $cf_cv_pointer_va_list" >&5
24261 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
24263 if test "$cf_cv_pointer_va_list" = no
24265 echo "$as_me:24265: checking if we can copy va_list indirectly" >&5
24266 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
24267 if test "${cf_cv_array_va_list+set}" = set; then
24268 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 cat >"conftest.$ac_ext" <<_ACEOF
24272 #line 24272 "configure"
24273 #include "confdefs.h"
24275 #include <stdarg.h>
24288 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24289 if { (eval echo "$as_me:24289: \"$ac_link\"") >&5
24290 (eval $ac_link) 2>&5
24292 echo "$as_me:24292: \$? = $ac_status" >&5
24293 (exit "$ac_status"); } &&
24294 { ac_try='test -s "conftest$ac_exeext"'
24295 { (eval echo "$as_me:24295: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24298 echo "$as_me:24298: \$? = $ac_status" >&5
24299 (exit "$ac_status"); }; }; then
24300 cf_cv_array_va_list=yes
24302 echo "$as_me: failed program was:" >&5
24303 cat "conftest.$ac_ext" >&5
24304 cf_cv_array_va_list=no
24306 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24308 echo "$as_me:24308: result: $cf_cv_array_va_list" >&5
24309 echo "${ECHO_T}$cf_cv_array_va_list" >&6
24310 test "$cf_cv_array_va_list" = yes &&
24311 cat >>confdefs.h <<\EOF
24312 #define ARRAY_VA_LIST 1
24319 echo "$as_me:24319: checking for pid_t" >&5
24320 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
24321 if test "${ac_cv_type_pid_t+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24324 cat >"conftest.$ac_ext" <<_ACEOF
24325 #line 24325 "configure"
24326 #include "confdefs.h"
24327 $ac_includes_default
24333 if (sizeof (pid_t))
24339 rm -f "conftest.$ac_objext"
24340 if { (eval echo "$as_me:24340: \"$ac_compile\"") >&5
24341 (eval $ac_compile) 2>&5
24343 echo "$as_me:24343: \$? = $ac_status" >&5
24344 (exit "$ac_status"); } &&
24345 { ac_try='test -s "conftest.$ac_objext"'
24346 { (eval echo "$as_me:24346: \"$ac_try\"") >&5
24347 (eval $ac_try) 2>&5
24349 echo "$as_me:24349: \$? = $ac_status" >&5
24350 (exit "$ac_status"); }; }; then
24351 ac_cv_type_pid_t=yes
24353 echo "$as_me: failed program was:" >&5
24354 cat "conftest.$ac_ext" >&5
24355 ac_cv_type_pid_t=no
24357 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24359 echo "$as_me:24359: result: $ac_cv_type_pid_t" >&5
24360 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
24361 if test "$ac_cv_type_pid_t" = yes; then
24365 cat >>confdefs.h <<EOF
24371 for ac_header in unistd.h vfork.h
24373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24374 echo "$as_me:24374: checking for $ac_header" >&5
24375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24377 echo $ECHO_N "(cached) $ECHO_C" >&6
24379 cat >"conftest.$ac_ext" <<_ACEOF
24380 #line 24380 "configure"
24381 #include "confdefs.h"
24382 #include <$ac_header>
24384 if { (eval echo "$as_me:24384: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24385 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24387 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24389 cat conftest.err >&5
24390 echo "$as_me:24390: \$? = $ac_status" >&5
24391 (exit "$ac_status"); } >/dev/null; then
24392 if test -s conftest.err; then
24393 ac_cpp_err=$ac_c_preproc_warn_flag
24400 if test -z "$ac_cpp_err"; then
24401 eval "$as_ac_Header=yes"
24403 echo "$as_me: failed program was:" >&5
24404 cat "conftest.$ac_ext" >&5
24405 eval "$as_ac_Header=no"
24407 rm -f conftest.err "conftest.$ac_ext"
24409 echo "$as_me:24409: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
24410 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
24411 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
24412 cat >>confdefs.h <<EOF
24413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24419 for ac_func in fork vfork
24421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24422 echo "$as_me:24422: checking for $ac_func" >&5
24423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24424 if eval "test \"\${$as_ac_var+set}\" = set"; then
24425 echo $ECHO_N "(cached) $ECHO_C" >&6
24427 cat >"conftest.$ac_ext" <<_ACEOF
24428 #line 24428 "configure"
24429 #include "confdefs.h"
24430 #define $ac_func autoconf_temporary
24431 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
24438 /* We use char because int might match the return type of a gcc2
24439 builtin and then its argument prototype would still apply. */
24440 char $ac_func (void);
24446 /* The GNU C library defines stubs for functions which it implements
24447 to always fail with ENOSYS. Some functions are actually named
24448 something starting with __ and the normal name is an alias. */
24449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24450 #error found stub for $ac_func
24453 return $ac_func ();
24458 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24459 if { (eval echo "$as_me:24459: \"$ac_link\"") >&5
24460 (eval $ac_link) 2>&5
24462 echo "$as_me:24462: \$? = $ac_status" >&5
24463 (exit "$ac_status"); } &&
24464 { ac_try='test -s "conftest$ac_exeext"'
24465 { (eval echo "$as_me:24465: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24468 echo "$as_me:24468: \$? = $ac_status" >&5
24469 (exit "$ac_status"); }; }; then
24470 eval "$as_ac_var=yes"
24472 echo "$as_me: failed program was:" >&5
24473 cat "conftest.$ac_ext" >&5
24474 eval "$as_ac_var=no"
24476 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24478 echo "$as_me:24478: result: `eval echo '${'"$as_ac_var"'}'`" >&5
24479 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
24480 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
24481 cat >>confdefs.h <<EOF
24482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24488 ac_cv_func_fork_works=$ac_cv_func_fork
24489 if test "x$ac_cv_func_fork" = xyes; then
24490 echo "$as_me:24490: checking for working fork" >&5
24491 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
24492 if test "${ac_cv_func_fork_works+set}" = set; then
24493 echo $ECHO_N "(cached) $ECHO_C" >&6
24495 if test "$cross_compiling" = yes; then
24496 ac_cv_func_fork_works=cross
24498 cat >"conftest.$ac_ext" <<_ACEOF
24499 /* By Rüdiger Kuhlmann. */
24500 #include <sys/types.h>
24502 # include <unistd.h>
24504 /* Some systems only have a dummy stub for fork() */
24508 $ac_main_return (1);
24509 $ac_main_return (0);
24512 rm -f "conftest$ac_exeext"
24513 if { (eval echo "$as_me:24513: \"$ac_link\"") >&5
24514 (eval $ac_link) 2>&5
24516 echo "$as_me:24516: \$? = $ac_status" >&5
24517 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24518 { (eval echo "$as_me:24518: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24521 echo "$as_me:24521: \$? = $ac_status" >&5
24522 (exit "$ac_status"); }; }; then
24523 ac_cv_func_fork_works=yes
24525 echo "$as_me: program exited with status $ac_status" >&5
24526 echo "$as_me: failed program was:" >&5
24527 cat "conftest.$ac_ext" >&5
24528 ac_cv_func_fork_works=no
24530 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24533 echo "$as_me:24533: result: $ac_cv_func_fork_works" >&5
24534 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
24537 if test "x$ac_cv_func_fork_works" = xcross; then
24539 *-*-amigaos* | *-*-msdosdjgpp*)
24540 # Override, as these systems have only a dummy fork() stub
24541 ac_cv_func_fork_works=no
24544 ac_cv_func_fork_works=yes
24547 { echo "$as_me:24547: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
24548 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
24550 ac_cv_func_vfork_works=$ac_cv_func_vfork
24551 if test "x$ac_cv_func_vfork" = xyes; then
24552 echo "$as_me:24552: checking for working vfork" >&5
24553 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
24554 if test "${ac_cv_func_vfork_works+set}" = set; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24557 if test "$cross_compiling" = yes; then
24558 ac_cv_func_vfork_works=cross
24560 cat >"conftest.$ac_ext" <<_ACEOF
24561 #line 24561 "configure"
24562 #include "confdefs.h"
24563 /* Thanks to Paul Eggert for this test. */
24565 #include <sys/types.h>
24566 #include <sys/stat.h>
24568 # include <unistd.h>
24571 # include <vfork.h>
24573 /* On some sparc systems, changes by the child to local and incoming
24574 argument registers are propagated back to the parent. The compiler
24575 is told about this with #include <vfork.h>, but some compilers
24576 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24577 static variable whose address is put into a register that is
24578 clobbered by the vfork. */
24580 sparc_address_test (int arg)
24582 static pid_t child;
24600 pid_t parent = getpid ();
24603 sparc_address_test ();
24608 /* Here is another test for sparc vfork register problems. This
24609 test uses lots of local variables, at least as many local
24610 variables as main has allocated so far including compiler
24611 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24612 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24613 reuse the register of parent for one of the local variables,
24614 since it will think that parent can't possibly be used any more
24615 in this routine. Assigning to the local variable will thus
24616 munge parent in the parent process. */
24618 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24619 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24620 /* Convince the compiler that p..p7 are live; otherwise, it might
24621 use the same hardware register for all 8 local variables. */
24622 if (p != p1 || p != p2 || p != p3 || p != p4
24623 || p != p5 || p != p6 || p != p7)
24626 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24627 from child file descriptors. If the child closes a descriptor
24628 before it execs or exits, this munges the parent's descriptor
24629 as well. Test for this by closing stdout in the child. */
24630 _exit(close(fileno(stdout)) != 0);
24635 while (wait(&status) != child)
24638 /* Was there some problem with vforking? */
24641 /* Did the child fail? (This shouldn't happen.) */
24644 /* Did the vfork/compiler bug occur? */
24645 || parent != getpid()
24647 /* Did the file descriptor bug occur? */
24648 || fstat(fileno(stdout), &st) != 0
24653 rm -f "conftest$ac_exeext"
24654 if { (eval echo "$as_me:24654: \"$ac_link\"") >&5
24655 (eval $ac_link) 2>&5
24657 echo "$as_me:24657: \$? = $ac_status" >&5
24658 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24659 { (eval echo "$as_me:24659: \"$ac_try\"") >&5
24660 (eval $ac_try) 2>&5
24662 echo "$as_me:24662: \$? = $ac_status" >&5
24663 (exit "$ac_status"); }; }; then
24664 ac_cv_func_vfork_works=yes
24666 echo "$as_me: program exited with status $ac_status" >&5
24667 echo "$as_me: failed program was:" >&5
24668 cat "conftest.$ac_ext" >&5
24669 ac_cv_func_vfork_works=no
24671 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24674 echo "$as_me:24674: result: $ac_cv_func_vfork_works" >&5
24675 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24678 if test "x$ac_cv_func_fork_works" = xcross; then
24679 ac_cv_func_vfork_works=ac_cv_func_vfork
24680 { echo "$as_me:24680: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
24681 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
24684 if test "x$ac_cv_func_vfork_works" = xyes; then
24686 cat >>confdefs.h <<\EOF
24687 #define HAVE_WORKING_VFORK 1
24692 cat >>confdefs.h <<\EOF
24697 if test "x$ac_cv_func_fork_works" = xyes; then
24699 cat >>confdefs.h <<\EOF
24700 #define HAVE_WORKING_FORK 1
24705 echo "$as_me:24705: checking if fopen accepts explicit binary mode" >&5
24706 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
24707 if test "${cf_cv_fopen_bin_r+set}" = set; then
24708 echo $ECHO_N "(cached) $ECHO_C" >&6
24711 if test "$cross_compiling" = yes; then
24712 cf_cv_fopen_bin_r=unknown
24714 cat >"conftest.$ac_ext" <<_ACEOF
24715 #line 24715 "configure"
24716 #include "confdefs.h"
24718 $ac_includes_default
24722 FILE *fp = fopen("conftest.tmp", "wb");
24726 for (p = 0; p < 256; ++p) {
24730 fp = fopen("conftest.tmp", "rb");
24732 for (p = 0; p < 256; ++p) {
24745 ${cf_cv_main_return:-return} (rc);
24749 rm -f "conftest$ac_exeext"
24750 if { (eval echo "$as_me:24750: \"$ac_link\"") >&5
24751 (eval $ac_link) 2>&5
24753 echo "$as_me:24753: \$? = $ac_status" >&5
24754 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24755 { (eval echo "$as_me:24755: \"$ac_try\"") >&5
24756 (eval $ac_try) 2>&5
24758 echo "$as_me:24758: \$? = $ac_status" >&5
24759 (exit "$ac_status"); }; }; then
24760 cf_cv_fopen_bin_r=yes
24762 echo "$as_me: program exited with status $ac_status" >&5
24763 echo "$as_me: failed program was:" >&5
24764 cat "conftest.$ac_ext" >&5
24765 cf_cv_fopen_bin_r=no
24767 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24771 echo "$as_me:24771: result: $cf_cv_fopen_bin_r" >&5
24772 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24773 test "x$cf_cv_fopen_bin_r" != xno &&
24774 cat >>confdefs.h <<\EOF
24775 #define USE_FOPEN_BIN_R 1
24778 # special check for test/ditto.c
24780 echo "$as_me:24780: checking for openpty in -lutil" >&5
24781 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24782 if test "${ac_cv_lib_util_openpty+set}" = set; then
24783 echo $ECHO_N "(cached) $ECHO_C" >&6
24785 ac_check_lib_save_LIBS=$LIBS
24786 LIBS="-lutil $LIBS"
24787 cat >"conftest.$ac_ext" <<_ACEOF
24788 #line 24788 "configure"
24789 #include "confdefs.h"
24791 /* Override any gcc2 internal prototype to avoid an error. */
24795 /* We use char because int might match the return type of a gcc2
24796 builtin and then its argument prototype would still apply. */
24797 char openpty (void);
24806 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24807 if { (eval echo "$as_me:24807: \"$ac_link\"") >&5
24808 (eval $ac_link) 2>&5
24810 echo "$as_me:24810: \$? = $ac_status" >&5
24811 (exit "$ac_status"); } &&
24812 { ac_try='test -s "conftest$ac_exeext"'
24813 { (eval echo "$as_me:24813: \"$ac_try\"") >&5
24814 (eval $ac_try) 2>&5
24816 echo "$as_me:24816: \$? = $ac_status" >&5
24817 (exit "$ac_status"); }; }; then
24818 ac_cv_lib_util_openpty=yes
24820 echo "$as_me: failed program was:" >&5
24821 cat "conftest.$ac_ext" >&5
24822 ac_cv_lib_util_openpty=no
24824 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24825 LIBS=$ac_check_lib_save_LIBS
24827 echo "$as_me:24827: result: $ac_cv_lib_util_openpty" >&5
24828 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24829 if test "$ac_cv_lib_util_openpty" = yes; then
24835 echo "$as_me:24835: checking for openpty header" >&5
24836 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24837 if test "${cf_cv_func_openpty+set}" = set; then
24838 echo $ECHO_N "(cached) $ECHO_C" >&6
24841 cf_save_LIBS="$LIBS"
24842 test "$cf_cv_lib_util" = yes && {
24843 cf_add_libs="$LIBS"
24846 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24847 # filter duplicates
24848 for cf_add_1lib in $cf_add_0lib; do
24849 for cf_add_2lib in $cf_add_libs; do
24850 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24855 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24857 LIBS="$cf_add_libs"
24859 for cf_header in pty.h libutil.h util.h
24861 cat >"conftest.$ac_ext" <<_ACEOF
24862 #line 24862 "configure"
24863 #include "confdefs.h"
24865 #include <$cf_header>
24871 int x = openpty((int *)0, (int *)0, (char *)0,
24872 (struct termios *)0, (struct winsize *)0);
24879 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24880 if { (eval echo "$as_me:24880: \"$ac_link\"") >&5
24881 (eval $ac_link) 2>&5
24883 echo "$as_me:24883: \$? = $ac_status" >&5
24884 (exit "$ac_status"); } &&
24885 { ac_try='test -s "conftest$ac_exeext"'
24886 { (eval echo "$as_me:24886: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24889 echo "$as_me:24889: \$? = $ac_status" >&5
24890 (exit "$ac_status"); }; }; then
24892 cf_cv_func_openpty=$cf_header
24896 echo "$as_me: failed program was:" >&5
24897 cat "conftest.$ac_ext" >&5
24899 cf_cv_func_openpty=no
24902 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24904 LIBS="$cf_save_LIBS"
24907 echo "$as_me:24907: result: $cf_cv_func_openpty" >&5
24908 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24910 if test "$cf_cv_func_openpty" != no ; then
24912 cat >>confdefs.h <<EOF
24913 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24916 cat >>confdefs.h <<\EOF
24917 #define USE_XTERM_PTY 1
24920 if test "x$cf_cv_lib_util" = xyes ; then
24922 cf_add_libs="$TEST_LIBS"
24925 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24926 # filter duplicates
24927 for cf_add_1lib in $cf_add_0lib; do
24928 for cf_add_2lib in $cf_add_libs; do
24929 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24934 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24936 TEST_LIBS="$cf_add_libs"
24941 if test "$with_hashed_db" != no ; then
24943 cat >>confdefs.h <<\EOF
24944 #define USE_HASHED_DB 1
24947 case $with_hashed_db in
24951 if test -d "$with_hashed_db" ; then
24953 if test -n "$with_hashed_db/include" ; then
24954 for cf_add_incdir in $with_hashed_db/include
24956 while test "$cf_add_incdir" != /usr/include
24958 if test -d "$cf_add_incdir"
24961 if test -n "$CFLAGS$CPPFLAGS" ; then
24962 # a loop is needed to ensure we can add subdirs of existing dirs
24963 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24964 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24965 cf_have_incdir=yes; break
24970 if test "$cf_have_incdir" = no ; then
24971 if test "$cf_add_incdir" = /usr/local/include ; then
24972 if test "$GCC" = yes
24974 cf_save_CPPFLAGS=$CPPFLAGS
24976 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24977 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24979 cat >"conftest.$ac_ext" <<_ACEOF
24980 #line 24980 "configure"
24981 #include "confdefs.h"
24991 rm -f "conftest.$ac_objext"
24992 if { (eval echo "$as_me:24992: \"$ac_compile\"") >&5
24993 (eval $ac_compile) 2>&5
24995 echo "$as_me:24995: \$? = $ac_status" >&5
24996 (exit "$ac_status"); } &&
24997 { ac_try='test -s "conftest.$ac_objext"'
24998 { (eval echo "$as_me:24998: \"$ac_try\"") >&5
24999 (eval $ac_try) 2>&5
25001 echo "$as_me:25001: \$? = $ac_status" >&5
25002 (exit "$ac_status"); }; }; then
25005 echo "$as_me: failed program was:" >&5
25006 cat "conftest.$ac_ext" >&5
25009 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25010 CPPFLAGS=$cf_save_CPPFLAGS
25015 if test "$cf_have_incdir" = no ; then
25016 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
25018 echo "${as_me:-configure}:25018: testing adding $cf_add_incdir to include-path ..." 1>&5
25020 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
25022 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
25023 test "$cf_top_incdir" = "$cf_add_incdir" && break
25024 cf_add_incdir="$cf_top_incdir"
25035 if test -n "$with_hashed_db/lib" ; then
25036 for cf_add_libdir in $with_hashed_db/lib
25038 if test "$cf_add_libdir" = /usr/lib ; then
25040 elif test -d "$cf_add_libdir"
25043 if test -n "$LDFLAGS$LIBS" ; then
25044 # a loop is needed to ensure we can add subdirs of existing dirs
25045 for cf_test_libdir in $LDFLAGS $LIBS ; do
25046 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
25047 cf_have_libdir=yes; break
25051 if test "$cf_have_libdir" = no ; then
25052 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
25054 echo "${as_me:-configure}:25054: testing adding $cf_add_libdir to library-path ..." 1>&5
25056 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
25063 case "$with_hashed_db" in
25065 { echo "$as_me:25065: WARNING: no such directory $with_hashed_db" >&5
25066 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
25072 test "x$prefix" != "xNONE" && \
25073 test -d "$prefix" && \
25075 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
25076 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
25077 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
25078 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
25079 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
25080 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
25083 for cf_subdir_prefix in \
25092 test "x$cf_subdir_prefix" != "x$prefix" && \
25093 test -d "$cf_subdir_prefix" && \
25094 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
25095 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
25096 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
25097 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
25098 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
25099 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
25100 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"
25105 for cf_item in $cf_search
25108 (*/$with_hashed_db)
25110 if test -n "$cf_item" ; then
25111 for cf_add_incdir in $cf_item
25113 while test "$cf_add_incdir" != /usr/include
25115 if test -d "$cf_add_incdir"
25118 if test -n "$CFLAGS$CPPFLAGS" ; then
25119 # a loop is needed to ensure we can add subdirs of existing dirs
25120 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
25121 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
25122 cf_have_incdir=yes; break
25127 if test "$cf_have_incdir" = no ; then
25128 if test "$cf_add_incdir" = /usr/local/include ; then
25129 if test "$GCC" = yes
25131 cf_save_CPPFLAGS=$CPPFLAGS
25133 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
25134 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
25136 cat >"conftest.$ac_ext" <<_ACEOF
25137 #line 25137 "configure"
25138 #include "confdefs.h"
25148 rm -f "conftest.$ac_objext"
25149 if { (eval echo "$as_me:25149: \"$ac_compile\"") >&5
25150 (eval $ac_compile) 2>&5
25152 echo "$as_me:25152: \$? = $ac_status" >&5
25153 (exit "$ac_status"); } &&
25154 { ac_try='test -s "conftest.$ac_objext"'
25155 { (eval echo "$as_me:25155: \"$ac_try\"") >&5
25156 (eval $ac_try) 2>&5
25158 echo "$as_me:25158: \$? = $ac_status" >&5
25159 (exit "$ac_status"); }; }; then
25162 echo "$as_me: failed program was:" >&5
25163 cat "conftest.$ac_ext" >&5
25166 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25167 CPPFLAGS=$cf_save_CPPFLAGS
25172 if test "$cf_have_incdir" = no ; then
25173 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
25175 echo "${as_me:-configure}:25175: testing adding $cf_add_incdir to include-path ..." 1>&5
25177 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
25179 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
25180 test "$cf_top_incdir" = "$cf_add_incdir" && break
25181 cf_add_incdir="$cf_top_incdir"
25198 test "x$prefix" != "xNONE" && \
25199 test -d "$prefix" && \
25201 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
25202 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
25203 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
25204 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
25205 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
25206 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
25209 for cf_subdir_prefix in \
25218 test "x$cf_subdir_prefix" != "x$prefix" && \
25219 test -d "$cf_subdir_prefix" && \
25220 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
25221 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
25222 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
25223 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
25224 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
25225 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
25226 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"
25231 for cf_item in $cf_search
25234 (*/$with_hashed_db)
25236 if test -n "$cf_item" ; then
25237 for cf_add_libdir in $cf_item
25239 if test "$cf_add_libdir" = /usr/lib ; then
25241 elif test -d "$cf_add_libdir"
25244 if test -n "$LDFLAGS$LIBS" ; then
25245 # a loop is needed to ensure we can add subdirs of existing dirs
25246 for cf_test_libdir in $LDFLAGS $LIBS ; do
25247 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
25248 cf_have_libdir=yes; break
25252 if test "$cf_have_libdir" = no ; then
25253 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
25255 echo "${as_me:-configure}:25255: testing adding $cf_add_libdir to library-path ..." 1>&5
25257 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
25272 echo "$as_me:25272: checking for db.h" >&5
25273 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
25274 if test "${ac_cv_header_db_h+set}" = set; then
25275 echo $ECHO_N "(cached) $ECHO_C" >&6
25277 cat >"conftest.$ac_ext" <<_ACEOF
25278 #line 25278 "configure"
25279 #include "confdefs.h"
25282 if { (eval echo "$as_me:25282: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25283 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25285 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25287 cat conftest.err >&5
25288 echo "$as_me:25288: \$? = $ac_status" >&5
25289 (exit "$ac_status"); } >/dev/null; then
25290 if test -s conftest.err; then
25291 ac_cpp_err=$ac_c_preproc_warn_flag
25298 if test -z "$ac_cpp_err"; then
25299 ac_cv_header_db_h=yes
25301 echo "$as_me: failed program was:" >&5
25302 cat "conftest.$ac_ext" >&5
25303 ac_cv_header_db_h=no
25305 rm -f conftest.err "conftest.$ac_ext"
25307 echo "$as_me:25307: result: $ac_cv_header_db_h" >&5
25308 echo "${ECHO_T}$ac_cv_header_db_h" >&6
25309 if test "$ac_cv_header_db_h" = yes; then
25311 echo "$as_me:25311: checking for version of db" >&5
25312 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
25313 if test "${cf_cv_hashed_db_version+set}" = set; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
25317 cf_cv_hashed_db_version=unknown
25319 for cf_db_version in 1 2 3 4 5 6
25322 echo "${as_me:-configure}:25322: testing checking for db version $cf_db_version ..." 1>&5
25324 cat >"conftest.$ac_ext" <<_ACEOF
25325 #line 25325 "configure"
25326 #include "confdefs.h"
25328 $ac_includes_default
25331 #ifdef DB_VERSION_MAJOR
25332 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
25333 #if $cf_db_version == DB_VERSION_MAJOR
25336 #error $cf_db_version is not DB_VERSION_MAJOR
25339 #if $cf_db_version == 1
25340 /* ok: assuming this is DB 1.8.5 */
25342 #error $cf_db_version is not 1
25354 rm -f "conftest.$ac_objext"
25355 if { (eval echo "$as_me:25355: \"$ac_compile\"") >&5
25356 (eval $ac_compile) 2>&5
25358 echo "$as_me:25358: \$? = $ac_status" >&5
25359 (exit "$ac_status"); } &&
25360 { ac_try='test -s "conftest.$ac_objext"'
25361 { (eval echo "$as_me:25361: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25364 echo "$as_me:25364: \$? = $ac_status" >&5
25365 (exit "$ac_status"); }; }; then
25367 cf_cv_hashed_db_version=$cf_db_version
25371 echo "$as_me: failed program was:" >&5
25372 cat "conftest.$ac_ext" >&5
25374 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25378 echo "$as_me:25378: result: $cf_cv_hashed_db_version" >&5
25379 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
25381 if test "$cf_cv_hashed_db_version" = unknown ; then
25382 { { echo "$as_me:25382: error: Cannot determine version of db" >&5
25383 echo "$as_me: error: Cannot determine version of db" >&2;}
25384 { (exit 1); exit 1; }; }
25387 echo "$as_me:25387: checking for db libraries" >&5
25388 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
25389 if test "${cf_cv_hashed_db_libs+set}" = set; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25393 cf_cv_hashed_db_libs=unknown
25394 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
25396 cf_save_libs="$LIBS"
25397 if test -n "$cf_db_libs"; then
25399 cf_add_libs="$LIBS"
25402 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25403 # filter duplicates
25404 for cf_add_1lib in $cf_add_0lib; do
25405 for cf_add_2lib in $cf_add_libs; do
25406 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25411 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25413 LIBS="$cf_add_libs"
25417 echo "${as_me:-configure}:25417: testing checking for library $cf_db_libs ..." 1>&5
25419 cat >"conftest.$ac_ext" <<_ACEOF
25420 #line 25420 "configure"
25421 #include "confdefs.h"
25423 $ac_includes_default
25430 char *path = "/tmp/foo";
25431 #ifdef DB_VERSION_MAJOR
25432 #if DB_VERSION_MAJOR >= 4
25434 db_create(&result, NULL, 0);
25435 result->open(result,
25442 #elif DB_VERSION_MAJOR >= 3
25444 db_create(&result, NULL, 0);
25445 result->open(result,
25451 #elif DB_VERSION_MAJOR >= 2
25460 #endif /* DB_VERSION_MAJOR */
25462 DB *result = dbopen(path,
25468 ${cf_cv_main_return:-return}(result != 0)
25474 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25475 if { (eval echo "$as_me:25475: \"$ac_link\"") >&5
25476 (eval $ac_link) 2>&5
25478 echo "$as_me:25478: \$? = $ac_status" >&5
25479 (exit "$ac_status"); } &&
25480 { ac_try='test -s "conftest$ac_exeext"'
25481 { (eval echo "$as_me:25481: \"$ac_try\"") >&5
25482 (eval $ac_try) 2>&5
25484 echo "$as_me:25484: \$? = $ac_status" >&5
25485 (exit "$ac_status"); }; }; then
25487 if test -n "$cf_db_libs" ; then
25488 cf_cv_hashed_db_libs=$cf_db_libs
25490 cf_cv_hashed_db_libs=default
25492 LIBS="$cf_save_libs"
25496 echo "$as_me: failed program was:" >&5
25497 cat "conftest.$ac_ext" >&5
25499 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25500 LIBS="$cf_save_libs"
25504 echo "$as_me:25504: result: $cf_cv_hashed_db_libs" >&5
25505 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
25507 if test "$cf_cv_hashed_db_libs" = unknown ; then
25508 { { echo "$as_me:25508: error: Cannot determine library for db" >&5
25509 echo "$as_me: error: Cannot determine library for db" >&2;}
25510 { (exit 1); exit 1; }; }
25511 elif test "$cf_cv_hashed_db_libs" != default ; then
25513 cf_add_libs="$LIBS"
25516 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25517 # filter duplicates
25518 for cf_add_1lib in $cf_add_0lib; do
25519 for cf_add_2lib in $cf_add_libs; do
25520 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25525 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25527 LIBS="$cf_add_libs"
25534 { { echo "$as_me:25534: error: Cannot find db.h" >&5
25535 echo "$as_me: error: Cannot find db.h" >&2;}
25536 { (exit 1); exit 1; }; }
25542 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
25543 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25544 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25547 # Just in case, check if the C compiler has a bool type.
25549 echo "$as_me:25549: checking if we should include stdbool.h" >&5
25550 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25552 if test "${cf_cv_header_stdbool_h+set}" = set; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25556 cat >"conftest.$ac_ext" <<_ACEOF
25557 #line 25557 "configure"
25558 #include "confdefs.h"
25563 bool foo = false; (void)foo
25568 rm -f "conftest.$ac_objext"
25569 if { (eval echo "$as_me:25569: \"$ac_compile\"") >&5
25570 (eval $ac_compile) 2>&5
25572 echo "$as_me:25572: \$? = $ac_status" >&5
25573 (exit "$ac_status"); } &&
25574 { ac_try='test -s "conftest.$ac_objext"'
25575 { (eval echo "$as_me:25575: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25578 echo "$as_me:25578: \$? = $ac_status" >&5
25579 (exit "$ac_status"); }; }; then
25580 cf_cv_header_stdbool_h=0
25582 echo "$as_me: failed program was:" >&5
25583 cat "conftest.$ac_ext" >&5
25584 cat >"conftest.$ac_ext" <<_ACEOF
25585 #line 25585 "configure"
25586 #include "confdefs.h"
25589 #include <stdbool.h>
25595 bool foo = false; (void)foo
25600 rm -f "conftest.$ac_objext"
25601 if { (eval echo "$as_me:25601: \"$ac_compile\"") >&5
25602 (eval $ac_compile) 2>&5
25604 echo "$as_me:25604: \$? = $ac_status" >&5
25605 (exit "$ac_status"); } &&
25606 { ac_try='test -s "conftest.$ac_objext"'
25607 { (eval echo "$as_me:25607: \"$ac_try\"") >&5
25608 (eval $ac_try) 2>&5
25610 echo "$as_me:25610: \$? = $ac_status" >&5
25611 (exit "$ac_status"); }; }; then
25612 cf_cv_header_stdbool_h=1
25614 echo "$as_me: failed program was:" >&5
25615 cat "conftest.$ac_ext" >&5
25616 cf_cv_header_stdbool_h=0
25618 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25620 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25623 if test "$cf_cv_header_stdbool_h" = 1
25624 then echo "$as_me:25624: result: yes" >&5
25625 echo "${ECHO_T}yes" >&6
25626 else echo "$as_me:25626: result: no" >&5
25627 echo "${ECHO_T}no" >&6
25630 echo "$as_me:25630: checking for builtin bool type" >&5
25631 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25633 if test "${cf_cv_cc_bool_type+set}" = set; then
25634 echo $ECHO_N "(cached) $ECHO_C" >&6
25637 cat >"conftest.$ac_ext" <<_ACEOF
25638 #line 25638 "configure"
25639 #include "confdefs.h"
25642 #include <sys/types.h>
25647 bool x = false; (void)x
25652 rm -f "conftest.$ac_objext"
25653 if { (eval echo "$as_me:25653: \"$ac_compile\"") >&5
25654 (eval $ac_compile) 2>&5
25656 echo "$as_me:25656: \$? = $ac_status" >&5
25657 (exit "$ac_status"); } &&
25658 { ac_try='test -s "conftest.$ac_objext"'
25659 { (eval echo "$as_me:25659: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25662 echo "$as_me:25662: \$? = $ac_status" >&5
25663 (exit "$ac_status"); }; }; then
25664 cf_cv_cc_bool_type=1
25666 echo "$as_me: failed program was:" >&5
25667 cat "conftest.$ac_ext" >&5
25668 cf_cv_cc_bool_type=0
25670 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25674 if test "$cf_cv_cc_bool_type" = 1
25675 then echo "$as_me:25675: result: yes" >&5
25676 echo "${ECHO_T}yes" >&6
25677 else echo "$as_me:25677: result: no" >&5
25678 echo "${ECHO_T}no" >&6
25681 # Check for C++ compiler characteristics (and ensure that it's there!)
25682 if test -n "$CXX" ; then
25684 ac_cpp='$CXXCPP $CPPFLAGS'
25685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25686 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25688 ac_main_return="return"
25690 if test -n "$GXX" ; then
25693 LIBS="$LIBS $CXXLIBS"
25694 echo "$as_me:25694: checking if we already have C++ library" >&5
25695 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
25696 cat >"conftest.$ac_ext" <<_ACEOF
25697 #line 25697 "configure"
25698 #include "confdefs.h"
25700 #include <iostream>
25705 std::cout << "Hello World!" << std::endl;
25710 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25711 if { (eval echo "$as_me:25711: \"$ac_link\"") >&5
25712 (eval $ac_link) 2>&5
25714 echo "$as_me:25714: \$? = $ac_status" >&5
25715 (exit "$ac_status"); } &&
25716 { ac_try='test -s "conftest$ac_exeext"'
25717 { (eval echo "$as_me:25717: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25720 echo "$as_me:25720: \$? = $ac_status" >&5
25721 (exit "$ac_status"); }; }; then
25722 cf_have_libstdcpp=yes
25724 echo "$as_me: failed program was:" >&5
25725 cat "conftest.$ac_ext" >&5
25726 cf_have_libstdcpp=no
25728 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25729 echo "$as_me:25729: result: $cf_have_libstdcpp" >&5
25730 echo "${ECHO_T}$cf_have_libstdcpp" >&6
25733 if test "$cf_have_libstdcpp" != yes
25735 case "$cf_cv_system_name" in
25737 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
25738 cf_stdcpp_libname=stdcpp
25740 cf_stdcpp_libname=stdc++
25744 cf_stdcpp_libname=stdc++
25748 echo "$as_me:25748: checking for library $cf_stdcpp_libname" >&5
25749 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
25750 if test "${cf_cv_libstdcpp+set}" = set; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
25755 LIBS="$LIBS $CXXLIBS"
25757 cf_add_libs="$LIBS"
25760 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25761 # filter duplicates
25762 for cf_add_1lib in $cf_add_0lib; do
25763 for cf_add_2lib in $cf_add_libs; do
25764 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25769 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25771 LIBS="$cf_add_libs"
25773 cat >"conftest.$ac_ext" <<_ACEOF
25774 #line 25774 "configure"
25775 #include "confdefs.h"
25777 #include <iostream>
25782 std::cout << "Hello World!" << std::endl;
25787 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25788 if { (eval echo "$as_me:25788: \"$ac_link\"") >&5
25789 (eval $ac_link) 2>&5
25791 echo "$as_me:25791: \$? = $ac_status" >&5
25792 (exit "$ac_status"); } &&
25793 { ac_try='test -s "conftest$ac_exeext"'
25794 { (eval echo "$as_me:25794: \"$ac_try\"") >&5
25795 (eval $ac_try) 2>&5
25797 echo "$as_me:25797: \$? = $ac_status" >&5
25798 (exit "$ac_status"); }; }; then
25799 cf_cv_libstdcpp=yes
25801 echo "$as_me: failed program was:" >&5
25802 cat "conftest.$ac_ext" >&5
25805 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25809 echo "$as_me:25809: result: $cf_cv_libstdcpp" >&5
25810 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25811 test "$cf_cv_libstdcpp" = yes && {
25812 cf_add_libs="$CXXLIBS"
25815 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25816 # filter duplicates
25817 for cf_add_1lib in $cf_add_0lib; do
25818 for cf_add_2lib in $cf_add_libs; do
25819 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25824 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25826 CXXLIBS="$cf_add_libs"
25831 echo "$as_me:25831: checking whether $CXX understands -c and -o together" >&5
25832 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25833 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 cat > conftest.$ac_ext <<CF_EOF
25840 ${cf_cv_main_return:-return}(0);
25843 # We do the test twice because some compilers refuse to overwrite an
25844 # existing .o file with -o, though they will create one.
25845 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25846 if { (eval echo "$as_me:25846: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25849 echo "$as_me:25849: \$? = $ac_status" >&5
25850 (exit "$ac_status"); } &&
25851 test -f conftest2.$ac_objext && { (eval echo "$as_me:25851: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25854 echo "$as_me:25854: \$? = $ac_status" >&5
25855 (exit "$ac_status"); };
25857 eval cf_cv_prog_CXX_c_o=yes
25859 eval cf_cv_prog_CXX_c_o=no
25864 if test "$cf_cv_prog_CXX_c_o" = yes; then
25865 echo "$as_me:25865: result: yes" >&5
25866 echo "${ECHO_T}yes" >&6
25868 echo "$as_me:25868: result: no" >&5
25869 echo "${ECHO_T}no" >&6
25872 case "$GXX_VERSION" in
25873 (1.*|2.[0-6]*|[1-9][0-9].*)
25878 cf_cxx_library=unknown
25879 case "$cf_cv_system_name" in
25887 if test "$GXX" = yes; then
25888 echo "$as_me:25888: checking for lib$cf_gpp_libname" >&5
25889 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25892 cf_add_libs="$LIBS"
25895 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25896 # filter duplicates
25897 for cf_add_1lib in $cf_add_0lib; do
25898 for cf_add_2lib in $cf_add_libs; do
25899 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25904 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25906 LIBS="$cf_add_libs"
25908 cat >"conftest.$ac_ext" <<_ACEOF
25909 #line 25909 "configure"
25910 #include "confdefs.h"
25912 #include <$cf_gpp_libname/builtin.h>
25917 two_arg_error_handler_t foo2 = lib_error_handler
25922 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25923 if { (eval echo "$as_me:25923: \"$ac_link\"") >&5
25924 (eval $ac_link) 2>&5
25926 echo "$as_me:25926: \$? = $ac_status" >&5
25927 (exit "$ac_status"); } &&
25928 { ac_try='test -s "conftest$ac_exeext"'
25929 { (eval echo "$as_me:25929: \"$ac_try\"") >&5
25930 (eval $ac_try) 2>&5
25932 echo "$as_me:25932: \$? = $ac_status" >&5
25933 (exit "$ac_status"); }; }; then
25936 cf_add_libs="$CXXLIBS"
25939 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25940 # filter duplicates
25941 for cf_add_1lib in $cf_add_0lib; do
25942 for cf_add_2lib in $cf_add_libs; do
25943 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25948 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25950 CXXLIBS="$cf_add_libs"
25952 if test "$cf_gpp_libname" = cpp ; then
25954 cat >>confdefs.h <<\EOF
25955 #define HAVE_GPP_BUILTIN_H 1
25960 cat >>confdefs.h <<\EOF
25961 #define HAVE_GXX_BUILTIN_H 1
25966 echo "$as_me: failed program was:" >&5
25967 cat "conftest.$ac_ext" >&5
25968 cat >"conftest.$ac_ext" <<_ACEOF
25969 #line 25969 "configure"
25970 #include "confdefs.h"
25972 #include <builtin.h>
25977 two_arg_error_handler_t foo2 = lib_error_handler
25982 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25983 if { (eval echo "$as_me:25983: \"$ac_link\"") >&5
25984 (eval $ac_link) 2>&5
25986 echo "$as_me:25986: \$? = $ac_status" >&5
25987 (exit "$ac_status"); } &&
25988 { ac_try='test -s "conftest$ac_exeext"'
25989 { (eval echo "$as_me:25989: \"$ac_try\"") >&5
25990 (eval $ac_try) 2>&5
25992 echo "$as_me:25992: \$? = $ac_status" >&5
25993 (exit "$ac_status"); }; }; then
25996 cf_add_libs="$CXXLIBS"
25999 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
26000 # filter duplicates
26001 for cf_add_1lib in $cf_add_0lib; do
26002 for cf_add_2lib in $cf_add_libs; do
26003 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
26008 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
26010 CXXLIBS="$cf_add_libs"
26012 cat >>confdefs.h <<\EOF
26013 #define HAVE_BUILTIN_H 1
26017 echo "$as_me: failed program was:" >&5
26018 cat "conftest.$ac_ext" >&5
26021 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
26023 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
26025 echo "$as_me:26025: result: $cf_cxx_library" >&5
26026 echo "${ECHO_T}$cf_cxx_library" >&6
26036 ac_cpp='$CXXCPP $CPPFLAGS'
26037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26038 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26040 ac_main_return="return"
26041 echo "$as_me:26041: checking how to run the C++ preprocessor" >&5
26042 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
26043 if test -z "$CXXCPP"; then
26044 if test "${ac_cv_prog_CXXCPP+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26047 # Double quotes because CXXCPP needs to be expanded
26048 for CXXCPP in "$CXX -E" "/lib/cpp"
26050 ac_preproc_ok=false
26051 for ac_cxx_preproc_warn_flag in '' yes
26053 # Use a header file that comes with gcc, so configuring glibc
26054 # with a fresh cross-compiler works.
26055 # On the NeXT, cc -E runs the code through the compiler's parser,
26056 # not just through cpp. "Syntax error" is here to catch this case.
26057 cat >"conftest.$ac_ext" <<_ACEOF
26058 #line 26058 "configure"
26059 #include "confdefs.h"
26060 #include <assert.h>
26063 if { (eval echo "$as_me:26063: \"$ac_cpp "conftest.$ac_ext"\"") >&5
26064 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
26066 $EGREP -v '^ *\+' conftest.er1 >conftest.err
26068 cat conftest.err >&5
26069 echo "$as_me:26069: \$? = $ac_status" >&5
26070 (exit "$ac_status"); } >/dev/null; then
26071 if test -s conftest.err; then
26072 ac_cpp_err=$ac_cxx_preproc_warn_flag
26079 if test -z "$ac_cpp_err"; then
26082 echo "$as_me: failed program was:" >&5
26083 cat "conftest.$ac_ext" >&5
26084 # Broken: fails on valid input.
26087 rm -f conftest.err "conftest.$ac_ext"
26089 # OK, works on sane cases. Now check whether non-existent headers
26090 # can be detected and how.
26091 cat >"conftest.$ac_ext" <<_ACEOF
26092 #line 26092 "configure"
26093 #include "confdefs.h"
26094 #include <ac_nonexistent.h>
26096 if { (eval echo "$as_me:26096: \"$ac_cpp "conftest.$ac_ext"\"") >&5
26097 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
26099 $EGREP -v '^ *\+' conftest.er1 >conftest.err
26101 cat conftest.err >&5
26102 echo "$as_me:26102: \$? = $ac_status" >&5
26103 (exit "$ac_status"); } >/dev/null; then
26104 if test -s conftest.err; then
26105 ac_cpp_err=$ac_cxx_preproc_warn_flag
26112 if test -z "$ac_cpp_err"; then
26113 # Broken: success on invalid input.
26116 echo "$as_me: failed program was:" >&5
26117 cat "conftest.$ac_ext" >&5
26118 # Passes both tests.
26122 rm -f conftest.err "conftest.$ac_ext"
26125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26126 rm -f conftest.err "conftest.$ac_ext"
26127 if $ac_preproc_ok; then
26132 ac_cv_prog_CXXCPP=$CXXCPP
26135 CXXCPP=$ac_cv_prog_CXXCPP
26137 ac_cv_prog_CXXCPP=$CXXCPP
26139 echo "$as_me:26139: result: $CXXCPP" >&5
26140 echo "${ECHO_T}$CXXCPP" >&6
26141 ac_preproc_ok=false
26142 for ac_cxx_preproc_warn_flag in '' yes
26144 # Use a header file that comes with gcc, so configuring glibc
26145 # with a fresh cross-compiler works.
26146 # On the NeXT, cc -E runs the code through the compiler's parser,
26147 # not just through cpp. "Syntax error" is here to catch this case.
26148 cat >"conftest.$ac_ext" <<_ACEOF
26149 #line 26149 "configure"
26150 #include "confdefs.h"
26151 #include <assert.h>
26154 if { (eval echo "$as_me:26154: \"$ac_cpp "conftest.$ac_ext"\"") >&5
26155 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
26157 $EGREP -v '^ *\+' conftest.er1 >conftest.err
26159 cat conftest.err >&5
26160 echo "$as_me:26160: \$? = $ac_status" >&5
26161 (exit "$ac_status"); } >/dev/null; then
26162 if test -s conftest.err; then
26163 ac_cpp_err=$ac_cxx_preproc_warn_flag
26170 if test -z "$ac_cpp_err"; then
26173 echo "$as_me: failed program was:" >&5
26174 cat "conftest.$ac_ext" >&5
26175 # Broken: fails on valid input.
26178 rm -f conftest.err "conftest.$ac_ext"
26180 # OK, works on sane cases. Now check whether non-existent headers
26181 # can be detected and how.
26182 cat >"conftest.$ac_ext" <<_ACEOF
26183 #line 26183 "configure"
26184 #include "confdefs.h"
26185 #include <ac_nonexistent.h>
26187 if { (eval echo "$as_me:26187: \"$ac_cpp "conftest.$ac_ext"\"") >&5
26188 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
26190 $EGREP -v '^ *\+' conftest.er1 >conftest.err
26192 cat conftest.err >&5
26193 echo "$as_me:26193: \$? = $ac_status" >&5
26194 (exit "$ac_status"); } >/dev/null; then
26195 if test -s conftest.err; then
26196 ac_cpp_err=$ac_cxx_preproc_warn_flag
26203 if test -z "$ac_cpp_err"; then
26204 # Broken: success on invalid input.
26207 echo "$as_me: failed program was:" >&5
26208 cat "conftest.$ac_ext" >&5
26209 # Passes both tests.
26213 rm -f conftest.err "conftest.$ac_ext"
26216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26217 rm -f conftest.err "conftest.$ac_ext"
26218 if $ac_preproc_ok; then
26221 { { echo "$as_me:26221: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
26222 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
26223 { (exit 1); exit 1; }; }
26227 ac_cpp='$CXXCPP $CPPFLAGS'
26228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26229 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26231 ac_main_return="return"
26233 for ac_header in typeinfo
26235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26236 echo "$as_me:26236: checking for $ac_header" >&5
26237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26239 echo $ECHO_N "(cached) $ECHO_C" >&6
26241 cat >"conftest.$ac_ext" <<_ACEOF
26242 #line 26242 "configure"
26243 #include "confdefs.h"
26244 #include <$ac_header>
26246 if { (eval echo "$as_me:26246: \"$ac_cpp "conftest.$ac_ext"\"") >&5
26247 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
26249 $EGREP -v '^ *\+' conftest.er1 >conftest.err
26251 cat conftest.err >&5
26252 echo "$as_me:26252: \$? = $ac_status" >&5
26253 (exit "$ac_status"); } >/dev/null; then
26254 if test -s conftest.err; then
26255 ac_cpp_err=$ac_cxx_preproc_warn_flag
26262 if test -z "$ac_cpp_err"; then
26263 eval "$as_ac_Header=yes"
26265 echo "$as_me: failed program was:" >&5
26266 cat "conftest.$ac_ext" >&5
26267 eval "$as_ac_Header=no"
26269 rm -f conftest.err "conftest.$ac_ext"
26271 echo "$as_me:26271: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
26272 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
26273 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
26274 cat >>confdefs.h <<EOF
26275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26281 for ac_header in iostream
26283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26284 echo "$as_me:26284: checking for $ac_header" >&5
26285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 cat >"conftest.$ac_ext" <<_ACEOF
26290 #line 26290 "configure"
26291 #include "confdefs.h"
26292 #include <$ac_header>
26294 if { (eval echo "$as_me:26294: \"$ac_cpp "conftest.$ac_ext"\"") >&5
26295 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
26297 $EGREP -v '^ *\+' conftest.er1 >conftest.err
26299 cat conftest.err >&5
26300 echo "$as_me:26300: \$? = $ac_status" >&5
26301 (exit "$ac_status"); } >/dev/null; then
26302 if test -s conftest.err; then
26303 ac_cpp_err=$ac_cxx_preproc_warn_flag
26310 if test -z "$ac_cpp_err"; then
26311 eval "$as_ac_Header=yes"
26313 echo "$as_me: failed program was:" >&5
26314 cat "conftest.$ac_ext" >&5
26315 eval "$as_ac_Header=no"
26317 rm -f conftest.err "conftest.$ac_ext"
26319 echo "$as_me:26319: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
26320 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
26321 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
26322 cat >>confdefs.h <<EOF
26323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26329 if test x"$ac_cv_header_iostream" = xyes ; then
26330 echo "$as_me:26330: checking if iostream uses std-namespace" >&5
26331 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
26332 cat >"conftest.$ac_ext" <<_ACEOF
26333 #line 26333 "configure"
26334 #include "confdefs.h"
26336 #include <iostream>
26343 cerr << "testing" << endl;
26349 rm -f "conftest.$ac_objext"
26350 if { (eval echo "$as_me:26350: \"$ac_compile\"") >&5
26351 (eval $ac_compile) 2>&5
26353 echo "$as_me:26353: \$? = $ac_status" >&5
26354 (exit "$ac_status"); } &&
26355 { ac_try='test -s "conftest.$ac_objext"'
26356 { (eval echo "$as_me:26356: \"$ac_try\"") >&5
26357 (eval $ac_try) 2>&5
26359 echo "$as_me:26359: \$? = $ac_status" >&5
26360 (exit "$ac_status"); }; }; then
26361 cf_iostream_namespace=yes
26363 echo "$as_me: failed program was:" >&5
26364 cat "conftest.$ac_ext" >&5
26365 cf_iostream_namespace=no
26367 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26368 echo "$as_me:26368: result: $cf_iostream_namespace" >&5
26369 echo "${ECHO_T}$cf_iostream_namespace" >&6
26370 if test "$cf_iostream_namespace" = yes ; then
26372 cat >>confdefs.h <<\EOF
26373 #define IOSTREAM_NAMESPACE 1
26379 echo "$as_me:26379: checking if we should include stdbool.h" >&5
26380 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
26382 if test "${cf_cv_header_stdbool_h+set}" = set; then
26383 echo $ECHO_N "(cached) $ECHO_C" >&6
26386 cat >"conftest.$ac_ext" <<_ACEOF
26387 #line 26387 "configure"
26388 #include "confdefs.h"
26393 bool foo = false; (void)foo
26398 rm -f "conftest.$ac_objext"
26399 if { (eval echo "$as_me:26399: \"$ac_compile\"") >&5
26400 (eval $ac_compile) 2>&5
26402 echo "$as_me:26402: \$? = $ac_status" >&5
26403 (exit "$ac_status"); } &&
26404 { ac_try='test -s "conftest.$ac_objext"'
26405 { (eval echo "$as_me:26405: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26408 echo "$as_me:26408: \$? = $ac_status" >&5
26409 (exit "$ac_status"); }; }; then
26410 cf_cv_header_stdbool_h=0
26412 echo "$as_me: failed program was:" >&5
26413 cat "conftest.$ac_ext" >&5
26414 cat >"conftest.$ac_ext" <<_ACEOF
26415 #line 26415 "configure"
26416 #include "confdefs.h"
26419 #include <stdbool.h>
26425 bool foo = false; (void)foo
26430 rm -f "conftest.$ac_objext"
26431 if { (eval echo "$as_me:26431: \"$ac_compile\"") >&5
26432 (eval $ac_compile) 2>&5
26434 echo "$as_me:26434: \$? = $ac_status" >&5
26435 (exit "$ac_status"); } &&
26436 { ac_try='test -s "conftest.$ac_objext"'
26437 { (eval echo "$as_me:26437: \"$ac_try\"") >&5
26438 (eval $ac_try) 2>&5
26440 echo "$as_me:26440: \$? = $ac_status" >&5
26441 (exit "$ac_status"); }; }; then
26442 cf_cv_header_stdbool_h=1
26444 echo "$as_me: failed program was:" >&5
26445 cat "conftest.$ac_ext" >&5
26446 cf_cv_header_stdbool_h=0
26448 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26450 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26453 if test "$cf_cv_header_stdbool_h" = 1
26454 then echo "$as_me:26454: result: yes" >&5
26455 echo "${ECHO_T}yes" >&6
26456 else echo "$as_me:26456: result: no" >&5
26457 echo "${ECHO_T}no" >&6
26460 echo "$as_me:26460: checking for builtin bool type" >&5
26461 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
26463 if test "${cf_cv_builtin_bool+set}" = set; then
26464 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 cat >"conftest.$ac_ext" <<_ACEOF
26468 #line 26468 "configure"
26469 #include "confdefs.h"
26472 #include <sys/types.h>
26477 bool x = false; (void)x
26482 rm -f "conftest.$ac_objext"
26483 if { (eval echo "$as_me:26483: \"$ac_compile\"") >&5
26484 (eval $ac_compile) 2>&5
26486 echo "$as_me:26486: \$? = $ac_status" >&5
26487 (exit "$ac_status"); } &&
26488 { ac_try='test -s "conftest.$ac_objext"'
26489 { (eval echo "$as_me:26489: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26492 echo "$as_me:26492: \$? = $ac_status" >&5
26493 (exit "$ac_status"); }; }; then
26494 cf_cv_builtin_bool=1
26496 echo "$as_me: failed program was:" >&5
26497 cat "conftest.$ac_ext" >&5
26498 cf_cv_builtin_bool=0
26500 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26504 if test "$cf_cv_builtin_bool" = 1
26505 then echo "$as_me:26505: result: yes" >&5
26506 echo "${ECHO_T}yes" >&6
26507 else echo "$as_me:26507: result: no" >&5
26508 echo "${ECHO_T}no" >&6
26511 echo "$as_me:26511: checking for bool" >&5
26512 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26513 if test "${ac_cv_type_bool+set}" = set; then
26514 echo $ECHO_N "(cached) $ECHO_C" >&6
26516 cat >"conftest.$ac_ext" <<_ACEOF
26517 #line 26517 "configure"
26518 #include "confdefs.h"
26520 $ac_includes_default
26522 #if defined(__cplusplus)
26524 #ifdef HAVE_GXX_BUILTIN_H
26525 #include <g++/builtin.h>
26526 #elif HAVE_GPP_BUILTIN_H
26527 #include <gpp/builtin.h>
26528 #elif HAVE_BUILTIN_H
26529 #include <builtin.h>
26534 #if $cf_cv_header_stdbool_h
26535 #include <stdbool.h>
26551 rm -f "conftest.$ac_objext"
26552 if { (eval echo "$as_me:26552: \"$ac_compile\"") >&5
26553 (eval $ac_compile) 2>&5
26555 echo "$as_me:26555: \$? = $ac_status" >&5
26556 (exit "$ac_status"); } &&
26557 { ac_try='test -s "conftest.$ac_objext"'
26558 { (eval echo "$as_me:26558: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26561 echo "$as_me:26561: \$? = $ac_status" >&5
26562 (exit "$ac_status"); }; }; then
26563 ac_cv_type_bool=yes
26565 echo "$as_me: failed program was:" >&5
26566 cat "conftest.$ac_ext" >&5
26569 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26571 echo "$as_me:26571: result: $ac_cv_type_bool" >&5
26572 echo "${ECHO_T}$ac_cv_type_bool" >&6
26574 echo "$as_me:26574: checking size of bool" >&5
26575 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26576 if test "${ac_cv_sizeof_bool+set}" = set; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26579 if test "$ac_cv_type_bool" = yes; then
26580 if test "$cross_compiling" = yes; then
26581 # Depending upon the size, compute the lo and hi bounds.
26582 cat >"conftest.$ac_ext" <<_ACEOF
26583 #line 26583 "configure"
26584 #include "confdefs.h"
26586 $ac_includes_default
26588 #if defined(__cplusplus)
26590 #ifdef HAVE_GXX_BUILTIN_H
26591 #include <g++/builtin.h>
26592 #elif HAVE_GPP_BUILTIN_H
26593 #include <gpp/builtin.h>
26594 #elif HAVE_BUILTIN_H
26595 #include <builtin.h>
26600 #if $cf_cv_header_stdbool_h
26601 #include <stdbool.h>
26609 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26614 rm -f "conftest.$ac_objext"
26615 if { (eval echo "$as_me:26615: \"$ac_compile\"") >&5
26616 (eval $ac_compile) 2>&5
26618 echo "$as_me:26618: \$? = $ac_status" >&5
26619 (exit "$ac_status"); } &&
26620 { ac_try='test -s "conftest.$ac_objext"'
26621 { (eval echo "$as_me:26621: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26624 echo "$as_me:26624: \$? = $ac_status" >&5
26625 (exit "$ac_status"); }; }; then
26628 cat >"conftest.$ac_ext" <<_ACEOF
26629 #line 26629 "configure"
26630 #include "confdefs.h"
26632 $ac_includes_default
26634 #if defined(__cplusplus)
26636 #ifdef HAVE_GXX_BUILTIN_H
26637 #include <g++/builtin.h>
26638 #elif HAVE_GPP_BUILTIN_H
26639 #include <gpp/builtin.h>
26640 #elif HAVE_BUILTIN_H
26641 #include <builtin.h>
26646 #if $cf_cv_header_stdbool_h
26647 #include <stdbool.h>
26655 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26660 rm -f "conftest.$ac_objext"
26661 if { (eval echo "$as_me:26661: \"$ac_compile\"") >&5
26662 (eval $ac_compile) 2>&5
26664 echo "$as_me:26664: \$? = $ac_status" >&5
26665 (exit "$ac_status"); } &&
26666 { ac_try='test -s "conftest.$ac_objext"'
26667 { (eval echo "$as_me:26667: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26670 echo "$as_me:26670: \$? = $ac_status" >&5
26671 (exit "$ac_status"); }; }; then
26672 ac_hi=$ac_mid; break
26674 echo "$as_me: failed program was:" >&5
26675 cat "conftest.$ac_ext" >&5
26676 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26678 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26681 echo "$as_me: failed program was:" >&5
26682 cat "conftest.$ac_ext" >&5
26685 cat >"conftest.$ac_ext" <<_ACEOF
26686 #line 26686 "configure"
26687 #include "confdefs.h"
26689 $ac_includes_default
26691 #if defined(__cplusplus)
26693 #ifdef HAVE_GXX_BUILTIN_H
26694 #include <g++/builtin.h>
26695 #elif HAVE_GPP_BUILTIN_H
26696 #include <gpp/builtin.h>
26697 #elif HAVE_BUILTIN_H
26698 #include <builtin.h>
26703 #if $cf_cv_header_stdbool_h
26704 #include <stdbool.h>
26712 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26717 rm -f "conftest.$ac_objext"
26718 if { (eval echo "$as_me:26718: \"$ac_compile\"") >&5
26719 (eval $ac_compile) 2>&5
26721 echo "$as_me:26721: \$? = $ac_status" >&5
26722 (exit "$ac_status"); } &&
26723 { ac_try='test -s "conftest.$ac_objext"'
26724 { (eval echo "$as_me:26724: \"$ac_try\"") >&5
26725 (eval $ac_try) 2>&5
26727 echo "$as_me:26727: \$? = $ac_status" >&5
26728 (exit "$ac_status"); }; }; then
26729 ac_lo=$ac_mid; break
26731 echo "$as_me: failed program was:" >&5
26732 cat "conftest.$ac_ext" >&5
26733 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26735 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26738 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26739 # Binary search between lo and hi bounds.
26740 while test "x$ac_lo" != "x$ac_hi"; do
26741 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26742 cat >"conftest.$ac_ext" <<_ACEOF
26743 #line 26743 "configure"
26744 #include "confdefs.h"
26746 $ac_includes_default
26748 #if defined(__cplusplus)
26750 #ifdef HAVE_GXX_BUILTIN_H
26751 #include <g++/builtin.h>
26752 #elif HAVE_GPP_BUILTIN_H
26753 #include <gpp/builtin.h>
26754 #elif HAVE_BUILTIN_H
26755 #include <builtin.h>
26760 #if $cf_cv_header_stdbool_h
26761 #include <stdbool.h>
26769 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26774 rm -f "conftest.$ac_objext"
26775 if { (eval echo "$as_me:26775: \"$ac_compile\"") >&5
26776 (eval $ac_compile) 2>&5
26778 echo "$as_me:26778: \$? = $ac_status" >&5
26779 (exit "$ac_status"); } &&
26780 { ac_try='test -s "conftest.$ac_objext"'
26781 { (eval echo "$as_me:26781: \"$ac_try\"") >&5
26782 (eval $ac_try) 2>&5
26784 echo "$as_me:26784: \$? = $ac_status" >&5
26785 (exit "$ac_status"); }; }; then
26788 echo "$as_me: failed program was:" >&5
26789 cat "conftest.$ac_ext" >&5
26790 ac_lo=`expr "$ac_mid" + 1`
26792 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26794 ac_cv_sizeof_bool=$ac_lo
26796 if test "$cross_compiling" = yes; then
26797 { { echo "$as_me:26797: error: cannot run test program while cross compiling" >&5
26798 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26799 { (exit 1); exit 1; }; }
26801 cat >"conftest.$ac_ext" <<_ACEOF
26802 #line 26802 "configure"
26803 #include "confdefs.h"
26805 $ac_includes_default
26807 #if defined(__cplusplus)
26809 #ifdef HAVE_GXX_BUILTIN_H
26810 #include <g++/builtin.h>
26811 #elif HAVE_GPP_BUILTIN_H
26812 #include <gpp/builtin.h>
26813 #elif HAVE_BUILTIN_H
26814 #include <builtin.h>
26819 #if $cf_cv_header_stdbool_h
26820 #include <stdbool.h>
26828 FILE *f = fopen ("conftest.val", "w");
26830 $ac_main_return (1);
26831 fprintf (f, "%ld", (long)(sizeof (bool)));
26837 rm -f "conftest$ac_exeext"
26838 if { (eval echo "$as_me:26838: \"$ac_link\"") >&5
26839 (eval $ac_link) 2>&5
26841 echo "$as_me:26841: \$? = $ac_status" >&5
26842 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26843 { (eval echo "$as_me:26843: \"$ac_try\"") >&5
26844 (eval $ac_try) 2>&5
26846 echo "$as_me:26846: \$? = $ac_status" >&5
26847 (exit "$ac_status"); }; }; then
26848 ac_cv_sizeof_bool=`cat conftest.val`
26850 echo "$as_me: program exited with status $ac_status" >&5
26851 echo "$as_me: failed program was:" >&5
26852 cat "conftest.$ac_ext" >&5
26854 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26859 ac_cv_sizeof_bool=0
26862 echo "$as_me:26862: result: $ac_cv_sizeof_bool" >&5
26863 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26864 cat >>confdefs.h <<EOF
26865 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26868 echo "$as_me:26868: checking for type of bool" >&5
26869 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26870 if test "${cf_cv_type_of_bool+set}" = set; then
26871 echo $ECHO_N "(cached) $ECHO_C" >&6
26875 if test "$cross_compiling" = yes; then
26877 case x$ac_cv_sizeof_bool in
26878 (x1) cf_cv_type_of_bool="unsigned char";;
26879 (x2) cf_cv_type_of_bool="unsigned short";;
26880 (x4) cf_cv_type_of_bool="unsigned int";;
26881 (x8) cf_cv_type_of_bool="unsigned long";;
26882 (*) cf_cv_type_of_bool=unknown;;
26886 cat >"conftest.$ac_ext" <<_ACEOF
26887 #line 26887 "configure"
26888 #include "confdefs.h"
26890 $ac_includes_default
26892 #if defined(__cplusplus)
26894 #ifdef HAVE_GXX_BUILTIN_H
26895 #include <g++/builtin.h>
26896 #elif HAVE_GPP_BUILTIN_H
26897 #include <gpp/builtin.h>
26898 #elif HAVE_BUILTIN_H
26899 #include <builtin.h>
26904 #if $cf_cv_header_stdbool_h
26905 #include <stdbool.h>
26912 FILE *fp = fopen("cf_test.out", "w");
26915 if ((bool)(-x) >= 0)
26916 fputs("unsigned ", fp);
26917 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26918 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26919 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26920 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26923 ${cf_cv_main_return:-return}(0);
26927 rm -f "conftest$ac_exeext"
26928 if { (eval echo "$as_me:26928: \"$ac_link\"") >&5
26929 (eval $ac_link) 2>&5
26931 echo "$as_me:26931: \$? = $ac_status" >&5
26932 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26933 { (eval echo "$as_me:26933: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26936 echo "$as_me:26936: \$? = $ac_status" >&5
26937 (exit "$ac_status"); }; }; then
26938 cf_cv_type_of_bool=`cat cf_test.out`
26939 if test -z "$cf_cv_type_of_bool"; then
26940 cf_cv_type_of_bool=unknown
26943 echo "$as_me: program exited with status $ac_status" >&5
26944 echo "$as_me: failed program was:" >&5
26945 cat "conftest.$ac_ext" >&5
26946 cf_cv_type_of_bool=unknown
26948 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26953 echo "$as_me:26953: result: $cf_cv_type_of_bool" >&5
26954 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26956 if test "$cf_cv_type_of_bool" = unknown ; then
26957 case .$NCURSES_BOOL in
26958 (.auto|.) NCURSES_BOOL=unsigned;;
26960 { echo "$as_me:26960: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26961 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26962 cf_cv_type_of_bool=$NCURSES_BOOL
26965 echo "$as_me:26965: checking for special defines needed for etip.h" >&5
26966 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26967 cf_save_CXXFLAGS="$CXXFLAGS"
26970 # etip.h includes ncurses.h which includes ncurses_dll.h
26971 # But ncurses_dll.h is generated - fix here.
26972 test -d include || mkdir include
26973 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
26975 for cf_math in "" MATH_H
26977 for cf_excp in "" MATH_EXCEPTION
26979 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26980 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26981 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26982 cat >"conftest.$ac_ext" <<_ACEOF
26983 #line 26983 "configure"
26984 #include "confdefs.h"
26986 #include <etip.h.in>
26996 rm -f "conftest.$ac_objext"
26997 if { (eval echo "$as_me:26997: \"$ac_compile\"") >&5
26998 (eval $ac_compile) 2>&5
27000 echo "$as_me:27000: \$? = $ac_status" >&5
27001 (exit "$ac_status"); } &&
27002 { ac_try='test -s "conftest.$ac_objext"'
27003 { (eval echo "$as_me:27003: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27006 echo "$as_me:27006: \$? = $ac_status" >&5
27007 (exit "$ac_status"); }; }; then
27009 test -n "$cf_math" && cat >>confdefs.h <<EOF
27010 #define ETIP_NEEDS_${cf_math} 1
27013 test -n "$cf_excp" && cat >>confdefs.h <<EOF
27014 #define ETIP_NEEDS_${cf_excp} 1
27017 cf_result="$cf_math $cf_excp"
27021 echo "$as_me: failed program was:" >&5
27022 cat "conftest.$ac_ext" >&5
27024 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27027 echo "$as_me:27027: result: ${cf_result:-(none)}" >&5
27028 echo "${ECHO_T}${cf_result:-(none)}" >&6
27029 CXXFLAGS="$cf_save_CXXFLAGS"
27031 if test -n "$CXX"; then
27032 echo "$as_me:27032: checking if $CXX accepts override keyword" >&5
27033 echo $ECHO_N "checking if $CXX accepts override keyword... $ECHO_C" >&6
27034 if test "${cf_cv_cpp_override+set}" = set; then
27035 echo $ECHO_N "(cached) $ECHO_C" >&6
27039 ac_cpp='$CXXCPP $CPPFLAGS'
27040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
27041 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
27042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27043 ac_main_return="return"
27045 if test "$cross_compiling" = yes; then
27046 cf_cv_cpp_override=unknown
27048 cat >"conftest.$ac_ext" <<_ACEOF
27049 #line 27049 "configure"
27050 #include "confdefs.h"
27055 virtual int foo(float x) = 0;
27058 class derived: public base
27061 int foo(float x) override { return x != 0.0 ? 1 : 0; }
27067 rm -f "conftest$ac_exeext"
27068 if { (eval echo "$as_me:27068: \"$ac_link\"") >&5
27069 (eval $ac_link) 2>&5
27071 echo "$as_me:27071: \$? = $ac_status" >&5
27072 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27073 { (eval echo "$as_me:27073: \"$ac_try\"") >&5
27074 (eval $ac_try) 2>&5
27076 echo "$as_me:27076: \$? = $ac_status" >&5
27077 (exit "$ac_status"); }; }; then
27078 cf_cv_cpp_override=yes
27080 echo "$as_me: program exited with status $ac_status" >&5
27081 echo "$as_me: failed program was:" >&5
27082 cat "conftest.$ac_ext" >&5
27083 cf_cv_cpp_override=no
27085 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27088 ac_cpp='$CXXCPP $CPPFLAGS'
27089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
27090 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
27091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27092 ac_main_return="return"
27095 echo "$as_me:27095: result: $cf_cv_cpp_override" >&5
27096 echo "${ECHO_T}$cf_cv_cpp_override" >&6
27098 test "$cf_cv_cpp_override" = yes &&
27099 cat >>confdefs.h <<\EOF
27100 #define CPP_HAS_OVERRIDE 1
27103 if test -n "$CXX"; then
27104 echo "$as_me:27104: checking if $CXX accepts parameter initialization" >&5
27105 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
27106 if test "${cf_cv_cpp_param_init+set}" = set; then
27107 echo $ECHO_N "(cached) $ECHO_C" >&6
27111 ac_cpp='$CXXCPP $CPPFLAGS'
27112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
27113 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
27114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27115 ac_main_return="return"
27117 if test "$cross_compiling" = yes; then
27118 cf_cv_cpp_param_init=unknown
27120 cat >"conftest.$ac_ext" <<_ACEOF
27121 #line 27121 "configure"
27122 #include "confdefs.h"
27132 TEST::TEST(int x = 1) // some compilers do not like second initializer
27139 rm -f "conftest$ac_exeext"
27140 if { (eval echo "$as_me:27140: \"$ac_link\"") >&5
27141 (eval $ac_link) 2>&5
27143 echo "$as_me:27143: \$? = $ac_status" >&5
27144 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27145 { (eval echo "$as_me:27145: \"$ac_try\"") >&5
27146 (eval $ac_try) 2>&5
27148 echo "$as_me:27148: \$? = $ac_status" >&5
27149 (exit "$ac_status"); }; }; then
27150 cf_cv_cpp_param_init=yes
27152 echo "$as_me: program exited with status $ac_status" >&5
27153 echo "$as_me: failed program was:" >&5
27154 cat "conftest.$ac_ext" >&5
27155 cf_cv_cpp_param_init=no
27157 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27160 ac_cpp='$CXXCPP $CPPFLAGS'
27161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
27162 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
27163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27164 ac_main_return="return"
27167 echo "$as_me:27167: result: $cf_cv_cpp_param_init" >&5
27168 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
27170 test "$cf_cv_cpp_param_init" = yes &&
27171 cat >>confdefs.h <<\EOF
27172 #define CPP_HAS_PARAM_INIT 1
27175 if test -n "$CXX"; then
27177 echo "$as_me:27177: checking if $CXX accepts static_cast" >&5
27178 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
27179 if test "${cf_cv_cpp_static_cast+set}" = set; then
27180 echo $ECHO_N "(cached) $ECHO_C" >&6
27184 ac_cpp='$CXXCPP $CPPFLAGS'
27185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
27186 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
27187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27188 ac_main_return="return"
27190 cat >"conftest.$ac_ext" <<_ACEOF
27191 #line 27191 "configure"
27192 #include "confdefs.h"
27197 NCursesPanel(int nlines,
27207 template<class T> class NCursesUserPanel : public NCursesPanel
27210 NCursesUserPanel (int nlines,
27214 const T* p_UserData = static_cast<T*>(0))
27215 : NCursesPanel (nlines, ncols, begin_y, begin_x)
27218 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
27222 virtual ~NCursesUserPanel() {};
27229 const char* p_UserData = static_cast<char*>(0)
27234 rm -f "conftest.$ac_objext"
27235 if { (eval echo "$as_me:27235: \"$ac_compile\"") >&5
27236 (eval $ac_compile) 2>&5
27238 echo "$as_me:27238: \$? = $ac_status" >&5
27239 (exit "$ac_status"); } &&
27240 { ac_try='test -s "conftest.$ac_objext"'
27241 { (eval echo "$as_me:27241: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27244 echo "$as_me:27244: \$? = $ac_status" >&5
27245 (exit "$ac_status"); }; }; then
27246 cf_cv_cpp_static_cast=yes
27248 echo "$as_me: failed program was:" >&5
27249 cat "conftest.$ac_ext" >&5
27250 cf_cv_cpp_static_cast=no
27252 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27255 ac_cpp='$CXXCPP $CPPFLAGS'
27256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
27257 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
27258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27259 ac_main_return="return"
27262 echo "$as_me:27262: result: $cf_cv_cpp_static_cast" >&5
27263 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
27267 test "$cf_cv_cpp_static_cast" = yes &&
27268 cat >>confdefs.h <<\EOF
27269 #define CPP_HAS_STATIC_CAST 1
27273 CXX_ARFLAGS='$(ARFLAGS)'
27274 case "$cf_cv_system_name" in
27276 if test "$GXX" != yes ; then
27278 CXX_ARFLAGS='-ar -o'
27282 CXXLDFLAGS="-u main"
27285 if test "$GXX" != yes ; then
27287 CXX_ARFLAGS='-xar -o'
27294 cf_cv_builtin_bool=1
27296 # Just because we are not configuring against C++ right now does not
27297 # mean that a user will not want to use C++. Some distributors disable
27298 # the C++ portion of this configuration as a shortcut (or just to avoid
27299 # compiling the demo in the c++ directory). So we need a reasonable
27300 # default for the 'bool' type.
27302 # Caveat: since the storage of the bool type is not standardized, it
27305 if test "$NCURSES_BOOL" != auto ; then
27306 cf_cv_type_of_bool=$NCURSES_BOOL
27307 cf_cv_header_stdbool_h=0
27309 if test "$cf_cv_header_stdbool_h" = 1 ; then
27311 echo "$as_me:27311: checking for bool" >&5
27312 echo $ECHO_N "checking for bool... $ECHO_C" >&6
27313 if test "${ac_cv_type_bool+set}" = set; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27316 cat >"conftest.$ac_ext" <<_ACEOF
27317 #line 27317 "configure"
27318 #include "confdefs.h"
27320 $ac_includes_default
27322 #if defined(__cplusplus)
27324 #ifdef HAVE_GXX_BUILTIN_H
27325 #include <g++/builtin.h>
27326 #elif HAVE_GPP_BUILTIN_H
27327 #include <gpp/builtin.h>
27328 #elif HAVE_BUILTIN_H
27329 #include <builtin.h>
27334 #if $cf_cv_header_stdbool_h
27335 #include <stdbool.h>
27351 rm -f "conftest.$ac_objext"
27352 if { (eval echo "$as_me:27352: \"$ac_compile\"") >&5
27353 (eval $ac_compile) 2>&5
27355 echo "$as_me:27355: \$? = $ac_status" >&5
27356 (exit "$ac_status"); } &&
27357 { ac_try='test -s "conftest.$ac_objext"'
27358 { (eval echo "$as_me:27358: \"$ac_try\"") >&5
27359 (eval $ac_try) 2>&5
27361 echo "$as_me:27361: \$? = $ac_status" >&5
27362 (exit "$ac_status"); }; }; then
27363 ac_cv_type_bool=yes
27365 echo "$as_me: failed program was:" >&5
27366 cat "conftest.$ac_ext" >&5
27369 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27371 echo "$as_me:27371: result: $ac_cv_type_bool" >&5
27372 echo "${ECHO_T}$ac_cv_type_bool" >&6
27374 echo "$as_me:27374: checking size of bool" >&5
27375 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
27376 if test "${ac_cv_sizeof_bool+set}" = set; then
27377 echo $ECHO_N "(cached) $ECHO_C" >&6
27379 if test "$ac_cv_type_bool" = yes; then
27380 if test "$cross_compiling" = yes; then
27381 # Depending upon the size, compute the lo and hi bounds.
27382 cat >"conftest.$ac_ext" <<_ACEOF
27383 #line 27383 "configure"
27384 #include "confdefs.h"
27386 $ac_includes_default
27388 #if defined(__cplusplus)
27390 #ifdef HAVE_GXX_BUILTIN_H
27391 #include <g++/builtin.h>
27392 #elif HAVE_GPP_BUILTIN_H
27393 #include <gpp/builtin.h>
27394 #elif HAVE_BUILTIN_H
27395 #include <builtin.h>
27400 #if $cf_cv_header_stdbool_h
27401 #include <stdbool.h>
27409 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
27414 rm -f "conftest.$ac_objext"
27415 if { (eval echo "$as_me:27415: \"$ac_compile\"") >&5
27416 (eval $ac_compile) 2>&5
27418 echo "$as_me:27418: \$? = $ac_status" >&5
27419 (exit "$ac_status"); } &&
27420 { ac_try='test -s "conftest.$ac_objext"'
27421 { (eval echo "$as_me:27421: \"$ac_try\"") >&5
27422 (eval $ac_try) 2>&5
27424 echo "$as_me:27424: \$? = $ac_status" >&5
27425 (exit "$ac_status"); }; }; then
27428 cat >"conftest.$ac_ext" <<_ACEOF
27429 #line 27429 "configure"
27430 #include "confdefs.h"
27432 $ac_includes_default
27434 #if defined(__cplusplus)
27436 #ifdef HAVE_GXX_BUILTIN_H
27437 #include <g++/builtin.h>
27438 #elif HAVE_GPP_BUILTIN_H
27439 #include <gpp/builtin.h>
27440 #elif HAVE_BUILTIN_H
27441 #include <builtin.h>
27446 #if $cf_cv_header_stdbool_h
27447 #include <stdbool.h>
27455 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
27460 rm -f "conftest.$ac_objext"
27461 if { (eval echo "$as_me:27461: \"$ac_compile\"") >&5
27462 (eval $ac_compile) 2>&5
27464 echo "$as_me:27464: \$? = $ac_status" >&5
27465 (exit "$ac_status"); } &&
27466 { ac_try='test -s "conftest.$ac_objext"'
27467 { (eval echo "$as_me:27467: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27470 echo "$as_me:27470: \$? = $ac_status" >&5
27471 (exit "$ac_status"); }; }; then
27472 ac_hi=$ac_mid; break
27474 echo "$as_me: failed program was:" >&5
27475 cat "conftest.$ac_ext" >&5
27476 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27478 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27481 echo "$as_me: failed program was:" >&5
27482 cat "conftest.$ac_ext" >&5
27485 cat >"conftest.$ac_ext" <<_ACEOF
27486 #line 27486 "configure"
27487 #include "confdefs.h"
27489 $ac_includes_default
27491 #if defined(__cplusplus)
27493 #ifdef HAVE_GXX_BUILTIN_H
27494 #include <g++/builtin.h>
27495 #elif HAVE_GPP_BUILTIN_H
27496 #include <gpp/builtin.h>
27497 #elif HAVE_BUILTIN_H
27498 #include <builtin.h>
27503 #if $cf_cv_header_stdbool_h
27504 #include <stdbool.h>
27512 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
27517 rm -f "conftest.$ac_objext"
27518 if { (eval echo "$as_me:27518: \"$ac_compile\"") >&5
27519 (eval $ac_compile) 2>&5
27521 echo "$as_me:27521: \$? = $ac_status" >&5
27522 (exit "$ac_status"); } &&
27523 { ac_try='test -s "conftest.$ac_objext"'
27524 { (eval echo "$as_me:27524: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27527 echo "$as_me:27527: \$? = $ac_status" >&5
27528 (exit "$ac_status"); }; }; then
27529 ac_lo=$ac_mid; break
27531 echo "$as_me: failed program was:" >&5
27532 cat "conftest.$ac_ext" >&5
27533 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27535 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27538 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27539 # Binary search between lo and hi bounds.
27540 while test "x$ac_lo" != "x$ac_hi"; do
27541 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27542 cat >"conftest.$ac_ext" <<_ACEOF
27543 #line 27543 "configure"
27544 #include "confdefs.h"
27546 $ac_includes_default
27548 #if defined(__cplusplus)
27550 #ifdef HAVE_GXX_BUILTIN_H
27551 #include <g++/builtin.h>
27552 #elif HAVE_GPP_BUILTIN_H
27553 #include <gpp/builtin.h>
27554 #elif HAVE_BUILTIN_H
27555 #include <builtin.h>
27560 #if $cf_cv_header_stdbool_h
27561 #include <stdbool.h>
27569 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
27574 rm -f "conftest.$ac_objext"
27575 if { (eval echo "$as_me:27575: \"$ac_compile\"") >&5
27576 (eval $ac_compile) 2>&5
27578 echo "$as_me:27578: \$? = $ac_status" >&5
27579 (exit "$ac_status"); } &&
27580 { ac_try='test -s "conftest.$ac_objext"'
27581 { (eval echo "$as_me:27581: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27584 echo "$as_me:27584: \$? = $ac_status" >&5
27585 (exit "$ac_status"); }; }; then
27588 echo "$as_me: failed program was:" >&5
27589 cat "conftest.$ac_ext" >&5
27590 ac_lo=`expr "$ac_mid" + 1`
27592 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27594 ac_cv_sizeof_bool=$ac_lo
27596 if test "$cross_compiling" = yes; then
27597 { { echo "$as_me:27597: error: cannot run test program while cross compiling" >&5
27598 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27599 { (exit 1); exit 1; }; }
27601 cat >"conftest.$ac_ext" <<_ACEOF
27602 #line 27602 "configure"
27603 #include "confdefs.h"
27605 $ac_includes_default
27607 #if defined(__cplusplus)
27609 #ifdef HAVE_GXX_BUILTIN_H
27610 #include <g++/builtin.h>
27611 #elif HAVE_GPP_BUILTIN_H
27612 #include <gpp/builtin.h>
27613 #elif HAVE_BUILTIN_H
27614 #include <builtin.h>
27619 #if $cf_cv_header_stdbool_h
27620 #include <stdbool.h>
27628 FILE *f = fopen ("conftest.val", "w");
27630 $ac_main_return (1);
27631 fprintf (f, "%ld", (long)(sizeof (bool)));
27637 rm -f "conftest$ac_exeext"
27638 if { (eval echo "$as_me:27638: \"$ac_link\"") >&5
27639 (eval $ac_link) 2>&5
27641 echo "$as_me:27641: \$? = $ac_status" >&5
27642 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27643 { (eval echo "$as_me:27643: \"$ac_try\"") >&5
27644 (eval $ac_try) 2>&5
27646 echo "$as_me:27646: \$? = $ac_status" >&5
27647 (exit "$ac_status"); }; }; then
27648 ac_cv_sizeof_bool=`cat conftest.val`
27650 echo "$as_me: program exited with status $ac_status" >&5
27651 echo "$as_me: failed program was:" >&5
27652 cat "conftest.$ac_ext" >&5
27654 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27659 ac_cv_sizeof_bool=0
27662 echo "$as_me:27662: result: $ac_cv_sizeof_bool" >&5
27663 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
27664 cat >>confdefs.h <<EOF
27665 #define SIZEOF_BOOL $ac_cv_sizeof_bool
27668 echo "$as_me:27668: checking for type of bool" >&5
27669 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
27670 if test "${cf_cv_type_of_bool+set}" = set; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27675 if test "$cross_compiling" = yes; then
27677 case x$ac_cv_sizeof_bool in
27678 (x1) cf_cv_type_of_bool="unsigned char";;
27679 (x2) cf_cv_type_of_bool="unsigned short";;
27680 (x4) cf_cv_type_of_bool="unsigned int";;
27681 (x8) cf_cv_type_of_bool="unsigned long";;
27682 (*) cf_cv_type_of_bool=unknown;;
27686 cat >"conftest.$ac_ext" <<_ACEOF
27687 #line 27687 "configure"
27688 #include "confdefs.h"
27690 $ac_includes_default
27692 #if defined(__cplusplus)
27694 #ifdef HAVE_GXX_BUILTIN_H
27695 #include <g++/builtin.h>
27696 #elif HAVE_GPP_BUILTIN_H
27697 #include <gpp/builtin.h>
27698 #elif HAVE_BUILTIN_H
27699 #include <builtin.h>
27704 #if $cf_cv_header_stdbool_h
27705 #include <stdbool.h>
27712 FILE *fp = fopen("cf_test.out", "w");
27715 if ((bool)(-x) >= 0)
27716 fputs("unsigned ", fp);
27717 if (sizeof(x) == sizeof(int)) fputs("int", fp);
27718 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
27719 else if (sizeof(x) == sizeof(short))fputs("short",fp);
27720 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
27723 ${cf_cv_main_return:-return}(0);
27727 rm -f "conftest$ac_exeext"
27728 if { (eval echo "$as_me:27728: \"$ac_link\"") >&5
27729 (eval $ac_link) 2>&5
27731 echo "$as_me:27731: \$? = $ac_status" >&5
27732 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27733 { (eval echo "$as_me:27733: \"$ac_try\"") >&5
27734 (eval $ac_try) 2>&5
27736 echo "$as_me:27736: \$? = $ac_status" >&5
27737 (exit "$ac_status"); }; }; then
27738 cf_cv_type_of_bool=`cat cf_test.out`
27739 if test -z "$cf_cv_type_of_bool"; then
27740 cf_cv_type_of_bool=unknown
27743 echo "$as_me: program exited with status $ac_status" >&5
27744 echo "$as_me: failed program was:" >&5
27745 cat "conftest.$ac_ext" >&5
27746 cf_cv_type_of_bool=unknown
27748 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27753 echo "$as_me:27753: result: $cf_cv_type_of_bool" >&5
27754 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27756 if test "$cf_cv_type_of_bool" = unknown ; then
27757 case .$NCURSES_BOOL in
27758 (.auto|.) NCURSES_BOOL=unsigned;;
27760 { echo "$as_me:27760: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
27761 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
27762 cf_cv_type_of_bool=$NCURSES_BOOL
27766 echo "$as_me:27766: checking for fallback type of bool" >&5
27767 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
27768 case "$host_cpu" in
27769 (i?86) cf_cv_type_of_bool=char ;;
27770 (*) cf_cv_type_of_bool=int ;;
27772 echo "$as_me:27772: result: $cf_cv_type_of_bool" >&5
27773 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27778 # If the C compiler did not declare bool, and we did not determine that the C++
27779 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
27780 # ncurses library use the same type as C++ bool. Note that this allows one to
27781 # specify the type of bool in a configure-script option and postpone
27782 # integration with the C++ compiler provided that the types are compatible.
27784 if test "$cf_cv_cc_bool_type" = 1
27786 # oops: C has a bool. Unlikely, but C++ could differ.
27788 elif test "$cf_cv_builtin_bool" = 0
27793 # this is the normal case
27794 USE_CXX_BOOL='defined(__cplusplus)'
27797 if test -f "${srcdir}/Ada95/Makefile.in" ; then
27799 if test "$cf_with_ada" != "no" ; then
27800 if test "$with_libtool" != "no"; then
27801 { echo "$as_me:27801: WARNING: libtool does not support Ada - disabling feature" >&5
27802 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
27807 if test "$cf_with_ada" != "no" ; then
27808 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27810 ADAFLAGS="$ADAFLAGS -gnatpn"
27812 echo "$as_me:27812: checking optimization options for ADAFLAGS" >&5
27813 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27817 ADAFLAGS="$ADAFLAGS -g"
27823 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27825 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27829 echo "$as_me:27829: result: $ADAFLAGS" >&5
27830 echo "${ECHO_T}$ADAFLAGS" >&6
27832 echo "$as_me:27832: checking if GNATPREP supports -T option" >&5
27833 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27834 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27835 echo $ECHO_N "(cached) $ECHO_C" >&6
27838 cf_cv_gnatprep_opt_t=no
27839 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27842 echo "$as_me:27842: result: $cf_cv_gnatprep_opt_t" >&5
27843 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27844 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27846 echo "$as_me:27846: checking if GNAT supports generics" >&5
27847 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27848 case "$cf_cv_gnat_version" in
27849 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27850 cf_gnat_generics=yes
27853 cf_gnat_generics=no
27856 echo "$as_me:27856: result: $cf_gnat_generics" >&5
27857 echo "${ECHO_T}$cf_gnat_generics" >&6
27859 if test "$cf_gnat_generics" = yes
27861 cf_compile_generics=generics
27862 cf_generic_objects="\${GENOBJS}"
27864 cf_compile_generics=
27865 cf_generic_objects=
27868 echo "$as_me:27868: checking if GNAT supports SIGINT" >&5
27869 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27870 if test "${cf_cv_gnat_sigint+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27874 rm -rf ./conftest* ./*~conftest*
27875 cat >>conftest.ads <<CF_EOF
27876 with Ada.Interrupts.Names;
27878 package ConfTest is
27880 pragma Warnings (Off); -- the next pragma exists since 3.11p
27881 pragma Unreserve_All_Interrupts;
27882 pragma Warnings (On);
27884 protected Process is
27886 function Continue return Boolean;
27887 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27889 Done : Boolean := False;
27894 cat >>conftest.adb <<CF_EOF
27895 package body ConfTest is
27896 protected body Process is
27901 function Continue return Boolean is
27908 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27909 cf_cv_gnat_sigint=yes
27911 cf_cv_gnat_sigint=no
27913 rm -rf ./conftest* ./*~conftest*
27916 echo "$as_me:27916: result: $cf_cv_gnat_sigint" >&5
27917 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27919 if test "$cf_cv_gnat_sigint" = yes ; then
27922 USE_GNAT_SIGINT="#"
27925 cf_gnat_libraries=no
27926 cf_gnat_projects=no
27928 if test "$enable_gnat_projects" != no ; then
27929 echo "$as_me:27929: checking if GNAT supports project files" >&5
27930 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27931 case "$cf_cv_gnat_version" in
27935 case "$cf_cv_system_name" in
27939 rm -rf ./conftest* ./*~conftest*
27940 if mkdir conftest.src conftest.bin conftest.lib
27943 rm -rf ./conftest* ./*~conftest*
27944 cat >>library.gpr <<CF_EOF
27946 Kind := External ("LIB_KIND");
27947 for Library_Name use "ConfTest";
27948 for Object_Dir use ".";
27949 for Library_ALI_Dir use External("LIBRARY_DIR");
27950 for Library_Version use External ("SONAME");
27951 for Library_Kind use Kind;
27952 for Library_Dir use External("BUILD_DIR");
27953 Source_Dir := External ("SOURCE_DIR");
27954 for Source_Dirs use (Source_Dir);
27957 cat >>confpackage.ads <<CF_EOF
27958 package ConfPackage is
27959 procedure conftest;
27962 cat >>confpackage.adb <<CF_EOF
27964 package body ConfPackage is
27965 procedure conftest is
27967 Text_IO.Put ("Hello World");
27972 if ( "$cf_ada_make" $ADAFLAGS \
27974 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27975 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27976 -XSOURCE_DIR="`pwd`" \
27977 -XSONAME=libConfTest.so.1 \
27978 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27979 cf_gnat_projects=yes
27983 if test -f conftest.lib/confpackage.ali
27985 cf_gnat_libraries=yes
27987 rm -rf ./conftest* ./*~conftest*
27992 echo "$as_me:27992: result: $cf_gnat_projects" >&5
27993 echo "${ECHO_T}$cf_gnat_projects" >&6
27994 fi # enable_gnat_projects
27996 if test "$cf_gnat_projects" = yes
27998 echo "$as_me:27998: checking if GNAT supports libraries" >&5
27999 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
28000 echo "$as_me:28000: result: $cf_gnat_libraries" >&5
28001 echo "${ECHO_T}$cf_gnat_libraries" >&6
28004 USE_OLD_MAKERULES=""
28005 USE_GNAT_PROJECTS="#"
28006 USE_GNAT_MAKE_GPR="#"
28007 USE_GNAT_GPRBUILD="#"
28009 if test "$cf_gnat_projects" = yes
28011 USE_OLD_MAKERULES="#"
28012 USE_GNAT_PROJECTS=""
28013 if test "$cf_cv_VERSION_GPRBUILD" != no
28015 USE_GNAT_GPRBUILD=""
28016 elif test "$cf_cv_VERSION_GNATMAKE" != no
28018 USE_GNAT_MAKE_GPR=""
28020 { echo "$as_me:28020: WARNING: use old makefile rules since tools are missing" >&5
28021 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
28025 if test "$cf_gnat_libraries" = yes
28027 USE_GNAT_LIBRARIES=""
28029 USE_GNAT_LIBRARIES="#"
28032 echo "$as_me:28032: checking for Ada95 compiler" >&5
28033 echo $ECHO_N "checking for Ada95 compiler... $ECHO_C" >&6
28035 # Check whether --with-ada-compiler or --without-ada-compiler was given.
28036 if test "${with_ada_compiler+set}" = set; then
28037 withval="$with_ada_compiler"
28038 cf_ada_compiler=$withval
28040 cf_ada_compiler=gnatmake
28043 echo "$as_me:28043: result: $cf_ada_compiler" >&5
28044 echo "${ECHO_T}$cf_ada_compiler" >&6
28046 cf_ada_package=terminal_interface
28048 echo "$as_me:28048: checking for Ada95 include directory" >&5
28049 echo $ECHO_N "checking for Ada95 include directory... $ECHO_C" >&6
28051 # Check whether --with-ada-include or --without-ada-include was given.
28052 if test "${with_ada_include+set}" = set; then
28053 withval="$with_ada_include"
28056 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
28057 fi; if test -n "$prefix/share/ada/adainclude" ; then
28059 if test "x$prefix" != xNONE; then
28060 cf_path_syntax="$prefix"
28062 cf_path_syntax="$ac_default_prefix"
28065 case ".$withval" in
28066 (.\$\(*\)*|.\'*\'*)
28070 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
28072 (.\$\{*prefix\}*|.\$\{*dir\}*)
28073 eval withval="$withval"
28074 case ".$withval" in
28076 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
28081 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
28084 { { echo "$as_me:28084: error: expected a pathname, not \"$withval\"" >&5
28085 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
28086 { (exit 1); exit 1; }; }
28091 eval ADA_INCLUDE="$withval"
28093 echo "$as_me:28093: result: $ADA_INCLUDE" >&5
28094 echo "${ECHO_T}$ADA_INCLUDE" >&6
28096 echo "$as_me:28096: checking for Ada95 object directory" >&5
28097 echo $ECHO_N "checking for Ada95 object directory... $ECHO_C" >&6
28099 # Check whether --with-ada-objects or --without-ada-objects was given.
28100 if test "${with_ada_objects+set}" = set; then
28101 withval="$with_ada_objects"
28104 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
28105 fi; if test -n "$prefix/lib/ada/adalib" ; then
28107 if test "x$prefix" != xNONE; then
28108 cf_path_syntax="$prefix"
28110 cf_path_syntax="$ac_default_prefix"
28113 case ".$withval" in
28114 (.\$\(*\)*|.\'*\'*)
28118 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
28120 (.\$\{*prefix\}*|.\$\{*dir\}*)
28121 eval withval="$withval"
28122 case ".$withval" in
28124 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
28129 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
28132 { { echo "$as_me:28132: error: expected a pathname, not \"$withval\"" >&5
28133 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
28134 { (exit 1); exit 1; }; }
28139 eval ADA_OBJECTS="$withval"
28141 echo "$as_me:28141: result: $ADA_OBJECTS" >&5
28142 echo "${ECHO_T}$ADA_OBJECTS" >&6
28144 echo "$as_me:28144: checking whether to build an Ada95 shared library" >&5
28145 echo $ECHO_N "checking whether to build an Ada95 shared library... $ECHO_C" >&6
28147 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
28148 if test "${with_ada_sharedlib+set}" = set; then
28149 withval="$with_ada_sharedlib"
28150 with_ada_sharedlib=$withval
28152 with_ada_sharedlib=no
28154 cf_ada_sharedlib_warn=no
28156 if test "x$with_ada_sharedlib" != xno
28158 if test "x$cf_gnat_projects" != xyes
28160 with_ada_sharedlib=no
28161 cf_ada_sharedlib_warn=yes
28165 echo "$as_me:28165: result: $with_ada_sharedlib" >&5
28166 echo "${ECHO_T}$with_ada_sharedlib" >&6
28167 if test "x$cf_ada_sharedlib_warn" != xno
28169 { echo "$as_me:28169: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&5
28170 echo "$as_me: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&2;}
28173 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
28174 MAKE_ADA_SHAREDLIB="#"
28176 if test "x$with_ada_sharedlib" != xno
28178 MAKE_ADA_SHAREDLIB=
28179 if test "x$with_ada_sharedlib" != xyes
28181 ADA_SHAREDLIB="$with_ada_sharedlib"
28185 # allow the Ada binding to be renamed
28187 echo "$as_me:28187: checking for Ada95 curses library name" >&5
28188 echo $ECHO_N "checking for Ada95 curses library name... $ECHO_C" >&6
28190 # Check whether --with-ada-libname or --without-ada-libname was given.
28191 if test "${with_ada_libname+set}" = set; then
28192 withval="$with_ada_libname"
28193 ADA_LIBNAME=$withval
28195 ADA_LIBNAME=AdaCurses
28197 case "x$ADA_LIBNAME" in
28199 ADA_LIBNAME=AdaCurses
28203 echo "$as_me:28203: result: $ADA_LIBNAME" >&5
28204 echo "${ECHO_T}$ADA_LIBNAME" >&6
28212 # do this "late" to avoid conflict with header-checks
28213 if test "x$with_widec" = xyes ; then
28214 echo "$as_me:28214: checking for wchar_t" >&5
28215 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
28216 if test "${ac_cv_type_wchar_t+set}" = set; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28219 cat >"conftest.$ac_ext" <<_ACEOF
28220 #line 28220 "configure"
28221 #include "confdefs.h"
28222 $ac_includes_default
28228 if (sizeof (wchar_t))
28234 rm -f "conftest.$ac_objext"
28235 if { (eval echo "$as_me:28235: \"$ac_compile\"") >&5
28236 (eval $ac_compile) 2>&5
28238 echo "$as_me:28238: \$? = $ac_status" >&5
28239 (exit "$ac_status"); } &&
28240 { ac_try='test -s "conftest.$ac_objext"'
28241 { (eval echo "$as_me:28241: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28244 echo "$as_me:28244: \$? = $ac_status" >&5
28245 (exit "$ac_status"); }; }; then
28246 ac_cv_type_wchar_t=yes
28248 echo "$as_me: failed program was:" >&5
28249 cat "conftest.$ac_ext" >&5
28250 ac_cv_type_wchar_t=no
28252 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28254 echo "$as_me:28254: result: $ac_cv_type_wchar_t" >&5
28255 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
28257 echo "$as_me:28257: checking size of wchar_t" >&5
28258 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
28259 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28262 if test "$ac_cv_type_wchar_t" = yes; then
28263 if test "$cross_compiling" = yes; then
28264 # Depending upon the size, compute the lo and hi bounds.
28265 cat >"conftest.$ac_ext" <<_ACEOF
28266 #line 28266 "configure"
28267 #include "confdefs.h"
28268 $ac_includes_default
28272 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
28277 rm -f "conftest.$ac_objext"
28278 if { (eval echo "$as_me:28278: \"$ac_compile\"") >&5
28279 (eval $ac_compile) 2>&5
28281 echo "$as_me:28281: \$? = $ac_status" >&5
28282 (exit "$ac_status"); } &&
28283 { ac_try='test -s "conftest.$ac_objext"'
28284 { (eval echo "$as_me:28284: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28287 echo "$as_me:28287: \$? = $ac_status" >&5
28288 (exit "$ac_status"); }; }; then
28291 cat >"conftest.$ac_ext" <<_ACEOF
28292 #line 28292 "configure"
28293 #include "confdefs.h"
28294 $ac_includes_default
28298 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28303 rm -f "conftest.$ac_objext"
28304 if { (eval echo "$as_me:28304: \"$ac_compile\"") >&5
28305 (eval $ac_compile) 2>&5
28307 echo "$as_me:28307: \$? = $ac_status" >&5
28308 (exit "$ac_status"); } &&
28309 { ac_try='test -s "conftest.$ac_objext"'
28310 { (eval echo "$as_me:28310: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28313 echo "$as_me:28313: \$? = $ac_status" >&5
28314 (exit "$ac_status"); }; }; then
28315 ac_hi=$ac_mid; break
28317 echo "$as_me: failed program was:" >&5
28318 cat "conftest.$ac_ext" >&5
28319 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
28321 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28324 echo "$as_me: failed program was:" >&5
28325 cat "conftest.$ac_ext" >&5
28328 cat >"conftest.$ac_ext" <<_ACEOF
28329 #line 28329 "configure"
28330 #include "confdefs.h"
28331 $ac_includes_default
28335 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
28340 rm -f "conftest.$ac_objext"
28341 if { (eval echo "$as_me:28341: \"$ac_compile\"") >&5
28342 (eval $ac_compile) 2>&5
28344 echo "$as_me:28344: \$? = $ac_status" >&5
28345 (exit "$ac_status"); } &&
28346 { ac_try='test -s "conftest.$ac_objext"'
28347 { (eval echo "$as_me:28347: \"$ac_try\"") >&5
28348 (eval $ac_try) 2>&5
28350 echo "$as_me:28350: \$? = $ac_status" >&5
28351 (exit "$ac_status"); }; }; then
28352 ac_lo=$ac_mid; break
28354 echo "$as_me: failed program was:" >&5
28355 cat "conftest.$ac_ext" >&5
28356 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
28358 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28361 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28362 # Binary search between lo and hi bounds.
28363 while test "x$ac_lo" != "x$ac_hi"; do
28364 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
28365 cat >"conftest.$ac_ext" <<_ACEOF
28366 #line 28366 "configure"
28367 #include "confdefs.h"
28368 $ac_includes_default
28372 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28377 rm -f "conftest.$ac_objext"
28378 if { (eval echo "$as_me:28378: \"$ac_compile\"") >&5
28379 (eval $ac_compile) 2>&5
28381 echo "$as_me:28381: \$? = $ac_status" >&5
28382 (exit "$ac_status"); } &&
28383 { ac_try='test -s "conftest.$ac_objext"'
28384 { (eval echo "$as_me:28384: \"$ac_try\"") >&5
28385 (eval $ac_try) 2>&5
28387 echo "$as_me:28387: \$? = $ac_status" >&5
28388 (exit "$ac_status"); }; }; then
28391 echo "$as_me: failed program was:" >&5
28392 cat "conftest.$ac_ext" >&5
28393 ac_lo=`expr "$ac_mid" + 1`
28395 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28397 ac_cv_sizeof_wchar_t=$ac_lo
28399 if test "$cross_compiling" = yes; then
28400 { { echo "$as_me:28400: error: cannot run test program while cross compiling" >&5
28401 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28402 { (exit 1); exit 1; }; }
28404 cat >"conftest.$ac_ext" <<_ACEOF
28405 #line 28405 "configure"
28406 #include "confdefs.h"
28407 $ac_includes_default
28411 FILE *f = fopen ("conftest.val", "w");
28413 $ac_main_return (1);
28414 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
28420 rm -f "conftest$ac_exeext"
28421 if { (eval echo "$as_me:28421: \"$ac_link\"") >&5
28422 (eval $ac_link) 2>&5
28424 echo "$as_me:28424: \$? = $ac_status" >&5
28425 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
28426 { (eval echo "$as_me:28426: \"$ac_try\"") >&5
28427 (eval $ac_try) 2>&5
28429 echo "$as_me:28429: \$? = $ac_status" >&5
28430 (exit "$ac_status"); }; }; then
28431 ac_cv_sizeof_wchar_t=`cat conftest.val`
28433 echo "$as_me: program exited with status $ac_status" >&5
28434 echo "$as_me: failed program was:" >&5
28435 cat "conftest.$ac_ext" >&5
28437 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
28442 ac_cv_sizeof_wchar_t=0
28445 echo "$as_me:28445: result: $ac_cv_sizeof_wchar_t" >&5
28446 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
28447 cat >>confdefs.h <<EOF
28448 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
28451 # cross-compiling to mingw can run into the problem that attempting to
28452 # link with the regex library fails, causing the test to not set this to
28453 # a number. "recent" autoconf does not address this problem either -TD
28454 if test -z "$ac_cv_sizeof_wchar_t"
28456 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
28458 echo "${as_me:-configure}:28458: testing test failed (assume 2) ..." 1>&5
28460 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
28461 mv confdefs.tmp confdefs.h
28462 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
28466 ### Construct the ncurses library-subsets, if any, from this set of keywords:
28467 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
28469 ### ticlib modules may be a separate library, otherwise contained in termlib.
28470 ### termlib modules may be a separate library, otherwise contained in ncurses.
28472 ### The of "+" or " " between the tokens controls the way the script
28473 ### chooses to split module lists into libraries.
28475 ### (see CF_LIB_RULES).
28476 echo "$as_me:28476: checking for library subsets" >&5
28477 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
28480 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
28481 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
28482 if test "$with_ticlib" != no ; then
28483 LIB_SUBSETS="${LIB_SUBSETS} "
28485 LIB_SUBSETS="${LIB_SUBSETS}+"
28489 LIB_SUBSETS="${LIB_SUBSETS}termlib"
28490 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
28492 if test "$with_termlib" != no ; then
28493 LIB_SUBSETS="${LIB_SUBSETS} "
28495 LIB_SUBSETS="${LIB_SUBSETS}+"
28498 LIB_SUBSETS="${LIB_SUBSETS}base"
28500 # Most term-driver calls are to tinfo, but some like init_pair are to the
28501 # base library (so it resides in base).
28502 if test "$with_term_driver" != no ; then
28503 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
28504 case "$cf_cv_system_name" in
28505 (*mingw32*|*mingw64*)
28506 if test "x$with_exp_win32" = xyes ; then
28507 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
28509 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
28511 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
28514 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
28517 elif test "x$with_exp_win32" = xyes ; then
28518 case "$cf_cv_system_name" in
28519 (*mingw32*|*mingw64*)
28520 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
28527 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
28528 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
28530 echo "$as_me:28530: result: $LIB_SUBSETS" >&5
28531 echo "${ECHO_T}$LIB_SUBSETS" >&6
28533 ### Construct the list of include-directories to be generated
28535 if test "$srcdir" != "."; then
28536 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
28538 CPPFLAGS="-I../include $CPPFLAGS"
28539 if test "$srcdir" != "."; then
28540 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
28542 CPPFLAGS="-I. $CPPFLAGS"
28544 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
28545 if test "$srcdir" != "."; then
28546 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
28548 if test "$GCC" != yes; then
28549 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28550 elif test "$includedir" != "/usr/include"; then
28551 if test "$includedir" = '${prefix}/include' ; then
28552 if test x$prefix != x/usr ; then
28553 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28556 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28560 ### Build up pieces for makefile rules
28561 echo "$as_me:28561: checking default library suffix" >&5
28562 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
28564 case $DFT_LWR_MODEL in
28565 (libtool) DFT_ARG_SUFFIX='' ;;
28566 (normal) DFT_ARG_SUFFIX='' ;;
28567 (debug) DFT_ARG_SUFFIX='_g' ;;
28568 (profile) DFT_ARG_SUFFIX='_p' ;;
28569 (shared) DFT_ARG_SUFFIX='' ;;
28571 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
28572 echo "$as_me:28572: result: $DFT_ARG_SUFFIX" >&5
28573 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
28575 echo "$as_me:28575: checking default library-dependency suffix" >&5
28576 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
28578 case X$DFT_LWR_MODEL in
28580 DFT_LIB_SUFFIX='.la'
28581 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28584 case "$cf_cv_system_name" in
28586 DFT_LIB_SUFFIX='_g.lib'
28589 DFT_LIB_SUFFIX='_g.a'
28592 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28595 case "$cf_cv_system_name" in
28597 DFT_LIB_SUFFIX='_p.lib'
28600 DFT_LIB_SUFFIX='_p.a'
28603 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28606 case "$cf_cv_system_name" in
28608 DFT_LIB_SUFFIX='.so'
28609 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28612 DFT_LIB_SUFFIX='.dll'
28613 DFT_DEP_SUFFIX='.dll.lib'
28615 (cygwin*|msys*|mingw*)
28616 DFT_LIB_SUFFIX='.dll'
28617 DFT_DEP_SUFFIX='.dll.a'
28620 DFT_LIB_SUFFIX='.dylib'
28621 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28626 DFT_LIB_SUFFIX='.so'
28627 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28630 DFT_LIB_SUFFIX='.sl'
28631 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28636 DFT_LIB_SUFFIX='.so'
28637 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28644 DFT_LIB_SUFFIX='.lib'
28647 DFT_LIB_SUFFIX='.a'
28650 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28653 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28655 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28656 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28658 echo "$as_me:28658: result: $DFT_DEP_SUFFIX" >&5
28659 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28661 echo "$as_me:28661: checking default object directory" >&5
28662 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28664 case $DFT_LWR_MODEL in
28665 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28666 (normal) DFT_OBJ_SUBDIR='objects' ;;
28667 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28668 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28670 case "$cf_cv_system_name" in
28672 DFT_OBJ_SUBDIR='objects' ;;
28674 DFT_OBJ_SUBDIR='obj_s' ;;
28677 echo "$as_me:28677: result: $DFT_OBJ_SUBDIR" >&5
28678 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28680 if test "x$cf_with_cxx" = xyes ; then
28681 echo "$as_me:28681: checking c++ library-dependency suffix" >&5
28682 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28683 if test "$with_libtool" != "no"; then
28684 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28685 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28686 elif test "$with_shared_cxx" != "no"; then
28687 # also for g++ users...
28688 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28690 # we normally make a static library because C/C++ library rules differ
28694 CXX_LIB_SUFFIX='.la'
28695 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28698 case "$cf_cv_system_name" in
28700 CXX_LIB_SUFFIX='_g.lib'
28703 CXX_LIB_SUFFIX='_g.a'
28706 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28709 case "$cf_cv_system_name" in
28711 CXX_LIB_SUFFIX='_p.lib'
28714 CXX_LIB_SUFFIX='_p.a'
28717 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28720 case "$cf_cv_system_name" in
28722 CXX_LIB_SUFFIX='.so'
28723 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28726 CXX_LIB_SUFFIX='.dll'
28727 CXX_DEP_SUFFIX='.dll.lib'
28729 (cygwin*|msys*|mingw*)
28730 CXX_LIB_SUFFIX='.dll'
28731 CXX_DEP_SUFFIX='.dll.a'
28734 CXX_LIB_SUFFIX='.dylib'
28735 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28740 CXX_LIB_SUFFIX='.so'
28741 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28744 CXX_LIB_SUFFIX='.sl'
28745 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28750 CXX_LIB_SUFFIX='.so'
28751 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28758 CXX_LIB_SUFFIX='.lib'
28761 CXX_LIB_SUFFIX='.a'
28764 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28767 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28769 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28770 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28774 echo "$as_me:28774: result: $CXX_LIB_SUFFIX" >&5
28775 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28779 # do not want -ldl in build except as needed for -lncurses dependency
28780 if test "x$with_dlsym" = xyes ; then
28781 if test "$DFT_LWR_MODEL" = shared || \
28782 test "$DFT_LWR_MODEL" = libtool ; then
28784 # remove dl library from $LIBS
28785 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28789 ### Set up low-level terminfo dependencies for makefiles.
28791 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28792 # do not need libdl
28794 if test "x$with_dlsym" = xyes ; then
28796 # remove dl library from $SHLIB_LIST
28797 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28801 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28802 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28803 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28804 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28806 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28809 if test "$with_ticlib" != no ; then
28811 if test "x$with_ticlib" != xyes ; then
28812 TICS_NAME=$with_ticlib
28813 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28814 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28815 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28816 TICS_LIB_SUFFIX="${with_ticlib}"
28818 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28819 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28820 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28821 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28823 TICS_LDFLAGS="-L${LIB_DIR}"
28824 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28826 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28827 TICS_LDFLAGS="-L${LIB_DIR}"
28828 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28831 if test "$with_termlib" != no ; then
28833 if test "x$with_termlib" != xyes ; then
28834 TINFO_NAME=$with_termlib
28835 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28836 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28837 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28838 TINFO_LIB_SUFFIX="${with_termlib}"
28840 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28841 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28842 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28843 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28846 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28847 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28848 if test "$DFT_LWR_MODEL" = "libtool"; then
28849 TEST_ARGS="${TEST_DEPS}"
28850 TEST_ARG2="${TEST_DEP2}"
28851 TINFO_LDFLAGS="-L${LIB_DIR}"
28852 TINFO_LIBS="$TEST_ARGS"
28853 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28854 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28856 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28857 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28858 if test "x$with_term_driver" != xno ; then
28859 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28860 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28861 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28863 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28864 TINFO_LIBS="$TEST_ARGS"
28866 TINFO_LDFLAGS="-L${LIB_DIR}"
28867 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28870 # the next lines are needed for linking libtic over libncurses
28871 TINFO_NAME=${LIB_NAME}
28872 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28873 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28874 if test "x$with_tic_depends" = xyes ; then
28875 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28877 TICS_LIST="$SHLIB_LIST"
28880 TINFO_LDFLAGS="-L${LIB_DIR}"
28881 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28884 if test "$DFT_LWR_MODEL" = shared ; then
28885 case "$cf_cv_system_name" in
28887 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28893 if test "x$with_dlsym" = xyes ; then
28895 # remove dl library from $TICS_LIST
28896 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28900 if test "$DFT_LWR_MODEL" = "libtool"; then
28905 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28907 case "$DFT_LWR_MODEL" in
28908 (normal|debug|profile)
28910 if test "$GCC" = yes ; then
28911 case "$cf_cv_system_name" in
28912 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28916 (*) # normally, except when broken
28917 LDFLAGS_STATIC=-static
28918 LDFLAGS_SHARED=-dynamic
28922 case "$cf_cv_system_name" in
28923 (aix[4-7]*) # from ld manpage
28924 LDFLAGS_STATIC=-bstatic
28925 LDFLAGS_SHARED=-bdynamic
28927 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28928 # We could also use just "archive" and "shared".
28929 LDFLAGS_STATIC=-Wl,-a,archive_shared
28930 LDFLAGS_SHARED=-Wl,-a,shared_archive
28932 (irix*) # from ld manpage IRIX64
28933 LDFLAGS_STATIC=-Bstatic
28934 LDFLAGS_SHARED=-Bdynamic
28936 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28937 # alternative "-oldstyle_liblookup" (not in cc manpage)
28938 LDFLAGS_STATIC=-noso
28939 LDFLAGS_SHARED=-so_archive
28942 LDFLAGS_STATIC=-Bstatic
28943 LDFLAGS_SHARED=-Bdynamic
28948 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28950 echo "$as_me:28950: checking if linker supports switching between static/dynamic" >&5
28951 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28953 rm -f libconftest.a
28954 cat >conftest.$ac_ext <<EOF
28955 #line 28955 "configure"
28957 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28959 if { (eval echo "$as_me:28959: \"$ac_compile\"") >&5
28960 (eval $ac_compile) 2>&5
28962 echo "$as_me:28962: \$? = $ac_status" >&5
28963 (exit "$ac_status"); } ; then
28964 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28965 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28969 cf_save_LIBS="$LIBS"
28971 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28972 cat >"conftest.$ac_ext" <<_ACEOF
28973 #line 28973 "configure"
28974 #include "confdefs.h"
28976 #line 28976 "configure"
28978 int cf_ldflags_static(FILE *fp);
28984 return cf_ldflags_static(stdin);
28990 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28991 if { (eval echo "$as_me:28991: \"$ac_link\"") >&5
28992 (eval $ac_link) 2>&5
28994 echo "$as_me:28994: \$? = $ac_status" >&5
28995 (exit "$ac_status"); } &&
28996 { ac_try='test -s "conftest$ac_exeext"'
28997 { (eval echo "$as_me:28997: \"$ac_try\"") >&5
28998 (eval $ac_try) 2>&5
29000 echo "$as_me:29000: \$? = $ac_status" >&5
29001 (exit "$ac_status"); }; }; then
29003 # some linkers simply ignore the -dynamic
29004 case x`file "conftest$ac_exeext" 2>/dev/null` in
29006 cf_ldflags_static=no
29009 cf_ldflags_static=yes
29014 echo "$as_me: failed program was:" >&5
29015 cat "conftest.$ac_ext" >&5
29016 cf_ldflags_static=no
29018 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
29020 rm -f libconftest.*
29021 LIBS="$cf_save_LIBS"
29023 echo "$as_me:29023: result: $cf_ldflags_static" >&5
29024 echo "${ECHO_T}$cf_ldflags_static" >&6
29026 if test "$cf_ldflags_static" != yes
29039 echo "$as_me:29039: checking where we will install curses.h" >&5
29040 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
29043 if test "$with_overwrite" = no && \
29044 { test "x$includedir" = 'x${prefix}/include' || \
29045 test "x$includedir" = "x${prefix}/include"; }
29047 includesubdir="/ncurses${USE_LIB_SUFFIX}"
29049 echo "$as_me:29049: result: ${includedir}${includesubdir}" >&5
29050 echo "${ECHO_T}${includedir}${includesubdir}" >&6
29052 ### Resolve a conflict between normal and wide-curses by forcing applications
29053 ### that will need libutf8 to add it to their configure script.
29054 if test "$with_overwrite" != no ; then
29055 if test "$NCURSES_LIBUTF8" = 1 ; then
29056 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
29057 { echo "$as_me:29057: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
29058 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
29061 WITH_OVERWRITE=$with_overwrite
29063 ### At least on MinGW a shared library build without libtool
29064 ### requires adding the additional libs to the link list.
29065 case "$cf_cv_system_name" in
29066 (*mingw32*|*mingw64*)
29067 if test "$DFT_LWR_MODEL" != "libtool"; then
29068 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
29074 ### predefined stuff for the test programs
29076 cat >>confdefs.h <<\EOF
29077 #define HAVE_SLK_COLOR 1
29080 # pkgsrc uses these
29082 echo "$as_me:29082: checking for desired basename for form library" >&5
29083 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
29085 # Check whether --with-form-libname or --without-form-libname was given.
29086 if test "${with_form_libname+set}" = set; then
29087 withval="$with_form_libname"
29088 with_lib_basename=$withval
29090 with_lib_basename=form
29092 FORM_NAME="$with_lib_basename"
29094 case "x$FORM_NAME" in
29102 echo "$as_me:29102: result: $FORM_NAME" >&5
29103 echo "${ECHO_T}$FORM_NAME" >&6
29105 echo "$as_me:29105: checking for desired basename for menu library" >&5
29106 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
29108 # Check whether --with-menu-libname or --without-menu-libname was given.
29109 if test "${with_menu_libname+set}" = set; then
29110 withval="$with_menu_libname"
29111 with_lib_basename=$withval
29113 with_lib_basename=menu
29115 MENU_NAME="$with_lib_basename"
29117 case "x$MENU_NAME" in
29125 echo "$as_me:29125: result: $MENU_NAME" >&5
29126 echo "${ECHO_T}$MENU_NAME" >&6
29128 echo "$as_me:29128: checking for desired basename for panel library" >&5
29129 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
29131 # Check whether --with-panel-libname or --without-panel-libname was given.
29132 if test "${with_panel_libname+set}" = set; then
29133 withval="$with_panel_libname"
29134 with_lib_basename=$withval
29136 with_lib_basename=panel
29138 PANEL_NAME="$with_lib_basename"
29140 case "x$PANEL_NAME" in
29148 echo "$as_me:29148: result: $PANEL_NAME" >&5
29149 echo "${ECHO_T}$PANEL_NAME" >&6
29151 echo "$as_me:29151: checking for desired basename for cxx library" >&5
29152 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
29154 # Check whether --with-cxx-libname or --without-cxx-libname was given.
29155 if test "${with_cxx_libname+set}" = set; then
29156 withval="$with_cxx_libname"
29157 with_lib_basename=$withval
29159 with_lib_basename=ncurses++
29161 CXX_NAME="$with_lib_basename"
29163 case "x$CXX_NAME" in
29171 echo "$as_me:29171: result: $CXX_NAME" >&5
29172 echo "${ECHO_T}$CXX_NAME" >&6
29174 ### Construct the list of subdirectories for which we'll customize makefiles
29175 ### with the appropriate compile-rules.
29177 echo "$as_me:29177: checking for src modules" >&5
29178 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
29180 # dependencies and linker-arguments for test-programs
29181 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
29182 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
29183 if test "$DFT_LWR_MODEL" = "libtool"; then
29184 TEST_ARGS="${TEST_DEPS}"
29185 TEST_ARG2="${TEST_DEP2}"
29187 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
29188 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
29191 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
29193 for cf_dir in $modules_to_build
29195 if test -f "$srcdir/$cf_dir/modules" ; then
29197 if test -z "$cf_cv_src_modules"; then
29198 cf_cv_src_modules=$cf_dir
29200 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
29203 # Make the ncurses_cfg.h file record the library interface files as
29204 # well. These are header files that are the same name as their
29205 # directory. Ncurses is the only library that does not follow
29207 if test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
29209 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29211 cat >>confdefs.h <<EOF
29212 #define HAVE_${cf_have_include}_H 1
29215 cat >>confdefs.h <<EOF
29216 #define HAVE_LIB${cf_have_include} 1
29219 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29221 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
29223 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
29224 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
29225 if test "$DFT_LWR_MODEL" = "libtool"; then
29226 TEST_ARGS="${TEST_DEPS}"
29227 TEST_ARG2="${TEST_DEP2}"
29229 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
29230 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
29232 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
29236 echo "$as_me:29236: result: $cf_cv_src_modules" >&5
29237 echo "${ECHO_T}$cf_cv_src_modules" >&6
29239 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
29240 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
29243 if test "x$cf_with_manpages" != xno ; then
29244 SRC_SUBDIRS="$SRC_SUBDIRS man"
29246 SRC_SUBDIRS="$SRC_SUBDIRS include"
29247 for cf_dir in $cf_cv_src_modules
29249 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
29251 if test "x$cf_with_tests" != "xno" ; then
29252 SRC_SUBDIRS="$SRC_SUBDIRS test"
29254 # always make this, to install the ncurses-config script
29255 SRC_SUBDIRS="$SRC_SUBDIRS misc"
29256 if test "$cf_with_cxx_binding" != no; then
29257 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
29258 SRC_SUBDIRS="$SRC_SUBDIRS c++"
29261 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
29262 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
29265 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
29266 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
29267 ADA_SUBDIRS="gen src"
29268 if test "x$cf_with_tests" != "xno" ; then
29269 ADA_SUBDIRS="$ADA_SUBDIRS samples"
29274 for cf_dir in $SRC_SUBDIRS
29276 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
29279 if test -n "$ADA_SUBDIRS"; then
29280 for cf_dir in $ADA_SUBDIRS
29282 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
29287 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
29288 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
29289 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
29290 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
29294 for cf_item in $cf_list_models
29298 (libtool) cf_subdir='obj_lo' ;;
29299 (normal) cf_subdir='objects' ;;
29300 (debug) cf_subdir='obj_g' ;;
29301 (profile) cf_subdir='obj_p' ;;
29303 case "$cf_cv_system_name" in
29305 cf_subdir='objects' ;;
29307 cf_subdir='obj_s' ;;
29311 for cf_item2 in $DIRS_TO_MAKE
29313 test "$cf_item2" = "$cf_subdir" && break
29315 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
29317 for cf_dir in $DIRS_TO_MAKE
29319 test ! -d "$cf_dir" && mkdir "$cf_dir"
29322 # symbols that differ when compiling Ada95 by itself.
29323 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
29325 # values to use as strings
29327 cat >>confdefs.h <<EOF
29328 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
29331 cat >>confdefs.h <<EOF
29332 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
29335 ### Define substitutions for header files to avoid name-pollution
29337 if test "x$cf_cv_have_tcgetattr" = xyes ; then
29343 if test "x$ac_cv_header_stdint_h" = xyes ; then
29349 if test "x$ac_cv_header_termio_h" = xyes ; then
29355 if test "x$ac_cv_header_termios_h" = xyes ; then
29361 ################################################################################
29362 test "x$use_database" = xyes && \
29363 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
29365 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
29366 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
29368 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
29369 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
29372 if test "x$cf_with_tests" != xno ; then
29378 ADAHTML_DIR=../../doc/html/ada
29380 # workaround for OS/2 (20151017)
29381 case "$cf_cv_system_name" in
29383 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
29390 # workaround for g++ versus Solaris (20131116)
29391 case "$cf_cv_system_name" in
29393 case "x$CPPFLAGS" in
29394 (*-D_XOPEN_SOURCE_EXTENDED*)
29395 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
29397 echo "${as_me:-configure}:29397: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
29399 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
29400 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
29406 # Help to automatically enable the extended curses features when using either
29407 # the *-config or the ".pc" files by adding defines.
29408 echo "$as_me:29408: checking for defines to add to ncurses${USE_CFG_SUFFIX}${cf_config_suffix}-config script" >&5
29409 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}${cf_config_suffix}-config script... $ECHO_C" >&6
29411 for cf_loop1 in $CPPFLAGS_after_XOPEN
29414 for cf_loop2 in $CPPFLAGS_before_XOPEN
29416 if test "x$cf_loop1" = "x$cf_loop2"
29422 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
29424 echo "$as_me:29424: result: $PKG_CFLAGS" >&5
29425 echo "${ECHO_T}$PKG_CFLAGS" >&6
29427 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
29428 case "x$NCURSES_OSPEED" in
29437 cat >>confdefs.h <<EOF
29438 #define NCURSES_OSPEED_COMPAT $cf_compatible
29441 case "x$cf_cv_typeof_chtype" in
29442 (xshort|xint|xlong)
29443 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
29447 case "x$cf_cv_typeof_mmask_t" in
29448 (xshort|xint|xlong)
29449 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
29453 # substitute into misc/Makefile to suppress
29454 # (un)install.data from the
29455 # (un)install rules.
29456 if test "x$cf_with_db_install" = "xno"; then
29458 MISC_UNINSTALL_DATA=
29460 MISC_INSTALL_DATA=install.data
29461 MISC_UNINSTALL_DATA=uninstall.data
29464 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
29467 MAKE_DATABASE="$MAKE_TERMINFO"
29470 if test -n "$PACKAGE"
29472 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
29474 echo "package: $PACKAGE"
29480 if test -n "$RESULTING_SYMS"
29482 cf_filter_syms=$cf_dft_filter_syms
29483 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_default" 1>&6
29485 echo "${as_me:-configure}:29485: testing will map symbols to ABI=$cf_cv_abi_default ..." 1>&5
29489 if test "x$WILDCARD_SYMS" = xno
29494 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
29496 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
29497 if test "$cf_filter_syms" = yes
29499 RESULTING_SYMS=resulting.map
29502 if test "x$cross_compiling" = xyes ; then
29503 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
29506 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
29510 # This is used for the *-config script and *.pc data files.
29512 echo "$as_me:29512: checking for linker search path" >&5
29513 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
29514 if test "${cf_cv_ld_searchpath+set}" = set; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
29518 if test "$cross_compiling" != yes ; then
29520 # GNU binutils' ld does not involve permissions which may stop ldconfig.
29521 cf_pathlist=`${LD:-ld} --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
29523 # The -NX options tell newer versions of Linux ldconfig to not attempt to
29524 # update the cache, which makes it run faster.
29525 test -z "$cf_pathlist" && \
29526 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
29528 test -z "$cf_pathlist" &&
29529 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
29531 # This works with OpenBSD 6.5, which lists only filenames
29532 test -z "$cf_pathlist" &&
29533 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
29535 if test -z "$cf_pathlist"
29537 # dyld default path with MacOS
29538 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
29540 # do this to bypass check
29541 cf_cv_ld_searchpath='$HOME/lib'
29542 cf_pathlist="/usr/local/lib /lib /usr/lib"
29546 if test -z "$cf_pathlist"
29548 # Solaris is "SunOS"
29549 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
29551 case x`(isainfo -b)` in
29553 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
29556 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
29557 cf_pathlist="$cf_pathlist /lib /usr/lib"
29560 { echo "$as_me:29560: WARNING: problem with Solaris architecture" >&5
29561 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
29567 if test -z "$cf_pathlist"
29570 if test x"`uname -s`" = xHP-UX
29572 case x`getconf LONG_BIT` in
29574 cf_pathlist="/usr/lib/hpux64"
29577 cf_pathlist="/usr/lib/hpux32"
29585 # If nothing else, assume it is conventional
29586 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
29588 # Finally, check that this is only directories
29589 for cf_path in $0 $cf_pathlist
29591 if test -d "$cf_path"; then
29592 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29593 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29597 # Ensure that it is nonempty
29598 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29601 echo "$as_me:29601: result: $cf_cv_ld_searchpath" >&5
29602 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29604 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29606 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 man/man_db.renames $SUB_MAKEFILES Makefile"
29607 ac_config_commands="$ac_config_commands default"
29608 cat >confcache <<\_ACEOF
29609 # This file is a shell script that caches the results of configure
29610 # tests run on this system so they can be shared between configure
29611 # scripts and configure runs, see configure's option --config-cache.
29612 # It is not useful on other systems. If it contains results you don't
29613 # want to keep, you may remove or edit it.
29615 # config.status only pays attention to the cache file if you give it
29616 # the --recheck option to rerun configure.
29618 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29619 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29620 # following values.
29624 # The following way of writing the cache mishandles newlines in values,
29625 # but we know of no workaround that is simple, portable, and efficient.
29626 # So, don't put newlines in cache variables' values.
29627 # Ultrix sh set writes to stderr and can't be redirected directly,
29628 # and sets the high bit in the cache file unless we assign to the vars.
29631 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29633 # `set' does not quote correctly, so add quotes (double-quote
29634 # substitution turns \\\\ into \\, and sed turns \\ into \).
29637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29640 # `set' quotes correctly as required by POSIX, so do not add quotes.
29642 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29651 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29653 if cmp -s $cache_file confcache; then :; else
29654 if test -w $cache_file; then
29655 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29656 cat confcache >$cache_file
29658 echo "not updating unwritable cache $cache_file"
29663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29664 # Let make expand exec_prefix.
29665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29667 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29668 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29669 # trailing colons and then remove the whole line if VPATH becomes empty
29670 # (actually we leave an empty line to preserve line numbers).
29671 if test "x$srcdir" = x.; then
29672 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29673 s/:*\$(srcdir):*/:/;
29674 s/:*\${srcdir}:*/:/;
29676 s/^\([^=]*=[ ]*\):*/\1/;
29682 DEFS=-DHAVE_CONFIG_H
29684 : "${CONFIG_STATUS=./config.status}"
29685 ac_clean_files_save=$ac_clean_files
29686 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29687 { echo "$as_me:29687: creating $CONFIG_STATUS" >&5
29688 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29689 cat >"$CONFIG_STATUS" <<_ACEOF
29691 # Generated automatically by configure.
29692 # Run this file to recreate the current configuration.
29693 # Compiler output produced by configure, useful for debugging
29694 # configure, is in config.log if it exists.
29696 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
29699 SHELL=\${CONFIG_SHELL-$SHELL}
29700 ac_cs_invocation="\$0 \$@"
29702 CLICOLOR_FORCE= GREP_OPTIONS=
29703 unset CLICOLOR_FORCE GREP_OPTIONS
29706 cat >>"$CONFIG_STATUS" <<\_ACEOF
29707 # Be Bourne compatible
29708 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29711 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29715 # Name of the executable.
29716 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29718 if expr a : '\(a\)' >/dev/null 2>&1; then
29724 rm -f conf$$ conf$$.exe conf$$.file
29726 if ln -s conf$$.file conf$$ 2>/dev/null; then
29727 # We could just check for DJGPP; but this test a) works b) is more generic
29728 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29729 if test -f conf$$.exe; then
29730 # Don't use ln at all; we don't have any links
29735 elif ln conf$$.file conf$$ 2>/dev/null; then
29740 rm -f conf$$ conf$$.exe conf$$.file
29742 as_executable_p="test -f"
29744 # Support unset when possible.
29745 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29752 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29753 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29754 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29755 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29756 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29757 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29758 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29759 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29762 # We need space, tab and new line, in precisely that order.
29768 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29774 # Files that config.status was made for.
29775 if test -n "$ac_config_files"; then
29776 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29779 if test -n "$ac_config_headers"; then
29780 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29783 if test -n "$ac_config_links"; then
29784 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29787 if test -n "$ac_config_commands"; then
29788 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29791 cat >>"$CONFIG_STATUS" <<\EOF
29794 \`$as_me' instantiates files from templates according to the
29795 current configuration.
29797 Usage: $0 [OPTIONS] [FILE]...
29799 -h, --help print this help, then exit
29800 -V, --version print version number, then exit
29801 -d, --debug don't remove temporary files
29802 --recheck update $as_me by reconfiguring in the same conditions
29803 --file=FILE[:TEMPLATE]
29804 instantiate the configuration file FILE
29805 --header=FILE[:TEMPLATE]
29806 instantiate the configuration header FILE
29808 Configuration files:
29811 Configuration headers:
29814 Configuration commands:
29817 Report bugs to <dickey@invisible-island.net>."
29820 cat >>"$CONFIG_STATUS" <<EOF
29823 configured by $0, generated by GNU Autoconf 2.52.20231210,
29824 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29826 Copyright 2003-2022,2023 Thomas E. Dickey
29827 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29828 Free Software Foundation, Inc.
29829 This config.status script is free software; the Free Software Foundation
29830 gives unlimited permission to copy, distribute and modify it."
29835 cat >>"$CONFIG_STATUS" <<\EOF
29836 # If no file are specified by the user, then we need to provide default
29837 # value. By we need to know if files were specified by the user.
29843 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29844 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29846 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29850 *) # This is not an option, so the user has probably given explicit
29852 ac_need_defaults=false;;
29856 # Handling of the options.
29858 cat >>"$CONFIG_STATUS" <<EOF
29859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29860 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29861 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29863 cat >>"$CONFIG_STATUS" <<\EOF
29864 --version | --vers* | -V )
29865 echo "$ac_cs_version"; exit 0 ;;
29867 # Conflict between --help and --header
29868 { { echo "$as_me:29868: error: ambiguous option: $1
29869 Try \`$0 --help' for more information." >&5
29870 echo "$as_me: error: ambiguous option: $1
29871 Try \`$0 --help' for more information." >&2;}
29872 { (exit 1); exit 1; }; };;
29873 --help | --hel | -h )
29874 echo "$ac_cs_usage"; exit 0 ;;
29875 --debug | --d* | -d )
29877 --file | --fil | --fi | --f )
29879 CONFIG_FILES="$CONFIG_FILES $1"
29880 ac_need_defaults=false;;
29881 --header | --heade | --head | --hea )
29883 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29884 ac_need_defaults=false;;
29886 # This is an error.
29887 -*) { { echo "$as_me:29887: error: unrecognized option: $1
29888 Try \`$0 --help' for more information." >&5
29889 echo "$as_me: error: unrecognized option: $1
29890 Try \`$0 --help' for more information." >&2;}
29891 { (exit 1); exit 1; }; } ;;
29893 *) ac_config_targets="$ac_config_targets $1" ;;
29902 ## ----------------------- ##
29903 ## Running config.status. ##
29904 ## ----------------------- ##
29906 This file was extended by $as_me 2.52.20231210, executed with
29907 CONFIG_FILES = $CONFIG_FILES
29908 CONFIG_HEADERS = $CONFIG_HEADERS
29909 CONFIG_LINKS = $CONFIG_LINKS
29910 CONFIG_COMMANDS = $CONFIG_COMMANDS
29911 > "$ac_cs_invocation"
29912 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29917 cat >>"$CONFIG_STATUS" <<EOF
29919 # INIT-COMMANDS section.
29922 ### Special initialization commands, used to pass information from the
29923 ### configuration-run into config.status
29925 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29927 CXX_NAME="$CXX_NAME"
29928 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29929 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29931 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29932 FORM_NAME="$FORM_NAME"
29933 LDCONFIG="$LDCONFIG"
29934 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29935 LIB_NAME="$LIB_NAME"
29936 LIB_PREFIX="$LIB_PREFIX"
29937 LIB_SUBSETS="$LIB_SUBSETS"
29938 LIB_SUFFIX="$LIB_SUFFIX"
29939 LIB_TRACING="$LIB_TRACING"
29941 MAKE_TERMINFO="$MAKE_TERMINFO"
29942 MANPAGE_RENAMES="$MANPAGE_RENAMES"
29943 MENU_NAME="$MENU_NAME"
29944 NCURSES_MAJOR="$NCURSES_MAJOR"
29945 NCURSES_MINOR="$NCURSES_MINOR"
29946 NCURSES_OSPEED="$NCURSES_OSPEED"
29947 NCURSES_PATCH="$NCURSES_PATCH"
29948 PANEL_NAME="$PANEL_NAME"
29949 SRC_SUBDIRS="$SRC_SUBDIRS"
29950 TERMINFO="$TERMINFO"
29951 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29952 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29953 TICS_NAME="$TICS_NAME"
29954 TICS_SUFFIX="$TICS_SUFFIX"
29955 TIC_PATH="$TIC_PATH"
29956 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29957 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29958 TINFO_NAME="$TINFO_NAME"
29959 TINFO_SUFFIX="$TINFO_SUFFIX"
29960 UNALTERED_SYMS="$UNALTERED_SYMS"
29961 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29962 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29963 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29964 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29965 WILDCARD_SYMS="$WILDCARD_SYMS"
29966 WITH_CURSES_H="$with_curses_h"
29967 WITH_ECHO="${enable_echo:=yes}"
29968 WITH_OVERWRITE="$with_overwrite"
29969 cf_LIST_MODELS="$cf_list_models"
29970 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29971 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29972 cf_cv_abi_default="$cf_cv_abi_default"
29973 cf_cv_abi_version="$cf_cv_abi_version"
29974 cf_cv_do_relink="$cf_cv_do_relink"
29975 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29976 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29977 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29978 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29979 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29980 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29981 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29982 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29983 cf_cv_rel_version="$cf_cv_rel_version"
29984 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29985 cf_cv_shared_soname='$cf_cv_shared_soname'
29986 cf_cv_shlib_version="$cf_cv_shlib_version"
29987 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29988 cf_cv_system_name="$cf_cv_system_name"
29989 cf_cv_term_driver="$with_term_driver"
29990 cf_with_ada="$cf_with_ada"
29991 cf_with_cxx_binding="$cf_with_cxx_binding"
29992 cf_with_db_install="$cf_with_db_install"
29993 cf_with_manpages="$cf_with_manpages"
29994 cf_with_tests="$cf_with_tests"
29998 with_shared_cxx="$with_shared_cxx"
30002 cat >>"$CONFIG_STATUS" <<\EOF
30003 for ac_config_target in $ac_config_targets
30005 case "$ac_config_target" in
30006 # Handling of arguments.
30007 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
30008 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
30009 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
30010 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
30011 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
30012 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
30013 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
30014 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30015 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30016 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
30017 *) { { echo "$as_me:30017: error: invalid argument: $ac_config_target" >&5
30018 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30019 { (exit 1); exit 1; }; };;
30023 # If the user did not use the arguments to specify the items to instantiate,
30024 # then the envvar interface is used. Set only those that are not.
30025 # We use the long form for the default assignment because of an extremely
30026 # bizarre bug on SunOS 4.1.3.
30027 if "$ac_need_defaults"; then
30028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30033 # Create a temporary directory, and hook for its removal unless debugging.
30036 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30037 trap '{ (exit 1); exit 1; }' 1 2 13 15
30040 # Create a (secure) tmp directory for tmp files.
30043 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
30044 test -n "$tmp" && test -d "$tmp"
30047 tmp=$TMPDIR/cs$$-$RANDOM
30048 (umask 077 && mkdir "$tmp")
30051 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
30052 { (exit 1); exit 1; }
30057 cat >>"$CONFIG_STATUS" <<EOF
30060 # CONFIG_FILES section.
30063 # No need to generate the scripts if there are no CONFIG_FILES.
30064 # This happens for instance when ./config.status config.h
30065 if test -n "\$CONFIG_FILES"; then
30066 # Protect against being on the right side of a sed subst in config.status.
30067 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30068 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
30069 s,@SHELL@,$SHELL,;t t
30070 s,@exec_prefix@,$exec_prefix,;t t
30071 s,@prefix@,$prefix,;t t
30072 s,@program_transform_name@,$program_transform_name,;t t
30073 s,@bindir@,$bindir,;t t
30074 s,@sbindir@,$sbindir,;t t
30075 s,@libexecdir@,$libexecdir,;t t
30076 s,@datarootdir@,$datarootdir,;t t
30077 s,@datadir@,$datadir,;t t
30078 s,@sysconfdir@,$sysconfdir,;t t
30079 s,@sharedstatedir@,$sharedstatedir,;t t
30080 s,@localstatedir@,$localstatedir,;t t
30081 s,@runstatedir@,$runstatedir,;t t
30082 s,@libdir@,$libdir,;t t
30083 s,@includedir@,$includedir,;t t
30084 s,@oldincludedir@,$oldincludedir,;t t
30085 s,@infodir@,$infodir,;t t
30086 s,@mandir@,$mandir,;t t
30087 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30088 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30089 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30090 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30091 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30092 s,@build_alias@,$build_alias,;t t
30093 s,@host_alias@,$host_alias,;t t
30094 s,@target_alias@,$target_alias,;t t
30095 s,@ECHO_C@,$ECHO_C,;t t
30096 s,@ECHO_N@,$ECHO_N,;t t
30097 s,@ECHO_T@,$ECHO_T,;t t
30098 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30099 s,@DEFS@,$DEFS,;t t
30100 s,@LIBS@,$LIBS,;t t
30101 s,@top_builddir@,$top_builddir,;t t
30102 s,@GREP@,$GREP,;t t
30103 s,@EGREP@,$EGREP,;t t
30104 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
30105 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
30106 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
30107 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
30108 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
30109 s,@cf_cv_abi_default@,$cf_cv_abi_default,;t t
30110 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
30111 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
30112 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
30113 s,@VERSION@,$VERSION,;t t
30114 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
30115 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
30116 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
30117 s,@PACKAGE@,$PACKAGE,;t t
30118 s,@build@,$build,;t t
30119 s,@build_cpu@,$build_cpu,;t t
30120 s,@build_vendor@,$build_vendor,;t t
30121 s,@build_os@,$build_os,;t t
30122 s,@host@,$host,;t t
30123 s,@host_cpu@,$host_cpu,;t t
30124 s,@host_vendor@,$host_vendor,;t t
30125 s,@host_os@,$host_os,;t t
30126 s,@target@,$target,;t t
30127 s,@target_cpu@,$target_cpu,;t t
30128 s,@target_vendor@,$target_vendor,;t t
30129 s,@target_os@,$target_os,;t t
30130 s,@FGREP@,$FGREP,;t t
30131 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
30132 s,@M4_exists@,$M4_exists,;t t
30133 s,@cf_ada_make@,$cf_ada_make,;t t
30134 s,@cf_ada_config@,$cf_ada_config,;t t
30135 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
30136 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
30137 s,@cf_cv_path_gnatgcc@,$cf_cv_path_gnatgcc,;t t
30139 s,@CFLAGS@,$CFLAGS,;t t
30140 s,@LDFLAGS@,$LDFLAGS,;t t
30141 s,@CPPFLAGS@,$CPPFLAGS,;t t
30142 s,@ac_ct_CC@,$ac_ct_CC,;t t
30143 s,@EXEEXT@,$EXEEXT,;t t
30144 s,@OBJEXT@,$OBJEXT,;t t
30145 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
30147 s,@LDCONFIG@,$LDCONFIG,;t t
30149 s,@CXXFLAGS@,$CXXFLAGS,;t t
30150 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30152 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30153 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30154 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30155 s,@LINT@,$LINT,;t t
30156 s,@LINT_OPTS@,$LINT_OPTS,;t t
30157 s,@LINT_LIBS@,$LINT_LIBS,;t t
30158 s,@LN_S@,$LN_S,;t t
30159 s,@cf_config_suffix@,$cf_config_suffix,;t t
30160 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
30161 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
30162 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
30163 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
30164 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
30165 s,@SET_MAKE@,$SET_MAKE,;t t
30166 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
30167 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
30168 s,@CTAGS@,$CTAGS,;t t
30169 s,@ETAGS@,$ETAGS,;t t
30170 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
30171 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
30172 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
30173 s,@RANLIB@,$RANLIB,;t t
30174 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30176 s,@ac_ct_LD@,$ac_ct_LD,;t t
30178 s,@ac_ct_AR@,$ac_ct_AR,;t t
30180 s,@ac_ct_NM@,$ac_ct_NM,;t t
30181 s,@ARFLAGS@,$ARFLAGS,;t t
30182 s,@DESTDIR@,$DESTDIR,;t t
30183 s,@BUILD_CC@,$BUILD_CC,;t t
30184 s,@BUILD_CPP@,$BUILD_CPP,;t t
30185 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
30186 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
30187 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
30188 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
30189 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
30190 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
30191 s,@cf_list_models@,$cf_list_models,;t t
30192 s,@ABI_VERSION@,$ABI_VERSION,;t t
30193 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
30194 s,@LIBTOOL@,$LIBTOOL,;t t
30195 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
30196 s,@LT_UNDEF@,$LT_UNDEF,;t t
30197 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
30198 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
30199 s,@LIB_CREATE@,$LIB_CREATE,;t t
30200 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
30201 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
30202 s,@LIB_PREP@,$LIB_PREP,;t t
30203 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
30204 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
30205 s,@LIB_LINK@,$LIB_LINK,;t t
30206 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
30207 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
30208 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
30209 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
30210 s,@TICS_NAME@,$TICS_NAME,;t t
30211 s,@TINFO_NAME@,$TINFO_NAME,;t t
30212 s,@LIB_NAME@,$LIB_NAME,;t t
30213 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
30214 s,@CC_G_OPT@,$CC_G_OPT,;t t
30215 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
30216 s,@LD_MODEL@,$LD_MODEL,;t t
30217 s,@shlibdir@,$shlibdir,;t t
30218 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
30219 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
30220 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
30221 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
30222 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
30223 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
30224 s,@LINK_PROGS@,$LINK_PROGS,;t t
30225 s,@LINK_TESTS@,$LINK_TESTS,;t t
30226 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
30227 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30228 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
30229 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
30230 s,@RPATH_LIST@,$RPATH_LIST,;t t
30231 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
30232 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
30233 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
30234 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
30235 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
30236 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
30237 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
30238 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
30239 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
30241 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
30242 s,@INFOCMP@,$INFOCMP,;t t
30243 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
30244 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
30245 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
30246 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
30247 s,@XTERM_KBS@,$XTERM_KBS,;t t
30248 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
30249 s,@TERMINFO@,$TERMINFO,;t t
30250 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
30251 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
30252 s,@TERMPATH@,$TERMPATH,;t t
30253 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
30254 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
30255 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
30256 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
30257 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
30258 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
30259 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
30260 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
30261 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
30262 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
30263 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
30264 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
30265 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
30266 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
30267 s,@RGB_PATH@,$RGB_PATH,;t t
30268 s,@no_x11_rgb@,$no_x11_rgb,;t t
30269 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
30270 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
30271 s,@NCURSES_CHTYPE@,$NCURSES_CHTYPE,;t t
30272 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
30273 s,@NCURSES_MMASK_T@,$NCURSES_MMASK_T,;t t
30274 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
30275 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
30276 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
30277 s,@cf_manpage_format@,$cf_manpage_format,;t t
30278 s,@cf_manpage_inboth@,$cf_manpage_inboth,;t t
30279 s,@cf_manpage_so_strip@,$cf_manpage_so_strip,;t t
30280 s,@cf_manpage_compress@,$cf_manpage_compress,;t t
30281 s,@cf_manpage_coptions@,$cf_manpage_coptions,;t t
30282 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
30283 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
30284 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
30285 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
30286 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
30287 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
30288 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
30289 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
30290 s,@cf_cv_enable_sigwinch@,$cf_cv_enable_sigwinch,;t t
30291 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
30292 s,@PTHREAD@,$PTHREAD,;t t
30293 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
30294 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
30295 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
30296 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
30297 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
30298 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
30299 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
30300 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
30301 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
30302 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
30303 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
30304 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
30305 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
30306 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
30307 s,@ECHO_LT@,$ECHO_LT,;t t
30308 s,@ECHO_LD@,$ECHO_LD,;t t
30309 s,@RULE_CC@,$RULE_CC,;t t
30310 s,@SHOW_CC@,$SHOW_CC,;t t
30311 s,@ECHO_CC@,$ECHO_CC,;t t
30312 s,@ECHO_LINK@,$ECHO_LINK,;t t
30313 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
30314 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
30315 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
30316 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
30317 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
30318 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
30319 s,@ADAFLAGS@,$ADAFLAGS,;t t
30320 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
30321 s,@ADA_TRACE@,$ADA_TRACE,;t t
30322 s,@MATH_LIB@,$MATH_LIB,;t t
30323 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
30324 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
30325 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
30326 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
30327 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
30328 s,@TEST_LIBS@,$TEST_LIBS,;t t
30329 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
30330 s,@CXXCPP@,$CXXCPP,;t t
30331 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
30332 s,@CXX_AR@,$CXX_AR,;t t
30333 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
30334 s,@CXXLIBS@,$CXXLIBS,;t t
30335 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
30336 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
30337 s,@cf_compile_generics@,$cf_compile_generics,;t t
30338 s,@cf_generic_objects@,$cf_generic_objects,;t t
30339 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
30340 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
30341 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
30342 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
30343 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
30344 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
30345 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
30346 s,@cf_ada_package@,$cf_ada_package,;t t
30347 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
30348 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
30349 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
30350 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
30351 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
30352 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
30353 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
30354 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
30355 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
30356 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
30357 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
30358 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
30359 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
30360 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
30361 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
30362 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
30363 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
30364 s,@TICS_LIBS@,$TICS_LIBS,;t t
30365 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
30366 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
30367 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
30368 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
30369 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
30370 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
30371 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
30372 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
30373 s,@includesubdir@,$includesubdir,;t t
30374 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
30375 s,@TICS_LIST@,$TICS_LIST,;t t
30376 s,@TINFO_LIST@,$TINFO_LIST,;t t
30377 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
30378 s,@FORM_NAME@,$FORM_NAME,;t t
30379 s,@MENU_NAME@,$MENU_NAME,;t t
30380 s,@PANEL_NAME@,$PANEL_NAME,;t t
30381 s,@CXX_NAME@,$CXX_NAME,;t t
30382 s,@TEST_ARGS@,$TEST_ARGS,;t t
30383 s,@TEST_DEPS@,$TEST_DEPS,;t t
30384 s,@TEST_ARG2@,$TEST_ARG2,;t t
30385 s,@TEST_DEP2@,$TEST_DEP2,;t t
30386 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
30387 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
30388 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
30389 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
30390 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
30391 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
30392 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
30393 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
30394 s,@cross_compiling@,$cross_compiling,;t t
30395 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
30396 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
30397 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
30398 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
30399 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
30400 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
30401 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
30402 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
30403 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
30404 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
30405 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
30406 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
30411 cat >>"$CONFIG_STATUS" <<\EOF
30412 # Split the substitutions into bite-sized pieces for seds with
30413 # small command number limits, like on Digital OSF/1 and HP-UX.
30414 ac_max_sed_lines=48
30415 ac_sed_frag=1 # Number of current file.
30416 ac_beg=1 # First line for current file.
30417 ac_end=$ac_max_sed_lines # Line after last line for current file.
30420 while "$ac_more_lines"; do
30421 if test "$ac_beg" -gt 1; then
30422 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30424 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30426 if test ! -s "$tmp"/subs.frag; then
30427 ac_more_lines=false
30429 # The purpose of the label and of the branching condition is to
30430 # speed up the sed processing (if there are no `@' at all, there
30431 # is no need to browse any of the substitutions).
30432 # These are the two extra sed commands mentioned above.
30434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
30435 # It is possible to make a multiline substitution using escaped newlines.
30436 # Ensure that we do not split the substitution between script fragments.
30438 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
30439 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
30440 if test -s "$tmp"/subs.next; then
30441 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
30442 if test ! -s "$tmp"/subs.edit; then
30443 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
30444 if test ! -s "$tmp"/subs.edit; then
30445 if test "$ac_beg" -gt 1; then
30446 ac_end=`expr "$ac_end" - 1`
30453 if test -z "$ac_sed_cmds"; then
30454 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30456 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30458 ac_sed_frag=`expr "$ac_sed_frag" + 1`
30460 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
30463 if test -z "$ac_sed_cmds"; then
30466 fi # test -n "$CONFIG_FILES"
30469 cat >>"$CONFIG_STATUS" <<\EOF
30470 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30471 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30473 - | *:- | *:-:* ) # input from stdin
30475 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30477 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30478 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30479 * ) ac_file_in=$ac_file.in ;;
30482 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30483 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30484 X"$ac_file" : 'X\(//\)[^/]' \| \
30485 X"$ac_file" : 'X\(//\)$' \| \
30486 X"$ac_file" : 'X\(/\)' \| \
30487 . : '\(.\)' 2>/dev/null ||
30489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30491 /^X\(\/\/\)$/{ s//\1/; q; }
30492 /^X\(\/\).*/{ s//\1/; q; }
30494 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30495 { case "$ac_dir" in
30496 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30500 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30501 case $as_mkdir_dir in
30502 # Skip DOS drivespec
30503 ?:) as_incr_dir=$as_mkdir_dir ;;
30505 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30506 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30511 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
30512 # A "../" for each directory in $ac_dir_suffix.
30513 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
30515 ac_dir_suffix= ac_dots=
30520 if test -z "$ac_dots"; then
30523 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
30525 [\\/]* | ?:[\\/]* )
30526 ac_srcdir="$srcdir$ac_dir_suffix";
30527 ac_top_srcdir="$srcdir" ;;
30528 *) # Relative path.
30529 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
30530 ac_top_srcdir="$ac_dots$srcdir" ;;
30534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30535 *) ac_INSTALL=$ac_dots$INSTALL ;;
30538 if test x"$ac_file" != x-; then
30539 { echo "$as_me:30539: creating $ac_file" >&5
30540 echo "$as_me: creating $ac_file" >&6;}
30543 # Let's still pretend it is `configure' which instantiates (i.e., don't
30544 # use $as_me), people would be surprised to read:
30545 # /* config.h. Generated automatically by config.status. */
30546 configure_input="Generated automatically from `echo $ac_file_in |
30547 sed 's,.*/,,'` by configure."
30549 # First look for the input files in the build tree, otherwise in the
30551 ac_file_inputs=`IFS=:
30552 for f in $ac_file_in; do
30554 -) echo "$tmp"/stdin ;;
30556 # Absolute (can't be DOS-style, as IFS=:)
30557 test -f "$f" || { { echo "$as_me:30557: error: cannot find input file: $f" >&5
30558 echo "$as_me: error: cannot find input file: $f" >&2;}
30559 { (exit 1); exit 1; }; }
30562 if test -f "$f"; then
30565 elif test -f "$srcdir/$f"; then
30570 { { echo "$as_me:30570: error: cannot find input file: $f" >&5
30571 echo "$as_me: error: cannot find input file: $f" >&2;}
30572 { (exit 1); exit 1; }; }
30575 done` || { (exit 1); exit 1; }
30577 cat >>"$CONFIG_STATUS" <<\EOF
30578 ac_warn_datarootdir=no
30579 if test x"$ac_file" != x-; then
30580 for ac_item in $ac_file_inputs
30582 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
30583 if test -n "$ac_seen"; then
30584 ac_used=`grep '@datarootdir@' "$ac_item"`
30585 if test -z "$ac_used"; then
30586 { echo "$as_me:30586: WARNING: datarootdir was used implicitly but not set:
30588 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
30590 ac_warn_datarootdir=yes
30593 ac_seen=`grep '${datarootdir}' "$ac_item"`
30594 if test -n "$ac_seen"; then
30595 { echo "$as_me:30595: WARNING: datarootdir was used explicitly but not set:
30597 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
30599 ac_warn_datarootdir=yes
30604 if test "x$ac_warn_datarootdir" = xyes; then
30605 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30609 cat >>"$CONFIG_STATUS" <<EOF
30613 cat >>"$CONFIG_STATUS" <<\EOF
30615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30616 s,@configure_input@,$configure_input,;t t
30617 s,@srcdir@,$ac_srcdir,;t t
30618 s,@top_srcdir@,$ac_top_srcdir,;t t
30619 s,@INSTALL@,$ac_INSTALL,;t t
30620 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
30623 test -n "${FGREP}" || FGREP="grep -F"
30624 test -n "${EGREP}" || EGREP="grep -E"
30625 cat >>"$CONFIG_STATUS" <<EOF
30626 test -n "\${FGREP}" || FGREP="$FGREP"
30627 test -n "\${EGREP}" || EGREP="$EGREP"
30629 cat >>"$CONFIG_STATUS" <<\EOF
30630 if test x"$ac_file" != x-; then
30631 cp "$tmp/out" "$ac_file"
30633 for ac_name in prefix exec_prefix datarootdir
30635 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
30636 if test -n "$ac_seen"; then
30637 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30638 if test -z "$ac_init"; then
30639 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
30640 { echo "$as_me:30640: WARNING: Variable $ac_name is used but was not set:
30642 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30647 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
30648 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
30649 if test -s "$tmp"/out; then
30650 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
30651 { echo "$as_me:30651: WARNING: Some variables may not be substituted:
30653 echo "$as_me: WARNING: Some variables may not be substituted:
30663 cat >>"$CONFIG_STATUS" <<\EOF
30666 # CONFIG_HEADER section.
30669 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30670 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30672 # ac_d sets the value in "#define NAME VALUE" lines.
30673 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30674 ac_dB='[ ].*$,\1#\2'
30677 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30678 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30679 ac_iB='\([ ]\),\1#\2define\3'
30682 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30683 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30684 ac_uB='$,\1#\2define\3'
30688 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30691 - | *:- | *:-:* ) # input from stdin
30693 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30695 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30697 * ) ac_file_in=$ac_file.in ;;
30700 test x"$ac_file" != x- && { echo "$as_me:30700: creating $ac_file" >&5
30701 echo "$as_me: creating $ac_file" >&6;}
30703 # First look for the input files in the build tree, otherwise in the
30705 ac_file_inputs=`IFS=:
30706 for f in $ac_file_in; do
30708 -) echo "$tmp"/stdin ;;
30710 # Absolute (can't be DOS-style, as IFS=:)
30711 test -f "$f" || { { echo "$as_me:30711: error: cannot find input file: $f" >&5
30712 echo "$as_me: error: cannot find input file: $f" >&2;}
30713 { (exit 1); exit 1; }; }
30716 if test -f "$f"; then
30719 elif test -f "$srcdir/$f"; then
30724 { { echo "$as_me:30724: error: cannot find input file: $f" >&5
30725 echo "$as_me: error: cannot find input file: $f" >&2;}
30726 { (exit 1); exit 1; }; }
30729 done` || { (exit 1); exit 1; }
30730 # Remove the trailing spaces.
30731 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
30735 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30736 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30737 # be either 'cat' or 'sort'.
30738 cat confdefs.h | uniq >conftest.vals
30740 # Break up conftest.vals because some shells have a limit on
30741 # the size of here documents, and old seds have small limits too.
30743 rm -f conftest.tail
30744 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30745 while grep . conftest.vals >/dev/null
30747 # Write chunks of a limited-size here document to conftest.frag.
30748 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30749 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30750 echo 'CEOF' >> "$CONFIG_STATUS"
30751 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30752 rm -f conftest.vals
30753 mv conftest.tail conftest.vals
30755 rm -f conftest.vals
30757 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30759 echo ' cat >> conftest.edit <<CEOF
30760 /@DEFS@/r conftest.frag
30763 sed -f conftest.edit "$tmp"/in > "$tmp"/out
30765 mv "$tmp"/out "$tmp"/in
30766 rm -f conftest.edit conftest.frag
30767 ' >> "$CONFIG_STATUS"
30769 cat >>"$CONFIG_STATUS" <<\EOF
30770 # Let's still pretend it is `configure' which instantiates (i.e., don't
30771 # use $as_me), people would be surprised to read:
30772 # /* config.h. Generated automatically by config.status. */
30773 if test x"$ac_file" = x-; then
30774 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
30776 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
30778 cat "$tmp"/in >>"$tmp"/config.h
30780 if test x"$ac_file" != x-; then
30781 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30782 { echo "$as_me:30782: $ac_file is unchanged" >&5
30783 echo "$as_me: $ac_file is unchanged" >&6;}
30785 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30786 X"$ac_file" : 'X\(//\)[^/]' \| \
30787 X"$ac_file" : 'X\(//\)$' \| \
30788 X"$ac_file" : 'X\(/\)' \| \
30789 . : '\(.\)' 2>/dev/null ||
30791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30793 /^X\(\/\/\)$/{ s//\1/; q; }
30794 /^X\(\/\).*/{ s//\1/; q; }
30796 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30797 { case "$ac_dir" in
30798 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30802 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30803 case $as_mkdir_dir in
30804 # Skip DOS drivespec
30805 ?:) as_incr_dir=$as_mkdir_dir ;;
30807 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30808 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30815 mv "$tmp/config.h" "$ac_file"
30818 cat "$tmp"/config.h
30819 rm -f "$tmp"/config.h
30823 cat >>"$CONFIG_STATUS" <<\EOF
30825 # CONFIG_COMMANDS section.
30827 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30828 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30829 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30833 if test "x$cf_with_tests" != xno ; then
30837 if test ! -d "$srcdir/$cf_dir" ; then
30839 elif test -f "$srcdir/$cf_dir/programs" ; then
30840 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30846 cf_prefix=$LIB_PREFIX
30848 case "$cf_cv_shlib_version" in
30849 (cygdll|msysdll|mingw|msvcdll)
30850 TINFO_NAME=$TINFO_ARG_SUFFIX
30855 if test -n "$TINFO_SUFFIX" ; then
30856 case "$TINFO_SUFFIX" in
30858 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30859 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30862 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30863 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30866 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30867 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30872 for cf_dir in $SRC_SUBDIRS
30874 if test ! -d "$srcdir/$cf_dir" ; then
30876 elif test -f "$srcdir/$cf_dir/modules" ; then
30881 if test -n "${cf_cv_abi_default}" && test "x${cf_cv_abi_default}" != "x5"
30883 cf_awk_program="$cf_awk_program\
30884 /deprecated in ABI${cf_cv_abi_default}/ { next; }\
30885 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_default}\"); }\
30889 if test "x$WILDCARD_SYMS" = xno
30891 cf_awk_program="$cf_awk_program\
30892 /[ ]_\\*;/ { skip=1; next; }\
30896 if test "x$cf_awk_program" != "x"
30898 cat >>$cf_dir/Makefile <<CF_EOF
30900 # Generated by CF_LIB_RULES
30901 resulting.map: $UNALTERED_SYMS
30902 $AWK 'BEGIN { skip = 1; last=""; } \
30904 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30905 skip = 0; last = \$\$0; } \
30906 END { print last; }' < "$UNALTERED_SYMS" >\$@
30909 rm -f resulting.map
30913 for cf_item in $cf_LIST_MODELS
30919 cf_depsuf=$cf_suffix
30922 case "$cf_cv_system_name" in
30930 cf_depsuf=$cf_suffix
30933 case "$cf_cv_system_name" in
30941 cf_depsuf=$cf_suffix
30944 case "$cf_cv_system_name" in
30947 cf_depsuf=$cf_suffix
30951 cf_depsuf='.dll.lib'
30953 (cygwin*|msys*|mingw*)
30959 cf_depsuf=$cf_suffix
30965 cf_depsuf=$cf_suffix
30969 cf_depsuf=$cf_suffix
30975 cf_depsuf=$cf_suffix
30988 cf_depsuf=$cf_suffix
30991 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30993 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30994 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30997 if test "$cf_dir" = "c++"
31000 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31002 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31006 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31008 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31011 test -z "$cf_libname" && cf_libname="$cf_dir"
31012 if test "$cf_item" = shared ; then
31013 if test -n "${LIB_SUFFIX}"
31015 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
31017 cf_shared_suffix="$cf_suffix"
31019 if test "$cf_cv_do_symlinks" = yes ; then
31022 case "$cf_cv_shlib_version" in
31024 cf_version_name=REL_VERSION
31027 cf_version_name=ABI_VERSION
31031 if test -n "$cf_version_name"
31033 case "$cf_cv_system_name" in
31036 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
31039 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
31043 if test -n "${USE_LIB_SUFFIX}"
31045 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
31047 cf_shared_suffix="$cf_suffix"
31050 # cygwin needs import library, and has unique naming convention
31051 # use autodetected ${cf_prefix} for import lib and static lib, but
31052 # use 'cyg' prefix for shared lib.
31053 case "$cf_cv_shlib_version" in
31055 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
31056 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
31059 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
31060 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
31063 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
31064 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
31067 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
31068 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
31074 if test -n "$cf_add_lib"
31076 Libs_To_Make="$Libs_To_Make $cf_add_lib"
31080 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
31081 Libs_To_Make="$Libs_To_Make $cf_add_lib"
31084 if test "$cf_dir" = ncurses ; then
31085 cf_subsets="$LIB_SUBSETS"
31086 cf_r_parts="$cf_subsets"
31087 cf_liblist="$Libs_To_Make"
31089 while test -n "$cf_r_parts"
31091 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
31092 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
31093 if test "$cf_l_parts" != "$cf_r_parts" ; then
31095 case "$cf_l_parts" in
31097 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
31100 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
31106 if test -n "$cf_add_lib"; then
31107 Libs_To_Make="$cf_add_lib $Libs_To_Make"
31114 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
31117 if test "$cf_dir" = c++; then
31118 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
31120 for cf_item in $Libs_To_Make
31126 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
31129 for cf_test in $cf_list
31131 if test "$cf_test" = "$cf_item"
31133 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
31138 test -n "$cf_item" && cf_list="$cf_list $cf_item"
31140 Libs_To_Make="$cf_list"
31144 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
31145 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
31146 "$cf_dir/Makefile" >$cf_dir/Makefile.out
31147 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
31149 $AWK -f "$srcdir/mk-0th.awk" \
31150 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
31151 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31153 for cf_subset in $cf_subsets
31156 for cf_item in $cf_LIST_MODELS
31159 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
31161 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31164 if test "$CXX_MODEL" = SHARED; then
31165 case "$cf_cv_shlib_version" in
31166 (cygdll|msysdll|mingw|msvcdll)
31167 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
31169 echo "${as_me:-configure}:31169: testing overriding CXX_MODEL to SHARED ..." 1>&5
31171 with_shared_cxx=yes
31174 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
31182 cf_depsuf=$cf_suffix
31185 case "$cf_cv_system_name" in
31193 cf_depsuf=$cf_suffix
31196 case "$cf_cv_system_name" in
31204 cf_depsuf=$cf_suffix
31207 case "$cf_cv_system_name" in
31210 cf_depsuf=$cf_suffix
31214 cf_depsuf='.dll.lib'
31216 (cygwin*|msys*|mingw*)
31222 cf_depsuf=$cf_suffix
31228 cf_depsuf=$cf_suffix
31232 cf_depsuf=$cf_suffix
31238 cf_depsuf=$cf_suffix
31251 cf_depsuf=$cf_suffix
31254 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
31256 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
31257 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
31261 (libtool) cf_subdir='obj_lo' ;;
31262 (normal) cf_subdir='objects' ;;
31263 (debug) cf_subdir='obj_g' ;;
31264 (profile) cf_subdir='obj_p' ;;
31266 case "$cf_cv_system_name" in
31268 cf_subdir='objects' ;;
31270 cf_subdir='obj_s' ;;
31274 # Test for case where we build libtinfo with a different name.
31276 if test "$cf_dir" = ncurses ; then
31277 case "$cf_subset" in
31279 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31282 cf_libname=$TINFO_LIB_SUFFIX
31285 cf_libname=$TICS_LIB_SUFFIX
31288 elif test "$cf_dir" = c++ ; then
31290 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31292 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31294 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31297 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31299 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31301 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31303 if test -n "${USE_ARG_SUFFIX}" ; then
31304 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
31305 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
31308 # These dependencies really are for development, not
31309 # builds, but they are useful in porting, too.
31310 cf_depend="../include/ncurses_cfg.h"
31311 if test "$srcdir" = "."; then
31314 cf_reldir="\${srcdir}"
31317 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
31318 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
31319 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
31320 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
31324 old_cf_suffix="$cf_suffix"
31325 if test "$cf_cv_shlib_version_infix" = yes ; then
31326 if test -n "$USE_LIB_SUFFIX" ; then
31327 case "$USE_LIB_SUFFIX" in
31329 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
31330 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
31331 cf_dir_suffix=tw$EXTRA_SUFFIX
31334 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
31335 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
31336 cf_dir_suffix=t$EXTRA_SUFFIX
31339 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
31340 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
31341 cf_dir_suffix=w$EXTRA_SUFFIX
31344 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
31345 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
31346 cf_dir_suffix=$EXTRA_SUFFIX
31352 $AWK -f "$srcdir/mk-1st.awk" \
31353 name=${cf_libname}${cf_dir_suffix} \
31354 traces=$LIB_TRACING \
31356 CXX_MODEL=$CXX_MODEL \
31357 LIB_SUFFIX=$LIB_SUFFIX \
31358 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
31359 make_phony="${cf_cv_make_PHONY:-no}" \
31361 prefix=$cf_prefix \
31362 suffix=$cf_suffix \
31363 subset=$cf_subset \
31364 driver=$cf_cv_term_driver \
31366 TermlibRoot=$TINFO_NAME \
31367 TermlibSuffix=$TINFO_SUFFIX \
31368 ShlibVer=$cf_cv_shlib_version \
31369 ShlibVerInfix=$cf_cv_shlib_version_infix \
31370 ReLink=${cf_cv_do_relink:-no} \
31371 ReRanlib=${cf_cv_do_reranlib:-yes} \
31372 DoLinks=$cf_cv_do_symlinks \
31373 rmSoLocs=$cf_cv_rm_so_locs \
31374 ldconfig="$LDCONFIG" \
31375 overwrite=$WITH_OVERWRITE \
31376 depend="$cf_depend" \
31378 libtool_version="$LIBTOOL_VERSION" \
31379 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31381 cf_suffix="$old_cf_suffix"
31383 for cf_subdir2 in $cf_subdirs lib
31385 test "$cf_subdir" = "$cf_subdir2" && break
31387 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
31388 $AWK -f "$srcdir/mk-2nd.awk" \
31390 traces=$LIB_TRACING \
31393 subset=$cf_subset \
31396 crenames=$cf_cv_prog_CC_c_o \
31397 cxxrenames=$cf_cv_prog_CXX_c_o \
31398 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31399 cf_subdirs="$cf_subdirs $cf_subdir"
31404 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
31408 echo '# generated by CF_LIB_RULES' >> Makefile
31410 if test "x$cf_cv_make_PHONY" = xyes ; then
31411 cat >> Makefile <<-CF_EOF
31415 .PHONY : install.includes
31416 .PHONY : uninstall.includes
31417 .PHONY : install.libs
31418 .PHONY : uninstall.libs
31422 for cf_dir in $SRC_SUBDIRS
31424 if test ! -d "$srcdir/$cf_dir" ; then
31428 if test -f "$cf_dir/Makefile" ; then
31431 echo 'libs \' >> Makefile
31432 echo 'install.libs \' >> Makefile
31433 echo 'uninstall.libs ::' >> Makefile
31434 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
31439 if test -f "$srcdir/$cf_dir/modules" ; then
31441 if test "x$cf_cv_make_PHONY" = xyes ; then
31442 cat >> Makefile <<-CF_EOF
31444 .PHONY : install.$cf_dir
31445 .PHONY : uninstall.$cf_dir
31450 if test -f "$srcdir/$cf_dir/headers" ; then
31451 cat >> Makefile <<CF_EOF
31452 install.includes \\
31453 uninstall.includes \\
31457 cat >> Makefile <<CF_EOF
31464 uninstall.$cf_dir ::
31465 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31467 elif test -f "$srcdir/$cf_dir/headers" ; then
31468 cat >> Makefile <<CF_EOF
31473 install.includes \\
31474 uninstall.includes ::
31475 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31480 if test "x$cf_cv_make_PHONY" = xyes ; then
31481 cat >> Makefile <<-CF_EOF
31483 .PHONY : install.data
31484 .PHONY : uninstall.data
31488 if test "x$cf_with_db_install" = xyes; then
31489 cat >> Makefile <<CF_EOF
31491 install.libs uninstall.libs \\
31492 install.data uninstall.data ::
31493 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31496 cat >> Makefile <<CF_EOF
31498 install.libs uninstall.libs ::
31499 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31503 if test "x$cf_with_manpages" = xyes; then
31505 if test "x$cf_cv_make_PHONY" = xyes ; then
31506 cat >> Makefile <<-CF_EOF
31508 .PHONY : install.man
31509 .PHONY : uninstall.man
31513 cat >> Makefile <<CF_EOF
31517 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
31521 cat >> Makefile <<CF_EOF
31524 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
31525 rm -f headers.sh headers.sed mk_shared_lib.sh
31526 rm -f edit_man.* man_alias.* *.tmp
31527 rm -rf \${DIRS_TO_MAKE}
31530 rm -f headers.sed headers.sh
31532 echo creating headers.sh
31533 cat >headers.sh <<CF_EOF
31535 # This shell script is generated by the 'configure' script. It is invoked in a
31536 # subdirectory of the build tree. It generates a sed-script in the parent
31537 # directory that is used to adjust includes for header files that reside in a
31538 # subdirectory of /usr/include, etc.
31540 while test \$# != 3
31542 PRG="\$PRG \$1"; shift
31547 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
31548 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
31549 echo installing \$SRC in \$DST
31552 if test "$WITH_CURSES_H" = yes; then
31553 cat >>headers.sh <<CF_EOF
31556 END=\`basename \$DST\`
31557 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31559 NAME=\`basename \$i\`
31560 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31564 echo "" >> \$TMPSED
31570 cat >>headers.sh <<CF_EOF
31573 END=\`basename \$DST\`
31574 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31576 NAME=\`basename \$i\`
31577 if test "\$NAME" = "curses.h"
31579 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31582 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31586 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31591 cat >>headers.sh <<CF_EOF
31593 sed -f \$TMPSED \$SRC > \$TMPSRC
31594 NAME=\`basename \$SRC\`
31596 if test "$WITH_CURSES_H" != yes; then
31597 cat >>headers.sh <<CF_EOF
31598 test "\$NAME" = "curses.h" && NAME=ncurses.h
31601 cat >>headers.sh <<CF_EOF
31602 # Just in case someone gzip'd manpages, remove the conflicting copy.
31603 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31605 eval \$PRG \$TMPSRC \$DST/\$NAME
31606 rm -f \$TMPSRC \$TMPSED
31609 chmod 0755 headers.sh
31611 for cf_dir in $SRC_SUBDIRS
31613 if test ! -d "$srcdir/$cf_dir" ; then
31617 if test -f "$srcdir/$cf_dir/headers" ; then
31618 $AWK -f "$srcdir/mk-hdr.awk" \
31619 subset="$LIB_SUBSETS" \
31620 compat="$WITH_CURSES_H" \
31621 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31624 if test -f "$srcdir/$cf_dir/modules" ; then
31625 if test "$cf_dir" != "c++" ; then
31626 if test "x$cf_cv_make_PHONY" = xyes ; then
31627 cat >> $cf_dir/Makefile <<-CF_EOF
31633 cat >>$cf_dir/Makefile <<"CF_EOF"
31634 depend : ${AUTO_SRC}
31635 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31637 # DO NOT DELETE THIS LINE -- make depend depends on it.
31643 if test "$MANPAGE_RENAMES" != no ; then
31644 # Construct a sed-script to perform renaming within man-pages
31645 test -n "$verbose" && echo "creating edit_man.sed"
31646 test ! -d man && mkdir man
31647 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
31650 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31651 if test -z "$USE_OLD_MAKERULES" ; then
31652 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31660 cat >>"$CONFIG_STATUS" <<\EOF
31662 { (exit 0); exit 0; }
31664 chmod +x "$CONFIG_STATUS"
31665 ac_clean_files=$ac_clean_files_save
31667 # configure is writing to config.log, and then calls config.status.
31668 # config.status does its own redirection, appending to config.log.
31669 # Unfortunately, on DOS this fails, as config.log is still kept open
31670 # by configure, so config.status won't be able to write to it; its
31671 # output is simply discarded. So we exec the FD to /dev/null,
31672 # effectively closing config.log, so it can be properly (re)opened and
31673 # appended to by config.status. When coming back to configure, we
31674 # need to make the FD available again.
31675 if test "$no_create" != yes; then
31678 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31681 # would make configure fail if this is the last instruction.
31682 "$ac_cs_success" || { (exit 1); exit 1; }
31684 ${MAKE:-make} preinstall