2 # From configure.in Revision: 1.766 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20230903.
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, don't build demo
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 suffixes ncursesXX-config file
729 --with-pkg-config{=path} enable/disable use of pkg-config
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix suffixes pc-files
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix prefixes actual install-location ($DESTDIR)
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version=X Specify rel or abi version for shared libs
756 --with-libtool-opts=XXX specify additional libtool options
757 --with-export-syms=XXX limit exported symbols using libtool
758 --with-versioned-syms=X markup versioned symbols using ld
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict root use of ncurses environment variables
787 --disable-root-access restrict file-access when running setuid
788 --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 --enable-widec compile with wide-char/UTF-8 code
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 file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
799 --with-bool=TYPE override fallback type of bool variable
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 compile using signed Boolean's 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 --enable-opaque-curses make curses WINDOW, etc., "opaque"
833 --enable-opaque-form make form-library structures "opaque"
834 --enable-opaque-menu make menu-library structures "opaque"
835 --enable-opaque-panel make panel-library structures "opaque"
836 --with-wrap-prefix=XXX override prefix used for public variables
838 --without-develop disable development options
839 --enable-hard-tabs compile with hard-tabs code
840 --enable-xmc-glitch compile with support for xmc (magic-cookie)
842 --disable-assumed-color do not assume anything about default-colors
843 --disable-hashmap compile without hashmap scrolling-optimization
844 --enable-check-size compile-in code to detect screensize
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 specify Ada95 compiler command (default gnatmake)
870 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
871 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
872 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
873 --with-ada-libname=XXX override default Ada library-name
874 --with-form-libname=XXX override form basename of library
875 --with-menu-libname=XXX override menu basename of library
876 --with-panel-libname=XXX override panel basename of library
877 --with-cxx-libname=XXX override ncurses++ basename of library
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
887 CXX C++ compiler command
888 CXXFLAGS C++ compiler flags
889 CXXCPP C++ preprocessor
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
902 # A "../" for each directory in /$ac_subdir.
903 ac_dots=`echo "$ac_subdir" |
904 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
907 .) # No --srcdir option. We are building in place.
908 ac_sub_srcdir="$srcdir" ;;
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
912 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f "$ac_sub_srcdir/configure.gnu"; then
918 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
919 elif test -f "$ac_sub_srcdir/configure"; then
921 $SHELL "$ac_sub_srcdir/configure" --help=recursive
922 elif test -f "$ac_sub_srcdir/configure.ac" ||
923 test -f "$ac_sub_srcdir/configure.in"; then
925 "$ac_configure" --help
927 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
933 test -n "$ac_init_help" && exit 0
934 if "$ac_init_version"; then
937 Copyright 2003-2022,2023 Thomas E. Dickey
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
950 It was created by $as_me, which was
951 generated by GNU Autoconf 2.52.20230903. Invocation command line was
962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
971 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
991 # Keep a trace of the command line.
992 # Strip out --no-create and --no-recursion so they do not pile up.
993 # Also quote any args containing shell meta-characters.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c) ;;
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1003 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1005 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1007 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1010 # Get rid of the leading space.
1013 # When interrupted or exit'd, cleanup temporary files, and complete
1014 # config.log. We remove comments because anyway the quotes in there
1015 # would cause problems or look ugly.
1016 trap 'exit_status=$?
1017 # Save into config.log some information that might help in debugging.
1019 echo "## ----------------- ##" >&5
1020 echo "## Cache variables. ##" >&5
1021 echo "## ----------------- ##" >&5
1023 # The following way of writing the cache mishandles newlines in values,
1026 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1029 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038 sed "/^$/d" confdefs.h >conftest.log
1039 if test -s conftest.log; then
1041 echo "## ------------ ##" >&5
1042 echo "## confdefs.h. ##" >&5
1043 echo "## ------------ ##" >&5
1045 cat conftest.log >&5
1048 test "$ac_signal" != 0 &&
1049 echo "$as_me: caught signal $ac_signal" >&5
1050 echo "$as_me: exit $exit_status" >&5
1051 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1054 for ac_signal in 1 2 13 15; do
1055 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1060 rm -rf conftest* confdefs.h
1061 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1064 # Let the site file select an alternate cache file if it wants to.
1065 # Prefer explicitly selected file to automatically selected ones.
1066 if test -z "$CONFIG_SITE"; then
1067 if test "x$prefix" != xNONE; then
1068 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1070 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1073 for ac_site_file in $CONFIG_SITE; do
1074 if test -r "$ac_site_file"; then
1075 { echo "$as_me:1075: loading site script $ac_site_file" >&5
1076 echo "$as_me: loading site script $ac_site_file" >&6;}
1077 cat "$ac_site_file" >&5
1082 if test -r "$cache_file"; then
1083 # Some versions of bash will fail to source /dev/null (special
1084 # files actually), so we avoid doing that.
1085 if test -f "$cache_file"; then
1086 { echo "$as_me:1086: loading cache $cache_file" >&5
1087 echo "$as_me: loading cache $cache_file" >&6;}
1089 [\\/]* | ?:[\\/]* ) . $cache_file;;
1090 *) . ./$cache_file;;
1094 { echo "$as_me:1094: creating cache $cache_file" >&5
1095 echo "$as_me: creating cache $cache_file" >&6;}
1099 # Check that the precious variables saved in the cache have kept the same
1101 ac_cache_corrupted=false
1102 for ac_var in `(set) 2>&1 |
1103 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1104 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1105 eval ac_new_set=\$ac_env_${ac_var}_set
1106 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1107 eval ac_new_val="\$ac_env_${ac_var}_value"
1108 case "$ac_old_set,$ac_new_set" in
1110 { echo "$as_me:1110: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1111 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1112 ac_cache_corrupted=: ;;
1114 { echo "$as_me:1114: error: \`$ac_var' was not set in the previous run" >&5
1115 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1116 ac_cache_corrupted=: ;;
1119 if test "x$ac_old_val" != "x$ac_new_val"; then
1120 { echo "$as_me:1120: error: \`$ac_var' has changed since the previous run:" >&5
1121 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1122 { echo "$as_me:1122: former value: $ac_old_val" >&5
1123 echo "$as_me: former value: $ac_old_val" >&2;}
1124 { echo "$as_me:1124: current value: $ac_new_val" >&5
1125 echo "$as_me: current value: $ac_new_val" >&2;}
1126 ac_cache_corrupted=:
1129 # Pass precious variables to config.status. It doesn't matter if
1130 # we pass some twice (in addition to the command line arguments).
1131 if test "$ac_new_set" = set; then
1132 case "$ac_new_val" in
1133 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1134 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1135 ac_configure_args="$ac_configure_args '$ac_arg'"
1137 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1142 if "$ac_cache_corrupted"; then
1143 { echo "$as_me:1143: error: changes in the environment can compromise the build" >&5
1144 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1145 { { echo "$as_me:1145: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1146 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1147 { (exit 1); exit 1; }; }
1151 ac_cpp='$CPP $CPPFLAGS'
1152 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1153 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1155 ac_main_return="return"
1157 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1159 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1171 echo "#! $SHELL" >conftest.sh
1172 echo "exit 0" >>conftest.sh
1173 chmod +x conftest.sh
1174 if { (echo "$as_me:1174: PATH=\".;.\"; conftest.sh") >&5
1175 (PATH=".;."; conftest.sh) 2>&5
1177 echo "$as_me:1177: \$? = $ac_status" >&5
1178 (exit "$ac_status"); }; then
1179 ac_path_separator=';'
1183 PATH_SEPARATOR="$ac_path_separator"
1186 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1190 for ac_prog in ggrep grep
1192 # Extract the first word of "$ac_prog", so it can be a program name with args.
1193 set dummy $ac_prog; ac_word=$2
1194 echo "$as_me:1194: checking for $ac_word" >&5
1195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196 if test "${ac_cv_prog_GREP+set}" = set; then
1197 echo $ECHO_N "(cached) $ECHO_C" >&6
1199 if test -n "$GREP"; then
1200 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1202 ac_save_IFS=$IFS; IFS=$ac_path_separator
1204 for ac_dir in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir=.
1207 $as_executable_p "$ac_dir/$ac_word" || continue
1208 ac_cv_prog_GREP="$ac_prog"
1209 echo "$as_me:1209: found $ac_dir/$ac_word" >&5
1215 GREP=$ac_cv_prog_GREP
1216 if test -n "$GREP"; then
1217 echo "$as_me:1217: result: $GREP" >&5
1218 echo "${ECHO_T}$GREP" >&6
1220 echo "$as_me:1220: result: no" >&5
1221 echo "${ECHO_T}no" >&6
1224 test -n "$GREP" && break
1226 test -n "$GREP" || GREP=": "
1228 echo "$as_me:1228: checking for egrep" >&5
1229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1230 if test "${ac_cv_path_EGREP+set}" = set; then
1231 echo $ECHO_N "(cached) $ECHO_C" >&6
1233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1234 then ac_cv_path_EGREP="$GREP -E"
1236 for ac_prog in gegrep egrep
1238 # Extract the first word of "$ac_prog", so it can be a program name with args.
1239 set dummy $ac_prog; ac_word=$2
1240 echo "$as_me:1240: checking for $ac_word" >&5
1241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1242 if test "${ac_cv_path_EGREP+set}" = set; then
1243 echo $ECHO_N "(cached) $ECHO_C" >&6
1247 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1250 ac_save_IFS=$IFS; IFS=$ac_path_separator
1252 for ac_dir in $ac_dummy; do
1254 test -z "$ac_dir" && ac_dir=.
1255 if $as_executable_p "$ac_dir/$ac_word"; then
1256 ac_cv_path_EGREP="$ac_dir/$ac_word"
1257 echo "$as_me:1257: found $ac_dir/$ac_word" >&5
1265 EGREP=$ac_cv_path_EGREP
1267 if test -n "$EGREP"; then
1268 echo "$as_me:1268: result: $EGREP" >&5
1269 echo "${ECHO_T}$EGREP" >&6
1271 echo "$as_me:1271: result: no" >&5
1272 echo "${ECHO_T}no" >&6
1275 test -n "$EGREP" && break
1277 test -n "$EGREP" || EGREP=": "
1279 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1279: error: cannot find workable egrep" >&5
1280 echo "$as_me: error: cannot find workable egrep" >&2;}
1281 { (exit 1); exit 1; }; }
1284 echo "$as_me:1284: result: $ac_cv_path_EGREP" >&5
1285 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1286 EGREP="$ac_cv_path_EGREP"
1288 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1289 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1290 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1291 cf_cv_abi_version=${NCURSES_MAJOR}
1292 cf_cv_abi_default=${NCURSES_MAJOR}
1293 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1294 cf_cv_timestamp=`date`
1295 echo "$as_me:1295: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&5
1296 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&6
1298 if test -f "$srcdir/VERSION" ; then
1299 echo "$as_me:1299: checking for package version" >&5
1300 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1302 # if there are not enough fields, cut returns the last one...
1303 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1304 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1305 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1307 # this is how CF_BUNDLED_INTL uses $VERSION:
1308 VERSION="$cf_field1"
1310 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1311 test -z "$VERSION_MAJOR" && { { echo "$as_me:1311: error: missing major-version" >&5
1312 echo "$as_me: error: missing major-version" >&2;}
1313 { (exit 1); exit 1; }; }
1315 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1316 test -z "$VERSION_MINOR" && { { echo "$as_me:1316: error: missing minor-version" >&5
1317 echo "$as_me: error: missing minor-version" >&2;}
1318 { (exit 1); exit 1; }; }
1320 echo "$as_me:1320: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1321 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1323 echo "$as_me:1323: checking for package patch date" >&5
1324 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1325 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1326 case .$VERSION_PATCH in
1328 { { echo "$as_me:1328: error: missing patch-date $VERSION_PATCH" >&5
1329 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1330 { (exit 1); exit 1; }; }
1332 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1335 { { echo "$as_me:1335: error: illegal patch-date $VERSION_PATCH" >&5
1336 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1337 { (exit 1); exit 1; }; }
1340 echo "$as_me:1340: result: $VERSION_PATCH" >&5
1341 echo "${ECHO_T}$VERSION_PATCH" >&6
1343 { { echo "$as_me:1343: error: did not find $srcdir/VERSION" >&5
1344 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1345 { (exit 1); exit 1; }; }
1348 # show the actual data that we have for versions:
1349 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1351 echo "${as_me:-configure}:1351: testing ABI VERSION $VERSION ..." 1>&5
1353 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1355 echo "${as_me:-configure}:1355: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1357 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1359 echo "${as_me:-configure}:1359: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1361 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1363 echo "${as_me:-configure}:1363: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1368 cat >>confdefs.h <<EOF
1369 #define PACKAGE "$PACKAGE"
1372 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1374 cat >>confdefs.h <<EOF
1375 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1378 cat >>confdefs.h <<EOF
1379 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1382 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1384 # Check whether --with-rel-version or --without-rel-version was given.
1385 if test "${with_rel_version+set}" = set; then
1386 withval="$with_rel_version"
1387 { echo "$as_me:1387: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1388 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1389 cf_cv_rel_version=$withval
1392 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1393 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1394 test -n "NCURSES_MINOR" || NCURSES_MINOR=0
1396 if test -n "$NCURSES_MAJOR" ; then
1397 case `echo "$NCURSES_MAJOR" | sed -e 's/^[0-9]*$/0/g'` in
1401 { { echo "$as_me:1401: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1402 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1403 { (exit 1); exit 1; }; }
1407 { { echo "$as_me:1407: error: Release major-version value is empty" >&5
1408 echo "$as_me: error: Release major-version value is empty" >&2;}
1409 { (exit 1); exit 1; }; }
1412 if test -n "$NCURSES_MINOR" ; then
1413 case `echo "$NCURSES_MINOR" | sed -e 's/^[0-9]*$/0/g'` in
1417 { { echo "$as_me:1417: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1418 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1419 { (exit 1); exit 1; }; }
1423 { { echo "$as_me:1423: error: Release minor-version value is empty" >&5
1424 echo "$as_me: error: Release minor-version value is empty" >&2;}
1425 { (exit 1); exit 1; }; }
1428 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1430 # Check whether --with-abi-version or --without-abi-version was given.
1431 if test "${with_abi_version+set}" = set; then
1432 withval="$with_abi_version"
1434 if test "x$cf_cv_abi_version" != "x$withval"
1436 { echo "$as_me:1436: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1437 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1438 case "$cf_cv_rel_version" in
1440 cf_cv_rel_version=$withval.0
1443 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1447 cf_cv_abi_version=$withval
1450 if test -n "$cf_cv_abi_version" ; then
1451 case `echo "$cf_cv_abi_version" | sed -e 's/^[0-9]*$/0/g'` in
1455 { { echo "$as_me:1455: error: ABI version is not a number: $cf_cv_abi_version" >&5
1456 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1457 { (exit 1); exit 1; }; }
1461 { { echo "$as_me:1461: error: ABI version value is empty" >&5
1462 echo "$as_me: error: ABI version value is empty" >&2;}
1463 { (exit 1); exit 1; }; }
1466 cf_cv_abi_default=$cf_cv_abi_version
1468 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1470 case "$cf_cv_rel_version" in
1472 cf_cv_rel_version=$with_abi_version.0
1478 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479 if test -f "$ac_dir/install-sh"; then
1481 ac_install_sh="$ac_aux_dir/install-sh -c"
1483 elif test -f "$ac_dir/install.sh"; then
1485 ac_install_sh="$ac_aux_dir/install.sh -c"
1487 elif test -f "$ac_dir/shtool"; then
1489 ac_install_sh="$ac_aux_dir/shtool install -c"
1493 if test -z "$ac_aux_dir"; then
1494 { { echo "$as_me:1494: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496 { (exit 1); exit 1; }; }
1498 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502 # Make sure we can run config.sub.
1503 $ac_config_sub sun4 >/dev/null 2>&1 ||
1504 { { echo "$as_me:1504: error: cannot run $ac_config_sub" >&5
1505 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506 { (exit 1); exit 1; }; }
1508 echo "$as_me:1508: checking build system type" >&5
1509 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510 if test "${ac_cv_build+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 ac_cv_build_alias=$build_alias
1514 test -z "$ac_cv_build_alias" &&
1515 ac_cv_build_alias=`$ac_config_guess`
1516 test -z "$ac_cv_build_alias" &&
1517 { { echo "$as_me:1517: error: cannot guess build type; you must specify one" >&5
1518 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519 { (exit 1); exit 1; }; }
1520 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1521 { { echo "$as_me:1521: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1523 { (exit 1); exit 1; }; }
1526 echo "$as_me:1526: result: $ac_cv_build" >&5
1527 echo "${ECHO_T}$ac_cv_build" >&6
1529 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533 echo "$as_me:1533: checking host system type" >&5
1534 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1535 if test "${ac_cv_host+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 ac_cv_host_alias=$host_alias
1539 test -z "$ac_cv_host_alias" &&
1540 ac_cv_host_alias=$ac_cv_build_alias
1541 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1542 { { echo "$as_me:1542: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1543 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1547 echo "$as_me:1547: result: $ac_cv_host" >&5
1548 echo "${ECHO_T}$ac_cv_host" >&6
1550 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1555 echo "$as_me:1555: checking target system type" >&5
1556 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1557 if test "${ac_cv_target+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 ac_cv_target_alias=$target_alias
1561 test "x$ac_cv_target_alias" = "x" &&
1562 ac_cv_target_alias=$ac_cv_host_alias
1563 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1564 { { echo "$as_me:1564: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1565 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1569 echo "$as_me:1569: result: $ac_cv_target" >&5
1570 echo "${ECHO_T}$ac_cv_target" >&6
1571 target=$ac_cv_target
1572 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576 # The aliases save the names the user supplied, while $host etc.
1577 # will get canonicalized.
1578 test -n "$target_alias" &&
1579 test "$program_prefix$program_suffix$program_transform_name" = \
1581 program_prefix=${target_alias}-
1582 system_name="$host_os"
1584 system_name="`(uname -s -r) 2>/dev/null`"
1585 if test -z "$system_name" ; then
1586 system_name="`(hostname) 2>/dev/null`"
1589 test -n "$system_name" &&
1590 cat >>confdefs.h <<EOF
1591 #define SYSTEM_NAME "$system_name"
1594 if test "${cf_cv_system_name+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 cf_cv_system_name="$system_name"
1600 test -z "$system_name" && system_name="$cf_cv_system_name"
1601 test -n "$cf_cv_system_name" && echo "$as_me:1601: result: Configuring for $cf_cv_system_name" >&5
1602 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1604 if test ".$system_name" != ".$cf_cv_system_name" ; then
1605 echo "$as_me:1605: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1606 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1607 { { echo "$as_me:1607: error: \"Please remove config.cache and try again.\"" >&5
1608 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1609 { (exit 1); exit 1; }; }
1612 # Check whether --with-system-type or --without-system-type was given.
1613 if test "${with_system_type+set}" = set; then
1614 withval="$with_system_type"
1615 { echo "$as_me:1615: WARNING: overriding system type to $withval" >&5
1616 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1617 cf_cv_system_name=$withval
1622 ### Save the given $CFLAGS to allow user-override.
1623 cf_user_CFLAGS="$CFLAGS"
1625 ### Default install-location
1626 echo "$as_me:1626: checking for fgrep" >&5
1627 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1628 if test "${ac_cv_path_FGREP+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1632 then ac_cv_path_FGREP="$GREP -F"
1634 for ac_prog in gfgrep fgrep
1636 # Extract the first word of "$ac_prog", so it can be a program name with args.
1637 set dummy $ac_prog; ac_word=$2
1638 echo "$as_me:1638: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_path_FGREP+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1648 ac_save_IFS=$IFS; IFS=$ac_path_separator
1650 for ac_dir in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir=.
1653 if $as_executable_p "$ac_dir/$ac_word"; then
1654 ac_cv_path_FGREP="$ac_dir/$ac_word"
1655 echo "$as_me:1655: found $ac_dir/$ac_word" >&5
1663 FGREP=$ac_cv_path_FGREP
1665 if test -n "$FGREP"; then
1666 echo "$as_me:1666: result: $FGREP" >&5
1667 echo "${ECHO_T}$FGREP" >&6
1669 echo "$as_me:1669: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1673 test -n "$FGREP" && break
1675 test -n "$FGREP" || FGREP=": "
1677 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1677: error: cannot find workable fgrep" >&5
1678 echo "$as_me: error: cannot find workable fgrep" >&2;}
1679 { (exit 1); exit 1; }; }
1682 echo "$as_me:1682: result: $ac_cv_path_FGREP" >&5
1683 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1684 FGREP="$ac_cv_path_FGREP"
1686 echo "$as_me:1686: checking for prefix" >&5
1687 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1688 if test "x$prefix" = "xNONE" ; then
1689 case "$cf_cv_system_name" in
1690 # non-vendor systems don't have a conflict
1691 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1694 (*) prefix=$ac_default_prefix
1698 echo "$as_me:1698: result: $prefix" >&5
1699 echo "${ECHO_T}$prefix" >&6
1701 if test "x$prefix" = "xNONE" ; then
1702 echo "$as_me:1702: checking for default include-directory" >&5
1703 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1704 test -n "$verbose" && echo 1>&6
1707 "$includedir/ncurses" \
1709 "$prefix/include/ncurses" \
1710 /usr/local/include \
1711 /usr/local/include/ncurses \
1713 /usr/include/ncurses
1715 cf_dir=`eval echo "$cf_symbol"`
1716 if test -f "$cf_dir/curses.h" ; then
1717 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1718 includedir="$cf_symbol"
1719 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1723 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1725 echo "$as_me:1725: result: $includedir" >&5
1726 echo "${ECHO_T}$includedir" >&6
1729 ### Defaults for ncurses ABI
1734 cf_dft_ext_colors=no
1737 cf_dft_ext_putwin=no
1738 cf_dft_ext_spfuncs=no
1739 cf_dft_filter_syms=no
1742 cf_dft_opaque_curses=no
1743 cf_dft_ordinate_type=short
1744 cf_dft_signed_char=no
1745 cf_dft_tparm_arg=long
1749 case x$cf_cv_abi_default in
1751 cf_dft_chtype=uint32_t
1752 cf_dft_ext_colors=yes
1753 cf_dft_ext_const=yes
1754 cf_dft_ext_mouse=yes
1755 cf_dft_ext_putwin=yes
1756 cf_dft_ext_spfuncs=yes
1757 cf_dft_filter_syms=yes
1759 cf_dft_mmask_t=uint32_t
1760 cf_dft_tparm_arg=intptr_t
1761 cf_dft_with_lp64=yes
1766 case x$cf_cv_abi_default in
1769 cf_dft_mmask_t=uint64_t
1770 cf_dft_opaque_curses=yes
1771 cf_dft_ordinate_type=int
1772 cf_dft_signed_char=yes
1773 # also: remove the wgetch-events feature in ABI 7
1777 ### override ABI version, e.g., packagers
1779 # Check whether --with-abi-altered or --without-abi-altered was given.
1780 if test "${with_abi_altered+set}" = set; then
1781 withval="$with_abi_altered"
1783 if test -n "$withval" ; then
1784 case `echo "$withval" | sed -e 's/^[0-9]*$/0/g'` in
1788 { { echo "$as_me:1788: error: ABI altered is not a number: $withval" >&5
1789 echo "$as_me: error: ABI altered is not a number: $withval" >&2;}
1790 { (exit 1); exit 1; }; }
1794 { { echo "$as_me:1794: error: ABI altered value is empty" >&5
1795 echo "$as_me: error: ABI altered value is empty" >&2;}
1796 { (exit 1); exit 1; }; }
1799 if test "$cf_cv_abi_version" != "$withval"
1801 { echo "$as_me:1801: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&5
1802 echo "$as_me: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&2;}
1803 cf_cv_abi_version=$withval
1808 ### Checks for programs.
1810 # Check whether --with-ada or --without-ada was given.
1811 if test "${with_ada+set}" = set; then
1813 cf_with_ada=$withval
1818 if test "x$cf_with_ada" = xyes
1820 cf_prog_cc="gnatgcc gcc cc"
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1828 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 ac_main_return="return"
1831 if test -n "$ac_tool_prefix"; then
1832 for ac_prog in $cf_prog_cc
1834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1836 echo "$as_me:1836: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 ac_save_IFS=$IFS; IFS=$ac_path_separator
1846 for ac_dir in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir=.
1849 $as_executable_p "$ac_dir/$ac_word" || continue
1850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1851 echo "$as_me:1851: found $ac_dir/$ac_word" >&5
1858 if test -n "$CC"; then
1859 echo "$as_me:1859: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1862 echo "$as_me:1862: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 test -n "$CC" && break
1869 if test -z "$CC"; then
1871 for ac_prog in $cf_prog_cc
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:1875: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 ac_save_IFS=$IFS; IFS=$ac_path_separator
1885 for ac_dir in $ac_dummy; do
1887 test -z "$ac_dir" && ac_dir=.
1888 $as_executable_p "$ac_dir/$ac_word" || continue
1889 ac_cv_prog_ac_ct_CC="$ac_prog"
1890 echo "$as_me:1890: found $ac_dir/$ac_word" >&5
1896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1897 if test -n "$ac_ct_CC"; then
1898 echo "$as_me:1898: result: $ac_ct_CC" >&5
1899 echo "${ECHO_T}$ac_ct_CC" >&6
1901 echo "$as_me:1901: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1905 test -n "$ac_ct_CC" && break
1911 test -z "$CC" && { { echo "$as_me:1911: error: no acceptable cc found in \$PATH" >&5
1912 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1913 { (exit 1); exit 1; }; }
1915 # Provide some information about the compiler.
1916 echo "$as_me:1916:" \
1917 "checking for C compiler version" >&5
1918 ac_compiler=`set X $ac_compile; echo "$2"`
1919 { (eval echo "$as_me:1919: \"$ac_compiler --version </dev/null >&5\"") >&5
1920 (eval $ac_compiler --version </dev/null >&5) 2>&5
1922 echo "$as_me:1922: \$? = $ac_status" >&5
1923 (exit "$ac_status"); }
1924 { (eval echo "$as_me:1924: \"$ac_compiler -v </dev/null >&5\"") >&5
1925 (eval $ac_compiler -v </dev/null >&5) 2>&5
1927 echo "$as_me:1927: \$? = $ac_status" >&5
1928 (exit "$ac_status"); }
1929 { (eval echo "$as_me:1929: \"$ac_compiler -V </dev/null >&5\"") >&5
1930 (eval $ac_compiler -V </dev/null >&5) 2>&5
1932 echo "$as_me:1932: \$? = $ac_status" >&5
1933 (exit "$ac_status"); }
1935 cat >"conftest.$ac_ext" <<_ACEOF
1936 #line 1936 "configure"
1937 #include "confdefs.h"
1947 ac_clean_files_save=$ac_clean_files
1948 ac_clean_files="$ac_clean_files a.out a.exe"
1949 # Try to create an executable without -o first, disregard a.out.
1950 # It will help us diagnose broken compilers, and finding out an intuition
1952 echo "$as_me:1952: checking for C compiler default output" >&5
1953 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1954 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1955 if { (eval echo "$as_me:1955: \"$ac_link_default\"") >&5
1956 (eval $ac_link_default) 2>&5
1958 echo "$as_me:1958: \$? = $ac_status" >&5
1959 (exit "$ac_status"); }; then
1960 # Find the output, starting from the most likely. This scheme is
1961 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1963 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1964 ls a.out conftest 2>/dev/null;
1965 ls a.* conftest.* 2>/dev/null`; do
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1968 a.out ) # We found the default executable, but exeext='' is most
1971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1972 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1979 echo "$as_me: failed program was:" >&5
1980 cat "conftest.$ac_ext" >&5
1981 { { echo "$as_me:1981: error: C compiler cannot create executables" >&5
1982 echo "$as_me: error: C compiler cannot create executables" >&2;}
1983 { (exit 77); exit 77; }; }
1986 ac_exeext=$ac_cv_exeext
1987 echo "$as_me:1987: result: $ac_file" >&5
1988 echo "${ECHO_T}$ac_file" >&6
1990 # Check the compiler produces executables we can run. If not, either
1991 # the compiler is broken, or we cross compile.
1992 echo "$as_me:1992: checking whether the C compiler works" >&5
1993 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1995 # If not cross compiling, check that we can run a simple program.
1996 if test "$cross_compiling" != yes; then
1997 if { ac_try='./$ac_file'
1998 { (eval echo "$as_me:1998: \"$ac_try\"") >&5
2001 echo "$as_me:2001: \$? = $ac_status" >&5
2002 (exit "$ac_status"); }; }; then
2005 if test "$cross_compiling" = maybe; then
2008 { { echo "$as_me:2008: error: cannot run C compiled programs.
2009 If you meant to cross compile, use \`--host'." >&5
2010 echo "$as_me: error: cannot run C compiled programs.
2011 If you meant to cross compile, use \`--host'." >&2;}
2012 { (exit 1); exit 1; }; }
2016 echo "$as_me:2016: result: yes" >&5
2017 echo "${ECHO_T}yes" >&6
2019 rm -f a.out a.exe "conftest$ac_cv_exeext"
2020 ac_clean_files=$ac_clean_files_save
2021 # Check the compiler produces executables we can run. If not, either
2022 # the compiler is broken, or we cross compile.
2023 echo "$as_me:2023: checking whether we are cross compiling" >&5
2024 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2025 echo "$as_me:2025: result: $cross_compiling" >&5
2026 echo "${ECHO_T}$cross_compiling" >&6
2028 echo "$as_me:2028: checking for executable suffix" >&5
2029 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2030 if { (eval echo "$as_me:2030: \"$ac_link\"") >&5
2031 (eval $ac_link) 2>&5
2033 echo "$as_me:2033: \$? = $ac_status" >&5
2034 (exit "$ac_status"); }; then
2035 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2036 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2037 # work properly (i.e., refer to `conftest.exe'), while it won't with
2039 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2041 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 { { echo "$as_me:2049: error: cannot compute EXEEXT: cannot compile and link" >&5
2050 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2051 { (exit 1); exit 1; }; }
2054 rm -f "conftest$ac_cv_exeext"
2055 echo "$as_me:2055: result: $ac_cv_exeext" >&5
2056 echo "${ECHO_T}$ac_cv_exeext" >&6
2058 rm -f "conftest.$ac_ext"
2059 EXEEXT=$ac_cv_exeext
2061 echo "$as_me:2061: checking for object suffix" >&5
2062 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2063 if test "${ac_cv_objext+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 cat >"conftest.$ac_ext" <<_ACEOF
2067 #line 2067 "configure"
2068 #include "confdefs.h"
2078 rm -f conftest.o conftest.obj
2079 if { (eval echo "$as_me:2079: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>&5
2082 echo "$as_me:2082: \$? = $ac_status" >&5
2083 (exit "$ac_status"); }; then
2084 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2086 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2092 echo "$as_me: failed program was:" >&5
2093 cat "conftest.$ac_ext" >&5
2094 { { echo "$as_me:2094: error: cannot compute OBJEXT: cannot compile" >&5
2095 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2096 { (exit 1); exit 1; }; }
2099 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2101 echo "$as_me:2101: result: $ac_cv_objext" >&5
2102 echo "${ECHO_T}$ac_cv_objext" >&6
2103 OBJEXT=$ac_cv_objext
2105 echo "$as_me:2105: checking whether we are using the GNU C compiler" >&5
2106 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2107 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 cat >"conftest.$ac_ext" <<_ACEOF
2111 #line 2111 "configure"
2112 #include "confdefs.h"
2125 rm -f "conftest.$ac_objext"
2126 if { (eval echo "$as_me:2126: \"$ac_compile\"") >&5
2127 (eval $ac_compile) 2>&5
2129 echo "$as_me:2129: \$? = $ac_status" >&5
2130 (exit "$ac_status"); } &&
2131 { ac_try='test -s "conftest.$ac_objext"'
2132 { (eval echo "$as_me:2132: \"$ac_try\"") >&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit "$ac_status"); }; }; then
2139 echo "$as_me: failed program was:" >&5
2140 cat "conftest.$ac_ext" >&5
2143 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2147 echo "$as_me:2147: result: $ac_cv_c_compiler_gnu" >&5
2148 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2149 GCC=`test $ac_compiler_gnu = yes && echo yes`
2150 ac_test_CFLAGS=${CFLAGS+set}
2151 ac_save_CFLAGS=$CFLAGS
2153 echo "$as_me:2153: checking whether $CC accepts -g" >&5
2154 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2155 if test "${ac_cv_prog_cc_g+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 cat >"conftest.$ac_ext" <<_ACEOF
2159 #line 2159 "configure"
2160 #include "confdefs.h"
2170 rm -f "conftest.$ac_objext"
2171 if { (eval echo "$as_me:2171: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>&5
2174 echo "$as_me:2174: \$? = $ac_status" >&5
2175 (exit "$ac_status"); } &&
2176 { ac_try='test -s "conftest.$ac_objext"'
2177 { (eval echo "$as_me:2177: \"$ac_try\"") >&5
2180 echo "$as_me:2180: \$? = $ac_status" >&5
2181 (exit "$ac_status"); }; }; then
2184 echo "$as_me: failed program was:" >&5
2185 cat "conftest.$ac_ext" >&5
2188 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2190 echo "$as_me:2190: result: $ac_cv_prog_cc_g" >&5
2191 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2192 if test "$ac_test_CFLAGS" = set; then
2193 CFLAGS=$ac_save_CFLAGS
2194 elif test $ac_cv_prog_cc_g = yes; then
2195 if test "$GCC" = yes; then
2201 if test "$GCC" = yes; then
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >"conftest.$ac_ext" <<_ACEOF
2216 rm -f "conftest.$ac_objext"
2217 if { (eval echo "$as_me:2217: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2220 echo "$as_me:2220: \$? = $ac_status" >&5
2221 (exit "$ac_status"); } &&
2222 { ac_try='test -s "conftest.$ac_objext"'
2223 { (eval echo "$as_me:2223: \"$ac_try\"") >&5
2226 echo "$as_me:2226: \$? = $ac_status" >&5
2227 (exit "$ac_status"); }; }; then
2228 for ac_declaration in \
2230 '#include <stdlib.h>' \
2231 'extern "C" void std::exit (int) throw (); using std::exit;' \
2232 'extern "C" void std::exit (int); using std::exit;' \
2233 'extern "C" void exit (int) throw ();' \
2234 'extern "C" void exit (int);' \
2237 cat >"conftest.$ac_ext" <<_ACEOF
2238 #line 2238 "configure"
2239 #include "confdefs.h"
2250 rm -f "conftest.$ac_objext"
2251 if { (eval echo "$as_me:2251: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>&5
2254 echo "$as_me:2254: \$? = $ac_status" >&5
2255 (exit "$ac_status"); } &&
2256 { ac_try='test -s "conftest.$ac_objext"'
2257 { (eval echo "$as_me:2257: \"$ac_try\"") >&5
2260 echo "$as_me:2260: \$? = $ac_status" >&5
2261 (exit "$ac_status"); }; }; then
2264 echo "$as_me: failed program was:" >&5
2265 cat "conftest.$ac_ext" >&5
2268 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2269 cat >"conftest.$ac_ext" <<_ACEOF
2270 #line 2270 "configure"
2271 #include "confdefs.h"
2281 rm -f "conftest.$ac_objext"
2282 if { (eval echo "$as_me:2282: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2285 echo "$as_me:2285: \$? = $ac_status" >&5
2286 (exit "$ac_status"); } &&
2287 { ac_try='test -s "conftest.$ac_objext"'
2288 { (eval echo "$as_me:2288: \"$ac_try\"") >&5
2291 echo "$as_me:2291: \$? = $ac_status" >&5
2292 (exit "$ac_status"); }; }; then
2295 echo "$as_me: failed program was:" >&5
2296 cat "conftest.$ac_ext" >&5
2298 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2301 if test -n "$ac_declaration"; then
2302 echo '#ifdef __cplusplus' >>confdefs.h
2303 echo "$ac_declaration" >>confdefs.h
2304 echo '#endif' >>confdefs.h
2308 echo "$as_me: failed program was:" >&5
2309 cat "conftest.$ac_ext" >&5
2311 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2313 ac_cpp='$CPP $CPPFLAGS'
2314 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2315 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317 ac_main_return="return"
2320 if test "$GCC" = yes ; then
2321 echo "$as_me:2321: checking version of $CC" >&5
2322 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2323 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2324 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2325 echo "$as_me:2325: result: $GCC_VERSION" >&5
2326 echo "${ECHO_T}$GCC_VERSION" >&6
2331 if test "$GCC" = yes ; then
2334 echo "$as_me:2334: checking if this is really Intel C compiler" >&5
2335 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2336 cf_save_CFLAGS="$CFLAGS"
2337 CFLAGS="$CFLAGS -no-gcc"
2338 cat >"conftest.$ac_ext" <<_ACEOF
2339 #line 2339 "configure"
2340 #include "confdefs.h"
2346 #ifdef __INTEL_COMPILER
2348 #error __INTEL_COMPILER is not defined
2355 rm -f "conftest.$ac_objext"
2356 if { (eval echo "$as_me:2356: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>&5
2359 echo "$as_me:2359: \$? = $ac_status" >&5
2360 (exit "$ac_status"); } &&
2361 { ac_try='test -s "conftest.$ac_objext"'
2362 { (eval echo "$as_me:2362: \"$ac_try\"") >&5
2365 echo "$as_me:2365: \$? = $ac_status" >&5
2366 (exit "$ac_status"); }; }; then
2368 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2371 echo "$as_me: failed program was:" >&5
2372 cat "conftest.$ac_ext" >&5
2374 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2375 CFLAGS="$cf_save_CFLAGS"
2376 echo "$as_me:2376: result: $INTEL_COMPILER" >&5
2377 echo "${ECHO_T}$INTEL_COMPILER" >&6
2384 if test "$GCC" = yes ; then
2385 echo "$as_me:2385: checking if this is really Clang C compiler" >&5
2386 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2387 cf_save_CFLAGS="$CFLAGS"
2388 cat >"conftest.$ac_ext" <<_ACEOF
2389 #line 2389 "configure"
2390 #include "confdefs.h"
2398 #error __clang__ is not defined
2405 rm -f "conftest.$ac_objext"
2406 if { (eval echo "$as_me:2406: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>&5
2409 echo "$as_me:2409: \$? = $ac_status" >&5
2410 (exit "$ac_status"); } &&
2411 { ac_try='test -s "conftest.$ac_objext"'
2412 { (eval echo "$as_me:2412: \"$ac_try\"") >&5
2415 echo "$as_me:2415: \$? = $ac_status" >&5
2416 (exit "$ac_status"); }; }; then
2420 echo "$as_me: failed program was:" >&5
2421 cat "conftest.$ac_ext" >&5
2423 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2424 CFLAGS="$cf_save_CFLAGS"
2425 echo "$as_me:2425: result: $CLANG_COMPILER" >&5
2426 echo "${ECHO_T}$CLANG_COMPILER" >&6
2431 if test "x$CLANG_COMPILER" = "xyes" ; then
2433 (c[1-9][0-9]|*/c[1-9][0-9])
2434 { echo "$as_me:2434: WARNING: replacing broken compiler alias $CC" >&5
2435 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2436 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2441 echo "$as_me:2441: checking version of $CC" >&5
2442 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2443 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.].*//'`"
2444 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2445 echo "$as_me:2445: result: $CLANG_VERSION" >&5
2446 echo "${ECHO_T}$CLANG_VERSION" >&6
2448 for cf_clang_opt in \
2449 -Qunused-arguments \
2450 -Wno-error=implicit-function-declaration
2452 echo "$as_me:2452: checking if option $cf_clang_opt works" >&5
2453 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2454 cf_save_CFLAGS="$CFLAGS"
2455 CFLAGS="$CFLAGS $cf_clang_opt"
2456 cat >"conftest.$ac_ext" <<_ACEOF
2457 #line 2457 "configure"
2458 #include "confdefs.h"
2465 printf("hello!\\n");
2470 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2471 if { (eval echo "$as_me:2471: \"$ac_link\"") >&5
2472 (eval $ac_link) 2>&5
2474 echo "$as_me:2474: \$? = $ac_status" >&5
2475 (exit "$ac_status"); } &&
2476 { ac_try='test -s "conftest$ac_exeext"'
2477 { (eval echo "$as_me:2477: \"$ac_try\"") >&5
2480 echo "$as_me:2480: \$? = $ac_status" >&5
2481 (exit "$ac_status"); }; }; then
2485 echo "$as_me: failed program was:" >&5
2486 cat "conftest.$ac_ext" >&5
2490 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2491 echo "$as_me:2491: result: $cf_clang_optok" >&5
2492 echo "${ECHO_T}$cf_clang_optok" >&6
2493 CFLAGS="$cf_save_CFLAGS"
2494 if test "$cf_clang_optok" = yes; then
2495 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2497 echo "${as_me:-configure}:2497: testing adding option $cf_clang_opt ..." 1>&5
2499 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2500 CFLAGS="${CFLAGS}$cf_clang_opt"
2506 echo "$as_me:2506: checking for $CC option to accept ANSI C" >&5
2507 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 ac_cv_prog_cc_stdc=no
2513 cat >"conftest.$ac_ext" <<_ACEOF
2514 #line 2514 "configure"
2515 #include "confdefs.h"
2518 #include <sys/types.h>
2519 #include <sys/stat.h>
2520 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2521 struct buf { int x; };
2522 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2523 static char *e (char **p, int i)
2527 static char *f (char * (*g) (char **, int), char **p, ...)
2532 s = g (p, va_arg (v,int));
2536 int test (int i, double x);
2537 struct s1 {int (*f) (int a);};
2538 struct s2 {int (*f) (double a);};
2539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2550 # Don't try gcc -ansi; that turns off useful extensions and
2551 # breaks some systems' header files.
2552 # AIX -qlanglvl=ansi
2553 # Ultrix and OSF/1 -std1
2554 # HP-UX 10.20 and later -Ae
2555 # HP-UX older versions -Aa -D_HPUX_SOURCE
2556 # SVR4 -Xc -D__EXTENSIONS__
2557 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2559 CC="$ac_save_CC $ac_arg"
2560 rm -f "conftest.$ac_objext"
2561 if { (eval echo "$as_me:2561: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2564 echo "$as_me:2564: \$? = $ac_status" >&5
2565 (exit "$ac_status"); } &&
2566 { ac_try='test -s "conftest.$ac_objext"'
2567 { (eval echo "$as_me:2567: \"$ac_try\"") >&5
2570 echo "$as_me:2570: \$? = $ac_status" >&5
2571 (exit "$ac_status"); }; }; then
2572 ac_cv_prog_cc_stdc=$ac_arg
2575 echo "$as_me: failed program was:" >&5
2576 cat "conftest.$ac_ext" >&5
2578 rm -f "conftest.$ac_objext"
2580 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2585 case "x$ac_cv_prog_cc_stdc" in
2587 echo "$as_me:2587: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:2590: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 # This should have been defined by AC_PROG_CC
2598 echo "$as_me:2598: checking \$CFLAGS variable" >&5
2599 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2602 echo "$as_me:2602: result: broken" >&5
2603 echo "${ECHO_T}broken" >&6
2604 { echo "$as_me:2604: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2605 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2608 for cf_arg in $cf_flags
2614 cf_new_extra_cppflags=
2616 for cf_add_cflags in $cf_arg
2618 case "$cf_fix_cppflags" in
2620 case "$cf_add_cflags" in
2621 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2622 case "$cf_add_cflags" in
2624 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2626 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2627 && test -z "${cf_tst_cflags}" \
2628 && cf_fix_cppflags=yes
2630 if test "$cf_fix_cppflags" = yes ; then
2632 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2633 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2636 elif test "${cf_tst_cflags}" = "\"'" ; then
2638 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2639 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2649 case "$cf_add_cflags" in
2651 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2653 CPPFLAGS=`echo "$CPPFLAGS" | \
2654 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2655 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2660 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2661 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2668 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2669 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2676 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2677 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2679 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2681 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2682 && test -z "${cf_tst_cflags}" \
2683 && cf_fix_cppflags=no
2688 if test -n "$cf_new_cflags" ; then
2690 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2691 CFLAGS="${CFLAGS}$cf_new_cflags"
2695 if test -n "$cf_new_cppflags" ; then
2697 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2698 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2702 if test -n "$cf_new_extra_cppflags" ; then
2704 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2705 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2712 echo "$as_me:2712: result: ok" >&5
2713 echo "${ECHO_T}ok" >&6
2717 echo "$as_me:2717: checking \$CC variable" >&5
2718 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2721 echo "$as_me:2721: result: broken" >&5
2722 echo "${ECHO_T}broken" >&6
2723 { echo "$as_me:2723: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2724 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2726 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2727 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2729 for cf_arg in $cf_flags
2737 cf_new_extra_cppflags=
2739 for cf_add_cflags in $cf_arg
2741 case "$cf_fix_cppflags" in
2743 case "$cf_add_cflags" in
2744 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2745 case "$cf_add_cflags" in
2747 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2749 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2750 && test -z "${cf_tst_cflags}" \
2751 && cf_fix_cppflags=yes
2753 if test "$cf_fix_cppflags" = yes ; then
2755 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2756 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2759 elif test "${cf_tst_cflags}" = "\"'" ; then
2761 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2762 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2772 case "$cf_add_cflags" in
2774 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2776 CPPFLAGS=`echo "$CPPFLAGS" | \
2777 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2778 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2783 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2784 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2791 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2792 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2799 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2800 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2802 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2804 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2805 && test -z "${cf_tst_cflags}" \
2806 && cf_fix_cppflags=no
2811 if test -n "$cf_new_cflags" ; then
2813 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2814 CFLAGS="${CFLAGS}$cf_new_cflags"
2818 if test -n "$cf_new_cppflags" ; then
2820 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2821 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2825 if test -n "$cf_new_extra_cppflags" ; then
2827 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2828 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2838 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2840 echo "${as_me:-configure}:2840: testing resulting CC: '$CC' ..." 1>&5
2842 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2844 echo "${as_me:-configure}:2844: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2846 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2848 echo "${as_me:-configure}:2848: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2852 echo "$as_me:2852: result: ok" >&5
2853 echo "${ECHO_T}ok" >&6
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2860 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862 ac_main_return="return"
2863 echo "$as_me:2863: checking how to run the C preprocessor" >&5
2864 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2865 # On Suns, sometimes $CPP names a directory.
2866 if test -n "$CPP" && test -d "$CPP"; then
2869 if test -z "$CPP"; then
2870 if test "${ac_cv_prog_CPP+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 # Double quotes because CPP needs to be expanded
2874 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2877 for ac_c_preproc_warn_flag in '' yes
2879 # Use a header file that comes with gcc, so configuring glibc
2880 # with a fresh cross-compiler works.
2881 # On the NeXT, cc -E runs the code through the compiler's parser,
2882 # not just through cpp. "Syntax error" is here to catch this case.
2883 cat >"conftest.$ac_ext" <<_ACEOF
2884 #line 2884 "configure"
2885 #include "confdefs.h"
2889 if { (eval echo "$as_me:2889: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2890 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2892 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:2895: \$? = $ac_status" >&5
2896 (exit "$ac_status"); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_c_preproc_warn_flag
2905 if test -z "$ac_cpp_err"; then
2908 echo "$as_me: failed program was:" >&5
2909 cat "conftest.$ac_ext" >&5
2910 # Broken: fails on valid input.
2913 rm -f conftest.err "conftest.$ac_ext"
2915 # OK, works on sane cases. Now check whether non-existent headers
2916 # can be detected and how.
2917 cat >"conftest.$ac_ext" <<_ACEOF
2918 #line 2918 "configure"
2919 #include "confdefs.h"
2920 #include <ac_nonexistent.h>
2922 if { (eval echo "$as_me:2922: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2923 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2925 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2927 cat conftest.err >&5
2928 echo "$as_me:2928: \$? = $ac_status" >&5
2929 (exit "$ac_status"); } >/dev/null; then
2930 if test -s conftest.err; then
2931 ac_cpp_err=$ac_c_preproc_warn_flag
2938 if test -z "$ac_cpp_err"; then
2939 # Broken: success on invalid input.
2942 echo "$as_me: failed program was:" >&5
2943 cat "conftest.$ac_ext" >&5
2944 # Passes both tests.
2948 rm -f conftest.err "conftest.$ac_ext"
2951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2952 rm -f conftest.err "conftest.$ac_ext"
2953 if $ac_preproc_ok; then
2965 echo "$as_me:2965: result: $CPP" >&5
2966 echo "${ECHO_T}$CPP" >&6
2968 for ac_c_preproc_warn_flag in '' yes
2970 # Use a header file that comes with gcc, so configuring glibc
2971 # with a fresh cross-compiler works.
2972 # On the NeXT, cc -E runs the code through the compiler's parser,
2973 # not just through cpp. "Syntax error" is here to catch this case.
2974 cat >"conftest.$ac_ext" <<_ACEOF
2975 #line 2975 "configure"
2976 #include "confdefs.h"
2980 if { (eval echo "$as_me:2980: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2981 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2983 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:2986: \$? = $ac_status" >&5
2987 (exit "$ac_status"); } >/dev/null; then
2988 if test -s conftest.err; then
2989 ac_cpp_err=$ac_c_preproc_warn_flag
2996 if test -z "$ac_cpp_err"; then
2999 echo "$as_me: failed program was:" >&5
3000 cat "conftest.$ac_ext" >&5
3001 # Broken: fails on valid input.
3004 rm -f conftest.err "conftest.$ac_ext"
3006 # OK, works on sane cases. Now check whether non-existent headers
3007 # can be detected and how.
3008 cat >"conftest.$ac_ext" <<_ACEOF
3009 #line 3009 "configure"
3010 #include "confdefs.h"
3011 #include <ac_nonexistent.h>
3013 if { (eval echo "$as_me:3013: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3014 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3016 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:3019: \$? = $ac_status" >&5
3020 (exit "$ac_status"); } >/dev/null; then
3021 if test -s conftest.err; then
3022 ac_cpp_err=$ac_c_preproc_warn_flag
3029 if test -z "$ac_cpp_err"; then
3030 # Broken: success on invalid input.
3033 echo "$as_me: failed program was:" >&5
3034 cat "conftest.$ac_ext" >&5
3035 # Passes both tests.
3039 rm -f conftest.err "conftest.$ac_ext"
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err "conftest.$ac_ext"
3044 if $ac_preproc_ok; then
3047 { { echo "$as_me:3047: error: C preprocessor \"$CPP\" fails sanity check" >&5
3048 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3049 { (exit 1); exit 1; }; }
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3055 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057 ac_main_return="return"
3059 if test $ac_cv_c_compiler_gnu = yes; then
3060 echo "$as_me:3060: checking whether $CC needs -traditional" >&5
3061 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3062 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 ac_pattern="Autoconf.*'x'"
3066 cat >"conftest.$ac_ext" <<_ACEOF
3067 #line 3067 "configure"
3068 #include "confdefs.h"
3070 int Autoconf = TIOCGETP;
3072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3073 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3074 ac_cv_prog_gcc_traditional=yes
3076 ac_cv_prog_gcc_traditional=no
3080 if test $ac_cv_prog_gcc_traditional = no; then
3081 cat >"conftest.$ac_ext" <<_ACEOF
3082 #line 3082 "configure"
3083 #include "confdefs.h"
3085 int Autoconf = TCGETA;
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3089 ac_cv_prog_gcc_traditional=yes
3095 echo "$as_me:3095: result: $ac_cv_prog_gcc_traditional" >&5
3096 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3097 if test $ac_cv_prog_gcc_traditional = yes; then
3098 CC="$CC -traditional"
3102 echo "$as_me:3102: checking whether $CC understands -c and -o together" >&5
3103 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3104 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 cat > conftest.$ac_ext <<CF_EOF
3111 ${cf_cv_main_return:-return}(0);
3114 # We do the test twice because some compilers refuse to overwrite an
3115 # existing .o file with -o, though they will create one.
3116 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3117 if { (eval echo "$as_me:3117: \"$ac_try\"") >&5
3120 echo "$as_me:3120: \$? = $ac_status" >&5
3121 (exit "$ac_status"); } &&
3122 test -f conftest2.$ac_objext && { (eval echo "$as_me:3122: \"$ac_try\"") >&5
3125 echo "$as_me:3125: \$? = $ac_status" >&5
3126 (exit "$ac_status"); };
3128 eval cf_cv_prog_CC_c_o=yes
3130 eval cf_cv_prog_CC_c_o=no
3135 if test "$cf_cv_prog_CC_c_o" = yes; then
3136 echo "$as_me:3136: result: yes" >&5
3137 echo "${ECHO_T}yes" >&6
3139 echo "$as_me:3139: result: no" >&5
3140 echo "${ECHO_T}no" >&6
3143 if test "$cross_compiling" = yes ; then
3146 case "$cf_cv_system_name" in
3147 (dragonfly*|mirbsd*|freebsd*)
3148 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3150 (*) LDPATH=$PATH:/sbin:/usr/sbin
3151 # Extract the first word of "ldconfig", so it can be a program name with args.
3152 set dummy ldconfig; ac_word=$2
3153 echo "$as_me:3153: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3163 ac_save_IFS=$IFS; IFS=$ac_path_separator
3165 for ac_dir in $ac_dummy; do
3167 test -z "$ac_dir" && ac_dir=.
3168 if $as_executable_p "$ac_dir/$ac_word"; then
3169 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3170 echo "$as_me:3170: found $ac_dir/$ac_word" >&5
3178 LDCONFIG=$ac_cv_path_LDCONFIG
3180 if test -n "$LDCONFIG"; then
3181 echo "$as_me:3181: result: $LDCONFIG" >&5
3182 echo "${ECHO_T}$LDCONFIG" >&6
3184 echo "$as_me:3184: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3192 echo "$as_me:3192: checking if you want to ensure bool is consistent with C++" >&5
3193 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3195 # Check whether --with-cxx or --without-cxx was given.
3196 if test "${with_cxx+set}" = set; then
3198 cf_with_cxx=$withval
3202 echo "$as_me:3202: result: $cf_with_cxx" >&5
3203 echo "${ECHO_T}$cf_with_cxx" >&6
3204 if test "X$cf_with_cxx" = Xno ; then
3208 # with autoconf 2.13, we can change the error to a warning:
3210 ac_cpp='$CXXCPP $CPPFLAGS'
3211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3212 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3214 ac_main_return="return"
3215 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 echo "$as_me:3220: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_CXX+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if test -n "$CXX"; then
3226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3228 ac_save_IFS=$IFS; IFS=$ac_path_separator
3230 for ac_dir in $ac_dummy; do
3232 test -z "$ac_dir" && ac_dir=.
3233 $as_executable_p "$ac_dir/$ac_word" || continue
3234 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3235 echo "$as_me:3235: found $ac_dir/$ac_word" >&5
3242 if test -n "$CXX"; then
3243 echo "$as_me:3243: result: $CXX" >&5
3244 echo "${ECHO_T}$CXX" >&6
3246 echo "$as_me:3246: result: no" >&5
3247 echo "${ECHO_T}no" >&6
3250 test -n "$CXX" && break
3253 if test -z "$CXX"; then
3255 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3257 # Extract the first word of "$ac_prog", so it can be a program name with args.
3258 set dummy $ac_prog; ac_word=$2
3259 echo "$as_me:3259: checking for $ac_word" >&5
3260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3261 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 if test -n "$ac_ct_CXX"; then
3265 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3267 ac_save_IFS=$IFS; IFS=$ac_path_separator
3269 for ac_dir in $ac_dummy; do
3271 test -z "$ac_dir" && ac_dir=.
3272 $as_executable_p "$ac_dir/$ac_word" || continue
3273 ac_cv_prog_ac_ct_CXX="$ac_prog"
3274 echo "$as_me:3274: found $ac_dir/$ac_word" >&5
3280 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3281 if test -n "$ac_ct_CXX"; then
3282 echo "$as_me:3282: result: $ac_ct_CXX" >&5
3283 echo "${ECHO_T}$ac_ct_CXX" >&6
3285 echo "$as_me:3285: result: no" >&5
3286 echo "${ECHO_T}no" >&6
3289 test -n "$ac_ct_CXX" && break
3291 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3296 # Provide some information about the compiler.
3297 echo "$as_me:3297:" \
3298 "checking for C++ compiler version" >&5
3299 ac_compiler=`set X $ac_compile; echo $2`
3300 { (eval echo "$as_me:3300: \"$ac_compiler --version </dev/null >&5\"") >&5
3301 (eval $ac_compiler --version </dev/null >&5) 2>&5
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit "$ac_status"); }
3305 { (eval echo "$as_me:3305: \"$ac_compiler -v </dev/null >&5\"") >&5
3306 (eval $ac_compiler -v </dev/null >&5) 2>&5
3308 echo "$as_me:3308: \$? = $ac_status" >&5
3309 (exit "$ac_status"); }
3310 { (eval echo "$as_me:3310: \"$ac_compiler -V </dev/null >&5\"") >&5
3311 (eval $ac_compiler -V </dev/null >&5) 2>&5
3313 echo "$as_me:3313: \$? = $ac_status" >&5
3314 (exit "$ac_status"); }
3316 echo "$as_me:3316: checking whether we are using the GNU C++ compiler" >&5
3317 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3318 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 cat >"conftest.$ac_ext" <<_ACEOF
3322 #line 3322 "configure"
3323 #include "confdefs.h"
3336 rm -f "conftest.$ac_objext"
3337 if { (eval echo "$as_me:3337: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>&5
3340 echo "$as_me:3340: \$? = $ac_status" >&5
3341 (exit "$ac_status"); } &&
3342 { ac_try='test -s "conftest.$ac_objext"'
3343 { (eval echo "$as_me:3343: \"$ac_try\"") >&5
3346 echo "$as_me:3346: \$? = $ac_status" >&5
3347 (exit "$ac_status"); }; }; then
3350 echo "$as_me: failed program was:" >&5
3351 cat "conftest.$ac_ext" >&5
3354 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3358 echo "$as_me:3358: result: $ac_cv_cxx_compiler_gnu" >&5
3359 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3360 GXX=`test $ac_compiler_gnu = yes && echo yes`
3361 ac_test_CXXFLAGS=${CXXFLAGS+set}
3362 ac_save_CXXFLAGS=$CXXFLAGS
3364 echo "$as_me:3364: checking whether $CXX accepts -g" >&5
3365 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3366 if test "${ac_cv_prog_cxx_g+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 cat >"conftest.$ac_ext" <<_ACEOF
3370 #line 3370 "configure"
3371 #include "confdefs.h"
3381 rm -f "conftest.$ac_objext"
3382 if { (eval echo "$as_me:3382: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>&5
3385 echo "$as_me:3385: \$? = $ac_status" >&5
3386 (exit "$ac_status"); } &&
3387 { ac_try='test -s "conftest.$ac_objext"'
3388 { (eval echo "$as_me:3388: \"$ac_try\"") >&5
3391 echo "$as_me:3391: \$? = $ac_status" >&5
3392 (exit "$ac_status"); }; }; then
3393 ac_cv_prog_cxx_g=yes
3395 echo "$as_me: failed program was:" >&5
3396 cat "conftest.$ac_ext" >&5
3399 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3401 echo "$as_me:3401: result: $ac_cv_prog_cxx_g" >&5
3402 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3403 if test "$ac_test_CXXFLAGS" = set; then
3404 CXXFLAGS=$ac_save_CXXFLAGS
3405 elif test $ac_cv_prog_cxx_g = yes; then
3406 if test "$GXX" = yes; then
3412 if test "$GXX" = yes; then
3418 for ac_declaration in \
3420 '#include <stdlib.h>' \
3421 'extern "C" void std::exit (int) throw (); using std::exit;' \
3422 'extern "C" void std::exit (int); using std::exit;' \
3423 'extern "C" void exit (int) throw ();' \
3424 'extern "C" void exit (int);' \
3427 cat >"conftest.$ac_ext" <<_ACEOF
3428 #line 3428 "configure"
3429 #include "confdefs.h"
3440 rm -f "conftest.$ac_objext"
3441 if { (eval echo "$as_me:3441: \"$ac_compile\"") >&5
3442 (eval $ac_compile) 2>&5
3444 echo "$as_me:3444: \$? = $ac_status" >&5
3445 (exit "$ac_status"); } &&
3446 { ac_try='test -s "conftest.$ac_objext"'
3447 { (eval echo "$as_me:3447: \"$ac_try\"") >&5
3450 echo "$as_me:3450: \$? = $ac_status" >&5
3451 (exit "$ac_status"); }; }; then
3454 echo "$as_me: failed program was:" >&5
3455 cat "conftest.$ac_ext" >&5
3458 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3459 cat >"conftest.$ac_ext" <<_ACEOF
3460 #line 3460 "configure"
3461 #include "confdefs.h"
3471 rm -f "conftest.$ac_objext"
3472 if { (eval echo "$as_me:3472: \"$ac_compile\"") >&5
3473 (eval $ac_compile) 2>&5
3475 echo "$as_me:3475: \$? = $ac_status" >&5
3476 (exit "$ac_status"); } &&
3477 { ac_try='test -s "conftest.$ac_objext"'
3478 { (eval echo "$as_me:3478: \"$ac_try\"") >&5
3481 echo "$as_me:3481: \$? = $ac_status" >&5
3482 (exit "$ac_status"); }; }; then
3485 echo "$as_me: failed program was:" >&5
3486 cat "conftest.$ac_ext" >&5
3488 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3491 if test -n "$ac_declaration"; then
3492 echo '#ifdef __cplusplus' >>confdefs.h
3493 echo "$ac_declaration" >>confdefs.h
3494 echo '#endif' >>confdefs.h
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3500 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 ac_main_return="return"
3505 ac_cpp='$CXXCPP $CPPFLAGS'
3506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3507 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3509 ac_main_return="return"
3511 if test "x$cf_with_cxx" != xno
3513 # Several of the C++ configurations do not work, particularly when
3514 # cross-compiling (20140913 -TD)
3515 echo "$as_me:3515: checking if $CXX works" >&5
3516 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3518 save_CPPFLAGS="$CPPFLAGS"
3519 eval cf_includedir=${includedir}
3520 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3522 cat >"conftest.$ac_ext" <<_ACEOF
3523 #line 3523 "configure"
3524 #include "confdefs.h"
3533 printf("Hello world!\n")
3539 rm -f "conftest.$ac_objext"
3540 if { (eval echo "$as_me:3540: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>&5
3543 echo "$as_me:3543: \$? = $ac_status" >&5
3544 (exit "$ac_status"); } &&
3545 { ac_try='test -s "conftest.$ac_objext"'
3546 { (eval echo "$as_me:3546: \"$ac_try\"") >&5
3549 echo "$as_me:3549: \$? = $ac_status" >&5
3550 (exit "$ac_status"); }; }; then
3553 echo "$as_me: failed program was:" >&5
3554 cat "conftest.$ac_ext" >&5
3557 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3558 CPPFLAGS="$save_CPPFLAGS"
3560 echo "$as_me:3560: result: $cf_cxx_works" >&5
3561 echo "${ECHO_T}$cf_cxx_works" >&6
3562 if test "x$cf_cxx_works" = xno
3564 { echo "$as_me:3564: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3565 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3566 cf_with_cxx=no; CXX=""; GXX="";
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3572 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 ac_main_return="return"
3576 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3577 if test "$CXX" = "g++" ; then
3578 # Extract the first word of "g++", so it can be a program name with args.
3579 set dummy g++; ac_word=$2
3580 echo "$as_me:3580: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_CXX+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3590 ac_save_IFS=$IFS; IFS=$ac_path_separator
3592 for ac_dir in $ac_dummy; do
3594 test -z "$ac_dir" && ac_dir=.
3595 if $as_executable_p "$ac_dir/$ac_word"; then
3596 ac_cv_path_CXX="$ac_dir/$ac_word"
3597 echo "$as_me:3597: found $ac_dir/$ac_word" >&5
3607 if test -n "$CXX"; then
3608 echo "$as_me:3608: result: $CXX" >&5
3609 echo "${ECHO_T}$CXX" >&6
3611 echo "$as_me:3611: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3618 { echo "$as_me:3618: WARNING: You don't have any C++ compiler, too bad" >&5
3619 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3620 cf_with_cxx=no; CXX=""; GXX="";
3626 if test "$GXX" = yes; then
3627 echo "$as_me:3627: checking version of ${CXX:-g++}" >&5
3628 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3629 GXX_VERSION="`${CXX:-g++} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3630 if test -z "$GXX_VERSION"
3635 echo "$as_me:3635: result: $GXX_VERSION" >&5
3636 echo "${ECHO_T}$GXX_VERSION" >&6
3639 case "$GXX_VERSION" in
3643 { echo "$as_me:3643: WARNING: templates do not work" >&5
3644 echo "$as_me: WARNING: templates do not work" >&2;}
3648 echo "$as_me:3648: checking if you want to build C++ binding and demo" >&5
3649 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3651 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3652 if test "${with_cxx_binding+set}" = set; then
3653 withval="$with_cxx_binding"
3654 cf_with_cxx_binding=$withval
3656 cf_with_cxx_binding=$cf_with_cxx
3658 echo "$as_me:3658: result: $cf_with_cxx_binding" >&5
3659 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3661 echo "$as_me:3661: checking if you want to build with Ada" >&5
3662 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3663 echo "$as_me:3663: result: $cf_with_ada" >&5
3664 echo "${ECHO_T}$cf_with_ada" >&6
3666 echo "$as_me:3666: checking if you want to install terminal database" >&5
3667 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3669 # Check whether --enable-db-install or --disable-db-install was given.
3670 if test "${enable_db_install+set}" = set; then
3671 enableval="$enable_db_install"
3672 cf_with_db_install=$enableval
3674 cf_with_db_install=yes
3676 echo "$as_me:3676: result: $cf_with_db_install" >&5
3677 echo "${ECHO_T}$cf_with_db_install" >&6
3679 echo "$as_me:3679: checking if you want to install manpages" >&5
3680 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3682 # Check whether --with-manpages or --without-manpages was given.
3683 if test "${with_manpages+set}" = set; then
3684 withval="$with_manpages"
3685 cf_with_manpages=$withval
3687 cf_with_manpages=yes
3689 echo "$as_me:3689: result: $cf_with_manpages" >&5
3690 echo "${ECHO_T}$cf_with_manpages" >&6
3692 echo "$as_me:3692: checking if you want to build programs such as tic" >&5
3693 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3695 # Check whether --with-progs or --without-progs was given.
3696 if test "${with_progs+set}" = set; then
3697 withval="$with_progs"
3698 cf_with_progs=$withval
3702 echo "$as_me:3702: result: $cf_with_progs" >&5
3703 echo "${ECHO_T}$cf_with_progs" >&6
3705 echo "$as_me:3705: checking if you want to build test-programs" >&5
3706 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3708 # Check whether --with-tests or --without-tests was given.
3709 if test "${with_tests+set}" = set; then
3710 withval="$with_tests"
3711 cf_with_tests=$withval
3715 echo "$as_me:3715: result: $cf_with_tests" >&5
3716 echo "${ECHO_T}$cf_with_tests" >&6
3718 echo "$as_me:3718: checking if you wish to install curses.h" >&5
3719 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3721 # Check whether --with-curses-h or --without-curses-h was given.
3722 if test "${with_curses_h+set}" = set; then
3723 withval="$with_curses_h"
3724 with_curses_h=$withval
3728 echo "$as_me:3728: result: $with_curses_h" >&5
3729 echo "${ECHO_T}$with_curses_h" >&6
3731 modules_to_build="ncurses"
3732 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3733 modules_to_build="$modules_to_build panel menu form"
3735 test "$program_prefix" != NONE &&
3736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3737 # Use a double $ so make ignores it.
3738 test "$program_suffix" != NONE &&
3739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3740 # Double any \ or $. echo might interpret backslashes.
3741 # By default was `s,x,x', remove it if useless.
3742 cat <<\_ACEOF >conftest.sed
3743 s/[\\$]/&&/g;s/;s,x,x,$//
3745 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3748 for ac_prog in mawk gawk nawk awk
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 echo "$as_me:3752: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_prog_AWK+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test -n "$AWK"; then
3758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3760 ac_save_IFS=$IFS; IFS=$ac_path_separator
3762 for ac_dir in $ac_dummy; do
3764 test -z "$ac_dir" && ac_dir=.
3765 $as_executable_p "$ac_dir/$ac_word" || continue
3766 ac_cv_prog_AWK="$ac_prog"
3767 echo "$as_me:3767: found $ac_dir/$ac_word" >&5
3774 if test -n "$AWK"; then
3775 echo "$as_me:3775: result: $AWK" >&5
3776 echo "${ECHO_T}$AWK" >&6
3778 echo "$as_me:3778: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3782 test -n "$AWK" && break
3785 test -z "$AWK" && { { echo "$as_me:3785: error: No awk program found" >&5
3786 echo "$as_me: error: No awk program found" >&2;}
3787 { (exit 1); exit 1; }; }
3789 # Find a good install program. We prefer a C program (faster),
3790 # so one script is as good as another. But avoid the broken or
3791 # incompatible versions:
3792 # SysV /etc/install, /usr/sbin/install
3793 # SunOS /usr/etc/install
3794 # IRIX /sbin/install
3796 # AmigaOS /C/install, which installs bootblocks on floppy discs
3797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3800 # ./install, which can be erroneously created by make from ./install.sh.
3801 echo "$as_me:3801: checking for a BSD compatible install" >&5
3802 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3803 if test -z "$INSTALL"; then
3804 if test "${ac_cv_path_install+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 ac_save_IFS=$IFS; IFS=$ac_path_separator
3808 for ac_dir in $PATH; do
3810 # Account for people who put trailing slashes in PATH elements.
3812 / | ./ | .// | /cC/* \
3813 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3816 # OSF1 and SCO ODT 3.0 have their own names for install.
3817 # Don't use installbsd from OSF since it installs stuff as root
3819 for ac_prog in ginstall scoinst install; do
3820 if $as_executable_p "$ac_dir/$ac_prog"; then
3821 if test $ac_prog = install &&
3822 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3823 # AIX install. It has an incompatible calling convention.
3825 elif test $ac_prog = install &&
3826 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3827 # program-specific install script used by HP pwplus--don't use.
3830 ac_cv_path_install="$ac_dir/$ac_prog -c"
3840 if test "${ac_cv_path_install+set}" = set; then
3841 INSTALL=$ac_cv_path_install
3843 # As a last resort, use the slow shell script. We don't cache a
3844 # path for INSTALL within a source directory, because that will
3845 # break other packages using the cache if that directory is
3846 # removed, or if the path is relative.
3847 INSTALL=$ac_install_sh
3850 echo "$as_me:3850: result: $INSTALL" >&5
3851 echo "${ECHO_T}$INSTALL" >&6
3853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3854 # It thinks the first close brace ends the variable substitution.
3855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3865 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3866 test -z "$cf_dir" && cf_dir=.
3867 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3871 for ac_prog in lint cppcheck splint
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 echo "$as_me:3875: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_prog_LINT+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 if test -n "$LINT"; then
3881 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3883 ac_save_IFS=$IFS; IFS=$ac_path_separator
3885 for ac_dir in $ac_dummy; do
3887 test -z "$ac_dir" && ac_dir=.
3888 $as_executable_p "$ac_dir/$ac_word" || continue
3889 ac_cv_prog_LINT="$ac_prog"
3890 echo "$as_me:3890: found $ac_dir/$ac_word" >&5
3896 LINT=$ac_cv_prog_LINT
3897 if test -n "$LINT"; then
3898 echo "$as_me:3898: result: $LINT" >&5
3899 echo "${ECHO_T}$LINT" >&6
3901 echo "$as_me:3901: result: no" >&5
3902 echo "${ECHO_T}no" >&6
3905 test -n "$LINT" && break
3909 (xcppcheck|x*/cppcheck)
3910 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3914 echo "$as_me:3914: checking whether ln -s works" >&5
3915 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3917 if test "$LN_S" = "ln -s"; then
3918 echo "$as_me:3918: result: yes" >&5
3919 echo "${ECHO_T}yes" >&6
3921 echo "$as_me:3921: result: no, using $LN_S" >&5
3922 echo "${ECHO_T}no, using $LN_S" >&6
3925 echo "$as_me:3925: checking if $LN_S -f options work" >&5
3926 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3928 rm -f conf$$.src conf$$dst
3930 echo first >conf$$.src
3931 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3936 rm -f conf$$.dst conf$$src
3937 echo "$as_me:3937: result: $cf_prog_ln_sf" >&5
3938 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3940 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3942 echo "$as_me:3942: checking for long file names" >&5
3943 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3944 if test "${ac_cv_sys_long_file_names+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 ac_cv_sys_long_file_names=yes
3948 # Test for long file names in all the places we know might matter:
3949 # . the current directory, where building will happen
3950 # $prefix/lib where we will be installing things
3951 # $exec_prefix/lib likewise
3952 # eval it to expand exec_prefix.
3953 # $TMPDIR if set, where it might want to write temporary files
3954 # if $TMPDIR is not set:
3955 # /tmp where it might want to write temporary files
3958 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3961 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3963 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3964 test -d "$ac_dir" || continue
3965 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3966 ac_xdir=$ac_dir/cf$$
3967 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3968 ac_tf1=$ac_xdir/conftest9012345
3969 ac_tf2=$ac_xdir/conftest9012346
3970 (echo 1 >"$ac_tf1") 2>/dev/null
3971 (echo 2 >"$ac_tf2") 2>/dev/null
3972 ac_val=`cat "$ac_tf1" 2>/dev/null`
3973 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3974 ac_cv_sys_long_file_names=no
3975 rm -rf "$ac_xdir" 2>/dev/null
3978 rm -rf "$ac_xdir" 2>/dev/null
3981 echo "$as_me:3981: result: $ac_cv_sys_long_file_names" >&5
3982 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3983 if test "$ac_cv_sys_long_file_names" = yes; then
3985 cat >>confdefs.h <<\EOF
3986 #define HAVE_LONG_FILE_NAMES 1
3991 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3992 # of package conflict.
3995 # Check whether --with-config-suffix or --without-config-suffix was given.
3996 if test "${with_config_suffix+set}" = set; then
3997 withval="$with_config_suffix"
4000 { echo "$as_me:4000: WARNING: expected a value for config-suffix option" >&5
4001 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
4003 (*) cf_config_suffix="$withval"
4008 # If we find pkg-config, check if we should install the ".pc" files.
4010 echo "$as_me:4010: checking if you want to use pkg-config" >&5
4011 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4013 # Check whether --with-pkg-config or --without-pkg-config was given.
4014 if test "${with_pkg_config+set}" = set; then
4015 withval="$with_pkg_config"
4016 cf_pkg_config=$withval
4020 echo "$as_me:4020: result: $cf_pkg_config" >&5
4021 echo "${ECHO_T}$cf_pkg_config" >&6
4023 case "$cf_pkg_config" in
4029 if test -n "$ac_tool_prefix"; then
4030 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4031 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4032 echo "$as_me:4032: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4042 ac_save_IFS=$IFS; IFS=$ac_path_separator
4044 for ac_dir in $ac_dummy; do
4046 test -z "$ac_dir" && ac_dir=.
4047 if $as_executable_p "$ac_dir/$ac_word"; then
4048 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4049 echo "$as_me:4049: found $ac_dir/$ac_word" >&5
4057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4059 if test -n "$PKG_CONFIG"; then
4060 echo "$as_me:4060: result: $PKG_CONFIG" >&5
4061 echo "${ECHO_T}$PKG_CONFIG" >&6
4063 echo "$as_me:4063: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4068 if test -z "$ac_cv_path_PKG_CONFIG"; then
4069 ac_pt_PKG_CONFIG=$PKG_CONFIG
4070 # Extract the first word of "pkg-config", so it can be a program name with args.
4071 set dummy pkg-config; ac_word=$2
4072 echo "$as_me:4072: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 case $ac_pt_PKG_CONFIG in
4079 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4082 ac_save_IFS=$IFS; IFS=$ac_path_separator
4084 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 if $as_executable_p "$ac_dir/$ac_word"; then
4088 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4089 echo "$as_me:4089: found $ac_dir/$ac_word" >&5
4094 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4098 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4100 if test -n "$ac_pt_PKG_CONFIG"; then
4101 echo "$as_me:4101: result: $ac_pt_PKG_CONFIG" >&5
4102 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4104 echo "$as_me:4104: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4108 PKG_CONFIG=$ac_pt_PKG_CONFIG
4110 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4119 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4120 if test "$PKG_CONFIG" != none ; then
4122 if test "x$prefix" != xNONE; then
4123 cf_path_syntax="$prefix"
4125 cf_path_syntax="$ac_default_prefix"
4128 case ".$PKG_CONFIG" in
4133 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4135 (.\$\{*prefix\}*|.\$\{*dir\}*)
4136 eval PKG_CONFIG="$PKG_CONFIG"
4137 case ".$PKG_CONFIG" in
4139 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4144 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4147 { { echo "$as_me:4147: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4148 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4149 { (exit 1); exit 1; }; }
4153 elif test "x$cf_pkg_config" != xno ; then
4154 { echo "$as_me:4154: WARNING: pkg-config is not installed" >&5
4155 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4158 case "$PKG_CONFIG" in
4160 echo "$as_me:4160: checking for pkg-config library directory" >&5
4161 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4164 echo "$as_me:4164: checking for $PKG_CONFIG library directory" >&5
4165 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4169 # if $PKG_CONFIG_LIBDIR is set, try to use that
4170 if test -n "$PKG_CONFIG_PATH"; then
4171 cf_search_path=`echo "$PKG_CONFIG_PATH" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4172 elif test -n "$PKG_CONFIG_LIBDIR"; then
4173 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4178 # if the option is used, let that override. otherwise default to "libdir"
4180 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4181 if test "${with_pkg_config_libdir+set}" = set; then
4182 withval="$with_pkg_config_libdir"
4183 cf_search_path=$withval
4185 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
4188 case "x$cf_search_path" in
4190 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4191 echo "$as_me:4191: result: $PKG_CONFIG_LIBDIR" >&5
4192 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4201 PKG_CONFIG_LIBDIR="$cf_search_path"
4202 echo "$as_me:4202: result: $PKG_CONFIG_LIBDIR" >&5
4203 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4207 echo "$as_me:4207: result: auto" >&5
4208 echo "${ECHO_T}auto" >&6
4210 # Look for the library directory using the same prefix as the executable
4211 echo "$as_me:4211: checking for search-list" >&5
4212 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4213 if test "x$PKG_CONFIG" != xnone
4215 # works for pkg-config since version 0.24 (2009)
4216 # works for pkgconf since version 0.8.3 (2012)
4217 for cf_pkg_program in \
4218 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4222 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4223 test -n "$cf_search_path" && break
4226 # works for pkg-config since import in 2005 of original 2001 HP code.
4227 test -z "$cf_search_path" && \
4229 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4230 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4231 sub(\"^[^']*'\",\"\"); \
4232 sub(\"'.*\",\"\"); \
4233 printf \" %s\", \\$0; } \
4238 echo "$as_me:4238: result: $cf_search_path" >&5
4239 echo "${ECHO_T}$cf_search_path" >&6
4242 { { echo "$as_me:4242: error: Unexpected option value: $cf_search_path" >&5
4243 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4244 { (exit 1); exit 1; }; }
4248 if test -n "$cf_search_path"
4250 echo "$as_me:4250: checking for first directory" >&5
4251 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4252 cf_pkg_config_path=none
4253 for cf_config in $cf_search_path
4255 if test -d "$cf_config"
4257 cf_pkg_config_path=$cf_config
4261 echo "$as_me:4261: result: $cf_pkg_config_path" >&5
4262 echo "${ECHO_T}$cf_pkg_config_path" >&6
4264 if test "x$cf_pkg_config_path" != xnone ; then
4265 # limit this to the first directory found
4266 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4269 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4271 echo "$as_me:4271: checking for workaround" >&5
4272 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4273 if test "$prefix" = "NONE" ; then
4274 cf_prefix="$ac_default_prefix"
4278 eval cf_libdir=$libdir
4279 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4281 for cf_config in $cf_search_path
4284 $cf_libdir/pkgconfig)
4285 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4289 test -z "$cf_backup" && cf_backup=$cf_config
4293 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4294 echo "$as_me:4294: result: $PKG_CONFIG_LIBDIR" >&5
4295 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4299 if test "x$PKG_CONFIG" != xnone
4301 echo "$as_me:4301: checking if we should install .pc files for $PKG_CONFIG" >&5
4302 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4304 echo "$as_me:4304: checking if we should install .pc files" >&5
4305 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4308 # Check whether --enable-pc-files or --disable-pc-files was given.
4309 if test "${enable_pc_files+set}" = set; then
4310 enableval="$enable_pc_files"
4311 enable_pc_files=$enableval
4315 echo "$as_me:4315: result: $enable_pc_files" >&5
4316 echo "${ECHO_T}$enable_pc_files" >&6
4318 if test "x$enable_pc_files" != xno
4321 case "x$PKG_CONFIG_LIBDIR" in
4323 { echo "$as_me:4323: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4324 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4327 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4329 if test "x$prefix" != xNONE; then
4330 cf_path_syntax="$prefix"
4332 cf_path_syntax="$ac_default_prefix"
4335 case ".$cf_pkg_config_libdir" in
4340 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4342 (.\$\{*prefix\}*|.\$\{*dir\}*)
4343 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4344 case ".$cf_pkg_config_libdir" in
4346 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4351 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4354 { { echo "$as_me:4354: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4355 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4356 { (exit 1); exit 1; }; }
4366 if test -z "$MAKE_PC_FILES"
4368 echo "$as_me:4368: checking for suffix to add to pc-files" >&5
4369 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4371 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4372 if test "${with_pc_suffix+set}" = set; then
4373 withval="$with_pc_suffix"
4378 (*) PC_MODULE_SUFFIX="$withval"
4382 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4383 echo "$as_me:4383: result: $PC_MODULE_SUFFIX" >&5
4384 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4385 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4389 echo "$as_me:4389: checking if we should assume mixed-case filenames" >&5
4390 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4392 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4393 if test "${enable_mixed_case+set}" = set; then
4394 enableval="$enable_mixed_case"
4395 enable_mixedcase=$enableval
4397 enable_mixedcase=auto
4399 echo "$as_me:4399: result: $enable_mixedcase" >&5
4400 echo "${ECHO_T}$enable_mixedcase" >&6
4401 if test "$enable_mixedcase" = "auto" ; then
4403 echo "$as_me:4403: checking if filesystem supports mixed-case filenames" >&5
4404 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4405 if test "${cf_cv_mixedcase+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 if test "$cross_compiling" = yes ; then
4410 case "$target_alias" in
4411 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4419 rm -f conftest CONFTEST
4421 if test -f CONFTEST ; then
4426 rm -f conftest CONFTEST
4430 echo "$as_me:4430: result: $cf_cv_mixedcase" >&5
4431 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4432 test "$cf_cv_mixedcase" = yes &&
4433 cat >>confdefs.h <<\EOF
4434 #define MIXEDCASE_FILENAMES 1
4438 cf_cv_mixedcase=$enable_mixedcase
4439 if test "x$enable_mixedcase" = "xyes" ; then
4441 cat >>confdefs.h <<\EOF
4442 #define MIXEDCASE_FILENAMES 1
4448 # do this after mixed-case option (tags/TAGS is not as important as tic).
4449 echo "$as_me:4449: checking whether ${MAKE-make} sets \${MAKE}" >&5
4450 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4451 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4452 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 cat >conftest.make <<\EOF
4457 @echo 'ac_maketemp="${MAKE}"'
4459 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4460 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4461 if test -n "$ac_maketemp"; then
4462 eval ac_cv_prog_make_${ac_make}_set=yes
4464 eval ac_cv_prog_make_${ac_make}_set=no
4468 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4469 echo "$as_me:4469: result: yes" >&5
4470 echo "${ECHO_T}yes" >&6
4473 echo "$as_me:4473: result: no" >&5
4474 echo "${ECHO_T}no" >&6
4475 SET_MAKE="MAKE=${MAKE-make}"
4478 echo "$as_me:4478: checking for \".PHONY\" make-support" >&5
4479 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4480 if test "${cf_cv_make_PHONY+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 mkdir conftest || exit 1
4488 cat >makefile <<'CF_EOF'
4492 @echo "** making $@ $(DATA)"
4494 @echo "** making $@ $(DATA)"
4496 @echo "** making $@ $(DATA)"
4499 @echo "** making $@ $(DATA)"
4502 for cf_data in 1 2 3
4504 ${MAKE:-make} always DATA=$cf_data
4505 ${MAKE:-make} once DATA=$cf_data
4506 ${MAKE:-make} -t always once
4507 if test -f always ; then
4508 echo "no (case 1)" > ../conftest.tmp
4509 elif test ! -f always.out ; then
4510 echo "no (case 2)" > ../conftest.tmp
4511 elif test ! -f once.out ; then
4512 echo "no (case 3)" > ../conftest.tmp
4513 elif ! cmp -s always.out once.out ; then
4514 echo "no (case 4)" > ../conftest.tmp
4515 diff always.out once.out
4517 cf_check="`cat always.out`"
4518 if test "x$cf_check" != "x$cf_data" ; then
4519 echo "no (case 5)" > ../conftest.tmp
4521 echo yes > ../conftest.tmp
4529 cf_cv_make_PHONY="`cat conftest.tmp`"
4533 echo "$as_me:4533: result: $cf_cv_make_PHONY" >&5
4534 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4537 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4538 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4540 for ac_prog in exctags ctags
4542 # Extract the first word of "$ac_prog", so it can be a program name with args.
4543 set dummy $ac_prog; ac_word=$2
4544 echo "$as_me:4544: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546 if test "${ac_cv_prog_CTAGS+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 if test -n "$CTAGS"; then
4550 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4552 ac_save_IFS=$IFS; IFS=$ac_path_separator
4554 for ac_dir in $ac_dummy; do
4556 test -z "$ac_dir" && ac_dir=.
4557 $as_executable_p "$ac_dir/$ac_word" || continue
4558 ac_cv_prog_CTAGS="$ac_prog"
4559 echo "$as_me:4559: found $ac_dir/$ac_word" >&5
4565 CTAGS=$ac_cv_prog_CTAGS
4566 if test -n "$CTAGS"; then
4567 echo "$as_me:4567: result: $CTAGS" >&5
4568 echo "${ECHO_T}$CTAGS" >&6
4570 echo "$as_me:4570: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4574 test -n "$CTAGS" && break
4577 for ac_prog in exetags etags
4579 # Extract the first word of "$ac_prog", so it can be a program name with args.
4580 set dummy $ac_prog; ac_word=$2
4581 echo "$as_me:4581: checking for $ac_word" >&5
4582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4583 if test "${ac_cv_prog_ETAGS+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 if test -n "$ETAGS"; then
4587 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4589 ac_save_IFS=$IFS; IFS=$ac_path_separator
4591 for ac_dir in $ac_dummy; do
4593 test -z "$ac_dir" && ac_dir=.
4594 $as_executable_p "$ac_dir/$ac_word" || continue
4595 ac_cv_prog_ETAGS="$ac_prog"
4596 echo "$as_me:4596: found $ac_dir/$ac_word" >&5
4602 ETAGS=$ac_cv_prog_ETAGS
4603 if test -n "$ETAGS"; then
4604 echo "$as_me:4604: result: $ETAGS" >&5
4605 echo "${ECHO_T}$ETAGS" >&6
4607 echo "$as_me:4607: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4611 test -n "$ETAGS" && break
4614 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4615 set dummy ${CTAGS:-ctags}; ac_word=$2
4616 echo "$as_me:4616: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 if test -n "$MAKE_LOWER_TAGS"; then
4622 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4624 ac_save_IFS=$IFS; IFS=$ac_path_separator
4626 for ac_dir in $ac_dummy; do
4628 test -z "$ac_dir" && ac_dir=.
4629 $as_executable_p "$ac_dir/$ac_word" || continue
4630 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4631 echo "$as_me:4631: found $ac_dir/$ac_word" >&5
4635 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4638 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4639 if test -n "$MAKE_LOWER_TAGS"; then
4640 echo "$as_me:4640: result: $MAKE_LOWER_TAGS" >&5
4641 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4643 echo "$as_me:4643: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4647 if test "$cf_cv_mixedcase" = yes ; then
4648 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4649 set dummy ${ETAGS:-etags}; ac_word=$2
4650 echo "$as_me:4650: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 if test -n "$MAKE_UPPER_TAGS"; then
4656 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4658 ac_save_IFS=$IFS; IFS=$ac_path_separator
4660 for ac_dir in $ac_dummy; do
4662 test -z "$ac_dir" && ac_dir=.
4663 $as_executable_p "$ac_dir/$ac_word" || continue
4664 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4665 echo "$as_me:4665: found $ac_dir/$ac_word" >&5
4669 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4672 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4673 if test -n "$MAKE_UPPER_TAGS"; then
4674 echo "$as_me:4674: result: $MAKE_UPPER_TAGS" >&5
4675 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4677 echo "$as_me:4677: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4685 if test "$MAKE_UPPER_TAGS" = yes ; then
4691 if test "$MAKE_LOWER_TAGS" = yes ; then
4697 echo "$as_me:4697: checking for makeflags variable" >&5
4698 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4699 if test "${cf_cv_makeflags+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4706 cat >cf_makeflags.tmp <<CF_EOF
4709 @ echo '.$cf_option'
4711 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4712 case "$cf_result" in
4714 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4715 case "$cf_result" in
4716 (.*CC=*) cf_cv_makeflags=
4718 (*) cf_cv_makeflags=$cf_option
4727 echo "${as_me:-configure}:4727: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4732 rm -f cf_makeflags.tmp
4735 echo "$as_me:4735: result: $cf_cv_makeflags" >&5
4736 echo "${ECHO_T}$cf_cv_makeflags" >&6
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741 echo "$as_me:4741: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_RANLIB+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 if test -n "$RANLIB"; then
4747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4749 ac_save_IFS=$IFS; IFS=$ac_path_separator
4751 for ac_dir in $ac_dummy; do
4753 test -z "$ac_dir" && ac_dir=.
4754 $as_executable_p "$ac_dir/$ac_word" || continue
4755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4756 echo "$as_me:4756: found $ac_dir/$ac_word" >&5
4762 RANLIB=$ac_cv_prog_RANLIB
4763 if test -n "$RANLIB"; then
4764 echo "$as_me:4764: result: $RANLIB" >&5
4765 echo "${ECHO_T}$RANLIB" >&6
4767 echo "$as_me:4767: result: no" >&5
4768 echo "${ECHO_T}no" >&6
4772 if test -z "$ac_cv_prog_RANLIB"; then
4773 ac_ct_RANLIB=$RANLIB
4774 # Extract the first word of "ranlib", so it can be a program name with args.
4775 set dummy ranlib; ac_word=$2
4776 echo "$as_me:4776: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 if test -n "$ac_ct_RANLIB"; then
4782 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4784 ac_save_IFS=$IFS; IFS=$ac_path_separator
4786 for ac_dir in $ac_dummy; do
4788 test -z "$ac_dir" && ac_dir=.
4789 $as_executable_p "$ac_dir/$ac_word" || continue
4790 ac_cv_prog_ac_ct_RANLIB="ranlib"
4791 echo "$as_me:4791: found $ac_dir/$ac_word" >&5
4795 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4799 if test -n "$ac_ct_RANLIB"; then
4800 echo "$as_me:4800: result: $ac_ct_RANLIB" >&5
4801 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4803 echo "$as_me:4803: result: no" >&5
4804 echo "${ECHO_T}no" >&6
4807 RANLIB=$ac_ct_RANLIB
4809 RANLIB="$ac_cv_prog_RANLIB"
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}ld; ac_word=$2
4815 echo "$as_me:4815: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4817 if test "${ac_cv_prog_LD+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test -n "$LD"; then
4821 ac_cv_prog_LD="$LD" # Let the user override the test.
4823 ac_save_IFS=$IFS; IFS=$ac_path_separator
4825 for ac_dir in $ac_dummy; do
4827 test -z "$ac_dir" && ac_dir=.
4828 $as_executable_p "$ac_dir/$ac_word" || continue
4829 ac_cv_prog_LD="${ac_tool_prefix}ld"
4830 echo "$as_me:4830: found $ac_dir/$ac_word" >&5
4837 if test -n "$LD"; then
4838 echo "$as_me:4838: result: $LD" >&5
4839 echo "${ECHO_T}$LD" >&6
4841 echo "$as_me:4841: result: no" >&5
4842 echo "${ECHO_T}no" >&6
4846 if test -z "$ac_cv_prog_LD"; then
4848 # Extract the first word of "ld", so it can be a program name with args.
4849 set dummy ld; ac_word=$2
4850 echo "$as_me:4850: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 if test -n "$ac_ct_LD"; then
4856 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4858 ac_save_IFS=$IFS; IFS=$ac_path_separator
4860 for ac_dir in $ac_dummy; do
4862 test -z "$ac_dir" && ac_dir=.
4863 $as_executable_p "$ac_dir/$ac_word" || continue
4864 ac_cv_prog_ac_ct_LD="ld"
4865 echo "$as_me:4865: found $ac_dir/$ac_word" >&5
4869 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4872 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4873 if test -n "$ac_ct_LD"; then
4874 echo "$as_me:4874: result: $ac_ct_LD" >&5
4875 echo "${ECHO_T}$ac_ct_LD" >&6
4877 echo "$as_me:4877: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4886 if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}ar; ac_word=$2
4889 echo "$as_me:4889: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_prog_AR+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 if test -n "$AR"; then
4895 ac_cv_prog_AR="$AR" # Let the user override the test.
4897 ac_save_IFS=$IFS; IFS=$ac_path_separator
4899 for ac_dir in $ac_dummy; do
4901 test -z "$ac_dir" && ac_dir=.
4902 $as_executable_p "$ac_dir/$ac_word" || continue
4903 ac_cv_prog_AR="${ac_tool_prefix}ar"
4904 echo "$as_me:4904: found $ac_dir/$ac_word" >&5
4911 if test -n "$AR"; then
4912 echo "$as_me:4912: result: $AR" >&5
4913 echo "${ECHO_T}$AR" >&6
4915 echo "$as_me:4915: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4920 if test -z "$ac_cv_prog_AR"; then
4922 # Extract the first word of "ar", so it can be a program name with args.
4923 set dummy ar; ac_word=$2
4924 echo "$as_me:4924: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4926 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 if test -n "$ac_ct_AR"; then
4930 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4932 ac_save_IFS=$IFS; IFS=$ac_path_separator
4934 for ac_dir in $ac_dummy; do
4936 test -z "$ac_dir" && ac_dir=.
4937 $as_executable_p "$ac_dir/$ac_word" || continue
4938 ac_cv_prog_ac_ct_AR="ar"
4939 echo "$as_me:4939: found $ac_dir/$ac_word" >&5
4943 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4947 if test -n "$ac_ct_AR"; then
4948 echo "$as_me:4948: result: $ac_ct_AR" >&5
4949 echo "${ECHO_T}$ac_ct_AR" >&6
4951 echo "$as_me:4951: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}nm; ac_word=$2
4963 echo "$as_me:4963: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965 if test "${ac_cv_prog_NM+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 if test -n "$NM"; then
4969 ac_cv_prog_NM="$NM" # Let the user override the test.
4971 ac_save_IFS=$IFS; IFS=$ac_path_separator
4973 for ac_dir in $ac_dummy; do
4975 test -z "$ac_dir" && ac_dir=.
4976 $as_executable_p "$ac_dir/$ac_word" || continue
4977 ac_cv_prog_NM="${ac_tool_prefix}nm"
4978 echo "$as_me:4978: found $ac_dir/$ac_word" >&5
4985 if test -n "$NM"; then
4986 echo "$as_me:4986: result: $NM" >&5
4987 echo "${ECHO_T}$NM" >&6
4989 echo "$as_me:4989: result: no" >&5
4990 echo "${ECHO_T}no" >&6
4994 if test -z "$ac_cv_prog_NM"; then
4996 # Extract the first word of "nm", so it can be a program name with args.
4997 set dummy nm; ac_word=$2
4998 echo "$as_me:4998: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -n "$ac_ct_NM"; then
5004 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5006 ac_save_IFS=$IFS; IFS=$ac_path_separator
5008 for ac_dir in $ac_dummy; do
5010 test -z "$ac_dir" && ac_dir=.
5011 $as_executable_p "$ac_dir/$ac_word" || continue
5012 ac_cv_prog_ac_ct_NM="nm"
5013 echo "$as_me:5013: found $ac_dir/$ac_word" >&5
5017 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5020 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5021 if test -n "$ac_ct_NM"; then
5022 echo "$as_me:5022: result: $ac_ct_NM" >&5
5023 echo "${ECHO_T}$ac_ct_NM" >&6
5025 echo "$as_me:5025: result: no" >&5
5026 echo "${ECHO_T}no" >&6
5034 if test -n "$ac_tool_prefix"; then
5035 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5036 set dummy ${ac_tool_prefix}ar; ac_word=$2
5037 echo "$as_me:5037: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5039 if test "${ac_cv_prog_AR+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 if test -n "$AR"; then
5043 ac_cv_prog_AR="$AR" # Let the user override the test.
5045 ac_save_IFS=$IFS; IFS=$ac_path_separator
5047 for ac_dir in $ac_dummy; do
5049 test -z "$ac_dir" && ac_dir=.
5050 $as_executable_p "$ac_dir/$ac_word" || continue
5051 ac_cv_prog_AR="${ac_tool_prefix}ar"
5052 echo "$as_me:5052: found $ac_dir/$ac_word" >&5
5059 if test -n "$AR"; then
5060 echo "$as_me:5060: result: $AR" >&5
5061 echo "${ECHO_T}$AR" >&6
5063 echo "$as_me:5063: result: no" >&5
5064 echo "${ECHO_T}no" >&6
5068 if test -z "$ac_cv_prog_AR"; then
5070 # Extract the first word of "ar", so it can be a program name with args.
5071 set dummy ar; ac_word=$2
5072 echo "$as_me:5072: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 if test -n "$ac_ct_AR"; then
5078 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5080 ac_save_IFS=$IFS; IFS=$ac_path_separator
5082 for ac_dir in $ac_dummy; do
5084 test -z "$ac_dir" && ac_dir=.
5085 $as_executable_p "$ac_dir/$ac_word" || continue
5086 ac_cv_prog_ac_ct_AR="ar"
5087 echo "$as_me:5087: found $ac_dir/$ac_word" >&5
5091 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5094 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5095 if test -n "$ac_ct_AR"; then
5096 echo "$as_me:5096: result: $ac_ct_AR" >&5
5097 echo "${ECHO_T}$ac_ct_AR" >&6
5099 echo "$as_me:5099: result: no" >&5
5100 echo "${ECHO_T}no" >&6
5108 echo "$as_me:5108: checking for options to update archives" >&5
5109 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5110 if test "${cf_cv_ar_flags+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 case "$cf_cv_system_name" in
5117 cat >mk_static_lib.sh <<-EOF
5122 exec \$MSVC_BIN -out:"\$out" \$@
5124 chmod +x mk_static_lib.sh
5125 AR=`pwd`/mk_static_lib.sh
5128 cf_cv_ar_flags=unknown
5129 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5132 # check if $ARFLAGS already contains this choice
5133 if test "x$ARFLAGS" != "x" ; then
5134 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5135 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5141 rm -f "conftest.$ac_cv_objext"
5144 cat >"conftest.$ac_ext" <<EOF
5145 #line 5145 "configure"
5146 int testdata[3] = { 123, 456, 789 };
5148 if { (eval echo "$as_me:5148: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>&5
5151 echo "$as_me:5151: \$? = $ac_status" >&5
5152 (exit "$ac_status"); } ; then
5153 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5154 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5155 if test -f conftest.a ; then
5156 cf_cv_ar_flags="$cf_ar_flags"
5160 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5162 echo "${as_me:-configure}:5162: testing cannot compile test-program ..." 1>&5
5167 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5172 echo "$as_me:5172: result: $cf_cv_ar_flags" >&5
5173 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5175 if test -n "$ARFLAGS" ; then
5176 if test -n "$cf_cv_ar_flags" ; then
5177 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5180 ARFLAGS=$cf_cv_ar_flags
5183 echo "$as_me:5183: checking if you have specified an install-prefix" >&5
5184 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5186 # Check whether --with-install-prefix or --without-install-prefix was given.
5187 if test "${with_install_prefix+set}" = set; then
5188 withval="$with_install_prefix"
5192 (*) DESTDIR="$withval"
5196 echo "$as_me:5196: result: $DESTDIR" >&5
5197 echo "${ECHO_T}$DESTDIR" >&6
5199 ###############################################################################
5201 # If we're cross-compiling, allow the user to override the tools and their
5202 # options. The configure script is oriented toward identifying the host
5203 # compiler, etc., but we need a build compiler to generate parts of the source.
5205 case "$cf_cv_system_name" in
5207 LDFLAGS="$LDFLAGS user32.lib"
5212 if test "$cross_compiling" = yes ; then
5214 # defaults that we might want to override
5215 : ${BUILD_CFLAGS:=''}
5216 : ${BUILD_CPPFLAGS:=''}
5217 : ${BUILD_LDFLAGS:=''}
5219 : ${BUILD_EXEEXT:='$x'}
5220 : ${BUILD_OBJEXT:='o'}
5222 # Check whether --with-build-cc or --without-build-cc was given.
5223 if test "${with_build_cc+set}" = set; then
5224 withval="$with_build_cc"
5227 for ac_prog in gcc clang c99 c89 cc cl
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 echo "$as_me:5231: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5233 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test -n "$BUILD_CC"; then
5237 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5239 ac_save_IFS=$IFS; IFS=$ac_path_separator
5241 for ac_dir in $ac_dummy; do
5243 test -z "$ac_dir" && ac_dir=.
5244 $as_executable_p "$ac_dir/$ac_word" || continue
5245 ac_cv_prog_BUILD_CC="$ac_prog"
5246 echo "$as_me:5246: found $ac_dir/$ac_word" >&5
5252 BUILD_CC=$ac_cv_prog_BUILD_CC
5253 if test -n "$BUILD_CC"; then
5254 echo "$as_me:5254: result: $BUILD_CC" >&5
5255 echo "${ECHO_T}$BUILD_CC" >&6
5257 echo "$as_me:5257: result: no" >&5
5258 echo "${ECHO_T}no" >&6
5261 test -n "$BUILD_CC" && break
5263 test -n "$BUILD_CC" || BUILD_CC="none"
5266 echo "$as_me:5266: checking for native build C compiler" >&5
5267 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5268 echo "$as_me:5268: result: $BUILD_CC" >&5
5269 echo "${ECHO_T}$BUILD_CC" >&6
5271 echo "$as_me:5271: checking for native build C preprocessor" >&5
5272 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5274 # Check whether --with-build-cpp or --without-build-cpp was given.
5275 if test "${with_build_cpp+set}" = set; then
5276 withval="$with_build_cpp"
5277 BUILD_CPP="$withval"
5279 BUILD_CPP='${BUILD_CC} -E'
5281 echo "$as_me:5281: result: $BUILD_CPP" >&5
5282 echo "${ECHO_T}$BUILD_CPP" >&6
5284 echo "$as_me:5284: checking for native build C flags" >&5
5285 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5287 # Check whether --with-build-cflags or --without-build-cflags was given.
5288 if test "${with_build_cflags+set}" = set; then
5289 withval="$with_build_cflags"
5290 BUILD_CFLAGS="$withval"
5292 echo "$as_me:5292: result: $BUILD_CFLAGS" >&5
5293 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5295 echo "$as_me:5295: checking for native build C preprocessor-flags" >&5
5296 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5298 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5299 if test "${with_build_cppflags+set}" = set; then
5300 withval="$with_build_cppflags"
5301 BUILD_CPPFLAGS="$withval"
5303 echo "$as_me:5303: result: $BUILD_CPPFLAGS" >&5
5304 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5306 echo "$as_me:5306: checking for native build linker-flags" >&5
5307 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5309 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5310 if test "${with_build_ldflags+set}" = set; then
5311 withval="$with_build_ldflags"
5312 BUILD_LDFLAGS="$withval"
5314 echo "$as_me:5314: result: $BUILD_LDFLAGS" >&5
5315 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5317 echo "$as_me:5317: checking for native build linker-libraries" >&5
5318 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5320 # Check whether --with-build-libs or --without-build-libs was given.
5321 if test "${with_build_libs+set}" = set; then
5322 withval="$with_build_libs"
5323 BUILD_LIBS="$withval"
5325 echo "$as_me:5325: result: $BUILD_LIBS" >&5
5326 echo "${ECHO_T}$BUILD_LIBS" >&6
5328 # this assumes we're on Unix.
5332 : ${BUILD_CC:='${CC}'}
5334 echo "$as_me:5334: checking if the build-compiler \"$BUILD_CC\" works" >&5
5335 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
5337 cf_save_crossed=$cross_compiling
5338 cf_save_ac_link=$ac_link
5340 cf_build_cppflags=$BUILD_CPPFLAGS
5341 test "$cf_build_cppflags" = "#" && cf_build_cppflags=
5342 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
5344 if test "$cross_compiling" = yes; then
5345 cf_ok_build_cc=unknown
5347 cat >"conftest.$ac_ext" <<_ACEOF
5348 #line 5348 "configure"
5349 #include "confdefs.h"
5351 int main(int argc, char *argv[])
5353 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
5357 rm -f "conftest$ac_exeext"
5358 if { (eval echo "$as_me:5358: \"$ac_link\"") >&5
5359 (eval $ac_link) 2>&5
5361 echo "$as_me:5361: \$? = $ac_status" >&5
5362 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5363 { (eval echo "$as_me:5363: \"$ac_try\"") >&5
5366 echo "$as_me:5366: \$? = $ac_status" >&5
5367 (exit "$ac_status"); }; }; then
5370 echo "$as_me: program exited with status $ac_status" >&5
5371 echo "$as_me: failed program was:" >&5
5372 cat "conftest.$ac_ext" >&5
5375 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5378 cross_compiling=$cf_save_crossed
5379 ac_link=$cf_save_ac_link
5381 echo "$as_me:5381: result: $cf_ok_build_cc" >&5
5382 echo "${ECHO_T}$cf_ok_build_cc" >&6
5384 if test "$cf_ok_build_cc" != yes
5386 { { echo "$as_me:5386: error: Cross-build requires two compilers.
5387 Use --with-build-cc to specify the native compiler." >&5
5388 echo "$as_me: error: Cross-build requires two compilers.
5389 Use --with-build-cc to specify the native compiler." >&2;}
5390 { (exit 1); exit 1; }; }
5394 : ${BUILD_CC:='${CC}'}
5395 : ${BUILD_CPP:='${CPP}'}
5396 : ${BUILD_CFLAGS:='${CFLAGS}'}
5397 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5398 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5399 : ${BUILD_LIBS:='${LIBS}'}
5400 : ${BUILD_EXEEXT:='$x'}
5401 : ${BUILD_OBJEXT:='o'}
5404 ###############################################################################
5406 ### Options to allow the user to specify the set of libraries which are used.
5407 ### Use "--without-normal --with-shared" to allow the default model to be
5408 ### shared, for example.
5411 echo "$as_me:5411: checking if libtool -version-number should be used" >&5
5412 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5414 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5415 if test "${enable_libtool_version+set}" = set; then
5416 enableval="$enable_libtool_version"
5417 test "$enableval" != no && enableval=yes
5418 if test "$enableval" != "yes" ; then
5419 cf_libtool_version=no
5421 cf_libtool_version=yes
5425 cf_libtool_version=yes
5428 echo "$as_me:5428: result: $cf_libtool_version" >&5
5429 echo "${ECHO_T}$cf_libtool_version" >&6
5431 if test "$cf_libtool_version" = yes ; then
5432 LIBTOOL_VERSION="-version-number"
5434 LIBTOOL_VERSION="-version-info"
5437 { echo "$as_me:5437: WARNING: VERSION was not set" >&5
5438 echo "$as_me: WARNING: VERSION was not set" >&2;}
5441 ABI_VERSION="$VERSION"
5442 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5444 echo "${as_me:-configure}:5444: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5448 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5449 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5451 echo "${as_me:-configure}:5451: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5455 { echo "$as_me:5455: WARNING: unexpected VERSION value: $VERSION" >&5
5456 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5463 # common library maintenance symbols that are convenient for libtool scripts:
5464 LIB_CREATE='${AR} -cr'
5465 LIB_OBJECT='${OBJECTS}'
5469 # symbols used to prop libtool up to enable it to determine what it should be
5477 echo "$as_me:5477: checking if you want to build libraries with libtool" >&5
5478 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5480 # Check whether --with-libtool or --without-libtool was given.
5481 if test "${with_libtool+set}" = set; then
5482 withval="$with_libtool"
5483 with_libtool=$withval
5487 echo "$as_me:5487: result: $with_libtool" >&5
5488 echo "${ECHO_T}$with_libtool" >&6
5489 if test "$with_libtool" != "no"; then
5491 if test "$with_libtool" != "yes" ; then
5493 if test "x$prefix" != xNONE; then
5494 cf_path_syntax="$prefix"
5496 cf_path_syntax="$ac_default_prefix"
5499 case ".$with_libtool" in
5504 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5506 (.\$\{*prefix\}*|.\$\{*dir\}*)
5507 eval with_libtool="$with_libtool"
5508 case ".$with_libtool" in
5510 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5515 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5518 { { echo "$as_me:5518: error: expected a pathname, not \"$with_libtool\"" >&5
5519 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5520 { (exit 1); exit 1; }; }
5524 LIBTOOL=$with_libtool
5526 if test -n "$ac_tool_prefix"; then
5527 for ac_prog in libtool glibtool
5529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5531 echo "$as_me:5531: checking for $ac_word" >&5
5532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 if test -n "$LIBTOOL"; then
5537 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5539 ac_save_IFS=$IFS; IFS=$ac_path_separator
5541 for ac_dir in $ac_dummy; do
5543 test -z "$ac_dir" && ac_dir=.
5544 $as_executable_p "$ac_dir/$ac_word" || continue
5545 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5546 echo "$as_me:5546: found $ac_dir/$ac_word" >&5
5552 LIBTOOL=$ac_cv_prog_LIBTOOL
5553 if test -n "$LIBTOOL"; then
5554 echo "$as_me:5554: result: $LIBTOOL" >&5
5555 echo "${ECHO_T}$LIBTOOL" >&6
5557 echo "$as_me:5557: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5561 test -n "$LIBTOOL" && break
5564 if test -z "$LIBTOOL"; then
5565 ac_ct_LIBTOOL=$LIBTOOL
5566 for ac_prog in libtool glibtool
5568 # Extract the first word of "$ac_prog", so it can be a program name with args.
5569 set dummy $ac_prog; ac_word=$2
5570 echo "$as_me:5570: checking for $ac_word" >&5
5571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5572 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 if test -n "$ac_ct_LIBTOOL"; then
5576 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5578 ac_save_IFS=$IFS; IFS=$ac_path_separator
5580 for ac_dir in $ac_dummy; do
5582 test -z "$ac_dir" && ac_dir=.
5583 $as_executable_p "$ac_dir/$ac_word" || continue
5584 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5585 echo "$as_me:5585: found $ac_dir/$ac_word" >&5
5591 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5592 if test -n "$ac_ct_LIBTOOL"; then
5593 echo "$as_me:5593: result: $ac_ct_LIBTOOL" >&5
5594 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5596 echo "$as_me:5596: result: no" >&5
5597 echo "${ECHO_T}no" >&6
5600 test -n "$ac_ct_LIBTOOL" && break
5602 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5604 LIBTOOL=$ac_ct_LIBTOOL
5607 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5609 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.].*//'`
5611 cf_cv_libtool_version=
5613 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5615 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5618 unset ac_cv_prog_ac_ct_LIBTOOL
5622 if test -n "$ac_tool_prefix"; then
5623 for ac_prog in glibtool
5625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5627 echo "$as_me:5627: checking for $ac_word" >&5
5628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if test -n "$LIBTOOL"; then
5633 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5635 ac_save_IFS=$IFS; IFS=$ac_path_separator
5637 for ac_dir in $ac_dummy; do
5639 test -z "$ac_dir" && ac_dir=.
5640 $as_executable_p "$ac_dir/$ac_word" || continue
5641 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5642 echo "$as_me:5642: found $ac_dir/$ac_word" >&5
5648 LIBTOOL=$ac_cv_prog_LIBTOOL
5649 if test -n "$LIBTOOL"; then
5650 echo "$as_me:5650: result: $LIBTOOL" >&5
5651 echo "${ECHO_T}$LIBTOOL" >&6
5653 echo "$as_me:5653: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5657 test -n "$LIBTOOL" && break
5660 if test -z "$LIBTOOL"; then
5661 ac_ct_LIBTOOL=$LIBTOOL
5662 for ac_prog in glibtool
5664 # Extract the first word of "$ac_prog", so it can be a program name with args.
5665 set dummy $ac_prog; ac_word=$2
5666 echo "$as_me:5666: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 if test -n "$ac_ct_LIBTOOL"; then
5672 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5674 ac_save_IFS=$IFS; IFS=$ac_path_separator
5676 for ac_dir in $ac_dummy; do
5678 test -z "$ac_dir" && ac_dir=.
5679 $as_executable_p "$ac_dir/$ac_word" || continue
5680 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5681 echo "$as_me:5681: found $ac_dir/$ac_word" >&5
5687 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5688 if test -n "$ac_ct_LIBTOOL"; then
5689 echo "$as_me:5689: result: $ac_ct_LIBTOOL" >&5
5690 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5692 echo "$as_me:5692: result: no" >&5
5693 echo "${ECHO_T}no" >&6
5696 test -n "$ac_ct_LIBTOOL" && break
5698 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5700 LIBTOOL=$ac_ct_LIBTOOL
5703 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5705 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.].*//'`
5707 cf_cv_libtool_version=
5709 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5713 if test -z "$LIBTOOL" ; then
5714 { { echo "$as_me:5714: error: Cannot find libtool" >&5
5715 echo "$as_me: error: Cannot find libtool" >&2;}
5716 { (exit 1); exit 1; }; }
5718 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5719 LIB_OBJECT='${OBJECTS:.o=.lo}'
5721 LIB_CLEAN='${LIBTOOL} --mode=clean'
5722 LIB_COMPILE='${LIBTOOL} --mode=compile'
5723 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5724 LIB_INSTALL='${LIBTOOL} --mode=install'
5725 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5728 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5730 echo "$as_me:5730: checking version of $LIBTOOL" >&5
5731 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5733 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5735 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.].*//'`
5737 cf_cv_libtool_version=
5739 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5741 echo "$as_me:5741: result: $cf_cv_libtool_version" >&5
5742 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5743 if test -n "$cf_cv_libtool_version"
5745 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5746 case "x$cf_check_libtool_version" in
5747 (*...GNU-libtool...*)
5750 { { echo "$as_me:5750: error: This is not GNU libtool" >&5
5751 echo "$as_me: error: This is not GNU libtool" >&2;}
5752 { (exit 1); exit 1; }; }
5756 { { echo "$as_me:5756: error: No version found for $LIBTOOL" >&5
5757 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5758 { (exit 1); exit 1; }; }
5761 { { echo "$as_me:5761: error: GNU libtool has not been found" >&5
5762 echo "$as_me: error: GNU libtool has not been found" >&2;}
5763 { (exit 1); exit 1; }; }
5766 # special hack to add -no-undefined (which libtool should do for itself)
5768 case "$cf_cv_system_name" in
5769 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5770 LT_UNDEF=-no-undefined
5774 # special hack to add --tag option for C++ compiler
5775 case "$cf_cv_libtool_version" in
5776 (1.[5-9]*|[2-9].[0-9.a-z]*)
5777 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5778 LIBTOOL="$LIBTOOL --tag=CC"
5781 LIBTOOL_CXX="$LIBTOOL"
5789 test -z "$LIBTOOL" && ECHO_LT=
5791 if test "$with_libtool" != "no" ; then
5793 cf_list_models="$cf_list_models libtool"
5797 echo "$as_me:5797: checking if you want to build shared libraries" >&5
5798 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5800 # Check whether --with-shared or --without-shared was given.
5801 if test "${with_shared+set}" = set; then
5802 withval="$with_shared"
5803 with_shared=$withval
5807 echo "$as_me:5807: result: $with_shared" >&5
5808 echo "${ECHO_T}$with_shared" >&6
5809 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5811 echo "$as_me:5811: checking if you want to build static libraries" >&5
5812 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5814 # Check whether --with-normal or --without-normal was given.
5815 if test "${with_normal+set}" = set; then
5816 withval="$with_normal"
5817 with_normal=$withval
5821 echo "$as_me:5821: result: $with_normal" >&5
5822 echo "${ECHO_T}$with_normal" >&6
5823 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5825 echo "$as_me:5825: checking if you want to build debug libraries" >&5
5826 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5828 # Check whether --with-debug or --without-debug was given.
5829 if test "${with_debug+set}" = set; then
5830 withval="$with_debug"
5835 echo "$as_me:5835: result: $with_debug" >&5
5836 echo "${ECHO_T}$with_debug" >&6
5837 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5839 echo "$as_me:5839: checking if you want to build profiling libraries" >&5
5840 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5842 # Check whether --with-profile or --without-profile was given.
5843 if test "${with_profile+set}" = set; then
5844 withval="$with_profile"
5845 with_profile=$withval
5849 echo "$as_me:5849: result: $with_profile" >&5
5850 echo "${ECHO_T}$with_profile" >&6
5851 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5855 if test "X$cf_with_cxx_binding" != Xno; then
5856 if test "x$with_shared" = "xyes"; then
5857 echo "$as_me:5857: checking if you want to build C++ shared libraries" >&5
5858 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5860 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5861 if test "${with_cxx_shared+set}" = set; then
5862 withval="$with_cxx_shared"
5863 with_shared_cxx=$withval
5867 echo "$as_me:5867: result: $with_shared_cxx" >&5
5868 echo "${ECHO_T}$with_shared_cxx" >&6
5872 ###############################################################################
5874 echo "$as_me:5874: checking for specified models" >&5
5875 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5876 test -z "$cf_list_models" && cf_list_models=normal
5877 test "$with_libtool" != "no" && cf_list_models=libtool
5878 echo "$as_me:5878: result: $cf_list_models" >&5
5879 echo "${ECHO_T}$cf_list_models" >&6
5881 ### Use the first model as the default, and save its suffix for use in building
5882 ### up test-applications.
5883 echo "$as_me:5883: checking for default model" >&5
5884 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5885 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5886 echo "$as_me:5886: result: $DFT_LWR_MODEL" >&5
5887 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5889 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5900 echo "$as_me:5900: checking if you want to have a library-prefix" >&5
5901 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5903 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5904 if test "${with_lib_prefix+set}" = set; then
5905 withval="$with_lib_prefix"
5906 with_lib_prefix=$withval
5908 with_lib_prefix=auto
5910 echo "$as_me:5910: result: $with_lib_prefix" >&5
5911 echo "${ECHO_T}$with_lib_prefix" >&6
5913 if test "$with_lib_prefix" = auto
5916 case "$cf_cv_system_name" in
5918 if test "$DFT_LWR_MODEL" = libtool; then
5927 (*) LIB_PREFIX='lib'
5930 cf_prefix=$LIB_PREFIX
5932 elif test "$with_lib_prefix" = no
5936 LIB_PREFIX=$with_lib_prefix
5941 echo "$as_me:5941: checking for PATH separator" >&5
5942 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5943 case "$cf_cv_system_name" in
5944 (os2*) PATH_SEPARATOR=';' ;;
5945 (*) ${PATH_SEPARATOR:=':'} ;;
5948 echo "$as_me:5948: result: $PATH_SEPARATOR" >&5
5949 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5951 # headers needed for checks...
5952 echo "$as_me:5952: checking for ANSI C header files" >&5
5953 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5954 if test "${ac_cv_header_stdc+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >"conftest.$ac_ext" <<_ACEOF
5958 #line 5958 "configure"
5959 #include "confdefs.h"
5966 if { (eval echo "$as_me:5966: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5967 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5969 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:5972: \$? = $ac_status" >&5
5973 (exit "$ac_status"); } >/dev/null; then
5974 if test -s conftest.err; then
5975 ac_cpp_err=$ac_c_preproc_warn_flag
5982 if test -z "$ac_cpp_err"; then
5983 ac_cv_header_stdc=yes
5985 echo "$as_me: failed program was:" >&5
5986 cat "conftest.$ac_ext" >&5
5987 ac_cv_header_stdc=no
5989 rm -f conftest.err "conftest.$ac_ext"
5991 if test $ac_cv_header_stdc = yes; then
5992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5993 cat >"conftest.$ac_ext" <<_ACEOF
5994 #line 5994 "configure"
5995 #include "confdefs.h"
5999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6000 $EGREP "memchr" >/dev/null 2>&1; then
6003 ac_cv_header_stdc=no
6009 if test $ac_cv_header_stdc = yes; then
6010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6011 cat >"conftest.$ac_ext" <<_ACEOF
6012 #line 6012 "configure"
6013 #include "confdefs.h"
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "free" >/dev/null 2>&1; then
6021 ac_cv_header_stdc=no
6027 if test $ac_cv_header_stdc = yes; then
6028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6029 if test "$cross_compiling" = yes; then
6032 cat >"conftest.$ac_ext" <<_ACEOF
6033 #line 6033 "configure"
6034 #include "confdefs.h"
6036 #if ((' ' & 0x0FF) == 0x020)
6037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6040 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6041 || ('j' <= (c) && (c) <= 'r') \
6042 || ('s' <= (c) && (c) <= 'z'))
6043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6051 for (i = 0; i < 256; i++)
6052 if (XOR (islower (i), ISLOWER (i))
6053 || toupper (i) != TOUPPER (i))
6055 $ac_main_return (0);
6058 rm -f "conftest$ac_exeext"
6059 if { (eval echo "$as_me:6059: \"$ac_link\"") >&5
6060 (eval $ac_link) 2>&5
6062 echo "$as_me:6062: \$? = $ac_status" >&5
6063 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6064 { (eval echo "$as_me:6064: \"$ac_try\"") >&5
6067 echo "$as_me:6067: \$? = $ac_status" >&5
6068 (exit "$ac_status"); }; }; then
6071 echo "$as_me: program exited with status $ac_status" >&5
6072 echo "$as_me: failed program was:" >&5
6073 cat "conftest.$ac_ext" >&5
6074 ac_cv_header_stdc=no
6076 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6080 echo "$as_me:6080: result: $ac_cv_header_stdc" >&5
6081 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6082 if test $ac_cv_header_stdc = yes; then
6084 cat >>confdefs.h <<\EOF
6085 #define STDC_HEADERS 1
6090 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6093 inttypes.h stdint.h unistd.h
6095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6096 echo "$as_me:6096: checking for $ac_header" >&5
6097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >"conftest.$ac_ext" <<_ACEOF
6102 #line 6102 "configure"
6103 #include "confdefs.h"
6104 $ac_includes_default
6105 #include <$ac_header>
6107 rm -f "conftest.$ac_objext"
6108 if { (eval echo "$as_me:6108: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>&5
6111 echo "$as_me:6111: \$? = $ac_status" >&5
6112 (exit "$ac_status"); } &&
6113 { ac_try='test -s "conftest.$ac_objext"'
6114 { (eval echo "$as_me:6114: \"$ac_try\"") >&5
6117 echo "$as_me:6117: \$? = $ac_status" >&5
6118 (exit "$ac_status"); }; }; then
6119 eval "$as_ac_Header=yes"
6121 echo "$as_me: failed program was:" >&5
6122 cat "conftest.$ac_ext" >&5
6123 eval "$as_ac_Header=no"
6125 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6127 echo "$as_me:6127: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6128 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6129 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6130 cat >>confdefs.h <<EOF
6131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137 echo "$as_me:6137: checking whether exit is declared" >&5
6138 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
6139 if test "${ac_cv_have_decl_exit+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 cat >"conftest.$ac_ext" <<_ACEOF
6143 #line 6143 "configure"
6144 #include "confdefs.h"
6145 $ac_includes_default
6150 char *p = (char *) exit; (void) p;
6157 rm -f "conftest.$ac_objext"
6158 if { (eval echo "$as_me:6158: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6161 echo "$as_me:6161: \$? = $ac_status" >&5
6162 (exit "$ac_status"); } &&
6163 { ac_try='test -s "conftest.$ac_objext"'
6164 { (eval echo "$as_me:6164: \"$ac_try\"") >&5
6167 echo "$as_me:6167: \$? = $ac_status" >&5
6168 (exit "$ac_status"); }; }; then
6169 ac_cv_have_decl_exit=yes
6171 echo "$as_me: failed program was:" >&5
6172 cat "conftest.$ac_ext" >&5
6173 ac_cv_have_decl_exit=no
6175 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6177 echo "$as_me:6177: result: $ac_cv_have_decl_exit" >&5
6178 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
6181 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6182 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6183 echo "$as_me:6183: checking for $ac_hdr that defines DIR" >&5
6184 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 cat >"conftest.$ac_ext" <<_ACEOF
6189 #line 6189 "configure"
6190 #include "confdefs.h"
6191 #include <sys/types.h>
6203 rm -f "conftest.$ac_objext"
6204 if { (eval echo "$as_me:6204: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>&5
6207 echo "$as_me:6207: \$? = $ac_status" >&5
6208 (exit "$ac_status"); } &&
6209 { ac_try='test -s "conftest.$ac_objext"'
6210 { (eval echo "$as_me:6210: \"$ac_try\"") >&5
6213 echo "$as_me:6213: \$? = $ac_status" >&5
6214 (exit "$ac_status"); }; }; then
6215 eval "$as_ac_Header=yes"
6217 echo "$as_me: failed program was:" >&5
6218 cat "conftest.$ac_ext" >&5
6219 eval "$as_ac_Header=no"
6221 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6223 echo "$as_me:6223: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6224 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6225 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6226 cat >>confdefs.h <<EOF
6227 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6230 ac_header_dirent=$ac_hdr; break
6234 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6235 if test $ac_header_dirent = dirent.h; then
6236 echo "$as_me:6236: checking for opendir in -ldir" >&5
6237 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6238 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 ac_check_lib_save_LIBS=$LIBS
6243 cat >"conftest.$ac_ext" <<_ACEOF
6244 #line 6244 "configure"
6245 #include "confdefs.h"
6247 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6262 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6263 if { (eval echo "$as_me:6263: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>&5
6266 echo "$as_me:6266: \$? = $ac_status" >&5
6267 (exit "$ac_status"); } &&
6268 { ac_try='test -s "conftest$ac_exeext"'
6269 { (eval echo "$as_me:6269: \"$ac_try\"") >&5
6272 echo "$as_me:6272: \$? = $ac_status" >&5
6273 (exit "$ac_status"); }; }; then
6274 ac_cv_lib_dir_opendir=yes
6276 echo "$as_me: failed program was:" >&5
6277 cat "conftest.$ac_ext" >&5
6278 ac_cv_lib_dir_opendir=no
6280 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6281 LIBS=$ac_check_lib_save_LIBS
6283 echo "$as_me:6283: result: $ac_cv_lib_dir_opendir" >&5
6284 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6285 if test "$ac_cv_lib_dir_opendir" = yes; then
6290 echo "$as_me:6290: checking for opendir in -lx" >&5
6291 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6292 if test "${ac_cv_lib_x_opendir+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 ac_check_lib_save_LIBS=$LIBS
6297 cat >"conftest.$ac_ext" <<_ACEOF
6298 #line 6298 "configure"
6299 #include "confdefs.h"
6301 /* Override any gcc2 internal prototype to avoid an error. */
6305 /* We use char because int might match the return type of a gcc2
6306 builtin and then its argument prototype would still apply. */
6316 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6317 if { (eval echo "$as_me:6317: \"$ac_link\"") >&5
6318 (eval $ac_link) 2>&5
6320 echo "$as_me:6320: \$? = $ac_status" >&5
6321 (exit "$ac_status"); } &&
6322 { ac_try='test -s "conftest$ac_exeext"'
6323 { (eval echo "$as_me:6323: \"$ac_try\"") >&5
6326 echo "$as_me:6326: \$? = $ac_status" >&5
6327 (exit "$ac_status"); }; }; then
6328 ac_cv_lib_x_opendir=yes
6330 echo "$as_me: failed program was:" >&5
6331 cat "conftest.$ac_ext" >&5
6332 ac_cv_lib_x_opendir=no
6334 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6335 LIBS=$ac_check_lib_save_LIBS
6337 echo "$as_me:6337: result: $ac_cv_lib_x_opendir" >&5
6338 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6339 if test "$ac_cv_lib_x_opendir" = yes; then
6345 ###############################################################################
6347 echo "$as_me:6347: checking if you want to build a separate terminfo library" >&5
6348 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
6350 # Check whether --with-termlib or --without-termlib was given.
6351 if test "${with_termlib+set}" = set; then
6352 withval="$with_termlib"
6353 with_termlib=$withval
6357 echo "$as_me:6357: result: $with_termlib" >&5
6358 echo "${ECHO_T}$with_termlib" >&6
6360 echo "$as_me:6360: checking if you want to build a separate tic library" >&5
6361 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
6363 # Check whether --with-ticlib or --without-ticlib was given.
6364 if test "${with_ticlib+set}" = set; then
6365 withval="$with_ticlib"
6366 with_ticlib=$withval
6370 echo "$as_me:6370: result: $with_ticlib" >&5
6371 echo "${ECHO_T}$with_ticlib" >&6
6373 if test X"$CC_G_OPT" = X"" ; then
6375 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
6378 if test X"$CXX_G_OPT" = X"" ; then
6380 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
6383 echo "$as_me:6383: checking for default loader flags" >&5
6384 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6385 case "$DFT_LWR_MODEL" in
6386 (libtool) LD_MODEL='' ;;
6387 (normal) LD_MODEL='' ;;
6388 (debug) LD_MODEL=$CC_G_OPT ;;
6389 (profile) LD_MODEL='-pg';;
6390 (shared) LD_MODEL='' ;;
6392 echo "$as_me:6392: result: $LD_MODEL" >&5
6393 echo "${ECHO_T}$LD_MODEL" >&6
6395 case "$DFT_LWR_MODEL" in
6398 echo "$as_me:6398: checking if rpath option should be used" >&5
6399 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
6401 # Check whether --enable-rpath or --disable-rpath was given.
6402 if test "${enable_rpath+set}" = set; then
6403 enableval="$enable_rpath"
6404 cf_cv_enable_rpath=$enableval
6406 cf_cv_enable_rpath=no
6408 echo "$as_me:6408: result: $cf_cv_enable_rpath" >&5
6409 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
6411 echo "$as_me:6411: checking if shared libraries should be relinked during install" >&5
6412 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
6414 # Check whether --enable-relink or --disable-relink was given.
6415 if test "${enable_relink+set}" = set; then
6416 enableval="$enable_relink"
6417 cf_cv_do_relink=$enableval
6421 echo "$as_me:6421: result: $cf_cv_do_relink" >&5
6422 echo "${ECHO_T}$cf_cv_do_relink" >&6
6426 # we will build libraries one-level down.
6430 if test "x$cf_cv_enable_rpath" != xno
6432 echo "$as_me:6432: checking for an rpath option" >&5
6433 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
6434 case "$cf_cv_system_name" in
6436 if test "$GCC" = yes; then
6437 LD_RPATH_OPT="-Wl,-rpath,"
6439 LD_RPATH_OPT="-rpath "
6442 (linux*|gnu*|k*bsd*-gnu|freebsd*)
6443 LD_RPATH_OPT="-Wl,-rpath,"
6445 (openbsd[2-9].*|mirbsd*)
6446 LD_RPATH_OPT="-Wl,-rpath,"
6449 LD_RPATH_OPT="-rpath "
6452 LD_RPATH_OPT="-Wl,-rpath,"
6455 LD_RPATH_OPT="-rpath "
6463 echo "$as_me:6463: result: $LD_RPATH_OPT" >&5
6464 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6466 case "x$LD_RPATH_OPT" in
6468 echo "$as_me:6468: checking if we need a space after rpath option" >&5
6469 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6470 cf_save_LIBS="$LIBS"
6475 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6477 for cf_add_1lib in $cf_add_0lib; do
6478 for cf_add_2lib in $cf_add_libs; do
6479 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6484 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6488 cat >"conftest.$ac_ext" <<_ACEOF
6489 #line 6489 "configure"
6490 #include "confdefs.h"
6500 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6501 if { (eval echo "$as_me:6501: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6504 echo "$as_me:6504: \$? = $ac_status" >&5
6505 (exit "$ac_status"); } &&
6506 { ac_try='test -s "conftest$ac_exeext"'
6507 { (eval echo "$as_me:6507: \"$ac_try\"") >&5
6510 echo "$as_me:6510: \$? = $ac_status" >&5
6511 (exit "$ac_status"); }; }; then
6514 echo "$as_me: failed program was:" >&5
6515 cat "conftest.$ac_ext" >&5
6518 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6519 LIBS="$cf_save_LIBS"
6520 echo "$as_me:6520: result: $cf_rpath_space" >&5
6521 echo "${ECHO_T}$cf_rpath_space" >&6
6522 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6531 INSTALL_LIB="-m 644"
6532 : ${rel_builddir:=.}
6538 cf_cv_do_symlinks=no
6540 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6542 echo "$as_me:6542: checking if release/abi version should be used for shared libs" >&5
6543 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6545 # Check whether --with-shlib-version or --without-shlib-version was given.
6546 if test "${with_shlib_version+set}" = set; then
6547 withval="$with_shlib_version"
6548 test -z "$withval" && withval=auto
6551 cf_cv_shlib_version=auto
6554 cf_cv_shlib_version=$withval
6557 echo "$as_me:6557: result: $withval" >&5
6558 echo "${ECHO_T}$withval" >&6
6559 { { echo "$as_me:6559: error: option value must be one of: rel, abi, or auto" >&5
6560 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6561 { (exit 1); exit 1; }; }
6566 cf_cv_shlib_version=auto
6568 echo "$as_me:6568: result: $cf_cv_shlib_version" >&5
6569 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6574 # Some less-capable ports of gcc support only -fpic
6578 if test "$GCC" = yes
6582 case "$cf_cv_system_name" in
6583 (*linux*) # e.g., PGI compiler
6589 if test "$cf_try_fPIC" = yes
6591 echo "$as_me:6591: checking which $CC option to use" >&5
6592 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6593 cf_save_CFLAGS="$CFLAGS"
6594 for CC_SHARED_OPTS in -fPIC -fpic ''
6596 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6597 cat >"conftest.$ac_ext" <<_ACEOF
6598 #line 6598 "configure"
6599 #include "confdefs.h"
6609 rm -f "conftest.$ac_objext"
6610 if { (eval echo "$as_me:6610: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 2>&5
6613 echo "$as_me:6613: \$? = $ac_status" >&5
6614 (exit "$ac_status"); } &&
6615 { ac_try='test -s "conftest.$ac_objext"'
6616 { (eval echo "$as_me:6616: \"$ac_try\"") >&5
6619 echo "$as_me:6619: \$? = $ac_status" >&5
6620 (exit "$ac_status"); }; }; then
6623 echo "$as_me: failed program was:" >&5
6624 cat "conftest.$ac_ext" >&5
6626 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6628 echo "$as_me:6628: result: $CC_SHARED_OPTS" >&5
6629 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6630 CFLAGS="$cf_save_CFLAGS"
6633 cf_cv_shlib_version_infix=no
6635 case "$cf_cv_system_name" in
6636 (aix4.3-9*|aix[5-7]*)
6637 if test "$GCC" = yes; then
6638 CC_SHARED_OPTS='-Wl,-brtl'
6639 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6641 CC_SHARED_OPTS='-brtl'
6642 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6643 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6647 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6651 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6652 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6653 cf_cv_shlib_version=cygdll
6654 cf_cv_shlib_version_infix=cygdll
6657 cat >mk_shared_lib.sh <<-CF_EOF
6660 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6663 Linking shared library
6664 ** SHARED_LIB \$SHARED_LIB
6665 ** IMPORT_LIB \$IMPORT_LIB
6667 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6669 chmod +x mk_shared_lib.sh
6673 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6674 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6675 cf_cv_shlib_version=msysdll
6676 cf_cv_shlib_version_infix=msysdll
6679 cat >mk_shared_lib.sh <<-CF_EOF
6682 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6685 Linking shared library
6686 ** SHARED_LIB \$SHARED_LIB
6687 ** IMPORT_LIB \$IMPORT_LIB
6689 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6691 chmod +x mk_shared_lib.sh
6694 cf_try_cflags="no-cpp-precomp"
6695 CC_SHARED_OPTS="-dynamic"
6696 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6697 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6698 cf_cv_shlib_version_infix=yes
6699 echo "$as_me:6699: checking if ld -search_paths_first works" >&5
6700 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6701 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 cf_save_LDFLAGS=$LDFLAGS
6706 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6707 cat >"conftest.$ac_ext" <<_ACEOF
6708 #line 6708 "configure"
6709 #include "confdefs.h"
6719 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6720 if { (eval echo "$as_me:6720: \"$ac_link\"") >&5
6721 (eval $ac_link) 2>&5
6723 echo "$as_me:6723: \$? = $ac_status" >&5
6724 (exit "$ac_status"); } &&
6725 { ac_try='test -s "conftest$ac_exeext"'
6726 { (eval echo "$as_me:6726: \"$ac_try\"") >&5
6729 echo "$as_me:6729: \$? = $ac_status" >&5
6730 (exit "$ac_status"); }; }; then
6731 cf_cv_ldflags_search_paths_first=yes
6733 echo "$as_me: failed program was:" >&5
6734 cat "conftest.$ac_ext" >&5
6735 cf_cv_ldflags_search_paths_first=no
6737 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6738 LDFLAGS=$cf_save_LDFLAGS
6740 echo "$as_me:6740: result: $cf_cv_ldflags_search_paths_first" >&5
6741 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6742 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6743 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6748 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6749 if test "$cf_cv_shlib_version" = rel; then
6750 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6752 cf_cv_shared_soname='`basename $@`'
6755 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6758 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6759 if test "$GCC" != yes; then
6762 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6763 INSTALL_LIB="-m 555"
6766 # (tested with gcc 2.7.2 -- I don't have c89)
6767 if test "$GCC" = yes; then
6768 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6771 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6773 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6774 # HP-UX shared libraries must be executable, and should be
6775 # readonly to exploit a quirk in the memory manager.
6776 INSTALL_LIB="-m 555"
6779 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6780 if test "$cf_cv_shlib_version" = rel; then
6781 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6783 cf_shared_soname='`basename $@`'
6786 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6789 if test "$cf_cv_enable_rpath" = yes ; then
6790 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6792 # tested with IRIX 5.2 and 'cc'.
6793 if test "$GCC" != yes; then
6794 CC_SHARED_OPTS='-KPIC'
6795 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6797 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6799 cf_cv_rm_so_locs=yes
6801 (linux*|gnu*|k*bsd*-gnu)
6802 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6803 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6804 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6806 if test "$cf_cv_enable_rpath" = yes ; then
6807 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6810 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6811 if test "$cf_cv_shlib_version" = rel; then
6812 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6814 cf_cv_shared_soname='`basename $@`'
6817 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6820 cf_cv_shlib_version=msvcdll
6821 cf_cv_shlib_version_infix=msvcdll
6824 if test "$DFT_LWR_MODEL" = "shared" ; then
6825 LOCAL_LDFLAGS="-link -dll"
6826 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6827 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6830 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6831 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6832 cat >mk_shared_lib.sh <<-CF_EOF
6835 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6840 Linking shared library
6841 ** SHARED LIB \$SHARED_LIB
6842 ** IMPORT_LIB \$IMPORT_LIB
6844 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6845 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6846 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6848 chmod +x mk_shared_lib.sh
6849 cat >mk_prog.sh <<-CF_EOF
6852 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6855 ldopts=("/subsystem:console")
6858 while test \$# -gt 0; do
6861 # ignore -link argument
6864 # ignore runtime-library option
6879 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6882 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6888 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6889 ldopts+=("\${linkarg}")
6897 ldopts+=("-out:\$1")
6906 if [ "\$isdll" -ne 0 ]; then
6907 for lib in \${libs[*]}; do
6908 ldopts+=("\$lib.dll.lib")
6911 for lib in \${libs[*]}; do
6912 ldopts+=("\$lib.lib")
6917 ** ld options: "\${ldopts[@]}"
6919 exec \$LD \${ldopts[@]}
6922 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6923 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6926 cf_cv_shlib_version=mingw
6927 cf_cv_shlib_version_infix=mingw
6930 if test "$DFT_LWR_MODEL" = "shared" ; then
6931 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6932 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6933 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6936 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6937 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6938 cat >mk_shared_lib.sh <<-CF_EOF
6941 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6944 Linking shared library
6945 ** SHARED_LIB \$SHARED_LIB
6946 ** IMPORT_LIB \$IMPORT_LIB
6948 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6950 chmod +x mk_shared_lib.sh
6952 (openbsd[2-9].*|mirbsd*)
6953 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6954 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6955 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6957 if test "$cf_cv_enable_rpath" = yes ; then
6958 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6960 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6962 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6963 if test "$cf_cv_shlib_version" = rel; then
6964 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6966 cf_cv_shared_soname='`basename $@`'
6969 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6973 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6977 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6979 (nto-qnx*|openbsd*|freebsd[12].*)
6980 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6981 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6982 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6984 (dragonfly*|freebsd*)
6985 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6986 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6987 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6988 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6989 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6992 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6993 if test "$cf_cv_shlib_version" = rel; then
6994 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6996 cf_cv_shared_soname='`basename $@`'
6999 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7002 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7003 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7004 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7005 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7006 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7007 if test "$cf_cv_shlib_version" = auto; then
7008 if test -f /usr/libexec/ld.elf_so; then
7009 cf_cv_shlib_version=abi
7011 cf_cv_shlib_version=rel
7015 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7016 if test "$cf_cv_shlib_version" = rel; then
7017 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7019 cf_cv_shared_soname='`basename $@`'
7022 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7024 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
7028 # tested with OSF/1 V3.2 and 'cc'
7029 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7030 # link with shared libs).
7031 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7034 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7037 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7038 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7039 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7040 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7042 cf_cv_rm_so_locs=yes
7044 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
7045 # tested with osr5.0.5
7046 if test "$GCC" != yes; then
7047 CC_SHARED_OPTS='-belf -KPIC'
7049 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7050 if test "$cf_cv_enable_rpath" = yes ; then
7051 # only way is to set LD_RUN_PATH but no switch for it
7054 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7055 LINK_PROGS='LD_RUN_PATH=${libdir}'
7056 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7059 # tested with SunOS 4.1.1 and gcc 2.7.0
7060 if test "$GCC" != yes; then
7061 CC_SHARED_OPTS='-KPIC'
7063 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
7064 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7067 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7068 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7069 if test "$DFT_LWR_MODEL" = "shared" ; then
7070 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7071 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7073 if test "$cf_cv_enable_rpath" = yes ; then
7074 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7077 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7078 if test "$cf_cv_shlib_version" = rel; then
7079 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7081 cf_cv_shared_soname='`basename $@`'
7084 if test "$GCC" != yes; then
7085 cf_save_CFLAGS="$CFLAGS"
7086 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7088 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7089 cat >"conftest.$ac_ext" <<_ACEOF
7090 #line 7090 "configure"
7091 #include "confdefs.h"
7101 rm -f "conftest.$ac_objext"
7102 if { (eval echo "$as_me:7102: \"$ac_compile\"") >&5
7103 (eval $ac_compile) 2>&5
7105 echo "$as_me:7105: \$? = $ac_status" >&5
7106 (exit "$ac_status"); } &&
7107 { ac_try='test -s "conftest.$ac_objext"'
7108 { (eval echo "$as_me:7108: \"$ac_try\"") >&5
7111 echo "$as_me:7111: \$? = $ac_status" >&5
7112 (exit "$ac_status"); }; }; then
7115 echo "$as_me: failed program was:" >&5
7116 cat "conftest.$ac_ext" >&5
7118 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7120 CFLAGS="$cf_save_CFLAGS"
7121 CC_SHARED_OPTS=$cf_shared_opts
7122 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
7124 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7127 (sysv5uw7*|unix_sv*)
7128 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7129 if test "$GCC" != yes; then
7130 CC_SHARED_OPTS='-KPIC'
7132 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
7135 CC_SHARED_OPTS='unknown'
7136 MK_SHARED_LIB='echo unknown'
7140 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7141 case "$cf_cv_shlib_version" in
7143 case "$MK_SHARED_LIB" in
7145 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7148 { echo "$as_me:7148: WARNING: ignored --with-shlib-version" >&5
7149 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7155 if test -n "$cf_try_cflags"
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7158 "${as_me:-configure}"
7160 int main(int argc, char *argv[])
7163 return (argv[argc-1] == 0) ;
7166 cf_save_CFLAGS="$CFLAGS"
7167 for cf_opt in $cf_try_cflags
7169 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7170 echo "$as_me:7170: checking if CFLAGS option -$cf_opt works" >&5
7171 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7172 if { (eval echo "$as_me:7172: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>&5
7175 echo "$as_me:7175: \$? = $ac_status" >&5
7176 (exit "$ac_status"); }; then
7177 echo "$as_me:7177: result: yes" >&5
7178 echo "${ECHO_T}yes" >&6
7179 cf_save_CFLAGS="$CFLAGS"
7181 echo "$as_me:7181: result: no" >&5
7182 echo "${ECHO_T}no" >&6
7185 CFLAGS="$cf_save_CFLAGS"
7188 # RPATH_LIST is a colon-separated list of directories
7189 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7190 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7192 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7194 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7196 echo "${as_me:-configure}:7196: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7198 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7200 echo "${as_me:-configure}:7200: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7202 for model in $cf_list_models ; do
7206 echo "$as_me:7206: checking for additional libtool options" >&5
7207 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
7209 # Check whether --with-libtool-opts or --without-libtool-opts was given.
7210 if test "${with_libtool_opts+set}" = set; then
7211 withval="$with_libtool_opts"
7212 with_libtool_opts=$withval
7214 with_libtool_opts=no
7216 echo "$as_me:7216: result: $with_libtool_opts" >&5
7217 echo "${ECHO_T}$with_libtool_opts" >&6
7219 case .$with_libtool_opts in
7223 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
7227 echo "$as_me:7227: checking if exported-symbols file should be used" >&5
7228 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
7230 # Check whether --with-export-syms or --without-export-syms was given.
7231 if test "${with_export_syms+set}" = set; then
7232 withval="$with_export_syms"
7233 with_export_syms=$withval
7237 if test "x$with_export_syms" = xyes
7239 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
7242 echo "$as_me:7242: result: $with_export_syms" >&5
7243 echo "${ECHO_T}$with_export_syms" >&6
7244 if test "x$with_export_syms" != xno
7246 EXPORT_SYMS="-export-symbols $with_export_syms"
7252 if test "$CC_SHARED_OPTS" = "unknown"; then
7253 { { echo "$as_me:7253: error: Shared libraries are not supported in this version" >&5
7254 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
7255 { (exit 1); exit 1; }; }
7257 # workaround for inept transition to PIE vs PIC...
7258 echo "$as_me:7258: checking if current CFLAGS link properly" >&5
7259 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
7260 cat >"conftest.$ac_ext" <<_ACEOF
7261 #line 7261 "configure"
7262 #include "confdefs.h"
7267 printf("Hello work\\n");
7272 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7273 if { (eval echo "$as_me:7273: \"$ac_link\"") >&5
7274 (eval $ac_link) 2>&5
7276 echo "$as_me:7276: \$? = $ac_status" >&5
7277 (exit "$ac_status"); } &&
7278 { ac_try='test -s "conftest$ac_exeext"'
7279 { (eval echo "$as_me:7279: \"$ac_try\"") >&5
7282 echo "$as_me:7282: \$? = $ac_status" >&5
7283 (exit "$ac_status"); }; }; then
7286 echo "$as_me: failed program was:" >&5
7287 cat "conftest.$ac_ext" >&5
7290 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7291 echo "$as_me:7291: result: $cf_cflags_work" >&5
7292 echo "${ECHO_T}$cf_cflags_work" >&6
7293 if test "$cf_cflags_work" = no
7295 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
7297 echo "${as_me:-configure}:7297: testing try to work around by appending shared-options ..." 1>&5
7299 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
7302 echo "$as_me:7302: checking if versioned-symbols file should be used" >&5
7303 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
7305 # Check whether --with-versioned-syms or --without-versioned-syms was given.
7306 if test "${with_versioned_syms+set}" = set; then
7307 withval="$with_versioned_syms"
7308 with_versioned_syms=$withval
7310 with_versioned_syms=no
7312 case "x$with_versioned_syms" in
7314 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
7320 test -f "$with_versioned_syms" || { { echo "$as_me:7320: error: expected a filename: $with_versioned_syms" >&5
7321 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7322 { (exit 1); exit 1; }; }
7325 test -f "$with_versioned_syms" || { { echo "$as_me:7325: error: expected a filename: $with_versioned_syms" >&5
7326 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7327 { (exit 1); exit 1; }; }
7328 with_versioned_syms=`pwd`/"$with_versioned_syms"
7331 echo "$as_me:7331: result: $with_versioned_syms" >&5
7332 echo "${ECHO_T}$with_versioned_syms" >&6
7338 if test "x$with_versioned_syms" != xno
7340 RESULTING_SYMS=$with_versioned_syms
7341 case "x$MK_SHARED_LIB" in
7343 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
7344 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
7345 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7347 echo "${as_me:-configure}:7347: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7351 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
7352 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
7353 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7355 echo "${as_me:-configure}:7355: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7359 { echo "$as_me:7359: WARNING: this system does not support versioned-symbols" >&5
7360 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
7364 # Linux ld can selectively override scope, e.g., of symbols beginning with
7365 # "_" by first declaring some as global, and then using a wildcard to
7366 # declare the others as local. Some other loaders cannot do this. Check
7367 # by constructing a (very) simple shared library and inspecting its
7369 if test "x$VERSIONED_SYMS" != "x"
7371 echo "$as_me:7371: checking if wildcards can be used to selectively omit symbols" >&5
7372 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
7378 cat >conftest.ver <<EOF
7407 cat >conftest.$ac_ext <<EOF
7408 #line 7408 "configure"
7409 int _ismissing(void) { return 1; }
7410 int _localf1(void) { return 1; }
7411 int _localf2(void) { return 2; }
7412 int globalf1(void) { return 1; }
7413 int globalf2(void) { return 2; }
7414 int _sublocalf1(void) { return 1; }
7415 int _sublocalf2(void) { return 2; }
7416 int subglobalf1(void) { return 1; }
7417 int subglobalf2(void) { return 2; }
7419 cat >conftest.mk <<EOF
7422 CPPFLAGS=${CPPFLAGS}
7425 VERSIONED_SYMS=${VERSIONED_SYMS}
7426 RESULTING_SYMS=conftest.ver
7427 MK_SHARED_LIB=${MK_SHARED_LIB}
7428 conftest.so: conftest.$ac_cv_objext
7429 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
7432 # compile source, make library
7433 if make -f conftest.mk 2>&5 >/dev/null
7435 # test for missing symbol in either Data or Text section
7436 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
7437 test -n "$cf_missing" && WILDCARD_SYMS=yes
7439 echo "$as_me:7439: result: $WILDCARD_SYMS" >&5
7440 echo "${ECHO_T}$WILDCARD_SYMS" >&6
7449 ### Checks for special libraries, must be done up-front.
7452 echo "$as_me:7452: checking if you want to link with the GPM mouse library" >&5
7453 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
7455 # Check whether --with-gpm or --without-gpm was given.
7456 if test "${with_gpm+set}" = set; then
7462 echo "$as_me:7462: result: $with_gpm" >&5
7463 echo "${ECHO_T}$with_gpm" >&6
7465 if test "$with_gpm" != no ; then
7466 echo "$as_me:7466: checking for gpm.h" >&5
7467 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7468 if test "${ac_cv_header_gpm_h+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 cat >"conftest.$ac_ext" <<_ACEOF
7472 #line 7472 "configure"
7473 #include "confdefs.h"
7476 if { (eval echo "$as_me:7476: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7477 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7479 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 echo "$as_me:7482: \$? = $ac_status" >&5
7483 (exit "$ac_status"); } >/dev/null; then
7484 if test -s conftest.err; then
7485 ac_cpp_err=$ac_c_preproc_warn_flag
7492 if test -z "$ac_cpp_err"; then
7493 ac_cv_header_gpm_h=yes
7495 echo "$as_me: failed program was:" >&5
7496 cat "conftest.$ac_ext" >&5
7497 ac_cv_header_gpm_h=no
7499 rm -f conftest.err "conftest.$ac_ext"
7501 echo "$as_me:7501: result: $ac_cv_header_gpm_h" >&5
7502 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7503 if test "$ac_cv_header_gpm_h" = yes; then
7505 cat >>confdefs.h <<\EOF
7506 #define HAVE_GPM_H 1
7509 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7510 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7512 echo "${as_me:-configure}:7512: testing assuming we really have GPM library ..." 1>&5
7514 cat >>confdefs.h <<\EOF
7515 #define HAVE_LIBGPM 1
7520 echo "$as_me:7520: checking for Gpm_Open in -lgpm" >&5
7521 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7522 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_check_lib_save_LIBS=$LIBS
7527 cat >"conftest.$ac_ext" <<_ACEOF
7528 #line 7528 "configure"
7529 #include "confdefs.h"
7531 /* Override any gcc2 internal prototype to avoid an error. */
7535 /* We use char because int might match the return type of a gcc2
7536 builtin and then its argument prototype would still apply. */
7546 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7547 if { (eval echo "$as_me:7547: \"$ac_link\"") >&5
7548 (eval $ac_link) 2>&5
7550 echo "$as_me:7550: \$? = $ac_status" >&5
7551 (exit "$ac_status"); } &&
7552 { ac_try='test -s "conftest$ac_exeext"'
7553 { (eval echo "$as_me:7553: \"$ac_try\"") >&5
7556 echo "$as_me:7556: \$? = $ac_status" >&5
7557 (exit "$ac_status"); }; }; then
7558 ac_cv_lib_gpm_Gpm_Open=yes
7560 echo "$as_me: failed program was:" >&5
7561 cat "conftest.$ac_ext" >&5
7562 ac_cv_lib_gpm_Gpm_Open=no
7564 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7565 LIBS=$ac_check_lib_save_LIBS
7567 echo "$as_me:7567: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7568 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7569 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7573 if test "$with_gpm" = maybe; then
7574 { echo "$as_me:7574: WARNING: Cannot link with GPM library" >&5
7575 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7578 { { echo "$as_me:7578: error: Cannot link with GPM library" >&5
7579 echo "$as_me: error: Cannot link with GPM library" >&2;}
7580 { (exit 1); exit 1; }; }
7589 test "$with_gpm" != maybe && { echo "$as_me:7589: WARNING: Cannot find GPM header" >&5
7590 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7597 if test "$with_gpm" != no ; then
7598 echo "$as_me:7598: checking if you want to load GPM dynamically" >&5
7599 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7601 # Check whether --with-dlsym or --without-dlsym was given.
7602 if test "${with_dlsym+set}" = set; then
7603 withval="$with_dlsym"
7608 echo "$as_me:7608: result: $with_dlsym" >&5
7609 echo "${ECHO_T}$with_dlsym" >&6
7610 if test "x$with_dlsym" = xyes ; then
7613 echo "$as_me:7613: checking for dlsym" >&5
7614 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7615 if test "${ac_cv_func_dlsym+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 cat >"conftest.$ac_ext" <<_ACEOF
7619 #line 7619 "configure"
7620 #include "confdefs.h"
7621 #define dlsym autoconf_temporary
7622 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7629 /* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7637 /* The GNU C library defines stubs for functions which it implements
7638 to always fail with ENOSYS. Some functions are actually named
7639 something starting with __ and the normal name is an alias. */
7640 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7641 #error found stub for dlsym
7649 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7650 if { (eval echo "$as_me:7650: \"$ac_link\"") >&5
7651 (eval $ac_link) 2>&5
7653 echo "$as_me:7653: \$? = $ac_status" >&5
7654 (exit "$ac_status"); } &&
7655 { ac_try='test -s "conftest$ac_exeext"'
7656 { (eval echo "$as_me:7656: \"$ac_try\"") >&5
7659 echo "$as_me:7659: \$? = $ac_status" >&5
7660 (exit "$ac_status"); }; }; then
7661 ac_cv_func_dlsym=yes
7663 echo "$as_me: failed program was:" >&5
7664 cat "conftest.$ac_ext" >&5
7667 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7669 echo "$as_me:7669: result: $ac_cv_func_dlsym" >&5
7670 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7671 if test "$ac_cv_func_dlsym" = yes; then
7676 echo "$as_me:7676: checking for dlsym in -ldl" >&5
7677 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7678 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 ac_check_lib_save_LIBS=$LIBS
7683 cat >"conftest.$ac_ext" <<_ACEOF
7684 #line 7684 "configure"
7685 #include "confdefs.h"
7687 /* Override any gcc2 internal prototype to avoid an error. */
7691 /* We use char because int might match the return type of a gcc2
7692 builtin and then its argument prototype would still apply. */
7702 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7703 if { (eval echo "$as_me:7703: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>&5
7706 echo "$as_me:7706: \$? = $ac_status" >&5
7707 (exit "$ac_status"); } &&
7708 { ac_try='test -s "conftest$ac_exeext"'
7709 { (eval echo "$as_me:7709: \"$ac_try\"") >&5
7712 echo "$as_me:7712: \$? = $ac_status" >&5
7713 (exit "$ac_status"); }; }; then
7714 ac_cv_lib_dl_dlsym=yes
7716 echo "$as_me: failed program was:" >&5
7717 cat "conftest.$ac_ext" >&5
7718 ac_cv_lib_dl_dlsym=no
7720 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7721 LIBS=$ac_check_lib_save_LIBS
7723 echo "$as_me:7723: result: $ac_cv_lib_dl_dlsym" >&5
7724 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7725 if test "$ac_cv_lib_dl_dlsym" = yes; then
7733 if test "$cf_have_dlsym" = yes ; then
7734 test "$cf_have_libdl" = yes && {
7738 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7740 for cf_add_1lib in $cf_add_0lib; do
7741 for cf_add_2lib in $cf_add_libs; do
7742 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7747 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7752 echo "$as_me:7752: checking whether able to link to dl*() functions" >&5
7753 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7754 cat >"conftest.$ac_ext" <<_ACEOF
7755 #line 7755 "configure"
7756 #include "confdefs.h"
7763 if ((obj = dlopen("filename", 0)) != 0) {
7764 if (dlsym(obj, "symbolname") == 0) {
7772 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7773 if { (eval echo "$as_me:7773: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>&5
7776 echo "$as_me:7776: \$? = $ac_status" >&5
7777 (exit "$ac_status"); } &&
7778 { ac_try='test -s "conftest$ac_exeext"'
7779 { (eval echo "$as_me:7779: \"$ac_try\"") >&5
7782 echo "$as_me:7782: \$? = $ac_status" >&5
7783 (exit "$ac_status"); }; }; then
7785 cat >>confdefs.h <<\EOF
7786 #define HAVE_LIBDL 1
7790 echo "$as_me: failed program was:" >&5
7791 cat "conftest.$ac_ext" >&5
7793 { { echo "$as_me:7793: error: Cannot link test program for libdl" >&5
7794 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7795 { (exit 1); exit 1; }; }
7797 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7798 echo "$as_me:7798: result: ok" >&5
7799 echo "${ECHO_T}ok" >&6
7801 { { echo "$as_me:7801: error: Cannot find dlsym function" >&5
7802 echo "$as_me: error: Cannot find dlsym function" >&2;}
7803 { (exit 1); exit 1; }; }
7806 if test "x$with_gpm" != xyes ; then
7807 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7809 echo "${as_me:-configure}:7809: testing assuming soname for gpm is $with_gpm ..." 1>&5
7811 cf_cv_gpm_soname="$with_gpm"
7814 echo "$as_me:7814: checking for soname of gpm library" >&5
7815 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7816 if test "${cf_cv_gpm_soname+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 cf_cv_gpm_soname=unknown
7821 if test "$cross_compiling" != yes ; then
7822 cat >conftest.$ac_ext <<CF_EOF
7826 if (Gpm_Open(0,0)) Gpm_Close();
7827 ${cf_cv_main_return:-return}(0);
7830 cf_save_LIBS="$LIBS"
7835 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7837 for cf_add_1lib in $cf_add_0lib; do
7838 for cf_add_2lib in $cf_add_libs; do
7839 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7844 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7848 if { (eval echo "$as_me:7848: \"$ac_compile\"") >&5
7849 (eval $ac_compile) 2>&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 (exit "$ac_status"); } ; then
7853 if { (eval echo "$as_me:7853: \"$ac_link\"") >&5
7854 (eval $ac_link) 2>&5
7856 echo "$as_me:7856: \$? = $ac_status" >&5
7857 (exit "$ac_status"); } ; then
7858 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7859 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7863 LIBS="$cf_save_LIBS"
7867 echo "$as_me:7867: result: $cf_cv_gpm_soname" >&5
7868 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7871 test "$cf_cv_gpm_soname" != "unknown" &&
7872 cat >>confdefs.h <<EOF
7873 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7876 SHLIB_LIST="-ldl $SHLIB_LIST"
7878 cf_add_libs="$PRIVATE_LIBS"
7881 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7883 for cf_add_1lib in $cf_add_0lib; do
7884 for cf_add_2lib in $cf_add_libs; do
7885 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7890 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7892 PRIVATE_LIBS="$cf_add_libs"
7895 SHLIB_LIST="-lgpm $SHLIB_LIST"
7897 cf_add_libs="$TEST_LIBS"
7900 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7902 for cf_add_1lib in $cf_add_0lib; do
7903 for cf_add_2lib in $cf_add_libs; do
7904 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7909 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7911 TEST_LIBS="$cf_add_libs"
7913 cf_add_libs="$PRIVATE_LIBS"
7916 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7918 for cf_add_1lib in $cf_add_0lib; do
7919 for cf_add_2lib in $cf_add_libs; do
7920 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7925 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7927 PRIVATE_LIBS="$cf_add_libs"
7931 cat >>confdefs.h <<\EOF
7932 #define HAVE_LIBGPM 1
7935 echo "$as_me:7935: checking for Gpm_Wgetch in -lgpm" >&5
7936 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7937 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 ac_check_lib_save_LIBS=$LIBS
7942 cat >"conftest.$ac_ext" <<_ACEOF
7943 #line 7943 "configure"
7944 #include "confdefs.h"
7946 /* Override any gcc2 internal prototype to avoid an error. */
7950 /* We use char because int might match the return type of a gcc2
7951 builtin and then its argument prototype would still apply. */
7961 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7962 if { (eval echo "$as_me:7962: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>&5
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 (exit "$ac_status"); } &&
7967 { ac_try='test -s "conftest$ac_exeext"'
7968 { (eval echo "$as_me:7968: \"$ac_try\"") >&5
7971 echo "$as_me:7971: \$? = $ac_status" >&5
7972 (exit "$ac_status"); }; }; then
7973 ac_cv_lib_gpm_Gpm_Wgetch=yes
7975 echo "$as_me: failed program was:" >&5
7976 cat "conftest.$ac_ext" >&5
7977 ac_cv_lib_gpm_Gpm_Wgetch=no
7979 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7980 LIBS=$ac_check_lib_save_LIBS
7982 echo "$as_me:7982: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7983 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7984 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7986 echo "$as_me:7986: checking if GPM is weakly bound to curses library" >&5
7987 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7988 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 cf_cv_check_gpm_wgetch=unknown
7993 if test "$cross_compiling" != yes ; then
7995 cat >conftest.$ac_ext <<CF_EOF
8000 ${cf_cv_main_return:-return}(0);
8004 cf_save_LIBS="$LIBS"
8005 # This only works if we can look at the symbol table. If a shared
8006 # library is stripped for install, we cannot use that. So we're forced
8007 # to rely on the static library, noting that some packagers may not
8009 LIBS="-static -lgpm -dynamic $LIBS"
8010 if { (eval echo "$as_me:8010: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>&5
8013 echo "$as_me:8013: \$? = $ac_status" >&5
8014 (exit "$ac_status"); } ; then
8015 if { (eval echo "$as_me:8015: \"$ac_link\"") >&5
8016 (eval $ac_link) 2>&5
8018 echo "$as_me:8018: \$? = $ac_status" >&5
8019 (exit "$ac_status"); } ; then
8020 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
8021 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
8022 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
8026 LIBS="$cf_save_LIBS"
8030 echo "$as_me:8030: result: $cf_cv_check_gpm_wgetch" >&5
8031 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
8033 if test "$cf_cv_check_gpm_wgetch" != yes ; then
8034 { echo "$as_me:8034: WARNING: GPM library is already linked with curses - read the FAQ" >&5
8035 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
8042 echo "$as_me:8042: checking if you want to use PCRE2 for regular-expressions" >&5
8043 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
8045 # Check whether --with-pcre2 or --without-pcre2 was given.
8046 if test "${with_pcre2+set}" = set; then
8047 withval="$with_pcre2"
8050 test -z "$with_pcre2" && with_pcre2=no
8051 echo "$as_me:8051: result: $with_pcre2" >&5
8052 echo "${ECHO_T}$with_pcre2" >&6
8054 if test "x$with_pcre2" != xno ; then
8056 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
8059 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
8060 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
8062 echo "${as_me:-configure}:8062: testing found package $cf_with_pcre2 ..." 1>&5
8064 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
8065 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
8066 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
8068 echo "${as_me:-configure}:8068: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8070 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
8072 echo "${as_me:-configure}:8072: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
8077 cf_new_extra_cppflags=
8079 for cf_add_cflags in $cf_pkgconfig_incs
8081 case "$cf_fix_cppflags" in
8083 case "$cf_add_cflags" in
8084 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8085 case "$cf_add_cflags" in
8087 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8089 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8090 && test -z "${cf_tst_cflags}" \
8091 && cf_fix_cppflags=yes
8093 if test "$cf_fix_cppflags" = yes ; then
8095 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8096 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8099 elif test "${cf_tst_cflags}" = "\"'" ; then
8101 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8102 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8112 case "$cf_add_cflags" in
8114 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8116 CPPFLAGS=`echo "$CPPFLAGS" | \
8117 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8118 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8123 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8124 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8131 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8132 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8139 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8140 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8142 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8144 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8145 && test -z "${cf_tst_cflags}" \
8146 && cf_fix_cppflags=no
8151 if test -n "$cf_new_cflags" ; then
8153 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8154 CFLAGS="${CFLAGS}$cf_new_cflags"
8158 if test -n "$cf_new_cppflags" ; then
8160 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8161 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8165 if test -n "$cf_new_extra_cppflags" ; then
8167 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8168 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8175 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8177 for cf_add_1lib in $cf_add_0lib; do
8178 for cf_add_2lib in $cf_add_libs; do
8179 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8184 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8188 cf_with_pcre2_ok=yes; break
8196 cf_with_pcre2_ok=yes || { { echo "$as_me:8196: error: Cannot find PCRE2 library" >&5
8197 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
8198 { (exit 1); exit 1; }; }
8200 cat >>confdefs.h <<\EOF
8201 #define HAVE_LIB_PCRE2 1
8204 # if pkgconfig gave no results, look for the libraries directly
8206 (*pcre2-posix*|*pcreposix*)
8209 echo "$as_me:8209: checking for regcomp in -lpcre2-posix" >&5
8210 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
8211 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 ac_check_lib_save_LIBS=$LIBS
8215 LIBS="-lpcre2-posix $LIBS"
8216 cat >"conftest.$ac_ext" <<_ACEOF
8217 #line 8217 "configure"
8218 #include "confdefs.h"
8220 /* Override any gcc2 internal prototype to avoid an error. */
8224 /* We use char because int might match the return type of a gcc2
8225 builtin and then its argument prototype would still apply. */
8235 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8236 if { (eval echo "$as_me:8236: \"$ac_link\"") >&5
8237 (eval $ac_link) 2>&5
8239 echo "$as_me:8239: \$? = $ac_status" >&5
8240 (exit "$ac_status"); } &&
8241 { ac_try='test -s "conftest$ac_exeext"'
8242 { (eval echo "$as_me:8242: \"$ac_try\"") >&5
8245 echo "$as_me:8245: \$? = $ac_status" >&5
8246 (exit "$ac_status"); }; }; then
8247 ac_cv_lib_pcre2_posix_regcomp=yes
8249 echo "$as_me: failed program was:" >&5
8250 cat "conftest.$ac_ext" >&5
8251 ac_cv_lib_pcre2_posix_regcomp=no
8253 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8254 LIBS=$ac_check_lib_save_LIBS
8256 echo "$as_me:8256: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
8257 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
8258 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
8263 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8265 for cf_add_1lib in $cf_add_0lib; do
8266 for cf_add_2lib in $cf_add_libs; do
8267 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8272 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8277 echo "$as_me:8277: checking for regcomp in -lpcreposix" >&5
8278 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
8279 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-lpcreposix $LIBS"
8284 cat >"conftest.$ac_ext" <<_ACEOF
8285 #line 8285 "configure"
8286 #include "confdefs.h"
8288 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8303 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8304 if { (eval echo "$as_me:8304: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8307 echo "$as_me:8307: \$? = $ac_status" >&5
8308 (exit "$ac_status"); } &&
8309 { ac_try='test -s "conftest$ac_exeext"'
8310 { (eval echo "$as_me:8310: \"$ac_try\"") >&5
8313 echo "$as_me:8313: \$? = $ac_status" >&5
8314 (exit "$ac_status"); }; }; then
8315 ac_cv_lib_pcreposix_regcomp=yes
8317 echo "$as_me: failed program was:" >&5
8318 cat "conftest.$ac_ext" >&5
8319 ac_cv_lib_pcreposix_regcomp=no
8321 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8322 LIBS=$ac_check_lib_save_LIBS
8324 echo "$as_me:8324: result: $ac_cv_lib_pcreposix_regcomp" >&5
8325 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
8326 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
8331 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8333 for cf_add_1lib in $cf_add_0lib; do
8334 for cf_add_2lib in $cf_add_libs; do
8335 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8340 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8345 { { echo "$as_me:8345: error: Cannot find PCRE2 POSIX library" >&5
8346 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
8347 { (exit 1); exit 1; }; }
8355 # either way, check for the library header files
8357 for ac_header in pcre2posix.h pcreposix.h
8359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8360 echo "$as_me:8360: checking for $ac_header" >&5
8361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >"conftest.$ac_ext" <<_ACEOF
8366 #line 8366 "configure"
8367 #include "confdefs.h"
8368 #include <$ac_header>
8370 if { (eval echo "$as_me:8370: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8371 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8373 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8375 cat conftest.err >&5
8376 echo "$as_me:8376: \$? = $ac_status" >&5
8377 (exit "$ac_status"); } >/dev/null; then
8378 if test -s conftest.err; then
8379 ac_cpp_err=$ac_c_preproc_warn_flag
8386 if test -z "$ac_cpp_err"; then
8387 eval "$as_ac_Header=yes"
8389 echo "$as_me: failed program was:" >&5
8390 cat "conftest.$ac_ext" >&5
8391 eval "$as_ac_Header=no"
8393 rm -f conftest.err "conftest.$ac_ext"
8395 echo "$as_me:8395: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8396 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8397 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8398 cat >>confdefs.h <<EOF
8399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8405 for ac_func in PCRE2regcomp
8407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8408 echo "$as_me:8408: checking for $ac_func" >&5
8409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8410 if eval "test \"\${$as_ac_var+set}\" = set"; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 cat >"conftest.$ac_ext" <<_ACEOF
8414 #line 8414 "configure"
8415 #include "confdefs.h"
8416 #define $ac_func autoconf_temporary
8417 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8426 char $ac_func (void);
8432 /* The GNU C library defines stubs for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
8435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8436 #error found stub for $ac_func
8444 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8445 if { (eval echo "$as_me:8445: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>&5
8448 echo "$as_me:8448: \$? = $ac_status" >&5
8449 (exit "$ac_status"); } &&
8450 { ac_try='test -s "conftest$ac_exeext"'
8451 { (eval echo "$as_me:8451: \"$ac_try\"") >&5
8454 echo "$as_me:8454: \$? = $ac_status" >&5
8455 (exit "$ac_status"); }; }; then
8456 eval "$as_ac_var=yes"
8458 echo "$as_me: failed program was:" >&5
8459 cat "conftest.$ac_ext" >&5
8460 eval "$as_ac_var=no"
8462 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8464 echo "$as_me:8464: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8465 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8466 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8467 cat >>confdefs.h <<EOF
8468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8476 # not everyone has "test -c"
8477 if test -c /dev/sysmouse 2>/dev/null ; then
8478 echo "$as_me:8478: checking if you want to use sysmouse" >&5
8479 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8481 # Check whether --with-sysmouse or --without-sysmouse was given.
8482 if test "${with_sysmouse+set}" = set; then
8483 withval="$with_sysmouse"
8484 cf_with_sysmouse=$withval
8486 cf_with_sysmouse=maybe
8488 if test "$cf_with_sysmouse" != no ; then
8489 cat >"conftest.$ac_ext" <<_ACEOF
8490 #line 8490 "configure"
8491 #include "confdefs.h"
8493 #include <osreldate.h>
8494 #if (__FreeBSD_version >= 400017)
8495 #include <sys/consio.h>
8496 #include <sys/fbio.h>
8498 #include <machine/console.h>
8505 struct mouse_info the_mouse;
8506 ioctl(0, CONS_MOUSECTL, &the_mouse);
8512 rm -f "conftest.$ac_objext"
8513 if { (eval echo "$as_me:8513: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>&5
8516 echo "$as_me:8516: \$? = $ac_status" >&5
8517 (exit "$ac_status"); } &&
8518 { ac_try='test -s "conftest.$ac_objext"'
8519 { (eval echo "$as_me:8519: \"$ac_try\"") >&5
8522 echo "$as_me:8522: \$? = $ac_status" >&5
8523 (exit "$ac_status"); }; }; then
8524 cf_with_sysmouse=yes
8526 echo "$as_me: failed program was:" >&5
8527 cat "conftest.$ac_ext" >&5
8530 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8532 echo "$as_me:8532: result: $cf_with_sysmouse" >&5
8533 echo "${ECHO_T}$cf_with_sysmouse" >&6
8534 test "$cf_with_sysmouse" = yes &&
8535 cat >>confdefs.h <<\EOF
8536 #define USE_SYSMOUSE 1
8541 # pretend that ncurses==ncursesw==ncursest
8542 echo "$as_me:8542: checking if you want to disable library suffixes" >&5
8543 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8545 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8546 if test "${enable_lib_suffixes+set}" = set; then
8547 enableval="$enable_lib_suffixes"
8548 test "$enableval" != no && enableval=yes
8549 if test "$enableval" != "yes" ; then
8550 disable_lib_suffixes=yes
8552 disable_lib_suffixes=no
8556 disable_lib_suffixes=no
8559 echo "$as_me:8559: result: $disable_lib_suffixes" >&5
8560 echo "${ECHO_T}$disable_lib_suffixes" >&6
8562 ### If we're building with rpath, try to link non-standard libs that way too.
8563 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8565 echo "$as_me:8565: checking if rpath-hack should be disabled" >&5
8566 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8568 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8569 if test "${enable_rpath_hack+set}" = set; then
8570 enableval="$enable_rpath_hack"
8571 test "$enableval" != no && enableval=yes
8572 if test "$enableval" != "yes" ; then
8573 enable_rpath_hack=no
8575 enable_rpath_hack=yes
8579 enable_rpath_hack=yes
8582 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8583 echo "$as_me:8583: result: $cf_disable_rpath_hack" >&5
8584 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8586 if test "$enable_rpath_hack" = yes ; then
8588 echo "$as_me:8588: checking for updated LDFLAGS" >&5
8589 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8590 if test -n "$LD_RPATH_OPT" ; then
8591 echo "$as_me:8591: result: maybe" >&5
8592 echo "${ECHO_T}maybe" >&6
8596 # Extract the first word of "$ac_prog", so it can be a program name with args.
8597 set dummy $ac_prog; ac_word=$2
8598 echo "$as_me:8598: checking for $ac_word" >&5
8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8600 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 if test -n "$cf_ldd_prog"; then
8604 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8606 ac_save_IFS=$IFS; IFS=$ac_path_separator
8608 for ac_dir in $ac_dummy; do
8610 test -z "$ac_dir" && ac_dir=.
8611 $as_executable_p "$ac_dir/$ac_word" || continue
8612 ac_cv_prog_cf_ldd_prog="$ac_prog"
8613 echo "$as_me:8613: found $ac_dir/$ac_word" >&5
8619 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8620 if test -n "$cf_ldd_prog"; then
8621 echo "$as_me:8621: result: $cf_ldd_prog" >&5
8622 echo "${ECHO_T}$cf_ldd_prog" >&6
8624 echo "$as_me:8624: result: no" >&5
8625 echo "${ECHO_T}no" >&6
8628 test -n "$cf_ldd_prog" && break
8630 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8632 cf_rpath_list="/usr/lib /lib"
8633 if test "$cf_ldd_prog" != no
8637 cat >"conftest.$ac_ext" <<_ACEOF
8638 #line 8638 "configure"
8639 #include "confdefs.h"
8649 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8650 if { (eval echo "$as_me:8650: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>&5
8653 echo "$as_me:8653: \$? = $ac_status" >&5
8654 (exit "$ac_status"); } &&
8655 { ac_try='test -s "conftest$ac_exeext"'
8656 { (eval echo "$as_me:8656: \"$ac_try\"") >&5
8659 echo "$as_me:8659: \$? = $ac_status" >&5
8660 (exit "$ac_status"); }; }; then
8661 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8662 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8664 echo "$as_me: failed program was:" >&5
8665 cat "conftest.$ac_ext" >&5
8667 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8669 # If we passed the link-test, but get a "not found" on a given library,
8670 # this could be due to inept reconfiguration of gcc to make it only
8671 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8672 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8673 # /usr/local libraries.
8674 if test -n "$cf_rpath_oops"
8676 for cf_rpath_src in $cf_rpath_oops
8678 for cf_rpath_dir in \
8683 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8685 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8687 echo "${as_me:-configure}:8687: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8689 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8697 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8699 echo "${as_me:-configure}:8699: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8701 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8703 echo "${as_me:-configure}:8703: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8706 for cf_rpath_src in $LDFLAGS
8708 case "$cf_rpath_src" in
8711 # check if this refers to a directory which we will ignore
8713 if test -n "$cf_rpath_list"
8715 for cf_rpath_item in $cf_rpath_list
8717 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8725 if test "$cf_rpath_skip" = no
8727 # transform the option
8728 if test "$LD_RPATH_OPT" = "-R " ; then
8729 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8731 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8734 # if we have not already added this, add it now
8735 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8736 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8738 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8740 echo "${as_me:-configure}:8740: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8742 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8747 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8749 LDFLAGS=$cf_rpath_dst
8751 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8753 echo "${as_me:-configure}:8753: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8755 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8757 echo "${as_me:-configure}:8757: testing ...checking LIBS $LIBS ..." 1>&5
8760 for cf_rpath_src in $LIBS
8762 case "$cf_rpath_src" in
8765 # check if this refers to a directory which we will ignore
8767 if test -n "$cf_rpath_list"
8769 for cf_rpath_item in $cf_rpath_list
8771 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8779 if test "$cf_rpath_skip" = no
8781 # transform the option
8782 if test "$LD_RPATH_OPT" = "-R " ; then
8783 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8785 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8788 # if we have not already added this, add it now
8789 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8790 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8792 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8794 echo "${as_me:-configure}:8794: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8796 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8801 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8805 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8807 echo "${as_me:-configure}:8807: testing ...checked LIBS $LIBS ..." 1>&5
8809 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8811 echo "${as_me:-configure}:8811: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8814 echo "$as_me:8814: result: no" >&5
8815 echo "${ECHO_T}no" >&6
8822 ### Depending on the system, someone may use rpath to build ncurses but not
8823 # want users of the package to rely upon that feature. Give those people an
8824 # option to suppress that detail from EXTRA_LDFLAGS.
8825 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8826 if test -n "$EXTRA_PKG_LDFLAGS"
8828 echo "$as_me:8828: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8829 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8831 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8832 if test "${enable_pkg_ldflags+set}" = set; then
8833 enableval="$enable_pkg_ldflags"
8834 test "$enableval" != no && enableval=yes
8835 if test "$enableval" != "yes" ; then
8836 disable_pkg_ldflags=yes
8838 disable_pkg_ldflags=no
8842 disable_pkg_ldflags=no
8845 echo "$as_me:8845: result: $disable_pkg_ldflags" >&5
8846 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8847 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8850 ###############################################################################
8852 ### use option --with-extra-suffix to append suffix to headers and libraries
8853 echo "$as_me:8853: checking if you wish to append extra suffix to header/library paths" >&5
8854 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8857 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8858 if test "${with_extra_suffix+set}" = set; then
8859 withval="$with_extra_suffix"
8864 EXTRA_SUFFIX=$cf_cv_abi_version
8867 EXTRA_SUFFIX=$withval
8872 echo "$as_me:8872: result: $EXTRA_SUFFIX" >&5
8873 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8875 ### use option --disable-overwrite to leave out the link to -lcurses
8876 echo "$as_me:8876: checking if you wish to install ncurses overwriting curses" >&5
8877 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8879 # Check whether --enable-overwrite or --disable-overwrite was given.
8880 if test "${enable_overwrite+set}" = set; then
8881 enableval="$enable_overwrite"
8882 with_overwrite=$enableval
8884 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8886 echo "$as_me:8886: result: $with_overwrite" >&5
8887 echo "${ECHO_T}$with_overwrite" >&6
8889 echo "$as_me:8889: checking if external terminfo-database is used" >&5
8890 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8892 # Check whether --enable-database or --disable-database was given.
8893 if test "${enable_database+set}" = set; then
8894 enableval="$enable_database"
8895 use_database=$enableval
8899 echo "$as_me:8899: result: $use_database" >&5
8900 echo "${ECHO_T}$use_database" >&6
8904 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8907 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8911 NCURSES_USE_DATABASE=0
8912 if test "$use_database" != no ; then
8913 NCURSES_USE_DATABASE=1
8915 echo "$as_me:8915: checking which terminfo source-file will be installed" >&5
8916 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8918 # Check whether --with-database or --without-database was given.
8919 if test "${with_database+set}" = set; then
8920 withval="$with_database"
8921 TERMINFO_SRC=$withval
8923 echo "$as_me:8923: result: $TERMINFO_SRC" >&5
8924 echo "${ECHO_T}$TERMINFO_SRC" >&6
8926 echo "$as_me:8926: checking whether to use hashed database instead of directory/tree" >&5
8927 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8929 # Check whether --with-hashed-db or --without-hashed-db was given.
8930 if test "${with_hashed_db+set}" = set; then
8931 withval="$with_hashed_db"
8936 echo "$as_me:8936: result: $with_hashed_db" >&5
8937 echo "${ECHO_T}$with_hashed_db" >&6
8942 echo "$as_me:8942: checking for list of fallback descriptions" >&5
8943 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8945 # Check whether --with-fallbacks or --without-fallbacks was given.
8946 if test "${with_fallbacks+set}" = set; then
8947 withval="$with_fallbacks"
8948 with_fallback=$withval
8952 echo "$as_me:8952: result: $with_fallback" >&5
8953 echo "${ECHO_T}$with_fallback" >&6
8955 case ".$with_fallback" in
8960 { echo "$as_me:8960: WARNING: expected a list of terminal descriptions" >&5
8961 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8964 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8968 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8969 # tree for generating the terminal descriptions that will be compiled into the
8970 # library. If your toolchain is old, it may not handle current terminal
8971 # databases. Use configure-options to point to the tools which will be used,
8972 # rather than the first ones found on the $PATH.
8973 if test -n "$ac_tool_prefix"; then
8974 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8975 set dummy ${ac_tool_prefix}tic; ac_word=$2
8976 echo "$as_me:8976: checking for $ac_word" >&5
8977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8978 if test "${ac_cv_prog_TIC+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 if test -n "$TIC"; then
8982 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8984 ac_save_IFS=$IFS; IFS=$ac_path_separator
8986 for ac_dir in $ac_dummy; do
8988 test -z "$ac_dir" && ac_dir=.
8989 $as_executable_p "$ac_dir/$ac_word" || continue
8990 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8991 echo "$as_me:8991: found $ac_dir/$ac_word" >&5
8998 if test -n "$TIC"; then
8999 echo "$as_me:8999: result: $TIC" >&5
9000 echo "${ECHO_T}$TIC" >&6
9002 echo "$as_me:9002: result: no" >&5
9003 echo "${ECHO_T}no" >&6
9007 if test -z "$ac_cv_prog_TIC"; then
9009 # Extract the first word of "tic", so it can be a program name with args.
9010 set dummy tic; ac_word=$2
9011 echo "$as_me:9011: checking for $ac_word" >&5
9012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9013 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 if test -n "$ac_ct_TIC"; then
9017 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
9019 ac_save_IFS=$IFS; IFS=$ac_path_separator
9021 for ac_dir in $ac_dummy; do
9023 test -z "$ac_dir" && ac_dir=.
9024 $as_executable_p "$ac_dir/$ac_word" || continue
9025 ac_cv_prog_ac_ct_TIC="tic"
9026 echo "$as_me:9026: found $ac_dir/$ac_word" >&5
9032 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
9033 if test -n "$ac_ct_TIC"; then
9034 echo "$as_me:9034: result: $ac_ct_TIC" >&5
9035 echo "${ECHO_T}$ac_ct_TIC" >&6
9037 echo "$as_me:9037: result: no" >&5
9038 echo "${ECHO_T}no" >&6
9043 TIC="$ac_cv_prog_TIC"
9046 if test -n "$ac_tool_prefix"; then
9047 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
9048 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
9049 echo "$as_me:9049: checking for $ac_word" >&5
9050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9051 if test "${ac_cv_prog_INFOCMP+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 if test -n "$INFOCMP"; then
9055 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
9057 ac_save_IFS=$IFS; IFS=$ac_path_separator
9059 for ac_dir in $ac_dummy; do
9061 test -z "$ac_dir" && ac_dir=.
9062 $as_executable_p "$ac_dir/$ac_word" || continue
9063 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
9064 echo "$as_me:9064: found $ac_dir/$ac_word" >&5
9070 INFOCMP=$ac_cv_prog_INFOCMP
9071 if test -n "$INFOCMP"; then
9072 echo "$as_me:9072: result: $INFOCMP" >&5
9073 echo "${ECHO_T}$INFOCMP" >&6
9075 echo "$as_me:9075: result: no" >&5
9076 echo "${ECHO_T}no" >&6
9080 if test -z "$ac_cv_prog_INFOCMP"; then
9081 ac_ct_INFOCMP=$INFOCMP
9082 # Extract the first word of "infocmp", so it can be a program name with args.
9083 set dummy infocmp; ac_word=$2
9084 echo "$as_me:9084: checking for $ac_word" >&5
9085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9086 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 if test -n "$ac_ct_INFOCMP"; then
9090 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
9092 ac_save_IFS=$IFS; IFS=$ac_path_separator
9094 for ac_dir in $ac_dummy; do
9096 test -z "$ac_dir" && ac_dir=.
9097 $as_executable_p "$ac_dir/$ac_word" || continue
9098 ac_cv_prog_ac_ct_INFOCMP="infocmp"
9099 echo "$as_me:9099: found $ac_dir/$ac_word" >&5
9105 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
9106 if test -n "$ac_ct_INFOCMP"; then
9107 echo "$as_me:9107: result: $ac_ct_INFOCMP" >&5
9108 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
9110 echo "$as_me:9110: result: no" >&5
9111 echo "${ECHO_T}no" >&6
9114 INFOCMP=$ac_ct_INFOCMP
9116 INFOCMP="$ac_cv_prog_INFOCMP"
9119 if test -n "$FALLBACK_LIST"
9122 # Check whether --with-tic-path or --without-tic-path was given.
9123 if test "${with_tic_path+set}" = set; then
9124 withval="$with_tic_path"
9125 echo "$as_me:9125: checking for tic program for fallbacks" >&5
9126 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
9128 echo "$as_me:9128: result: $TIC" >&5
9129 echo "${ECHO_T}$TIC" >&6
9131 if test "x$prefix" != xNONE; then
9132 cf_path_syntax="$prefix"
9134 cf_path_syntax="$ac_default_prefix"
9142 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9144 (.\$\{*prefix\}*|.\$\{*dir\}*)
9148 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9153 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9156 { { echo "$as_me:9156: error: expected a pathname, not \"$TIC\"" >&5
9157 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
9158 { (exit 1); exit 1; }; }
9164 test -z "$TIC" && TIC="tic"
9165 for ac_prog in $TIC tic
9167 # Extract the first word of "$ac_prog", so it can be a program name with args.
9168 set dummy $ac_prog; ac_word=$2
9169 echo "$as_me:9169: checking for $ac_word" >&5
9170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9171 if test "${ac_cv_path_TIC+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9179 ac_save_IFS=$IFS; IFS=$ac_path_separator
9180 ac_dummy="$PATH:/usr/local/ncurses/bin"
9181 for ac_dir in $ac_dummy; do
9183 test -z "$ac_dir" && ac_dir=.
9184 if $as_executable_p "$ac_dir/$ac_word"; then
9185 ac_cv_path_TIC="$ac_dir/$ac_word"
9186 echo "$as_me:9186: found $ac_dir/$ac_word" >&5
9196 if test -n "$TIC"; then
9197 echo "$as_me:9197: result: $TIC" >&5
9198 echo "${ECHO_T}$TIC" >&6
9200 echo "$as_me:9200: result: no" >&5
9201 echo "${ECHO_T}no" >&6
9204 test -n "$TIC" && break
9206 test -n "$TIC" || TIC="$TIC"
9210 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9211 for cf_temp in $ac_cv_path_TIC
9213 if test -z "$cf_path_prog" ; then
9214 if test "$with_full_paths" = yes ; then
9216 if test "x$prefix" != xNONE; then
9217 cf_path_syntax="$prefix"
9219 cf_path_syntax="$ac_default_prefix"
9227 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9229 (.\$\{*prefix\}*|.\$\{*dir\}*)
9230 eval cf_temp="$cf_temp"
9233 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9238 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9245 cf_path_prog="$cf_temp"
9247 cf_path_prog="`basename "$cf_temp"`"
9249 elif test -z "$cf_path_args" ; then
9250 cf_path_args="$cf_temp"
9252 cf_path_args="$cf_path_args $cf_temp"
9257 if test -n "$cf_path_prog" ; then
9259 echo "${as_me:-configure}:9259: testing defining path for ${cf_path_prog} ..." 1>&5
9261 cat >>confdefs.h <<EOF
9262 #define TIC_PATH "$cf_path_prog"
9265 test -n "$cf_path_args" &&
9266 cat >>confdefs.h <<EOF
9267 #define TIC_ARGS "$cf_path_args"
9274 { echo "$as_me:9274: WARNING: no tic program found for fallbacks" >&5
9275 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
9280 # Check whether --with-infocmp-path or --without-infocmp-path was given.
9281 if test "${with_infocmp_path+set}" = set; then
9282 withval="$with_infocmp_path"
9283 echo "$as_me:9283: checking for infocmp program for fallbacks" >&5
9284 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
9286 echo "$as_me:9286: result: $INFOCMP" >&5
9287 echo "${ECHO_T}$INFOCMP" >&6
9289 if test "x$prefix" != xNONE; then
9290 cf_path_syntax="$prefix"
9292 cf_path_syntax="$ac_default_prefix"
9300 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9302 (.\$\{*prefix\}*|.\$\{*dir\}*)
9303 eval INFOCMP="$INFOCMP"
9306 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9311 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9314 { { echo "$as_me:9314: error: expected a pathname, not \"$INFOCMP\"" >&5
9315 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
9316 { (exit 1); exit 1; }; }
9322 test -z "$INFOCMP" && INFOCMP="infocmp"
9323 for ac_prog in $INFOCMP infocmp
9325 # Extract the first word of "$ac_prog", so it can be a program name with args.
9326 set dummy $ac_prog; ac_word=$2
9327 echo "$as_me:9327: checking for $ac_word" >&5
9328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9329 if test "${ac_cv_path_INFOCMP+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
9337 ac_save_IFS=$IFS; IFS=$ac_path_separator
9338 ac_dummy="$PATH:/usr/local/ncurses/bin"
9339 for ac_dir in $ac_dummy; do
9341 test -z "$ac_dir" && ac_dir=.
9342 if $as_executable_p "$ac_dir/$ac_word"; then
9343 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
9344 echo "$as_me:9344: found $ac_dir/$ac_word" >&5
9352 INFOCMP=$ac_cv_path_INFOCMP
9354 if test -n "$INFOCMP"; then
9355 echo "$as_me:9355: result: $INFOCMP" >&5
9356 echo "${ECHO_T}$INFOCMP" >&6
9358 echo "$as_me:9358: result: no" >&5
9359 echo "${ECHO_T}no" >&6
9362 test -n "$INFOCMP" && break
9364 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
9368 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9369 for cf_temp in $ac_cv_path_INFOCMP
9371 if test -z "$cf_path_prog" ; then
9372 if test "$with_full_paths" = yes ; then
9374 if test "x$prefix" != xNONE; then
9375 cf_path_syntax="$prefix"
9377 cf_path_syntax="$ac_default_prefix"
9385 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9387 (.\$\{*prefix\}*|.\$\{*dir\}*)
9388 eval cf_temp="$cf_temp"
9391 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9396 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9403 cf_path_prog="$cf_temp"
9405 cf_path_prog="`basename "$cf_temp"`"
9407 elif test -z "$cf_path_args" ; then
9408 cf_path_args="$cf_temp"
9410 cf_path_args="$cf_path_args $cf_temp"
9415 if test -n "$cf_path_prog" ; then
9417 echo "${as_me:-configure}:9417: testing defining path for ${cf_path_prog} ..." 1>&5
9419 cat >>confdefs.h <<EOF
9420 #define INFOCMP_PATH "$cf_path_prog"
9423 test -n "$cf_path_args" &&
9424 cat >>confdefs.h <<EOF
9425 #define INFOCMP_ARGS "$cf_path_args"
9430 if test -z "$INFOCMP"
9432 { echo "$as_me:9432: WARNING: no infocmp program found for fallbacks" >&5
9433 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
9438 test -z "$TIC" && FALLBACK_LIST=
9439 test -z "$INFOCMP" && FALLBACK_LIST=
9440 if test -z "$FALLBACK_LIST"
9442 { echo "$as_me:9442: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
9443 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
9448 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
9450 echo "$as_me:9450: checking if you want modern xterm or antique" >&5
9451 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
9453 # Check whether --with-xterm-new or --without-xterm-new was given.
9454 if test "${with_xterm_new+set}" = set; then
9455 withval="$with_xterm_new"
9456 with_xterm_new=$withval
9460 case "$with_xterm_new" in
9461 (no) with_xterm_new=xterm-old;;
9462 (*) with_xterm_new=xterm-new;;
9464 echo "$as_me:9464: result: $with_xterm_new" >&5
9465 echo "${ECHO_T}$with_xterm_new" >&6
9466 WHICH_XTERM=$with_xterm_new
9469 (*linux-gnu|*cygwin|*mingw32|*msys)
9477 echo "$as_me:9477: checking if xterm backspace sends BS or DEL" >&5
9478 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9480 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9481 if test "${with_xterm_kbs+set}" = set; then
9482 withval="$with_xterm_kbs"
9483 with_xterm_kbs=$withval
9487 case x$with_xterm_kbs in
9488 (xyes|xno|xBS|xbs|x8)
9495 with_xterm_kbs=$want_xterm_kbs
9498 with_xterm_kbs=$withval
9501 echo "$as_me:9501: result: $with_xterm_kbs" >&5
9502 echo "${ECHO_T}$with_xterm_kbs" >&6
9503 XTERM_KBS=$with_xterm_kbs
9505 if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
9507 { echo "$as_me:9507: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&5
9508 echo "$as_me: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&2;}
9512 if test "$use_database" = no ; then
9513 TERMINFO="${datadir}/terminfo"
9517 echo "$as_me:9517: checking for list of terminfo directories" >&5
9518 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9520 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9521 if test "${with_terminfo_dirs+set}" = set; then
9522 withval="$with_terminfo_dirs"
9525 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9527 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9529 for cf_src_path in $withval
9532 if test "x$prefix" != xNONE; then
9533 cf_path_syntax="$prefix"
9535 cf_path_syntax="$ac_default_prefix"
9538 case ".$cf_src_path" in
9543 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9545 (.\$\{*prefix\}*|.\$\{*dir\}*)
9546 eval cf_src_path="$cf_src_path"
9547 case ".$cf_src_path" in
9549 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9554 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9557 { { echo "$as_me:9557: error: expected a pathname, not \"$cf_src_path\"" >&5
9558 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9559 { (exit 1); exit 1; }; }
9563 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9564 cf_dst_path="${cf_dst_path}${cf_src_path}"
9568 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9569 # so we have to check/work around. We do prefer the result of "eval"...
9570 eval cf_dst_eval="$cf_dst_path"
9571 case "x$cf_dst_eval" in
9573 TERMINFO_DIRS=$cf_dst_path
9576 TERMINFO_DIRS="$cf_dst_eval"
9580 echo "$as_me:9580: result: $TERMINFO_DIRS" >&5
9581 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9582 test -n "$TERMINFO_DIRS" &&
9583 cat >>confdefs.h <<EOF
9584 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9587 case "x$TERMINFO" in
9589 { echo "$as_me:9589: WARNING: ignoring non-directory/file TERMINFO value" >&5
9590 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9595 echo "$as_me:9595: checking for default terminfo directory" >&5
9596 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9598 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9599 if test "${with_default_terminfo_dir+set}" = set; then
9600 withval="$with_default_terminfo_dir"
9603 withval="${TERMINFO:-${datadir}/terminfo}"
9604 fi; if test -n "${datadir}/terminfo" ; then
9606 if test "x$prefix" != xNONE; then
9607 cf_path_syntax="$prefix"
9609 cf_path_syntax="$ac_default_prefix"
9617 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9619 (.\$\{*prefix\}*|.\$\{*dir\}*)
9620 eval withval="$withval"
9623 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9628 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9631 { { echo "$as_me:9631: error: expected a pathname, not \"$withval\"" >&5
9632 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9633 { (exit 1); exit 1; }; }
9638 eval TERMINFO="$withval"
9640 echo "$as_me:9640: result: $TERMINFO" >&5
9641 echo "${ECHO_T}$TERMINFO" >&6
9643 cat >>confdefs.h <<EOF
9644 #define TERMINFO "$TERMINFO"
9649 ### use option --disable-big-core to make tic run on small machines
9650 ### We need 4Mb, check if we can allocate 50% more than that.
9651 echo "$as_me:9651: checking if big-core option selected" >&5
9652 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9654 # Check whether --enable-big-core or --disable-big-core was given.
9655 if test "${enable_big_core+set}" = set; then
9656 enableval="$enable_big_core"
9657 with_big_core=$enableval
9659 if test "$cross_compiling" = yes; then
9662 cat >"conftest.$ac_ext" <<_ACEOF
9663 #line 9663 "configure"
9664 #include "confdefs.h"
9669 unsigned long n = 6000000L;
9670 char *s = malloc(n);
9673 ${cf_cv_main_return:-return}(s == 0);
9676 rm -f "conftest$ac_exeext"
9677 if { (eval echo "$as_me:9677: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>&5
9680 echo "$as_me:9680: \$? = $ac_status" >&5
9681 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9682 { (eval echo "$as_me:9682: \"$ac_try\"") >&5
9685 echo "$as_me:9685: \$? = $ac_status" >&5
9686 (exit "$ac_status"); }; }; then
9689 echo "$as_me: program exited with status $ac_status" >&5
9690 echo "$as_me: failed program was:" >&5
9691 cat "conftest.$ac_ext" >&5
9694 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9697 echo "$as_me:9697: result: $with_big_core" >&5
9698 echo "${ECHO_T}$with_big_core" >&6
9699 test "x$with_big_core" = "xyes" &&
9700 cat >>confdefs.h <<\EOF
9701 #define HAVE_BIG_CORE 1
9704 ### ISO C only guarantees 512-char strings, we have tables which load faster
9705 ### when constructed using "big" strings. More than the C compiler, the awk
9706 ### program is a limit on most vendor UNIX systems. Check that we can build.
9707 echo "$as_me:9707: checking if big-strings option selected" >&5
9708 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9710 # Check whether --enable-big-strings or --disable-big-strings was given.
9711 if test "${enable_big_strings+set}" = set; then
9712 enableval="$enable_big_strings"
9713 with_big_strings=$enableval
9718 eval with_big_strings=no
9721 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9722 | $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
9723 eval with_big_strings=yes
9725 eval with_big_strings=no
9731 echo "$as_me:9731: result: $with_big_strings" >&5
9732 echo "${ECHO_T}$with_big_strings" >&6
9735 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9737 ### use option --enable-termcap to compile in the termcap fallback support
9738 echo "$as_me:9738: checking if you want termcap-fallback support" >&5
9739 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9741 # Check whether --enable-termcap or --disable-termcap was given.
9742 if test "${enable_termcap+set}" = set; then
9743 enableval="$enable_termcap"
9744 with_termcap=$enableval
9748 echo "$as_me:9748: result: $with_termcap" >&5
9749 echo "${ECHO_T}$with_termcap" >&6
9751 NCURSES_USE_TERMCAP=0
9752 if test "x$with_termcap" != "xyes" ; then
9753 if test "$use_database" = no ; then
9754 if test -z "$with_fallback" ; then
9755 { { echo "$as_me:9755: error: You have disabled the database w/o specifying fallbacks" >&5
9756 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9757 { (exit 1); exit 1; }; }
9761 cat >>confdefs.h <<\EOF
9762 #define PURE_TERMINFO 1
9767 if test "$with_ticlib" != no ; then
9768 { { echo "$as_me:9768: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9769 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9770 { (exit 1); exit 1; }; }
9773 NCURSES_USE_TERMCAP=1
9774 echo "$as_me:9774: checking for list of termcap files" >&5
9775 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9777 # Check whether --with-termpath or --without-termpath was given.
9778 if test "${with_termpath+set}" = set; then
9779 withval="$with_termpath"
9782 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9784 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9786 for cf_src_path in $withval
9789 if test "x$prefix" != xNONE; then
9790 cf_path_syntax="$prefix"
9792 cf_path_syntax="$ac_default_prefix"
9795 case ".$cf_src_path" in
9800 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9802 (.\$\{*prefix\}*|.\$\{*dir\}*)
9803 eval cf_src_path="$cf_src_path"
9804 case ".$cf_src_path" in
9806 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9811 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9814 { { echo "$as_me:9814: error: expected a pathname, not \"$cf_src_path\"" >&5
9815 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9816 { (exit 1); exit 1; }; }
9820 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9821 cf_dst_path="${cf_dst_path}${cf_src_path}"
9825 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9826 # so we have to check/work around. We do prefer the result of "eval"...
9827 eval cf_dst_eval="$cf_dst_path"
9828 case "x$cf_dst_eval" in
9830 TERMPATH=$cf_dst_path
9833 TERMPATH="$cf_dst_eval"
9837 echo "$as_me:9837: result: $TERMPATH" >&5
9838 echo "${ECHO_T}$TERMPATH" >&6
9839 test -n "$TERMPATH" &&
9840 cat >>confdefs.h <<EOF
9841 #define TERMPATH "$TERMPATH"
9844 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9845 echo "$as_me:9845: checking if fast termcap-loader is needed" >&5
9846 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9848 # Check whether --enable-getcap or --disable-getcap was given.
9849 if test "${enable_getcap+set}" = set; then
9850 enableval="$enable_getcap"
9851 with_getcap=$enableval
9855 echo "$as_me:9855: result: $with_getcap" >&5
9856 echo "${ECHO_T}$with_getcap" >&6
9857 test "x$with_getcap" = "xyes" &&
9858 cat >>confdefs.h <<\EOF
9859 #define USE_GETCAP 1
9862 echo "$as_me:9862: checking if translated termcaps will be cached in ~/.terminfo" >&5
9863 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9865 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9866 if test "${enable_getcap_cache+set}" = set; then
9867 enableval="$enable_getcap_cache"
9868 with_getcap_cache=$enableval
9870 with_getcap_cache=no
9872 echo "$as_me:9872: result: $with_getcap_cache" >&5
9873 echo "${ECHO_T}$with_getcap_cache" >&6
9874 test "x$with_getcap_cache" = "xyes" &&
9875 cat >>confdefs.h <<\EOF
9876 #define USE_GETCAP_CACHE 1
9881 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9882 echo "$as_me:9882: checking if ~/.terminfo is wanted" >&5
9883 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9885 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9886 if test "${enable_home_terminfo+set}" = set; then
9887 enableval="$enable_home_terminfo"
9888 with_home_terminfo=$enableval
9890 with_home_terminfo=yes
9892 echo "$as_me:9892: result: $with_home_terminfo" >&5
9893 echo "${ECHO_T}$with_home_terminfo" >&6
9894 test "x$with_home_terminfo" = "xyes" &&
9895 cat >>confdefs.h <<\EOF
9896 #define USE_HOME_TERMINFO 1
9899 echo "$as_me:9899: checking if you want to permit root to use ncurses environment variables" >&5
9900 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9902 # Check whether --enable-root-environ or --disable-root-environ was given.
9903 if test "${enable_root_environ+set}" = set; then
9904 enableval="$enable_root_environ"
9905 with_root_environ=$enableval
9907 with_root_environ=yes
9909 echo "$as_me:9909: result: $with_root_environ" >&5
9910 echo "${ECHO_T}$with_root_environ" >&6
9911 test "x$with_root_environ" = xyes &&
9912 cat >>confdefs.h <<\EOF
9913 #define USE_ROOT_ENVIRON 1
9916 echo "$as_me:9916: checking if you want to permit setuid programs to access all files" >&5
9917 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9919 # Check whether --enable-root-access or --disable-root-access was given.
9920 if test "${enable_root_access+set}" = set; then
9921 enableval="$enable_root_access"
9922 with_root_access=$enableval
9924 with_root_access=yes
9926 echo "$as_me:9926: result: $with_root_access" >&5
9927 echo "${ECHO_T}$with_root_access" >&6
9928 test "x$with_root_access" = xyes &&
9929 cat >>confdefs.h <<\EOF
9930 #define USE_ROOT_ACCESS 1
9933 echo "$as_me:9933: checking if you want to permit setuid use of ncurses environment variables" >&5
9934 echo $ECHO_N "checking if you want to permit setuid use of ncurses environment variables... $ECHO_C" >&6
9936 # Check whether --enable-setuid-environ or --disable-setuid-environ was given.
9937 if test "${enable_setuid_environ+set}" = set; then
9938 enableval="$enable_setuid_environ"
9939 with_setuid_environ=$enableval
9941 with_setuid_environ=$with_root_environ
9943 echo "$as_me:9943: result: $with_setuid_environ" >&5
9944 echo "${ECHO_T}$with_setuid_environ" >&6
9945 test "x$with_setuid_environ" = xyes &&
9946 cat >>confdefs.h <<\EOF
9947 #define USE_SETUID_ENVIRON 1
9950 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9951 ### to reduce storage requirements for the terminfo database.
9957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9958 echo "$as_me:9958: checking for $ac_header" >&5
9959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >"conftest.$ac_ext" <<_ACEOF
9964 #line 9964 "configure"
9965 #include "confdefs.h"
9966 #include <$ac_header>
9968 if { (eval echo "$as_me:9968: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9969 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9971 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9973 cat conftest.err >&5
9974 echo "$as_me:9974: \$? = $ac_status" >&5
9975 (exit "$ac_status"); } >/dev/null; then
9976 if test -s conftest.err; then
9977 ac_cpp_err=$ac_c_preproc_warn_flag
9984 if test -z "$ac_cpp_err"; then
9985 eval "$as_ac_Header=yes"
9987 echo "$as_me: failed program was:" >&5
9988 cat "conftest.$ac_ext" >&5
9989 eval "$as_ac_Header=no"
9991 rm -f conftest.err "conftest.$ac_ext"
9993 echo "$as_me:9993: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9994 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9995 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9996 cat >>confdefs.h <<EOF
9997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10008 echo "$as_me:10008: checking for $ac_func" >&5
10009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10010 if eval "test \"\${$as_ac_var+set}\" = set"; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 cat >"conftest.$ac_ext" <<_ACEOF
10014 #line 10014 "configure"
10015 #include "confdefs.h"
10016 #define $ac_func autoconf_temporary
10017 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10024 /* We use char because int might match the return type of a gcc2
10025 builtin and then its argument prototype would still apply. */
10026 char $ac_func (void);
10032 /* The GNU C library defines stubs for functions which it implements
10033 to always fail with ENOSYS. Some functions are actually named
10034 something starting with __ and the normal name is an alias. */
10035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10036 #error found stub for $ac_func
10039 return $ac_func ();
10044 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10045 if { (eval echo "$as_me:10045: \"$ac_link\"") >&5
10046 (eval $ac_link) 2>&5
10048 echo "$as_me:10048: \$? = $ac_status" >&5
10049 (exit "$ac_status"); } &&
10050 { ac_try='test -s "conftest$ac_exeext"'
10051 { (eval echo "$as_me:10051: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:10054: \$? = $ac_status" >&5
10055 (exit "$ac_status"); }; }; then
10056 eval "$as_ac_var=yes"
10058 echo "$as_me: failed program was:" >&5
10059 cat "conftest.$ac_ext" >&5
10060 eval "$as_ac_var=no"
10062 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10064 echo "$as_me:10064: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10065 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10066 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10067 cat >>confdefs.h <<EOF
10068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10074 if test "$cross_compiling" = yes ; then
10080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10081 echo "$as_me:10081: checking for $ac_func" >&5
10082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10083 if eval "test \"\${$as_ac_var+set}\" = set"; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 cat >"conftest.$ac_ext" <<_ACEOF
10087 #line 10087 "configure"
10088 #include "confdefs.h"
10089 #define $ac_func autoconf_temporary
10090 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10097 /* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */
10099 char $ac_func (void);
10105 /* The GNU C library defines stubs for functions which it implements
10106 to always fail with ENOSYS. Some functions are actually named
10107 something starting with __ and the normal name is an alias. */
10108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10109 #error found stub for $ac_func
10112 return $ac_func ();
10117 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10118 if { (eval echo "$as_me:10118: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>&5
10121 echo "$as_me:10121: \$? = $ac_status" >&5
10122 (exit "$ac_status"); } &&
10123 { ac_try='test -s "conftest$ac_exeext"'
10124 { (eval echo "$as_me:10124: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:10127: \$? = $ac_status" >&5
10128 (exit "$ac_status"); }; }; then
10129 eval "$as_ac_var=yes"
10131 echo "$as_me: failed program was:" >&5
10132 cat "conftest.$ac_ext" >&5
10133 eval "$as_ac_var=no"
10135 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10137 echo "$as_me:10137: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10138 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10139 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10140 cat >>confdefs.h <<EOF
10141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10148 echo "$as_me:10148: checking if link/symlink functions work" >&5
10149 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
10150 if test "${cf_cv_link_funcs+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 for cf_func in link symlink ; do
10156 if test "$cross_compiling" = yes; then
10158 eval 'ac_cv_func_'$cf_func'=error'
10160 cat >"conftest.$ac_ext" <<_ACEOF
10161 #line 10161 "configure"
10162 #include "confdefs.h"
10164 $ac_includes_default
10169 char *src = "conftest.tmp";
10170 char *dst = "conftest.chk";
10171 struct stat src_sb, dst_sb;
10172 FILE *fp = fopen(src, "w");
10173 if (fp == 0) { fail = 3; } else {
10174 fclose(fp); stat(src, &src_sb);
10175 if ($cf_func(src, dst) < 0) {
10177 } else if (stat(dst, &dst_sb) < 0) {
10180 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
10181 if (diff < 0) diff = -diff;
10182 if (diff > 2) fail = 3;
10186 unlink(dst); unlink(src);
10188 remove(dst); remove(src);
10190 ${cf_cv_main_return:-return} (fail);
10194 rm -f "conftest$ac_exeext"
10195 if { (eval echo "$as_me:10195: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>&5
10198 echo "$as_me:10198: \$? = $ac_status" >&5
10199 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10200 { (eval echo "$as_me:10200: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:10203: \$? = $ac_status" >&5
10204 (exit "$ac_status"); }; }; then
10206 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
10207 eval 'ac_cv_func_'$cf_func'=yes'
10209 echo "$as_me: program exited with status $ac_status" >&5
10210 echo "$as_me: failed program was:" >&5
10211 cat "conftest.$ac_ext" >&5
10213 eval 'ac_cv_func_'$cf_func'=no'
10215 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10218 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
10221 echo "$as_me:10221: result: $cf_cv_link_funcs" >&5
10222 echo "${ECHO_T}$cf_cv_link_funcs" >&6
10223 test "$ac_cv_func_link" = yes &&
10224 cat >>confdefs.h <<\EOF
10225 #define HAVE_LINK 1
10228 test "$ac_cv_func_symlink" = yes &&
10229 cat >>confdefs.h <<\EOF
10230 #define HAVE_SYMLINK 1
10238 # soft links (symbolic links) are useful for some systems where hard links do
10239 # not work, or to make it simpler to copy terminfo trees around.
10240 if test "x$ac_cv_func_symlink" = xyes ; then
10241 echo "$as_me:10241: checking if tic should use symbolic links" >&5
10242 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
10244 # Check whether --enable-symlinks or --disable-symlinks was given.
10245 if test "${enable_symlinks+set}" = set; then
10246 enableval="$enable_symlinks"
10247 with_symlinks=$enableval
10251 echo "$as_me:10251: result: $with_symlinks" >&5
10252 echo "${ECHO_T}$with_symlinks" >&6
10255 # If we have hard links and did not choose to use soft links instead, there is
10256 # no reason to make this choice optional - use the hard links.
10257 if test "$with_symlinks" = no ; then
10258 echo "$as_me:10258: checking if tic should use hard links" >&5
10259 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
10260 if test "x$ac_cv_func_link" = xyes ; then
10265 echo "$as_me:10265: result: $with_links" >&5
10266 echo "${ECHO_T}$with_links" >&6
10269 test "x$with_links" = xyes &&
10270 cat >>confdefs.h <<\EOF
10271 #define USE_LINKS 1
10274 test "x$with_symlinks" = xyes &&
10275 cat >>confdefs.h <<\EOF
10276 #define USE_SYMLINKS 1
10279 ### use option --enable-broken-linker to force on use of broken-linker support
10281 echo "$as_me:10281: checking if you want broken-linker support code" >&5
10282 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
10284 # Check whether --enable-broken_linker or --disable-broken_linker was given.
10285 if test "${enable_broken_linker+set}" = set; then
10286 enableval="$enable_broken_linker"
10287 with_broken_linker=$enableval
10289 with_broken_linker=no
10291 echo "$as_me:10291: result: $with_broken_linker" >&5
10292 echo "${ECHO_T}$with_broken_linker" >&6
10294 : "${BROKEN_LINKER:=0}"
10295 if test "x$with_broken_linker" = xyes ; then
10297 cat >>confdefs.h <<\EOF
10298 #define BROKEN_LINKER 1
10304 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
10305 echo "$as_me:10305: checking if tputs should process BSD-style prefix padding" >&5
10306 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
10308 # Check whether --enable-bsdpad or --disable-bsdpad was given.
10309 if test "${enable_bsdpad+set}" = set; then
10310 enableval="$enable_bsdpad"
10311 with_bsdpad=$enableval
10315 echo "$as_me:10315: result: $with_bsdpad" >&5
10316 echo "${ECHO_T}$with_bsdpad" >&6
10317 test "x$with_bsdpad" = xyes &&
10318 cat >>confdefs.h <<\EOF
10319 #define BSD_TPUTS 1
10322 ### use option --enable-widec to turn on use of wide-character support
10323 NCURSES_CH_T=chtype
10327 NCURSES_MBSTATE_T=0
10331 # Check to define _XOPEN_SOURCE "automatically"
10332 CPPFLAGS_before_XOPEN="$CPPFLAGS"
10334 echo "$as_me:10334: checking if the POSIX test-macros are already defined" >&5
10335 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
10336 if test "${cf_cv_posix_visible+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 cat >"conftest.$ac_ext" <<_ACEOF
10341 #line 10341 "configure"
10342 #include "confdefs.h"
10348 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
10349 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
10350 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
10351 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
10352 #error conflicting symbols found
10359 rm -f "conftest.$ac_objext"
10360 if { (eval echo "$as_me:10360: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>&5
10363 echo "$as_me:10363: \$? = $ac_status" >&5
10364 (exit "$ac_status"); } &&
10365 { ac_try='test -s "conftest.$ac_objext"'
10366 { (eval echo "$as_me:10366: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:10369: \$? = $ac_status" >&5
10370 (exit "$ac_status"); }; }; then
10371 cf_cv_posix_visible=no
10373 echo "$as_me: failed program was:" >&5
10374 cat "conftest.$ac_ext" >&5
10375 cf_cv_posix_visible=yes
10377 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10380 echo "$as_me:10380: result: $cf_cv_posix_visible" >&5
10381 echo "${ECHO_T}$cf_cv_posix_visible" >&6
10383 if test "$cf_cv_posix_visible" = no; then
10385 cf_XOPEN_SOURCE=600
10386 cf_POSIX_C_SOURCE=199506L
10391 cf_xopen_source="-D_ALL_SOURCE"
10394 cf_xopen_source="-D_APPLE_C_SOURCE"
10397 cf_xopen_source="-D_DARWIN_C_SOURCE"
10400 (freebsd*|dragonfly*|midnightbsd*)
10401 # 5.x headers associate
10402 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
10403 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
10404 cf_POSIX_C_SOURCE=200112L
10405 cf_XOPEN_SOURCE=600
10406 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10409 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
10412 cf_xopen_source="-D_HPUX_SOURCE"
10415 cf_xopen_source="-D_SGI_SOURCE"
10418 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
10420 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
10422 echo "$as_me:10422: checking if this is the GNU C library" >&5
10423 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
10424 if test "${cf_cv_gnu_library+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 cat >"conftest.$ac_ext" <<_ACEOF
10429 #line 10429 "configure"
10430 #include "confdefs.h"
10431 #include <sys/types.h>
10436 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
10438 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
10441 # error not GNU C library
10447 rm -f "conftest.$ac_objext"
10448 if { (eval echo "$as_me:10448: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>&5
10451 echo "$as_me:10451: \$? = $ac_status" >&5
10452 (exit "$ac_status"); } &&
10453 { ac_try='test -s "conftest.$ac_objext"'
10454 { (eval echo "$as_me:10454: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:10457: \$? = $ac_status" >&5
10458 (exit "$ac_status"); }; }; then
10459 cf_cv_gnu_library=yes
10461 echo "$as_me: failed program was:" >&5
10462 cat "conftest.$ac_ext" >&5
10463 cf_cv_gnu_library=no
10465 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10468 echo "$as_me:10468: result: $cf_cv_gnu_library" >&5
10469 echo "${ECHO_T}$cf_cv_gnu_library" >&6
10471 if test x$cf_cv_gnu_library = xyes; then
10473 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
10474 # was changed to help a little. newlib incorporated the change about 4
10476 echo "$as_me:10476: checking if _DEFAULT_SOURCE can be used as a basis" >&5
10477 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
10478 if test "${cf_cv_gnu_library_219+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 cf_save="$CPPFLAGS"
10484 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10485 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10487 cat >"conftest.$ac_ext" <<_ACEOF
10488 #line 10488 "configure"
10489 #include "confdefs.h"
10490 #include <sys/types.h>
10495 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10497 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10500 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10506 rm -f "conftest.$ac_objext"
10507 if { (eval echo "$as_me:10507: \"$ac_compile\"") >&5
10508 (eval $ac_compile) 2>&5
10510 echo "$as_me:10510: \$? = $ac_status" >&5
10511 (exit "$ac_status"); } &&
10512 { ac_try='test -s "conftest.$ac_objext"'
10513 { (eval echo "$as_me:10513: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10516 echo "$as_me:10516: \$? = $ac_status" >&5
10517 (exit "$ac_status"); }; }; then
10518 cf_cv_gnu_library_219=yes
10520 echo "$as_me: failed program was:" >&5
10521 cat "conftest.$ac_ext" >&5
10522 cf_cv_gnu_library_219=no
10524 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10525 CPPFLAGS="$cf_save"
10528 echo "$as_me:10528: result: $cf_cv_gnu_library_219" >&5
10529 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10531 if test "x$cf_cv_gnu_library_219" = xyes; then
10532 cf_save="$CPPFLAGS"
10533 echo "$as_me:10533: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10534 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10535 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 cf_new_extra_cppflags=
10544 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10546 case "$cf_fix_cppflags" in
10548 case "$cf_add_cflags" in
10549 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10550 case "$cf_add_cflags" in
10552 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10554 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10555 && test -z "${cf_tst_cflags}" \
10556 && cf_fix_cppflags=yes
10558 if test "$cf_fix_cppflags" = yes ; then
10560 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10561 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10564 elif test "${cf_tst_cflags}" = "\"'" ; then
10566 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10567 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10573 case "$CPPFLAGS" in
10577 case "$cf_add_cflags" in
10579 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10581 CPPFLAGS=`echo "$CPPFLAGS" | \
10582 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10583 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10588 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10589 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10596 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10597 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10604 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10605 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10607 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10609 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10610 && test -z "${cf_tst_cflags}" \
10611 && cf_fix_cppflags=no
10616 if test -n "$cf_new_cflags" ; then
10618 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10619 CFLAGS="${CFLAGS}$cf_new_cflags"
10623 if test -n "$cf_new_cppflags" ; then
10625 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10626 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10630 if test -n "$cf_new_extra_cppflags" ; then
10632 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10633 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10637 cat >"conftest.$ac_ext" <<_ACEOF
10638 #line 10638 "configure"
10639 #include "confdefs.h"
10641 #include <limits.h>
10642 #include <sys/types.h>
10648 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10651 # error GNU C library is too old
10657 rm -f "conftest.$ac_objext"
10658 if { (eval echo "$as_me:10658: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10661 echo "$as_me:10661: \$? = $ac_status" >&5
10662 (exit "$ac_status"); } &&
10663 { ac_try='test -s "conftest.$ac_objext"'
10664 { (eval echo "$as_me:10664: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:10667: \$? = $ac_status" >&5
10668 (exit "$ac_status"); }; }; then
10669 cf_cv_gnu_dftsrc_219=yes
10671 echo "$as_me: failed program was:" >&5
10672 cat "conftest.$ac_ext" >&5
10673 cf_cv_gnu_dftsrc_219=no
10675 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10678 echo "$as_me:10678: result: $cf_cv_gnu_dftsrc_219" >&5
10679 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10680 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10682 cf_cv_gnu_dftsrc_219=maybe
10685 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10687 echo "$as_me:10687: checking if we must define _GNU_SOURCE" >&5
10688 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10689 if test "${cf_cv_gnu_source+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 cat >"conftest.$ac_ext" <<_ACEOF
10694 #line 10694 "configure"
10695 #include "confdefs.h"
10696 #include <sys/types.h>
10701 #ifndef _XOPEN_SOURCE
10702 #error expected _XOPEN_SOURCE to be defined
10708 rm -f "conftest.$ac_objext"
10709 if { (eval echo "$as_me:10709: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>&5
10712 echo "$as_me:10712: \$? = $ac_status" >&5
10713 (exit "$ac_status"); } &&
10714 { ac_try='test -s "conftest.$ac_objext"'
10715 { (eval echo "$as_me:10715: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:10718: \$? = $ac_status" >&5
10719 (exit "$ac_status"); }; }; then
10720 cf_cv_gnu_source=no
10722 echo "$as_me: failed program was:" >&5
10723 cat "conftest.$ac_ext" >&5
10724 cf_save="$CPPFLAGS"
10729 cf_new_extra_cppflags=
10731 for cf_add_cflags in -D_GNU_SOURCE
10733 case "$cf_fix_cppflags" in
10735 case "$cf_add_cflags" in
10736 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10737 case "$cf_add_cflags" in
10739 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10741 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10742 && test -z "${cf_tst_cflags}" \
10743 && cf_fix_cppflags=yes
10745 if test "$cf_fix_cppflags" = yes ; then
10747 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10748 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10751 elif test "${cf_tst_cflags}" = "\"'" ; then
10753 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10754 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10760 case "$CPPFLAGS" in
10764 case "$cf_add_cflags" in
10766 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10768 CPPFLAGS=`echo "$CPPFLAGS" | \
10769 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10770 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10775 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10776 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10783 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10784 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10791 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10792 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10794 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10796 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10797 && test -z "${cf_tst_cflags}" \
10798 && cf_fix_cppflags=no
10803 if test -n "$cf_new_cflags" ; then
10805 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10806 CFLAGS="${CFLAGS}$cf_new_cflags"
10810 if test -n "$cf_new_cppflags" ; then
10812 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10813 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10817 if test -n "$cf_new_extra_cppflags" ; then
10819 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10820 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10824 cat >"conftest.$ac_ext" <<_ACEOF
10825 #line 10825 "configure"
10826 #include "confdefs.h"
10827 #include <sys/types.h>
10832 #ifdef _XOPEN_SOURCE
10833 #error expected _XOPEN_SOURCE to be undefined
10839 rm -f "conftest.$ac_objext"
10840 if { (eval echo "$as_me:10840: \"$ac_compile\"") >&5
10841 (eval $ac_compile) 2>&5
10843 echo "$as_me:10843: \$? = $ac_status" >&5
10844 (exit "$ac_status"); } &&
10845 { ac_try='test -s "conftest.$ac_objext"'
10846 { (eval echo "$as_me:10846: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:10849: \$? = $ac_status" >&5
10850 (exit "$ac_status"); }; }; then
10851 cf_cv_gnu_source=no
10853 echo "$as_me: failed program was:" >&5
10854 cat "conftest.$ac_ext" >&5
10855 cf_cv_gnu_source=yes
10857 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10858 CPPFLAGS="$cf_save"
10861 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10864 echo "$as_me:10864: result: $cf_cv_gnu_source" >&5
10865 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10867 if test "$cf_cv_gnu_source" = yes
10869 echo "$as_me:10869: checking if we should also define _DEFAULT_SOURCE" >&5
10870 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10871 if test "${cf_cv_default_source+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10876 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10878 cat >"conftest.$ac_ext" <<_ACEOF
10879 #line 10879 "configure"
10880 #include "confdefs.h"
10881 #include <sys/types.h>
10886 #ifdef _DEFAULT_SOURCE
10887 #error expected _DEFAULT_SOURCE to be undefined
10893 rm -f "conftest.$ac_objext"
10894 if { (eval echo "$as_me:10894: \"$ac_compile\"") >&5
10895 (eval $ac_compile) 2>&5
10897 echo "$as_me:10897: \$? = $ac_status" >&5
10898 (exit "$ac_status"); } &&
10899 { ac_try='test -s "conftest.$ac_objext"'
10900 { (eval echo "$as_me:10900: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10903 echo "$as_me:10903: \$? = $ac_status" >&5
10904 (exit "$ac_status"); }; }; then
10905 cf_cv_default_source=no
10907 echo "$as_me: failed program was:" >&5
10908 cat "conftest.$ac_ext" >&5
10909 cf_cv_default_source=yes
10911 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10914 echo "$as_me:10914: result: $cf_cv_default_source" >&5
10915 echo "${ECHO_T}$cf_cv_default_source" >&6
10916 if test "$cf_cv_default_source" = yes
10919 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10920 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10930 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10933 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10936 if test "$cf_cv_posix_visible" = no; then
10938 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10940 cf_save_CFLAGS="$CFLAGS"
10941 cf_save_CPPFLAGS="$CPPFLAGS"
10943 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10944 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10945 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10947 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10948 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10949 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10951 echo "$as_me:10951: checking if we should define _POSIX_C_SOURCE" >&5
10952 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10953 if test "${cf_cv_posix_c_source+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 echo "${as_me:-configure}:10957: testing if the symbol is already defined go no further ..." 1>&5
10959 cat >"conftest.$ac_ext" <<_ACEOF
10960 #line 10960 "configure"
10961 #include "confdefs.h"
10962 #include <sys/types.h>
10967 #ifndef _POSIX_C_SOURCE
10968 #error _POSIX_C_SOURCE is not defined
10974 rm -f "conftest.$ac_objext"
10975 if { (eval echo "$as_me:10975: \"$ac_compile\"") >&5
10976 (eval $ac_compile) 2>&5
10978 echo "$as_me:10978: \$? = $ac_status" >&5
10979 (exit "$ac_status"); } &&
10980 { ac_try='test -s "conftest.$ac_objext"'
10981 { (eval echo "$as_me:10981: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:10984: \$? = $ac_status" >&5
10985 (exit "$ac_status"); }; }; then
10986 cf_cv_posix_c_source=no
10988 echo "$as_me: failed program was:" >&5
10989 cat "conftest.$ac_ext" >&5
10990 cf_want_posix_source=no
10991 case .$cf_POSIX_C_SOURCE in
10993 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10996 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10997 cf_want_posix_source=yes
11000 cf_want_posix_source=yes
11003 if test "$cf_want_posix_source" = yes ; then
11004 cat >"conftest.$ac_ext" <<_ACEOF
11005 #line 11005 "configure"
11006 #include "confdefs.h"
11007 #include <sys/types.h>
11012 #ifdef _POSIX_SOURCE
11013 #error _POSIX_SOURCE is defined
11019 rm -f "conftest.$ac_objext"
11020 if { (eval echo "$as_me:11020: \"$ac_compile\"") >&5
11021 (eval $ac_compile) 2>&5
11023 echo "$as_me:11023: \$? = $ac_status" >&5
11024 (exit "$ac_status"); } &&
11025 { ac_try='test -s "conftest.$ac_objext"'
11026 { (eval echo "$as_me:11026: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:11029: \$? = $ac_status" >&5
11030 (exit "$ac_status"); }; }; then
11033 echo "$as_me: failed program was:" >&5
11034 cat "conftest.$ac_ext" >&5
11035 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11037 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11040 echo "${as_me:-configure}:11040: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11042 CFLAGS="$cf_trim_CFLAGS"
11043 CPPFLAGS="$cf_trim_CPPFLAGS"
11045 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11046 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11048 echo "${as_me:-configure}:11048: testing if the second compile does not leave our definition intact error ..." 1>&5
11050 cat >"conftest.$ac_ext" <<_ACEOF
11051 #line 11051 "configure"
11052 #include "confdefs.h"
11053 #include <sys/types.h>
11058 #ifndef _POSIX_C_SOURCE
11059 #error _POSIX_C_SOURCE is not defined
11065 rm -f "conftest.$ac_objext"
11066 if { (eval echo "$as_me:11066: \"$ac_compile\"") >&5
11067 (eval $ac_compile) 2>&5
11069 echo "$as_me:11069: \$? = $ac_status" >&5
11070 (exit "$ac_status"); } &&
11071 { ac_try='test -s "conftest.$ac_objext"'
11072 { (eval echo "$as_me:11072: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 (exit "$ac_status"); }; }; then
11079 echo "$as_me: failed program was:" >&5
11080 cat "conftest.$ac_ext" >&5
11081 cf_cv_posix_c_source=no
11083 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11084 CFLAGS="$cf_save_CFLAGS"
11085 CPPFLAGS="$cf_save_CPPFLAGS"
11088 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11091 echo "$as_me:11091: result: $cf_cv_posix_c_source" >&5
11092 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11094 if test "$cf_cv_posix_c_source" != no ; then
11095 CFLAGS="$cf_trim_CFLAGS"
11096 CPPFLAGS="$cf_trim_CPPFLAGS"
11101 cf_new_extra_cppflags=
11103 for cf_add_cflags in $cf_cv_posix_c_source
11105 case "$cf_fix_cppflags" in
11107 case "$cf_add_cflags" in
11108 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11109 case "$cf_add_cflags" in
11111 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11113 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11114 && test -z "${cf_tst_cflags}" \
11115 && cf_fix_cppflags=yes
11117 if test "$cf_fix_cppflags" = yes ; then
11119 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11120 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11123 elif test "${cf_tst_cflags}" = "\"'" ; then
11125 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11126 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11132 case "$CPPFLAGS" in
11136 case "$cf_add_cflags" in
11138 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11140 CPPFLAGS=`echo "$CPPFLAGS" | \
11141 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11142 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11147 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11148 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11155 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11156 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11163 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11164 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11166 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11168 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11169 && test -z "${cf_tst_cflags}" \
11170 && cf_fix_cppflags=no
11175 if test -n "$cf_new_cflags" ; then
11177 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11178 CFLAGS="${CFLAGS}$cf_new_cflags"
11182 if test -n "$cf_new_cppflags" ; then
11184 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11185 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11189 if test -n "$cf_new_extra_cppflags" ; then
11191 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11192 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11198 fi # cf_cv_posix_visible
11202 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
11205 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
11206 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
11207 # Abusing the conformance level is a workaround.
11208 { echo "$as_me:11208: WARNING: this system does not provide usable locale support" >&5
11209 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
11210 cf_xopen_source="-D_BSD_SOURCE"
11211 cf_XOPEN_SOURCE=700
11214 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
11215 cf_xopen_source="-D_BSD_SOURCE"
11216 cf_XOPEN_SOURCE=600
11219 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
11222 cf_xopen_source="-D_OSF_SOURCE"
11225 cf_xopen_source="-D_QNX_SOURCE"
11228 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
11231 cf_xopen_source="-D__EXTENSIONS__"
11232 cf_cv_xopen_source=broken
11234 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
11240 echo "$as_me:11240: checking if we should define _XOPEN_SOURCE" >&5
11241 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11242 if test "${cf_cv_xopen_source+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 cat >"conftest.$ac_ext" <<_ACEOF
11247 #line 11247 "configure"
11248 #include "confdefs.h"
11250 $ac_includes_default
11256 #ifndef _XOPEN_SOURCE
11257 #error _XOPEN_SOURCE is not defined
11264 rm -f "conftest.$ac_objext"
11265 if { (eval echo "$as_me:11265: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>&5
11268 echo "$as_me:11268: \$? = $ac_status" >&5
11269 (exit "$ac_status"); } &&
11270 { ac_try='test -s "conftest.$ac_objext"'
11271 { (eval echo "$as_me:11271: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:11274: \$? = $ac_status" >&5
11275 (exit "$ac_status"); }; }; then
11276 cf_cv_xopen_source=no
11278 echo "$as_me: failed program was:" >&5
11279 cat "conftest.$ac_ext" >&5
11280 cf_save="$CPPFLAGS"
11282 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11283 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11285 cat >"conftest.$ac_ext" <<_ACEOF
11286 #line 11286 "configure"
11287 #include "confdefs.h"
11289 $ac_includes_default
11295 #ifndef _XOPEN_SOURCE
11296 #error _XOPEN_SOURCE is not defined
11303 rm -f "conftest.$ac_objext"
11304 if { (eval echo "$as_me:11304: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>&5
11307 echo "$as_me:11307: \$? = $ac_status" >&5
11308 (exit "$ac_status"); } &&
11309 { ac_try='test -s "conftest.$ac_objext"'
11310 { (eval echo "$as_me:11310: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11313 echo "$as_me:11313: \$? = $ac_status" >&5
11314 (exit "$ac_status"); }; }; then
11315 cf_cv_xopen_source=no
11317 echo "$as_me: failed program was:" >&5
11318 cat "conftest.$ac_ext" >&5
11319 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11321 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11322 CPPFLAGS="$cf_save"
11325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11328 echo "$as_me:11328: result: $cf_cv_xopen_source" >&5
11329 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11331 if test "$cf_cv_xopen_source" != no ; then
11333 CFLAGS=`echo "$CFLAGS" | \
11334 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11335 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11337 CPPFLAGS=`echo "$CPPFLAGS" | \
11338 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11339 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11341 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11343 for cf_add_cflags in $cf_temp_xopen_source
11345 case "x$cf_add_cflags" in
11348 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11351 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'`
11352 test "$CFLAGS" != "$cf_old_cflag" || break
11354 CFLAGS="$cf_old_cflag"
11357 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11360 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'`
11361 test "$CPPFLAGS" != "$cf_old_cflag" || break
11363 CPPFLAGS="$cf_old_cflag"
11372 cf_new_extra_cppflags=
11374 for cf_add_cflags in $cf_add_cflags
11376 case "$cf_fix_cppflags" in
11378 case "$cf_add_cflags" in
11379 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11380 case "$cf_add_cflags" in
11382 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11384 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11385 && test -z "${cf_tst_cflags}" \
11386 && cf_fix_cppflags=yes
11388 if test "$cf_fix_cppflags" = yes ; then
11390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11391 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11394 elif test "${cf_tst_cflags}" = "\"'" ; then
11396 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11397 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11403 case "$CPPFLAGS" in
11407 case "$cf_add_cflags" in
11409 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11411 CPPFLAGS=`echo "$CPPFLAGS" | \
11412 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11413 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11418 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11419 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11426 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11427 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11434 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11435 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11437 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11439 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11440 && test -z "${cf_tst_cflags}" \
11441 && cf_fix_cppflags=no
11446 if test -n "$cf_new_cflags" ; then
11448 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11449 CFLAGS="${CFLAGS}$cf_new_cflags"
11453 if test -n "$cf_new_cppflags" ; then
11455 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11456 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11460 if test -n "$cf_new_extra_cppflags" ; then
11462 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11463 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11471 cf_save_xopen_cppflags="$CPPFLAGS"
11473 if test "$cf_cv_posix_visible" = no; then
11475 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11477 cf_save_CFLAGS="$CFLAGS"
11478 cf_save_CPPFLAGS="$CPPFLAGS"
11480 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11481 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11482 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11484 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11485 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11486 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11488 echo "$as_me:11488: checking if we should define _POSIX_C_SOURCE" >&5
11489 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11490 if test "${cf_cv_posix_c_source+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 echo "${as_me:-configure}:11494: testing if the symbol is already defined go no further ..." 1>&5
11496 cat >"conftest.$ac_ext" <<_ACEOF
11497 #line 11497 "configure"
11498 #include "confdefs.h"
11499 #include <sys/types.h>
11504 #ifndef _POSIX_C_SOURCE
11505 #error _POSIX_C_SOURCE is not defined
11511 rm -f "conftest.$ac_objext"
11512 if { (eval echo "$as_me:11512: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>&5
11515 echo "$as_me:11515: \$? = $ac_status" >&5
11516 (exit "$ac_status"); } &&
11517 { ac_try='test -s "conftest.$ac_objext"'
11518 { (eval echo "$as_me:11518: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11521 echo "$as_me:11521: \$? = $ac_status" >&5
11522 (exit "$ac_status"); }; }; then
11523 cf_cv_posix_c_source=no
11525 echo "$as_me: failed program was:" >&5
11526 cat "conftest.$ac_ext" >&5
11527 cf_want_posix_source=no
11528 case .$cf_POSIX_C_SOURCE in
11530 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11533 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11534 cf_want_posix_source=yes
11537 cf_want_posix_source=yes
11540 if test "$cf_want_posix_source" = yes ; then
11541 cat >"conftest.$ac_ext" <<_ACEOF
11542 #line 11542 "configure"
11543 #include "confdefs.h"
11544 #include <sys/types.h>
11549 #ifdef _POSIX_SOURCE
11550 #error _POSIX_SOURCE is defined
11556 rm -f "conftest.$ac_objext"
11557 if { (eval echo "$as_me:11557: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>&5
11560 echo "$as_me:11560: \$? = $ac_status" >&5
11561 (exit "$ac_status"); } &&
11562 { ac_try='test -s "conftest.$ac_objext"'
11563 { (eval echo "$as_me:11563: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:11566: \$? = $ac_status" >&5
11567 (exit "$ac_status"); }; }; then
11570 echo "$as_me: failed program was:" >&5
11571 cat "conftest.$ac_ext" >&5
11572 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11574 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11577 echo "${as_me:-configure}:11577: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11579 CFLAGS="$cf_trim_CFLAGS"
11580 CPPFLAGS="$cf_trim_CPPFLAGS"
11582 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11583 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11585 echo "${as_me:-configure}:11585: testing if the second compile does not leave our definition intact error ..." 1>&5
11587 cat >"conftest.$ac_ext" <<_ACEOF
11588 #line 11588 "configure"
11589 #include "confdefs.h"
11590 #include <sys/types.h>
11595 #ifndef _POSIX_C_SOURCE
11596 #error _POSIX_C_SOURCE is not defined
11602 rm -f "conftest.$ac_objext"
11603 if { (eval echo "$as_me:11603: \"$ac_compile\"") >&5
11604 (eval $ac_compile) 2>&5
11606 echo "$as_me:11606: \$? = $ac_status" >&5
11607 (exit "$ac_status"); } &&
11608 { ac_try='test -s "conftest.$ac_objext"'
11609 { (eval echo "$as_me:11609: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:11612: \$? = $ac_status" >&5
11613 (exit "$ac_status"); }; }; then
11616 echo "$as_me: failed program was:" >&5
11617 cat "conftest.$ac_ext" >&5
11618 cf_cv_posix_c_source=no
11620 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11621 CFLAGS="$cf_save_CFLAGS"
11622 CPPFLAGS="$cf_save_CPPFLAGS"
11625 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11628 echo "$as_me:11628: result: $cf_cv_posix_c_source" >&5
11629 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11631 if test "$cf_cv_posix_c_source" != no ; then
11632 CFLAGS="$cf_trim_CFLAGS"
11633 CPPFLAGS="$cf_trim_CPPFLAGS"
11638 cf_new_extra_cppflags=
11640 for cf_add_cflags in $cf_cv_posix_c_source
11642 case "$cf_fix_cppflags" in
11644 case "$cf_add_cflags" in
11645 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11646 case "$cf_add_cflags" in
11648 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11650 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11651 && test -z "${cf_tst_cflags}" \
11652 && cf_fix_cppflags=yes
11654 if test "$cf_fix_cppflags" = yes ; then
11656 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11657 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11660 elif test "${cf_tst_cflags}" = "\"'" ; then
11662 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11663 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11669 case "$CPPFLAGS" in
11673 case "$cf_add_cflags" in
11675 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11677 CPPFLAGS=`echo "$CPPFLAGS" | \
11678 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11679 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11684 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11685 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11692 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11693 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11703 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11705 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11706 && test -z "${cf_tst_cflags}" \
11707 && cf_fix_cppflags=no
11712 if test -n "$cf_new_cflags" ; then
11714 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11715 CFLAGS="${CFLAGS}$cf_new_cflags"
11719 if test -n "$cf_new_cppflags" ; then
11721 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11722 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11726 if test -n "$cf_new_extra_cppflags" ; then
11728 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11729 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11735 fi # cf_cv_posix_visible
11737 # Some of these niche implementations use copy/paste, double-check...
11738 if test "$cf_cv_xopen_source" = no ; then
11739 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
11741 echo "${as_me:-configure}:11741: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
11743 cat >"conftest.$ac_ext" <<_ACEOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11747 $ac_includes_default
11753 #ifndef _XOPEN_SOURCE
11754 #error _XOPEN_SOURCE is not defined
11761 rm -f "conftest.$ac_objext"
11762 if { (eval echo "$as_me:11762: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>&5
11765 echo "$as_me:11765: \$? = $ac_status" >&5
11766 (exit "$ac_status"); } &&
11767 { ac_try='test -s "conftest.$ac_objext"'
11768 { (eval echo "$as_me:11768: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:11771: \$? = $ac_status" >&5
11772 (exit "$ac_status"); }; }; then
11775 echo "$as_me: failed program was:" >&5
11776 cat "conftest.$ac_ext" >&5
11778 { echo "$as_me:11778: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
11779 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
11780 CPPFLAGS="$cf_save_xopen_cppflags"
11782 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11787 if test -n "$cf_xopen_source" ; then
11789 for cf_add_cflags in $cf_xopen_source
11791 case "x$cf_add_cflags" in
11794 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11797 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'`
11798 test "$CFLAGS" != "$cf_old_cflag" || break
11799 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11801 echo "${as_me:-configure}:11801: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11803 CFLAGS="$cf_old_cflag"
11806 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11809 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'`
11810 test "$CPPFLAGS" != "$cf_old_cflag" || break
11811 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11813 echo "${as_me:-configure}:11813: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11815 CPPFLAGS="$cf_old_cflag"
11824 cf_new_extra_cppflags=
11826 for cf_add_cflags in $cf_add_cflags
11828 case "$cf_fix_cppflags" in
11830 case "$cf_add_cflags" in
11831 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11832 case "$cf_add_cflags" in
11834 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11836 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11837 && test -z "${cf_tst_cflags}" \
11838 && cf_fix_cppflags=yes
11840 if test "$cf_fix_cppflags" = yes ; then
11842 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11843 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11846 elif test "${cf_tst_cflags}" = "\"'" ; then
11848 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11849 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11855 case "$CPPFLAGS" in
11859 case "$cf_add_cflags" in
11861 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11863 CPPFLAGS=`echo "$CPPFLAGS" | \
11864 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11865 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11870 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11871 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11878 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11879 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11886 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11887 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11889 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11891 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11892 && test -z "${cf_tst_cflags}" \
11893 && cf_fix_cppflags=no
11898 if test -n "$cf_new_cflags" ; then
11899 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11901 echo "${as_me:-configure}:11901: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11903 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11904 CFLAGS="${CFLAGS}$cf_new_cflags"
11908 if test -n "$cf_new_cppflags" ; then
11909 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11911 echo "${as_me:-configure}:11911: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11913 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11914 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11918 if test -n "$cf_new_extra_cppflags" ; then
11919 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11921 echo "${as_me:-configure}:11921: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11923 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11924 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11932 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11933 echo "$as_me:11933: checking if _XOPEN_SOURCE really is set" >&5
11934 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11935 cat >"conftest.$ac_ext" <<_ACEOF
11936 #line 11936 "configure"
11937 #include "confdefs.h"
11938 #include <stdlib.h>
11943 #ifndef _XOPEN_SOURCE
11944 #error _XOPEN_SOURCE is not defined
11950 rm -f "conftest.$ac_objext"
11951 if { (eval echo "$as_me:11951: \"$ac_compile\"") >&5
11952 (eval $ac_compile) 2>&5
11954 echo "$as_me:11954: \$? = $ac_status" >&5
11955 (exit "$ac_status"); } &&
11956 { ac_try='test -s "conftest.$ac_objext"'
11957 { (eval echo "$as_me:11957: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11960 echo "$as_me:11960: \$? = $ac_status" >&5
11961 (exit "$ac_status"); }; }; then
11962 cf_XOPEN_SOURCE_set=yes
11964 echo "$as_me: failed program was:" >&5
11965 cat "conftest.$ac_ext" >&5
11966 cf_XOPEN_SOURCE_set=no
11968 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11969 echo "$as_me:11969: result: $cf_XOPEN_SOURCE_set" >&5
11970 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11971 if test "$cf_XOPEN_SOURCE_set" = yes
11973 cat >"conftest.$ac_ext" <<_ACEOF
11974 #line 11974 "configure"
11975 #include "confdefs.h"
11976 #include <stdlib.h>
11981 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11982 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11988 rm -f "conftest.$ac_objext"
11989 if { (eval echo "$as_me:11989: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>&5
11992 echo "$as_me:11992: \$? = $ac_status" >&5
11993 (exit "$ac_status"); } &&
11994 { ac_try='test -s "conftest.$ac_objext"'
11995 { (eval echo "$as_me:11995: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:11998: \$? = $ac_status" >&5
11999 (exit "$ac_status"); }; }; then
12000 cf_XOPEN_SOURCE_set_ok=yes
12002 echo "$as_me: failed program was:" >&5
12003 cat "conftest.$ac_ext" >&5
12004 cf_XOPEN_SOURCE_set_ok=no
12006 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12007 if test "$cf_XOPEN_SOURCE_set_ok" = no
12009 { echo "$as_me:12009: WARNING: _XOPEN_SOURCE is lower than requested" >&5
12010 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
12014 echo "$as_me:12014: checking if we should define _XOPEN_SOURCE" >&5
12015 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
12016 if test "${cf_cv_xopen_source+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 cat >"conftest.$ac_ext" <<_ACEOF
12021 #line 12021 "configure"
12022 #include "confdefs.h"
12024 $ac_includes_default
12030 #ifndef _XOPEN_SOURCE
12031 #error _XOPEN_SOURCE is not defined
12038 rm -f "conftest.$ac_objext"
12039 if { (eval echo "$as_me:12039: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>&5
12042 echo "$as_me:12042: \$? = $ac_status" >&5
12043 (exit "$ac_status"); } &&
12044 { ac_try='test -s "conftest.$ac_objext"'
12045 { (eval echo "$as_me:12045: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:12048: \$? = $ac_status" >&5
12049 (exit "$ac_status"); }; }; then
12050 cf_cv_xopen_source=no
12052 echo "$as_me: failed program was:" >&5
12053 cat "conftest.$ac_ext" >&5
12054 cf_save="$CPPFLAGS"
12056 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12057 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
12059 cat >"conftest.$ac_ext" <<_ACEOF
12060 #line 12060 "configure"
12061 #include "confdefs.h"
12063 $ac_includes_default
12069 #ifndef _XOPEN_SOURCE
12070 #error _XOPEN_SOURCE is not defined
12077 rm -f "conftest.$ac_objext"
12078 if { (eval echo "$as_me:12078: \"$ac_compile\"") >&5
12079 (eval $ac_compile) 2>&5
12081 echo "$as_me:12081: \$? = $ac_status" >&5
12082 (exit "$ac_status"); } &&
12083 { ac_try='test -s "conftest.$ac_objext"'
12084 { (eval echo "$as_me:12084: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:12087: \$? = $ac_status" >&5
12088 (exit "$ac_status"); }; }; then
12089 cf_cv_xopen_source=no
12091 echo "$as_me: failed program was:" >&5
12092 cat "conftest.$ac_ext" >&5
12093 cf_cv_xopen_source=$cf_XOPEN_SOURCE
12095 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12096 CPPFLAGS="$cf_save"
12099 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12102 echo "$as_me:12102: result: $cf_cv_xopen_source" >&5
12103 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12105 if test "$cf_cv_xopen_source" != no ; then
12107 CFLAGS=`echo "$CFLAGS" | \
12108 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12109 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12111 CPPFLAGS=`echo "$CPPFLAGS" | \
12112 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12113 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12115 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12117 for cf_add_cflags in $cf_temp_xopen_source
12119 case "x$cf_add_cflags" in
12122 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12125 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'`
12126 test "$CFLAGS" != "$cf_old_cflag" || break
12128 CFLAGS="$cf_old_cflag"
12131 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12134 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'`
12135 test "$CPPFLAGS" != "$cf_old_cflag" || break
12137 CPPFLAGS="$cf_old_cflag"
12146 cf_new_extra_cppflags=
12148 for cf_add_cflags in $cf_add_cflags
12150 case "$cf_fix_cppflags" in
12152 case "$cf_add_cflags" in
12153 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12154 case "$cf_add_cflags" in
12156 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12158 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12159 && test -z "${cf_tst_cflags}" \
12160 && cf_fix_cppflags=yes
12162 if test "$cf_fix_cppflags" = yes ; then
12164 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12165 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12168 elif test "${cf_tst_cflags}" = "\"'" ; then
12170 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12171 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12177 case "$CPPFLAGS" in
12181 case "$cf_add_cflags" in
12183 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12185 CPPFLAGS=`echo "$CPPFLAGS" | \
12186 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12187 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12192 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12193 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12200 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12201 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12208 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12209 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12211 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12213 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12214 && test -z "${cf_tst_cflags}" \
12215 && cf_fix_cppflags=no
12220 if test -n "$cf_new_cflags" ; then
12222 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12223 CFLAGS="${CFLAGS}$cf_new_cflags"
12227 if test -n "$cf_new_cppflags" ; then
12229 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12230 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12234 if test -n "$cf_new_extra_cppflags" ; then
12236 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12237 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12247 fi # cf_cv_posix_visible
12249 CPPFLAGS_after_XOPEN="$CPPFLAGS"
12251 # Work around breakage on OS X
12253 echo "$as_me:12253: checking if SIGWINCH is defined" >&5
12254 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
12255 if test "${cf_cv_define_sigwinch+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 cat >"conftest.$ac_ext" <<_ACEOF
12260 #line 12260 "configure"
12261 #include "confdefs.h"
12263 #include <sys/types.h>
12264 #include <sys/signal.h>
12269 int x = SIGWINCH; (void)x
12274 rm -f "conftest.$ac_objext"
12275 if { (eval echo "$as_me:12275: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>&5
12278 echo "$as_me:12278: \$? = $ac_status" >&5
12279 (exit "$ac_status"); } &&
12280 { ac_try='test -s "conftest.$ac_objext"'
12281 { (eval echo "$as_me:12281: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12284 echo "$as_me:12284: \$? = $ac_status" >&5
12285 (exit "$ac_status"); }; }; then
12286 cf_cv_define_sigwinch=yes
12288 echo "$as_me: failed program was:" >&5
12289 cat "conftest.$ac_ext" >&5
12290 cat >"conftest.$ac_ext" <<_ACEOF
12291 #line 12291 "configure"
12292 #include "confdefs.h"
12294 #undef _XOPEN_SOURCE
12295 #undef _POSIX_SOURCE
12296 #undef _POSIX_C_SOURCE
12297 #include <sys/types.h>
12298 #include <sys/signal.h>
12303 int x = SIGWINCH; (void)x
12308 rm -f "conftest.$ac_objext"
12309 if { (eval echo "$as_me:12309: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>&5
12312 echo "$as_me:12312: \$? = $ac_status" >&5
12313 (exit "$ac_status"); } &&
12314 { ac_try='test -s "conftest.$ac_objext"'
12315 { (eval echo "$as_me:12315: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:12318: \$? = $ac_status" >&5
12319 (exit "$ac_status"); }; }; then
12320 cf_cv_define_sigwinch=maybe
12322 echo "$as_me: failed program was:" >&5
12323 cat "conftest.$ac_ext" >&5
12324 cf_cv_define_sigwinch=no
12326 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12329 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12332 echo "$as_me:12332: result: $cf_cv_define_sigwinch" >&5
12333 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
12335 if test "$cf_cv_define_sigwinch" = maybe ; then
12336 echo "$as_me:12336: checking for actual SIGWINCH definition" >&5
12337 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
12338 if test "${cf_cv_fixup_sigwinch+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 cf_cv_fixup_sigwinch=unknown
12344 while test "$cf_sigwinch" != 1
12346 cat >"conftest.$ac_ext" <<_ACEOF
12347 #line 12347 "configure"
12348 #include "confdefs.h"
12350 #undef _XOPEN_SOURCE
12351 #undef _POSIX_SOURCE
12352 #undef _POSIX_C_SOURCE
12353 #include <sys/types.h>
12354 #include <sys/signal.h>
12360 #if SIGWINCH != $cf_sigwinch
12361 #error SIGWINCH is not $cf_sigwinch
12363 int x = SIGWINCH; (void)x
12368 rm -f "conftest.$ac_objext"
12369 if { (eval echo "$as_me:12369: \"$ac_compile\"") >&5
12370 (eval $ac_compile) 2>&5
12372 echo "$as_me:12372: \$? = $ac_status" >&5
12373 (exit "$ac_status"); } &&
12374 { ac_try='test -s "conftest.$ac_objext"'
12375 { (eval echo "$as_me:12375: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:12378: \$? = $ac_status" >&5
12379 (exit "$ac_status"); }; }; then
12380 cf_cv_fixup_sigwinch=$cf_sigwinch
12383 echo "$as_me: failed program was:" >&5
12384 cat "conftest.$ac_ext" >&5
12386 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12388 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
12392 echo "$as_me:12392: result: $cf_cv_fixup_sigwinch" >&5
12393 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
12395 if test "$cf_cv_fixup_sigwinch" != unknown ; then
12396 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
12400 # Checks for CODESET support.
12402 echo "$as_me:12402: checking for nl_langinfo and CODESET" >&5
12403 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12404 if test "${am_cv_langinfo_codeset+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 cat >"conftest.$ac_ext" <<_ACEOF
12408 #line 12408 "configure"
12409 #include "confdefs.h"
12411 $ac_includes_default
12412 #include <langinfo.h>
12416 char* cs = nl_langinfo(CODESET); (void)cs
12421 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12422 if { (eval echo "$as_me:12422: \"$ac_link\"") >&5
12423 (eval $ac_link) 2>&5
12425 echo "$as_me:12425: \$? = $ac_status" >&5
12426 (exit "$ac_status"); } &&
12427 { ac_try='test -s "conftest$ac_exeext"'
12428 { (eval echo "$as_me:12428: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:12431: \$? = $ac_status" >&5
12432 (exit "$ac_status"); }; }; then
12433 am_cv_langinfo_codeset=yes
12435 echo "$as_me: failed program was:" >&5
12436 cat "conftest.$ac_ext" >&5
12437 am_cv_langinfo_codeset=no
12439 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12442 echo "$as_me:12442: result: $am_cv_langinfo_codeset" >&5
12443 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12444 if test "$am_cv_langinfo_codeset" = yes; then
12446 cat >>confdefs.h <<\EOF
12447 #define HAVE_LANGINFO_CODESET 1
12452 # use these variables to work around a defect in gcc's fixincludes.
12453 NCURSES_OK_WCHAR_T=
12456 echo "$as_me:12456: checking if you want wide-character code" >&5
12457 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
12459 # Check whether --enable-widec or --disable-widec was given.
12460 if test "${enable_widec+set}" = set; then
12461 enableval="$enable_widec"
12462 with_widec=$enableval
12466 echo "$as_me:12466: result: $with_widec" >&5
12467 echo "${ECHO_T}$with_widec" >&6
12469 NCURSES_WCWIDTH_GRAPHICS=1
12471 if test "x$with_widec" = xyes ; then
12472 if test "x$disable_lib_suffixes" = xno ; then
12473 LIB_SUFFIX="w${LIB_SUFFIX}"
12476 cat >>confdefs.h <<\EOF
12477 #define USE_WIDEC_SUPPORT 1
12480 cat >>confdefs.h <<\EOF
12481 #define NCURSES_WIDECHAR 1
12484 case "$CPPFLAGS" in
12488 { echo "$as_me:12488: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&5
12489 echo "$as_me: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&2;}
12490 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
12491 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
12500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12501 echo "$as_me:12501: checking for $ac_header" >&5
12502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 cat >"conftest.$ac_ext" <<_ACEOF
12507 #line 12507 "configure"
12508 #include "confdefs.h"
12509 #include <$ac_header>
12511 if { (eval echo "$as_me:12511: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12512 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12514 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12516 cat conftest.err >&5
12517 echo "$as_me:12517: \$? = $ac_status" >&5
12518 (exit "$ac_status"); } >/dev/null; then
12519 if test -s conftest.err; then
12520 ac_cpp_err=$ac_c_preproc_warn_flag
12527 if test -z "$ac_cpp_err"; then
12528 eval "$as_ac_Header=yes"
12530 echo "$as_me: failed program was:" >&5
12531 cat "conftest.$ac_ext" >&5
12532 eval "$as_ac_Header=no"
12534 rm -f conftest.err "conftest.$ac_ext"
12536 echo "$as_me:12536: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12537 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12538 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12539 cat >>confdefs.h <<EOF
12540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12546 echo "$as_me:12546: checking if wchar.h can be used as is" >&5
12547 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
12548 if test "${cf_cv_wchar_h_okay+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 cat >"conftest.$ac_ext" <<_ACEOF
12553 #line 12553 "configure"
12554 #include "confdefs.h"
12556 $ac_includes_default
12557 #ifdef HAVE_WCHAR_H
12560 #ifdef HAVE_WCTYPE_H
12561 #include <wctype.h>
12569 int bar = iswpunct(foo)
12574 rm -f "conftest.$ac_objext"
12575 if { (eval echo "$as_me:12575: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>&5
12578 echo "$as_me:12578: \$? = $ac_status" >&5
12579 (exit "$ac_status"); } &&
12580 { ac_try='test -s "conftest.$ac_objext"'
12581 { (eval echo "$as_me:12581: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:12584: \$? = $ac_status" >&5
12585 (exit "$ac_status"); }; }; then
12586 cf_cv_wchar_h_okay=yes
12588 echo "$as_me: failed program was:" >&5
12589 cat "conftest.$ac_ext" >&5
12590 cf_cv_wchar_h_okay=no
12592 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12594 echo "$as_me:12594: result: $cf_cv_wchar_h_okay" >&5
12595 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12597 if test "$cf_cv_wchar_h_okay" = no
12600 echo "$as_me:12600: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12601 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12602 cat >"conftest.$ac_ext" <<_ACEOF
12603 #line 12603 "configure"
12604 #include "confdefs.h"
12605 #include <sys/types.h>
12611 #ifndef _XOPEN_SOURCE_EXTENDED
12612 #error _XOPEN_SOURCE_EXTENDED is not defined
12618 rm -f "conftest.$ac_objext"
12619 if { (eval echo "$as_me:12619: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>&5
12622 echo "$as_me:12622: \$? = $ac_status" >&5
12623 (exit "$ac_status"); } &&
12624 { ac_try='test -s "conftest.$ac_objext"'
12625 { (eval echo "$as_me:12625: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:12628: \$? = $ac_status" >&5
12629 (exit "$ac_status"); }; }; then
12632 echo "$as_me: failed program was:" >&5
12633 cat "conftest.$ac_ext" >&5
12636 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12637 echo "$as_me:12637: result: $cf_result" >&5
12638 echo "${ECHO_T}$cf_result" >&6
12640 if test "$cf_result" = yes ; then
12641 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12642 elif test "x" != "x" ; then
12643 echo "$as_me:12643: checking checking for compatible value versus " >&5
12644 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12645 cat >"conftest.$ac_ext" <<_ACEOF
12646 #line 12646 "configure"
12647 #include "confdefs.h"
12648 #include <sys/types.h>
12654 #if _XOPEN_SOURCE_EXTENDED- < 0
12655 #error _XOPEN_SOURCE_EXTENDED- is negative
12661 rm -f "conftest.$ac_objext"
12662 if { (eval echo "$as_me:12662: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>&5
12665 echo "$as_me:12665: \$? = $ac_status" >&5
12666 (exit "$ac_status"); } &&
12667 { ac_try='test -s "conftest.$ac_objext"'
12668 { (eval echo "$as_me:12668: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:12671: \$? = $ac_status" >&5
12672 (exit "$ac_status"); }; }; then
12675 echo "$as_me: failed program was:" >&5
12676 cat "conftest.$ac_ext" >&5
12679 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12680 echo "$as_me:12680: result: $cf_result" >&5
12681 echo "${ECHO_T}$cf_result" >&6
12682 if test "$cf_result" = no ; then
12683 # perhaps we can override it - try...
12684 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12690 echo "$as_me:12690: checking if wcwidth agrees graphics are single-width" >&5
12691 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12692 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 cat >conftest.in <<CF_EOF
12698 0x250c upper left corner
12699 0x2514 lower left corner
12700 0x2510 upper right corner
12701 0x2518 lower right corner
12702 0x251c tee pointing left
12703 0x2524 tee pointing right
12704 0x2534 tee pointing up
12705 0x252c tee pointing down
12706 0x2500 horizontal line
12707 0x2502 vertical line
12708 0x253c large plus or crossover
12712 0x2592 checker board (stipple)
12713 0x00b0 degree symbol
12716 - Teletype 5410v1 symbols
12717 0x2190 arrow pointing left
12718 0x2192 arrow pointing right
12719 0x2193 arrow pointing down
12720 0x2191 arrow pointing up
12721 0x2592 board of squares
12722 0x2603 lantern symbol
12723 0x25ae solid square block
12724 - these defaults were invented for ncurses
12727 0x2264 less-than-or-equal-to
12728 0x2265 greater-than-or-equal-to
12731 0x00a3 pound-sterling symbol
12732 - thick-line-drawing
12733 0x250f upper left corner
12734 0x2517 lower left corner
12735 0x2513 upper right corner
12736 0x251b lower right corner
12737 0x2523 tee pointing left
12738 0x252b tee pointing right
12739 0x253b tee pointing up
12740 0x2533 tee pointing down
12741 0x2501 horizontal line
12742 0x2503 vertical line
12743 0x254b large plus or crossover
12744 - double-line-drawing
12745 0x2554 upper left corner
12746 0x255a lower left corner
12747 0x2557 upper right corner
12748 0x255d lower right corner
12749 0x2563 tee pointing left
12750 0x2560 tee pointing right
12751 0x2569 tee pointing up
12752 0x2566 tee pointing down
12753 0x2550 horizontal line
12754 0x2551 vertical line
12755 0x256c large plus or crossover
12757 if test "$cross_compiling" = yes; then
12758 cf_cv_wcwidth_graphics=unknown
12760 cat >"conftest.$ac_ext" <<_ACEOF
12761 #line 12761 "configure"
12762 #include "confdefs.h"
12764 $ac_includes_default
12766 #include <locale.h>
12776 char buffer[MY_LEN + 1];
12777 char notes[MY_LEN + 1];
12781 if (setlocale(LC_ALL, "en_US.UTF8") ||
12782 setlocale(LC_ALL, "en_US.UTF-8") ||
12783 setlocale(LC_ALL, "en_US.utf8") ||
12784 setlocale(LC_ALL, "en_US.utf-8")) {
12785 if ((fp = fopen("conftest.in", "r")) != 0) {
12786 while (fgets(buffer, MY_LEN, fp) != 0) {
12787 if (*buffer == '-') {
12788 fprintf(stderr, "\\t%s", buffer);
12789 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12791 if (wcwidth(value) == 1)
12793 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12795 fprintf(stderr, "?\\t%s", buffer);
12800 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12801 return (totals == passed) ? 0 : 1;
12805 rm -f "conftest$ac_exeext"
12806 if { (eval echo "$as_me:12806: \"$ac_link\"") >&5
12807 (eval $ac_link) 2>&5
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12811 { (eval echo "$as_me:12811: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12814 echo "$as_me:12814: \$? = $ac_status" >&5
12815 (exit "$ac_status"); }; }; then
12816 cf_cv_wcwidth_graphics=yes
12818 echo "$as_me: program exited with status $ac_status" >&5
12819 echo "$as_me: failed program was:" >&5
12820 cat "conftest.$ac_ext" >&5
12821 cf_cv_wcwidth_graphics=no
12823 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12827 echo "$as_me:12827: result: $cf_cv_wcwidth_graphics" >&5
12828 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12830 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12832 # with_overwrite=no
12833 NCURSES_CH_T=cchar_t
12835 for ac_func in putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12838 echo "$as_me:12838: checking for $ac_func" >&5
12839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12840 if eval "test \"\${$as_ac_var+set}\" = set"; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 cat >"conftest.$ac_ext" <<_ACEOF
12844 #line 12844 "configure"
12845 #include "confdefs.h"
12846 #define $ac_func autoconf_temporary
12847 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char $ac_func (void);
12862 /* The GNU C library defines stubs for functions which it implements
12863 to always fail with ENOSYS. Some functions are actually named
12864 something starting with __ and the normal name is an alias. */
12865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12866 #error found stub for $ac_func
12869 return $ac_func ();
12874 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12875 if { (eval echo "$as_me:12875: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>&5
12878 echo "$as_me:12878: \$? = $ac_status" >&5
12879 (exit "$ac_status"); } &&
12880 { ac_try='test -s "conftest$ac_exeext"'
12881 { (eval echo "$as_me:12881: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 echo "$as_me:12884: \$? = $ac_status" >&5
12885 (exit "$ac_status"); }; }; then
12886 eval "$as_ac_var=yes"
12888 echo "$as_me: failed program was:" >&5
12889 cat "conftest.$ac_ext" >&5
12890 eval "$as_ac_var=no"
12892 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12894 echo "$as_me:12894: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12895 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12896 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12897 cat >>confdefs.h <<EOF
12898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12904 if test "x$ac_cv_func_putwc" != xyes ; then
12906 for ac_header in wchar.h
12908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12909 echo "$as_me:12909: checking for $ac_header" >&5
12910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 cat >"conftest.$ac_ext" <<_ACEOF
12915 #line 12915 "configure"
12916 #include "confdefs.h"
12917 #include <$ac_header>
12919 if { (eval echo "$as_me:12919: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12920 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12922 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12924 cat conftest.err >&5
12925 echo "$as_me:12925: \$? = $ac_status" >&5
12926 (exit "$ac_status"); } >/dev/null; then
12927 if test -s conftest.err; then
12928 ac_cpp_err=$ac_c_preproc_warn_flag
12935 if test -z "$ac_cpp_err"; then
12936 eval "$as_ac_Header=yes"
12938 echo "$as_me: failed program was:" >&5
12939 cat "conftest.$ac_ext" >&5
12940 eval "$as_ac_Header=no"
12942 rm -f conftest.err "conftest.$ac_ext"
12944 echo "$as_me:12944: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12945 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12946 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12947 cat >>confdefs.h <<EOF
12948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12954 echo "$as_me:12954: checking for multibyte character support" >&5
12955 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12956 if test "${cf_cv_utf8_lib+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 cf_save_LIBS="$LIBS"
12961 cat >"conftest.$ac_ext" <<_ACEOF
12962 #line 12962 "configure"
12963 #include "confdefs.h"
12965 $ac_includes_default
12966 #ifdef HAVE_WCHAR_H
12978 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12979 if { (eval echo "$as_me:12979: \"$ac_link\"") >&5
12980 (eval $ac_link) 2>&5
12982 echo "$as_me:12982: \$? = $ac_status" >&5
12983 (exit "$ac_status"); } &&
12984 { ac_try='test -s "conftest$ac_exeext"'
12985 { (eval echo "$as_me:12985: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:12988: \$? = $ac_status" >&5
12989 (exit "$ac_status"); }; }; then
12992 echo "$as_me: failed program was:" >&5
12993 cat "conftest.$ac_ext" >&5
12995 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12996 # will be set on completion of the AC_TRY_LINK below.
12997 cf_cv_header_path_utf8=
12998 cf_cv_library_path_utf8=
13000 echo "${as_me:-configure}:13000: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
13002 cf_save_LIBS="$LIBS"
13004 cat >"conftest.$ac_ext" <<_ACEOF
13005 #line 13005 "configure"
13006 #include "confdefs.h"
13008 #include <libutf8.h>
13017 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13018 if { (eval echo "$as_me:13018: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13021 echo "$as_me:13021: \$? = $ac_status" >&5
13022 (exit "$ac_status"); } &&
13023 { ac_try='test -s "conftest$ac_exeext"'
13024 { (eval echo "$as_me:13024: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:13027: \$? = $ac_status" >&5
13028 (exit "$ac_status"); }; }; then
13030 cf_cv_find_linkage_utf8=yes
13031 cf_cv_header_path_utf8=/usr/include
13032 cf_cv_library_path_utf8=/usr/lib
13035 echo "$as_me: failed program was:" >&5
13036 cat "conftest.$ac_ext" >&5
13038 LIBS="-lutf8 $cf_save_LIBS"
13040 cat >"conftest.$ac_ext" <<_ACEOF
13041 #line 13041 "configure"
13042 #include "confdefs.h"
13044 #include <libutf8.h>
13053 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13054 if { (eval echo "$as_me:13054: \"$ac_link\"") >&5
13055 (eval $ac_link) 2>&5
13057 echo "$as_me:13057: \$? = $ac_status" >&5
13058 (exit "$ac_status"); } &&
13059 { ac_try='test -s "conftest$ac_exeext"'
13060 { (eval echo "$as_me:13060: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 (exit "$ac_status"); }; }; then
13066 cf_cv_find_linkage_utf8=yes
13067 cf_cv_header_path_utf8=/usr/include
13068 cf_cv_library_path_utf8=/usr/lib
13069 cf_cv_library_file_utf8="-lutf8"
13072 echo "$as_me: failed program was:" >&5
13073 cat "conftest.$ac_ext" >&5
13075 cf_cv_find_linkage_utf8=no
13076 LIBS="$cf_save_LIBS"
13078 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
13080 echo "${as_me:-configure}:13080: testing find linkage for utf8 library ..." 1>&5
13082 echo "${as_me:-configure}:13082: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
13084 cf_save_CPPFLAGS="$CPPFLAGS"
13085 cf_test_CPPFLAGS="$CPPFLAGS"
13089 # collect the current set of include-directories from compiler flags
13090 cf_header_path_list=""
13091 if test -n "${CFLAGS}${CPPFLAGS}" ; then
13092 for cf_header_path in $CPPFLAGS $CFLAGS
13094 case "$cf_header_path" in
13096 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
13098 test "x$cf_header_path" != "xNONE" && \
13099 test -d "$cf_header_path" && \
13101 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
13102 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
13103 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
13104 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
13105 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
13106 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
13109 cf_header_path_list="$cf_header_path_list $cf_search"
13115 # add the variations for the package we are looking for
13119 test "x$prefix" != "xNONE" && \
13120 test -d "$prefix" && \
13122 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
13123 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
13124 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
13125 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
13126 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
13127 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
13130 for cf_subdir_prefix in \
13139 test "x$cf_subdir_prefix" != "x$prefix" && \
13140 test -d "$cf_subdir_prefix" && \
13141 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13142 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
13143 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
13144 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
13145 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
13146 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
13147 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
13152 test "$includedir" != NONE && \
13153 test "$includedir" != "/usr/include" && \
13154 test -d "$includedir" && {
13155 test -d "$includedir" && cf_search="$cf_search $includedir"
13156 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
13159 test "$oldincludedir" != NONE && \
13160 test "$oldincludedir" != "/usr/include" && \
13161 test -d "$oldincludedir" && {
13162 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
13163 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
13166 cf_search="$cf_search $cf_header_path_list"
13168 for cf_cv_header_path_utf8 in $cf_search
13170 if test -d "$cf_cv_header_path_utf8" ; then
13171 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
13173 echo "${as_me:-configure}:13173: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
13175 CPPFLAGS="$cf_save_CPPFLAGS"
13177 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13178 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
13180 cat >"conftest.$ac_ext" <<_ACEOF
13181 #line 13181 "configure"
13182 #include "confdefs.h"
13184 #include <libutf8.h>
13193 rm -f "conftest.$ac_objext"
13194 if { (eval echo "$as_me:13194: \"$ac_compile\"") >&5
13195 (eval $ac_compile) 2>&5
13197 echo "$as_me:13197: \$? = $ac_status" >&5
13198 (exit "$ac_status"); } &&
13199 { ac_try='test -s "conftest.$ac_objext"'
13200 { (eval echo "$as_me:13200: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 echo "$as_me:13203: \$? = $ac_status" >&5
13204 (exit "$ac_status"); }; }; then
13206 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
13208 echo "${as_me:-configure}:13208: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
13210 cf_cv_find_linkage_utf8=maybe
13211 cf_test_CPPFLAGS="$CPPFLAGS"
13214 echo "$as_me: failed program was:" >&5
13215 cat "conftest.$ac_ext" >&5
13217 CPPFLAGS="$cf_save_CPPFLAGS"
13220 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13224 if test "$cf_cv_find_linkage_utf8" = maybe ; then
13226 echo "${as_me:-configure}:13226: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
13228 cf_save_LIBS="$LIBS"
13229 cf_save_LDFLAGS="$LDFLAGS"
13231 if test "$cf_cv_find_linkage_utf8" != yes ; then
13234 cf_library_path_list=""
13235 if test -n "${LDFLAGS}${LIBS}" ; then
13236 for cf_library_path in $LDFLAGS $LIBS
13238 case "$cf_library_path" in
13240 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
13242 test "x$cf_library_path" != "xNONE" && \
13243 test -d "$cf_library_path" && \
13245 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
13246 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
13247 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
13248 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
13249 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
13250 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
13253 cf_library_path_list="$cf_library_path_list $cf_search"
13261 test "x$prefix" != "xNONE" && \
13262 test -d "$prefix" && \
13264 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
13265 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
13266 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
13267 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
13268 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
13269 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
13272 for cf_subdir_prefix in \
13281 test "x$cf_subdir_prefix" != "x$prefix" && \
13282 test -d "$cf_subdir_prefix" && \
13283 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13284 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
13285 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
13286 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
13287 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
13288 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
13289 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
13294 cf_search="$cf_library_path_list $cf_search"
13296 for cf_cv_library_path_utf8 in $cf_search
13298 if test -d "$cf_cv_library_path_utf8" ; then
13299 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
13301 echo "${as_me:-configure}:13301: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
13303 CPPFLAGS="$cf_test_CPPFLAGS"
13304 LIBS="-lutf8 $cf_save_LIBS"
13305 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
13306 cat >"conftest.$ac_ext" <<_ACEOF
13307 #line 13307 "configure"
13308 #include "confdefs.h"
13310 #include <libutf8.h>
13319 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13320 if { (eval echo "$as_me:13320: \"$ac_link\"") >&5
13321 (eval $ac_link) 2>&5
13323 echo "$as_me:13323: \$? = $ac_status" >&5
13324 (exit "$ac_status"); } &&
13325 { ac_try='test -s "conftest$ac_exeext"'
13326 { (eval echo "$as_me:13326: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:13329: \$? = $ac_status" >&5
13330 (exit "$ac_status"); }; }; then
13332 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
13334 echo "${as_me:-configure}:13334: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
13336 cf_cv_find_linkage_utf8=yes
13337 cf_cv_library_file_utf8="-lutf8"
13340 echo "$as_me: failed program was:" >&5
13341 cat "conftest.$ac_ext" >&5
13343 CPPFLAGS="$cf_save_CPPFLAGS"
13344 LIBS="$cf_save_LIBS"
13345 LDFLAGS="$cf_save_LDFLAGS"
13348 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13351 CPPFLAGS="$cf_save_CPPFLAGS"
13352 LDFLAGS="$cf_save_LDFLAGS"
13356 cf_cv_find_linkage_utf8=no
13360 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13363 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13365 LIBS="$cf_save_LIBS"
13367 if test "$cf_cv_find_linkage_utf8" = yes ; then
13368 cf_cv_utf8_lib=add-on
13374 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13376 echo "$as_me:13376: result: $cf_cv_utf8_lib" >&5
13377 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
13379 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
13380 # ncurses/ncursesw:
13381 if test "$cf_cv_utf8_lib" = "add-on" ; then
13383 cat >>confdefs.h <<\EOF
13384 #define HAVE_LIBUTF8_H 1
13387 if test -n "$cf_cv_header_path_utf8" ; then
13388 for cf_add_incdir in $cf_cv_header_path_utf8
13390 while test "$cf_add_incdir" != /usr/include
13392 if test -d "$cf_add_incdir"
13395 if test -n "$CFLAGS$CPPFLAGS" ; then
13396 # a loop is needed to ensure we can add subdirs of existing dirs
13397 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13398 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13399 cf_have_incdir=yes; break
13404 if test "$cf_have_incdir" = no ; then
13405 if test "$cf_add_incdir" = /usr/local/include ; then
13406 if test "$GCC" = yes
13408 cf_save_CPPFLAGS=$CPPFLAGS
13410 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13411 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
13413 cat >"conftest.$ac_ext" <<_ACEOF
13414 #line 13414 "configure"
13415 #include "confdefs.h"
13425 rm -f "conftest.$ac_objext"
13426 if { (eval echo "$as_me:13426: \"$ac_compile\"") >&5
13427 (eval $ac_compile) 2>&5
13429 echo "$as_me:13429: \$? = $ac_status" >&5
13430 (exit "$ac_status"); } &&
13431 { ac_try='test -s "conftest.$ac_objext"'
13432 { (eval echo "$as_me:13432: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13435 echo "$as_me:13435: \$? = $ac_status" >&5
13436 (exit "$ac_status"); }; }; then
13439 echo "$as_me: failed program was:" >&5
13440 cat "conftest.$ac_ext" >&5
13443 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13444 CPPFLAGS=$cf_save_CPPFLAGS
13449 if test "$cf_have_incdir" = no ; then
13450 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13452 echo "${as_me:-configure}:13452: testing adding $cf_add_incdir to include-path ..." 1>&5
13454 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13456 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
13457 test "$cf_top_incdir" = "$cf_add_incdir" && break
13458 cf_add_incdir="$cf_top_incdir"
13469 if test -n "$cf_cv_library_path_utf8" ; then
13470 for cf_add_libdir in $cf_cv_library_path_utf8
13472 if test "$cf_add_libdir" = /usr/lib ; then
13474 elif test -d "$cf_add_libdir"
13477 if test -n "$LDFLAGS$LIBS" ; then
13478 # a loop is needed to ensure we can add subdirs of existing dirs
13479 for cf_test_libdir in $LDFLAGS $LIBS ; do
13480 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13481 cf_have_libdir=yes; break
13485 if test "$cf_have_libdir" = no ; then
13486 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13488 echo "${as_me:-configure}:13488: testing adding $cf_add_libdir to library-path ..." 1>&5
13490 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13496 cf_add_libs="$LIBS"
13499 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13500 # filter duplicates
13501 for cf_add_1lib in $cf_add_0lib; do
13502 for cf_add_2lib in $cf_add_libs; do
13503 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13508 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13510 LIBS="$cf_add_libs"
13514 if test "$cf_cv_utf8_lib" != no ; then
13519 # This is needed on Tru64 5.0 to declare mbstate_t
13520 echo "$as_me:13520: checking if we must include wchar.h to declare mbstate_t" >&5
13521 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13522 if test "${cf_cv_mbstate_t+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 cat >"conftest.$ac_ext" <<_ACEOF
13527 #line 13527 "configure"
13528 #include "confdefs.h"
13530 #include <stdlib.h>
13531 #include <stdarg.h>
13533 #ifdef HAVE_LIBUTF8_H
13534 #include <libutf8.h>
13544 rm -f "conftest.$ac_objext"
13545 if { (eval echo "$as_me:13545: \"$ac_compile\"") >&5
13546 (eval $ac_compile) 2>&5
13548 echo "$as_me:13548: \$? = $ac_status" >&5
13549 (exit "$ac_status"); } &&
13550 { ac_try='test -s "conftest.$ac_objext"'
13551 { (eval echo "$as_me:13551: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:13554: \$? = $ac_status" >&5
13555 (exit "$ac_status"); }; }; then
13558 echo "$as_me: failed program was:" >&5
13559 cat "conftest.$ac_ext" >&5
13560 cat >"conftest.$ac_ext" <<_ACEOF
13561 #line 13561 "configure"
13562 #include "confdefs.h"
13564 #include <stdlib.h>
13565 #include <stdarg.h>
13568 #ifdef HAVE_LIBUTF8_H
13569 #include <libutf8.h>
13579 rm -f "conftest.$ac_objext"
13580 if { (eval echo "$as_me:13580: \"$ac_compile\"") >&5
13581 (eval $ac_compile) 2>&5
13583 echo "$as_me:13583: \$? = $ac_status" >&5
13584 (exit "$ac_status"); } &&
13585 { ac_try='test -s "conftest.$ac_objext"'
13586 { (eval echo "$as_me:13586: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:13589: \$? = $ac_status" >&5
13590 (exit "$ac_status"); }; }; then
13591 cf_cv_mbstate_t=yes
13593 echo "$as_me: failed program was:" >&5
13594 cat "conftest.$ac_ext" >&5
13595 cf_cv_mbstate_t=unknown
13597 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13599 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13601 echo "$as_me:13601: result: $cf_cv_mbstate_t" >&5
13602 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13604 if test "$cf_cv_mbstate_t" = yes ; then
13606 cat >>confdefs.h <<\EOF
13607 #define NEED_WCHAR_H 1
13613 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13614 if test "$cf_cv_mbstate_t" = unknown ; then
13615 NCURSES_MBSTATE_T=1
13618 # This is needed on Tru64 5.0 to declare wchar_t
13619 echo "$as_me:13619: checking if we must include wchar.h to declare wchar_t" >&5
13620 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13621 if test "${cf_cv_wchar_t+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 cat >"conftest.$ac_ext" <<_ACEOF
13626 #line 13626 "configure"
13627 #include "confdefs.h"
13629 #include <stdlib.h>
13630 #include <stdarg.h>
13632 #ifdef HAVE_LIBUTF8_H
13633 #include <libutf8.h>
13643 rm -f "conftest.$ac_objext"
13644 if { (eval echo "$as_me:13644: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>&5
13647 echo "$as_me:13647: \$? = $ac_status" >&5
13648 (exit "$ac_status"); } &&
13649 { ac_try='test -s "conftest.$ac_objext"'
13650 { (eval echo "$as_me:13650: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13653 echo "$as_me:13653: \$? = $ac_status" >&5
13654 (exit "$ac_status"); }; }; then
13657 echo "$as_me: failed program was:" >&5
13658 cat "conftest.$ac_ext" >&5
13659 cat >"conftest.$ac_ext" <<_ACEOF
13660 #line 13660 "configure"
13661 #include "confdefs.h"
13663 #include <stdlib.h>
13664 #include <stdarg.h>
13667 #ifdef HAVE_LIBUTF8_H
13668 #include <libutf8.h>
13678 rm -f "conftest.$ac_objext"
13679 if { (eval echo "$as_me:13679: \"$ac_compile\"") >&5
13680 (eval $ac_compile) 2>&5
13682 echo "$as_me:13682: \$? = $ac_status" >&5
13683 (exit "$ac_status"); } &&
13684 { ac_try='test -s "conftest.$ac_objext"'
13685 { (eval echo "$as_me:13685: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:13688: \$? = $ac_status" >&5
13689 (exit "$ac_status"); }; }; then
13692 echo "$as_me: failed program was:" >&5
13693 cat "conftest.$ac_ext" >&5
13694 cf_cv_wchar_t=unknown
13696 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13698 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13700 echo "$as_me:13700: result: $cf_cv_wchar_t" >&5
13701 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13703 if test "$cf_cv_wchar_t" = yes ; then
13705 cat >>confdefs.h <<\EOF
13706 #define NEED_WCHAR_H 1
13712 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13713 if test "$cf_cv_wchar_t" = unknown ; then
13717 # if we find wchar_t in either place, use substitution to provide a fallback.
13718 if test "$cf_cv_wchar_t" != unknown ; then
13719 NCURSES_OK_WCHAR_T=1
13722 # This is needed on Tru64 5.0 to declare wint_t
13723 echo "$as_me:13723: checking if we must include wchar.h to declare wint_t" >&5
13724 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13725 if test "${cf_cv_wint_t+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 cat >"conftest.$ac_ext" <<_ACEOF
13730 #line 13730 "configure"
13731 #include "confdefs.h"
13733 #include <stdlib.h>
13734 #include <stdarg.h>
13736 #ifdef HAVE_LIBUTF8_H
13737 #include <libutf8.h>
13747 rm -f "conftest.$ac_objext"
13748 if { (eval echo "$as_me:13748: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>&5
13751 echo "$as_me:13751: \$? = $ac_status" >&5
13752 (exit "$ac_status"); } &&
13753 { ac_try='test -s "conftest.$ac_objext"'
13754 { (eval echo "$as_me:13754: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:13757: \$? = $ac_status" >&5
13758 (exit "$ac_status"); }; }; then
13761 echo "$as_me: failed program was:" >&5
13762 cat "conftest.$ac_ext" >&5
13763 cat >"conftest.$ac_ext" <<_ACEOF
13764 #line 13764 "configure"
13765 #include "confdefs.h"
13767 #include <stdlib.h>
13768 #include <stdarg.h>
13771 #ifdef HAVE_LIBUTF8_H
13772 #include <libutf8.h>
13782 rm -f "conftest.$ac_objext"
13783 if { (eval echo "$as_me:13783: \"$ac_compile\"") >&5
13784 (eval $ac_compile) 2>&5
13786 echo "$as_me:13786: \$? = $ac_status" >&5
13787 (exit "$ac_status"); } &&
13788 { ac_try='test -s "conftest.$ac_objext"'
13789 { (eval echo "$as_me:13789: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:13792: \$? = $ac_status" >&5
13793 (exit "$ac_status"); }; }; then
13796 echo "$as_me: failed program was:" >&5
13797 cat "conftest.$ac_ext" >&5
13798 cf_cv_wint_t=unknown
13800 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13802 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13804 echo "$as_me:13804: result: $cf_cv_wint_t" >&5
13805 echo "${ECHO_T}$cf_cv_wint_t" >&6
13807 if test "$cf_cv_wint_t" = yes ; then
13809 cat >>confdefs.h <<\EOF
13810 #define NEED_WCHAR_H 1
13816 # if we do not find wint_t in either place, use substitution to provide a fallback.
13817 if test "$cf_cv_wint_t" = unknown ; then
13821 # if we find wint_t in either place, use substitution to provide a fallback.
13822 if test "$cf_cv_wint_t" != unknown ; then
13823 NCURSES_OK_WINT_T=1
13826 if test "$NCURSES_MBSTATE_T" != 0; then
13828 cat >>confdefs.h <<\EOF
13829 #define NEED_MBSTATE_T_DEF 1
13835 ### use option --disable-lp64 to allow long chtype
13836 echo "$as_me:13836: checking whether to enable _LP64 definition in curses.h" >&5
13837 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13839 # Check whether --enable-lp64 or --disable-lp64 was given.
13840 if test "${enable_lp64+set}" = set; then
13841 enableval="$enable_lp64"
13842 with_lp64=$enableval
13844 with_lp64=$cf_dft_with_lp64
13846 echo "$as_me:13846: result: $with_lp64" >&5
13847 echo "${ECHO_T}$with_lp64" >&6
13849 if test "x$with_lp64" = xyes ; then
13850 cf_cv_enable_lp64=1
13852 cf_cv_enable_lp64=0
13855 # Check whether --enable-largefile or --disable-largefile was given.
13856 if test "${enable_largefile+set}" = set; then
13857 enableval="$enable_largefile"
13860 if test "$enable_largefile" != no; then
13862 echo "$as_me:13862: checking for special C compiler options needed for large files" >&5
13863 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13864 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 ac_cv_sys_largefile_CC=no
13868 if test "$GCC" != yes; then
13871 # IRIX 6.2 and later do not support large files by default,
13872 # so use the C compiler's -n32 option if that helps.
13873 cat >"conftest.$ac_ext" <<_ACEOF
13874 #line 13874 "configure"
13875 #include "confdefs.h"
13876 #include <sys/types.h>
13877 /* Check that off_t can represent 2**63 - 1 correctly.
13878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13879 since some C++ compilers masquerading as C compilers
13880 incorrectly reject 9223372036854775807. */
13881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13883 && LARGE_OFF_T % 2147483647 == 1)
13893 rm -f "conftest.$ac_objext"
13894 if { (eval echo "$as_me:13894: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>&5
13897 echo "$as_me:13897: \$? = $ac_status" >&5
13898 (exit "$ac_status"); } &&
13899 { ac_try='test -s "conftest.$ac_objext"'
13900 { (eval echo "$as_me:13900: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13903 echo "$as_me:13903: \$? = $ac_status" >&5
13904 (exit "$ac_status"); }; }; then
13907 echo "$as_me: failed program was:" >&5
13908 cat "conftest.$ac_ext" >&5
13910 rm -f "conftest.$ac_objext"
13912 rm -f "conftest.$ac_objext"
13913 if { (eval echo "$as_me:13913: \"$ac_compile\"") >&5
13914 (eval $ac_compile) 2>&5
13916 echo "$as_me:13916: \$? = $ac_status" >&5
13917 (exit "$ac_status"); } &&
13918 { ac_try='test -s "conftest.$ac_objext"'
13919 { (eval echo "$as_me:13919: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:13922: \$? = $ac_status" >&5
13923 (exit "$ac_status"); }; }; then
13924 ac_cv_sys_largefile_CC=' -n32'; break
13926 echo "$as_me: failed program was:" >&5
13927 cat "conftest.$ac_ext" >&5
13929 rm -f "conftest.$ac_objext"
13933 rm -f "conftest.$ac_ext"
13936 echo "$as_me:13936: result: $ac_cv_sys_largefile_CC" >&5
13937 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13938 if test "$ac_cv_sys_largefile_CC" != no; then
13939 CC=$CC$ac_cv_sys_largefile_CC
13942 echo "$as_me:13942: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13943 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13944 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 ac_cv_sys_file_offset_bits=no
13949 cat >"conftest.$ac_ext" <<_ACEOF
13950 #line 13950 "configure"
13951 #include "confdefs.h"
13952 #include <sys/types.h>
13953 /* Check that off_t can represent 2**63 - 1 correctly.
13954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13955 since some C++ compilers masquerading as C compilers
13956 incorrectly reject 9223372036854775807. */
13957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13959 && LARGE_OFF_T % 2147483647 == 1)
13969 rm -f "conftest.$ac_objext"
13970 if { (eval echo "$as_me:13970: \"$ac_compile\"") >&5
13971 (eval $ac_compile) 2>&5
13973 echo "$as_me:13973: \$? = $ac_status" >&5
13974 (exit "$ac_status"); } &&
13975 { ac_try='test -s "conftest.$ac_objext"'
13976 { (eval echo "$as_me:13976: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:13979: \$? = $ac_status" >&5
13980 (exit "$ac_status"); }; }; then
13983 echo "$as_me: failed program was:" >&5
13984 cat "conftest.$ac_ext" >&5
13986 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13987 cat >"conftest.$ac_ext" <<_ACEOF
13988 #line 13988 "configure"
13989 #include "confdefs.h"
13990 #define _FILE_OFFSET_BITS 64
13991 #include <sys/types.h>
13992 /* Check that off_t can represent 2**63 - 1 correctly.
13993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13994 since some C++ compilers masquerading as C compilers
13995 incorrectly reject 9223372036854775807. */
13996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13998 && LARGE_OFF_T % 2147483647 == 1)
14008 rm -f "conftest.$ac_objext"
14009 if { (eval echo "$as_me:14009: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>&5
14012 echo "$as_me:14012: \$? = $ac_status" >&5
14013 (exit "$ac_status"); } &&
14014 { ac_try='test -s "conftest.$ac_objext"'
14015 { (eval echo "$as_me:14015: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:14018: \$? = $ac_status" >&5
14019 (exit "$ac_status"); }; }; then
14020 ac_cv_sys_file_offset_bits=64; break
14022 echo "$as_me: failed program was:" >&5
14023 cat "conftest.$ac_ext" >&5
14025 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14029 echo "$as_me:14029: result: $ac_cv_sys_file_offset_bits" >&5
14030 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14031 if test "$ac_cv_sys_file_offset_bits" != no; then
14033 cat >>confdefs.h <<EOF
14034 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14039 echo "$as_me:14039: checking for _LARGE_FILES value needed for large files" >&5
14040 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14041 if test "${ac_cv_sys_large_files+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 ac_cv_sys_large_files=no
14046 cat >"conftest.$ac_ext" <<_ACEOF
14047 #line 14047 "configure"
14048 #include "confdefs.h"
14049 #include <sys/types.h>
14050 /* Check that off_t can represent 2**63 - 1 correctly.
14051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14052 since some C++ compilers masquerading as C compilers
14053 incorrectly reject 9223372036854775807. */
14054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14056 && LARGE_OFF_T % 2147483647 == 1)
14066 rm -f "conftest.$ac_objext"
14067 if { (eval echo "$as_me:14067: \"$ac_compile\"") >&5
14068 (eval $ac_compile) 2>&5
14070 echo "$as_me:14070: \$? = $ac_status" >&5
14071 (exit "$ac_status"); } &&
14072 { ac_try='test -s "conftest.$ac_objext"'
14073 { (eval echo "$as_me:14073: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:14076: \$? = $ac_status" >&5
14077 (exit "$ac_status"); }; }; then
14080 echo "$as_me: failed program was:" >&5
14081 cat "conftest.$ac_ext" >&5
14083 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14084 cat >"conftest.$ac_ext" <<_ACEOF
14085 #line 14085 "configure"
14086 #include "confdefs.h"
14087 #define _LARGE_FILES 1
14088 #include <sys/types.h>
14089 /* Check that off_t can represent 2**63 - 1 correctly.
14090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14091 since some C++ compilers masquerading as C compilers
14092 incorrectly reject 9223372036854775807. */
14093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14095 && LARGE_OFF_T % 2147483647 == 1)
14105 rm -f "conftest.$ac_objext"
14106 if { (eval echo "$as_me:14106: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>&5
14109 echo "$as_me:14109: \$? = $ac_status" >&5
14110 (exit "$ac_status"); } &&
14111 { ac_try='test -s "conftest.$ac_objext"'
14112 { (eval echo "$as_me:14112: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:14115: \$? = $ac_status" >&5
14116 (exit "$ac_status"); }; }; then
14117 ac_cv_sys_large_files=1; break
14119 echo "$as_me: failed program was:" >&5
14120 cat "conftest.$ac_ext" >&5
14122 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14126 echo "$as_me:14126: result: $ac_cv_sys_large_files" >&5
14127 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14128 if test "$ac_cv_sys_large_files" != no; then
14130 cat >>confdefs.h <<EOF
14131 #define _LARGE_FILES $ac_cv_sys_large_files
14138 if test "$enable_largefile" != no ; then
14139 echo "$as_me:14139: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14140 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14141 if test "${ac_cv_sys_largefile_source+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 ac_cv_sys_largefile_source=no
14146 cat >"conftest.$ac_ext" <<_ACEOF
14147 #line 14147 "configure"
14148 #include "confdefs.h"
14158 rm -f "conftest.$ac_objext"
14159 if { (eval echo "$as_me:14159: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>&5
14162 echo "$as_me:14162: \$? = $ac_status" >&5
14163 (exit "$ac_status"); } &&
14164 { ac_try='test -s "conftest.$ac_objext"'
14165 { (eval echo "$as_me:14165: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:14168: \$? = $ac_status" >&5
14169 (exit "$ac_status"); }; }; then
14172 echo "$as_me: failed program was:" >&5
14173 cat "conftest.$ac_ext" >&5
14175 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14176 cat >"conftest.$ac_ext" <<_ACEOF
14177 #line 14177 "configure"
14178 #include "confdefs.h"
14179 #define _LARGEFILE_SOURCE 1
14189 rm -f "conftest.$ac_objext"
14190 if { (eval echo "$as_me:14190: \"$ac_compile\"") >&5
14191 (eval $ac_compile) 2>&5
14193 echo "$as_me:14193: \$? = $ac_status" >&5
14194 (exit "$ac_status"); } &&
14195 { ac_try='test -s "conftest.$ac_objext"'
14196 { (eval echo "$as_me:14196: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14199 echo "$as_me:14199: \$? = $ac_status" >&5
14200 (exit "$ac_status"); }; }; then
14201 ac_cv_sys_largefile_source=1; break
14203 echo "$as_me: failed program was:" >&5
14204 cat "conftest.$ac_ext" >&5
14206 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14210 echo "$as_me:14210: result: $ac_cv_sys_largefile_source" >&5
14211 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14212 if test "$ac_cv_sys_largefile_source" != no; then
14214 cat >>confdefs.h <<EOF
14215 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14221 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14222 # in glibc 2.1.3, but that breaks too many other things.
14223 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14224 echo "$as_me:14224: checking for fseeko" >&5
14225 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14226 if test "${ac_cv_func_fseeko+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 cat >"conftest.$ac_ext" <<_ACEOF
14230 #line 14230 "configure"
14231 #include "confdefs.h"
14236 return fseeko && fseeko (stdin, 0, 0);
14241 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14242 if { (eval echo "$as_me:14242: \"$ac_link\"") >&5
14243 (eval $ac_link) 2>&5
14245 echo "$as_me:14245: \$? = $ac_status" >&5
14246 (exit "$ac_status"); } &&
14247 { ac_try='test -s "conftest$ac_exeext"'
14248 { (eval echo "$as_me:14248: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:14251: \$? = $ac_status" >&5
14252 (exit "$ac_status"); }; }; then
14253 ac_cv_func_fseeko=yes
14255 echo "$as_me: failed program was:" >&5
14256 cat "conftest.$ac_ext" >&5
14257 ac_cv_func_fseeko=no
14259 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14261 echo "$as_me:14261: result: $ac_cv_func_fseeko" >&5
14262 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14263 if test $ac_cv_func_fseeko = yes; then
14265 cat >>confdefs.h <<\EOF
14266 #define HAVE_FSEEKO 1
14271 # Normally we would collect these definitions in the config.h,
14272 # but (like _XOPEN_SOURCE), some environments rely on having these
14273 # defined before any of the system headers are included. Another
14274 # case comes up with C++, e.g., on AIX the compiler compiles the
14275 # header files by themselves before looking at the body files it is
14276 # told to compile. For ncurses, those header files do not include
14278 if test "$ac_cv_sys_large_files" != no
14281 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14282 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
14285 if test "$ac_cv_sys_largefile_source" != no
14288 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14289 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
14292 if test "$ac_cv_sys_file_offset_bits" != no
14295 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14296 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
14300 echo "$as_me:14300: checking whether to use struct dirent64" >&5
14301 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
14302 if test "${cf_cv_struct_dirent64+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 cat >"conftest.$ac_ext" <<_ACEOF
14307 #line 14307 "configure"
14308 #include "confdefs.h"
14310 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
14311 #include <sys/types.h>
14312 #include <dirent.h>
14318 /* if transitional largefile support is setup, this is true */
14319 extern struct dirent64 * readdir(DIR *);
14320 struct dirent64 *x = readdir((DIR *)0);
14321 struct dirent *y = readdir((DIR *)0);
14329 rm -f "conftest.$ac_objext"
14330 if { (eval echo "$as_me:14330: \"$ac_compile\"") >&5
14331 (eval $ac_compile) 2>&5
14333 echo "$as_me:14333: \$? = $ac_status" >&5
14334 (exit "$ac_status"); } &&
14335 { ac_try='test -s "conftest.$ac_objext"'
14336 { (eval echo "$as_me:14336: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:14339: \$? = $ac_status" >&5
14340 (exit "$ac_status"); }; }; then
14341 cf_cv_struct_dirent64=yes
14343 echo "$as_me: failed program was:" >&5
14344 cat "conftest.$ac_ext" >&5
14345 cf_cv_struct_dirent64=no
14347 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14350 echo "$as_me:14350: result: $cf_cv_struct_dirent64" >&5
14351 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
14352 test "$cf_cv_struct_dirent64" = yes &&
14353 cat >>confdefs.h <<\EOF
14354 #define HAVE_STRUCT_DIRENT64 1
14359 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
14360 echo "$as_me:14360: checking if you want tparm not to use X/Open fixed-parameter list" >&5
14361 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
14363 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
14364 if test "${enable_tparm_varargs+set}" = set; then
14365 enableval="$enable_tparm_varargs"
14366 with_tparm_varargs=$enableval
14368 with_tparm_varargs=yes
14370 echo "$as_me:14370: result: $with_tparm_varargs" >&5
14371 echo "${ECHO_T}$with_tparm_varargs" >&6
14372 NCURSES_TPARM_VARARGS=0
14373 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
14375 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
14376 if test "$with_ticlib" != no ; then
14377 echo "$as_me:14377: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
14378 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
14380 # Check whether --enable-tic-depends or --disable-tic-depends was given.
14381 if test "${enable_tic_depends+set}" = set; then
14382 enableval="$enable_tic_depends"
14383 with_tic_depends=$enableval
14385 with_tic_depends=yes
14387 echo "$as_me:14387: result: $with_tic_depends" >&5
14388 echo "${ECHO_T}$with_tic_depends" >&6
14390 with_tic_depends=no
14393 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
14394 echo "$as_me:14394: checking if you want to enable wattr* macros" >&5
14395 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
14397 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
14398 if test "${enable_wattr_macros+set}" = set; then
14399 enableval="$enable_wattr_macros"
14400 with_wattr_macros=$enableval
14402 with_wattr_macros=no
14404 if [ "x$with_wattr_macros" != xyes ]; then
14405 NCURSES_WATTR_MACROS=0
14406 echo "$as_me:14406: result: no" >&5
14407 echo "${ECHO_T}no" >&6
14409 NCURSES_WATTR_MACROS=1
14410 echo "$as_me:14410: result: yes" >&5
14411 echo "${ECHO_T}yes" >&6
14414 echo "$as_me:14414: checking for X11 rgb file" >&5
14415 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
14417 # Check whether --with-x11-rgb or --without-x11-rgb was given.
14418 if test "${with_x11_rgb+set}" = set; then
14419 withval="$with_x11_rgb"
14425 if test "x$RGB_PATH" = xauto
14427 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14429 /opt/local/share/X11/rgb.txt \
14430 /opt/X11/share/X11/rgb.txt \
14431 /usr/share/X11/rgb.txt \
14432 /usr/X11/share/X11/rgb.txt \
14433 /usr/X11/lib/X11/rgb.txt \
14434 /usr/lib/X11/rgb.txt \
14436 /usr/pkg/lib/X11/rgb.txt \
14437 /usr/X11R7/lib/X11/rgb.txt \
14438 /usr/X11R6/lib/X11/rgb.txt \
14439 /usr/X11R5/lib/X11/rgb.txt \
14440 /usr/X11R4/lib/X11/rgb.txt \
14441 /usr/local/lib/X11/rgb.txt \
14442 /usr/local/share/X11/rgb.txt \
14443 /usr/lib64/X11/rgb.txt
14445 if test -f "$cf_path" ; then
14446 RGB_PATH="$cf_path"
14453 if test "x$prefix" != xNONE; then
14454 cf_path_syntax="$prefix"
14456 cf_path_syntax="$ac_default_prefix"
14459 case ".$cf_path" in
14460 (.\$\(*\)*|.\'*\'*)
14464 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14466 (.\$\{*prefix\}*|.\$\{*dir\}*)
14467 eval cf_path="$cf_path"
14468 case ".$cf_path" in
14470 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14475 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14478 { { echo "$as_me:14478: error: expected a pathname, not \"$cf_path\"" >&5
14479 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14480 { (exit 1); exit 1; }; }
14486 echo "$as_me:14486: result: $RGB_PATH" >&5
14487 echo "${ECHO_T}$RGB_PATH" >&6
14489 cat >>confdefs.h <<EOF
14490 #define RGB_PATH "$cf_path"
14494 if test "$RGB_PATH" = no
14499 ### use option --with-bool to override bool's type
14500 echo "$as_me:14500: checking for type of bool" >&5
14501 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
14503 # Check whether --with-bool or --without-bool was given.
14504 if test "${with_bool+set}" = set; then
14505 withval="$with_bool"
14506 NCURSES_BOOL="$withval"
14510 echo "$as_me:14510: result: $NCURSES_BOOL" >&5
14511 echo "${ECHO_T}$NCURSES_BOOL" >&6
14513 echo "$as_me:14513: checking for alternate terminal capabilities file" >&5
14514 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
14516 # Check whether --with-caps or --without-caps was given.
14517 if test "${with_caps+set}" = set; then
14518 withval="$with_caps"
14519 TERMINFO_CAPS=Caps.$withval
14523 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
14525 { echo "$as_me:14525: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
14526 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
14529 echo "$as_me:14529: result: $TERMINFO_CAPS" >&5
14530 echo "${ECHO_T}$TERMINFO_CAPS" >&6
14532 ### use option --with-chtype to override chtype's type
14533 echo "$as_me:14533: checking for type of chtype" >&5
14534 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14536 # Check whether --with-chtype or --without-chtype was given.
14537 if test "${with_chtype+set}" = set; then
14538 withval="$with_chtype"
14539 NCURSES_CHTYPE="$withval"
14541 NCURSES_CHTYPE=$cf_dft_chtype
14543 echo "$as_me:14543: result: $NCURSES_CHTYPE" >&5
14544 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
14546 ### use option --with-ospeed to override ospeed's type
14547 echo "$as_me:14547: checking for type of ospeed" >&5
14548 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
14550 # Check whether --with-ospeed or --without-ospeed was given.
14551 if test "${with_ospeed+set}" = set; then
14552 withval="$with_ospeed"
14553 NCURSES_OSPEED="$withval"
14555 NCURSES_OSPEED=short
14557 echo "$as_me:14557: result: $NCURSES_OSPEED" >&5
14558 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14560 ### use option --with-mmask-t to override mmask_t's type
14561 echo "$as_me:14561: checking for type of mmask_t" >&5
14562 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
14564 # Check whether --with-mmask-t or --without-mmask-t was given.
14565 if test "${with_mmask_t+set}" = set; then
14566 withval="$with_mmask_t"
14567 NCURSES_MMASK_T="$withval"
14569 NCURSES_MMASK_T=$cf_dft_mmask_t
14571 echo "$as_me:14571: result: $NCURSES_MMASK_T" >&5
14572 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14574 ### use option --with-ccharw-max to override CCHARW_MAX size
14575 echo "$as_me:14575: checking for size CCHARW_MAX" >&5
14576 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14578 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14579 if test "${with_ccharw_max+set}" = set; then
14580 withval="$with_ccharw_max"
14581 NCURSES_CCHARW_MAX="$withval"
14583 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14585 echo "$as_me:14585: result: $NCURSES_CCHARW_MAX" >&5
14586 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14588 echo "$as_me:14588: checking for signed char" >&5
14589 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14590 if test "${ac_cv_type_signed_char+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 cat >"conftest.$ac_ext" <<_ACEOF
14594 #line 14594 "configure"
14595 #include "confdefs.h"
14596 $ac_includes_default
14600 if ((signed char *) 0)
14602 if (sizeof (signed char))
14608 rm -f "conftest.$ac_objext"
14609 if { (eval echo "$as_me:14609: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14612 echo "$as_me:14612: \$? = $ac_status" >&5
14613 (exit "$ac_status"); } &&
14614 { ac_try='test -s "conftest.$ac_objext"'
14615 { (eval echo "$as_me:14615: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:14618: \$? = $ac_status" >&5
14619 (exit "$ac_status"); }; }; then
14620 ac_cv_type_signed_char=yes
14622 echo "$as_me: failed program was:" >&5
14623 cat "conftest.$ac_ext" >&5
14624 ac_cv_type_signed_char=no
14626 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14628 echo "$as_me:14628: result: $ac_cv_type_signed_char" >&5
14629 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14631 echo "$as_me:14631: checking size of signed char" >&5
14632 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14633 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 if test "$ac_cv_type_signed_char" = yes; then
14637 if test "$cross_compiling" = yes; then
14638 # Depending upon the size, compute the lo and hi bounds.
14639 cat >"conftest.$ac_ext" <<_ACEOF
14640 #line 14640 "configure"
14641 #include "confdefs.h"
14642 $ac_includes_default
14646 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14651 rm -f "conftest.$ac_objext"
14652 if { (eval echo "$as_me:14652: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>&5
14655 echo "$as_me:14655: \$? = $ac_status" >&5
14656 (exit "$ac_status"); } &&
14657 { ac_try='test -s "conftest.$ac_objext"'
14658 { (eval echo "$as_me:14658: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:14661: \$? = $ac_status" >&5
14662 (exit "$ac_status"); }; }; then
14665 cat >"conftest.$ac_ext" <<_ACEOF
14666 #line 14666 "configure"
14667 #include "confdefs.h"
14668 $ac_includes_default
14672 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14677 rm -f "conftest.$ac_objext"
14678 if { (eval echo "$as_me:14678: \"$ac_compile\"") >&5
14679 (eval $ac_compile) 2>&5
14681 echo "$as_me:14681: \$? = $ac_status" >&5
14682 (exit "$ac_status"); } &&
14683 { ac_try='test -s "conftest.$ac_objext"'
14684 { (eval echo "$as_me:14684: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14687 echo "$as_me:14687: \$? = $ac_status" >&5
14688 (exit "$ac_status"); }; }; then
14689 ac_hi=$ac_mid; break
14691 echo "$as_me: failed program was:" >&5
14692 cat "conftest.$ac_ext" >&5
14693 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14695 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14698 echo "$as_me: failed program was:" >&5
14699 cat "conftest.$ac_ext" >&5
14702 cat >"conftest.$ac_ext" <<_ACEOF
14703 #line 14703 "configure"
14704 #include "confdefs.h"
14705 $ac_includes_default
14709 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14714 rm -f "conftest.$ac_objext"
14715 if { (eval echo "$as_me:14715: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>&5
14718 echo "$as_me:14718: \$? = $ac_status" >&5
14719 (exit "$ac_status"); } &&
14720 { ac_try='test -s "conftest.$ac_objext"'
14721 { (eval echo "$as_me:14721: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:14724: \$? = $ac_status" >&5
14725 (exit "$ac_status"); }; }; then
14726 ac_lo=$ac_mid; break
14728 echo "$as_me: failed program was:" >&5
14729 cat "conftest.$ac_ext" >&5
14730 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14732 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14735 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14736 # Binary search between lo and hi bounds.
14737 while test "x$ac_lo" != "x$ac_hi"; do
14738 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14739 cat >"conftest.$ac_ext" <<_ACEOF
14740 #line 14740 "configure"
14741 #include "confdefs.h"
14742 $ac_includes_default
14746 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14751 rm -f "conftest.$ac_objext"
14752 if { (eval echo "$as_me:14752: \"$ac_compile\"") >&5
14753 (eval $ac_compile) 2>&5
14755 echo "$as_me:14755: \$? = $ac_status" >&5
14756 (exit "$ac_status"); } &&
14757 { ac_try='test -s "conftest.$ac_objext"'
14758 { (eval echo "$as_me:14758: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:14761: \$? = $ac_status" >&5
14762 (exit "$ac_status"); }; }; then
14765 echo "$as_me: failed program was:" >&5
14766 cat "conftest.$ac_ext" >&5
14767 ac_lo=`expr "$ac_mid" + 1`
14769 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14771 ac_cv_sizeof_signed_char=$ac_lo
14773 if test "$cross_compiling" = yes; then
14774 { { echo "$as_me:14774: error: cannot run test program while cross compiling" >&5
14775 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14776 { (exit 1); exit 1; }; }
14778 cat >"conftest.$ac_ext" <<_ACEOF
14779 #line 14779 "configure"
14780 #include "confdefs.h"
14781 $ac_includes_default
14785 FILE *f = fopen ("conftest.val", "w");
14787 $ac_main_return (1);
14788 fprintf (f, "%ld", (long)(sizeof (signed char)));
14794 rm -f "conftest$ac_exeext"
14795 if { (eval echo "$as_me:14795: \"$ac_link\"") >&5
14796 (eval $ac_link) 2>&5
14798 echo "$as_me:14798: \$? = $ac_status" >&5
14799 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14800 { (eval echo "$as_me:14800: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:14803: \$? = $ac_status" >&5
14804 (exit "$ac_status"); }; }; then
14805 ac_cv_sizeof_signed_char=`cat conftest.val`
14807 echo "$as_me: program exited with status $ac_status" >&5
14808 echo "$as_me: failed program was:" >&5
14809 cat "conftest.$ac_ext" >&5
14811 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14816 ac_cv_sizeof_signed_char=0
14819 echo "$as_me:14819: result: $ac_cv_sizeof_signed_char" >&5
14820 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14821 cat >>confdefs.h <<EOF
14822 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14825 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14826 NCURSES_SBOOL="signed char"
14828 NCURSES_SBOOL="char"
14830 echo "$as_me:14830: checking if you want to use signed Boolean array in term.h" >&5
14831 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14833 # Check whether --enable-signed-char or --disable-signed-char was given.
14834 if test "${enable_signed_char+set}" = set; then
14835 enableval="$enable_signed_char"
14836 with_signed_char=$enableval
14838 with_signed_char=$cf_dft_signed_char
14840 echo "$as_me:14840: result: $with_signed_char" >&5
14841 echo "${ECHO_T}$with_signed_char" >&6
14842 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14844 ### use option --with-tparm-arg to override tparm's argument type
14845 echo "$as_me:14845: checking for type of tparm args" >&5
14846 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14848 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14849 if test "${with_tparm_arg+set}" = set; then
14850 withval="$with_tparm_arg"
14851 NCURSES_TPARM_ARG="$withval"
14853 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14855 echo "$as_me:14855: result: $NCURSES_TPARM_ARG" >&5
14856 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14858 ### Enable compiling-in rcs id's
14859 echo "$as_me:14859: checking if RCS identifiers should be compiled-in" >&5
14860 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14862 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14863 if test "${with_rcs_ids+set}" = set; then
14864 withval="$with_rcs_ids"
14865 with_rcs_ids=$withval
14869 echo "$as_me:14869: result: $with_rcs_ids" >&5
14870 echo "${ECHO_T}$with_rcs_ids" >&6
14871 test "x$with_rcs_ids" = xyes &&
14872 cat >>confdefs.h <<\EOF
14873 #define USE_RCS_IDS 1
14876 ###############################################################################
14878 echo "$as_me:14878: checking format of man-pages" >&5
14879 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14881 # Check whether --with-manpage-format or --without-manpage-format was given.
14882 if test "${with_manpage_format+set}" = set; then
14883 withval="$with_manpage_format"
14884 MANPAGE_FORMAT=$withval
14886 MANPAGE_FORMAT=unknown
14889 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14890 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14894 case "$MANPAGE_FORMAT" in
14896 if test -z "$MANPATH" ; then
14897 MANPATH="/usr/man:/usr/share/man"
14900 # look for the 'date' man-page (it is most likely to be installed!)
14906 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14907 for cf_dir in $MANPATH; do
14908 test -z "$cf_dir" && cf_dir=/usr/man
14909 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
14911 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14912 if test "x$cf_test" = "x$cf_name" ; then
14915 (*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
14916 (*.xz) MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
14917 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14918 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14919 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14920 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14934 # if we found a match in either man* or cat*, stop looking
14935 if test -n "$MANPAGE_FORMAT" ; then
14937 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14938 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14944 test "$cf_found" = yes && break
14947 # only check the first directory in $MANPATH where we find manpages
14948 if test -n "$MANPAGE_FORMAT" ; then
14952 # if we did not find the example, just assume it is normal
14953 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14957 for cf_option in $MANPAGE_FORMAT; do
14958 case "$cf_option" in
14959 (xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
14962 cf_unknown="$cf_unknown $cf_option"
14969 echo "$as_me:14969: result: $MANPAGE_FORMAT" >&5
14970 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14971 if test -n "$cf_unknown" ; then
14972 { echo "$as_me:14972: WARNING: Unexpected manpage-format $cf_unknown" >&5
14973 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14976 cf_manpage_format=no
14977 cf_manpage_inboth=no
14978 cf_manpage_so_strip=
14979 cf_manpage_compress=
14981 for cf_item in $MANPAGE_FORMAT
14985 cf_manpage_format=yes
14986 cf_manpage_inboth=no
14989 cf_manpage_format=yes
14990 cf_manpage_inboth=yes
14993 cf_manpage_so_strip="Z"
14994 cf_manpage_compress=compress
14997 cf_manpage_so_strip="gz"
14998 cf_manpage_compress=gzip
15001 cf_manpage_so_strip="bz2"
15002 cf_manpage_compress=bzip2
15005 cf_manpage_so_strip="xz"
15006 cf_manpage_compress=xz
15011 echo "$as_me:15011: checking for manpage renaming" >&5
15012 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
15014 # Check whether --with-manpage-renames or --without-manpage-renames was given.
15015 if test "${with_manpage_renames+set}" = set; then
15016 withval="$with_manpage_renames"
15017 MANPAGE_RENAMES=$withval
15019 MANPAGE_RENAMES=yes
15022 case ".$MANPAGE_RENAMES" in
15026 # Debian 'man' program?
15027 if test -f /etc/debian_version ; then
15028 MANPAGE_RENAMES=man/man_db.renames
15035 if test "$MANPAGE_RENAMES" = man/man_db.renames ; then
15036 MANPAGE_RENAMES=`pwd`/$MANPAGE_RENAMES
15037 elif test "$MANPAGE_RENAMES" = no ; then
15039 elif test ! -f "$MANPAGE_RENAMES" ; then
15040 { { echo "$as_me:15040: error: not a filename: $MANPAGE_RENAMES" >&5
15041 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
15042 { (exit 1); exit 1; }; }
15045 echo "$as_me:15045: result: $MANPAGE_RENAMES" >&5
15046 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
15048 echo "$as_me:15048: checking if manpage aliases will be installed" >&5
15049 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
15051 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
15052 if test "${with_manpage_aliases+set}" = set; then
15053 withval="$with_manpage_aliases"
15054 MANPAGE_ALIASES=$withval
15056 MANPAGE_ALIASES=yes
15059 echo "$as_me:15059: result: $MANPAGE_ALIASES" >&5
15060 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
15064 cf_use_symlinks=yes
15071 MANPAGE_SYMLINKS=no
15072 if test "$MANPAGE_ALIASES" = yes ; then
15073 echo "$as_me:15073: checking if manpage symlinks should be used" >&5
15074 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
15076 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
15077 if test "${with_manpage_symlinks+set}" = set; then
15078 withval="$with_manpage_symlinks"
15079 MANPAGE_SYMLINKS=$withval
15081 MANPAGE_SYMLINKS=$cf_use_symlinks
15084 if test "$cf_use_symlinks" = no; then
15085 if test "$MANPAGE_SYMLINKS" = yes ; then
15086 { echo "$as_me:15086: WARNING: cannot make symlinks" >&5
15087 echo "$as_me: WARNING: cannot make symlinks" >&2;}
15088 MANPAGE_SYMLINKS=no
15092 echo "$as_me:15092: result: $MANPAGE_SYMLINKS" >&5
15093 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
15096 echo "$as_me:15096: checking for manpage tbl" >&5
15097 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
15099 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
15100 if test "${with_manpage_tbl+set}" = set; then
15101 withval="$with_manpage_tbl"
15102 MANPAGE_TBL=$withval
15107 echo "$as_me:15107: result: $MANPAGE_TBL" >&5
15108 echo "${ECHO_T}$MANPAGE_TBL" >&6
15110 if test "$prefix" = "NONE" ; then
15111 cf_prefix="$ac_default_prefix"
15113 cf_prefix="$prefix"
15116 test ! -d man && mkdir man
15118 cf_edit_man=./edit_man.sh
15119 cf_man_alias=`pwd`/man_alias.sed
15121 cat >$cf_edit_man <<CF_EOF
15123 # this script is generated by the configure-script CF_MAN_PAGES macro.
15125 prefix="$cf_prefix"
15126 datarootdir="$datarootdir"
15129 NCURSES_MAJOR="$NCURSES_MAJOR"
15130 NCURSES_MINOR="$NCURSES_MINOR"
15131 NCURSES_PATCH="$NCURSES_PATCH"
15133 NCURSES_OSPEED="$NCURSES_OSPEED"
15134 TERMINFO="$TERMINFO"
15135 TERMINFO_DIRS="$TERMINFO_DIRS"
15138 INSTALL_DATA="$INSTALL_DATA"
15140 transform="$program_transform_name"
15142 TMP=\${TMPDIR:=/tmp}/man\$\$
15143 trap "rm -f \$TMP; exit 1" 1 2 3 15
15144 trap "rm -f \$TMP" 0
15156 top_srcdir=\$srcdir/..
15159 if test "\$form" = normal ; then
15160 if test "$cf_manpage_format" = yes ; then
15161 if test "$cf_manpage_inboth" = no ; then
15162 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15166 cf_subdir=\$mandir/man
15167 cf_tables=$MANPAGE_TBL
15169 cf_subdir=\$mandir/cat
15173 # process the list of source-files
15174 for i in "\$@" ; do
15178 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
15179 if test "\$verb" = installing ; then
15180 if test ! -d "\$cf_subdir\${section}" ; then
15181 mkdir -p "\$cf_subdir\$section"
15185 # replace variables in man page
15186 if test ! -f "$cf_man_alias" ; then
15187 cat >>$cf_man_alias <<-CF_EOF2
15188 s,@DATADIR@,\$datadir,g
15189 s,@TERMINFO@,\${TERMINFO:="no default value"},g
15190 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
15191 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
15192 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
15193 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
15194 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
15197 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
15199 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15200 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
15201 cat >>$cf_edit_man <<-CF_EOF
15202 s,@$cf_NAME@,$cf_name,g
15206 cat >>$cf_edit_man <<CF_EOF
15208 echo "...made $cf_man_alias"
15212 cf_source=\`basename "\$i"\`
15213 cf_full_alias=\$cf_source
15214 test ! -f "\$cf_full_alias" && cf_full_alias="\$srcdir/\$cf_full_alias"
15215 if test ! -f "\$cf_full_alias" ; then
15216 echo ".. skipped \$cf_source"
15221 if test "$MANPAGE_ALIASES" != no ; then
15222 cat >>$cf_edit_man <<CF_EOF
15224 cf_part_alias=\`echo \$cf_full_alias| sed -e 's,^.*/,,'\`
15225 test "$with_curses_h" = yes && nCurses=ncurses.3x
15226 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\`
15230 if test "$MANPAGE_RENAMES" = no ; then
15231 cat >>$cf_edit_man <<CF_EOF
15232 # perform program transformations for section 1 man pages
15233 if test \$section = 1 ; then
15234 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
15236 cf_target=\$cf_subdir\${section}/\$cf_source
15240 cat >>$cf_edit_man <<CF_EOF
15241 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
15242 if test -z "\$cf_target" ; then
15243 echo "? missing rename for \$cf_source"
15244 cf_target="\$cf_source"
15246 cf_target="\$cf_subdir\${section}/\${cf_target}"
15251 cat >>$cf_edit_man <<CF_EOF
15252 sed -f "$cf_man_alias" \\
15255 if test "$MANPAGE_RENAMES" != no ; then
15256 cat >>$cf_edit_man <<CF_EOF
15257 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
15260 cat >>$cf_edit_man <<CF_EOF
15265 cat >>$cf_edit_man <<CF_EOF
15266 if test \$cf_tables = yes ; then
15267 tbl \$TMP >\$TMP.out
15272 if test "$with_overwrite" != yes ; then
15273 cat >>$cf_edit_man <<CF_EOF
15274 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
15279 if test "$with_curses_h" != yes ; then
15280 cat >>$cf_edit_man <<CF_EOF
15281 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
15286 cat >>$cf_edit_man <<CF_EOF
15287 if test "\$form" = format ; then
15288 nroff -man \$TMP >\$TMP.out
15293 if test -n "$cf_manpage_compress" ; then
15294 cat >>$cf_edit_man <<CF_EOF
15295 if test "\$verb" = installing ; then
15296 if ( "$cf_manpage_compress" -f \$TMP )
15298 mv \$TMP.$cf_manpage_so_strip \$TMP
15301 cf_target="\$cf_target.$cf_manpage_so_strip"
15305 case "$MANPAGE_FORMAT" in
15307 cat >>$cf_edit_man <<CF_EOF
15308 if test "\$form" = format ; then
15309 # BSDI installs only .0 suffixes in the cat directories
15310 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
15316 cat >>$cf_edit_man <<CF_EOF
15317 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
15319 if test -n "$EXTRA_SUFFIX" ; then
15320 case \$cf_target in
15321 (*${EXTRA_SUFFIX}\$suffix)
15322 extra_suffix="$EXTRA_SUFFIX"
15326 if test "\$verb" = installing ; then
15327 echo "\$verb \$cf_target"
15328 \$INSTALL_DATA \$TMP "\$cf_target"
15329 test -d "\$cf_subdir\${section}" &&
15330 test -n "\$aliases" && (
15331 cd "\$cf_subdir\${section}" && (
15332 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
15333 test -n "$cf_manpage_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_manpage_so_strip\$%%'\`
15334 cf_target=\`basename "\$cf_target"\`
15335 for cf_alias in \$aliases
15337 if test "\$section" = 1 ; then
15338 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15340 cf_alias="\${cf_alias}\${extra_suffix}"
15342 if test "$MANPAGE_SYMLINKS" = yes ; then
15343 if test -f "\$cf_alias\${suffix}" ; then
15344 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
15349 echo ".. \$verb alias \$cf_alias\${suffix}"
15353 cat >>$cf_edit_man <<CF_EOF
15354 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15358 cat >>$cf_edit_man <<CF_EOF
15359 rm -f "\$cf_alias\${suffix}"
15360 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15364 cat >>$cf_edit_man <<CF_EOF
15365 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
15366 echo ".so \$cf_source" >\$TMP
15368 if test -n "$cf_manpage_compress" ; then
15369 cat >>$cf_edit_man <<CF_EOF
15370 if test -n "$cf_manpage_so_strip" ; then
15371 "$cf_manpage_compress" -f \$TMP
15372 mv \$TMP.$cf_manpage_so_strip \$TMP
15376 cat >>$cf_edit_man <<CF_EOF
15377 echo ".. \$verb alias \$cf_alias\${suffix}"
15378 rm -f "\$cf_alias\${suffix}"
15379 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15384 elif test "\$verb" = removing ; then
15385 test -f "\$cf_target" && (
15386 echo "\$verb \$cf_target"
15387 rm -f "\$cf_target"
15389 test -d "\$cf_subdir\${section}" &&
15390 test -n "\$aliases" && (
15391 cd "\$cf_subdir\${section}" && (
15392 for cf_alias in \$aliases
15394 if test "\$section" = 1 ; then
15395 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15397 cf_alias="\${cf_alias}\${extra_suffix}"
15399 echo ".. \$verb alias \$cf_alias\${suffix}"
15400 rm -f "\$cf_alias\${suffix}"
15412 if test "$cf_manpage_inboth" = yes ; then
15413 if test "\$form" != format ; then
15414 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15420 chmod 755 "$cf_edit_man"
15422 ###############################################################################
15424 ### Note that some functions (such as const) are normally disabled anyway.
15425 echo "$as_me:15425: checking if you want to build with function extensions" >&5
15426 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15428 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15429 if test "${enable_ext_funcs+set}" = set; then
15430 enableval="$enable_ext_funcs"
15431 with_ext_funcs=$enableval
15435 echo "$as_me:15435: result: $with_ext_funcs" >&5
15436 echo "${ECHO_T}$with_ext_funcs" >&6
15437 if test "x$with_ext_funcs" = xyes ; then
15438 NCURSES_EXT_FUNCS=1
15440 cat >>confdefs.h <<\EOF
15441 #define NCURSES_EXT_FUNCS 1
15444 cat >>confdefs.h <<\EOF
15445 #define HAVE_ASSUME_DEFAULT_COLORS 1
15448 cat >>confdefs.h <<\EOF
15449 #define HAVE_CURSES_VERSION 1
15452 cat >>confdefs.h <<\EOF
15453 #define HAVE_HAS_KEY 1
15456 cat >>confdefs.h <<\EOF
15457 #define HAVE_RESIZETERM 1
15460 cat >>confdefs.h <<\EOF
15461 #define HAVE_RESIZE_TERM 1
15464 cat >>confdefs.h <<\EOF
15465 #define HAVE_TERM_ENTRY_H 1
15468 cat >>confdefs.h <<\EOF
15469 #define HAVE_USE_DEFAULT_COLORS 1
15472 cat >>confdefs.h <<\EOF
15473 #define HAVE_USE_SCREEN 1
15476 cat >>confdefs.h <<\EOF
15477 #define HAVE_USE_WINDOW 1
15480 cat >>confdefs.h <<\EOF
15481 #define HAVE_WRESIZE 1
15484 GENERATED_EXT_FUNCS=generated
15485 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15487 NCURSES_EXT_FUNCS=0
15488 GENERATED_EXT_FUNCS=
15491 echo "$as_me:15491: checking if you want to build with SCREEN extensions" >&5
15492 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15494 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15495 if test "${enable_sp_funcs+set}" = set; then
15496 enableval="$enable_sp_funcs"
15497 with_sp_funcs=$enableval
15499 with_sp_funcs=$cf_dft_ext_spfuncs
15501 echo "$as_me:15501: result: $with_sp_funcs" >&5
15502 echo "${ECHO_T}$with_sp_funcs" >&6
15503 if test "x$with_sp_funcs" = xyes ; then
15506 cat >>confdefs.h <<\EOF
15507 #define NCURSES_SP_FUNCS 1
15510 cat >>confdefs.h <<\EOF
15511 #define HAVE_TPUTS_SP 1
15514 GENERATED_SP_FUNCS=generated
15517 GENERATED_SP_FUNCS=
15520 echo "$as_me:15520: checking if you want to build with terminal-driver" >&5
15521 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15523 # Check whether --enable-term-driver or --disable-term-driver was given.
15524 if test "${enable_term_driver+set}" = set; then
15525 enableval="$enable_term_driver"
15526 with_term_driver=$enableval
15528 with_term_driver=no
15530 echo "$as_me:15530: result: $with_term_driver" >&5
15531 echo "${ECHO_T}$with_term_driver" >&6
15532 if test "x$with_term_driver" = xyes ; then
15534 cat >>confdefs.h <<\EOF
15535 #define USE_TERM_DRIVER 1
15538 if test "x$with_termlib" != xno ; then
15539 { { echo "$as_me:15539: error: The term-driver option conflicts with the termlib option" >&5
15540 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15541 { (exit 1); exit 1; }; }
15543 if test "x$with_sp_funcs" != xyes ; then
15544 { { echo "$as_me:15544: error: The term-driver option relies upon sp-funcs" >&5
15545 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15546 { (exit 1); exit 1; }; }
15550 ### use option --enable-const to turn on use of const beyond that in XSI.
15551 echo "$as_me:15551: checking for extended use of const keyword" >&5
15552 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15554 # Check whether --enable-const or --disable-const was given.
15555 if test "${enable_const+set}" = set; then
15556 enableval="$enable_const"
15557 with_ext_const=$enableval
15559 with_ext_const=$cf_dft_ext_const
15561 echo "$as_me:15561: result: $with_ext_const" >&5
15562 echo "${ECHO_T}$with_ext_const" >&6
15563 NCURSES_CONST='/*nothing*/'
15564 if test "x$with_ext_const" = xyes ; then
15565 NCURSES_CONST=const
15568 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15569 echo "$as_me:15569: checking if you want to use extended colors" >&5
15570 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15572 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15573 if test "${enable_ext_colors+set}" = set; then
15574 enableval="$enable_ext_colors"
15575 with_ext_colors=$enableval
15577 with_ext_colors=$cf_dft_ext_colors
15579 echo "$as_me:15579: result: $with_ext_colors" >&5
15580 echo "${ECHO_T}$with_ext_colors" >&6
15581 NCURSES_EXT_COLORS=0
15582 if test "x$with_ext_colors" = xyes ; then
15583 if test "x$with_widec" != xyes ; then
15584 { echo "$as_me:15584: WARNING: This option applies only to wide-character library" >&5
15585 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15587 # cannot be ABI 5 since it changes sizeof(cchar_t)
15589 if test "${with_abi_version+set}" != set; then
15590 case "$cf_cv_rel_version" in
15592 cf_cv_rel_version=6.0
15593 cf_cv_abi_version=6
15594 cf_cv_abi_default=6
15595 { echo "$as_me:15595: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15596 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15601 NCURSES_EXT_COLORS=1
15603 cat >>confdefs.h <<\EOF
15604 #define NCURSES_EXT_COLORS 1
15607 cat >>confdefs.h <<\EOF
15608 #define HAVE_ALLOC_PAIR 1
15611 cat >>confdefs.h <<\EOF
15612 #define HAVE_INIT_EXTENDED_COLOR 1
15615 cat >>confdefs.h <<\EOF
15616 #define HAVE_RESET_COLOR_PAIRS 1
15622 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15623 echo "$as_me:15623: checking if you want to use extended mouse encoding" >&5
15624 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15626 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15627 if test "${enable_ext_mouse+set}" = set; then
15628 enableval="$enable_ext_mouse"
15629 with_ext_mouse=$enableval
15631 with_ext_mouse=$cf_dft_ext_mouse
15633 echo "$as_me:15633: result: $with_ext_mouse" >&5
15634 echo "${ECHO_T}$with_ext_mouse" >&6
15635 if test "x$with_ext_mouse" = xyes ; then
15637 if test "${with_abi_version+set}" != set; then
15638 case "$cf_cv_rel_version" in
15640 cf_cv_rel_version=6.0
15641 cf_cv_abi_version=6
15642 cf_cv_abi_default=6
15643 { echo "$as_me:15643: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15644 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15651 if test $cf_cv_abi_default -le 5 ; then
15652 NCURSES_MOUSE_VERSION=1
15653 elif test $cf_cv_abi_default -le 6 ; then
15654 NCURSES_MOUSE_VERSION=2
15656 NCURSES_MOUSE_VERSION=3
15659 ### use option --enable-ext-putwin to turn on extended screendumps
15660 echo "$as_me:15660: checking if you want to use extended putwin/screendump" >&5
15661 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15663 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15664 if test "${enable_ext_putwin+set}" = set; then
15665 enableval="$enable_ext_putwin"
15666 with_ext_putwin=$enableval
15668 with_ext_putwin=$cf_dft_ext_putwin
15670 echo "$as_me:15670: result: $with_ext_putwin" >&5
15671 echo "${ECHO_T}$with_ext_putwin" >&6
15672 if test "x$with_ext_putwin" = xyes ; then
15674 cat >>confdefs.h <<\EOF
15675 #define NCURSES_EXT_PUTWIN 1
15680 echo "$as_me:15680: checking if you want \$NCURSES_NO_PADDING code" >&5
15681 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15683 # Check whether --enable-no-padding or --disable-no-padding was given.
15684 if test "${enable_no_padding+set}" = set; then
15685 enableval="$enable_no_padding"
15686 with_no_padding=$enableval
15688 with_no_padding=$with_ext_funcs
15690 echo "$as_me:15690: result: $with_no_padding" >&5
15691 echo "${ECHO_T}$with_no_padding" >&6
15692 test "x$with_no_padding" = xyes &&
15693 cat >>confdefs.h <<\EOF
15694 #define NCURSES_NO_PADDING 1
15697 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15698 echo "$as_me:15698: checking if you want SIGWINCH handler" >&5
15699 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15701 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15702 if test "${enable_sigwinch+set}" = set; then
15703 enableval="$enable_sigwinch"
15704 with_sigwinch=$enableval
15706 with_sigwinch=$with_ext_funcs
15708 echo "$as_me:15708: result: $with_sigwinch" >&5
15709 echo "${ECHO_T}$with_sigwinch" >&6
15710 test "x$with_sigwinch" = xyes &&
15711 cat >>confdefs.h <<\EOF
15712 #define USE_SIGWINCH 1
15715 ### use option --enable-tcap-names to allow user to define new capabilities
15716 echo "$as_me:15716: checking if you want user-definable terminal capabilities like termcap" >&5
15717 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15719 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15720 if test "${enable_tcap_names+set}" = set; then
15721 enableval="$enable_tcap_names"
15722 with_tcap_names=$enableval
15724 with_tcap_names=$with_ext_funcs
15726 echo "$as_me:15726: result: $with_tcap_names" >&5
15727 echo "${ECHO_T}$with_tcap_names" >&6
15729 if test "x$with_tcap_names" = xyes; then
15732 cat >>confdefs.h <<\EOF
15733 #define NCURSES_XNAMES 1
15738 ##############################################################################
15740 echo "$as_me:15740: checking if you want to link with the pthread library" >&5
15741 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15743 # Check whether --with-pthread or --without-pthread was given.
15744 if test "${with_pthread+set}" = set; then
15745 withval="$with_pthread"
15746 with_pthread=$withval
15750 echo "$as_me:15750: result: $with_pthread" >&5
15751 echo "${ECHO_T}$with_pthread" >&6
15753 if test "$with_pthread" != no ; then
15754 echo "$as_me:15754: checking for pthread.h" >&5
15755 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15756 if test "${ac_cv_header_pthread_h+set}" = set; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15759 cat >"conftest.$ac_ext" <<_ACEOF
15760 #line 15760 "configure"
15761 #include "confdefs.h"
15762 #include <pthread.h>
15764 if { (eval echo "$as_me:15764: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15765 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15767 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15769 cat conftest.err >&5
15770 echo "$as_me:15770: \$? = $ac_status" >&5
15771 (exit "$ac_status"); } >/dev/null; then
15772 if test -s conftest.err; then
15773 ac_cpp_err=$ac_c_preproc_warn_flag
15780 if test -z "$ac_cpp_err"; then
15781 ac_cv_header_pthread_h=yes
15783 echo "$as_me: failed program was:" >&5
15784 cat "conftest.$ac_ext" >&5
15785 ac_cv_header_pthread_h=no
15787 rm -f conftest.err "conftest.$ac_ext"
15789 echo "$as_me:15789: result: $ac_cv_header_pthread_h" >&5
15790 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15791 if test "$ac_cv_header_pthread_h" = yes; then
15793 cat >>confdefs.h <<\EOF
15794 #define HAVE_PTHREADS_H 1
15797 for cf_lib_pthread in pthread c_r
15799 echo "$as_me:15799: checking if we can link with the $cf_lib_pthread library" >&5
15800 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15801 cf_save_LIBS="$LIBS"
15803 cf_add_libs="$LIBS"
15806 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15807 # filter duplicates
15808 for cf_add_1lib in $cf_add_0lib; do
15809 for cf_add_2lib in $cf_add_libs; do
15810 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15815 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15817 LIBS="$cf_add_libs"
15819 cat >"conftest.$ac_ext" <<_ACEOF
15820 #line 15820 "configure"
15821 #include "confdefs.h"
15823 #include <pthread.h>
15829 int rc = pthread_create(0,0,0,0);
15830 int r2 = pthread_mutexattr_settype(0, 0);
15836 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15837 if { (eval echo "$as_me:15837: \"$ac_link\"") >&5
15838 (eval $ac_link) 2>&5
15840 echo "$as_me:15840: \$? = $ac_status" >&5
15841 (exit "$ac_status"); } &&
15842 { ac_try='test -s "conftest$ac_exeext"'
15843 { (eval echo "$as_me:15843: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15846 echo "$as_me:15846: \$? = $ac_status" >&5
15847 (exit "$ac_status"); }; }; then
15850 echo "$as_me: failed program was:" >&5
15851 cat "conftest.$ac_ext" >&5
15854 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15855 LIBS="$cf_save_LIBS"
15856 echo "$as_me:15856: result: $with_pthread" >&5
15857 echo "${ECHO_T}$with_pthread" >&6
15858 test "$with_pthread" = yes && break
15861 if test "$with_pthread" = yes ; then
15863 cf_add_libs="$LIBS"
15866 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15867 # filter duplicates
15868 for cf_add_1lib in $cf_add_0lib; do
15869 for cf_add_2lib in $cf_add_libs; do
15870 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15875 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15877 LIBS="$cf_add_libs"
15879 cat >>confdefs.h <<\EOF
15880 #define HAVE_LIBPTHREADS 1
15884 { { echo "$as_me:15884: error: Cannot link with pthread library" >&5
15885 echo "$as_me: error: Cannot link with pthread library" >&2;}
15886 { (exit 1); exit 1; }; }
15893 if test "x$with_pthread" != xno; then
15894 echo "$as_me:15894: checking for pthread_kill" >&5
15895 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15896 if test "${ac_cv_func_pthread_kill+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 cat >"conftest.$ac_ext" <<_ACEOF
15900 #line 15900 "configure"
15901 #include "confdefs.h"
15902 #define pthread_kill autoconf_temporary
15903 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15904 #undef pthread_kill
15910 /* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15912 char pthread_kill (void);
15918 /* The GNU C library defines stubs for functions which it implements
15919 to always fail with ENOSYS. Some functions are actually named
15920 something starting with __ and the normal name is an alias. */
15921 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15922 #error found stub for pthread_kill
15925 return pthread_kill ();
15930 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15931 if { (eval echo "$as_me:15931: \"$ac_link\"") >&5
15932 (eval $ac_link) 2>&5
15934 echo "$as_me:15934: \$? = $ac_status" >&5
15935 (exit "$ac_status"); } &&
15936 { ac_try='test -s "conftest$ac_exeext"'
15937 { (eval echo "$as_me:15937: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15940 echo "$as_me:15940: \$? = $ac_status" >&5
15941 (exit "$ac_status"); }; }; then
15942 ac_cv_func_pthread_kill=yes
15944 echo "$as_me: failed program was:" >&5
15945 cat "conftest.$ac_ext" >&5
15946 ac_cv_func_pthread_kill=no
15948 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15950 echo "$as_me:15950: result: $ac_cv_func_pthread_kill" >&5
15951 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15952 if test "$ac_cv_func_pthread_kill" = yes; then
15954 echo "$as_me:15954: checking if you want to allow EINTR in wgetch with pthreads" >&5
15955 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15957 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15958 if test "${enable_pthreads_eintr+set}" = set; then
15959 enableval="$enable_pthreads_eintr"
15960 use_pthreads_eintr=$enableval
15962 use_pthreads_eintr=no
15964 echo "$as_me:15964: result: $use_pthreads_eintr" >&5
15965 echo "${ECHO_T}$use_pthreads_eintr" >&6
15966 if test "x$use_pthreads_eintr" = xyes ; then
15968 cat >>confdefs.h <<\EOF
15969 #define USE_PTHREADS_EINTR 1
15975 echo "$as_me:15975: checking if you want to use weak-symbols for pthreads" >&5
15976 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15978 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15979 if test "${enable_weak_symbols+set}" = set; then
15980 enableval="$enable_weak_symbols"
15981 use_weak_symbols=$enableval
15983 use_weak_symbols=no
15985 echo "$as_me:15985: result: $use_weak_symbols" >&5
15986 echo "${ECHO_T}$use_weak_symbols" >&6
15987 if test "x$use_weak_symbols" = xyes ; then
15989 echo "$as_me:15989: checking if $CC supports weak symbols" >&5
15990 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15991 if test "${cf_cv_weak_symbols+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 cat >"conftest.$ac_ext" <<_ACEOF
15996 #line 15996 "configure"
15997 #include "confdefs.h"
16004 #if defined(__GNUC__)
16005 # if defined __USE_ISOC99
16006 # define _cat_pragma(exp) _Pragma(#exp)
16007 # define _weak_pragma(exp) _cat_pragma(weak name)
16009 # define _weak_pragma(exp)
16011 # define _declare(name) __extension__ extern __typeof__(name) name
16012 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
16015 weak_symbol(fopen);
16021 rm -f "conftest.$ac_objext"
16022 if { (eval echo "$as_me:16022: \"$ac_compile\"") >&5
16023 (eval $ac_compile) 2>&5
16025 echo "$as_me:16025: \$? = $ac_status" >&5
16026 (exit "$ac_status"); } &&
16027 { ac_try='test -s "conftest.$ac_objext"'
16028 { (eval echo "$as_me:16028: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16031 echo "$as_me:16031: \$? = $ac_status" >&5
16032 (exit "$ac_status"); }; }; then
16033 cf_cv_weak_symbols=yes
16035 echo "$as_me: failed program was:" >&5
16036 cat "conftest.$ac_ext" >&5
16037 cf_cv_weak_symbols=no
16039 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16042 echo "$as_me:16042: result: $cf_cv_weak_symbols" >&5
16043 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
16046 cf_cv_weak_symbols=no
16049 if test "x$cf_cv_weak_symbols" = xyes ; then
16051 cat >>confdefs.h <<\EOF
16052 #define USE_WEAK_SYMBOLS 1
16059 if test "x$with_pthread" = "xyes" ; then
16061 cat >>confdefs.h <<\EOF
16062 #define USE_PTHREADS 1
16065 enable_reentrant=yes
16066 if test "x$cf_cv_weak_symbols" = xyes ; then
16069 cf_add_libs="$PRIVATE_LIBS"
16072 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16073 # filter duplicates
16074 for cf_add_1lib in $cf_add_0lib; do
16075 for cf_add_2lib in $cf_add_libs; do
16076 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16081 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16083 PRIVATE_LIBS="$cf_add_libs"
16088 # Reentrant code has to be opaque; there's little advantage to making ncurses
16089 # opaque outside of that, so there is no --enable-opaque option. We can use
16090 # this option without --with-pthreads, but this will be always set for
16092 echo "$as_me:16092: checking if you want reentrant code" >&5
16093 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
16095 # Check whether --enable-reentrant or --disable-reentrant was given.
16096 if test "${enable_reentrant+set}" = set; then
16097 enableval="$enable_reentrant"
16098 with_reentrant=$enableval
16102 echo "$as_me:16102: result: $with_reentrant" >&5
16103 echo "${ECHO_T}$with_reentrant" >&6
16104 if test "x$with_reentrant" = xyes ; then
16105 cf_cv_enable_reentrant=1
16106 cf_cv_enable_opaque="NCURSES_INTERNALS"
16108 if test "x$cf_cv_weak_symbols" = xyes ; then
16110 # remove pthread library from $LIBS
16111 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
16113 cf_add_libs="$TEST_LIBS"
16116 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16117 # filter duplicates
16118 for cf_add_1lib in $cf_add_0lib; do
16119 for cf_add_2lib in $cf_add_libs; do
16120 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16125 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16127 TEST_LIBS="$cf_add_libs"
16129 cf_add_libs="$TEST_LIBS2"
16132 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16133 # filter duplicates
16134 for cf_add_1lib in $cf_add_0lib; do
16135 for cf_add_2lib in $cf_add_libs; do
16136 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16141 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16143 TEST_LIBS2="$cf_add_libs"
16145 cf_add_libs="$PRIVATE_LIBS"
16148 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16149 # filter duplicates
16150 for cf_add_1lib in $cf_add_0lib; do
16151 for cf_add_2lib in $cf_add_libs; do
16152 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16157 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16159 PRIVATE_LIBS="$cf_add_libs"
16162 # when not using weak symbols but with_reentrant,
16163 # add 't' to the library suffix on all platforms
16164 # except cygwin, where we only do that if ALSO
16165 # compiling with full thread support.
16167 (*cygwin* | *msys*)
16168 if test "$with_pthread" = "yes" ; then
16169 if test "x$disable_lib_suffixes" = "xno" ; then
16170 LIB_SUFFIX="t${LIB_SUFFIX}"
16174 if test "x$disable_lib_suffixes" = "xno" ; then
16175 LIB_SUFFIX="t${LIB_SUFFIX}"
16181 cat >>confdefs.h <<\EOF
16182 #define USE_REENTRANT 1
16185 if test "${with_abi_version+set}" != set; then
16186 case "$cf_cv_rel_version" in
16188 cf_cv_rel_version=6.0
16189 cf_cv_abi_version=6
16190 cf_cv_abi_default=6
16191 { echo "$as_me:16191: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
16192 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
16198 cf_cv_enable_reentrant=0
16199 cf_cv_enable_opaque="NCURSES_OPAQUE"
16200 NCURSES_SIZE_T=$cf_dft_ordinate_type
16203 echo "$as_me:16203: checking if you want opaque curses-library structures" >&5
16204 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
16206 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
16207 if test "${enable_opaque_curses+set}" = set; then
16208 enableval="$enable_opaque_curses"
16209 test "$enableval" != yes && enableval=no
16210 if test "$enableval" != "no" ; then
16211 enable_opaque_curses=yes
16214 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16215 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16221 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16222 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16225 echo "$as_me:16225: result: $enable_opaque_curses" >&5
16226 echo "${ECHO_T}$enable_opaque_curses" >&6
16228 test "$cf_cv_enable_reentrant" = 1 && \
16229 test "$enable_opaque_curses" = no && \
16230 { { echo "$as_me:16230: error: reentrant configuration requires opaque library" >&5
16231 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
16232 { (exit 1); exit 1; }; }
16234 echo "$as_me:16234: checking if you want opaque form-library structures" >&5
16235 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
16237 # Check whether --enable-opaque-form or --disable-opaque-form was given.
16238 if test "${enable_opaque_form+set}" = set; then
16239 enableval="$enable_opaque_form"
16240 enable_opaque_form=yes
16242 enable_opaque_form=no
16244 echo "$as_me:16244: result: $enable_opaque_form" >&5
16245 echo "${ECHO_T}$enable_opaque_form" >&6
16247 echo "$as_me:16247: checking if you want opaque menu-library structures" >&5
16248 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
16250 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
16251 if test "${enable_opaque_menu+set}" = set; then
16252 enableval="$enable_opaque_menu"
16253 enable_opaque_menu=yes
16255 enable_opaque_menu=no
16257 echo "$as_me:16257: result: $enable_opaque_menu" >&5
16258 echo "${ECHO_T}$enable_opaque_menu" >&6
16260 echo "$as_me:16260: checking if you want opaque panel-library structures" >&5
16261 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
16263 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
16264 if test "${enable_opaque_panel+set}" = set; then
16265 enableval="$enable_opaque_panel"
16266 enable_opaque_panel=yes
16268 enable_opaque_panel=no
16270 echo "$as_me:16270: result: $enable_opaque_panel" >&5
16271 echo "${ECHO_T}$enable_opaque_panel" >&6
16273 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
16274 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
16275 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
16276 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
16278 ### Allow using a different wrap-prefix
16279 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
16280 echo "$as_me:16280: checking for prefix used to wrap public variables" >&5
16281 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16283 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16284 if test "${with_wrap_prefix+set}" = set; then
16285 withval="$with_wrap_prefix"
16286 NCURSES_WRAP_PREFIX=$withval
16288 NCURSES_WRAP_PREFIX=_nc_
16290 echo "$as_me:16290: result: $NCURSES_WRAP_PREFIX" >&5
16291 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
16293 NCURSES_WRAP_PREFIX=_nc_
16296 cat >>confdefs.h <<EOF
16297 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
16300 ###############################################################################
16301 # These options are relatively safe to experiment with.
16303 echo "$as_me:16303: checking if you want all development code" >&5
16304 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16306 # Check whether --with-develop or --without-develop was given.
16307 if test "${with_develop+set}" = set; then
16308 withval="$with_develop"
16309 with_develop=$withval
16313 echo "$as_me:16313: result: $with_develop" >&5
16314 echo "${ECHO_T}$with_develop" >&6
16316 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
16317 echo "$as_me:16317: checking if you want hard-tabs code" >&5
16318 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
16320 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
16321 if test "${enable_hard_tabs+set}" = set; then
16322 enableval="$enable_hard_tabs"
16325 enable_hard_tabs=$with_develop
16327 echo "$as_me:16327: result: $enable_hard_tabs" >&5
16328 echo "${ECHO_T}$enable_hard_tabs" >&6
16329 test "x$enable_hard_tabs" = xyes &&
16330 cat >>confdefs.h <<\EOF
16331 #define USE_HARD_TABS 1
16334 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
16335 echo "$as_me:16335: checking if you want limited support for xmc" >&5
16336 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
16338 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
16339 if test "${enable_xmc_glitch+set}" = set; then
16340 enableval="$enable_xmc_glitch"
16343 enable_xmc_glitch=$with_develop
16345 echo "$as_me:16345: result: $enable_xmc_glitch" >&5
16346 echo "${ECHO_T}$enable_xmc_glitch" >&6
16347 test "x$enable_xmc_glitch" = xyes &&
16348 cat >>confdefs.h <<\EOF
16349 #define USE_XMC_SUPPORT 1
16352 ###############################################################################
16353 # These are just experimental, probably should not be in a package:
16355 echo "$as_me:16355: checking if you do not want to assume colors are white-on-black" >&5
16356 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
16358 # Check whether --enable-assumed-color or --disable-assumed-color was given.
16359 if test "${enable_assumed_color+set}" = set; then
16360 enableval="$enable_assumed_color"
16361 with_assumed_color=$enableval
16363 with_assumed_color=yes
16365 echo "$as_me:16365: result: $with_assumed_color" >&5
16366 echo "${ECHO_T}$with_assumed_color" >&6
16367 test "x$with_assumed_color" = xyes &&
16368 cat >>confdefs.h <<\EOF
16369 #define USE_ASSUMED_COLOR 1
16372 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
16373 echo "$as_me:16373: checking if you want hashmap scrolling-optimization code" >&5
16374 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
16376 # Check whether --enable-hashmap or --disable-hashmap was given.
16377 if test "${enable_hashmap+set}" = set; then
16378 enableval="$enable_hashmap"
16379 with_hashmap=$enableval
16383 echo "$as_me:16383: result: $with_hashmap" >&5
16384 echo "${ECHO_T}$with_hashmap" >&6
16385 test "x$with_hashmap" = xyes &&
16386 cat >>confdefs.h <<\EOF
16387 #define USE_HASHMAP 1
16390 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16391 echo "$as_me:16391: checking if you want code to check screensize" >&5
16392 echo $ECHO_N "checking if you want code to check screensize... $ECHO_C" >&6
16394 # Check whether --enable-check-size or --disable-check-size was given.
16395 if test "${enable_check_size+set}" = set; then
16396 enableval="$enable_check_size"
16397 with_check_size=$enableval
16401 echo "$as_me:16401: result: $with_check_size" >&5
16402 echo "${ECHO_T}$with_check_size" >&6
16403 test "x$with_check_size" = xyes &&
16404 cat >>confdefs.h <<\EOF
16405 #define USE_CHECK_SIZE 1
16408 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16409 echo "$as_me:16409: checking if you want colorfgbg code" >&5
16410 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16412 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16413 if test "${enable_colorfgbg+set}" = set; then
16414 enableval="$enable_colorfgbg"
16415 with_colorfgbg=$enableval
16419 echo "$as_me:16419: result: $with_colorfgbg" >&5
16420 echo "${ECHO_T}$with_colorfgbg" >&6
16421 test "x$with_colorfgbg" = xyes &&
16422 cat >>confdefs.h <<\EOF
16423 #define USE_COLORFGBG 1
16426 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16427 echo "$as_me:16427: checking if you want to use gcc -fvisibility option" >&5
16428 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16430 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16431 if test "${enable_fvisibility+set}" = set; then
16432 enableval="$enable_fvisibility"
16433 cf_with_fvisibility=$enableval
16435 cf_with_fvisibility=no
16437 echo "$as_me:16437: result: $cf_with_fvisibility" >&5
16438 echo "${ECHO_T}$cf_with_fvisibility" >&6
16441 NCURSES_CXX_IMPEXP=
16442 if test "x$cf_with_fvisibility" = xyes; then
16444 echo "$as_me:16444: checking if $CC -fvisibility=hidden option works" >&5
16445 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16446 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 cf_save_cflags="$CFLAGS"
16451 CFLAGS="$CFLAGS -fvisibility=hidden"
16452 cat >"conftest.$ac_ext" <<_ACEOF
16453 #line 16453 "configure"
16454 #include "confdefs.h"
16456 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16462 if (somefunc()) return 1;
16468 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16469 if { (eval echo "$as_me:16469: \"$ac_link\"") >&5
16470 (eval $ac_link) 2>&5
16472 echo "$as_me:16472: \$? = $ac_status" >&5
16473 (exit "$ac_status"); } &&
16474 { ac_try='test -s "conftest$ac_exeext"'
16475 { (eval echo "$as_me:16475: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:16478: \$? = $ac_status" >&5
16479 (exit "$ac_status"); }; }; then
16480 cf_cv_fvisibility_hidden=yes
16482 echo "$as_me: failed program was:" >&5
16483 cat "conftest.$ac_ext" >&5
16484 cf_cv_fvisibility_hidden=no
16486 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16487 CFLAGS=$cf_save_cflags
16490 echo "$as_me:16490: result: $cf_cv_fvisibility_hidden" >&5
16491 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16493 if test "x$cf_cv_fvisibility_hidden" = xyes
16499 cf_new_extra_cppflags=
16501 for cf_add_cflags in -fvisibility=hidden
16503 case "$cf_fix_cppflags" in
16505 case "$cf_add_cflags" in
16506 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16507 case "$cf_add_cflags" in
16509 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16511 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16512 && test -z "${cf_tst_cflags}" \
16513 && cf_fix_cppflags=yes
16515 if test "$cf_fix_cppflags" = yes ; then
16517 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16518 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16521 elif test "${cf_tst_cflags}" = "\"'" ; then
16523 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16524 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16530 case "$CPPFLAGS" in
16534 case "$cf_add_cflags" in
16536 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16538 CPPFLAGS=`echo "$CPPFLAGS" | \
16539 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16540 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16545 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16546 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16553 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16554 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16561 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16562 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16564 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16566 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16567 && test -z "${cf_tst_cflags}" \
16568 && cf_fix_cppflags=no
16573 if test -n "$cf_new_cflags" ; then
16575 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16576 CFLAGS="${CFLAGS}$cf_new_cflags"
16580 if test -n "$cf_new_cppflags" ; then
16582 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16583 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16587 if test -n "$cf_new_extra_cppflags" ; then
16589 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16590 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16594 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16599 ac_cpp='$CXXCPP $CPPFLAGS'
16600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16601 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16603 ac_main_return="return"
16605 echo "$as_me:16605: checking if $CXX -fvisibility=hidden option works" >&5
16606 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16607 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 cf_save_cflags="$CXXFLAGS"
16612 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16613 cat >"conftest.$ac_ext" <<_ACEOF
16614 #line 16614 "configure"
16615 #include "confdefs.h"
16617 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16623 if (somefunc()) return 1;
16629 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16630 if { (eval echo "$as_me:16630: \"$ac_link\"") >&5
16631 (eval $ac_link) 2>&5
16633 echo "$as_me:16633: \$? = $ac_status" >&5
16634 (exit "$ac_status"); } &&
16635 { ac_try='test -s "conftest$ac_exeext"'
16636 { (eval echo "$as_me:16636: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16639 echo "$as_me:16639: \$? = $ac_status" >&5
16640 (exit "$ac_status"); }; }; then
16641 cf_cv_fvisibility_hidden2=yes
16643 echo "$as_me: failed program was:" >&5
16644 cat "conftest.$ac_ext" >&5
16645 cf_cv_fvisibility_hidden2=no
16647 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16648 CXXFLAGS=$cf_save_cflags
16651 echo "$as_me:16651: result: $cf_cv_fvisibility_hidden2" >&5
16652 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16654 if test "x$cf_cv_fvisibility_hidden2" = xyes
16657 cf_save_CXXFLAGS="$CFLAGS"
16663 cf_new_extra_cppflags=
16665 for cf_add_cflags in -fvisibility=hidden
16667 case "$cf_fix_cppflags" in
16669 case "$cf_add_cflags" in
16670 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16671 case "$cf_add_cflags" in
16673 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16675 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16676 && test -z "${cf_tst_cflags}" \
16677 && cf_fix_cppflags=yes
16679 if test "$cf_fix_cppflags" = yes ; then
16681 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16682 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16685 elif test "${cf_tst_cflags}" = "\"'" ; then
16687 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16688 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16694 case "$CPPFLAGS" in
16698 case "$cf_add_cflags" in
16700 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16702 CPPFLAGS=`echo "$CPPFLAGS" | \
16703 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16704 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16709 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16710 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16717 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16718 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16725 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16726 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16728 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16730 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16731 && test -z "${cf_tst_cflags}" \
16732 && cf_fix_cppflags=no
16737 if test -n "$cf_new_cflags" ; then
16739 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16740 CFLAGS="${CFLAGS}$cf_new_cflags"
16744 if test -n "$cf_new_cppflags" ; then
16746 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16747 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16751 if test -n "$cf_new_extra_cppflags" ; then
16753 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16754 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16759 CFLAGS="$cf_save_CXXFLAGS"
16761 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16764 ac_cpp='$CPP $CPPFLAGS'
16765 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16766 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16768 ac_main_return="return"
16773 ### use option --enable-interop to turn on use of bindings used for interop
16774 echo "$as_me:16774: checking if you want interop bindings" >&5
16775 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16777 # Check whether --enable-interop or --disable-interop was given.
16778 if test "${enable_interop+set}" = set; then
16779 enableval="$enable_interop"
16780 with_exp_interop=$enableval
16782 with_exp_interop=$cf_dft_interop
16784 echo "$as_me:16784: result: $with_exp_interop" >&5
16785 echo "${ECHO_T}$with_exp_interop" >&6
16787 NCURSES_INTEROP_FUNCS=0
16788 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16790 echo "$as_me:16790: checking if you want experimental safe-sprintf code" >&5
16791 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16793 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16794 if test "${enable_safe_sprintf+set}" = set; then
16795 enableval="$enable_safe_sprintf"
16796 with_safe_sprintf=$enableval
16798 with_safe_sprintf=no
16800 echo "$as_me:16800: result: $with_safe_sprintf" >&5
16801 echo "${ECHO_T}$with_safe_sprintf" >&6
16803 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16804 # when hashmap is used scroll hints are useless
16805 if test "$with_hashmap" = no ; then
16806 echo "$as_me:16806: checking if you want to experiment without scrolling-hints code" >&5
16807 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16809 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16810 if test "${enable_scroll_hints+set}" = set; then
16811 enableval="$enable_scroll_hints"
16812 with_scroll_hints=$enableval
16814 with_scroll_hints=yes
16816 echo "$as_me:16816: result: $with_scroll_hints" >&5
16817 echo "${ECHO_T}$with_scroll_hints" >&6
16818 test "x$with_scroll_hints" = xyes &&
16819 cat >>confdefs.h <<\EOF
16820 #define USE_SCROLL_HINTS 1
16825 echo "$as_me:16825: checking if you want wgetch-events code" >&5
16826 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16828 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16829 if test "${enable_wgetch_events+set}" = set; then
16830 enableval="$enable_wgetch_events"
16831 with_wgetch_events=$enableval
16833 with_wgetch_events=no
16835 echo "$as_me:16835: result: $with_wgetch_events" >&5
16836 echo "${ECHO_T}$with_wgetch_events" >&6
16837 if test "x$with_wgetch_events" = xyes ; then
16839 cat >>confdefs.h <<\EOF
16840 #define NCURSES_WGETCH_EVENTS 1
16843 NCURSES_WGETCH_EVENTS=1
16845 NCURSES_WGETCH_EVENTS=0
16848 case "$cf_cv_system_name" in
16849 (*mingw32*|*mingw64*|*-msvc*)
16850 echo "$as_me:16850: checking if you want experimental-Windows driver" >&5
16851 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16853 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16854 if test "${enable_exp_win32+set}" = set; then
16855 enableval="$enable_exp_win32"
16856 with_exp_win32=$enableval
16860 echo "$as_me:16860: result: $with_exp_win32" >&5
16861 echo "${ECHO_T}$with_exp_win32" >&6
16862 if test "x$with_exp_win32" = xyes
16865 cat >>confdefs.h <<\EOF
16866 #define EXP_WIN32_DRIVER 1
16870 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16872 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16882 ###############################################################################
16884 ### use option --disable-echo to suppress full display compiling commands
16886 echo "$as_me:16886: checking if you want to see long compiling messages" >&5
16887 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16889 # Check whether --enable-echo or --disable-echo was given.
16890 if test "${enable_echo+set}" = set; then
16891 enableval="$enable_echo"
16892 test "$enableval" != no && enableval=yes
16893 if test "$enableval" != "yes" ; then
16896 ECHO_LD='@echo linking $@;'
16897 RULE_CC='@echo compiling $<'
16898 SHOW_CC='@echo compiling $@'
16920 echo "$as_me:16920: result: $enableval" >&5
16921 echo "${ECHO_T}$enableval" >&6
16923 if test "x$enable_echo" = xyes; then
16926 ECHO_LINK='@ echo linking $@ ... ;'
16927 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16928 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16931 # --disable-stripping is used for debugging
16933 echo "$as_me:16933: checking if you want to install stripped executables" >&5
16934 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16936 # Check whether --enable-stripping or --disable-stripping was given.
16937 if test "${enable_stripping+set}" = set; then
16938 enableval="$enable_stripping"
16939 test "$enableval" != no && enableval=yes
16940 if test "$enableval" != "yes" ; then
16941 enable_stripping=no
16943 enable_stripping=yes
16947 enable_stripping=yes
16950 echo "$as_me:16950: result: $enable_stripping" >&5
16951 echo "${ECHO_T}$enable_stripping" >&6
16953 if test "$enable_stripping" = yes
16960 : "${INSTALL:=install}"
16961 echo "$as_me:16961: checking if install accepts -p option" >&5
16962 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16963 if test "${cf_cv_install_p+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16973 if test -f conftest.out/conftest.in
16975 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16976 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16977 if test -s conftest.err
16981 cf_cv_install_p=yes
16992 echo "$as_me:16992: result: $cf_cv_install_p" >&5
16993 echo "${ECHO_T}$cf_cv_install_p" >&6
16995 echo "$as_me:16995: checking if install needs to be told about ownership" >&5
16996 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16997 case `$ac_config_guess` in
17006 echo "$as_me:17006: result: $with_install_o" >&5
17007 echo "${ECHO_T}$with_install_o" >&6
17008 if test "x$with_install_o" = xyes
17010 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'`"
17015 if test -n "$INSTALL_OPT_S"
17017 echo "$as_me:17017: checking if you want to specify strip-program" >&5
17018 echo $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
17020 # Check whether --with-strip-program or --without-strip-program was given.
17021 if test "${with_strip_program+set}" = set; then
17022 withval="$with_strip_program"
17023 with_strip_program=$withval
17025 with_strip_program=no
17027 echo "$as_me:17027: result: $with_strip_program" >&5
17028 echo "${ECHO_T}$with_strip_program" >&6
17029 if test "$with_strip_program" != no
17031 echo "$as_me:17031: checking if strip-program is supported with this installer" >&5
17032 echo $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
17033 cf_install_program=`echo "$INSTALL" | sed -e 's%[ ]*[ ]-.%%'`
17034 check_install_strip=no
17035 if test -f "$cf_install_program"
17037 check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
17038 if test -n "$check_install_version"
17040 check_install_strip="option"
17042 for check_strip_variable in STRIPBIN STRIP
17044 if strings "$cf_install_program" | grep "^$check_strip_variable$" >/dev/null
17046 check_install_strip="environ"
17052 echo "$as_me:17052: result: $check_install_strip" >&5
17053 echo "${ECHO_T}$check_install_strip" >&6
17054 case "$check_install_strip" in
17056 { echo "$as_me:17056: WARNING: $cf_install_program does not support strip program option" >&5
17057 echo "$as_me: WARNING: $cf_install_program does not support strip program option" >&2;}
17058 with_strip_program=no
17061 cat >install.tmp <<-CF_EOF
17063 STRIPBIN="$with_strip_program" \\
17064 STRIP="$with_strip_program" \\
17067 INSTALL="`pwd`/install.tmp"
17068 chmod +x "$INSTALL"
17069 test -n "$verbose" && echo " created $INSTALL" 1>&6
17071 echo "${as_me:-configure}:17071: testing created $INSTALL ..." 1>&5
17075 INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
17081 # If we're avoiding relinking of shared libraries during install, that is to
17082 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
17083 # the install program has "-p" (for preserving timestamps).
17084 cf_cv_do_reranlib=yes
17085 if test "x$cf_cv_install_p" = xyes
17087 if test "x$cf_cv_do_relink" != xyes
17089 cf_cv_do_reranlib=no
17091 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
17095 ### use option --enable-warnings to turn on all gcc warnings
17097 echo "$as_me:17097: checking if you want to use C11 _Noreturn feature" >&5
17098 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
17100 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
17101 if test "${enable_stdnoreturn+set}" = set; then
17102 enableval="$enable_stdnoreturn"
17103 test "$enableval" != yes && enableval=no
17104 if test "$enableval" != "no" ; then
17105 enable_stdnoreturn=yes
17107 enable_stdnoreturn=no
17111 enable_stdnoreturn=no
17114 echo "$as_me:17114: result: $enable_stdnoreturn" >&5
17115 echo "${ECHO_T}$enable_stdnoreturn" >&6
17117 if test $enable_stdnoreturn = yes; then
17118 echo "$as_me:17118: checking for C11 _Noreturn feature" >&5
17119 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
17120 if test "${cf_cv_c11_noreturn+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 cat >"conftest.$ac_ext" <<_ACEOF
17124 #line 17124 "configure"
17125 #include "confdefs.h"
17127 $ac_includes_default
17128 #include <stdnoreturn.h>
17129 static _Noreturn void giveup(void) { exit(0); }
17134 if (feof(stdin)) giveup()
17139 rm -f "conftest.$ac_objext"
17140 if { (eval echo "$as_me:17140: \"$ac_compile\"") >&5
17141 (eval $ac_compile) 2>&5
17143 echo "$as_me:17143: \$? = $ac_status" >&5
17144 (exit "$ac_status"); } &&
17145 { ac_try='test -s "conftest.$ac_objext"'
17146 { (eval echo "$as_me:17146: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17149 echo "$as_me:17149: \$? = $ac_status" >&5
17150 (exit "$ac_status"); }; }; then
17151 cf_cv_c11_noreturn=yes
17153 echo "$as_me: failed program was:" >&5
17154 cat "conftest.$ac_ext" >&5
17155 cf_cv_c11_noreturn=no
17157 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17160 echo "$as_me:17160: result: $cf_cv_c11_noreturn" >&5
17161 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
17163 cf_cv_c11_noreturn=no,
17166 if test "$cf_cv_c11_noreturn" = yes; then
17168 cat >>confdefs.h <<\EOF
17169 #define HAVE_STDNORETURN_H 1
17172 cat >>confdefs.h <<EOF
17173 #define STDC_NORETURN _Noreturn
17176 HAVE_STDNORETURN_H=1
17178 HAVE_STDNORETURN_H=0
17181 if test "$GCC" = yes || test "$GXX" = yes
17184 if test "$GCC" = yes || test "$GXX" = yes
17189 for cf_temp_scan in $CFLAGS
17191 case "x$cf_temp_scan" in
17194 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17195 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17200 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17201 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17206 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17207 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17212 if test "x$CFLAGS" != "x$cf_temp_flags"
17214 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
17216 echo "${as_me:-configure}:17216: testing repairing CFLAGS: $CFLAGS ..." 1>&5
17218 CFLAGS="$cf_temp_flags"
17219 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
17221 echo "${as_me:-configure}:17221: testing ... fixed $CFLAGS ..." 1>&5
17223 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17225 echo "${as_me:-configure}:17225: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17232 if test "$GCC" = yes || test "$GXX" = yes
17237 for cf_temp_scan in $CPPFLAGS
17239 case "x$cf_temp_scan" in
17242 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17243 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17248 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17249 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17254 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17255 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17260 if test "x$CPPFLAGS" != "x$cf_temp_flags"
17262 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
17264 echo "${as_me:-configure}:17264: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
17266 CPPFLAGS="$cf_temp_flags"
17267 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
17269 echo "${as_me:-configure}:17269: testing ... fixed $CPPFLAGS ..." 1>&5
17271 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17273 echo "${as_me:-configure}:17273: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17280 if test "$GCC" = yes || test "$GXX" = yes
17285 for cf_temp_scan in $LDFLAGS
17287 case "x$cf_temp_scan" in
17290 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17291 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17296 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17297 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17302 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17303 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17308 if test "x$LDFLAGS" != "x$cf_temp_flags"
17310 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
17312 echo "${as_me:-configure}:17312: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
17314 LDFLAGS="$cf_temp_flags"
17315 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
17317 echo "${as_me:-configure}:17317: testing ... fixed $LDFLAGS ..." 1>&5
17319 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17321 echo "${as_me:-configure}:17321: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17328 echo "$as_me:17328: checking if you want to turn on gcc warnings" >&5
17329 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17331 # Check whether --enable-warnings or --disable-warnings was given.
17332 if test "${enable_warnings+set}" = set; then
17333 enableval="$enable_warnings"
17334 test "$enableval" != yes && enableval=no
17335 if test "$enableval" != "no" ; then
17336 enable_warnings=yes
17345 echo "$as_me:17345: result: $enable_warnings" >&5
17346 echo "${ECHO_T}$enable_warnings" >&6
17347 if test "$enable_warnings" = "yes"
17350 if test "x$have_x" = xyes; then
17352 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17353 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17354 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17355 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17356 for cf_X_CFLAGS in $X_CFLAGS
17358 case "x$cf_X_CFLAGS" in
17360 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17363 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17368 cat >"conftest.$ac_ext" <<_ACEOF
17369 #line 17369 "configure"
17370 #include "confdefs.h"
17372 #include <stdlib.h>
17373 #include <X11/Intrinsic.h>
17378 String foo = malloc(1); free((void*)foo)
17383 rm -f "conftest.$ac_objext"
17384 if { (eval echo "$as_me:17384: \"$ac_compile\"") >&5
17385 (eval $ac_compile) 2>&5
17387 echo "$as_me:17387: \$? = $ac_status" >&5
17388 (exit "$ac_status"); } &&
17389 { ac_try='test -s "conftest.$ac_objext"'
17390 { (eval echo "$as_me:17390: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17393 echo "$as_me:17393: \$? = $ac_status" >&5
17394 (exit "$ac_status"); }; }; then
17396 echo "$as_me:17396: checking for X11/Xt const-feature" >&5
17397 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17398 if test "${cf_cv_const_x_string+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 cat >"conftest.$ac_ext" <<_ACEOF
17403 #line 17403 "configure"
17404 #include "confdefs.h"
17406 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17407 #undef XTSTRINGDEFINES /* X11R5 and later */
17408 #include <stdlib.h>
17409 #include <X11/Intrinsic.h>
17414 String foo = malloc(1); *foo = 0
17419 rm -f "conftest.$ac_objext"
17420 if { (eval echo "$as_me:17420: \"$ac_compile\"") >&5
17421 (eval $ac_compile) 2>&5
17423 echo "$as_me:17423: \$? = $ac_status" >&5
17424 (exit "$ac_status"); } &&
17425 { ac_try='test -s "conftest.$ac_objext"'
17426 { (eval echo "$as_me:17426: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17429 echo "$as_me:17429: \$? = $ac_status" >&5
17430 (exit "$ac_status"); }; }; then
17432 cf_cv_const_x_string=no
17435 echo "$as_me: failed program was:" >&5
17436 cat "conftest.$ac_ext" >&5
17438 cf_cv_const_x_string=yes
17441 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17444 echo "$as_me:17444: result: $cf_cv_const_x_string" >&5
17445 echo "${ECHO_T}$cf_cv_const_x_string" >&6
17447 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17448 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17449 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17451 case "$cf_cv_const_x_string" in
17454 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17455 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17460 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17461 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17467 echo "$as_me: failed program was:" >&5
17468 cat "conftest.$ac_ext" >&5
17470 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17472 cat > "conftest.$ac_ext" <<EOF
17473 #line 17473 "${as_me:-configure}"
17474 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17476 if test "$INTEL_COMPILER" = yes
17478 # The "-wdXXX" options suppress warnings:
17479 # remark #1419: external declaration in primary source file
17480 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17481 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17482 # remark #193: zero used for undefined preprocessing identifier
17483 # remark #593: variable "curs_sb_left_arrow" was set but never used
17484 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17485 # remark #869: parameter "tw" was never referenced
17486 # remark #981: operands are evaluated in unspecified order
17487 # warning #279: controlling expression is constant
17489 { echo "$as_me:17489: checking for $CC warning options..." >&5
17490 echo "$as_me: checking for $CC warning options..." >&6;}
17491 cf_save_CFLAGS="$CFLAGS"
17492 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17504 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17505 if { (eval echo "$as_me:17505: \"$ac_compile\"") >&5
17506 (eval $ac_compile) 2>&5
17508 echo "$as_me:17508: \$? = $ac_status" >&5
17509 (exit "$ac_status"); }; then
17510 test -n "$verbose" && echo "$as_me:17510: result: ... -$cf_opt" >&5
17511 echo "${ECHO_T}... -$cf_opt" >&6
17512 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17515 CFLAGS="$cf_save_CFLAGS"
17516 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17518 { echo "$as_me:17518: checking for $CC warning options..." >&5
17519 echo "$as_me: checking for $CC warning options..." >&6;}
17520 cf_save_CFLAGS="$CFLAGS"
17522 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17523 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17524 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17525 for cf_opt in W Wall \
17526 Wbad-function-cast \
17529 Wdeclaration-after-statement \
17532 Wmissing-declarations \
17533 Wmissing-prototypes \
17537 Wstrict-prototypes \
17538 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17540 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17541 if { (eval echo "$as_me:17541: \"$ac_compile\"") >&5
17542 (eval $ac_compile) 2>&5
17544 echo "$as_me:17544: \$? = $ac_status" >&5
17545 (exit "$ac_status"); }; then
17546 test -n "$verbose" && echo "$as_me:17546: result: ... -$cf_opt" >&5
17547 echo "${ECHO_T}... -$cf_opt" >&6
17550 case "$GCC_VERSION" in
17552 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17554 echo "${as_me:-configure}:17554: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17560 case "$GCC_VERSION" in
17562 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17564 echo "${as_me:-configure}:17564: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17570 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17573 CFLAGS="$cf_save_CFLAGS"
17579 if test "$GCC" = yes || test "$GXX" = yes
17581 cat > conftest.i <<EOF
17583 #define GCC_PRINTF 0
17586 #define GCC_SCANF 0
17588 #ifndef GCC_NORETURN
17589 #define GCC_NORETURN /* nothing */
17592 #define GCC_UNUSED /* nothing */
17595 if test "$GCC" = yes
17597 { echo "$as_me:17597: checking for $CC __attribute__ directives..." >&5
17598 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17599 cat > "conftest.$ac_ext" <<EOF
17600 #line 17600 "${as_me:-configure}"
17602 #include "confdefs.h"
17603 #include "conftest.h"
17604 #include "conftest.i"
17606 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17608 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17611 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17613 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17615 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17616 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17617 extern GCC_NORETURN void foo(void);
17618 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17620 cf_printf_attribute=no
17621 cf_scanf_attribute=no
17622 for cf_attribute in scanf printf unused noreturn
17625 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17627 cf_directive="__attribute__(($cf_attribute))"
17628 echo "checking for $CC $cf_directive" 1>&5
17630 case "$cf_attribute" in
17632 cf_printf_attribute=yes
17633 cat >conftest.h <<EOF
17634 #define GCC_$cf_ATTRIBUTE 1
17638 cf_scanf_attribute=yes
17639 cat >conftest.h <<EOF
17640 #define GCC_$cf_ATTRIBUTE 1
17644 cat >conftest.h <<EOF
17645 #define GCC_$cf_ATTRIBUTE $cf_directive
17650 if { (eval echo "$as_me:17650: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>&5
17653 echo "$as_me:17653: \$? = $ac_status" >&5
17654 (exit "$ac_status"); }; then
17655 test -n "$verbose" && echo "$as_me:17655: result: ... $cf_attribute" >&5
17656 echo "${ECHO_T}... $cf_attribute" >&6
17657 cat conftest.h >>confdefs.h
17658 case "$cf_attribute" in
17661 cat >>confdefs.h <<EOF
17662 #define GCC_NORETURN $cf_directive
17667 cf_value='/* nothing */'
17668 if test "$cf_printf_attribute" != no ; then
17669 cf_value='__attribute__((format(printf,fmt,var)))'
17671 cat >>confdefs.h <<\EOF
17672 #define GCC_PRINTF 1
17677 cat >>confdefs.h <<EOF
17678 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17683 cf_value='/* nothing */'
17684 if test "$cf_scanf_attribute" != no ; then
17685 cf_value='__attribute__((format(scanf,fmt,var)))'
17687 cat >>confdefs.h <<\EOF
17688 #define GCC_SCANF 1
17693 cat >>confdefs.h <<EOF
17694 #define GCC_SCANFLIKE(fmt,var) $cf_value
17700 cat >>confdefs.h <<EOF
17701 #define GCC_UNUSED $cf_directive
17709 ${FGREP-fgrep} define conftest.i >>confdefs.h
17716 if test "x$enable_warnings" = "xyes"; then
17718 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
17720 if test "x$cf_with_cxx" = xyes ; then
17724 if test "$GCC" = yes ; then
17727 echo "$as_me:17727: checking if this is really Intel C++ compiler" >&5
17728 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17729 cf_save_CFLAGS="$CXXFLAGS"
17730 CXXFLAGS="$CXXFLAGS -no-gcc"
17731 cat >"conftest.$ac_ext" <<_ACEOF
17732 #line 17732 "configure"
17733 #include "confdefs.h"
17739 #ifdef __INTEL_COMPILER
17741 #error __INTEL_COMPILER is not defined
17748 rm -f "conftest.$ac_objext"
17749 if { (eval echo "$as_me:17749: \"$ac_compile\"") >&5
17750 (eval $ac_compile) 2>&5
17752 echo "$as_me:17752: \$? = $ac_status" >&5
17753 (exit "$ac_status"); } &&
17754 { ac_try='test -s "conftest.$ac_objext"'
17755 { (eval echo "$as_me:17755: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17758 echo "$as_me:17758: \$? = $ac_status" >&5
17759 (exit "$ac_status"); }; }; then
17760 INTEL_CPLUSPLUS=yes
17761 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17764 echo "$as_me: failed program was:" >&5
17765 cat "conftest.$ac_ext" >&5
17767 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17768 CXXFLAGS="$cf_save_CFLAGS"
17769 echo "$as_me:17769: result: $INTEL_CPLUSPLUS" >&5
17770 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17777 if test "$GCC" = yes ; then
17778 echo "$as_me:17778: checking if this is really Clang C++ compiler" >&5
17779 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17780 cf_save_CFLAGS="$CXXFLAGS"
17781 cat >"conftest.$ac_ext" <<_ACEOF
17782 #line 17782 "configure"
17783 #include "confdefs.h"
17791 #error __clang__ is not defined
17798 rm -f "conftest.$ac_objext"
17799 if { (eval echo "$as_me:17799: \"$ac_compile\"") >&5
17800 (eval $ac_compile) 2>&5
17802 echo "$as_me:17802: \$? = $ac_status" >&5
17803 (exit "$ac_status"); } &&
17804 { ac_try='test -s "conftest.$ac_objext"'
17805 { (eval echo "$as_me:17805: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17808 echo "$as_me:17808: \$? = $ac_status" >&5
17809 (exit "$ac_status"); }; }; then
17810 CLANG_CPLUSPLUS=yes
17813 echo "$as_me: failed program was:" >&5
17814 cat "conftest.$ac_ext" >&5
17816 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17817 CXXFLAGS="$cf_save_CFLAGS"
17818 echo "$as_me:17818: result: $CLANG_CPLUSPLUS" >&5
17819 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17824 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17826 (c[1-9][0-9]|*/c[1-9][0-9])
17827 { echo "$as_me:17827: WARNING: replacing broken compiler alias $CC" >&5
17828 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17829 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17834 echo "$as_me:17834: checking version of $CC" >&5
17835 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17836 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.].*//'`"
17837 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17838 echo "$as_me:17838: result: $CLANG_VERSION" >&5
17839 echo "${ECHO_T}$CLANG_VERSION" >&6
17841 for cf_clang_opt in \
17842 -Qunused-arguments \
17843 -Wno-error=implicit-function-declaration
17845 echo "$as_me:17845: checking if option $cf_clang_opt works" >&5
17846 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17847 cf_save_CFLAGS="$CFLAGS"
17848 CFLAGS="$CFLAGS $cf_clang_opt"
17849 cat >"conftest.$ac_ext" <<_ACEOF
17850 #line 17850 "configure"
17851 #include "confdefs.h"
17858 printf("hello!\\n");
17863 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17864 if { (eval echo "$as_me:17864: \"$ac_link\"") >&5
17865 (eval $ac_link) 2>&5
17867 echo "$as_me:17867: \$? = $ac_status" >&5
17868 (exit "$ac_status"); } &&
17869 { ac_try='test -s "conftest$ac_exeext"'
17870 { (eval echo "$as_me:17870: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:17873: \$? = $ac_status" >&5
17874 (exit "$ac_status"); }; }; then
17878 echo "$as_me: failed program was:" >&5
17879 cat "conftest.$ac_ext" >&5
17883 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17884 echo "$as_me:17884: result: $cf_clang_optok" >&5
17885 echo "${ECHO_T}$cf_clang_optok" >&6
17886 CFLAGS="$cf_save_CFLAGS"
17887 if test "$cf_clang_optok" = yes; then
17888 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17890 echo "${as_me:-configure}:17890: testing adding option $cf_clang_opt ..." 1>&5
17892 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17893 CFLAGS="${CFLAGS}$cf_clang_opt"
17900 ac_cpp='$CXXCPP $CPPFLAGS'
17901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17902 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17904 ac_main_return="return"
17906 cat > conftest.$ac_ext <<EOF
17907 #line 17907 "configure"
17908 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17911 if test "$INTEL_CPLUSPLUS" = yes
17913 # The "-wdXXX" options suppress warnings:
17914 # remark #1419: external declaration in primary source file
17915 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17916 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17917 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17918 # remark #193: zero used for undefined preprocessing identifier
17919 # remark #593: variable "curs_sb_left_arrow" was set but never used
17920 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17921 # remark #869: parameter "tw" was never referenced
17922 # remark #981: operands are evaluated in unspecified order
17923 # warning #269: invalid format string conversion
17925 { echo "$as_me:17925: checking for $CC warning options..." >&5
17926 echo "$as_me: checking for $CC warning options..." >&6;}
17927 cf_save_CXXFLAGS="$CXXFLAGS"
17928 EXTRA_CXXFLAGS="-Wall"
17941 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17942 if { (eval echo "$as_me:17942: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>&5
17945 echo "$as_me:17945: \$? = $ac_status" >&5
17946 (exit "$ac_status"); }; then
17947 test -n "$verbose" && echo "$as_me:17947: result: ... -$cf_opt" >&5
17948 echo "${ECHO_T}... -$cf_opt" >&6
17949 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17952 CXXFLAGS="$cf_save_CXXFLAGS"
17954 elif test "$GXX" = yes
17956 { echo "$as_me:17956: checking for $CXX warning options..." >&5
17957 echo "$as_me: checking for $CXX warning options..." >&6;}
17958 cf_save_CXXFLAGS="$CXXFLAGS"
17959 EXTRA_CXXFLAGS="-W -Wall"
17960 cf_gxx_extra_warnings=""
17961 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17962 case "$GXX_VERSION" in
17966 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17973 Wignored-qualifiers \
17975 Woverloaded-virtual \
17983 Wundef $cf_gxx_extra_warnings Wno-unused
17985 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17986 if { (eval echo "$as_me:17986: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>&5
17989 echo "$as_me:17989: \$? = $ac_status" >&5
17990 (exit "$ac_status"); }; then
17991 test -n "$verbose" && echo "$as_me:17991: result: ... -$cf_opt" >&5
17992 echo "${ECHO_T}... -$cf_opt" >&6
17993 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17995 test -n "$verbose" && echo "$as_me:17995: result: ... no -$cf_opt" >&5
17996 echo "${ECHO_T}... no -$cf_opt" >&6
17999 CXXFLAGS="$cf_save_CXXFLAGS"
18004 ac_cpp='$CPP $CPPFLAGS'
18005 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
18006 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
18007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18008 ac_main_return="return"
18013 echo "$as_me:18013: checking if you want to work around bogus compiler/loader warnings" >&5
18014 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
18016 # Check whether --enable-string-hacks or --disable-string-hacks was given.
18017 if test "${enable_string_hacks+set}" = set; then
18018 enableval="$enable_string_hacks"
18019 enable_string_hacks=$enableval
18021 enable_string_hacks=no
18023 echo "$as_me:18023: result: $enable_string_hacks" >&5
18024 echo "${ECHO_T}$enable_string_hacks" >&6
18026 if test "x$enable_string_hacks" = "xyes"; then
18028 cat >>confdefs.h <<\EOF
18029 #define USE_STRING_HACKS 1
18032 { echo "$as_me:18032: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
18033 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
18034 echo "$as_me:18034: checking for strlcat" >&5
18035 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
18036 if test "${ac_cv_func_strlcat+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 cat >"conftest.$ac_ext" <<_ACEOF
18040 #line 18040 "configure"
18041 #include "confdefs.h"
18042 #define strlcat autoconf_temporary
18043 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18050 /* We use char because int might match the return type of a gcc2
18051 builtin and then its argument prototype would still apply. */
18052 char strlcat (void);
18058 /* The GNU C library defines stubs for functions which it implements
18059 to always fail with ENOSYS. Some functions are actually named
18060 something starting with __ and the normal name is an alias. */
18061 #if defined (__stub_strlcat) || defined (__stub___strlcat)
18062 #error found stub for strlcat
18070 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18071 if { (eval echo "$as_me:18071: \"$ac_link\"") >&5
18072 (eval $ac_link) 2>&5
18074 echo "$as_me:18074: \$? = $ac_status" >&5
18075 (exit "$ac_status"); } &&
18076 { ac_try='test -s "conftest$ac_exeext"'
18077 { (eval echo "$as_me:18077: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18080 echo "$as_me:18080: \$? = $ac_status" >&5
18081 (exit "$ac_status"); }; }; then
18082 ac_cv_func_strlcat=yes
18084 echo "$as_me: failed program was:" >&5
18085 cat "conftest.$ac_ext" >&5
18086 ac_cv_func_strlcat=no
18088 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18090 echo "$as_me:18090: result: $ac_cv_func_strlcat" >&5
18091 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
18092 if test "$ac_cv_func_strlcat" = yes; then
18094 cat >>confdefs.h <<\EOF
18095 #define HAVE_STRLCAT 1
18100 echo "$as_me:18100: checking for strlcat in -lbsd" >&5
18101 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
18102 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 ac_check_lib_save_LIBS=$LIBS
18107 cat >"conftest.$ac_ext" <<_ACEOF
18108 #line 18108 "configure"
18109 #include "confdefs.h"
18111 /* Override any gcc2 internal prototype to avoid an error. */
18115 /* We use char because int might match the return type of a gcc2
18116 builtin and then its argument prototype would still apply. */
18126 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18127 if { (eval echo "$as_me:18127: \"$ac_link\"") >&5
18128 (eval $ac_link) 2>&5
18130 echo "$as_me:18130: \$? = $ac_status" >&5
18131 (exit "$ac_status"); } &&
18132 { ac_try='test -s "conftest$ac_exeext"'
18133 { (eval echo "$as_me:18133: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:18136: \$? = $ac_status" >&5
18137 (exit "$ac_status"); }; }; then
18138 ac_cv_lib_bsd_strlcat=yes
18140 echo "$as_me: failed program was:" >&5
18141 cat "conftest.$ac_ext" >&5
18142 ac_cv_lib_bsd_strlcat=no
18144 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18145 LIBS=$ac_check_lib_save_LIBS
18147 echo "$as_me:18147: result: $ac_cv_lib_bsd_strlcat" >&5
18148 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
18149 if test "$ac_cv_lib_bsd_strlcat" = yes; then
18151 cf_add_libs="$LIBS"
18154 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18155 # filter duplicates
18156 for cf_add_1lib in $cf_add_0lib; do
18157 for cf_add_2lib in $cf_add_libs; do
18158 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18163 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18165 LIBS="$cf_add_libs"
18167 for ac_header in bsd/string.h
18169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18170 echo "$as_me:18170: checking for $ac_header" >&5
18171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 cat >"conftest.$ac_ext" <<_ACEOF
18176 #line 18176 "configure"
18177 #include "confdefs.h"
18178 #include <$ac_header>
18180 if { (eval echo "$as_me:18180: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18181 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18183 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18185 cat conftest.err >&5
18186 echo "$as_me:18186: \$? = $ac_status" >&5
18187 (exit "$ac_status"); } >/dev/null; then
18188 if test -s conftest.err; then
18189 ac_cpp_err=$ac_c_preproc_warn_flag
18196 if test -z "$ac_cpp_err"; then
18197 eval "$as_ac_Header=yes"
18199 echo "$as_me: failed program was:" >&5
18200 cat "conftest.$ac_ext" >&5
18201 eval "$as_ac_Header=no"
18203 rm -f conftest.err "conftest.$ac_ext"
18205 echo "$as_me:18205: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18206 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18207 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18208 cat >>confdefs.h <<EOF
18209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18215 cat >>confdefs.h <<\EOF
18216 #define HAVE_STRLCAT 1
18223 for ac_func in strlcpy snprintf
18225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18226 echo "$as_me:18226: checking for $ac_func" >&5
18227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18228 if eval "test \"\${$as_ac_var+set}\" = set"; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 cat >"conftest.$ac_ext" <<_ACEOF
18232 #line 18232 "configure"
18233 #include "confdefs.h"
18234 #define $ac_func autoconf_temporary
18235 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18242 /* We use char because int might match the return type of a gcc2
18243 builtin and then its argument prototype would still apply. */
18244 char $ac_func (void);
18250 /* The GNU C library defines stubs for functions which it implements
18251 to always fail with ENOSYS. Some functions are actually named
18252 something starting with __ and the normal name is an alias. */
18253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18254 #error found stub for $ac_func
18257 return $ac_func ();
18262 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18263 if { (eval echo "$as_me:18263: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>&5
18266 echo "$as_me:18266: \$? = $ac_status" >&5
18267 (exit "$ac_status"); } &&
18268 { ac_try='test -s "conftest$ac_exeext"'
18269 { (eval echo "$as_me:18269: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18272 echo "$as_me:18272: \$? = $ac_status" >&5
18273 (exit "$ac_status"); }; }; then
18274 eval "$as_ac_var=yes"
18276 echo "$as_me: failed program was:" >&5
18277 cat "conftest.$ac_ext" >&5
18278 eval "$as_ac_var=no"
18280 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18282 echo "$as_me:18282: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18283 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18284 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18285 cat >>confdefs.h <<EOF
18286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18294 ### use option --enable-assertions to turn on generation of assertion code
18295 echo "$as_me:18295: checking if you want to enable runtime assertions" >&5
18296 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
18298 # Check whether --enable-assertions or --disable-assertions was given.
18299 if test "${enable_assertions+set}" = set; then
18300 enableval="$enable_assertions"
18301 with_assertions=$enableval
18305 echo "$as_me:18305: result: $with_assertions" >&5
18306 echo "${ECHO_T}$with_assertions" >&6
18309 if test "$with_assertions" = no
18311 CPPFLAGS="$CPPFLAGS -DNDEBUG"
18314 ADAFLAGS="$ADAFLAGS -gnata"
18319 ### use option --disable-leaks to suppress "permanent" leaks, for testing
18321 echo "$as_me:18321: checking if you want to use dmalloc for testing" >&5
18322 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18324 # Check whether --with-dmalloc or --without-dmalloc was given.
18325 if test "${with_dmalloc+set}" = set; then
18326 withval="$with_dmalloc"
18327 case "x$withval" in
18330 : "${with_cflags:=-g}"
18331 : "${enable_leaks:=no}"
18334 cat >>confdefs.h <<EOF
18335 #define USE_DMALLOC 1
18343 echo "$as_me:18343: result: ${with_dmalloc:-no}" >&5
18344 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18346 case ".$with_cflags" in
18356 cf_new_extra_cppflags=
18358 for cf_add_cflags in -g
18360 case "$cf_fix_cppflags" in
18362 case "$cf_add_cflags" in
18363 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18364 case "$cf_add_cflags" in
18366 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18368 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18369 && test -z "${cf_tst_cflags}" \
18370 && cf_fix_cppflags=yes
18372 if test "$cf_fix_cppflags" = yes ; then
18374 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18375 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18378 elif test "${cf_tst_cflags}" = "\"'" ; then
18380 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18381 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18387 case "$CPPFLAGS" in
18391 case "$cf_add_cflags" in
18393 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18395 CPPFLAGS=`echo "$CPPFLAGS" | \
18396 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18397 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18402 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18403 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18410 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18411 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18418 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18419 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18421 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18423 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18424 && test -z "${cf_tst_cflags}" \
18425 && cf_fix_cppflags=no
18430 if test -n "$cf_new_cflags" ; then
18432 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18433 CFLAGS="${CFLAGS}$cf_new_cflags"
18437 if test -n "$cf_new_cppflags" ; then
18439 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18440 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18444 if test -n "$cf_new_extra_cppflags" ; then
18446 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18447 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18456 if test "$with_dmalloc" = yes ; then
18457 echo "$as_me:18457: checking for dmalloc.h" >&5
18458 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18459 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 cat >"conftest.$ac_ext" <<_ACEOF
18463 #line 18463 "configure"
18464 #include "confdefs.h"
18465 #include <dmalloc.h>
18467 if { (eval echo "$as_me:18467: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18468 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18470 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 echo "$as_me:18473: \$? = $ac_status" >&5
18474 (exit "$ac_status"); } >/dev/null; then
18475 if test -s conftest.err; then
18476 ac_cpp_err=$ac_c_preproc_warn_flag
18483 if test -z "$ac_cpp_err"; then
18484 ac_cv_header_dmalloc_h=yes
18486 echo "$as_me: failed program was:" >&5
18487 cat "conftest.$ac_ext" >&5
18488 ac_cv_header_dmalloc_h=no
18490 rm -f conftest.err "conftest.$ac_ext"
18492 echo "$as_me:18492: result: $ac_cv_header_dmalloc_h" >&5
18493 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18494 if test "$ac_cv_header_dmalloc_h" = yes; then
18496 echo "$as_me:18496: checking for dmalloc_debug in -ldmalloc" >&5
18497 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18498 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-ldmalloc $LIBS"
18503 cat >"conftest.$ac_ext" <<_ACEOF
18504 #line 18504 "configure"
18505 #include "confdefs.h"
18507 /* Override any gcc2 internal prototype to avoid an error. */
18511 /* We use char because int might match the return type of a gcc2
18512 builtin and then its argument prototype would still apply. */
18513 char dmalloc_debug ();
18522 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18523 if { (eval echo "$as_me:18523: \"$ac_link\"") >&5
18524 (eval $ac_link) 2>&5
18526 echo "$as_me:18526: \$? = $ac_status" >&5
18527 (exit "$ac_status"); } &&
18528 { ac_try='test -s "conftest$ac_exeext"'
18529 { (eval echo "$as_me:18529: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18532 echo "$as_me:18532: \$? = $ac_status" >&5
18533 (exit "$ac_status"); }; }; then
18534 ac_cv_lib_dmalloc_dmalloc_debug=yes
18536 echo "$as_me: failed program was:" >&5
18537 cat "conftest.$ac_ext" >&5
18538 ac_cv_lib_dmalloc_dmalloc_debug=no
18540 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18541 LIBS=$ac_check_lib_save_LIBS
18543 echo "$as_me:18543: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18544 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18545 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18546 cat >>confdefs.h <<EOF
18547 #define HAVE_LIBDMALLOC 1
18550 LIBS="-ldmalloc $LIBS"
18558 echo "$as_me:18558: checking if you want to use dbmalloc for testing" >&5
18559 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18561 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18562 if test "${with_dbmalloc+set}" = set; then
18563 withval="$with_dbmalloc"
18564 case "x$withval" in
18567 : "${with_cflags:=-g}"
18568 : "${enable_leaks:=no}"
18571 cat >>confdefs.h <<EOF
18572 #define USE_DBMALLOC 1
18580 echo "$as_me:18580: result: ${with_dbmalloc:-no}" >&5
18581 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18583 case ".$with_cflags" in
18593 cf_new_extra_cppflags=
18595 for cf_add_cflags in -g
18597 case "$cf_fix_cppflags" in
18599 case "$cf_add_cflags" in
18600 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18601 case "$cf_add_cflags" in
18603 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18605 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18606 && test -z "${cf_tst_cflags}" \
18607 && cf_fix_cppflags=yes
18609 if test "$cf_fix_cppflags" = yes ; then
18611 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18612 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18615 elif test "${cf_tst_cflags}" = "\"'" ; then
18617 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18618 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18624 case "$CPPFLAGS" in
18628 case "$cf_add_cflags" in
18630 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18632 CPPFLAGS=`echo "$CPPFLAGS" | \
18633 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18634 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18639 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18640 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18647 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18648 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18655 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18656 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18658 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18660 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18661 && test -z "${cf_tst_cflags}" \
18662 && cf_fix_cppflags=no
18667 if test -n "$cf_new_cflags" ; then
18669 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18670 CFLAGS="${CFLAGS}$cf_new_cflags"
18674 if test -n "$cf_new_cppflags" ; then
18676 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18677 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18681 if test -n "$cf_new_extra_cppflags" ; then
18683 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18684 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18693 if test "$with_dbmalloc" = yes ; then
18694 echo "$as_me:18694: checking for dbmalloc.h" >&5
18695 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18696 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18699 cat >"conftest.$ac_ext" <<_ACEOF
18700 #line 18700 "configure"
18701 #include "confdefs.h"
18702 #include <dbmalloc.h>
18704 if { (eval echo "$as_me:18704: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18705 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18707 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:18710: \$? = $ac_status" >&5
18711 (exit "$ac_status"); } >/dev/null; then
18712 if test -s conftest.err; then
18713 ac_cpp_err=$ac_c_preproc_warn_flag
18720 if test -z "$ac_cpp_err"; then
18721 ac_cv_header_dbmalloc_h=yes
18723 echo "$as_me: failed program was:" >&5
18724 cat "conftest.$ac_ext" >&5
18725 ac_cv_header_dbmalloc_h=no
18727 rm -f conftest.err "conftest.$ac_ext"
18729 echo "$as_me:18729: result: $ac_cv_header_dbmalloc_h" >&5
18730 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18731 if test "$ac_cv_header_dbmalloc_h" = yes; then
18733 echo "$as_me:18733: checking for debug_malloc in -ldbmalloc" >&5
18734 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18735 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-ldbmalloc $LIBS"
18740 cat >"conftest.$ac_ext" <<_ACEOF
18741 #line 18741 "configure"
18742 #include "confdefs.h"
18744 /* Override any gcc2 internal prototype to avoid an error. */
18748 /* We use char because int might match the return type of a gcc2
18749 builtin and then its argument prototype would still apply. */
18750 char debug_malloc ();
18759 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18760 if { (eval echo "$as_me:18760: \"$ac_link\"") >&5
18761 (eval $ac_link) 2>&5
18763 echo "$as_me:18763: \$? = $ac_status" >&5
18764 (exit "$ac_status"); } &&
18765 { ac_try='test -s "conftest$ac_exeext"'
18766 { (eval echo "$as_me:18766: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:18769: \$? = $ac_status" >&5
18770 (exit "$ac_status"); }; }; then
18771 ac_cv_lib_dbmalloc_debug_malloc=yes
18773 echo "$as_me: failed program was:" >&5
18774 cat "conftest.$ac_ext" >&5
18775 ac_cv_lib_dbmalloc_debug_malloc=no
18777 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18778 LIBS=$ac_check_lib_save_LIBS
18780 echo "$as_me:18780: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18781 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18782 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18783 cat >>confdefs.h <<EOF
18784 #define HAVE_LIBDBMALLOC 1
18787 LIBS="-ldbmalloc $LIBS"
18795 echo "$as_me:18795: checking if you want to use valgrind for testing" >&5
18796 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18798 # Check whether --with-valgrind or --without-valgrind was given.
18799 if test "${with_valgrind+set}" = set; then
18800 withval="$with_valgrind"
18801 case "x$withval" in
18804 : "${with_cflags:=-g}"
18805 : "${enable_leaks:=no}"
18808 cat >>confdefs.h <<EOF
18809 #define USE_VALGRIND 1
18817 echo "$as_me:18817: result: ${with_valgrind:-no}" >&5
18818 echo "${ECHO_T}${with_valgrind:-no}" >&6
18820 case ".$with_cflags" in
18830 cf_new_extra_cppflags=
18832 for cf_add_cflags in -g
18834 case "$cf_fix_cppflags" in
18836 case "$cf_add_cflags" in
18837 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18838 case "$cf_add_cflags" in
18840 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18842 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18843 && test -z "${cf_tst_cflags}" \
18844 && cf_fix_cppflags=yes
18846 if test "$cf_fix_cppflags" = yes ; then
18848 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18849 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18852 elif test "${cf_tst_cflags}" = "\"'" ; then
18854 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18855 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18861 case "$CPPFLAGS" in
18865 case "$cf_add_cflags" in
18867 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18869 CPPFLAGS=`echo "$CPPFLAGS" | \
18870 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18871 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18876 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18877 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18884 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18885 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18892 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18893 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18895 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18897 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18898 && test -z "${cf_tst_cflags}" \
18899 && cf_fix_cppflags=no
18904 if test -n "$cf_new_cflags" ; then
18906 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18907 CFLAGS="${CFLAGS}$cf_new_cflags"
18911 if test -n "$cf_new_cppflags" ; then
18913 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18914 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18918 if test -n "$cf_new_extra_cppflags" ; then
18920 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18921 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18930 echo "$as_me:18930: checking if you want to perform memory-leak testing" >&5
18931 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18933 # Check whether --enable-leaks or --disable-leaks was given.
18934 if test "${enable_leaks+set}" = set; then
18935 enableval="$enable_leaks"
18936 enable_leaks=$enableval
18940 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18941 echo "$as_me:18941: result: $with_no_leaks" >&5
18942 echo "${ECHO_T}$with_no_leaks" >&6
18944 if test "$enable_leaks" = no ; then
18946 cat >>confdefs.h <<\EOF
18950 cat >>confdefs.h <<\EOF
18951 #define YY_NO_LEAKS 1
18956 cat >>confdefs.h <<\EOF
18957 #define HAVE_NC_ALLOC_H 1
18960 ### use option --enable-expanded to generate certain macros as functions
18962 # Check whether --enable-expanded or --disable-expanded was given.
18963 if test "${enable_expanded+set}" = set; then
18964 enableval="$enable_expanded"
18965 test "x$enableval" = xyes &&
18966 cat >>confdefs.h <<\EOF
18967 #define NCURSES_EXPANDED 1
18972 ### use option --disable-macros to suppress macros in favor of functions
18974 # Check whether --enable-macros or --disable-macros was given.
18975 if test "${enable_macros+set}" = set; then
18976 enableval="$enable_macros"
18977 test "$enableval" = no &&
18978 cat >>confdefs.h <<\EOF
18979 #define NCURSES_NOMACROS 1
18984 # Normally we only add trace() to the debug-library. Allow this to be
18985 # extended to all models of the ncurses library:
18987 case "$CFLAGS $CPPFLAGS" in
18993 echo "$as_me:18993: checking whether to add trace feature to all models" >&5
18994 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18996 # Check whether --with-trace or --without-trace was given.
18997 if test "${with_trace+set}" = set; then
18998 withval="$with_trace"
18999 cf_with_trace=$withval
19001 cf_with_trace=$cf_all_traces
19003 echo "$as_me:19003: result: $cf_with_trace" >&5
19004 echo "${ECHO_T}$cf_with_trace" >&6
19006 if test "x$cf_with_trace" = xyes ; then
19013 cf_new_extra_cppflags=
19015 for cf_add_cflags in -DTRACE
19017 case "$cf_fix_cppflags" in
19019 case "$cf_add_cflags" in
19020 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19021 case "$cf_add_cflags" in
19023 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19025 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19026 && test -z "${cf_tst_cflags}" \
19027 && cf_fix_cppflags=yes
19029 if test "$cf_fix_cppflags" = yes ; then
19031 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19032 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19035 elif test "${cf_tst_cflags}" = "\"'" ; then
19037 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19038 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19044 case "$CPPFLAGS" in
19048 case "$cf_add_cflags" in
19050 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19052 CPPFLAGS=`echo "$CPPFLAGS" | \
19053 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19054 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19059 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19060 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19067 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19068 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19075 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19076 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19078 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19080 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19081 && test -z "${cf_tst_cflags}" \
19082 && cf_fix_cppflags=no
19087 if test -n "$cf_new_cflags" ; then
19089 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19090 CFLAGS="${CFLAGS}$cf_new_cflags"
19094 if test -n "$cf_new_cppflags" ; then
19096 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19097 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19101 if test -n "$cf_new_extra_cppflags" ; then
19103 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19104 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19108 cat >>confdefs.h <<\EOF
19109 #define HAVE__TRACEF 1
19117 echo "$as_me:19117: checking if we want to use GNAT projects" >&5
19118 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
19120 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
19121 if test "${enable_gnat_projects+set}" = set; then
19122 enableval="$enable_gnat_projects"
19123 test "$enableval" != no && enableval=yes
19124 if test "$enableval" != "yes" ; then
19125 enable_gnat_projects=no
19127 enable_gnat_projects=yes
19131 enable_gnat_projects=yes
19134 echo "$as_me:19134: result: $enable_gnat_projects" >&5
19135 echo "${ECHO_T}$enable_gnat_projects" >&6
19137 ### Checks for libraries.
19138 case "$cf_cv_system_name" in
19139 (*mingw32*|*mingw64*)
19140 # Note: WINVER may be a problem with Windows 10
19141 if test "x$with_exp_win32" = xyes ; then
19142 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
19144 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
19147 echo "$as_me:19147: checking if ssp library is needed" >&5
19148 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
19149 if test "${cf_cv_need_libssp+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 cat >"conftest.$ac_ext" <<_ACEOF
19154 #line 19154 "configure"
19155 #include "confdefs.h"
19157 #include <sys/types.h>
19158 #include <dirent.h>
19164 DIR *dp = opendir(".");
19170 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19171 if { (eval echo "$as_me:19171: \"$ac_link\"") >&5
19172 (eval $ac_link) 2>&5
19174 echo "$as_me:19174: \$? = $ac_status" >&5
19175 (exit "$ac_status"); } &&
19176 { ac_try='test -s "conftest$ac_exeext"'
19177 { (eval echo "$as_me:19177: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19180 echo "$as_me:19180: \$? = $ac_status" >&5
19181 (exit "$ac_status"); }; }; then
19182 cf_cv_need_libssp=no
19184 echo "$as_me: failed program was:" >&5
19185 cat "conftest.$ac_ext" >&5
19187 cf_save_LIBS="$LIBS"
19189 cat >"conftest.$ac_ext" <<_ACEOF
19190 #line 19190 "configure"
19191 #include "confdefs.h"
19193 #include <sys/types.h>
19194 #include <dirent.h>
19200 DIR *dp = opendir(".");
19206 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19207 if { (eval echo "$as_me:19207: \"$ac_link\"") >&5
19208 (eval $ac_link) 2>&5
19210 echo "$as_me:19210: \$? = $ac_status" >&5
19211 (exit "$ac_status"); } &&
19212 { ac_try='test -s "conftest$ac_exeext"'
19213 { (eval echo "$as_me:19213: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:19216: \$? = $ac_status" >&5
19217 (exit "$ac_status"); }; }; then
19218 cf_cv_need_libssp=yes
19220 echo "$as_me: failed program was:" >&5
19221 cat "conftest.$ac_ext" >&5
19222 cf_cv_need_libssp=maybe
19224 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19225 LIBS="$cf_save_LIBS"
19228 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19230 echo "$as_me:19230: result: $cf_cv_need_libssp" >&5
19231 echo "${ECHO_T}$cf_cv_need_libssp" >&6
19233 if test "x$cf_cv_need_libssp" = xyes
19236 cf_add_libs="$LIBS"
19239 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19240 # filter duplicates
19241 for cf_add_1lib in $cf_add_0lib; do
19242 for cf_add_2lib in $cf_add_libs; do
19243 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19248 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19250 LIBS="$cf_add_libs"
19259 echo "$as_me:19259: checking if -lm needed for math functions" >&5
19260 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19261 if test "${cf_cv_need_libm+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 cat >"conftest.$ac_ext" <<_ACEOF
19266 #line 19266 "configure"
19267 #include "confdefs.h"
19270 #include <stdlib.h>
19276 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19281 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19282 if { (eval echo "$as_me:19282: \"$ac_link\"") >&5
19283 (eval $ac_link) 2>&5
19285 echo "$as_me:19285: \$? = $ac_status" >&5
19286 (exit "$ac_status"); } &&
19287 { ac_try='test -s "conftest$ac_exeext"'
19288 { (eval echo "$as_me:19288: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19291 echo "$as_me:19291: \$? = $ac_status" >&5
19292 (exit "$ac_status"); }; }; then
19295 echo "$as_me: failed program was:" >&5
19296 cat "conftest.$ac_ext" >&5
19297 cf_cv_need_libm=yes
19299 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19301 echo "$as_me:19301: result: $cf_cv_need_libm" >&5
19302 echo "${ECHO_T}$cf_cv_need_libm" >&6
19304 if test "$cf_cv_need_libm" = yes
19307 cf_save_LIBS="$LIBS"
19309 echo "$as_me:19309: checking if -lm is available for math functions" >&5
19310 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
19311 if test "${cf_cv_have_libm+set}" = set; then
19312 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 cat >"conftest.$ac_ext" <<_ACEOF
19316 #line 19316 "configure"
19317 #include "confdefs.h"
19320 #include <stdlib.h>
19326 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19331 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19332 if { (eval echo "$as_me:19332: \"$ac_link\"") >&5
19333 (eval $ac_link) 2>&5
19335 echo "$as_me:19335: \$? = $ac_status" >&5
19336 (exit "$ac_status"); } &&
19337 { ac_try='test -s "conftest$ac_exeext"'
19338 { (eval echo "$as_me:19338: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19341 echo "$as_me:19341: \$? = $ac_status" >&5
19342 (exit "$ac_status"); }; }; then
19343 cf_cv_have_libm=yes
19345 echo "$as_me: failed program was:" >&5
19346 cat "conftest.$ac_ext" >&5
19349 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19351 echo "$as_me:19351: result: $cf_cv_have_libm" >&5
19352 echo "${ECHO_T}$cf_cv_have_libm" >&6
19353 LIBS="$cf_save_LIBS"
19355 if test "$cf_cv_have_libm" = yes
19360 cf_cv_have_libm=yes
19363 if test "$cf_cv_have_libm" = yes
19366 cat >>confdefs.h <<\EOF
19367 #define HAVE_MATH_FUNCS 1
19372 ### Checks for header files.
19373 echo "$as_me:19373: checking whether time.h and sys/time.h may both be included" >&5
19374 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19375 if test "${ac_cv_header_time+set}" = set; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 cat >"conftest.$ac_ext" <<_ACEOF
19379 #line 19379 "configure"
19380 #include "confdefs.h"
19381 #include <sys/types.h>
19382 #include <sys/time.h>
19388 if ((struct tm *) 0)
19394 rm -f "conftest.$ac_objext"
19395 if { (eval echo "$as_me:19395: \"$ac_compile\"") >&5
19396 (eval $ac_compile) 2>&5
19398 echo "$as_me:19398: \$? = $ac_status" >&5
19399 (exit "$ac_status"); } &&
19400 { ac_try='test -s "conftest.$ac_objext"'
19401 { (eval echo "$as_me:19401: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:19404: \$? = $ac_status" >&5
19405 (exit "$ac_status"); }; }; then
19406 ac_cv_header_time=yes
19408 echo "$as_me: failed program was:" >&5
19409 cat "conftest.$ac_ext" >&5
19410 ac_cv_header_time=no
19412 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19414 echo "$as_me:19414: result: $ac_cv_header_time" >&5
19415 echo "${ECHO_T}$ac_cv_header_time" >&6
19416 if test $ac_cv_header_time = yes; then
19418 cat >>confdefs.h <<\EOF
19419 #define TIME_WITH_SYS_TIME 1
19428 # -lsystre -ltre -lintl -liconv
19429 echo "$as_me:19429: checking for regcomp in -lsystre" >&5
19430 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19431 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 ac_check_lib_save_LIBS=$LIBS
19435 LIBS="-lsystre $LIBS"
19436 cat >"conftest.$ac_ext" <<_ACEOF
19437 #line 19437 "configure"
19438 #include "confdefs.h"
19440 /* Override any gcc2 internal prototype to avoid an error. */
19444 /* We use char because int might match the return type of a gcc2
19445 builtin and then its argument prototype would still apply. */
19455 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19456 if { (eval echo "$as_me:19456: \"$ac_link\"") >&5
19457 (eval $ac_link) 2>&5
19459 echo "$as_me:19459: \$? = $ac_status" >&5
19460 (exit "$ac_status"); } &&
19461 { ac_try='test -s "conftest$ac_exeext"'
19462 { (eval echo "$as_me:19462: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19465 echo "$as_me:19465: \$? = $ac_status" >&5
19466 (exit "$ac_status"); }; }; then
19467 ac_cv_lib_systre_regcomp=yes
19469 echo "$as_me: failed program was:" >&5
19470 cat "conftest.$ac_ext" >&5
19471 ac_cv_lib_systre_regcomp=no
19473 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19474 LIBS=$ac_check_lib_save_LIBS
19476 echo "$as_me:19476: result: $ac_cv_lib_systre_regcomp" >&5
19477 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19478 if test "$ac_cv_lib_systre_regcomp" = yes; then
19480 echo "$as_me:19480: checking for libiconv_open in -liconv" >&5
19481 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19482 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 ac_check_lib_save_LIBS=$LIBS
19486 LIBS="-liconv $LIBS"
19487 cat >"conftest.$ac_ext" <<_ACEOF
19488 #line 19488 "configure"
19489 #include "confdefs.h"
19491 /* Override any gcc2 internal prototype to avoid an error. */
19495 /* We use char because int might match the return type of a gcc2
19496 builtin and then its argument prototype would still apply. */
19497 char libiconv_open ();
19506 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19507 if { (eval echo "$as_me:19507: \"$ac_link\"") >&5
19508 (eval $ac_link) 2>&5
19510 echo "$as_me:19510: \$? = $ac_status" >&5
19511 (exit "$ac_status"); } &&
19512 { ac_try='test -s "conftest$ac_exeext"'
19513 { (eval echo "$as_me:19513: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:19516: \$? = $ac_status" >&5
19517 (exit "$ac_status"); }; }; then
19518 ac_cv_lib_iconv_libiconv_open=yes
19520 echo "$as_me: failed program was:" >&5
19521 cat "conftest.$ac_ext" >&5
19522 ac_cv_lib_iconv_libiconv_open=no
19524 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19525 LIBS=$ac_check_lib_save_LIBS
19527 echo "$as_me:19527: result: $ac_cv_lib_iconv_libiconv_open" >&5
19528 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19529 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19531 cf_add_libs="$LIBS"
19534 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19535 # filter duplicates
19536 for cf_add_1lib in $cf_add_0lib; do
19537 for cf_add_2lib in $cf_add_libs; do
19538 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19543 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19545 LIBS="$cf_add_libs"
19549 echo "$as_me:19549: checking for libintl_gettext in -lintl" >&5
19550 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19551 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 ac_check_lib_save_LIBS=$LIBS
19555 LIBS="-lintl $LIBS"
19556 cat >"conftest.$ac_ext" <<_ACEOF
19557 #line 19557 "configure"
19558 #include "confdefs.h"
19560 /* Override any gcc2 internal prototype to avoid an error. */
19564 /* We use char because int might match the return type of a gcc2
19565 builtin and then its argument prototype would still apply. */
19566 char libintl_gettext ();
19570 libintl_gettext ();
19575 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19576 if { (eval echo "$as_me:19576: \"$ac_link\"") >&5
19577 (eval $ac_link) 2>&5
19579 echo "$as_me:19579: \$? = $ac_status" >&5
19580 (exit "$ac_status"); } &&
19581 { ac_try='test -s "conftest$ac_exeext"'
19582 { (eval echo "$as_me:19582: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:19585: \$? = $ac_status" >&5
19586 (exit "$ac_status"); }; }; then
19587 ac_cv_lib_intl_libintl_gettext=yes
19589 echo "$as_me: failed program was:" >&5
19590 cat "conftest.$ac_ext" >&5
19591 ac_cv_lib_intl_libintl_gettext=no
19593 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19594 LIBS=$ac_check_lib_save_LIBS
19596 echo "$as_me:19596: result: $ac_cv_lib_intl_libintl_gettext" >&5
19597 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19598 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19600 cf_add_libs="$LIBS"
19603 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19604 # filter duplicates
19605 for cf_add_1lib in $cf_add_0lib; do
19606 for cf_add_2lib in $cf_add_libs; do
19607 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19612 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19614 LIBS="$cf_add_libs"
19618 echo "$as_me:19618: checking for tre_regcomp in -ltre" >&5
19619 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19620 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 ac_check_lib_save_LIBS=$LIBS
19625 cat >"conftest.$ac_ext" <<_ACEOF
19626 #line 19626 "configure"
19627 #include "confdefs.h"
19629 /* Override any gcc2 internal prototype to avoid an error. */
19633 /* We use char because int might match the return type of a gcc2
19634 builtin and then its argument prototype would still apply. */
19635 char tre_regcomp ();
19644 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19645 if { (eval echo "$as_me:19645: \"$ac_link\"") >&5
19646 (eval $ac_link) 2>&5
19648 echo "$as_me:19648: \$? = $ac_status" >&5
19649 (exit "$ac_status"); } &&
19650 { ac_try='test -s "conftest$ac_exeext"'
19651 { (eval echo "$as_me:19651: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 echo "$as_me:19654: \$? = $ac_status" >&5
19655 (exit "$ac_status"); }; }; then
19656 ac_cv_lib_tre_tre_regcomp=yes
19658 echo "$as_me: failed program was:" >&5
19659 cat "conftest.$ac_ext" >&5
19660 ac_cv_lib_tre_tre_regcomp=no
19662 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19663 LIBS=$ac_check_lib_save_LIBS
19665 echo "$as_me:19665: result: $ac_cv_lib_tre_tre_regcomp" >&5
19666 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19667 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19669 cf_add_libs="$LIBS"
19672 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19673 # filter duplicates
19674 for cf_add_1lib in $cf_add_0lib; do
19675 for cf_add_2lib in $cf_add_libs; do
19676 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19681 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19683 LIBS="$cf_add_libs"
19687 cf_add_libs="$LIBS"
19690 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19691 # filter duplicates
19692 for cf_add_1lib in $cf_add_0lib; do
19693 for cf_add_2lib in $cf_add_libs; do
19694 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19699 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19701 LIBS="$cf_add_libs"
19703 cf_regex_func=regcomp
19707 echo "$as_me:19707: checking for regcomp in -lgnurx" >&5
19708 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19709 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-lgnurx $LIBS"
19714 cat >"conftest.$ac_ext" <<_ACEOF
19715 #line 19715 "configure"
19716 #include "confdefs.h"
19718 /* Override any gcc2 internal prototype to avoid an error. */
19722 /* We use char because int might match the return type of a gcc2
19723 builtin and then its argument prototype would still apply. */
19733 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19734 if { (eval echo "$as_me:19734: \"$ac_link\"") >&5
19735 (eval $ac_link) 2>&5
19737 echo "$as_me:19737: \$? = $ac_status" >&5
19738 (exit "$ac_status"); } &&
19739 { ac_try='test -s "conftest$ac_exeext"'
19740 { (eval echo "$as_me:19740: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:19743: \$? = $ac_status" >&5
19744 (exit "$ac_status"); }; }; then
19745 ac_cv_lib_gnurx_regcomp=yes
19747 echo "$as_me: failed program was:" >&5
19748 cat "conftest.$ac_ext" >&5
19749 ac_cv_lib_gnurx_regcomp=no
19751 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19752 LIBS=$ac_check_lib_save_LIBS
19754 echo "$as_me:19754: result: $ac_cv_lib_gnurx_regcomp" >&5
19755 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19756 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19758 cf_add_libs="$LIBS"
19761 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19762 # filter duplicates
19763 for cf_add_1lib in $cf_add_0lib; do
19764 for cf_add_2lib in $cf_add_libs; do
19765 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19770 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19772 LIBS="$cf_add_libs"
19774 cf_regex_func=regcomp
19781 cf_regex_libs="regex re"
19782 echo "$as_me:19782: checking for regcomp" >&5
19783 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19784 if test "${ac_cv_func_regcomp+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 cat >"conftest.$ac_ext" <<_ACEOF
19788 #line 19788 "configure"
19789 #include "confdefs.h"
19790 #define regcomp autoconf_temporary
19791 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19798 /* We use char because int might match the return type of a gcc2
19799 builtin and then its argument prototype would still apply. */
19800 char regcomp (void);
19806 /* The GNU C library defines stubs for functions which it implements
19807 to always fail with ENOSYS. Some functions are actually named
19808 something starting with __ and the normal name is an alias. */
19809 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19810 #error found stub for regcomp
19818 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19819 if { (eval echo "$as_me:19819: \"$ac_link\"") >&5
19820 (eval $ac_link) 2>&5
19822 echo "$as_me:19822: \$? = $ac_status" >&5
19823 (exit "$ac_status"); } &&
19824 { ac_try='test -s "conftest$ac_exeext"'
19825 { (eval echo "$as_me:19825: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19828 echo "$as_me:19828: \$? = $ac_status" >&5
19829 (exit "$ac_status"); }; }; then
19830 ac_cv_func_regcomp=yes
19832 echo "$as_me: failed program was:" >&5
19833 cat "conftest.$ac_ext" >&5
19834 ac_cv_func_regcomp=no
19836 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19838 echo "$as_me:19838: result: $ac_cv_func_regcomp" >&5
19839 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19840 if test "$ac_cv_func_regcomp" = yes; then
19841 cf_regex_func=regcomp
19844 for cf_regex_lib in $cf_regex_libs
19846 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19847 echo "$as_me:19847: checking for regcomp in -l$cf_regex_lib" >&5
19848 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19849 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 ac_check_lib_save_LIBS=$LIBS
19853 LIBS="-l$cf_regex_lib $LIBS"
19854 cat >"conftest.$ac_ext" <<_ACEOF
19855 #line 19855 "configure"
19856 #include "confdefs.h"
19858 /* Override any gcc2 internal prototype to avoid an error. */
19862 /* We use char because int might match the return type of a gcc2
19863 builtin and then its argument prototype would still apply. */
19873 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19874 if { (eval echo "$as_me:19874: \"$ac_link\"") >&5
19875 (eval $ac_link) 2>&5
19877 echo "$as_me:19877: \$? = $ac_status" >&5
19878 (exit "$ac_status"); } &&
19879 { ac_try='test -s "conftest$ac_exeext"'
19880 { (eval echo "$as_me:19880: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19883 echo "$as_me:19883: \$? = $ac_status" >&5
19884 (exit "$ac_status"); }; }; then
19885 eval "$as_ac_Lib=yes"
19887 echo "$as_me: failed program was:" >&5
19888 cat "conftest.$ac_ext" >&5
19889 eval "$as_ac_Lib=no"
19891 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19892 LIBS=$ac_check_lib_save_LIBS
19894 echo "$as_me:19894: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19895 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19896 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19898 cf_add_libs="$LIBS"
19901 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19902 # filter duplicates
19903 for cf_add_1lib in $cf_add_0lib; do
19904 for cf_add_2lib in $cf_add_libs; do
19905 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19910 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19912 LIBS="$cf_add_libs"
19914 cf_regex_func=regcomp
19925 if test "$cf_regex_func" = no ; then
19926 echo "$as_me:19926: checking for compile" >&5
19927 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19928 if test "${ac_cv_func_compile+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 cat >"conftest.$ac_ext" <<_ACEOF
19932 #line 19932 "configure"
19933 #include "confdefs.h"
19934 #define compile autoconf_temporary
19935 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19942 /* We use char because int might match the return type of a gcc2
19943 builtin and then its argument prototype would still apply. */
19944 char compile (void);
19950 /* The GNU C library defines stubs for functions which it implements
19951 to always fail with ENOSYS. Some functions are actually named
19952 something starting with __ and the normal name is an alias. */
19953 #if defined (__stub_compile) || defined (__stub___compile)
19954 #error found stub for compile
19962 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19963 if { (eval echo "$as_me:19963: \"$ac_link\"") >&5
19964 (eval $ac_link) 2>&5
19966 echo "$as_me:19966: \$? = $ac_status" >&5
19967 (exit "$ac_status"); } &&
19968 { ac_try='test -s "conftest$ac_exeext"'
19969 { (eval echo "$as_me:19969: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19972 echo "$as_me:19972: \$? = $ac_status" >&5
19973 (exit "$ac_status"); }; }; then
19974 ac_cv_func_compile=yes
19976 echo "$as_me: failed program was:" >&5
19977 cat "conftest.$ac_ext" >&5
19978 ac_cv_func_compile=no
19980 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19982 echo "$as_me:19982: result: $ac_cv_func_compile" >&5
19983 echo "${ECHO_T}$ac_cv_func_compile" >&6
19984 if test "$ac_cv_func_compile" = yes; then
19985 cf_regex_func=compile
19988 echo "$as_me:19988: checking for compile in -lgen" >&5
19989 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19990 if test "${ac_cv_lib_gen_compile+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 ac_check_lib_save_LIBS=$LIBS
19995 cat >"conftest.$ac_ext" <<_ACEOF
19996 #line 19996 "configure"
19997 #include "confdefs.h"
19999 /* Override any gcc2 internal prototype to avoid an error. */
20003 /* We use char because int might match the return type of a gcc2
20004 builtin and then its argument prototype would still apply. */
20014 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20015 if { (eval echo "$as_me:20015: \"$ac_link\"") >&5
20016 (eval $ac_link) 2>&5
20018 echo "$as_me:20018: \$? = $ac_status" >&5
20019 (exit "$ac_status"); } &&
20020 { ac_try='test -s "conftest$ac_exeext"'
20021 { (eval echo "$as_me:20021: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20024 echo "$as_me:20024: \$? = $ac_status" >&5
20025 (exit "$ac_status"); }; }; then
20026 ac_cv_lib_gen_compile=yes
20028 echo "$as_me: failed program was:" >&5
20029 cat "conftest.$ac_ext" >&5
20030 ac_cv_lib_gen_compile=no
20032 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20033 LIBS=$ac_check_lib_save_LIBS
20035 echo "$as_me:20035: result: $ac_cv_lib_gen_compile" >&5
20036 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
20037 if test "$ac_cv_lib_gen_compile" = yes; then
20039 cf_add_libs="$LIBS"
20042 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20043 # filter duplicates
20044 for cf_add_1lib in $cf_add_0lib; do
20045 for cf_add_2lib in $cf_add_libs; do
20046 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20051 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20053 LIBS="$cf_add_libs"
20055 cf_regex_func=compile
20062 if test "$cf_regex_func" = no ; then
20063 { echo "$as_me:20063: WARNING: cannot find regular expression library" >&5
20064 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
20067 echo "$as_me:20067: checking for regular-expression headers" >&5
20068 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
20069 if test "${cf_cv_regex_hdrs+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 cf_cv_regex_hdrs=no
20074 case "$cf_regex_func" in
20076 for cf_regex_hdr in regexp.h regexpr.h
20078 cat >"conftest.$ac_ext" <<_ACEOF
20079 #line 20079 "configure"
20080 #include "confdefs.h"
20081 #include <$cf_regex_hdr>
20086 char *p = compile("", "", "", 0);
20087 int x = step("", "");
20095 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20096 if { (eval echo "$as_me:20096: \"$ac_link\"") >&5
20097 (eval $ac_link) 2>&5
20099 echo "$as_me:20099: \$? = $ac_status" >&5
20100 (exit "$ac_status"); } &&
20101 { ac_try='test -s "conftest$ac_exeext"'
20102 { (eval echo "$as_me:20102: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20105 echo "$as_me:20105: \$? = $ac_status" >&5
20106 (exit "$ac_status"); }; }; then
20108 cf_cv_regex_hdrs=$cf_regex_hdr
20112 echo "$as_me: failed program was:" >&5
20113 cat "conftest.$ac_ext" >&5
20115 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20119 for cf_regex_hdr in regex.h
20121 cat >"conftest.$ac_ext" <<_ACEOF
20122 #line 20122 "configure"
20123 #include "confdefs.h"
20124 #include <sys/types.h>
20125 #include <$cf_regex_hdr>
20131 int x = regcomp(p, "", 0);
20132 int y = regexec(p, "", 0, 0, 0);
20141 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20142 if { (eval echo "$as_me:20142: \"$ac_link\"") >&5
20143 (eval $ac_link) 2>&5
20145 echo "$as_me:20145: \$? = $ac_status" >&5
20146 (exit "$ac_status"); } &&
20147 { ac_try='test -s "conftest$ac_exeext"'
20148 { (eval echo "$as_me:20148: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20151 echo "$as_me:20151: \$? = $ac_status" >&5
20152 (exit "$ac_status"); }; }; then
20154 cf_cv_regex_hdrs=$cf_regex_hdr
20158 echo "$as_me: failed program was:" >&5
20159 cat "conftest.$ac_ext" >&5
20161 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20167 echo "$as_me:20167: result: $cf_cv_regex_hdrs" >&5
20168 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20170 case "$cf_cv_regex_hdrs" in
20171 (no) { echo "$as_me:20171: WARNING: no regular expression header found" >&5
20172 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20174 cat >>confdefs.h <<\EOF
20175 #define HAVE_REGEX_H_FUNCS 1
20179 cat >>confdefs.h <<\EOF
20180 #define HAVE_REGEXP_H_FUNCS 1
20184 cat >>confdefs.h <<\EOF
20185 #define HAVE_REGEXPR_H_FUNCS 1
20208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20209 echo "$as_me:20209: checking for $ac_header" >&5
20210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 cat >"conftest.$ac_ext" <<_ACEOF
20215 #line 20215 "configure"
20216 #include "confdefs.h"
20217 #include <$ac_header>
20219 if { (eval echo "$as_me:20219: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20220 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20222 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:20225: \$? = $ac_status" >&5
20226 (exit "$ac_status"); } >/dev/null; then
20227 if test -s conftest.err; then
20228 ac_cpp_err=$ac_c_preproc_warn_flag
20235 if test -z "$ac_cpp_err"; then
20236 eval "$as_ac_Header=yes"
20238 echo "$as_me: failed program was:" >&5
20239 cat "conftest.$ac_ext" >&5
20240 eval "$as_ac_Header=no"
20242 rm -f conftest.err "conftest.$ac_ext"
20244 echo "$as_me:20244: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20245 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20246 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20247 cat >>confdefs.h <<EOF
20248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254 for ac_header in unistd.h getopt.h
20256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20257 echo "$as_me:20257: checking for $ac_header" >&5
20258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 cat >"conftest.$ac_ext" <<_ACEOF
20263 #line 20263 "configure"
20264 #include "confdefs.h"
20265 #include <$ac_header>
20267 if { (eval echo "$as_me:20267: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20268 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20270 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20272 cat conftest.err >&5
20273 echo "$as_me:20273: \$? = $ac_status" >&5
20274 (exit "$ac_status"); } >/dev/null; then
20275 if test -s conftest.err; then
20276 ac_cpp_err=$ac_c_preproc_warn_flag
20283 if test -z "$ac_cpp_err"; then
20284 eval "$as_ac_Header=yes"
20286 echo "$as_me: failed program was:" >&5
20287 cat "conftest.$ac_ext" >&5
20288 eval "$as_ac_Header=no"
20290 rm -f conftest.err "conftest.$ac_ext"
20292 echo "$as_me:20292: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20293 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20294 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20295 cat >>confdefs.h <<EOF
20296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20302 echo "$as_me:20302: checking for header declaring getopt variables" >&5
20303 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20304 if test "${cf_cv_getopt_header+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 cf_cv_getopt_header=none
20309 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20311 cat >"conftest.$ac_ext" <<_ACEOF
20312 #line 20312 "configure"
20313 #include "confdefs.h"
20315 #include <$cf_header>
20319 int x = optind; char *y = optarg; (void)x; (void)y
20324 rm -f "conftest.$ac_objext"
20325 if { (eval echo "$as_me:20325: \"$ac_compile\"") >&5
20326 (eval $ac_compile) 2>&5
20328 echo "$as_me:20328: \$? = $ac_status" >&5
20329 (exit "$ac_status"); } &&
20330 { ac_try='test -s "conftest.$ac_objext"'
20331 { (eval echo "$as_me:20331: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20334 echo "$as_me:20334: \$? = $ac_status" >&5
20335 (exit "$ac_status"); }; }; then
20336 cf_cv_getopt_header=$cf_header
20339 echo "$as_me: failed program was:" >&5
20340 cat "conftest.$ac_ext" >&5
20342 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20346 echo "$as_me:20346: result: $cf_cv_getopt_header" >&5
20347 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20348 if test "$cf_cv_getopt_header" != none ; then
20350 cat >>confdefs.h <<\EOF
20351 #define HAVE_GETOPT_HEADER 1
20355 if test "$cf_cv_getopt_header" = getopt.h ; then
20357 cat >>confdefs.h <<\EOF
20358 #define NEED_GETOPT_H 1
20363 echo "$as_me:20363: checking if external environ is declared" >&5
20364 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20365 if test "${cf_cv_dcl_environ+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 cat >"conftest.$ac_ext" <<_ACEOF
20370 #line 20370 "configure"
20371 #include "confdefs.h"
20373 $ac_includes_default
20377 void* x = (void*) environ; (void)x
20382 rm -f "conftest.$ac_objext"
20383 if { (eval echo "$as_me:20383: \"$ac_compile\"") >&5
20384 (eval $ac_compile) 2>&5
20386 echo "$as_me:20386: \$? = $ac_status" >&5
20387 (exit "$ac_status"); } &&
20388 { ac_try='test -s "conftest.$ac_objext"'
20389 { (eval echo "$as_me:20389: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20392 echo "$as_me:20392: \$? = $ac_status" >&5
20393 (exit "$ac_status"); }; }; then
20394 cf_cv_dcl_environ=yes
20396 echo "$as_me: failed program was:" >&5
20397 cat "conftest.$ac_ext" >&5
20398 cf_cv_dcl_environ=no
20400 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20403 echo "$as_me:20403: result: $cf_cv_dcl_environ" >&5
20404 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20406 if test "$cf_cv_dcl_environ" = no ; then
20408 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20410 cat >>confdefs.h <<EOF
20411 #define $cf_result 1
20416 # It's possible (for near-UNIX clones) that the data doesn't exist
20418 echo "$as_me:20418: checking if external environ exists" >&5
20419 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20420 if test "${cf_cv_have_environ+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 cat >"conftest.$ac_ext" <<_ACEOF
20425 #line 20425 "configure"
20426 #include "confdefs.h"
20429 extern int environ;
20439 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20440 if { (eval echo "$as_me:20440: \"$ac_link\"") >&5
20441 (eval $ac_link) 2>&5
20443 echo "$as_me:20443: \$? = $ac_status" >&5
20444 (exit "$ac_status"); } &&
20445 { ac_try='test -s "conftest$ac_exeext"'
20446 { (eval echo "$as_me:20446: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20449 echo "$as_me:20449: \$? = $ac_status" >&5
20450 (exit "$ac_status"); }; }; then
20451 cf_cv_have_environ=yes
20453 echo "$as_me: failed program was:" >&5
20454 cat "conftest.$ac_ext" >&5
20455 cf_cv_have_environ=no
20457 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20460 echo "$as_me:20460: result: $cf_cv_have_environ" >&5
20461 echo "${ECHO_T}$cf_cv_have_environ" >&6
20463 if test "$cf_cv_have_environ" = yes ; then
20465 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20467 cat >>confdefs.h <<EOF
20468 #define $cf_result 1
20473 echo "$as_me:20473: checking for getenv" >&5
20474 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20475 if test "${ac_cv_func_getenv+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 cat >"conftest.$ac_ext" <<_ACEOF
20479 #line 20479 "configure"
20480 #include "confdefs.h"
20481 #define getenv autoconf_temporary
20482 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20489 /* We use char because int might match the return type of a gcc2
20490 builtin and then its argument prototype would still apply. */
20491 char getenv (void);
20497 /* The GNU C library defines stubs for functions which it implements
20498 to always fail with ENOSYS. Some functions are actually named
20499 something starting with __ and the normal name is an alias. */
20500 #if defined (__stub_getenv) || defined (__stub___getenv)
20501 #error found stub for getenv
20509 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20510 if { (eval echo "$as_me:20510: \"$ac_link\"") >&5
20511 (eval $ac_link) 2>&5
20513 echo "$as_me:20513: \$? = $ac_status" >&5
20514 (exit "$ac_status"); } &&
20515 { ac_try='test -s "conftest$ac_exeext"'
20516 { (eval echo "$as_me:20516: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:20519: \$? = $ac_status" >&5
20520 (exit "$ac_status"); }; }; then
20521 ac_cv_func_getenv=yes
20523 echo "$as_me: failed program was:" >&5
20524 cat "conftest.$ac_ext" >&5
20525 ac_cv_func_getenv=no
20527 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20529 echo "$as_me:20529: result: $ac_cv_func_getenv" >&5
20530 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20532 for ac_func in putenv setenv strdup
20534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20535 echo "$as_me:20535: checking for $ac_func" >&5
20536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20537 if eval "test \"\${$as_ac_var+set}\" = set"; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 cat >"conftest.$ac_ext" <<_ACEOF
20541 #line 20541 "configure"
20542 #include "confdefs.h"
20543 #define $ac_func autoconf_temporary
20544 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20551 /* We use char because int might match the return type of a gcc2
20552 builtin and then its argument prototype would still apply. */
20553 char $ac_func (void);
20559 /* The GNU C library defines stubs for functions which it implements
20560 to always fail with ENOSYS. Some functions are actually named
20561 something starting with __ and the normal name is an alias. */
20562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20563 #error found stub for $ac_func
20566 return $ac_func ();
20571 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20572 if { (eval echo "$as_me:20572: \"$ac_link\"") >&5
20573 (eval $ac_link) 2>&5
20575 echo "$as_me:20575: \$? = $ac_status" >&5
20576 (exit "$ac_status"); } &&
20577 { ac_try='test -s "conftest$ac_exeext"'
20578 { (eval echo "$as_me:20578: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20581 echo "$as_me:20581: \$? = $ac_status" >&5
20582 (exit "$ac_status"); }; }; then
20583 eval "$as_ac_var=yes"
20585 echo "$as_me: failed program was:" >&5
20586 cat "conftest.$ac_ext" >&5
20587 eval "$as_ac_var=no"
20589 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20591 echo "$as_me:20591: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20592 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20593 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20594 cat >>confdefs.h <<EOF
20595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20601 echo "$as_me:20601: checking if getenv returns consistent values" >&5
20602 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20603 if test "${cf_cv_consistent_getenv+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 if test "$cross_compiling" = yes; then
20608 cf_cv_consistent_getenv=unknown
20610 cat >"conftest.$ac_ext" <<_ACEOF
20611 #line 20611 "configure"
20612 #include "confdefs.h"
20614 $ac_includes_default
20616 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20617 extern char **environ; /* POSIX, but some systems are not... */
20620 #if defined(HAVE_STRDUP)
20621 #define str_alloc(s) strdup(s)
20623 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20626 static void set_value(const char *name, const char *value)
20628 #if defined(HAVE_SETENV)
20629 setenv(name, value, 1);
20630 #elif defined(HAVE_PUTENV)
20632 sprintf(buffer, "%s=%s", name, value);
20633 putenv(str_alloc(buffer));
20635 #error neither putenv/setenv found
20641 size_t numenv, limit, j;
20646 for (numenv = 0; environ[numenv]; ++numenv) ;
20647 limit = numenv + 10;
20648 mynames = (char **) calloc(limit + 1, sizeof(char *));
20649 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20650 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20651 #if defined(HAVE_ENVIRON)
20652 for (j = 0; environ[j]; ++j) {
20653 mynames[j] = str_alloc(environ[j]);
20654 equals = strchr(mynames[j], '=');
20657 myvalues[j] = str_alloc(equals);
20659 myvalues[j] = str_alloc("");
20663 for (j = numenv; j < limit; ++j) {
20671 sprintf(name, "TERM%lu", (unsigned long) k);
20672 for (jk = 0; jk < j; ++jk) {
20673 if (!strcmp(name, mynames[jk])) {
20680 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20681 set_value(name, value);
20682 mynames[j] = str_alloc(name);
20683 myvalues[j] = str_alloc(value);
20685 for (pass = 0; pass < 3; ++pass) {
20686 for (j = 0; j < limit; ++j) {
20687 char *value = getenv(mynames[j]);
20690 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20691 ${cf_cv_main_return:-return}(1);
20692 } else if (value != mypointer[j]) {
20693 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20694 ${cf_cv_main_return:-return}(1);
20695 } else if (strcmp(value, myvalues[j])) {
20696 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20697 ${cf_cv_main_return:-return}(1);
20701 mypointer[j] = value;
20702 for (k = 0; k < j; ++k) {
20703 if (mypointer[j] == mypointer[k]) {
20704 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20705 ${cf_cv_main_return:-return}(1);
20711 ${cf_cv_main_return:-return}(0);
20715 rm -f "conftest$ac_exeext"
20716 if { (eval echo "$as_me:20716: \"$ac_link\"") >&5
20717 (eval $ac_link) 2>&5
20719 echo "$as_me:20719: \$? = $ac_status" >&5
20720 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20721 { (eval echo "$as_me:20721: \"$ac_try\"") >&5
20722 (eval $ac_try) 2>&5
20724 echo "$as_me:20724: \$? = $ac_status" >&5
20725 (exit "$ac_status"); }; }; then
20726 cf_cv_consistent_getenv=yes
20728 echo "$as_me: program exited with status $ac_status" >&5
20729 echo "$as_me: failed program was:" >&5
20730 cat "conftest.$ac_ext" >&5
20731 cf_cv_consistent_getenv=no
20733 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20737 echo "$as_me:20737: result: $cf_cv_consistent_getenv" >&5
20738 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20740 if test "x$cf_cv_consistent_getenv" = xno
20743 cat >>confdefs.h <<\EOF
20744 #define HAVE_CONSISTENT_GETENV 1
20749 if test "x$cf_cv_consistent_getenv" = xno && \
20750 test "x$cf_with_trace" = xyes
20752 { echo "$as_me:20752: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20753 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20756 echo "$as_me:20756: checking if sys/time.h works with sys/select.h" >&5
20757 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20758 if test "${cf_cv_sys_time_select+set}" = set; then
20759 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 cat >"conftest.$ac_ext" <<_ACEOF
20763 #line 20763 "configure"
20764 #include "confdefs.h"
20766 #include <sys/types.h>
20767 #ifdef HAVE_SYS_TIME_H
20768 #include <sys/time.h>
20770 #ifdef HAVE_SYS_SELECT_H
20771 #include <sys/select.h>
20782 rm -f "conftest.$ac_objext"
20783 if { (eval echo "$as_me:20783: \"$ac_compile\"") >&5
20784 (eval $ac_compile) 2>&5
20786 echo "$as_me:20786: \$? = $ac_status" >&5
20787 (exit "$ac_status"); } &&
20788 { ac_try='test -s "conftest.$ac_objext"'
20789 { (eval echo "$as_me:20789: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:20792: \$? = $ac_status" >&5
20793 (exit "$ac_status"); }; }; then
20794 cf_cv_sys_time_select=yes
20796 echo "$as_me: failed program was:" >&5
20797 cat "conftest.$ac_ext" >&5
20798 cf_cv_sys_time_select=no
20800 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20804 echo "$as_me:20804: result: $cf_cv_sys_time_select" >&5
20805 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20806 test "$cf_cv_sys_time_select" = yes &&
20807 cat >>confdefs.h <<\EOF
20808 #define HAVE_SYS_TIME_SELECT 1
20811 ### checks for compiler characteristics
20813 ac_cpp='$CPP $CPPFLAGS'
20814 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20815 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20817 ac_main_return="return"
20819 echo "$as_me:20819: checking for an ANSI C-conforming const" >&5
20820 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20821 if test "${ac_cv_c_const+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 cat >"conftest.$ac_ext" <<_ACEOF
20825 #line 20825 "configure"
20826 #include "confdefs.h"
20831 /* FIXME: Include the comments suggested by Paul. */
20832 #ifndef __cplusplus
20833 /* Ultrix mips cc rejects this. */
20834 typedef int charset[2];
20836 /* SunOS 4.1.1 cc rejects this. */
20837 char const *const *ccp;
20839 /* NEC SVR4.0.2 mips cc rejects this. */
20840 struct point {int x, y;};
20841 static struct point const zero = {0,0};
20842 /* AIX XL C 1.02.0.0 rejects this.
20843 It does not let you subtract one const X* pointer from another in
20844 an arm of an if-expression whose if-part is not a constant
20846 const char *g = "string";
20847 ccp = &g + (g ? g-g : 0);
20848 /* HPUX 7.0 cc rejects these. */
20851 ccp = (char const *const *) p;
20852 { /* SCO 3.2v4 cc rejects this. */
20854 char const *s = 0 ? (char *) 0 : (char const *) 0;
20858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20859 int x[] = {25, 17};
20860 const int *foo = &x[0];
20863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20864 typedef const int *iptr;
20868 { /* AIX XL C 1.02.0.0 rejects this saying
20869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20870 struct s { int j; const int *ap[3]; };
20871 struct s *b; b->j = 5;
20873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20874 const int foo = 10;
20882 rm -f "conftest.$ac_objext"
20883 if { (eval echo "$as_me:20883: \"$ac_compile\"") >&5
20884 (eval $ac_compile) 2>&5
20886 echo "$as_me:20886: \$? = $ac_status" >&5
20887 (exit "$ac_status"); } &&
20888 { ac_try='test -s "conftest.$ac_objext"'
20889 { (eval echo "$as_me:20889: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:20892: \$? = $ac_status" >&5
20893 (exit "$ac_status"); }; }; then
20896 echo "$as_me: failed program was:" >&5
20897 cat "conftest.$ac_ext" >&5
20900 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20902 echo "$as_me:20902: result: $ac_cv_c_const" >&5
20903 echo "${ECHO_T}$ac_cv_c_const" >&6
20904 if test $ac_cv_c_const = no; then
20906 cat >>confdefs.h <<\EOF
20912 echo "$as_me:20912: checking for inline" >&5
20913 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20914 if test "${ac_cv_c_inline+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 for ac_kw in inline __inline__ __inline; do
20919 cat >"conftest.$ac_ext" <<_ACEOF
20920 #line 20920 "configure"
20921 #include "confdefs.h"
20922 #ifndef __cplusplus
20923 static $ac_kw int static_foo () {return 0; }
20924 $ac_kw int foo () {return 0; }
20928 rm -f "conftest.$ac_objext"
20929 if { (eval echo "$as_me:20929: \"$ac_compile\"") >&5
20930 (eval $ac_compile) 2>&5
20932 echo "$as_me:20932: \$? = $ac_status" >&5
20933 (exit "$ac_status"); } &&
20934 { ac_try='test -s "conftest.$ac_objext"'
20935 { (eval echo "$as_me:20935: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20938 echo "$as_me:20938: \$? = $ac_status" >&5
20939 (exit "$ac_status"); }; }; then
20940 ac_cv_c_inline=$ac_kw; break
20942 echo "$as_me: failed program was:" >&5
20943 cat "conftest.$ac_ext" >&5
20945 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20949 echo "$as_me:20949: result: $ac_cv_c_inline" >&5
20950 echo "${ECHO_T}$ac_cv_c_inline" >&6
20951 case $ac_cv_c_inline in
20954 cat >>confdefs.h <<\EOF
20958 *) cat >>confdefs.h <<EOF
20959 #define inline $ac_cv_c_inline
20965 if test "$ac_cv_c_inline" != no ; then
20966 NCURSES_INLINE=inline
20967 if test "$INTEL_COMPILER" = yes
20970 elif test "$CLANG_COMPILER" = yes
20973 elif test "$GCC" = yes
20975 echo "$as_me:20975: checking if $CC supports options to tune inlining" >&5
20976 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20977 if test "${cf_cv_gcc_inline+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 cf_save_CFLAGS=$CFLAGS
20982 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20983 cat >"conftest.$ac_ext" <<_ACEOF
20984 #line 20984 "configure"
20985 #include "confdefs.h"
20986 inline int foo(void) { return 1; }
20990 ${cf_cv_main_return:-return} foo()
20995 rm -f "conftest.$ac_objext"
20996 if { (eval echo "$as_me:20996: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>&5
20999 echo "$as_me:20999: \$? = $ac_status" >&5
21000 (exit "$ac_status"); } &&
21001 { ac_try='test -s "conftest.$ac_objext"'
21002 { (eval echo "$as_me:21002: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21005 echo "$as_me:21005: \$? = $ac_status" >&5
21006 (exit "$ac_status"); }; }; then
21007 cf_cv_gcc_inline=yes
21009 echo "$as_me: failed program was:" >&5
21010 cat "conftest.$ac_ext" >&5
21011 cf_cv_gcc_inline=no
21013 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21014 CFLAGS=$cf_save_CFLAGS
21017 echo "$as_me:21017: result: $cf_cv_gcc_inline" >&5
21018 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
21019 if test "$cf_cv_gcc_inline" = yes ; then
21024 cf_new_extra_cppflags=
21026 for cf_add_cflags in --param max-inline-insns-single=1200
21028 case "$cf_fix_cppflags" in
21030 case "$cf_add_cflags" in
21031 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
21032 case "$cf_add_cflags" in
21034 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21036 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21037 && test -z "${cf_tst_cflags}" \
21038 && cf_fix_cppflags=yes
21040 if test "$cf_fix_cppflags" = yes ; then
21042 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21043 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21046 elif test "${cf_tst_cflags}" = "\"'" ; then
21048 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21049 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21055 case "$CPPFLAGS" in
21059 case "$cf_add_cflags" in
21061 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21063 CPPFLAGS=`echo "$CPPFLAGS" | \
21064 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21065 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21070 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
21071 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
21078 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
21079 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21086 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21087 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21089 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
21091 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21092 && test -z "${cf_tst_cflags}" \
21093 && cf_fix_cppflags=no
21098 if test -n "$cf_new_cflags" ; then
21100 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21101 CFLAGS="${CFLAGS}$cf_new_cflags"
21105 if test -n "$cf_new_cppflags" ; then
21107 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21108 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21112 if test -n "$cf_new_extra_cppflags" ; then
21114 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21115 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21123 echo "$as_me:21123: checking for signal global datatype" >&5
21124 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21125 if test "${cf_cv_sig_atomic_t+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 "volatile sig_atomic_t" \
21134 cat >"conftest.$ac_ext" <<_ACEOF
21135 #line 21135 "configure"
21136 #include "confdefs.h"
21138 #include <sys/types.h>
21139 #include <signal.h>
21144 static void handler(int sig)
21152 signal(SIGINT, handler);
21158 rm -f "conftest.$ac_objext"
21159 if { (eval echo "$as_me:21159: \"$ac_compile\"") >&5
21160 (eval $ac_compile) 2>&5
21162 echo "$as_me:21162: \$? = $ac_status" >&5
21163 (exit "$ac_status"); } &&
21164 { ac_try='test -s "conftest.$ac_objext"'
21165 { (eval echo "$as_me:21165: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:21168: \$? = $ac_status" >&5
21169 (exit "$ac_status"); }; }; then
21170 cf_cv_sig_atomic_t=$cf_type
21172 echo "$as_me: failed program was:" >&5
21173 cat "conftest.$ac_ext" >&5
21174 cf_cv_sig_atomic_t=no
21176 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21177 test "$cf_cv_sig_atomic_t" != no && break
21182 echo "$as_me:21182: result: $cf_cv_sig_atomic_t" >&5
21183 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21184 test "$cf_cv_sig_atomic_t" != no &&
21185 cat >>confdefs.h <<EOF
21186 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21189 if test "$NCURSES_CHTYPE" = auto ; then
21191 echo "$as_me:21191: checking for type of chtype" >&5
21192 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21193 if test "${cf_cv_typeof_chtype+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 if test "$cross_compiling" = yes; then
21198 cf_cv_typeof_chtype=long
21200 cat >"conftest.$ac_ext" <<_ACEOF
21201 #line 21201 "configure"
21202 #include "confdefs.h"
21204 $ac_includes_default
21205 #define WANT_BITS 31
21208 FILE *fp = fopen("cf_test.out", "w");
21210 char *result = "long";
21211 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21214 for (n = 0; n < WANT_BITS; n++) {
21217 if (y != 1 || x == 0) {
21223 * If x is nonzero, an int is big enough for the bits
21226 result = (x != 0) ? "int" : "long";
21231 ${cf_cv_main_return:-return}(0);
21235 rm -f "conftest$ac_exeext"
21236 if { (eval echo "$as_me:21236: \"$ac_link\"") >&5
21237 (eval $ac_link) 2>&5
21239 echo "$as_me:21239: \$? = $ac_status" >&5
21240 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21241 { (eval echo "$as_me:21241: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21244 echo "$as_me:21244: \$? = $ac_status" >&5
21245 (exit "$ac_status"); }; }; then
21246 cf_cv_typeof_chtype=`cat cf_test.out`
21248 echo "$as_me: program exited with status $ac_status" >&5
21249 echo "$as_me: failed program was:" >&5
21250 cat "conftest.$ac_ext" >&5
21251 cf_cv_typeof_chtype=long
21253 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21259 echo "$as_me:21259: result: $cf_cv_typeof_chtype" >&5
21260 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21262 cat >>confdefs.h <<EOF
21263 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21267 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21269 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21271 echo "$as_me:21271: checking if unsigned literals are legal" >&5
21272 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21273 if test "${cf_cv_unsigned_literals+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 cat >"conftest.$ac_ext" <<_ACEOF
21278 #line 21278 "configure"
21279 #include "confdefs.h"
21284 long x = 1L + 1UL + 1U + 1
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_unsigned_literals=yes
21303 echo "$as_me: failed program was:" >&5
21304 cat "conftest.$ac_ext" >&5
21305 cf_cv_unsigned_literals=no
21307 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21311 echo "$as_me:21311: result: $cf_cv_unsigned_literals" >&5
21312 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21315 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21316 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21318 if test "$NCURSES_MMASK_T" = auto ; then
21319 cf_cv_typeof_mmask_t=long
21321 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21323 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21325 ### Checks for external-data
21327 echo "$as_me:21327: checking if external errno is declared" >&5
21328 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21329 if test "${cf_cv_dcl_errno+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 cat >"conftest.$ac_ext" <<_ACEOF
21334 #line 21334 "configure"
21335 #include "confdefs.h"
21337 $ac_includes_default
21342 int x = (int) errno; (void)x
21347 rm -f "conftest.$ac_objext"
21348 if { (eval echo "$as_me:21348: \"$ac_compile\"") >&5
21349 (eval $ac_compile) 2>&5
21351 echo "$as_me:21351: \$? = $ac_status" >&5
21352 (exit "$ac_status"); } &&
21353 { ac_try='test -s "conftest.$ac_objext"'
21354 { (eval echo "$as_me:21354: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21357 echo "$as_me:21357: \$? = $ac_status" >&5
21358 (exit "$ac_status"); }; }; then
21359 cf_cv_dcl_errno=yes
21361 echo "$as_me: failed program was:" >&5
21362 cat "conftest.$ac_ext" >&5
21365 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21368 echo "$as_me:21368: result: $cf_cv_dcl_errno" >&5
21369 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21371 if test "$cf_cv_dcl_errno" = no ; then
21373 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21375 cat >>confdefs.h <<EOF
21376 #define $cf_result 1
21381 # It's possible (for near-UNIX clones) that the data doesn't exist
21383 echo "$as_me:21383: checking if external errno exists" >&5
21384 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21385 if test "${cf_cv_have_errno+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 cat >"conftest.$ac_ext" <<_ACEOF
21390 #line 21390 "configure"
21391 #include "confdefs.h"
21404 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21405 if { (eval echo "$as_me:21405: \"$ac_link\"") >&5
21406 (eval $ac_link) 2>&5
21408 echo "$as_me:21408: \$? = $ac_status" >&5
21409 (exit "$ac_status"); } &&
21410 { ac_try='test -s "conftest$ac_exeext"'
21411 { (eval echo "$as_me:21411: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21414 echo "$as_me:21414: \$? = $ac_status" >&5
21415 (exit "$ac_status"); }; }; then
21416 cf_cv_have_errno=yes
21418 echo "$as_me: failed program was:" >&5
21419 cat "conftest.$ac_ext" >&5
21420 cf_cv_have_errno=no
21422 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21425 echo "$as_me:21425: result: $cf_cv_have_errno" >&5
21426 echo "${ECHO_T}$cf_cv_have_errno" >&6
21428 if test "$cf_cv_have_errno" = yes ; then
21430 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21432 cat >>confdefs.h <<EOF
21433 #define $cf_result 1
21438 echo "$as_me:21438: checking if data-only library module links" >&5
21439 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21440 if test "${cf_cv_link_dataonly+set}" = set; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 cat >conftest.$ac_ext <<EOF
21446 #line 21446 "configure"
21447 int testdata[3] = { 123, 456, 789 };
21449 if { (eval echo "$as_me:21449: \"$ac_compile\"") >&5
21450 (eval $ac_compile) 2>&5
21452 echo "$as_me:21452: \$? = $ac_status" >&5
21453 (exit "$ac_status"); } ; then
21454 mv conftest.o data.o && \
21455 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21457 rm -f conftest.$ac_ext data.o
21458 cat >conftest.$ac_ext <<EOF
21459 #line 21459 "configure"
21463 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21465 extern int testdata[3];
21466 return testdata[0] == 123
21467 && testdata[1] == 456
21468 && testdata[2] == 789;
21472 if { (eval echo "$as_me:21472: \"$ac_compile\"") >&5
21473 (eval $ac_compile) 2>&5
21475 echo "$as_me:21475: \$? = $ac_status" >&5
21476 (exit "$ac_status"); }; then
21477 mv conftest.o func.o && \
21478 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21480 rm -f conftest.$ac_ext func.o
21481 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21482 cf_saveLIBS="$LIBS"
21483 LIBS="conftest.a $LIBS"
21484 if test "$cross_compiling" = yes; then
21485 cf_cv_link_dataonly=unknown
21487 cat >"conftest.$ac_ext" <<_ACEOF
21488 #line 21488 "configure"
21489 #include "confdefs.h"
21493 extern int testfunc();
21494 ${cf_cv_main_return:-return} (!testfunc());
21498 rm -f "conftest$ac_exeext"
21499 if { (eval echo "$as_me:21499: \"$ac_link\"") >&5
21500 (eval $ac_link) 2>&5
21502 echo "$as_me:21502: \$? = $ac_status" >&5
21503 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21504 { (eval echo "$as_me:21504: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21507 echo "$as_me:21507: \$? = $ac_status" >&5
21508 (exit "$ac_status"); }; }; then
21509 cf_cv_link_dataonly=yes
21511 echo "$as_me: program exited with status $ac_status" >&5
21512 echo "$as_me: failed program was:" >&5
21513 cat "conftest.$ac_ext" >&5
21514 cf_cv_link_dataonly=no
21516 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21518 LIBS="$cf_saveLIBS"
21522 echo "$as_me:21522: result: $cf_cv_link_dataonly" >&5
21523 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21525 if test "$cf_cv_link_dataonly" = no ; then
21527 cat >>confdefs.h <<\EOF
21528 #define BROKEN_LINKER 1
21534 ### Checks for library functions.
21536 echo "$as_me:21536: checking for clock_gettime" >&5
21537 echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
21538 if test "${cf_cv_func_clock_gettime+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 cat >"conftest.$ac_ext" <<_ACEOF
21543 #line 21543 "configure"
21544 #include "confdefs.h"
21549 struct timespec ts;
21550 int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts
21555 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21556 if { (eval echo "$as_me:21556: \"$ac_link\"") >&5
21557 (eval $ac_link) 2>&5
21559 echo "$as_me:21559: \$? = $ac_status" >&5
21560 (exit "$ac_status"); } &&
21561 { ac_try='test -s "conftest$ac_exeext"'
21562 { (eval echo "$as_me:21562: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21565 echo "$as_me:21565: \$? = $ac_status" >&5
21566 (exit "$ac_status"); }; }; then
21567 cf_cv_func_clock_gettime=yes
21569 echo "$as_me: failed program was:" >&5
21570 cat "conftest.$ac_ext" >&5
21571 cf_cv_func_clock_gettime=no
21573 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21576 echo "$as_me:21576: result: $cf_cv_func_clock_gettime" >&5
21577 echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6
21579 if test "$cf_cv_func_clock_gettime" = yes
21582 cat >>confdefs.h <<\EOF
21583 #define HAVE_CLOCK_GETTIME 1
21587 echo "$as_me:21587: checking for gettimeofday" >&5
21588 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
21589 if test "${ac_cv_func_gettimeofday+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 cat >"conftest.$ac_ext" <<_ACEOF
21593 #line 21593 "configure"
21594 #include "confdefs.h"
21595 #define gettimeofday autoconf_temporary
21596 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21597 #undef gettimeofday
21603 /* We use char because int might match the return type of a gcc2
21604 builtin and then its argument prototype would still apply. */
21605 char gettimeofday (void);
21611 /* The GNU C library defines stubs for functions which it implements
21612 to always fail with ENOSYS. Some functions are actually named
21613 something starting with __ and the normal name is an alias. */
21614 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
21615 #error found stub for gettimeofday
21618 return gettimeofday ();
21623 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21624 if { (eval echo "$as_me:21624: \"$ac_link\"") >&5
21625 (eval $ac_link) 2>&5
21627 echo "$as_me:21627: \$? = $ac_status" >&5
21628 (exit "$ac_status"); } &&
21629 { ac_try='test -s "conftest$ac_exeext"'
21630 { (eval echo "$as_me:21630: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21633 echo "$as_me:21633: \$? = $ac_status" >&5
21634 (exit "$ac_status"); }; }; then
21635 ac_cv_func_gettimeofday=yes
21637 echo "$as_me: failed program was:" >&5
21638 cat "conftest.$ac_ext" >&5
21639 ac_cv_func_gettimeofday=no
21641 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21643 echo "$as_me:21643: result: $ac_cv_func_gettimeofday" >&5
21644 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
21645 if test "$ac_cv_func_gettimeofday" = yes; then
21647 cat >>confdefs.h <<\EOF
21648 #define HAVE_GETTIMEOFDAY 1
21653 echo "$as_me:21653: checking for gettimeofday in -lbsd" >&5
21654 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
21655 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 ac_check_lib_save_LIBS=$LIBS
21660 cat >"conftest.$ac_ext" <<_ACEOF
21661 #line 21661 "configure"
21662 #include "confdefs.h"
21664 /* Override any gcc2 internal prototype to avoid an error. */
21668 /* We use char because int might match the return type of a gcc2
21669 builtin and then its argument prototype would still apply. */
21670 char gettimeofday ();
21679 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21680 if { (eval echo "$as_me:21680: \"$ac_link\"") >&5
21681 (eval $ac_link) 2>&5
21683 echo "$as_me:21683: \$? = $ac_status" >&5
21684 (exit "$ac_status"); } &&
21685 { ac_try='test -s "conftest$ac_exeext"'
21686 { (eval echo "$as_me:21686: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:21689: \$? = $ac_status" >&5
21690 (exit "$ac_status"); }; }; then
21691 ac_cv_lib_bsd_gettimeofday=yes
21693 echo "$as_me: failed program was:" >&5
21694 cat "conftest.$ac_ext" >&5
21695 ac_cv_lib_bsd_gettimeofday=no
21697 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21698 LIBS=$ac_check_lib_save_LIBS
21700 echo "$as_me:21700: result: $ac_cv_lib_bsd_gettimeofday" >&5
21701 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
21702 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
21704 cat >>confdefs.h <<\EOF
21705 #define HAVE_GETTIMEOFDAY 1
21708 cf_add_libs="$LIBS"
21711 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21712 # filter duplicates
21713 for cf_add_1lib in $cf_add_0lib; do
21714 for cf_add_2lib in $cf_add_libs; do
21715 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21720 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21722 LIBS="$cf_add_libs"
21760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21761 echo "$as_me:21761: checking for $ac_func" >&5
21762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21763 if eval "test \"\${$as_ac_var+set}\" = set"; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 cat >"conftest.$ac_ext" <<_ACEOF
21767 #line 21767 "configure"
21768 #include "confdefs.h"
21769 #define $ac_func autoconf_temporary
21770 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21777 /* We use char because int might match the return type of a gcc2
21778 builtin and then its argument prototype would still apply. */
21779 char $ac_func (void);
21785 /* The GNU C library defines stubs for functions which it implements
21786 to always fail with ENOSYS. Some functions are actually named
21787 something starting with __ and the normal name is an alias. */
21788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21789 #error found stub for $ac_func
21792 return $ac_func ();
21797 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21798 if { (eval echo "$as_me:21798: \"$ac_link\"") >&5
21799 (eval $ac_link) 2>&5
21801 echo "$as_me:21801: \$? = $ac_status" >&5
21802 (exit "$ac_status"); } &&
21803 { ac_try='test -s "conftest$ac_exeext"'
21804 { (eval echo "$as_me:21804: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21807 echo "$as_me:21807: \$? = $ac_status" >&5
21808 (exit "$ac_status"); }; }; then
21809 eval "$as_ac_var=yes"
21811 echo "$as_me: failed program was:" >&5
21812 cat "conftest.$ac_ext" >&5
21813 eval "$as_ac_var=no"
21815 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21817 echo "$as_me:21817: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21818 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21819 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21820 cat >>confdefs.h <<EOF
21821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21827 echo "$as_me:21827: checking if _PATH_TTYS is defined in ttyent.h" >&5
21828 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
21829 if test "${cf_cv_PATH_TTYS+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21833 cat >"conftest.$ac_ext" <<_ACEOF
21834 #line 21834 "configure"
21835 #include "confdefs.h"
21838 #include <ttyent.h>
21843 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
21848 rm -f "conftest.$ac_objext"
21849 if { (eval echo "$as_me:21849: \"$ac_compile\"") >&5
21850 (eval $ac_compile) 2>&5
21852 echo "$as_me:21852: \$? = $ac_status" >&5
21853 (exit "$ac_status"); } &&
21854 { ac_try='test -s "conftest.$ac_objext"'
21855 { (eval echo "$as_me:21855: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21858 echo "$as_me:21858: \$? = $ac_status" >&5
21859 (exit "$ac_status"); }; }; then
21860 cf_cv_PATH_TTYS=yes
21862 echo "$as_me: failed program was:" >&5
21863 cat "conftest.$ac_ext" >&5
21866 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21868 echo "$as_me:21868: result: $cf_cv_PATH_TTYS" >&5
21869 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
21871 if test $cf_cv_PATH_TTYS = no
21873 for cf_ttys in /etc/ttytype /etc/ttys
21875 if test -f $cf_ttys
21877 cf_cv_PATH_TTYS=maybe
21879 cat >>confdefs.h <<\EOF
21880 #define _PATH_TTYS $cf_ttys
21888 if test $cf_cv_PATH_TTYS != no
21890 echo "$as_me:21890: checking if _PATH_TTYS file exists" >&5
21891 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
21892 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21896 if test "$cross_compiling" = yes; then
21897 cf_cv_have_PATH_TTYS=unknown
21899 cat >"conftest.$ac_ext" <<_ACEOF
21900 #line 21900 "configure"
21901 #include "confdefs.h"
21903 $ac_includes_default
21905 #include <ttyent.h>
21908 FILE *fp = fopen(_PATH_TTYS, "r");
21909 ${cf_cv_main_return:-return} (fp == 0);
21912 rm -f "conftest$ac_exeext"
21913 if { (eval echo "$as_me:21913: \"$ac_link\"") >&5
21914 (eval $ac_link) 2>&5
21916 echo "$as_me:21916: \$? = $ac_status" >&5
21917 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21918 { (eval echo "$as_me:21918: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21921 echo "$as_me:21921: \$? = $ac_status" >&5
21922 (exit "$ac_status"); }; }; then
21923 cf_cv_have_PATH_TTYS=yes
21925 echo "$as_me: program exited with status $ac_status" >&5
21926 echo "$as_me: failed program was:" >&5
21927 cat "conftest.$ac_ext" >&5
21928 cf_cv_have_PATH_TTYS=no
21930 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21933 echo "$as_me:21933: result: $cf_cv_have_PATH_TTYS" >&5
21934 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
21935 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
21938 if test $cf_cv_PATH_TTYS != no
21941 cat >>confdefs.h <<\EOF
21942 #define HAVE_PATH_TTYS 1
21945 echo "$as_me:21945: checking for getttynam" >&5
21946 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
21947 if test "${cf_cv_func_getttynam+set}" = set; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 cat >"conftest.$ac_ext" <<_ACEOF
21952 #line 21952 "configure"
21953 #include "confdefs.h"
21954 #include <ttyent.h>
21958 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
21963 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21964 if { (eval echo "$as_me:21964: \"$ac_link\"") >&5
21965 (eval $ac_link) 2>&5
21967 echo "$as_me:21967: \$? = $ac_status" >&5
21968 (exit "$ac_status"); } &&
21969 { ac_try='test -s "conftest$ac_exeext"'
21970 { (eval echo "$as_me:21970: \"$ac_try\"") >&5
21971 (eval $ac_try) 2>&5
21973 echo "$as_me:21973: \$? = $ac_status" >&5
21974 (exit "$ac_status"); }; }; then
21975 cf_cv_func_getttynam=yes
21977 echo "$as_me: failed program was:" >&5
21978 cat "conftest.$ac_ext" >&5
21979 cf_cv_func_getttynam=no
21981 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21983 echo "$as_me:21983: result: $cf_cv_func_getttynam" >&5
21984 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
21985 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
21986 #define HAVE_GETTTYNAM 1
21991 if test "x$ac_cv_func_getopt" = xno && \
21992 test "x$cf_with_progs$cf_with_tests" != xnono; then
21993 { { echo "$as_me:21993: error: getopt is required for building programs" >&5
21994 echo "$as_me: error: getopt is required for building programs" >&2;}
21995 { (exit 1); exit 1; }; }
21998 if test "x$with_safe_sprintf" = xyes
22000 if test "x$ac_cv_func_vsnprintf" = xyes
22002 { echo "$as_me:22002: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
22003 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
22006 cat >>confdefs.h <<\EOF
22007 #define USE_SAFE_SPRINTF 1
22013 if test "x$with_getcap" = "xyes" ; then
22015 echo "$as_me:22015: checking for terminal-capability database functions" >&5
22016 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
22017 if test "${cf_cv_cgetent+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 cat >"conftest.$ac_ext" <<_ACEOF
22022 #line 22022 "configure"
22023 #include "confdefs.h"
22025 $ac_includes_default
22032 char *db_array = temp;
22033 cgetent(&buf, &db_array, "vt100");
22034 cgetcap(buf, "tc", '=');
22035 cgetmatch(buf, "tc");
22041 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22042 if { (eval echo "$as_me:22042: \"$ac_link\"") >&5
22043 (eval $ac_link) 2>&5
22045 echo "$as_me:22045: \$? = $ac_status" >&5
22046 (exit "$ac_status"); } &&
22047 { ac_try='test -s "conftest$ac_exeext"'
22048 { (eval echo "$as_me:22048: \"$ac_try\"") >&5
22049 (eval $ac_try) 2>&5
22051 echo "$as_me:22051: \$? = $ac_status" >&5
22052 (exit "$ac_status"); }; }; then
22055 echo "$as_me: failed program was:" >&5
22056 cat "conftest.$ac_ext" >&5
22059 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22062 echo "$as_me:22062: result: $cf_cv_cgetent" >&5
22063 echo "${ECHO_T}$cf_cv_cgetent" >&6
22065 if test "$cf_cv_cgetent" = yes
22068 cat >>confdefs.h <<\EOF
22069 #define HAVE_BSD_CGETENT 1
22072 echo "$as_me:22072: checking if cgetent uses const parameter" >&5
22073 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
22074 if test "${cf_cv_cgetent_const+set}" = set; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 cat >"conftest.$ac_ext" <<_ACEOF
22079 #line 22079 "configure"
22080 #include "confdefs.h"
22082 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
22083 $ac_includes_default
22090 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
22091 const char *db_array = temp;
22092 cgetent(&buf, &db_array, "vt100");
22094 cgetcap(buf, "tc", '=');
22095 cgetmatch(buf, "tc");
22101 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22102 if { (eval echo "$as_me:22102: \"$ac_link\"") >&5
22103 (eval $ac_link) 2>&5
22105 echo "$as_me:22105: \$? = $ac_status" >&5
22106 (exit "$ac_status"); } &&
22107 { ac_try='test -s "conftest$ac_exeext"'
22108 { (eval echo "$as_me:22108: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22111 echo "$as_me:22111: \$? = $ac_status" >&5
22112 (exit "$ac_status"); }; }; then
22113 cf_cv_cgetent_const=yes
22115 echo "$as_me: failed program was:" >&5
22116 cat "conftest.$ac_ext" >&5
22117 cf_cv_cgetent_const=no
22119 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22122 echo "$as_me:22122: result: $cf_cv_cgetent_const" >&5
22123 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
22124 if test "$cf_cv_cgetent_const" = yes
22127 cat >>confdefs.h <<EOF
22128 #define CGETENT_CONST const
22136 echo "$as_me:22136: checking for isascii" >&5
22137 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
22138 if test "${cf_cv_have_isascii+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22142 cat >"conftest.$ac_ext" <<_ACEOF
22143 #line 22143 "configure"
22144 #include "confdefs.h"
22149 int x = isascii(' ')
22154 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22155 if { (eval echo "$as_me:22155: \"$ac_link\"") >&5
22156 (eval $ac_link) 2>&5
22158 echo "$as_me:22158: \$? = $ac_status" >&5
22159 (exit "$ac_status"); } &&
22160 { ac_try='test -s "conftest$ac_exeext"'
22161 { (eval echo "$as_me:22161: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22164 echo "$as_me:22164: \$? = $ac_status" >&5
22165 (exit "$ac_status"); }; }; then
22166 cf_cv_have_isascii=yes
22168 echo "$as_me: failed program was:" >&5
22169 cat "conftest.$ac_ext" >&5
22170 cf_cv_have_isascii=no
22172 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22175 echo "$as_me:22175: result: $cf_cv_have_isascii" >&5
22176 echo "${ECHO_T}$cf_cv_have_isascii" >&6
22177 test "$cf_cv_have_isascii" = yes &&
22178 cat >>confdefs.h <<\EOF
22179 #define HAVE_ISASCII 1
22182 if test "$ac_cv_func_sigaction" = yes; then
22183 echo "$as_me:22183: checking whether sigaction needs _POSIX_SOURCE" >&5
22184 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
22185 cat >"conftest.$ac_ext" <<_ACEOF
22186 #line 22186 "configure"
22187 #include "confdefs.h"
22189 #include <sys/types.h>
22190 #include <signal.h>
22194 struct sigaction act
22199 rm -f "conftest.$ac_objext"
22200 if { (eval echo "$as_me:22200: \"$ac_compile\"") >&5
22201 (eval $ac_compile) 2>&5
22203 echo "$as_me:22203: \$? = $ac_status" >&5
22204 (exit "$ac_status"); } &&
22205 { ac_try='test -s "conftest.$ac_objext"'
22206 { (eval echo "$as_me:22206: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22209 echo "$as_me:22209: \$? = $ac_status" >&5
22210 (exit "$ac_status"); }; }; then
22213 echo "$as_me: failed program was:" >&5
22214 cat "conftest.$ac_ext" >&5
22216 cat >"conftest.$ac_ext" <<_ACEOF
22217 #line 22217 "configure"
22218 #include "confdefs.h"
22220 #define _POSIX_SOURCE
22221 #include <sys/types.h>
22222 #include <signal.h>
22226 struct sigaction act
22231 rm -f "conftest.$ac_objext"
22232 if { (eval echo "$as_me:22232: \"$ac_compile\"") >&5
22233 (eval $ac_compile) 2>&5
22235 echo "$as_me:22235: \$? = $ac_status" >&5
22236 (exit "$ac_status"); } &&
22237 { ac_try='test -s "conftest.$ac_objext"'
22238 { (eval echo "$as_me:22238: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22241 echo "$as_me:22241: \$? = $ac_status" >&5
22242 (exit "$ac_status"); }; }; then
22245 cat >>confdefs.h <<\EOF
22246 #define _POSIX_SOURCE 1
22250 echo "$as_me: failed program was:" >&5
22251 cat "conftest.$ac_ext" >&5
22254 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22256 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22257 echo "$as_me:22257: result: $sigact_bad" >&5
22258 echo "${ECHO_T}$sigact_bad" >&6
22261 echo "$as_me:22261: checking if nanosleep really works" >&5
22262 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
22263 if test "${cf_cv_func_nanosleep+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 if test "$cross_compiling" = yes; then
22268 cf_cv_func_nanosleep=unknown
22270 cat >"conftest.$ac_ext" <<_ACEOF
22271 #line 22271 "configure"
22272 #include "confdefs.h"
22274 $ac_includes_default
22279 #ifdef HAVE_SYS_TIME_H
22280 #include <sys/time.h>
22284 struct timespec ts1, ts2;
22287 ts1.tv_nsec = 750000000;
22291 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22292 ${cf_cv_main_return:-return}(code != 0);
22296 rm -f "conftest$ac_exeext"
22297 if { (eval echo "$as_me:22297: \"$ac_link\"") >&5
22298 (eval $ac_link) 2>&5
22300 echo "$as_me:22300: \$? = $ac_status" >&5
22301 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22302 { (eval echo "$as_me:22302: \"$ac_try\"") >&5
22303 (eval $ac_try) 2>&5
22305 echo "$as_me:22305: \$? = $ac_status" >&5
22306 (exit "$ac_status"); }; }; then
22307 cf_cv_func_nanosleep=yes
22309 echo "$as_me: program exited with status $ac_status" >&5
22310 echo "$as_me: failed program was:" >&5
22311 cat "conftest.$ac_ext" >&5
22312 cf_cv_func_nanosleep=no
22314 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22317 echo "$as_me:22317: result: $cf_cv_func_nanosleep" >&5
22318 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22320 test "$cf_cv_func_nanosleep" = "yes" &&
22321 cat >>confdefs.h <<\EOF
22322 #define HAVE_NANOSLEEP 1
22333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22334 echo "$as_me:22334: checking for $ac_header" >&5
22335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 cat >"conftest.$ac_ext" <<_ACEOF
22340 #line 22340 "configure"
22341 #include "confdefs.h"
22342 #include <$ac_header>
22344 if { (eval echo "$as_me:22344: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22345 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22347 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22349 cat conftest.err >&5
22350 echo "$as_me:22350: \$? = $ac_status" >&5
22351 (exit "$ac_status"); } >/dev/null; then
22352 if test -s conftest.err; then
22353 ac_cpp_err=$ac_c_preproc_warn_flag
22360 if test -z "$ac_cpp_err"; then
22361 eval "$as_ac_Header=yes"
22363 echo "$as_me: failed program was:" >&5
22364 cat "conftest.$ac_ext" >&5
22365 eval "$as_ac_Header=no"
22367 rm -f conftest.err "conftest.$ac_ext"
22369 echo "$as_me:22369: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22370 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22371 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22372 cat >>confdefs.h <<EOF
22373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22379 if test "$ac_cv_header_termios_h" = yes ; then
22380 case "$CFLAGS $CPPFLAGS" in
22381 (*-D_POSIX_SOURCE*)
22382 termios_bad=dunno ;;
22383 (*) termios_bad=maybe ;;
22385 if test "$termios_bad" = maybe ; then
22386 echo "$as_me:22386: checking whether termios.h needs _POSIX_SOURCE" >&5
22387 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22388 cat >"conftest.$ac_ext" <<_ACEOF
22389 #line 22389 "configure"
22390 #include "confdefs.h"
22391 #include <termios.h>
22395 struct termios foo; int x = foo.c_iflag = 1; (void)x
22400 rm -f "conftest.$ac_objext"
22401 if { (eval echo "$as_me:22401: \"$ac_compile\"") >&5
22402 (eval $ac_compile) 2>&5
22404 echo "$as_me:22404: \$? = $ac_status" >&5
22405 (exit "$ac_status"); } &&
22406 { ac_try='test -s "conftest.$ac_objext"'
22407 { (eval echo "$as_me:22407: \"$ac_try\"") >&5
22408 (eval $ac_try) 2>&5
22410 echo "$as_me:22410: \$? = $ac_status" >&5
22411 (exit "$ac_status"); }; }; then
22414 echo "$as_me: failed program was:" >&5
22415 cat "conftest.$ac_ext" >&5
22417 cat >"conftest.$ac_ext" <<_ACEOF
22418 #line 22418 "configure"
22419 #include "confdefs.h"
22421 #define _POSIX_SOURCE
22422 #include <termios.h>
22426 struct termios foo; int x = foo.c_iflag = 2; (void)x
22431 rm -f "conftest.$ac_objext"
22432 if { (eval echo "$as_me:22432: \"$ac_compile\"") >&5
22433 (eval $ac_compile) 2>&5
22435 echo "$as_me:22435: \$? = $ac_status" >&5
22436 (exit "$ac_status"); } &&
22437 { ac_try='test -s "conftest.$ac_objext"'
22438 { (eval echo "$as_me:22438: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22441 echo "$as_me:22441: \$? = $ac_status" >&5
22442 (exit "$ac_status"); }; }; then
22443 termios_bad=unknown
22445 echo "$as_me: failed program was:" >&5
22446 cat "conftest.$ac_ext" >&5
22448 cat >>confdefs.h <<\EOF
22449 #define _POSIX_SOURCE 1
22453 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22456 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22457 echo "$as_me:22457: result: $termios_bad" >&5
22458 echo "${ECHO_T}$termios_bad" >&6
22462 echo "$as_me:22462: checking for tcgetattr" >&5
22463 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22464 if test "${cf_cv_have_tcgetattr+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 cat >"conftest.$ac_ext" <<_ACEOF
22469 #line 22469 "configure"
22470 #include "confdefs.h"
22472 #include <sys/types.h>
22473 #ifdef HAVE_UNISTD_H
22474 #include <unistd.h>
22476 #ifdef HAVE_TERMIOS_H
22477 #include <termios.h>
22478 #define TTY struct termios
22480 #ifdef HAVE_TERMIO_H
22481 #include <termio.h>
22482 #define TTY struct termio
22491 tcgetattr(1, &foo);
22496 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22497 if { (eval echo "$as_me:22497: \"$ac_link\"") >&5
22498 (eval $ac_link) 2>&5
22500 echo "$as_me:22500: \$? = $ac_status" >&5
22501 (exit "$ac_status"); } &&
22502 { ac_try='test -s "conftest$ac_exeext"'
22503 { (eval echo "$as_me:22503: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22506 echo "$as_me:22506: \$? = $ac_status" >&5
22507 (exit "$ac_status"); }; }; then
22508 cf_cv_have_tcgetattr=yes
22510 echo "$as_me: failed program was:" >&5
22511 cat "conftest.$ac_ext" >&5
22512 cf_cv_have_tcgetattr=no
22514 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22516 echo "$as_me:22516: result: $cf_cv_have_tcgetattr" >&5
22517 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22518 test "$cf_cv_have_tcgetattr" = yes &&
22519 cat >>confdefs.h <<\EOF
22520 #define HAVE_TCGETATTR 1
22523 echo "$as_me:22523: checking for vsscanf function or workaround" >&5
22524 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22525 if test "${cf_cv_func_vsscanf+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 cat >"conftest.$ac_ext" <<_ACEOF
22530 #line 22530 "configure"
22531 #include "confdefs.h"
22533 #include <stdarg.h>
22540 vsscanf("from", "%d", ap)
22545 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22546 if { (eval echo "$as_me:22546: \"$ac_link\"") >&5
22547 (eval $ac_link) 2>&5
22549 echo "$as_me:22549: \$? = $ac_status" >&5
22550 (exit "$ac_status"); } &&
22551 { ac_try='test -s "conftest$ac_exeext"'
22552 { (eval echo "$as_me:22552: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22555 echo "$as_me:22555: \$? = $ac_status" >&5
22556 (exit "$ac_status"); }; }; then
22557 cf_cv_func_vsscanf=vsscanf
22559 echo "$as_me: failed program was:" >&5
22560 cat "conftest.$ac_ext" >&5
22562 cat >"conftest.$ac_ext" <<_ACEOF
22563 #line 22563 "configure"
22564 #include "confdefs.h"
22566 #include <stdarg.h>
22573 char *str = "from";
22575 strbuf._flag = _IOREAD;
22576 strbuf._ptr = strbuf._base = (unsigned char *) str;
22577 strbuf._cnt = strlen(str);
22578 strbuf._file = _NFILE;
22579 return (vfscanf(&strbuf, "%d", ap))
22584 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22585 if { (eval echo "$as_me:22585: \"$ac_link\"") >&5
22586 (eval $ac_link) 2>&5
22588 echo "$as_me:22588: \$? = $ac_status" >&5
22589 (exit "$ac_status"); } &&
22590 { ac_try='test -s "conftest$ac_exeext"'
22591 { (eval echo "$as_me:22591: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22594 echo "$as_me:22594: \$? = $ac_status" >&5
22595 (exit "$ac_status"); }; }; then
22596 cf_cv_func_vsscanf=vfscanf
22598 echo "$as_me: failed program was:" >&5
22599 cat "conftest.$ac_ext" >&5
22601 cat >"conftest.$ac_ext" <<_ACEOF
22602 #line 22602 "configure"
22603 #include "confdefs.h"
22605 #include <stdarg.h>
22612 char *str = "from";
22614 strbuf._flag = _IOREAD;
22615 strbuf._ptr = strbuf._base = (unsigned char *) str;
22616 strbuf._cnt = strlen(str);
22617 strbuf._file = _NFILE;
22618 return (_doscan(&strbuf, "%d", ap))
22623 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22624 if { (eval echo "$as_me:22624: \"$ac_link\"") >&5
22625 (eval $ac_link) 2>&5
22627 echo "$as_me:22627: \$? = $ac_status" >&5
22628 (exit "$ac_status"); } &&
22629 { ac_try='test -s "conftest$ac_exeext"'
22630 { (eval echo "$as_me:22630: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22633 echo "$as_me:22633: \$? = $ac_status" >&5
22634 (exit "$ac_status"); }; }; then
22635 cf_cv_func_vsscanf=_doscan
22637 echo "$as_me: failed program was:" >&5
22638 cat "conftest.$ac_ext" >&5
22640 cf_cv_func_vsscanf=no
22642 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22644 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22646 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22648 echo "$as_me:22648: result: $cf_cv_func_vsscanf" >&5
22649 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22651 case "$cf_cv_func_vsscanf" in
22653 cat >>confdefs.h <<\EOF
22654 #define HAVE_VSSCANF 1
22658 cat >>confdefs.h <<\EOF
22659 #define HAVE_VFSCANF 1
22663 cat >>confdefs.h <<\EOF
22664 #define HAVE__DOSCAN 1
22673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22674 echo "$as_me:22674: checking for $ac_header" >&5
22675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22679 cat >"conftest.$ac_ext" <<_ACEOF
22680 #line 22680 "configure"
22681 #include "confdefs.h"
22682 #include <$ac_header>
22684 if { (eval echo "$as_me:22684: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22685 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22687 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:22690: \$? = $ac_status" >&5
22691 (exit "$ac_status"); } >/dev/null; then
22692 if test -s conftest.err; then
22693 ac_cpp_err=$ac_c_preproc_warn_flag
22700 if test -z "$ac_cpp_err"; then
22701 eval "$as_ac_Header=yes"
22703 echo "$as_me: failed program was:" >&5
22704 cat "conftest.$ac_ext" >&5
22705 eval "$as_ac_Header=no"
22707 rm -f conftest.err "conftest.$ac_ext"
22709 echo "$as_me:22709: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22710 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22711 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22712 cat >>confdefs.h <<EOF
22713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22719 echo "$as_me:22719: checking for working mkstemp" >&5
22720 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22721 if test "${cf_cv_func_mkstemp+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 if test "$cross_compiling" = yes; then
22727 cf_cv_func_mkstemp=maybe
22729 cat >"conftest.$ac_ext" <<_ACEOF
22730 #line 22730 "configure"
22731 #include "confdefs.h"
22733 $ac_includes_default
22737 char *tmpl = "conftestXXXXXX";
22745 for (n = 0; n < 2; ++n) {
22746 strcpy(name[n], tmpl);
22747 if ((fd = mkstemp(name[n])) >= 0) {
22748 if (!strcmp(name[n], tmpl)
22749 || stat(name[n], &sb) != 0
22750 || (sb.st_mode & S_IFMT) != S_IFREG
22751 || (sb.st_mode & 077) != 0) {
22758 && !strcmp(name[0], name[1]))
22760 ${cf_cv_main_return:-return}(result);
22764 rm -f "conftest$ac_exeext"
22765 if { (eval echo "$as_me:22765: \"$ac_link\"") >&5
22766 (eval $ac_link) 2>&5
22768 echo "$as_me:22768: \$? = $ac_status" >&5
22769 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22770 { (eval echo "$as_me:22770: \"$ac_try\"") >&5
22771 (eval $ac_try) 2>&5
22773 echo "$as_me:22773: \$? = $ac_status" >&5
22774 (exit "$ac_status"); }; }; then
22775 cf_cv_func_mkstemp=yes
22778 echo "$as_me: program exited with status $ac_status" >&5
22779 echo "$as_me: failed program was:" >&5
22780 cat "conftest.$ac_ext" >&5
22781 cf_cv_func_mkstemp=no
22784 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22788 echo "$as_me:22788: result: $cf_cv_func_mkstemp" >&5
22789 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22790 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22791 echo "$as_me:22791: checking for mkstemp" >&5
22792 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22793 if test "${ac_cv_func_mkstemp+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 cat >"conftest.$ac_ext" <<_ACEOF
22797 #line 22797 "configure"
22798 #include "confdefs.h"
22799 #define mkstemp autoconf_temporary
22800 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22807 /* We use char because int might match the return type of a gcc2
22808 builtin and then its argument prototype would still apply. */
22809 char mkstemp (void);
22815 /* The GNU C library defines stubs for functions which it implements
22816 to always fail with ENOSYS. Some functions are actually named
22817 something starting with __ and the normal name is an alias. */
22818 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22819 #error found stub for mkstemp
22827 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22828 if { (eval echo "$as_me:22828: \"$ac_link\"") >&5
22829 (eval $ac_link) 2>&5
22831 echo "$as_me:22831: \$? = $ac_status" >&5
22832 (exit "$ac_status"); } &&
22833 { ac_try='test -s "conftest$ac_exeext"'
22834 { (eval echo "$as_me:22834: \"$ac_try\"") >&5
22835 (eval $ac_try) 2>&5
22837 echo "$as_me:22837: \$? = $ac_status" >&5
22838 (exit "$ac_status"); }; }; then
22839 ac_cv_func_mkstemp=yes
22841 echo "$as_me: failed program was:" >&5
22842 cat "conftest.$ac_ext" >&5
22843 ac_cv_func_mkstemp=no
22845 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22847 echo "$as_me:22847: result: $ac_cv_func_mkstemp" >&5
22848 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22851 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22853 cat >>confdefs.h <<\EOF
22854 #define HAVE_MKSTEMP 1
22859 # setup for prototype of fallback for vsscanf()
22861 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22867 if test "x$cross_compiling" = xyes ; then
22868 { echo "$as_me:22868: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22869 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22871 echo "$as_me:22871: checking whether setvbuf arguments are reversed" >&5
22872 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22873 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22874 echo $ECHO_N "(cached) $ECHO_C" >&6
22876 if test "$cross_compiling" = yes; then
22877 { { echo "$as_me:22877: error: cannot run test program while cross compiling" >&5
22878 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22879 { (exit 1); exit 1; }; }
22881 cat >"conftest.$ac_ext" <<_ACEOF
22882 #line 22882 "configure"
22883 #include "confdefs.h"
22885 /* If setvbuf has the reversed format, exit 0. */
22889 /* This call has the arguments reversed.
22890 A reversed system may check and see that the address of main
22891 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22892 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22893 $ac_main_return(1);
22894 putc('\r', stdout);
22895 $ac_main_return(0); /* Non-reversed systems segv here. */
22898 rm -f "conftest$ac_exeext"
22899 if { (eval echo "$as_me:22899: \"$ac_link\"") >&5
22900 (eval $ac_link) 2>&5
22902 echo "$as_me:22902: \$? = $ac_status" >&5
22903 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22904 { (eval echo "$as_me:22904: \"$ac_try\"") >&5
22905 (eval $ac_try) 2>&5
22907 echo "$as_me:22907: \$? = $ac_status" >&5
22908 (exit "$ac_status"); }; }; then
22909 ac_cv_func_setvbuf_reversed=yes
22911 echo "$as_me: program exited with status $ac_status" >&5
22912 echo "$as_me: failed program was:" >&5
22913 cat "conftest.$ac_ext" >&5
22914 ac_cv_func_setvbuf_reversed=no
22916 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22918 rm -f core ./core.* ./*.core
22920 echo "$as_me:22920: result: $ac_cv_func_setvbuf_reversed" >&5
22921 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22922 if test $ac_cv_func_setvbuf_reversed = yes; then
22924 cat >>confdefs.h <<\EOF
22925 #define SETVBUF_REVERSED 1
22931 echo "$as_me:22931: checking for intptr_t" >&5
22932 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22933 if test "${ac_cv_type_intptr_t+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 cat >"conftest.$ac_ext" <<_ACEOF
22937 #line 22937 "configure"
22938 #include "confdefs.h"
22939 $ac_includes_default
22943 if ((intptr_t *) 0)
22945 if (sizeof (intptr_t))
22951 rm -f "conftest.$ac_objext"
22952 if { (eval echo "$as_me:22952: \"$ac_compile\"") >&5
22953 (eval $ac_compile) 2>&5
22955 echo "$as_me:22955: \$? = $ac_status" >&5
22956 (exit "$ac_status"); } &&
22957 { ac_try='test -s "conftest.$ac_objext"'
22958 { (eval echo "$as_me:22958: \"$ac_try\"") >&5
22959 (eval $ac_try) 2>&5
22961 echo "$as_me:22961: \$? = $ac_status" >&5
22962 (exit "$ac_status"); }; }; then
22963 ac_cv_type_intptr_t=yes
22965 echo "$as_me: failed program was:" >&5
22966 cat "conftest.$ac_ext" >&5
22967 ac_cv_type_intptr_t=no
22969 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22971 echo "$as_me:22971: result: $ac_cv_type_intptr_t" >&5
22972 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22973 if test "$ac_cv_type_intptr_t" = yes; then
22977 cat >>confdefs.h <<EOF
22978 #define intptr_t long
22983 echo "$as_me:22983: checking for ssize_t" >&5
22984 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22985 if test "${ac_cv_type_ssize_t+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 cat >"conftest.$ac_ext" <<_ACEOF
22989 #line 22989 "configure"
22990 #include "confdefs.h"
22991 $ac_includes_default
22997 if (sizeof (ssize_t))
23003 rm -f "conftest.$ac_objext"
23004 if { (eval echo "$as_me:23004: \"$ac_compile\"") >&5
23005 (eval $ac_compile) 2>&5
23007 echo "$as_me:23007: \$? = $ac_status" >&5
23008 (exit "$ac_status"); } &&
23009 { ac_try='test -s "conftest.$ac_objext"'
23010 { (eval echo "$as_me:23010: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:23013: \$? = $ac_status" >&5
23014 (exit "$ac_status"); }; }; then
23015 ac_cv_type_ssize_t=yes
23017 echo "$as_me: failed program was:" >&5
23018 cat "conftest.$ac_ext" >&5
23019 ac_cv_type_ssize_t=no
23021 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23023 echo "$as_me:23023: result: $ac_cv_type_ssize_t" >&5
23024 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
23025 if test "$ac_cv_type_ssize_t" = yes; then
23029 cat >>confdefs.h <<EOF
23030 #define ssize_t int
23035 echo "$as_me:23035: checking for type sigaction_t" >&5
23036 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
23037 if test "${cf_cv_type_sigaction+set}" = set; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 cat >"conftest.$ac_ext" <<_ACEOF
23042 #line 23042 "configure"
23043 #include "confdefs.h"
23045 #include <signal.h>
23054 rm -f "conftest.$ac_objext"
23055 if { (eval echo "$as_me:23055: \"$ac_compile\"") >&5
23056 (eval $ac_compile) 2>&5
23058 echo "$as_me:23058: \$? = $ac_status" >&5
23059 (exit "$ac_status"); } &&
23060 { ac_try='test -s "conftest.$ac_objext"'
23061 { (eval echo "$as_me:23061: \"$ac_try\"") >&5
23062 (eval $ac_try) 2>&5
23064 echo "$as_me:23064: \$? = $ac_status" >&5
23065 (exit "$ac_status"); }; }; then
23066 cf_cv_type_sigaction=yes
23068 echo "$as_me: failed program was:" >&5
23069 cat "conftest.$ac_ext" >&5
23070 cf_cv_type_sigaction=no
23072 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23075 echo "$as_me:23075: result: $cf_cv_type_sigaction" >&5
23076 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
23077 test "$cf_cv_type_sigaction" = yes &&
23078 cat >>confdefs.h <<\EOF
23079 #define HAVE_TYPE_SIGACTION 1
23082 echo "$as_me:23082: checking declaration of size-change" >&5
23083 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
23084 if test "${cf_cv_sizechange+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23088 cf_cv_sizechange=unknown
23089 cf_save_CPPFLAGS="$CPPFLAGS"
23091 for cf_opts in "" "NEED_PTEM_H"
23094 CPPFLAGS="$cf_save_CPPFLAGS"
23095 if test -n "$cf_opts"
23098 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23099 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
23102 cat >"conftest.$ac_ext" <<_ACEOF
23103 #line 23103 "configure"
23104 #include "confdefs.h"
23105 #include <sys/types.h>
23106 #ifdef HAVE_TERMIOS_H
23107 #include <termios.h>
23109 #ifdef HAVE_TERMIO_H
23110 #include <termio.h>
23115 /* This is a workaround for SCO: they neglected to define struct winsize in
23116 * termios.h -- it is only in termio.h and ptem.h
23118 #include <sys/stream.h>
23119 #include <sys/ptem.h>
23122 #ifdef HAVE_SYS_IOCTL_H
23123 #include <sys/ioctl.h>
23131 struct ttysize win; /* SunOS 3.0... */
23132 int y = win.ts_lines = 2;
23133 int x = win.ts_cols = 1;
23138 struct winsize win; /* everything else */
23139 int y = win.ws_row = 2;
23140 int x = win.ws_col = 1;
23144 no TIOCGSIZE or TIOCGWINSZ
23145 #endif /* TIOCGWINSZ */
23146 #endif /* TIOCGSIZE */
23152 rm -f "conftest.$ac_objext"
23153 if { (eval echo "$as_me:23153: \"$ac_compile\"") >&5
23154 (eval $ac_compile) 2>&5
23156 echo "$as_me:23156: \$? = $ac_status" >&5
23157 (exit "$ac_status"); } &&
23158 { ac_try='test -s "conftest.$ac_objext"'
23159 { (eval echo "$as_me:23159: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23162 echo "$as_me:23162: \$? = $ac_status" >&5
23163 (exit "$ac_status"); }; }; then
23164 cf_cv_sizechange=yes
23166 echo "$as_me: failed program was:" >&5
23167 cat "conftest.$ac_ext" >&5
23168 cf_cv_sizechange=no
23170 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23172 CPPFLAGS="$cf_save_CPPFLAGS"
23173 if test "$cf_cv_sizechange" = yes ; then
23174 echo "size-change succeeded ($cf_opts)" >&5
23175 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
23181 echo "$as_me:23181: result: $cf_cv_sizechange" >&5
23182 echo "${ECHO_T}$cf_cv_sizechange" >&6
23183 if test "$cf_cv_sizechange" != no ; then
23185 cat >>confdefs.h <<\EOF
23186 #define HAVE_SIZECHANGE 1
23189 case "$cf_cv_sizechange" in
23191 cat >>confdefs.h <<EOF
23192 #define $cf_cv_sizechange 1
23199 echo "$as_me:23199: checking for memmove" >&5
23200 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
23201 if test "${ac_cv_func_memmove+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 cat >"conftest.$ac_ext" <<_ACEOF
23205 #line 23205 "configure"
23206 #include "confdefs.h"
23207 #define memmove autoconf_temporary
23208 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23215 /* We use char because int might match the return type of a gcc2
23216 builtin and then its argument prototype would still apply. */
23217 char memmove (void);
23223 /* The GNU C library defines stubs for functions which it implements
23224 to always fail with ENOSYS. Some functions are actually named
23225 something starting with __ and the normal name is an alias. */
23226 #if defined (__stub_memmove) || defined (__stub___memmove)
23227 #error found stub for memmove
23235 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23236 if { (eval echo "$as_me:23236: \"$ac_link\"") >&5
23237 (eval $ac_link) 2>&5
23239 echo "$as_me:23239: \$? = $ac_status" >&5
23240 (exit "$ac_status"); } &&
23241 { ac_try='test -s "conftest$ac_exeext"'
23242 { (eval echo "$as_me:23242: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23245 echo "$as_me:23245: \$? = $ac_status" >&5
23246 (exit "$ac_status"); }; }; then
23247 ac_cv_func_memmove=yes
23249 echo "$as_me: failed program was:" >&5
23250 cat "conftest.$ac_ext" >&5
23251 ac_cv_func_memmove=no
23253 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23255 echo "$as_me:23255: result: $ac_cv_func_memmove" >&5
23256 echo "${ECHO_T}$ac_cv_func_memmove" >&6
23257 if test "$ac_cv_func_memmove" = yes; then
23261 echo "$as_me:23261: checking for bcopy" >&5
23262 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
23263 if test "${ac_cv_func_bcopy+set}" = set; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23266 cat >"conftest.$ac_ext" <<_ACEOF
23267 #line 23267 "configure"
23268 #include "confdefs.h"
23269 #define bcopy autoconf_temporary
23270 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23277 /* We use char because int might match the return type of a gcc2
23278 builtin and then its argument prototype would still apply. */
23285 /* The GNU C library defines stubs for functions which it implements
23286 to always fail with ENOSYS. Some functions are actually named
23287 something starting with __ and the normal name is an alias. */
23288 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23289 #error found stub for bcopy
23297 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23298 if { (eval echo "$as_me:23298: \"$ac_link\"") >&5
23299 (eval $ac_link) 2>&5
23301 echo "$as_me:23301: \$? = $ac_status" >&5
23302 (exit "$ac_status"); } &&
23303 { ac_try='test -s "conftest$ac_exeext"'
23304 { (eval echo "$as_me:23304: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23307 echo "$as_me:23307: \$? = $ac_status" >&5
23308 (exit "$ac_status"); }; }; then
23309 ac_cv_func_bcopy=yes
23311 echo "$as_me: failed program was:" >&5
23312 cat "conftest.$ac_ext" >&5
23313 ac_cv_func_bcopy=no
23315 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23317 echo "$as_me:23317: result: $ac_cv_func_bcopy" >&5
23318 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23319 if test "$ac_cv_func_bcopy" = yes; then
23321 echo "$as_me:23321: checking if bcopy does overlapping moves" >&5
23322 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23323 if test "${cf_cv_good_bcopy+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 if test "$cross_compiling" = yes; then
23328 cf_cv_good_bcopy=unknown
23330 cat >"conftest.$ac_ext" <<_ACEOF
23331 #line 23331 "configure"
23332 #include "confdefs.h"
23334 $ac_includes_default
23337 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23339 bcopy(data, temp, sizeof(data));
23340 bcopy(temp+10, temp, 15);
23341 bcopy(temp+5, temp+15, 10);
23342 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23346 rm -f "conftest$ac_exeext"
23347 if { (eval echo "$as_me:23347: \"$ac_link\"") >&5
23348 (eval $ac_link) 2>&5
23350 echo "$as_me:23350: \$? = $ac_status" >&5
23351 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23352 { (eval echo "$as_me:23352: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:23355: \$? = $ac_status" >&5
23356 (exit "$ac_status"); }; }; then
23357 cf_cv_good_bcopy=yes
23359 echo "$as_me: program exited with status $ac_status" >&5
23360 echo "$as_me: failed program was:" >&5
23361 cat "conftest.$ac_ext" >&5
23362 cf_cv_good_bcopy=no
23364 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23368 echo "$as_me:23368: result: $cf_cv_good_bcopy" >&5
23369 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23372 cf_cv_good_bcopy=no
23375 if test "$cf_cv_good_bcopy" = yes ; then
23377 cat >>confdefs.h <<\EOF
23378 #define USE_OK_BCOPY 1
23383 cat >>confdefs.h <<\EOF
23384 #define USE_MY_MEMMOVE 1
23391 tty >/dev/null 2>&1 || {
23392 for ac_func in posix_openpt
23394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23395 echo "$as_me:23395: checking for $ac_func" >&5
23396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23397 if eval "test \"\${$as_ac_var+set}\" = set"; then
23398 echo $ECHO_N "(cached) $ECHO_C" >&6
23400 cat >"conftest.$ac_ext" <<_ACEOF
23401 #line 23401 "configure"
23402 #include "confdefs.h"
23403 #define $ac_func autoconf_temporary
23404 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23411 /* We use char because int might match the return type of a gcc2
23412 builtin and then its argument prototype would still apply. */
23413 char $ac_func (void);
23419 /* The GNU C library defines stubs for functions which it implements
23420 to always fail with ENOSYS. Some functions are actually named
23421 something starting with __ and the normal name is an alias. */
23422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23423 #error found stub for $ac_func
23426 return $ac_func ();
23431 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23432 if { (eval echo "$as_me:23432: \"$ac_link\"") >&5
23433 (eval $ac_link) 2>&5
23435 echo "$as_me:23435: \$? = $ac_status" >&5
23436 (exit "$ac_status"); } &&
23437 { ac_try='test -s "conftest$ac_exeext"'
23438 { (eval echo "$as_me:23438: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23441 echo "$as_me:23441: \$? = $ac_status" >&5
23442 (exit "$ac_status"); }; }; then
23443 eval "$as_ac_var=yes"
23445 echo "$as_me: failed program was:" >&5
23446 cat "conftest.$ac_ext" >&5
23447 eval "$as_ac_var=no"
23449 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23451 echo "$as_me:23451: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23452 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23453 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23454 cat >>confdefs.h <<EOF
23455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23461 echo "$as_me:23461: checking if poll really works" >&5
23462 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23463 if test "${cf_cv_working_poll+set}" = set; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23467 if test "$cross_compiling" = yes; then
23468 cf_cv_working_poll=unknown
23470 cat >"conftest.$ac_ext" <<_ACEOF
23471 #line 23471 "configure"
23472 #include "confdefs.h"
23474 $ac_includes_default
23481 #include <sys/poll.h>
23485 struct pollfd myfds;
23488 /* check for Darwin bug with respect to "devices" */
23489 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23492 myfds.events = POLLIN;
23495 ret = poll(&myfds, 1, 100);
23497 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23502 fd = open("/dev/tty", 2); /* O_RDWR */
23504 #ifdef HAVE_POSIX_OPENPT
23506 fd = posix_openpt(O_RDWR);
23511 /* also check with standard input */
23513 myfds.events = POLLIN;
23515 ret = poll(&myfds, 1, 100);
23520 ${cf_cv_main_return:-return}(ret < 0);
23523 rm -f "conftest$ac_exeext"
23524 if { (eval echo "$as_me:23524: \"$ac_link\"") >&5
23525 (eval $ac_link) 2>&5
23527 echo "$as_me:23527: \$? = $ac_status" >&5
23528 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23529 { (eval echo "$as_me:23529: \"$ac_try\"") >&5
23530 (eval $ac_try) 2>&5
23532 echo "$as_me:23532: \$? = $ac_status" >&5
23533 (exit "$ac_status"); }; }; then
23534 cf_cv_working_poll=yes
23536 echo "$as_me: program exited with status $ac_status" >&5
23537 echo "$as_me: failed program was:" >&5
23538 cat "conftest.$ac_ext" >&5
23539 cf_cv_working_poll=no
23541 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23544 echo "$as_me:23544: result: $cf_cv_working_poll" >&5
23545 echo "${ECHO_T}$cf_cv_working_poll" >&6
23546 test "$cf_cv_working_poll" = "yes" &&
23547 cat >>confdefs.h <<\EOF
23548 #define HAVE_WORKING_POLL 1
23551 echo "$as_me:23551: checking for va_copy" >&5
23552 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23553 if test "${cf_cv_have_va_copy+set}" = set; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 cat >"conftest.$ac_ext" <<_ACEOF
23558 #line 23558 "configure"
23559 #include "confdefs.h"
23561 #include <stdarg.h>
23567 static va_list dst;
23568 static va_list src;
23574 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23575 if { (eval echo "$as_me:23575: \"$ac_link\"") >&5
23576 (eval $ac_link) 2>&5
23578 echo "$as_me:23578: \$? = $ac_status" >&5
23579 (exit "$ac_status"); } &&
23580 { ac_try='test -s "conftest$ac_exeext"'
23581 { (eval echo "$as_me:23581: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23584 echo "$as_me:23584: \$? = $ac_status" >&5
23585 (exit "$ac_status"); }; }; then
23586 cf_cv_have_va_copy=yes
23588 echo "$as_me: failed program was:" >&5
23589 cat "conftest.$ac_ext" >&5
23590 cf_cv_have_va_copy=no
23592 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23594 echo "$as_me:23594: result: $cf_cv_have_va_copy" >&5
23595 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23597 if test "$cf_cv_have_va_copy" = yes;
23600 cat >>confdefs.h <<\EOF
23601 #define HAVE_VA_COPY 1
23604 else # !cf_cv_have_va_copy
23606 echo "$as_me:23606: checking for __va_copy" >&5
23607 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23608 if test "${cf_cv_have___va_copy+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 cat >"conftest.$ac_ext" <<_ACEOF
23613 #line 23613 "configure"
23614 #include "confdefs.h"
23616 #include <stdarg.h>
23622 static va_list dst;
23623 static va_list src;
23624 __va_copy(dst, src)
23629 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23630 if { (eval echo "$as_me:23630: \"$ac_link\"") >&5
23631 (eval $ac_link) 2>&5
23633 echo "$as_me:23633: \$? = $ac_status" >&5
23634 (exit "$ac_status"); } &&
23635 { ac_try='test -s "conftest$ac_exeext"'
23636 { (eval echo "$as_me:23636: \"$ac_try\"") >&5
23637 (eval $ac_try) 2>&5
23639 echo "$as_me:23639: \$? = $ac_status" >&5
23640 (exit "$ac_status"); }; }; then
23641 cf_cv_have___va_copy=yes
23643 echo "$as_me: failed program was:" >&5
23644 cat "conftest.$ac_ext" >&5
23645 cf_cv_have___va_copy=no
23647 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23649 echo "$as_me:23649: result: $cf_cv_have___va_copy" >&5
23650 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23652 if test "$cf_cv_have___va_copy" = yes
23655 cat >>confdefs.h <<\EOF
23656 #define HAVE___VA_COPY 1
23659 else # !cf_cv_have___va_copy
23661 echo "$as_me:23661: checking for __builtin_va_copy" >&5
23662 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23663 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23667 cat >"conftest.$ac_ext" <<_ACEOF
23668 #line 23668 "configure"
23669 #include "confdefs.h"
23671 #include <stdarg.h>
23677 static va_list dst;
23678 static va_list src;
23679 __builtin_va_copy(dst, src)
23684 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23685 if { (eval echo "$as_me:23685: \"$ac_link\"") >&5
23686 (eval $ac_link) 2>&5
23688 echo "$as_me:23688: \$? = $ac_status" >&5
23689 (exit "$ac_status"); } &&
23690 { ac_try='test -s "conftest$ac_exeext"'
23691 { (eval echo "$as_me:23691: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23694 echo "$as_me:23694: \$? = $ac_status" >&5
23695 (exit "$ac_status"); }; }; then
23696 cf_cv_have___builtin_va_copy=yes
23698 echo "$as_me: failed program was:" >&5
23699 cat "conftest.$ac_ext" >&5
23700 cf_cv_have___builtin_va_copy=no
23702 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23704 echo "$as_me:23704: result: $cf_cv_have___builtin_va_copy" >&5
23705 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23707 test "$cf_cv_have___builtin_va_copy" = yes &&
23709 cat >>confdefs.h <<\EOF
23710 #define HAVE___BUILTIN_VA_COPY 1
23713 fi # cf_cv_have___va_copy
23715 fi # cf_cv_have_va_copy
23717 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23722 echo "$as_me:23722: checking if we can simply copy va_list" >&5
23723 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23724 if test "${cf_cv_pointer_va_list+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23728 cat >"conftest.$ac_ext" <<_ACEOF
23729 #line 23729 "configure"
23730 #include "confdefs.h"
23732 #include <stdarg.h>
23745 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23746 if { (eval echo "$as_me:23746: \"$ac_link\"") >&5
23747 (eval $ac_link) 2>&5
23749 echo "$as_me:23749: \$? = $ac_status" >&5
23750 (exit "$ac_status"); } &&
23751 { ac_try='test -s "conftest$ac_exeext"'
23752 { (eval echo "$as_me:23752: \"$ac_try\"") >&5
23753 (eval $ac_try) 2>&5
23755 echo "$as_me:23755: \$? = $ac_status" >&5
23756 (exit "$ac_status"); }; }; then
23757 cf_cv_pointer_va_list=yes
23759 echo "$as_me: failed program was:" >&5
23760 cat "conftest.$ac_ext" >&5
23761 cf_cv_pointer_va_list=no
23763 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23765 echo "$as_me:23765: result: $cf_cv_pointer_va_list" >&5
23766 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23768 if test "$cf_cv_pointer_va_list" = no
23770 echo "$as_me:23770: checking if we can copy va_list indirectly" >&5
23771 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23772 if test "${cf_cv_array_va_list+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23776 cat >"conftest.$ac_ext" <<_ACEOF
23777 #line 23777 "configure"
23778 #include "confdefs.h"
23780 #include <stdarg.h>
23793 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23794 if { (eval echo "$as_me:23794: \"$ac_link\"") >&5
23795 (eval $ac_link) 2>&5
23797 echo "$as_me:23797: \$? = $ac_status" >&5
23798 (exit "$ac_status"); } &&
23799 { ac_try='test -s "conftest$ac_exeext"'
23800 { (eval echo "$as_me:23800: \"$ac_try\"") >&5
23801 (eval $ac_try) 2>&5
23803 echo "$as_me:23803: \$? = $ac_status" >&5
23804 (exit "$ac_status"); }; }; then
23805 cf_cv_array_va_list=yes
23807 echo "$as_me: failed program was:" >&5
23808 cat "conftest.$ac_ext" >&5
23809 cf_cv_array_va_list=no
23811 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23813 echo "$as_me:23813: result: $cf_cv_array_va_list" >&5
23814 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23815 test "$cf_cv_array_va_list" = yes &&
23816 cat >>confdefs.h <<\EOF
23817 #define ARRAY_VA_LIST 1
23824 echo "$as_me:23824: checking for pid_t" >&5
23825 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23826 if test "${ac_cv_type_pid_t+set}" = set; then
23827 echo $ECHO_N "(cached) $ECHO_C" >&6
23829 cat >"conftest.$ac_ext" <<_ACEOF
23830 #line 23830 "configure"
23831 #include "confdefs.h"
23832 $ac_includes_default
23838 if (sizeof (pid_t))
23844 rm -f "conftest.$ac_objext"
23845 if { (eval echo "$as_me:23845: \"$ac_compile\"") >&5
23846 (eval $ac_compile) 2>&5
23848 echo "$as_me:23848: \$? = $ac_status" >&5
23849 (exit "$ac_status"); } &&
23850 { ac_try='test -s "conftest.$ac_objext"'
23851 { (eval echo "$as_me:23851: \"$ac_try\"") >&5
23852 (eval $ac_try) 2>&5
23854 echo "$as_me:23854: \$? = $ac_status" >&5
23855 (exit "$ac_status"); }; }; then
23856 ac_cv_type_pid_t=yes
23858 echo "$as_me: failed program was:" >&5
23859 cat "conftest.$ac_ext" >&5
23860 ac_cv_type_pid_t=no
23862 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23864 echo "$as_me:23864: result: $ac_cv_type_pid_t" >&5
23865 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23866 if test "$ac_cv_type_pid_t" = yes; then
23870 cat >>confdefs.h <<EOF
23876 for ac_header in unistd.h vfork.h
23878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23879 echo "$as_me:23879: checking for $ac_header" >&5
23880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 cat >"conftest.$ac_ext" <<_ACEOF
23885 #line 23885 "configure"
23886 #include "confdefs.h"
23887 #include <$ac_header>
23889 if { (eval echo "$as_me:23889: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23890 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23892 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23894 cat conftest.err >&5
23895 echo "$as_me:23895: \$? = $ac_status" >&5
23896 (exit "$ac_status"); } >/dev/null; then
23897 if test -s conftest.err; then
23898 ac_cpp_err=$ac_c_preproc_warn_flag
23905 if test -z "$ac_cpp_err"; then
23906 eval "$as_ac_Header=yes"
23908 echo "$as_me: failed program was:" >&5
23909 cat "conftest.$ac_ext" >&5
23910 eval "$as_ac_Header=no"
23912 rm -f conftest.err "conftest.$ac_ext"
23914 echo "$as_me:23914: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23915 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23916 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23917 cat >>confdefs.h <<EOF
23918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23924 for ac_func in fork vfork
23926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23927 echo "$as_me:23927: checking for $ac_func" >&5
23928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23929 if eval "test \"\${$as_ac_var+set}\" = set"; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 cat >"conftest.$ac_ext" <<_ACEOF
23933 #line 23933 "configure"
23934 #include "confdefs.h"
23935 #define $ac_func autoconf_temporary
23936 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23943 /* We use char because int might match the return type of a gcc2
23944 builtin and then its argument prototype would still apply. */
23945 char $ac_func (void);
23951 /* The GNU C library defines stubs for functions which it implements
23952 to always fail with ENOSYS. Some functions are actually named
23953 something starting with __ and the normal name is an alias. */
23954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23955 #error found stub for $ac_func
23958 return $ac_func ();
23963 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23964 if { (eval echo "$as_me:23964: \"$ac_link\"") >&5
23965 (eval $ac_link) 2>&5
23967 echo "$as_me:23967: \$? = $ac_status" >&5
23968 (exit "$ac_status"); } &&
23969 { ac_try='test -s "conftest$ac_exeext"'
23970 { (eval echo "$as_me:23970: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23973 echo "$as_me:23973: \$? = $ac_status" >&5
23974 (exit "$ac_status"); }; }; then
23975 eval "$as_ac_var=yes"
23977 echo "$as_me: failed program was:" >&5
23978 cat "conftest.$ac_ext" >&5
23979 eval "$as_ac_var=no"
23981 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23983 echo "$as_me:23983: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23984 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23985 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23986 cat >>confdefs.h <<EOF
23987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23993 ac_cv_func_fork_works=$ac_cv_func_fork
23994 if test "x$ac_cv_func_fork" = xyes; then
23995 echo "$as_me:23995: checking for working fork" >&5
23996 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23997 if test "${ac_cv_func_fork_works+set}" = set; then
23998 echo $ECHO_N "(cached) $ECHO_C" >&6
24000 if test "$cross_compiling" = yes; then
24001 ac_cv_func_fork_works=cross
24003 cat >"conftest.$ac_ext" <<_ACEOF
24004 /* By Rüdiger Kuhlmann. */
24005 #include <sys/types.h>
24007 # include <unistd.h>
24009 /* Some systems only have a dummy stub for fork() */
24013 $ac_main_return (1);
24014 $ac_main_return (0);
24017 rm -f "conftest$ac_exeext"
24018 if { (eval echo "$as_me:24018: \"$ac_link\"") >&5
24019 (eval $ac_link) 2>&5
24021 echo "$as_me:24021: \$? = $ac_status" >&5
24022 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24023 { (eval echo "$as_me:24023: \"$ac_try\"") >&5
24024 (eval $ac_try) 2>&5
24026 echo "$as_me:24026: \$? = $ac_status" >&5
24027 (exit "$ac_status"); }; }; then
24028 ac_cv_func_fork_works=yes
24030 echo "$as_me: program exited with status $ac_status" >&5
24031 echo "$as_me: failed program was:" >&5
24032 cat "conftest.$ac_ext" >&5
24033 ac_cv_func_fork_works=no
24035 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24038 echo "$as_me:24038: result: $ac_cv_func_fork_works" >&5
24039 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
24042 if test "x$ac_cv_func_fork_works" = xcross; then
24044 *-*-amigaos* | *-*-msdosdjgpp*)
24045 # Override, as these systems have only a dummy fork() stub
24046 ac_cv_func_fork_works=no
24049 ac_cv_func_fork_works=yes
24052 { echo "$as_me:24052: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
24053 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
24055 ac_cv_func_vfork_works=$ac_cv_func_vfork
24056 if test "x$ac_cv_func_vfork" = xyes; then
24057 echo "$as_me:24057: checking for working vfork" >&5
24058 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
24059 if test "${ac_cv_func_vfork_works+set}" = set; then
24060 echo $ECHO_N "(cached) $ECHO_C" >&6
24062 if test "$cross_compiling" = yes; then
24063 ac_cv_func_vfork_works=cross
24065 cat >"conftest.$ac_ext" <<_ACEOF
24066 #line 24066 "configure"
24067 #include "confdefs.h"
24068 /* Thanks to Paul Eggert for this test. */
24070 #include <sys/types.h>
24071 #include <sys/stat.h>
24073 # include <unistd.h>
24076 # include <vfork.h>
24078 /* On some sparc systems, changes by the child to local and incoming
24079 argument registers are propagated back to the parent. The compiler
24080 is told about this with #include <vfork.h>, but some compilers
24081 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24082 static variable whose address is put into a register that is
24083 clobbered by the vfork. */
24085 sparc_address_test (int arg)
24087 static pid_t child;
24105 pid_t parent = getpid ();
24108 sparc_address_test ();
24113 /* Here is another test for sparc vfork register problems. This
24114 test uses lots of local variables, at least as many local
24115 variables as main has allocated so far including compiler
24116 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24117 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24118 reuse the register of parent for one of the local variables,
24119 since it will think that parent can't possibly be used any more
24120 in this routine. Assigning to the local variable will thus
24121 munge parent in the parent process. */
24123 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24124 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24125 /* Convince the compiler that p..p7 are live; otherwise, it might
24126 use the same hardware register for all 8 local variables. */
24127 if (p != p1 || p != p2 || p != p3 || p != p4
24128 || p != p5 || p != p6 || p != p7)
24131 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24132 from child file descriptors. If the child closes a descriptor
24133 before it execs or exits, this munges the parent's descriptor
24134 as well. Test for this by closing stdout in the child. */
24135 _exit(close(fileno(stdout)) != 0);
24140 while (wait(&status) != child)
24143 /* Was there some problem with vforking? */
24146 /* Did the child fail? (This shouldn't happen.) */
24149 /* Did the vfork/compiler bug occur? */
24150 || parent != getpid()
24152 /* Did the file descriptor bug occur? */
24153 || fstat(fileno(stdout), &st) != 0
24158 rm -f "conftest$ac_exeext"
24159 if { (eval echo "$as_me:24159: \"$ac_link\"") >&5
24160 (eval $ac_link) 2>&5
24162 echo "$as_me:24162: \$? = $ac_status" >&5
24163 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24164 { (eval echo "$as_me:24164: \"$ac_try\"") >&5
24165 (eval $ac_try) 2>&5
24167 echo "$as_me:24167: \$? = $ac_status" >&5
24168 (exit "$ac_status"); }; }; then
24169 ac_cv_func_vfork_works=yes
24171 echo "$as_me: program exited with status $ac_status" >&5
24172 echo "$as_me: failed program was:" >&5
24173 cat "conftest.$ac_ext" >&5
24174 ac_cv_func_vfork_works=no
24176 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24179 echo "$as_me:24179: result: $ac_cv_func_vfork_works" >&5
24180 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24183 if test "x$ac_cv_func_fork_works" = xcross; then
24184 ac_cv_func_vfork_works=ac_cv_func_vfork
24185 { echo "$as_me:24185: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
24186 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
24189 if test "x$ac_cv_func_vfork_works" = xyes; then
24191 cat >>confdefs.h <<\EOF
24192 #define HAVE_WORKING_VFORK 1
24197 cat >>confdefs.h <<\EOF
24202 if test "x$ac_cv_func_fork_works" = xyes; then
24204 cat >>confdefs.h <<\EOF
24205 #define HAVE_WORKING_FORK 1
24210 echo "$as_me:24210: checking if fopen accepts explicit binary mode" >&5
24211 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
24212 if test "${cf_cv_fopen_bin_r+set}" = set; then
24213 echo $ECHO_N "(cached) $ECHO_C" >&6
24216 if test "$cross_compiling" = yes; then
24217 cf_cv_fopen_bin_r=unknown
24219 cat >"conftest.$ac_ext" <<_ACEOF
24220 #line 24220 "configure"
24221 #include "confdefs.h"
24223 $ac_includes_default
24227 FILE *fp = fopen("conftest.tmp", "wb");
24231 for (p = 0; p < 256; ++p) {
24235 fp = fopen("conftest.tmp", "rb");
24237 for (p = 0; p < 256; ++p) {
24250 ${cf_cv_main_return:-return} (rc);
24254 rm -f "conftest$ac_exeext"
24255 if { (eval echo "$as_me:24255: \"$ac_link\"") >&5
24256 (eval $ac_link) 2>&5
24258 echo "$as_me:24258: \$? = $ac_status" >&5
24259 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24260 { (eval echo "$as_me:24260: \"$ac_try\"") >&5
24261 (eval $ac_try) 2>&5
24263 echo "$as_me:24263: \$? = $ac_status" >&5
24264 (exit "$ac_status"); }; }; then
24265 cf_cv_fopen_bin_r=yes
24267 echo "$as_me: program exited with status $ac_status" >&5
24268 echo "$as_me: failed program was:" >&5
24269 cat "conftest.$ac_ext" >&5
24270 cf_cv_fopen_bin_r=no
24272 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24276 echo "$as_me:24276: result: $cf_cv_fopen_bin_r" >&5
24277 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24278 test "x$cf_cv_fopen_bin_r" != xno &&
24279 cat >>confdefs.h <<\EOF
24280 #define USE_FOPEN_BIN_R 1
24283 # special check for test/ditto.c
24285 echo "$as_me:24285: checking for openpty in -lutil" >&5
24286 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24287 if test "${ac_cv_lib_util_openpty+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24290 ac_check_lib_save_LIBS=$LIBS
24291 LIBS="-lutil $LIBS"
24292 cat >"conftest.$ac_ext" <<_ACEOF
24293 #line 24293 "configure"
24294 #include "confdefs.h"
24296 /* Override any gcc2 internal prototype to avoid an error. */
24300 /* We use char because int might match the return type of a gcc2
24301 builtin and then its argument prototype would still apply. */
24311 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24312 if { (eval echo "$as_me:24312: \"$ac_link\"") >&5
24313 (eval $ac_link) 2>&5
24315 echo "$as_me:24315: \$? = $ac_status" >&5
24316 (exit "$ac_status"); } &&
24317 { ac_try='test -s "conftest$ac_exeext"'
24318 { (eval echo "$as_me:24318: \"$ac_try\"") >&5
24319 (eval $ac_try) 2>&5
24321 echo "$as_me:24321: \$? = $ac_status" >&5
24322 (exit "$ac_status"); }; }; then
24323 ac_cv_lib_util_openpty=yes
24325 echo "$as_me: failed program was:" >&5
24326 cat "conftest.$ac_ext" >&5
24327 ac_cv_lib_util_openpty=no
24329 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24330 LIBS=$ac_check_lib_save_LIBS
24332 echo "$as_me:24332: result: $ac_cv_lib_util_openpty" >&5
24333 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24334 if test "$ac_cv_lib_util_openpty" = yes; then
24340 echo "$as_me:24340: checking for openpty header" >&5
24341 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24342 if test "${cf_cv_func_openpty+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24346 cf_save_LIBS="$LIBS"
24347 test "$cf_cv_lib_util" = yes && {
24348 cf_add_libs="$LIBS"
24351 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24352 # filter duplicates
24353 for cf_add_1lib in $cf_add_0lib; do
24354 for cf_add_2lib in $cf_add_libs; do
24355 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24360 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24362 LIBS="$cf_add_libs"
24364 for cf_header in pty.h libutil.h util.h
24366 cat >"conftest.$ac_ext" <<_ACEOF
24367 #line 24367 "configure"
24368 #include "confdefs.h"
24370 #include <$cf_header>
24376 int x = openpty((int *)0, (int *)0, (char *)0,
24377 (struct termios *)0, (struct winsize *)0);
24383 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24384 if { (eval echo "$as_me:24384: \"$ac_link\"") >&5
24385 (eval $ac_link) 2>&5
24387 echo "$as_me:24387: \$? = $ac_status" >&5
24388 (exit "$ac_status"); } &&
24389 { ac_try='test -s "conftest$ac_exeext"'
24390 { (eval echo "$as_me:24390: \"$ac_try\"") >&5
24391 (eval $ac_try) 2>&5
24393 echo "$as_me:24393: \$? = $ac_status" >&5
24394 (exit "$ac_status"); }; }; then
24396 cf_cv_func_openpty=$cf_header
24400 echo "$as_me: failed program was:" >&5
24401 cat "conftest.$ac_ext" >&5
24403 cf_cv_func_openpty=no
24406 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24408 LIBS="$cf_save_LIBS"
24411 echo "$as_me:24411: result: $cf_cv_func_openpty" >&5
24412 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24414 if test "$cf_cv_func_openpty" != no ; then
24416 cat >>confdefs.h <<EOF
24417 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24420 cat >>confdefs.h <<\EOF
24421 #define USE_XTERM_PTY 1
24424 if test "x$cf_cv_lib_util" = xyes ; then
24426 cf_add_libs="$TEST_LIBS"
24429 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24430 # filter duplicates
24431 for cf_add_1lib in $cf_add_0lib; do
24432 for cf_add_2lib in $cf_add_libs; do
24433 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24438 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24440 TEST_LIBS="$cf_add_libs"
24445 if test "$with_hashed_db" != no ; then
24447 cat >>confdefs.h <<\EOF
24448 #define USE_HASHED_DB 1
24451 case $with_hashed_db in
24455 if test -d "$with_hashed_db" ; then
24457 if test -n "$with_hashed_db/include" ; then
24458 for cf_add_incdir in $with_hashed_db/include
24460 while test "$cf_add_incdir" != /usr/include
24462 if test -d "$cf_add_incdir"
24465 if test -n "$CFLAGS$CPPFLAGS" ; then
24466 # a loop is needed to ensure we can add subdirs of existing dirs
24467 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24468 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24469 cf_have_incdir=yes; break
24474 if test "$cf_have_incdir" = no ; then
24475 if test "$cf_add_incdir" = /usr/local/include ; then
24476 if test "$GCC" = yes
24478 cf_save_CPPFLAGS=$CPPFLAGS
24480 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24481 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24483 cat >"conftest.$ac_ext" <<_ACEOF
24484 #line 24484 "configure"
24485 #include "confdefs.h"
24495 rm -f "conftest.$ac_objext"
24496 if { (eval echo "$as_me:24496: \"$ac_compile\"") >&5
24497 (eval $ac_compile) 2>&5
24499 echo "$as_me:24499: \$? = $ac_status" >&5
24500 (exit "$ac_status"); } &&
24501 { ac_try='test -s "conftest.$ac_objext"'
24502 { (eval echo "$as_me:24502: \"$ac_try\"") >&5
24503 (eval $ac_try) 2>&5
24505 echo "$as_me:24505: \$? = $ac_status" >&5
24506 (exit "$ac_status"); }; }; then
24509 echo "$as_me: failed program was:" >&5
24510 cat "conftest.$ac_ext" >&5
24513 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24514 CPPFLAGS=$cf_save_CPPFLAGS
24519 if test "$cf_have_incdir" = no ; then
24520 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24522 echo "${as_me:-configure}:24522: testing adding $cf_add_incdir to include-path ..." 1>&5
24524 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24526 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24527 test "$cf_top_incdir" = "$cf_add_incdir" && break
24528 cf_add_incdir="$cf_top_incdir"
24539 if test -n "$with_hashed_db/lib" ; then
24540 for cf_add_libdir in $with_hashed_db/lib
24542 if test "$cf_add_libdir" = /usr/lib ; then
24544 elif test -d "$cf_add_libdir"
24547 if test -n "$LDFLAGS$LIBS" ; then
24548 # a loop is needed to ensure we can add subdirs of existing dirs
24549 for cf_test_libdir in $LDFLAGS $LIBS ; do
24550 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24551 cf_have_libdir=yes; break
24555 if test "$cf_have_libdir" = no ; then
24556 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24558 echo "${as_me:-configure}:24558: testing adding $cf_add_libdir to library-path ..." 1>&5
24560 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24567 case "$with_hashed_db" in
24569 { echo "$as_me:24569: WARNING: no such directory $with_hashed_db" >&5
24570 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24576 test "x$prefix" != "xNONE" && \
24577 test -d "$prefix" && \
24579 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24580 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24581 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24582 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24583 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24584 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24587 for cf_subdir_prefix in \
24596 test "x$cf_subdir_prefix" != "x$prefix" && \
24597 test -d "$cf_subdir_prefix" && \
24598 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24599 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24600 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24601 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24602 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24603 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24604 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"
24609 for cf_item in $cf_search
24612 (*/$with_hashed_db)
24614 if test -n "$cf_item" ; then
24615 for cf_add_incdir in $cf_item
24617 while test "$cf_add_incdir" != /usr/include
24619 if test -d "$cf_add_incdir"
24622 if test -n "$CFLAGS$CPPFLAGS" ; then
24623 # a loop is needed to ensure we can add subdirs of existing dirs
24624 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24625 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24626 cf_have_incdir=yes; break
24631 if test "$cf_have_incdir" = no ; then
24632 if test "$cf_add_incdir" = /usr/local/include ; then
24633 if test "$GCC" = yes
24635 cf_save_CPPFLAGS=$CPPFLAGS
24637 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24638 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24640 cat >"conftest.$ac_ext" <<_ACEOF
24641 #line 24641 "configure"
24642 #include "confdefs.h"
24652 rm -f "conftest.$ac_objext"
24653 if { (eval echo "$as_me:24653: \"$ac_compile\"") >&5
24654 (eval $ac_compile) 2>&5
24656 echo "$as_me:24656: \$? = $ac_status" >&5
24657 (exit "$ac_status"); } &&
24658 { ac_try='test -s "conftest.$ac_objext"'
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
24666 echo "$as_me: failed program was:" >&5
24667 cat "conftest.$ac_ext" >&5
24670 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24671 CPPFLAGS=$cf_save_CPPFLAGS
24676 if test "$cf_have_incdir" = no ; then
24677 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24679 echo "${as_me:-configure}:24679: testing adding $cf_add_incdir to include-path ..." 1>&5
24681 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24683 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24684 test "$cf_top_incdir" = "$cf_add_incdir" && break
24685 cf_add_incdir="$cf_top_incdir"
24702 test "x$prefix" != "xNONE" && \
24703 test -d "$prefix" && \
24705 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24706 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24707 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24708 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24709 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24710 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24713 for cf_subdir_prefix in \
24722 test "x$cf_subdir_prefix" != "x$prefix" && \
24723 test -d "$cf_subdir_prefix" && \
24724 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24725 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24726 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24727 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24728 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24729 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24730 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"
24735 for cf_item in $cf_search
24738 (*/$with_hashed_db)
24740 if test -n "$cf_item" ; then
24741 for cf_add_libdir in $cf_item
24743 if test "$cf_add_libdir" = /usr/lib ; then
24745 elif test -d "$cf_add_libdir"
24748 if test -n "$LDFLAGS$LIBS" ; then
24749 # a loop is needed to ensure we can add subdirs of existing dirs
24750 for cf_test_libdir in $LDFLAGS $LIBS ; do
24751 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24752 cf_have_libdir=yes; break
24756 if test "$cf_have_libdir" = no ; then
24757 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24759 echo "${as_me:-configure}:24759: testing adding $cf_add_libdir to library-path ..." 1>&5
24761 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24776 echo "$as_me:24776: checking for db.h" >&5
24777 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24778 if test "${ac_cv_header_db_h+set}" = set; then
24779 echo $ECHO_N "(cached) $ECHO_C" >&6
24781 cat >"conftest.$ac_ext" <<_ACEOF
24782 #line 24782 "configure"
24783 #include "confdefs.h"
24786 if { (eval echo "$as_me:24786: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24787 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24789 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24791 cat conftest.err >&5
24792 echo "$as_me:24792: \$? = $ac_status" >&5
24793 (exit "$ac_status"); } >/dev/null; then
24794 if test -s conftest.err; then
24795 ac_cpp_err=$ac_c_preproc_warn_flag
24802 if test -z "$ac_cpp_err"; then
24803 ac_cv_header_db_h=yes
24805 echo "$as_me: failed program was:" >&5
24806 cat "conftest.$ac_ext" >&5
24807 ac_cv_header_db_h=no
24809 rm -f conftest.err "conftest.$ac_ext"
24811 echo "$as_me:24811: result: $ac_cv_header_db_h" >&5
24812 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24813 if test "$ac_cv_header_db_h" = yes; then
24815 echo "$as_me:24815: checking for version of db" >&5
24816 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24817 if test "${cf_cv_hashed_db_version+set}" = set; then
24818 echo $ECHO_N "(cached) $ECHO_C" >&6
24821 cf_cv_hashed_db_version=unknown
24823 for cf_db_version in 1 2 3 4 5 6
24826 echo "${as_me:-configure}:24826: testing checking for db version $cf_db_version ..." 1>&5
24828 cat >"conftest.$ac_ext" <<_ACEOF
24829 #line 24829 "configure"
24830 #include "confdefs.h"
24832 $ac_includes_default
24835 #ifdef DB_VERSION_MAJOR
24836 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24837 #if $cf_db_version == DB_VERSION_MAJOR
24840 #error $cf_db_version is not DB_VERSION_MAJOR
24843 #if $cf_db_version == 1
24844 /* ok: assuming this is DB 1.8.5 */
24846 #error $cf_db_version is not 1
24858 rm -f "conftest.$ac_objext"
24859 if { (eval echo "$as_me:24859: \"$ac_compile\"") >&5
24860 (eval $ac_compile) 2>&5
24862 echo "$as_me:24862: \$? = $ac_status" >&5
24863 (exit "$ac_status"); } &&
24864 { ac_try='test -s "conftest.$ac_objext"'
24865 { (eval echo "$as_me:24865: \"$ac_try\"") >&5
24866 (eval $ac_try) 2>&5
24868 echo "$as_me:24868: \$? = $ac_status" >&5
24869 (exit "$ac_status"); }; }; then
24871 cf_cv_hashed_db_version=$cf_db_version
24875 echo "$as_me: failed program was:" >&5
24876 cat "conftest.$ac_ext" >&5
24878 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24882 echo "$as_me:24882: result: $cf_cv_hashed_db_version" >&5
24883 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24885 if test "$cf_cv_hashed_db_version" = unknown ; then
24886 { { echo "$as_me:24886: error: Cannot determine version of db" >&5
24887 echo "$as_me: error: Cannot determine version of db" >&2;}
24888 { (exit 1); exit 1; }; }
24891 echo "$as_me:24891: checking for db libraries" >&5
24892 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24893 if test "${cf_cv_hashed_db_libs+set}" = set; then
24894 echo $ECHO_N "(cached) $ECHO_C" >&6
24897 cf_cv_hashed_db_libs=unknown
24898 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24900 cf_save_libs="$LIBS"
24901 if test -n "$cf_db_libs"; then
24903 cf_add_libs="$LIBS"
24906 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24907 # filter duplicates
24908 for cf_add_1lib in $cf_add_0lib; do
24909 for cf_add_2lib in $cf_add_libs; do
24910 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24915 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24917 LIBS="$cf_add_libs"
24921 echo "${as_me:-configure}:24921: testing checking for library $cf_db_libs ..." 1>&5
24923 cat >"conftest.$ac_ext" <<_ACEOF
24924 #line 24924 "configure"
24925 #include "confdefs.h"
24927 $ac_includes_default
24934 char *path = "/tmp/foo";
24935 #ifdef DB_VERSION_MAJOR
24936 #if DB_VERSION_MAJOR >= 4
24938 db_create(&result, NULL, 0);
24939 result->open(result,
24946 #elif DB_VERSION_MAJOR >= 3
24948 db_create(&result, NULL, 0);
24949 result->open(result,
24955 #elif DB_VERSION_MAJOR >= 2
24964 #endif /* DB_VERSION_MAJOR */
24966 DB *result = dbopen(path,
24972 ${cf_cv_main_return:-return}(result != 0)
24978 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24979 if { (eval echo "$as_me:24979: \"$ac_link\"") >&5
24980 (eval $ac_link) 2>&5
24982 echo "$as_me:24982: \$? = $ac_status" >&5
24983 (exit "$ac_status"); } &&
24984 { ac_try='test -s "conftest$ac_exeext"'
24985 { (eval echo "$as_me:24985: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24988 echo "$as_me:24988: \$? = $ac_status" >&5
24989 (exit "$ac_status"); }; }; then
24991 if test -n "$cf_db_libs" ; then
24992 cf_cv_hashed_db_libs=$cf_db_libs
24994 cf_cv_hashed_db_libs=default
24996 LIBS="$cf_save_libs"
25000 echo "$as_me: failed program was:" >&5
25001 cat "conftest.$ac_ext" >&5
25003 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25004 LIBS="$cf_save_libs"
25008 echo "$as_me:25008: result: $cf_cv_hashed_db_libs" >&5
25009 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
25011 if test "$cf_cv_hashed_db_libs" = unknown ; then
25012 { { echo "$as_me:25012: error: Cannot determine library for db" >&5
25013 echo "$as_me: error: Cannot determine library for db" >&2;}
25014 { (exit 1); exit 1; }; }
25015 elif test "$cf_cv_hashed_db_libs" != default ; then
25017 cf_add_libs="$LIBS"
25020 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25021 # filter duplicates
25022 for cf_add_1lib in $cf_add_0lib; do
25023 for cf_add_2lib in $cf_add_libs; do
25024 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25029 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25031 LIBS="$cf_add_libs"
25038 { { echo "$as_me:25038: error: Cannot find db.h" >&5
25039 echo "$as_me: error: Cannot find db.h" >&2;}
25040 { (exit 1); exit 1; }; }
25046 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
25047 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25048 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25051 # Just in case, check if the C compiler has a bool type.
25053 echo "$as_me:25053: checking if we should include stdbool.h" >&5
25054 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25056 if test "${cf_cv_header_stdbool_h+set}" = set; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25060 cat >"conftest.$ac_ext" <<_ACEOF
25061 #line 25061 "configure"
25062 #include "confdefs.h"
25072 rm -f "conftest.$ac_objext"
25073 if { (eval echo "$as_me:25073: \"$ac_compile\"") >&5
25074 (eval $ac_compile) 2>&5
25076 echo "$as_me:25076: \$? = $ac_status" >&5
25077 (exit "$ac_status"); } &&
25078 { ac_try='test -s "conftest.$ac_objext"'
25079 { (eval echo "$as_me:25079: \"$ac_try\"") >&5
25080 (eval $ac_try) 2>&5
25082 echo "$as_me:25082: \$? = $ac_status" >&5
25083 (exit "$ac_status"); }; }; then
25084 cf_cv_header_stdbool_h=0
25086 echo "$as_me: failed program was:" >&5
25087 cat "conftest.$ac_ext" >&5
25088 cat >"conftest.$ac_ext" <<_ACEOF
25089 #line 25089 "configure"
25090 #include "confdefs.h"
25093 #include <stdbool.h>
25104 rm -f "conftest.$ac_objext"
25105 if { (eval echo "$as_me:25105: \"$ac_compile\"") >&5
25106 (eval $ac_compile) 2>&5
25108 echo "$as_me:25108: \$? = $ac_status" >&5
25109 (exit "$ac_status"); } &&
25110 { ac_try='test -s "conftest.$ac_objext"'
25111 { (eval echo "$as_me:25111: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25114 echo "$as_me:25114: \$? = $ac_status" >&5
25115 (exit "$ac_status"); }; }; then
25116 cf_cv_header_stdbool_h=1
25118 echo "$as_me: failed program was:" >&5
25119 cat "conftest.$ac_ext" >&5
25120 cf_cv_header_stdbool_h=0
25122 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25124 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25127 if test "$cf_cv_header_stdbool_h" = 1
25128 then echo "$as_me:25128: result: yes" >&5
25129 echo "${ECHO_T}yes" >&6
25130 else echo "$as_me:25130: result: no" >&5
25131 echo "${ECHO_T}no" >&6
25134 echo "$as_me:25134: checking for builtin bool type" >&5
25135 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25137 if test "${cf_cv_cc_bool_type+set}" = set; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25141 cat >"conftest.$ac_ext" <<_ACEOF
25142 #line 25142 "configure"
25143 #include "confdefs.h"
25146 #include <sys/types.h>
25156 rm -f "conftest.$ac_objext"
25157 if { (eval echo "$as_me:25157: \"$ac_compile\"") >&5
25158 (eval $ac_compile) 2>&5
25160 echo "$as_me:25160: \$? = $ac_status" >&5
25161 (exit "$ac_status"); } &&
25162 { ac_try='test -s "conftest.$ac_objext"'
25163 { (eval echo "$as_me:25163: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25166 echo "$as_me:25166: \$? = $ac_status" >&5
25167 (exit "$ac_status"); }; }; then
25168 cf_cv_cc_bool_type=1
25170 echo "$as_me: failed program was:" >&5
25171 cat "conftest.$ac_ext" >&5
25172 cf_cv_cc_bool_type=0
25174 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25178 if test "$cf_cv_cc_bool_type" = 1
25179 then echo "$as_me:25179: result: yes" >&5
25180 echo "${ECHO_T}yes" >&6
25181 else echo "$as_me:25181: result: no" >&5
25182 echo "${ECHO_T}no" >&6
25185 # Check for C++ compiler characteristics (and ensure that it's there!)
25186 if test -n "$CXX" ; then
25188 ac_cpp='$CXXCPP $CPPFLAGS'
25189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25190 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25192 ac_main_return="return"
25194 if test -n "$GXX" ; then
25197 LIBS="$LIBS $CXXLIBS"
25198 echo "$as_me:25198: checking if we already have C++ library" >&5
25199 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
25200 cat >"conftest.$ac_ext" <<_ACEOF
25201 #line 25201 "configure"
25202 #include "confdefs.h"
25204 #include <iostream>
25209 std::cout << "Hello World!" << std::endl;
25214 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25215 if { (eval echo "$as_me:25215: \"$ac_link\"") >&5
25216 (eval $ac_link) 2>&5
25218 echo "$as_me:25218: \$? = $ac_status" >&5
25219 (exit "$ac_status"); } &&
25220 { ac_try='test -s "conftest$ac_exeext"'
25221 { (eval echo "$as_me:25221: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25224 echo "$as_me:25224: \$? = $ac_status" >&5
25225 (exit "$ac_status"); }; }; then
25226 cf_have_libstdcpp=yes
25228 echo "$as_me: failed program was:" >&5
25229 cat "conftest.$ac_ext" >&5
25230 cf_have_libstdcpp=no
25232 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25233 echo "$as_me:25233: result: $cf_have_libstdcpp" >&5
25234 echo "${ECHO_T}$cf_have_libstdcpp" >&6
25237 if test "$cf_have_libstdcpp" != yes
25239 case "$cf_cv_system_name" in
25241 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
25242 cf_stdcpp_libname=stdcpp
25244 cf_stdcpp_libname=stdc++
25248 cf_stdcpp_libname=stdc++
25252 echo "$as_me:25252: checking for library $cf_stdcpp_libname" >&5
25253 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
25254 if test "${cf_cv_libstdcpp+set}" = set; then
25255 echo $ECHO_N "(cached) $ECHO_C" >&6
25259 LIBS="$LIBS $CXXLIBS"
25261 cf_add_libs="$LIBS"
25264 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25265 # filter duplicates
25266 for cf_add_1lib in $cf_add_0lib; do
25267 for cf_add_2lib in $cf_add_libs; do
25268 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25273 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25275 LIBS="$cf_add_libs"
25277 cat >"conftest.$ac_ext" <<_ACEOF
25278 #line 25278 "configure"
25279 #include "confdefs.h"
25281 #include <iostream>
25286 std::cout << "Hello World!" << std::endl;
25291 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25292 if { (eval echo "$as_me:25292: \"$ac_link\"") >&5
25293 (eval $ac_link) 2>&5
25295 echo "$as_me:25295: \$? = $ac_status" >&5
25296 (exit "$ac_status"); } &&
25297 { ac_try='test -s "conftest$ac_exeext"'
25298 { (eval echo "$as_me:25298: \"$ac_try\"") >&5
25299 (eval $ac_try) 2>&5
25301 echo "$as_me:25301: \$? = $ac_status" >&5
25302 (exit "$ac_status"); }; }; then
25303 cf_cv_libstdcpp=yes
25305 echo "$as_me: failed program was:" >&5
25306 cat "conftest.$ac_ext" >&5
25309 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25313 echo "$as_me:25313: result: $cf_cv_libstdcpp" >&5
25314 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25315 test "$cf_cv_libstdcpp" = yes && {
25316 cf_add_libs="$CXXLIBS"
25319 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25320 # filter duplicates
25321 for cf_add_1lib in $cf_add_0lib; do
25322 for cf_add_2lib in $cf_add_libs; do
25323 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25328 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25330 CXXLIBS="$cf_add_libs"
25335 echo "$as_me:25335: checking whether $CXX understands -c and -o together" >&5
25336 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25337 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25341 cat > conftest.$ac_ext <<CF_EOF
25344 ${cf_cv_main_return:-return}(0);
25347 # We do the test twice because some compilers refuse to overwrite an
25348 # existing .o file with -o, though they will create one.
25349 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25350 if { (eval echo "$as_me:25350: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25353 echo "$as_me:25353: \$? = $ac_status" >&5
25354 (exit "$ac_status"); } &&
25355 test -f conftest2.$ac_objext && { (eval echo "$as_me:25355: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25358 echo "$as_me:25358: \$? = $ac_status" >&5
25359 (exit "$ac_status"); };
25361 eval cf_cv_prog_CXX_c_o=yes
25363 eval cf_cv_prog_CXX_c_o=no
25368 if test "$cf_cv_prog_CXX_c_o" = yes; then
25369 echo "$as_me:25369: result: yes" >&5
25370 echo "${ECHO_T}yes" >&6
25372 echo "$as_me:25372: result: no" >&5
25373 echo "${ECHO_T}no" >&6
25376 case "$GXX_VERSION" in
25377 (1.*|2.[0-6]*|[1-9][0-9].*)
25382 cf_cxx_library=unknown
25383 case "$cf_cv_system_name" in
25391 if test "$GXX" = yes; then
25392 echo "$as_me:25392: checking for lib$cf_gpp_libname" >&5
25393 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25396 cf_add_libs="$LIBS"
25399 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25400 # filter duplicates
25401 for cf_add_1lib in $cf_add_0lib; do
25402 for cf_add_2lib in $cf_add_libs; do
25403 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25408 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25410 LIBS="$cf_add_libs"
25412 cat >"conftest.$ac_ext" <<_ACEOF
25413 #line 25413 "configure"
25414 #include "confdefs.h"
25416 #include <$cf_gpp_libname/builtin.h>
25421 two_arg_error_handler_t foo2 = lib_error_handler
25426 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25427 if { (eval echo "$as_me:25427: \"$ac_link\"") >&5
25428 (eval $ac_link) 2>&5
25430 echo "$as_me:25430: \$? = $ac_status" >&5
25431 (exit "$ac_status"); } &&
25432 { ac_try='test -s "conftest$ac_exeext"'
25433 { (eval echo "$as_me:25433: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25436 echo "$as_me:25436: \$? = $ac_status" >&5
25437 (exit "$ac_status"); }; }; then
25440 cf_add_libs="$CXXLIBS"
25443 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25444 # filter duplicates
25445 for cf_add_1lib in $cf_add_0lib; do
25446 for cf_add_2lib in $cf_add_libs; do
25447 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25452 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25454 CXXLIBS="$cf_add_libs"
25456 if test "$cf_gpp_libname" = cpp ; then
25458 cat >>confdefs.h <<\EOF
25459 #define HAVE_GPP_BUILTIN_H 1
25464 cat >>confdefs.h <<\EOF
25465 #define HAVE_GXX_BUILTIN_H 1
25470 echo "$as_me: failed program was:" >&5
25471 cat "conftest.$ac_ext" >&5
25472 cat >"conftest.$ac_ext" <<_ACEOF
25473 #line 25473 "configure"
25474 #include "confdefs.h"
25476 #include <builtin.h>
25481 two_arg_error_handler_t foo2 = lib_error_handler
25486 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25487 if { (eval echo "$as_me:25487: \"$ac_link\"") >&5
25488 (eval $ac_link) 2>&5
25490 echo "$as_me:25490: \$? = $ac_status" >&5
25491 (exit "$ac_status"); } &&
25492 { ac_try='test -s "conftest$ac_exeext"'
25493 { (eval echo "$as_me:25493: \"$ac_try\"") >&5
25494 (eval $ac_try) 2>&5
25496 echo "$as_me:25496: \$? = $ac_status" >&5
25497 (exit "$ac_status"); }; }; then
25500 cf_add_libs="$CXXLIBS"
25503 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25504 # filter duplicates
25505 for cf_add_1lib in $cf_add_0lib; do
25506 for cf_add_2lib in $cf_add_libs; do
25507 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25512 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25514 CXXLIBS="$cf_add_libs"
25516 cat >>confdefs.h <<\EOF
25517 #define HAVE_BUILTIN_H 1
25521 echo "$as_me: failed program was:" >&5
25522 cat "conftest.$ac_ext" >&5
25525 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25527 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25529 echo "$as_me:25529: result: $cf_cxx_library" >&5
25530 echo "${ECHO_T}$cf_cxx_library" >&6
25540 ac_cpp='$CXXCPP $CPPFLAGS'
25541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25542 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25544 ac_main_return="return"
25545 echo "$as_me:25545: checking how to run the C++ preprocessor" >&5
25546 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25547 if test -z "$CXXCPP"; then
25548 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 # Double quotes because CXXCPP needs to be expanded
25552 for CXXCPP in "$CXX -E" "/lib/cpp"
25554 ac_preproc_ok=false
25555 for ac_cxx_preproc_warn_flag in '' yes
25557 # Use a header file that comes with gcc, so configuring glibc
25558 # with a fresh cross-compiler works.
25559 # On the NeXT, cc -E runs the code through the compiler's parser,
25560 # not just through cpp. "Syntax error" is here to catch this case.
25561 cat >"conftest.$ac_ext" <<_ACEOF
25562 #line 25562 "configure"
25563 #include "confdefs.h"
25564 #include <assert.h>
25567 if { (eval echo "$as_me:25567: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25568 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25570 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25572 cat conftest.err >&5
25573 echo "$as_me:25573: \$? = $ac_status" >&5
25574 (exit "$ac_status"); } >/dev/null; then
25575 if test -s conftest.err; then
25576 ac_cpp_err=$ac_cxx_preproc_warn_flag
25583 if test -z "$ac_cpp_err"; then
25586 echo "$as_me: failed program was:" >&5
25587 cat "conftest.$ac_ext" >&5
25588 # Broken: fails on valid input.
25591 rm -f conftest.err "conftest.$ac_ext"
25593 # OK, works on sane cases. Now check whether non-existent headers
25594 # can be detected and how.
25595 cat >"conftest.$ac_ext" <<_ACEOF
25596 #line 25596 "configure"
25597 #include "confdefs.h"
25598 #include <ac_nonexistent.h>
25600 if { (eval echo "$as_me:25600: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25601 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25603 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25605 cat conftest.err >&5
25606 echo "$as_me:25606: \$? = $ac_status" >&5
25607 (exit "$ac_status"); } >/dev/null; then
25608 if test -s conftest.err; then
25609 ac_cpp_err=$ac_cxx_preproc_warn_flag
25616 if test -z "$ac_cpp_err"; then
25617 # Broken: success on invalid input.
25620 echo "$as_me: failed program was:" >&5
25621 cat "conftest.$ac_ext" >&5
25622 # Passes both tests.
25626 rm -f conftest.err "conftest.$ac_ext"
25629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25630 rm -f conftest.err "conftest.$ac_ext"
25631 if $ac_preproc_ok; then
25636 ac_cv_prog_CXXCPP=$CXXCPP
25639 CXXCPP=$ac_cv_prog_CXXCPP
25641 ac_cv_prog_CXXCPP=$CXXCPP
25643 echo "$as_me:25643: result: $CXXCPP" >&5
25644 echo "${ECHO_T}$CXXCPP" >&6
25645 ac_preproc_ok=false
25646 for ac_cxx_preproc_warn_flag in '' yes
25648 # Use a header file that comes with gcc, so configuring glibc
25649 # with a fresh cross-compiler works.
25650 # On the NeXT, cc -E runs the code through the compiler's parser,
25651 # not just through cpp. "Syntax error" is here to catch this case.
25652 cat >"conftest.$ac_ext" <<_ACEOF
25653 #line 25653 "configure"
25654 #include "confdefs.h"
25655 #include <assert.h>
25658 if { (eval echo "$as_me:25658: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25659 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25661 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25663 cat conftest.err >&5
25664 echo "$as_me:25664: \$? = $ac_status" >&5
25665 (exit "$ac_status"); } >/dev/null; then
25666 if test -s conftest.err; then
25667 ac_cpp_err=$ac_cxx_preproc_warn_flag
25674 if test -z "$ac_cpp_err"; then
25677 echo "$as_me: failed program was:" >&5
25678 cat "conftest.$ac_ext" >&5
25679 # Broken: fails on valid input.
25682 rm -f conftest.err "conftest.$ac_ext"
25684 # OK, works on sane cases. Now check whether non-existent headers
25685 # can be detected and how.
25686 cat >"conftest.$ac_ext" <<_ACEOF
25687 #line 25687 "configure"
25688 #include "confdefs.h"
25689 #include <ac_nonexistent.h>
25691 if { (eval echo "$as_me:25691: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25692 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25694 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25696 cat conftest.err >&5
25697 echo "$as_me:25697: \$? = $ac_status" >&5
25698 (exit "$ac_status"); } >/dev/null; then
25699 if test -s conftest.err; then
25700 ac_cpp_err=$ac_cxx_preproc_warn_flag
25707 if test -z "$ac_cpp_err"; then
25708 # Broken: success on invalid input.
25711 echo "$as_me: failed program was:" >&5
25712 cat "conftest.$ac_ext" >&5
25713 # Passes both tests.
25717 rm -f conftest.err "conftest.$ac_ext"
25720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25721 rm -f conftest.err "conftest.$ac_ext"
25722 if $ac_preproc_ok; then
25725 { { echo "$as_me:25725: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25726 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25727 { (exit 1); exit 1; }; }
25731 ac_cpp='$CXXCPP $CPPFLAGS'
25732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25733 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25735 ac_main_return="return"
25737 for ac_header in typeinfo
25739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25740 echo "$as_me:25740: checking for $ac_header" >&5
25741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25743 echo $ECHO_N "(cached) $ECHO_C" >&6
25745 cat >"conftest.$ac_ext" <<_ACEOF
25746 #line 25746 "configure"
25747 #include "confdefs.h"
25748 #include <$ac_header>
25750 if { (eval echo "$as_me:25750: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25751 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25753 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25755 cat conftest.err >&5
25756 echo "$as_me:25756: \$? = $ac_status" >&5
25757 (exit "$ac_status"); } >/dev/null; then
25758 if test -s conftest.err; then
25759 ac_cpp_err=$ac_cxx_preproc_warn_flag
25766 if test -z "$ac_cpp_err"; then
25767 eval "$as_ac_Header=yes"
25769 echo "$as_me: failed program was:" >&5
25770 cat "conftest.$ac_ext" >&5
25771 eval "$as_ac_Header=no"
25773 rm -f conftest.err "conftest.$ac_ext"
25775 echo "$as_me:25775: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25776 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25777 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25778 cat >>confdefs.h <<EOF
25779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25785 for ac_header in iostream
25787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25788 echo "$as_me:25788: checking for $ac_header" >&5
25789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25791 echo $ECHO_N "(cached) $ECHO_C" >&6
25793 cat >"conftest.$ac_ext" <<_ACEOF
25794 #line 25794 "configure"
25795 #include "confdefs.h"
25796 #include <$ac_header>
25798 if { (eval echo "$as_me:25798: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25799 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25801 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25803 cat conftest.err >&5
25804 echo "$as_me:25804: \$? = $ac_status" >&5
25805 (exit "$ac_status"); } >/dev/null; then
25806 if test -s conftest.err; then
25807 ac_cpp_err=$ac_cxx_preproc_warn_flag
25814 if test -z "$ac_cpp_err"; then
25815 eval "$as_ac_Header=yes"
25817 echo "$as_me: failed program was:" >&5
25818 cat "conftest.$ac_ext" >&5
25819 eval "$as_ac_Header=no"
25821 rm -f conftest.err "conftest.$ac_ext"
25823 echo "$as_me:25823: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25824 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25825 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25826 cat >>confdefs.h <<EOF
25827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25833 if test x"$ac_cv_header_iostream" = xyes ; then
25834 echo "$as_me:25834: checking if iostream uses std-namespace" >&5
25835 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25836 cat >"conftest.$ac_ext" <<_ACEOF
25837 #line 25837 "configure"
25838 #include "confdefs.h"
25840 #include <iostream>
25847 cerr << "testing" << endl;
25853 rm -f "conftest.$ac_objext"
25854 if { (eval echo "$as_me:25854: \"$ac_compile\"") >&5
25855 (eval $ac_compile) 2>&5
25857 echo "$as_me:25857: \$? = $ac_status" >&5
25858 (exit "$ac_status"); } &&
25859 { ac_try='test -s "conftest.$ac_objext"'
25860 { (eval echo "$as_me:25860: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25863 echo "$as_me:25863: \$? = $ac_status" >&5
25864 (exit "$ac_status"); }; }; then
25865 cf_iostream_namespace=yes
25867 echo "$as_me: failed program was:" >&5
25868 cat "conftest.$ac_ext" >&5
25869 cf_iostream_namespace=no
25871 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25872 echo "$as_me:25872: result: $cf_iostream_namespace" >&5
25873 echo "${ECHO_T}$cf_iostream_namespace" >&6
25874 if test "$cf_iostream_namespace" = yes ; then
25876 cat >>confdefs.h <<\EOF
25877 #define IOSTREAM_NAMESPACE 1
25883 echo "$as_me:25883: checking if we should include stdbool.h" >&5
25884 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25886 if test "${cf_cv_header_stdbool_h+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25890 cat >"conftest.$ac_ext" <<_ACEOF
25891 #line 25891 "configure"
25892 #include "confdefs.h"
25902 rm -f "conftest.$ac_objext"
25903 if { (eval echo "$as_me:25903: \"$ac_compile\"") >&5
25904 (eval $ac_compile) 2>&5
25906 echo "$as_me:25906: \$? = $ac_status" >&5
25907 (exit "$ac_status"); } &&
25908 { ac_try='test -s "conftest.$ac_objext"'
25909 { (eval echo "$as_me:25909: \"$ac_try\"") >&5
25910 (eval $ac_try) 2>&5
25912 echo "$as_me:25912: \$? = $ac_status" >&5
25913 (exit "$ac_status"); }; }; then
25914 cf_cv_header_stdbool_h=0
25916 echo "$as_me: failed program was:" >&5
25917 cat "conftest.$ac_ext" >&5
25918 cat >"conftest.$ac_ext" <<_ACEOF
25919 #line 25919 "configure"
25920 #include "confdefs.h"
25923 #include <stdbool.h>
25934 rm -f "conftest.$ac_objext"
25935 if { (eval echo "$as_me:25935: \"$ac_compile\"") >&5
25936 (eval $ac_compile) 2>&5
25938 echo "$as_me:25938: \$? = $ac_status" >&5
25939 (exit "$ac_status"); } &&
25940 { ac_try='test -s "conftest.$ac_objext"'
25941 { (eval echo "$as_me:25941: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25944 echo "$as_me:25944: \$? = $ac_status" >&5
25945 (exit "$ac_status"); }; }; then
25946 cf_cv_header_stdbool_h=1
25948 echo "$as_me: failed program was:" >&5
25949 cat "conftest.$ac_ext" >&5
25950 cf_cv_header_stdbool_h=0
25952 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25954 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25957 if test "$cf_cv_header_stdbool_h" = 1
25958 then echo "$as_me:25958: result: yes" >&5
25959 echo "${ECHO_T}yes" >&6
25960 else echo "$as_me:25960: result: no" >&5
25961 echo "${ECHO_T}no" >&6
25964 echo "$as_me:25964: checking for builtin bool type" >&5
25965 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25967 if test "${cf_cv_builtin_bool+set}" = set; then
25968 echo $ECHO_N "(cached) $ECHO_C" >&6
25971 cat >"conftest.$ac_ext" <<_ACEOF
25972 #line 25972 "configure"
25973 #include "confdefs.h"
25976 #include <sys/types.h>
25986 rm -f "conftest.$ac_objext"
25987 if { (eval echo "$as_me:25987: \"$ac_compile\"") >&5
25988 (eval $ac_compile) 2>&5
25990 echo "$as_me:25990: \$? = $ac_status" >&5
25991 (exit "$ac_status"); } &&
25992 { ac_try='test -s "conftest.$ac_objext"'
25993 { (eval echo "$as_me:25993: \"$ac_try\"") >&5
25994 (eval $ac_try) 2>&5
25996 echo "$as_me:25996: \$? = $ac_status" >&5
25997 (exit "$ac_status"); }; }; then
25998 cf_cv_builtin_bool=1
26000 echo "$as_me: failed program was:" >&5
26001 cat "conftest.$ac_ext" >&5
26002 cf_cv_builtin_bool=0
26004 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26008 if test "$cf_cv_builtin_bool" = 1
26009 then echo "$as_me:26009: result: yes" >&5
26010 echo "${ECHO_T}yes" >&6
26011 else echo "$as_me:26011: result: no" >&5
26012 echo "${ECHO_T}no" >&6
26015 echo "$as_me:26015: checking for bool" >&5
26016 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26017 if test "${ac_cv_type_bool+set}" = set; then
26018 echo $ECHO_N "(cached) $ECHO_C" >&6
26020 cat >"conftest.$ac_ext" <<_ACEOF
26021 #line 26021 "configure"
26022 #include "confdefs.h"
26024 $ac_includes_default
26026 #if defined(__cplusplus)
26028 #ifdef HAVE_GXX_BUILTIN_H
26029 #include <g++/builtin.h>
26030 #elif HAVE_GPP_BUILTIN_H
26031 #include <gpp/builtin.h>
26032 #elif HAVE_BUILTIN_H
26033 #include <builtin.h>
26038 #if $cf_cv_header_stdbool_h
26039 #include <stdbool.h>
26055 rm -f "conftest.$ac_objext"
26056 if { (eval echo "$as_me:26056: \"$ac_compile\"") >&5
26057 (eval $ac_compile) 2>&5
26059 echo "$as_me:26059: \$? = $ac_status" >&5
26060 (exit "$ac_status"); } &&
26061 { ac_try='test -s "conftest.$ac_objext"'
26062 { (eval echo "$as_me:26062: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26065 echo "$as_me:26065: \$? = $ac_status" >&5
26066 (exit "$ac_status"); }; }; then
26067 ac_cv_type_bool=yes
26069 echo "$as_me: failed program was:" >&5
26070 cat "conftest.$ac_ext" >&5
26073 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26075 echo "$as_me:26075: result: $ac_cv_type_bool" >&5
26076 echo "${ECHO_T}$ac_cv_type_bool" >&6
26078 echo "$as_me:26078: checking size of bool" >&5
26079 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26080 if test "${ac_cv_sizeof_bool+set}" = set; then
26081 echo $ECHO_N "(cached) $ECHO_C" >&6
26083 if test "$ac_cv_type_bool" = yes; then
26084 if test "$cross_compiling" = yes; then
26085 # Depending upon the size, compute the lo and hi bounds.
26086 cat >"conftest.$ac_ext" <<_ACEOF
26087 #line 26087 "configure"
26088 #include "confdefs.h"
26090 $ac_includes_default
26092 #if defined(__cplusplus)
26094 #ifdef HAVE_GXX_BUILTIN_H
26095 #include <g++/builtin.h>
26096 #elif HAVE_GPP_BUILTIN_H
26097 #include <gpp/builtin.h>
26098 #elif HAVE_BUILTIN_H
26099 #include <builtin.h>
26104 #if $cf_cv_header_stdbool_h
26105 #include <stdbool.h>
26113 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26118 rm -f "conftest.$ac_objext"
26119 if { (eval echo "$as_me:26119: \"$ac_compile\"") >&5
26120 (eval $ac_compile) 2>&5
26122 echo "$as_me:26122: \$? = $ac_status" >&5
26123 (exit "$ac_status"); } &&
26124 { ac_try='test -s "conftest.$ac_objext"'
26125 { (eval echo "$as_me:26125: \"$ac_try\"") >&5
26126 (eval $ac_try) 2>&5
26128 echo "$as_me:26128: \$? = $ac_status" >&5
26129 (exit "$ac_status"); }; }; then
26132 cat >"conftest.$ac_ext" <<_ACEOF
26133 #line 26133 "configure"
26134 #include "confdefs.h"
26136 $ac_includes_default
26138 #if defined(__cplusplus)
26140 #ifdef HAVE_GXX_BUILTIN_H
26141 #include <g++/builtin.h>
26142 #elif HAVE_GPP_BUILTIN_H
26143 #include <gpp/builtin.h>
26144 #elif HAVE_BUILTIN_H
26145 #include <builtin.h>
26150 #if $cf_cv_header_stdbool_h
26151 #include <stdbool.h>
26159 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26164 rm -f "conftest.$ac_objext"
26165 if { (eval echo "$as_me:26165: \"$ac_compile\"") >&5
26166 (eval $ac_compile) 2>&5
26168 echo "$as_me:26168: \$? = $ac_status" >&5
26169 (exit "$ac_status"); } &&
26170 { ac_try='test -s "conftest.$ac_objext"'
26171 { (eval echo "$as_me:26171: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26174 echo "$as_me:26174: \$? = $ac_status" >&5
26175 (exit "$ac_status"); }; }; then
26176 ac_hi=$ac_mid; break
26178 echo "$as_me: failed program was:" >&5
26179 cat "conftest.$ac_ext" >&5
26180 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26182 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26185 echo "$as_me: failed program was:" >&5
26186 cat "conftest.$ac_ext" >&5
26189 cat >"conftest.$ac_ext" <<_ACEOF
26190 #line 26190 "configure"
26191 #include "confdefs.h"
26193 $ac_includes_default
26195 #if defined(__cplusplus)
26197 #ifdef HAVE_GXX_BUILTIN_H
26198 #include <g++/builtin.h>
26199 #elif HAVE_GPP_BUILTIN_H
26200 #include <gpp/builtin.h>
26201 #elif HAVE_BUILTIN_H
26202 #include <builtin.h>
26207 #if $cf_cv_header_stdbool_h
26208 #include <stdbool.h>
26216 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26221 rm -f "conftest.$ac_objext"
26222 if { (eval echo "$as_me:26222: \"$ac_compile\"") >&5
26223 (eval $ac_compile) 2>&5
26225 echo "$as_me:26225: \$? = $ac_status" >&5
26226 (exit "$ac_status"); } &&
26227 { ac_try='test -s "conftest.$ac_objext"'
26228 { (eval echo "$as_me:26228: \"$ac_try\"") >&5
26229 (eval $ac_try) 2>&5
26231 echo "$as_me:26231: \$? = $ac_status" >&5
26232 (exit "$ac_status"); }; }; then
26233 ac_lo=$ac_mid; break
26235 echo "$as_me: failed program was:" >&5
26236 cat "conftest.$ac_ext" >&5
26237 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26239 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26242 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26243 # Binary search between lo and hi bounds.
26244 while test "x$ac_lo" != "x$ac_hi"; do
26245 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26246 cat >"conftest.$ac_ext" <<_ACEOF
26247 #line 26247 "configure"
26248 #include "confdefs.h"
26250 $ac_includes_default
26252 #if defined(__cplusplus)
26254 #ifdef HAVE_GXX_BUILTIN_H
26255 #include <g++/builtin.h>
26256 #elif HAVE_GPP_BUILTIN_H
26257 #include <gpp/builtin.h>
26258 #elif HAVE_BUILTIN_H
26259 #include <builtin.h>
26264 #if $cf_cv_header_stdbool_h
26265 #include <stdbool.h>
26273 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26278 rm -f "conftest.$ac_objext"
26279 if { (eval echo "$as_me:26279: \"$ac_compile\"") >&5
26280 (eval $ac_compile) 2>&5
26282 echo "$as_me:26282: \$? = $ac_status" >&5
26283 (exit "$ac_status"); } &&
26284 { ac_try='test -s "conftest.$ac_objext"'
26285 { (eval echo "$as_me:26285: \"$ac_try\"") >&5
26286 (eval $ac_try) 2>&5
26288 echo "$as_me:26288: \$? = $ac_status" >&5
26289 (exit "$ac_status"); }; }; then
26292 echo "$as_me: failed program was:" >&5
26293 cat "conftest.$ac_ext" >&5
26294 ac_lo=`expr "$ac_mid" + 1`
26296 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26298 ac_cv_sizeof_bool=$ac_lo
26300 if test "$cross_compiling" = yes; then
26301 { { echo "$as_me:26301: error: cannot run test program while cross compiling" >&5
26302 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26303 { (exit 1); exit 1; }; }
26305 cat >"conftest.$ac_ext" <<_ACEOF
26306 #line 26306 "configure"
26307 #include "confdefs.h"
26309 $ac_includes_default
26311 #if defined(__cplusplus)
26313 #ifdef HAVE_GXX_BUILTIN_H
26314 #include <g++/builtin.h>
26315 #elif HAVE_GPP_BUILTIN_H
26316 #include <gpp/builtin.h>
26317 #elif HAVE_BUILTIN_H
26318 #include <builtin.h>
26323 #if $cf_cv_header_stdbool_h
26324 #include <stdbool.h>
26332 FILE *f = fopen ("conftest.val", "w");
26334 $ac_main_return (1);
26335 fprintf (f, "%ld", (long)(sizeof (bool)));
26341 rm -f "conftest$ac_exeext"
26342 if { (eval echo "$as_me:26342: \"$ac_link\"") >&5
26343 (eval $ac_link) 2>&5
26345 echo "$as_me:26345: \$? = $ac_status" >&5
26346 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26347 { (eval echo "$as_me:26347: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26350 echo "$as_me:26350: \$? = $ac_status" >&5
26351 (exit "$ac_status"); }; }; then
26352 ac_cv_sizeof_bool=`cat conftest.val`
26354 echo "$as_me: program exited with status $ac_status" >&5
26355 echo "$as_me: failed program was:" >&5
26356 cat "conftest.$ac_ext" >&5
26358 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26363 ac_cv_sizeof_bool=0
26366 echo "$as_me:26366: result: $ac_cv_sizeof_bool" >&5
26367 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26368 cat >>confdefs.h <<EOF
26369 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26372 echo "$as_me:26372: checking for type of bool" >&5
26373 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26374 if test "${cf_cv_type_of_bool+set}" = set; then
26375 echo $ECHO_N "(cached) $ECHO_C" >&6
26379 if test "$cross_compiling" = yes; then
26381 case x$ac_cv_sizeof_bool in
26382 (x1) cf_cv_type_of_bool="unsigned char";;
26383 (x2) cf_cv_type_of_bool="unsigned short";;
26384 (x4) cf_cv_type_of_bool="unsigned int";;
26385 (x8) cf_cv_type_of_bool="unsigned long";;
26386 (*) cf_cv_type_of_bool=unknown;;
26390 cat >"conftest.$ac_ext" <<_ACEOF
26391 #line 26391 "configure"
26392 #include "confdefs.h"
26394 $ac_includes_default
26396 #if defined(__cplusplus)
26398 #ifdef HAVE_GXX_BUILTIN_H
26399 #include <g++/builtin.h>
26400 #elif HAVE_GPP_BUILTIN_H
26401 #include <gpp/builtin.h>
26402 #elif HAVE_BUILTIN_H
26403 #include <builtin.h>
26408 #if $cf_cv_header_stdbool_h
26409 #include <stdbool.h>
26416 FILE *fp = fopen("cf_test.out", "w");
26419 if ((bool)(-x) >= 0)
26420 fputs("unsigned ", fp);
26421 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26422 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26423 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26424 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26427 ${cf_cv_main_return:-return}(0);
26431 rm -f "conftest$ac_exeext"
26432 if { (eval echo "$as_me:26432: \"$ac_link\"") >&5
26433 (eval $ac_link) 2>&5
26435 echo "$as_me:26435: \$? = $ac_status" >&5
26436 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
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_type_of_bool=`cat cf_test.out`
26443 if test -z "$cf_cv_type_of_bool"; then
26444 cf_cv_type_of_bool=unknown
26447 echo "$as_me: program exited with status $ac_status" >&5
26448 echo "$as_me: failed program was:" >&5
26449 cat "conftest.$ac_ext" >&5
26450 cf_cv_type_of_bool=unknown
26452 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26457 echo "$as_me:26457: result: $cf_cv_type_of_bool" >&5
26458 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26460 if test "$cf_cv_type_of_bool" = unknown ; then
26461 case .$NCURSES_BOOL in
26462 (.auto|.) NCURSES_BOOL=unsigned;;
26464 { echo "$as_me:26464: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26465 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26466 cf_cv_type_of_bool=$NCURSES_BOOL
26469 echo "$as_me:26469: checking for special defines needed for etip.h" >&5
26470 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26471 cf_save_CXXFLAGS="$CXXFLAGS"
26474 # etip.h includes ncurses.h which includes ncurses_dll.h
26475 # But ncurses_dll.h is generated - fix here.
26476 test -d include || mkdir include
26477 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
26479 for cf_math in "" MATH_H
26481 for cf_excp in "" MATH_EXCEPTION
26483 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26484 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26485 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26486 cat >"conftest.$ac_ext" <<_ACEOF
26487 #line 26487 "configure"
26488 #include "confdefs.h"
26490 #include <etip.h.in>
26500 rm -f "conftest.$ac_objext"
26501 if { (eval echo "$as_me:26501: \"$ac_compile\"") >&5
26502 (eval $ac_compile) 2>&5
26504 echo "$as_me:26504: \$? = $ac_status" >&5
26505 (exit "$ac_status"); } &&
26506 { ac_try='test -s "conftest.$ac_objext"'
26507 { (eval echo "$as_me:26507: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26510 echo "$as_me:26510: \$? = $ac_status" >&5
26511 (exit "$ac_status"); }; }; then
26513 test -n "$cf_math" && cat >>confdefs.h <<EOF
26514 #define ETIP_NEEDS_${cf_math} 1
26517 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26518 #define ETIP_NEEDS_${cf_excp} 1
26521 cf_result="$cf_math $cf_excp"
26525 echo "$as_me: failed program was:" >&5
26526 cat "conftest.$ac_ext" >&5
26528 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26531 echo "$as_me:26531: result: $cf_result" >&5
26532 echo "${ECHO_T}$cf_result" >&6
26533 CXXFLAGS="$cf_save_CXXFLAGS"
26535 if test -n "$CXX"; then
26536 echo "$as_me:26536: checking if $CXX accepts override keyword" >&5
26537 echo $ECHO_N "checking if $CXX accepts override keyword... $ECHO_C" >&6
26538 if test "${cf_cv_cpp_override+set}" = set; then
26539 echo $ECHO_N "(cached) $ECHO_C" >&6
26543 ac_cpp='$CXXCPP $CPPFLAGS'
26544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26545 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26547 ac_main_return="return"
26549 if test "$cross_compiling" = yes; then
26550 cf_cv_cpp_override=unknown
26552 cat >"conftest.$ac_ext" <<_ACEOF
26553 #line 26553 "configure"
26554 #include "confdefs.h"
26559 virtual int foo(float x) = 0;
26562 class derived: public base
26565 int foo(float x) override { return x != 0.0 ? 1 : 0; }
26571 rm -f "conftest$ac_exeext"
26572 if { (eval echo "$as_me:26572: \"$ac_link\"") >&5
26573 (eval $ac_link) 2>&5
26575 echo "$as_me:26575: \$? = $ac_status" >&5
26576 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26577 { (eval echo "$as_me:26577: \"$ac_try\"") >&5
26578 (eval $ac_try) 2>&5
26580 echo "$as_me:26580: \$? = $ac_status" >&5
26581 (exit "$ac_status"); }; }; then
26582 cf_cv_cpp_override=yes
26584 echo "$as_me: program exited with status $ac_status" >&5
26585 echo "$as_me: failed program was:" >&5
26586 cat "conftest.$ac_ext" >&5
26587 cf_cv_cpp_override=no
26589 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26592 ac_cpp='$CXXCPP $CPPFLAGS'
26593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26594 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26596 ac_main_return="return"
26599 echo "$as_me:26599: result: $cf_cv_cpp_override" >&5
26600 echo "${ECHO_T}$cf_cv_cpp_override" >&6
26602 test "$cf_cv_cpp_override" = yes &&
26603 cat >>confdefs.h <<\EOF
26604 #define CPP_HAS_OVERRIDE 1
26607 if test -n "$CXX"; then
26608 echo "$as_me:26608: checking if $CXX accepts parameter initialization" >&5
26609 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26610 if test "${cf_cv_cpp_param_init+set}" = set; then
26611 echo $ECHO_N "(cached) $ECHO_C" >&6
26615 ac_cpp='$CXXCPP $CPPFLAGS'
26616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26617 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26619 ac_main_return="return"
26621 if test "$cross_compiling" = yes; then
26622 cf_cv_cpp_param_init=unknown
26624 cat >"conftest.$ac_ext" <<_ACEOF
26625 #line 26625 "configure"
26626 #include "confdefs.h"
26636 TEST::TEST(int x = 1) // some compilers do not like second initializer
26643 rm -f "conftest$ac_exeext"
26644 if { (eval echo "$as_me:26644: \"$ac_link\"") >&5
26645 (eval $ac_link) 2>&5
26647 echo "$as_me:26647: \$? = $ac_status" >&5
26648 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26649 { (eval echo "$as_me:26649: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26652 echo "$as_me:26652: \$? = $ac_status" >&5
26653 (exit "$ac_status"); }; }; then
26654 cf_cv_cpp_param_init=yes
26656 echo "$as_me: program exited with status $ac_status" >&5
26657 echo "$as_me: failed program was:" >&5
26658 cat "conftest.$ac_ext" >&5
26659 cf_cv_cpp_param_init=no
26661 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26664 ac_cpp='$CXXCPP $CPPFLAGS'
26665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26666 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26668 ac_main_return="return"
26671 echo "$as_me:26671: result: $cf_cv_cpp_param_init" >&5
26672 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26674 test "$cf_cv_cpp_param_init" = yes &&
26675 cat >>confdefs.h <<\EOF
26676 #define CPP_HAS_PARAM_INIT 1
26679 if test -n "$CXX"; then
26681 echo "$as_me:26681: checking if $CXX accepts static_cast" >&5
26682 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26683 if test "${cf_cv_cpp_static_cast+set}" = set; then
26684 echo $ECHO_N "(cached) $ECHO_C" >&6
26688 ac_cpp='$CXXCPP $CPPFLAGS'
26689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26690 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26692 ac_main_return="return"
26694 cat >"conftest.$ac_ext" <<_ACEOF
26695 #line 26695 "configure"
26696 #include "confdefs.h"
26701 NCursesPanel(int nlines,
26711 template<class T> class NCursesUserPanel : public NCursesPanel
26714 NCursesUserPanel (int nlines,
26718 const T* p_UserData = static_cast<T*>(0))
26719 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26722 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26726 virtual ~NCursesUserPanel() {};
26733 const char* p_UserData = static_cast<char*>(0)
26738 rm -f "conftest.$ac_objext"
26739 if { (eval echo "$as_me:26739: \"$ac_compile\"") >&5
26740 (eval $ac_compile) 2>&5
26742 echo "$as_me:26742: \$? = $ac_status" >&5
26743 (exit "$ac_status"); } &&
26744 { ac_try='test -s "conftest.$ac_objext"'
26745 { (eval echo "$as_me:26745: \"$ac_try\"") >&5
26746 (eval $ac_try) 2>&5
26748 echo "$as_me:26748: \$? = $ac_status" >&5
26749 (exit "$ac_status"); }; }; then
26750 cf_cv_cpp_static_cast=yes
26752 echo "$as_me: failed program was:" >&5
26753 cat "conftest.$ac_ext" >&5
26754 cf_cv_cpp_static_cast=no
26756 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26759 ac_cpp='$CXXCPP $CPPFLAGS'
26760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26761 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26763 ac_main_return="return"
26766 echo "$as_me:26766: result: $cf_cv_cpp_static_cast" >&5
26767 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26771 test "$cf_cv_cpp_static_cast" = yes &&
26772 cat >>confdefs.h <<\EOF
26773 #define CPP_HAS_STATIC_CAST 1
26777 CXX_ARFLAGS='$(ARFLAGS)'
26778 case "$cf_cv_system_name" in
26780 if test "$GXX" != yes ; then
26782 CXX_ARFLAGS='-ar -o'
26786 CXXLDFLAGS="-u main"
26789 if test "$GXX" != yes ; then
26791 CXX_ARFLAGS='-xar -o'
26798 cf_cv_builtin_bool=1
26800 # Just because we are not configuring against C++ right now does not
26801 # mean that a user will not want to use C++. Some distributors disable
26802 # the C++ portion of this configuration as a shortcut (or just to avoid
26803 # compiling the demo in the c++ directory). So we need a reasonable
26804 # default for the 'bool' type.
26806 # Caveat: since the storage of the bool type is not standardized, it
26809 if test "$NCURSES_BOOL" != auto ; then
26810 cf_cv_type_of_bool=$NCURSES_BOOL
26811 cf_cv_header_stdbool_h=0
26813 if test "$cf_cv_header_stdbool_h" = 1 ; then
26815 echo "$as_me:26815: checking for bool" >&5
26816 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26817 if test "${ac_cv_type_bool+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 cat >"conftest.$ac_ext" <<_ACEOF
26821 #line 26821 "configure"
26822 #include "confdefs.h"
26824 $ac_includes_default
26826 #if defined(__cplusplus)
26828 #ifdef HAVE_GXX_BUILTIN_H
26829 #include <g++/builtin.h>
26830 #elif HAVE_GPP_BUILTIN_H
26831 #include <gpp/builtin.h>
26832 #elif HAVE_BUILTIN_H
26833 #include <builtin.h>
26838 #if $cf_cv_header_stdbool_h
26839 #include <stdbool.h>
26855 rm -f "conftest.$ac_objext"
26856 if { (eval echo "$as_me:26856: \"$ac_compile\"") >&5
26857 (eval $ac_compile) 2>&5
26859 echo "$as_me:26859: \$? = $ac_status" >&5
26860 (exit "$ac_status"); } &&
26861 { ac_try='test -s "conftest.$ac_objext"'
26862 { (eval echo "$as_me:26862: \"$ac_try\"") >&5
26863 (eval $ac_try) 2>&5
26865 echo "$as_me:26865: \$? = $ac_status" >&5
26866 (exit "$ac_status"); }; }; then
26867 ac_cv_type_bool=yes
26869 echo "$as_me: failed program was:" >&5
26870 cat "conftest.$ac_ext" >&5
26873 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26875 echo "$as_me:26875: result: $ac_cv_type_bool" >&5
26876 echo "${ECHO_T}$ac_cv_type_bool" >&6
26878 echo "$as_me:26878: checking size of bool" >&5
26879 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26880 if test "${ac_cv_sizeof_bool+set}" = set; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26883 if test "$ac_cv_type_bool" = yes; then
26884 if test "$cross_compiling" = yes; then
26885 # Depending upon the size, compute the lo and hi bounds.
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>
26913 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26918 rm -f "conftest.$ac_objext"
26919 if { (eval echo "$as_me:26919: \"$ac_compile\"") >&5
26920 (eval $ac_compile) 2>&5
26922 echo "$as_me:26922: \$? = $ac_status" >&5
26923 (exit "$ac_status"); } &&
26924 { ac_try='test -s "conftest.$ac_objext"'
26925 { (eval echo "$as_me:26925: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26928 echo "$as_me:26928: \$? = $ac_status" >&5
26929 (exit "$ac_status"); }; }; then
26932 cat >"conftest.$ac_ext" <<_ACEOF
26933 #line 26933 "configure"
26934 #include "confdefs.h"
26936 $ac_includes_default
26938 #if defined(__cplusplus)
26940 #ifdef HAVE_GXX_BUILTIN_H
26941 #include <g++/builtin.h>
26942 #elif HAVE_GPP_BUILTIN_H
26943 #include <gpp/builtin.h>
26944 #elif HAVE_BUILTIN_H
26945 #include <builtin.h>
26950 #if $cf_cv_header_stdbool_h
26951 #include <stdbool.h>
26959 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26964 rm -f "conftest.$ac_objext"
26965 if { (eval echo "$as_me:26965: \"$ac_compile\"") >&5
26966 (eval $ac_compile) 2>&5
26968 echo "$as_me:26968: \$? = $ac_status" >&5
26969 (exit "$ac_status"); } &&
26970 { ac_try='test -s "conftest.$ac_objext"'
26971 { (eval echo "$as_me:26971: \"$ac_try\"") >&5
26972 (eval $ac_try) 2>&5
26974 echo "$as_me:26974: \$? = $ac_status" >&5
26975 (exit "$ac_status"); }; }; then
26976 ac_hi=$ac_mid; break
26978 echo "$as_me: failed program was:" >&5
26979 cat "conftest.$ac_ext" >&5
26980 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26982 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26985 echo "$as_me: failed program was:" >&5
26986 cat "conftest.$ac_ext" >&5
26989 cat >"conftest.$ac_ext" <<_ACEOF
26990 #line 26990 "configure"
26991 #include "confdefs.h"
26993 $ac_includes_default
26995 #if defined(__cplusplus)
26997 #ifdef HAVE_GXX_BUILTIN_H
26998 #include <g++/builtin.h>
26999 #elif HAVE_GPP_BUILTIN_H
27000 #include <gpp/builtin.h>
27001 #elif HAVE_BUILTIN_H
27002 #include <builtin.h>
27007 #if $cf_cv_header_stdbool_h
27008 #include <stdbool.h>
27016 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
27021 rm -f "conftest.$ac_objext"
27022 if { (eval echo "$as_me:27022: \"$ac_compile\"") >&5
27023 (eval $ac_compile) 2>&5
27025 echo "$as_me:27025: \$? = $ac_status" >&5
27026 (exit "$ac_status"); } &&
27027 { ac_try='test -s "conftest.$ac_objext"'
27028 { (eval echo "$as_me:27028: \"$ac_try\"") >&5
27029 (eval $ac_try) 2>&5
27031 echo "$as_me:27031: \$? = $ac_status" >&5
27032 (exit "$ac_status"); }; }; then
27033 ac_lo=$ac_mid; break
27035 echo "$as_me: failed program was:" >&5
27036 cat "conftest.$ac_ext" >&5
27037 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27039 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27042 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27043 # Binary search between lo and hi bounds.
27044 while test "x$ac_lo" != "x$ac_hi"; do
27045 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27046 cat >"conftest.$ac_ext" <<_ACEOF
27047 #line 27047 "configure"
27048 #include "confdefs.h"
27050 $ac_includes_default
27052 #if defined(__cplusplus)
27054 #ifdef HAVE_GXX_BUILTIN_H
27055 #include <g++/builtin.h>
27056 #elif HAVE_GPP_BUILTIN_H
27057 #include <gpp/builtin.h>
27058 #elif HAVE_BUILTIN_H
27059 #include <builtin.h>
27064 #if $cf_cv_header_stdbool_h
27065 #include <stdbool.h>
27073 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
27078 rm -f "conftest.$ac_objext"
27079 if { (eval echo "$as_me:27079: \"$ac_compile\"") >&5
27080 (eval $ac_compile) 2>&5
27082 echo "$as_me:27082: \$? = $ac_status" >&5
27083 (exit "$ac_status"); } &&
27084 { ac_try='test -s "conftest.$ac_objext"'
27085 { (eval echo "$as_me:27085: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27088 echo "$as_me:27088: \$? = $ac_status" >&5
27089 (exit "$ac_status"); }; }; then
27092 echo "$as_me: failed program was:" >&5
27093 cat "conftest.$ac_ext" >&5
27094 ac_lo=`expr "$ac_mid" + 1`
27096 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27098 ac_cv_sizeof_bool=$ac_lo
27100 if test "$cross_compiling" = yes; then
27101 { { echo "$as_me:27101: error: cannot run test program while cross compiling" >&5
27102 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27103 { (exit 1); exit 1; }; }
27105 cat >"conftest.$ac_ext" <<_ACEOF
27106 #line 27106 "configure"
27107 #include "confdefs.h"
27109 $ac_includes_default
27111 #if defined(__cplusplus)
27113 #ifdef HAVE_GXX_BUILTIN_H
27114 #include <g++/builtin.h>
27115 #elif HAVE_GPP_BUILTIN_H
27116 #include <gpp/builtin.h>
27117 #elif HAVE_BUILTIN_H
27118 #include <builtin.h>
27123 #if $cf_cv_header_stdbool_h
27124 #include <stdbool.h>
27132 FILE *f = fopen ("conftest.val", "w");
27134 $ac_main_return (1);
27135 fprintf (f, "%ld", (long)(sizeof (bool)));
27141 rm -f "conftest$ac_exeext"
27142 if { (eval echo "$as_me:27142: \"$ac_link\"") >&5
27143 (eval $ac_link) 2>&5
27145 echo "$as_me:27145: \$? = $ac_status" >&5
27146 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27147 { (eval echo "$as_me:27147: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27150 echo "$as_me:27150: \$? = $ac_status" >&5
27151 (exit "$ac_status"); }; }; then
27152 ac_cv_sizeof_bool=`cat conftest.val`
27154 echo "$as_me: program exited with status $ac_status" >&5
27155 echo "$as_me: failed program was:" >&5
27156 cat "conftest.$ac_ext" >&5
27158 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27163 ac_cv_sizeof_bool=0
27166 echo "$as_me:27166: result: $ac_cv_sizeof_bool" >&5
27167 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
27168 cat >>confdefs.h <<EOF
27169 #define SIZEOF_BOOL $ac_cv_sizeof_bool
27172 echo "$as_me:27172: checking for type of bool" >&5
27173 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
27174 if test "${cf_cv_type_of_bool+set}" = set; then
27175 echo $ECHO_N "(cached) $ECHO_C" >&6
27179 if test "$cross_compiling" = yes; then
27181 case x$ac_cv_sizeof_bool in
27182 (x1) cf_cv_type_of_bool="unsigned char";;
27183 (x2) cf_cv_type_of_bool="unsigned short";;
27184 (x4) cf_cv_type_of_bool="unsigned int";;
27185 (x8) cf_cv_type_of_bool="unsigned long";;
27186 (*) cf_cv_type_of_bool=unknown;;
27190 cat >"conftest.$ac_ext" <<_ACEOF
27191 #line 27191 "configure"
27192 #include "confdefs.h"
27194 $ac_includes_default
27196 #if defined(__cplusplus)
27198 #ifdef HAVE_GXX_BUILTIN_H
27199 #include <g++/builtin.h>
27200 #elif HAVE_GPP_BUILTIN_H
27201 #include <gpp/builtin.h>
27202 #elif HAVE_BUILTIN_H
27203 #include <builtin.h>
27208 #if $cf_cv_header_stdbool_h
27209 #include <stdbool.h>
27216 FILE *fp = fopen("cf_test.out", "w");
27219 if ((bool)(-x) >= 0)
27220 fputs("unsigned ", fp);
27221 if (sizeof(x) == sizeof(int)) fputs("int", fp);
27222 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
27223 else if (sizeof(x) == sizeof(short))fputs("short",fp);
27224 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
27227 ${cf_cv_main_return:-return}(0);
27231 rm -f "conftest$ac_exeext"
27232 if { (eval echo "$as_me:27232: \"$ac_link\"") >&5
27233 (eval $ac_link) 2>&5
27235 echo "$as_me:27235: \$? = $ac_status" >&5
27236 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27237 { (eval echo "$as_me:27237: \"$ac_try\"") >&5
27238 (eval $ac_try) 2>&5
27240 echo "$as_me:27240: \$? = $ac_status" >&5
27241 (exit "$ac_status"); }; }; then
27242 cf_cv_type_of_bool=`cat cf_test.out`
27243 if test -z "$cf_cv_type_of_bool"; then
27244 cf_cv_type_of_bool=unknown
27247 echo "$as_me: program exited with status $ac_status" >&5
27248 echo "$as_me: failed program was:" >&5
27249 cat "conftest.$ac_ext" >&5
27250 cf_cv_type_of_bool=unknown
27252 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27257 echo "$as_me:27257: result: $cf_cv_type_of_bool" >&5
27258 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27260 if test "$cf_cv_type_of_bool" = unknown ; then
27261 case .$NCURSES_BOOL in
27262 (.auto|.) NCURSES_BOOL=unsigned;;
27264 { echo "$as_me:27264: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
27265 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
27266 cf_cv_type_of_bool=$NCURSES_BOOL
27270 echo "$as_me:27270: checking for fallback type of bool" >&5
27271 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
27272 case "$host_cpu" in
27273 (i?86) cf_cv_type_of_bool=char ;;
27274 (*) cf_cv_type_of_bool=int ;;
27276 echo "$as_me:27276: result: $cf_cv_type_of_bool" >&5
27277 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27282 # If the C compiler did not declare bool, and we did not determine that the C++
27283 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
27284 # ncurses library use the same type as C++ bool. Note that this allows one to
27285 # specify the type of bool in a configure-script option and postpone
27286 # integration with the C++ compiler provided that the types are compatible.
27288 if test "$cf_cv_cc_bool_type" = 1
27290 # oops: C has a bool. Unlikely, but C++ could differ.
27292 elif test "$cf_cv_builtin_bool" = 0
27297 # this is the normal case
27298 USE_CXX_BOOL='defined(__cplusplus)'
27301 if test -f "${srcdir}/Ada95/Makefile.in" ; then
27303 if test "$cf_with_ada" != "no" ; then
27304 if test "$with_libtool" != "no"; then
27305 { echo "$as_me:27305: WARNING: libtool does not support Ada - disabling feature" >&5
27306 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
27311 if test "$cf_with_ada" != "no" ; then
27313 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
27316 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27318 unset ac_cv_path_cf_TEMP_gnat
27320 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
27321 set dummy $cf_prog_gnat; ac_word=$2
27322 echo "$as_me:27322: checking for $ac_word" >&5
27323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27324 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27327 case $cf_TEMP_gnat in
27329 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
27332 ac_save_IFS=$IFS; IFS=$ac_path_separator
27334 for ac_dir in $ac_dummy; do
27336 test -z "$ac_dir" && ac_dir=.
27337 if $as_executable_p "$ac_dir/$ac_word"; then
27338 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
27339 echo "$as_me:27339: found $ac_dir/$ac_word" >&5
27344 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
27348 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
27350 if test -n "$cf_TEMP_gnat"; then
27351 echo "$as_me:27351: result: $cf_TEMP_gnat" >&5
27352 echo "${ECHO_T}$cf_TEMP_gnat" >&6
27354 echo "$as_me:27354: result: no" >&5
27355 echo "${ECHO_T}no" >&6
27358 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
27360 if test "x$cf_TEMP_gnat" != xno; then
27361 unset cf_cv_gnat_version
27364 echo "$as_me:27364: checking for $cf_prog_gnat version" >&5
27365 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
27366 if test "${cf_cv_gnat_version+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27370 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
27371 grep '[0-9].[0-9][0-9]*' |\
27372 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27375 echo "$as_me:27375: result: $cf_cv_gnat_version" >&5
27376 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27377 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27378 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
27381 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
27384 unset cf_cv_gnat_version
27385 unset ac_cv_path_cf_TEMP_gnat
27388 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
27390 cf_cv_prog_gnat_correct=no
27392 cf_ada_make=gnatmake
27393 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
27394 # gprconfig is newer than gnatmake; we can continue...
27397 rm -rf ./conftest* ./*~conftest*
27398 if mkdir conftest.src
27402 for cf_gprconfig in Ada C
27404 echo "$as_me:27404: checking for gprconfig name for $cf_gprconfig" >&5
27405 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
27406 if test "$cf_gprconfig" = C
27408 for cf_gprconfig_param in \
27409 "$cf_gprconfig,,,,GNATGCC" \
27410 "$cf_gprconfig,,,,GCC" \
27413 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27414 test -n "$cf_gprconfig_value" && break
27417 cf_gprconfig_param=$cf_gprconfig
27418 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27420 if test -n "$cf_gprconfig_value"
27422 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
27423 echo "$as_me:27423: result: $cf_gprconfig_value" >&5
27424 echo "${ECHO_T}$cf_gprconfig_value" >&6
27426 echo "$as_me:27426: result: missing" >&5
27427 echo "${ECHO_T}missing" >&6
27433 rm -rf ./conftest* ./*~conftest*
27436 if test "x$cf_ada_config" != "x#"
27439 echo "$as_me:27439: checking for gnat version" >&5
27440 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
27441 if test "${cf_cv_gnat_version+set}" = set; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27445 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
27446 grep '[0-9].[0-9][0-9]*' |\
27447 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27450 echo "$as_me:27450: result: $cf_cv_gnat_version" >&5
27451 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27452 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27454 case "$cf_cv_gnat_version" in
27455 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27456 cf_cv_prog_gnat_correct=yes
27459 { echo "$as_me:27459: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
27460 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
27461 cf_cv_prog_gnat_correct=no
27465 # Extract the first word of "m4", so it can be a program name with args.
27466 set dummy m4; ac_word=$2
27467 echo "$as_me:27467: checking for $ac_word" >&5
27468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27469 if test "${ac_cv_prog_M4_exists+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 if test -n "$M4_exists"; then
27473 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
27475 ac_save_IFS=$IFS; IFS=$ac_path_separator
27477 for ac_dir in $ac_dummy; do
27479 test -z "$ac_dir" && ac_dir=.
27480 $as_executable_p "$ac_dir/$ac_word" || continue
27481 ac_cv_prog_M4_exists="yes"
27482 echo "$as_me:27482: found $ac_dir/$ac_word" >&5
27486 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
27489 M4_exists=$ac_cv_prog_M4_exists
27490 if test -n "$M4_exists"; then
27491 echo "$as_me:27491: result: $M4_exists" >&5
27492 echo "${ECHO_T}$M4_exists" >&6
27494 echo "$as_me:27494: result: no" >&5
27495 echo "${ECHO_T}no" >&6
27498 if test "$ac_cv_prog_M4_exists" = no; then
27499 cf_cv_prog_gnat_correct=no
27500 { echo "$as_me:27500: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
27501 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
27503 if test "$cf_cv_prog_gnat_correct" = yes; then
27504 echo "$as_me:27504: checking if GNAT works" >&5
27505 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
27507 rm -rf ./conftest* ./*~conftest*
27508 cat >>conftest.ads <<CF_EOF
27509 procedure conftest;
27511 cat >>conftest.adb <<CF_EOF
27514 procedure conftest is
27516 Text_IO.Put ("Hello World");
27518 GNAT.OS_Lib.OS_Exit (0);
27521 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27522 if ( ./conftest 1>&5 2>&1 ) ; then
27523 cf_cv_prog_gnat_correct=yes
27525 cf_cv_prog_gnat_correct=no
27528 cf_cv_prog_gnat_correct=no
27530 rm -rf ./conftest* ./*~conftest*
27532 echo "$as_me:27532: result: $cf_cv_prog_gnat_correct" >&5
27533 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
27536 cf_cv_prog_gnat_correct=no
27540 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27542 ADAFLAGS="$ADAFLAGS -gnatpn"
27544 echo "$as_me:27544: checking optimization options for ADAFLAGS" >&5
27545 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27549 ADAFLAGS="$ADAFLAGS -g"
27555 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27557 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27561 echo "$as_me:27561: result: $ADAFLAGS" >&5
27562 echo "${ECHO_T}$ADAFLAGS" >&6
27564 echo "$as_me:27564: checking if GNATPREP supports -T option" >&5
27565 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27566 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27567 echo $ECHO_N "(cached) $ECHO_C" >&6
27570 cf_cv_gnatprep_opt_t=no
27571 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27574 echo "$as_me:27574: result: $cf_cv_gnatprep_opt_t" >&5
27575 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27576 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27578 echo "$as_me:27578: checking if GNAT supports generics" >&5
27579 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27580 case "$cf_cv_gnat_version" in
27581 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27582 cf_gnat_generics=yes
27585 cf_gnat_generics=no
27588 echo "$as_me:27588: result: $cf_gnat_generics" >&5
27589 echo "${ECHO_T}$cf_gnat_generics" >&6
27591 if test "$cf_gnat_generics" = yes
27593 cf_compile_generics=generics
27594 cf_generic_objects="\${GENOBJS}"
27596 cf_compile_generics=
27597 cf_generic_objects=
27600 echo "$as_me:27600: checking if GNAT supports SIGINT" >&5
27601 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27602 if test "${cf_cv_gnat_sigint+set}" = set; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27606 rm -rf ./conftest* ./*~conftest*
27607 cat >>conftest.ads <<CF_EOF
27608 with Ada.Interrupts.Names;
27610 package ConfTest is
27612 pragma Warnings (Off); -- the next pragma exists since 3.11p
27613 pragma Unreserve_All_Interrupts;
27614 pragma Warnings (On);
27616 protected Process is
27618 function Continue return Boolean;
27619 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27621 Done : Boolean := False;
27626 cat >>conftest.adb <<CF_EOF
27627 package body ConfTest is
27628 protected body Process is
27633 function Continue return Boolean is
27640 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27641 cf_cv_gnat_sigint=yes
27643 cf_cv_gnat_sigint=no
27645 rm -rf ./conftest* ./*~conftest*
27648 echo "$as_me:27648: result: $cf_cv_gnat_sigint" >&5
27649 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27651 if test "$cf_cv_gnat_sigint" = yes ; then
27654 USE_GNAT_SIGINT="#"
27657 cf_gnat_libraries=no
27658 cf_gnat_projects=no
27660 if test "$enable_gnat_projects" != no ; then
27661 echo "$as_me:27661: checking if GNAT supports project files" >&5
27662 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27663 case "$cf_cv_gnat_version" in
27667 case "$cf_cv_system_name" in
27671 rm -rf ./conftest* ./*~conftest*
27672 if mkdir conftest.src conftest.bin conftest.lib
27675 rm -rf ./conftest* ./*~conftest*
27676 cat >>library.gpr <<CF_EOF
27678 Kind := External ("LIB_KIND");
27679 for Library_Name use "ConfTest";
27680 for Object_Dir use ".";
27681 for Library_ALI_Dir use External("LIBRARY_DIR");
27682 for Library_Version use External ("SONAME");
27683 for Library_Kind use Kind;
27684 for Library_Dir use External("BUILD_DIR");
27685 Source_Dir := External ("SOURCE_DIR");
27686 for Source_Dirs use (Source_Dir);
27689 cat >>confpackage.ads <<CF_EOF
27690 package ConfPackage is
27691 procedure conftest;
27694 cat >>confpackage.adb <<CF_EOF
27696 package body ConfPackage is
27697 procedure conftest is
27699 Text_IO.Put ("Hello World");
27704 if ( "$cf_ada_make" $ADAFLAGS \
27706 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27707 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27708 -XSOURCE_DIR="`pwd`" \
27709 -XSONAME=libConfTest.so.1 \
27710 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27711 cf_gnat_projects=yes
27715 if test -f conftest.lib/confpackage.ali
27717 cf_gnat_libraries=yes
27719 rm -rf ./conftest* ./*~conftest*
27724 echo "$as_me:27724: result: $cf_gnat_projects" >&5
27725 echo "${ECHO_T}$cf_gnat_projects" >&6
27726 fi # enable_gnat_projects
27728 if test "$cf_gnat_projects" = yes
27730 echo "$as_me:27730: checking if GNAT supports libraries" >&5
27731 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27732 echo "$as_me:27732: result: $cf_gnat_libraries" >&5
27733 echo "${ECHO_T}$cf_gnat_libraries" >&6
27736 USE_OLD_MAKERULES=""
27737 USE_GNAT_PROJECTS="#"
27738 USE_GNAT_MAKE_GPR="#"
27739 USE_GNAT_GPRBUILD="#"
27741 if test "$cf_gnat_projects" = yes
27743 USE_OLD_MAKERULES="#"
27744 USE_GNAT_PROJECTS=""
27745 if test "$cf_cv_VERSION_GPRBUILD" != no
27747 USE_GNAT_GPRBUILD=""
27748 elif test "$cf_cv_VERSION_GNATMAKE" != no
27750 USE_GNAT_MAKE_GPR=""
27752 { echo "$as_me:27752: WARNING: use old makefile rules since tools are missing" >&5
27753 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27757 if test "$cf_gnat_libraries" = yes
27759 USE_GNAT_LIBRARIES=""
27761 USE_GNAT_LIBRARIES="#"
27764 echo "$as_me:27764: checking for ada-compiler" >&5
27765 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27767 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27768 if test "${with_ada_compiler+set}" = set; then
27769 withval="$with_ada_compiler"
27770 cf_ada_compiler=$withval
27772 cf_ada_compiler=gnatmake
27775 echo "$as_me:27775: result: $cf_ada_compiler" >&5
27776 echo "${ECHO_T}$cf_ada_compiler" >&6
27778 cf_ada_package=terminal_interface
27780 echo "$as_me:27780: checking for ada-include" >&5
27781 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27783 # Check whether --with-ada-include or --without-ada-include was given.
27784 if test "${with_ada_include+set}" = set; then
27785 withval="$with_ada_include"
27788 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27789 fi; if test -n "$prefix/share/ada/adainclude" ; then
27791 if test "x$prefix" != xNONE; then
27792 cf_path_syntax="$prefix"
27794 cf_path_syntax="$ac_default_prefix"
27797 case ".$withval" in
27798 (.\$\(*\)*|.\'*\'*)
27802 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27804 (.\$\{*prefix\}*|.\$\{*dir\}*)
27805 eval withval="$withval"
27806 case ".$withval" in
27808 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27813 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27816 { { echo "$as_me:27816: error: expected a pathname, not \"$withval\"" >&5
27817 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27818 { (exit 1); exit 1; }; }
27823 eval ADA_INCLUDE="$withval"
27825 echo "$as_me:27825: result: $ADA_INCLUDE" >&5
27826 echo "${ECHO_T}$ADA_INCLUDE" >&6
27828 echo "$as_me:27828: checking for ada-objects" >&5
27829 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27831 # Check whether --with-ada-objects or --without-ada-objects was given.
27832 if test "${with_ada_objects+set}" = set; then
27833 withval="$with_ada_objects"
27836 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27837 fi; if test -n "$prefix/lib/ada/adalib" ; then
27839 if test "x$prefix" != xNONE; then
27840 cf_path_syntax="$prefix"
27842 cf_path_syntax="$ac_default_prefix"
27845 case ".$withval" in
27846 (.\$\(*\)*|.\'*\'*)
27850 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27852 (.\$\{*prefix\}*|.\$\{*dir\}*)
27853 eval withval="$withval"
27854 case ".$withval" in
27856 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27861 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27864 { { echo "$as_me:27864: error: expected a pathname, not \"$withval\"" >&5
27865 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27866 { (exit 1); exit 1; }; }
27871 eval ADA_OBJECTS="$withval"
27873 echo "$as_me:27873: result: $ADA_OBJECTS" >&5
27874 echo "${ECHO_T}$ADA_OBJECTS" >&6
27876 echo "$as_me:27876: checking if an Ada95 shared-library should be built" >&5
27877 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27879 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27880 if test "${with_ada_sharedlib+set}" = set; then
27881 withval="$with_ada_sharedlib"
27882 with_ada_sharedlib=$withval
27884 with_ada_sharedlib=no
27886 echo "$as_me:27886: result: $with_ada_sharedlib" >&5
27887 echo "${ECHO_T}$with_ada_sharedlib" >&6
27889 if test "x$with_ada_sharedlib" != xno
27891 if test "x$cf_gnat_projects" != xyes
27893 { echo "$as_me:27893: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27894 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27895 with_ada_sharedlib=no
27899 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27900 MAKE_ADA_SHAREDLIB="#"
27902 if test "x$with_ada_sharedlib" != xno
27904 MAKE_ADA_SHAREDLIB=
27905 if test "x$with_ada_sharedlib" != xyes
27907 ADA_SHAREDLIB="$with_ada_sharedlib"
27911 # allow the Ada binding to be renamed
27913 echo "$as_me:27913: checking for ada-libname" >&5
27914 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27916 # Check whether --with-ada-libname or --without-ada-libname was given.
27917 if test "${with_ada_libname+set}" = set; then
27918 withval="$with_ada_libname"
27919 ADA_LIBNAME=$withval
27921 ADA_LIBNAME=AdaCurses
27923 case "x$ADA_LIBNAME" in
27925 ADA_LIBNAME=AdaCurses
27929 echo "$as_me:27929: result: $ADA_LIBNAME" >&5
27930 echo "${ECHO_T}$ADA_LIBNAME" >&6
27938 # do this "late" to avoid conflict with header-checks
27939 if test "x$with_widec" = xyes ; then
27940 echo "$as_me:27940: checking for wchar_t" >&5
27941 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27942 if test "${ac_cv_type_wchar_t+set}" = set; then
27943 echo $ECHO_N "(cached) $ECHO_C" >&6
27945 cat >"conftest.$ac_ext" <<_ACEOF
27946 #line 27946 "configure"
27947 #include "confdefs.h"
27948 $ac_includes_default
27954 if (sizeof (wchar_t))
27960 rm -f "conftest.$ac_objext"
27961 if { (eval echo "$as_me:27961: \"$ac_compile\"") >&5
27962 (eval $ac_compile) 2>&5
27964 echo "$as_me:27964: \$? = $ac_status" >&5
27965 (exit "$ac_status"); } &&
27966 { ac_try='test -s "conftest.$ac_objext"'
27967 { (eval echo "$as_me:27967: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27970 echo "$as_me:27970: \$? = $ac_status" >&5
27971 (exit "$ac_status"); }; }; then
27972 ac_cv_type_wchar_t=yes
27974 echo "$as_me: failed program was:" >&5
27975 cat "conftest.$ac_ext" >&5
27976 ac_cv_type_wchar_t=no
27978 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27980 echo "$as_me:27980: result: $ac_cv_type_wchar_t" >&5
27981 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27983 echo "$as_me:27983: checking size of wchar_t" >&5
27984 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27985 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27986 echo $ECHO_N "(cached) $ECHO_C" >&6
27988 if test "$ac_cv_type_wchar_t" = yes; then
27989 if test "$cross_compiling" = yes; then
27990 # Depending upon the size, compute the lo and hi bounds.
27991 cat >"conftest.$ac_ext" <<_ACEOF
27992 #line 27992 "configure"
27993 #include "confdefs.h"
27994 $ac_includes_default
27998 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
28003 rm -f "conftest.$ac_objext"
28004 if { (eval echo "$as_me:28004: \"$ac_compile\"") >&5
28005 (eval $ac_compile) 2>&5
28007 echo "$as_me:28007: \$? = $ac_status" >&5
28008 (exit "$ac_status"); } &&
28009 { ac_try='test -s "conftest.$ac_objext"'
28010 { (eval echo "$as_me:28010: \"$ac_try\"") >&5
28011 (eval $ac_try) 2>&5
28013 echo "$as_me:28013: \$? = $ac_status" >&5
28014 (exit "$ac_status"); }; }; then
28017 cat >"conftest.$ac_ext" <<_ACEOF
28018 #line 28018 "configure"
28019 #include "confdefs.h"
28020 $ac_includes_default
28024 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28029 rm -f "conftest.$ac_objext"
28030 if { (eval echo "$as_me:28030: \"$ac_compile\"") >&5
28031 (eval $ac_compile) 2>&5
28033 echo "$as_me:28033: \$? = $ac_status" >&5
28034 (exit "$ac_status"); } &&
28035 { ac_try='test -s "conftest.$ac_objext"'
28036 { (eval echo "$as_me:28036: \"$ac_try\"") >&5
28037 (eval $ac_try) 2>&5
28039 echo "$as_me:28039: \$? = $ac_status" >&5
28040 (exit "$ac_status"); }; }; then
28041 ac_hi=$ac_mid; break
28043 echo "$as_me: failed program was:" >&5
28044 cat "conftest.$ac_ext" >&5
28045 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
28047 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28050 echo "$as_me: failed program was:" >&5
28051 cat "conftest.$ac_ext" >&5
28054 cat >"conftest.$ac_ext" <<_ACEOF
28055 #line 28055 "configure"
28056 #include "confdefs.h"
28057 $ac_includes_default
28061 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
28066 rm -f "conftest.$ac_objext"
28067 if { (eval echo "$as_me:28067: \"$ac_compile\"") >&5
28068 (eval $ac_compile) 2>&5
28070 echo "$as_me:28070: \$? = $ac_status" >&5
28071 (exit "$ac_status"); } &&
28072 { ac_try='test -s "conftest.$ac_objext"'
28073 { (eval echo "$as_me:28073: \"$ac_try\"") >&5
28074 (eval $ac_try) 2>&5
28076 echo "$as_me:28076: \$? = $ac_status" >&5
28077 (exit "$ac_status"); }; }; then
28078 ac_lo=$ac_mid; break
28080 echo "$as_me: failed program was:" >&5
28081 cat "conftest.$ac_ext" >&5
28082 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
28084 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28087 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28088 # Binary search between lo and hi bounds.
28089 while test "x$ac_lo" != "x$ac_hi"; do
28090 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
28091 cat >"conftest.$ac_ext" <<_ACEOF
28092 #line 28092 "configure"
28093 #include "confdefs.h"
28094 $ac_includes_default
28098 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28103 rm -f "conftest.$ac_objext"
28104 if { (eval echo "$as_me:28104: \"$ac_compile\"") >&5
28105 (eval $ac_compile) 2>&5
28107 echo "$as_me:28107: \$? = $ac_status" >&5
28108 (exit "$ac_status"); } &&
28109 { ac_try='test -s "conftest.$ac_objext"'
28110 { (eval echo "$as_me:28110: \"$ac_try\"") >&5
28111 (eval $ac_try) 2>&5
28113 echo "$as_me:28113: \$? = $ac_status" >&5
28114 (exit "$ac_status"); }; }; then
28117 echo "$as_me: failed program was:" >&5
28118 cat "conftest.$ac_ext" >&5
28119 ac_lo=`expr "$ac_mid" + 1`
28121 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28123 ac_cv_sizeof_wchar_t=$ac_lo
28125 if test "$cross_compiling" = yes; then
28126 { { echo "$as_me:28126: error: cannot run test program while cross compiling" >&5
28127 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28128 { (exit 1); exit 1; }; }
28130 cat >"conftest.$ac_ext" <<_ACEOF
28131 #line 28131 "configure"
28132 #include "confdefs.h"
28133 $ac_includes_default
28137 FILE *f = fopen ("conftest.val", "w");
28139 $ac_main_return (1);
28140 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
28146 rm -f "conftest$ac_exeext"
28147 if { (eval echo "$as_me:28147: \"$ac_link\"") >&5
28148 (eval $ac_link) 2>&5
28150 echo "$as_me:28150: \$? = $ac_status" >&5
28151 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
28152 { (eval echo "$as_me:28152: \"$ac_try\"") >&5
28153 (eval $ac_try) 2>&5
28155 echo "$as_me:28155: \$? = $ac_status" >&5
28156 (exit "$ac_status"); }; }; then
28157 ac_cv_sizeof_wchar_t=`cat conftest.val`
28159 echo "$as_me: program exited with status $ac_status" >&5
28160 echo "$as_me: failed program was:" >&5
28161 cat "conftest.$ac_ext" >&5
28163 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
28168 ac_cv_sizeof_wchar_t=0
28171 echo "$as_me:28171: result: $ac_cv_sizeof_wchar_t" >&5
28172 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
28173 cat >>confdefs.h <<EOF
28174 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
28177 # cross-compiling to mingw can run into the problem that attempting to
28178 # link with the regex library fails, causing the test to not set this to
28179 # a number. "recent" autoconf does not address this problem either -TD
28180 if test -z "$ac_cv_sizeof_wchar_t"
28182 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
28184 echo "${as_me:-configure}:28184: testing test failed (assume 2) ..." 1>&5
28186 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
28187 mv confdefs.tmp confdefs.h
28188 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
28192 ### Construct the ncurses library-subsets, if any, from this set of keywords:
28193 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
28195 ### ticlib modules may be a separate library, otherwise contained in termlib.
28196 ### termlib modules may be a separate library, otherwise contained in ncurses.
28198 ### The of "+" or " " between the tokens controls the way the script
28199 ### chooses to split module lists into libraries.
28201 ### (see CF_LIB_RULES).
28202 echo "$as_me:28202: checking for library subsets" >&5
28203 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
28206 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
28207 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
28208 if test "$with_ticlib" != no ; then
28209 LIB_SUBSETS="${LIB_SUBSETS} "
28211 LIB_SUBSETS="${LIB_SUBSETS}+"
28215 LIB_SUBSETS="${LIB_SUBSETS}termlib"
28216 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
28218 if test "$with_termlib" != no ; then
28219 LIB_SUBSETS="${LIB_SUBSETS} "
28221 LIB_SUBSETS="${LIB_SUBSETS}+"
28224 LIB_SUBSETS="${LIB_SUBSETS}base"
28226 # Most term-driver calls are to tinfo, but some like init_pair are to the
28227 # base library (so it resides in base).
28228 if test "$with_term_driver" != no ; then
28229 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
28230 case "$cf_cv_system_name" in
28231 (*mingw32*|*mingw64*)
28232 if test "x$with_exp_win32" = xyes ; then
28233 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
28235 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
28237 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
28240 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
28243 elif test "x$with_exp_win32" = xyes ; then
28244 case "$cf_cv_system_name" in
28245 (*mingw32*|*mingw64*)
28246 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
28253 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
28254 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
28256 echo "$as_me:28256: result: $LIB_SUBSETS" >&5
28257 echo "${ECHO_T}$LIB_SUBSETS" >&6
28259 ### Construct the list of include-directories to be generated
28261 if test "$srcdir" != "."; then
28262 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
28264 CPPFLAGS="-I../include $CPPFLAGS"
28265 if test "$srcdir" != "."; then
28266 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
28268 CPPFLAGS="-I. $CPPFLAGS"
28270 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
28271 if test "$srcdir" != "."; then
28272 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
28274 if test "$GCC" != yes; then
28275 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28276 elif test "$includedir" != "/usr/include"; then
28277 if test "$includedir" = '${prefix}/include' ; then
28278 if test x$prefix != x/usr ; then
28279 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28282 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28286 ### Build up pieces for makefile rules
28287 echo "$as_me:28287: checking default library suffix" >&5
28288 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
28290 case $DFT_LWR_MODEL in
28291 (libtool) DFT_ARG_SUFFIX='' ;;
28292 (normal) DFT_ARG_SUFFIX='' ;;
28293 (debug) DFT_ARG_SUFFIX='_g' ;;
28294 (profile) DFT_ARG_SUFFIX='_p' ;;
28295 (shared) DFT_ARG_SUFFIX='' ;;
28297 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
28298 echo "$as_me:28298: result: $DFT_ARG_SUFFIX" >&5
28299 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
28301 echo "$as_me:28301: checking default library-dependency suffix" >&5
28302 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
28304 case X$DFT_LWR_MODEL in
28306 DFT_LIB_SUFFIX='.la'
28307 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28310 case "$cf_cv_system_name" in
28312 DFT_LIB_SUFFIX='_g.lib'
28315 DFT_LIB_SUFFIX='_g.a'
28318 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28321 case "$cf_cv_system_name" in
28323 DFT_LIB_SUFFIX='_p.lib'
28326 DFT_LIB_SUFFIX='_p.a'
28329 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28332 case "$cf_cv_system_name" in
28334 DFT_LIB_SUFFIX='.so'
28335 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28338 DFT_LIB_SUFFIX='.dll'
28339 DFT_DEP_SUFFIX='.dll.lib'
28341 (cygwin*|msys*|mingw*)
28342 DFT_LIB_SUFFIX='.dll'
28343 DFT_DEP_SUFFIX='.dll.a'
28346 DFT_LIB_SUFFIX='.dylib'
28347 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28352 DFT_LIB_SUFFIX='.so'
28353 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28356 DFT_LIB_SUFFIX='.sl'
28357 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28362 DFT_LIB_SUFFIX='.so'
28363 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28370 DFT_LIB_SUFFIX='.lib'
28373 DFT_LIB_SUFFIX='.a'
28376 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28379 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28381 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28382 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28384 echo "$as_me:28384: result: $DFT_DEP_SUFFIX" >&5
28385 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28387 echo "$as_me:28387: checking default object directory" >&5
28388 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28390 case $DFT_LWR_MODEL in
28391 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28392 (normal) DFT_OBJ_SUBDIR='objects' ;;
28393 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28394 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28396 case "$cf_cv_system_name" in
28398 DFT_OBJ_SUBDIR='objects' ;;
28400 DFT_OBJ_SUBDIR='obj_s' ;;
28403 echo "$as_me:28403: result: $DFT_OBJ_SUBDIR" >&5
28404 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28406 if test "x$cf_with_cxx" = xyes ; then
28407 echo "$as_me:28407: checking c++ library-dependency suffix" >&5
28408 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28409 if test "$with_libtool" != "no"; then
28410 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28411 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28412 elif test "$with_shared_cxx" != "no"; then
28413 # also for g++ users...
28414 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28416 # we normally make a static library because C/C++ library rules differ
28420 CXX_LIB_SUFFIX='.la'
28421 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28424 case "$cf_cv_system_name" in
28426 CXX_LIB_SUFFIX='_g.lib'
28429 CXX_LIB_SUFFIX='_g.a'
28432 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28435 case "$cf_cv_system_name" in
28437 CXX_LIB_SUFFIX='_p.lib'
28440 CXX_LIB_SUFFIX='_p.a'
28443 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28446 case "$cf_cv_system_name" in
28448 CXX_LIB_SUFFIX='.so'
28449 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28452 CXX_LIB_SUFFIX='.dll'
28453 CXX_DEP_SUFFIX='.dll.lib'
28455 (cygwin*|msys*|mingw*)
28456 CXX_LIB_SUFFIX='.dll'
28457 CXX_DEP_SUFFIX='.dll.a'
28460 CXX_LIB_SUFFIX='.dylib'
28461 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28466 CXX_LIB_SUFFIX='.so'
28467 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28470 CXX_LIB_SUFFIX='.sl'
28471 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28476 CXX_LIB_SUFFIX='.so'
28477 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28484 CXX_LIB_SUFFIX='.lib'
28487 CXX_LIB_SUFFIX='.a'
28490 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28493 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28495 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28496 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28500 echo "$as_me:28500: result: $CXX_LIB_SUFFIX" >&5
28501 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28505 # do not want -ldl in build except as needed for -lncurses dependency
28506 if test "x$with_dlsym" = xyes ; then
28507 if test "$DFT_LWR_MODEL" = shared || \
28508 test "$DFT_LWR_MODEL" = libtool ; then
28510 # remove dl library from $LIBS
28511 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28515 ### Set up low-level terminfo dependencies for makefiles.
28517 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28518 # do not need libdl
28520 if test "x$with_dlsym" = xyes ; then
28522 # remove dl library from $SHLIB_LIST
28523 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28527 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28528 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28529 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28530 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28532 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28535 if test "$with_ticlib" != no ; then
28537 if test "x$with_ticlib" != xyes ; then
28538 TICS_NAME=$with_ticlib
28539 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28540 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28541 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28542 TICS_LIB_SUFFIX="${with_ticlib}"
28544 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28545 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28546 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28547 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28549 TICS_LDFLAGS="-L${LIB_DIR}"
28550 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28552 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28553 TICS_LDFLAGS="-L${LIB_DIR}"
28554 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28557 if test "$with_termlib" != no ; then
28559 if test "x$with_termlib" != xyes ; then
28560 TINFO_NAME=$with_termlib
28561 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28562 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28563 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28564 TINFO_LIB_SUFFIX="${with_termlib}"
28566 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28567 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28568 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28569 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28572 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28573 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28574 if test "$DFT_LWR_MODEL" = "libtool"; then
28575 TEST_ARGS="${TEST_DEPS}"
28576 TEST_ARG2="${TEST_DEP2}"
28577 TINFO_LDFLAGS="-L${LIB_DIR}"
28578 TINFO_LIBS="$TEST_ARGS"
28579 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28580 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28582 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28583 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28584 if test "x$with_term_driver" != xno ; then
28585 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28586 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28587 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28589 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28590 TINFO_LIBS="$TEST_ARGS"
28592 TINFO_LDFLAGS="-L${LIB_DIR}"
28593 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28596 # the next lines are needed for linking libtic over libncurses
28597 TINFO_NAME=${LIB_NAME}
28598 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28599 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28600 if test "x$with_tic_depends" = xyes ; then
28601 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28603 TICS_LIST="$SHLIB_LIST"
28606 TINFO_LDFLAGS="-L${LIB_DIR}"
28607 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28610 if test "$DFT_LWR_MODEL" = shared ; then
28611 case "$cf_cv_system_name" in
28613 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28619 if test "x$with_dlsym" = xyes ; then
28621 # remove dl library from $TICS_LIST
28622 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28626 if test "$DFT_LWR_MODEL" = "libtool"; then
28631 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28633 case "$DFT_LWR_MODEL" in
28634 (normal|debug|profile)
28636 if test "$GCC" = yes ; then
28637 case "$cf_cv_system_name" in
28638 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28642 (*) # normally, except when broken
28643 LDFLAGS_STATIC=-static
28644 LDFLAGS_SHARED=-dynamic
28648 case "$cf_cv_system_name" in
28649 (aix[4-7]*) # from ld manpage
28650 LDFLAGS_STATIC=-bstatic
28651 LDFLAGS_SHARED=-bdynamic
28653 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28654 # We could also use just "archive" and "shared".
28655 LDFLAGS_STATIC=-Wl,-a,archive_shared
28656 LDFLAGS_SHARED=-Wl,-a,shared_archive
28658 (irix*) # from ld manpage IRIX64
28659 LDFLAGS_STATIC=-Bstatic
28660 LDFLAGS_SHARED=-Bdynamic
28662 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28663 # alternative "-oldstyle_liblookup" (not in cc manpage)
28664 LDFLAGS_STATIC=-noso
28665 LDFLAGS_SHARED=-so_archive
28668 LDFLAGS_STATIC=-Bstatic
28669 LDFLAGS_SHARED=-Bdynamic
28674 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28676 echo "$as_me:28676: checking if linker supports switching between static/dynamic" >&5
28677 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28679 rm -f libconftest.a
28680 cat >conftest.$ac_ext <<EOF
28681 #line 28681 "configure"
28683 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28685 if { (eval echo "$as_me:28685: \"$ac_compile\"") >&5
28686 (eval $ac_compile) 2>&5
28688 echo "$as_me:28688: \$? = $ac_status" >&5
28689 (exit "$ac_status"); } ; then
28690 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28691 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28695 cf_save_LIBS="$LIBS"
28697 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28698 cat >"conftest.$ac_ext" <<_ACEOF
28699 #line 28699 "configure"
28700 #include "confdefs.h"
28702 #line 28702 "configure"
28704 int cf_ldflags_static(FILE *fp);
28710 return cf_ldflags_static(stdin);
28716 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28717 if { (eval echo "$as_me:28717: \"$ac_link\"") >&5
28718 (eval $ac_link) 2>&5
28720 echo "$as_me:28720: \$? = $ac_status" >&5
28721 (exit "$ac_status"); } &&
28722 { ac_try='test -s "conftest$ac_exeext"'
28723 { (eval echo "$as_me:28723: \"$ac_try\"") >&5
28724 (eval $ac_try) 2>&5
28726 echo "$as_me:28726: \$? = $ac_status" >&5
28727 (exit "$ac_status"); }; }; then
28729 # some linkers simply ignore the -dynamic
28730 case x`file "conftest$ac_exeext" 2>/dev/null` in
28732 cf_ldflags_static=no
28735 cf_ldflags_static=yes
28740 echo "$as_me: failed program was:" >&5
28741 cat "conftest.$ac_ext" >&5
28742 cf_ldflags_static=no
28744 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28746 rm -f libconftest.*
28747 LIBS="$cf_save_LIBS"
28749 echo "$as_me:28749: result: $cf_ldflags_static" >&5
28750 echo "${ECHO_T}$cf_ldflags_static" >&6
28752 if test "$cf_ldflags_static" != yes
28765 echo "$as_me:28765: checking where we will install curses.h" >&5
28766 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28769 if test "$with_overwrite" = no && \
28770 { test "x$includedir" = 'x${prefix}/include' || \
28771 test "x$includedir" = "x${prefix}/include"; }
28773 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28775 echo "$as_me:28775: result: ${includedir}${includesubdir}" >&5
28776 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28778 ### Resolve a conflict between normal and wide-curses by forcing applications
28779 ### that will need libutf8 to add it to their configure script.
28780 if test "$with_overwrite" != no ; then
28781 if test "$NCURSES_LIBUTF8" = 1 ; then
28782 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28783 { echo "$as_me:28783: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28784 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28787 WITH_OVERWRITE=$with_overwrite
28789 ### At least on MinGW a shared library build without libtool
28790 ### requires adding the additional libs to the link list.
28791 case "$cf_cv_system_name" in
28792 (*mingw32*|*mingw64*)
28793 if test "$DFT_LWR_MODEL" != "libtool"; then
28794 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28800 ### predefined stuff for the test programs
28802 cat >>confdefs.h <<\EOF
28803 #define HAVE_SLK_COLOR 1
28806 # pkgsrc uses these
28808 echo "$as_me:28808: checking for desired basename for form library" >&5
28809 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28811 # Check whether --with-form-libname or --without-form-libname was given.
28812 if test "${with_form_libname+set}" = set; then
28813 withval="$with_form_libname"
28814 with_lib_basename=$withval
28816 with_lib_basename=form
28818 FORM_NAME="$with_lib_basename"
28820 case "x$FORM_NAME" in
28828 echo "$as_me:28828: result: $FORM_NAME" >&5
28829 echo "${ECHO_T}$FORM_NAME" >&6
28831 echo "$as_me:28831: checking for desired basename for menu library" >&5
28832 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28834 # Check whether --with-menu-libname or --without-menu-libname was given.
28835 if test "${with_menu_libname+set}" = set; then
28836 withval="$with_menu_libname"
28837 with_lib_basename=$withval
28839 with_lib_basename=menu
28841 MENU_NAME="$with_lib_basename"
28843 case "x$MENU_NAME" in
28851 echo "$as_me:28851: result: $MENU_NAME" >&5
28852 echo "${ECHO_T}$MENU_NAME" >&6
28854 echo "$as_me:28854: checking for desired basename for panel library" >&5
28855 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28857 # Check whether --with-panel-libname or --without-panel-libname was given.
28858 if test "${with_panel_libname+set}" = set; then
28859 withval="$with_panel_libname"
28860 with_lib_basename=$withval
28862 with_lib_basename=panel
28864 PANEL_NAME="$with_lib_basename"
28866 case "x$PANEL_NAME" in
28874 echo "$as_me:28874: result: $PANEL_NAME" >&5
28875 echo "${ECHO_T}$PANEL_NAME" >&6
28877 echo "$as_me:28877: checking for desired basename for cxx library" >&5
28878 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28880 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28881 if test "${with_cxx_libname+set}" = set; then
28882 withval="$with_cxx_libname"
28883 with_lib_basename=$withval
28885 with_lib_basename=ncurses++
28887 CXX_NAME="$with_lib_basename"
28889 case "x$CXX_NAME" in
28897 echo "$as_me:28897: result: $CXX_NAME" >&5
28898 echo "${ECHO_T}$CXX_NAME" >&6
28900 ### Construct the list of subdirectories for which we'll customize makefiles
28901 ### with the appropriate compile-rules.
28903 echo "$as_me:28903: checking for src modules" >&5
28904 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28906 # dependencies and linker-arguments for test-programs
28907 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28908 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28909 if test "$DFT_LWR_MODEL" = "libtool"; then
28910 TEST_ARGS="${TEST_DEPS}"
28911 TEST_ARG2="${TEST_DEP2}"
28913 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28914 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28917 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28919 for cf_dir in $modules_to_build
28921 if test -f "$srcdir/$cf_dir/modules" ; then
28923 if test -z "$cf_cv_src_modules"; then
28924 cf_cv_src_modules=$cf_dir
28926 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28929 # Make the ncurses_cfg.h file record the library interface files as
28930 # well. These are header files that are the same name as their
28931 # directory. Ncurses is the only library that does not follow
28933 if test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28935 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28937 cat >>confdefs.h <<EOF
28938 #define HAVE_${cf_have_include}_H 1
28941 cat >>confdefs.h <<EOF
28942 #define HAVE_LIB${cf_have_include} 1
28945 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28947 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28949 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28950 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28951 if test "$DFT_LWR_MODEL" = "libtool"; then
28952 TEST_ARGS="${TEST_DEPS}"
28953 TEST_ARG2="${TEST_DEP2}"
28955 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28956 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28958 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28962 echo "$as_me:28962: result: $cf_cv_src_modules" >&5
28963 echo "${ECHO_T}$cf_cv_src_modules" >&6
28965 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28966 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28969 if test "x$cf_with_manpages" != xno ; then
28970 SRC_SUBDIRS="$SRC_SUBDIRS man"
28972 SRC_SUBDIRS="$SRC_SUBDIRS include"
28973 for cf_dir in $cf_cv_src_modules
28975 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28977 if test "x$cf_with_tests" != "xno" ; then
28978 SRC_SUBDIRS="$SRC_SUBDIRS test"
28980 # always make this, to install the ncurses-config script
28981 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28982 if test "$cf_with_cxx_binding" != no; then
28983 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28984 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28987 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28988 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28991 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28992 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28993 ADA_SUBDIRS="gen src"
28994 if test "x$cf_with_tests" != "xno" ; then
28995 ADA_SUBDIRS="$ADA_SUBDIRS samples"
29000 for cf_dir in $SRC_SUBDIRS
29002 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
29005 if test -n "$ADA_SUBDIRS"; then
29006 for cf_dir in $ADA_SUBDIRS
29008 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
29013 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
29014 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
29015 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
29016 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
29020 for cf_item in $cf_list_models
29024 (libtool) cf_subdir='obj_lo' ;;
29025 (normal) cf_subdir='objects' ;;
29026 (debug) cf_subdir='obj_g' ;;
29027 (profile) cf_subdir='obj_p' ;;
29029 case "$cf_cv_system_name" in
29031 cf_subdir='objects' ;;
29033 cf_subdir='obj_s' ;;
29037 for cf_item2 in $DIRS_TO_MAKE
29039 test "$cf_item2" = "$cf_subdir" && break
29041 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
29043 for cf_dir in $DIRS_TO_MAKE
29045 test ! -d "$cf_dir" && mkdir "$cf_dir"
29048 # symbols that differ when compiling Ada95 by itself.
29049 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
29051 # values to use as strings
29053 cat >>confdefs.h <<EOF
29054 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
29057 cat >>confdefs.h <<EOF
29058 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
29061 ### Define substitutions for header files to avoid name-pollution
29063 if test "x$cf_cv_have_tcgetattr" = xyes ; then
29069 if test "x$ac_cv_header_stdint_h" = xyes ; then
29075 if test "x$ac_cv_header_termio_h" = xyes ; then
29081 if test "x$ac_cv_header_termios_h" = xyes ; then
29087 ################################################################################
29088 test "x$use_database" = xyes && \
29089 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
29091 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
29092 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
29094 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
29095 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
29098 if test "x$cf_with_tests" != xno ; then
29104 ADAHTML_DIR=../../doc/html/ada
29106 # workaround for OS/2 (20151017)
29107 case "$cf_cv_system_name" in
29109 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
29116 # workaround for g++ versus Solaris (20131116)
29117 case "$cf_cv_system_name" in
29119 case "x$CPPFLAGS" in
29120 (*-D_XOPEN_SOURCE_EXTENDED*)
29121 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
29123 echo "${as_me:-configure}:29123: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
29125 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
29126 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
29132 # Help to automatically enable the extended curses features when using either
29133 # the *-config or the ".pc" files by adding defines.
29134 echo "$as_me:29134: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
29135 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
29137 for cf_loop1 in $CPPFLAGS_after_XOPEN
29140 for cf_loop2 in $CPPFLAGS_before_XOPEN
29142 if test "x$cf_loop1" = "x$cf_loop2"
29148 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
29150 echo "$as_me:29150: result: $PKG_CFLAGS" >&5
29151 echo "${ECHO_T}$PKG_CFLAGS" >&6
29153 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
29154 case "x$NCURSES_OSPEED" in
29163 cat >>confdefs.h <<EOF
29164 #define NCURSES_OSPEED_COMPAT $cf_compatible
29167 case "x$cf_cv_typeof_chtype" in
29168 (xshort|xint|xlong)
29169 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
29173 case "x$cf_cv_typeof_mmask_t" in
29174 (xshort|xint|xlong)
29175 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
29179 # substitute into misc/Makefile to suppress
29180 # (un)install.data from the
29181 # (un)install rules.
29182 if test "x$cf_with_db_install" = "xno"; then
29184 MISC_UNINSTALL_DATA=
29186 MISC_INSTALL_DATA=install.data
29187 MISC_UNINSTALL_DATA=uninstall.data
29190 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
29193 MAKE_DATABASE="$MAKE_TERMINFO"
29196 if test -n "$PACKAGE"
29198 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
29200 echo "package: $PACKAGE"
29206 if test -n "$RESULTING_SYMS"
29208 cf_filter_syms=$cf_dft_filter_syms
29209 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_default" 1>&6
29211 echo "${as_me:-configure}:29211: testing will map symbols to ABI=$cf_cv_abi_default ..." 1>&5
29215 if test "x$WILDCARD_SYMS" = xno
29220 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
29222 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
29223 if test "$cf_filter_syms" = yes
29225 RESULTING_SYMS=resulting.map
29228 if test "x$cross_compiling" = xyes ; then
29229 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
29232 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
29236 # This is used for the *-config script and *.pc data files.
29238 echo "$as_me:29238: checking for linker search path" >&5
29239 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
29240 if test "${cf_cv_ld_searchpath+set}" = set; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29244 if test "$cross_compiling" != yes ; then
29246 # GNU binutils' ld does not involve permissions which may stop ldconfig.
29247 cf_pathlist=`${LD:-ld} --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
29249 # The -NX options tell newer versions of Linux ldconfig to not attempt to
29250 # update the cache, which makes it run faster.
29251 test -z "$cf_pathlist" && \
29252 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
29254 test -z "$cf_pathlist" &&
29255 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
29257 # This works with OpenBSD 6.5, which lists only filenames
29258 test -z "$cf_pathlist" &&
29259 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
29261 if test -z "$cf_pathlist"
29263 # dyld default path with MacOS
29264 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
29266 # do this to bypass check
29267 cf_cv_ld_searchpath='$HOME/lib'
29268 cf_pathlist="/usr/local/lib /lib /usr/lib"
29272 if test -z "$cf_pathlist"
29274 # Solaris is "SunOS"
29275 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
29277 case x`(isainfo -b)` in
29279 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
29282 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
29283 cf_pathlist="$cf_pathlist /lib /usr/lib"
29286 { echo "$as_me:29286: WARNING: problem with Solaris architecture" >&5
29287 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
29293 if test -z "$cf_pathlist"
29296 if test x"`uname -s`" = xHP-UX
29298 case x`getconf LONG_BIT` in
29300 cf_pathlist="/usr/lib/hpux64"
29303 cf_pathlist="/usr/lib/hpux32"
29311 # If nothing else, assume it is conventional
29312 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
29314 # Finally, check that this is only directories
29315 for cf_path in $0 $cf_pathlist
29317 if test -d "$cf_path"; then
29318 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29319 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29323 # Ensure that it is nonempty
29324 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29327 echo "$as_me:29327: result: $cf_cv_ld_searchpath" >&5
29328 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29330 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29332 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"
29333 ac_config_commands="$ac_config_commands default"
29334 cat >confcache <<\_ACEOF
29335 # This file is a shell script that caches the results of configure
29336 # tests run on this system so they can be shared between configure
29337 # scripts and configure runs, see configure's option --config-cache.
29338 # It is not useful on other systems. If it contains results you don't
29339 # want to keep, you may remove or edit it.
29341 # config.status only pays attention to the cache file if you give it
29342 # the --recheck option to rerun configure.
29344 # `ac_cv_env_foo' variables (set or unset) will be overriden when
29345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29346 # following values.
29350 # The following way of writing the cache mishandles newlines in values,
29351 # but we know of no workaround that is simple, portable, and efficient.
29352 # So, don't put newlines in cache variables' values.
29353 # Ultrix sh set writes to stderr and can't be redirected directly,
29354 # and sets the high bit in the cache file unless we assign to the vars.
29357 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29359 # `set' does not quote correctly, so add quotes (double-quote
29360 # substitution turns \\\\ into \\, and sed turns \\ into \).
29363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29366 # `set' quotes correctly as required by POSIX, so do not add quotes.
29368 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29377 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29379 if cmp -s $cache_file confcache; then :; else
29380 if test -w $cache_file; then
29381 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29382 cat confcache >$cache_file
29384 echo "not updating unwritable cache $cache_file"
29389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29390 # Let make expand exec_prefix.
29391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29395 # trailing colons and then remove the whole line if VPATH becomes empty
29396 # (actually we leave an empty line to preserve line numbers).
29397 if test "x$srcdir" = x.; then
29398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29399 s/:*\$(srcdir):*/:/;
29400 s/:*\${srcdir}:*/:/;
29402 s/^\([^=]*=[ ]*\):*/\1/;
29408 DEFS=-DHAVE_CONFIG_H
29410 : "${CONFIG_STATUS=./config.status}"
29411 ac_clean_files_save=$ac_clean_files
29412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29413 { echo "$as_me:29413: creating $CONFIG_STATUS" >&5
29414 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29415 cat >"$CONFIG_STATUS" <<_ACEOF
29417 # Generated automatically by configure.
29418 # Run this file to recreate the current configuration.
29419 # Compiler output produced by configure, useful for debugging
29420 # configure, is in config.log if it exists.
29422 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
29425 SHELL=\${CONFIG_SHELL-$SHELL}
29426 ac_cs_invocation="\$0 \$@"
29428 CLICOLOR_FORCE= GREP_OPTIONS=
29429 unset CLICOLOR_FORCE GREP_OPTIONS
29432 cat >>"$CONFIG_STATUS" <<\_ACEOF
29433 # Be Bourne compatible
29434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29437 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29441 # Name of the executable.
29442 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29444 if expr a : '\(a\)' >/dev/null 2>&1; then
29450 rm -f conf$$ conf$$.exe conf$$.file
29452 if ln -s conf$$.file conf$$ 2>/dev/null; then
29453 # We could just check for DJGPP; but this test a) works b) is more generic
29454 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29455 if test -f conf$$.exe; then
29456 # Don't use ln at all; we don't have any links
29461 elif ln conf$$.file conf$$ 2>/dev/null; then
29466 rm -f conf$$ conf$$.exe conf$$.file
29468 as_executable_p="test -f"
29470 # Support unset when possible.
29471 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29478 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29479 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29480 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29481 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29482 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29483 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29484 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29485 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29488 # We need space, tab and new line, in precisely that order.
29494 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29500 # Files that config.status was made for.
29501 if test -n "$ac_config_files"; then
29502 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29505 if test -n "$ac_config_headers"; then
29506 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29509 if test -n "$ac_config_links"; then
29510 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29513 if test -n "$ac_config_commands"; then
29514 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29517 cat >>"$CONFIG_STATUS" <<\EOF
29520 \`$as_me' instantiates files from templates according to the
29521 current configuration.
29523 Usage: $0 [OPTIONS] [FILE]...
29525 -h, --help print this help, then exit
29526 -V, --version print version number, then exit
29527 -d, --debug don't remove temporary files
29528 --recheck update $as_me by reconfiguring in the same conditions
29529 --file=FILE[:TEMPLATE]
29530 instantiate the configuration file FILE
29531 --header=FILE[:TEMPLATE]
29532 instantiate the configuration header FILE
29534 Configuration files:
29537 Configuration headers:
29540 Configuration commands:
29543 Report bugs to <dickey@invisible-island.net>."
29546 cat >>"$CONFIG_STATUS" <<EOF
29549 configured by $0, generated by GNU Autoconf 2.52.20230903,
29550 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29552 Copyright 2003-2022,2023 Thomas E. Dickey
29553 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29554 Free Software Foundation, Inc.
29555 This config.status script is free software; the Free Software Foundation
29556 gives unlimited permission to copy, distribute and modify it."
29561 cat >>"$CONFIG_STATUS" <<\EOF
29562 # If no file are specified by the user, then we need to provide default
29563 # value. By we need to know if files were specified by the user.
29569 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29570 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29572 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29576 *) # This is not an option, so the user has probably given explicit
29578 ac_need_defaults=false;;
29582 # Handling of the options.
29584 cat >>"$CONFIG_STATUS" <<EOF
29585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29586 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29587 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29589 cat >>"$CONFIG_STATUS" <<\EOF
29590 --version | --vers* | -V )
29591 echo "$ac_cs_version"; exit 0 ;;
29593 # Conflict between --help and --header
29594 { { echo "$as_me:29594: error: ambiguous option: $1
29595 Try \`$0 --help' for more information." >&5
29596 echo "$as_me: error: ambiguous option: $1
29597 Try \`$0 --help' for more information." >&2;}
29598 { (exit 1); exit 1; }; };;
29599 --help | --hel | -h )
29600 echo "$ac_cs_usage"; exit 0 ;;
29601 --debug | --d* | -d )
29603 --file | --fil | --fi | --f )
29605 CONFIG_FILES="$CONFIG_FILES $1"
29606 ac_need_defaults=false;;
29607 --header | --heade | --head | --hea )
29609 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29610 ac_need_defaults=false;;
29612 # This is an error.
29613 -*) { { echo "$as_me:29613: error: unrecognized option: $1
29614 Try \`$0 --help' for more information." >&5
29615 echo "$as_me: error: unrecognized option: $1
29616 Try \`$0 --help' for more information." >&2;}
29617 { (exit 1); exit 1; }; } ;;
29619 *) ac_config_targets="$ac_config_targets $1" ;;
29628 ## ----------------------- ##
29629 ## Running config.status. ##
29630 ## ----------------------- ##
29632 This file was extended by $as_me 2.52.20230903, executed with
29633 CONFIG_FILES = $CONFIG_FILES
29634 CONFIG_HEADERS = $CONFIG_HEADERS
29635 CONFIG_LINKS = $CONFIG_LINKS
29636 CONFIG_COMMANDS = $CONFIG_COMMANDS
29637 > "$ac_cs_invocation"
29638 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29643 cat >>"$CONFIG_STATUS" <<EOF
29645 # INIT-COMMANDS section.
29648 ### Special initialization commands, used to pass information from the
29649 ### configuration-run into config.status
29651 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29653 CXX_NAME="$CXX_NAME"
29654 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29655 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29657 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29658 FORM_NAME="$FORM_NAME"
29659 LDCONFIG="$LDCONFIG"
29660 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29661 LIB_NAME="$LIB_NAME"
29662 LIB_PREFIX="$LIB_PREFIX"
29663 LIB_SUBSETS="$LIB_SUBSETS"
29664 LIB_SUFFIX="$LIB_SUFFIX"
29665 LIB_TRACING="$LIB_TRACING"
29667 MAKE_TERMINFO="$MAKE_TERMINFO"
29668 MANPAGE_RENAMES="$MANPAGE_RENAMES"
29669 MENU_NAME="$MENU_NAME"
29670 NCURSES_MAJOR="$NCURSES_MAJOR"
29671 NCURSES_MINOR="$NCURSES_MINOR"
29672 NCURSES_OSPEED="$NCURSES_OSPEED"
29673 NCURSES_PATCH="$NCURSES_PATCH"
29674 PANEL_NAME="$PANEL_NAME"
29675 SRC_SUBDIRS="$SRC_SUBDIRS"
29676 TERMINFO="$TERMINFO"
29677 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29678 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29679 TICS_NAME="$TICS_NAME"
29680 TICS_SUFFIX="$TICS_SUFFIX"
29681 TIC_PATH="$TIC_PATH"
29682 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29683 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29684 TINFO_NAME="$TINFO_NAME"
29685 TINFO_SUFFIX="$TINFO_SUFFIX"
29686 UNALTERED_SYMS="$UNALTERED_SYMS"
29687 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29688 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29689 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29690 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29691 WILDCARD_SYMS="$WILDCARD_SYMS"
29692 WITH_CURSES_H="$with_curses_h"
29693 WITH_ECHO="${enable_echo:=yes}"
29694 WITH_OVERWRITE="$with_overwrite"
29695 cf_LIST_MODELS="$cf_list_models"
29696 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29697 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29698 cf_cv_abi_default="$cf_cv_abi_default"
29699 cf_cv_abi_version="$cf_cv_abi_version"
29700 cf_cv_do_relink="$cf_cv_do_relink"
29701 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29702 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29703 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29704 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29705 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29706 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29707 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29708 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29709 cf_cv_rel_version="$cf_cv_rel_version"
29710 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29711 cf_cv_shared_soname='$cf_cv_shared_soname'
29712 cf_cv_shlib_version="$cf_cv_shlib_version"
29713 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29714 cf_cv_system_name="$cf_cv_system_name"
29715 cf_cv_term_driver="$with_term_driver"
29716 cf_with_ada="$cf_with_ada"
29717 cf_with_cxx_binding="$cf_with_cxx_binding"
29718 cf_with_db_install="$cf_with_db_install"
29719 cf_with_manpages="$cf_with_manpages"
29720 cf_with_tests="$cf_with_tests"
29724 with_shared_cxx="$with_shared_cxx"
29728 cat >>"$CONFIG_STATUS" <<\EOF
29729 for ac_config_target in $ac_config_targets
29731 case "$ac_config_target" in
29732 # Handling of arguments.
29733 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29734 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29735 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29736 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29737 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29738 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
29739 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29740 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29741 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29742 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29743 *) { { echo "$as_me:29743: error: invalid argument: $ac_config_target" >&5
29744 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29745 { (exit 1); exit 1; }; };;
29749 # If the user did not use the arguments to specify the items to instantiate,
29750 # then the envvar interface is used. Set only those that are not.
29751 # We use the long form for the default assignment because of an extremely
29752 # bizarre bug on SunOS 4.1.3.
29753 if "$ac_need_defaults"; then
29754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29759 # Create a temporary directory, and hook for its removal unless debugging.
29762 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29763 trap '{ (exit 1); exit 1; }' 1 2 13 15
29766 # Create a (secure) tmp directory for tmp files.
29769 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29770 test -n "$tmp" && test -d "$tmp"
29773 tmp=$TMPDIR/cs$$-$RANDOM
29774 (umask 077 && mkdir "$tmp")
29777 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29778 { (exit 1); exit 1; }
29783 cat >>"$CONFIG_STATUS" <<EOF
29786 # CONFIG_FILES section.
29789 # No need to generate the scripts if there are no CONFIG_FILES.
29790 # This happens for instance when ./config.status config.h
29791 if test -n "\$CONFIG_FILES"; then
29792 # Protect against being on the right side of a sed subst in config.status.
29793 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29794 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
29795 s,@SHELL@,$SHELL,;t t
29796 s,@exec_prefix@,$exec_prefix,;t t
29797 s,@prefix@,$prefix,;t t
29798 s,@program_transform_name@,$program_transform_name,;t t
29799 s,@bindir@,$bindir,;t t
29800 s,@sbindir@,$sbindir,;t t
29801 s,@libexecdir@,$libexecdir,;t t
29802 s,@datarootdir@,$datarootdir,;t t
29803 s,@datadir@,$datadir,;t t
29804 s,@sysconfdir@,$sysconfdir,;t t
29805 s,@sharedstatedir@,$sharedstatedir,;t t
29806 s,@localstatedir@,$localstatedir,;t t
29807 s,@runstatedir@,$runstatedir,;t t
29808 s,@libdir@,$libdir,;t t
29809 s,@includedir@,$includedir,;t t
29810 s,@oldincludedir@,$oldincludedir,;t t
29811 s,@infodir@,$infodir,;t t
29812 s,@mandir@,$mandir,;t t
29813 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29814 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29815 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29816 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29817 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29818 s,@build_alias@,$build_alias,;t t
29819 s,@host_alias@,$host_alias,;t t
29820 s,@target_alias@,$target_alias,;t t
29821 s,@ECHO_C@,$ECHO_C,;t t
29822 s,@ECHO_N@,$ECHO_N,;t t
29823 s,@ECHO_T@,$ECHO_T,;t t
29824 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29825 s,@DEFS@,$DEFS,;t t
29826 s,@LIBS@,$LIBS,;t t
29827 s,@top_builddir@,$top_builddir,;t t
29828 s,@GREP@,$GREP,;t t
29829 s,@EGREP@,$EGREP,;t t
29830 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29831 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29832 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29833 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29834 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29835 s,@cf_cv_abi_default@,$cf_cv_abi_default,;t t
29836 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29837 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29838 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29839 s,@VERSION@,$VERSION,;t t
29840 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29841 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29842 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29843 s,@PACKAGE@,$PACKAGE,;t t
29844 s,@build@,$build,;t t
29845 s,@build_cpu@,$build_cpu,;t t
29846 s,@build_vendor@,$build_vendor,;t t
29847 s,@build_os@,$build_os,;t t
29848 s,@host@,$host,;t t
29849 s,@host_cpu@,$host_cpu,;t t
29850 s,@host_vendor@,$host_vendor,;t t
29851 s,@host_os@,$host_os,;t t
29852 s,@target@,$target,;t t
29853 s,@target_cpu@,$target_cpu,;t t
29854 s,@target_vendor@,$target_vendor,;t t
29855 s,@target_os@,$target_os,;t t
29856 s,@FGREP@,$FGREP,;t t
29858 s,@CFLAGS@,$CFLAGS,;t t
29859 s,@LDFLAGS@,$LDFLAGS,;t t
29860 s,@CPPFLAGS@,$CPPFLAGS,;t t
29861 s,@ac_ct_CC@,$ac_ct_CC,;t t
29862 s,@EXEEXT@,$EXEEXT,;t t
29863 s,@OBJEXT@,$OBJEXT,;t t
29864 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29866 s,@LDCONFIG@,$LDCONFIG,;t t
29868 s,@CXXFLAGS@,$CXXFLAGS,;t t
29869 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29871 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29872 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29873 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29874 s,@LINT@,$LINT,;t t
29875 s,@LINT_OPTS@,$LINT_OPTS,;t t
29876 s,@LINT_LIBS@,$LINT_LIBS,;t t
29877 s,@LN_S@,$LN_S,;t t
29878 s,@cf_config_suffix@,$cf_config_suffix,;t t
29879 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29880 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29881 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29882 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29883 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29884 s,@SET_MAKE@,$SET_MAKE,;t t
29885 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29886 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29887 s,@CTAGS@,$CTAGS,;t t
29888 s,@ETAGS@,$ETAGS,;t t
29889 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29890 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29891 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29892 s,@RANLIB@,$RANLIB,;t t
29893 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29895 s,@ac_ct_LD@,$ac_ct_LD,;t t
29897 s,@ac_ct_AR@,$ac_ct_AR,;t t
29899 s,@ac_ct_NM@,$ac_ct_NM,;t t
29900 s,@ARFLAGS@,$ARFLAGS,;t t
29901 s,@DESTDIR@,$DESTDIR,;t t
29902 s,@BUILD_CC@,$BUILD_CC,;t t
29903 s,@BUILD_CPP@,$BUILD_CPP,;t t
29904 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29905 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29906 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29907 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29908 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29909 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29910 s,@cf_list_models@,$cf_list_models,;t t
29911 s,@ABI_VERSION@,$ABI_VERSION,;t t
29912 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29913 s,@LIBTOOL@,$LIBTOOL,;t t
29914 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29915 s,@LT_UNDEF@,$LT_UNDEF,;t t
29916 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29917 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29918 s,@LIB_CREATE@,$LIB_CREATE,;t t
29919 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29920 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29921 s,@LIB_PREP@,$LIB_PREP,;t t
29922 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29923 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29924 s,@LIB_LINK@,$LIB_LINK,;t t
29925 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29926 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29927 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29928 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29929 s,@TICS_NAME@,$TICS_NAME,;t t
29930 s,@TINFO_NAME@,$TINFO_NAME,;t t
29931 s,@LIB_NAME@,$LIB_NAME,;t t
29932 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29933 s,@CC_G_OPT@,$CC_G_OPT,;t t
29934 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29935 s,@LD_MODEL@,$LD_MODEL,;t t
29936 s,@shlibdir@,$shlibdir,;t t
29937 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29938 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29939 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29940 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29941 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29942 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29943 s,@LINK_PROGS@,$LINK_PROGS,;t t
29944 s,@LINK_TESTS@,$LINK_TESTS,;t t
29945 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29946 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29947 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29948 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29949 s,@RPATH_LIST@,$RPATH_LIST,;t t
29950 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29951 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29952 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29953 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29954 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29955 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29956 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29957 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29958 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29960 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29961 s,@INFOCMP@,$INFOCMP,;t t
29962 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29963 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29964 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29965 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29966 s,@XTERM_KBS@,$XTERM_KBS,;t t
29967 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29968 s,@TERMINFO@,$TERMINFO,;t t
29969 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29970 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29971 s,@TERMPATH@,$TERMPATH,;t t
29972 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29973 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29974 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29975 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29976 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29977 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29978 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29979 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29980 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29981 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29982 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29983 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29984 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29985 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29986 s,@RGB_PATH@,$RGB_PATH,;t t
29987 s,@no_x11_rgb@,$no_x11_rgb,;t t
29988 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29989 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29990 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29991 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29992 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29993 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29994 s,@cf_manpage_format@,$cf_manpage_format,;t t
29995 s,@cf_manpage_inboth@,$cf_manpage_inboth,;t t
29996 s,@cf_manpage_so_strip@,$cf_manpage_so_strip,;t t
29997 s,@cf_manpage_compress@,$cf_manpage_compress,;t t
29998 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29999 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
30000 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
30001 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
30002 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
30003 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
30004 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
30005 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
30006 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
30007 s,@PTHREAD@,$PTHREAD,;t t
30008 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
30009 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
30010 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
30011 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
30012 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
30013 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
30014 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
30015 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
30016 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
30017 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
30018 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
30019 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
30020 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
30021 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
30022 s,@ECHO_LT@,$ECHO_LT,;t t
30023 s,@ECHO_LD@,$ECHO_LD,;t t
30024 s,@RULE_CC@,$RULE_CC,;t t
30025 s,@SHOW_CC@,$SHOW_CC,;t t
30026 s,@ECHO_CC@,$ECHO_CC,;t t
30027 s,@ECHO_LINK@,$ECHO_LINK,;t t
30028 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
30029 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
30030 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
30031 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
30032 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
30033 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
30034 s,@ADAFLAGS@,$ADAFLAGS,;t t
30035 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
30036 s,@ADA_TRACE@,$ADA_TRACE,;t t
30037 s,@MATH_LIB@,$MATH_LIB,;t t
30038 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
30039 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
30040 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
30041 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
30042 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
30043 s,@TEST_LIBS@,$TEST_LIBS,;t t
30044 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
30045 s,@CXXCPP@,$CXXCPP,;t t
30046 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
30047 s,@CXX_AR@,$CXX_AR,;t t
30048 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
30049 s,@CXXLIBS@,$CXXLIBS,;t t
30050 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
30051 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
30052 s,@M4_exists@,$M4_exists,;t t
30053 s,@cf_ada_make@,$cf_ada_make,;t t
30054 s,@cf_ada_config@,$cf_ada_config,;t t
30055 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
30056 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
30057 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
30058 s,@cf_compile_generics@,$cf_compile_generics,;t t
30059 s,@cf_generic_objects@,$cf_generic_objects,;t t
30060 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
30061 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
30062 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
30063 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
30064 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
30065 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
30066 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
30067 s,@cf_ada_package@,$cf_ada_package,;t t
30068 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
30069 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
30070 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
30071 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
30072 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
30073 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
30074 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
30075 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
30076 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
30077 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
30078 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
30079 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
30080 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
30081 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
30082 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
30083 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
30084 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
30085 s,@TICS_LIBS@,$TICS_LIBS,;t t
30086 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
30087 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
30088 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
30089 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
30090 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
30091 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
30092 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
30093 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
30094 s,@includesubdir@,$includesubdir,;t t
30095 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
30096 s,@TICS_LIST@,$TICS_LIST,;t t
30097 s,@TINFO_LIST@,$TINFO_LIST,;t t
30098 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
30099 s,@FORM_NAME@,$FORM_NAME,;t t
30100 s,@MENU_NAME@,$MENU_NAME,;t t
30101 s,@PANEL_NAME@,$PANEL_NAME,;t t
30102 s,@CXX_NAME@,$CXX_NAME,;t t
30103 s,@TEST_ARGS@,$TEST_ARGS,;t t
30104 s,@TEST_DEPS@,$TEST_DEPS,;t t
30105 s,@TEST_ARG2@,$TEST_ARG2,;t t
30106 s,@TEST_DEP2@,$TEST_DEP2,;t t
30107 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
30108 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
30109 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
30110 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
30111 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
30112 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
30113 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
30114 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
30115 s,@cross_compiling@,$cross_compiling,;t t
30116 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
30117 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
30118 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
30119 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
30120 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
30121 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
30122 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
30123 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
30124 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
30125 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
30126 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
30127 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
30132 cat >>"$CONFIG_STATUS" <<\EOF
30133 # Split the substitutions into bite-sized pieces for seds with
30134 # small command number limits, like on Digital OSF/1 and HP-UX.
30135 ac_max_sed_lines=48
30136 ac_sed_frag=1 # Number of current file.
30137 ac_beg=1 # First line for current file.
30138 ac_end=$ac_max_sed_lines # Line after last line for current file.
30141 while "$ac_more_lines"; do
30142 if test "$ac_beg" -gt 1; then
30143 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30145 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30147 if test ! -s "$tmp"/subs.frag; then
30148 ac_more_lines=false
30150 # The purpose of the label and of the branching condition is to
30151 # speed up the sed processing (if there are no `@' at all, there
30152 # is no need to browse any of the substitutions).
30153 # These are the two extra sed commands mentioned above.
30155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
30156 # It is possible to make a multiline substitution using escaped newlines.
30157 # Ensure that we do not split the substitution between script fragments.
30159 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
30160 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
30161 if test -s "$tmp"/subs.next; then
30162 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
30163 if test ! -s "$tmp"/subs.edit; then
30164 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
30165 if test ! -s "$tmp"/subs.edit; then
30166 if test "$ac_beg" -gt 1; then
30167 ac_end=`expr "$ac_end" - 1`
30174 if test -z "$ac_sed_cmds"; then
30175 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30177 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30179 ac_sed_frag=`expr "$ac_sed_frag" + 1`
30181 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
30184 if test -z "$ac_sed_cmds"; then
30187 fi # test -n "$CONFIG_FILES"
30190 cat >>"$CONFIG_STATUS" <<\EOF
30191 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30192 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30194 - | *:- | *:-:* ) # input from stdin
30196 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30197 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30198 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30199 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30200 * ) ac_file_in=$ac_file.in ;;
30203 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30204 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30205 X"$ac_file" : 'X\(//\)[^/]' \| \
30206 X"$ac_file" : 'X\(//\)$' \| \
30207 X"$ac_file" : 'X\(/\)' \| \
30208 . : '\(.\)' 2>/dev/null ||
30210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30212 /^X\(\/\/\)$/{ s//\1/; q; }
30213 /^X\(\/\).*/{ s//\1/; q; }
30215 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30216 { case "$ac_dir" in
30217 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30221 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30222 case $as_mkdir_dir in
30223 # Skip DOS drivespec
30224 ?:) as_incr_dir=$as_mkdir_dir ;;
30226 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30227 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30232 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
30233 # A "../" for each directory in $ac_dir_suffix.
30234 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
30236 ac_dir_suffix= ac_dots=
30241 if test -z "$ac_dots"; then
30244 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
30246 [\\/]* | ?:[\\/]* )
30247 ac_srcdir="$srcdir$ac_dir_suffix";
30248 ac_top_srcdir="$srcdir" ;;
30249 *) # Relative path.
30250 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
30251 ac_top_srcdir="$ac_dots$srcdir" ;;
30255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30256 *) ac_INSTALL=$ac_dots$INSTALL ;;
30259 if test x"$ac_file" != x-; then
30260 { echo "$as_me:30260: creating $ac_file" >&5
30261 echo "$as_me: creating $ac_file" >&6;}
30264 # Let's still pretend it is `configure' which instantiates (i.e., don't
30265 # use $as_me), people would be surprised to read:
30266 # /* config.h. Generated automatically by config.status. */
30267 configure_input="Generated automatically from `echo $ac_file_in |
30268 sed 's,.*/,,'` by configure."
30270 # First look for the input files in the build tree, otherwise in the
30272 ac_file_inputs=`IFS=:
30273 for f in $ac_file_in; do
30275 -) echo "$tmp"/stdin ;;
30277 # Absolute (can't be DOS-style, as IFS=:)
30278 test -f "$f" || { { echo "$as_me:30278: error: cannot find input file: $f" >&5
30279 echo "$as_me: error: cannot find input file: $f" >&2;}
30280 { (exit 1); exit 1; }; }
30283 if test -f "$f"; then
30286 elif test -f "$srcdir/$f"; then
30291 { { echo "$as_me:30291: error: cannot find input file: $f" >&5
30292 echo "$as_me: error: cannot find input file: $f" >&2;}
30293 { (exit 1); exit 1; }; }
30296 done` || { (exit 1); exit 1; }
30298 cat >>"$CONFIG_STATUS" <<\EOF
30299 ac_warn_datarootdir=no
30300 if test x"$ac_file" != x-; then
30301 for ac_item in $ac_file_inputs
30303 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
30304 if test -n "$ac_seen"; then
30305 ac_used=`grep '@datarootdir@' "$ac_item"`
30306 if test -z "$ac_used"; then
30307 { echo "$as_me:30307: WARNING: datarootdir was used implicitly but not set:
30309 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
30311 ac_warn_datarootdir=yes
30314 ac_seen=`grep '${datarootdir}' "$ac_item"`
30315 if test -n "$ac_seen"; then
30316 { echo "$as_me:30316: WARNING: datarootdir was used explicitly but not set:
30318 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
30320 ac_warn_datarootdir=yes
30325 if test "x$ac_warn_datarootdir" = xyes; then
30326 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30330 cat >>"$CONFIG_STATUS" <<EOF
30334 cat >>"$CONFIG_STATUS" <<\EOF
30336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30337 s,@configure_input@,$configure_input,;t t
30338 s,@srcdir@,$ac_srcdir,;t t
30339 s,@top_srcdir@,$ac_top_srcdir,;t t
30340 s,@INSTALL@,$ac_INSTALL,;t t
30341 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
30344 test -n "${FGREP}" || FGREP="grep -F"
30345 test -n "${EGREP}" || EGREP="grep -E"
30346 cat >>"$CONFIG_STATUS" <<EOF
30347 test -n "\${FGREP}" || FGREP="$FGREP"
30348 test -n "\${EGREP}" || EGREP="$EGREP"
30350 cat >>"$CONFIG_STATUS" <<\EOF
30351 if test x"$ac_file" != x-; then
30352 cp "$tmp/out" "$ac_file"
30354 for ac_name in prefix exec_prefix datarootdir
30356 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
30357 if test -n "$ac_seen"; then
30358 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30359 if test -z "$ac_init"; then
30360 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
30361 { echo "$as_me:30361: WARNING: Variable $ac_name is used but was not set:
30363 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30368 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
30369 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
30370 if test -s "$tmp"/out; then
30371 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
30372 { echo "$as_me:30372: WARNING: Some variables may not be substituted:
30374 echo "$as_me: WARNING: Some variables may not be substituted:
30384 cat >>"$CONFIG_STATUS" <<\EOF
30387 # CONFIG_HEADER section.
30390 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30391 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30393 # ac_d sets the value in "#define NAME VALUE" lines.
30394 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30395 ac_dB='[ ].*$,\1#\2'
30398 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30399 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30400 ac_iB='\([ ]\),\1#\2define\3'
30403 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30404 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30405 ac_uB='$,\1#\2define\3'
30409 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30410 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30412 - | *:- | *:-:* ) # input from stdin
30414 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30416 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30417 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30418 * ) ac_file_in=$ac_file.in ;;
30421 test x"$ac_file" != x- && { echo "$as_me:30421: creating $ac_file" >&5
30422 echo "$as_me: creating $ac_file" >&6;}
30424 # First look for the input files in the build tree, otherwise in the
30426 ac_file_inputs=`IFS=:
30427 for f in $ac_file_in; do
30429 -) echo "$tmp"/stdin ;;
30431 # Absolute (can't be DOS-style, as IFS=:)
30432 test -f "$f" || { { echo "$as_me:30432: error: cannot find input file: $f" >&5
30433 echo "$as_me: error: cannot find input file: $f" >&2;}
30434 { (exit 1); exit 1; }; }
30437 if test -f "$f"; then
30440 elif test -f "$srcdir/$f"; then
30445 { { echo "$as_me:30445: error: cannot find input file: $f" >&5
30446 echo "$as_me: error: cannot find input file: $f" >&2;}
30447 { (exit 1); exit 1; }; }
30450 done` || { (exit 1); exit 1; }
30451 # Remove the trailing spaces.
30452 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
30456 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30457 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30458 # be either 'cat' or 'sort'.
30459 cat confdefs.h | uniq >conftest.vals
30461 # Break up conftest.vals because some shells have a limit on
30462 # the size of here documents, and old seds have small limits too.
30464 rm -f conftest.tail
30465 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30466 while grep . conftest.vals >/dev/null
30468 # Write chunks of a limited-size here document to conftest.frag.
30469 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30470 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30471 echo 'CEOF' >> "$CONFIG_STATUS"
30472 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30473 rm -f conftest.vals
30474 mv conftest.tail conftest.vals
30476 rm -f conftest.vals
30478 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30480 echo ' cat >> conftest.edit <<CEOF
30481 /@DEFS@/r conftest.frag
30484 sed -f conftest.edit "$tmp"/in > "$tmp"/out
30486 mv "$tmp"/out "$tmp"/in
30487 rm -f conftest.edit conftest.frag
30488 ' >> "$CONFIG_STATUS"
30490 cat >>"$CONFIG_STATUS" <<\EOF
30491 # Let's still pretend it is `configure' which instantiates (i.e., don't
30492 # use $as_me), people would be surprised to read:
30493 # /* config.h. Generated automatically by config.status. */
30494 if test x"$ac_file" = x-; then
30495 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
30497 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
30499 cat "$tmp"/in >>"$tmp"/config.h
30501 if test x"$ac_file" != x-; then
30502 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30503 { echo "$as_me:30503: $ac_file is unchanged" >&5
30504 echo "$as_me: $ac_file is unchanged" >&6;}
30506 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30507 X"$ac_file" : 'X\(//\)[^/]' \| \
30508 X"$ac_file" : 'X\(//\)$' \| \
30509 X"$ac_file" : 'X\(/\)' \| \
30510 . : '\(.\)' 2>/dev/null ||
30512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30514 /^X\(\/\/\)$/{ s//\1/; q; }
30515 /^X\(\/\).*/{ s//\1/; q; }
30517 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30518 { case "$ac_dir" in
30519 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30523 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30524 case $as_mkdir_dir in
30525 # Skip DOS drivespec
30526 ?:) as_incr_dir=$as_mkdir_dir ;;
30528 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30529 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30536 mv "$tmp/config.h" "$ac_file"
30539 cat "$tmp"/config.h
30540 rm -f "$tmp"/config.h
30544 cat >>"$CONFIG_STATUS" <<\EOF
30546 # CONFIG_COMMANDS section.
30548 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30549 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30550 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30554 if test "x$cf_with_tests" != xno ; then
30558 if test ! -d "$srcdir/$cf_dir" ; then
30560 elif test -f "$srcdir/$cf_dir/programs" ; then
30561 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30567 cf_prefix=$LIB_PREFIX
30569 case "$cf_cv_shlib_version" in
30570 (cygdll|msysdll|mingw|msvcdll)
30571 TINFO_NAME=$TINFO_ARG_SUFFIX
30576 if test -n "$TINFO_SUFFIX" ; then
30577 case "$TINFO_SUFFIX" in
30579 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30580 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30583 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30584 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30587 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30588 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30593 for cf_dir in $SRC_SUBDIRS
30595 if test ! -d "$srcdir/$cf_dir" ; then
30597 elif test -f "$srcdir/$cf_dir/modules" ; then
30602 if test -n "${cf_cv_abi_default}" && test "x${cf_cv_abi_default}" != "x5"
30604 cf_awk_program="$cf_awk_program\
30605 /deprecated in ABI${cf_cv_abi_default}/ { next; }\
30606 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_default}\"); }\
30610 if test "x$WILDCARD_SYMS" = xno
30612 cf_awk_program="$cf_awk_program\
30613 /[ ]_\\*;/ { skip=1; next; }\
30617 if test "x$cf_awk_program" != "x"
30619 cat >>$cf_dir/Makefile <<CF_EOF
30621 # Generated by CF_LIB_RULES
30622 resulting.map: $UNALTERED_SYMS
30623 $AWK 'BEGIN { skip = 1; last=""; } \
30625 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30626 skip = 0; last = \$\$0; } \
30627 END { print last; }' < "$UNALTERED_SYMS" >\$@
30630 rm -f resulting.map
30634 for cf_item in $cf_LIST_MODELS
30640 cf_depsuf=$cf_suffix
30643 case "$cf_cv_system_name" in
30651 cf_depsuf=$cf_suffix
30654 case "$cf_cv_system_name" in
30662 cf_depsuf=$cf_suffix
30665 case "$cf_cv_system_name" in
30668 cf_depsuf=$cf_suffix
30672 cf_depsuf='.dll.lib'
30674 (cygwin*|msys*|mingw*)
30680 cf_depsuf=$cf_suffix
30686 cf_depsuf=$cf_suffix
30690 cf_depsuf=$cf_suffix
30696 cf_depsuf=$cf_suffix
30709 cf_depsuf=$cf_suffix
30712 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30714 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30715 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30718 if test "$cf_dir" = "c++"
30721 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30723 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30727 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30729 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30732 test -z "$cf_libname" && cf_libname="$cf_dir"
30733 if test "$cf_item" = shared ; then
30734 if test -n "${LIB_SUFFIX}"
30736 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30738 cf_shared_suffix="$cf_suffix"
30740 if test "$cf_cv_do_symlinks" = yes ; then
30743 case "$cf_cv_shlib_version" in
30745 cf_version_name=REL_VERSION
30748 cf_version_name=ABI_VERSION
30752 if test -n "$cf_version_name"
30754 case "$cf_cv_system_name" in
30757 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30760 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30764 if test -n "${USE_LIB_SUFFIX}"
30766 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30768 cf_shared_suffix="$cf_suffix"
30771 # cygwin needs import library, and has unique naming convention
30772 # use autodetected ${cf_prefix} for import lib and static lib, but
30773 # use 'cyg' prefix for shared lib.
30774 case "$cf_cv_shlib_version" in
30776 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30777 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30780 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30781 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30784 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30785 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30788 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30789 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30795 if test -n "$cf_add_lib"
30797 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30801 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30802 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30805 if test "$cf_dir" = ncurses ; then
30806 cf_subsets="$LIB_SUBSETS"
30807 cf_r_parts="$cf_subsets"
30808 cf_liblist="$Libs_To_Make"
30810 while test -n "$cf_r_parts"
30812 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30813 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30814 if test "$cf_l_parts" != "$cf_r_parts" ; then
30816 case "$cf_l_parts" in
30818 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30821 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30827 if test -n "$cf_add_lib"; then
30828 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30835 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30838 if test "$cf_dir" = c++; then
30839 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30841 for cf_item in $Libs_To_Make
30847 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30850 for cf_test in $cf_list
30852 if test "$cf_test" = "$cf_item"
30854 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30859 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30861 Libs_To_Make="$cf_list"
30865 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30866 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30867 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30868 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30870 $AWK -f "$srcdir/mk-0th.awk" \
30871 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30872 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30874 for cf_subset in $cf_subsets
30877 for cf_item in $cf_LIST_MODELS
30880 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30882 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30885 if test "$CXX_MODEL" = SHARED; then
30886 case "$cf_cv_shlib_version" in
30887 (cygdll|msysdll|mingw|msvcdll)
30888 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30890 echo "${as_me:-configure}:30890: testing overriding CXX_MODEL to SHARED ..." 1>&5
30892 with_shared_cxx=yes
30895 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30903 cf_depsuf=$cf_suffix
30906 case "$cf_cv_system_name" in
30914 cf_depsuf=$cf_suffix
30917 case "$cf_cv_system_name" in
30925 cf_depsuf=$cf_suffix
30928 case "$cf_cv_system_name" in
30931 cf_depsuf=$cf_suffix
30935 cf_depsuf='.dll.lib'
30937 (cygwin*|msys*|mingw*)
30943 cf_depsuf=$cf_suffix
30949 cf_depsuf=$cf_suffix
30953 cf_depsuf=$cf_suffix
30959 cf_depsuf=$cf_suffix
30972 cf_depsuf=$cf_suffix
30975 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30977 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30978 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30982 (libtool) cf_subdir='obj_lo' ;;
30983 (normal) cf_subdir='objects' ;;
30984 (debug) cf_subdir='obj_g' ;;
30985 (profile) cf_subdir='obj_p' ;;
30987 case "$cf_cv_system_name" in
30989 cf_subdir='objects' ;;
30991 cf_subdir='obj_s' ;;
30995 # Test for case where we build libtinfo with a different name.
30997 if test "$cf_dir" = ncurses ; then
30998 case "$cf_subset" in
31000 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31003 cf_libname=$TINFO_LIB_SUFFIX
31006 cf_libname=$TICS_LIB_SUFFIX
31009 elif test "$cf_dir" = c++ ; then
31011 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31013 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31015 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31018 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31020 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31022 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31024 if test -n "${USE_ARG_SUFFIX}" ; then
31025 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
31026 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
31029 # These dependencies really are for development, not
31030 # builds, but they are useful in porting, too.
31031 cf_depend="../include/ncurses_cfg.h"
31032 if test "$srcdir" = "."; then
31035 cf_reldir="\${srcdir}"
31038 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
31039 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
31040 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
31041 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
31045 old_cf_suffix="$cf_suffix"
31046 if test "$cf_cv_shlib_version_infix" = yes ; then
31047 if test -n "$USE_LIB_SUFFIX" ; then
31048 case "$USE_LIB_SUFFIX" in
31050 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
31051 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
31052 cf_dir_suffix=tw$EXTRA_SUFFIX
31055 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
31056 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
31057 cf_dir_suffix=t$EXTRA_SUFFIX
31060 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
31061 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
31062 cf_dir_suffix=w$EXTRA_SUFFIX
31065 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
31066 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
31067 cf_dir_suffix=$EXTRA_SUFFIX
31073 $AWK -f "$srcdir/mk-1st.awk" \
31074 name=${cf_libname}${cf_dir_suffix} \
31075 traces=$LIB_TRACING \
31077 CXX_MODEL=$CXX_MODEL \
31078 LIB_SUFFIX=$LIB_SUFFIX \
31079 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
31080 make_phony="${cf_cv_make_PHONY:-no}" \
31082 prefix=$cf_prefix \
31083 suffix=$cf_suffix \
31084 subset=$cf_subset \
31085 driver=$cf_cv_term_driver \
31087 TermlibRoot=$TINFO_NAME \
31088 TermlibSuffix=$TINFO_SUFFIX \
31089 ShlibVer=$cf_cv_shlib_version \
31090 ShlibVerInfix=$cf_cv_shlib_version_infix \
31091 ReLink=${cf_cv_do_relink:-no} \
31092 ReRanlib=${cf_cv_do_reranlib:-yes} \
31093 DoLinks=$cf_cv_do_symlinks \
31094 rmSoLocs=$cf_cv_rm_so_locs \
31095 ldconfig="$LDCONFIG" \
31096 overwrite=$WITH_OVERWRITE \
31097 depend="$cf_depend" \
31099 libtool_version="$LIBTOOL_VERSION" \
31100 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31102 cf_suffix="$old_cf_suffix"
31104 for cf_subdir2 in $cf_subdirs lib
31106 test "$cf_subdir" = "$cf_subdir2" && break
31108 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
31109 $AWK -f "$srcdir/mk-2nd.awk" \
31111 traces=$LIB_TRACING \
31114 subset=$cf_subset \
31117 crenames=$cf_cv_prog_CC_c_o \
31118 cxxrenames=$cf_cv_prog_CXX_c_o \
31119 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31120 cf_subdirs="$cf_subdirs $cf_subdir"
31125 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
31129 echo '# generated by CF_LIB_RULES' >> Makefile
31131 if test "x$cf_cv_make_PHONY" = xyes ; then
31132 cat >> Makefile <<-CF_EOF
31136 .PHONY : install.includes
31137 .PHONY : uninstall.includes
31138 .PHONY : install.libs
31139 .PHONY : uninstall.libs
31143 for cf_dir in $SRC_SUBDIRS
31145 if test ! -d "$srcdir/$cf_dir" ; then
31149 if test -f "$cf_dir/Makefile" ; then
31152 echo 'libs \' >> Makefile
31153 echo 'install.libs \' >> Makefile
31154 echo 'uninstall.libs ::' >> Makefile
31155 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
31160 if test -f "$srcdir/$cf_dir/modules" ; then
31162 if test "x$cf_cv_make_PHONY" = xyes ; then
31163 cat >> Makefile <<-CF_EOF
31165 .PHONY : install.$cf_dir
31166 .PHONY : uninstall.$cf_dir
31171 if test -f "$srcdir/$cf_dir/headers" ; then
31172 cat >> Makefile <<CF_EOF
31173 install.includes \\
31174 uninstall.includes \\
31178 cat >> Makefile <<CF_EOF
31185 uninstall.$cf_dir ::
31186 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31188 elif test -f "$srcdir/$cf_dir/headers" ; then
31189 cat >> Makefile <<CF_EOF
31194 install.includes \\
31195 uninstall.includes ::
31196 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31201 if test "x$cf_cv_make_PHONY" = xyes ; then
31202 cat >> Makefile <<-CF_EOF
31204 .PHONY : install.data
31205 .PHONY : uninstall.data
31209 if test "x$cf_with_db_install" = xyes; then
31210 cat >> Makefile <<CF_EOF
31212 install.libs uninstall.libs \\
31213 install.data uninstall.data ::
31214 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31217 cat >> Makefile <<CF_EOF
31219 install.libs uninstall.libs ::
31220 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31224 if test "x$cf_with_manpages" = xyes; then
31226 if test "x$cf_cv_make_PHONY" = xyes ; then
31227 cat >> Makefile <<-CF_EOF
31229 .PHONY : install.man
31230 .PHONY : uninstall.man
31234 cat >> Makefile <<CF_EOF
31238 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
31242 cat >> Makefile <<CF_EOF
31245 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
31246 rm -f headers.sh headers.sed mk_shared_lib.sh
31247 rm -f edit_man.* man_alias.* *.tmp
31248 rm -rf \${DIRS_TO_MAKE}
31251 rm -f headers.sed headers.sh
31253 echo creating headers.sh
31254 cat >headers.sh <<CF_EOF
31256 # This shell script is generated by the 'configure' script. It is invoked in a
31257 # subdirectory of the build tree. It generates a sed-script in the parent
31258 # directory that is used to adjust includes for header files that reside in a
31259 # subdirectory of /usr/include, etc.
31261 while test \$# != 3
31263 PRG="\$PRG \$1"; shift
31268 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
31269 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
31270 echo installing \$SRC in \$DST
31273 if test "$WITH_CURSES_H" = yes; then
31274 cat >>headers.sh <<CF_EOF
31277 END=\`basename \$DST\`
31278 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31280 NAME=\`basename \$i\`
31281 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31285 echo "" >> \$TMPSED
31291 cat >>headers.sh <<CF_EOF
31294 END=\`basename \$DST\`
31295 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31297 NAME=\`basename \$i\`
31298 if test "\$NAME" = "curses.h"
31300 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31303 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31307 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31312 cat >>headers.sh <<CF_EOF
31314 sed -f \$TMPSED \$SRC > \$TMPSRC
31315 NAME=\`basename \$SRC\`
31317 if test "$WITH_CURSES_H" != yes; then
31318 cat >>headers.sh <<CF_EOF
31319 test "\$NAME" = "curses.h" && NAME=ncurses.h
31322 cat >>headers.sh <<CF_EOF
31323 # Just in case someone gzip'd manpages, remove the conflicting copy.
31324 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31326 eval \$PRG \$TMPSRC \$DST/\$NAME
31327 rm -f \$TMPSRC \$TMPSED
31330 chmod 0755 headers.sh
31332 for cf_dir in $SRC_SUBDIRS
31334 if test ! -d "$srcdir/$cf_dir" ; then
31338 if test -f "$srcdir/$cf_dir/headers" ; then
31339 $AWK -f "$srcdir/mk-hdr.awk" \
31340 subset="$LIB_SUBSETS" \
31341 compat="$WITH_CURSES_H" \
31342 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31345 if test -f "$srcdir/$cf_dir/modules" ; then
31346 if test "$cf_dir" != "c++" ; then
31347 if test "x$cf_cv_make_PHONY" = xyes ; then
31348 cat >> $cf_dir/Makefile <<-CF_EOF
31354 cat >>$cf_dir/Makefile <<"CF_EOF"
31355 depend : ${AUTO_SRC}
31356 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31358 # DO NOT DELETE THIS LINE -- make depend depends on it.
31364 if test "$MANPAGE_RENAMES" != no ; then
31365 # Construct a sed-script to perform renaming within man-pages
31366 test -n "$verbose" && echo "creating edit_man.sed"
31367 test ! -d man && mkdir man
31368 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
31371 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31372 if test -z "$USE_OLD_MAKERULES" ; then
31373 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31381 cat >>"$CONFIG_STATUS" <<\EOF
31383 { (exit 0); exit 0; }
31385 chmod +x "$CONFIG_STATUS"
31386 ac_clean_files=$ac_clean_files_save
31388 # configure is writing to config.log, and then calls config.status.
31389 # config.status does its own redirection, appending to config.log.
31390 # Unfortunately, on DOS this fails, as config.log is still kept open
31391 # by configure, so config.status won't be able to write to it; its
31392 # output is simply discarded. So we exec the FD to /dev/null,
31393 # effectively closing config.log, so it can be properly (re)opened and
31394 # appended to by config.status. When coming back to configure, we
31395 # need to make the FD available again.
31396 if test "$no_create" != yes; then
31399 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31402 # would make configure fail if this is the last instruction.
31403 "$ac_cs_success" || { (exit 1); exit 1; }
31405 ${MAKE:-make} preinstall