2 # From configure.in Revision: 1.765 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20230114.
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-colorfgbg compile-in experimental $COLORFGBG code
845 --enable-fvisibility compile with -fvisibility=hidden
846 --enable-interop compile-in interop bindings
847 --enable-safe-sprintf compile with experimental safe-sprintf code
848 --disable-scroll-hints compile without scroll-hints code
849 --enable-wgetch-events compile with wgetch-events code
850 --enable-exp-win32 compile with experimental-Windows driver
851 Testing/development Options:
852 --disable-echo do not display "compiling" commands
853 --disable-stripping do not strip (debug info) installed executables
854 --with-strip-program=XX specify program to use when stripping in install
855 --enable-warnings test: turn on gcc compiler warnings
856 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
857 --enable-string-hacks work around bogus compiler/loader warnings
858 --enable-assertions test: turn on generation of assertion code
859 --with-dmalloc test: use Gray Watson's dmalloc library
860 --with-dbmalloc test: use Conor Cahill's dbmalloc library
861 --with-valgrind test: use valgrind
862 --disable-leaks test: free permanent memory, analyze leaks
863 --enable-expanded test: generate functions for certain macros
864 --disable-macros test: use functions rather than macros
865 --with-trace test: add trace() function to all models of ncurses
866 --disable-gnat-projects test: disable GNAT projects even if usable
868 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
869 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
870 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
871 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
872 --with-ada-libname=XXX override default Ada library-name
873 --with-form-libname=XXX override form basename of library
874 --with-menu-libname=XXX override menu basename of library
875 --with-panel-libname=XXX override panel basename of library
876 --with-cxx-libname=XXX override ncurses++ basename of library
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
886 CXX C++ compiler command
887 CXXFLAGS C++ compiler flags
888 CXXCPP C++ preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
901 # A "../" for each directory in /$ac_subdir.
902 ac_dots=`echo "$ac_subdir" |
903 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
906 .) # No --srcdir option. We are building in place.
907 ac_sub_srcdir="$srcdir" ;;
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
911 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f "$ac_sub_srcdir/configure.gnu"; then
917 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
918 elif test -f "$ac_sub_srcdir/configure"; then
920 $SHELL "$ac_sub_srcdir/configure" --help=recursive
921 elif test -f "$ac_sub_srcdir/configure.ac" ||
922 test -f "$ac_sub_srcdir/configure.in"; then
924 "$ac_configure" --help
926 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
932 test -n "$ac_init_help" && exit 0
933 if "$ac_init_version"; then
936 Copyright 2003-2022,2023 Thomas E. Dickey
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.52.20230114. Invocation command line was
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
990 # Keep a trace of the command line.
991 # Strip out --no-create and --no-recursion so they do not pile up.
992 # Also quote any args containing shell meta-characters.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c) ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1004 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1009 # Get rid of the leading space.
1012 # When interrupted or exit'd, cleanup temporary files, and complete
1013 # config.log. We remove comments because anyway the quotes in there
1014 # would cause problems or look ugly.
1015 trap 'exit_status=$?
1016 # Save into config.log some information that might help in debugging.
1018 echo "## ----------------- ##" >&5
1019 echo "## Cache variables. ##" >&5
1020 echo "## ----------------- ##" >&5
1022 # The following way of writing the cache mishandles newlines in values,
1025 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1037 sed "/^$/d" confdefs.h >conftest.log
1038 if test -s conftest.log; then
1040 echo "## ------------ ##" >&5
1041 echo "## confdefs.h. ##" >&5
1042 echo "## ------------ ##" >&5
1044 cat conftest.log >&5
1047 test "$ac_signal" != 0 &&
1048 echo "$as_me: caught signal $ac_signal" >&5
1049 echo "$as_me: exit $exit_status" >&5
1050 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1053 for ac_signal in 1 2 13 15; do
1054 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1059 rm -rf conftest* confdefs.h
1060 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1063 # Let the site file select an alternate cache file if it wants to.
1064 # Prefer explicitly selected file to automatically selected ones.
1065 if test -z "$CONFIG_SITE"; then
1066 if test "x$prefix" != xNONE; then
1067 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1069 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1072 for ac_site_file in $CONFIG_SITE; do
1073 if test -r "$ac_site_file"; then
1074 { echo "$as_me:1074: loading site script $ac_site_file" >&5
1075 echo "$as_me: loading site script $ac_site_file" >&6;}
1076 cat "$ac_site_file" >&5
1081 if test -r "$cache_file"; then
1082 # Some versions of bash will fail to source /dev/null (special
1083 # files actually), so we avoid doing that.
1084 if test -f "$cache_file"; then
1085 { echo "$as_me:1085: loading cache $cache_file" >&5
1086 echo "$as_me: loading cache $cache_file" >&6;}
1088 [\\/]* | ?:[\\/]* ) . $cache_file;;
1089 *) . ./$cache_file;;
1093 { echo "$as_me:1093: creating cache $cache_file" >&5
1094 echo "$as_me: creating cache $cache_file" >&6;}
1098 # Check that the precious variables saved in the cache have kept the same
1100 ac_cache_corrupted=false
1101 for ac_var in `(set) 2>&1 |
1102 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1103 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1104 eval ac_new_set=\$ac_env_${ac_var}_set
1105 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1106 eval ac_new_val="\$ac_env_${ac_var}_value"
1107 case "$ac_old_set,$ac_new_set" in
1109 { echo "$as_me:1109: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1110 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1111 ac_cache_corrupted=: ;;
1113 { echo "$as_me:1113: error: \`$ac_var' was not set in the previous run" >&5
1114 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1115 ac_cache_corrupted=: ;;
1118 if test "x$ac_old_val" != "x$ac_new_val"; then
1119 { echo "$as_me:1119: error: \`$ac_var' has changed since the previous run:" >&5
1120 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1121 { echo "$as_me:1121: former value: $ac_old_val" >&5
1122 echo "$as_me: former value: $ac_old_val" >&2;}
1123 { echo "$as_me:1123: current value: $ac_new_val" >&5
1124 echo "$as_me: current value: $ac_new_val" >&2;}
1125 ac_cache_corrupted=:
1128 # Pass precious variables to config.status. It doesn't matter if
1129 # we pass some twice (in addition to the command line arguments).
1130 if test "$ac_new_set" = set; then
1131 case "$ac_new_val" in
1132 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1133 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1134 ac_configure_args="$ac_configure_args '$ac_arg'"
1136 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1141 if "$ac_cache_corrupted"; then
1142 { echo "$as_me:1142: error: changes in the environment can compromise the build" >&5
1143 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1144 { { echo "$as_me:1144: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1145 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1146 { (exit 1); exit 1; }; }
1150 ac_cpp='$CPP $CPPFLAGS'
1151 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1152 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1154 ac_main_return="return"
1156 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1158 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1170 echo "#! $SHELL" >conftest.sh
1171 echo "exit 0" >>conftest.sh
1172 chmod +x conftest.sh
1173 if { (echo "$as_me:1173: PATH=\".;.\"; conftest.sh") >&5
1174 (PATH=".;."; conftest.sh) 2>&5
1176 echo "$as_me:1176: \$? = $ac_status" >&5
1177 (exit "$ac_status"); }; then
1178 ac_path_separator=';'
1182 PATH_SEPARATOR="$ac_path_separator"
1185 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1189 for ac_prog in ggrep grep
1191 # Extract the first word of "$ac_prog", so it can be a program name with args.
1192 set dummy $ac_prog; ac_word=$2
1193 echo "$as_me:1193: checking for $ac_word" >&5
1194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1195 if test "${ac_cv_prog_GREP+set}" = set; then
1196 echo $ECHO_N "(cached) $ECHO_C" >&6
1198 if test -n "$GREP"; then
1199 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1201 ac_save_IFS=$IFS; IFS=$ac_path_separator
1203 for ac_dir in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir=.
1206 $as_executable_p "$ac_dir/$ac_word" || continue
1207 ac_cv_prog_GREP="$ac_prog"
1208 echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1214 GREP=$ac_cv_prog_GREP
1215 if test -n "$GREP"; then
1216 echo "$as_me:1216: result: $GREP" >&5
1217 echo "${ECHO_T}$GREP" >&6
1219 echo "$as_me:1219: result: no" >&5
1220 echo "${ECHO_T}no" >&6
1223 test -n "$GREP" && break
1225 test -n "$GREP" || GREP=": "
1227 echo "$as_me:1227: checking for egrep" >&5
1228 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1229 if test "${ac_cv_path_EGREP+set}" = set; then
1230 echo $ECHO_N "(cached) $ECHO_C" >&6
1232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1233 then ac_cv_path_EGREP="$GREP -E"
1235 for ac_prog in gegrep egrep
1237 # Extract the first word of "$ac_prog", so it can be a program name with args.
1238 set dummy $ac_prog; ac_word=$2
1239 echo "$as_me:1239: checking for $ac_word" >&5
1240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1241 if test "${ac_cv_path_EGREP+set}" = set; then
1242 echo $ECHO_N "(cached) $ECHO_C" >&6
1246 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1249 ac_save_IFS=$IFS; IFS=$ac_path_separator
1251 for ac_dir in $ac_dummy; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if $as_executable_p "$ac_dir/$ac_word"; then
1255 ac_cv_path_EGREP="$ac_dir/$ac_word"
1256 echo "$as_me:1256: found $ac_dir/$ac_word" >&5
1264 EGREP=$ac_cv_path_EGREP
1266 if test -n "$EGREP"; then
1267 echo "$as_me:1267: result: $EGREP" >&5
1268 echo "${ECHO_T}$EGREP" >&6
1270 echo "$as_me:1270: result: no" >&5
1271 echo "${ECHO_T}no" >&6
1274 test -n "$EGREP" && break
1276 test -n "$EGREP" || EGREP=": "
1278 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1278: error: cannot find workable egrep" >&5
1279 echo "$as_me: error: cannot find workable egrep" >&2;}
1280 { (exit 1); exit 1; }; }
1283 echo "$as_me:1283: result: $ac_cv_path_EGREP" >&5
1284 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1285 EGREP="$ac_cv_path_EGREP"
1287 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1288 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1289 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1290 cf_cv_abi_version=${NCURSES_MAJOR}
1291 cf_cv_abi_default=${NCURSES_MAJOR}
1292 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1293 cf_cv_timestamp=`date`
1294 echo "$as_me:1294: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&5
1295 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&6
1297 if test -f "$srcdir/VERSION" ; then
1298 echo "$as_me:1298: checking for package version" >&5
1299 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1301 # if there are not enough fields, cut returns the last one...
1302 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1303 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1304 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1306 # this is how CF_BUNDLED_INTL uses $VERSION:
1307 VERSION="$cf_field1"
1309 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1310 test -z "$VERSION_MAJOR" && { { echo "$as_me:1310: error: missing major-version" >&5
1311 echo "$as_me: error: missing major-version" >&2;}
1312 { (exit 1); exit 1; }; }
1314 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1315 test -z "$VERSION_MINOR" && { { echo "$as_me:1315: error: missing minor-version" >&5
1316 echo "$as_me: error: missing minor-version" >&2;}
1317 { (exit 1); exit 1; }; }
1319 echo "$as_me:1319: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1320 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1322 echo "$as_me:1322: checking for package patch date" >&5
1323 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1324 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1325 case .$VERSION_PATCH in
1327 { { echo "$as_me:1327: error: missing patch-date $VERSION_PATCH" >&5
1328 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1329 { (exit 1); exit 1; }; }
1331 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1334 { { echo "$as_me:1334: error: illegal patch-date $VERSION_PATCH" >&5
1335 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1336 { (exit 1); exit 1; }; }
1339 echo "$as_me:1339: result: $VERSION_PATCH" >&5
1340 echo "${ECHO_T}$VERSION_PATCH" >&6
1342 { { echo "$as_me:1342: error: did not find $srcdir/VERSION" >&5
1343 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1344 { (exit 1); exit 1; }; }
1347 # show the actual data that we have for versions:
1348 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1350 echo "${as_me:-configure}:1350: testing ABI VERSION $VERSION ..." 1>&5
1352 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1354 echo "${as_me:-configure}:1354: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1356 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1358 echo "${as_me:-configure}:1358: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1360 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1362 echo "${as_me:-configure}:1362: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1367 cat >>confdefs.h <<EOF
1368 #define PACKAGE "$PACKAGE"
1371 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1373 cat >>confdefs.h <<EOF
1374 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1377 cat >>confdefs.h <<EOF
1378 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1381 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1383 # Check whether --with-rel-version or --without-rel-version was given.
1384 if test "${with_rel_version+set}" = set; then
1385 withval="$with_rel_version"
1386 { echo "$as_me:1386: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1387 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1388 cf_cv_rel_version=$withval
1391 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1392 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1393 test -n "NCURSES_MINOR" || NCURSES_MINOR=0
1395 if test -n "$NCURSES_MAJOR" ; then
1396 case `echo "$NCURSES_MAJOR" | sed -e 's/^[0-9]*$/0/g'` in
1400 { { echo "$as_me:1400: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1401 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1402 { (exit 1); exit 1; }; }
1406 { { echo "$as_me:1406: error: Release major-version value is empty" >&5
1407 echo "$as_me: error: Release major-version value is empty" >&2;}
1408 { (exit 1); exit 1; }; }
1411 if test -n "$NCURSES_MINOR" ; then
1412 case `echo "$NCURSES_MINOR" | sed -e 's/^[0-9]*$/0/g'` in
1416 { { echo "$as_me:1416: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1417 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1418 { (exit 1); exit 1; }; }
1422 { { echo "$as_me:1422: error: Release minor-version value is empty" >&5
1423 echo "$as_me: error: Release minor-version value is empty" >&2;}
1424 { (exit 1); exit 1; }; }
1427 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1429 # Check whether --with-abi-version or --without-abi-version was given.
1430 if test "${with_abi_version+set}" = set; then
1431 withval="$with_abi_version"
1433 if test "x$cf_cv_abi_version" != "x$withval"
1435 { echo "$as_me:1435: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1436 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1437 case "$cf_cv_rel_version" in
1439 cf_cv_rel_version=$withval.0
1442 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1446 cf_cv_abi_version=$withval
1449 if test -n "$cf_cv_abi_version" ; then
1450 case `echo "$cf_cv_abi_version" | sed -e 's/^[0-9]*$/0/g'` in
1454 { { echo "$as_me:1454: error: ABI version is not a number: $cf_cv_abi_version" >&5
1455 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1456 { (exit 1); exit 1; }; }
1460 { { echo "$as_me:1460: error: ABI version value is empty" >&5
1461 echo "$as_me: error: ABI version value is empty" >&2;}
1462 { (exit 1); exit 1; }; }
1465 cf_cv_abi_default=$cf_cv_abi_version
1467 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1469 case "$cf_cv_rel_version" in
1471 cf_cv_rel_version=$with_abi_version.0
1477 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1478 if test -f "$ac_dir/install-sh"; then
1480 ac_install_sh="$ac_aux_dir/install-sh -c"
1482 elif test -f "$ac_dir/install.sh"; then
1484 ac_install_sh="$ac_aux_dir/install.sh -c"
1486 elif test -f "$ac_dir/shtool"; then
1488 ac_install_sh="$ac_aux_dir/shtool install -c"
1492 if test -z "$ac_aux_dir"; then
1493 { { echo "$as_me:1493: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1494 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1495 { (exit 1); exit 1; }; }
1497 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1498 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1499 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501 # Make sure we can run config.sub.
1502 $ac_config_sub sun4 >/dev/null 2>&1 ||
1503 { { echo "$as_me:1503: error: cannot run $ac_config_sub" >&5
1504 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1505 { (exit 1); exit 1; }; }
1507 echo "$as_me:1507: checking build system type" >&5
1508 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1509 if test "${ac_cv_build+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 ac_cv_build_alias=$build_alias
1513 test -z "$ac_cv_build_alias" &&
1514 ac_cv_build_alias=`$ac_config_guess`
1515 test -z "$ac_cv_build_alias" &&
1516 { { echo "$as_me:1516: error: cannot guess build type; you must specify one" >&5
1517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1518 { (exit 1); exit 1; }; }
1519 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1520 { { echo "$as_me:1520: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1521 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1522 { (exit 1); exit 1; }; }
1525 echo "$as_me:1525: result: $ac_cv_build" >&5
1526 echo "${ECHO_T}$ac_cv_build" >&6
1528 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1529 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1530 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532 echo "$as_me:1532: checking host system type" >&5
1533 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1534 if test "${ac_cv_host+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 ac_cv_host_alias=$host_alias
1538 test -z "$ac_cv_host_alias" &&
1539 ac_cv_host_alias=$ac_cv_build_alias
1540 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1541 { { echo "$as_me:1541: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1542 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1543 { (exit 1); exit 1; }; }
1546 echo "$as_me:1546: result: $ac_cv_host" >&5
1547 echo "${ECHO_T}$ac_cv_host" >&6
1549 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1553 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1554 echo "$as_me:1554: checking target system type" >&5
1555 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1556 if test "${ac_cv_target+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 ac_cv_target_alias=$target_alias
1560 test "x$ac_cv_target_alias" = "x" &&
1561 ac_cv_target_alias=$ac_cv_host_alias
1562 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1563 { { echo "$as_me:1563: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1564 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1568 echo "$as_me:1568: result: $ac_cv_target" >&5
1569 echo "${ECHO_T}$ac_cv_target" >&6
1570 target=$ac_cv_target
1571 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 # The aliases save the names the user supplied, while $host etc.
1576 # will get canonicalized.
1577 test -n "$target_alias" &&
1578 test "$program_prefix$program_suffix$program_transform_name" = \
1580 program_prefix=${target_alias}-
1581 system_name="$host_os"
1583 system_name="`(uname -s -r) 2>/dev/null`"
1584 if test -z "$system_name" ; then
1585 system_name="`(hostname) 2>/dev/null`"
1588 test -n "$system_name" &&
1589 cat >>confdefs.h <<EOF
1590 #define SYSTEM_NAME "$system_name"
1593 if test "${cf_cv_system_name+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 cf_cv_system_name="$system_name"
1599 test -z "$system_name" && system_name="$cf_cv_system_name"
1600 test -n "$cf_cv_system_name" && echo "$as_me:1600: result: Configuring for $cf_cv_system_name" >&5
1601 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1603 if test ".$system_name" != ".$cf_cv_system_name" ; then
1604 echo "$as_me:1604: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1605 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1606 { { echo "$as_me:1606: error: \"Please remove config.cache and try again.\"" >&5
1607 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1608 { (exit 1); exit 1; }; }
1611 # Check whether --with-system-type or --without-system-type was given.
1612 if test "${with_system_type+set}" = set; then
1613 withval="$with_system_type"
1614 { echo "$as_me:1614: WARNING: overriding system type to $withval" >&5
1615 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1616 cf_cv_system_name=$withval
1621 ### Save the given $CFLAGS to allow user-override.
1622 cf_user_CFLAGS="$CFLAGS"
1624 ### Default install-location
1625 echo "$as_me:1625: checking for fgrep" >&5
1626 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1627 if test "${ac_cv_path_FGREP+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1631 then ac_cv_path_FGREP="$GREP -F"
1633 for ac_prog in gfgrep fgrep
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636 set dummy $ac_prog; ac_word=$2
1637 echo "$as_me:1637: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_path_FGREP+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1647 ac_save_IFS=$IFS; IFS=$ac_path_separator
1649 for ac_dir in $ac_dummy; do
1651 test -z "$ac_dir" && ac_dir=.
1652 if $as_executable_p "$ac_dir/$ac_word"; then
1653 ac_cv_path_FGREP="$ac_dir/$ac_word"
1654 echo "$as_me:1654: found $ac_dir/$ac_word" >&5
1662 FGREP=$ac_cv_path_FGREP
1664 if test -n "$FGREP"; then
1665 echo "$as_me:1665: result: $FGREP" >&5
1666 echo "${ECHO_T}$FGREP" >&6
1668 echo "$as_me:1668: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1672 test -n "$FGREP" && break
1674 test -n "$FGREP" || FGREP=": "
1676 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1676: error: cannot find workable fgrep" >&5
1677 echo "$as_me: error: cannot find workable fgrep" >&2;}
1678 { (exit 1); exit 1; }; }
1681 echo "$as_me:1681: result: $ac_cv_path_FGREP" >&5
1682 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1683 FGREP="$ac_cv_path_FGREP"
1685 echo "$as_me:1685: checking for prefix" >&5
1686 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1687 if test "x$prefix" = "xNONE" ; then
1688 case "$cf_cv_system_name" in
1689 # non-vendor systems don't have a conflict
1690 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1693 (*) prefix=$ac_default_prefix
1697 echo "$as_me:1697: result: $prefix" >&5
1698 echo "${ECHO_T}$prefix" >&6
1700 if test "x$prefix" = "xNONE" ; then
1701 echo "$as_me:1701: checking for default include-directory" >&5
1702 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1703 test -n "$verbose" && echo 1>&6
1706 "$includedir/ncurses" \
1708 "$prefix/include/ncurses" \
1709 /usr/local/include \
1710 /usr/local/include/ncurses \
1712 /usr/include/ncurses
1714 cf_dir=`eval echo "$cf_symbol"`
1715 if test -f "$cf_dir/curses.h" ; then
1716 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1717 includedir="$cf_symbol"
1718 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1722 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1724 echo "$as_me:1724: result: $includedir" >&5
1725 echo "${ECHO_T}$includedir" >&6
1728 ### Defaults for ncurses ABI
1733 cf_dft_ext_colors=no
1736 cf_dft_ext_putwin=no
1737 cf_dft_ext_spfuncs=no
1738 cf_dft_filter_syms=no
1741 cf_dft_opaque_curses=no
1742 cf_dft_ordinate_type=short
1743 cf_dft_signed_char=no
1744 cf_dft_tparm_arg=long
1748 case x$cf_cv_abi_default in
1750 cf_dft_chtype=uint32_t
1751 cf_dft_ext_colors=yes
1752 cf_dft_ext_const=yes
1753 cf_dft_ext_mouse=yes
1754 cf_dft_ext_putwin=yes
1755 cf_dft_ext_spfuncs=yes
1756 cf_dft_filter_syms=yes
1758 cf_dft_mmask_t=uint32_t
1759 cf_dft_tparm_arg=intptr_t
1760 cf_dft_with_lp64=yes
1765 case x$cf_cv_abi_default in
1768 cf_dft_mmask_t=uint64_t
1769 cf_dft_opaque_curses=yes
1770 cf_dft_ordinate_type=int
1771 cf_dft_signed_char=yes
1772 # also: remove the wgetch-events feature in ABI 7
1776 ### override ABI version, e.g., packagers
1778 # Check whether --with-abi-altered or --without-abi-altered was given.
1779 if test "${with_abi_altered+set}" = set; then
1780 withval="$with_abi_altered"
1782 if test -n "$withval" ; then
1783 case `echo "$withval" | sed -e 's/^[0-9]*$/0/g'` in
1787 { { echo "$as_me:1787: error: ABI altered is not a number: $withval" >&5
1788 echo "$as_me: error: ABI altered is not a number: $withval" >&2;}
1789 { (exit 1); exit 1; }; }
1793 { { echo "$as_me:1793: error: ABI altered value is empty" >&5
1794 echo "$as_me: error: ABI altered value is empty" >&2;}
1795 { (exit 1); exit 1; }; }
1798 if test "$cf_cv_abi_version" != "$withval"
1800 { echo "$as_me:1800: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&5
1801 echo "$as_me: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&2;}
1802 cf_cv_abi_version=$withval
1807 ### Checks for programs.
1809 # Check whether --with-ada or --without-ada was given.
1810 if test "${with_ada+set}" = set; then
1812 cf_with_ada=$withval
1817 if test "x$cf_with_ada" = xyes
1819 cf_prog_cc="gnatgcc gcc cc"
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1827 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 ac_main_return="return"
1830 if test -n "$ac_tool_prefix"; then
1831 for ac_prog in $cf_prog_cc
1833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1835 echo "$as_me:1835: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 ac_save_IFS=$IFS; IFS=$ac_path_separator
1845 for ac_dir in $ac_dummy; do
1847 test -z "$ac_dir" && ac_dir=.
1848 $as_executable_p "$ac_dir/$ac_word" || continue
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:1850: found $ac_dir/$ac_word" >&5
1857 if test -n "$CC"; then
1858 echo "$as_me:1858: result: $CC" >&5
1859 echo "${ECHO_T}$CC" >&6
1861 echo "$as_me:1861: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1865 test -n "$CC" && break
1868 if test -z "$CC"; then
1870 for ac_prog in $cf_prog_cc
1872 # Extract the first word of "$ac_prog", so it can be a program name with args.
1873 set dummy $ac_prog; ac_word=$2
1874 echo "$as_me:1874: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$ac_ct_CC"; then
1880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882 ac_save_IFS=$IFS; IFS=$ac_path_separator
1884 for ac_dir in $ac_dummy; do
1886 test -z "$ac_dir" && ac_dir=.
1887 $as_executable_p "$ac_dir/$ac_word" || continue
1888 ac_cv_prog_ac_ct_CC="$ac_prog"
1889 echo "$as_me:1889: found $ac_dir/$ac_word" >&5
1895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1896 if test -n "$ac_ct_CC"; then
1897 echo "$as_me:1897: result: $ac_ct_CC" >&5
1898 echo "${ECHO_T}$ac_ct_CC" >&6
1900 echo "$as_me:1900: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1904 test -n "$ac_ct_CC" && break
1910 test -z "$CC" && { { echo "$as_me:1910: error: no acceptable cc found in \$PATH" >&5
1911 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1912 { (exit 1); exit 1; }; }
1914 # Provide some information about the compiler.
1915 echo "$as_me:1915:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo "$2"`
1918 { (eval echo "$as_me:1918: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit "$ac_status"); }
1923 { (eval echo "$as_me:1923: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit "$ac_status"); }
1928 { (eval echo "$as_me:1928: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 echo "$as_me:1931: \$? = $ac_status" >&5
1932 (exit "$ac_status"); }
1934 cat >"conftest.$ac_ext" <<_ACEOF
1935 #line 1935 "configure"
1936 #include "confdefs.h"
1946 ac_clean_files_save=$ac_clean_files
1947 ac_clean_files="$ac_clean_files a.out a.exe"
1948 # Try to create an executable without -o first, disregard a.out.
1949 # It will help us diagnose broken compilers, and finding out an intuition
1951 echo "$as_me:1951: checking for C compiler default output" >&5
1952 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1953 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1954 if { (eval echo "$as_me:1954: \"$ac_link_default\"") >&5
1955 (eval $ac_link_default) 2>&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit "$ac_status"); }; then
1959 # Find the output, starting from the most likely. This scheme is
1960 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1962 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1963 ls a.out conftest 2>/dev/null;
1964 ls a.* conftest.* 2>/dev/null`; do
1966 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1967 a.out ) # We found the default executable, but exeext='' is most
1970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1971 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1978 echo "$as_me: failed program was:" >&5
1979 cat "conftest.$ac_ext" >&5
1980 { { echo "$as_me:1980: error: C compiler cannot create executables" >&5
1981 echo "$as_me: error: C compiler cannot create executables" >&2;}
1982 { (exit 77); exit 77; }; }
1985 ac_exeext=$ac_cv_exeext
1986 echo "$as_me:1986: result: $ac_file" >&5
1987 echo "${ECHO_T}$ac_file" >&6
1989 # Check the compiler produces executables we can run. If not, either
1990 # the compiler is broken, or we cross compile.
1991 echo "$as_me:1991: checking whether the C compiler works" >&5
1992 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1993 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1994 # If not cross compiling, check that we can run a simple program.
1995 if test "$cross_compiling" != yes; then
1996 if { ac_try='./$ac_file'
1997 { (eval echo "$as_me:1997: \"$ac_try\"") >&5
2000 echo "$as_me:2000: \$? = $ac_status" >&5
2001 (exit "$ac_status"); }; }; then
2004 if test "$cross_compiling" = maybe; then
2007 { { echo "$as_me:2007: error: cannot run C compiled programs.
2008 If you meant to cross compile, use \`--host'." >&5
2009 echo "$as_me: error: cannot run C compiled programs.
2010 If you meant to cross compile, use \`--host'." >&2;}
2011 { (exit 1); exit 1; }; }
2015 echo "$as_me:2015: result: yes" >&5
2016 echo "${ECHO_T}yes" >&6
2018 rm -f a.out a.exe "conftest$ac_cv_exeext"
2019 ac_clean_files=$ac_clean_files_save
2020 # Check the compiler produces executables we can run. If not, either
2021 # the compiler is broken, or we cross compile.
2022 echo "$as_me:2022: checking whether we are cross compiling" >&5
2023 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2024 echo "$as_me:2024: result: $cross_compiling" >&5
2025 echo "${ECHO_T}$cross_compiling" >&6
2027 echo "$as_me:2027: checking for executable suffix" >&5
2028 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2029 if { (eval echo "$as_me:2029: \"$ac_link\"") >&5
2030 (eval $ac_link) 2>&5
2032 echo "$as_me:2032: \$? = $ac_status" >&5
2033 (exit "$ac_status"); }; then
2034 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2035 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2036 # work properly (i.e., refer to `conftest.exe'), while it won't with
2038 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2040 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 { { echo "$as_me:2048: error: cannot compute EXEEXT: cannot compile and link" >&5
2049 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f "conftest$ac_cv_exeext"
2054 echo "$as_me:2054: result: $ac_cv_exeext" >&5
2055 echo "${ECHO_T}$ac_cv_exeext" >&6
2057 rm -f "conftest.$ac_ext"
2058 EXEEXT=$ac_cv_exeext
2060 echo "$as_me:2060: checking for object suffix" >&5
2061 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2062 if test "${ac_cv_objext+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 cat >"conftest.$ac_ext" <<_ACEOF
2066 #line 2066 "configure"
2067 #include "confdefs.h"
2077 rm -f conftest.o conftest.obj
2078 if { (eval echo "$as_me:2078: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>&5
2081 echo "$as_me:2081: \$? = $ac_status" >&5
2082 (exit "$ac_status"); }; then
2083 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2085 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2091 echo "$as_me: failed program was:" >&5
2092 cat "conftest.$ac_ext" >&5
2093 { { echo "$as_me:2093: error: cannot compute OBJEXT: cannot compile" >&5
2094 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2095 { (exit 1); exit 1; }; }
2098 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2100 echo "$as_me:2100: result: $ac_cv_objext" >&5
2101 echo "${ECHO_T}$ac_cv_objext" >&6
2102 OBJEXT=$ac_cv_objext
2104 echo "$as_me:2104: checking whether we are using the GNU C compiler" >&5
2105 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2106 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 cat >"conftest.$ac_ext" <<_ACEOF
2110 #line 2110 "configure"
2111 #include "confdefs.h"
2124 rm -f "conftest.$ac_objext"
2125 if { (eval echo "$as_me:2125: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>&5
2128 echo "$as_me:2128: \$? = $ac_status" >&5
2129 (exit "$ac_status"); } &&
2130 { ac_try='test -s "conftest.$ac_objext"'
2131 { (eval echo "$as_me:2131: \"$ac_try\"") >&5
2134 echo "$as_me:2134: \$? = $ac_status" >&5
2135 (exit "$ac_status"); }; }; then
2138 echo "$as_me: failed program was:" >&5
2139 cat "conftest.$ac_ext" >&5
2142 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2146 echo "$as_me:2146: result: $ac_cv_c_compiler_gnu" >&5
2147 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2148 GCC=`test $ac_compiler_gnu = yes && echo yes`
2149 ac_test_CFLAGS=${CFLAGS+set}
2150 ac_save_CFLAGS=$CFLAGS
2152 echo "$as_me:2152: checking whether $CC accepts -g" >&5
2153 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2154 if test "${ac_cv_prog_cc_g+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 cat >"conftest.$ac_ext" <<_ACEOF
2158 #line 2158 "configure"
2159 #include "confdefs.h"
2169 rm -f "conftest.$ac_objext"
2170 if { (eval echo "$as_me:2170: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2173 echo "$as_me:2173: \$? = $ac_status" >&5
2174 (exit "$ac_status"); } &&
2175 { ac_try='test -s "conftest.$ac_objext"'
2176 { (eval echo "$as_me:2176: \"$ac_try\"") >&5
2179 echo "$as_me:2179: \$? = $ac_status" >&5
2180 (exit "$ac_status"); }; }; then
2183 echo "$as_me: failed program was:" >&5
2184 cat "conftest.$ac_ext" >&5
2187 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2189 echo "$as_me:2189: result: $ac_cv_prog_cc_g" >&5
2190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2191 if test "$ac_test_CFLAGS" = set; then
2192 CFLAGS=$ac_save_CFLAGS
2193 elif test $ac_cv_prog_cc_g = yes; then
2194 if test "$GCC" = yes; then
2200 if test "$GCC" = yes; then
2206 # Some people use a C++ compiler to compile C. Since we use `exit',
2207 # in C++ we need to declare it. In case someone uses the same compiler
2208 # for both compiling C and C++ we need to have the C++ compiler decide
2209 # the declaration of exit, since it's the most demanding environment.
2210 cat >"conftest.$ac_ext" <<_ACEOF
2215 rm -f "conftest.$ac_objext"
2216 if { (eval echo "$as_me:2216: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>&5
2219 echo "$as_me:2219: \$? = $ac_status" >&5
2220 (exit "$ac_status"); } &&
2221 { ac_try='test -s "conftest.$ac_objext"'
2222 { (eval echo "$as_me:2222: \"$ac_try\"") >&5
2225 echo "$as_me:2225: \$? = $ac_status" >&5
2226 (exit "$ac_status"); }; }; then
2227 for ac_declaration in \
2229 '#include <stdlib.h>' \
2230 'extern "C" void std::exit (int) throw (); using std::exit;' \
2231 'extern "C" void std::exit (int); using std::exit;' \
2232 'extern "C" void exit (int) throw ();' \
2233 'extern "C" void exit (int);' \
2236 cat >"conftest.$ac_ext" <<_ACEOF
2237 #line 2237 "configure"
2238 #include "confdefs.h"
2249 rm -f "conftest.$ac_objext"
2250 if { (eval echo "$as_me:2250: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>&5
2253 echo "$as_me:2253: \$? = $ac_status" >&5
2254 (exit "$ac_status"); } &&
2255 { ac_try='test -s "conftest.$ac_objext"'
2256 { (eval echo "$as_me:2256: \"$ac_try\"") >&5
2259 echo "$as_me:2259: \$? = $ac_status" >&5
2260 (exit "$ac_status"); }; }; then
2263 echo "$as_me: failed program was:" >&5
2264 cat "conftest.$ac_ext" >&5
2267 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2268 cat >"conftest.$ac_ext" <<_ACEOF
2269 #line 2269 "configure"
2270 #include "confdefs.h"
2280 rm -f "conftest.$ac_objext"
2281 if { (eval echo "$as_me:2281: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>&5
2284 echo "$as_me:2284: \$? = $ac_status" >&5
2285 (exit "$ac_status"); } &&
2286 { ac_try='test -s "conftest.$ac_objext"'
2287 { (eval echo "$as_me:2287: \"$ac_try\"") >&5
2290 echo "$as_me:2290: \$? = $ac_status" >&5
2291 (exit "$ac_status"); }; }; then
2294 echo "$as_me: failed program was:" >&5
2295 cat "conftest.$ac_ext" >&5
2297 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2300 if test -n "$ac_declaration"; then
2301 echo '#ifdef __cplusplus' >>confdefs.h
2302 echo "$ac_declaration" >>confdefs.h
2303 echo '#endif' >>confdefs.h
2307 echo "$as_me: failed program was:" >&5
2308 cat "conftest.$ac_ext" >&5
2310 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2314 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316 ac_main_return="return"
2319 if test "$GCC" = yes ; then
2320 echo "$as_me:2320: checking version of $CC" >&5
2321 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2322 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2323 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2324 echo "$as_me:2324: result: $GCC_VERSION" >&5
2325 echo "${ECHO_T}$GCC_VERSION" >&6
2330 if test "$GCC" = yes ; then
2333 echo "$as_me:2333: checking if this is really Intel C compiler" >&5
2334 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2335 cf_save_CFLAGS="$CFLAGS"
2336 CFLAGS="$CFLAGS -no-gcc"
2337 cat >"conftest.$ac_ext" <<_ACEOF
2338 #line 2338 "configure"
2339 #include "confdefs.h"
2345 #ifdef __INTEL_COMPILER
2347 #error __INTEL_COMPILER is not defined
2354 rm -f "conftest.$ac_objext"
2355 if { (eval echo "$as_me:2355: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>&5
2358 echo "$as_me:2358: \$? = $ac_status" >&5
2359 (exit "$ac_status"); } &&
2360 { ac_try='test -s "conftest.$ac_objext"'
2361 { (eval echo "$as_me:2361: \"$ac_try\"") >&5
2364 echo "$as_me:2364: \$? = $ac_status" >&5
2365 (exit "$ac_status"); }; }; then
2367 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2370 echo "$as_me: failed program was:" >&5
2371 cat "conftest.$ac_ext" >&5
2373 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2374 CFLAGS="$cf_save_CFLAGS"
2375 echo "$as_me:2375: result: $INTEL_COMPILER" >&5
2376 echo "${ECHO_T}$INTEL_COMPILER" >&6
2383 if test "$GCC" = yes ; then
2384 echo "$as_me:2384: checking if this is really Clang C compiler" >&5
2385 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2386 cf_save_CFLAGS="$CFLAGS"
2387 cat >"conftest.$ac_ext" <<_ACEOF
2388 #line 2388 "configure"
2389 #include "confdefs.h"
2397 #error __clang__ is not defined
2404 rm -f "conftest.$ac_objext"
2405 if { (eval echo "$as_me:2405: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>&5
2408 echo "$as_me:2408: \$? = $ac_status" >&5
2409 (exit "$ac_status"); } &&
2410 { ac_try='test -s "conftest.$ac_objext"'
2411 { (eval echo "$as_me:2411: \"$ac_try\"") >&5
2414 echo "$as_me:2414: \$? = $ac_status" >&5
2415 (exit "$ac_status"); }; }; then
2419 echo "$as_me: failed program was:" >&5
2420 cat "conftest.$ac_ext" >&5
2422 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2423 CFLAGS="$cf_save_CFLAGS"
2424 echo "$as_me:2424: result: $CLANG_COMPILER" >&5
2425 echo "${ECHO_T}$CLANG_COMPILER" >&6
2430 if test "x$CLANG_COMPILER" = "xyes" ; then
2432 (c[1-9][0-9]|*/c[1-9][0-9])
2433 { echo "$as_me:2433: WARNING: replacing broken compiler alias $CC" >&5
2434 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2435 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2440 echo "$as_me:2440: checking version of $CC" >&5
2441 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2442 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.].*//'`"
2443 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2444 echo "$as_me:2444: result: $CLANG_VERSION" >&5
2445 echo "${ECHO_T}$CLANG_VERSION" >&6
2447 for cf_clang_opt in \
2448 -Qunused-arguments \
2449 -Wno-error=implicit-function-declaration
2451 echo "$as_me:2451: checking if option $cf_clang_opt works" >&5
2452 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2453 cf_save_CFLAGS="$CFLAGS"
2454 CFLAGS="$CFLAGS $cf_clang_opt"
2455 cat >"conftest.$ac_ext" <<_ACEOF
2456 #line 2456 "configure"
2457 #include "confdefs.h"
2464 printf("hello!\\n");
2469 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2470 if { (eval echo "$as_me:2470: \"$ac_link\"") >&5
2471 (eval $ac_link) 2>&5
2473 echo "$as_me:2473: \$? = $ac_status" >&5
2474 (exit "$ac_status"); } &&
2475 { ac_try='test -s "conftest$ac_exeext"'
2476 { (eval echo "$as_me:2476: \"$ac_try\"") >&5
2479 echo "$as_me:2479: \$? = $ac_status" >&5
2480 (exit "$ac_status"); }; }; then
2484 echo "$as_me: failed program was:" >&5
2485 cat "conftest.$ac_ext" >&5
2489 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2490 echo "$as_me:2490: result: $cf_clang_optok" >&5
2491 echo "${ECHO_T}$cf_clang_optok" >&6
2492 CFLAGS="$cf_save_CFLAGS"
2493 if test "$cf_clang_optok" = yes; then
2494 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2496 echo "${as_me:-configure}:2496: testing adding option $cf_clang_opt ..." 1>&5
2498 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2499 CFLAGS="${CFLAGS}$cf_clang_opt"
2505 echo "$as_me:2505: checking for $CC option to accept ANSI C" >&5
2506 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 ac_cv_prog_cc_stdc=no
2512 cat >"conftest.$ac_ext" <<_ACEOF
2513 #line 2513 "configure"
2514 #include "confdefs.h"
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (char **p, int i)
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2531 s = g (p, va_arg (v,int));
2535 int test (int i, double x);
2536 struct s1 {int (*f) (int a);};
2537 struct s2 {int (*f) (double a);};
2538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2549 # Don't try gcc -ansi; that turns off useful extensions and
2550 # breaks some systems' header files.
2551 # AIX -qlanglvl=ansi
2552 # Ultrix and OSF/1 -std1
2553 # HP-UX 10.20 and later -Ae
2554 # HP-UX older versions -Aa -D_HPUX_SOURCE
2555 # SVR4 -Xc -D__EXTENSIONS__
2556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2558 CC="$ac_save_CC $ac_arg"
2559 rm -f "conftest.$ac_objext"
2560 if { (eval echo "$as_me:2560: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>&5
2563 echo "$as_me:2563: \$? = $ac_status" >&5
2564 (exit "$ac_status"); } &&
2565 { ac_try='test -s "conftest.$ac_objext"'
2566 { (eval echo "$as_me:2566: \"$ac_try\"") >&5
2569 echo "$as_me:2569: \$? = $ac_status" >&5
2570 (exit "$ac_status"); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2574 echo "$as_me: failed program was:" >&5
2575 cat "conftest.$ac_ext" >&5
2577 rm -f "conftest.$ac_objext"
2579 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2584 case "x$ac_cv_prog_cc_stdc" in
2586 echo "$as_me:2586: result: none needed" >&5
2587 echo "${ECHO_T}none needed" >&6 ;;
2589 echo "$as_me:2589: result: $ac_cv_prog_cc_stdc" >&5
2590 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2591 CC="$CC $ac_cv_prog_cc_stdc" ;;
2594 # This should have been defined by AC_PROG_CC
2597 echo "$as_me:2597: checking \$CFLAGS variable" >&5
2598 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2601 echo "$as_me:2601: result: broken" >&5
2602 echo "${ECHO_T}broken" >&6
2603 { echo "$as_me:2603: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2604 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2607 for cf_arg in $cf_flags
2613 cf_new_extra_cppflags=
2615 for cf_add_cflags in $cf_arg
2617 case "$cf_fix_cppflags" in
2619 case "$cf_add_cflags" in
2620 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2621 case "$cf_add_cflags" in
2623 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2625 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2626 && test -z "${cf_tst_cflags}" \
2627 && cf_fix_cppflags=yes
2629 if test "$cf_fix_cppflags" = yes ; then
2631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2635 elif test "${cf_tst_cflags}" = "\"'" ; then
2637 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2638 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2648 case "$cf_add_cflags" in
2650 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2652 CPPFLAGS=`echo "$CPPFLAGS" | \
2653 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2654 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2659 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2660 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2667 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2668 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2675 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2676 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2678 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2680 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2681 && test -z "${cf_tst_cflags}" \
2682 && cf_fix_cppflags=no
2687 if test -n "$cf_new_cflags" ; then
2689 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2690 CFLAGS="${CFLAGS}$cf_new_cflags"
2694 if test -n "$cf_new_cppflags" ; then
2696 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2697 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2701 if test -n "$cf_new_extra_cppflags" ; then
2703 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2704 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2711 echo "$as_me:2711: result: ok" >&5
2712 echo "${ECHO_T}ok" >&6
2716 echo "$as_me:2716: checking \$CC variable" >&5
2717 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2720 echo "$as_me:2720: result: broken" >&5
2721 echo "${ECHO_T}broken" >&6
2722 { echo "$as_me:2722: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2723 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2725 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2726 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2728 for cf_arg in $cf_flags
2736 cf_new_extra_cppflags=
2738 for cf_add_cflags in $cf_arg
2740 case "$cf_fix_cppflags" in
2742 case "$cf_add_cflags" in
2743 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2744 case "$cf_add_cflags" in
2746 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2748 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2749 && test -z "${cf_tst_cflags}" \
2750 && cf_fix_cppflags=yes
2752 if test "$cf_fix_cppflags" = yes ; then
2754 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2755 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2758 elif test "${cf_tst_cflags}" = "\"'" ; then
2760 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2761 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2771 case "$cf_add_cflags" in
2773 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2775 CPPFLAGS=`echo "$CPPFLAGS" | \
2776 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2777 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2782 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2783 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2790 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2791 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2798 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2799 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2801 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2803 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2804 && test -z "${cf_tst_cflags}" \
2805 && cf_fix_cppflags=no
2810 if test -n "$cf_new_cflags" ; then
2812 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2813 CFLAGS="${CFLAGS}$cf_new_cflags"
2817 if test -n "$cf_new_cppflags" ; then
2819 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2820 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2824 if test -n "$cf_new_extra_cppflags" ; then
2826 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2827 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2837 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2839 echo "${as_me:-configure}:2839: testing resulting CC: '$CC' ..." 1>&5
2841 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2843 echo "${as_me:-configure}:2843: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2845 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2847 echo "${as_me:-configure}:2847: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2851 echo "$as_me:2851: result: ok" >&5
2852 echo "${ECHO_T}ok" >&6
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2859 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861 ac_main_return="return"
2862 echo "$as_me:2862: checking how to run the C preprocessor" >&5
2863 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2864 # On Suns, sometimes $CPP names a directory.
2865 if test -n "$CPP" && test -d "$CPP"; then
2868 if test -z "$CPP"; then
2869 if test "${ac_cv_prog_CPP+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 # Double quotes because CPP needs to be expanded
2873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2876 for ac_c_preproc_warn_flag in '' yes
2878 # Use a header file that comes with gcc, so configuring glibc
2879 # with a fresh cross-compiler works.
2880 # On the NeXT, cc -E runs the code through the compiler's parser,
2881 # not just through cpp. "Syntax error" is here to catch this case.
2882 cat >"conftest.$ac_ext" <<_ACEOF
2883 #line 2883 "configure"
2884 #include "confdefs.h"
2888 if { (eval echo "$as_me:2888: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2889 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2891 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2893 cat conftest.err >&5
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit "$ac_status"); } >/dev/null; then
2896 if test -s conftest.err; then
2897 ac_cpp_err=$ac_c_preproc_warn_flag
2904 if test -z "$ac_cpp_err"; then
2907 echo "$as_me: failed program was:" >&5
2908 cat "conftest.$ac_ext" >&5
2909 # Broken: fails on valid input.
2912 rm -f conftest.err "conftest.$ac_ext"
2914 # OK, works on sane cases. Now check whether non-existent headers
2915 # can be detected and how.
2916 cat >"conftest.$ac_ext" <<_ACEOF
2917 #line 2917 "configure"
2918 #include "confdefs.h"
2919 #include <ac_nonexistent.h>
2921 if { (eval echo "$as_me:2921: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2922 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2924 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:2927: \$? = $ac_status" >&5
2928 (exit "$ac_status"); } >/dev/null; then
2929 if test -s conftest.err; then
2930 ac_cpp_err=$ac_c_preproc_warn_flag
2937 if test -z "$ac_cpp_err"; then
2938 # Broken: success on invalid input.
2941 echo "$as_me: failed program was:" >&5
2942 cat "conftest.$ac_ext" >&5
2943 # Passes both tests.
2947 rm -f conftest.err "conftest.$ac_ext"
2950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2951 rm -f conftest.err "conftest.$ac_ext"
2952 if $ac_preproc_ok; then
2964 echo "$as_me:2964: result: $CPP" >&5
2965 echo "${ECHO_T}$CPP" >&6
2967 for ac_c_preproc_warn_flag in '' yes
2969 # Use a header file that comes with gcc, so configuring glibc
2970 # with a fresh cross-compiler works.
2971 # On the NeXT, cc -E runs the code through the compiler's parser,
2972 # not just through cpp. "Syntax error" is here to catch this case.
2973 cat >"conftest.$ac_ext" <<_ACEOF
2974 #line 2974 "configure"
2975 #include "confdefs.h"
2979 if { (eval echo "$as_me:2979: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2980 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2982 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:2985: \$? = $ac_status" >&5
2986 (exit "$ac_status"); } >/dev/null; then
2987 if test -s conftest.err; then
2988 ac_cpp_err=$ac_c_preproc_warn_flag
2995 if test -z "$ac_cpp_err"; then
2998 echo "$as_me: failed program was:" >&5
2999 cat "conftest.$ac_ext" >&5
3000 # Broken: fails on valid input.
3003 rm -f conftest.err "conftest.$ac_ext"
3005 # OK, works on sane cases. Now check whether non-existent headers
3006 # can be detected and how.
3007 cat >"conftest.$ac_ext" <<_ACEOF
3008 #line 3008 "configure"
3009 #include "confdefs.h"
3010 #include <ac_nonexistent.h>
3012 if { (eval echo "$as_me:3012: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3013 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3015 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:3018: \$? = $ac_status" >&5
3019 (exit "$ac_status"); } >/dev/null; then
3020 if test -s conftest.err; then
3021 ac_cpp_err=$ac_c_preproc_warn_flag
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3032 echo "$as_me: failed program was:" >&5
3033 cat "conftest.$ac_ext" >&5
3034 # Passes both tests.
3038 rm -f conftest.err "conftest.$ac_ext"
3041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3042 rm -f conftest.err "conftest.$ac_ext"
3043 if $ac_preproc_ok; then
3046 { { echo "$as_me:3046: error: C preprocessor \"$CPP\" fails sanity check" >&5
3047 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3048 { (exit 1); exit 1; }; }
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3054 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 ac_main_return="return"
3058 if test $ac_cv_c_compiler_gnu = yes; then
3059 echo "$as_me:3059: checking whether $CC needs -traditional" >&5
3060 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3061 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 ac_pattern="Autoconf.*'x'"
3065 cat >"conftest.$ac_ext" <<_ACEOF
3066 #line 3066 "configure"
3067 #include "confdefs.h"
3069 int Autoconf = TIOCGETP;
3071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3072 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3073 ac_cv_prog_gcc_traditional=yes
3075 ac_cv_prog_gcc_traditional=no
3079 if test $ac_cv_prog_gcc_traditional = no; then
3080 cat >"conftest.$ac_ext" <<_ACEOF
3081 #line 3081 "configure"
3082 #include "confdefs.h"
3084 int Autoconf = TCGETA;
3086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3087 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3088 ac_cv_prog_gcc_traditional=yes
3094 echo "$as_me:3094: result: $ac_cv_prog_gcc_traditional" >&5
3095 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3096 if test $ac_cv_prog_gcc_traditional = yes; then
3097 CC="$CC -traditional"
3101 echo "$as_me:3101: checking whether $CC understands -c and -o together" >&5
3102 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3103 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 cat > conftest.$ac_ext <<CF_EOF
3110 ${cf_cv_main_return:-return}(0);
3113 # We do the test twice because some compilers refuse to overwrite an
3114 # existing .o file with -o, though they will create one.
3115 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3116 if { (eval echo "$as_me:3116: \"$ac_try\"") >&5
3119 echo "$as_me:3119: \$? = $ac_status" >&5
3120 (exit "$ac_status"); } &&
3121 test -f conftest2.$ac_objext && { (eval echo "$as_me:3121: \"$ac_try\"") >&5
3124 echo "$as_me:3124: \$? = $ac_status" >&5
3125 (exit "$ac_status"); };
3127 eval cf_cv_prog_CC_c_o=yes
3129 eval cf_cv_prog_CC_c_o=no
3134 if test "$cf_cv_prog_CC_c_o" = yes; then
3135 echo "$as_me:3135: result: yes" >&5
3136 echo "${ECHO_T}yes" >&6
3138 echo "$as_me:3138: result: no" >&5
3139 echo "${ECHO_T}no" >&6
3142 if test "$cross_compiling" = yes ; then
3145 case "$cf_cv_system_name" in
3146 (dragonfly*|mirbsd*|freebsd*)
3147 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3149 (*) LDPATH=$PATH:/sbin:/usr/sbin
3150 # Extract the first word of "ldconfig", so it can be a program name with args.
3151 set dummy ldconfig; ac_word=$2
3152 echo "$as_me:3152: checking for $ac_word" >&5
3153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3162 ac_save_IFS=$IFS; IFS=$ac_path_separator
3164 for ac_dir in $ac_dummy; do
3166 test -z "$ac_dir" && ac_dir=.
3167 if $as_executable_p "$ac_dir/$ac_word"; then
3168 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3169 echo "$as_me:3169: found $ac_dir/$ac_word" >&5
3177 LDCONFIG=$ac_cv_path_LDCONFIG
3179 if test -n "$LDCONFIG"; then
3180 echo "$as_me:3180: result: $LDCONFIG" >&5
3181 echo "${ECHO_T}$LDCONFIG" >&6
3183 echo "$as_me:3183: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3191 echo "$as_me:3191: checking if you want to ensure bool is consistent with C++" >&5
3192 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3194 # Check whether --with-cxx or --without-cxx was given.
3195 if test "${with_cxx+set}" = set; then
3197 cf_with_cxx=$withval
3201 echo "$as_me:3201: result: $cf_with_cxx" >&5
3202 echo "${ECHO_T}$cf_with_cxx" >&6
3203 if test "X$cf_with_cxx" = Xno ; then
3207 # with autoconf 2.13, we can change the error to a warning:
3209 ac_cpp='$CXXCPP $CPPFLAGS'
3210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3211 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3213 ac_main_return="return"
3214 if test -n "$ac_tool_prefix"; then
3215 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3219 echo "$as_me:3219: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_CXX+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if test -n "$CXX"; then
3225 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3227 ac_save_IFS=$IFS; IFS=$ac_path_separator
3229 for ac_dir in $ac_dummy; do
3231 test -z "$ac_dir" && ac_dir=.
3232 $as_executable_p "$ac_dir/$ac_word" || continue
3233 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3234 echo "$as_me:3234: found $ac_dir/$ac_word" >&5
3241 if test -n "$CXX"; then
3242 echo "$as_me:3242: result: $CXX" >&5
3243 echo "${ECHO_T}$CXX" >&6
3245 echo "$as_me:3245: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3249 test -n "$CXX" && break
3252 if test -z "$CXX"; then
3254 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3256 # Extract the first word of "$ac_prog", so it can be a program name with args.
3257 set dummy $ac_prog; ac_word=$2
3258 echo "$as_me:3258: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 if test -n "$ac_ct_CXX"; then
3264 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3266 ac_save_IFS=$IFS; IFS=$ac_path_separator
3268 for ac_dir in $ac_dummy; do
3270 test -z "$ac_dir" && ac_dir=.
3271 $as_executable_p "$ac_dir/$ac_word" || continue
3272 ac_cv_prog_ac_ct_CXX="$ac_prog"
3273 echo "$as_me:3273: found $ac_dir/$ac_word" >&5
3279 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3280 if test -n "$ac_ct_CXX"; then
3281 echo "$as_me:3281: result: $ac_ct_CXX" >&5
3282 echo "${ECHO_T}$ac_ct_CXX" >&6
3284 echo "$as_me:3284: result: no" >&5
3285 echo "${ECHO_T}no" >&6
3288 test -n "$ac_ct_CXX" && break
3290 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3295 # Provide some information about the compiler.
3296 echo "$as_me:3296:" \
3297 "checking for C++ compiler version" >&5
3298 ac_compiler=`set X $ac_compile; echo $2`
3299 { (eval echo "$as_me:3299: \"$ac_compiler --version </dev/null >&5\"") >&5
3300 (eval $ac_compiler --version </dev/null >&5) 2>&5
3302 echo "$as_me:3302: \$? = $ac_status" >&5
3303 (exit "$ac_status"); }
3304 { (eval echo "$as_me:3304: \"$ac_compiler -v </dev/null >&5\"") >&5
3305 (eval $ac_compiler -v </dev/null >&5) 2>&5
3307 echo "$as_me:3307: \$? = $ac_status" >&5
3308 (exit "$ac_status"); }
3309 { (eval echo "$as_me:3309: \"$ac_compiler -V </dev/null >&5\"") >&5
3310 (eval $ac_compiler -V </dev/null >&5) 2>&5
3312 echo "$as_me:3312: \$? = $ac_status" >&5
3313 (exit "$ac_status"); }
3315 echo "$as_me:3315: checking whether we are using the GNU C++ compiler" >&5
3316 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3317 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >"conftest.$ac_ext" <<_ACEOF
3321 #line 3321 "configure"
3322 #include "confdefs.h"
3335 rm -f "conftest.$ac_objext"
3336 if { (eval echo "$as_me:3336: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>&5
3339 echo "$as_me:3339: \$? = $ac_status" >&5
3340 (exit "$ac_status"); } &&
3341 { ac_try='test -s "conftest.$ac_objext"'
3342 { (eval echo "$as_me:3342: \"$ac_try\"") >&5
3345 echo "$as_me:3345: \$? = $ac_status" >&5
3346 (exit "$ac_status"); }; }; then
3349 echo "$as_me: failed program was:" >&5
3350 cat "conftest.$ac_ext" >&5
3353 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3354 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3357 echo "$as_me:3357: result: $ac_cv_cxx_compiler_gnu" >&5
3358 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3359 GXX=`test $ac_compiler_gnu = yes && echo yes`
3360 ac_test_CXXFLAGS=${CXXFLAGS+set}
3361 ac_save_CXXFLAGS=$CXXFLAGS
3363 echo "$as_me:3363: checking whether $CXX accepts -g" >&5
3364 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3365 if test "${ac_cv_prog_cxx_g+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 cat >"conftest.$ac_ext" <<_ACEOF
3369 #line 3369 "configure"
3370 #include "confdefs.h"
3380 rm -f "conftest.$ac_objext"
3381 if { (eval echo "$as_me:3381: \"$ac_compile\"") >&5
3382 (eval $ac_compile) 2>&5
3384 echo "$as_me:3384: \$? = $ac_status" >&5
3385 (exit "$ac_status"); } &&
3386 { ac_try='test -s "conftest.$ac_objext"'
3387 { (eval echo "$as_me:3387: \"$ac_try\"") >&5
3390 echo "$as_me:3390: \$? = $ac_status" >&5
3391 (exit "$ac_status"); }; }; then
3392 ac_cv_prog_cxx_g=yes
3394 echo "$as_me: failed program was:" >&5
3395 cat "conftest.$ac_ext" >&5
3398 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3400 echo "$as_me:3400: result: $ac_cv_prog_cxx_g" >&5
3401 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3402 if test "$ac_test_CXXFLAGS" = set; then
3403 CXXFLAGS=$ac_save_CXXFLAGS
3404 elif test $ac_cv_prog_cxx_g = yes; then
3405 if test "$GXX" = yes; then
3411 if test "$GXX" = yes; then
3417 for ac_declaration in \
3419 '#include <stdlib.h>' \
3420 'extern "C" void std::exit (int) throw (); using std::exit;' \
3421 'extern "C" void std::exit (int); using std::exit;' \
3422 'extern "C" void exit (int) throw ();' \
3423 'extern "C" void exit (int);' \
3426 cat >"conftest.$ac_ext" <<_ACEOF
3427 #line 3427 "configure"
3428 #include "confdefs.h"
3439 rm -f "conftest.$ac_objext"
3440 if { (eval echo "$as_me:3440: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3443 echo "$as_me:3443: \$? = $ac_status" >&5
3444 (exit "$ac_status"); } &&
3445 { ac_try='test -s "conftest.$ac_objext"'
3446 { (eval echo "$as_me:3446: \"$ac_try\"") >&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit "$ac_status"); }; }; then
3453 echo "$as_me: failed program was:" >&5
3454 cat "conftest.$ac_ext" >&5
3457 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3458 cat >"conftest.$ac_ext" <<_ACEOF
3459 #line 3459 "configure"
3460 #include "confdefs.h"
3470 rm -f "conftest.$ac_objext"
3471 if { (eval echo "$as_me:3471: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>&5
3474 echo "$as_me:3474: \$? = $ac_status" >&5
3475 (exit "$ac_status"); } &&
3476 { ac_try='test -s "conftest.$ac_objext"'
3477 { (eval echo "$as_me:3477: \"$ac_try\"") >&5
3480 echo "$as_me:3480: \$? = $ac_status" >&5
3481 (exit "$ac_status"); }; }; then
3484 echo "$as_me: failed program was:" >&5
3485 cat "conftest.$ac_ext" >&5
3487 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3490 if test -n "$ac_declaration"; then
3491 echo '#ifdef __cplusplus' >>confdefs.h
3492 echo "$ac_declaration" >>confdefs.h
3493 echo '#endif' >>confdefs.h
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3499 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501 ac_main_return="return"
3504 ac_cpp='$CXXCPP $CPPFLAGS'
3505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3506 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 ac_main_return="return"
3510 if test "x$cf_with_cxx" != xno
3512 # Several of the C++ configurations do not work, particularly when
3513 # cross-compiling (20140913 -TD)
3514 echo "$as_me:3514: checking if $CXX works" >&5
3515 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3517 save_CPPFLAGS="$CPPFLAGS"
3518 eval cf_includedir=${includedir}
3519 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3521 cat >"conftest.$ac_ext" <<_ACEOF
3522 #line 3522 "configure"
3523 #include "confdefs.h"
3532 printf("Hello world!\n")
3538 rm -f "conftest.$ac_objext"
3539 if { (eval echo "$as_me:3539: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>&5
3542 echo "$as_me:3542: \$? = $ac_status" >&5
3543 (exit "$ac_status"); } &&
3544 { ac_try='test -s "conftest.$ac_objext"'
3545 { (eval echo "$as_me:3545: \"$ac_try\"") >&5
3548 echo "$as_me:3548: \$? = $ac_status" >&5
3549 (exit "$ac_status"); }; }; then
3552 echo "$as_me: failed program was:" >&5
3553 cat "conftest.$ac_ext" >&5
3556 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3557 CPPFLAGS="$save_CPPFLAGS"
3559 echo "$as_me:3559: result: $cf_cxx_works" >&5
3560 echo "${ECHO_T}$cf_cxx_works" >&6
3561 if test "x$cf_cxx_works" = xno
3563 { echo "$as_me:3563: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3564 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3565 cf_with_cxx=no; CXX=""; GXX="";
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3571 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 ac_main_return="return"
3575 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3576 if test "$CXX" = "g++" ; then
3577 # Extract the first word of "g++", so it can be a program name with args.
3578 set dummy g++; ac_word=$2
3579 echo "$as_me:3579: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_path_CXX+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3589 ac_save_IFS=$IFS; IFS=$ac_path_separator
3591 for ac_dir in $ac_dummy; do
3593 test -z "$ac_dir" && ac_dir=.
3594 if $as_executable_p "$ac_dir/$ac_word"; then
3595 ac_cv_path_CXX="$ac_dir/$ac_word"
3596 echo "$as_me:3596: found $ac_dir/$ac_word" >&5
3606 if test -n "$CXX"; then
3607 echo "$as_me:3607: result: $CXX" >&5
3608 echo "${ECHO_T}$CXX" >&6
3610 echo "$as_me:3610: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3617 { echo "$as_me:3617: WARNING: You don't have any C++ compiler, too bad" >&5
3618 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3619 cf_with_cxx=no; CXX=""; GXX="";
3625 if test "$GXX" = yes; then
3626 echo "$as_me:3626: checking version of ${CXX:-g++}" >&5
3627 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3628 GXX_VERSION="`${CXX:-g++} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3629 if test -z "$GXX_VERSION"
3634 echo "$as_me:3634: result: $GXX_VERSION" >&5
3635 echo "${ECHO_T}$GXX_VERSION" >&6
3638 case "$GXX_VERSION" in
3642 { echo "$as_me:3642: WARNING: templates do not work" >&5
3643 echo "$as_me: WARNING: templates do not work" >&2;}
3647 echo "$as_me:3647: checking if you want to build C++ binding and demo" >&5
3648 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3650 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3651 if test "${with_cxx_binding+set}" = set; then
3652 withval="$with_cxx_binding"
3653 cf_with_cxx_binding=$withval
3655 cf_with_cxx_binding=$cf_with_cxx
3657 echo "$as_me:3657: result: $cf_with_cxx_binding" >&5
3658 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3660 echo "$as_me:3660: checking if you want to build with Ada" >&5
3661 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3662 echo "$as_me:3662: result: $cf_with_ada" >&5
3663 echo "${ECHO_T}$cf_with_ada" >&6
3665 echo "$as_me:3665: checking if you want to install terminal database" >&5
3666 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3668 # Check whether --enable-db-install or --disable-db-install was given.
3669 if test "${enable_db_install+set}" = set; then
3670 enableval="$enable_db_install"
3671 cf_with_db_install=$enableval
3673 cf_with_db_install=yes
3675 echo "$as_me:3675: result: $cf_with_db_install" >&5
3676 echo "${ECHO_T}$cf_with_db_install" >&6
3678 echo "$as_me:3678: checking if you want to install manpages" >&5
3679 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3681 # Check whether --with-manpages or --without-manpages was given.
3682 if test "${with_manpages+set}" = set; then
3683 withval="$with_manpages"
3684 cf_with_manpages=$withval
3686 cf_with_manpages=yes
3688 echo "$as_me:3688: result: $cf_with_manpages" >&5
3689 echo "${ECHO_T}$cf_with_manpages" >&6
3691 echo "$as_me:3691: checking if you want to build programs such as tic" >&5
3692 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3694 # Check whether --with-progs or --without-progs was given.
3695 if test "${with_progs+set}" = set; then
3696 withval="$with_progs"
3697 cf_with_progs=$withval
3701 echo "$as_me:3701: result: $cf_with_progs" >&5
3702 echo "${ECHO_T}$cf_with_progs" >&6
3704 echo "$as_me:3704: checking if you want to build test-programs" >&5
3705 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3707 # Check whether --with-tests or --without-tests was given.
3708 if test "${with_tests+set}" = set; then
3709 withval="$with_tests"
3710 cf_with_tests=$withval
3714 echo "$as_me:3714: result: $cf_with_tests" >&5
3715 echo "${ECHO_T}$cf_with_tests" >&6
3717 echo "$as_me:3717: checking if you wish to install curses.h" >&5
3718 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3720 # Check whether --with-curses-h or --without-curses-h was given.
3721 if test "${with_curses_h+set}" = set; then
3722 withval="$with_curses_h"
3723 with_curses_h=$withval
3727 echo "$as_me:3727: result: $with_curses_h" >&5
3728 echo "${ECHO_T}$with_curses_h" >&6
3730 modules_to_build="ncurses"
3731 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3732 modules_to_build="$modules_to_build panel menu form"
3734 test "$program_prefix" != NONE &&
3735 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3736 # Use a double $ so make ignores it.
3737 test "$program_suffix" != NONE &&
3738 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3739 # Double any \ or $. echo might interpret backslashes.
3740 # By default was `s,x,x', remove it if useless.
3741 cat <<\_ACEOF >conftest.sed
3742 s/[\\$]/&&/g;s/;s,x,x,$//
3744 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3747 for ac_prog in mawk gawk nawk awk
3749 # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 set dummy $ac_prog; ac_word=$2
3751 echo "$as_me:3751: checking for $ac_word" >&5
3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 if test "${ac_cv_prog_AWK+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 if test -n "$AWK"; then
3757 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3759 ac_save_IFS=$IFS; IFS=$ac_path_separator
3761 for ac_dir in $ac_dummy; do
3763 test -z "$ac_dir" && ac_dir=.
3764 $as_executable_p "$ac_dir/$ac_word" || continue
3765 ac_cv_prog_AWK="$ac_prog"
3766 echo "$as_me:3766: found $ac_dir/$ac_word" >&5
3773 if test -n "$AWK"; then
3774 echo "$as_me:3774: result: $AWK" >&5
3775 echo "${ECHO_T}$AWK" >&6
3777 echo "$as_me:3777: result: no" >&5
3778 echo "${ECHO_T}no" >&6
3781 test -n "$AWK" && break
3784 test -z "$AWK" && { { echo "$as_me:3784: error: No awk program found" >&5
3785 echo "$as_me: error: No awk program found" >&2;}
3786 { (exit 1); exit 1; }; }
3788 # Find a good install program. We prefer a C program (faster),
3789 # so one script is as good as another. But avoid the broken or
3790 # incompatible versions:
3791 # SysV /etc/install, /usr/sbin/install
3792 # SunOS /usr/etc/install
3793 # IRIX /sbin/install
3795 # AmigaOS /C/install, which installs bootblocks on floppy discs
3796 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3797 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3798 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3799 # ./install, which can be erroneously created by make from ./install.sh.
3800 echo "$as_me:3800: checking for a BSD compatible install" >&5
3801 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3802 if test -z "$INSTALL"; then
3803 if test "${ac_cv_path_install+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 ac_save_IFS=$IFS; IFS=$ac_path_separator
3807 for ac_dir in $PATH; do
3809 # Account for people who put trailing slashes in PATH elements.
3811 / | ./ | .// | /cC/* \
3812 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3815 # OSF1 and SCO ODT 3.0 have their own names for install.
3816 # Don't use installbsd from OSF since it installs stuff as root
3818 for ac_prog in ginstall scoinst install; do
3819 if $as_executable_p "$ac_dir/$ac_prog"; then
3820 if test $ac_prog = install &&
3821 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3822 # AIX install. It has an incompatible calling convention.
3824 elif test $ac_prog = install &&
3825 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3826 # program-specific install script used by HP pwplus--don't use.
3829 ac_cv_path_install="$ac_dir/$ac_prog -c"
3839 if test "${ac_cv_path_install+set}" = set; then
3840 INSTALL=$ac_cv_path_install
3842 # As a last resort, use the slow shell script. We don't cache a
3843 # path for INSTALL within a source directory, because that will
3844 # break other packages using the cache if that directory is
3845 # removed, or if the path is relative.
3846 INSTALL=$ac_install_sh
3849 echo "$as_me:3849: result: $INSTALL" >&5
3850 echo "${ECHO_T}$INSTALL" >&6
3852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3853 # It thinks the first close brace ends the variable substitution.
3854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3864 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3865 test -z "$cf_dir" && cf_dir=.
3866 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3870 for ac_prog in lint cppcheck splint
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 echo "$as_me:3874: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_LINT+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 if test -n "$LINT"; then
3880 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3882 ac_save_IFS=$IFS; IFS=$ac_path_separator
3884 for ac_dir in $ac_dummy; do
3886 test -z "$ac_dir" && ac_dir=.
3887 $as_executable_p "$ac_dir/$ac_word" || continue
3888 ac_cv_prog_LINT="$ac_prog"
3889 echo "$as_me:3889: found $ac_dir/$ac_word" >&5
3895 LINT=$ac_cv_prog_LINT
3896 if test -n "$LINT"; then
3897 echo "$as_me:3897: result: $LINT" >&5
3898 echo "${ECHO_T}$LINT" >&6
3900 echo "$as_me:3900: result: no" >&5
3901 echo "${ECHO_T}no" >&6
3904 test -n "$LINT" && break
3908 (xcppcheck|x*/cppcheck)
3909 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3913 echo "$as_me:3913: checking whether ln -s works" >&5
3914 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3916 if test "$LN_S" = "ln -s"; then
3917 echo "$as_me:3917: result: yes" >&5
3918 echo "${ECHO_T}yes" >&6
3920 echo "$as_me:3920: result: no, using $LN_S" >&5
3921 echo "${ECHO_T}no, using $LN_S" >&6
3924 echo "$as_me:3924: checking if $LN_S -f options work" >&5
3925 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3927 rm -f conf$$.src conf$$dst
3929 echo first >conf$$.src
3930 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3935 rm -f conf$$.dst conf$$src
3936 echo "$as_me:3936: result: $cf_prog_ln_sf" >&5
3937 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3939 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3941 echo "$as_me:3941: checking for long file names" >&5
3942 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3943 if test "${ac_cv_sys_long_file_names+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 ac_cv_sys_long_file_names=yes
3947 # Test for long file names in all the places we know might matter:
3948 # . the current directory, where building will happen
3949 # $prefix/lib where we will be installing things
3950 # $exec_prefix/lib likewise
3951 # eval it to expand exec_prefix.
3952 # $TMPDIR if set, where it might want to write temporary files
3953 # if $TMPDIR is not set:
3954 # /tmp where it might want to write temporary files
3957 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3960 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3962 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3963 test -d "$ac_dir" || continue
3964 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3965 ac_xdir=$ac_dir/cf$$
3966 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3967 ac_tf1=$ac_xdir/conftest9012345
3968 ac_tf2=$ac_xdir/conftest9012346
3969 (echo 1 >"$ac_tf1") 2>/dev/null
3970 (echo 2 >"$ac_tf2") 2>/dev/null
3971 ac_val=`cat "$ac_tf1" 2>/dev/null`
3972 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3973 ac_cv_sys_long_file_names=no
3974 rm -rf "$ac_xdir" 2>/dev/null
3977 rm -rf "$ac_xdir" 2>/dev/null
3980 echo "$as_me:3980: result: $ac_cv_sys_long_file_names" >&5
3981 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3982 if test "$ac_cv_sys_long_file_names" = yes; then
3984 cat >>confdefs.h <<\EOF
3985 #define HAVE_LONG_FILE_NAMES 1
3990 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3991 # of package conflict.
3994 # Check whether --with-config-suffix or --without-config-suffix was given.
3995 if test "${with_config_suffix+set}" = set; then
3996 withval="$with_config_suffix"
3999 { echo "$as_me:3999: WARNING: expected a value for config-suffix option" >&5
4000 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
4002 (*) cf_config_suffix="$withval"
4007 # If we find pkg-config, check if we should install the ".pc" files.
4009 echo "$as_me:4009: checking if you want to use pkg-config" >&5
4010 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4012 # Check whether --with-pkg-config or --without-pkg-config was given.
4013 if test "${with_pkg_config+set}" = set; then
4014 withval="$with_pkg_config"
4015 cf_pkg_config=$withval
4019 echo "$as_me:4019: result: $cf_pkg_config" >&5
4020 echo "${ECHO_T}$cf_pkg_config" >&6
4022 case "$cf_pkg_config" in
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4031 echo "$as_me:4031: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4041 ac_save_IFS=$IFS; IFS=$ac_path_separator
4043 for ac_dir in $ac_dummy; do
4045 test -z "$ac_dir" && ac_dir=.
4046 if $as_executable_p "$ac_dir/$ac_word"; then
4047 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4048 echo "$as_me:4048: found $ac_dir/$ac_word" >&5
4056 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4058 if test -n "$PKG_CONFIG"; then
4059 echo "$as_me:4059: result: $PKG_CONFIG" >&5
4060 echo "${ECHO_T}$PKG_CONFIG" >&6
4062 echo "$as_me:4062: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4067 if test -z "$ac_cv_path_PKG_CONFIG"; then
4068 ac_pt_PKG_CONFIG=$PKG_CONFIG
4069 # Extract the first word of "pkg-config", so it can be a program name with args.
4070 set dummy pkg-config; ac_word=$2
4071 echo "$as_me:4071: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 case $ac_pt_PKG_CONFIG in
4078 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4081 ac_save_IFS=$IFS; IFS=$ac_path_separator
4083 for ac_dir in $ac_dummy; do
4085 test -z "$ac_dir" && ac_dir=.
4086 if $as_executable_p "$ac_dir/$ac_word"; then
4087 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4088 echo "$as_me:4088: found $ac_dir/$ac_word" >&5
4093 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4097 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4099 if test -n "$ac_pt_PKG_CONFIG"; then
4100 echo "$as_me:4100: result: $ac_pt_PKG_CONFIG" >&5
4101 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4103 echo "$as_me:4103: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4107 PKG_CONFIG=$ac_pt_PKG_CONFIG
4109 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4118 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4119 if test "$PKG_CONFIG" != none ; then
4121 if test "x$prefix" != xNONE; then
4122 cf_path_syntax="$prefix"
4124 cf_path_syntax="$ac_default_prefix"
4127 case ".$PKG_CONFIG" in
4132 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4134 (.\$\{*prefix\}*|.\$\{*dir\}*)
4135 eval PKG_CONFIG="$PKG_CONFIG"
4136 case ".$PKG_CONFIG" in
4138 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4143 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4146 { { echo "$as_me:4146: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4147 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4148 { (exit 1); exit 1; }; }
4152 elif test "x$cf_pkg_config" != xno ; then
4153 { echo "$as_me:4153: WARNING: pkg-config is not installed" >&5
4154 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4157 case "$PKG_CONFIG" in
4159 echo "$as_me:4159: checking for pkg-config library directory" >&5
4160 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4163 echo "$as_me:4163: checking for $PKG_CONFIG library directory" >&5
4164 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4168 # if $PKG_CONFIG_LIBDIR is set, try to use that
4169 if test -n "$PKG_CONFIG_PATH"; then
4170 cf_search_path=`echo "$PKG_CONFIG_PATH" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4171 elif test -n "$PKG_CONFIG_LIBDIR"; then
4172 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4177 # if the option is used, let that override. otherwise default to "libdir"
4179 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4180 if test "${with_pkg_config_libdir+set}" = set; then
4181 withval="$with_pkg_config_libdir"
4182 cf_search_path=$withval
4184 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
4187 case "x$cf_search_path" in
4189 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4190 echo "$as_me:4190: result: $PKG_CONFIG_LIBDIR" >&5
4191 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4200 PKG_CONFIG_LIBDIR="$cf_search_path"
4201 echo "$as_me:4201: result: $PKG_CONFIG_LIBDIR" >&5
4202 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4206 echo "$as_me:4206: result: auto" >&5
4207 echo "${ECHO_T}auto" >&6
4209 # Look for the library directory using the same prefix as the executable
4210 echo "$as_me:4210: checking for search-list" >&5
4211 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4212 if test "x$PKG_CONFIG" != xnone
4214 # works for pkg-config since version 0.24 (2009)
4215 # works for pkgconf since version 0.8.3 (2012)
4216 for cf_pkg_program in \
4217 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4221 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4222 test -n "$cf_search_path" && break
4225 # works for pkg-config since import in 2005 of original 2001 HP code.
4226 test -z "$cf_search_path" && \
4228 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4229 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4230 sub(\"^[^']*'\",\"\"); \
4231 sub(\"'.*\",\"\"); \
4232 printf \" %s\", \\$0; } \
4237 echo "$as_me:4237: result: $cf_search_path" >&5
4238 echo "${ECHO_T}$cf_search_path" >&6
4241 { { echo "$as_me:4241: error: Unexpected option value: $cf_search_path" >&5
4242 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4243 { (exit 1); exit 1; }; }
4247 if test -n "$cf_search_path"
4249 echo "$as_me:4249: checking for first directory" >&5
4250 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4251 cf_pkg_config_path=none
4252 for cf_config in $cf_search_path
4254 if test -d "$cf_config"
4256 cf_pkg_config_path=$cf_config
4260 echo "$as_me:4260: result: $cf_pkg_config_path" >&5
4261 echo "${ECHO_T}$cf_pkg_config_path" >&6
4263 if test "x$cf_pkg_config_path" != xnone ; then
4264 # limit this to the first directory found
4265 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4268 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4270 echo "$as_me:4270: checking for workaround" >&5
4271 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4272 if test "$prefix" = "NONE" ; then
4273 cf_prefix="$ac_default_prefix"
4277 eval cf_libdir=$libdir
4278 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4280 for cf_config in $cf_search_path
4283 $cf_libdir/pkgconfig)
4284 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4288 test -z "$cf_backup" && cf_backup=$cf_config
4292 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4293 echo "$as_me:4293: result: $PKG_CONFIG_LIBDIR" >&5
4294 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4298 if test "x$PKG_CONFIG" != xnone
4300 echo "$as_me:4300: checking if we should install .pc files for $PKG_CONFIG" >&5
4301 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4303 echo "$as_me:4303: checking if we should install .pc files" >&5
4304 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4307 # Check whether --enable-pc-files or --disable-pc-files was given.
4308 if test "${enable_pc_files+set}" = set; then
4309 enableval="$enable_pc_files"
4310 enable_pc_files=$enableval
4314 echo "$as_me:4314: result: $enable_pc_files" >&5
4315 echo "${ECHO_T}$enable_pc_files" >&6
4317 if test "x$enable_pc_files" != xno
4320 case "x$PKG_CONFIG_LIBDIR" in
4322 { echo "$as_me:4322: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4323 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4326 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4328 if test "x$prefix" != xNONE; then
4329 cf_path_syntax="$prefix"
4331 cf_path_syntax="$ac_default_prefix"
4334 case ".$cf_pkg_config_libdir" in
4339 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4341 (.\$\{*prefix\}*|.\$\{*dir\}*)
4342 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4343 case ".$cf_pkg_config_libdir" in
4345 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4350 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4353 { { echo "$as_me:4353: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4354 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4355 { (exit 1); exit 1; }; }
4365 if test -z "$MAKE_PC_FILES"
4367 echo "$as_me:4367: checking for suffix to add to pc-files" >&5
4368 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4370 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4371 if test "${with_pc_suffix+set}" = set; then
4372 withval="$with_pc_suffix"
4377 (*) PC_MODULE_SUFFIX="$withval"
4381 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4382 echo "$as_me:4382: result: $PC_MODULE_SUFFIX" >&5
4383 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4384 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4388 echo "$as_me:4388: checking if we should assume mixed-case filenames" >&5
4389 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4391 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4392 if test "${enable_mixed_case+set}" = set; then
4393 enableval="$enable_mixed_case"
4394 enable_mixedcase=$enableval
4396 enable_mixedcase=auto
4398 echo "$as_me:4398: result: $enable_mixedcase" >&5
4399 echo "${ECHO_T}$enable_mixedcase" >&6
4400 if test "$enable_mixedcase" = "auto" ; then
4402 echo "$as_me:4402: checking if filesystem supports mixed-case filenames" >&5
4403 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4404 if test "${cf_cv_mixedcase+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 if test "$cross_compiling" = yes ; then
4409 case "$target_alias" in
4410 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4418 rm -f conftest CONFTEST
4420 if test -f CONFTEST ; then
4425 rm -f conftest CONFTEST
4429 echo "$as_me:4429: result: $cf_cv_mixedcase" >&5
4430 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4431 test "$cf_cv_mixedcase" = yes &&
4432 cat >>confdefs.h <<\EOF
4433 #define MIXEDCASE_FILENAMES 1
4437 cf_cv_mixedcase=$enable_mixedcase
4438 if test "x$enable_mixedcase" = "xyes" ; then
4440 cat >>confdefs.h <<\EOF
4441 #define MIXEDCASE_FILENAMES 1
4447 # do this after mixed-case option (tags/TAGS is not as important as tic).
4448 echo "$as_me:4448: checking whether ${MAKE-make} sets \${MAKE}" >&5
4449 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4450 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4451 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 cat >conftest.make <<\EOF
4456 @echo 'ac_maketemp="${MAKE}"'
4458 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4459 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4460 if test -n "$ac_maketemp"; then
4461 eval ac_cv_prog_make_${ac_make}_set=yes
4463 eval ac_cv_prog_make_${ac_make}_set=no
4467 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4468 echo "$as_me:4468: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4472 echo "$as_me:4472: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4474 SET_MAKE="MAKE=${MAKE-make}"
4477 echo "$as_me:4477: checking for \".PHONY\" make-support" >&5
4478 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4479 if test "${cf_cv_make_PHONY+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 mkdir conftest || exit 1
4487 cat >makefile <<'CF_EOF'
4491 @echo "** making $@ $(DATA)"
4493 @echo "** making $@ $(DATA)"
4495 @echo "** making $@ $(DATA)"
4498 @echo "** making $@ $(DATA)"
4501 for cf_data in 1 2 3
4503 ${MAKE:-make} always DATA=$cf_data
4504 ${MAKE:-make} once DATA=$cf_data
4505 ${MAKE:-make} -t always once
4506 if test -f always ; then
4507 echo "no (case 1)" > ../conftest.tmp
4508 elif test ! -f always.out ; then
4509 echo "no (case 2)" > ../conftest.tmp
4510 elif test ! -f once.out ; then
4511 echo "no (case 3)" > ../conftest.tmp
4512 elif ! cmp -s always.out once.out ; then
4513 echo "no (case 4)" > ../conftest.tmp
4514 diff always.out once.out
4516 cf_check="`cat always.out`"
4517 if test "x$cf_check" != "x$cf_data" ; then
4518 echo "no (case 5)" > ../conftest.tmp
4520 echo yes > ../conftest.tmp
4528 cf_cv_make_PHONY="`cat conftest.tmp`"
4532 echo "$as_me:4532: result: $cf_cv_make_PHONY" >&5
4533 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4536 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4537 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4539 for ac_prog in exctags ctags
4541 # Extract the first word of "$ac_prog", so it can be a program name with args.
4542 set dummy $ac_prog; ac_word=$2
4543 echo "$as_me:4543: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545 if test "${ac_cv_prog_CTAGS+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 if test -n "$CTAGS"; then
4549 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4551 ac_save_IFS=$IFS; IFS=$ac_path_separator
4553 for ac_dir in $ac_dummy; do
4555 test -z "$ac_dir" && ac_dir=.
4556 $as_executable_p "$ac_dir/$ac_word" || continue
4557 ac_cv_prog_CTAGS="$ac_prog"
4558 echo "$as_me:4558: found $ac_dir/$ac_word" >&5
4564 CTAGS=$ac_cv_prog_CTAGS
4565 if test -n "$CTAGS"; then
4566 echo "$as_me:4566: result: $CTAGS" >&5
4567 echo "${ECHO_T}$CTAGS" >&6
4569 echo "$as_me:4569: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4573 test -n "$CTAGS" && break
4576 for ac_prog in exetags etags
4578 # Extract the first word of "$ac_prog", so it can be a program name with args.
4579 set dummy $ac_prog; ac_word=$2
4580 echo "$as_me:4580: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_prog_ETAGS+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 if test -n "$ETAGS"; then
4586 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4588 ac_save_IFS=$IFS; IFS=$ac_path_separator
4590 for ac_dir in $ac_dummy; do
4592 test -z "$ac_dir" && ac_dir=.
4593 $as_executable_p "$ac_dir/$ac_word" || continue
4594 ac_cv_prog_ETAGS="$ac_prog"
4595 echo "$as_me:4595: found $ac_dir/$ac_word" >&5
4601 ETAGS=$ac_cv_prog_ETAGS
4602 if test -n "$ETAGS"; then
4603 echo "$as_me:4603: result: $ETAGS" >&5
4604 echo "${ECHO_T}$ETAGS" >&6
4606 echo "$as_me:4606: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4610 test -n "$ETAGS" && break
4613 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4614 set dummy ${CTAGS:-ctags}; ac_word=$2
4615 echo "$as_me:4615: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 if test -n "$MAKE_LOWER_TAGS"; then
4621 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4623 ac_save_IFS=$IFS; IFS=$ac_path_separator
4625 for ac_dir in $ac_dummy; do
4627 test -z "$ac_dir" && ac_dir=.
4628 $as_executable_p "$ac_dir/$ac_word" || continue
4629 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4630 echo "$as_me:4630: found $ac_dir/$ac_word" >&5
4634 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4637 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4638 if test -n "$MAKE_LOWER_TAGS"; then
4639 echo "$as_me:4639: result: $MAKE_LOWER_TAGS" >&5
4640 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4642 echo "$as_me:4642: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4646 if test "$cf_cv_mixedcase" = yes ; then
4647 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4648 set dummy ${ETAGS:-etags}; ac_word=$2
4649 echo "$as_me:4649: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4651 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if test -n "$MAKE_UPPER_TAGS"; then
4655 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4657 ac_save_IFS=$IFS; IFS=$ac_path_separator
4659 for ac_dir in $ac_dummy; do
4661 test -z "$ac_dir" && ac_dir=.
4662 $as_executable_p "$ac_dir/$ac_word" || continue
4663 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4664 echo "$as_me:4664: found $ac_dir/$ac_word" >&5
4668 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4671 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4672 if test -n "$MAKE_UPPER_TAGS"; then
4673 echo "$as_me:4673: result: $MAKE_UPPER_TAGS" >&5
4674 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4676 echo "$as_me:4676: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4684 if test "$MAKE_UPPER_TAGS" = yes ; then
4690 if test "$MAKE_LOWER_TAGS" = yes ; then
4696 echo "$as_me:4696: checking for makeflags variable" >&5
4697 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4698 if test "${cf_cv_makeflags+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4705 cat >cf_makeflags.tmp <<CF_EOF
4708 @ echo '.$cf_option'
4710 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4711 case "$cf_result" in
4713 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4714 case "$cf_result" in
4715 (.*CC=*) cf_cv_makeflags=
4717 (*) cf_cv_makeflags=$cf_option
4726 echo "${as_me:-configure}:4726: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4731 rm -f cf_makeflags.tmp
4734 echo "$as_me:4734: result: $cf_cv_makeflags" >&5
4735 echo "${ECHO_T}$cf_cv_makeflags" >&6
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4740 echo "$as_me:4740: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742 if test "${ac_cv_prog_RANLIB+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 if test -n "$RANLIB"; then
4746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748 ac_save_IFS=$IFS; IFS=$ac_path_separator
4750 for ac_dir in $ac_dummy; do
4752 test -z "$ac_dir" && ac_dir=.
4753 $as_executable_p "$ac_dir/$ac_word" || continue
4754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4755 echo "$as_me:4755: found $ac_dir/$ac_word" >&5
4761 RANLIB=$ac_cv_prog_RANLIB
4762 if test -n "$RANLIB"; then
4763 echo "$as_me:4763: result: $RANLIB" >&5
4764 echo "${ECHO_T}$RANLIB" >&6
4766 echo "$as_me:4766: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4771 if test -z "$ac_cv_prog_RANLIB"; then
4772 ac_ct_RANLIB=$RANLIB
4773 # Extract the first word of "ranlib", so it can be a program name with args.
4774 set dummy ranlib; ac_word=$2
4775 echo "$as_me:4775: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4777 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 if test -n "$ac_ct_RANLIB"; then
4781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4783 ac_save_IFS=$IFS; IFS=$ac_path_separator
4785 for ac_dir in $ac_dummy; do
4787 test -z "$ac_dir" && ac_dir=.
4788 $as_executable_p "$ac_dir/$ac_word" || continue
4789 ac_cv_prog_ac_ct_RANLIB="ranlib"
4790 echo "$as_me:4790: found $ac_dir/$ac_word" >&5
4794 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4798 if test -n "$ac_ct_RANLIB"; then
4799 echo "$as_me:4799: result: $ac_ct_RANLIB" >&5
4800 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4802 echo "$as_me:4802: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4806 RANLIB=$ac_ct_RANLIB
4808 RANLIB="$ac_cv_prog_RANLIB"
4811 if test -n "$ac_tool_prefix"; then
4812 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4813 set dummy ${ac_tool_prefix}ld; ac_word=$2
4814 echo "$as_me:4814: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4816 if test "${ac_cv_prog_LD+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 if test -n "$LD"; then
4820 ac_cv_prog_LD="$LD" # Let the user override the test.
4822 ac_save_IFS=$IFS; IFS=$ac_path_separator
4824 for ac_dir in $ac_dummy; do
4826 test -z "$ac_dir" && ac_dir=.
4827 $as_executable_p "$ac_dir/$ac_word" || continue
4828 ac_cv_prog_LD="${ac_tool_prefix}ld"
4829 echo "$as_me:4829: found $ac_dir/$ac_word" >&5
4836 if test -n "$LD"; then
4837 echo "$as_me:4837: result: $LD" >&5
4838 echo "${ECHO_T}$LD" >&6
4840 echo "$as_me:4840: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4845 if test -z "$ac_cv_prog_LD"; then
4847 # Extract the first word of "ld", so it can be a program name with args.
4848 set dummy ld; ac_word=$2
4849 echo "$as_me:4849: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 if test -n "$ac_ct_LD"; then
4855 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4857 ac_save_IFS=$IFS; IFS=$ac_path_separator
4859 for ac_dir in $ac_dummy; do
4861 test -z "$ac_dir" && ac_dir=.
4862 $as_executable_p "$ac_dir/$ac_word" || continue
4863 ac_cv_prog_ac_ct_LD="ld"
4864 echo "$as_me:4864: found $ac_dir/$ac_word" >&5
4868 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4871 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4872 if test -n "$ac_ct_LD"; then
4873 echo "$as_me:4873: result: $ac_ct_LD" >&5
4874 echo "${ECHO_T}$ac_ct_LD" >&6
4876 echo "$as_me:4876: result: no" >&5
4877 echo "${ECHO_T}no" >&6
4885 if test -n "$ac_tool_prefix"; then
4886 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}ar; ac_word=$2
4888 echo "$as_me:4888: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4890 if test "${ac_cv_prog_AR+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 if test -n "$AR"; then
4894 ac_cv_prog_AR="$AR" # Let the user override the test.
4896 ac_save_IFS=$IFS; IFS=$ac_path_separator
4898 for ac_dir in $ac_dummy; do
4900 test -z "$ac_dir" && ac_dir=.
4901 $as_executable_p "$ac_dir/$ac_word" || continue
4902 ac_cv_prog_AR="${ac_tool_prefix}ar"
4903 echo "$as_me:4903: found $ac_dir/$ac_word" >&5
4910 if test -n "$AR"; then
4911 echo "$as_me:4911: result: $AR" >&5
4912 echo "${ECHO_T}$AR" >&6
4914 echo "$as_me:4914: result: no" >&5
4915 echo "${ECHO_T}no" >&6
4919 if test -z "$ac_cv_prog_AR"; then
4921 # Extract the first word of "ar", so it can be a program name with args.
4922 set dummy ar; ac_word=$2
4923 echo "$as_me:4923: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4925 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 if test -n "$ac_ct_AR"; then
4929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4931 ac_save_IFS=$IFS; IFS=$ac_path_separator
4933 for ac_dir in $ac_dummy; do
4935 test -z "$ac_dir" && ac_dir=.
4936 $as_executable_p "$ac_dir/$ac_word" || continue
4937 ac_cv_prog_ac_ct_AR="ar"
4938 echo "$as_me:4938: found $ac_dir/$ac_word" >&5
4942 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4945 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4946 if test -n "$ac_ct_AR"; then
4947 echo "$as_me:4947: result: $ac_ct_AR" >&5
4948 echo "${ECHO_T}$ac_ct_AR" >&6
4950 echo "$as_me:4950: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4959 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4961 set dummy ${ac_tool_prefix}nm; ac_word=$2
4962 echo "$as_me:4962: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964 if test "${ac_cv_prog_NM+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 if test -n "$NM"; then
4968 ac_cv_prog_NM="$NM" # Let the user override the test.
4970 ac_save_IFS=$IFS; IFS=$ac_path_separator
4972 for ac_dir in $ac_dummy; do
4974 test -z "$ac_dir" && ac_dir=.
4975 $as_executable_p "$ac_dir/$ac_word" || continue
4976 ac_cv_prog_NM="${ac_tool_prefix}nm"
4977 echo "$as_me:4977: found $ac_dir/$ac_word" >&5
4984 if test -n "$NM"; then
4985 echo "$as_me:4985: result: $NM" >&5
4986 echo "${ECHO_T}$NM" >&6
4988 echo "$as_me:4988: result: no" >&5
4989 echo "${ECHO_T}no" >&6
4993 if test -z "$ac_cv_prog_NM"; then
4995 # Extract the first word of "nm", so it can be a program name with args.
4996 set dummy nm; ac_word=$2
4997 echo "$as_me:4997: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 if test -n "$ac_ct_NM"; then
5003 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5005 ac_save_IFS=$IFS; IFS=$ac_path_separator
5007 for ac_dir in $ac_dummy; do
5009 test -z "$ac_dir" && ac_dir=.
5010 $as_executable_p "$ac_dir/$ac_word" || continue
5011 ac_cv_prog_ac_ct_NM="nm"
5012 echo "$as_me:5012: found $ac_dir/$ac_word" >&5
5016 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5019 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5020 if test -n "$ac_ct_NM"; then
5021 echo "$as_me:5021: result: $ac_ct_NM" >&5
5022 echo "${ECHO_T}$ac_ct_NM" >&6
5024 echo "$as_me:5024: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5033 if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5035 set dummy ${ac_tool_prefix}ar; ac_word=$2
5036 echo "$as_me:5036: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5038 if test "${ac_cv_prog_AR+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 if test -n "$AR"; then
5042 ac_cv_prog_AR="$AR" # Let the user override the test.
5044 ac_save_IFS=$IFS; IFS=$ac_path_separator
5046 for ac_dir in $ac_dummy; do
5048 test -z "$ac_dir" && ac_dir=.
5049 $as_executable_p "$ac_dir/$ac_word" || continue
5050 ac_cv_prog_AR="${ac_tool_prefix}ar"
5051 echo "$as_me:5051: found $ac_dir/$ac_word" >&5
5058 if test -n "$AR"; then
5059 echo "$as_me:5059: result: $AR" >&5
5060 echo "${ECHO_T}$AR" >&6
5062 echo "$as_me:5062: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5067 if test -z "$ac_cv_prog_AR"; then
5069 # Extract the first word of "ar", so it can be a program name with args.
5070 set dummy ar; ac_word=$2
5071 echo "$as_me:5071: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5073 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 if test -n "$ac_ct_AR"; then
5077 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5079 ac_save_IFS=$IFS; IFS=$ac_path_separator
5081 for ac_dir in $ac_dummy; do
5083 test -z "$ac_dir" && ac_dir=.
5084 $as_executable_p "$ac_dir/$ac_word" || continue
5085 ac_cv_prog_ac_ct_AR="ar"
5086 echo "$as_me:5086: found $ac_dir/$ac_word" >&5
5090 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5093 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5094 if test -n "$ac_ct_AR"; then
5095 echo "$as_me:5095: result: $ac_ct_AR" >&5
5096 echo "${ECHO_T}$ac_ct_AR" >&6
5098 echo "$as_me:5098: result: no" >&5
5099 echo "${ECHO_T}no" >&6
5107 echo "$as_me:5107: checking for options to update archives" >&5
5108 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5109 if test "${cf_cv_ar_flags+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 case "$cf_cv_system_name" in
5116 cat >mk_static_lib.sh <<-EOF
5121 exec \$MSVC_BIN -out:"\$out" \$@
5123 chmod +x mk_static_lib.sh
5124 AR=`pwd`/mk_static_lib.sh
5127 cf_cv_ar_flags=unknown
5128 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5131 # check if $ARFLAGS already contains this choice
5132 if test "x$ARFLAGS" != "x" ; then
5133 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5134 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5140 rm -f "conftest.$ac_cv_objext"
5143 cat >"conftest.$ac_ext" <<EOF
5144 #line 5144 "configure"
5145 int testdata[3] = { 123, 456, 789 };
5147 if { (eval echo "$as_me:5147: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>&5
5150 echo "$as_me:5150: \$? = $ac_status" >&5
5151 (exit "$ac_status"); } ; then
5152 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5153 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5154 if test -f conftest.a ; then
5155 cf_cv_ar_flags="$cf_ar_flags"
5159 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5161 echo "${as_me:-configure}:5161: testing cannot compile test-program ..." 1>&5
5166 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5171 echo "$as_me:5171: result: $cf_cv_ar_flags" >&5
5172 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5174 if test -n "$ARFLAGS" ; then
5175 if test -n "$cf_cv_ar_flags" ; then
5176 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5179 ARFLAGS=$cf_cv_ar_flags
5182 echo "$as_me:5182: checking if you have specified an install-prefix" >&5
5183 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5185 # Check whether --with-install-prefix or --without-install-prefix was given.
5186 if test "${with_install_prefix+set}" = set; then
5187 withval="$with_install_prefix"
5191 (*) DESTDIR="$withval"
5195 echo "$as_me:5195: result: $DESTDIR" >&5
5196 echo "${ECHO_T}$DESTDIR" >&6
5198 ###############################################################################
5200 # If we're cross-compiling, allow the user to override the tools and their
5201 # options. The configure script is oriented toward identifying the host
5202 # compiler, etc., but we need a build compiler to generate parts of the source.
5204 case "$cf_cv_system_name" in
5206 LDFLAGS="$LDFLAGS user32.lib"
5211 if test "$cross_compiling" = yes ; then
5213 # defaults that we might want to override
5214 : ${BUILD_CFLAGS:=''}
5215 : ${BUILD_CPPFLAGS:=''}
5216 : ${BUILD_LDFLAGS:=''}
5218 : ${BUILD_EXEEXT:='$x'}
5219 : ${BUILD_OBJEXT:='o'}
5221 # Check whether --with-build-cc or --without-build-cc was given.
5222 if test "${with_build_cc+set}" = set; then
5223 withval="$with_build_cc"
5226 for ac_prog in gcc clang c99 c89 cc cl
5228 # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 echo "$as_me:5230: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5232 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 if test -n "$BUILD_CC"; then
5236 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5238 ac_save_IFS=$IFS; IFS=$ac_path_separator
5240 for ac_dir in $ac_dummy; do
5242 test -z "$ac_dir" && ac_dir=.
5243 $as_executable_p "$ac_dir/$ac_word" || continue
5244 ac_cv_prog_BUILD_CC="$ac_prog"
5245 echo "$as_me:5245: found $ac_dir/$ac_word" >&5
5251 BUILD_CC=$ac_cv_prog_BUILD_CC
5252 if test -n "$BUILD_CC"; then
5253 echo "$as_me:5253: result: $BUILD_CC" >&5
5254 echo "${ECHO_T}$BUILD_CC" >&6
5256 echo "$as_me:5256: result: no" >&5
5257 echo "${ECHO_T}no" >&6
5260 test -n "$BUILD_CC" && break
5262 test -n "$BUILD_CC" || BUILD_CC="none"
5265 echo "$as_me:5265: checking for native build C compiler" >&5
5266 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5267 echo "$as_me:5267: result: $BUILD_CC" >&5
5268 echo "${ECHO_T}$BUILD_CC" >&6
5270 echo "$as_me:5270: checking for native build C preprocessor" >&5
5271 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5273 # Check whether --with-build-cpp or --without-build-cpp was given.
5274 if test "${with_build_cpp+set}" = set; then
5275 withval="$with_build_cpp"
5276 BUILD_CPP="$withval"
5278 BUILD_CPP='${BUILD_CC} -E'
5280 echo "$as_me:5280: result: $BUILD_CPP" >&5
5281 echo "${ECHO_T}$BUILD_CPP" >&6
5283 echo "$as_me:5283: checking for native build C flags" >&5
5284 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5286 # Check whether --with-build-cflags or --without-build-cflags was given.
5287 if test "${with_build_cflags+set}" = set; then
5288 withval="$with_build_cflags"
5289 BUILD_CFLAGS="$withval"
5291 echo "$as_me:5291: result: $BUILD_CFLAGS" >&5
5292 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5294 echo "$as_me:5294: checking for native build C preprocessor-flags" >&5
5295 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5297 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5298 if test "${with_build_cppflags+set}" = set; then
5299 withval="$with_build_cppflags"
5300 BUILD_CPPFLAGS="$withval"
5302 echo "$as_me:5302: result: $BUILD_CPPFLAGS" >&5
5303 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5305 echo "$as_me:5305: checking for native build linker-flags" >&5
5306 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5308 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5309 if test "${with_build_ldflags+set}" = set; then
5310 withval="$with_build_ldflags"
5311 BUILD_LDFLAGS="$withval"
5313 echo "$as_me:5313: result: $BUILD_LDFLAGS" >&5
5314 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5316 echo "$as_me:5316: checking for native build linker-libraries" >&5
5317 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5319 # Check whether --with-build-libs or --without-build-libs was given.
5320 if test "${with_build_libs+set}" = set; then
5321 withval="$with_build_libs"
5322 BUILD_LIBS="$withval"
5324 echo "$as_me:5324: result: $BUILD_LIBS" >&5
5325 echo "${ECHO_T}$BUILD_LIBS" >&6
5327 # this assumes we're on Unix.
5331 : ${BUILD_CC:='${CC}'}
5333 echo "$as_me:5333: checking if the build-compiler \"$BUILD_CC\" works" >&5
5334 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
5336 cf_save_crossed=$cross_compiling
5337 cf_save_ac_link=$ac_link
5339 cf_build_cppflags=$BUILD_CPPFLAGS
5340 test "$cf_build_cppflags" = "#" && cf_build_cppflags=
5341 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
5343 if test "$cross_compiling" = yes; then
5344 cf_ok_build_cc=unknown
5346 cat >"conftest.$ac_ext" <<_ACEOF
5347 #line 5347 "configure"
5348 #include "confdefs.h"
5350 int main(int argc, char *argv[])
5352 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
5356 rm -f "conftest$ac_exeext"
5357 if { (eval echo "$as_me:5357: \"$ac_link\"") >&5
5358 (eval $ac_link) 2>&5
5360 echo "$as_me:5360: \$? = $ac_status" >&5
5361 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5362 { (eval echo "$as_me:5362: \"$ac_try\"") >&5
5365 echo "$as_me:5365: \$? = $ac_status" >&5
5366 (exit "$ac_status"); }; }; then
5369 echo "$as_me: program exited with status $ac_status" >&5
5370 echo "$as_me: failed program was:" >&5
5371 cat "conftest.$ac_ext" >&5
5374 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5377 cross_compiling=$cf_save_crossed
5378 ac_link=$cf_save_ac_link
5380 echo "$as_me:5380: result: $cf_ok_build_cc" >&5
5381 echo "${ECHO_T}$cf_ok_build_cc" >&6
5383 if test "$cf_ok_build_cc" != yes
5385 { { echo "$as_me:5385: error: Cross-build requires two compilers.
5386 Use --with-build-cc to specify the native compiler." >&5
5387 echo "$as_me: error: Cross-build requires two compilers.
5388 Use --with-build-cc to specify the native compiler." >&2;}
5389 { (exit 1); exit 1; }; }
5393 : ${BUILD_CC:='${CC}'}
5394 : ${BUILD_CPP:='${CPP}'}
5395 : ${BUILD_CFLAGS:='${CFLAGS}'}
5396 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5397 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5398 : ${BUILD_LIBS:='${LIBS}'}
5399 : ${BUILD_EXEEXT:='$x'}
5400 : ${BUILD_OBJEXT:='o'}
5403 ###############################################################################
5405 ### Options to allow the user to specify the set of libraries which are used.
5406 ### Use "--without-normal --with-shared" to allow the default model to be
5407 ### shared, for example.
5410 echo "$as_me:5410: checking if libtool -version-number should be used" >&5
5411 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5413 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5414 if test "${enable_libtool_version+set}" = set; then
5415 enableval="$enable_libtool_version"
5416 test "$enableval" != no && enableval=yes
5417 if test "$enableval" != "yes" ; then
5418 cf_libtool_version=no
5420 cf_libtool_version=yes
5424 cf_libtool_version=yes
5427 echo "$as_me:5427: result: $cf_libtool_version" >&5
5428 echo "${ECHO_T}$cf_libtool_version" >&6
5430 if test "$cf_libtool_version" = yes ; then
5431 LIBTOOL_VERSION="-version-number"
5433 LIBTOOL_VERSION="-version-info"
5436 { echo "$as_me:5436: WARNING: VERSION was not set" >&5
5437 echo "$as_me: WARNING: VERSION was not set" >&2;}
5440 ABI_VERSION="$VERSION"
5441 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5443 echo "${as_me:-configure}:5443: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5447 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5448 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5450 echo "${as_me:-configure}:5450: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5454 { echo "$as_me:5454: WARNING: unexpected VERSION value: $VERSION" >&5
5455 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5462 # common library maintenance symbols that are convenient for libtool scripts:
5463 LIB_CREATE='${AR} -cr'
5464 LIB_OBJECT='${OBJECTS}'
5468 # symbols used to prop libtool up to enable it to determine what it should be
5476 echo "$as_me:5476: checking if you want to build libraries with libtool" >&5
5477 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5479 # Check whether --with-libtool or --without-libtool was given.
5480 if test "${with_libtool+set}" = set; then
5481 withval="$with_libtool"
5482 with_libtool=$withval
5486 echo "$as_me:5486: result: $with_libtool" >&5
5487 echo "${ECHO_T}$with_libtool" >&6
5488 if test "$with_libtool" != "no"; then
5490 if test "$with_libtool" != "yes" ; then
5492 if test "x$prefix" != xNONE; then
5493 cf_path_syntax="$prefix"
5495 cf_path_syntax="$ac_default_prefix"
5498 case ".$with_libtool" in
5503 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5505 (.\$\{*prefix\}*|.\$\{*dir\}*)
5506 eval with_libtool="$with_libtool"
5507 case ".$with_libtool" in
5509 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5514 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5517 { { echo "$as_me:5517: error: expected a pathname, not \"$with_libtool\"" >&5
5518 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5519 { (exit 1); exit 1; }; }
5523 LIBTOOL=$with_libtool
5525 if test -n "$ac_tool_prefix"; then
5526 for ac_prog in libtool glibtool
5528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5530 echo "$as_me:5530: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5532 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 if test -n "$LIBTOOL"; then
5536 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5538 ac_save_IFS=$IFS; IFS=$ac_path_separator
5540 for ac_dir in $ac_dummy; do
5542 test -z "$ac_dir" && ac_dir=.
5543 $as_executable_p "$ac_dir/$ac_word" || continue
5544 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5545 echo "$as_me:5545: found $ac_dir/$ac_word" >&5
5551 LIBTOOL=$ac_cv_prog_LIBTOOL
5552 if test -n "$LIBTOOL"; then
5553 echo "$as_me:5553: result: $LIBTOOL" >&5
5554 echo "${ECHO_T}$LIBTOOL" >&6
5556 echo "$as_me:5556: result: no" >&5
5557 echo "${ECHO_T}no" >&6
5560 test -n "$LIBTOOL" && break
5563 if test -z "$LIBTOOL"; then
5564 ac_ct_LIBTOOL=$LIBTOOL
5565 for ac_prog in libtool glibtool
5567 # Extract the first word of "$ac_prog", so it can be a program name with args.
5568 set dummy $ac_prog; ac_word=$2
5569 echo "$as_me:5569: checking for $ac_word" >&5
5570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 if test -n "$ac_ct_LIBTOOL"; then
5575 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5577 ac_save_IFS=$IFS; IFS=$ac_path_separator
5579 for ac_dir in $ac_dummy; do
5581 test -z "$ac_dir" && ac_dir=.
5582 $as_executable_p "$ac_dir/$ac_word" || continue
5583 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5584 echo "$as_me:5584: found $ac_dir/$ac_word" >&5
5590 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5591 if test -n "$ac_ct_LIBTOOL"; then
5592 echo "$as_me:5592: result: $ac_ct_LIBTOOL" >&5
5593 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5595 echo "$as_me:5595: result: no" >&5
5596 echo "${ECHO_T}no" >&6
5599 test -n "$ac_ct_LIBTOOL" && break
5601 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5603 LIBTOOL=$ac_ct_LIBTOOL
5606 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5608 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.].*//'`
5610 cf_cv_libtool_version=
5612 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5614 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5617 unset ac_cv_prog_ac_ct_LIBTOOL
5621 if test -n "$ac_tool_prefix"; then
5622 for ac_prog in glibtool
5624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5626 echo "$as_me:5626: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 if test -n "$LIBTOOL"; then
5632 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5634 ac_save_IFS=$IFS; IFS=$ac_path_separator
5636 for ac_dir in $ac_dummy; do
5638 test -z "$ac_dir" && ac_dir=.
5639 $as_executable_p "$ac_dir/$ac_word" || continue
5640 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5641 echo "$as_me:5641: found $ac_dir/$ac_word" >&5
5647 LIBTOOL=$ac_cv_prog_LIBTOOL
5648 if test -n "$LIBTOOL"; then
5649 echo "$as_me:5649: result: $LIBTOOL" >&5
5650 echo "${ECHO_T}$LIBTOOL" >&6
5652 echo "$as_me:5652: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5656 test -n "$LIBTOOL" && break
5659 if test -z "$LIBTOOL"; then
5660 ac_ct_LIBTOOL=$LIBTOOL
5661 for ac_prog in glibtool
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy $ac_prog; ac_word=$2
5665 echo "$as_me:5665: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 if test -n "$ac_ct_LIBTOOL"; then
5671 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5673 ac_save_IFS=$IFS; IFS=$ac_path_separator
5675 for ac_dir in $ac_dummy; do
5677 test -z "$ac_dir" && ac_dir=.
5678 $as_executable_p "$ac_dir/$ac_word" || continue
5679 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5680 echo "$as_me:5680: found $ac_dir/$ac_word" >&5
5686 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5687 if test -n "$ac_ct_LIBTOOL"; then
5688 echo "$as_me:5688: result: $ac_ct_LIBTOOL" >&5
5689 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5691 echo "$as_me:5691: result: no" >&5
5692 echo "${ECHO_T}no" >&6
5695 test -n "$ac_ct_LIBTOOL" && break
5697 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5699 LIBTOOL=$ac_ct_LIBTOOL
5702 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5704 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.].*//'`
5706 cf_cv_libtool_version=
5708 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5712 if test -z "$LIBTOOL" ; then
5713 { { echo "$as_me:5713: error: Cannot find libtool" >&5
5714 echo "$as_me: error: Cannot find libtool" >&2;}
5715 { (exit 1); exit 1; }; }
5717 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5718 LIB_OBJECT='${OBJECTS:.o=.lo}'
5720 LIB_CLEAN='${LIBTOOL} --mode=clean'
5721 LIB_COMPILE='${LIBTOOL} --mode=compile'
5722 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5723 LIB_INSTALL='${LIBTOOL} --mode=install'
5724 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5727 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5729 echo "$as_me:5729: checking version of $LIBTOOL" >&5
5730 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5732 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5734 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.].*//'`
5736 cf_cv_libtool_version=
5738 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5740 echo "$as_me:5740: result: $cf_cv_libtool_version" >&5
5741 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5742 if test -n "$cf_cv_libtool_version"
5744 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5745 case "x$cf_check_libtool_version" in
5746 (*...GNU-libtool...*)
5749 { { echo "$as_me:5749: error: This is not GNU libtool" >&5
5750 echo "$as_me: error: This is not GNU libtool" >&2;}
5751 { (exit 1); exit 1; }; }
5755 { { echo "$as_me:5755: error: No version found for $LIBTOOL" >&5
5756 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5757 { (exit 1); exit 1; }; }
5760 { { echo "$as_me:5760: error: GNU libtool has not been found" >&5
5761 echo "$as_me: error: GNU libtool has not been found" >&2;}
5762 { (exit 1); exit 1; }; }
5765 # special hack to add -no-undefined (which libtool should do for itself)
5767 case "$cf_cv_system_name" in
5768 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5769 LT_UNDEF=-no-undefined
5773 # special hack to add --tag option for C++ compiler
5774 case "$cf_cv_libtool_version" in
5775 (1.[5-9]*|[2-9].[0-9.a-z]*)
5776 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5777 LIBTOOL="$LIBTOOL --tag=CC"
5780 LIBTOOL_CXX="$LIBTOOL"
5788 test -z "$LIBTOOL" && ECHO_LT=
5790 if test "$with_libtool" != "no" ; then
5792 cf_list_models="$cf_list_models libtool"
5796 echo "$as_me:5796: checking if you want to build shared libraries" >&5
5797 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5799 # Check whether --with-shared or --without-shared was given.
5800 if test "${with_shared+set}" = set; then
5801 withval="$with_shared"
5802 with_shared=$withval
5806 echo "$as_me:5806: result: $with_shared" >&5
5807 echo "${ECHO_T}$with_shared" >&6
5808 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5810 echo "$as_me:5810: checking if you want to build static libraries" >&5
5811 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5813 # Check whether --with-normal or --without-normal was given.
5814 if test "${with_normal+set}" = set; then
5815 withval="$with_normal"
5816 with_normal=$withval
5820 echo "$as_me:5820: result: $with_normal" >&5
5821 echo "${ECHO_T}$with_normal" >&6
5822 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5824 echo "$as_me:5824: checking if you want to build debug libraries" >&5
5825 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5827 # Check whether --with-debug or --without-debug was given.
5828 if test "${with_debug+set}" = set; then
5829 withval="$with_debug"
5834 echo "$as_me:5834: result: $with_debug" >&5
5835 echo "${ECHO_T}$with_debug" >&6
5836 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5838 echo "$as_me:5838: checking if you want to build profiling libraries" >&5
5839 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5841 # Check whether --with-profile or --without-profile was given.
5842 if test "${with_profile+set}" = set; then
5843 withval="$with_profile"
5844 with_profile=$withval
5848 echo "$as_me:5848: result: $with_profile" >&5
5849 echo "${ECHO_T}$with_profile" >&6
5850 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5854 if test "X$cf_with_cxx_binding" != Xno; then
5855 if test "x$with_shared" = "xyes"; then
5856 echo "$as_me:5856: checking if you want to build C++ shared libraries" >&5
5857 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5859 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5860 if test "${with_cxx_shared+set}" = set; then
5861 withval="$with_cxx_shared"
5862 with_shared_cxx=$withval
5866 echo "$as_me:5866: result: $with_shared_cxx" >&5
5867 echo "${ECHO_T}$with_shared_cxx" >&6
5871 ###############################################################################
5873 echo "$as_me:5873: checking for specified models" >&5
5874 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5875 test -z "$cf_list_models" && cf_list_models=normal
5876 test "$with_libtool" != "no" && cf_list_models=libtool
5877 echo "$as_me:5877: result: $cf_list_models" >&5
5878 echo "${ECHO_T}$cf_list_models" >&6
5880 ### Use the first model as the default, and save its suffix for use in building
5881 ### up test-applications.
5882 echo "$as_me:5882: checking for default model" >&5
5883 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5884 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5885 echo "$as_me:5885: result: $DFT_LWR_MODEL" >&5
5886 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5888 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5899 echo "$as_me:5899: checking if you want to have a library-prefix" >&5
5900 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5902 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5903 if test "${with_lib_prefix+set}" = set; then
5904 withval="$with_lib_prefix"
5905 with_lib_prefix=$withval
5907 with_lib_prefix=auto
5909 echo "$as_me:5909: result: $with_lib_prefix" >&5
5910 echo "${ECHO_T}$with_lib_prefix" >&6
5912 if test "$with_lib_prefix" = auto
5915 case "$cf_cv_system_name" in
5917 if test "$DFT_LWR_MODEL" = libtool; then
5926 (*) LIB_PREFIX='lib'
5929 cf_prefix=$LIB_PREFIX
5931 elif test "$with_lib_prefix" = no
5935 LIB_PREFIX=$with_lib_prefix
5940 echo "$as_me:5940: checking for PATH separator" >&5
5941 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5942 case "$cf_cv_system_name" in
5943 (os2*) PATH_SEPARATOR=';' ;;
5944 (*) ${PATH_SEPARATOR:=':'} ;;
5947 echo "$as_me:5947: result: $PATH_SEPARATOR" >&5
5948 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5950 # headers needed for checks...
5951 echo "$as_me:5951: checking for ANSI C header files" >&5
5952 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5953 if test "${ac_cv_header_stdc+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 cat >"conftest.$ac_ext" <<_ACEOF
5957 #line 5957 "configure"
5958 #include "confdefs.h"
5965 if { (eval echo "$as_me:5965: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5966 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5968 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5970 cat conftest.err >&5
5971 echo "$as_me:5971: \$? = $ac_status" >&5
5972 (exit "$ac_status"); } >/dev/null; then
5973 if test -s conftest.err; then
5974 ac_cpp_err=$ac_c_preproc_warn_flag
5981 if test -z "$ac_cpp_err"; then
5982 ac_cv_header_stdc=yes
5984 echo "$as_me: failed program was:" >&5
5985 cat "conftest.$ac_ext" >&5
5986 ac_cv_header_stdc=no
5988 rm -f conftest.err "conftest.$ac_ext"
5990 if test $ac_cv_header_stdc = yes; then
5991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5992 cat >"conftest.$ac_ext" <<_ACEOF
5993 #line 5993 "configure"
5994 #include "confdefs.h"
5998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5999 $EGREP "memchr" >/dev/null 2>&1; then
6002 ac_cv_header_stdc=no
6008 if test $ac_cv_header_stdc = yes; then
6009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6010 cat >"conftest.$ac_ext" <<_ACEOF
6011 #line 6011 "configure"
6012 #include "confdefs.h"
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017 $EGREP "free" >/dev/null 2>&1; then
6020 ac_cv_header_stdc=no
6026 if test $ac_cv_header_stdc = yes; then
6027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6028 if test "$cross_compiling" = yes; then
6031 cat >"conftest.$ac_ext" <<_ACEOF
6032 #line 6032 "configure"
6033 #include "confdefs.h"
6035 #if ((' ' & 0x0FF) == 0x020)
6036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6039 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6040 || ('j' <= (c) && (c) <= 'r') \
6041 || ('s' <= (c) && (c) <= 'z'))
6042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6050 for (i = 0; i < 256; i++)
6051 if (XOR (islower (i), ISLOWER (i))
6052 || toupper (i) != TOUPPER (i))
6054 $ac_main_return (0);
6057 rm -f "conftest$ac_exeext"
6058 if { (eval echo "$as_me:6058: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>&5
6061 echo "$as_me:6061: \$? = $ac_status" >&5
6062 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6063 { (eval echo "$as_me:6063: \"$ac_try\"") >&5
6066 echo "$as_me:6066: \$? = $ac_status" >&5
6067 (exit "$ac_status"); }; }; then
6070 echo "$as_me: program exited with status $ac_status" >&5
6071 echo "$as_me: failed program was:" >&5
6072 cat "conftest.$ac_ext" >&5
6073 ac_cv_header_stdc=no
6075 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6079 echo "$as_me:6079: result: $ac_cv_header_stdc" >&5
6080 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6081 if test $ac_cv_header_stdc = yes; then
6083 cat >>confdefs.h <<\EOF
6084 #define STDC_HEADERS 1
6089 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6091 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6092 inttypes.h stdint.h unistd.h
6094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6095 echo "$as_me:6095: checking for $ac_header" >&5
6096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 cat >"conftest.$ac_ext" <<_ACEOF
6101 #line 6101 "configure"
6102 #include "confdefs.h"
6103 $ac_includes_default
6104 #include <$ac_header>
6106 rm -f "conftest.$ac_objext"
6107 if { (eval echo "$as_me:6107: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6110 echo "$as_me:6110: \$? = $ac_status" >&5
6111 (exit "$ac_status"); } &&
6112 { ac_try='test -s "conftest.$ac_objext"'
6113 { (eval echo "$as_me:6113: \"$ac_try\"") >&5
6116 echo "$as_me:6116: \$? = $ac_status" >&5
6117 (exit "$ac_status"); }; }; then
6118 eval "$as_ac_Header=yes"
6120 echo "$as_me: failed program was:" >&5
6121 cat "conftest.$ac_ext" >&5
6122 eval "$as_ac_Header=no"
6124 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6126 echo "$as_me:6126: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6127 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6128 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6129 cat >>confdefs.h <<EOF
6130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6136 echo "$as_me:6136: checking whether exit is declared" >&5
6137 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
6138 if test "${ac_cv_have_decl_exit+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 cat >"conftest.$ac_ext" <<_ACEOF
6142 #line 6142 "configure"
6143 #include "confdefs.h"
6144 $ac_includes_default
6149 char *p = (char *) exit; (void) p;
6156 rm -f "conftest.$ac_objext"
6157 if { (eval echo "$as_me:6157: \"$ac_compile\"") >&5
6158 (eval $ac_compile) 2>&5
6160 echo "$as_me:6160: \$? = $ac_status" >&5
6161 (exit "$ac_status"); } &&
6162 { ac_try='test -s "conftest.$ac_objext"'
6163 { (eval echo "$as_me:6163: \"$ac_try\"") >&5
6166 echo "$as_me:6166: \$? = $ac_status" >&5
6167 (exit "$ac_status"); }; }; then
6168 ac_cv_have_decl_exit=yes
6170 echo "$as_me: failed program was:" >&5
6171 cat "conftest.$ac_ext" >&5
6172 ac_cv_have_decl_exit=no
6174 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6176 echo "$as_me:6176: result: $ac_cv_have_decl_exit" >&5
6177 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
6180 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6181 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6182 echo "$as_me:6182: checking for $ac_hdr that defines DIR" >&5
6183 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 cat >"conftest.$ac_ext" <<_ACEOF
6188 #line 6188 "configure"
6189 #include "confdefs.h"
6190 #include <sys/types.h>
6202 rm -f "conftest.$ac_objext"
6203 if { (eval echo "$as_me:6203: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>&5
6206 echo "$as_me:6206: \$? = $ac_status" >&5
6207 (exit "$ac_status"); } &&
6208 { ac_try='test -s "conftest.$ac_objext"'
6209 { (eval echo "$as_me:6209: \"$ac_try\"") >&5
6212 echo "$as_me:6212: \$? = $ac_status" >&5
6213 (exit "$ac_status"); }; }; then
6214 eval "$as_ac_Header=yes"
6216 echo "$as_me: failed program was:" >&5
6217 cat "conftest.$ac_ext" >&5
6218 eval "$as_ac_Header=no"
6220 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6222 echo "$as_me:6222: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6223 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6224 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6225 cat >>confdefs.h <<EOF
6226 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6229 ac_header_dirent=$ac_hdr; break
6233 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6234 if test $ac_header_dirent = dirent.h; then
6235 echo "$as_me:6235: checking for opendir in -ldir" >&5
6236 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6237 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 ac_check_lib_save_LIBS=$LIBS
6242 cat >"conftest.$ac_ext" <<_ACEOF
6243 #line 6243 "configure"
6244 #include "confdefs.h"
6246 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6261 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6262 if { (eval echo "$as_me:6262: \"$ac_link\"") >&5
6263 (eval $ac_link) 2>&5
6265 echo "$as_me:6265: \$? = $ac_status" >&5
6266 (exit "$ac_status"); } &&
6267 { ac_try='test -s "conftest$ac_exeext"'
6268 { (eval echo "$as_me:6268: \"$ac_try\"") >&5
6271 echo "$as_me:6271: \$? = $ac_status" >&5
6272 (exit "$ac_status"); }; }; then
6273 ac_cv_lib_dir_opendir=yes
6275 echo "$as_me: failed program was:" >&5
6276 cat "conftest.$ac_ext" >&5
6277 ac_cv_lib_dir_opendir=no
6279 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6280 LIBS=$ac_check_lib_save_LIBS
6282 echo "$as_me:6282: result: $ac_cv_lib_dir_opendir" >&5
6283 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6284 if test "$ac_cv_lib_dir_opendir" = yes; then
6289 echo "$as_me:6289: checking for opendir in -lx" >&5
6290 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6291 if test "${ac_cv_lib_x_opendir+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 ac_check_lib_save_LIBS=$LIBS
6296 cat >"conftest.$ac_ext" <<_ACEOF
6297 #line 6297 "configure"
6298 #include "confdefs.h"
6300 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6315 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6316 if { (eval echo "$as_me:6316: \"$ac_link\"") >&5
6317 (eval $ac_link) 2>&5
6319 echo "$as_me:6319: \$? = $ac_status" >&5
6320 (exit "$ac_status"); } &&
6321 { ac_try='test -s "conftest$ac_exeext"'
6322 { (eval echo "$as_me:6322: \"$ac_try\"") >&5
6325 echo "$as_me:6325: \$? = $ac_status" >&5
6326 (exit "$ac_status"); }; }; then
6327 ac_cv_lib_x_opendir=yes
6329 echo "$as_me: failed program was:" >&5
6330 cat "conftest.$ac_ext" >&5
6331 ac_cv_lib_x_opendir=no
6333 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6334 LIBS=$ac_check_lib_save_LIBS
6336 echo "$as_me:6336: result: $ac_cv_lib_x_opendir" >&5
6337 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6338 if test "$ac_cv_lib_x_opendir" = yes; then
6344 ###############################################################################
6346 echo "$as_me:6346: checking if you want to build a separate terminfo library" >&5
6347 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
6349 # Check whether --with-termlib or --without-termlib was given.
6350 if test "${with_termlib+set}" = set; then
6351 withval="$with_termlib"
6352 with_termlib=$withval
6356 echo "$as_me:6356: result: $with_termlib" >&5
6357 echo "${ECHO_T}$with_termlib" >&6
6359 echo "$as_me:6359: checking if you want to build a separate tic library" >&5
6360 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
6362 # Check whether --with-ticlib or --without-ticlib was given.
6363 if test "${with_ticlib+set}" = set; then
6364 withval="$with_ticlib"
6365 with_ticlib=$withval
6369 echo "$as_me:6369: result: $with_ticlib" >&5
6370 echo "${ECHO_T}$with_ticlib" >&6
6372 if test X"$CC_G_OPT" = X"" ; then
6374 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
6377 if test X"$CXX_G_OPT" = X"" ; then
6379 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
6382 echo "$as_me:6382: checking for default loader flags" >&5
6383 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6384 case "$DFT_LWR_MODEL" in
6385 (libtool) LD_MODEL='' ;;
6386 (normal) LD_MODEL='' ;;
6387 (debug) LD_MODEL=$CC_G_OPT ;;
6388 (profile) LD_MODEL='-pg';;
6389 (shared) LD_MODEL='' ;;
6391 echo "$as_me:6391: result: $LD_MODEL" >&5
6392 echo "${ECHO_T}$LD_MODEL" >&6
6394 case "$DFT_LWR_MODEL" in
6397 echo "$as_me:6397: checking if rpath option should be used" >&5
6398 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
6400 # Check whether --enable-rpath or --disable-rpath was given.
6401 if test "${enable_rpath+set}" = set; then
6402 enableval="$enable_rpath"
6403 cf_cv_enable_rpath=$enableval
6405 cf_cv_enable_rpath=no
6407 echo "$as_me:6407: result: $cf_cv_enable_rpath" >&5
6408 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
6410 echo "$as_me:6410: checking if shared libraries should be relinked during install" >&5
6411 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
6413 # Check whether --enable-relink or --disable-relink was given.
6414 if test "${enable_relink+set}" = set; then
6415 enableval="$enable_relink"
6416 cf_cv_do_relink=$enableval
6420 echo "$as_me:6420: result: $cf_cv_do_relink" >&5
6421 echo "${ECHO_T}$cf_cv_do_relink" >&6
6425 # we will build libraries one-level down.
6429 if test "x$cf_cv_enable_rpath" != xno
6431 echo "$as_me:6431: checking for an rpath option" >&5
6432 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
6433 case "$cf_cv_system_name" in
6435 if test "$GCC" = yes; then
6436 LD_RPATH_OPT="-Wl,-rpath,"
6438 LD_RPATH_OPT="-rpath "
6441 (linux*|gnu*|k*bsd*-gnu|freebsd*)
6442 LD_RPATH_OPT="-Wl,-rpath,"
6444 (openbsd[2-9].*|mirbsd*)
6445 LD_RPATH_OPT="-Wl,-rpath,"
6448 LD_RPATH_OPT="-rpath "
6451 LD_RPATH_OPT="-Wl,-rpath,"
6454 LD_RPATH_OPT="-rpath "
6462 echo "$as_me:6462: result: $LD_RPATH_OPT" >&5
6463 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6465 case "x$LD_RPATH_OPT" in
6467 echo "$as_me:6467: checking if we need a space after rpath option" >&5
6468 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6469 cf_save_LIBS="$LIBS"
6474 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6476 for cf_add_1lib in $cf_add_0lib; do
6477 for cf_add_2lib in $cf_add_libs; do
6478 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6483 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6487 cat >"conftest.$ac_ext" <<_ACEOF
6488 #line 6488 "configure"
6489 #include "confdefs.h"
6499 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6500 if { (eval echo "$as_me:6500: \"$ac_link\"") >&5
6501 (eval $ac_link) 2>&5
6503 echo "$as_me:6503: \$? = $ac_status" >&5
6504 (exit "$ac_status"); } &&
6505 { ac_try='test -s "conftest$ac_exeext"'
6506 { (eval echo "$as_me:6506: \"$ac_try\"") >&5
6509 echo "$as_me:6509: \$? = $ac_status" >&5
6510 (exit "$ac_status"); }; }; then
6513 echo "$as_me: failed program was:" >&5
6514 cat "conftest.$ac_ext" >&5
6517 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6518 LIBS="$cf_save_LIBS"
6519 echo "$as_me:6519: result: $cf_rpath_space" >&5
6520 echo "${ECHO_T}$cf_rpath_space" >&6
6521 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6530 INSTALL_LIB="-m 644"
6531 : ${rel_builddir:=.}
6537 cf_cv_do_symlinks=no
6539 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6541 echo "$as_me:6541: checking if release/abi version should be used for shared libs" >&5
6542 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6544 # Check whether --with-shlib-version or --without-shlib-version was given.
6545 if test "${with_shlib_version+set}" = set; then
6546 withval="$with_shlib_version"
6547 test -z "$withval" && withval=auto
6550 cf_cv_shlib_version=auto
6553 cf_cv_shlib_version=$withval
6556 echo "$as_me:6556: result: $withval" >&5
6557 echo "${ECHO_T}$withval" >&6
6558 { { echo "$as_me:6558: error: option value must be one of: rel, abi, or auto" >&5
6559 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6560 { (exit 1); exit 1; }; }
6565 cf_cv_shlib_version=auto
6567 echo "$as_me:6567: result: $cf_cv_shlib_version" >&5
6568 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6573 # Some less-capable ports of gcc support only -fpic
6577 if test "$GCC" = yes
6581 case "$cf_cv_system_name" in
6582 (*linux*) # e.g., PGI compiler
6588 if test "$cf_try_fPIC" = yes
6590 echo "$as_me:6590: checking which $CC option to use" >&5
6591 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6592 cf_save_CFLAGS="$CFLAGS"
6593 for CC_SHARED_OPTS in -fPIC -fpic ''
6595 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6596 cat >"conftest.$ac_ext" <<_ACEOF
6597 #line 6597 "configure"
6598 #include "confdefs.h"
6608 rm -f "conftest.$ac_objext"
6609 if { (eval echo "$as_me:6609: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>&5
6612 echo "$as_me:6612: \$? = $ac_status" >&5
6613 (exit "$ac_status"); } &&
6614 { ac_try='test -s "conftest.$ac_objext"'
6615 { (eval echo "$as_me:6615: \"$ac_try\"") >&5
6618 echo "$as_me:6618: \$? = $ac_status" >&5
6619 (exit "$ac_status"); }; }; then
6622 echo "$as_me: failed program was:" >&5
6623 cat "conftest.$ac_ext" >&5
6625 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6627 echo "$as_me:6627: result: $CC_SHARED_OPTS" >&5
6628 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6629 CFLAGS="$cf_save_CFLAGS"
6632 cf_cv_shlib_version_infix=no
6634 case "$cf_cv_system_name" in
6635 (aix4.3-9*|aix[5-7]*)
6636 if test "$GCC" = yes; then
6637 CC_SHARED_OPTS='-Wl,-brtl'
6638 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6640 CC_SHARED_OPTS='-brtl'
6641 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6642 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6646 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6650 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6651 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6652 cf_cv_shlib_version=cygdll
6653 cf_cv_shlib_version_infix=cygdll
6656 cat >mk_shared_lib.sh <<-CF_EOF
6659 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6662 Linking shared library
6663 ** SHARED_LIB \$SHARED_LIB
6664 ** IMPORT_LIB \$IMPORT_LIB
6666 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6668 chmod +x mk_shared_lib.sh
6672 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6673 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6674 cf_cv_shlib_version=msysdll
6675 cf_cv_shlib_version_infix=msysdll
6678 cat >mk_shared_lib.sh <<-CF_EOF
6681 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6684 Linking shared library
6685 ** SHARED_LIB \$SHARED_LIB
6686 ** IMPORT_LIB \$IMPORT_LIB
6688 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6690 chmod +x mk_shared_lib.sh
6693 cf_try_cflags="no-cpp-precomp"
6694 CC_SHARED_OPTS="-dynamic"
6695 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6696 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6697 cf_cv_shlib_version_infix=yes
6698 echo "$as_me:6698: checking if ld -search_paths_first works" >&5
6699 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6700 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 cf_save_LDFLAGS=$LDFLAGS
6705 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6706 cat >"conftest.$ac_ext" <<_ACEOF
6707 #line 6707 "configure"
6708 #include "confdefs.h"
6718 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6719 if { (eval echo "$as_me:6719: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>&5
6722 echo "$as_me:6722: \$? = $ac_status" >&5
6723 (exit "$ac_status"); } &&
6724 { ac_try='test -s "conftest$ac_exeext"'
6725 { (eval echo "$as_me:6725: \"$ac_try\"") >&5
6728 echo "$as_me:6728: \$? = $ac_status" >&5
6729 (exit "$ac_status"); }; }; then
6730 cf_cv_ldflags_search_paths_first=yes
6732 echo "$as_me: failed program was:" >&5
6733 cat "conftest.$ac_ext" >&5
6734 cf_cv_ldflags_search_paths_first=no
6736 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6737 LDFLAGS=$cf_save_LDFLAGS
6739 echo "$as_me:6739: result: $cf_cv_ldflags_search_paths_first" >&5
6740 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6741 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6742 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6747 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6748 if test "$cf_cv_shlib_version" = rel; then
6749 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6751 cf_cv_shared_soname='`basename $@`'
6754 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6757 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6758 if test "$GCC" != yes; then
6761 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6762 INSTALL_LIB="-m 555"
6765 # (tested with gcc 2.7.2 -- I don't have c89)
6766 if test "$GCC" = yes; then
6767 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6770 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6772 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6773 # HP-UX shared libraries must be executable, and should be
6774 # readonly to exploit a quirk in the memory manager.
6775 INSTALL_LIB="-m 555"
6778 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6779 if test "$cf_cv_shlib_version" = rel; then
6780 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6782 cf_shared_soname='`basename $@`'
6785 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6788 if test "$cf_cv_enable_rpath" = yes ; then
6789 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6791 # tested with IRIX 5.2 and 'cc'.
6792 if test "$GCC" != yes; then
6793 CC_SHARED_OPTS='-KPIC'
6794 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6796 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6798 cf_cv_rm_so_locs=yes
6800 (linux*|gnu*|k*bsd*-gnu)
6801 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6802 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6803 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6805 if test "$cf_cv_enable_rpath" = yes ; then
6806 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6809 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6810 if test "$cf_cv_shlib_version" = rel; then
6811 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6813 cf_cv_shared_soname='`basename $@`'
6816 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6819 cf_cv_shlib_version=msvcdll
6820 cf_cv_shlib_version_infix=msvcdll
6823 if test "$DFT_LWR_MODEL" = "shared" ; then
6824 LOCAL_LDFLAGS="-link -dll"
6825 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6826 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6829 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6830 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6831 cat >mk_shared_lib.sh <<-CF_EOF
6834 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6839 Linking shared library
6840 ** SHARED LIB \$SHARED_LIB
6841 ** IMPORT_LIB \$IMPORT_LIB
6843 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6844 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6845 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6847 chmod +x mk_shared_lib.sh
6848 cat >mk_prog.sh <<-CF_EOF
6851 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6854 ldopts=("/subsystem:console")
6857 while test \$# -gt 0; do
6860 # ignore -link argument
6863 # ignore runtime-library option
6878 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6881 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6887 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6888 ldopts+=("\${linkarg}")
6896 ldopts+=("-out:\$1")
6905 if [ "\$isdll" -ne 0 ]; then
6906 for lib in \${libs[*]}; do
6907 ldopts+=("\$lib.dll.lib")
6910 for lib in \${libs[*]}; do
6911 ldopts+=("\$lib.lib")
6916 ** ld options: "\${ldopts[@]}"
6918 exec \$LD \${ldopts[@]}
6921 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6922 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6925 cf_cv_shlib_version=mingw
6926 cf_cv_shlib_version_infix=mingw
6929 if test "$DFT_LWR_MODEL" = "shared" ; then
6930 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6931 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6932 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6935 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6936 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6937 cat >mk_shared_lib.sh <<-CF_EOF
6940 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6943 Linking shared library
6944 ** SHARED_LIB \$SHARED_LIB
6945 ** IMPORT_LIB \$IMPORT_LIB
6947 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6949 chmod +x mk_shared_lib.sh
6951 (openbsd[2-9].*|mirbsd*)
6952 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6953 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6954 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6956 if test "$cf_cv_enable_rpath" = yes ; then
6957 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6959 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6961 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6962 if test "$cf_cv_shlib_version" = rel; then
6963 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6965 cf_cv_shared_soname='`basename $@`'
6968 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6972 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6976 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6978 (nto-qnx*|openbsd*|freebsd[12].*)
6979 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6980 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6981 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6983 (dragonfly*|freebsd*)
6984 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6985 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6986 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6987 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6988 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6991 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6992 if test "$cf_cv_shlib_version" = rel; then
6993 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6995 cf_cv_shared_soname='`basename $@`'
6998 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7001 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7002 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7003 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7004 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7005 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7006 if test "$cf_cv_shlib_version" = auto; then
7007 if test -f /usr/libexec/ld.elf_so; then
7008 cf_cv_shlib_version=abi
7010 cf_cv_shlib_version=rel
7014 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7015 if test "$cf_cv_shlib_version" = rel; then
7016 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7018 cf_cv_shared_soname='`basename $@`'
7021 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7023 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
7027 # tested with OSF/1 V3.2 and 'cc'
7028 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7029 # link with shared libs).
7030 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7033 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7036 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7037 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7038 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7039 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7041 cf_cv_rm_so_locs=yes
7043 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
7044 # tested with osr5.0.5
7045 if test "$GCC" != yes; then
7046 CC_SHARED_OPTS='-belf -KPIC'
7048 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7049 if test "$cf_cv_enable_rpath" = yes ; then
7050 # only way is to set LD_RUN_PATH but no switch for it
7053 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7054 LINK_PROGS='LD_RUN_PATH=${libdir}'
7055 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7058 # tested with SunOS 4.1.1 and gcc 2.7.0
7059 if test "$GCC" != yes; then
7060 CC_SHARED_OPTS='-KPIC'
7062 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
7063 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7066 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7067 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7068 if test "$DFT_LWR_MODEL" = "shared" ; then
7069 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7070 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7072 if test "$cf_cv_enable_rpath" = yes ; then
7073 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7076 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7077 if test "$cf_cv_shlib_version" = rel; then
7078 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7080 cf_cv_shared_soname='`basename $@`'
7083 if test "$GCC" != yes; then
7084 cf_save_CFLAGS="$CFLAGS"
7085 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7087 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7088 cat >"conftest.$ac_ext" <<_ACEOF
7089 #line 7089 "configure"
7090 #include "confdefs.h"
7100 rm -f "conftest.$ac_objext"
7101 if { (eval echo "$as_me:7101: \"$ac_compile\"") >&5
7102 (eval $ac_compile) 2>&5
7104 echo "$as_me:7104: \$? = $ac_status" >&5
7105 (exit "$ac_status"); } &&
7106 { ac_try='test -s "conftest.$ac_objext"'
7107 { (eval echo "$as_me:7107: \"$ac_try\"") >&5
7110 echo "$as_me:7110: \$? = $ac_status" >&5
7111 (exit "$ac_status"); }; }; then
7114 echo "$as_me: failed program was:" >&5
7115 cat "conftest.$ac_ext" >&5
7117 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7119 CFLAGS="$cf_save_CFLAGS"
7120 CC_SHARED_OPTS=$cf_shared_opts
7121 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
7123 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7126 (sysv5uw7*|unix_sv*)
7127 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7128 if test "$GCC" != yes; then
7129 CC_SHARED_OPTS='-KPIC'
7131 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
7134 CC_SHARED_OPTS='unknown'
7135 MK_SHARED_LIB='echo unknown'
7139 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7140 case "$cf_cv_shlib_version" in
7142 case "$MK_SHARED_LIB" in
7144 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7147 { echo "$as_me:7147: WARNING: ignored --with-shlib-version" >&5
7148 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7154 if test -n "$cf_try_cflags"
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7157 "${as_me:-configure}"
7159 int main(int argc, char *argv[])
7162 return (argv[argc-1] == 0) ;
7165 cf_save_CFLAGS="$CFLAGS"
7166 for cf_opt in $cf_try_cflags
7168 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7169 echo "$as_me:7169: checking if CFLAGS option -$cf_opt works" >&5
7170 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7171 if { (eval echo "$as_me:7171: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>&5
7174 echo "$as_me:7174: \$? = $ac_status" >&5
7175 (exit "$ac_status"); }; then
7176 echo "$as_me:7176: result: yes" >&5
7177 echo "${ECHO_T}yes" >&6
7178 cf_save_CFLAGS="$CFLAGS"
7180 echo "$as_me:7180: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7184 CFLAGS="$cf_save_CFLAGS"
7187 # RPATH_LIST is a colon-separated list of directories
7188 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7189 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7191 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7193 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7195 echo "${as_me:-configure}:7195: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7197 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7199 echo "${as_me:-configure}:7199: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7201 for model in $cf_list_models ; do
7205 echo "$as_me:7205: checking for additional libtool options" >&5
7206 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
7208 # Check whether --with-libtool-opts or --without-libtool-opts was given.
7209 if test "${with_libtool_opts+set}" = set; then
7210 withval="$with_libtool_opts"
7211 with_libtool_opts=$withval
7213 with_libtool_opts=no
7215 echo "$as_me:7215: result: $with_libtool_opts" >&5
7216 echo "${ECHO_T}$with_libtool_opts" >&6
7218 case .$with_libtool_opts in
7222 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
7226 echo "$as_me:7226: checking if exported-symbols file should be used" >&5
7227 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
7229 # Check whether --with-export-syms or --without-export-syms was given.
7230 if test "${with_export_syms+set}" = set; then
7231 withval="$with_export_syms"
7232 with_export_syms=$withval
7236 if test "x$with_export_syms" = xyes
7238 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
7241 echo "$as_me:7241: result: $with_export_syms" >&5
7242 echo "${ECHO_T}$with_export_syms" >&6
7243 if test "x$with_export_syms" != xno
7245 EXPORT_SYMS="-export-symbols $with_export_syms"
7251 if test "$CC_SHARED_OPTS" = "unknown"; then
7252 { { echo "$as_me:7252: error: Shared libraries are not supported in this version" >&5
7253 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
7254 { (exit 1); exit 1; }; }
7256 # workaround for inept transition to PIE vs PIC...
7257 echo "$as_me:7257: checking if current CFLAGS link properly" >&5
7258 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
7259 cat >"conftest.$ac_ext" <<_ACEOF
7260 #line 7260 "configure"
7261 #include "confdefs.h"
7266 printf("Hello work\\n");
7271 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7272 if { (eval echo "$as_me:7272: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>&5
7275 echo "$as_me:7275: \$? = $ac_status" >&5
7276 (exit "$ac_status"); } &&
7277 { ac_try='test -s "conftest$ac_exeext"'
7278 { (eval echo "$as_me:7278: \"$ac_try\"") >&5
7281 echo "$as_me:7281: \$? = $ac_status" >&5
7282 (exit "$ac_status"); }; }; then
7285 echo "$as_me: failed program was:" >&5
7286 cat "conftest.$ac_ext" >&5
7289 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7290 echo "$as_me:7290: result: $cf_cflags_work" >&5
7291 echo "${ECHO_T}$cf_cflags_work" >&6
7292 if test "$cf_cflags_work" = no
7294 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
7296 echo "${as_me:-configure}:7296: testing try to work around by appending shared-options ..." 1>&5
7298 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
7301 echo "$as_me:7301: checking if versioned-symbols file should be used" >&5
7302 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
7304 # Check whether --with-versioned-syms or --without-versioned-syms was given.
7305 if test "${with_versioned_syms+set}" = set; then
7306 withval="$with_versioned_syms"
7307 with_versioned_syms=$withval
7309 with_versioned_syms=no
7311 case "x$with_versioned_syms" in
7313 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
7319 test -f "$with_versioned_syms" || { { echo "$as_me:7319: error: expected a filename: $with_versioned_syms" >&5
7320 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7321 { (exit 1); exit 1; }; }
7324 test -f "$with_versioned_syms" || { { echo "$as_me:7324: error: expected a filename: $with_versioned_syms" >&5
7325 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7326 { (exit 1); exit 1; }; }
7327 with_versioned_syms=`pwd`/"$with_versioned_syms"
7330 echo "$as_me:7330: result: $with_versioned_syms" >&5
7331 echo "${ECHO_T}$with_versioned_syms" >&6
7337 if test "x$with_versioned_syms" != xno
7339 RESULTING_SYMS=$with_versioned_syms
7340 case "x$MK_SHARED_LIB" in
7342 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
7343 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
7344 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7346 echo "${as_me:-configure}:7346: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7350 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
7351 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
7352 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7354 echo "${as_me:-configure}:7354: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7358 { echo "$as_me:7358: WARNING: this system does not support versioned-symbols" >&5
7359 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
7363 # Linux ld can selectively override scope, e.g., of symbols beginning with
7364 # "_" by first declaring some as global, and then using a wildcard to
7365 # declare the others as local. Some other loaders cannot do this. Check
7366 # by constructing a (very) simple shared library and inspecting its
7368 if test "x$VERSIONED_SYMS" != "x"
7370 echo "$as_me:7370: checking if wildcards can be used to selectively omit symbols" >&5
7371 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
7377 cat >conftest.ver <<EOF
7406 cat >conftest.$ac_ext <<EOF
7407 #line 7407 "configure"
7408 int _ismissing(void) { return 1; }
7409 int _localf1(void) { return 1; }
7410 int _localf2(void) { return 2; }
7411 int globalf1(void) { return 1; }
7412 int globalf2(void) { return 2; }
7413 int _sublocalf1(void) { return 1; }
7414 int _sublocalf2(void) { return 2; }
7415 int subglobalf1(void) { return 1; }
7416 int subglobalf2(void) { return 2; }
7418 cat >conftest.mk <<EOF
7421 CPPFLAGS=${CPPFLAGS}
7424 VERSIONED_SYMS=${VERSIONED_SYMS}
7425 RESULTING_SYMS=conftest.ver
7426 MK_SHARED_LIB=${MK_SHARED_LIB}
7427 conftest.so: conftest.$ac_cv_objext
7428 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
7431 # compile source, make library
7432 if make -f conftest.mk 2>&5 >/dev/null
7434 # test for missing symbol in either Data or Text section
7435 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
7436 test -n "$cf_missing" && WILDCARD_SYMS=yes
7438 echo "$as_me:7438: result: $WILDCARD_SYMS" >&5
7439 echo "${ECHO_T}$WILDCARD_SYMS" >&6
7448 ### Checks for special libraries, must be done up-front.
7451 echo "$as_me:7451: checking if you want to link with the GPM mouse library" >&5
7452 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
7454 # Check whether --with-gpm or --without-gpm was given.
7455 if test "${with_gpm+set}" = set; then
7461 echo "$as_me:7461: result: $with_gpm" >&5
7462 echo "${ECHO_T}$with_gpm" >&6
7464 if test "$with_gpm" != no ; then
7465 echo "$as_me:7465: checking for gpm.h" >&5
7466 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7467 if test "${ac_cv_header_gpm_h+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 cat >"conftest.$ac_ext" <<_ACEOF
7471 #line 7471 "configure"
7472 #include "confdefs.h"
7475 if { (eval echo "$as_me:7475: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7476 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7478 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7480 cat conftest.err >&5
7481 echo "$as_me:7481: \$? = $ac_status" >&5
7482 (exit "$ac_status"); } >/dev/null; then
7483 if test -s conftest.err; then
7484 ac_cpp_err=$ac_c_preproc_warn_flag
7491 if test -z "$ac_cpp_err"; then
7492 ac_cv_header_gpm_h=yes
7494 echo "$as_me: failed program was:" >&5
7495 cat "conftest.$ac_ext" >&5
7496 ac_cv_header_gpm_h=no
7498 rm -f conftest.err "conftest.$ac_ext"
7500 echo "$as_me:7500: result: $ac_cv_header_gpm_h" >&5
7501 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7502 if test "$ac_cv_header_gpm_h" = yes; then
7504 cat >>confdefs.h <<\EOF
7505 #define HAVE_GPM_H 1
7508 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7509 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7511 echo "${as_me:-configure}:7511: testing assuming we really have GPM library ..." 1>&5
7513 cat >>confdefs.h <<\EOF
7514 #define HAVE_LIBGPM 1
7519 echo "$as_me:7519: checking for Gpm_Open in -lgpm" >&5
7520 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7521 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 ac_check_lib_save_LIBS=$LIBS
7526 cat >"conftest.$ac_ext" <<_ACEOF
7527 #line 7527 "configure"
7528 #include "confdefs.h"
7530 /* Override any gcc2 internal prototype to avoid an error. */
7534 /* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7545 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7546 if { (eval echo "$as_me:7546: \"$ac_link\"") >&5
7547 (eval $ac_link) 2>&5
7549 echo "$as_me:7549: \$? = $ac_status" >&5
7550 (exit "$ac_status"); } &&
7551 { ac_try='test -s "conftest$ac_exeext"'
7552 { (eval echo "$as_me:7552: \"$ac_try\"") >&5
7555 echo "$as_me:7555: \$? = $ac_status" >&5
7556 (exit "$ac_status"); }; }; then
7557 ac_cv_lib_gpm_Gpm_Open=yes
7559 echo "$as_me: failed program was:" >&5
7560 cat "conftest.$ac_ext" >&5
7561 ac_cv_lib_gpm_Gpm_Open=no
7563 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7564 LIBS=$ac_check_lib_save_LIBS
7566 echo "$as_me:7566: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7567 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7568 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7572 if test "$with_gpm" = maybe; then
7573 { echo "$as_me:7573: WARNING: Cannot link with GPM library" >&5
7574 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7577 { { echo "$as_me:7577: error: Cannot link with GPM library" >&5
7578 echo "$as_me: error: Cannot link with GPM library" >&2;}
7579 { (exit 1); exit 1; }; }
7588 test "$with_gpm" != maybe && { echo "$as_me:7588: WARNING: Cannot find GPM header" >&5
7589 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7596 if test "$with_gpm" != no ; then
7597 echo "$as_me:7597: checking if you want to load GPM dynamically" >&5
7598 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7600 # Check whether --with-dlsym or --without-dlsym was given.
7601 if test "${with_dlsym+set}" = set; then
7602 withval="$with_dlsym"
7607 echo "$as_me:7607: result: $with_dlsym" >&5
7608 echo "${ECHO_T}$with_dlsym" >&6
7609 if test "x$with_dlsym" = xyes ; then
7612 echo "$as_me:7612: checking for dlsym" >&5
7613 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7614 if test "${ac_cv_func_dlsym+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 cat >"conftest.$ac_ext" <<_ACEOF
7618 #line 7618 "configure"
7619 #include "confdefs.h"
7620 #define dlsym autoconf_temporary
7621 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7628 /* We use char because int might match the return type of a gcc2
7629 builtin and then its argument prototype would still apply. */
7636 /* The GNU C library defines stubs for functions which it implements
7637 to always fail with ENOSYS. Some functions are actually named
7638 something starting with __ and the normal name is an alias. */
7639 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7640 #error found stub for dlsym
7648 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7649 if { (eval echo "$as_me:7649: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>&5
7652 echo "$as_me:7652: \$? = $ac_status" >&5
7653 (exit "$ac_status"); } &&
7654 { ac_try='test -s "conftest$ac_exeext"'
7655 { (eval echo "$as_me:7655: \"$ac_try\"") >&5
7658 echo "$as_me:7658: \$? = $ac_status" >&5
7659 (exit "$ac_status"); }; }; then
7660 ac_cv_func_dlsym=yes
7662 echo "$as_me: failed program was:" >&5
7663 cat "conftest.$ac_ext" >&5
7666 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7668 echo "$as_me:7668: result: $ac_cv_func_dlsym" >&5
7669 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7670 if test "$ac_cv_func_dlsym" = yes; then
7675 echo "$as_me:7675: checking for dlsym in -ldl" >&5
7676 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7677 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 ac_check_lib_save_LIBS=$LIBS
7682 cat >"conftest.$ac_ext" <<_ACEOF
7683 #line 7683 "configure"
7684 #include "confdefs.h"
7686 /* Override any gcc2 internal prototype to avoid an error. */
7690 /* We use char because int might match the return type of a gcc2
7691 builtin and then its argument prototype would still apply. */
7701 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7702 if { (eval echo "$as_me:7702: \"$ac_link\"") >&5
7703 (eval $ac_link) 2>&5
7705 echo "$as_me:7705: \$? = $ac_status" >&5
7706 (exit "$ac_status"); } &&
7707 { ac_try='test -s "conftest$ac_exeext"'
7708 { (eval echo "$as_me:7708: \"$ac_try\"") >&5
7711 echo "$as_me:7711: \$? = $ac_status" >&5
7712 (exit "$ac_status"); }; }; then
7713 ac_cv_lib_dl_dlsym=yes
7715 echo "$as_me: failed program was:" >&5
7716 cat "conftest.$ac_ext" >&5
7717 ac_cv_lib_dl_dlsym=no
7719 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7720 LIBS=$ac_check_lib_save_LIBS
7722 echo "$as_me:7722: result: $ac_cv_lib_dl_dlsym" >&5
7723 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7724 if test "$ac_cv_lib_dl_dlsym" = yes; then
7732 if test "$cf_have_dlsym" = yes ; then
7733 test "$cf_have_libdl" = yes && {
7737 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7739 for cf_add_1lib in $cf_add_0lib; do
7740 for cf_add_2lib in $cf_add_libs; do
7741 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7746 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7751 echo "$as_me:7751: checking whether able to link to dl*() functions" >&5
7752 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7753 cat >"conftest.$ac_ext" <<_ACEOF
7754 #line 7754 "configure"
7755 #include "confdefs.h"
7762 if ((obj = dlopen("filename", 0)) != 0) {
7763 if (dlsym(obj, "symbolname") == 0) {
7771 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7772 if { (eval echo "$as_me:7772: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7775 echo "$as_me:7775: \$? = $ac_status" >&5
7776 (exit "$ac_status"); } &&
7777 { ac_try='test -s "conftest$ac_exeext"'
7778 { (eval echo "$as_me:7778: \"$ac_try\"") >&5
7781 echo "$as_me:7781: \$? = $ac_status" >&5
7782 (exit "$ac_status"); }; }; then
7784 cat >>confdefs.h <<\EOF
7785 #define HAVE_LIBDL 1
7789 echo "$as_me: failed program was:" >&5
7790 cat "conftest.$ac_ext" >&5
7792 { { echo "$as_me:7792: error: Cannot link test program for libdl" >&5
7793 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7794 { (exit 1); exit 1; }; }
7796 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7797 echo "$as_me:7797: result: ok" >&5
7798 echo "${ECHO_T}ok" >&6
7800 { { echo "$as_me:7800: error: Cannot find dlsym function" >&5
7801 echo "$as_me: error: Cannot find dlsym function" >&2;}
7802 { (exit 1); exit 1; }; }
7805 if test "x$with_gpm" != xyes ; then
7806 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7808 echo "${as_me:-configure}:7808: testing assuming soname for gpm is $with_gpm ..." 1>&5
7810 cf_cv_gpm_soname="$with_gpm"
7813 echo "$as_me:7813: checking for soname of gpm library" >&5
7814 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7815 if test "${cf_cv_gpm_soname+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 cf_cv_gpm_soname=unknown
7820 if test "$cross_compiling" != yes ; then
7821 cat >conftest.$ac_ext <<CF_EOF
7825 if (Gpm_Open(0,0)) Gpm_Close();
7826 ${cf_cv_main_return:-return}(0);
7829 cf_save_LIBS="$LIBS"
7834 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7836 for cf_add_1lib in $cf_add_0lib; do
7837 for cf_add_2lib in $cf_add_libs; do
7838 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7843 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7847 if { (eval echo "$as_me:7847: \"$ac_compile\"") >&5
7848 (eval $ac_compile) 2>&5
7850 echo "$as_me:7850: \$? = $ac_status" >&5
7851 (exit "$ac_status"); } ; then
7852 if { (eval echo "$as_me:7852: \"$ac_link\"") >&5
7853 (eval $ac_link) 2>&5
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 (exit "$ac_status"); } ; then
7857 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7858 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7862 LIBS="$cf_save_LIBS"
7866 echo "$as_me:7866: result: $cf_cv_gpm_soname" >&5
7867 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7870 test "$cf_cv_gpm_soname" != "unknown" &&
7871 cat >>confdefs.h <<EOF
7872 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7875 SHLIB_LIST="-ldl $SHLIB_LIST"
7877 cf_add_libs="$PRIVATE_LIBS"
7880 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7882 for cf_add_1lib in $cf_add_0lib; do
7883 for cf_add_2lib in $cf_add_libs; do
7884 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7889 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7891 PRIVATE_LIBS="$cf_add_libs"
7894 SHLIB_LIST="-lgpm $SHLIB_LIST"
7896 cf_add_libs="$TEST_LIBS"
7899 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7901 for cf_add_1lib in $cf_add_0lib; do
7902 for cf_add_2lib in $cf_add_libs; do
7903 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7908 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7910 TEST_LIBS="$cf_add_libs"
7912 cf_add_libs="$PRIVATE_LIBS"
7915 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7917 for cf_add_1lib in $cf_add_0lib; do
7918 for cf_add_2lib in $cf_add_libs; do
7919 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7924 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7926 PRIVATE_LIBS="$cf_add_libs"
7930 cat >>confdefs.h <<\EOF
7931 #define HAVE_LIBGPM 1
7934 echo "$as_me:7934: checking for Gpm_Wgetch in -lgpm" >&5
7935 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7936 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_check_lib_save_LIBS=$LIBS
7941 cat >"conftest.$ac_ext" <<_ACEOF
7942 #line 7942 "configure"
7943 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7960 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7961 if { (eval echo "$as_me:7961: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>&5
7964 echo "$as_me:7964: \$? = $ac_status" >&5
7965 (exit "$ac_status"); } &&
7966 { ac_try='test -s "conftest$ac_exeext"'
7967 { (eval echo "$as_me:7967: \"$ac_try\"") >&5
7970 echo "$as_me:7970: \$? = $ac_status" >&5
7971 (exit "$ac_status"); }; }; then
7972 ac_cv_lib_gpm_Gpm_Wgetch=yes
7974 echo "$as_me: failed program was:" >&5
7975 cat "conftest.$ac_ext" >&5
7976 ac_cv_lib_gpm_Gpm_Wgetch=no
7978 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7979 LIBS=$ac_check_lib_save_LIBS
7981 echo "$as_me:7981: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7982 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7983 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7985 echo "$as_me:7985: checking if GPM is weakly bound to curses library" >&5
7986 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7987 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 cf_cv_check_gpm_wgetch=unknown
7992 if test "$cross_compiling" != yes ; then
7994 cat >conftest.$ac_ext <<CF_EOF
7999 ${cf_cv_main_return:-return}(0);
8003 cf_save_LIBS="$LIBS"
8004 # This only works if we can look at the symbol table. If a shared
8005 # library is stripped for install, we cannot use that. So we're forced
8006 # to rely on the static library, noting that some packagers may not
8008 LIBS="-static -lgpm -dynamic $LIBS"
8009 if { (eval echo "$as_me:8009: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>&5
8012 echo "$as_me:8012: \$? = $ac_status" >&5
8013 (exit "$ac_status"); } ; then
8014 if { (eval echo "$as_me:8014: \"$ac_link\"") >&5
8015 (eval $ac_link) 2>&5
8017 echo "$as_me:8017: \$? = $ac_status" >&5
8018 (exit "$ac_status"); } ; then
8019 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
8020 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
8021 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
8025 LIBS="$cf_save_LIBS"
8029 echo "$as_me:8029: result: $cf_cv_check_gpm_wgetch" >&5
8030 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
8032 if test "$cf_cv_check_gpm_wgetch" != yes ; then
8033 { echo "$as_me:8033: WARNING: GPM library is already linked with curses - read the FAQ" >&5
8034 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
8041 echo "$as_me:8041: checking if you want to use PCRE2 for regular-expressions" >&5
8042 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
8044 # Check whether --with-pcre2 or --without-pcre2 was given.
8045 if test "${with_pcre2+set}" = set; then
8046 withval="$with_pcre2"
8049 test -z "$with_pcre2" && with_pcre2=no
8050 echo "$as_me:8050: result: $with_pcre2" >&5
8051 echo "${ECHO_T}$with_pcre2" >&6
8053 if test "x$with_pcre2" != xno ; then
8055 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
8058 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
8059 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
8061 echo "${as_me:-configure}:8061: testing found package $cf_with_pcre2 ..." 1>&5
8063 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
8064 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
8065 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
8067 echo "${as_me:-configure}:8067: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8069 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
8071 echo "${as_me:-configure}:8071: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
8076 cf_new_extra_cppflags=
8078 for cf_add_cflags in $cf_pkgconfig_incs
8080 case "$cf_fix_cppflags" in
8082 case "$cf_add_cflags" in
8083 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8084 case "$cf_add_cflags" in
8086 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8088 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8089 && test -z "${cf_tst_cflags}" \
8090 && cf_fix_cppflags=yes
8092 if test "$cf_fix_cppflags" = yes ; then
8094 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8095 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8098 elif test "${cf_tst_cflags}" = "\"'" ; then
8100 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8101 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8111 case "$cf_add_cflags" in
8113 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8115 CPPFLAGS=`echo "$CPPFLAGS" | \
8116 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8117 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8122 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8123 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8130 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8131 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8138 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8139 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8141 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8143 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8144 && test -z "${cf_tst_cflags}" \
8145 && cf_fix_cppflags=no
8150 if test -n "$cf_new_cflags" ; then
8152 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8153 CFLAGS="${CFLAGS}$cf_new_cflags"
8157 if test -n "$cf_new_cppflags" ; then
8159 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8160 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8164 if test -n "$cf_new_extra_cppflags" ; then
8166 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8167 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8174 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8176 for cf_add_1lib in $cf_add_0lib; do
8177 for cf_add_2lib in $cf_add_libs; do
8178 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8183 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8187 cf_with_pcre2_ok=yes; break
8195 cf_with_pcre2_ok=yes || { { echo "$as_me:8195: error: Cannot find PCRE2 library" >&5
8196 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
8197 { (exit 1); exit 1; }; }
8199 cat >>confdefs.h <<\EOF
8200 #define HAVE_LIB_PCRE2 1
8203 # if pkgconfig gave no results, look for the libraries directly
8205 (*pcre2-posix*|*pcreposix*)
8208 echo "$as_me:8208: checking for regcomp in -lpcre2-posix" >&5
8209 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
8210 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 ac_check_lib_save_LIBS=$LIBS
8214 LIBS="-lpcre2-posix $LIBS"
8215 cat >"conftest.$ac_ext" <<_ACEOF
8216 #line 8216 "configure"
8217 #include "confdefs.h"
8219 /* Override any gcc2 internal prototype to avoid an error. */
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8234 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8235 if { (eval echo "$as_me:8235: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8238 echo "$as_me:8238: \$? = $ac_status" >&5
8239 (exit "$ac_status"); } &&
8240 { ac_try='test -s "conftest$ac_exeext"'
8241 { (eval echo "$as_me:8241: \"$ac_try\"") >&5
8244 echo "$as_me:8244: \$? = $ac_status" >&5
8245 (exit "$ac_status"); }; }; then
8246 ac_cv_lib_pcre2_posix_regcomp=yes
8248 echo "$as_me: failed program was:" >&5
8249 cat "conftest.$ac_ext" >&5
8250 ac_cv_lib_pcre2_posix_regcomp=no
8252 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8253 LIBS=$ac_check_lib_save_LIBS
8255 echo "$as_me:8255: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
8256 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
8257 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
8262 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8264 for cf_add_1lib in $cf_add_0lib; do
8265 for cf_add_2lib in $cf_add_libs; do
8266 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8271 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8276 echo "$as_me:8276: checking for regcomp in -lpcreposix" >&5
8277 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
8278 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 ac_check_lib_save_LIBS=$LIBS
8282 LIBS="-lpcreposix $LIBS"
8283 cat >"conftest.$ac_ext" <<_ACEOF
8284 #line 8284 "configure"
8285 #include "confdefs.h"
8287 /* Override any gcc2 internal prototype to avoid an error. */
8291 /* We use char because int might match the return type of a gcc2
8292 builtin and then its argument prototype would still apply. */
8302 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8303 if { (eval echo "$as_me:8303: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>&5
8306 echo "$as_me:8306: \$? = $ac_status" >&5
8307 (exit "$ac_status"); } &&
8308 { ac_try='test -s "conftest$ac_exeext"'
8309 { (eval echo "$as_me:8309: \"$ac_try\"") >&5
8312 echo "$as_me:8312: \$? = $ac_status" >&5
8313 (exit "$ac_status"); }; }; then
8314 ac_cv_lib_pcreposix_regcomp=yes
8316 echo "$as_me: failed program was:" >&5
8317 cat "conftest.$ac_ext" >&5
8318 ac_cv_lib_pcreposix_regcomp=no
8320 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8321 LIBS=$ac_check_lib_save_LIBS
8323 echo "$as_me:8323: result: $ac_cv_lib_pcreposix_regcomp" >&5
8324 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
8325 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
8330 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8332 for cf_add_1lib in $cf_add_0lib; do
8333 for cf_add_2lib in $cf_add_libs; do
8334 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8339 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8344 { { echo "$as_me:8344: error: Cannot find PCRE2 POSIX library" >&5
8345 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
8346 { (exit 1); exit 1; }; }
8354 # either way, check for the library header files
8356 for ac_header in pcre2posix.h pcreposix.h
8358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8359 echo "$as_me:8359: checking for $ac_header" >&5
8360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >"conftest.$ac_ext" <<_ACEOF
8365 #line 8365 "configure"
8366 #include "confdefs.h"
8367 #include <$ac_header>
8369 if { (eval echo "$as_me:8369: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8370 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8372 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 echo "$as_me:8375: \$? = $ac_status" >&5
8376 (exit "$ac_status"); } >/dev/null; then
8377 if test -s conftest.err; then
8378 ac_cpp_err=$ac_c_preproc_warn_flag
8385 if test -z "$ac_cpp_err"; then
8386 eval "$as_ac_Header=yes"
8388 echo "$as_me: failed program was:" >&5
8389 cat "conftest.$ac_ext" >&5
8390 eval "$as_ac_Header=no"
8392 rm -f conftest.err "conftest.$ac_ext"
8394 echo "$as_me:8394: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8395 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8396 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8397 cat >>confdefs.h <<EOF
8398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404 for ac_func in PCRE2regcomp
8406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8407 echo "$as_me:8407: checking for $ac_func" >&5
8408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8409 if eval "test \"\${$as_ac_var+set}\" = set"; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 cat >"conftest.$ac_ext" <<_ACEOF
8413 #line 8413 "configure"
8414 #include "confdefs.h"
8415 #define $ac_func autoconf_temporary
8416 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425 char $ac_func (void);
8431 /* The GNU C library defines stubs for functions which it implements
8432 to always fail with ENOSYS. Some functions are actually named
8433 something starting with __ and the normal name is an alias. */
8434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8435 #error found stub for $ac_func
8443 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8444 if { (eval echo "$as_me:8444: \"$ac_link\"") >&5
8445 (eval $ac_link) 2>&5
8447 echo "$as_me:8447: \$? = $ac_status" >&5
8448 (exit "$ac_status"); } &&
8449 { ac_try='test -s "conftest$ac_exeext"'
8450 { (eval echo "$as_me:8450: \"$ac_try\"") >&5
8453 echo "$as_me:8453: \$? = $ac_status" >&5
8454 (exit "$ac_status"); }; }; then
8455 eval "$as_ac_var=yes"
8457 echo "$as_me: failed program was:" >&5
8458 cat "conftest.$ac_ext" >&5
8459 eval "$as_ac_var=no"
8461 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8463 echo "$as_me:8463: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8464 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8465 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8466 cat >>confdefs.h <<EOF
8467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8475 # not everyone has "test -c"
8476 if test -c /dev/sysmouse 2>/dev/null ; then
8477 echo "$as_me:8477: checking if you want to use sysmouse" >&5
8478 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8480 # Check whether --with-sysmouse or --without-sysmouse was given.
8481 if test "${with_sysmouse+set}" = set; then
8482 withval="$with_sysmouse"
8483 cf_with_sysmouse=$withval
8485 cf_with_sysmouse=maybe
8487 if test "$cf_with_sysmouse" != no ; then
8488 cat >"conftest.$ac_ext" <<_ACEOF
8489 #line 8489 "configure"
8490 #include "confdefs.h"
8492 #include <osreldate.h>
8493 #if (__FreeBSD_version >= 400017)
8494 #include <sys/consio.h>
8495 #include <sys/fbio.h>
8497 #include <machine/console.h>
8504 struct mouse_info the_mouse;
8505 ioctl(0, CONS_MOUSECTL, &the_mouse);
8511 rm -f "conftest.$ac_objext"
8512 if { (eval echo "$as_me:8512: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>&5
8515 echo "$as_me:8515: \$? = $ac_status" >&5
8516 (exit "$ac_status"); } &&
8517 { ac_try='test -s "conftest.$ac_objext"'
8518 { (eval echo "$as_me:8518: \"$ac_try\"") >&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit "$ac_status"); }; }; then
8523 cf_with_sysmouse=yes
8525 echo "$as_me: failed program was:" >&5
8526 cat "conftest.$ac_ext" >&5
8529 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8531 echo "$as_me:8531: result: $cf_with_sysmouse" >&5
8532 echo "${ECHO_T}$cf_with_sysmouse" >&6
8533 test "$cf_with_sysmouse" = yes &&
8534 cat >>confdefs.h <<\EOF
8535 #define USE_SYSMOUSE 1
8540 # pretend that ncurses==ncursesw==ncursest
8541 echo "$as_me:8541: checking if you want to disable library suffixes" >&5
8542 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8544 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8545 if test "${enable_lib_suffixes+set}" = set; then
8546 enableval="$enable_lib_suffixes"
8547 test "$enableval" != no && enableval=yes
8548 if test "$enableval" != "yes" ; then
8549 disable_lib_suffixes=yes
8551 disable_lib_suffixes=no
8555 disable_lib_suffixes=no
8558 echo "$as_me:8558: result: $disable_lib_suffixes" >&5
8559 echo "${ECHO_T}$disable_lib_suffixes" >&6
8561 ### If we're building with rpath, try to link non-standard libs that way too.
8562 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8564 echo "$as_me:8564: checking if rpath-hack should be disabled" >&5
8565 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8567 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8568 if test "${enable_rpath_hack+set}" = set; then
8569 enableval="$enable_rpath_hack"
8570 test "$enableval" != no && enableval=yes
8571 if test "$enableval" != "yes" ; then
8572 enable_rpath_hack=no
8574 enable_rpath_hack=yes
8578 enable_rpath_hack=yes
8581 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8582 echo "$as_me:8582: result: $cf_disable_rpath_hack" >&5
8583 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8585 if test "$enable_rpath_hack" = yes ; then
8587 echo "$as_me:8587: checking for updated LDFLAGS" >&5
8588 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8589 if test -n "$LD_RPATH_OPT" ; then
8590 echo "$as_me:8590: result: maybe" >&5
8591 echo "${ECHO_T}maybe" >&6
8595 # Extract the first word of "$ac_prog", so it can be a program name with args.
8596 set dummy $ac_prog; ac_word=$2
8597 echo "$as_me:8597: checking for $ac_word" >&5
8598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8599 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 if test -n "$cf_ldd_prog"; then
8603 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8605 ac_save_IFS=$IFS; IFS=$ac_path_separator
8607 for ac_dir in $ac_dummy; do
8609 test -z "$ac_dir" && ac_dir=.
8610 $as_executable_p "$ac_dir/$ac_word" || continue
8611 ac_cv_prog_cf_ldd_prog="$ac_prog"
8612 echo "$as_me:8612: found $ac_dir/$ac_word" >&5
8618 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8619 if test -n "$cf_ldd_prog"; then
8620 echo "$as_me:8620: result: $cf_ldd_prog" >&5
8621 echo "${ECHO_T}$cf_ldd_prog" >&6
8623 echo "$as_me:8623: result: no" >&5
8624 echo "${ECHO_T}no" >&6
8627 test -n "$cf_ldd_prog" && break
8629 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8631 cf_rpath_list="/usr/lib /lib"
8632 if test "$cf_ldd_prog" != no
8636 cat >"conftest.$ac_ext" <<_ACEOF
8637 #line 8637 "configure"
8638 #include "confdefs.h"
8648 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8649 if { (eval echo "$as_me:8649: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>&5
8652 echo "$as_me:8652: \$? = $ac_status" >&5
8653 (exit "$ac_status"); } &&
8654 { ac_try='test -s "conftest$ac_exeext"'
8655 { (eval echo "$as_me:8655: \"$ac_try\"") >&5
8658 echo "$as_me:8658: \$? = $ac_status" >&5
8659 (exit "$ac_status"); }; }; then
8660 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8661 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8663 echo "$as_me: failed program was:" >&5
8664 cat "conftest.$ac_ext" >&5
8666 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8668 # If we passed the link-test, but get a "not found" on a given library,
8669 # this could be due to inept reconfiguration of gcc to make it only
8670 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8671 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8672 # /usr/local libraries.
8673 if test -n "$cf_rpath_oops"
8675 for cf_rpath_src in $cf_rpath_oops
8677 for cf_rpath_dir in \
8682 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8684 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8686 echo "${as_me:-configure}:8686: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8688 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8696 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8698 echo "${as_me:-configure}:8698: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8700 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8702 echo "${as_me:-configure}:8702: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8705 for cf_rpath_src in $LDFLAGS
8707 case "$cf_rpath_src" in
8710 # check if this refers to a directory which we will ignore
8712 if test -n "$cf_rpath_list"
8714 for cf_rpath_item in $cf_rpath_list
8716 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8724 if test "$cf_rpath_skip" = no
8726 # transform the option
8727 if test "$LD_RPATH_OPT" = "-R " ; then
8728 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8730 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8733 # if we have not already added this, add it now
8734 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8735 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8737 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8739 echo "${as_me:-configure}:8739: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8741 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8746 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8748 LDFLAGS=$cf_rpath_dst
8750 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8752 echo "${as_me:-configure}:8752: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8754 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8756 echo "${as_me:-configure}:8756: testing ...checking LIBS $LIBS ..." 1>&5
8759 for cf_rpath_src in $LIBS
8761 case "$cf_rpath_src" in
8764 # check if this refers to a directory which we will ignore
8766 if test -n "$cf_rpath_list"
8768 for cf_rpath_item in $cf_rpath_list
8770 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8778 if test "$cf_rpath_skip" = no
8780 # transform the option
8781 if test "$LD_RPATH_OPT" = "-R " ; then
8782 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8784 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8787 # if we have not already added this, add it now
8788 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8789 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8791 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8793 echo "${as_me:-configure}:8793: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8795 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8800 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8804 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8806 echo "${as_me:-configure}:8806: testing ...checked LIBS $LIBS ..." 1>&5
8808 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8810 echo "${as_me:-configure}:8810: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8813 echo "$as_me:8813: result: no" >&5
8814 echo "${ECHO_T}no" >&6
8821 ### Depending on the system, someone may use rpath to build ncurses but not
8822 # want users of the package to rely upon that feature. Give those people an
8823 # option to suppress that detail from EXTRA_LDFLAGS.
8824 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8825 if test -n "$EXTRA_PKG_LDFLAGS"
8827 echo "$as_me:8827: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8828 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8830 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8831 if test "${enable_pkg_ldflags+set}" = set; then
8832 enableval="$enable_pkg_ldflags"
8833 test "$enableval" != no && enableval=yes
8834 if test "$enableval" != "yes" ; then
8835 disable_pkg_ldflags=yes
8837 disable_pkg_ldflags=no
8841 disable_pkg_ldflags=no
8844 echo "$as_me:8844: result: $disable_pkg_ldflags" >&5
8845 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8846 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8849 ###############################################################################
8851 ### use option --with-extra-suffix to append suffix to headers and libraries
8852 echo "$as_me:8852: checking if you wish to append extra suffix to header/library paths" >&5
8853 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8856 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8857 if test "${with_extra_suffix+set}" = set; then
8858 withval="$with_extra_suffix"
8863 EXTRA_SUFFIX=$cf_cv_abi_version
8866 EXTRA_SUFFIX=$withval
8871 echo "$as_me:8871: result: $EXTRA_SUFFIX" >&5
8872 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8874 ### use option --disable-overwrite to leave out the link to -lcurses
8875 echo "$as_me:8875: checking if you wish to install ncurses overwriting curses" >&5
8876 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8878 # Check whether --enable-overwrite or --disable-overwrite was given.
8879 if test "${enable_overwrite+set}" = set; then
8880 enableval="$enable_overwrite"
8881 with_overwrite=$enableval
8883 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8885 echo "$as_me:8885: result: $with_overwrite" >&5
8886 echo "${ECHO_T}$with_overwrite" >&6
8888 echo "$as_me:8888: checking if external terminfo-database is used" >&5
8889 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8891 # Check whether --enable-database or --disable-database was given.
8892 if test "${enable_database+set}" = set; then
8893 enableval="$enable_database"
8894 use_database=$enableval
8898 echo "$as_me:8898: result: $use_database" >&5
8899 echo "${ECHO_T}$use_database" >&6
8903 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8906 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8910 NCURSES_USE_DATABASE=0
8911 if test "$use_database" != no ; then
8912 NCURSES_USE_DATABASE=1
8914 echo "$as_me:8914: checking which terminfo source-file will be installed" >&5
8915 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8917 # Check whether --with-database or --without-database was given.
8918 if test "${with_database+set}" = set; then
8919 withval="$with_database"
8920 TERMINFO_SRC=$withval
8922 echo "$as_me:8922: result: $TERMINFO_SRC" >&5
8923 echo "${ECHO_T}$TERMINFO_SRC" >&6
8925 echo "$as_me:8925: checking whether to use hashed database instead of directory/tree" >&5
8926 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8928 # Check whether --with-hashed-db or --without-hashed-db was given.
8929 if test "${with_hashed_db+set}" = set; then
8930 withval="$with_hashed_db"
8935 echo "$as_me:8935: result: $with_hashed_db" >&5
8936 echo "${ECHO_T}$with_hashed_db" >&6
8941 echo "$as_me:8941: checking for list of fallback descriptions" >&5
8942 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8944 # Check whether --with-fallbacks or --without-fallbacks was given.
8945 if test "${with_fallbacks+set}" = set; then
8946 withval="$with_fallbacks"
8947 with_fallback=$withval
8951 echo "$as_me:8951: result: $with_fallback" >&5
8952 echo "${ECHO_T}$with_fallback" >&6
8954 case ".$with_fallback" in
8959 { echo "$as_me:8959: WARNING: expected a list of terminal descriptions" >&5
8960 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8963 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8967 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8968 # tree for generating the terminal descriptions that will be compiled into the
8969 # library. If your toolchain is old, it may not handle current terminal
8970 # databases. Use configure-options to point to the tools which will be used,
8971 # rather than the first ones found on the $PATH.
8972 if test -n "$ac_tool_prefix"; then
8973 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8974 set dummy ${ac_tool_prefix}tic; ac_word=$2
8975 echo "$as_me:8975: checking for $ac_word" >&5
8976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8977 if test "${ac_cv_prog_TIC+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 if test -n "$TIC"; then
8981 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8983 ac_save_IFS=$IFS; IFS=$ac_path_separator
8985 for ac_dir in $ac_dummy; do
8987 test -z "$ac_dir" && ac_dir=.
8988 $as_executable_p "$ac_dir/$ac_word" || continue
8989 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8990 echo "$as_me:8990: found $ac_dir/$ac_word" >&5
8997 if test -n "$TIC"; then
8998 echo "$as_me:8998: result: $TIC" >&5
8999 echo "${ECHO_T}$TIC" >&6
9001 echo "$as_me:9001: result: no" >&5
9002 echo "${ECHO_T}no" >&6
9006 if test -z "$ac_cv_prog_TIC"; then
9008 # Extract the first word of "tic", so it can be a program name with args.
9009 set dummy tic; ac_word=$2
9010 echo "$as_me:9010: checking for $ac_word" >&5
9011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9012 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 if test -n "$ac_ct_TIC"; then
9016 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
9018 ac_save_IFS=$IFS; IFS=$ac_path_separator
9020 for ac_dir in $ac_dummy; do
9022 test -z "$ac_dir" && ac_dir=.
9023 $as_executable_p "$ac_dir/$ac_word" || continue
9024 ac_cv_prog_ac_ct_TIC="tic"
9025 echo "$as_me:9025: found $ac_dir/$ac_word" >&5
9031 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
9032 if test -n "$ac_ct_TIC"; then
9033 echo "$as_me:9033: result: $ac_ct_TIC" >&5
9034 echo "${ECHO_T}$ac_ct_TIC" >&6
9036 echo "$as_me:9036: result: no" >&5
9037 echo "${ECHO_T}no" >&6
9042 TIC="$ac_cv_prog_TIC"
9045 if test -n "$ac_tool_prefix"; then
9046 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
9047 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
9048 echo "$as_me:9048: checking for $ac_word" >&5
9049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9050 if test "${ac_cv_prog_INFOCMP+set}" = set; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 if test -n "$INFOCMP"; then
9054 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
9056 ac_save_IFS=$IFS; IFS=$ac_path_separator
9058 for ac_dir in $ac_dummy; do
9060 test -z "$ac_dir" && ac_dir=.
9061 $as_executable_p "$ac_dir/$ac_word" || continue
9062 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
9063 echo "$as_me:9063: found $ac_dir/$ac_word" >&5
9069 INFOCMP=$ac_cv_prog_INFOCMP
9070 if test -n "$INFOCMP"; then
9071 echo "$as_me:9071: result: $INFOCMP" >&5
9072 echo "${ECHO_T}$INFOCMP" >&6
9074 echo "$as_me:9074: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9079 if test -z "$ac_cv_prog_INFOCMP"; then
9080 ac_ct_INFOCMP=$INFOCMP
9081 # Extract the first word of "infocmp", so it can be a program name with args.
9082 set dummy infocmp; ac_word=$2
9083 echo "$as_me:9083: checking for $ac_word" >&5
9084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9085 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 if test -n "$ac_ct_INFOCMP"; then
9089 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
9091 ac_save_IFS=$IFS; IFS=$ac_path_separator
9093 for ac_dir in $ac_dummy; do
9095 test -z "$ac_dir" && ac_dir=.
9096 $as_executable_p "$ac_dir/$ac_word" || continue
9097 ac_cv_prog_ac_ct_INFOCMP="infocmp"
9098 echo "$as_me:9098: found $ac_dir/$ac_word" >&5
9104 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
9105 if test -n "$ac_ct_INFOCMP"; then
9106 echo "$as_me:9106: result: $ac_ct_INFOCMP" >&5
9107 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
9109 echo "$as_me:9109: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9113 INFOCMP=$ac_ct_INFOCMP
9115 INFOCMP="$ac_cv_prog_INFOCMP"
9118 if test -n "$FALLBACK_LIST"
9121 # Check whether --with-tic-path or --without-tic-path was given.
9122 if test "${with_tic_path+set}" = set; then
9123 withval="$with_tic_path"
9124 echo "$as_me:9124: checking for tic program for fallbacks" >&5
9125 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
9127 echo "$as_me:9127: result: $TIC" >&5
9128 echo "${ECHO_T}$TIC" >&6
9130 if test "x$prefix" != xNONE; then
9131 cf_path_syntax="$prefix"
9133 cf_path_syntax="$ac_default_prefix"
9141 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9143 (.\$\{*prefix\}*|.\$\{*dir\}*)
9147 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9152 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9155 { { echo "$as_me:9155: error: expected a pathname, not \"$TIC\"" >&5
9156 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
9157 { (exit 1); exit 1; }; }
9163 test -z "$TIC" && TIC="tic"
9164 for ac_prog in $TIC tic
9166 # Extract the first word of "$ac_prog", so it can be a program name with args.
9167 set dummy $ac_prog; ac_word=$2
9168 echo "$as_me:9168: checking for $ac_word" >&5
9169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9170 if test "${ac_cv_path_TIC+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9178 ac_save_IFS=$IFS; IFS=$ac_path_separator
9179 ac_dummy="$PATH:/usr/local/ncurses/bin"
9180 for ac_dir in $ac_dummy; do
9182 test -z "$ac_dir" && ac_dir=.
9183 if $as_executable_p "$ac_dir/$ac_word"; then
9184 ac_cv_path_TIC="$ac_dir/$ac_word"
9185 echo "$as_me:9185: found $ac_dir/$ac_word" >&5
9195 if test -n "$TIC"; then
9196 echo "$as_me:9196: result: $TIC" >&5
9197 echo "${ECHO_T}$TIC" >&6
9199 echo "$as_me:9199: result: no" >&5
9200 echo "${ECHO_T}no" >&6
9203 test -n "$TIC" && break
9205 test -n "$TIC" || TIC="$TIC"
9209 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9210 for cf_temp in $ac_cv_path_TIC
9212 if test -z "$cf_path_prog" ; then
9213 if test "$with_full_paths" = yes ; then
9215 if test "x$prefix" != xNONE; then
9216 cf_path_syntax="$prefix"
9218 cf_path_syntax="$ac_default_prefix"
9226 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9228 (.\$\{*prefix\}*|.\$\{*dir\}*)
9229 eval cf_temp="$cf_temp"
9232 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9237 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9244 cf_path_prog="$cf_temp"
9246 cf_path_prog="`basename "$cf_temp"`"
9248 elif test -z "$cf_path_args" ; then
9249 cf_path_args="$cf_temp"
9251 cf_path_args="$cf_path_args $cf_temp"
9256 if test -n "$cf_path_prog" ; then
9258 echo "${as_me:-configure}:9258: testing defining path for ${cf_path_prog} ..." 1>&5
9260 cat >>confdefs.h <<EOF
9261 #define TIC_PATH "$cf_path_prog"
9264 test -n "$cf_path_args" &&
9265 cat >>confdefs.h <<EOF
9266 #define TIC_ARGS "$cf_path_args"
9273 { echo "$as_me:9273: WARNING: no tic program found for fallbacks" >&5
9274 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
9279 # Check whether --with-infocmp-path or --without-infocmp-path was given.
9280 if test "${with_infocmp_path+set}" = set; then
9281 withval="$with_infocmp_path"
9282 echo "$as_me:9282: checking for infocmp program for fallbacks" >&5
9283 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
9285 echo "$as_me:9285: result: $INFOCMP" >&5
9286 echo "${ECHO_T}$INFOCMP" >&6
9288 if test "x$prefix" != xNONE; then
9289 cf_path_syntax="$prefix"
9291 cf_path_syntax="$ac_default_prefix"
9299 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9301 (.\$\{*prefix\}*|.\$\{*dir\}*)
9302 eval INFOCMP="$INFOCMP"
9305 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9310 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9313 { { echo "$as_me:9313: error: expected a pathname, not \"$INFOCMP\"" >&5
9314 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
9315 { (exit 1); exit 1; }; }
9321 test -z "$INFOCMP" && INFOCMP="infocmp"
9322 for ac_prog in $INFOCMP infocmp
9324 # Extract the first word of "$ac_prog", so it can be a program name with args.
9325 set dummy $ac_prog; ac_word=$2
9326 echo "$as_me:9326: checking for $ac_word" >&5
9327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9328 if test "${ac_cv_path_INFOCMP+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
9336 ac_save_IFS=$IFS; IFS=$ac_path_separator
9337 ac_dummy="$PATH:/usr/local/ncurses/bin"
9338 for ac_dir in $ac_dummy; do
9340 test -z "$ac_dir" && ac_dir=.
9341 if $as_executable_p "$ac_dir/$ac_word"; then
9342 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
9343 echo "$as_me:9343: found $ac_dir/$ac_word" >&5
9351 INFOCMP=$ac_cv_path_INFOCMP
9353 if test -n "$INFOCMP"; then
9354 echo "$as_me:9354: result: $INFOCMP" >&5
9355 echo "${ECHO_T}$INFOCMP" >&6
9357 echo "$as_me:9357: result: no" >&5
9358 echo "${ECHO_T}no" >&6
9361 test -n "$INFOCMP" && break
9363 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
9367 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9368 for cf_temp in $ac_cv_path_INFOCMP
9370 if test -z "$cf_path_prog" ; then
9371 if test "$with_full_paths" = yes ; then
9373 if test "x$prefix" != xNONE; then
9374 cf_path_syntax="$prefix"
9376 cf_path_syntax="$ac_default_prefix"
9384 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9386 (.\$\{*prefix\}*|.\$\{*dir\}*)
9387 eval cf_temp="$cf_temp"
9390 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9395 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9402 cf_path_prog="$cf_temp"
9404 cf_path_prog="`basename "$cf_temp"`"
9406 elif test -z "$cf_path_args" ; then
9407 cf_path_args="$cf_temp"
9409 cf_path_args="$cf_path_args $cf_temp"
9414 if test -n "$cf_path_prog" ; then
9416 echo "${as_me:-configure}:9416: testing defining path for ${cf_path_prog} ..." 1>&5
9418 cat >>confdefs.h <<EOF
9419 #define INFOCMP_PATH "$cf_path_prog"
9422 test -n "$cf_path_args" &&
9423 cat >>confdefs.h <<EOF
9424 #define INFOCMP_ARGS "$cf_path_args"
9429 if test -z "$INFOCMP"
9431 { echo "$as_me:9431: WARNING: no infocmp program found for fallbacks" >&5
9432 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
9437 test -z "$TIC" && FALLBACK_LIST=
9438 test -z "$INFOCMP" && FALLBACK_LIST=
9439 if test -z "$FALLBACK_LIST"
9441 { echo "$as_me:9441: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
9442 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
9447 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
9449 echo "$as_me:9449: checking if you want modern xterm or antique" >&5
9450 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
9452 # Check whether --with-xterm-new or --without-xterm-new was given.
9453 if test "${with_xterm_new+set}" = set; then
9454 withval="$with_xterm_new"
9455 with_xterm_new=$withval
9459 case "$with_xterm_new" in
9460 (no) with_xterm_new=xterm-old;;
9461 (*) with_xterm_new=xterm-new;;
9463 echo "$as_me:9463: result: $with_xterm_new" >&5
9464 echo "${ECHO_T}$with_xterm_new" >&6
9465 WHICH_XTERM=$with_xterm_new
9468 (*linux-gnu|*cygwin|*mingw32|*msys)
9476 echo "$as_me:9476: checking if xterm backspace sends BS or DEL" >&5
9477 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9479 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9480 if test "${with_xterm_kbs+set}" = set; then
9481 withval="$with_xterm_kbs"
9482 with_xterm_kbs=$withval
9486 case x$with_xterm_kbs in
9487 (xyes|xno|xBS|xbs|x8)
9494 with_xterm_kbs=$want_xterm_kbs
9497 with_xterm_kbs=$withval
9500 echo "$as_me:9500: result: $with_xterm_kbs" >&5
9501 echo "${ECHO_T}$with_xterm_kbs" >&6
9502 XTERM_KBS=$with_xterm_kbs
9504 if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
9506 { echo "$as_me:9506: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&5
9507 echo "$as_me: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs" >&2;}
9511 if test "$use_database" = no ; then
9512 TERMINFO="${datadir}/terminfo"
9516 echo "$as_me:9516: checking for list of terminfo directories" >&5
9517 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9519 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9520 if test "${with_terminfo_dirs+set}" = set; then
9521 withval="$with_terminfo_dirs"
9524 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9526 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9528 for cf_src_path in $withval
9531 if test "x$prefix" != xNONE; then
9532 cf_path_syntax="$prefix"
9534 cf_path_syntax="$ac_default_prefix"
9537 case ".$cf_src_path" in
9542 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9544 (.\$\{*prefix\}*|.\$\{*dir\}*)
9545 eval cf_src_path="$cf_src_path"
9546 case ".$cf_src_path" in
9548 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9553 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9556 { { echo "$as_me:9556: error: expected a pathname, not \"$cf_src_path\"" >&5
9557 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9558 { (exit 1); exit 1; }; }
9562 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9563 cf_dst_path="${cf_dst_path}${cf_src_path}"
9567 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9568 # so we have to check/work around. We do prefer the result of "eval"...
9569 eval cf_dst_eval="$cf_dst_path"
9570 case "x$cf_dst_eval" in
9572 TERMINFO_DIRS=$cf_dst_path
9575 TERMINFO_DIRS="$cf_dst_eval"
9579 echo "$as_me:9579: result: $TERMINFO_DIRS" >&5
9580 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9581 test -n "$TERMINFO_DIRS" &&
9582 cat >>confdefs.h <<EOF
9583 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9586 case "x$TERMINFO" in
9588 { echo "$as_me:9588: WARNING: ignoring non-directory/file TERMINFO value" >&5
9589 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9594 echo "$as_me:9594: checking for default terminfo directory" >&5
9595 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9597 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9598 if test "${with_default_terminfo_dir+set}" = set; then
9599 withval="$with_default_terminfo_dir"
9602 withval="${TERMINFO:-${datadir}/terminfo}"
9603 fi; if test -n "${datadir}/terminfo" ; then
9605 if test "x$prefix" != xNONE; then
9606 cf_path_syntax="$prefix"
9608 cf_path_syntax="$ac_default_prefix"
9616 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9618 (.\$\{*prefix\}*|.\$\{*dir\}*)
9619 eval withval="$withval"
9622 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9627 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9630 { { echo "$as_me:9630: error: expected a pathname, not \"$withval\"" >&5
9631 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9632 { (exit 1); exit 1; }; }
9637 eval TERMINFO="$withval"
9639 echo "$as_me:9639: result: $TERMINFO" >&5
9640 echo "${ECHO_T}$TERMINFO" >&6
9642 cat >>confdefs.h <<EOF
9643 #define TERMINFO "$TERMINFO"
9648 ### use option --disable-big-core to make tic run on small machines
9649 ### We need 4Mb, check if we can allocate 50% more than that.
9650 echo "$as_me:9650: checking if big-core option selected" >&5
9651 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9653 # Check whether --enable-big-core or --disable-big-core was given.
9654 if test "${enable_big_core+set}" = set; then
9655 enableval="$enable_big_core"
9656 with_big_core=$enableval
9658 if test "$cross_compiling" = yes; then
9661 cat >"conftest.$ac_ext" <<_ACEOF
9662 #line 9662 "configure"
9663 #include "confdefs.h"
9668 unsigned long n = 6000000L;
9669 char *s = malloc(n);
9672 ${cf_cv_main_return:-return}(s == 0);
9675 rm -f "conftest$ac_exeext"
9676 if { (eval echo "$as_me:9676: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>&5
9679 echo "$as_me:9679: \$? = $ac_status" >&5
9680 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9681 { (eval echo "$as_me:9681: \"$ac_try\"") >&5
9684 echo "$as_me:9684: \$? = $ac_status" >&5
9685 (exit "$ac_status"); }; }; then
9688 echo "$as_me: program exited with status $ac_status" >&5
9689 echo "$as_me: failed program was:" >&5
9690 cat "conftest.$ac_ext" >&5
9693 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9696 echo "$as_me:9696: result: $with_big_core" >&5
9697 echo "${ECHO_T}$with_big_core" >&6
9698 test "x$with_big_core" = "xyes" &&
9699 cat >>confdefs.h <<\EOF
9700 #define HAVE_BIG_CORE 1
9703 ### ISO C only guarantees 512-char strings, we have tables which load faster
9704 ### when constructed using "big" strings. More than the C compiler, the awk
9705 ### program is a limit on most vendor UNIX systems. Check that we can build.
9706 echo "$as_me:9706: checking if big-strings option selected" >&5
9707 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9709 # Check whether --enable-big-strings or --disable-big-strings was given.
9710 if test "${enable_big_strings+set}" = set; then
9711 enableval="$enable_big_strings"
9712 with_big_strings=$enableval
9717 eval with_big_strings=no
9720 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9721 | $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
9722 eval with_big_strings=yes
9724 eval with_big_strings=no
9730 echo "$as_me:9730: result: $with_big_strings" >&5
9731 echo "${ECHO_T}$with_big_strings" >&6
9734 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9736 ### use option --enable-termcap to compile in the termcap fallback support
9737 echo "$as_me:9737: checking if you want termcap-fallback support" >&5
9738 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9740 # Check whether --enable-termcap or --disable-termcap was given.
9741 if test "${enable_termcap+set}" = set; then
9742 enableval="$enable_termcap"
9743 with_termcap=$enableval
9747 echo "$as_me:9747: result: $with_termcap" >&5
9748 echo "${ECHO_T}$with_termcap" >&6
9750 NCURSES_USE_TERMCAP=0
9751 if test "x$with_termcap" != "xyes" ; then
9752 if test "$use_database" = no ; then
9753 if test -z "$with_fallback" ; then
9754 { { echo "$as_me:9754: error: You have disabled the database w/o specifying fallbacks" >&5
9755 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9756 { (exit 1); exit 1; }; }
9760 cat >>confdefs.h <<\EOF
9761 #define PURE_TERMINFO 1
9766 if test "$with_ticlib" != no ; then
9767 { { echo "$as_me:9767: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9768 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9769 { (exit 1); exit 1; }; }
9772 NCURSES_USE_TERMCAP=1
9773 echo "$as_me:9773: checking for list of termcap files" >&5
9774 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9776 # Check whether --with-termpath or --without-termpath was given.
9777 if test "${with_termpath+set}" = set; then
9778 withval="$with_termpath"
9781 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9783 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9785 for cf_src_path in $withval
9788 if test "x$prefix" != xNONE; then
9789 cf_path_syntax="$prefix"
9791 cf_path_syntax="$ac_default_prefix"
9794 case ".$cf_src_path" in
9799 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9801 (.\$\{*prefix\}*|.\$\{*dir\}*)
9802 eval cf_src_path="$cf_src_path"
9803 case ".$cf_src_path" in
9805 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9810 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9813 { { echo "$as_me:9813: error: expected a pathname, not \"$cf_src_path\"" >&5
9814 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9815 { (exit 1); exit 1; }; }
9819 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9820 cf_dst_path="${cf_dst_path}${cf_src_path}"
9824 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9825 # so we have to check/work around. We do prefer the result of "eval"...
9826 eval cf_dst_eval="$cf_dst_path"
9827 case "x$cf_dst_eval" in
9829 TERMPATH=$cf_dst_path
9832 TERMPATH="$cf_dst_eval"
9836 echo "$as_me:9836: result: $TERMPATH" >&5
9837 echo "${ECHO_T}$TERMPATH" >&6
9838 test -n "$TERMPATH" &&
9839 cat >>confdefs.h <<EOF
9840 #define TERMPATH "$TERMPATH"
9843 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9844 echo "$as_me:9844: checking if fast termcap-loader is needed" >&5
9845 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9847 # Check whether --enable-getcap or --disable-getcap was given.
9848 if test "${enable_getcap+set}" = set; then
9849 enableval="$enable_getcap"
9850 with_getcap=$enableval
9854 echo "$as_me:9854: result: $with_getcap" >&5
9855 echo "${ECHO_T}$with_getcap" >&6
9856 test "x$with_getcap" = "xyes" &&
9857 cat >>confdefs.h <<\EOF
9858 #define USE_GETCAP 1
9861 echo "$as_me:9861: checking if translated termcaps will be cached in ~/.terminfo" >&5
9862 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9864 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9865 if test "${enable_getcap_cache+set}" = set; then
9866 enableval="$enable_getcap_cache"
9867 with_getcap_cache=$enableval
9869 with_getcap_cache=no
9871 echo "$as_me:9871: result: $with_getcap_cache" >&5
9872 echo "${ECHO_T}$with_getcap_cache" >&6
9873 test "x$with_getcap_cache" = "xyes" &&
9874 cat >>confdefs.h <<\EOF
9875 #define USE_GETCAP_CACHE 1
9880 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9881 echo "$as_me:9881: checking if ~/.terminfo is wanted" >&5
9882 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9884 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9885 if test "${enable_home_terminfo+set}" = set; then
9886 enableval="$enable_home_terminfo"
9887 with_home_terminfo=$enableval
9889 with_home_terminfo=yes
9891 echo "$as_me:9891: result: $with_home_terminfo" >&5
9892 echo "${ECHO_T}$with_home_terminfo" >&6
9893 test "x$with_home_terminfo" = "xyes" &&
9894 cat >>confdefs.h <<\EOF
9895 #define USE_HOME_TERMINFO 1
9898 echo "$as_me:9898: checking if you want to permit root to use ncurses environment variables" >&5
9899 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9901 # Check whether --enable-root-environ or --disable-root-environ was given.
9902 if test "${enable_root_environ+set}" = set; then
9903 enableval="$enable_root_environ"
9904 with_root_environ=$enableval
9906 with_root_environ=yes
9908 echo "$as_me:9908: result: $with_root_environ" >&5
9909 echo "${ECHO_T}$with_root_environ" >&6
9910 test "x$with_root_environ" = xyes &&
9911 cat >>confdefs.h <<\EOF
9912 #define USE_ROOT_ENVIRON 1
9915 echo "$as_me:9915: checking if you want to permit setuid programs to access all files" >&5
9916 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9918 # Check whether --enable-root-access or --disable-root-access was given.
9919 if test "${enable_root_access+set}" = set; then
9920 enableval="$enable_root_access"
9921 with_root_access=$enableval
9923 with_root_access=yes
9925 echo "$as_me:9925: result: $with_root_access" >&5
9926 echo "${ECHO_T}$with_root_access" >&6
9927 test "x$with_root_access" = xyes &&
9928 cat >>confdefs.h <<\EOF
9929 #define USE_ROOT_ACCESS 1
9932 echo "$as_me:9932: checking if you want to permit setuid use of ncurses environment variables" >&5
9933 echo $ECHO_N "checking if you want to permit setuid use of ncurses environment variables... $ECHO_C" >&6
9935 # Check whether --enable-setuid-environ or --disable-setuid-environ was given.
9936 if test "${enable_setuid_environ+set}" = set; then
9937 enableval="$enable_setuid_environ"
9938 with_setuid_environ=$enableval
9940 with_setuid_environ=$with_root_environ
9942 echo "$as_me:9942: result: $with_setuid_environ" >&5
9943 echo "${ECHO_T}$with_setuid_environ" >&6
9944 test "x$with_setuid_environ" = xyes &&
9945 cat >>confdefs.h <<\EOF
9946 #define USE_SETUID_ENVIRON 1
9949 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9950 ### to reduce storage requirements for the terminfo database.
9956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9957 echo "$as_me:9957: checking for $ac_header" >&5
9958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 cat >"conftest.$ac_ext" <<_ACEOF
9963 #line 9963 "configure"
9964 #include "confdefs.h"
9965 #include <$ac_header>
9967 if { (eval echo "$as_me:9967: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9968 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9970 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9972 cat conftest.err >&5
9973 echo "$as_me:9973: \$? = $ac_status" >&5
9974 (exit "$ac_status"); } >/dev/null; then
9975 if test -s conftest.err; then
9976 ac_cpp_err=$ac_c_preproc_warn_flag
9983 if test -z "$ac_cpp_err"; then
9984 eval "$as_ac_Header=yes"
9986 echo "$as_me: failed program was:" >&5
9987 cat "conftest.$ac_ext" >&5
9988 eval "$as_ac_Header=no"
9990 rm -f conftest.err "conftest.$ac_ext"
9992 echo "$as_me:9992: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9993 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9994 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9995 cat >>confdefs.h <<EOF
9996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10007 echo "$as_me:10007: checking for $ac_func" >&5
10008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10009 if eval "test \"\${$as_ac_var+set}\" = set"; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 cat >"conftest.$ac_ext" <<_ACEOF
10013 #line 10013 "configure"
10014 #include "confdefs.h"
10015 #define $ac_func autoconf_temporary
10016 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10025 char $ac_func (void);
10031 /* The GNU C library defines stubs for functions which it implements
10032 to always fail with ENOSYS. Some functions are actually named
10033 something starting with __ and the normal name is an alias. */
10034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10035 #error found stub for $ac_func
10038 return $ac_func ();
10043 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10044 if { (eval echo "$as_me:10044: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>&5
10047 echo "$as_me:10047: \$? = $ac_status" >&5
10048 (exit "$ac_status"); } &&
10049 { ac_try='test -s "conftest$ac_exeext"'
10050 { (eval echo "$as_me:10050: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:10053: \$? = $ac_status" >&5
10054 (exit "$ac_status"); }; }; then
10055 eval "$as_ac_var=yes"
10057 echo "$as_me: failed program was:" >&5
10058 cat "conftest.$ac_ext" >&5
10059 eval "$as_ac_var=no"
10061 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10063 echo "$as_me:10063: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10064 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10065 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10066 cat >>confdefs.h <<EOF
10067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10073 if test "$cross_compiling" = yes ; then
10079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10080 echo "$as_me:10080: checking for $ac_func" >&5
10081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10082 if eval "test \"\${$as_ac_var+set}\" = set"; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 cat >"conftest.$ac_ext" <<_ACEOF
10086 #line 10086 "configure"
10087 #include "confdefs.h"
10088 #define $ac_func autoconf_temporary
10089 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10096 /* We use char because int might match the return type of a gcc2
10097 builtin and then its argument prototype would still apply. */
10098 char $ac_func (void);
10104 /* The GNU C library defines stubs for functions which it implements
10105 to always fail with ENOSYS. Some functions are actually named
10106 something starting with __ and the normal name is an alias. */
10107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10108 #error found stub for $ac_func
10111 return $ac_func ();
10116 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10117 if { (eval echo "$as_me:10117: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>&5
10120 echo "$as_me:10120: \$? = $ac_status" >&5
10121 (exit "$ac_status"); } &&
10122 { ac_try='test -s "conftest$ac_exeext"'
10123 { (eval echo "$as_me:10123: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:10126: \$? = $ac_status" >&5
10127 (exit "$ac_status"); }; }; then
10128 eval "$as_ac_var=yes"
10130 echo "$as_me: failed program was:" >&5
10131 cat "conftest.$ac_ext" >&5
10132 eval "$as_ac_var=no"
10134 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10136 echo "$as_me:10136: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10137 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10138 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10139 cat >>confdefs.h <<EOF
10140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10147 echo "$as_me:10147: checking if link/symlink functions work" >&5
10148 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
10149 if test "${cf_cv_link_funcs+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 for cf_func in link symlink ; do
10155 if test "$cross_compiling" = yes; then
10157 eval 'ac_cv_func_'$cf_func'=error'
10159 cat >"conftest.$ac_ext" <<_ACEOF
10160 #line 10160 "configure"
10161 #include "confdefs.h"
10163 $ac_includes_default
10168 char *src = "conftest.tmp";
10169 char *dst = "conftest.chk";
10170 struct stat src_sb, dst_sb;
10171 FILE *fp = fopen(src, "w");
10172 if (fp == 0) { fail = 3; } else {
10173 fclose(fp); stat(src, &src_sb);
10174 if ($cf_func(src, dst) < 0) {
10176 } else if (stat(dst, &dst_sb) < 0) {
10179 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
10180 if (diff < 0) diff = -diff;
10181 if (diff > 2) fail = 3;
10185 unlink(dst); unlink(src);
10187 remove(dst); remove(src);
10189 ${cf_cv_main_return:-return} (fail);
10193 rm -f "conftest$ac_exeext"
10194 if { (eval echo "$as_me:10194: \"$ac_link\"") >&5
10195 (eval $ac_link) 2>&5
10197 echo "$as_me:10197: \$? = $ac_status" >&5
10198 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10199 { (eval echo "$as_me:10199: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10202 echo "$as_me:10202: \$? = $ac_status" >&5
10203 (exit "$ac_status"); }; }; then
10205 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
10206 eval 'ac_cv_func_'$cf_func'=yes'
10208 echo "$as_me: program exited with status $ac_status" >&5
10209 echo "$as_me: failed program was:" >&5
10210 cat "conftest.$ac_ext" >&5
10212 eval 'ac_cv_func_'$cf_func'=no'
10214 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10217 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
10220 echo "$as_me:10220: result: $cf_cv_link_funcs" >&5
10221 echo "${ECHO_T}$cf_cv_link_funcs" >&6
10222 test "$ac_cv_func_link" = yes &&
10223 cat >>confdefs.h <<\EOF
10224 #define HAVE_LINK 1
10227 test "$ac_cv_func_symlink" = yes &&
10228 cat >>confdefs.h <<\EOF
10229 #define HAVE_SYMLINK 1
10237 # soft links (symbolic links) are useful for some systems where hard links do
10238 # not work, or to make it simpler to copy terminfo trees around.
10239 if test "x$ac_cv_func_symlink" = xyes ; then
10240 echo "$as_me:10240: checking if tic should use symbolic links" >&5
10241 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
10243 # Check whether --enable-symlinks or --disable-symlinks was given.
10244 if test "${enable_symlinks+set}" = set; then
10245 enableval="$enable_symlinks"
10246 with_symlinks=$enableval
10250 echo "$as_me:10250: result: $with_symlinks" >&5
10251 echo "${ECHO_T}$with_symlinks" >&6
10254 # If we have hard links and did not choose to use soft links instead, there is
10255 # no reason to make this choice optional - use the hard links.
10256 if test "$with_symlinks" = no ; then
10257 echo "$as_me:10257: checking if tic should use hard links" >&5
10258 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
10259 if test "x$ac_cv_func_link" = xyes ; then
10264 echo "$as_me:10264: result: $with_links" >&5
10265 echo "${ECHO_T}$with_links" >&6
10268 test "x$with_links" = xyes &&
10269 cat >>confdefs.h <<\EOF
10270 #define USE_LINKS 1
10273 test "x$with_symlinks" = xyes &&
10274 cat >>confdefs.h <<\EOF
10275 #define USE_SYMLINKS 1
10278 ### use option --enable-broken-linker to force on use of broken-linker support
10280 echo "$as_me:10280: checking if you want broken-linker support code" >&5
10281 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
10283 # Check whether --enable-broken_linker or --disable-broken_linker was given.
10284 if test "${enable_broken_linker+set}" = set; then
10285 enableval="$enable_broken_linker"
10286 with_broken_linker=$enableval
10288 with_broken_linker=no
10290 echo "$as_me:10290: result: $with_broken_linker" >&5
10291 echo "${ECHO_T}$with_broken_linker" >&6
10293 : "${BROKEN_LINKER:=0}"
10294 if test "x$with_broken_linker" = xyes ; then
10296 cat >>confdefs.h <<\EOF
10297 #define BROKEN_LINKER 1
10303 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
10304 echo "$as_me:10304: checking if tputs should process BSD-style prefix padding" >&5
10305 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
10307 # Check whether --enable-bsdpad or --disable-bsdpad was given.
10308 if test "${enable_bsdpad+set}" = set; then
10309 enableval="$enable_bsdpad"
10310 with_bsdpad=$enableval
10314 echo "$as_me:10314: result: $with_bsdpad" >&5
10315 echo "${ECHO_T}$with_bsdpad" >&6
10316 test "x$with_bsdpad" = xyes &&
10317 cat >>confdefs.h <<\EOF
10318 #define BSD_TPUTS 1
10321 ### use option --enable-widec to turn on use of wide-character support
10322 NCURSES_CH_T=chtype
10326 NCURSES_MBSTATE_T=0
10330 # Check to define _XOPEN_SOURCE "automatically"
10331 CPPFLAGS_before_XOPEN="$CPPFLAGS"
10333 echo "$as_me:10333: checking if the POSIX test-macros are already defined" >&5
10334 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
10335 if test "${cf_cv_posix_visible+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 cat >"conftest.$ac_ext" <<_ACEOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10347 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
10348 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
10349 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
10350 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
10351 #error conflicting symbols found
10358 rm -f "conftest.$ac_objext"
10359 if { (eval echo "$as_me:10359: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>&5
10362 echo "$as_me:10362: \$? = $ac_status" >&5
10363 (exit "$ac_status"); } &&
10364 { ac_try='test -s "conftest.$ac_objext"'
10365 { (eval echo "$as_me:10365: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10368 echo "$as_me:10368: \$? = $ac_status" >&5
10369 (exit "$ac_status"); }; }; then
10370 cf_cv_posix_visible=no
10372 echo "$as_me: failed program was:" >&5
10373 cat "conftest.$ac_ext" >&5
10374 cf_cv_posix_visible=yes
10376 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10379 echo "$as_me:10379: result: $cf_cv_posix_visible" >&5
10380 echo "${ECHO_T}$cf_cv_posix_visible" >&6
10382 if test "$cf_cv_posix_visible" = no; then
10384 cf_XOPEN_SOURCE=600
10385 cf_POSIX_C_SOURCE=199506L
10390 cf_xopen_source="-D_ALL_SOURCE"
10393 cf_xopen_source="-D_APPLE_C_SOURCE"
10396 cf_xopen_source="-D_DARWIN_C_SOURCE"
10399 (freebsd*|dragonfly*|midnightbsd*)
10400 # 5.x headers associate
10401 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
10402 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
10403 cf_POSIX_C_SOURCE=200112L
10404 cf_XOPEN_SOURCE=600
10405 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10408 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
10411 cf_xopen_source="-D_HPUX_SOURCE"
10414 cf_xopen_source="-D_SGI_SOURCE"
10417 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*)
10419 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
10421 echo "$as_me:10421: checking if this is the GNU C library" >&5
10422 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
10423 if test "${cf_cv_gnu_library+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 cat >"conftest.$ac_ext" <<_ACEOF
10428 #line 10428 "configure"
10429 #include "confdefs.h"
10430 #include <sys/types.h>
10435 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
10437 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
10440 # error not GNU C library
10446 rm -f "conftest.$ac_objext"
10447 if { (eval echo "$as_me:10447: \"$ac_compile\"") >&5
10448 (eval $ac_compile) 2>&5
10450 echo "$as_me:10450: \$? = $ac_status" >&5
10451 (exit "$ac_status"); } &&
10452 { ac_try='test -s "conftest.$ac_objext"'
10453 { (eval echo "$as_me:10453: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:10456: \$? = $ac_status" >&5
10457 (exit "$ac_status"); }; }; then
10458 cf_cv_gnu_library=yes
10460 echo "$as_me: failed program was:" >&5
10461 cat "conftest.$ac_ext" >&5
10462 cf_cv_gnu_library=no
10464 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10467 echo "$as_me:10467: result: $cf_cv_gnu_library" >&5
10468 echo "${ECHO_T}$cf_cv_gnu_library" >&6
10470 if test x$cf_cv_gnu_library = xyes; then
10472 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
10473 # was changed to help a little. newlib incorporated the change about 4
10475 echo "$as_me:10475: checking if _DEFAULT_SOURCE can be used as a basis" >&5
10476 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
10477 if test "${cf_cv_gnu_library_219+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cf_save="$CPPFLAGS"
10483 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10484 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10486 cat >"conftest.$ac_ext" <<_ACEOF
10487 #line 10487 "configure"
10488 #include "confdefs.h"
10489 #include <sys/types.h>
10494 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10496 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10499 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10505 rm -f "conftest.$ac_objext"
10506 if { (eval echo "$as_me:10506: \"$ac_compile\"") >&5
10507 (eval $ac_compile) 2>&5
10509 echo "$as_me:10509: \$? = $ac_status" >&5
10510 (exit "$ac_status"); } &&
10511 { ac_try='test -s "conftest.$ac_objext"'
10512 { (eval echo "$as_me:10512: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10515 echo "$as_me:10515: \$? = $ac_status" >&5
10516 (exit "$ac_status"); }; }; then
10517 cf_cv_gnu_library_219=yes
10519 echo "$as_me: failed program was:" >&5
10520 cat "conftest.$ac_ext" >&5
10521 cf_cv_gnu_library_219=no
10523 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10524 CPPFLAGS="$cf_save"
10527 echo "$as_me:10527: result: $cf_cv_gnu_library_219" >&5
10528 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10530 if test "x$cf_cv_gnu_library_219" = xyes; then
10531 cf_save="$CPPFLAGS"
10532 echo "$as_me:10532: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10533 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10534 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 cf_new_extra_cppflags=
10543 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10545 case "$cf_fix_cppflags" in
10547 case "$cf_add_cflags" in
10548 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10549 case "$cf_add_cflags" in
10551 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10553 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10554 && test -z "${cf_tst_cflags}" \
10555 && cf_fix_cppflags=yes
10557 if test "$cf_fix_cppflags" = yes ; then
10559 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10560 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10563 elif test "${cf_tst_cflags}" = "\"'" ; then
10565 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10566 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10572 case "$CPPFLAGS" in
10576 case "$cf_add_cflags" in
10578 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10580 CPPFLAGS=`echo "$CPPFLAGS" | \
10581 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10582 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10587 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10588 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10595 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10596 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10603 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10604 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10606 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10608 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10609 && test -z "${cf_tst_cflags}" \
10610 && cf_fix_cppflags=no
10615 if test -n "$cf_new_cflags" ; then
10617 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10618 CFLAGS="${CFLAGS}$cf_new_cflags"
10622 if test -n "$cf_new_cppflags" ; then
10624 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10625 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10629 if test -n "$cf_new_extra_cppflags" ; then
10631 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10632 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10636 cat >"conftest.$ac_ext" <<_ACEOF
10637 #line 10637 "configure"
10638 #include "confdefs.h"
10640 #include <limits.h>
10641 #include <sys/types.h>
10647 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10650 # error GNU C library is too old
10656 rm -f "conftest.$ac_objext"
10657 if { (eval echo "$as_me:10657: \"$ac_compile\"") >&5
10658 (eval $ac_compile) 2>&5
10660 echo "$as_me:10660: \$? = $ac_status" >&5
10661 (exit "$ac_status"); } &&
10662 { ac_try='test -s "conftest.$ac_objext"'
10663 { (eval echo "$as_me:10663: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:10666: \$? = $ac_status" >&5
10667 (exit "$ac_status"); }; }; then
10668 cf_cv_gnu_dftsrc_219=yes
10670 echo "$as_me: failed program was:" >&5
10671 cat "conftest.$ac_ext" >&5
10672 cf_cv_gnu_dftsrc_219=no
10674 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10677 echo "$as_me:10677: result: $cf_cv_gnu_dftsrc_219" >&5
10678 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10679 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10681 cf_cv_gnu_dftsrc_219=maybe
10684 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10686 echo "$as_me:10686: checking if we must define _GNU_SOURCE" >&5
10687 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10688 if test "${cf_cv_gnu_source+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 cat >"conftest.$ac_ext" <<_ACEOF
10693 #line 10693 "configure"
10694 #include "confdefs.h"
10695 #include <sys/types.h>
10700 #ifndef _XOPEN_SOURCE
10701 #error expected _XOPEN_SOURCE to be defined
10707 rm -f "conftest.$ac_objext"
10708 if { (eval echo "$as_me:10708: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>&5
10711 echo "$as_me:10711: \$? = $ac_status" >&5
10712 (exit "$ac_status"); } &&
10713 { ac_try='test -s "conftest.$ac_objext"'
10714 { (eval echo "$as_me:10714: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:10717: \$? = $ac_status" >&5
10718 (exit "$ac_status"); }; }; then
10719 cf_cv_gnu_source=no
10721 echo "$as_me: failed program was:" >&5
10722 cat "conftest.$ac_ext" >&5
10723 cf_save="$CPPFLAGS"
10728 cf_new_extra_cppflags=
10730 for cf_add_cflags in -D_GNU_SOURCE
10732 case "$cf_fix_cppflags" in
10734 case "$cf_add_cflags" in
10735 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10736 case "$cf_add_cflags" in
10738 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10740 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10741 && test -z "${cf_tst_cflags}" \
10742 && cf_fix_cppflags=yes
10744 if test "$cf_fix_cppflags" = yes ; then
10746 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10747 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10750 elif test "${cf_tst_cflags}" = "\"'" ; then
10752 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10753 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10759 case "$CPPFLAGS" in
10763 case "$cf_add_cflags" in
10765 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10767 CPPFLAGS=`echo "$CPPFLAGS" | \
10768 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10769 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10774 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10775 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10782 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10783 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10790 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10791 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10793 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10795 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10796 && test -z "${cf_tst_cflags}" \
10797 && cf_fix_cppflags=no
10802 if test -n "$cf_new_cflags" ; then
10804 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10805 CFLAGS="${CFLAGS}$cf_new_cflags"
10809 if test -n "$cf_new_cppflags" ; then
10811 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10812 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10816 if test -n "$cf_new_extra_cppflags" ; then
10818 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10819 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10823 cat >"conftest.$ac_ext" <<_ACEOF
10824 #line 10824 "configure"
10825 #include "confdefs.h"
10826 #include <sys/types.h>
10831 #ifdef _XOPEN_SOURCE
10832 #error expected _XOPEN_SOURCE to be undefined
10838 rm -f "conftest.$ac_objext"
10839 if { (eval echo "$as_me:10839: \"$ac_compile\"") >&5
10840 (eval $ac_compile) 2>&5
10842 echo "$as_me:10842: \$? = $ac_status" >&5
10843 (exit "$ac_status"); } &&
10844 { ac_try='test -s "conftest.$ac_objext"'
10845 { (eval echo "$as_me:10845: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:10848: \$? = $ac_status" >&5
10849 (exit "$ac_status"); }; }; then
10850 cf_cv_gnu_source=no
10852 echo "$as_me: failed program was:" >&5
10853 cat "conftest.$ac_ext" >&5
10854 cf_cv_gnu_source=yes
10856 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10857 CPPFLAGS="$cf_save"
10860 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10863 echo "$as_me:10863: result: $cf_cv_gnu_source" >&5
10864 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10866 if test "$cf_cv_gnu_source" = yes
10868 echo "$as_me:10868: checking if we should also define _DEFAULT_SOURCE" >&5
10869 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10870 if test "${cf_cv_default_source+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10875 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10877 cat >"conftest.$ac_ext" <<_ACEOF
10878 #line 10878 "configure"
10879 #include "confdefs.h"
10880 #include <sys/types.h>
10885 #ifdef _DEFAULT_SOURCE
10886 #error expected _DEFAULT_SOURCE to be undefined
10892 rm -f "conftest.$ac_objext"
10893 if { (eval echo "$as_me:10893: \"$ac_compile\"") >&5
10894 (eval $ac_compile) 2>&5
10896 echo "$as_me:10896: \$? = $ac_status" >&5
10897 (exit "$ac_status"); } &&
10898 { ac_try='test -s "conftest.$ac_objext"'
10899 { (eval echo "$as_me:10899: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:10902: \$? = $ac_status" >&5
10903 (exit "$ac_status"); }; }; then
10904 cf_cv_default_source=no
10906 echo "$as_me: failed program was:" >&5
10907 cat "conftest.$ac_ext" >&5
10908 cf_cv_default_source=yes
10910 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10913 echo "$as_me:10913: result: $cf_cv_default_source" >&5
10914 echo "${ECHO_T}$cf_cv_default_source" >&6
10915 if test "$cf_cv_default_source" = yes
10918 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10919 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10929 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10932 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10935 if test "$cf_cv_posix_visible" = no; then
10937 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10939 cf_save_CFLAGS="$CFLAGS"
10940 cf_save_CPPFLAGS="$CPPFLAGS"
10942 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10943 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10944 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10946 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10947 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10948 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10950 echo "$as_me:10950: checking if we should define _POSIX_C_SOURCE" >&5
10951 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10952 if test "${cf_cv_posix_c_source+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 echo "${as_me:-configure}:10956: testing if the symbol is already defined go no further ..." 1>&5
10958 cat >"conftest.$ac_ext" <<_ACEOF
10959 #line 10959 "configure"
10960 #include "confdefs.h"
10961 #include <sys/types.h>
10966 #ifndef _POSIX_C_SOURCE
10967 #error _POSIX_C_SOURCE is not defined
10973 rm -f "conftest.$ac_objext"
10974 if { (eval echo "$as_me:10974: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>&5
10977 echo "$as_me:10977: \$? = $ac_status" >&5
10978 (exit "$ac_status"); } &&
10979 { ac_try='test -s "conftest.$ac_objext"'
10980 { (eval echo "$as_me:10980: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:10983: \$? = $ac_status" >&5
10984 (exit "$ac_status"); }; }; then
10985 cf_cv_posix_c_source=no
10987 echo "$as_me: failed program was:" >&5
10988 cat "conftest.$ac_ext" >&5
10989 cf_want_posix_source=no
10990 case .$cf_POSIX_C_SOURCE in
10992 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10995 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10996 cf_want_posix_source=yes
10999 cf_want_posix_source=yes
11002 if test "$cf_want_posix_source" = yes ; then
11003 cat >"conftest.$ac_ext" <<_ACEOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11006 #include <sys/types.h>
11011 #ifdef _POSIX_SOURCE
11012 #error _POSIX_SOURCE is defined
11018 rm -f "conftest.$ac_objext"
11019 if { (eval echo "$as_me:11019: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>&5
11022 echo "$as_me:11022: \$? = $ac_status" >&5
11023 (exit "$ac_status"); } &&
11024 { ac_try='test -s "conftest.$ac_objext"'
11025 { (eval echo "$as_me:11025: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 echo "$as_me:11028: \$? = $ac_status" >&5
11029 (exit "$ac_status"); }; }; then
11032 echo "$as_me: failed program was:" >&5
11033 cat "conftest.$ac_ext" >&5
11034 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11036 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11039 echo "${as_me:-configure}:11039: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11041 CFLAGS="$cf_trim_CFLAGS"
11042 CPPFLAGS="$cf_trim_CPPFLAGS"
11044 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11045 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11047 echo "${as_me:-configure}:11047: testing if the second compile does not leave our definition intact error ..." 1>&5
11049 cat >"conftest.$ac_ext" <<_ACEOF
11050 #line 11050 "configure"
11051 #include "confdefs.h"
11052 #include <sys/types.h>
11057 #ifndef _POSIX_C_SOURCE
11058 #error _POSIX_C_SOURCE is not defined
11064 rm -f "conftest.$ac_objext"
11065 if { (eval echo "$as_me:11065: \"$ac_compile\"") >&5
11066 (eval $ac_compile) 2>&5
11068 echo "$as_me:11068: \$? = $ac_status" >&5
11069 (exit "$ac_status"); } &&
11070 { ac_try='test -s "conftest.$ac_objext"'
11071 { (eval echo "$as_me:11071: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:11074: \$? = $ac_status" >&5
11075 (exit "$ac_status"); }; }; then
11078 echo "$as_me: failed program was:" >&5
11079 cat "conftest.$ac_ext" >&5
11080 cf_cv_posix_c_source=no
11082 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11083 CFLAGS="$cf_save_CFLAGS"
11084 CPPFLAGS="$cf_save_CPPFLAGS"
11087 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11090 echo "$as_me:11090: result: $cf_cv_posix_c_source" >&5
11091 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11093 if test "$cf_cv_posix_c_source" != no ; then
11094 CFLAGS="$cf_trim_CFLAGS"
11095 CPPFLAGS="$cf_trim_CPPFLAGS"
11100 cf_new_extra_cppflags=
11102 for cf_add_cflags in $cf_cv_posix_c_source
11104 case "$cf_fix_cppflags" in
11106 case "$cf_add_cflags" in
11107 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11108 case "$cf_add_cflags" in
11110 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11112 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11113 && test -z "${cf_tst_cflags}" \
11114 && cf_fix_cppflags=yes
11116 if test "$cf_fix_cppflags" = yes ; then
11118 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11119 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11122 elif test "${cf_tst_cflags}" = "\"'" ; then
11124 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11125 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11131 case "$CPPFLAGS" in
11135 case "$cf_add_cflags" in
11137 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11139 CPPFLAGS=`echo "$CPPFLAGS" | \
11140 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11141 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11146 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11147 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11154 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11155 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11162 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11163 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11165 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11167 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11168 && test -z "${cf_tst_cflags}" \
11169 && cf_fix_cppflags=no
11174 if test -n "$cf_new_cflags" ; then
11176 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11177 CFLAGS="${CFLAGS}$cf_new_cflags"
11181 if test -n "$cf_new_cppflags" ; then
11183 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11184 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11188 if test -n "$cf_new_extra_cppflags" ; then
11190 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11191 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11197 fi # cf_cv_posix_visible
11201 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
11204 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
11205 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
11206 # Abusing the conformance level is a workaround.
11207 { echo "$as_me:11207: WARNING: this system does not provide usable locale support" >&5
11208 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
11209 cf_xopen_source="-D_BSD_SOURCE"
11210 cf_XOPEN_SOURCE=700
11213 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
11214 cf_xopen_source="-D_BSD_SOURCE"
11215 cf_XOPEN_SOURCE=600
11218 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
11221 cf_xopen_source="-D_OSF_SOURCE"
11224 cf_xopen_source="-D_QNX_SOURCE"
11227 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
11230 cf_xopen_source="-D__EXTENSIONS__"
11231 cf_cv_xopen_source=broken
11233 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
11239 echo "$as_me:11239: checking if we should define _XOPEN_SOURCE" >&5
11240 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11241 if test "${cf_cv_xopen_source+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 cat >"conftest.$ac_ext" <<_ACEOF
11246 #line 11246 "configure"
11247 #include "confdefs.h"
11249 $ac_includes_default
11255 #ifndef _XOPEN_SOURCE
11256 #error _XOPEN_SOURCE is not defined
11263 rm -f "conftest.$ac_objext"
11264 if { (eval echo "$as_me:11264: \"$ac_compile\"") >&5
11265 (eval $ac_compile) 2>&5
11267 echo "$as_me:11267: \$? = $ac_status" >&5
11268 (exit "$ac_status"); } &&
11269 { ac_try='test -s "conftest.$ac_objext"'
11270 { (eval echo "$as_me:11270: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11273 echo "$as_me:11273: \$? = $ac_status" >&5
11274 (exit "$ac_status"); }; }; then
11275 cf_cv_xopen_source=no
11277 echo "$as_me: failed program was:" >&5
11278 cat "conftest.$ac_ext" >&5
11279 cf_save="$CPPFLAGS"
11281 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11282 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11284 cat >"conftest.$ac_ext" <<_ACEOF
11285 #line 11285 "configure"
11286 #include "confdefs.h"
11288 $ac_includes_default
11294 #ifndef _XOPEN_SOURCE
11295 #error _XOPEN_SOURCE is not defined
11302 rm -f "conftest.$ac_objext"
11303 if { (eval echo "$as_me:11303: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>&5
11306 echo "$as_me:11306: \$? = $ac_status" >&5
11307 (exit "$ac_status"); } &&
11308 { ac_try='test -s "conftest.$ac_objext"'
11309 { (eval echo "$as_me:11309: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:11312: \$? = $ac_status" >&5
11313 (exit "$ac_status"); }; }; then
11314 cf_cv_xopen_source=no
11316 echo "$as_me: failed program was:" >&5
11317 cat "conftest.$ac_ext" >&5
11318 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11320 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11321 CPPFLAGS="$cf_save"
11324 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11327 echo "$as_me:11327: result: $cf_cv_xopen_source" >&5
11328 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11330 if test "$cf_cv_xopen_source" != no ; then
11332 CFLAGS=`echo "$CFLAGS" | \
11333 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11334 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11336 CPPFLAGS=`echo "$CPPFLAGS" | \
11337 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11338 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11340 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11342 for cf_add_cflags in $cf_temp_xopen_source
11344 case "x$cf_add_cflags" in
11347 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11350 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'`
11351 test "$CFLAGS" != "$cf_old_cflag" || break
11353 CFLAGS="$cf_old_cflag"
11356 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11359 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'`
11360 test "$CPPFLAGS" != "$cf_old_cflag" || break
11362 CPPFLAGS="$cf_old_cflag"
11371 cf_new_extra_cppflags=
11373 for cf_add_cflags in $cf_add_cflags
11375 case "$cf_fix_cppflags" in
11377 case "$cf_add_cflags" in
11378 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11379 case "$cf_add_cflags" in
11381 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11383 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11384 && test -z "${cf_tst_cflags}" \
11385 && cf_fix_cppflags=yes
11387 if test "$cf_fix_cppflags" = yes ; then
11389 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11390 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11393 elif test "${cf_tst_cflags}" = "\"'" ; then
11395 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11396 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11402 case "$CPPFLAGS" in
11406 case "$cf_add_cflags" in
11408 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11410 CPPFLAGS=`echo "$CPPFLAGS" | \
11411 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11412 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11417 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11418 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11425 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11426 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11433 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11434 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11436 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11438 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11439 && test -z "${cf_tst_cflags}" \
11440 && cf_fix_cppflags=no
11445 if test -n "$cf_new_cflags" ; then
11447 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11448 CFLAGS="${CFLAGS}$cf_new_cflags"
11452 if test -n "$cf_new_cppflags" ; then
11454 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11455 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11459 if test -n "$cf_new_extra_cppflags" ; then
11461 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11462 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11470 cf_save_xopen_cppflags="$CPPFLAGS"
11472 if test "$cf_cv_posix_visible" = no; then
11474 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11476 cf_save_CFLAGS="$CFLAGS"
11477 cf_save_CPPFLAGS="$CPPFLAGS"
11479 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11480 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11481 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11483 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11484 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11485 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11487 echo "$as_me:11487: checking if we should define _POSIX_C_SOURCE" >&5
11488 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11489 if test "${cf_cv_posix_c_source+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 echo "${as_me:-configure}:11493: testing if the symbol is already defined go no further ..." 1>&5
11495 cat >"conftest.$ac_ext" <<_ACEOF
11496 #line 11496 "configure"
11497 #include "confdefs.h"
11498 #include <sys/types.h>
11503 #ifndef _POSIX_C_SOURCE
11504 #error _POSIX_C_SOURCE is not defined
11510 rm -f "conftest.$ac_objext"
11511 if { (eval echo "$as_me:11511: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>&5
11514 echo "$as_me:11514: \$? = $ac_status" >&5
11515 (exit "$ac_status"); } &&
11516 { ac_try='test -s "conftest.$ac_objext"'
11517 { (eval echo "$as_me:11517: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:11520: \$? = $ac_status" >&5
11521 (exit "$ac_status"); }; }; then
11522 cf_cv_posix_c_source=no
11524 echo "$as_me: failed program was:" >&5
11525 cat "conftest.$ac_ext" >&5
11526 cf_want_posix_source=no
11527 case .$cf_POSIX_C_SOURCE in
11529 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11532 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11533 cf_want_posix_source=yes
11536 cf_want_posix_source=yes
11539 if test "$cf_want_posix_source" = yes ; then
11540 cat >"conftest.$ac_ext" <<_ACEOF
11541 #line 11541 "configure"
11542 #include "confdefs.h"
11543 #include <sys/types.h>
11548 #ifdef _POSIX_SOURCE
11549 #error _POSIX_SOURCE is defined
11555 rm -f "conftest.$ac_objext"
11556 if { (eval echo "$as_me:11556: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>&5
11559 echo "$as_me:11559: \$? = $ac_status" >&5
11560 (exit "$ac_status"); } &&
11561 { ac_try='test -s "conftest.$ac_objext"'
11562 { (eval echo "$as_me:11562: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:11565: \$? = $ac_status" >&5
11566 (exit "$ac_status"); }; }; then
11569 echo "$as_me: failed program was:" >&5
11570 cat "conftest.$ac_ext" >&5
11571 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11573 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11576 echo "${as_me:-configure}:11576: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11578 CFLAGS="$cf_trim_CFLAGS"
11579 CPPFLAGS="$cf_trim_CPPFLAGS"
11581 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11582 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11584 echo "${as_me:-configure}:11584: testing if the second compile does not leave our definition intact error ..." 1>&5
11586 cat >"conftest.$ac_ext" <<_ACEOF
11587 #line 11587 "configure"
11588 #include "confdefs.h"
11589 #include <sys/types.h>
11594 #ifndef _POSIX_C_SOURCE
11595 #error _POSIX_C_SOURCE is not defined
11601 rm -f "conftest.$ac_objext"
11602 if { (eval echo "$as_me:11602: \"$ac_compile\"") >&5
11603 (eval $ac_compile) 2>&5
11605 echo "$as_me:11605: \$? = $ac_status" >&5
11606 (exit "$ac_status"); } &&
11607 { ac_try='test -s "conftest.$ac_objext"'
11608 { (eval echo "$as_me:11608: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:11611: \$? = $ac_status" >&5
11612 (exit "$ac_status"); }; }; then
11615 echo "$as_me: failed program was:" >&5
11616 cat "conftest.$ac_ext" >&5
11617 cf_cv_posix_c_source=no
11619 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11620 CFLAGS="$cf_save_CFLAGS"
11621 CPPFLAGS="$cf_save_CPPFLAGS"
11624 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11627 echo "$as_me:11627: result: $cf_cv_posix_c_source" >&5
11628 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11630 if test "$cf_cv_posix_c_source" != no ; then
11631 CFLAGS="$cf_trim_CFLAGS"
11632 CPPFLAGS="$cf_trim_CPPFLAGS"
11637 cf_new_extra_cppflags=
11639 for cf_add_cflags in $cf_cv_posix_c_source
11641 case "$cf_fix_cppflags" in
11643 case "$cf_add_cflags" in
11644 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11645 case "$cf_add_cflags" in
11647 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11649 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11650 && test -z "${cf_tst_cflags}" \
11651 && cf_fix_cppflags=yes
11653 if test "$cf_fix_cppflags" = yes ; then
11655 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11656 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11659 elif test "${cf_tst_cflags}" = "\"'" ; then
11661 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11662 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11668 case "$CPPFLAGS" in
11672 case "$cf_add_cflags" in
11674 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11676 CPPFLAGS=`echo "$CPPFLAGS" | \
11677 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11678 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11683 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11684 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11691 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11692 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11702 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11704 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11705 && test -z "${cf_tst_cflags}" \
11706 && cf_fix_cppflags=no
11711 if test -n "$cf_new_cflags" ; then
11713 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11714 CFLAGS="${CFLAGS}$cf_new_cflags"
11718 if test -n "$cf_new_cppflags" ; then
11720 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11721 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11725 if test -n "$cf_new_extra_cppflags" ; then
11727 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11728 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11734 fi # cf_cv_posix_visible
11736 # Some of these niche implementations use copy/paste, double-check...
11737 if test "$cf_cv_xopen_source" = no ; then
11738 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
11740 echo "${as_me:-configure}:11740: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
11742 cat >"conftest.$ac_ext" <<_ACEOF
11743 #line 11743 "configure"
11744 #include "confdefs.h"
11746 $ac_includes_default
11752 #ifndef _XOPEN_SOURCE
11753 #error _XOPEN_SOURCE is not defined
11760 rm -f "conftest.$ac_objext"
11761 if { (eval echo "$as_me:11761: \"$ac_compile\"") >&5
11762 (eval $ac_compile) 2>&5
11764 echo "$as_me:11764: \$? = $ac_status" >&5
11765 (exit "$ac_status"); } &&
11766 { ac_try='test -s "conftest.$ac_objext"'
11767 { (eval echo "$as_me:11767: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11770 echo "$as_me:11770: \$? = $ac_status" >&5
11771 (exit "$ac_status"); }; }; then
11774 echo "$as_me: failed program was:" >&5
11775 cat "conftest.$ac_ext" >&5
11777 { echo "$as_me:11777: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
11778 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
11779 CPPFLAGS="$cf_save_xopen_cppflags"
11781 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11786 if test -n "$cf_xopen_source" ; then
11788 for cf_add_cflags in $cf_xopen_source
11790 case "x$cf_add_cflags" in
11793 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11796 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'`
11797 test "$CFLAGS" != "$cf_old_cflag" || break
11798 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11800 echo "${as_me:-configure}:11800: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11802 CFLAGS="$cf_old_cflag"
11805 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11808 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'`
11809 test "$CPPFLAGS" != "$cf_old_cflag" || break
11810 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11812 echo "${as_me:-configure}:11812: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11814 CPPFLAGS="$cf_old_cflag"
11823 cf_new_extra_cppflags=
11825 for cf_add_cflags in $cf_add_cflags
11827 case "$cf_fix_cppflags" in
11829 case "$cf_add_cflags" in
11830 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11831 case "$cf_add_cflags" in
11833 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11835 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11836 && test -z "${cf_tst_cflags}" \
11837 && cf_fix_cppflags=yes
11839 if test "$cf_fix_cppflags" = yes ; then
11841 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11842 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11845 elif test "${cf_tst_cflags}" = "\"'" ; then
11847 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11848 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11854 case "$CPPFLAGS" in
11858 case "$cf_add_cflags" in
11860 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11862 CPPFLAGS=`echo "$CPPFLAGS" | \
11863 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11864 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11869 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11870 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11877 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11878 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11885 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11886 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11888 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11890 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11891 && test -z "${cf_tst_cflags}" \
11892 && cf_fix_cppflags=no
11897 if test -n "$cf_new_cflags" ; then
11898 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11900 echo "${as_me:-configure}:11900: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11902 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11903 CFLAGS="${CFLAGS}$cf_new_cflags"
11907 if test -n "$cf_new_cppflags" ; then
11908 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11910 echo "${as_me:-configure}:11910: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11912 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11913 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11917 if test -n "$cf_new_extra_cppflags" ; then
11918 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11920 echo "${as_me:-configure}:11920: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11922 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11923 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11931 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11932 echo "$as_me:11932: checking if _XOPEN_SOURCE really is set" >&5
11933 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11934 cat >"conftest.$ac_ext" <<_ACEOF
11935 #line 11935 "configure"
11936 #include "confdefs.h"
11937 #include <stdlib.h>
11942 #ifndef _XOPEN_SOURCE
11943 #error _XOPEN_SOURCE is not defined
11949 rm -f "conftest.$ac_objext"
11950 if { (eval echo "$as_me:11950: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>&5
11953 echo "$as_me:11953: \$? = $ac_status" >&5
11954 (exit "$ac_status"); } &&
11955 { ac_try='test -s "conftest.$ac_objext"'
11956 { (eval echo "$as_me:11956: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:11959: \$? = $ac_status" >&5
11960 (exit "$ac_status"); }; }; then
11961 cf_XOPEN_SOURCE_set=yes
11963 echo "$as_me: failed program was:" >&5
11964 cat "conftest.$ac_ext" >&5
11965 cf_XOPEN_SOURCE_set=no
11967 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11968 echo "$as_me:11968: result: $cf_XOPEN_SOURCE_set" >&5
11969 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11970 if test "$cf_XOPEN_SOURCE_set" = yes
11972 cat >"conftest.$ac_ext" <<_ACEOF
11973 #line 11973 "configure"
11974 #include "confdefs.h"
11975 #include <stdlib.h>
11980 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11981 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11987 rm -f "conftest.$ac_objext"
11988 if { (eval echo "$as_me:11988: \"$ac_compile\"") >&5
11989 (eval $ac_compile) 2>&5
11991 echo "$as_me:11991: \$? = $ac_status" >&5
11992 (exit "$ac_status"); } &&
11993 { ac_try='test -s "conftest.$ac_objext"'
11994 { (eval echo "$as_me:11994: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:11997: \$? = $ac_status" >&5
11998 (exit "$ac_status"); }; }; then
11999 cf_XOPEN_SOURCE_set_ok=yes
12001 echo "$as_me: failed program was:" >&5
12002 cat "conftest.$ac_ext" >&5
12003 cf_XOPEN_SOURCE_set_ok=no
12005 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12006 if test "$cf_XOPEN_SOURCE_set_ok" = no
12008 { echo "$as_me:12008: WARNING: _XOPEN_SOURCE is lower than requested" >&5
12009 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
12013 echo "$as_me:12013: checking if we should define _XOPEN_SOURCE" >&5
12014 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
12015 if test "${cf_cv_xopen_source+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 cat >"conftest.$ac_ext" <<_ACEOF
12020 #line 12020 "configure"
12021 #include "confdefs.h"
12023 $ac_includes_default
12029 #ifndef _XOPEN_SOURCE
12030 #error _XOPEN_SOURCE is not defined
12037 rm -f "conftest.$ac_objext"
12038 if { (eval echo "$as_me:12038: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>&5
12041 echo "$as_me:12041: \$? = $ac_status" >&5
12042 (exit "$ac_status"); } &&
12043 { ac_try='test -s "conftest.$ac_objext"'
12044 { (eval echo "$as_me:12044: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:12047: \$? = $ac_status" >&5
12048 (exit "$ac_status"); }; }; then
12049 cf_cv_xopen_source=no
12051 echo "$as_me: failed program was:" >&5
12052 cat "conftest.$ac_ext" >&5
12053 cf_save="$CPPFLAGS"
12055 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12056 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
12058 cat >"conftest.$ac_ext" <<_ACEOF
12059 #line 12059 "configure"
12060 #include "confdefs.h"
12062 $ac_includes_default
12068 #ifndef _XOPEN_SOURCE
12069 #error _XOPEN_SOURCE is not defined
12076 rm -f "conftest.$ac_objext"
12077 if { (eval echo "$as_me:12077: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>&5
12080 echo "$as_me:12080: \$? = $ac_status" >&5
12081 (exit "$ac_status"); } &&
12082 { ac_try='test -s "conftest.$ac_objext"'
12083 { (eval echo "$as_me:12083: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:12086: \$? = $ac_status" >&5
12087 (exit "$ac_status"); }; }; then
12088 cf_cv_xopen_source=no
12090 echo "$as_me: failed program was:" >&5
12091 cat "conftest.$ac_ext" >&5
12092 cf_cv_xopen_source=$cf_XOPEN_SOURCE
12094 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12095 CPPFLAGS="$cf_save"
12098 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12101 echo "$as_me:12101: result: $cf_cv_xopen_source" >&5
12102 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12104 if test "$cf_cv_xopen_source" != no ; then
12106 CFLAGS=`echo "$CFLAGS" | \
12107 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12108 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12110 CPPFLAGS=`echo "$CPPFLAGS" | \
12111 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12112 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12114 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12116 for cf_add_cflags in $cf_temp_xopen_source
12118 case "x$cf_add_cflags" in
12121 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12124 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'`
12125 test "$CFLAGS" != "$cf_old_cflag" || break
12127 CFLAGS="$cf_old_cflag"
12130 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12133 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'`
12134 test "$CPPFLAGS" != "$cf_old_cflag" || break
12136 CPPFLAGS="$cf_old_cflag"
12145 cf_new_extra_cppflags=
12147 for cf_add_cflags in $cf_add_cflags
12149 case "$cf_fix_cppflags" in
12151 case "$cf_add_cflags" in
12152 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12153 case "$cf_add_cflags" in
12155 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12157 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12158 && test -z "${cf_tst_cflags}" \
12159 && cf_fix_cppflags=yes
12161 if test "$cf_fix_cppflags" = yes ; then
12163 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12164 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12167 elif test "${cf_tst_cflags}" = "\"'" ; then
12169 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12170 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12176 case "$CPPFLAGS" in
12180 case "$cf_add_cflags" in
12182 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12184 CPPFLAGS=`echo "$CPPFLAGS" | \
12185 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12186 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12191 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12192 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12199 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12200 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12207 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12208 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12210 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12212 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12213 && test -z "${cf_tst_cflags}" \
12214 && cf_fix_cppflags=no
12219 if test -n "$cf_new_cflags" ; then
12221 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12222 CFLAGS="${CFLAGS}$cf_new_cflags"
12226 if test -n "$cf_new_cppflags" ; then
12228 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12229 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12233 if test -n "$cf_new_extra_cppflags" ; then
12235 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12236 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12246 fi # cf_cv_posix_visible
12248 CPPFLAGS_after_XOPEN="$CPPFLAGS"
12250 # Work around breakage on OS X
12252 echo "$as_me:12252: checking if SIGWINCH is defined" >&5
12253 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
12254 if test "${cf_cv_define_sigwinch+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 cat >"conftest.$ac_ext" <<_ACEOF
12259 #line 12259 "configure"
12260 #include "confdefs.h"
12262 #include <sys/types.h>
12263 #include <sys/signal.h>
12268 int x = SIGWINCH; (void)x
12273 rm -f "conftest.$ac_objext"
12274 if { (eval echo "$as_me:12274: \"$ac_compile\"") >&5
12275 (eval $ac_compile) 2>&5
12277 echo "$as_me:12277: \$? = $ac_status" >&5
12278 (exit "$ac_status"); } &&
12279 { ac_try='test -s "conftest.$ac_objext"'
12280 { (eval echo "$as_me:12280: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:12283: \$? = $ac_status" >&5
12284 (exit "$ac_status"); }; }; then
12285 cf_cv_define_sigwinch=yes
12287 echo "$as_me: failed program was:" >&5
12288 cat "conftest.$ac_ext" >&5
12289 cat >"conftest.$ac_ext" <<_ACEOF
12290 #line 12290 "configure"
12291 #include "confdefs.h"
12293 #undef _XOPEN_SOURCE
12294 #undef _POSIX_SOURCE
12295 #undef _POSIX_C_SOURCE
12296 #include <sys/types.h>
12297 #include <sys/signal.h>
12302 int x = SIGWINCH; (void)x
12307 rm -f "conftest.$ac_objext"
12308 if { (eval echo "$as_me:12308: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>&5
12311 echo "$as_me:12311: \$? = $ac_status" >&5
12312 (exit "$ac_status"); } &&
12313 { ac_try='test -s "conftest.$ac_objext"'
12314 { (eval echo "$as_me:12314: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:12317: \$? = $ac_status" >&5
12318 (exit "$ac_status"); }; }; then
12319 cf_cv_define_sigwinch=maybe
12321 echo "$as_me: failed program was:" >&5
12322 cat "conftest.$ac_ext" >&5
12323 cf_cv_define_sigwinch=no
12325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12328 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12331 echo "$as_me:12331: result: $cf_cv_define_sigwinch" >&5
12332 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
12334 if test "$cf_cv_define_sigwinch" = maybe ; then
12335 echo "$as_me:12335: checking for actual SIGWINCH definition" >&5
12336 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
12337 if test "${cf_cv_fixup_sigwinch+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 cf_cv_fixup_sigwinch=unknown
12343 while test "$cf_sigwinch" != 1
12345 cat >"conftest.$ac_ext" <<_ACEOF
12346 #line 12346 "configure"
12347 #include "confdefs.h"
12349 #undef _XOPEN_SOURCE
12350 #undef _POSIX_SOURCE
12351 #undef _POSIX_C_SOURCE
12352 #include <sys/types.h>
12353 #include <sys/signal.h>
12359 #if SIGWINCH != $cf_sigwinch
12360 #error SIGWINCH is not $cf_sigwinch
12362 int x = SIGWINCH; (void)x
12367 rm -f "conftest.$ac_objext"
12368 if { (eval echo "$as_me:12368: \"$ac_compile\"") >&5
12369 (eval $ac_compile) 2>&5
12371 echo "$as_me:12371: \$? = $ac_status" >&5
12372 (exit "$ac_status"); } &&
12373 { ac_try='test -s "conftest.$ac_objext"'
12374 { (eval echo "$as_me:12374: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:12377: \$? = $ac_status" >&5
12378 (exit "$ac_status"); }; }; then
12379 cf_cv_fixup_sigwinch=$cf_sigwinch
12382 echo "$as_me: failed program was:" >&5
12383 cat "conftest.$ac_ext" >&5
12385 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12387 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
12391 echo "$as_me:12391: result: $cf_cv_fixup_sigwinch" >&5
12392 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
12394 if test "$cf_cv_fixup_sigwinch" != unknown ; then
12395 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
12399 # Checks for CODESET support.
12401 echo "$as_me:12401: checking for nl_langinfo and CODESET" >&5
12402 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12403 if test "${am_cv_langinfo_codeset+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 cat >"conftest.$ac_ext" <<_ACEOF
12407 #line 12407 "configure"
12408 #include "confdefs.h"
12410 $ac_includes_default
12411 #include <langinfo.h>
12415 char* cs = nl_langinfo(CODESET); (void)cs
12420 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12421 if { (eval echo "$as_me:12421: \"$ac_link\"") >&5
12422 (eval $ac_link) 2>&5
12424 echo "$as_me:12424: \$? = $ac_status" >&5
12425 (exit "$ac_status"); } &&
12426 { ac_try='test -s "conftest$ac_exeext"'
12427 { (eval echo "$as_me:12427: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:12430: \$? = $ac_status" >&5
12431 (exit "$ac_status"); }; }; then
12432 am_cv_langinfo_codeset=yes
12434 echo "$as_me: failed program was:" >&5
12435 cat "conftest.$ac_ext" >&5
12436 am_cv_langinfo_codeset=no
12438 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12441 echo "$as_me:12441: result: $am_cv_langinfo_codeset" >&5
12442 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12443 if test "$am_cv_langinfo_codeset" = yes; then
12445 cat >>confdefs.h <<\EOF
12446 #define HAVE_LANGINFO_CODESET 1
12451 # use these variables to work around a defect in gcc's fixincludes.
12452 NCURSES_OK_WCHAR_T=
12455 echo "$as_me:12455: checking if you want wide-character code" >&5
12456 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
12458 # Check whether --enable-widec or --disable-widec was given.
12459 if test "${enable_widec+set}" = set; then
12460 enableval="$enable_widec"
12461 with_widec=$enableval
12465 echo "$as_me:12465: result: $with_widec" >&5
12466 echo "${ECHO_T}$with_widec" >&6
12468 NCURSES_WCWIDTH_GRAPHICS=1
12470 if test "x$with_widec" = xyes ; then
12471 if test "x$disable_lib_suffixes" = xno ; then
12472 LIB_SUFFIX="w${LIB_SUFFIX}"
12475 cat >>confdefs.h <<\EOF
12476 #define USE_WIDEC_SUPPORT 1
12479 cat >>confdefs.h <<\EOF
12480 #define NCURSES_WIDECHAR 1
12483 case "$CPPFLAGS" in
12487 { echo "$as_me:12487: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&5
12488 echo "$as_me: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&2;}
12489 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
12490 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
12499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500 echo "$as_me:12500: checking for $ac_header" >&5
12501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 cat >"conftest.$ac_ext" <<_ACEOF
12506 #line 12506 "configure"
12507 #include "confdefs.h"
12508 #include <$ac_header>
12510 if { (eval echo "$as_me:12510: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12511 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12513 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12515 cat conftest.err >&5
12516 echo "$as_me:12516: \$? = $ac_status" >&5
12517 (exit "$ac_status"); } >/dev/null; then
12518 if test -s conftest.err; then
12519 ac_cpp_err=$ac_c_preproc_warn_flag
12526 if test -z "$ac_cpp_err"; then
12527 eval "$as_ac_Header=yes"
12529 echo "$as_me: failed program was:" >&5
12530 cat "conftest.$ac_ext" >&5
12531 eval "$as_ac_Header=no"
12533 rm -f conftest.err "conftest.$ac_ext"
12535 echo "$as_me:12535: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12536 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12537 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12538 cat >>confdefs.h <<EOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12545 echo "$as_me:12545: checking if wchar.h can be used as is" >&5
12546 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
12547 if test "${cf_cv_wchar_h_okay+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 cat >"conftest.$ac_ext" <<_ACEOF
12552 #line 12552 "configure"
12553 #include "confdefs.h"
12555 $ac_includes_default
12556 #ifdef HAVE_WCHAR_H
12559 #ifdef HAVE_WCTYPE_H
12560 #include <wctype.h>
12568 int bar = iswpunct(foo)
12573 rm -f "conftest.$ac_objext"
12574 if { (eval echo "$as_me:12574: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>&5
12577 echo "$as_me:12577: \$? = $ac_status" >&5
12578 (exit "$ac_status"); } &&
12579 { ac_try='test -s "conftest.$ac_objext"'
12580 { (eval echo "$as_me:12580: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:12583: \$? = $ac_status" >&5
12584 (exit "$ac_status"); }; }; then
12585 cf_cv_wchar_h_okay=yes
12587 echo "$as_me: failed program was:" >&5
12588 cat "conftest.$ac_ext" >&5
12589 cf_cv_wchar_h_okay=no
12591 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12593 echo "$as_me:12593: result: $cf_cv_wchar_h_okay" >&5
12594 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12596 if test "$cf_cv_wchar_h_okay" = no
12599 echo "$as_me:12599: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12600 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12601 cat >"conftest.$ac_ext" <<_ACEOF
12602 #line 12602 "configure"
12603 #include "confdefs.h"
12604 #include <sys/types.h>
12610 #ifndef _XOPEN_SOURCE_EXTENDED
12611 #error _XOPEN_SOURCE_EXTENDED is not defined
12617 rm -f "conftest.$ac_objext"
12618 if { (eval echo "$as_me:12618: \"$ac_compile\"") >&5
12619 (eval $ac_compile) 2>&5
12621 echo "$as_me:12621: \$? = $ac_status" >&5
12622 (exit "$ac_status"); } &&
12623 { ac_try='test -s "conftest.$ac_objext"'
12624 { (eval echo "$as_me:12624: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:12627: \$? = $ac_status" >&5
12628 (exit "$ac_status"); }; }; then
12631 echo "$as_me: failed program was:" >&5
12632 cat "conftest.$ac_ext" >&5
12635 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12636 echo "$as_me:12636: result: $cf_result" >&5
12637 echo "${ECHO_T}$cf_result" >&6
12639 if test "$cf_result" = yes ; then
12640 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12641 elif test "x" != "x" ; then
12642 echo "$as_me:12642: checking checking for compatible value versus " >&5
12643 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12644 cat >"conftest.$ac_ext" <<_ACEOF
12645 #line 12645 "configure"
12646 #include "confdefs.h"
12647 #include <sys/types.h>
12653 #if _XOPEN_SOURCE_EXTENDED- < 0
12654 #error _XOPEN_SOURCE_EXTENDED- is negative
12660 rm -f "conftest.$ac_objext"
12661 if { (eval echo "$as_me:12661: \"$ac_compile\"") >&5
12662 (eval $ac_compile) 2>&5
12664 echo "$as_me:12664: \$? = $ac_status" >&5
12665 (exit "$ac_status"); } &&
12666 { ac_try='test -s "conftest.$ac_objext"'
12667 { (eval echo "$as_me:12667: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:12670: \$? = $ac_status" >&5
12671 (exit "$ac_status"); }; }; then
12674 echo "$as_me: failed program was:" >&5
12675 cat "conftest.$ac_ext" >&5
12678 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12679 echo "$as_me:12679: result: $cf_result" >&5
12680 echo "${ECHO_T}$cf_result" >&6
12681 if test "$cf_result" = no ; then
12682 # perhaps we can override it - try...
12683 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12689 echo "$as_me:12689: checking if wcwidth agrees graphics are single-width" >&5
12690 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12691 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 cat >conftest.in <<CF_EOF
12697 0x250c upper left corner
12698 0x2514 lower left corner
12699 0x2510 upper right corner
12700 0x2518 lower right corner
12701 0x251c tee pointing left
12702 0x2524 tee pointing right
12703 0x2534 tee pointing up
12704 0x252c tee pointing down
12705 0x2500 horizontal line
12706 0x2502 vertical line
12707 0x253c large plus or crossover
12711 0x2592 checker board (stipple)
12712 0x00b0 degree symbol
12715 - Teletype 5410v1 symbols
12716 0x2190 arrow pointing left
12717 0x2192 arrow pointing right
12718 0x2193 arrow pointing down
12719 0x2191 arrow pointing up
12720 0x2592 board of squares
12721 0x2603 lantern symbol
12722 0x25ae solid square block
12723 - these defaults were invented for ncurses
12726 0x2264 less-than-or-equal-to
12727 0x2265 greater-than-or-equal-to
12730 0x00a3 pound-sterling symbol
12731 - thick-line-drawing
12732 0x250f upper left corner
12733 0x2517 lower left corner
12734 0x2513 upper right corner
12735 0x251b lower right corner
12736 0x2523 tee pointing left
12737 0x252b tee pointing right
12738 0x253b tee pointing up
12739 0x2533 tee pointing down
12740 0x2501 horizontal line
12741 0x2503 vertical line
12742 0x254b large plus or crossover
12743 - double-line-drawing
12744 0x2554 upper left corner
12745 0x255a lower left corner
12746 0x2557 upper right corner
12747 0x255d lower right corner
12748 0x2563 tee pointing left
12749 0x2560 tee pointing right
12750 0x2569 tee pointing up
12751 0x2566 tee pointing down
12752 0x2550 horizontal line
12753 0x2551 vertical line
12754 0x256c large plus or crossover
12756 if test "$cross_compiling" = yes; then
12757 cf_cv_wcwidth_graphics=unknown
12759 cat >"conftest.$ac_ext" <<_ACEOF
12760 #line 12760 "configure"
12761 #include "confdefs.h"
12763 $ac_includes_default
12765 #include <locale.h>
12775 char buffer[MY_LEN + 1];
12776 char notes[MY_LEN + 1];
12780 if (setlocale(LC_ALL, "en_US.UTF8") ||
12781 setlocale(LC_ALL, "en_US.UTF-8") ||
12782 setlocale(LC_ALL, "en_US.utf8") ||
12783 setlocale(LC_ALL, "en_US.utf-8")) {
12784 if ((fp = fopen("conftest.in", "r")) != 0) {
12785 while (fgets(buffer, MY_LEN, fp) != 0) {
12786 if (*buffer == '-') {
12787 fprintf(stderr, "\\t%s", buffer);
12788 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12790 if (wcwidth(value) == 1)
12792 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12794 fprintf(stderr, "?\\t%s", buffer);
12799 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12800 return (totals == passed) ? 0 : 1;
12804 rm -f "conftest$ac_exeext"
12805 if { (eval echo "$as_me:12805: \"$ac_link\"") >&5
12806 (eval $ac_link) 2>&5
12808 echo "$as_me:12808: \$? = $ac_status" >&5
12809 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12810 { (eval echo "$as_me:12810: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:12813: \$? = $ac_status" >&5
12814 (exit "$ac_status"); }; }; then
12815 cf_cv_wcwidth_graphics=yes
12817 echo "$as_me: program exited with status $ac_status" >&5
12818 echo "$as_me: failed program was:" >&5
12819 cat "conftest.$ac_ext" >&5
12820 cf_cv_wcwidth_graphics=no
12822 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12826 echo "$as_me:12826: result: $cf_cv_wcwidth_graphics" >&5
12827 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12829 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12831 # with_overwrite=no
12832 NCURSES_CH_T=cchar_t
12834 for ac_func in putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 echo "$as_me:12837: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12839 if eval "test \"\${$as_ac_var+set}\" = set"; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 cat >"conftest.$ac_ext" <<_ACEOF
12843 #line 12843 "configure"
12844 #include "confdefs.h"
12845 #define $ac_func autoconf_temporary
12846 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12853 /* We use char because int might match the return type of a gcc2
12854 builtin and then its argument prototype would still apply. */
12855 char $ac_func (void);
12861 /* The GNU C library defines stubs for functions which it implements
12862 to always fail with ENOSYS. Some functions are actually named
12863 something starting with __ and the normal name is an alias. */
12864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12865 #error found stub for $ac_func
12868 return $ac_func ();
12873 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12874 if { (eval echo "$as_me:12874: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>&5
12877 echo "$as_me:12877: \$? = $ac_status" >&5
12878 (exit "$ac_status"); } &&
12879 { ac_try='test -s "conftest$ac_exeext"'
12880 { (eval echo "$as_me:12880: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:12883: \$? = $ac_status" >&5
12884 (exit "$ac_status"); }; }; then
12885 eval "$as_ac_var=yes"
12887 echo "$as_me: failed program was:" >&5
12888 cat "conftest.$ac_ext" >&5
12889 eval "$as_ac_var=no"
12891 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12893 echo "$as_me:12893: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12894 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12895 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12896 cat >>confdefs.h <<EOF
12897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12903 if test "x$ac_cv_func_putwc" != xyes ; then
12905 for ac_header in wchar.h
12907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12908 echo "$as_me:12908: checking for $ac_header" >&5
12909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 cat >"conftest.$ac_ext" <<_ACEOF
12914 #line 12914 "configure"
12915 #include "confdefs.h"
12916 #include <$ac_header>
12918 if { (eval echo "$as_me:12918: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12919 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12921 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12923 cat conftest.err >&5
12924 echo "$as_me:12924: \$? = $ac_status" >&5
12925 (exit "$ac_status"); } >/dev/null; then
12926 if test -s conftest.err; then
12927 ac_cpp_err=$ac_c_preproc_warn_flag
12934 if test -z "$ac_cpp_err"; then
12935 eval "$as_ac_Header=yes"
12937 echo "$as_me: failed program was:" >&5
12938 cat "conftest.$ac_ext" >&5
12939 eval "$as_ac_Header=no"
12941 rm -f conftest.err "conftest.$ac_ext"
12943 echo "$as_me:12943: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12945 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12946 cat >>confdefs.h <<EOF
12947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12953 echo "$as_me:12953: checking for multibyte character support" >&5
12954 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12955 if test "${cf_cv_utf8_lib+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 cf_save_LIBS="$LIBS"
12960 cat >"conftest.$ac_ext" <<_ACEOF
12961 #line 12961 "configure"
12962 #include "confdefs.h"
12964 $ac_includes_default
12965 #ifdef HAVE_WCHAR_H
12977 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12978 if { (eval echo "$as_me:12978: \"$ac_link\"") >&5
12979 (eval $ac_link) 2>&5
12981 echo "$as_me:12981: \$? = $ac_status" >&5
12982 (exit "$ac_status"); } &&
12983 { ac_try='test -s "conftest$ac_exeext"'
12984 { (eval echo "$as_me:12984: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:12987: \$? = $ac_status" >&5
12988 (exit "$ac_status"); }; }; then
12991 echo "$as_me: failed program was:" >&5
12992 cat "conftest.$ac_ext" >&5
12994 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12995 # will be set on completion of the AC_TRY_LINK below.
12996 cf_cv_header_path_utf8=
12997 cf_cv_library_path_utf8=
12999 echo "${as_me:-configure}:12999: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
13001 cf_save_LIBS="$LIBS"
13003 cat >"conftest.$ac_ext" <<_ACEOF
13004 #line 13004 "configure"
13005 #include "confdefs.h"
13007 #include <libutf8.h>
13016 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13017 if { (eval echo "$as_me:13017: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>&5
13020 echo "$as_me:13020: \$? = $ac_status" >&5
13021 (exit "$ac_status"); } &&
13022 { ac_try='test -s "conftest$ac_exeext"'
13023 { (eval echo "$as_me:13023: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:13026: \$? = $ac_status" >&5
13027 (exit "$ac_status"); }; }; then
13029 cf_cv_find_linkage_utf8=yes
13030 cf_cv_header_path_utf8=/usr/include
13031 cf_cv_library_path_utf8=/usr/lib
13034 echo "$as_me: failed program was:" >&5
13035 cat "conftest.$ac_ext" >&5
13037 LIBS="-lutf8 $cf_save_LIBS"
13039 cat >"conftest.$ac_ext" <<_ACEOF
13040 #line 13040 "configure"
13041 #include "confdefs.h"
13043 #include <libutf8.h>
13052 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13053 if { (eval echo "$as_me:13053: \"$ac_link\"") >&5
13054 (eval $ac_link) 2>&5
13056 echo "$as_me:13056: \$? = $ac_status" >&5
13057 (exit "$ac_status"); } &&
13058 { ac_try='test -s "conftest$ac_exeext"'
13059 { (eval echo "$as_me:13059: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13062 echo "$as_me:13062: \$? = $ac_status" >&5
13063 (exit "$ac_status"); }; }; then
13065 cf_cv_find_linkage_utf8=yes
13066 cf_cv_header_path_utf8=/usr/include
13067 cf_cv_library_path_utf8=/usr/lib
13068 cf_cv_library_file_utf8="-lutf8"
13071 echo "$as_me: failed program was:" >&5
13072 cat "conftest.$ac_ext" >&5
13074 cf_cv_find_linkage_utf8=no
13075 LIBS="$cf_save_LIBS"
13077 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
13079 echo "${as_me:-configure}:13079: testing find linkage for utf8 library ..." 1>&5
13081 echo "${as_me:-configure}:13081: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
13083 cf_save_CPPFLAGS="$CPPFLAGS"
13084 cf_test_CPPFLAGS="$CPPFLAGS"
13088 # collect the current set of include-directories from compiler flags
13089 cf_header_path_list=""
13090 if test -n "${CFLAGS}${CPPFLAGS}" ; then
13091 for cf_header_path in $CPPFLAGS $CFLAGS
13093 case "$cf_header_path" in
13095 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
13097 test "x$cf_header_path" != "xNONE" && \
13098 test -d "$cf_header_path" && \
13100 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
13101 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
13102 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
13103 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
13104 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
13105 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
13108 cf_header_path_list="$cf_header_path_list $cf_search"
13114 # add the variations for the package we are looking for
13118 test "x$prefix" != "xNONE" && \
13119 test -d "$prefix" && \
13121 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
13122 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
13123 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
13124 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
13125 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
13126 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
13129 for cf_subdir_prefix in \
13138 test "x$cf_subdir_prefix" != "x$prefix" && \
13139 test -d "$cf_subdir_prefix" && \
13140 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13141 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
13142 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
13143 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
13144 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
13145 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
13146 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
13151 test "$includedir" != NONE && \
13152 test "$includedir" != "/usr/include" && \
13153 test -d "$includedir" && {
13154 test -d "$includedir" && cf_search="$cf_search $includedir"
13155 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
13158 test "$oldincludedir" != NONE && \
13159 test "$oldincludedir" != "/usr/include" && \
13160 test -d "$oldincludedir" && {
13161 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
13162 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
13165 cf_search="$cf_search $cf_header_path_list"
13167 for cf_cv_header_path_utf8 in $cf_search
13169 if test -d "$cf_cv_header_path_utf8" ; then
13170 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
13172 echo "${as_me:-configure}:13172: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
13174 CPPFLAGS="$cf_save_CPPFLAGS"
13176 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13177 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
13179 cat >"conftest.$ac_ext" <<_ACEOF
13180 #line 13180 "configure"
13181 #include "confdefs.h"
13183 #include <libutf8.h>
13192 rm -f "conftest.$ac_objext"
13193 if { (eval echo "$as_me:13193: \"$ac_compile\"") >&5
13194 (eval $ac_compile) 2>&5
13196 echo "$as_me:13196: \$? = $ac_status" >&5
13197 (exit "$ac_status"); } &&
13198 { ac_try='test -s "conftest.$ac_objext"'
13199 { (eval echo "$as_me:13199: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13202 echo "$as_me:13202: \$? = $ac_status" >&5
13203 (exit "$ac_status"); }; }; then
13205 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
13207 echo "${as_me:-configure}:13207: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
13209 cf_cv_find_linkage_utf8=maybe
13210 cf_test_CPPFLAGS="$CPPFLAGS"
13213 echo "$as_me: failed program was:" >&5
13214 cat "conftest.$ac_ext" >&5
13216 CPPFLAGS="$cf_save_CPPFLAGS"
13219 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13223 if test "$cf_cv_find_linkage_utf8" = maybe ; then
13225 echo "${as_me:-configure}:13225: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
13227 cf_save_LIBS="$LIBS"
13228 cf_save_LDFLAGS="$LDFLAGS"
13230 if test "$cf_cv_find_linkage_utf8" != yes ; then
13233 cf_library_path_list=""
13234 if test -n "${LDFLAGS}${LIBS}" ; then
13235 for cf_library_path in $LDFLAGS $LIBS
13237 case "$cf_library_path" in
13239 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
13241 test "x$cf_library_path" != "xNONE" && \
13242 test -d "$cf_library_path" && \
13244 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
13245 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
13246 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
13247 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
13248 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
13249 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
13252 cf_library_path_list="$cf_library_path_list $cf_search"
13260 test "x$prefix" != "xNONE" && \
13261 test -d "$prefix" && \
13263 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
13264 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
13265 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
13266 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
13267 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
13268 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
13271 for cf_subdir_prefix in \
13280 test "x$cf_subdir_prefix" != "x$prefix" && \
13281 test -d "$cf_subdir_prefix" && \
13282 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13283 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
13284 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
13285 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
13286 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
13287 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
13288 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
13293 cf_search="$cf_library_path_list $cf_search"
13295 for cf_cv_library_path_utf8 in $cf_search
13297 if test -d "$cf_cv_library_path_utf8" ; then
13298 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
13300 echo "${as_me:-configure}:13300: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
13302 CPPFLAGS="$cf_test_CPPFLAGS"
13303 LIBS="-lutf8 $cf_save_LIBS"
13304 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
13305 cat >"conftest.$ac_ext" <<_ACEOF
13306 #line 13306 "configure"
13307 #include "confdefs.h"
13309 #include <libutf8.h>
13318 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13319 if { (eval echo "$as_me:13319: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13322 echo "$as_me:13322: \$? = $ac_status" >&5
13323 (exit "$ac_status"); } &&
13324 { ac_try='test -s "conftest$ac_exeext"'
13325 { (eval echo "$as_me:13325: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:13328: \$? = $ac_status" >&5
13329 (exit "$ac_status"); }; }; then
13331 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
13333 echo "${as_me:-configure}:13333: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
13335 cf_cv_find_linkage_utf8=yes
13336 cf_cv_library_file_utf8="-lutf8"
13339 echo "$as_me: failed program was:" >&5
13340 cat "conftest.$ac_ext" >&5
13342 CPPFLAGS="$cf_save_CPPFLAGS"
13343 LIBS="$cf_save_LIBS"
13344 LDFLAGS="$cf_save_LDFLAGS"
13347 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13350 CPPFLAGS="$cf_save_CPPFLAGS"
13351 LDFLAGS="$cf_save_LDFLAGS"
13355 cf_cv_find_linkage_utf8=no
13359 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13362 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13364 LIBS="$cf_save_LIBS"
13366 if test "$cf_cv_find_linkage_utf8" = yes ; then
13367 cf_cv_utf8_lib=add-on
13373 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13375 echo "$as_me:13375: result: $cf_cv_utf8_lib" >&5
13376 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
13378 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
13379 # ncurses/ncursesw:
13380 if test "$cf_cv_utf8_lib" = "add-on" ; then
13382 cat >>confdefs.h <<\EOF
13383 #define HAVE_LIBUTF8_H 1
13386 if test -n "$cf_cv_header_path_utf8" ; then
13387 for cf_add_incdir in $cf_cv_header_path_utf8
13389 while test "$cf_add_incdir" != /usr/include
13391 if test -d "$cf_add_incdir"
13394 if test -n "$CFLAGS$CPPFLAGS" ; then
13395 # a loop is needed to ensure we can add subdirs of existing dirs
13396 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13397 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13398 cf_have_incdir=yes; break
13403 if test "$cf_have_incdir" = no ; then
13404 if test "$cf_add_incdir" = /usr/local/include ; then
13405 if test "$GCC" = yes
13407 cf_save_CPPFLAGS=$CPPFLAGS
13409 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13410 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
13412 cat >"conftest.$ac_ext" <<_ACEOF
13413 #line 13413 "configure"
13414 #include "confdefs.h"
13424 rm -f "conftest.$ac_objext"
13425 if { (eval echo "$as_me:13425: \"$ac_compile\"") >&5
13426 (eval $ac_compile) 2>&5
13428 echo "$as_me:13428: \$? = $ac_status" >&5
13429 (exit "$ac_status"); } &&
13430 { ac_try='test -s "conftest.$ac_objext"'
13431 { (eval echo "$as_me:13431: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:13434: \$? = $ac_status" >&5
13435 (exit "$ac_status"); }; }; then
13438 echo "$as_me: failed program was:" >&5
13439 cat "conftest.$ac_ext" >&5
13442 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13443 CPPFLAGS=$cf_save_CPPFLAGS
13448 if test "$cf_have_incdir" = no ; then
13449 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13451 echo "${as_me:-configure}:13451: testing adding $cf_add_incdir to include-path ..." 1>&5
13453 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13455 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
13456 test "$cf_top_incdir" = "$cf_add_incdir" && break
13457 cf_add_incdir="$cf_top_incdir"
13468 if test -n "$cf_cv_library_path_utf8" ; then
13469 for cf_add_libdir in $cf_cv_library_path_utf8
13471 if test "$cf_add_libdir" = /usr/lib ; then
13473 elif test -d "$cf_add_libdir"
13476 if test -n "$LDFLAGS$LIBS" ; then
13477 # a loop is needed to ensure we can add subdirs of existing dirs
13478 for cf_test_libdir in $LDFLAGS $LIBS ; do
13479 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13480 cf_have_libdir=yes; break
13484 if test "$cf_have_libdir" = no ; then
13485 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13487 echo "${as_me:-configure}:13487: testing adding $cf_add_libdir to library-path ..." 1>&5
13489 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13495 cf_add_libs="$LIBS"
13498 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13499 # filter duplicates
13500 for cf_add_1lib in $cf_add_0lib; do
13501 for cf_add_2lib in $cf_add_libs; do
13502 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13507 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13509 LIBS="$cf_add_libs"
13513 if test "$cf_cv_utf8_lib" != no ; then
13518 # This is needed on Tru64 5.0 to declare mbstate_t
13519 echo "$as_me:13519: checking if we must include wchar.h to declare mbstate_t" >&5
13520 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13521 if test "${cf_cv_mbstate_t+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 cat >"conftest.$ac_ext" <<_ACEOF
13526 #line 13526 "configure"
13527 #include "confdefs.h"
13529 #include <stdlib.h>
13530 #include <stdarg.h>
13532 #ifdef HAVE_LIBUTF8_H
13533 #include <libutf8.h>
13543 rm -f "conftest.$ac_objext"
13544 if { (eval echo "$as_me:13544: \"$ac_compile\"") >&5
13545 (eval $ac_compile) 2>&5
13547 echo "$as_me:13547: \$? = $ac_status" >&5
13548 (exit "$ac_status"); } &&
13549 { ac_try='test -s "conftest.$ac_objext"'
13550 { (eval echo "$as_me:13550: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:13553: \$? = $ac_status" >&5
13554 (exit "$ac_status"); }; }; then
13557 echo "$as_me: failed program was:" >&5
13558 cat "conftest.$ac_ext" >&5
13559 cat >"conftest.$ac_ext" <<_ACEOF
13560 #line 13560 "configure"
13561 #include "confdefs.h"
13563 #include <stdlib.h>
13564 #include <stdarg.h>
13567 #ifdef HAVE_LIBUTF8_H
13568 #include <libutf8.h>
13578 rm -f "conftest.$ac_objext"
13579 if { (eval echo "$as_me:13579: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>&5
13582 echo "$as_me:13582: \$? = $ac_status" >&5
13583 (exit "$ac_status"); } &&
13584 { ac_try='test -s "conftest.$ac_objext"'
13585 { (eval echo "$as_me:13585: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:13588: \$? = $ac_status" >&5
13589 (exit "$ac_status"); }; }; then
13590 cf_cv_mbstate_t=yes
13592 echo "$as_me: failed program was:" >&5
13593 cat "conftest.$ac_ext" >&5
13594 cf_cv_mbstate_t=unknown
13596 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13598 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13600 echo "$as_me:13600: result: $cf_cv_mbstate_t" >&5
13601 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13603 if test "$cf_cv_mbstate_t" = yes ; then
13605 cat >>confdefs.h <<\EOF
13606 #define NEED_WCHAR_H 1
13612 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13613 if test "$cf_cv_mbstate_t" = unknown ; then
13614 NCURSES_MBSTATE_T=1
13617 # This is needed on Tru64 5.0 to declare wchar_t
13618 echo "$as_me:13618: checking if we must include wchar.h to declare wchar_t" >&5
13619 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13620 if test "${cf_cv_wchar_t+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 cat >"conftest.$ac_ext" <<_ACEOF
13625 #line 13625 "configure"
13626 #include "confdefs.h"
13628 #include <stdlib.h>
13629 #include <stdarg.h>
13631 #ifdef HAVE_LIBUTF8_H
13632 #include <libutf8.h>
13642 rm -f "conftest.$ac_objext"
13643 if { (eval echo "$as_me:13643: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>&5
13646 echo "$as_me:13646: \$? = $ac_status" >&5
13647 (exit "$ac_status"); } &&
13648 { ac_try='test -s "conftest.$ac_objext"'
13649 { (eval echo "$as_me:13649: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:13652: \$? = $ac_status" >&5
13653 (exit "$ac_status"); }; }; then
13656 echo "$as_me: failed program was:" >&5
13657 cat "conftest.$ac_ext" >&5
13658 cat >"conftest.$ac_ext" <<_ACEOF
13659 #line 13659 "configure"
13660 #include "confdefs.h"
13662 #include <stdlib.h>
13663 #include <stdarg.h>
13666 #ifdef HAVE_LIBUTF8_H
13667 #include <libutf8.h>
13677 rm -f "conftest.$ac_objext"
13678 if { (eval echo "$as_me:13678: \"$ac_compile\"") >&5
13679 (eval $ac_compile) 2>&5
13681 echo "$as_me:13681: \$? = $ac_status" >&5
13682 (exit "$ac_status"); } &&
13683 { ac_try='test -s "conftest.$ac_objext"'
13684 { (eval echo "$as_me:13684: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:13687: \$? = $ac_status" >&5
13688 (exit "$ac_status"); }; }; then
13691 echo "$as_me: failed program was:" >&5
13692 cat "conftest.$ac_ext" >&5
13693 cf_cv_wchar_t=unknown
13695 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13697 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13699 echo "$as_me:13699: result: $cf_cv_wchar_t" >&5
13700 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13702 if test "$cf_cv_wchar_t" = yes ; then
13704 cat >>confdefs.h <<\EOF
13705 #define NEED_WCHAR_H 1
13711 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13712 if test "$cf_cv_wchar_t" = unknown ; then
13716 # if we find wchar_t in either place, use substitution to provide a fallback.
13717 if test "$cf_cv_wchar_t" != unknown ; then
13718 NCURSES_OK_WCHAR_T=1
13721 # This is needed on Tru64 5.0 to declare wint_t
13722 echo "$as_me:13722: checking if we must include wchar.h to declare wint_t" >&5
13723 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13724 if test "${cf_cv_wint_t+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 cat >"conftest.$ac_ext" <<_ACEOF
13729 #line 13729 "configure"
13730 #include "confdefs.h"
13732 #include <stdlib.h>
13733 #include <stdarg.h>
13735 #ifdef HAVE_LIBUTF8_H
13736 #include <libutf8.h>
13746 rm -f "conftest.$ac_objext"
13747 if { (eval echo "$as_me:13747: \"$ac_compile\"") >&5
13748 (eval $ac_compile) 2>&5
13750 echo "$as_me:13750: \$? = $ac_status" >&5
13751 (exit "$ac_status"); } &&
13752 { ac_try='test -s "conftest.$ac_objext"'
13753 { (eval echo "$as_me:13753: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:13756: \$? = $ac_status" >&5
13757 (exit "$ac_status"); }; }; then
13760 echo "$as_me: failed program was:" >&5
13761 cat "conftest.$ac_ext" >&5
13762 cat >"conftest.$ac_ext" <<_ACEOF
13763 #line 13763 "configure"
13764 #include "confdefs.h"
13766 #include <stdlib.h>
13767 #include <stdarg.h>
13770 #ifdef HAVE_LIBUTF8_H
13771 #include <libutf8.h>
13781 rm -f "conftest.$ac_objext"
13782 if { (eval echo "$as_me:13782: \"$ac_compile\"") >&5
13783 (eval $ac_compile) 2>&5
13785 echo "$as_me:13785: \$? = $ac_status" >&5
13786 (exit "$ac_status"); } &&
13787 { ac_try='test -s "conftest.$ac_objext"'
13788 { (eval echo "$as_me:13788: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:13791: \$? = $ac_status" >&5
13792 (exit "$ac_status"); }; }; then
13795 echo "$as_me: failed program was:" >&5
13796 cat "conftest.$ac_ext" >&5
13797 cf_cv_wint_t=unknown
13799 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13801 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13803 echo "$as_me:13803: result: $cf_cv_wint_t" >&5
13804 echo "${ECHO_T}$cf_cv_wint_t" >&6
13806 if test "$cf_cv_wint_t" = yes ; then
13808 cat >>confdefs.h <<\EOF
13809 #define NEED_WCHAR_H 1
13815 # if we do not find wint_t in either place, use substitution to provide a fallback.
13816 if test "$cf_cv_wint_t" = unknown ; then
13820 # if we find wint_t in either place, use substitution to provide a fallback.
13821 if test "$cf_cv_wint_t" != unknown ; then
13822 NCURSES_OK_WINT_T=1
13825 if test "$NCURSES_MBSTATE_T" != 0; then
13827 cat >>confdefs.h <<\EOF
13828 #define NEED_MBSTATE_T_DEF 1
13834 ### use option --disable-lp64 to allow long chtype
13835 echo "$as_me:13835: checking whether to enable _LP64 definition in curses.h" >&5
13836 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13838 # Check whether --enable-lp64 or --disable-lp64 was given.
13839 if test "${enable_lp64+set}" = set; then
13840 enableval="$enable_lp64"
13841 with_lp64=$enableval
13843 with_lp64=$cf_dft_with_lp64
13845 echo "$as_me:13845: result: $with_lp64" >&5
13846 echo "${ECHO_T}$with_lp64" >&6
13848 if test "x$with_lp64" = xyes ; then
13849 cf_cv_enable_lp64=1
13851 cf_cv_enable_lp64=0
13854 # Check whether --enable-largefile or --disable-largefile was given.
13855 if test "${enable_largefile+set}" = set; then
13856 enableval="$enable_largefile"
13859 if test "$enable_largefile" != no; then
13861 echo "$as_me:13861: checking for special C compiler options needed for large files" >&5
13862 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13863 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 ac_cv_sys_largefile_CC=no
13867 if test "$GCC" != yes; then
13870 # IRIX 6.2 and later do not support large files by default,
13871 # so use the C compiler's -n32 option if that helps.
13872 cat >"conftest.$ac_ext" <<_ACEOF
13873 #line 13873 "configure"
13874 #include "confdefs.h"
13875 #include <sys/types.h>
13876 /* Check that off_t can represent 2**63 - 1 correctly.
13877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13878 since some C++ compilers masquerading as C compilers
13879 incorrectly reject 9223372036854775807. */
13880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13882 && LARGE_OFF_T % 2147483647 == 1)
13892 rm -f "conftest.$ac_objext"
13893 if { (eval echo "$as_me:13893: \"$ac_compile\"") >&5
13894 (eval $ac_compile) 2>&5
13896 echo "$as_me:13896: \$? = $ac_status" >&5
13897 (exit "$ac_status"); } &&
13898 { ac_try='test -s "conftest.$ac_objext"'
13899 { (eval echo "$as_me:13899: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 echo "$as_me:13902: \$? = $ac_status" >&5
13903 (exit "$ac_status"); }; }; then
13906 echo "$as_me: failed program was:" >&5
13907 cat "conftest.$ac_ext" >&5
13909 rm -f "conftest.$ac_objext"
13911 rm -f "conftest.$ac_objext"
13912 if { (eval echo "$as_me:13912: \"$ac_compile\"") >&5
13913 (eval $ac_compile) 2>&5
13915 echo "$as_me:13915: \$? = $ac_status" >&5
13916 (exit "$ac_status"); } &&
13917 { ac_try='test -s "conftest.$ac_objext"'
13918 { (eval echo "$as_me:13918: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13921 echo "$as_me:13921: \$? = $ac_status" >&5
13922 (exit "$ac_status"); }; }; then
13923 ac_cv_sys_largefile_CC=' -n32'; break
13925 echo "$as_me: failed program was:" >&5
13926 cat "conftest.$ac_ext" >&5
13928 rm -f "conftest.$ac_objext"
13932 rm -f "conftest.$ac_ext"
13935 echo "$as_me:13935: result: $ac_cv_sys_largefile_CC" >&5
13936 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13937 if test "$ac_cv_sys_largefile_CC" != no; then
13938 CC=$CC$ac_cv_sys_largefile_CC
13941 echo "$as_me:13941: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13942 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13943 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 ac_cv_sys_file_offset_bits=no
13948 cat >"conftest.$ac_ext" <<_ACEOF
13949 #line 13949 "configure"
13950 #include "confdefs.h"
13951 #include <sys/types.h>
13952 /* Check that off_t can represent 2**63 - 1 correctly.
13953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13954 since some C++ compilers masquerading as C compilers
13955 incorrectly reject 9223372036854775807. */
13956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13958 && LARGE_OFF_T % 2147483647 == 1)
13968 rm -f "conftest.$ac_objext"
13969 if { (eval echo "$as_me:13969: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>&5
13972 echo "$as_me:13972: \$? = $ac_status" >&5
13973 (exit "$ac_status"); } &&
13974 { ac_try='test -s "conftest.$ac_objext"'
13975 { (eval echo "$as_me:13975: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:13978: \$? = $ac_status" >&5
13979 (exit "$ac_status"); }; }; then
13982 echo "$as_me: failed program was:" >&5
13983 cat "conftest.$ac_ext" >&5
13985 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13986 cat >"conftest.$ac_ext" <<_ACEOF
13987 #line 13987 "configure"
13988 #include "confdefs.h"
13989 #define _FILE_OFFSET_BITS 64
13990 #include <sys/types.h>
13991 /* Check that off_t can represent 2**63 - 1 correctly.
13992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13993 since some C++ compilers masquerading as C compilers
13994 incorrectly reject 9223372036854775807. */
13995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13997 && LARGE_OFF_T % 2147483647 == 1)
14007 rm -f "conftest.$ac_objext"
14008 if { (eval echo "$as_me:14008: \"$ac_compile\"") >&5
14009 (eval $ac_compile) 2>&5
14011 echo "$as_me:14011: \$? = $ac_status" >&5
14012 (exit "$ac_status"); } &&
14013 { ac_try='test -s "conftest.$ac_objext"'
14014 { (eval echo "$as_me:14014: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:14017: \$? = $ac_status" >&5
14018 (exit "$ac_status"); }; }; then
14019 ac_cv_sys_file_offset_bits=64; break
14021 echo "$as_me: failed program was:" >&5
14022 cat "conftest.$ac_ext" >&5
14024 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14028 echo "$as_me:14028: result: $ac_cv_sys_file_offset_bits" >&5
14029 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14030 if test "$ac_cv_sys_file_offset_bits" != no; then
14032 cat >>confdefs.h <<EOF
14033 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14038 echo "$as_me:14038: checking for _LARGE_FILES value needed for large files" >&5
14039 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14040 if test "${ac_cv_sys_large_files+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 ac_cv_sys_large_files=no
14045 cat >"conftest.$ac_ext" <<_ACEOF
14046 #line 14046 "configure"
14047 #include "confdefs.h"
14048 #include <sys/types.h>
14049 /* Check that off_t can represent 2**63 - 1 correctly.
14050 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14051 since some C++ compilers masquerading as C compilers
14052 incorrectly reject 9223372036854775807. */
14053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14055 && LARGE_OFF_T % 2147483647 == 1)
14065 rm -f "conftest.$ac_objext"
14066 if { (eval echo "$as_me:14066: \"$ac_compile\"") >&5
14067 (eval $ac_compile) 2>&5
14069 echo "$as_me:14069: \$? = $ac_status" >&5
14070 (exit "$ac_status"); } &&
14071 { ac_try='test -s "conftest.$ac_objext"'
14072 { (eval echo "$as_me:14072: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:14075: \$? = $ac_status" >&5
14076 (exit "$ac_status"); }; }; then
14079 echo "$as_me: failed program was:" >&5
14080 cat "conftest.$ac_ext" >&5
14082 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14083 cat >"conftest.$ac_ext" <<_ACEOF
14084 #line 14084 "configure"
14085 #include "confdefs.h"
14086 #define _LARGE_FILES 1
14087 #include <sys/types.h>
14088 /* Check that off_t can represent 2**63 - 1 correctly.
14089 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14090 since some C++ compilers masquerading as C compilers
14091 incorrectly reject 9223372036854775807. */
14092 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14093 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14094 && LARGE_OFF_T % 2147483647 == 1)
14104 rm -f "conftest.$ac_objext"
14105 if { (eval echo "$as_me:14105: \"$ac_compile\"") >&5
14106 (eval $ac_compile) 2>&5
14108 echo "$as_me:14108: \$? = $ac_status" >&5
14109 (exit "$ac_status"); } &&
14110 { ac_try='test -s "conftest.$ac_objext"'
14111 { (eval echo "$as_me:14111: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:14114: \$? = $ac_status" >&5
14115 (exit "$ac_status"); }; }; then
14116 ac_cv_sys_large_files=1; break
14118 echo "$as_me: failed program was:" >&5
14119 cat "conftest.$ac_ext" >&5
14121 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14125 echo "$as_me:14125: result: $ac_cv_sys_large_files" >&5
14126 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14127 if test "$ac_cv_sys_large_files" != no; then
14129 cat >>confdefs.h <<EOF
14130 #define _LARGE_FILES $ac_cv_sys_large_files
14137 if test "$enable_largefile" != no ; then
14138 echo "$as_me:14138: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14139 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14140 if test "${ac_cv_sys_largefile_source+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 ac_cv_sys_largefile_source=no
14145 cat >"conftest.$ac_ext" <<_ACEOF
14146 #line 14146 "configure"
14147 #include "confdefs.h"
14157 rm -f "conftest.$ac_objext"
14158 if { (eval echo "$as_me:14158: \"$ac_compile\"") >&5
14159 (eval $ac_compile) 2>&5
14161 echo "$as_me:14161: \$? = $ac_status" >&5
14162 (exit "$ac_status"); } &&
14163 { ac_try='test -s "conftest.$ac_objext"'
14164 { (eval echo "$as_me:14164: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14167 echo "$as_me:14167: \$? = $ac_status" >&5
14168 (exit "$ac_status"); }; }; then
14171 echo "$as_me: failed program was:" >&5
14172 cat "conftest.$ac_ext" >&5
14174 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14175 cat >"conftest.$ac_ext" <<_ACEOF
14176 #line 14176 "configure"
14177 #include "confdefs.h"
14178 #define _LARGEFILE_SOURCE 1
14188 rm -f "conftest.$ac_objext"
14189 if { (eval echo "$as_me:14189: \"$ac_compile\"") >&5
14190 (eval $ac_compile) 2>&5
14192 echo "$as_me:14192: \$? = $ac_status" >&5
14193 (exit "$ac_status"); } &&
14194 { ac_try='test -s "conftest.$ac_objext"'
14195 { (eval echo "$as_me:14195: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14198 echo "$as_me:14198: \$? = $ac_status" >&5
14199 (exit "$ac_status"); }; }; then
14200 ac_cv_sys_largefile_source=1; break
14202 echo "$as_me: failed program was:" >&5
14203 cat "conftest.$ac_ext" >&5
14205 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14209 echo "$as_me:14209: result: $ac_cv_sys_largefile_source" >&5
14210 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14211 if test "$ac_cv_sys_largefile_source" != no; then
14213 cat >>confdefs.h <<EOF
14214 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14220 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14221 # in glibc 2.1.3, but that breaks too many other things.
14222 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14223 echo "$as_me:14223: checking for fseeko" >&5
14224 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14225 if test "${ac_cv_func_fseeko+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 cat >"conftest.$ac_ext" <<_ACEOF
14229 #line 14229 "configure"
14230 #include "confdefs.h"
14235 return fseeko && fseeko (stdin, 0, 0);
14240 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14241 if { (eval echo "$as_me:14241: \"$ac_link\"") >&5
14242 (eval $ac_link) 2>&5
14244 echo "$as_me:14244: \$? = $ac_status" >&5
14245 (exit "$ac_status"); } &&
14246 { ac_try='test -s "conftest$ac_exeext"'
14247 { (eval echo "$as_me:14247: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:14250: \$? = $ac_status" >&5
14251 (exit "$ac_status"); }; }; then
14252 ac_cv_func_fseeko=yes
14254 echo "$as_me: failed program was:" >&5
14255 cat "conftest.$ac_ext" >&5
14256 ac_cv_func_fseeko=no
14258 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14260 echo "$as_me:14260: result: $ac_cv_func_fseeko" >&5
14261 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14262 if test $ac_cv_func_fseeko = yes; then
14264 cat >>confdefs.h <<\EOF
14265 #define HAVE_FSEEKO 1
14270 # Normally we would collect these definitions in the config.h,
14271 # but (like _XOPEN_SOURCE), some environments rely on having these
14272 # defined before any of the system headers are included. Another
14273 # case comes up with C++, e.g., on AIX the compiler compiles the
14274 # header files by themselves before looking at the body files it is
14275 # told to compile. For ncurses, those header files do not include
14277 if test "$ac_cv_sys_large_files" != no
14280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14281 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
14284 if test "$ac_cv_sys_largefile_source" != no
14287 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14288 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
14291 if test "$ac_cv_sys_file_offset_bits" != no
14294 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14295 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
14299 echo "$as_me:14299: checking whether to use struct dirent64" >&5
14300 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
14301 if test "${cf_cv_struct_dirent64+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 cat >"conftest.$ac_ext" <<_ACEOF
14306 #line 14306 "configure"
14307 #include "confdefs.h"
14309 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
14310 #include <sys/types.h>
14311 #include <dirent.h>
14317 /* if transitional largefile support is setup, this is true */
14318 extern struct dirent64 * readdir(DIR *);
14319 struct dirent64 *x = readdir((DIR *)0);
14320 struct dirent *y = readdir((DIR *)0);
14328 rm -f "conftest.$ac_objext"
14329 if { (eval echo "$as_me:14329: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>&5
14332 echo "$as_me:14332: \$? = $ac_status" >&5
14333 (exit "$ac_status"); } &&
14334 { ac_try='test -s "conftest.$ac_objext"'
14335 { (eval echo "$as_me:14335: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14338 echo "$as_me:14338: \$? = $ac_status" >&5
14339 (exit "$ac_status"); }; }; then
14340 cf_cv_struct_dirent64=yes
14342 echo "$as_me: failed program was:" >&5
14343 cat "conftest.$ac_ext" >&5
14344 cf_cv_struct_dirent64=no
14346 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14349 echo "$as_me:14349: result: $cf_cv_struct_dirent64" >&5
14350 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
14351 test "$cf_cv_struct_dirent64" = yes &&
14352 cat >>confdefs.h <<\EOF
14353 #define HAVE_STRUCT_DIRENT64 1
14358 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
14359 echo "$as_me:14359: checking if you want tparm not to use X/Open fixed-parameter list" >&5
14360 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
14362 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
14363 if test "${enable_tparm_varargs+set}" = set; then
14364 enableval="$enable_tparm_varargs"
14365 with_tparm_varargs=$enableval
14367 with_tparm_varargs=yes
14369 echo "$as_me:14369: result: $with_tparm_varargs" >&5
14370 echo "${ECHO_T}$with_tparm_varargs" >&6
14371 NCURSES_TPARM_VARARGS=0
14372 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
14374 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
14375 if test "$with_ticlib" != no ; then
14376 echo "$as_me:14376: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
14377 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
14379 # Check whether --enable-tic-depends or --disable-tic-depends was given.
14380 if test "${enable_tic_depends+set}" = set; then
14381 enableval="$enable_tic_depends"
14382 with_tic_depends=$enableval
14384 with_tic_depends=yes
14386 echo "$as_me:14386: result: $with_tic_depends" >&5
14387 echo "${ECHO_T}$with_tic_depends" >&6
14389 with_tic_depends=no
14392 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
14393 echo "$as_me:14393: checking if you want to enable wattr* macros" >&5
14394 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
14396 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
14397 if test "${enable_wattr_macros+set}" = set; then
14398 enableval="$enable_wattr_macros"
14399 with_wattr_macros=$enableval
14401 with_wattr_macros=no
14403 if [ "x$with_wattr_macros" != xyes ]; then
14404 NCURSES_WATTR_MACROS=0
14405 echo "$as_me:14405: result: no" >&5
14406 echo "${ECHO_T}no" >&6
14408 NCURSES_WATTR_MACROS=1
14409 echo "$as_me:14409: result: yes" >&5
14410 echo "${ECHO_T}yes" >&6
14413 echo "$as_me:14413: checking for X11 rgb file" >&5
14414 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
14416 # Check whether --with-x11-rgb or --without-x11-rgb was given.
14417 if test "${with_x11_rgb+set}" = set; then
14418 withval="$with_x11_rgb"
14424 if test "x$RGB_PATH" = xauto
14426 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14428 /opt/local/share/X11/rgb.txt \
14429 /opt/X11/share/X11/rgb.txt \
14430 /usr/share/X11/rgb.txt \
14431 /usr/X11/share/X11/rgb.txt \
14432 /usr/X11/lib/X11/rgb.txt \
14433 /usr/lib/X11/rgb.txt \
14435 /usr/pkg/lib/X11/rgb.txt \
14436 /usr/X11R7/lib/X11/rgb.txt \
14437 /usr/X11R6/lib/X11/rgb.txt \
14438 /usr/X11R5/lib/X11/rgb.txt \
14439 /usr/X11R4/lib/X11/rgb.txt \
14440 /usr/local/lib/X11/rgb.txt \
14441 /usr/local/share/X11/rgb.txt \
14442 /usr/lib64/X11/rgb.txt
14444 if test -f "$cf_path" ; then
14445 RGB_PATH="$cf_path"
14452 if test "x$prefix" != xNONE; then
14453 cf_path_syntax="$prefix"
14455 cf_path_syntax="$ac_default_prefix"
14458 case ".$cf_path" in
14459 (.\$\(*\)*|.\'*\'*)
14463 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14465 (.\$\{*prefix\}*|.\$\{*dir\}*)
14466 eval cf_path="$cf_path"
14467 case ".$cf_path" in
14469 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14474 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14477 { { echo "$as_me:14477: error: expected a pathname, not \"$cf_path\"" >&5
14478 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14479 { (exit 1); exit 1; }; }
14485 echo "$as_me:14485: result: $RGB_PATH" >&5
14486 echo "${ECHO_T}$RGB_PATH" >&6
14488 cat >>confdefs.h <<EOF
14489 #define RGB_PATH "$cf_path"
14493 if test "$RGB_PATH" = no
14498 ### use option --with-bool to override bool's type
14499 echo "$as_me:14499: checking for type of bool" >&5
14500 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
14502 # Check whether --with-bool or --without-bool was given.
14503 if test "${with_bool+set}" = set; then
14504 withval="$with_bool"
14505 NCURSES_BOOL="$withval"
14509 echo "$as_me:14509: result: $NCURSES_BOOL" >&5
14510 echo "${ECHO_T}$NCURSES_BOOL" >&6
14512 echo "$as_me:14512: checking for alternate terminal capabilities file" >&5
14513 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
14515 # Check whether --with-caps or --without-caps was given.
14516 if test "${with_caps+set}" = set; then
14517 withval="$with_caps"
14518 TERMINFO_CAPS=Caps.$withval
14522 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
14524 { echo "$as_me:14524: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
14525 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
14528 echo "$as_me:14528: result: $TERMINFO_CAPS" >&5
14529 echo "${ECHO_T}$TERMINFO_CAPS" >&6
14531 ### use option --with-chtype to override chtype's type
14532 echo "$as_me:14532: checking for type of chtype" >&5
14533 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14535 # Check whether --with-chtype or --without-chtype was given.
14536 if test "${with_chtype+set}" = set; then
14537 withval="$with_chtype"
14538 NCURSES_CHTYPE="$withval"
14540 NCURSES_CHTYPE=$cf_dft_chtype
14542 echo "$as_me:14542: result: $NCURSES_CHTYPE" >&5
14543 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
14545 ### use option --with-ospeed to override ospeed's type
14546 echo "$as_me:14546: checking for type of ospeed" >&5
14547 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
14549 # Check whether --with-ospeed or --without-ospeed was given.
14550 if test "${with_ospeed+set}" = set; then
14551 withval="$with_ospeed"
14552 NCURSES_OSPEED="$withval"
14554 NCURSES_OSPEED=short
14556 echo "$as_me:14556: result: $NCURSES_OSPEED" >&5
14557 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14559 ### use option --with-mmask-t to override mmask_t's type
14560 echo "$as_me:14560: checking for type of mmask_t" >&5
14561 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
14563 # Check whether --with-mmask-t or --without-mmask-t was given.
14564 if test "${with_mmask_t+set}" = set; then
14565 withval="$with_mmask_t"
14566 NCURSES_MMASK_T="$withval"
14568 NCURSES_MMASK_T=$cf_dft_mmask_t
14570 echo "$as_me:14570: result: $NCURSES_MMASK_T" >&5
14571 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14573 ### use option --with-ccharw-max to override CCHARW_MAX size
14574 echo "$as_me:14574: checking for size CCHARW_MAX" >&5
14575 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14577 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14578 if test "${with_ccharw_max+set}" = set; then
14579 withval="$with_ccharw_max"
14580 NCURSES_CCHARW_MAX="$withval"
14582 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14584 echo "$as_me:14584: result: $NCURSES_CCHARW_MAX" >&5
14585 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14587 echo "$as_me:14587: checking for signed char" >&5
14588 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14589 if test "${ac_cv_type_signed_char+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 cat >"conftest.$ac_ext" <<_ACEOF
14593 #line 14593 "configure"
14594 #include "confdefs.h"
14595 $ac_includes_default
14599 if ((signed char *) 0)
14601 if (sizeof (signed char))
14607 rm -f "conftest.$ac_objext"
14608 if { (eval echo "$as_me:14608: \"$ac_compile\"") >&5
14609 (eval $ac_compile) 2>&5
14611 echo "$as_me:14611: \$? = $ac_status" >&5
14612 (exit "$ac_status"); } &&
14613 { ac_try='test -s "conftest.$ac_objext"'
14614 { (eval echo "$as_me:14614: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:14617: \$? = $ac_status" >&5
14618 (exit "$ac_status"); }; }; then
14619 ac_cv_type_signed_char=yes
14621 echo "$as_me: failed program was:" >&5
14622 cat "conftest.$ac_ext" >&5
14623 ac_cv_type_signed_char=no
14625 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14627 echo "$as_me:14627: result: $ac_cv_type_signed_char" >&5
14628 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14630 echo "$as_me:14630: checking size of signed char" >&5
14631 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14632 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14633 echo $ECHO_N "(cached) $ECHO_C" >&6
14635 if test "$ac_cv_type_signed_char" = yes; then
14636 if test "$cross_compiling" = yes; then
14637 # Depending upon the size, compute the lo and hi bounds.
14638 cat >"conftest.$ac_ext" <<_ACEOF
14639 #line 14639 "configure"
14640 #include "confdefs.h"
14641 $ac_includes_default
14645 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14650 rm -f "conftest.$ac_objext"
14651 if { (eval echo "$as_me:14651: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>&5
14654 echo "$as_me:14654: \$? = $ac_status" >&5
14655 (exit "$ac_status"); } &&
14656 { ac_try='test -s "conftest.$ac_objext"'
14657 { (eval echo "$as_me:14657: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:14660: \$? = $ac_status" >&5
14661 (exit "$ac_status"); }; }; then
14664 cat >"conftest.$ac_ext" <<_ACEOF
14665 #line 14665 "configure"
14666 #include "confdefs.h"
14667 $ac_includes_default
14671 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14676 rm -f "conftest.$ac_objext"
14677 if { (eval echo "$as_me:14677: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>&5
14680 echo "$as_me:14680: \$? = $ac_status" >&5
14681 (exit "$ac_status"); } &&
14682 { ac_try='test -s "conftest.$ac_objext"'
14683 { (eval echo "$as_me:14683: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:14686: \$? = $ac_status" >&5
14687 (exit "$ac_status"); }; }; then
14688 ac_hi=$ac_mid; break
14690 echo "$as_me: failed program was:" >&5
14691 cat "conftest.$ac_ext" >&5
14692 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14694 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14697 echo "$as_me: failed program was:" >&5
14698 cat "conftest.$ac_ext" >&5
14701 cat >"conftest.$ac_ext" <<_ACEOF
14702 #line 14702 "configure"
14703 #include "confdefs.h"
14704 $ac_includes_default
14708 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14713 rm -f "conftest.$ac_objext"
14714 if { (eval echo "$as_me:14714: \"$ac_compile\"") >&5
14715 (eval $ac_compile) 2>&5
14717 echo "$as_me:14717: \$? = $ac_status" >&5
14718 (exit "$ac_status"); } &&
14719 { ac_try='test -s "conftest.$ac_objext"'
14720 { (eval echo "$as_me:14720: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:14723: \$? = $ac_status" >&5
14724 (exit "$ac_status"); }; }; then
14725 ac_lo=$ac_mid; break
14727 echo "$as_me: failed program was:" >&5
14728 cat "conftest.$ac_ext" >&5
14729 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14731 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14734 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14735 # Binary search between lo and hi bounds.
14736 while test "x$ac_lo" != "x$ac_hi"; do
14737 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14738 cat >"conftest.$ac_ext" <<_ACEOF
14739 #line 14739 "configure"
14740 #include "confdefs.h"
14741 $ac_includes_default
14745 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14750 rm -f "conftest.$ac_objext"
14751 if { (eval echo "$as_me:14751: \"$ac_compile\"") >&5
14752 (eval $ac_compile) 2>&5
14754 echo "$as_me:14754: \$? = $ac_status" >&5
14755 (exit "$ac_status"); } &&
14756 { ac_try='test -s "conftest.$ac_objext"'
14757 { (eval echo "$as_me:14757: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:14760: \$? = $ac_status" >&5
14761 (exit "$ac_status"); }; }; then
14764 echo "$as_me: failed program was:" >&5
14765 cat "conftest.$ac_ext" >&5
14766 ac_lo=`expr "$ac_mid" + 1`
14768 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14770 ac_cv_sizeof_signed_char=$ac_lo
14772 if test "$cross_compiling" = yes; then
14773 { { echo "$as_me:14773: error: cannot run test program while cross compiling" >&5
14774 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14775 { (exit 1); exit 1; }; }
14777 cat >"conftest.$ac_ext" <<_ACEOF
14778 #line 14778 "configure"
14779 #include "confdefs.h"
14780 $ac_includes_default
14784 FILE *f = fopen ("conftest.val", "w");
14786 $ac_main_return (1);
14787 fprintf (f, "%ld", (long)(sizeof (signed char)));
14793 rm -f "conftest$ac_exeext"
14794 if { (eval echo "$as_me:14794: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>&5
14797 echo "$as_me:14797: \$? = $ac_status" >&5
14798 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14799 { (eval echo "$as_me:14799: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:14802: \$? = $ac_status" >&5
14803 (exit "$ac_status"); }; }; then
14804 ac_cv_sizeof_signed_char=`cat conftest.val`
14806 echo "$as_me: program exited with status $ac_status" >&5
14807 echo "$as_me: failed program was:" >&5
14808 cat "conftest.$ac_ext" >&5
14810 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14815 ac_cv_sizeof_signed_char=0
14818 echo "$as_me:14818: result: $ac_cv_sizeof_signed_char" >&5
14819 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14820 cat >>confdefs.h <<EOF
14821 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14824 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14825 NCURSES_SBOOL="signed char"
14827 NCURSES_SBOOL="char"
14829 echo "$as_me:14829: checking if you want to use signed Boolean array in term.h" >&5
14830 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14832 # Check whether --enable-signed-char or --disable-signed-char was given.
14833 if test "${enable_signed_char+set}" = set; then
14834 enableval="$enable_signed_char"
14835 with_signed_char=$enableval
14837 with_signed_char=$cf_dft_signed_char
14839 echo "$as_me:14839: result: $with_signed_char" >&5
14840 echo "${ECHO_T}$with_signed_char" >&6
14841 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14843 ### use option --with-tparm-arg to override tparm's argument type
14844 echo "$as_me:14844: checking for type of tparm args" >&5
14845 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14847 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14848 if test "${with_tparm_arg+set}" = set; then
14849 withval="$with_tparm_arg"
14850 NCURSES_TPARM_ARG="$withval"
14852 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14854 echo "$as_me:14854: result: $NCURSES_TPARM_ARG" >&5
14855 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14857 ### Enable compiling-in rcs id's
14858 echo "$as_me:14858: checking if RCS identifiers should be compiled-in" >&5
14859 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14861 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14862 if test "${with_rcs_ids+set}" = set; then
14863 withval="$with_rcs_ids"
14864 with_rcs_ids=$withval
14868 echo "$as_me:14868: result: $with_rcs_ids" >&5
14869 echo "${ECHO_T}$with_rcs_ids" >&6
14870 test "x$with_rcs_ids" = xyes &&
14871 cat >>confdefs.h <<\EOF
14872 #define USE_RCS_IDS 1
14875 ###############################################################################
14877 echo "$as_me:14877: checking format of man-pages" >&5
14878 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14880 # Check whether --with-manpage-format or --without-manpage-format was given.
14881 if test "${with_manpage_format+set}" = set; then
14882 withval="$with_manpage_format"
14883 MANPAGE_FORMAT=$withval
14885 MANPAGE_FORMAT=unknown
14888 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14889 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14893 case "$MANPAGE_FORMAT" in
14895 if test -z "$MANPATH" ; then
14896 MANPATH="/usr/man:/usr/share/man"
14899 # look for the 'date' man-page (it is most likely to be installed!)
14905 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14906 for cf_dir in $MANPATH; do
14907 test -z "$cf_dir" && cf_dir=/usr/man
14908 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
14910 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14911 if test "x$cf_test" = "x$cf_name" ; then
14914 (*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
14915 (*.xz) MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
14916 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14917 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14918 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14919 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14933 # if we found a match in either man* or cat*, stop looking
14934 if test -n "$MANPAGE_FORMAT" ; then
14936 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14937 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14943 test "$cf_found" = yes && break
14946 # only check the first directory in $MANPATH where we find manpages
14947 if test -n "$MANPAGE_FORMAT" ; then
14951 # if we did not find the example, just assume it is normal
14952 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14956 for cf_option in $MANPAGE_FORMAT; do
14957 case "$cf_option" in
14958 (xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
14961 cf_unknown="$cf_unknown $cf_option"
14968 echo "$as_me:14968: result: $MANPAGE_FORMAT" >&5
14969 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14970 if test -n "$cf_unknown" ; then
14971 { echo "$as_me:14971: WARNING: Unexpected manpage-format $cf_unknown" >&5
14972 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14975 cf_manpage_format=no
14976 cf_manpage_inboth=no
14977 cf_manpage_so_strip=
14978 cf_manpage_compress=
14980 for cf_item in $MANPAGE_FORMAT
14984 cf_manpage_format=yes
14985 cf_manpage_inboth=no
14988 cf_manpage_format=yes
14989 cf_manpage_inboth=yes
14992 cf_manpage_so_strip="Z"
14993 cf_manpage_compress=compress
14996 cf_manpage_so_strip="gz"
14997 cf_manpage_compress=gzip
15000 cf_manpage_so_strip="bz2"
15001 cf_manpage_compress=bzip2
15004 cf_manpage_so_strip="xz"
15005 cf_manpage_compress=xz
15010 echo "$as_me:15010: checking for manpage renaming" >&5
15011 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
15013 # Check whether --with-manpage-renames or --without-manpage-renames was given.
15014 if test "${with_manpage_renames+set}" = set; then
15015 withval="$with_manpage_renames"
15016 MANPAGE_RENAMES=$withval
15018 MANPAGE_RENAMES=yes
15021 case ".$MANPAGE_RENAMES" in
15025 # Debian 'man' program?
15026 if test -f /etc/debian_version ; then
15027 MANPAGE_RENAMES=man/man_db.renames
15034 if test "$MANPAGE_RENAMES" = man/man_db.renames ; then
15035 MANPAGE_RENAMES=`pwd`/$MANPAGE_RENAMES
15036 elif test "$MANPAGE_RENAMES" = no ; then
15038 elif test ! -f "$MANPAGE_RENAMES" ; then
15039 { { echo "$as_me:15039: error: not a filename: $MANPAGE_RENAMES" >&5
15040 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
15041 { (exit 1); exit 1; }; }
15044 echo "$as_me:15044: result: $MANPAGE_RENAMES" >&5
15045 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
15047 echo "$as_me:15047: checking if manpage aliases will be installed" >&5
15048 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
15050 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
15051 if test "${with_manpage_aliases+set}" = set; then
15052 withval="$with_manpage_aliases"
15053 MANPAGE_ALIASES=$withval
15055 MANPAGE_ALIASES=yes
15058 echo "$as_me:15058: result: $MANPAGE_ALIASES" >&5
15059 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
15063 cf_use_symlinks=yes
15070 MANPAGE_SYMLINKS=no
15071 if test "$MANPAGE_ALIASES" = yes ; then
15072 echo "$as_me:15072: checking if manpage symlinks should be used" >&5
15073 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
15075 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
15076 if test "${with_manpage_symlinks+set}" = set; then
15077 withval="$with_manpage_symlinks"
15078 MANPAGE_SYMLINKS=$withval
15080 MANPAGE_SYMLINKS=$cf_use_symlinks
15083 if test "$cf_use_symlinks" = no; then
15084 if test "$MANPAGE_SYMLINKS" = yes ; then
15085 { echo "$as_me:15085: WARNING: cannot make symlinks" >&5
15086 echo "$as_me: WARNING: cannot make symlinks" >&2;}
15087 MANPAGE_SYMLINKS=no
15091 echo "$as_me:15091: result: $MANPAGE_SYMLINKS" >&5
15092 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
15095 echo "$as_me:15095: checking for manpage tbl" >&5
15096 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
15098 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
15099 if test "${with_manpage_tbl+set}" = set; then
15100 withval="$with_manpage_tbl"
15101 MANPAGE_TBL=$withval
15106 echo "$as_me:15106: result: $MANPAGE_TBL" >&5
15107 echo "${ECHO_T}$MANPAGE_TBL" >&6
15109 if test "$prefix" = "NONE" ; then
15110 cf_prefix="$ac_default_prefix"
15112 cf_prefix="$prefix"
15115 test ! -d man && mkdir man
15117 cf_edit_man=./edit_man.sh
15118 cf_man_alias=`pwd`/man_alias.sed
15120 cat >$cf_edit_man <<CF_EOF
15122 # this script is generated by the configure-script CF_MAN_PAGES macro.
15124 prefix="$cf_prefix"
15125 datarootdir="$datarootdir"
15128 NCURSES_MAJOR="$NCURSES_MAJOR"
15129 NCURSES_MINOR="$NCURSES_MINOR"
15130 NCURSES_PATCH="$NCURSES_PATCH"
15132 NCURSES_OSPEED="$NCURSES_OSPEED"
15133 TERMINFO="$TERMINFO"
15136 INSTALL_DATA="$INSTALL_DATA"
15138 transform="$program_transform_name"
15140 TMP=\${TMPDIR:=/tmp}/man\$\$
15141 trap "rm -f \$TMP; exit 1" 1 2 3 15
15142 trap "rm -f \$TMP" 0
15154 top_srcdir=\$srcdir/..
15157 if test "\$form" = normal ; then
15158 if test "$cf_manpage_format" = yes ; then
15159 if test "$cf_manpage_inboth" = no ; then
15160 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15164 cf_subdir=\$mandir/man
15165 cf_tables=$MANPAGE_TBL
15167 cf_subdir=\$mandir/cat
15171 # process the list of source-files
15172 for i in "\$@" ; do
15176 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
15177 if test "\$verb" = installing ; then
15178 if test ! -d "\$cf_subdir\${section}" ; then
15179 mkdir -p "\$cf_subdir\$section"
15183 # replace variables in man page
15184 if test ! -f "$cf_man_alias" ; then
15185 cat >>$cf_man_alias <<-CF_EOF2
15186 s,@DATADIR@,\$datadir,g
15187 s,@TERMINFO@,\${TERMINFO:="no default value"},g
15188 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
15189 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
15190 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
15191 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
15192 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
15195 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
15197 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15198 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
15199 cat >>$cf_edit_man <<-CF_EOF
15200 s,@$cf_NAME@,$cf_name,g
15204 cat >>$cf_edit_man <<CF_EOF
15206 echo "...made $cf_man_alias"
15210 cf_source=\`basename "\$i"\`
15211 cf_full_alias=\$cf_source
15212 test ! -f "\$cf_full_alias" && cf_full_alias="\$srcdir/\$cf_full_alias"
15213 if test ! -f "\$cf_full_alias" ; then
15214 echo ".. skipped \$cf_source"
15219 if test "$MANPAGE_ALIASES" != no ; then
15220 cat >>$cf_edit_man <<CF_EOF
15222 cf_part_alias=\`echo \$cf_full_alias| sed -e 's,^.*/,,'\`
15223 test "$with_curses_h" = yes && nCurses=ncurses.3x
15224 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\`
15228 if test "$MANPAGE_RENAMES" = no ; then
15229 cat >>$cf_edit_man <<CF_EOF
15230 # perform program transformations for section 1 man pages
15231 if test \$section = 1 ; then
15232 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
15234 cf_target=\$cf_subdir\${section}/\$cf_source
15238 cat >>$cf_edit_man <<CF_EOF
15239 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
15240 if test -z "\$cf_target" ; then
15241 echo "? missing rename for \$cf_source"
15242 cf_target="\$cf_source"
15244 cf_target="\$cf_subdir\${section}/\${cf_target}"
15249 cat >>$cf_edit_man <<CF_EOF
15250 sed -f "$cf_man_alias" \\
15253 if test "$MANPAGE_RENAMES" != no ; then
15254 cat >>$cf_edit_man <<CF_EOF
15255 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
15258 cat >>$cf_edit_man <<CF_EOF
15263 cat >>$cf_edit_man <<CF_EOF
15264 if test \$cf_tables = yes ; then
15265 tbl \$TMP >\$TMP.out
15270 if test "$with_overwrite" != yes ; then
15271 cat >>$cf_edit_man <<CF_EOF
15272 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
15277 if test "$with_curses_h" != yes ; then
15278 cat >>$cf_edit_man <<CF_EOF
15279 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
15284 cat >>$cf_edit_man <<CF_EOF
15285 if test "\$form" = format ; then
15286 nroff -man \$TMP >\$TMP.out
15291 if test -n "$cf_manpage_compress" ; then
15292 cat >>$cf_edit_man <<CF_EOF
15293 if test "\$verb" = installing ; then
15294 if ( "$cf_manpage_compress" -f \$TMP )
15296 mv \$TMP.$cf_manpage_so_strip \$TMP
15299 cf_target="\$cf_target.$cf_manpage_so_strip"
15303 case "$MANPAGE_FORMAT" in
15305 cat >>$cf_edit_man <<CF_EOF
15306 if test "\$form" = format ; then
15307 # BSDI installs only .0 suffixes in the cat directories
15308 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
15314 cat >>$cf_edit_man <<CF_EOF
15315 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
15317 if test -n "$EXTRA_SUFFIX" ; then
15318 case \$cf_target in
15319 (*${EXTRA_SUFFIX}\$suffix)
15320 extra_suffix="$EXTRA_SUFFIX"
15324 if test "\$verb" = installing ; then
15325 echo "\$verb \$cf_target"
15326 \$INSTALL_DATA \$TMP "\$cf_target"
15327 test -d "\$cf_subdir\${section}" &&
15328 test -n "\$aliases" && (
15329 cd "\$cf_subdir\${section}" && (
15330 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
15331 test -n "$cf_manpage_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_manpage_so_strip\$%%'\`
15332 cf_target=\`basename "\$cf_target"\`
15333 for cf_alias in \$aliases
15335 if test "\$section" = 1 ; then
15336 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15338 cf_alias="\${cf_alias}\${extra_suffix}"
15340 if test "$MANPAGE_SYMLINKS" = yes ; then
15341 if test -f "\$cf_alias\${suffix}" ; then
15342 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
15347 echo ".. \$verb alias \$cf_alias\${suffix}"
15351 cat >>$cf_edit_man <<CF_EOF
15352 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15356 cat >>$cf_edit_man <<CF_EOF
15357 rm -f "\$cf_alias\${suffix}"
15358 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15362 cat >>$cf_edit_man <<CF_EOF
15363 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
15364 echo ".so \$cf_source" >\$TMP
15366 if test -n "$cf_manpage_compress" ; then
15367 cat >>$cf_edit_man <<CF_EOF
15368 if test -n "$cf_manpage_so_strip" ; then
15369 "$cf_manpage_compress" -f \$TMP
15370 mv \$TMP.$cf_manpage_so_strip \$TMP
15374 cat >>$cf_edit_man <<CF_EOF
15375 echo ".. \$verb alias \$cf_alias\${suffix}"
15376 rm -f "\$cf_alias\${suffix}"
15377 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15382 elif test "\$verb" = removing ; then
15383 test -f "\$cf_target" && (
15384 echo "\$verb \$cf_target"
15385 rm -f "\$cf_target"
15387 test -d "\$cf_subdir\${section}" &&
15388 test -n "\$aliases" && (
15389 cd "\$cf_subdir\${section}" && (
15390 for cf_alias in \$aliases
15392 if test "\$section" = 1 ; then
15393 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15395 cf_alias="\${cf_alias}\${extra_suffix}"
15397 echo ".. \$verb alias \$cf_alias\${suffix}"
15398 rm -f "\$cf_alias\${suffix}"
15410 if test "$cf_manpage_inboth" = yes ; then
15411 if test "\$form" != format ; then
15412 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15418 chmod 755 "$cf_edit_man"
15420 ###############################################################################
15422 ### Note that some functions (such as const) are normally disabled anyway.
15423 echo "$as_me:15423: checking if you want to build with function extensions" >&5
15424 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15426 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15427 if test "${enable_ext_funcs+set}" = set; then
15428 enableval="$enable_ext_funcs"
15429 with_ext_funcs=$enableval
15433 echo "$as_me:15433: result: $with_ext_funcs" >&5
15434 echo "${ECHO_T}$with_ext_funcs" >&6
15435 if test "x$with_ext_funcs" = xyes ; then
15436 NCURSES_EXT_FUNCS=1
15438 cat >>confdefs.h <<\EOF
15439 #define NCURSES_EXT_FUNCS 1
15442 cat >>confdefs.h <<\EOF
15443 #define HAVE_ASSUME_DEFAULT_COLORS 1
15446 cat >>confdefs.h <<\EOF
15447 #define HAVE_CURSES_VERSION 1
15450 cat >>confdefs.h <<\EOF
15451 #define HAVE_HAS_KEY 1
15454 cat >>confdefs.h <<\EOF
15455 #define HAVE_RESIZETERM 1
15458 cat >>confdefs.h <<\EOF
15459 #define HAVE_RESIZE_TERM 1
15462 cat >>confdefs.h <<\EOF
15463 #define HAVE_TERM_ENTRY_H 1
15466 cat >>confdefs.h <<\EOF
15467 #define HAVE_USE_DEFAULT_COLORS 1
15470 cat >>confdefs.h <<\EOF
15471 #define HAVE_USE_SCREEN 1
15474 cat >>confdefs.h <<\EOF
15475 #define HAVE_USE_WINDOW 1
15478 cat >>confdefs.h <<\EOF
15479 #define HAVE_WRESIZE 1
15482 GENERATED_EXT_FUNCS=generated
15483 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15485 NCURSES_EXT_FUNCS=0
15486 GENERATED_EXT_FUNCS=
15489 echo "$as_me:15489: checking if you want to build with SCREEN extensions" >&5
15490 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15492 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15493 if test "${enable_sp_funcs+set}" = set; then
15494 enableval="$enable_sp_funcs"
15495 with_sp_funcs=$enableval
15497 with_sp_funcs=$cf_dft_ext_spfuncs
15499 echo "$as_me:15499: result: $with_sp_funcs" >&5
15500 echo "${ECHO_T}$with_sp_funcs" >&6
15501 if test "x$with_sp_funcs" = xyes ; then
15504 cat >>confdefs.h <<\EOF
15505 #define NCURSES_SP_FUNCS 1
15508 cat >>confdefs.h <<\EOF
15509 #define HAVE_TPUTS_SP 1
15512 GENERATED_SP_FUNCS=generated
15515 GENERATED_SP_FUNCS=
15518 echo "$as_me:15518: checking if you want to build with terminal-driver" >&5
15519 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15521 # Check whether --enable-term-driver or --disable-term-driver was given.
15522 if test "${enable_term_driver+set}" = set; then
15523 enableval="$enable_term_driver"
15524 with_term_driver=$enableval
15526 with_term_driver=no
15528 echo "$as_me:15528: result: $with_term_driver" >&5
15529 echo "${ECHO_T}$with_term_driver" >&6
15530 if test "x$with_term_driver" = xyes ; then
15532 cat >>confdefs.h <<\EOF
15533 #define USE_TERM_DRIVER 1
15536 if test "x$with_termlib" != xno ; then
15537 { { echo "$as_me:15537: error: The term-driver option conflicts with the termlib option" >&5
15538 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15539 { (exit 1); exit 1; }; }
15541 if test "x$with_sp_funcs" != xyes ; then
15542 { { echo "$as_me:15542: error: The term-driver option relies upon sp-funcs" >&5
15543 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15544 { (exit 1); exit 1; }; }
15548 ### use option --enable-const to turn on use of const beyond that in XSI.
15549 echo "$as_me:15549: checking for extended use of const keyword" >&5
15550 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15552 # Check whether --enable-const or --disable-const was given.
15553 if test "${enable_const+set}" = set; then
15554 enableval="$enable_const"
15555 with_ext_const=$enableval
15557 with_ext_const=$cf_dft_ext_const
15559 echo "$as_me:15559: result: $with_ext_const" >&5
15560 echo "${ECHO_T}$with_ext_const" >&6
15561 NCURSES_CONST='/*nothing*/'
15562 if test "x$with_ext_const" = xyes ; then
15563 NCURSES_CONST=const
15566 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15567 echo "$as_me:15567: checking if you want to use extended colors" >&5
15568 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15570 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15571 if test "${enable_ext_colors+set}" = set; then
15572 enableval="$enable_ext_colors"
15573 with_ext_colors=$enableval
15575 with_ext_colors=$cf_dft_ext_colors
15577 echo "$as_me:15577: result: $with_ext_colors" >&5
15578 echo "${ECHO_T}$with_ext_colors" >&6
15579 NCURSES_EXT_COLORS=0
15580 if test "x$with_ext_colors" = xyes ; then
15581 if test "x$with_widec" != xyes ; then
15582 { echo "$as_me:15582: WARNING: This option applies only to wide-character library" >&5
15583 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15585 # cannot be ABI 5 since it changes sizeof(cchar_t)
15587 if test "${with_abi_version+set}" != set; then
15588 case "$cf_cv_rel_version" in
15590 cf_cv_rel_version=6.0
15591 cf_cv_abi_version=6
15592 cf_cv_abi_default=6
15593 { echo "$as_me:15593: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15594 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15599 NCURSES_EXT_COLORS=1
15601 cat >>confdefs.h <<\EOF
15602 #define NCURSES_EXT_COLORS 1
15605 cat >>confdefs.h <<\EOF
15606 #define HAVE_ALLOC_PAIR 1
15609 cat >>confdefs.h <<\EOF
15610 #define HAVE_INIT_EXTENDED_COLOR 1
15613 cat >>confdefs.h <<\EOF
15614 #define HAVE_RESET_COLOR_PAIRS 1
15620 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15621 echo "$as_me:15621: checking if you want to use extended mouse encoding" >&5
15622 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15624 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15625 if test "${enable_ext_mouse+set}" = set; then
15626 enableval="$enable_ext_mouse"
15627 with_ext_mouse=$enableval
15629 with_ext_mouse=$cf_dft_ext_mouse
15631 echo "$as_me:15631: result: $with_ext_mouse" >&5
15632 echo "${ECHO_T}$with_ext_mouse" >&6
15633 if test "x$with_ext_mouse" = xyes ; then
15635 if test "${with_abi_version+set}" != set; then
15636 case "$cf_cv_rel_version" in
15638 cf_cv_rel_version=6.0
15639 cf_cv_abi_version=6
15640 cf_cv_abi_default=6
15641 { echo "$as_me:15641: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15642 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15649 if test $cf_cv_abi_default -le 5 ; then
15650 NCURSES_MOUSE_VERSION=1
15651 elif test $cf_cv_abi_default -le 6 ; then
15652 NCURSES_MOUSE_VERSION=2
15654 NCURSES_MOUSE_VERSION=3
15657 ### use option --enable-ext-putwin to turn on extended screendumps
15658 echo "$as_me:15658: checking if you want to use extended putwin/screendump" >&5
15659 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15661 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15662 if test "${enable_ext_putwin+set}" = set; then
15663 enableval="$enable_ext_putwin"
15664 with_ext_putwin=$enableval
15666 with_ext_putwin=$cf_dft_ext_putwin
15668 echo "$as_me:15668: result: $with_ext_putwin" >&5
15669 echo "${ECHO_T}$with_ext_putwin" >&6
15670 if test "x$with_ext_putwin" = xyes ; then
15672 cat >>confdefs.h <<\EOF
15673 #define NCURSES_EXT_PUTWIN 1
15678 echo "$as_me:15678: checking if you want \$NCURSES_NO_PADDING code" >&5
15679 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15681 # Check whether --enable-no-padding or --disable-no-padding was given.
15682 if test "${enable_no_padding+set}" = set; then
15683 enableval="$enable_no_padding"
15684 with_no_padding=$enableval
15686 with_no_padding=$with_ext_funcs
15688 echo "$as_me:15688: result: $with_no_padding" >&5
15689 echo "${ECHO_T}$with_no_padding" >&6
15690 test "x$with_no_padding" = xyes &&
15691 cat >>confdefs.h <<\EOF
15692 #define NCURSES_NO_PADDING 1
15695 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15696 echo "$as_me:15696: checking if you want SIGWINCH handler" >&5
15697 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15699 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15700 if test "${enable_sigwinch+set}" = set; then
15701 enableval="$enable_sigwinch"
15702 with_sigwinch=$enableval
15704 with_sigwinch=$with_ext_funcs
15706 echo "$as_me:15706: result: $with_sigwinch" >&5
15707 echo "${ECHO_T}$with_sigwinch" >&6
15708 test "x$with_sigwinch" = xyes &&
15709 cat >>confdefs.h <<\EOF
15710 #define USE_SIGWINCH 1
15713 ### use option --enable-tcap-names to allow user to define new capabilities
15714 echo "$as_me:15714: checking if you want user-definable terminal capabilities like termcap" >&5
15715 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15717 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15718 if test "${enable_tcap_names+set}" = set; then
15719 enableval="$enable_tcap_names"
15720 with_tcap_names=$enableval
15722 with_tcap_names=$with_ext_funcs
15724 echo "$as_me:15724: result: $with_tcap_names" >&5
15725 echo "${ECHO_T}$with_tcap_names" >&6
15727 if test "x$with_tcap_names" = xyes; then
15730 cat >>confdefs.h <<\EOF
15731 #define NCURSES_XNAMES 1
15736 ##############################################################################
15738 echo "$as_me:15738: checking if you want to link with the pthread library" >&5
15739 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15741 # Check whether --with-pthread or --without-pthread was given.
15742 if test "${with_pthread+set}" = set; then
15743 withval="$with_pthread"
15744 with_pthread=$withval
15748 echo "$as_me:15748: result: $with_pthread" >&5
15749 echo "${ECHO_T}$with_pthread" >&6
15751 if test "$with_pthread" != no ; then
15752 echo "$as_me:15752: checking for pthread.h" >&5
15753 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15754 if test "${ac_cv_header_pthread_h+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 cat >"conftest.$ac_ext" <<_ACEOF
15758 #line 15758 "configure"
15759 #include "confdefs.h"
15760 #include <pthread.h>
15762 if { (eval echo "$as_me:15762: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15763 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15765 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15767 cat conftest.err >&5
15768 echo "$as_me:15768: \$? = $ac_status" >&5
15769 (exit "$ac_status"); } >/dev/null; then
15770 if test -s conftest.err; then
15771 ac_cpp_err=$ac_c_preproc_warn_flag
15778 if test -z "$ac_cpp_err"; then
15779 ac_cv_header_pthread_h=yes
15781 echo "$as_me: failed program was:" >&5
15782 cat "conftest.$ac_ext" >&5
15783 ac_cv_header_pthread_h=no
15785 rm -f conftest.err "conftest.$ac_ext"
15787 echo "$as_me:15787: result: $ac_cv_header_pthread_h" >&5
15788 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15789 if test "$ac_cv_header_pthread_h" = yes; then
15791 cat >>confdefs.h <<\EOF
15792 #define HAVE_PTHREADS_H 1
15795 for cf_lib_pthread in pthread c_r
15797 echo "$as_me:15797: checking if we can link with the $cf_lib_pthread library" >&5
15798 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15799 cf_save_LIBS="$LIBS"
15801 cf_add_libs="$LIBS"
15804 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15805 # filter duplicates
15806 for cf_add_1lib in $cf_add_0lib; do
15807 for cf_add_2lib in $cf_add_libs; do
15808 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15813 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15815 LIBS="$cf_add_libs"
15817 cat >"conftest.$ac_ext" <<_ACEOF
15818 #line 15818 "configure"
15819 #include "confdefs.h"
15821 #include <pthread.h>
15827 int rc = pthread_create(0,0,0,0);
15828 int r2 = pthread_mutexattr_settype(0, 0);
15834 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15835 if { (eval echo "$as_me:15835: \"$ac_link\"") >&5
15836 (eval $ac_link) 2>&5
15838 echo "$as_me:15838: \$? = $ac_status" >&5
15839 (exit "$ac_status"); } &&
15840 { ac_try='test -s "conftest$ac_exeext"'
15841 { (eval echo "$as_me:15841: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15844 echo "$as_me:15844: \$? = $ac_status" >&5
15845 (exit "$ac_status"); }; }; then
15848 echo "$as_me: failed program was:" >&5
15849 cat "conftest.$ac_ext" >&5
15852 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15853 LIBS="$cf_save_LIBS"
15854 echo "$as_me:15854: result: $with_pthread" >&5
15855 echo "${ECHO_T}$with_pthread" >&6
15856 test "$with_pthread" = yes && break
15859 if test "$with_pthread" = yes ; then
15861 cf_add_libs="$LIBS"
15864 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15865 # filter duplicates
15866 for cf_add_1lib in $cf_add_0lib; do
15867 for cf_add_2lib in $cf_add_libs; do
15868 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15873 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15875 LIBS="$cf_add_libs"
15877 cat >>confdefs.h <<\EOF
15878 #define HAVE_LIBPTHREADS 1
15882 { { echo "$as_me:15882: error: Cannot link with pthread library" >&5
15883 echo "$as_me: error: Cannot link with pthread library" >&2;}
15884 { (exit 1); exit 1; }; }
15891 if test "x$with_pthread" != xno; then
15892 echo "$as_me:15892: checking for pthread_kill" >&5
15893 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15894 if test "${ac_cv_func_pthread_kill+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 cat >"conftest.$ac_ext" <<_ACEOF
15898 #line 15898 "configure"
15899 #include "confdefs.h"
15900 #define pthread_kill autoconf_temporary
15901 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15902 #undef pthread_kill
15908 /* We use char because int might match the return type of a gcc2
15909 builtin and then its argument prototype would still apply. */
15910 char pthread_kill (void);
15916 /* The GNU C library defines stubs for functions which it implements
15917 to always fail with ENOSYS. Some functions are actually named
15918 something starting with __ and the normal name is an alias. */
15919 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15920 #error found stub for pthread_kill
15923 return pthread_kill ();
15928 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15929 if { (eval echo "$as_me:15929: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>&5
15932 echo "$as_me:15932: \$? = $ac_status" >&5
15933 (exit "$ac_status"); } &&
15934 { ac_try='test -s "conftest$ac_exeext"'
15935 { (eval echo "$as_me:15935: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:15938: \$? = $ac_status" >&5
15939 (exit "$ac_status"); }; }; then
15940 ac_cv_func_pthread_kill=yes
15942 echo "$as_me: failed program was:" >&5
15943 cat "conftest.$ac_ext" >&5
15944 ac_cv_func_pthread_kill=no
15946 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15948 echo "$as_me:15948: result: $ac_cv_func_pthread_kill" >&5
15949 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15950 if test "$ac_cv_func_pthread_kill" = yes; then
15952 echo "$as_me:15952: checking if you want to allow EINTR in wgetch with pthreads" >&5
15953 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15955 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15956 if test "${enable_pthreads_eintr+set}" = set; then
15957 enableval="$enable_pthreads_eintr"
15958 use_pthreads_eintr=$enableval
15960 use_pthreads_eintr=no
15962 echo "$as_me:15962: result: $use_pthreads_eintr" >&5
15963 echo "${ECHO_T}$use_pthreads_eintr" >&6
15964 if test "x$use_pthreads_eintr" = xyes ; then
15966 cat >>confdefs.h <<\EOF
15967 #define USE_PTHREADS_EINTR 1
15973 echo "$as_me:15973: checking if you want to use weak-symbols for pthreads" >&5
15974 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15976 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15977 if test "${enable_weak_symbols+set}" = set; then
15978 enableval="$enable_weak_symbols"
15979 use_weak_symbols=$enableval
15981 use_weak_symbols=no
15983 echo "$as_me:15983: result: $use_weak_symbols" >&5
15984 echo "${ECHO_T}$use_weak_symbols" >&6
15985 if test "x$use_weak_symbols" = xyes ; then
15987 echo "$as_me:15987: checking if $CC supports weak symbols" >&5
15988 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15989 if test "${cf_cv_weak_symbols+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 cat >"conftest.$ac_ext" <<_ACEOF
15994 #line 15994 "configure"
15995 #include "confdefs.h"
16002 #if defined(__GNUC__)
16003 # if defined __USE_ISOC99
16004 # define _cat_pragma(exp) _Pragma(#exp)
16005 # define _weak_pragma(exp) _cat_pragma(weak name)
16007 # define _weak_pragma(exp)
16009 # define _declare(name) __extension__ extern __typeof__(name) name
16010 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
16013 weak_symbol(fopen);
16019 rm -f "conftest.$ac_objext"
16020 if { (eval echo "$as_me:16020: \"$ac_compile\"") >&5
16021 (eval $ac_compile) 2>&5
16023 echo "$as_me:16023: \$? = $ac_status" >&5
16024 (exit "$ac_status"); } &&
16025 { ac_try='test -s "conftest.$ac_objext"'
16026 { (eval echo "$as_me:16026: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16029 echo "$as_me:16029: \$? = $ac_status" >&5
16030 (exit "$ac_status"); }; }; then
16031 cf_cv_weak_symbols=yes
16033 echo "$as_me: failed program was:" >&5
16034 cat "conftest.$ac_ext" >&5
16035 cf_cv_weak_symbols=no
16037 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16040 echo "$as_me:16040: result: $cf_cv_weak_symbols" >&5
16041 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
16044 cf_cv_weak_symbols=no
16047 if test "x$cf_cv_weak_symbols" = xyes ; then
16049 cat >>confdefs.h <<\EOF
16050 #define USE_WEAK_SYMBOLS 1
16057 if test "x$with_pthread" = "xyes" ; then
16059 cat >>confdefs.h <<\EOF
16060 #define USE_PTHREADS 1
16063 enable_reentrant=yes
16064 if test "x$cf_cv_weak_symbols" = xyes ; then
16067 cf_add_libs="$PRIVATE_LIBS"
16070 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16071 # filter duplicates
16072 for cf_add_1lib in $cf_add_0lib; do
16073 for cf_add_2lib in $cf_add_libs; do
16074 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16079 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16081 PRIVATE_LIBS="$cf_add_libs"
16086 # Reentrant code has to be opaque; there's little advantage to making ncurses
16087 # opaque outside of that, so there is no --enable-opaque option. We can use
16088 # this option without --with-pthreads, but this will be always set for
16090 echo "$as_me:16090: checking if you want reentrant code" >&5
16091 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
16093 # Check whether --enable-reentrant or --disable-reentrant was given.
16094 if test "${enable_reentrant+set}" = set; then
16095 enableval="$enable_reentrant"
16096 with_reentrant=$enableval
16100 echo "$as_me:16100: result: $with_reentrant" >&5
16101 echo "${ECHO_T}$with_reentrant" >&6
16102 if test "x$with_reentrant" = xyes ; then
16103 cf_cv_enable_reentrant=1
16104 cf_cv_enable_opaque="NCURSES_INTERNALS"
16106 if test "x$cf_cv_weak_symbols" = xyes ; then
16108 # remove pthread library from $LIBS
16109 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
16111 cf_add_libs="$TEST_LIBS"
16114 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16115 # filter duplicates
16116 for cf_add_1lib in $cf_add_0lib; do
16117 for cf_add_2lib in $cf_add_libs; do
16118 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16123 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16125 TEST_LIBS="$cf_add_libs"
16127 cf_add_libs="$TEST_LIBS2"
16130 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16131 # filter duplicates
16132 for cf_add_1lib in $cf_add_0lib; do
16133 for cf_add_2lib in $cf_add_libs; do
16134 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16139 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16141 TEST_LIBS2="$cf_add_libs"
16143 cf_add_libs="$PRIVATE_LIBS"
16146 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16147 # filter duplicates
16148 for cf_add_1lib in $cf_add_0lib; do
16149 for cf_add_2lib in $cf_add_libs; do
16150 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16155 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16157 PRIVATE_LIBS="$cf_add_libs"
16160 # when not using weak symbols but with_reentrant,
16161 # add 't' to the library suffix on all platforms
16162 # except cygwin, where we only do that if ALSO
16163 # compiling with full thread support.
16165 (*cygwin* | *msys*)
16166 if test "$with_pthread" = "yes" ; then
16167 if test "x$disable_lib_suffixes" = "xno" ; then
16168 LIB_SUFFIX="t${LIB_SUFFIX}"
16172 if test "x$disable_lib_suffixes" = "xno" ; then
16173 LIB_SUFFIX="t${LIB_SUFFIX}"
16179 cat >>confdefs.h <<\EOF
16180 #define USE_REENTRANT 1
16183 if test "${with_abi_version+set}" != set; then
16184 case "$cf_cv_rel_version" in
16186 cf_cv_rel_version=6.0
16187 cf_cv_abi_version=6
16188 cf_cv_abi_default=6
16189 { echo "$as_me:16189: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
16190 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
16196 cf_cv_enable_reentrant=0
16197 cf_cv_enable_opaque="NCURSES_OPAQUE"
16198 NCURSES_SIZE_T=$cf_dft_ordinate_type
16201 echo "$as_me:16201: checking if you want opaque curses-library structures" >&5
16202 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
16204 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
16205 if test "${enable_opaque_curses+set}" = set; then
16206 enableval="$enable_opaque_curses"
16207 test "$enableval" != yes && enableval=no
16208 if test "$enableval" != "no" ; then
16209 enable_opaque_curses=yes
16212 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16213 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16219 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16220 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16223 echo "$as_me:16223: result: $enable_opaque_curses" >&5
16224 echo "${ECHO_T}$enable_opaque_curses" >&6
16226 test "$cf_cv_enable_reentrant" = 1 && \
16227 test "$enable_opaque_curses" = no && \
16228 { { echo "$as_me:16228: error: reentrant configuration requires opaque library" >&5
16229 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
16230 { (exit 1); exit 1; }; }
16232 echo "$as_me:16232: checking if you want opaque form-library structures" >&5
16233 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
16235 # Check whether --enable-opaque-form or --disable-opaque-form was given.
16236 if test "${enable_opaque_form+set}" = set; then
16237 enableval="$enable_opaque_form"
16238 enable_opaque_form=yes
16240 enable_opaque_form=no
16242 echo "$as_me:16242: result: $enable_opaque_form" >&5
16243 echo "${ECHO_T}$enable_opaque_form" >&6
16245 echo "$as_me:16245: checking if you want opaque menu-library structures" >&5
16246 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
16248 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
16249 if test "${enable_opaque_menu+set}" = set; then
16250 enableval="$enable_opaque_menu"
16251 enable_opaque_menu=yes
16253 enable_opaque_menu=no
16255 echo "$as_me:16255: result: $enable_opaque_menu" >&5
16256 echo "${ECHO_T}$enable_opaque_menu" >&6
16258 echo "$as_me:16258: checking if you want opaque panel-library structures" >&5
16259 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
16261 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
16262 if test "${enable_opaque_panel+set}" = set; then
16263 enableval="$enable_opaque_panel"
16264 enable_opaque_panel=yes
16266 enable_opaque_panel=no
16268 echo "$as_me:16268: result: $enable_opaque_panel" >&5
16269 echo "${ECHO_T}$enable_opaque_panel" >&6
16271 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
16272 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
16273 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
16274 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
16276 ### Allow using a different wrap-prefix
16277 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
16278 echo "$as_me:16278: checking for prefix used to wrap public variables" >&5
16279 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16281 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16282 if test "${with_wrap_prefix+set}" = set; then
16283 withval="$with_wrap_prefix"
16284 NCURSES_WRAP_PREFIX=$withval
16286 NCURSES_WRAP_PREFIX=_nc_
16288 echo "$as_me:16288: result: $NCURSES_WRAP_PREFIX" >&5
16289 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
16291 NCURSES_WRAP_PREFIX=_nc_
16294 cat >>confdefs.h <<EOF
16295 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
16298 ###############################################################################
16299 # These options are relatively safe to experiment with.
16301 echo "$as_me:16301: checking if you want all development code" >&5
16302 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16304 # Check whether --with-develop or --without-develop was given.
16305 if test "${with_develop+set}" = set; then
16306 withval="$with_develop"
16307 with_develop=$withval
16311 echo "$as_me:16311: result: $with_develop" >&5
16312 echo "${ECHO_T}$with_develop" >&6
16314 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
16315 echo "$as_me:16315: checking if you want hard-tabs code" >&5
16316 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
16318 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
16319 if test "${enable_hard_tabs+set}" = set; then
16320 enableval="$enable_hard_tabs"
16323 enable_hard_tabs=$with_develop
16325 echo "$as_me:16325: result: $enable_hard_tabs" >&5
16326 echo "${ECHO_T}$enable_hard_tabs" >&6
16327 test "x$enable_hard_tabs" = xyes &&
16328 cat >>confdefs.h <<\EOF
16329 #define USE_HARD_TABS 1
16332 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
16333 echo "$as_me:16333: checking if you want limited support for xmc" >&5
16334 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
16336 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
16337 if test "${enable_xmc_glitch+set}" = set; then
16338 enableval="$enable_xmc_glitch"
16341 enable_xmc_glitch=$with_develop
16343 echo "$as_me:16343: result: $enable_xmc_glitch" >&5
16344 echo "${ECHO_T}$enable_xmc_glitch" >&6
16345 test "x$enable_xmc_glitch" = xyes &&
16346 cat >>confdefs.h <<\EOF
16347 #define USE_XMC_SUPPORT 1
16350 ###############################################################################
16351 # These are just experimental, probably should not be in a package:
16353 echo "$as_me:16353: checking if you do not want to assume colors are white-on-black" >&5
16354 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
16356 # Check whether --enable-assumed-color or --disable-assumed-color was given.
16357 if test "${enable_assumed_color+set}" = set; then
16358 enableval="$enable_assumed_color"
16359 with_assumed_color=$enableval
16361 with_assumed_color=yes
16363 echo "$as_me:16363: result: $with_assumed_color" >&5
16364 echo "${ECHO_T}$with_assumed_color" >&6
16365 test "x$with_assumed_color" = xyes &&
16366 cat >>confdefs.h <<\EOF
16367 #define USE_ASSUMED_COLOR 1
16370 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
16371 echo "$as_me:16371: checking if you want hashmap scrolling-optimization code" >&5
16372 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
16374 # Check whether --enable-hashmap or --disable-hashmap was given.
16375 if test "${enable_hashmap+set}" = set; then
16376 enableval="$enable_hashmap"
16377 with_hashmap=$enableval
16381 echo "$as_me:16381: result: $with_hashmap" >&5
16382 echo "${ECHO_T}$with_hashmap" >&6
16383 test "x$with_hashmap" = xyes &&
16384 cat >>confdefs.h <<\EOF
16385 #define USE_HASHMAP 1
16388 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16389 echo "$as_me:16389: checking if you want colorfgbg code" >&5
16390 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16392 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16393 if test "${enable_colorfgbg+set}" = set; then
16394 enableval="$enable_colorfgbg"
16395 with_colorfgbg=$enableval
16399 echo "$as_me:16399: result: $with_colorfgbg" >&5
16400 echo "${ECHO_T}$with_colorfgbg" >&6
16401 test "x$with_colorfgbg" = xyes &&
16402 cat >>confdefs.h <<\EOF
16403 #define USE_COLORFGBG 1
16406 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16407 echo "$as_me:16407: checking if you want to use gcc -fvisibility option" >&5
16408 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16410 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16411 if test "${enable_fvisibility+set}" = set; then
16412 enableval="$enable_fvisibility"
16413 cf_with_fvisibility=$enableval
16415 cf_with_fvisibility=no
16417 echo "$as_me:16417: result: $cf_with_fvisibility" >&5
16418 echo "${ECHO_T}$cf_with_fvisibility" >&6
16421 NCURSES_CXX_IMPEXP=
16422 if test "x$cf_with_fvisibility" = xyes; then
16424 echo "$as_me:16424: checking if $CC -fvisibility=hidden option works" >&5
16425 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16426 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 cf_save_cflags="$CFLAGS"
16431 CFLAGS="$CFLAGS -fvisibility=hidden"
16432 cat >"conftest.$ac_ext" <<_ACEOF
16433 #line 16433 "configure"
16434 #include "confdefs.h"
16436 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16442 if (somefunc()) return 1;
16448 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16449 if { (eval echo "$as_me:16449: \"$ac_link\"") >&5
16450 (eval $ac_link) 2>&5
16452 echo "$as_me:16452: \$? = $ac_status" >&5
16453 (exit "$ac_status"); } &&
16454 { ac_try='test -s "conftest$ac_exeext"'
16455 { (eval echo "$as_me:16455: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 echo "$as_me:16458: \$? = $ac_status" >&5
16459 (exit "$ac_status"); }; }; then
16460 cf_cv_fvisibility_hidden=yes
16462 echo "$as_me: failed program was:" >&5
16463 cat "conftest.$ac_ext" >&5
16464 cf_cv_fvisibility_hidden=no
16466 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16467 CFLAGS=$cf_save_cflags
16470 echo "$as_me:16470: result: $cf_cv_fvisibility_hidden" >&5
16471 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16473 if test "x$cf_cv_fvisibility_hidden" = xyes
16479 cf_new_extra_cppflags=
16481 for cf_add_cflags in -fvisibility=hidden
16483 case "$cf_fix_cppflags" in
16485 case "$cf_add_cflags" in
16486 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16487 case "$cf_add_cflags" in
16489 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16491 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16492 && test -z "${cf_tst_cflags}" \
16493 && cf_fix_cppflags=yes
16495 if test "$cf_fix_cppflags" = yes ; then
16497 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16498 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16501 elif test "${cf_tst_cflags}" = "\"'" ; then
16503 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16504 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16510 case "$CPPFLAGS" in
16514 case "$cf_add_cflags" in
16516 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16518 CPPFLAGS=`echo "$CPPFLAGS" | \
16519 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16520 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16525 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16526 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16533 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16534 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16541 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16542 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16544 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16546 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16547 && test -z "${cf_tst_cflags}" \
16548 && cf_fix_cppflags=no
16553 if test -n "$cf_new_cflags" ; then
16555 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16556 CFLAGS="${CFLAGS}$cf_new_cflags"
16560 if test -n "$cf_new_cppflags" ; then
16562 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16563 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16567 if test -n "$cf_new_extra_cppflags" ; then
16569 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16570 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16574 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16579 ac_cpp='$CXXCPP $CPPFLAGS'
16580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16581 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16583 ac_main_return="return"
16585 echo "$as_me:16585: checking if $CXX -fvisibility=hidden option works" >&5
16586 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16587 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 cf_save_cflags="$CXXFLAGS"
16592 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16593 cat >"conftest.$ac_ext" <<_ACEOF
16594 #line 16594 "configure"
16595 #include "confdefs.h"
16597 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16603 if (somefunc()) return 1;
16609 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16610 if { (eval echo "$as_me:16610: \"$ac_link\"") >&5
16611 (eval $ac_link) 2>&5
16613 echo "$as_me:16613: \$? = $ac_status" >&5
16614 (exit "$ac_status"); } &&
16615 { ac_try='test -s "conftest$ac_exeext"'
16616 { (eval echo "$as_me:16616: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16619 echo "$as_me:16619: \$? = $ac_status" >&5
16620 (exit "$ac_status"); }; }; then
16621 cf_cv_fvisibility_hidden2=yes
16623 echo "$as_me: failed program was:" >&5
16624 cat "conftest.$ac_ext" >&5
16625 cf_cv_fvisibility_hidden2=no
16627 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16628 CXXFLAGS=$cf_save_cflags
16631 echo "$as_me:16631: result: $cf_cv_fvisibility_hidden2" >&5
16632 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16634 if test "x$cf_cv_fvisibility_hidden2" = xyes
16637 cf_save_CXXFLAGS="$CFLAGS"
16643 cf_new_extra_cppflags=
16645 for cf_add_cflags in -fvisibility=hidden
16647 case "$cf_fix_cppflags" in
16649 case "$cf_add_cflags" in
16650 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16651 case "$cf_add_cflags" in
16653 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16655 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16656 && test -z "${cf_tst_cflags}" \
16657 && cf_fix_cppflags=yes
16659 if test "$cf_fix_cppflags" = yes ; then
16661 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16662 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16665 elif test "${cf_tst_cflags}" = "\"'" ; then
16667 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16668 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16674 case "$CPPFLAGS" in
16678 case "$cf_add_cflags" in
16680 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16682 CPPFLAGS=`echo "$CPPFLAGS" | \
16683 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16684 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16689 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16690 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16697 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16698 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16705 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16706 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16708 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16710 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16711 && test -z "${cf_tst_cflags}" \
16712 && cf_fix_cppflags=no
16717 if test -n "$cf_new_cflags" ; then
16719 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16720 CFLAGS="${CFLAGS}$cf_new_cflags"
16724 if test -n "$cf_new_cppflags" ; then
16726 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16727 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16731 if test -n "$cf_new_extra_cppflags" ; then
16733 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16734 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16739 CFLAGS="$cf_save_CXXFLAGS"
16741 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16744 ac_cpp='$CPP $CPPFLAGS'
16745 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16746 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16748 ac_main_return="return"
16753 ### use option --enable-interop to turn on use of bindings used for interop
16754 echo "$as_me:16754: checking if you want interop bindings" >&5
16755 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16757 # Check whether --enable-interop or --disable-interop was given.
16758 if test "${enable_interop+set}" = set; then
16759 enableval="$enable_interop"
16760 with_exp_interop=$enableval
16762 with_exp_interop=$cf_dft_interop
16764 echo "$as_me:16764: result: $with_exp_interop" >&5
16765 echo "${ECHO_T}$with_exp_interop" >&6
16767 NCURSES_INTEROP_FUNCS=0
16768 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16770 echo "$as_me:16770: checking if you want experimental safe-sprintf code" >&5
16771 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16773 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16774 if test "${enable_safe_sprintf+set}" = set; then
16775 enableval="$enable_safe_sprintf"
16776 with_safe_sprintf=$enableval
16778 with_safe_sprintf=no
16780 echo "$as_me:16780: result: $with_safe_sprintf" >&5
16781 echo "${ECHO_T}$with_safe_sprintf" >&6
16783 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16784 # when hashmap is used scroll hints are useless
16785 if test "$with_hashmap" = no ; then
16786 echo "$as_me:16786: checking if you want to experiment without scrolling-hints code" >&5
16787 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16789 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16790 if test "${enable_scroll_hints+set}" = set; then
16791 enableval="$enable_scroll_hints"
16792 with_scroll_hints=$enableval
16794 with_scroll_hints=yes
16796 echo "$as_me:16796: result: $with_scroll_hints" >&5
16797 echo "${ECHO_T}$with_scroll_hints" >&6
16798 test "x$with_scroll_hints" = xyes &&
16799 cat >>confdefs.h <<\EOF
16800 #define USE_SCROLL_HINTS 1
16805 echo "$as_me:16805: checking if you want wgetch-events code" >&5
16806 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16808 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16809 if test "${enable_wgetch_events+set}" = set; then
16810 enableval="$enable_wgetch_events"
16811 with_wgetch_events=$enableval
16813 with_wgetch_events=no
16815 echo "$as_me:16815: result: $with_wgetch_events" >&5
16816 echo "${ECHO_T}$with_wgetch_events" >&6
16817 if test "x$with_wgetch_events" = xyes ; then
16819 cat >>confdefs.h <<\EOF
16820 #define NCURSES_WGETCH_EVENTS 1
16823 NCURSES_WGETCH_EVENTS=1
16825 NCURSES_WGETCH_EVENTS=0
16828 case "$cf_cv_system_name" in
16829 (*mingw32*|*mingw64*|*-msvc*)
16830 echo "$as_me:16830: checking if you want experimental-Windows driver" >&5
16831 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16833 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16834 if test "${enable_exp_win32+set}" = set; then
16835 enableval="$enable_exp_win32"
16836 with_exp_win32=$enableval
16840 echo "$as_me:16840: result: $with_exp_win32" >&5
16841 echo "${ECHO_T}$with_exp_win32" >&6
16842 if test "x$with_exp_win32" = xyes
16845 cat >>confdefs.h <<\EOF
16846 #define EXP_WIN32_DRIVER 1
16850 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16852 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16862 ###############################################################################
16864 ### use option --disable-echo to suppress full display compiling commands
16866 echo "$as_me:16866: checking if you want to see long compiling messages" >&5
16867 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16869 # Check whether --enable-echo or --disable-echo was given.
16870 if test "${enable_echo+set}" = set; then
16871 enableval="$enable_echo"
16872 test "$enableval" != no && enableval=yes
16873 if test "$enableval" != "yes" ; then
16876 ECHO_LD='@echo linking $@;'
16877 RULE_CC='@echo compiling $<'
16878 SHOW_CC='@echo compiling $@'
16900 echo "$as_me:16900: result: $enableval" >&5
16901 echo "${ECHO_T}$enableval" >&6
16903 if test "x$enable_echo" = xyes; then
16906 ECHO_LINK='@ echo linking $@ ... ;'
16907 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16908 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16911 # --disable-stripping is used for debugging
16913 echo "$as_me:16913: checking if you want to install stripped executables" >&5
16914 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16916 # Check whether --enable-stripping or --disable-stripping was given.
16917 if test "${enable_stripping+set}" = set; then
16918 enableval="$enable_stripping"
16919 test "$enableval" != no && enableval=yes
16920 if test "$enableval" != "yes" ; then
16921 enable_stripping=no
16923 enable_stripping=yes
16927 enable_stripping=yes
16930 echo "$as_me:16930: result: $enable_stripping" >&5
16931 echo "${ECHO_T}$enable_stripping" >&6
16933 if test "$enable_stripping" = yes
16940 : "${INSTALL:=install}"
16941 echo "$as_me:16941: checking if install accepts -p option" >&5
16942 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16943 if test "${cf_cv_install_p+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16953 if test -f conftest.out/conftest.in
16955 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16956 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16957 if test -s conftest.err
16961 cf_cv_install_p=yes
16972 echo "$as_me:16972: result: $cf_cv_install_p" >&5
16973 echo "${ECHO_T}$cf_cv_install_p" >&6
16975 echo "$as_me:16975: checking if install needs to be told about ownership" >&5
16976 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16977 case `$ac_config_guess` in
16986 echo "$as_me:16986: result: $with_install_o" >&5
16987 echo "${ECHO_T}$with_install_o" >&6
16988 if test "x$with_install_o" = xyes
16990 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'`"
16995 if test -n "$INSTALL_OPT_S"
16997 echo "$as_me:16997: checking if you want to specify strip-program" >&5
16998 echo $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
17000 # Check whether --with-strip-program or --without-strip-program was given.
17001 if test "${with_strip_program+set}" = set; then
17002 withval="$with_strip_program"
17003 with_strip_program=$withval
17005 with_strip_program=no
17007 echo "$as_me:17007: result: $with_strip_program" >&5
17008 echo "${ECHO_T}$with_strip_program" >&6
17009 if test "$with_strip_program" != no
17011 echo "$as_me:17011: checking if strip-program is supported with this installer" >&5
17012 echo $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
17013 cf_install_program=`echo "$INSTALL" | sed -e 's%[ ]*[ ]-.%%'`
17014 check_install_strip=no
17015 if test -f "$cf_install_program"
17017 check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
17018 if test -n "$check_install_version"
17020 check_install_strip="option"
17022 for check_strip_variable in STRIPBIN STRIP
17024 if strings "$cf_install_program" | grep "^$check_strip_variable$" >/dev/null
17026 check_install_strip="environ"
17032 echo "$as_me:17032: result: $check_install_strip" >&5
17033 echo "${ECHO_T}$check_install_strip" >&6
17034 case "$check_install_strip" in
17036 { echo "$as_me:17036: WARNING: $cf_install_program does not support strip program option" >&5
17037 echo "$as_me: WARNING: $cf_install_program does not support strip program option" >&2;}
17038 with_strip_program=no
17041 cat >install.tmp <<-CF_EOF
17043 STRIPBIN="$with_strip_program" \\
17044 STRIP="$with_strip_program" \\
17047 INSTALL="`pwd`/install.tmp"
17048 chmod +x "$INSTALL"
17049 test -n "$verbose" && echo " created $INSTALL" 1>&6
17051 echo "${as_me:-configure}:17051: testing created $INSTALL ..." 1>&5
17055 INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
17061 # If we're avoiding relinking of shared libraries during install, that is to
17062 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
17063 # the install program has "-p" (for preserving timestamps).
17064 cf_cv_do_reranlib=yes
17065 if test "x$cf_cv_install_p" = xyes
17067 if test "x$cf_cv_do_relink" != xyes
17069 cf_cv_do_reranlib=no
17071 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
17075 ### use option --enable-warnings to turn on all gcc warnings
17077 echo "$as_me:17077: checking if you want to use C11 _Noreturn feature" >&5
17078 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
17080 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
17081 if test "${enable_stdnoreturn+set}" = set; then
17082 enableval="$enable_stdnoreturn"
17083 test "$enableval" != yes && enableval=no
17084 if test "$enableval" != "no" ; then
17085 enable_stdnoreturn=yes
17087 enable_stdnoreturn=no
17091 enable_stdnoreturn=no
17094 echo "$as_me:17094: result: $enable_stdnoreturn" >&5
17095 echo "${ECHO_T}$enable_stdnoreturn" >&6
17097 if test $enable_stdnoreturn = yes; then
17098 echo "$as_me:17098: checking for C11 _Noreturn feature" >&5
17099 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
17100 if test "${cf_cv_c11_noreturn+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >"conftest.$ac_ext" <<_ACEOF
17104 #line 17104 "configure"
17105 #include "confdefs.h"
17107 $ac_includes_default
17108 #include <stdnoreturn.h>
17109 static _Noreturn void giveup(void) { exit(0); }
17114 if (feof(stdin)) giveup()
17119 rm -f "conftest.$ac_objext"
17120 if { (eval echo "$as_me:17120: \"$ac_compile\"") >&5
17121 (eval $ac_compile) 2>&5
17123 echo "$as_me:17123: \$? = $ac_status" >&5
17124 (exit "$ac_status"); } &&
17125 { ac_try='test -s "conftest.$ac_objext"'
17126 { (eval echo "$as_me:17126: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17129 echo "$as_me:17129: \$? = $ac_status" >&5
17130 (exit "$ac_status"); }; }; then
17131 cf_cv_c11_noreturn=yes
17133 echo "$as_me: failed program was:" >&5
17134 cat "conftest.$ac_ext" >&5
17135 cf_cv_c11_noreturn=no
17137 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17140 echo "$as_me:17140: result: $cf_cv_c11_noreturn" >&5
17141 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
17143 cf_cv_c11_noreturn=no,
17146 if test "$cf_cv_c11_noreturn" = yes; then
17148 cat >>confdefs.h <<\EOF
17149 #define HAVE_STDNORETURN_H 1
17152 cat >>confdefs.h <<EOF
17153 #define STDC_NORETURN _Noreturn
17156 HAVE_STDNORETURN_H=1
17158 HAVE_STDNORETURN_H=0
17161 if test "$GCC" = yes || test "$GXX" = yes
17164 if test "$GCC" = yes || test "$GXX" = yes
17169 for cf_temp_scan in $CFLAGS
17171 case "x$cf_temp_scan" in
17174 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17175 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17180 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17181 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17186 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17187 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17192 if test "x$CFLAGS" != "x$cf_temp_flags"
17194 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
17196 echo "${as_me:-configure}:17196: testing repairing CFLAGS: $CFLAGS ..." 1>&5
17198 CFLAGS="$cf_temp_flags"
17199 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
17201 echo "${as_me:-configure}:17201: testing ... fixed $CFLAGS ..." 1>&5
17203 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17205 echo "${as_me:-configure}:17205: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17212 if test "$GCC" = yes || test "$GXX" = yes
17217 for cf_temp_scan in $CPPFLAGS
17219 case "x$cf_temp_scan" in
17222 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17223 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17228 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17229 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17234 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17235 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17240 if test "x$CPPFLAGS" != "x$cf_temp_flags"
17242 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
17244 echo "${as_me:-configure}:17244: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
17246 CPPFLAGS="$cf_temp_flags"
17247 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
17249 echo "${as_me:-configure}:17249: testing ... fixed $CPPFLAGS ..." 1>&5
17251 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17253 echo "${as_me:-configure}:17253: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17260 if test "$GCC" = yes || test "$GXX" = yes
17265 for cf_temp_scan in $LDFLAGS
17267 case "x$cf_temp_scan" in
17270 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17271 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17276 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17277 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17282 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17283 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17288 if test "x$LDFLAGS" != "x$cf_temp_flags"
17290 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
17292 echo "${as_me:-configure}:17292: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
17294 LDFLAGS="$cf_temp_flags"
17295 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
17297 echo "${as_me:-configure}:17297: testing ... fixed $LDFLAGS ..." 1>&5
17299 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17301 echo "${as_me:-configure}:17301: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17308 echo "$as_me:17308: checking if you want to turn on gcc warnings" >&5
17309 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17311 # Check whether --enable-warnings or --disable-warnings was given.
17312 if test "${enable_warnings+set}" = set; then
17313 enableval="$enable_warnings"
17314 test "$enableval" != yes && enableval=no
17315 if test "$enableval" != "no" ; then
17316 enable_warnings=yes
17325 echo "$as_me:17325: result: $enable_warnings" >&5
17326 echo "${ECHO_T}$enable_warnings" >&6
17327 if test "$enable_warnings" = "yes"
17330 if test "x$have_x" = xyes; then
17332 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17333 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17334 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17335 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17336 for cf_X_CFLAGS in $X_CFLAGS
17338 case "x$cf_X_CFLAGS" in
17340 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17343 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17348 cat >"conftest.$ac_ext" <<_ACEOF
17349 #line 17349 "configure"
17350 #include "confdefs.h"
17352 #include <stdlib.h>
17353 #include <X11/Intrinsic.h>
17358 String foo = malloc(1); free((void*)foo)
17363 rm -f "conftest.$ac_objext"
17364 if { (eval echo "$as_me:17364: \"$ac_compile\"") >&5
17365 (eval $ac_compile) 2>&5
17367 echo "$as_me:17367: \$? = $ac_status" >&5
17368 (exit "$ac_status"); } &&
17369 { ac_try='test -s "conftest.$ac_objext"'
17370 { (eval echo "$as_me:17370: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17373 echo "$as_me:17373: \$? = $ac_status" >&5
17374 (exit "$ac_status"); }; }; then
17376 echo "$as_me:17376: checking for X11/Xt const-feature" >&5
17377 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17378 if test "${cf_cv_const_x_string+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 cat >"conftest.$ac_ext" <<_ACEOF
17383 #line 17383 "configure"
17384 #include "confdefs.h"
17386 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17387 #undef XTSTRINGDEFINES /* X11R5 and later */
17388 #include <stdlib.h>
17389 #include <X11/Intrinsic.h>
17394 String foo = malloc(1); *foo = 0
17399 rm -f "conftest.$ac_objext"
17400 if { (eval echo "$as_me:17400: \"$ac_compile\"") >&5
17401 (eval $ac_compile) 2>&5
17403 echo "$as_me:17403: \$? = $ac_status" >&5
17404 (exit "$ac_status"); } &&
17405 { ac_try='test -s "conftest.$ac_objext"'
17406 { (eval echo "$as_me:17406: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:17409: \$? = $ac_status" >&5
17410 (exit "$ac_status"); }; }; then
17412 cf_cv_const_x_string=no
17415 echo "$as_me: failed program was:" >&5
17416 cat "conftest.$ac_ext" >&5
17418 cf_cv_const_x_string=yes
17421 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17424 echo "$as_me:17424: result: $cf_cv_const_x_string" >&5
17425 echo "${ECHO_T}$cf_cv_const_x_string" >&6
17427 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17428 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17429 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17431 case "$cf_cv_const_x_string" in
17434 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17435 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17440 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17441 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17447 echo "$as_me: failed program was:" >&5
17448 cat "conftest.$ac_ext" >&5
17450 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17452 cat > "conftest.$ac_ext" <<EOF
17453 #line 17453 "${as_me:-configure}"
17454 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17456 if test "$INTEL_COMPILER" = yes
17458 # The "-wdXXX" options suppress warnings:
17459 # remark #1419: external declaration in primary source file
17460 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17461 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17462 # remark #193: zero used for undefined preprocessing identifier
17463 # remark #593: variable "curs_sb_left_arrow" was set but never used
17464 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17465 # remark #869: parameter "tw" was never referenced
17466 # remark #981: operands are evaluated in unspecified order
17467 # warning #279: controlling expression is constant
17469 { echo "$as_me:17469: checking for $CC warning options..." >&5
17470 echo "$as_me: checking for $CC warning options..." >&6;}
17471 cf_save_CFLAGS="$CFLAGS"
17472 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17484 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17485 if { (eval echo "$as_me:17485: \"$ac_compile\"") >&5
17486 (eval $ac_compile) 2>&5
17488 echo "$as_me:17488: \$? = $ac_status" >&5
17489 (exit "$ac_status"); }; then
17490 test -n "$verbose" && echo "$as_me:17490: result: ... -$cf_opt" >&5
17491 echo "${ECHO_T}... -$cf_opt" >&6
17492 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17495 CFLAGS="$cf_save_CFLAGS"
17496 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17498 { echo "$as_me:17498: checking for $CC warning options..." >&5
17499 echo "$as_me: checking for $CC warning options..." >&6;}
17500 cf_save_CFLAGS="$CFLAGS"
17502 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17503 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17504 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17505 for cf_opt in W Wall \
17506 Wbad-function-cast \
17509 Wdeclaration-after-statement \
17512 Wmissing-declarations \
17513 Wmissing-prototypes \
17517 Wstrict-prototypes \
17518 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17520 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17521 if { (eval echo "$as_me:17521: \"$ac_compile\"") >&5
17522 (eval $ac_compile) 2>&5
17524 echo "$as_me:17524: \$? = $ac_status" >&5
17525 (exit "$ac_status"); }; then
17526 test -n "$verbose" && echo "$as_me:17526: result: ... -$cf_opt" >&5
17527 echo "${ECHO_T}... -$cf_opt" >&6
17530 case "$GCC_VERSION" in
17532 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17534 echo "${as_me:-configure}:17534: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17540 case "$GCC_VERSION" in
17542 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17544 echo "${as_me:-configure}:17544: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17550 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17553 CFLAGS="$cf_save_CFLAGS"
17559 if test "$GCC" = yes || test "$GXX" = yes
17561 cat > conftest.i <<EOF
17563 #define GCC_PRINTF 0
17566 #define GCC_SCANF 0
17568 #ifndef GCC_NORETURN
17569 #define GCC_NORETURN /* nothing */
17572 #define GCC_UNUSED /* nothing */
17575 if test "$GCC" = yes
17577 { echo "$as_me:17577: checking for $CC __attribute__ directives..." >&5
17578 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17579 cat > "conftest.$ac_ext" <<EOF
17580 #line 17580 "${as_me:-configure}"
17582 #include "confdefs.h"
17583 #include "conftest.h"
17584 #include "conftest.i"
17586 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17588 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17591 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17593 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17595 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17596 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17597 extern GCC_NORETURN void foo(void);
17598 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17600 cf_printf_attribute=no
17601 cf_scanf_attribute=no
17602 for cf_attribute in scanf printf unused noreturn
17605 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17607 cf_directive="__attribute__(($cf_attribute))"
17608 echo "checking for $CC $cf_directive" 1>&5
17610 case "$cf_attribute" in
17612 cf_printf_attribute=yes
17613 cat >conftest.h <<EOF
17614 #define GCC_$cf_ATTRIBUTE 1
17618 cf_scanf_attribute=yes
17619 cat >conftest.h <<EOF
17620 #define GCC_$cf_ATTRIBUTE 1
17624 cat >conftest.h <<EOF
17625 #define GCC_$cf_ATTRIBUTE $cf_directive
17630 if { (eval echo "$as_me:17630: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>&5
17633 echo "$as_me:17633: \$? = $ac_status" >&5
17634 (exit "$ac_status"); }; then
17635 test -n "$verbose" && echo "$as_me:17635: result: ... $cf_attribute" >&5
17636 echo "${ECHO_T}... $cf_attribute" >&6
17637 cat conftest.h >>confdefs.h
17638 case "$cf_attribute" in
17641 cat >>confdefs.h <<EOF
17642 #define GCC_NORETURN $cf_directive
17647 cf_value='/* nothing */'
17648 if test "$cf_printf_attribute" != no ; then
17649 cf_value='__attribute__((format(printf,fmt,var)))'
17651 cat >>confdefs.h <<\EOF
17652 #define GCC_PRINTF 1
17657 cat >>confdefs.h <<EOF
17658 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17663 cf_value='/* nothing */'
17664 if test "$cf_scanf_attribute" != no ; then
17665 cf_value='__attribute__((format(scanf,fmt,var)))'
17667 cat >>confdefs.h <<\EOF
17668 #define GCC_SCANF 1
17673 cat >>confdefs.h <<EOF
17674 #define GCC_SCANFLIKE(fmt,var) $cf_value
17680 cat >>confdefs.h <<EOF
17681 #define GCC_UNUSED $cf_directive
17689 ${FGREP-fgrep} define conftest.i >>confdefs.h
17696 if test "x$enable_warnings" = "xyes"; then
17698 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
17700 if test "x$cf_with_cxx" = xyes ; then
17704 if test "$GCC" = yes ; then
17707 echo "$as_me:17707: checking if this is really Intel C++ compiler" >&5
17708 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17709 cf_save_CFLAGS="$CXXFLAGS"
17710 CXXFLAGS="$CXXFLAGS -no-gcc"
17711 cat >"conftest.$ac_ext" <<_ACEOF
17712 #line 17712 "configure"
17713 #include "confdefs.h"
17719 #ifdef __INTEL_COMPILER
17721 #error __INTEL_COMPILER is not defined
17728 rm -f "conftest.$ac_objext"
17729 if { (eval echo "$as_me:17729: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>&5
17732 echo "$as_me:17732: \$? = $ac_status" >&5
17733 (exit "$ac_status"); } &&
17734 { ac_try='test -s "conftest.$ac_objext"'
17735 { (eval echo "$as_me:17735: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:17738: \$? = $ac_status" >&5
17739 (exit "$ac_status"); }; }; then
17740 INTEL_CPLUSPLUS=yes
17741 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17744 echo "$as_me: failed program was:" >&5
17745 cat "conftest.$ac_ext" >&5
17747 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17748 CXXFLAGS="$cf_save_CFLAGS"
17749 echo "$as_me:17749: result: $INTEL_CPLUSPLUS" >&5
17750 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17757 if test "$GCC" = yes ; then
17758 echo "$as_me:17758: checking if this is really Clang C++ compiler" >&5
17759 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17760 cf_save_CFLAGS="$CXXFLAGS"
17761 cat >"conftest.$ac_ext" <<_ACEOF
17762 #line 17762 "configure"
17763 #include "confdefs.h"
17771 #error __clang__ is not defined
17778 rm -f "conftest.$ac_objext"
17779 if { (eval echo "$as_me:17779: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>&5
17782 echo "$as_me:17782: \$? = $ac_status" >&5
17783 (exit "$ac_status"); } &&
17784 { ac_try='test -s "conftest.$ac_objext"'
17785 { (eval echo "$as_me:17785: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 echo "$as_me:17788: \$? = $ac_status" >&5
17789 (exit "$ac_status"); }; }; then
17790 CLANG_CPLUSPLUS=yes
17793 echo "$as_me: failed program was:" >&5
17794 cat "conftest.$ac_ext" >&5
17796 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17797 CXXFLAGS="$cf_save_CFLAGS"
17798 echo "$as_me:17798: result: $CLANG_CPLUSPLUS" >&5
17799 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17804 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17806 (c[1-9][0-9]|*/c[1-9][0-9])
17807 { echo "$as_me:17807: WARNING: replacing broken compiler alias $CC" >&5
17808 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17809 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17814 echo "$as_me:17814: checking version of $CC" >&5
17815 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17816 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.].*//'`"
17817 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17818 echo "$as_me:17818: result: $CLANG_VERSION" >&5
17819 echo "${ECHO_T}$CLANG_VERSION" >&6
17821 for cf_clang_opt in \
17822 -Qunused-arguments \
17823 -Wno-error=implicit-function-declaration
17825 echo "$as_me:17825: checking if option $cf_clang_opt works" >&5
17826 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17827 cf_save_CFLAGS="$CFLAGS"
17828 CFLAGS="$CFLAGS $cf_clang_opt"
17829 cat >"conftest.$ac_ext" <<_ACEOF
17830 #line 17830 "configure"
17831 #include "confdefs.h"
17838 printf("hello!\\n");
17843 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17844 if { (eval echo "$as_me:17844: \"$ac_link\"") >&5
17845 (eval $ac_link) 2>&5
17847 echo "$as_me:17847: \$? = $ac_status" >&5
17848 (exit "$ac_status"); } &&
17849 { ac_try='test -s "conftest$ac_exeext"'
17850 { (eval echo "$as_me:17850: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17853 echo "$as_me:17853: \$? = $ac_status" >&5
17854 (exit "$ac_status"); }; }; then
17858 echo "$as_me: failed program was:" >&5
17859 cat "conftest.$ac_ext" >&5
17863 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17864 echo "$as_me:17864: result: $cf_clang_optok" >&5
17865 echo "${ECHO_T}$cf_clang_optok" >&6
17866 CFLAGS="$cf_save_CFLAGS"
17867 if test "$cf_clang_optok" = yes; then
17868 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17870 echo "${as_me:-configure}:17870: testing adding option $cf_clang_opt ..." 1>&5
17872 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17873 CFLAGS="${CFLAGS}$cf_clang_opt"
17880 ac_cpp='$CXXCPP $CPPFLAGS'
17881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17882 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17884 ac_main_return="return"
17886 cat > conftest.$ac_ext <<EOF
17887 #line 17887 "configure"
17888 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17891 if test "$INTEL_CPLUSPLUS" = yes
17893 # The "-wdXXX" options suppress warnings:
17894 # remark #1419: external declaration in primary source file
17895 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17896 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17897 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17898 # remark #193: zero used for undefined preprocessing identifier
17899 # remark #593: variable "curs_sb_left_arrow" was set but never used
17900 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17901 # remark #869: parameter "tw" was never referenced
17902 # remark #981: operands are evaluated in unspecified order
17903 # warning #269: invalid format string conversion
17905 { echo "$as_me:17905: checking for $CC warning options..." >&5
17906 echo "$as_me: checking for $CC warning options..." >&6;}
17907 cf_save_CXXFLAGS="$CXXFLAGS"
17908 EXTRA_CXXFLAGS="-Wall"
17921 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17922 if { (eval echo "$as_me:17922: \"$ac_compile\"") >&5
17923 (eval $ac_compile) 2>&5
17925 echo "$as_me:17925: \$? = $ac_status" >&5
17926 (exit "$ac_status"); }; then
17927 test -n "$verbose" && echo "$as_me:17927: result: ... -$cf_opt" >&5
17928 echo "${ECHO_T}... -$cf_opt" >&6
17929 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17932 CXXFLAGS="$cf_save_CXXFLAGS"
17934 elif test "$GXX" = yes
17936 { echo "$as_me:17936: checking for $CXX warning options..." >&5
17937 echo "$as_me: checking for $CXX warning options..." >&6;}
17938 cf_save_CXXFLAGS="$CXXFLAGS"
17939 EXTRA_CXXFLAGS="-W -Wall"
17940 cf_gxx_extra_warnings=""
17941 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17942 case "$GXX_VERSION" in
17946 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17953 Wignored-qualifiers \
17955 Woverloaded-virtual \
17963 Wundef $cf_gxx_extra_warnings Wno-unused
17965 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17966 if { (eval echo "$as_me:17966: \"$ac_compile\"") >&5
17967 (eval $ac_compile) 2>&5
17969 echo "$as_me:17969: \$? = $ac_status" >&5
17970 (exit "$ac_status"); }; then
17971 test -n "$verbose" && echo "$as_me:17971: result: ... -$cf_opt" >&5
17972 echo "${ECHO_T}... -$cf_opt" >&6
17973 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17975 test -n "$verbose" && echo "$as_me:17975: result: ... no -$cf_opt" >&5
17976 echo "${ECHO_T}... no -$cf_opt" >&6
17979 CXXFLAGS="$cf_save_CXXFLAGS"
17984 ac_cpp='$CPP $CPPFLAGS'
17985 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17986 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988 ac_main_return="return"
17993 echo "$as_me:17993: checking if you want to work around bogus compiler/loader warnings" >&5
17994 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17996 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17997 if test "${enable_string_hacks+set}" = set; then
17998 enableval="$enable_string_hacks"
17999 enable_string_hacks=$enableval
18001 enable_string_hacks=no
18003 echo "$as_me:18003: result: $enable_string_hacks" >&5
18004 echo "${ECHO_T}$enable_string_hacks" >&6
18006 if test "x$enable_string_hacks" = "xyes"; then
18008 cat >>confdefs.h <<\EOF
18009 #define USE_STRING_HACKS 1
18012 { echo "$as_me:18012: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
18013 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
18014 echo "$as_me:18014: checking for strlcat" >&5
18015 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
18016 if test "${ac_cv_func_strlcat+set}" = set; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 cat >"conftest.$ac_ext" <<_ACEOF
18020 #line 18020 "configure"
18021 #include "confdefs.h"
18022 #define strlcat autoconf_temporary
18023 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18030 /* We use char because int might match the return type of a gcc2
18031 builtin and then its argument prototype would still apply. */
18032 char strlcat (void);
18038 /* The GNU C library defines stubs for functions which it implements
18039 to always fail with ENOSYS. Some functions are actually named
18040 something starting with __ and the normal name is an alias. */
18041 #if defined (__stub_strlcat) || defined (__stub___strlcat)
18042 #error found stub for strlcat
18050 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18051 if { (eval echo "$as_me:18051: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>&5
18054 echo "$as_me:18054: \$? = $ac_status" >&5
18055 (exit "$ac_status"); } &&
18056 { ac_try='test -s "conftest$ac_exeext"'
18057 { (eval echo "$as_me:18057: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 echo "$as_me:18060: \$? = $ac_status" >&5
18061 (exit "$ac_status"); }; }; then
18062 ac_cv_func_strlcat=yes
18064 echo "$as_me: failed program was:" >&5
18065 cat "conftest.$ac_ext" >&5
18066 ac_cv_func_strlcat=no
18068 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18070 echo "$as_me:18070: result: $ac_cv_func_strlcat" >&5
18071 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
18072 if test "$ac_cv_func_strlcat" = yes; then
18074 cat >>confdefs.h <<\EOF
18075 #define HAVE_STRLCAT 1
18080 echo "$as_me:18080: checking for strlcat in -lbsd" >&5
18081 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
18082 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 ac_check_lib_save_LIBS=$LIBS
18087 cat >"conftest.$ac_ext" <<_ACEOF
18088 #line 18088 "configure"
18089 #include "confdefs.h"
18091 /* Override any gcc2 internal prototype to avoid an error. */
18095 /* We use char because int might match the return type of a gcc2
18096 builtin and then its argument prototype would still apply. */
18106 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18107 if { (eval echo "$as_me:18107: \"$ac_link\"") >&5
18108 (eval $ac_link) 2>&5
18110 echo "$as_me:18110: \$? = $ac_status" >&5
18111 (exit "$ac_status"); } &&
18112 { ac_try='test -s "conftest$ac_exeext"'
18113 { (eval echo "$as_me:18113: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:18116: \$? = $ac_status" >&5
18117 (exit "$ac_status"); }; }; then
18118 ac_cv_lib_bsd_strlcat=yes
18120 echo "$as_me: failed program was:" >&5
18121 cat "conftest.$ac_ext" >&5
18122 ac_cv_lib_bsd_strlcat=no
18124 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18125 LIBS=$ac_check_lib_save_LIBS
18127 echo "$as_me:18127: result: $ac_cv_lib_bsd_strlcat" >&5
18128 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
18129 if test "$ac_cv_lib_bsd_strlcat" = yes; then
18131 cf_add_libs="$LIBS"
18134 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18135 # filter duplicates
18136 for cf_add_1lib in $cf_add_0lib; do
18137 for cf_add_2lib in $cf_add_libs; do
18138 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18143 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18145 LIBS="$cf_add_libs"
18147 for ac_header in bsd/string.h
18149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18150 echo "$as_me:18150: checking for $ac_header" >&5
18151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 cat >"conftest.$ac_ext" <<_ACEOF
18156 #line 18156 "configure"
18157 #include "confdefs.h"
18158 #include <$ac_header>
18160 if { (eval echo "$as_me:18160: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18161 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18163 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18165 cat conftest.err >&5
18166 echo "$as_me:18166: \$? = $ac_status" >&5
18167 (exit "$ac_status"); } >/dev/null; then
18168 if test -s conftest.err; then
18169 ac_cpp_err=$ac_c_preproc_warn_flag
18176 if test -z "$ac_cpp_err"; then
18177 eval "$as_ac_Header=yes"
18179 echo "$as_me: failed program was:" >&5
18180 cat "conftest.$ac_ext" >&5
18181 eval "$as_ac_Header=no"
18183 rm -f conftest.err "conftest.$ac_ext"
18185 echo "$as_me:18185: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18186 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18187 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18188 cat >>confdefs.h <<EOF
18189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18195 cat >>confdefs.h <<\EOF
18196 #define HAVE_STRLCAT 1
18203 for ac_func in strlcpy snprintf
18205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18206 echo "$as_me:18206: checking for $ac_func" >&5
18207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18208 if eval "test \"\${$as_ac_var+set}\" = set"; then
18209 echo $ECHO_N "(cached) $ECHO_C" >&6
18211 cat >"conftest.$ac_ext" <<_ACEOF
18212 #line 18212 "configure"
18213 #include "confdefs.h"
18214 #define $ac_func autoconf_temporary
18215 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18222 /* We use char because int might match the return type of a gcc2
18223 builtin and then its argument prototype would still apply. */
18224 char $ac_func (void);
18230 /* The GNU C library defines stubs for functions which it implements
18231 to always fail with ENOSYS. Some functions are actually named
18232 something starting with __ and the normal name is an alias. */
18233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18234 #error found stub for $ac_func
18237 return $ac_func ();
18242 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18243 if { (eval echo "$as_me:18243: \"$ac_link\"") >&5
18244 (eval $ac_link) 2>&5
18246 echo "$as_me:18246: \$? = $ac_status" >&5
18247 (exit "$ac_status"); } &&
18248 { ac_try='test -s "conftest$ac_exeext"'
18249 { (eval echo "$as_me:18249: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18252 echo "$as_me:18252: \$? = $ac_status" >&5
18253 (exit "$ac_status"); }; }; then
18254 eval "$as_ac_var=yes"
18256 echo "$as_me: failed program was:" >&5
18257 cat "conftest.$ac_ext" >&5
18258 eval "$as_ac_var=no"
18260 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18262 echo "$as_me:18262: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18264 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18265 cat >>confdefs.h <<EOF
18266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18274 ### use option --enable-assertions to turn on generation of assertion code
18275 echo "$as_me:18275: checking if you want to enable runtime assertions" >&5
18276 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
18278 # Check whether --enable-assertions or --disable-assertions was given.
18279 if test "${enable_assertions+set}" = set; then
18280 enableval="$enable_assertions"
18281 with_assertions=$enableval
18285 echo "$as_me:18285: result: $with_assertions" >&5
18286 echo "${ECHO_T}$with_assertions" >&6
18289 if test "$with_assertions" = no
18291 CPPFLAGS="$CPPFLAGS -DNDEBUG"
18294 ADAFLAGS="$ADAFLAGS -gnata"
18299 ### use option --disable-leaks to suppress "permanent" leaks, for testing
18301 echo "$as_me:18301: checking if you want to use dmalloc for testing" >&5
18302 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18304 # Check whether --with-dmalloc or --without-dmalloc was given.
18305 if test "${with_dmalloc+set}" = set; then
18306 withval="$with_dmalloc"
18307 case "x$withval" in
18310 : "${with_cflags:=-g}"
18311 : "${enable_leaks:=no}"
18314 cat >>confdefs.h <<EOF
18315 #define USE_DMALLOC 1
18323 echo "$as_me:18323: result: ${with_dmalloc:-no}" >&5
18324 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18326 case ".$with_cflags" in
18336 cf_new_extra_cppflags=
18338 for cf_add_cflags in -g
18340 case "$cf_fix_cppflags" in
18342 case "$cf_add_cflags" in
18343 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18344 case "$cf_add_cflags" in
18346 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18348 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18349 && test -z "${cf_tst_cflags}" \
18350 && cf_fix_cppflags=yes
18352 if test "$cf_fix_cppflags" = yes ; then
18354 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18355 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18358 elif test "${cf_tst_cflags}" = "\"'" ; then
18360 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18361 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18367 case "$CPPFLAGS" in
18371 case "$cf_add_cflags" in
18373 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18375 CPPFLAGS=`echo "$CPPFLAGS" | \
18376 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18377 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18382 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18383 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18390 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18391 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18398 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18399 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18401 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18403 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18404 && test -z "${cf_tst_cflags}" \
18405 && cf_fix_cppflags=no
18410 if test -n "$cf_new_cflags" ; then
18412 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18413 CFLAGS="${CFLAGS}$cf_new_cflags"
18417 if test -n "$cf_new_cppflags" ; then
18419 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18420 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18424 if test -n "$cf_new_extra_cppflags" ; then
18426 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18427 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18436 if test "$with_dmalloc" = yes ; then
18437 echo "$as_me:18437: checking for dmalloc.h" >&5
18438 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18439 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 cat >"conftest.$ac_ext" <<_ACEOF
18443 #line 18443 "configure"
18444 #include "confdefs.h"
18445 #include <dmalloc.h>
18447 if { (eval echo "$as_me:18447: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18448 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18450 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18452 cat conftest.err >&5
18453 echo "$as_me:18453: \$? = $ac_status" >&5
18454 (exit "$ac_status"); } >/dev/null; then
18455 if test -s conftest.err; then
18456 ac_cpp_err=$ac_c_preproc_warn_flag
18463 if test -z "$ac_cpp_err"; then
18464 ac_cv_header_dmalloc_h=yes
18466 echo "$as_me: failed program was:" >&5
18467 cat "conftest.$ac_ext" >&5
18468 ac_cv_header_dmalloc_h=no
18470 rm -f conftest.err "conftest.$ac_ext"
18472 echo "$as_me:18472: result: $ac_cv_header_dmalloc_h" >&5
18473 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18474 if test "$ac_cv_header_dmalloc_h" = yes; then
18476 echo "$as_me:18476: checking for dmalloc_debug in -ldmalloc" >&5
18477 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18478 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ac_check_lib_save_LIBS=$LIBS
18482 LIBS="-ldmalloc $LIBS"
18483 cat >"conftest.$ac_ext" <<_ACEOF
18484 #line 18484 "configure"
18485 #include "confdefs.h"
18487 /* Override any gcc2 internal prototype to avoid an error. */
18491 /* We use char because int might match the return type of a gcc2
18492 builtin and then its argument prototype would still apply. */
18493 char dmalloc_debug ();
18502 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18503 if { (eval echo "$as_me:18503: \"$ac_link\"") >&5
18504 (eval $ac_link) 2>&5
18506 echo "$as_me:18506: \$? = $ac_status" >&5
18507 (exit "$ac_status"); } &&
18508 { ac_try='test -s "conftest$ac_exeext"'
18509 { (eval echo "$as_me:18509: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18512 echo "$as_me:18512: \$? = $ac_status" >&5
18513 (exit "$ac_status"); }; }; then
18514 ac_cv_lib_dmalloc_dmalloc_debug=yes
18516 echo "$as_me: failed program was:" >&5
18517 cat "conftest.$ac_ext" >&5
18518 ac_cv_lib_dmalloc_dmalloc_debug=no
18520 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18521 LIBS=$ac_check_lib_save_LIBS
18523 echo "$as_me:18523: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18524 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18525 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18526 cat >>confdefs.h <<EOF
18527 #define HAVE_LIBDMALLOC 1
18530 LIBS="-ldmalloc $LIBS"
18538 echo "$as_me:18538: checking if you want to use dbmalloc for testing" >&5
18539 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18541 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18542 if test "${with_dbmalloc+set}" = set; then
18543 withval="$with_dbmalloc"
18544 case "x$withval" in
18547 : "${with_cflags:=-g}"
18548 : "${enable_leaks:=no}"
18551 cat >>confdefs.h <<EOF
18552 #define USE_DBMALLOC 1
18560 echo "$as_me:18560: result: ${with_dbmalloc:-no}" >&5
18561 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18563 case ".$with_cflags" in
18573 cf_new_extra_cppflags=
18575 for cf_add_cflags in -g
18577 case "$cf_fix_cppflags" in
18579 case "$cf_add_cflags" in
18580 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18581 case "$cf_add_cflags" in
18583 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18585 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18586 && test -z "${cf_tst_cflags}" \
18587 && cf_fix_cppflags=yes
18589 if test "$cf_fix_cppflags" = yes ; then
18591 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18592 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18595 elif test "${cf_tst_cflags}" = "\"'" ; then
18597 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18598 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18604 case "$CPPFLAGS" in
18608 case "$cf_add_cflags" in
18610 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18612 CPPFLAGS=`echo "$CPPFLAGS" | \
18613 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18614 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18619 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18620 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18627 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18628 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18635 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18636 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18638 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18640 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18641 && test -z "${cf_tst_cflags}" \
18642 && cf_fix_cppflags=no
18647 if test -n "$cf_new_cflags" ; then
18649 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18650 CFLAGS="${CFLAGS}$cf_new_cflags"
18654 if test -n "$cf_new_cppflags" ; then
18656 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18657 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18661 if test -n "$cf_new_extra_cppflags" ; then
18663 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18664 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18673 if test "$with_dbmalloc" = yes ; then
18674 echo "$as_me:18674: checking for dbmalloc.h" >&5
18675 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18676 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 cat >"conftest.$ac_ext" <<_ACEOF
18680 #line 18680 "configure"
18681 #include "confdefs.h"
18682 #include <dbmalloc.h>
18684 if { (eval echo "$as_me:18684: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18685 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18687 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18689 cat conftest.err >&5
18690 echo "$as_me:18690: \$? = $ac_status" >&5
18691 (exit "$ac_status"); } >/dev/null; then
18692 if test -s conftest.err; then
18693 ac_cpp_err=$ac_c_preproc_warn_flag
18700 if test -z "$ac_cpp_err"; then
18701 ac_cv_header_dbmalloc_h=yes
18703 echo "$as_me: failed program was:" >&5
18704 cat "conftest.$ac_ext" >&5
18705 ac_cv_header_dbmalloc_h=no
18707 rm -f conftest.err "conftest.$ac_ext"
18709 echo "$as_me:18709: result: $ac_cv_header_dbmalloc_h" >&5
18710 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18711 if test "$ac_cv_header_dbmalloc_h" = yes; then
18713 echo "$as_me:18713: checking for debug_malloc in -ldbmalloc" >&5
18714 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18715 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 ac_check_lib_save_LIBS=$LIBS
18719 LIBS="-ldbmalloc $LIBS"
18720 cat >"conftest.$ac_ext" <<_ACEOF
18721 #line 18721 "configure"
18722 #include "confdefs.h"
18724 /* Override any gcc2 internal prototype to avoid an error. */
18728 /* We use char because int might match the return type of a gcc2
18729 builtin and then its argument prototype would still apply. */
18730 char debug_malloc ();
18739 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18740 if { (eval echo "$as_me:18740: \"$ac_link\"") >&5
18741 (eval $ac_link) 2>&5
18743 echo "$as_me:18743: \$? = $ac_status" >&5
18744 (exit "$ac_status"); } &&
18745 { ac_try='test -s "conftest$ac_exeext"'
18746 { (eval echo "$as_me:18746: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18749 echo "$as_me:18749: \$? = $ac_status" >&5
18750 (exit "$ac_status"); }; }; then
18751 ac_cv_lib_dbmalloc_debug_malloc=yes
18753 echo "$as_me: failed program was:" >&5
18754 cat "conftest.$ac_ext" >&5
18755 ac_cv_lib_dbmalloc_debug_malloc=no
18757 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18758 LIBS=$ac_check_lib_save_LIBS
18760 echo "$as_me:18760: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18761 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18762 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18763 cat >>confdefs.h <<EOF
18764 #define HAVE_LIBDBMALLOC 1
18767 LIBS="-ldbmalloc $LIBS"
18775 echo "$as_me:18775: checking if you want to use valgrind for testing" >&5
18776 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18778 # Check whether --with-valgrind or --without-valgrind was given.
18779 if test "${with_valgrind+set}" = set; then
18780 withval="$with_valgrind"
18781 case "x$withval" in
18784 : "${with_cflags:=-g}"
18785 : "${enable_leaks:=no}"
18788 cat >>confdefs.h <<EOF
18789 #define USE_VALGRIND 1
18797 echo "$as_me:18797: result: ${with_valgrind:-no}" >&5
18798 echo "${ECHO_T}${with_valgrind:-no}" >&6
18800 case ".$with_cflags" in
18810 cf_new_extra_cppflags=
18812 for cf_add_cflags in -g
18814 case "$cf_fix_cppflags" in
18816 case "$cf_add_cflags" in
18817 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18818 case "$cf_add_cflags" in
18820 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18822 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18823 && test -z "${cf_tst_cflags}" \
18824 && cf_fix_cppflags=yes
18826 if test "$cf_fix_cppflags" = yes ; then
18828 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18829 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18832 elif test "${cf_tst_cflags}" = "\"'" ; then
18834 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18835 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18841 case "$CPPFLAGS" in
18845 case "$cf_add_cflags" in
18847 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18849 CPPFLAGS=`echo "$CPPFLAGS" | \
18850 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18851 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18856 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18857 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18864 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18865 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18872 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18873 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18875 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18877 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18878 && test -z "${cf_tst_cflags}" \
18879 && cf_fix_cppflags=no
18884 if test -n "$cf_new_cflags" ; then
18886 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18887 CFLAGS="${CFLAGS}$cf_new_cflags"
18891 if test -n "$cf_new_cppflags" ; then
18893 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18894 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18898 if test -n "$cf_new_extra_cppflags" ; then
18900 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18901 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18910 echo "$as_me:18910: checking if you want to perform memory-leak testing" >&5
18911 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18913 # Check whether --enable-leaks or --disable-leaks was given.
18914 if test "${enable_leaks+set}" = set; then
18915 enableval="$enable_leaks"
18916 enable_leaks=$enableval
18920 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18921 echo "$as_me:18921: result: $with_no_leaks" >&5
18922 echo "${ECHO_T}$with_no_leaks" >&6
18924 if test "$enable_leaks" = no ; then
18926 cat >>confdefs.h <<\EOF
18930 cat >>confdefs.h <<\EOF
18931 #define YY_NO_LEAKS 1
18936 cat >>confdefs.h <<\EOF
18937 #define HAVE_NC_ALLOC_H 1
18940 ### use option --enable-expanded to generate certain macros as functions
18942 # Check whether --enable-expanded or --disable-expanded was given.
18943 if test "${enable_expanded+set}" = set; then
18944 enableval="$enable_expanded"
18945 test "x$enableval" = xyes &&
18946 cat >>confdefs.h <<\EOF
18947 #define NCURSES_EXPANDED 1
18952 ### use option --disable-macros to suppress macros in favor of functions
18954 # Check whether --enable-macros or --disable-macros was given.
18955 if test "${enable_macros+set}" = set; then
18956 enableval="$enable_macros"
18957 test "$enableval" = no &&
18958 cat >>confdefs.h <<\EOF
18959 #define NCURSES_NOMACROS 1
18964 # Normally we only add trace() to the debug-library. Allow this to be
18965 # extended to all models of the ncurses library:
18967 case "$CFLAGS $CPPFLAGS" in
18973 echo "$as_me:18973: checking whether to add trace feature to all models" >&5
18974 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18976 # Check whether --with-trace or --without-trace was given.
18977 if test "${with_trace+set}" = set; then
18978 withval="$with_trace"
18979 cf_with_trace=$withval
18981 cf_with_trace=$cf_all_traces
18983 echo "$as_me:18983: result: $cf_with_trace" >&5
18984 echo "${ECHO_T}$cf_with_trace" >&6
18986 if test "x$cf_with_trace" = xyes ; then
18993 cf_new_extra_cppflags=
18995 for cf_add_cflags in -DTRACE
18997 case "$cf_fix_cppflags" in
18999 case "$cf_add_cflags" in
19000 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19001 case "$cf_add_cflags" in
19003 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19005 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19006 && test -z "${cf_tst_cflags}" \
19007 && cf_fix_cppflags=yes
19009 if test "$cf_fix_cppflags" = yes ; then
19011 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19012 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19015 elif test "${cf_tst_cflags}" = "\"'" ; then
19017 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19018 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19024 case "$CPPFLAGS" in
19028 case "$cf_add_cflags" in
19030 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19032 CPPFLAGS=`echo "$CPPFLAGS" | \
19033 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19034 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19039 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19040 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19047 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19048 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19055 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19056 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19058 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19060 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19061 && test -z "${cf_tst_cflags}" \
19062 && cf_fix_cppflags=no
19067 if test -n "$cf_new_cflags" ; then
19069 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19070 CFLAGS="${CFLAGS}$cf_new_cflags"
19074 if test -n "$cf_new_cppflags" ; then
19076 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19077 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19081 if test -n "$cf_new_extra_cppflags" ; then
19083 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19084 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19088 cat >>confdefs.h <<\EOF
19089 #define HAVE__TRACEF 1
19097 echo "$as_me:19097: checking if we want to use GNAT projects" >&5
19098 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
19100 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
19101 if test "${enable_gnat_projects+set}" = set; then
19102 enableval="$enable_gnat_projects"
19103 test "$enableval" != no && enableval=yes
19104 if test "$enableval" != "yes" ; then
19105 enable_gnat_projects=no
19107 enable_gnat_projects=yes
19111 enable_gnat_projects=yes
19114 echo "$as_me:19114: result: $enable_gnat_projects" >&5
19115 echo "${ECHO_T}$enable_gnat_projects" >&6
19117 ### Checks for libraries.
19118 case "$cf_cv_system_name" in
19119 (*mingw32*|*mingw64*)
19120 # Note: WINVER may be a problem with Windows 10
19121 if test "x$with_exp_win32" = xyes ; then
19122 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
19124 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
19127 echo "$as_me:19127: checking if ssp library is needed" >&5
19128 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
19129 if test "${cf_cv_need_libssp+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 cat >"conftest.$ac_ext" <<_ACEOF
19134 #line 19134 "configure"
19135 #include "confdefs.h"
19137 #include <sys/types.h>
19138 #include <dirent.h>
19144 DIR *dp = opendir(".");
19150 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19151 if { (eval echo "$as_me:19151: \"$ac_link\"") >&5
19152 (eval $ac_link) 2>&5
19154 echo "$as_me:19154: \$? = $ac_status" >&5
19155 (exit "$ac_status"); } &&
19156 { ac_try='test -s "conftest$ac_exeext"'
19157 { (eval echo "$as_me:19157: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19160 echo "$as_me:19160: \$? = $ac_status" >&5
19161 (exit "$ac_status"); }; }; then
19162 cf_cv_need_libssp=no
19164 echo "$as_me: failed program was:" >&5
19165 cat "conftest.$ac_ext" >&5
19167 cf_save_LIBS="$LIBS"
19169 cat >"conftest.$ac_ext" <<_ACEOF
19170 #line 19170 "configure"
19171 #include "confdefs.h"
19173 #include <sys/types.h>
19174 #include <dirent.h>
19180 DIR *dp = opendir(".");
19186 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19187 if { (eval echo "$as_me:19187: \"$ac_link\"") >&5
19188 (eval $ac_link) 2>&5
19190 echo "$as_me:19190: \$? = $ac_status" >&5
19191 (exit "$ac_status"); } &&
19192 { ac_try='test -s "conftest$ac_exeext"'
19193 { (eval echo "$as_me:19193: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19196 echo "$as_me:19196: \$? = $ac_status" >&5
19197 (exit "$ac_status"); }; }; then
19198 cf_cv_need_libssp=yes
19200 echo "$as_me: failed program was:" >&5
19201 cat "conftest.$ac_ext" >&5
19202 cf_cv_need_libssp=maybe
19204 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19205 LIBS="$cf_save_LIBS"
19208 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19210 echo "$as_me:19210: result: $cf_cv_need_libssp" >&5
19211 echo "${ECHO_T}$cf_cv_need_libssp" >&6
19213 if test "x$cf_cv_need_libssp" = xyes
19216 cf_add_libs="$LIBS"
19219 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19220 # filter duplicates
19221 for cf_add_1lib in $cf_add_0lib; do
19222 for cf_add_2lib in $cf_add_libs; do
19223 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19228 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19230 LIBS="$cf_add_libs"
19239 echo "$as_me:19239: checking if -lm needed for math functions" >&5
19240 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19241 if test "${cf_cv_need_libm+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 cat >"conftest.$ac_ext" <<_ACEOF
19246 #line 19246 "configure"
19247 #include "confdefs.h"
19250 #include <stdlib.h>
19256 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19261 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19262 if { (eval echo "$as_me:19262: \"$ac_link\"") >&5
19263 (eval $ac_link) 2>&5
19265 echo "$as_me:19265: \$? = $ac_status" >&5
19266 (exit "$ac_status"); } &&
19267 { ac_try='test -s "conftest$ac_exeext"'
19268 { (eval echo "$as_me:19268: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:19271: \$? = $ac_status" >&5
19272 (exit "$ac_status"); }; }; then
19275 echo "$as_me: failed program was:" >&5
19276 cat "conftest.$ac_ext" >&5
19277 cf_cv_need_libm=yes
19279 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19281 echo "$as_me:19281: result: $cf_cv_need_libm" >&5
19282 echo "${ECHO_T}$cf_cv_need_libm" >&6
19284 if test "$cf_cv_need_libm" = yes
19287 cf_save_LIBS="$LIBS"
19289 echo "$as_me:19289: checking if -lm is available for math functions" >&5
19290 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
19291 if test "${cf_cv_have_libm+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 cat >"conftest.$ac_ext" <<_ACEOF
19296 #line 19296 "configure"
19297 #include "confdefs.h"
19300 #include <stdlib.h>
19306 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19311 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19312 if { (eval echo "$as_me:19312: \"$ac_link\"") >&5
19313 (eval $ac_link) 2>&5
19315 echo "$as_me:19315: \$? = $ac_status" >&5
19316 (exit "$ac_status"); } &&
19317 { ac_try='test -s "conftest$ac_exeext"'
19318 { (eval echo "$as_me:19318: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:19321: \$? = $ac_status" >&5
19322 (exit "$ac_status"); }; }; then
19323 cf_cv_have_libm=yes
19325 echo "$as_me: failed program was:" >&5
19326 cat "conftest.$ac_ext" >&5
19329 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19331 echo "$as_me:19331: result: $cf_cv_have_libm" >&5
19332 echo "${ECHO_T}$cf_cv_have_libm" >&6
19333 LIBS="$cf_save_LIBS"
19335 if test "$cf_cv_have_libm" = yes
19340 cf_cv_have_libm=yes
19343 if test "$cf_cv_have_libm" = yes
19346 cat >>confdefs.h <<\EOF
19347 #define HAVE_MATH_FUNCS 1
19352 ### Checks for header files.
19353 echo "$as_me:19353: checking whether time.h and sys/time.h may both be included" >&5
19354 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19355 if test "${ac_cv_header_time+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 cat >"conftest.$ac_ext" <<_ACEOF
19359 #line 19359 "configure"
19360 #include "confdefs.h"
19361 #include <sys/types.h>
19362 #include <sys/time.h>
19368 if ((struct tm *) 0)
19374 rm -f "conftest.$ac_objext"
19375 if { (eval echo "$as_me:19375: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>&5
19378 echo "$as_me:19378: \$? = $ac_status" >&5
19379 (exit "$ac_status"); } &&
19380 { ac_try='test -s "conftest.$ac_objext"'
19381 { (eval echo "$as_me:19381: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:19384: \$? = $ac_status" >&5
19385 (exit "$ac_status"); }; }; then
19386 ac_cv_header_time=yes
19388 echo "$as_me: failed program was:" >&5
19389 cat "conftest.$ac_ext" >&5
19390 ac_cv_header_time=no
19392 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19394 echo "$as_me:19394: result: $ac_cv_header_time" >&5
19395 echo "${ECHO_T}$ac_cv_header_time" >&6
19396 if test $ac_cv_header_time = yes; then
19398 cat >>confdefs.h <<\EOF
19399 #define TIME_WITH_SYS_TIME 1
19408 # -lsystre -ltre -lintl -liconv
19409 echo "$as_me:19409: checking for regcomp in -lsystre" >&5
19410 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19411 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 ac_check_lib_save_LIBS=$LIBS
19415 LIBS="-lsystre $LIBS"
19416 cat >"conftest.$ac_ext" <<_ACEOF
19417 #line 19417 "configure"
19418 #include "confdefs.h"
19420 /* Override any gcc2 internal prototype to avoid an error. */
19424 /* We use char because int might match the return type of a gcc2
19425 builtin and then its argument prototype would still apply. */
19435 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19436 if { (eval echo "$as_me:19436: \"$ac_link\"") >&5
19437 (eval $ac_link) 2>&5
19439 echo "$as_me:19439: \$? = $ac_status" >&5
19440 (exit "$ac_status"); } &&
19441 { ac_try='test -s "conftest$ac_exeext"'
19442 { (eval echo "$as_me:19442: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:19445: \$? = $ac_status" >&5
19446 (exit "$ac_status"); }; }; then
19447 ac_cv_lib_systre_regcomp=yes
19449 echo "$as_me: failed program was:" >&5
19450 cat "conftest.$ac_ext" >&5
19451 ac_cv_lib_systre_regcomp=no
19453 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19454 LIBS=$ac_check_lib_save_LIBS
19456 echo "$as_me:19456: result: $ac_cv_lib_systre_regcomp" >&5
19457 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19458 if test "$ac_cv_lib_systre_regcomp" = yes; then
19460 echo "$as_me:19460: checking for libiconv_open in -liconv" >&5
19461 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19462 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 ac_check_lib_save_LIBS=$LIBS
19466 LIBS="-liconv $LIBS"
19467 cat >"conftest.$ac_ext" <<_ACEOF
19468 #line 19468 "configure"
19469 #include "confdefs.h"
19471 /* Override any gcc2 internal prototype to avoid an error. */
19475 /* We use char because int might match the return type of a gcc2
19476 builtin and then its argument prototype would still apply. */
19477 char libiconv_open ();
19486 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19487 if { (eval echo "$as_me:19487: \"$ac_link\"") >&5
19488 (eval $ac_link) 2>&5
19490 echo "$as_me:19490: \$? = $ac_status" >&5
19491 (exit "$ac_status"); } &&
19492 { ac_try='test -s "conftest$ac_exeext"'
19493 { (eval echo "$as_me:19493: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:19496: \$? = $ac_status" >&5
19497 (exit "$ac_status"); }; }; then
19498 ac_cv_lib_iconv_libiconv_open=yes
19500 echo "$as_me: failed program was:" >&5
19501 cat "conftest.$ac_ext" >&5
19502 ac_cv_lib_iconv_libiconv_open=no
19504 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19505 LIBS=$ac_check_lib_save_LIBS
19507 echo "$as_me:19507: result: $ac_cv_lib_iconv_libiconv_open" >&5
19508 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19509 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19511 cf_add_libs="$LIBS"
19514 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19515 # filter duplicates
19516 for cf_add_1lib in $cf_add_0lib; do
19517 for cf_add_2lib in $cf_add_libs; do
19518 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19523 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19525 LIBS="$cf_add_libs"
19529 echo "$as_me:19529: checking for libintl_gettext in -lintl" >&5
19530 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19531 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 ac_check_lib_save_LIBS=$LIBS
19535 LIBS="-lintl $LIBS"
19536 cat >"conftest.$ac_ext" <<_ACEOF
19537 #line 19537 "configure"
19538 #include "confdefs.h"
19540 /* Override any gcc2 internal prototype to avoid an error. */
19544 /* We use char because int might match the return type of a gcc2
19545 builtin and then its argument prototype would still apply. */
19546 char libintl_gettext ();
19550 libintl_gettext ();
19555 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19556 if { (eval echo "$as_me:19556: \"$ac_link\"") >&5
19557 (eval $ac_link) 2>&5
19559 echo "$as_me:19559: \$? = $ac_status" >&5
19560 (exit "$ac_status"); } &&
19561 { ac_try='test -s "conftest$ac_exeext"'
19562 { (eval echo "$as_me:19562: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19565 echo "$as_me:19565: \$? = $ac_status" >&5
19566 (exit "$ac_status"); }; }; then
19567 ac_cv_lib_intl_libintl_gettext=yes
19569 echo "$as_me: failed program was:" >&5
19570 cat "conftest.$ac_ext" >&5
19571 ac_cv_lib_intl_libintl_gettext=no
19573 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19574 LIBS=$ac_check_lib_save_LIBS
19576 echo "$as_me:19576: result: $ac_cv_lib_intl_libintl_gettext" >&5
19577 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19578 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19580 cf_add_libs="$LIBS"
19583 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19584 # filter duplicates
19585 for cf_add_1lib in $cf_add_0lib; do
19586 for cf_add_2lib in $cf_add_libs; do
19587 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19592 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19594 LIBS="$cf_add_libs"
19598 echo "$as_me:19598: checking for tre_regcomp in -ltre" >&5
19599 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19600 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 ac_check_lib_save_LIBS=$LIBS
19605 cat >"conftest.$ac_ext" <<_ACEOF
19606 #line 19606 "configure"
19607 #include "confdefs.h"
19609 /* Override any gcc2 internal prototype to avoid an error. */
19613 /* We use char because int might match the return type of a gcc2
19614 builtin and then its argument prototype would still apply. */
19615 char tre_regcomp ();
19624 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19625 if { (eval echo "$as_me:19625: \"$ac_link\"") >&5
19626 (eval $ac_link) 2>&5
19628 echo "$as_me:19628: \$? = $ac_status" >&5
19629 (exit "$ac_status"); } &&
19630 { ac_try='test -s "conftest$ac_exeext"'
19631 { (eval echo "$as_me:19631: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:19634: \$? = $ac_status" >&5
19635 (exit "$ac_status"); }; }; then
19636 ac_cv_lib_tre_tre_regcomp=yes
19638 echo "$as_me: failed program was:" >&5
19639 cat "conftest.$ac_ext" >&5
19640 ac_cv_lib_tre_tre_regcomp=no
19642 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19643 LIBS=$ac_check_lib_save_LIBS
19645 echo "$as_me:19645: result: $ac_cv_lib_tre_tre_regcomp" >&5
19646 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19647 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19649 cf_add_libs="$LIBS"
19652 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19653 # filter duplicates
19654 for cf_add_1lib in $cf_add_0lib; do
19655 for cf_add_2lib in $cf_add_libs; do
19656 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19661 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19663 LIBS="$cf_add_libs"
19667 cf_add_libs="$LIBS"
19670 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19671 # filter duplicates
19672 for cf_add_1lib in $cf_add_0lib; do
19673 for cf_add_2lib in $cf_add_libs; do
19674 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19679 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19681 LIBS="$cf_add_libs"
19683 cf_regex_func=regcomp
19687 echo "$as_me:19687: checking for regcomp in -lgnurx" >&5
19688 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19689 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 ac_check_lib_save_LIBS=$LIBS
19693 LIBS="-lgnurx $LIBS"
19694 cat >"conftest.$ac_ext" <<_ACEOF
19695 #line 19695 "configure"
19696 #include "confdefs.h"
19698 /* Override any gcc2 internal prototype to avoid an error. */
19702 /* We use char because int might match the return type of a gcc2
19703 builtin and then its argument prototype would still apply. */
19713 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19714 if { (eval echo "$as_me:19714: \"$ac_link\"") >&5
19715 (eval $ac_link) 2>&5
19717 echo "$as_me:19717: \$? = $ac_status" >&5
19718 (exit "$ac_status"); } &&
19719 { ac_try='test -s "conftest$ac_exeext"'
19720 { (eval echo "$as_me:19720: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:19723: \$? = $ac_status" >&5
19724 (exit "$ac_status"); }; }; then
19725 ac_cv_lib_gnurx_regcomp=yes
19727 echo "$as_me: failed program was:" >&5
19728 cat "conftest.$ac_ext" >&5
19729 ac_cv_lib_gnurx_regcomp=no
19731 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19732 LIBS=$ac_check_lib_save_LIBS
19734 echo "$as_me:19734: result: $ac_cv_lib_gnurx_regcomp" >&5
19735 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19736 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19738 cf_add_libs="$LIBS"
19741 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19742 # filter duplicates
19743 for cf_add_1lib in $cf_add_0lib; do
19744 for cf_add_2lib in $cf_add_libs; do
19745 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19750 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19752 LIBS="$cf_add_libs"
19754 cf_regex_func=regcomp
19761 cf_regex_libs="regex re"
19762 echo "$as_me:19762: checking for regcomp" >&5
19763 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19764 if test "${ac_cv_func_regcomp+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 cat >"conftest.$ac_ext" <<_ACEOF
19768 #line 19768 "configure"
19769 #include "confdefs.h"
19770 #define regcomp autoconf_temporary
19771 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19778 /* We use char because int might match the return type of a gcc2
19779 builtin and then its argument prototype would still apply. */
19780 char regcomp (void);
19786 /* The GNU C library defines stubs for functions which it implements
19787 to always fail with ENOSYS. Some functions are actually named
19788 something starting with __ and the normal name is an alias. */
19789 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19790 #error found stub for regcomp
19798 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19799 if { (eval echo "$as_me:19799: \"$ac_link\"") >&5
19800 (eval $ac_link) 2>&5
19802 echo "$as_me:19802: \$? = $ac_status" >&5
19803 (exit "$ac_status"); } &&
19804 { ac_try='test -s "conftest$ac_exeext"'
19805 { (eval echo "$as_me:19805: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:19808: \$? = $ac_status" >&5
19809 (exit "$ac_status"); }; }; then
19810 ac_cv_func_regcomp=yes
19812 echo "$as_me: failed program was:" >&5
19813 cat "conftest.$ac_ext" >&5
19814 ac_cv_func_regcomp=no
19816 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19818 echo "$as_me:19818: result: $ac_cv_func_regcomp" >&5
19819 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19820 if test "$ac_cv_func_regcomp" = yes; then
19821 cf_regex_func=regcomp
19824 for cf_regex_lib in $cf_regex_libs
19826 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19827 echo "$as_me:19827: checking for regcomp in -l$cf_regex_lib" >&5
19828 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19829 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-l$cf_regex_lib $LIBS"
19834 cat >"conftest.$ac_ext" <<_ACEOF
19835 #line 19835 "configure"
19836 #include "confdefs.h"
19838 /* Override any gcc2 internal prototype to avoid an error. */
19842 /* We use char because int might match the return type of a gcc2
19843 builtin and then its argument prototype would still apply. */
19853 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19854 if { (eval echo "$as_me:19854: \"$ac_link\"") >&5
19855 (eval $ac_link) 2>&5
19857 echo "$as_me:19857: \$? = $ac_status" >&5
19858 (exit "$ac_status"); } &&
19859 { ac_try='test -s "conftest$ac_exeext"'
19860 { (eval echo "$as_me:19860: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19863 echo "$as_me:19863: \$? = $ac_status" >&5
19864 (exit "$ac_status"); }; }; then
19865 eval "$as_ac_Lib=yes"
19867 echo "$as_me: failed program was:" >&5
19868 cat "conftest.$ac_ext" >&5
19869 eval "$as_ac_Lib=no"
19871 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19872 LIBS=$ac_check_lib_save_LIBS
19874 echo "$as_me:19874: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19875 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19876 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19878 cf_add_libs="$LIBS"
19881 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19882 # filter duplicates
19883 for cf_add_1lib in $cf_add_0lib; do
19884 for cf_add_2lib in $cf_add_libs; do
19885 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19890 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19892 LIBS="$cf_add_libs"
19894 cf_regex_func=regcomp
19905 if test "$cf_regex_func" = no ; then
19906 echo "$as_me:19906: checking for compile" >&5
19907 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19908 if test "${ac_cv_func_compile+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 cat >"conftest.$ac_ext" <<_ACEOF
19912 #line 19912 "configure"
19913 #include "confdefs.h"
19914 #define compile autoconf_temporary
19915 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19922 /* We use char because int might match the return type of a gcc2
19923 builtin and then its argument prototype would still apply. */
19924 char compile (void);
19930 /* The GNU C library defines stubs for functions which it implements
19931 to always fail with ENOSYS. Some functions are actually named
19932 something starting with __ and the normal name is an alias. */
19933 #if defined (__stub_compile) || defined (__stub___compile)
19934 #error found stub for compile
19942 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19943 if { (eval echo "$as_me:19943: \"$ac_link\"") >&5
19944 (eval $ac_link) 2>&5
19946 echo "$as_me:19946: \$? = $ac_status" >&5
19947 (exit "$ac_status"); } &&
19948 { ac_try='test -s "conftest$ac_exeext"'
19949 { (eval echo "$as_me:19949: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19952 echo "$as_me:19952: \$? = $ac_status" >&5
19953 (exit "$ac_status"); }; }; then
19954 ac_cv_func_compile=yes
19956 echo "$as_me: failed program was:" >&5
19957 cat "conftest.$ac_ext" >&5
19958 ac_cv_func_compile=no
19960 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19962 echo "$as_me:19962: result: $ac_cv_func_compile" >&5
19963 echo "${ECHO_T}$ac_cv_func_compile" >&6
19964 if test "$ac_cv_func_compile" = yes; then
19965 cf_regex_func=compile
19968 echo "$as_me:19968: checking for compile in -lgen" >&5
19969 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19970 if test "${ac_cv_lib_gen_compile+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_check_lib_save_LIBS=$LIBS
19975 cat >"conftest.$ac_ext" <<_ACEOF
19976 #line 19976 "configure"
19977 #include "confdefs.h"
19979 /* Override any gcc2 internal prototype to avoid an error. */
19983 /* We use char because int might match the return type of a gcc2
19984 builtin and then its argument prototype would still apply. */
19994 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19995 if { (eval echo "$as_me:19995: \"$ac_link\"") >&5
19996 (eval $ac_link) 2>&5
19998 echo "$as_me:19998: \$? = $ac_status" >&5
19999 (exit "$ac_status"); } &&
20000 { ac_try='test -s "conftest$ac_exeext"'
20001 { (eval echo "$as_me:20001: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:20004: \$? = $ac_status" >&5
20005 (exit "$ac_status"); }; }; then
20006 ac_cv_lib_gen_compile=yes
20008 echo "$as_me: failed program was:" >&5
20009 cat "conftest.$ac_ext" >&5
20010 ac_cv_lib_gen_compile=no
20012 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20013 LIBS=$ac_check_lib_save_LIBS
20015 echo "$as_me:20015: result: $ac_cv_lib_gen_compile" >&5
20016 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
20017 if test "$ac_cv_lib_gen_compile" = yes; then
20019 cf_add_libs="$LIBS"
20022 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20023 # filter duplicates
20024 for cf_add_1lib in $cf_add_0lib; do
20025 for cf_add_2lib in $cf_add_libs; do
20026 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20031 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20033 LIBS="$cf_add_libs"
20035 cf_regex_func=compile
20042 if test "$cf_regex_func" = no ; then
20043 { echo "$as_me:20043: WARNING: cannot find regular expression library" >&5
20044 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
20047 echo "$as_me:20047: checking for regular-expression headers" >&5
20048 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
20049 if test "${cf_cv_regex_hdrs+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 cf_cv_regex_hdrs=no
20054 case "$cf_regex_func" in
20056 for cf_regex_hdr in regexp.h regexpr.h
20058 cat >"conftest.$ac_ext" <<_ACEOF
20059 #line 20059 "configure"
20060 #include "confdefs.h"
20061 #include <$cf_regex_hdr>
20066 char *p = compile("", "", "", 0);
20067 int x = step("", "");
20075 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20076 if { (eval echo "$as_me:20076: \"$ac_link\"") >&5
20077 (eval $ac_link) 2>&5
20079 echo "$as_me:20079: \$? = $ac_status" >&5
20080 (exit "$ac_status"); } &&
20081 { ac_try='test -s "conftest$ac_exeext"'
20082 { (eval echo "$as_me:20082: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20085 echo "$as_me:20085: \$? = $ac_status" >&5
20086 (exit "$ac_status"); }; }; then
20088 cf_cv_regex_hdrs=$cf_regex_hdr
20092 echo "$as_me: failed program was:" >&5
20093 cat "conftest.$ac_ext" >&5
20095 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20099 for cf_regex_hdr in regex.h
20101 cat >"conftest.$ac_ext" <<_ACEOF
20102 #line 20102 "configure"
20103 #include "confdefs.h"
20104 #include <sys/types.h>
20105 #include <$cf_regex_hdr>
20111 int x = regcomp(p, "", 0);
20112 int y = regexec(p, "", 0, 0, 0);
20121 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20122 if { (eval echo "$as_me:20122: \"$ac_link\"") >&5
20123 (eval $ac_link) 2>&5
20125 echo "$as_me:20125: \$? = $ac_status" >&5
20126 (exit "$ac_status"); } &&
20127 { ac_try='test -s "conftest$ac_exeext"'
20128 { (eval echo "$as_me:20128: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20131 echo "$as_me:20131: \$? = $ac_status" >&5
20132 (exit "$ac_status"); }; }; then
20134 cf_cv_regex_hdrs=$cf_regex_hdr
20138 echo "$as_me: failed program was:" >&5
20139 cat "conftest.$ac_ext" >&5
20141 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20147 echo "$as_me:20147: result: $cf_cv_regex_hdrs" >&5
20148 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20150 case "$cf_cv_regex_hdrs" in
20151 (no) { echo "$as_me:20151: WARNING: no regular expression header found" >&5
20152 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20154 cat >>confdefs.h <<\EOF
20155 #define HAVE_REGEX_H_FUNCS 1
20159 cat >>confdefs.h <<\EOF
20160 #define HAVE_REGEXP_H_FUNCS 1
20164 cat >>confdefs.h <<\EOF
20165 #define HAVE_REGEXPR_H_FUNCS 1
20188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20189 echo "$as_me:20189: checking for $ac_header" >&5
20190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 cat >"conftest.$ac_ext" <<_ACEOF
20195 #line 20195 "configure"
20196 #include "confdefs.h"
20197 #include <$ac_header>
20199 if { (eval echo "$as_me:20199: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20200 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20202 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:20205: \$? = $ac_status" >&5
20206 (exit "$ac_status"); } >/dev/null; then
20207 if test -s conftest.err; then
20208 ac_cpp_err=$ac_c_preproc_warn_flag
20215 if test -z "$ac_cpp_err"; then
20216 eval "$as_ac_Header=yes"
20218 echo "$as_me: failed program was:" >&5
20219 cat "conftest.$ac_ext" >&5
20220 eval "$as_ac_Header=no"
20222 rm -f conftest.err "conftest.$ac_ext"
20224 echo "$as_me:20224: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20225 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20226 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20227 cat >>confdefs.h <<EOF
20228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20234 for ac_header in unistd.h getopt.h
20236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20237 echo "$as_me:20237: checking for $ac_header" >&5
20238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 cat >"conftest.$ac_ext" <<_ACEOF
20243 #line 20243 "configure"
20244 #include "confdefs.h"
20245 #include <$ac_header>
20247 if { (eval echo "$as_me:20247: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20248 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20250 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:20253: \$? = $ac_status" >&5
20254 (exit "$ac_status"); } >/dev/null; then
20255 if test -s conftest.err; then
20256 ac_cpp_err=$ac_c_preproc_warn_flag
20263 if test -z "$ac_cpp_err"; then
20264 eval "$as_ac_Header=yes"
20266 echo "$as_me: failed program was:" >&5
20267 cat "conftest.$ac_ext" >&5
20268 eval "$as_ac_Header=no"
20270 rm -f conftest.err "conftest.$ac_ext"
20272 echo "$as_me:20272: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20273 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20274 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20275 cat >>confdefs.h <<EOF
20276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20282 echo "$as_me:20282: checking for header declaring getopt variables" >&5
20283 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20284 if test "${cf_cv_getopt_header+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20288 cf_cv_getopt_header=none
20289 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20291 cat >"conftest.$ac_ext" <<_ACEOF
20292 #line 20292 "configure"
20293 #include "confdefs.h"
20295 #include <$cf_header>
20299 int x = optind; char *y = optarg; (void)x; (void)y
20304 rm -f "conftest.$ac_objext"
20305 if { (eval echo "$as_me:20305: \"$ac_compile\"") >&5
20306 (eval $ac_compile) 2>&5
20308 echo "$as_me:20308: \$? = $ac_status" >&5
20309 (exit "$ac_status"); } &&
20310 { ac_try='test -s "conftest.$ac_objext"'
20311 { (eval echo "$as_me:20311: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 echo "$as_me:20314: \$? = $ac_status" >&5
20315 (exit "$ac_status"); }; }; then
20316 cf_cv_getopt_header=$cf_header
20319 echo "$as_me: failed program was:" >&5
20320 cat "conftest.$ac_ext" >&5
20322 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20326 echo "$as_me:20326: result: $cf_cv_getopt_header" >&5
20327 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20328 if test "$cf_cv_getopt_header" != none ; then
20330 cat >>confdefs.h <<\EOF
20331 #define HAVE_GETOPT_HEADER 1
20335 if test "$cf_cv_getopt_header" = getopt.h ; then
20337 cat >>confdefs.h <<\EOF
20338 #define NEED_GETOPT_H 1
20343 echo "$as_me:20343: checking if external environ is declared" >&5
20344 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20345 if test "${cf_cv_dcl_environ+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 cat >"conftest.$ac_ext" <<_ACEOF
20350 #line 20350 "configure"
20351 #include "confdefs.h"
20353 $ac_includes_default
20357 void* x = (void*) environ; (void)x
20362 rm -f "conftest.$ac_objext"
20363 if { (eval echo "$as_me:20363: \"$ac_compile\"") >&5
20364 (eval $ac_compile) 2>&5
20366 echo "$as_me:20366: \$? = $ac_status" >&5
20367 (exit "$ac_status"); } &&
20368 { ac_try='test -s "conftest.$ac_objext"'
20369 { (eval echo "$as_me:20369: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20372 echo "$as_me:20372: \$? = $ac_status" >&5
20373 (exit "$ac_status"); }; }; then
20374 cf_cv_dcl_environ=yes
20376 echo "$as_me: failed program was:" >&5
20377 cat "conftest.$ac_ext" >&5
20378 cf_cv_dcl_environ=no
20380 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20383 echo "$as_me:20383: result: $cf_cv_dcl_environ" >&5
20384 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20386 if test "$cf_cv_dcl_environ" = no ; then
20388 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20390 cat >>confdefs.h <<EOF
20391 #define $cf_result 1
20396 # It's possible (for near-UNIX clones) that the data doesn't exist
20398 echo "$as_me:20398: checking if external environ exists" >&5
20399 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20400 if test "${cf_cv_have_environ+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 cat >"conftest.$ac_ext" <<_ACEOF
20405 #line 20405 "configure"
20406 #include "confdefs.h"
20409 extern int environ;
20419 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20420 if { (eval echo "$as_me:20420: \"$ac_link\"") >&5
20421 (eval $ac_link) 2>&5
20423 echo "$as_me:20423: \$? = $ac_status" >&5
20424 (exit "$ac_status"); } &&
20425 { ac_try='test -s "conftest$ac_exeext"'
20426 { (eval echo "$as_me:20426: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20429 echo "$as_me:20429: \$? = $ac_status" >&5
20430 (exit "$ac_status"); }; }; then
20431 cf_cv_have_environ=yes
20433 echo "$as_me: failed program was:" >&5
20434 cat "conftest.$ac_ext" >&5
20435 cf_cv_have_environ=no
20437 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20440 echo "$as_me:20440: result: $cf_cv_have_environ" >&5
20441 echo "${ECHO_T}$cf_cv_have_environ" >&6
20443 if test "$cf_cv_have_environ" = yes ; then
20445 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20447 cat >>confdefs.h <<EOF
20448 #define $cf_result 1
20453 echo "$as_me:20453: checking for getenv" >&5
20454 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20455 if test "${ac_cv_func_getenv+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 cat >"conftest.$ac_ext" <<_ACEOF
20459 #line 20459 "configure"
20460 #include "confdefs.h"
20461 #define getenv autoconf_temporary
20462 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20469 /* We use char because int might match the return type of a gcc2
20470 builtin and then its argument prototype would still apply. */
20471 char getenv (void);
20477 /* The GNU C library defines stubs for functions which it implements
20478 to always fail with ENOSYS. Some functions are actually named
20479 something starting with __ and the normal name is an alias. */
20480 #if defined (__stub_getenv) || defined (__stub___getenv)
20481 #error found stub for getenv
20489 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20490 if { (eval echo "$as_me:20490: \"$ac_link\"") >&5
20491 (eval $ac_link) 2>&5
20493 echo "$as_me:20493: \$? = $ac_status" >&5
20494 (exit "$ac_status"); } &&
20495 { ac_try='test -s "conftest$ac_exeext"'
20496 { (eval echo "$as_me:20496: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:20499: \$? = $ac_status" >&5
20500 (exit "$ac_status"); }; }; then
20501 ac_cv_func_getenv=yes
20503 echo "$as_me: failed program was:" >&5
20504 cat "conftest.$ac_ext" >&5
20505 ac_cv_func_getenv=no
20507 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20509 echo "$as_me:20509: result: $ac_cv_func_getenv" >&5
20510 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20512 for ac_func in putenv setenv strdup
20514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20515 echo "$as_me:20515: checking for $ac_func" >&5
20516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20517 if eval "test \"\${$as_ac_var+set}\" = set"; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 cat >"conftest.$ac_ext" <<_ACEOF
20521 #line 20521 "configure"
20522 #include "confdefs.h"
20523 #define $ac_func autoconf_temporary
20524 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20531 /* We use char because int might match the return type of a gcc2
20532 builtin and then its argument prototype would still apply. */
20533 char $ac_func (void);
20539 /* The GNU C library defines stubs for functions which it implements
20540 to always fail with ENOSYS. Some functions are actually named
20541 something starting with __ and the normal name is an alias. */
20542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20543 #error found stub for $ac_func
20546 return $ac_func ();
20551 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20552 if { (eval echo "$as_me:20552: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>&5
20555 echo "$as_me:20555: \$? = $ac_status" >&5
20556 (exit "$ac_status"); } &&
20557 { ac_try='test -s "conftest$ac_exeext"'
20558 { (eval echo "$as_me:20558: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20561 echo "$as_me:20561: \$? = $ac_status" >&5
20562 (exit "$ac_status"); }; }; then
20563 eval "$as_ac_var=yes"
20565 echo "$as_me: failed program was:" >&5
20566 cat "conftest.$ac_ext" >&5
20567 eval "$as_ac_var=no"
20569 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20571 echo "$as_me:20571: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20572 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20573 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20574 cat >>confdefs.h <<EOF
20575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20581 echo "$as_me:20581: checking if getenv returns consistent values" >&5
20582 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20583 if test "${cf_cv_consistent_getenv+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 if test "$cross_compiling" = yes; then
20588 cf_cv_consistent_getenv=unknown
20590 cat >"conftest.$ac_ext" <<_ACEOF
20591 #line 20591 "configure"
20592 #include "confdefs.h"
20594 $ac_includes_default
20596 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20597 extern char **environ; /* POSIX, but some systems are not... */
20600 #if defined(HAVE_STRDUP)
20601 #define str_alloc(s) strdup(s)
20603 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20606 static void set_value(const char *name, const char *value)
20608 #if defined(HAVE_SETENV)
20609 setenv(name, value, 1);
20610 #elif defined(HAVE_PUTENV)
20612 sprintf(buffer, "%s=%s", name, value);
20613 putenv(str_alloc(buffer));
20615 #error neither putenv/setenv found
20621 size_t numenv, limit, j;
20626 for (numenv = 0; environ[numenv]; ++numenv) ;
20627 limit = numenv + 10;
20628 mynames = (char **) calloc(limit + 1, sizeof(char *));
20629 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20630 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20631 #if defined(HAVE_ENVIRON)
20632 for (j = 0; environ[j]; ++j) {
20633 mynames[j] = str_alloc(environ[j]);
20634 equals = strchr(mynames[j], '=');
20637 myvalues[j] = str_alloc(equals);
20639 myvalues[j] = str_alloc("");
20643 for (j = numenv; j < limit; ++j) {
20651 sprintf(name, "TERM%lu", (unsigned long) k);
20652 for (jk = 0; jk < j; ++jk) {
20653 if (!strcmp(name, mynames[jk])) {
20660 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20661 set_value(name, value);
20662 mynames[j] = str_alloc(name);
20663 myvalues[j] = str_alloc(value);
20665 for (pass = 0; pass < 3; ++pass) {
20666 for (j = 0; j < limit; ++j) {
20667 char *value = getenv(mynames[j]);
20670 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20671 ${cf_cv_main_return:-return}(1);
20672 } else if (value != mypointer[j]) {
20673 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20674 ${cf_cv_main_return:-return}(1);
20675 } else if (strcmp(value, myvalues[j])) {
20676 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20677 ${cf_cv_main_return:-return}(1);
20681 mypointer[j] = value;
20682 for (k = 0; k < j; ++k) {
20683 if (mypointer[j] == mypointer[k]) {
20684 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20685 ${cf_cv_main_return:-return}(1);
20691 ${cf_cv_main_return:-return}(0);
20695 rm -f "conftest$ac_exeext"
20696 if { (eval echo "$as_me:20696: \"$ac_link\"") >&5
20697 (eval $ac_link) 2>&5
20699 echo "$as_me:20699: \$? = $ac_status" >&5
20700 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20701 { (eval echo "$as_me:20701: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:20704: \$? = $ac_status" >&5
20705 (exit "$ac_status"); }; }; then
20706 cf_cv_consistent_getenv=yes
20708 echo "$as_me: program exited with status $ac_status" >&5
20709 echo "$as_me: failed program was:" >&5
20710 cat "conftest.$ac_ext" >&5
20711 cf_cv_consistent_getenv=no
20713 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20717 echo "$as_me:20717: result: $cf_cv_consistent_getenv" >&5
20718 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20720 if test "x$cf_cv_consistent_getenv" = xno
20723 cat >>confdefs.h <<\EOF
20724 #define HAVE_CONSISTENT_GETENV 1
20729 if test "x$cf_cv_consistent_getenv" = xno && \
20730 test "x$cf_with_trace" = xyes
20732 { echo "$as_me:20732: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20733 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20736 echo "$as_me:20736: checking if sys/time.h works with sys/select.h" >&5
20737 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20738 if test "${cf_cv_sys_time_select+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 cat >"conftest.$ac_ext" <<_ACEOF
20743 #line 20743 "configure"
20744 #include "confdefs.h"
20746 #include <sys/types.h>
20747 #ifdef HAVE_SYS_TIME_H
20748 #include <sys/time.h>
20750 #ifdef HAVE_SYS_SELECT_H
20751 #include <sys/select.h>
20762 rm -f "conftest.$ac_objext"
20763 if { (eval echo "$as_me:20763: \"$ac_compile\"") >&5
20764 (eval $ac_compile) 2>&5
20766 echo "$as_me:20766: \$? = $ac_status" >&5
20767 (exit "$ac_status"); } &&
20768 { ac_try='test -s "conftest.$ac_objext"'
20769 { (eval echo "$as_me:20769: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20772 echo "$as_me:20772: \$? = $ac_status" >&5
20773 (exit "$ac_status"); }; }; then
20774 cf_cv_sys_time_select=yes
20776 echo "$as_me: failed program was:" >&5
20777 cat "conftest.$ac_ext" >&5
20778 cf_cv_sys_time_select=no
20780 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20784 echo "$as_me:20784: result: $cf_cv_sys_time_select" >&5
20785 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20786 test "$cf_cv_sys_time_select" = yes &&
20787 cat >>confdefs.h <<\EOF
20788 #define HAVE_SYS_TIME_SELECT 1
20791 ### checks for compiler characteristics
20793 ac_cpp='$CPP $CPPFLAGS'
20794 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20795 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797 ac_main_return="return"
20799 echo "$as_me:20799: checking for an ANSI C-conforming const" >&5
20800 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20801 if test "${ac_cv_c_const+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 cat >"conftest.$ac_ext" <<_ACEOF
20805 #line 20805 "configure"
20806 #include "confdefs.h"
20811 /* FIXME: Include the comments suggested by Paul. */
20812 #ifndef __cplusplus
20813 /* Ultrix mips cc rejects this. */
20814 typedef int charset[2];
20816 /* SunOS 4.1.1 cc rejects this. */
20817 char const *const *ccp;
20819 /* NEC SVR4.0.2 mips cc rejects this. */
20820 struct point {int x, y;};
20821 static struct point const zero = {0,0};
20822 /* AIX XL C 1.02.0.0 rejects this.
20823 It does not let you subtract one const X* pointer from another in
20824 an arm of an if-expression whose if-part is not a constant
20826 const char *g = "string";
20827 ccp = &g + (g ? g-g : 0);
20828 /* HPUX 7.0 cc rejects these. */
20831 ccp = (char const *const *) p;
20832 { /* SCO 3.2v4 cc rejects this. */
20834 char const *s = 0 ? (char *) 0 : (char const *) 0;
20838 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20839 int x[] = {25, 17};
20840 const int *foo = &x[0];
20843 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20844 typedef const int *iptr;
20848 { /* AIX XL C 1.02.0.0 rejects this saying
20849 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20850 struct s { int j; const int *ap[3]; };
20851 struct s *b; b->j = 5;
20853 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20854 const int foo = 10;
20862 rm -f "conftest.$ac_objext"
20863 if { (eval echo "$as_me:20863: \"$ac_compile\"") >&5
20864 (eval $ac_compile) 2>&5
20866 echo "$as_me:20866: \$? = $ac_status" >&5
20867 (exit "$ac_status"); } &&
20868 { ac_try='test -s "conftest.$ac_objext"'
20869 { (eval echo "$as_me:20869: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20872 echo "$as_me:20872: \$? = $ac_status" >&5
20873 (exit "$ac_status"); }; }; then
20876 echo "$as_me: failed program was:" >&5
20877 cat "conftest.$ac_ext" >&5
20880 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20882 echo "$as_me:20882: result: $ac_cv_c_const" >&5
20883 echo "${ECHO_T}$ac_cv_c_const" >&6
20884 if test $ac_cv_c_const = no; then
20886 cat >>confdefs.h <<\EOF
20892 echo "$as_me:20892: checking for inline" >&5
20893 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20894 if test "${ac_cv_c_inline+set}" = set; then
20895 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 for ac_kw in inline __inline__ __inline; do
20899 cat >"conftest.$ac_ext" <<_ACEOF
20900 #line 20900 "configure"
20901 #include "confdefs.h"
20902 #ifndef __cplusplus
20903 static $ac_kw int static_foo () {return 0; }
20904 $ac_kw int foo () {return 0; }
20908 rm -f "conftest.$ac_objext"
20909 if { (eval echo "$as_me:20909: \"$ac_compile\"") >&5
20910 (eval $ac_compile) 2>&5
20912 echo "$as_me:20912: \$? = $ac_status" >&5
20913 (exit "$ac_status"); } &&
20914 { ac_try='test -s "conftest.$ac_objext"'
20915 { (eval echo "$as_me:20915: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20918 echo "$as_me:20918: \$? = $ac_status" >&5
20919 (exit "$ac_status"); }; }; then
20920 ac_cv_c_inline=$ac_kw; break
20922 echo "$as_me: failed program was:" >&5
20923 cat "conftest.$ac_ext" >&5
20925 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20929 echo "$as_me:20929: result: $ac_cv_c_inline" >&5
20930 echo "${ECHO_T}$ac_cv_c_inline" >&6
20931 case $ac_cv_c_inline in
20934 cat >>confdefs.h <<\EOF
20938 *) cat >>confdefs.h <<EOF
20939 #define inline $ac_cv_c_inline
20945 if test "$ac_cv_c_inline" != no ; then
20946 NCURSES_INLINE=inline
20947 if test "$INTEL_COMPILER" = yes
20950 elif test "$CLANG_COMPILER" = yes
20953 elif test "$GCC" = yes
20955 echo "$as_me:20955: checking if $CC supports options to tune inlining" >&5
20956 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20957 if test "${cf_cv_gcc_inline+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 cf_save_CFLAGS=$CFLAGS
20962 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20963 cat >"conftest.$ac_ext" <<_ACEOF
20964 #line 20964 "configure"
20965 #include "confdefs.h"
20966 inline int foo(void) { return 1; }
20970 ${cf_cv_main_return:-return} foo()
20975 rm -f "conftest.$ac_objext"
20976 if { (eval echo "$as_me:20976: \"$ac_compile\"") >&5
20977 (eval $ac_compile) 2>&5
20979 echo "$as_me:20979: \$? = $ac_status" >&5
20980 (exit "$ac_status"); } &&
20981 { ac_try='test -s "conftest.$ac_objext"'
20982 { (eval echo "$as_me:20982: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20985 echo "$as_me:20985: \$? = $ac_status" >&5
20986 (exit "$ac_status"); }; }; then
20987 cf_cv_gcc_inline=yes
20989 echo "$as_me: failed program was:" >&5
20990 cat "conftest.$ac_ext" >&5
20991 cf_cv_gcc_inline=no
20993 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20994 CFLAGS=$cf_save_CFLAGS
20997 echo "$as_me:20997: result: $cf_cv_gcc_inline" >&5
20998 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20999 if test "$cf_cv_gcc_inline" = yes ; then
21004 cf_new_extra_cppflags=
21006 for cf_add_cflags in --param max-inline-insns-single=1200
21008 case "$cf_fix_cppflags" in
21010 case "$cf_add_cflags" in
21011 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
21012 case "$cf_add_cflags" in
21014 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21016 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21017 && test -z "${cf_tst_cflags}" \
21018 && cf_fix_cppflags=yes
21020 if test "$cf_fix_cppflags" = yes ; then
21022 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21023 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21026 elif test "${cf_tst_cflags}" = "\"'" ; then
21028 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21029 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21035 case "$CPPFLAGS" in
21039 case "$cf_add_cflags" in
21041 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21043 CPPFLAGS=`echo "$CPPFLAGS" | \
21044 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21045 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21050 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
21051 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
21058 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
21059 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21066 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21067 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21069 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
21071 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21072 && test -z "${cf_tst_cflags}" \
21073 && cf_fix_cppflags=no
21078 if test -n "$cf_new_cflags" ; then
21080 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21081 CFLAGS="${CFLAGS}$cf_new_cflags"
21085 if test -n "$cf_new_cppflags" ; then
21087 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21088 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21092 if test -n "$cf_new_extra_cppflags" ; then
21094 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21095 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21103 echo "$as_me:21103: checking for signal global datatype" >&5
21104 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21105 if test "${cf_cv_sig_atomic_t+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 "volatile sig_atomic_t" \
21114 cat >"conftest.$ac_ext" <<_ACEOF
21115 #line 21115 "configure"
21116 #include "confdefs.h"
21118 #include <sys/types.h>
21119 #include <signal.h>
21124 static void handler(int sig)
21132 signal(SIGINT, handler);
21138 rm -f "conftest.$ac_objext"
21139 if { (eval echo "$as_me:21139: \"$ac_compile\"") >&5
21140 (eval $ac_compile) 2>&5
21142 echo "$as_me:21142: \$? = $ac_status" >&5
21143 (exit "$ac_status"); } &&
21144 { ac_try='test -s "conftest.$ac_objext"'
21145 { (eval echo "$as_me:21145: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21148 echo "$as_me:21148: \$? = $ac_status" >&5
21149 (exit "$ac_status"); }; }; then
21150 cf_cv_sig_atomic_t=$cf_type
21152 echo "$as_me: failed program was:" >&5
21153 cat "conftest.$ac_ext" >&5
21154 cf_cv_sig_atomic_t=no
21156 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21157 test "$cf_cv_sig_atomic_t" != no && break
21162 echo "$as_me:21162: result: $cf_cv_sig_atomic_t" >&5
21163 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21164 test "$cf_cv_sig_atomic_t" != no &&
21165 cat >>confdefs.h <<EOF
21166 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21169 if test "$NCURSES_CHTYPE" = auto ; then
21171 echo "$as_me:21171: checking for type of chtype" >&5
21172 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21173 if test "${cf_cv_typeof_chtype+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 if test "$cross_compiling" = yes; then
21178 cf_cv_typeof_chtype=long
21180 cat >"conftest.$ac_ext" <<_ACEOF
21181 #line 21181 "configure"
21182 #include "confdefs.h"
21184 $ac_includes_default
21185 #define WANT_BITS 31
21188 FILE *fp = fopen("cf_test.out", "w");
21190 char *result = "long";
21191 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21194 for (n = 0; n < WANT_BITS; n++) {
21197 if (y != 1 || x == 0) {
21203 * If x is nonzero, an int is big enough for the bits
21206 result = (x != 0) ? "int" : "long";
21211 ${cf_cv_main_return:-return}(0);
21215 rm -f "conftest$ac_exeext"
21216 if { (eval echo "$as_me:21216: \"$ac_link\"") >&5
21217 (eval $ac_link) 2>&5
21219 echo "$as_me:21219: \$? = $ac_status" >&5
21220 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21221 { (eval echo "$as_me:21221: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21224 echo "$as_me:21224: \$? = $ac_status" >&5
21225 (exit "$ac_status"); }; }; then
21226 cf_cv_typeof_chtype=`cat cf_test.out`
21228 echo "$as_me: program exited with status $ac_status" >&5
21229 echo "$as_me: failed program was:" >&5
21230 cat "conftest.$ac_ext" >&5
21231 cf_cv_typeof_chtype=long
21233 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21239 echo "$as_me:21239: result: $cf_cv_typeof_chtype" >&5
21240 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21242 cat >>confdefs.h <<EOF
21243 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21247 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21249 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21251 echo "$as_me:21251: checking if unsigned literals are legal" >&5
21252 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21253 if test "${cf_cv_unsigned_literals+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 cat >"conftest.$ac_ext" <<_ACEOF
21258 #line 21258 "configure"
21259 #include "confdefs.h"
21264 long x = 1L + 1UL + 1U + 1
21269 rm -f "conftest.$ac_objext"
21270 if { (eval echo "$as_me:21270: \"$ac_compile\"") >&5
21271 (eval $ac_compile) 2>&5
21273 echo "$as_me:21273: \$? = $ac_status" >&5
21274 (exit "$ac_status"); } &&
21275 { ac_try='test -s "conftest.$ac_objext"'
21276 { (eval echo "$as_me:21276: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:21279: \$? = $ac_status" >&5
21280 (exit "$ac_status"); }; }; then
21281 cf_cv_unsigned_literals=yes
21283 echo "$as_me: failed program was:" >&5
21284 cat "conftest.$ac_ext" >&5
21285 cf_cv_unsigned_literals=no
21287 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21291 echo "$as_me:21291: result: $cf_cv_unsigned_literals" >&5
21292 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21295 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21296 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21298 if test "$NCURSES_MMASK_T" = auto ; then
21299 cf_cv_typeof_mmask_t=long
21301 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21303 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21305 ### Checks for external-data
21307 echo "$as_me:21307: checking if external errno is declared" >&5
21308 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21309 if test "${cf_cv_dcl_errno+set}" = set; then
21310 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 cat >"conftest.$ac_ext" <<_ACEOF
21314 #line 21314 "configure"
21315 #include "confdefs.h"
21317 $ac_includes_default
21322 int x = (int) errno; (void)x
21327 rm -f "conftest.$ac_objext"
21328 if { (eval echo "$as_me:21328: \"$ac_compile\"") >&5
21329 (eval $ac_compile) 2>&5
21331 echo "$as_me:21331: \$? = $ac_status" >&5
21332 (exit "$ac_status"); } &&
21333 { ac_try='test -s "conftest.$ac_objext"'
21334 { (eval echo "$as_me:21334: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21337 echo "$as_me:21337: \$? = $ac_status" >&5
21338 (exit "$ac_status"); }; }; then
21339 cf_cv_dcl_errno=yes
21341 echo "$as_me: failed program was:" >&5
21342 cat "conftest.$ac_ext" >&5
21345 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21348 echo "$as_me:21348: result: $cf_cv_dcl_errno" >&5
21349 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21351 if test "$cf_cv_dcl_errno" = no ; then
21353 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21355 cat >>confdefs.h <<EOF
21356 #define $cf_result 1
21361 # It's possible (for near-UNIX clones) that the data doesn't exist
21363 echo "$as_me:21363: checking if external errno exists" >&5
21364 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21365 if test "${cf_cv_have_errno+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 cat >"conftest.$ac_ext" <<_ACEOF
21370 #line 21370 "configure"
21371 #include "confdefs.h"
21384 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21385 if { (eval echo "$as_me:21385: \"$ac_link\"") >&5
21386 (eval $ac_link) 2>&5
21388 echo "$as_me:21388: \$? = $ac_status" >&5
21389 (exit "$ac_status"); } &&
21390 { ac_try='test -s "conftest$ac_exeext"'
21391 { (eval echo "$as_me:21391: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21394 echo "$as_me:21394: \$? = $ac_status" >&5
21395 (exit "$ac_status"); }; }; then
21396 cf_cv_have_errno=yes
21398 echo "$as_me: failed program was:" >&5
21399 cat "conftest.$ac_ext" >&5
21400 cf_cv_have_errno=no
21402 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21405 echo "$as_me:21405: result: $cf_cv_have_errno" >&5
21406 echo "${ECHO_T}$cf_cv_have_errno" >&6
21408 if test "$cf_cv_have_errno" = yes ; then
21410 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21412 cat >>confdefs.h <<EOF
21413 #define $cf_result 1
21418 echo "$as_me:21418: checking if data-only library module links" >&5
21419 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21420 if test "${cf_cv_link_dataonly+set}" = set; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 cat >conftest.$ac_ext <<EOF
21426 #line 21426 "configure"
21427 int testdata[3] = { 123, 456, 789 };
21429 if { (eval echo "$as_me:21429: \"$ac_compile\"") >&5
21430 (eval $ac_compile) 2>&5
21432 echo "$as_me:21432: \$? = $ac_status" >&5
21433 (exit "$ac_status"); } ; then
21434 mv conftest.o data.o && \
21435 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21437 rm -f conftest.$ac_ext data.o
21438 cat >conftest.$ac_ext <<EOF
21439 #line 21439 "configure"
21443 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21445 extern int testdata[3];
21446 return testdata[0] == 123
21447 && testdata[1] == 456
21448 && testdata[2] == 789;
21452 if { (eval echo "$as_me:21452: \"$ac_compile\"") >&5
21453 (eval $ac_compile) 2>&5
21455 echo "$as_me:21455: \$? = $ac_status" >&5
21456 (exit "$ac_status"); }; then
21457 mv conftest.o func.o && \
21458 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21460 rm -f conftest.$ac_ext func.o
21461 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21462 cf_saveLIBS="$LIBS"
21463 LIBS="conftest.a $LIBS"
21464 if test "$cross_compiling" = yes; then
21465 cf_cv_link_dataonly=unknown
21467 cat >"conftest.$ac_ext" <<_ACEOF
21468 #line 21468 "configure"
21469 #include "confdefs.h"
21473 extern int testfunc();
21474 ${cf_cv_main_return:-return} (!testfunc());
21478 rm -f "conftest$ac_exeext"
21479 if { (eval echo "$as_me:21479: \"$ac_link\"") >&5
21480 (eval $ac_link) 2>&5
21482 echo "$as_me:21482: \$? = $ac_status" >&5
21483 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21484 { (eval echo "$as_me:21484: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21487 echo "$as_me:21487: \$? = $ac_status" >&5
21488 (exit "$ac_status"); }; }; then
21489 cf_cv_link_dataonly=yes
21491 echo "$as_me: program exited with status $ac_status" >&5
21492 echo "$as_me: failed program was:" >&5
21493 cat "conftest.$ac_ext" >&5
21494 cf_cv_link_dataonly=no
21496 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21498 LIBS="$cf_saveLIBS"
21502 echo "$as_me:21502: result: $cf_cv_link_dataonly" >&5
21503 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21505 if test "$cf_cv_link_dataonly" = no ; then
21507 cat >>confdefs.h <<\EOF
21508 #define BROKEN_LINKER 1
21514 ### Checks for library functions.
21516 echo "$as_me:21516: checking for clock_gettime" >&5
21517 echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
21518 if test "${cf_cv_func_clock_gettime+set}" = set; then
21519 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 cat >"conftest.$ac_ext" <<_ACEOF
21523 #line 21523 "configure"
21524 #include "confdefs.h"
21529 struct timespec ts;
21530 int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts
21535 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21536 if { (eval echo "$as_me:21536: \"$ac_link\"") >&5
21537 (eval $ac_link) 2>&5
21539 echo "$as_me:21539: \$? = $ac_status" >&5
21540 (exit "$ac_status"); } &&
21541 { ac_try='test -s "conftest$ac_exeext"'
21542 { (eval echo "$as_me:21542: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21545 echo "$as_me:21545: \$? = $ac_status" >&5
21546 (exit "$ac_status"); }; }; then
21547 cf_cv_func_clock_gettime=yes
21549 echo "$as_me: failed program was:" >&5
21550 cat "conftest.$ac_ext" >&5
21551 cf_cv_func_clock_gettime=no
21553 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21556 echo "$as_me:21556: result: $cf_cv_func_clock_gettime" >&5
21557 echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6
21559 if test "$cf_cv_func_clock_gettime" = yes
21562 cat >>confdefs.h <<\EOF
21563 #define HAVE_CLOCK_GETTIME 1
21567 echo "$as_me:21567: checking for gettimeofday" >&5
21568 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
21569 if test "${ac_cv_func_gettimeofday+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21572 cat >"conftest.$ac_ext" <<_ACEOF
21573 #line 21573 "configure"
21574 #include "confdefs.h"
21575 #define gettimeofday autoconf_temporary
21576 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21577 #undef gettimeofday
21583 /* We use char because int might match the return type of a gcc2
21584 builtin and then its argument prototype would still apply. */
21585 char gettimeofday (void);
21591 /* The GNU C library defines stubs for functions which it implements
21592 to always fail with ENOSYS. Some functions are actually named
21593 something starting with __ and the normal name is an alias. */
21594 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
21595 #error found stub for gettimeofday
21598 return gettimeofday ();
21603 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21604 if { (eval echo "$as_me:21604: \"$ac_link\"") >&5
21605 (eval $ac_link) 2>&5
21607 echo "$as_me:21607: \$? = $ac_status" >&5
21608 (exit "$ac_status"); } &&
21609 { ac_try='test -s "conftest$ac_exeext"'
21610 { (eval echo "$as_me:21610: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21613 echo "$as_me:21613: \$? = $ac_status" >&5
21614 (exit "$ac_status"); }; }; then
21615 ac_cv_func_gettimeofday=yes
21617 echo "$as_me: failed program was:" >&5
21618 cat "conftest.$ac_ext" >&5
21619 ac_cv_func_gettimeofday=no
21621 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21623 echo "$as_me:21623: result: $ac_cv_func_gettimeofday" >&5
21624 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
21625 if test "$ac_cv_func_gettimeofday" = yes; then
21627 cat >>confdefs.h <<\EOF
21628 #define HAVE_GETTIMEOFDAY 1
21633 echo "$as_me:21633: checking for gettimeofday in -lbsd" >&5
21634 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
21635 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 ac_check_lib_save_LIBS=$LIBS
21640 cat >"conftest.$ac_ext" <<_ACEOF
21641 #line 21641 "configure"
21642 #include "confdefs.h"
21644 /* Override any gcc2 internal prototype to avoid an error. */
21648 /* We use char because int might match the return type of a gcc2
21649 builtin and then its argument prototype would still apply. */
21650 char gettimeofday ();
21659 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21660 if { (eval echo "$as_me:21660: \"$ac_link\"") >&5
21661 (eval $ac_link) 2>&5
21663 echo "$as_me:21663: \$? = $ac_status" >&5
21664 (exit "$ac_status"); } &&
21665 { ac_try='test -s "conftest$ac_exeext"'
21666 { (eval echo "$as_me:21666: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21669 echo "$as_me:21669: \$? = $ac_status" >&5
21670 (exit "$ac_status"); }; }; then
21671 ac_cv_lib_bsd_gettimeofday=yes
21673 echo "$as_me: failed program was:" >&5
21674 cat "conftest.$ac_ext" >&5
21675 ac_cv_lib_bsd_gettimeofday=no
21677 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21678 LIBS=$ac_check_lib_save_LIBS
21680 echo "$as_me:21680: result: $ac_cv_lib_bsd_gettimeofday" >&5
21681 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
21682 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
21684 cat >>confdefs.h <<\EOF
21685 #define HAVE_GETTIMEOFDAY 1
21688 cf_add_libs="$LIBS"
21691 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21692 # filter duplicates
21693 for cf_add_1lib in $cf_add_0lib; do
21694 for cf_add_2lib in $cf_add_libs; do
21695 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21700 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21702 LIBS="$cf_add_libs"
21740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21741 echo "$as_me:21741: checking for $ac_func" >&5
21742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21743 if eval "test \"\${$as_ac_var+set}\" = set"; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 cat >"conftest.$ac_ext" <<_ACEOF
21747 #line 21747 "configure"
21748 #include "confdefs.h"
21749 #define $ac_func autoconf_temporary
21750 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21757 /* We use char because int might match the return type of a gcc2
21758 builtin and then its argument prototype would still apply. */
21759 char $ac_func (void);
21765 /* The GNU C library defines stubs for functions which it implements
21766 to always fail with ENOSYS. Some functions are actually named
21767 something starting with __ and the normal name is an alias. */
21768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21769 #error found stub for $ac_func
21772 return $ac_func ();
21777 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21778 if { (eval echo "$as_me:21778: \"$ac_link\"") >&5
21779 (eval $ac_link) 2>&5
21781 echo "$as_me:21781: \$? = $ac_status" >&5
21782 (exit "$ac_status"); } &&
21783 { ac_try='test -s "conftest$ac_exeext"'
21784 { (eval echo "$as_me:21784: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21787 echo "$as_me:21787: \$? = $ac_status" >&5
21788 (exit "$ac_status"); }; }; then
21789 eval "$as_ac_var=yes"
21791 echo "$as_me: failed program was:" >&5
21792 cat "conftest.$ac_ext" >&5
21793 eval "$as_ac_var=no"
21795 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21797 echo "$as_me:21797: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21798 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21799 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21800 cat >>confdefs.h <<EOF
21801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21807 echo "$as_me:21807: checking if _PATH_TTYS is defined in ttyent.h" >&5
21808 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
21809 if test "${cf_cv_PATH_TTYS+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 cat >"conftest.$ac_ext" <<_ACEOF
21814 #line 21814 "configure"
21815 #include "confdefs.h"
21818 #include <ttyent.h>
21823 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
21828 rm -f "conftest.$ac_objext"
21829 if { (eval echo "$as_me:21829: \"$ac_compile\"") >&5
21830 (eval $ac_compile) 2>&5
21832 echo "$as_me:21832: \$? = $ac_status" >&5
21833 (exit "$ac_status"); } &&
21834 { ac_try='test -s "conftest.$ac_objext"'
21835 { (eval echo "$as_me:21835: \"$ac_try\"") >&5
21836 (eval $ac_try) 2>&5
21838 echo "$as_me:21838: \$? = $ac_status" >&5
21839 (exit "$ac_status"); }; }; then
21840 cf_cv_PATH_TTYS=yes
21842 echo "$as_me: failed program was:" >&5
21843 cat "conftest.$ac_ext" >&5
21846 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21848 echo "$as_me:21848: result: $cf_cv_PATH_TTYS" >&5
21849 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
21851 if test $cf_cv_PATH_TTYS = no
21853 for cf_ttys in /etc/ttytype /etc/ttys
21855 if test -f $cf_ttys
21857 cf_cv_PATH_TTYS=maybe
21859 cat >>confdefs.h <<\EOF
21860 #define _PATH_TTYS $cf_ttys
21868 if test $cf_cv_PATH_TTYS != no
21870 echo "$as_me:21870: checking if _PATH_TTYS file exists" >&5
21871 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
21872 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 if test "$cross_compiling" = yes; then
21877 cf_cv_have_PATH_TTYS=unknown
21879 cat >"conftest.$ac_ext" <<_ACEOF
21880 #line 21880 "configure"
21881 #include "confdefs.h"
21883 $ac_includes_default
21885 #include <ttyent.h>
21888 FILE *fp = fopen(_PATH_TTYS, "r");
21889 ${cf_cv_main_return:-return} (fp == 0);
21892 rm -f "conftest$ac_exeext"
21893 if { (eval echo "$as_me:21893: \"$ac_link\"") >&5
21894 (eval $ac_link) 2>&5
21896 echo "$as_me:21896: \$? = $ac_status" >&5
21897 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21898 { (eval echo "$as_me:21898: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21901 echo "$as_me:21901: \$? = $ac_status" >&5
21902 (exit "$ac_status"); }; }; then
21903 cf_cv_have_PATH_TTYS=yes
21905 echo "$as_me: program exited with status $ac_status" >&5
21906 echo "$as_me: failed program was:" >&5
21907 cat "conftest.$ac_ext" >&5
21908 cf_cv_have_PATH_TTYS=no
21910 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21913 echo "$as_me:21913: result: $cf_cv_have_PATH_TTYS" >&5
21914 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
21915 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
21918 if test $cf_cv_PATH_TTYS != no
21921 cat >>confdefs.h <<\EOF
21922 #define HAVE_PATH_TTYS 1
21925 echo "$as_me:21925: checking for getttynam" >&5
21926 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
21927 if test "${cf_cv_func_getttynam+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 cat >"conftest.$ac_ext" <<_ACEOF
21932 #line 21932 "configure"
21933 #include "confdefs.h"
21934 #include <ttyent.h>
21938 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
21943 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21944 if { (eval echo "$as_me:21944: \"$ac_link\"") >&5
21945 (eval $ac_link) 2>&5
21947 echo "$as_me:21947: \$? = $ac_status" >&5
21948 (exit "$ac_status"); } &&
21949 { ac_try='test -s "conftest$ac_exeext"'
21950 { (eval echo "$as_me:21950: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21953 echo "$as_me:21953: \$? = $ac_status" >&5
21954 (exit "$ac_status"); }; }; then
21955 cf_cv_func_getttynam=yes
21957 echo "$as_me: failed program was:" >&5
21958 cat "conftest.$ac_ext" >&5
21959 cf_cv_func_getttynam=no
21961 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21963 echo "$as_me:21963: result: $cf_cv_func_getttynam" >&5
21964 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
21965 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
21966 #define HAVE_GETTTYNAM 1
21971 if test "x$ac_cv_func_getopt" = xno && \
21972 test "x$cf_with_progs$cf_with_tests" != xnono; then
21973 { { echo "$as_me:21973: error: getopt is required for building programs" >&5
21974 echo "$as_me: error: getopt is required for building programs" >&2;}
21975 { (exit 1); exit 1; }; }
21978 if test "x$with_safe_sprintf" = xyes
21980 if test "x$ac_cv_func_vsnprintf" = xyes
21982 { echo "$as_me:21982: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21983 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21986 cat >>confdefs.h <<\EOF
21987 #define USE_SAFE_SPRINTF 1
21993 if test "x$with_getcap" = "xyes" ; then
21995 echo "$as_me:21995: checking for terminal-capability database functions" >&5
21996 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21997 if test "${cf_cv_cgetent+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 cat >"conftest.$ac_ext" <<_ACEOF
22002 #line 22002 "configure"
22003 #include "confdefs.h"
22005 $ac_includes_default
22012 char *db_array = temp;
22013 cgetent(&buf, &db_array, "vt100");
22014 cgetcap(buf, "tc", '=');
22015 cgetmatch(buf, "tc");
22021 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22022 if { (eval echo "$as_me:22022: \"$ac_link\"") >&5
22023 (eval $ac_link) 2>&5
22025 echo "$as_me:22025: \$? = $ac_status" >&5
22026 (exit "$ac_status"); } &&
22027 { ac_try='test -s "conftest$ac_exeext"'
22028 { (eval echo "$as_me:22028: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22031 echo "$as_me:22031: \$? = $ac_status" >&5
22032 (exit "$ac_status"); }; }; then
22035 echo "$as_me: failed program was:" >&5
22036 cat "conftest.$ac_ext" >&5
22039 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22042 echo "$as_me:22042: result: $cf_cv_cgetent" >&5
22043 echo "${ECHO_T}$cf_cv_cgetent" >&6
22045 if test "$cf_cv_cgetent" = yes
22048 cat >>confdefs.h <<\EOF
22049 #define HAVE_BSD_CGETENT 1
22052 echo "$as_me:22052: checking if cgetent uses const parameter" >&5
22053 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
22054 if test "${cf_cv_cgetent_const+set}" = set; then
22055 echo $ECHO_N "(cached) $ECHO_C" >&6
22058 cat >"conftest.$ac_ext" <<_ACEOF
22059 #line 22059 "configure"
22060 #include "confdefs.h"
22062 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
22063 $ac_includes_default
22070 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
22071 const char *db_array = temp;
22072 cgetent(&buf, &db_array, "vt100");
22074 cgetcap(buf, "tc", '=');
22075 cgetmatch(buf, "tc");
22081 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22082 if { (eval echo "$as_me:22082: \"$ac_link\"") >&5
22083 (eval $ac_link) 2>&5
22085 echo "$as_me:22085: \$? = $ac_status" >&5
22086 (exit "$ac_status"); } &&
22087 { ac_try='test -s "conftest$ac_exeext"'
22088 { (eval echo "$as_me:22088: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22091 echo "$as_me:22091: \$? = $ac_status" >&5
22092 (exit "$ac_status"); }; }; then
22093 cf_cv_cgetent_const=yes
22095 echo "$as_me: failed program was:" >&5
22096 cat "conftest.$ac_ext" >&5
22097 cf_cv_cgetent_const=no
22099 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22102 echo "$as_me:22102: result: $cf_cv_cgetent_const" >&5
22103 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
22104 if test "$cf_cv_cgetent_const" = yes
22107 cat >>confdefs.h <<EOF
22108 #define CGETENT_CONST const
22116 echo "$as_me:22116: checking for isascii" >&5
22117 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
22118 if test "${cf_cv_have_isascii+set}" = set; then
22119 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 cat >"conftest.$ac_ext" <<_ACEOF
22123 #line 22123 "configure"
22124 #include "confdefs.h"
22129 int x = isascii(' ')
22134 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22135 if { (eval echo "$as_me:22135: \"$ac_link\"") >&5
22136 (eval $ac_link) 2>&5
22138 echo "$as_me:22138: \$? = $ac_status" >&5
22139 (exit "$ac_status"); } &&
22140 { ac_try='test -s "conftest$ac_exeext"'
22141 { (eval echo "$as_me:22141: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 echo "$as_me:22144: \$? = $ac_status" >&5
22145 (exit "$ac_status"); }; }; then
22146 cf_cv_have_isascii=yes
22148 echo "$as_me: failed program was:" >&5
22149 cat "conftest.$ac_ext" >&5
22150 cf_cv_have_isascii=no
22152 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22155 echo "$as_me:22155: result: $cf_cv_have_isascii" >&5
22156 echo "${ECHO_T}$cf_cv_have_isascii" >&6
22157 test "$cf_cv_have_isascii" = yes &&
22158 cat >>confdefs.h <<\EOF
22159 #define HAVE_ISASCII 1
22162 if test "$ac_cv_func_sigaction" = yes; then
22163 echo "$as_me:22163: checking whether sigaction needs _POSIX_SOURCE" >&5
22164 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
22165 cat >"conftest.$ac_ext" <<_ACEOF
22166 #line 22166 "configure"
22167 #include "confdefs.h"
22169 #include <sys/types.h>
22170 #include <signal.h>
22174 struct sigaction act
22179 rm -f "conftest.$ac_objext"
22180 if { (eval echo "$as_me:22180: \"$ac_compile\"") >&5
22181 (eval $ac_compile) 2>&5
22183 echo "$as_me:22183: \$? = $ac_status" >&5
22184 (exit "$ac_status"); } &&
22185 { ac_try='test -s "conftest.$ac_objext"'
22186 { (eval echo "$as_me:22186: \"$ac_try\"") >&5
22187 (eval $ac_try) 2>&5
22189 echo "$as_me:22189: \$? = $ac_status" >&5
22190 (exit "$ac_status"); }; }; then
22193 echo "$as_me: failed program was:" >&5
22194 cat "conftest.$ac_ext" >&5
22196 cat >"conftest.$ac_ext" <<_ACEOF
22197 #line 22197 "configure"
22198 #include "confdefs.h"
22200 #define _POSIX_SOURCE
22201 #include <sys/types.h>
22202 #include <signal.h>
22206 struct sigaction act
22211 rm -f "conftest.$ac_objext"
22212 if { (eval echo "$as_me:22212: \"$ac_compile\"") >&5
22213 (eval $ac_compile) 2>&5
22215 echo "$as_me:22215: \$? = $ac_status" >&5
22216 (exit "$ac_status"); } &&
22217 { ac_try='test -s "conftest.$ac_objext"'
22218 { (eval echo "$as_me:22218: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22221 echo "$as_me:22221: \$? = $ac_status" >&5
22222 (exit "$ac_status"); }; }; then
22225 cat >>confdefs.h <<\EOF
22226 #define _POSIX_SOURCE 1
22230 echo "$as_me: failed program was:" >&5
22231 cat "conftest.$ac_ext" >&5
22234 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22236 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22237 echo "$as_me:22237: result: $sigact_bad" >&5
22238 echo "${ECHO_T}$sigact_bad" >&6
22241 echo "$as_me:22241: checking if nanosleep really works" >&5
22242 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
22243 if test "${cf_cv_func_nanosleep+set}" = set; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 if test "$cross_compiling" = yes; then
22248 cf_cv_func_nanosleep=unknown
22250 cat >"conftest.$ac_ext" <<_ACEOF
22251 #line 22251 "configure"
22252 #include "confdefs.h"
22254 $ac_includes_default
22259 #ifdef HAVE_SYS_TIME_H
22260 #include <sys/time.h>
22264 struct timespec ts1, ts2;
22267 ts1.tv_nsec = 750000000;
22271 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22272 ${cf_cv_main_return:-return}(code != 0);
22276 rm -f "conftest$ac_exeext"
22277 if { (eval echo "$as_me:22277: \"$ac_link\"") >&5
22278 (eval $ac_link) 2>&5
22280 echo "$as_me:22280: \$? = $ac_status" >&5
22281 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22282 { (eval echo "$as_me:22282: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22285 echo "$as_me:22285: \$? = $ac_status" >&5
22286 (exit "$ac_status"); }; }; then
22287 cf_cv_func_nanosleep=yes
22289 echo "$as_me: program exited with status $ac_status" >&5
22290 echo "$as_me: failed program was:" >&5
22291 cat "conftest.$ac_ext" >&5
22292 cf_cv_func_nanosleep=no
22294 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22297 echo "$as_me:22297: result: $cf_cv_func_nanosleep" >&5
22298 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22300 test "$cf_cv_func_nanosleep" = "yes" &&
22301 cat >>confdefs.h <<\EOF
22302 #define HAVE_NANOSLEEP 1
22313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22314 echo "$as_me:22314: checking for $ac_header" >&5
22315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22319 cat >"conftest.$ac_ext" <<_ACEOF
22320 #line 22320 "configure"
22321 #include "confdefs.h"
22322 #include <$ac_header>
22324 if { (eval echo "$as_me:22324: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22325 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22327 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22329 cat conftest.err >&5
22330 echo "$as_me:22330: \$? = $ac_status" >&5
22331 (exit "$ac_status"); } >/dev/null; then
22332 if test -s conftest.err; then
22333 ac_cpp_err=$ac_c_preproc_warn_flag
22340 if test -z "$ac_cpp_err"; then
22341 eval "$as_ac_Header=yes"
22343 echo "$as_me: failed program was:" >&5
22344 cat "conftest.$ac_ext" >&5
22345 eval "$as_ac_Header=no"
22347 rm -f conftest.err "conftest.$ac_ext"
22349 echo "$as_me:22349: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22350 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22351 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22352 cat >>confdefs.h <<EOF
22353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22359 if test "$ac_cv_header_termios_h" = yes ; then
22360 case "$CFLAGS $CPPFLAGS" in
22361 (*-D_POSIX_SOURCE*)
22362 termios_bad=dunno ;;
22363 (*) termios_bad=maybe ;;
22365 if test "$termios_bad" = maybe ; then
22366 echo "$as_me:22366: checking whether termios.h needs _POSIX_SOURCE" >&5
22367 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22368 cat >"conftest.$ac_ext" <<_ACEOF
22369 #line 22369 "configure"
22370 #include "confdefs.h"
22371 #include <termios.h>
22375 struct termios foo; int x = foo.c_iflag = 1; (void)x
22380 rm -f "conftest.$ac_objext"
22381 if { (eval echo "$as_me:22381: \"$ac_compile\"") >&5
22382 (eval $ac_compile) 2>&5
22384 echo "$as_me:22384: \$? = $ac_status" >&5
22385 (exit "$ac_status"); } &&
22386 { ac_try='test -s "conftest.$ac_objext"'
22387 { (eval echo "$as_me:22387: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22390 echo "$as_me:22390: \$? = $ac_status" >&5
22391 (exit "$ac_status"); }; }; then
22394 echo "$as_me: failed program was:" >&5
22395 cat "conftest.$ac_ext" >&5
22397 cat >"conftest.$ac_ext" <<_ACEOF
22398 #line 22398 "configure"
22399 #include "confdefs.h"
22401 #define _POSIX_SOURCE
22402 #include <termios.h>
22406 struct termios foo; int x = foo.c_iflag = 2; (void)x
22411 rm -f "conftest.$ac_objext"
22412 if { (eval echo "$as_me:22412: \"$ac_compile\"") >&5
22413 (eval $ac_compile) 2>&5
22415 echo "$as_me:22415: \$? = $ac_status" >&5
22416 (exit "$ac_status"); } &&
22417 { ac_try='test -s "conftest.$ac_objext"'
22418 { (eval echo "$as_me:22418: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22421 echo "$as_me:22421: \$? = $ac_status" >&5
22422 (exit "$ac_status"); }; }; then
22423 termios_bad=unknown
22425 echo "$as_me: failed program was:" >&5
22426 cat "conftest.$ac_ext" >&5
22428 cat >>confdefs.h <<\EOF
22429 #define _POSIX_SOURCE 1
22433 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22436 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22437 echo "$as_me:22437: result: $termios_bad" >&5
22438 echo "${ECHO_T}$termios_bad" >&6
22442 echo "$as_me:22442: checking for tcgetattr" >&5
22443 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22444 if test "${cf_cv_have_tcgetattr+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 cat >"conftest.$ac_ext" <<_ACEOF
22449 #line 22449 "configure"
22450 #include "confdefs.h"
22452 #include <sys/types.h>
22453 #ifdef HAVE_UNISTD_H
22454 #include <unistd.h>
22456 #ifdef HAVE_TERMIOS_H
22457 #include <termios.h>
22458 #define TTY struct termios
22460 #ifdef HAVE_TERMIO_H
22461 #include <termio.h>
22462 #define TTY struct termio
22471 tcgetattr(1, &foo);
22476 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22477 if { (eval echo "$as_me:22477: \"$ac_link\"") >&5
22478 (eval $ac_link) 2>&5
22480 echo "$as_me:22480: \$? = $ac_status" >&5
22481 (exit "$ac_status"); } &&
22482 { ac_try='test -s "conftest$ac_exeext"'
22483 { (eval echo "$as_me:22483: \"$ac_try\"") >&5
22484 (eval $ac_try) 2>&5
22486 echo "$as_me:22486: \$? = $ac_status" >&5
22487 (exit "$ac_status"); }; }; then
22488 cf_cv_have_tcgetattr=yes
22490 echo "$as_me: failed program was:" >&5
22491 cat "conftest.$ac_ext" >&5
22492 cf_cv_have_tcgetattr=no
22494 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22496 echo "$as_me:22496: result: $cf_cv_have_tcgetattr" >&5
22497 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22498 test "$cf_cv_have_tcgetattr" = yes &&
22499 cat >>confdefs.h <<\EOF
22500 #define HAVE_TCGETATTR 1
22503 echo "$as_me:22503: checking for vsscanf function or workaround" >&5
22504 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22505 if test "${cf_cv_func_vsscanf+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 cat >"conftest.$ac_ext" <<_ACEOF
22510 #line 22510 "configure"
22511 #include "confdefs.h"
22513 #include <stdarg.h>
22520 vsscanf("from", "%d", ap)
22525 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22526 if { (eval echo "$as_me:22526: \"$ac_link\"") >&5
22527 (eval $ac_link) 2>&5
22529 echo "$as_me:22529: \$? = $ac_status" >&5
22530 (exit "$ac_status"); } &&
22531 { ac_try='test -s "conftest$ac_exeext"'
22532 { (eval echo "$as_me:22532: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22535 echo "$as_me:22535: \$? = $ac_status" >&5
22536 (exit "$ac_status"); }; }; then
22537 cf_cv_func_vsscanf=vsscanf
22539 echo "$as_me: failed program was:" >&5
22540 cat "conftest.$ac_ext" >&5
22542 cat >"conftest.$ac_ext" <<_ACEOF
22543 #line 22543 "configure"
22544 #include "confdefs.h"
22546 #include <stdarg.h>
22553 char *str = "from";
22555 strbuf._flag = _IOREAD;
22556 strbuf._ptr = strbuf._base = (unsigned char *) str;
22557 strbuf._cnt = strlen(str);
22558 strbuf._file = _NFILE;
22559 return (vfscanf(&strbuf, "%d", ap))
22564 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22565 if { (eval echo "$as_me:22565: \"$ac_link\"") >&5
22566 (eval $ac_link) 2>&5
22568 echo "$as_me:22568: \$? = $ac_status" >&5
22569 (exit "$ac_status"); } &&
22570 { ac_try='test -s "conftest$ac_exeext"'
22571 { (eval echo "$as_me:22571: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22574 echo "$as_me:22574: \$? = $ac_status" >&5
22575 (exit "$ac_status"); }; }; then
22576 cf_cv_func_vsscanf=vfscanf
22578 echo "$as_me: failed program was:" >&5
22579 cat "conftest.$ac_ext" >&5
22581 cat >"conftest.$ac_ext" <<_ACEOF
22582 #line 22582 "configure"
22583 #include "confdefs.h"
22585 #include <stdarg.h>
22592 char *str = "from";
22594 strbuf._flag = _IOREAD;
22595 strbuf._ptr = strbuf._base = (unsigned char *) str;
22596 strbuf._cnt = strlen(str);
22597 strbuf._file = _NFILE;
22598 return (_doscan(&strbuf, "%d", ap))
22603 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22604 if { (eval echo "$as_me:22604: \"$ac_link\"") >&5
22605 (eval $ac_link) 2>&5
22607 echo "$as_me:22607: \$? = $ac_status" >&5
22608 (exit "$ac_status"); } &&
22609 { ac_try='test -s "conftest$ac_exeext"'
22610 { (eval echo "$as_me:22610: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22613 echo "$as_me:22613: \$? = $ac_status" >&5
22614 (exit "$ac_status"); }; }; then
22615 cf_cv_func_vsscanf=_doscan
22617 echo "$as_me: failed program was:" >&5
22618 cat "conftest.$ac_ext" >&5
22620 cf_cv_func_vsscanf=no
22622 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22624 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22626 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22628 echo "$as_me:22628: result: $cf_cv_func_vsscanf" >&5
22629 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22631 case "$cf_cv_func_vsscanf" in
22633 cat >>confdefs.h <<\EOF
22634 #define HAVE_VSSCANF 1
22638 cat >>confdefs.h <<\EOF
22639 #define HAVE_VFSCANF 1
22643 cat >>confdefs.h <<\EOF
22644 #define HAVE__DOSCAN 1
22653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22654 echo "$as_me:22654: checking for $ac_header" >&5
22655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 cat >"conftest.$ac_ext" <<_ACEOF
22660 #line 22660 "configure"
22661 #include "confdefs.h"
22662 #include <$ac_header>
22664 if { (eval echo "$as_me:22664: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22665 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22667 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22669 cat conftest.err >&5
22670 echo "$as_me:22670: \$? = $ac_status" >&5
22671 (exit "$ac_status"); } >/dev/null; then
22672 if test -s conftest.err; then
22673 ac_cpp_err=$ac_c_preproc_warn_flag
22680 if test -z "$ac_cpp_err"; then
22681 eval "$as_ac_Header=yes"
22683 echo "$as_me: failed program was:" >&5
22684 cat "conftest.$ac_ext" >&5
22685 eval "$as_ac_Header=no"
22687 rm -f conftest.err "conftest.$ac_ext"
22689 echo "$as_me:22689: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22690 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22691 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22692 cat >>confdefs.h <<EOF
22693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22699 echo "$as_me:22699: checking for working mkstemp" >&5
22700 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22701 if test "${cf_cv_func_mkstemp+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22706 if test "$cross_compiling" = yes; then
22707 cf_cv_func_mkstemp=maybe
22709 cat >"conftest.$ac_ext" <<_ACEOF
22710 #line 22710 "configure"
22711 #include "confdefs.h"
22713 $ac_includes_default
22717 char *tmpl = "conftestXXXXXX";
22725 for (n = 0; n < 2; ++n) {
22726 strcpy(name[n], tmpl);
22727 if ((fd = mkstemp(name[n])) >= 0) {
22728 if (!strcmp(name[n], tmpl)
22729 || stat(name[n], &sb) != 0
22730 || (sb.st_mode & S_IFMT) != S_IFREG
22731 || (sb.st_mode & 077) != 0) {
22738 && !strcmp(name[0], name[1]))
22740 ${cf_cv_main_return:-return}(result);
22744 rm -f "conftest$ac_exeext"
22745 if { (eval echo "$as_me:22745: \"$ac_link\"") >&5
22746 (eval $ac_link) 2>&5
22748 echo "$as_me:22748: \$? = $ac_status" >&5
22749 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22750 { (eval echo "$as_me:22750: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22753 echo "$as_me:22753: \$? = $ac_status" >&5
22754 (exit "$ac_status"); }; }; then
22755 cf_cv_func_mkstemp=yes
22758 echo "$as_me: program exited with status $ac_status" >&5
22759 echo "$as_me: failed program was:" >&5
22760 cat "conftest.$ac_ext" >&5
22761 cf_cv_func_mkstemp=no
22764 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22768 echo "$as_me:22768: result: $cf_cv_func_mkstemp" >&5
22769 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22770 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22771 echo "$as_me:22771: checking for mkstemp" >&5
22772 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22773 if test "${ac_cv_func_mkstemp+set}" = set; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 cat >"conftest.$ac_ext" <<_ACEOF
22777 #line 22777 "configure"
22778 #include "confdefs.h"
22779 #define mkstemp autoconf_temporary
22780 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22787 /* We use char because int might match the return type of a gcc2
22788 builtin and then its argument prototype would still apply. */
22789 char mkstemp (void);
22795 /* The GNU C library defines stubs for functions which it implements
22796 to always fail with ENOSYS. Some functions are actually named
22797 something starting with __ and the normal name is an alias. */
22798 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22799 #error found stub for mkstemp
22807 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22808 if { (eval echo "$as_me:22808: \"$ac_link\"") >&5
22809 (eval $ac_link) 2>&5
22811 echo "$as_me:22811: \$? = $ac_status" >&5
22812 (exit "$ac_status"); } &&
22813 { ac_try='test -s "conftest$ac_exeext"'
22814 { (eval echo "$as_me:22814: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
22817 echo "$as_me:22817: \$? = $ac_status" >&5
22818 (exit "$ac_status"); }; }; then
22819 ac_cv_func_mkstemp=yes
22821 echo "$as_me: failed program was:" >&5
22822 cat "conftest.$ac_ext" >&5
22823 ac_cv_func_mkstemp=no
22825 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22827 echo "$as_me:22827: result: $ac_cv_func_mkstemp" >&5
22828 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22831 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22833 cat >>confdefs.h <<\EOF
22834 #define HAVE_MKSTEMP 1
22839 # setup for prototype of fallback for vsscanf()
22841 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22847 if test "x$cross_compiling" = xyes ; then
22848 { echo "$as_me:22848: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22849 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22851 echo "$as_me:22851: checking whether setvbuf arguments are reversed" >&5
22852 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22853 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 if test "$cross_compiling" = yes; then
22857 { { echo "$as_me:22857: error: cannot run test program while cross compiling" >&5
22858 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22859 { (exit 1); exit 1; }; }
22861 cat >"conftest.$ac_ext" <<_ACEOF
22862 #line 22862 "configure"
22863 #include "confdefs.h"
22865 /* If setvbuf has the reversed format, exit 0. */
22869 /* This call has the arguments reversed.
22870 A reversed system may check and see that the address of main
22871 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22872 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22873 $ac_main_return(1);
22874 putc('\r', stdout);
22875 $ac_main_return(0); /* Non-reversed systems segv here. */
22878 rm -f "conftest$ac_exeext"
22879 if { (eval echo "$as_me:22879: \"$ac_link\"") >&5
22880 (eval $ac_link) 2>&5
22882 echo "$as_me:22882: \$? = $ac_status" >&5
22883 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22884 { (eval echo "$as_me:22884: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22887 echo "$as_me:22887: \$? = $ac_status" >&5
22888 (exit "$ac_status"); }; }; then
22889 ac_cv_func_setvbuf_reversed=yes
22891 echo "$as_me: program exited with status $ac_status" >&5
22892 echo "$as_me: failed program was:" >&5
22893 cat "conftest.$ac_ext" >&5
22894 ac_cv_func_setvbuf_reversed=no
22896 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22898 rm -f core ./core.* ./*.core
22900 echo "$as_me:22900: result: $ac_cv_func_setvbuf_reversed" >&5
22901 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22902 if test $ac_cv_func_setvbuf_reversed = yes; then
22904 cat >>confdefs.h <<\EOF
22905 #define SETVBUF_REVERSED 1
22911 echo "$as_me:22911: checking for intptr_t" >&5
22912 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22913 if test "${ac_cv_type_intptr_t+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 cat >"conftest.$ac_ext" <<_ACEOF
22917 #line 22917 "configure"
22918 #include "confdefs.h"
22919 $ac_includes_default
22923 if ((intptr_t *) 0)
22925 if (sizeof (intptr_t))
22931 rm -f "conftest.$ac_objext"
22932 if { (eval echo "$as_me:22932: \"$ac_compile\"") >&5
22933 (eval $ac_compile) 2>&5
22935 echo "$as_me:22935: \$? = $ac_status" >&5
22936 (exit "$ac_status"); } &&
22937 { ac_try='test -s "conftest.$ac_objext"'
22938 { (eval echo "$as_me:22938: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22941 echo "$as_me:22941: \$? = $ac_status" >&5
22942 (exit "$ac_status"); }; }; then
22943 ac_cv_type_intptr_t=yes
22945 echo "$as_me: failed program was:" >&5
22946 cat "conftest.$ac_ext" >&5
22947 ac_cv_type_intptr_t=no
22949 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22951 echo "$as_me:22951: result: $ac_cv_type_intptr_t" >&5
22952 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22953 if test "$ac_cv_type_intptr_t" = yes; then
22957 cat >>confdefs.h <<EOF
22958 #define intptr_t long
22963 echo "$as_me:22963: checking for ssize_t" >&5
22964 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22965 if test "${ac_cv_type_ssize_t+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 cat >"conftest.$ac_ext" <<_ACEOF
22969 #line 22969 "configure"
22970 #include "confdefs.h"
22971 $ac_includes_default
22977 if (sizeof (ssize_t))
22983 rm -f "conftest.$ac_objext"
22984 if { (eval echo "$as_me:22984: \"$ac_compile\"") >&5
22985 (eval $ac_compile) 2>&5
22987 echo "$as_me:22987: \$? = $ac_status" >&5
22988 (exit "$ac_status"); } &&
22989 { ac_try='test -s "conftest.$ac_objext"'
22990 { (eval echo "$as_me:22990: \"$ac_try\"") >&5
22991 (eval $ac_try) 2>&5
22993 echo "$as_me:22993: \$? = $ac_status" >&5
22994 (exit "$ac_status"); }; }; then
22995 ac_cv_type_ssize_t=yes
22997 echo "$as_me: failed program was:" >&5
22998 cat "conftest.$ac_ext" >&5
22999 ac_cv_type_ssize_t=no
23001 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23003 echo "$as_me:23003: result: $ac_cv_type_ssize_t" >&5
23004 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
23005 if test "$ac_cv_type_ssize_t" = yes; then
23009 cat >>confdefs.h <<EOF
23010 #define ssize_t int
23015 echo "$as_me:23015: checking for type sigaction_t" >&5
23016 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
23017 if test "${cf_cv_type_sigaction+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 cat >"conftest.$ac_ext" <<_ACEOF
23022 #line 23022 "configure"
23023 #include "confdefs.h"
23025 #include <signal.h>
23034 rm -f "conftest.$ac_objext"
23035 if { (eval echo "$as_me:23035: \"$ac_compile\"") >&5
23036 (eval $ac_compile) 2>&5
23038 echo "$as_me:23038: \$? = $ac_status" >&5
23039 (exit "$ac_status"); } &&
23040 { ac_try='test -s "conftest.$ac_objext"'
23041 { (eval echo "$as_me:23041: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:23044: \$? = $ac_status" >&5
23045 (exit "$ac_status"); }; }; then
23046 cf_cv_type_sigaction=yes
23048 echo "$as_me: failed program was:" >&5
23049 cat "conftest.$ac_ext" >&5
23050 cf_cv_type_sigaction=no
23052 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23055 echo "$as_me:23055: result: $cf_cv_type_sigaction" >&5
23056 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
23057 test "$cf_cv_type_sigaction" = yes &&
23058 cat >>confdefs.h <<\EOF
23059 #define HAVE_TYPE_SIGACTION 1
23062 echo "$as_me:23062: checking declaration of size-change" >&5
23063 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
23064 if test "${cf_cv_sizechange+set}" = set; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
23068 cf_cv_sizechange=unknown
23069 cf_save_CPPFLAGS="$CPPFLAGS"
23071 for cf_opts in "" "NEED_PTEM_H"
23074 CPPFLAGS="$cf_save_CPPFLAGS"
23075 if test -n "$cf_opts"
23078 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23079 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
23082 cat >"conftest.$ac_ext" <<_ACEOF
23083 #line 23083 "configure"
23084 #include "confdefs.h"
23085 #include <sys/types.h>
23086 #ifdef HAVE_TERMIOS_H
23087 #include <termios.h>
23089 #ifdef HAVE_TERMIO_H
23090 #include <termio.h>
23095 /* This is a workaround for SCO: they neglected to define struct winsize in
23096 * termios.h -- it is only in termio.h and ptem.h
23098 #include <sys/stream.h>
23099 #include <sys/ptem.h>
23102 #ifdef HAVE_SYS_IOCTL_H
23103 #include <sys/ioctl.h>
23111 struct ttysize win; /* SunOS 3.0... */
23112 int y = win.ts_lines = 2;
23113 int x = win.ts_cols = 1;
23118 struct winsize win; /* everything else */
23119 int y = win.ws_row = 2;
23120 int x = win.ws_col = 1;
23124 no TIOCGSIZE or TIOCGWINSZ
23125 #endif /* TIOCGWINSZ */
23126 #endif /* TIOCGSIZE */
23132 rm -f "conftest.$ac_objext"
23133 if { (eval echo "$as_me:23133: \"$ac_compile\"") >&5
23134 (eval $ac_compile) 2>&5
23136 echo "$as_me:23136: \$? = $ac_status" >&5
23137 (exit "$ac_status"); } &&
23138 { ac_try='test -s "conftest.$ac_objext"'
23139 { (eval echo "$as_me:23139: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23142 echo "$as_me:23142: \$? = $ac_status" >&5
23143 (exit "$ac_status"); }; }; then
23144 cf_cv_sizechange=yes
23146 echo "$as_me: failed program was:" >&5
23147 cat "conftest.$ac_ext" >&5
23148 cf_cv_sizechange=no
23150 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23152 CPPFLAGS="$cf_save_CPPFLAGS"
23153 if test "$cf_cv_sizechange" = yes ; then
23154 echo "size-change succeeded ($cf_opts)" >&5
23155 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
23161 echo "$as_me:23161: result: $cf_cv_sizechange" >&5
23162 echo "${ECHO_T}$cf_cv_sizechange" >&6
23163 if test "$cf_cv_sizechange" != no ; then
23165 cat >>confdefs.h <<\EOF
23166 #define HAVE_SIZECHANGE 1
23169 case "$cf_cv_sizechange" in
23171 cat >>confdefs.h <<EOF
23172 #define $cf_cv_sizechange 1
23179 echo "$as_me:23179: checking for memmove" >&5
23180 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
23181 if test "${ac_cv_func_memmove+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 cat >"conftest.$ac_ext" <<_ACEOF
23185 #line 23185 "configure"
23186 #include "confdefs.h"
23187 #define memmove autoconf_temporary
23188 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23195 /* We use char because int might match the return type of a gcc2
23196 builtin and then its argument prototype would still apply. */
23197 char memmove (void);
23203 /* The GNU C library defines stubs for functions which it implements
23204 to always fail with ENOSYS. Some functions are actually named
23205 something starting with __ and the normal name is an alias. */
23206 #if defined (__stub_memmove) || defined (__stub___memmove)
23207 #error found stub for memmove
23215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23216 if { (eval echo "$as_me:23216: \"$ac_link\"") >&5
23217 (eval $ac_link) 2>&5
23219 echo "$as_me:23219: \$? = $ac_status" >&5
23220 (exit "$ac_status"); } &&
23221 { ac_try='test -s "conftest$ac_exeext"'
23222 { (eval echo "$as_me:23222: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23225 echo "$as_me:23225: \$? = $ac_status" >&5
23226 (exit "$ac_status"); }; }; then
23227 ac_cv_func_memmove=yes
23229 echo "$as_me: failed program was:" >&5
23230 cat "conftest.$ac_ext" >&5
23231 ac_cv_func_memmove=no
23233 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23235 echo "$as_me:23235: result: $ac_cv_func_memmove" >&5
23236 echo "${ECHO_T}$ac_cv_func_memmove" >&6
23237 if test "$ac_cv_func_memmove" = yes; then
23241 echo "$as_me:23241: checking for bcopy" >&5
23242 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
23243 if test "${ac_cv_func_bcopy+set}" = set; then
23244 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 cat >"conftest.$ac_ext" <<_ACEOF
23247 #line 23247 "configure"
23248 #include "confdefs.h"
23249 #define bcopy autoconf_temporary
23250 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23257 /* We use char because int might match the return type of a gcc2
23258 builtin and then its argument prototype would still apply. */
23265 /* The GNU C library defines stubs for functions which it implements
23266 to always fail with ENOSYS. Some functions are actually named
23267 something starting with __ and the normal name is an alias. */
23268 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23269 #error found stub for bcopy
23277 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23278 if { (eval echo "$as_me:23278: \"$ac_link\"") >&5
23279 (eval $ac_link) 2>&5
23281 echo "$as_me:23281: \$? = $ac_status" >&5
23282 (exit "$ac_status"); } &&
23283 { ac_try='test -s "conftest$ac_exeext"'
23284 { (eval echo "$as_me:23284: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23287 echo "$as_me:23287: \$? = $ac_status" >&5
23288 (exit "$ac_status"); }; }; then
23289 ac_cv_func_bcopy=yes
23291 echo "$as_me: failed program was:" >&5
23292 cat "conftest.$ac_ext" >&5
23293 ac_cv_func_bcopy=no
23295 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23297 echo "$as_me:23297: result: $ac_cv_func_bcopy" >&5
23298 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23299 if test "$ac_cv_func_bcopy" = yes; then
23301 echo "$as_me:23301: checking if bcopy does overlapping moves" >&5
23302 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23303 if test "${cf_cv_good_bcopy+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 if test "$cross_compiling" = yes; then
23308 cf_cv_good_bcopy=unknown
23310 cat >"conftest.$ac_ext" <<_ACEOF
23311 #line 23311 "configure"
23312 #include "confdefs.h"
23314 $ac_includes_default
23317 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23319 bcopy(data, temp, sizeof(data));
23320 bcopy(temp+10, temp, 15);
23321 bcopy(temp+5, temp+15, 10);
23322 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23326 rm -f "conftest$ac_exeext"
23327 if { (eval echo "$as_me:23327: \"$ac_link\"") >&5
23328 (eval $ac_link) 2>&5
23330 echo "$as_me:23330: \$? = $ac_status" >&5
23331 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23332 { (eval echo "$as_me:23332: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23335 echo "$as_me:23335: \$? = $ac_status" >&5
23336 (exit "$ac_status"); }; }; then
23337 cf_cv_good_bcopy=yes
23339 echo "$as_me: program exited with status $ac_status" >&5
23340 echo "$as_me: failed program was:" >&5
23341 cat "conftest.$ac_ext" >&5
23342 cf_cv_good_bcopy=no
23344 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23348 echo "$as_me:23348: result: $cf_cv_good_bcopy" >&5
23349 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23352 cf_cv_good_bcopy=no
23355 if test "$cf_cv_good_bcopy" = yes ; then
23357 cat >>confdefs.h <<\EOF
23358 #define USE_OK_BCOPY 1
23363 cat >>confdefs.h <<\EOF
23364 #define USE_MY_MEMMOVE 1
23371 tty >/dev/null 2>&1 || {
23372 for ac_func in posix_openpt
23374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23375 echo "$as_me:23375: checking for $ac_func" >&5
23376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23377 if eval "test \"\${$as_ac_var+set}\" = set"; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 cat >"conftest.$ac_ext" <<_ACEOF
23381 #line 23381 "configure"
23382 #include "confdefs.h"
23383 #define $ac_func autoconf_temporary
23384 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23391 /* We use char because int might match the return type of a gcc2
23392 builtin and then its argument prototype would still apply. */
23393 char $ac_func (void);
23399 /* The GNU C library defines stubs for functions which it implements
23400 to always fail with ENOSYS. Some functions are actually named
23401 something starting with __ and the normal name is an alias. */
23402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23403 #error found stub for $ac_func
23406 return $ac_func ();
23411 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23412 if { (eval echo "$as_me:23412: \"$ac_link\"") >&5
23413 (eval $ac_link) 2>&5
23415 echo "$as_me:23415: \$? = $ac_status" >&5
23416 (exit "$ac_status"); } &&
23417 { ac_try='test -s "conftest$ac_exeext"'
23418 { (eval echo "$as_me:23418: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23421 echo "$as_me:23421: \$? = $ac_status" >&5
23422 (exit "$ac_status"); }; }; then
23423 eval "$as_ac_var=yes"
23425 echo "$as_me: failed program was:" >&5
23426 cat "conftest.$ac_ext" >&5
23427 eval "$as_ac_var=no"
23429 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23431 echo "$as_me:23431: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23432 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23433 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23434 cat >>confdefs.h <<EOF
23435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23441 echo "$as_me:23441: checking if poll really works" >&5
23442 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23443 if test "${cf_cv_working_poll+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23447 if test "$cross_compiling" = yes; then
23448 cf_cv_working_poll=unknown
23450 cat >"conftest.$ac_ext" <<_ACEOF
23451 #line 23451 "configure"
23452 #include "confdefs.h"
23454 $ac_includes_default
23461 #include <sys/poll.h>
23465 struct pollfd myfds;
23468 /* check for Darwin bug with respect to "devices" */
23469 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23472 myfds.events = POLLIN;
23475 ret = poll(&myfds, 1, 100);
23477 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23482 fd = open("/dev/tty", 2); /* O_RDWR */
23484 #ifdef HAVE_POSIX_OPENPT
23486 fd = posix_openpt(O_RDWR);
23491 /* also check with standard input */
23493 myfds.events = POLLIN;
23495 ret = poll(&myfds, 1, 100);
23500 ${cf_cv_main_return:-return}(ret < 0);
23503 rm -f "conftest$ac_exeext"
23504 if { (eval echo "$as_me:23504: \"$ac_link\"") >&5
23505 (eval $ac_link) 2>&5
23507 echo "$as_me:23507: \$? = $ac_status" >&5
23508 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23509 { (eval echo "$as_me:23509: \"$ac_try\"") >&5
23510 (eval $ac_try) 2>&5
23512 echo "$as_me:23512: \$? = $ac_status" >&5
23513 (exit "$ac_status"); }; }; then
23514 cf_cv_working_poll=yes
23516 echo "$as_me: program exited with status $ac_status" >&5
23517 echo "$as_me: failed program was:" >&5
23518 cat "conftest.$ac_ext" >&5
23519 cf_cv_working_poll=no
23521 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23524 echo "$as_me:23524: result: $cf_cv_working_poll" >&5
23525 echo "${ECHO_T}$cf_cv_working_poll" >&6
23526 test "$cf_cv_working_poll" = "yes" &&
23527 cat >>confdefs.h <<\EOF
23528 #define HAVE_WORKING_POLL 1
23531 echo "$as_me:23531: checking for va_copy" >&5
23532 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23533 if test "${cf_cv_have_va_copy+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23537 cat >"conftest.$ac_ext" <<_ACEOF
23538 #line 23538 "configure"
23539 #include "confdefs.h"
23541 #include <stdarg.h>
23547 static va_list dst;
23548 static va_list src;
23554 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23555 if { (eval echo "$as_me:23555: \"$ac_link\"") >&5
23556 (eval $ac_link) 2>&5
23558 echo "$as_me:23558: \$? = $ac_status" >&5
23559 (exit "$ac_status"); } &&
23560 { ac_try='test -s "conftest$ac_exeext"'
23561 { (eval echo "$as_me:23561: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23564 echo "$as_me:23564: \$? = $ac_status" >&5
23565 (exit "$ac_status"); }; }; then
23566 cf_cv_have_va_copy=yes
23568 echo "$as_me: failed program was:" >&5
23569 cat "conftest.$ac_ext" >&5
23570 cf_cv_have_va_copy=no
23572 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23574 echo "$as_me:23574: result: $cf_cv_have_va_copy" >&5
23575 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23577 if test "$cf_cv_have_va_copy" = yes;
23580 cat >>confdefs.h <<\EOF
23581 #define HAVE_VA_COPY 1
23584 else # !cf_cv_have_va_copy
23586 echo "$as_me:23586: checking for __va_copy" >&5
23587 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23588 if test "${cf_cv_have___va_copy+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 cat >"conftest.$ac_ext" <<_ACEOF
23593 #line 23593 "configure"
23594 #include "confdefs.h"
23596 #include <stdarg.h>
23602 static va_list dst;
23603 static va_list src;
23604 __va_copy(dst, src)
23609 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23610 if { (eval echo "$as_me:23610: \"$ac_link\"") >&5
23611 (eval $ac_link) 2>&5
23613 echo "$as_me:23613: \$? = $ac_status" >&5
23614 (exit "$ac_status"); } &&
23615 { ac_try='test -s "conftest$ac_exeext"'
23616 { (eval echo "$as_me:23616: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:23619: \$? = $ac_status" >&5
23620 (exit "$ac_status"); }; }; then
23621 cf_cv_have___va_copy=yes
23623 echo "$as_me: failed program was:" >&5
23624 cat "conftest.$ac_ext" >&5
23625 cf_cv_have___va_copy=no
23627 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23629 echo "$as_me:23629: result: $cf_cv_have___va_copy" >&5
23630 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23632 if test "$cf_cv_have___va_copy" = yes
23635 cat >>confdefs.h <<\EOF
23636 #define HAVE___VA_COPY 1
23639 else # !cf_cv_have___va_copy
23641 echo "$as_me:23641: checking for __builtin_va_copy" >&5
23642 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23643 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23647 cat >"conftest.$ac_ext" <<_ACEOF
23648 #line 23648 "configure"
23649 #include "confdefs.h"
23651 #include <stdarg.h>
23657 static va_list dst;
23658 static va_list src;
23659 __builtin_va_copy(dst, src)
23664 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23665 if { (eval echo "$as_me:23665: \"$ac_link\"") >&5
23666 (eval $ac_link) 2>&5
23668 echo "$as_me:23668: \$? = $ac_status" >&5
23669 (exit "$ac_status"); } &&
23670 { ac_try='test -s "conftest$ac_exeext"'
23671 { (eval echo "$as_me:23671: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23674 echo "$as_me:23674: \$? = $ac_status" >&5
23675 (exit "$ac_status"); }; }; then
23676 cf_cv_have___builtin_va_copy=yes
23678 echo "$as_me: failed program was:" >&5
23679 cat "conftest.$ac_ext" >&5
23680 cf_cv_have___builtin_va_copy=no
23682 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23684 echo "$as_me:23684: result: $cf_cv_have___builtin_va_copy" >&5
23685 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23687 test "$cf_cv_have___builtin_va_copy" = yes &&
23689 cat >>confdefs.h <<\EOF
23690 #define HAVE___BUILTIN_VA_COPY 1
23693 fi # cf_cv_have___va_copy
23695 fi # cf_cv_have_va_copy
23697 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23702 echo "$as_me:23702: checking if we can simply copy va_list" >&5
23703 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23704 if test "${cf_cv_pointer_va_list+set}" = set; then
23705 echo $ECHO_N "(cached) $ECHO_C" >&6
23708 cat >"conftest.$ac_ext" <<_ACEOF
23709 #line 23709 "configure"
23710 #include "confdefs.h"
23712 #include <stdarg.h>
23725 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23726 if { (eval echo "$as_me:23726: \"$ac_link\"") >&5
23727 (eval $ac_link) 2>&5
23729 echo "$as_me:23729: \$? = $ac_status" >&5
23730 (exit "$ac_status"); } &&
23731 { ac_try='test -s "conftest$ac_exeext"'
23732 { (eval echo "$as_me:23732: \"$ac_try\"") >&5
23733 (eval $ac_try) 2>&5
23735 echo "$as_me:23735: \$? = $ac_status" >&5
23736 (exit "$ac_status"); }; }; then
23737 cf_cv_pointer_va_list=yes
23739 echo "$as_me: failed program was:" >&5
23740 cat "conftest.$ac_ext" >&5
23741 cf_cv_pointer_va_list=no
23743 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23745 echo "$as_me:23745: result: $cf_cv_pointer_va_list" >&5
23746 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23748 if test "$cf_cv_pointer_va_list" = no
23750 echo "$as_me:23750: checking if we can copy va_list indirectly" >&5
23751 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23752 if test "${cf_cv_array_va_list+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 cat >"conftest.$ac_ext" <<_ACEOF
23757 #line 23757 "configure"
23758 #include "confdefs.h"
23760 #include <stdarg.h>
23773 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23774 if { (eval echo "$as_me:23774: \"$ac_link\"") >&5
23775 (eval $ac_link) 2>&5
23777 echo "$as_me:23777: \$? = $ac_status" >&5
23778 (exit "$ac_status"); } &&
23779 { ac_try='test -s "conftest$ac_exeext"'
23780 { (eval echo "$as_me:23780: \"$ac_try\"") >&5
23781 (eval $ac_try) 2>&5
23783 echo "$as_me:23783: \$? = $ac_status" >&5
23784 (exit "$ac_status"); }; }; then
23785 cf_cv_array_va_list=yes
23787 echo "$as_me: failed program was:" >&5
23788 cat "conftest.$ac_ext" >&5
23789 cf_cv_array_va_list=no
23791 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23793 echo "$as_me:23793: result: $cf_cv_array_va_list" >&5
23794 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23795 test "$cf_cv_array_va_list" = yes &&
23796 cat >>confdefs.h <<\EOF
23797 #define ARRAY_VA_LIST 1
23804 echo "$as_me:23804: checking for pid_t" >&5
23805 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23806 if test "${ac_cv_type_pid_t+set}" = set; then
23807 echo $ECHO_N "(cached) $ECHO_C" >&6
23809 cat >"conftest.$ac_ext" <<_ACEOF
23810 #line 23810 "configure"
23811 #include "confdefs.h"
23812 $ac_includes_default
23818 if (sizeof (pid_t))
23824 rm -f "conftest.$ac_objext"
23825 if { (eval echo "$as_me:23825: \"$ac_compile\"") >&5
23826 (eval $ac_compile) 2>&5
23828 echo "$as_me:23828: \$? = $ac_status" >&5
23829 (exit "$ac_status"); } &&
23830 { ac_try='test -s "conftest.$ac_objext"'
23831 { (eval echo "$as_me:23831: \"$ac_try\"") >&5
23832 (eval $ac_try) 2>&5
23834 echo "$as_me:23834: \$? = $ac_status" >&5
23835 (exit "$ac_status"); }; }; then
23836 ac_cv_type_pid_t=yes
23838 echo "$as_me: failed program was:" >&5
23839 cat "conftest.$ac_ext" >&5
23840 ac_cv_type_pid_t=no
23842 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23844 echo "$as_me:23844: result: $ac_cv_type_pid_t" >&5
23845 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23846 if test "$ac_cv_type_pid_t" = yes; then
23850 cat >>confdefs.h <<EOF
23856 for ac_header in unistd.h vfork.h
23858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23859 echo "$as_me:23859: checking for $ac_header" >&5
23860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23862 echo $ECHO_N "(cached) $ECHO_C" >&6
23864 cat >"conftest.$ac_ext" <<_ACEOF
23865 #line 23865 "configure"
23866 #include "confdefs.h"
23867 #include <$ac_header>
23869 if { (eval echo "$as_me:23869: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23870 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23872 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23874 cat conftest.err >&5
23875 echo "$as_me:23875: \$? = $ac_status" >&5
23876 (exit "$ac_status"); } >/dev/null; then
23877 if test -s conftest.err; then
23878 ac_cpp_err=$ac_c_preproc_warn_flag
23885 if test -z "$ac_cpp_err"; then
23886 eval "$as_ac_Header=yes"
23888 echo "$as_me: failed program was:" >&5
23889 cat "conftest.$ac_ext" >&5
23890 eval "$as_ac_Header=no"
23892 rm -f conftest.err "conftest.$ac_ext"
23894 echo "$as_me:23894: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23895 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23896 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23897 cat >>confdefs.h <<EOF
23898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23904 for ac_func in fork vfork
23906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23907 echo "$as_me:23907: checking for $ac_func" >&5
23908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23909 if eval "test \"\${$as_ac_var+set}\" = set"; then
23910 echo $ECHO_N "(cached) $ECHO_C" >&6
23912 cat >"conftest.$ac_ext" <<_ACEOF
23913 #line 23913 "configure"
23914 #include "confdefs.h"
23915 #define $ac_func autoconf_temporary
23916 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23923 /* We use char because int might match the return type of a gcc2
23924 builtin and then its argument prototype would still apply. */
23925 char $ac_func (void);
23931 /* The GNU C library defines stubs for functions which it implements
23932 to always fail with ENOSYS. Some functions are actually named
23933 something starting with __ and the normal name is an alias. */
23934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23935 #error found stub for $ac_func
23938 return $ac_func ();
23943 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23944 if { (eval echo "$as_me:23944: \"$ac_link\"") >&5
23945 (eval $ac_link) 2>&5
23947 echo "$as_me:23947: \$? = $ac_status" >&5
23948 (exit "$ac_status"); } &&
23949 { ac_try='test -s "conftest$ac_exeext"'
23950 { (eval echo "$as_me:23950: \"$ac_try\"") >&5
23951 (eval $ac_try) 2>&5
23953 echo "$as_me:23953: \$? = $ac_status" >&5
23954 (exit "$ac_status"); }; }; then
23955 eval "$as_ac_var=yes"
23957 echo "$as_me: failed program was:" >&5
23958 cat "conftest.$ac_ext" >&5
23959 eval "$as_ac_var=no"
23961 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23963 echo "$as_me:23963: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23964 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23965 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23966 cat >>confdefs.h <<EOF
23967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23973 ac_cv_func_fork_works=$ac_cv_func_fork
23974 if test "x$ac_cv_func_fork" = xyes; then
23975 echo "$as_me:23975: checking for working fork" >&5
23976 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23977 if test "${ac_cv_func_fork_works+set}" = set; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23980 if test "$cross_compiling" = yes; then
23981 ac_cv_func_fork_works=cross
23983 cat >"conftest.$ac_ext" <<_ACEOF
23984 /* By Rüdiger Kuhlmann. */
23985 #include <sys/types.h>
23987 # include <unistd.h>
23989 /* Some systems only have a dummy stub for fork() */
23993 $ac_main_return (1);
23994 $ac_main_return (0);
23997 rm -f "conftest$ac_exeext"
23998 if { (eval echo "$as_me:23998: \"$ac_link\"") >&5
23999 (eval $ac_link) 2>&5
24001 echo "$as_me:24001: \$? = $ac_status" >&5
24002 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24003 { (eval echo "$as_me:24003: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24006 echo "$as_me:24006: \$? = $ac_status" >&5
24007 (exit "$ac_status"); }; }; then
24008 ac_cv_func_fork_works=yes
24010 echo "$as_me: program exited with status $ac_status" >&5
24011 echo "$as_me: failed program was:" >&5
24012 cat "conftest.$ac_ext" >&5
24013 ac_cv_func_fork_works=no
24015 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24018 echo "$as_me:24018: result: $ac_cv_func_fork_works" >&5
24019 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
24022 if test "x$ac_cv_func_fork_works" = xcross; then
24024 *-*-amigaos* | *-*-msdosdjgpp*)
24025 # Override, as these systems have only a dummy fork() stub
24026 ac_cv_func_fork_works=no
24029 ac_cv_func_fork_works=yes
24032 { echo "$as_me:24032: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
24033 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
24035 ac_cv_func_vfork_works=$ac_cv_func_vfork
24036 if test "x$ac_cv_func_vfork" = xyes; then
24037 echo "$as_me:24037: checking for working vfork" >&5
24038 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
24039 if test "${ac_cv_func_vfork_works+set}" = set; then
24040 echo $ECHO_N "(cached) $ECHO_C" >&6
24042 if test "$cross_compiling" = yes; then
24043 ac_cv_func_vfork_works=cross
24045 cat >"conftest.$ac_ext" <<_ACEOF
24046 #line 24046 "configure"
24047 #include "confdefs.h"
24048 /* Thanks to Paul Eggert for this test. */
24050 #include <sys/types.h>
24051 #include <sys/stat.h>
24053 # include <unistd.h>
24056 # include <vfork.h>
24058 /* On some sparc systems, changes by the child to local and incoming
24059 argument registers are propagated back to the parent. The compiler
24060 is told about this with #include <vfork.h>, but some compilers
24061 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24062 static variable whose address is put into a register that is
24063 clobbered by the vfork. */
24066 sparc_address_test (int arg)
24068 sparc_address_test (arg) int arg;
24071 static pid_t child;
24089 pid_t parent = getpid ();
24092 sparc_address_test ();
24097 /* Here is another test for sparc vfork register problems. This
24098 test uses lots of local variables, at least as many local
24099 variables as main has allocated so far including compiler
24100 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24101 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24102 reuse the register of parent for one of the local variables,
24103 since it will think that parent can't possibly be used any more
24104 in this routine. Assigning to the local variable will thus
24105 munge parent in the parent process. */
24107 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24108 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24109 /* Convince the compiler that p..p7 are live; otherwise, it might
24110 use the same hardware register for all 8 local variables. */
24111 if (p != p1 || p != p2 || p != p3 || p != p4
24112 || p != p5 || p != p6 || p != p7)
24115 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24116 from child file descriptors. If the child closes a descriptor
24117 before it execs or exits, this munges the parent's descriptor
24118 as well. Test for this by closing stdout in the child. */
24119 _exit(close(fileno(stdout)) != 0);
24124 while (wait(&status) != child)
24127 /* Was there some problem with vforking? */
24130 /* Did the child fail? (This shouldn't happen.) */
24133 /* Did the vfork/compiler bug occur? */
24134 || parent != getpid()
24136 /* Did the file descriptor bug occur? */
24137 || fstat(fileno(stdout), &st) != 0
24142 rm -f "conftest$ac_exeext"
24143 if { (eval echo "$as_me:24143: \"$ac_link\"") >&5
24144 (eval $ac_link) 2>&5
24146 echo "$as_me:24146: \$? = $ac_status" >&5
24147 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24148 { (eval echo "$as_me:24148: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24151 echo "$as_me:24151: \$? = $ac_status" >&5
24152 (exit "$ac_status"); }; }; then
24153 ac_cv_func_vfork_works=yes
24155 echo "$as_me: program exited with status $ac_status" >&5
24156 echo "$as_me: failed program was:" >&5
24157 cat "conftest.$ac_ext" >&5
24158 ac_cv_func_vfork_works=no
24160 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24163 echo "$as_me:24163: result: $ac_cv_func_vfork_works" >&5
24164 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24167 if test "x$ac_cv_func_fork_works" = xcross; then
24168 ac_cv_func_vfork_works=ac_cv_func_vfork
24169 { echo "$as_me:24169: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
24170 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
24173 if test "x$ac_cv_func_vfork_works" = xyes; then
24175 cat >>confdefs.h <<\EOF
24176 #define HAVE_WORKING_VFORK 1
24181 cat >>confdefs.h <<\EOF
24186 if test "x$ac_cv_func_fork_works" = xyes; then
24188 cat >>confdefs.h <<\EOF
24189 #define HAVE_WORKING_FORK 1
24194 echo "$as_me:24194: checking if fopen accepts explicit binary mode" >&5
24195 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
24196 if test "${cf_cv_fopen_bin_r+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 if test "$cross_compiling" = yes; then
24201 cf_cv_fopen_bin_r=unknown
24203 cat >"conftest.$ac_ext" <<_ACEOF
24204 #line 24204 "configure"
24205 #include "confdefs.h"
24207 $ac_includes_default
24211 FILE *fp = fopen("conftest.tmp", "wb");
24215 for (p = 0; p < 256; ++p) {
24219 fp = fopen("conftest.tmp", "rb");
24221 for (p = 0; p < 256; ++p) {
24234 ${cf_cv_main_return:-return} (rc);
24238 rm -f "conftest$ac_exeext"
24239 if { (eval echo "$as_me:24239: \"$ac_link\"") >&5
24240 (eval $ac_link) 2>&5
24242 echo "$as_me:24242: \$? = $ac_status" >&5
24243 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24244 { (eval echo "$as_me:24244: \"$ac_try\"") >&5
24245 (eval $ac_try) 2>&5
24247 echo "$as_me:24247: \$? = $ac_status" >&5
24248 (exit "$ac_status"); }; }; then
24249 cf_cv_fopen_bin_r=yes
24251 echo "$as_me: program exited with status $ac_status" >&5
24252 echo "$as_me: failed program was:" >&5
24253 cat "conftest.$ac_ext" >&5
24254 cf_cv_fopen_bin_r=no
24256 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24260 echo "$as_me:24260: result: $cf_cv_fopen_bin_r" >&5
24261 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24262 test "x$cf_cv_fopen_bin_r" != xno &&
24263 cat >>confdefs.h <<\EOF
24264 #define USE_FOPEN_BIN_R 1
24267 # special check for test/ditto.c
24269 echo "$as_me:24269: checking for openpty in -lutil" >&5
24270 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24271 if test "${ac_cv_lib_util_openpty+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24274 ac_check_lib_save_LIBS=$LIBS
24275 LIBS="-lutil $LIBS"
24276 cat >"conftest.$ac_ext" <<_ACEOF
24277 #line 24277 "configure"
24278 #include "confdefs.h"
24280 /* Override any gcc2 internal prototype to avoid an error. */
24284 /* We use char because int might match the return type of a gcc2
24285 builtin and then its argument prototype would still apply. */
24295 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24296 if { (eval echo "$as_me:24296: \"$ac_link\"") >&5
24297 (eval $ac_link) 2>&5
24299 echo "$as_me:24299: \$? = $ac_status" >&5
24300 (exit "$ac_status"); } &&
24301 { ac_try='test -s "conftest$ac_exeext"'
24302 { (eval echo "$as_me:24302: \"$ac_try\"") >&5
24303 (eval $ac_try) 2>&5
24305 echo "$as_me:24305: \$? = $ac_status" >&5
24306 (exit "$ac_status"); }; }; then
24307 ac_cv_lib_util_openpty=yes
24309 echo "$as_me: failed program was:" >&5
24310 cat "conftest.$ac_ext" >&5
24311 ac_cv_lib_util_openpty=no
24313 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24314 LIBS=$ac_check_lib_save_LIBS
24316 echo "$as_me:24316: result: $ac_cv_lib_util_openpty" >&5
24317 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24318 if test "$ac_cv_lib_util_openpty" = yes; then
24324 echo "$as_me:24324: checking for openpty header" >&5
24325 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24326 if test "${cf_cv_func_openpty+set}" = set; then
24327 echo $ECHO_N "(cached) $ECHO_C" >&6
24330 cf_save_LIBS="$LIBS"
24331 test "$cf_cv_lib_util" = yes && {
24332 cf_add_libs="$LIBS"
24335 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24336 # filter duplicates
24337 for cf_add_1lib in $cf_add_0lib; do
24338 for cf_add_2lib in $cf_add_libs; do
24339 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24344 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24346 LIBS="$cf_add_libs"
24348 for cf_header in pty.h libutil.h util.h
24350 cat >"conftest.$ac_ext" <<_ACEOF
24351 #line 24351 "configure"
24352 #include "confdefs.h"
24354 #include <$cf_header>
24360 int x = openpty((int *)0, (int *)0, (char *)0,
24361 (struct termios *)0, (struct winsize *)0);
24367 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24368 if { (eval echo "$as_me:24368: \"$ac_link\"") >&5
24369 (eval $ac_link) 2>&5
24371 echo "$as_me:24371: \$? = $ac_status" >&5
24372 (exit "$ac_status"); } &&
24373 { ac_try='test -s "conftest$ac_exeext"'
24374 { (eval echo "$as_me:24374: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24377 echo "$as_me:24377: \$? = $ac_status" >&5
24378 (exit "$ac_status"); }; }; then
24380 cf_cv_func_openpty=$cf_header
24384 echo "$as_me: failed program was:" >&5
24385 cat "conftest.$ac_ext" >&5
24387 cf_cv_func_openpty=no
24390 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24392 LIBS="$cf_save_LIBS"
24395 echo "$as_me:24395: result: $cf_cv_func_openpty" >&5
24396 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24398 if test "$cf_cv_func_openpty" != no ; then
24400 cat >>confdefs.h <<EOF
24401 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24404 cat >>confdefs.h <<\EOF
24405 #define USE_XTERM_PTY 1
24408 if test "x$cf_cv_lib_util" = xyes ; then
24410 cf_add_libs="$TEST_LIBS"
24413 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24414 # filter duplicates
24415 for cf_add_1lib in $cf_add_0lib; do
24416 for cf_add_2lib in $cf_add_libs; do
24417 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24422 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24424 TEST_LIBS="$cf_add_libs"
24429 if test "$with_hashed_db" != no ; then
24431 cat >>confdefs.h <<\EOF
24432 #define USE_HASHED_DB 1
24435 case $with_hashed_db in
24439 if test -d "$with_hashed_db" ; then
24441 if test -n "$with_hashed_db/include" ; then
24442 for cf_add_incdir in $with_hashed_db/include
24444 while test "$cf_add_incdir" != /usr/include
24446 if test -d "$cf_add_incdir"
24449 if test -n "$CFLAGS$CPPFLAGS" ; then
24450 # a loop is needed to ensure we can add subdirs of existing dirs
24451 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24452 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24453 cf_have_incdir=yes; break
24458 if test "$cf_have_incdir" = no ; then
24459 if test "$cf_add_incdir" = /usr/local/include ; then
24460 if test "$GCC" = yes
24462 cf_save_CPPFLAGS=$CPPFLAGS
24464 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24465 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24467 cat >"conftest.$ac_ext" <<_ACEOF
24468 #line 24468 "configure"
24469 #include "confdefs.h"
24479 rm -f "conftest.$ac_objext"
24480 if { (eval echo "$as_me:24480: \"$ac_compile\"") >&5
24481 (eval $ac_compile) 2>&5
24483 echo "$as_me:24483: \$? = $ac_status" >&5
24484 (exit "$ac_status"); } &&
24485 { ac_try='test -s "conftest.$ac_objext"'
24486 { (eval echo "$as_me:24486: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24489 echo "$as_me:24489: \$? = $ac_status" >&5
24490 (exit "$ac_status"); }; }; then
24493 echo "$as_me: failed program was:" >&5
24494 cat "conftest.$ac_ext" >&5
24497 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24498 CPPFLAGS=$cf_save_CPPFLAGS
24503 if test "$cf_have_incdir" = no ; then
24504 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24506 echo "${as_me:-configure}:24506: testing adding $cf_add_incdir to include-path ..." 1>&5
24508 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24510 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24511 test "$cf_top_incdir" = "$cf_add_incdir" && break
24512 cf_add_incdir="$cf_top_incdir"
24523 if test -n "$with_hashed_db/lib" ; then
24524 for cf_add_libdir in $with_hashed_db/lib
24526 if test "$cf_add_libdir" = /usr/lib ; then
24528 elif test -d "$cf_add_libdir"
24531 if test -n "$LDFLAGS$LIBS" ; then
24532 # a loop is needed to ensure we can add subdirs of existing dirs
24533 for cf_test_libdir in $LDFLAGS $LIBS ; do
24534 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24535 cf_have_libdir=yes; break
24539 if test "$cf_have_libdir" = no ; then
24540 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24542 echo "${as_me:-configure}:24542: testing adding $cf_add_libdir to library-path ..." 1>&5
24544 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24551 case "$with_hashed_db" in
24553 { echo "$as_me:24553: WARNING: no such directory $with_hashed_db" >&5
24554 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24560 test "x$prefix" != "xNONE" && \
24561 test -d "$prefix" && \
24563 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24564 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24565 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24566 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24567 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24568 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24571 for cf_subdir_prefix in \
24580 test "x$cf_subdir_prefix" != "x$prefix" && \
24581 test -d "$cf_subdir_prefix" && \
24582 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24583 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24584 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24585 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24586 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24587 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24588 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"
24593 for cf_item in $cf_search
24596 (*/$with_hashed_db)
24598 if test -n "$cf_item" ; then
24599 for cf_add_incdir in $cf_item
24601 while test "$cf_add_incdir" != /usr/include
24603 if test -d "$cf_add_incdir"
24606 if test -n "$CFLAGS$CPPFLAGS" ; then
24607 # a loop is needed to ensure we can add subdirs of existing dirs
24608 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24609 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24610 cf_have_incdir=yes; break
24615 if test "$cf_have_incdir" = no ; then
24616 if test "$cf_add_incdir" = /usr/local/include ; then
24617 if test "$GCC" = yes
24619 cf_save_CPPFLAGS=$CPPFLAGS
24621 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24622 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24624 cat >"conftest.$ac_ext" <<_ACEOF
24625 #line 24625 "configure"
24626 #include "confdefs.h"
24636 rm -f "conftest.$ac_objext"
24637 if { (eval echo "$as_me:24637: \"$ac_compile\"") >&5
24638 (eval $ac_compile) 2>&5
24640 echo "$as_me:24640: \$? = $ac_status" >&5
24641 (exit "$ac_status"); } &&
24642 { ac_try='test -s "conftest.$ac_objext"'
24643 { (eval echo "$as_me:24643: \"$ac_try\"") >&5
24644 (eval $ac_try) 2>&5
24646 echo "$as_me:24646: \$? = $ac_status" >&5
24647 (exit "$ac_status"); }; }; then
24650 echo "$as_me: failed program was:" >&5
24651 cat "conftest.$ac_ext" >&5
24654 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24655 CPPFLAGS=$cf_save_CPPFLAGS
24660 if test "$cf_have_incdir" = no ; then
24661 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24663 echo "${as_me:-configure}:24663: testing adding $cf_add_incdir to include-path ..." 1>&5
24665 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24667 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24668 test "$cf_top_incdir" = "$cf_add_incdir" && break
24669 cf_add_incdir="$cf_top_incdir"
24686 test "x$prefix" != "xNONE" && \
24687 test -d "$prefix" && \
24689 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24690 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24691 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24692 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24693 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24694 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24697 for cf_subdir_prefix in \
24706 test "x$cf_subdir_prefix" != "x$prefix" && \
24707 test -d "$cf_subdir_prefix" && \
24708 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24709 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24710 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24711 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24712 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24713 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24714 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"
24719 for cf_item in $cf_search
24722 (*/$with_hashed_db)
24724 if test -n "$cf_item" ; then
24725 for cf_add_libdir in $cf_item
24727 if test "$cf_add_libdir" = /usr/lib ; then
24729 elif test -d "$cf_add_libdir"
24732 if test -n "$LDFLAGS$LIBS" ; then
24733 # a loop is needed to ensure we can add subdirs of existing dirs
24734 for cf_test_libdir in $LDFLAGS $LIBS ; do
24735 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24736 cf_have_libdir=yes; break
24740 if test "$cf_have_libdir" = no ; then
24741 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24743 echo "${as_me:-configure}:24743: testing adding $cf_add_libdir to library-path ..." 1>&5
24745 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24760 echo "$as_me:24760: checking for db.h" >&5
24761 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24762 if test "${ac_cv_header_db_h+set}" = set; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24765 cat >"conftest.$ac_ext" <<_ACEOF
24766 #line 24766 "configure"
24767 #include "confdefs.h"
24770 if { (eval echo "$as_me:24770: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24771 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24773 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24775 cat conftest.err >&5
24776 echo "$as_me:24776: \$? = $ac_status" >&5
24777 (exit "$ac_status"); } >/dev/null; then
24778 if test -s conftest.err; then
24779 ac_cpp_err=$ac_c_preproc_warn_flag
24786 if test -z "$ac_cpp_err"; then
24787 ac_cv_header_db_h=yes
24789 echo "$as_me: failed program was:" >&5
24790 cat "conftest.$ac_ext" >&5
24791 ac_cv_header_db_h=no
24793 rm -f conftest.err "conftest.$ac_ext"
24795 echo "$as_me:24795: result: $ac_cv_header_db_h" >&5
24796 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24797 if test "$ac_cv_header_db_h" = yes; then
24799 echo "$as_me:24799: checking for version of db" >&5
24800 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24801 if test "${cf_cv_hashed_db_version+set}" = set; then
24802 echo $ECHO_N "(cached) $ECHO_C" >&6
24805 cf_cv_hashed_db_version=unknown
24807 for cf_db_version in 1 2 3 4 5 6
24810 echo "${as_me:-configure}:24810: testing checking for db version $cf_db_version ..." 1>&5
24812 cat >"conftest.$ac_ext" <<_ACEOF
24813 #line 24813 "configure"
24814 #include "confdefs.h"
24816 $ac_includes_default
24819 #ifdef DB_VERSION_MAJOR
24820 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24821 #if $cf_db_version == DB_VERSION_MAJOR
24824 #error $cf_db_version is not DB_VERSION_MAJOR
24827 #if $cf_db_version == 1
24828 /* ok: assuming this is DB 1.8.5 */
24830 #error $cf_db_version is not 1
24842 rm -f "conftest.$ac_objext"
24843 if { (eval echo "$as_me:24843: \"$ac_compile\"") >&5
24844 (eval $ac_compile) 2>&5
24846 echo "$as_me:24846: \$? = $ac_status" >&5
24847 (exit "$ac_status"); } &&
24848 { ac_try='test -s "conftest.$ac_objext"'
24849 { (eval echo "$as_me:24849: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24852 echo "$as_me:24852: \$? = $ac_status" >&5
24853 (exit "$ac_status"); }; }; then
24855 cf_cv_hashed_db_version=$cf_db_version
24859 echo "$as_me: failed program was:" >&5
24860 cat "conftest.$ac_ext" >&5
24862 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24866 echo "$as_me:24866: result: $cf_cv_hashed_db_version" >&5
24867 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24869 if test "$cf_cv_hashed_db_version" = unknown ; then
24870 { { echo "$as_me:24870: error: Cannot determine version of db" >&5
24871 echo "$as_me: error: Cannot determine version of db" >&2;}
24872 { (exit 1); exit 1; }; }
24875 echo "$as_me:24875: checking for db libraries" >&5
24876 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24877 if test "${cf_cv_hashed_db_libs+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24881 cf_cv_hashed_db_libs=unknown
24882 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24884 cf_save_libs="$LIBS"
24885 if test -n "$cf_db_libs"; then
24887 cf_add_libs="$LIBS"
24890 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24891 # filter duplicates
24892 for cf_add_1lib in $cf_add_0lib; do
24893 for cf_add_2lib in $cf_add_libs; do
24894 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24899 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24901 LIBS="$cf_add_libs"
24905 echo "${as_me:-configure}:24905: testing checking for library $cf_db_libs ..." 1>&5
24907 cat >"conftest.$ac_ext" <<_ACEOF
24908 #line 24908 "configure"
24909 #include "confdefs.h"
24911 $ac_includes_default
24918 char *path = "/tmp/foo";
24919 #ifdef DB_VERSION_MAJOR
24920 #if DB_VERSION_MAJOR >= 4
24922 db_create(&result, NULL, 0);
24923 result->open(result,
24930 #elif DB_VERSION_MAJOR >= 3
24932 db_create(&result, NULL, 0);
24933 result->open(result,
24939 #elif DB_VERSION_MAJOR >= 2
24948 #endif /* DB_VERSION_MAJOR */
24950 DB *result = dbopen(path,
24956 ${cf_cv_main_return:-return}(result != 0)
24962 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24963 if { (eval echo "$as_me:24963: \"$ac_link\"") >&5
24964 (eval $ac_link) 2>&5
24966 echo "$as_me:24966: \$? = $ac_status" >&5
24967 (exit "$ac_status"); } &&
24968 { ac_try='test -s "conftest$ac_exeext"'
24969 { (eval echo "$as_me:24969: \"$ac_try\"") >&5
24970 (eval $ac_try) 2>&5
24972 echo "$as_me:24972: \$? = $ac_status" >&5
24973 (exit "$ac_status"); }; }; then
24975 if test -n "$cf_db_libs" ; then
24976 cf_cv_hashed_db_libs=$cf_db_libs
24978 cf_cv_hashed_db_libs=default
24980 LIBS="$cf_save_libs"
24984 echo "$as_me: failed program was:" >&5
24985 cat "conftest.$ac_ext" >&5
24987 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24988 LIBS="$cf_save_libs"
24992 echo "$as_me:24992: result: $cf_cv_hashed_db_libs" >&5
24993 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24995 if test "$cf_cv_hashed_db_libs" = unknown ; then
24996 { { echo "$as_me:24996: error: Cannot determine library for db" >&5
24997 echo "$as_me: error: Cannot determine library for db" >&2;}
24998 { (exit 1); exit 1; }; }
24999 elif test "$cf_cv_hashed_db_libs" != default ; then
25001 cf_add_libs="$LIBS"
25004 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25005 # filter duplicates
25006 for cf_add_1lib in $cf_add_0lib; do
25007 for cf_add_2lib in $cf_add_libs; do
25008 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25013 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25015 LIBS="$cf_add_libs"
25022 { { echo "$as_me:25022: error: Cannot find db.h" >&5
25023 echo "$as_me: error: Cannot find db.h" >&2;}
25024 { (exit 1); exit 1; }; }
25030 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
25031 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25032 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
25035 # Just in case, check if the C compiler has a bool type.
25037 echo "$as_me:25037: checking if we should include stdbool.h" >&5
25038 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25040 if test "${cf_cv_header_stdbool_h+set}" = set; then
25041 echo $ECHO_N "(cached) $ECHO_C" >&6
25044 cat >"conftest.$ac_ext" <<_ACEOF
25045 #line 25045 "configure"
25046 #include "confdefs.h"
25056 rm -f "conftest.$ac_objext"
25057 if { (eval echo "$as_me:25057: \"$ac_compile\"") >&5
25058 (eval $ac_compile) 2>&5
25060 echo "$as_me:25060: \$? = $ac_status" >&5
25061 (exit "$ac_status"); } &&
25062 { ac_try='test -s "conftest.$ac_objext"'
25063 { (eval echo "$as_me:25063: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25066 echo "$as_me:25066: \$? = $ac_status" >&5
25067 (exit "$ac_status"); }; }; then
25068 cf_cv_header_stdbool_h=0
25070 echo "$as_me: failed program was:" >&5
25071 cat "conftest.$ac_ext" >&5
25072 cat >"conftest.$ac_ext" <<_ACEOF
25073 #line 25073 "configure"
25074 #include "confdefs.h"
25077 #include <stdbool.h>
25088 rm -f "conftest.$ac_objext"
25089 if { (eval echo "$as_me:25089: \"$ac_compile\"") >&5
25090 (eval $ac_compile) 2>&5
25092 echo "$as_me:25092: \$? = $ac_status" >&5
25093 (exit "$ac_status"); } &&
25094 { ac_try='test -s "conftest.$ac_objext"'
25095 { (eval echo "$as_me:25095: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25098 echo "$as_me:25098: \$? = $ac_status" >&5
25099 (exit "$ac_status"); }; }; then
25100 cf_cv_header_stdbool_h=1
25102 echo "$as_me: failed program was:" >&5
25103 cat "conftest.$ac_ext" >&5
25104 cf_cv_header_stdbool_h=0
25106 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25108 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25111 if test "$cf_cv_header_stdbool_h" = 1
25112 then echo "$as_me:25112: result: yes" >&5
25113 echo "${ECHO_T}yes" >&6
25114 else echo "$as_me:25114: result: no" >&5
25115 echo "${ECHO_T}no" >&6
25118 echo "$as_me:25118: checking for builtin bool type" >&5
25119 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25121 if test "${cf_cv_cc_bool_type+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25125 cat >"conftest.$ac_ext" <<_ACEOF
25126 #line 25126 "configure"
25127 #include "confdefs.h"
25130 #include <sys/types.h>
25140 rm -f "conftest.$ac_objext"
25141 if { (eval echo "$as_me:25141: \"$ac_compile\"") >&5
25142 (eval $ac_compile) 2>&5
25144 echo "$as_me:25144: \$? = $ac_status" >&5
25145 (exit "$ac_status"); } &&
25146 { ac_try='test -s "conftest.$ac_objext"'
25147 { (eval echo "$as_me:25147: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25150 echo "$as_me:25150: \$? = $ac_status" >&5
25151 (exit "$ac_status"); }; }; then
25152 cf_cv_cc_bool_type=1
25154 echo "$as_me: failed program was:" >&5
25155 cat "conftest.$ac_ext" >&5
25156 cf_cv_cc_bool_type=0
25158 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25162 if test "$cf_cv_cc_bool_type" = 1
25163 then echo "$as_me:25163: result: yes" >&5
25164 echo "${ECHO_T}yes" >&6
25165 else echo "$as_me:25165: result: no" >&5
25166 echo "${ECHO_T}no" >&6
25169 # Check for C++ compiler characteristics (and ensure that it's there!)
25170 if test -n "$CXX" ; then
25172 ac_cpp='$CXXCPP $CPPFLAGS'
25173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25174 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25176 ac_main_return="return"
25178 if test -n "$GXX" ; then
25181 LIBS="$LIBS $CXXLIBS"
25182 echo "$as_me:25182: checking if we already have C++ library" >&5
25183 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
25184 cat >"conftest.$ac_ext" <<_ACEOF
25185 #line 25185 "configure"
25186 #include "confdefs.h"
25188 #include <iostream>
25193 std::cout << "Hello World!" << std::endl;
25198 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25199 if { (eval echo "$as_me:25199: \"$ac_link\"") >&5
25200 (eval $ac_link) 2>&5
25202 echo "$as_me:25202: \$? = $ac_status" >&5
25203 (exit "$ac_status"); } &&
25204 { ac_try='test -s "conftest$ac_exeext"'
25205 { (eval echo "$as_me:25205: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25208 echo "$as_me:25208: \$? = $ac_status" >&5
25209 (exit "$ac_status"); }; }; then
25210 cf_have_libstdcpp=yes
25212 echo "$as_me: failed program was:" >&5
25213 cat "conftest.$ac_ext" >&5
25214 cf_have_libstdcpp=no
25216 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25217 echo "$as_me:25217: result: $cf_have_libstdcpp" >&5
25218 echo "${ECHO_T}$cf_have_libstdcpp" >&6
25221 if test "$cf_have_libstdcpp" != yes
25223 case "$cf_cv_system_name" in
25225 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
25226 cf_stdcpp_libname=stdcpp
25228 cf_stdcpp_libname=stdc++
25232 cf_stdcpp_libname=stdc++
25236 echo "$as_me:25236: checking for library $cf_stdcpp_libname" >&5
25237 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
25238 if test "${cf_cv_libstdcpp+set}" = set; then
25239 echo $ECHO_N "(cached) $ECHO_C" >&6
25243 LIBS="$LIBS $CXXLIBS"
25245 cf_add_libs="$LIBS"
25248 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25249 # filter duplicates
25250 for cf_add_1lib in $cf_add_0lib; do
25251 for cf_add_2lib in $cf_add_libs; do
25252 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25257 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25259 LIBS="$cf_add_libs"
25261 cat >"conftest.$ac_ext" <<_ACEOF
25262 #line 25262 "configure"
25263 #include "confdefs.h"
25265 #include <iostream>
25270 std::cout << "Hello World!" << std::endl;
25275 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25276 if { (eval echo "$as_me:25276: \"$ac_link\"") >&5
25277 (eval $ac_link) 2>&5
25279 echo "$as_me:25279: \$? = $ac_status" >&5
25280 (exit "$ac_status"); } &&
25281 { ac_try='test -s "conftest$ac_exeext"'
25282 { (eval echo "$as_me:25282: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25285 echo "$as_me:25285: \$? = $ac_status" >&5
25286 (exit "$ac_status"); }; }; then
25287 cf_cv_libstdcpp=yes
25289 echo "$as_me: failed program was:" >&5
25290 cat "conftest.$ac_ext" >&5
25293 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25297 echo "$as_me:25297: result: $cf_cv_libstdcpp" >&5
25298 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25299 test "$cf_cv_libstdcpp" = yes && {
25300 cf_add_libs="$CXXLIBS"
25303 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25304 # filter duplicates
25305 for cf_add_1lib in $cf_add_0lib; do
25306 for cf_add_2lib in $cf_add_libs; do
25307 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25312 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25314 CXXLIBS="$cf_add_libs"
25319 echo "$as_me:25319: checking whether $CXX understands -c and -o together" >&5
25320 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25321 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25322 echo $ECHO_N "(cached) $ECHO_C" >&6
25325 cat > conftest.$ac_ext <<CF_EOF
25328 ${cf_cv_main_return:-return}(0);
25331 # We do the test twice because some compilers refuse to overwrite an
25332 # existing .o file with -o, though they will create one.
25333 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25334 if { (eval echo "$as_me:25334: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25337 echo "$as_me:25337: \$? = $ac_status" >&5
25338 (exit "$ac_status"); } &&
25339 test -f conftest2.$ac_objext && { (eval echo "$as_me:25339: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25342 echo "$as_me:25342: \$? = $ac_status" >&5
25343 (exit "$ac_status"); };
25345 eval cf_cv_prog_CXX_c_o=yes
25347 eval cf_cv_prog_CXX_c_o=no
25352 if test "$cf_cv_prog_CXX_c_o" = yes; then
25353 echo "$as_me:25353: result: yes" >&5
25354 echo "${ECHO_T}yes" >&6
25356 echo "$as_me:25356: result: no" >&5
25357 echo "${ECHO_T}no" >&6
25360 case "$GXX_VERSION" in
25361 (1.*|2.[0-6]*|[1-9][0-9].*)
25366 cf_cxx_library=unknown
25367 case "$cf_cv_system_name" in
25375 if test "$GXX" = yes; then
25376 echo "$as_me:25376: checking for lib$cf_gpp_libname" >&5
25377 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25380 cf_add_libs="$LIBS"
25383 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25384 # filter duplicates
25385 for cf_add_1lib in $cf_add_0lib; do
25386 for cf_add_2lib in $cf_add_libs; do
25387 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25392 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25394 LIBS="$cf_add_libs"
25396 cat >"conftest.$ac_ext" <<_ACEOF
25397 #line 25397 "configure"
25398 #include "confdefs.h"
25400 #include <$cf_gpp_libname/builtin.h>
25405 two_arg_error_handler_t foo2 = lib_error_handler
25410 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25411 if { (eval echo "$as_me:25411: \"$ac_link\"") >&5
25412 (eval $ac_link) 2>&5
25414 echo "$as_me:25414: \$? = $ac_status" >&5
25415 (exit "$ac_status"); } &&
25416 { ac_try='test -s "conftest$ac_exeext"'
25417 { (eval echo "$as_me:25417: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25420 echo "$as_me:25420: \$? = $ac_status" >&5
25421 (exit "$ac_status"); }; }; then
25424 cf_add_libs="$CXXLIBS"
25427 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25428 # filter duplicates
25429 for cf_add_1lib in $cf_add_0lib; do
25430 for cf_add_2lib in $cf_add_libs; do
25431 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25436 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25438 CXXLIBS="$cf_add_libs"
25440 if test "$cf_gpp_libname" = cpp ; then
25442 cat >>confdefs.h <<\EOF
25443 #define HAVE_GPP_BUILTIN_H 1
25448 cat >>confdefs.h <<\EOF
25449 #define HAVE_GXX_BUILTIN_H 1
25454 echo "$as_me: failed program was:" >&5
25455 cat "conftest.$ac_ext" >&5
25456 cat >"conftest.$ac_ext" <<_ACEOF
25457 #line 25457 "configure"
25458 #include "confdefs.h"
25460 #include <builtin.h>
25465 two_arg_error_handler_t foo2 = lib_error_handler
25470 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25471 if { (eval echo "$as_me:25471: \"$ac_link\"") >&5
25472 (eval $ac_link) 2>&5
25474 echo "$as_me:25474: \$? = $ac_status" >&5
25475 (exit "$ac_status"); } &&
25476 { ac_try='test -s "conftest$ac_exeext"'
25477 { (eval echo "$as_me:25477: \"$ac_try\"") >&5
25478 (eval $ac_try) 2>&5
25480 echo "$as_me:25480: \$? = $ac_status" >&5
25481 (exit "$ac_status"); }; }; then
25484 cf_add_libs="$CXXLIBS"
25487 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25488 # filter duplicates
25489 for cf_add_1lib in $cf_add_0lib; do
25490 for cf_add_2lib in $cf_add_libs; do
25491 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25496 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25498 CXXLIBS="$cf_add_libs"
25500 cat >>confdefs.h <<\EOF
25501 #define HAVE_BUILTIN_H 1
25505 echo "$as_me: failed program was:" >&5
25506 cat "conftest.$ac_ext" >&5
25509 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25511 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25513 echo "$as_me:25513: result: $cf_cxx_library" >&5
25514 echo "${ECHO_T}$cf_cxx_library" >&6
25524 ac_cpp='$CXXCPP $CPPFLAGS'
25525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25526 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25528 ac_main_return="return"
25529 echo "$as_me:25529: checking how to run the C++ preprocessor" >&5
25530 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25531 if test -z "$CXXCPP"; then
25532 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25533 echo $ECHO_N "(cached) $ECHO_C" >&6
25535 # Double quotes because CXXCPP needs to be expanded
25536 for CXXCPP in "$CXX -E" "/lib/cpp"
25538 ac_preproc_ok=false
25539 for ac_cxx_preproc_warn_flag in '' yes
25541 # Use a header file that comes with gcc, so configuring glibc
25542 # with a fresh cross-compiler works.
25543 # On the NeXT, cc -E runs the code through the compiler's parser,
25544 # not just through cpp. "Syntax error" is here to catch this case.
25545 cat >"conftest.$ac_ext" <<_ACEOF
25546 #line 25546 "configure"
25547 #include "confdefs.h"
25548 #include <assert.h>
25551 if { (eval echo "$as_me:25551: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25552 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25554 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25556 cat conftest.err >&5
25557 echo "$as_me:25557: \$? = $ac_status" >&5
25558 (exit "$ac_status"); } >/dev/null; then
25559 if test -s conftest.err; then
25560 ac_cpp_err=$ac_cxx_preproc_warn_flag
25567 if test -z "$ac_cpp_err"; then
25570 echo "$as_me: failed program was:" >&5
25571 cat "conftest.$ac_ext" >&5
25572 # Broken: fails on valid input.
25575 rm -f conftest.err "conftest.$ac_ext"
25577 # OK, works on sane cases. Now check whether non-existent headers
25578 # can be detected and how.
25579 cat >"conftest.$ac_ext" <<_ACEOF
25580 #line 25580 "configure"
25581 #include "confdefs.h"
25582 #include <ac_nonexistent.h>
25584 if { (eval echo "$as_me:25584: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25585 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25587 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25589 cat conftest.err >&5
25590 echo "$as_me:25590: \$? = $ac_status" >&5
25591 (exit "$ac_status"); } >/dev/null; then
25592 if test -s conftest.err; then
25593 ac_cpp_err=$ac_cxx_preproc_warn_flag
25600 if test -z "$ac_cpp_err"; then
25601 # Broken: success on invalid input.
25604 echo "$as_me: failed program was:" >&5
25605 cat "conftest.$ac_ext" >&5
25606 # Passes both tests.
25610 rm -f conftest.err "conftest.$ac_ext"
25613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25614 rm -f conftest.err "conftest.$ac_ext"
25615 if $ac_preproc_ok; then
25620 ac_cv_prog_CXXCPP=$CXXCPP
25623 CXXCPP=$ac_cv_prog_CXXCPP
25625 ac_cv_prog_CXXCPP=$CXXCPP
25627 echo "$as_me:25627: result: $CXXCPP" >&5
25628 echo "${ECHO_T}$CXXCPP" >&6
25629 ac_preproc_ok=false
25630 for ac_cxx_preproc_warn_flag in '' yes
25632 # Use a header file that comes with gcc, so configuring glibc
25633 # with a fresh cross-compiler works.
25634 # On the NeXT, cc -E runs the code through the compiler's parser,
25635 # not just through cpp. "Syntax error" is here to catch this case.
25636 cat >"conftest.$ac_ext" <<_ACEOF
25637 #line 25637 "configure"
25638 #include "confdefs.h"
25639 #include <assert.h>
25642 if { (eval echo "$as_me:25642: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25643 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25645 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25647 cat conftest.err >&5
25648 echo "$as_me:25648: \$? = $ac_status" >&5
25649 (exit "$ac_status"); } >/dev/null; then
25650 if test -s conftest.err; then
25651 ac_cpp_err=$ac_cxx_preproc_warn_flag
25658 if test -z "$ac_cpp_err"; then
25661 echo "$as_me: failed program was:" >&5
25662 cat "conftest.$ac_ext" >&5
25663 # Broken: fails on valid input.
25666 rm -f conftest.err "conftest.$ac_ext"
25668 # OK, works on sane cases. Now check whether non-existent headers
25669 # can be detected and how.
25670 cat >"conftest.$ac_ext" <<_ACEOF
25671 #line 25671 "configure"
25672 #include "confdefs.h"
25673 #include <ac_nonexistent.h>
25675 if { (eval echo "$as_me:25675: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25676 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25678 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25680 cat conftest.err >&5
25681 echo "$as_me:25681: \$? = $ac_status" >&5
25682 (exit "$ac_status"); } >/dev/null; then
25683 if test -s conftest.err; then
25684 ac_cpp_err=$ac_cxx_preproc_warn_flag
25691 if test -z "$ac_cpp_err"; then
25692 # Broken: success on invalid input.
25695 echo "$as_me: failed program was:" >&5
25696 cat "conftest.$ac_ext" >&5
25697 # Passes both tests.
25701 rm -f conftest.err "conftest.$ac_ext"
25704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25705 rm -f conftest.err "conftest.$ac_ext"
25706 if $ac_preproc_ok; then
25709 { { echo "$as_me:25709: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25710 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25711 { (exit 1); exit 1; }; }
25715 ac_cpp='$CXXCPP $CPPFLAGS'
25716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25717 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25719 ac_main_return="return"
25721 for ac_header in typeinfo
25723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25724 echo "$as_me:25724: checking for $ac_header" >&5
25725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25729 cat >"conftest.$ac_ext" <<_ACEOF
25730 #line 25730 "configure"
25731 #include "confdefs.h"
25732 #include <$ac_header>
25734 if { (eval echo "$as_me:25734: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25735 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25737 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25739 cat conftest.err >&5
25740 echo "$as_me:25740: \$? = $ac_status" >&5
25741 (exit "$ac_status"); } >/dev/null; then
25742 if test -s conftest.err; then
25743 ac_cpp_err=$ac_cxx_preproc_warn_flag
25750 if test -z "$ac_cpp_err"; then
25751 eval "$as_ac_Header=yes"
25753 echo "$as_me: failed program was:" >&5
25754 cat "conftest.$ac_ext" >&5
25755 eval "$as_ac_Header=no"
25757 rm -f conftest.err "conftest.$ac_ext"
25759 echo "$as_me:25759: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25760 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25761 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25762 cat >>confdefs.h <<EOF
25763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25769 for ac_header in iostream
25771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25772 echo "$as_me:25772: checking for $ac_header" >&5
25773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25777 cat >"conftest.$ac_ext" <<_ACEOF
25778 #line 25778 "configure"
25779 #include "confdefs.h"
25780 #include <$ac_header>
25782 if { (eval echo "$as_me:25782: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25783 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25785 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25787 cat conftest.err >&5
25788 echo "$as_me:25788: \$? = $ac_status" >&5
25789 (exit "$ac_status"); } >/dev/null; then
25790 if test -s conftest.err; then
25791 ac_cpp_err=$ac_cxx_preproc_warn_flag
25798 if test -z "$ac_cpp_err"; then
25799 eval "$as_ac_Header=yes"
25801 echo "$as_me: failed program was:" >&5
25802 cat "conftest.$ac_ext" >&5
25803 eval "$as_ac_Header=no"
25805 rm -f conftest.err "conftest.$ac_ext"
25807 echo "$as_me:25807: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25808 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25809 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25810 cat >>confdefs.h <<EOF
25811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25817 if test x"$ac_cv_header_iostream" = xyes ; then
25818 echo "$as_me:25818: checking if iostream uses std-namespace" >&5
25819 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25820 cat >"conftest.$ac_ext" <<_ACEOF
25821 #line 25821 "configure"
25822 #include "confdefs.h"
25824 #include <iostream>
25831 cerr << "testing" << endl;
25837 rm -f "conftest.$ac_objext"
25838 if { (eval echo "$as_me:25838: \"$ac_compile\"") >&5
25839 (eval $ac_compile) 2>&5
25841 echo "$as_me:25841: \$? = $ac_status" >&5
25842 (exit "$ac_status"); } &&
25843 { ac_try='test -s "conftest.$ac_objext"'
25844 { (eval echo "$as_me:25844: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25847 echo "$as_me:25847: \$? = $ac_status" >&5
25848 (exit "$ac_status"); }; }; then
25849 cf_iostream_namespace=yes
25851 echo "$as_me: failed program was:" >&5
25852 cat "conftest.$ac_ext" >&5
25853 cf_iostream_namespace=no
25855 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25856 echo "$as_me:25856: result: $cf_iostream_namespace" >&5
25857 echo "${ECHO_T}$cf_iostream_namespace" >&6
25858 if test "$cf_iostream_namespace" = yes ; then
25860 cat >>confdefs.h <<\EOF
25861 #define IOSTREAM_NAMESPACE 1
25867 echo "$as_me:25867: checking if we should include stdbool.h" >&5
25868 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25870 if test "${cf_cv_header_stdbool_h+set}" = set; then
25871 echo $ECHO_N "(cached) $ECHO_C" >&6
25874 cat >"conftest.$ac_ext" <<_ACEOF
25875 #line 25875 "configure"
25876 #include "confdefs.h"
25886 rm -f "conftest.$ac_objext"
25887 if { (eval echo "$as_me:25887: \"$ac_compile\"") >&5
25888 (eval $ac_compile) 2>&5
25890 echo "$as_me:25890: \$? = $ac_status" >&5
25891 (exit "$ac_status"); } &&
25892 { ac_try='test -s "conftest.$ac_objext"'
25893 { (eval echo "$as_me:25893: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25896 echo "$as_me:25896: \$? = $ac_status" >&5
25897 (exit "$ac_status"); }; }; then
25898 cf_cv_header_stdbool_h=0
25900 echo "$as_me: failed program was:" >&5
25901 cat "conftest.$ac_ext" >&5
25902 cat >"conftest.$ac_ext" <<_ACEOF
25903 #line 25903 "configure"
25904 #include "confdefs.h"
25907 #include <stdbool.h>
25918 rm -f "conftest.$ac_objext"
25919 if { (eval echo "$as_me:25919: \"$ac_compile\"") >&5
25920 (eval $ac_compile) 2>&5
25922 echo "$as_me:25922: \$? = $ac_status" >&5
25923 (exit "$ac_status"); } &&
25924 { ac_try='test -s "conftest.$ac_objext"'
25925 { (eval echo "$as_me:25925: \"$ac_try\"") >&5
25926 (eval $ac_try) 2>&5
25928 echo "$as_me:25928: \$? = $ac_status" >&5
25929 (exit "$ac_status"); }; }; then
25930 cf_cv_header_stdbool_h=1
25932 echo "$as_me: failed program was:" >&5
25933 cat "conftest.$ac_ext" >&5
25934 cf_cv_header_stdbool_h=0
25936 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25938 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25941 if test "$cf_cv_header_stdbool_h" = 1
25942 then echo "$as_me:25942: result: yes" >&5
25943 echo "${ECHO_T}yes" >&6
25944 else echo "$as_me:25944: result: no" >&5
25945 echo "${ECHO_T}no" >&6
25948 echo "$as_me:25948: checking for builtin bool type" >&5
25949 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25951 if test "${cf_cv_builtin_bool+set}" = set; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25955 cat >"conftest.$ac_ext" <<_ACEOF
25956 #line 25956 "configure"
25957 #include "confdefs.h"
25960 #include <sys/types.h>
25970 rm -f "conftest.$ac_objext"
25971 if { (eval echo "$as_me:25971: \"$ac_compile\"") >&5
25972 (eval $ac_compile) 2>&5
25974 echo "$as_me:25974: \$? = $ac_status" >&5
25975 (exit "$ac_status"); } &&
25976 { ac_try='test -s "conftest.$ac_objext"'
25977 { (eval echo "$as_me:25977: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25980 echo "$as_me:25980: \$? = $ac_status" >&5
25981 (exit "$ac_status"); }; }; then
25982 cf_cv_builtin_bool=1
25984 echo "$as_me: failed program was:" >&5
25985 cat "conftest.$ac_ext" >&5
25986 cf_cv_builtin_bool=0
25988 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25992 if test "$cf_cv_builtin_bool" = 1
25993 then echo "$as_me:25993: result: yes" >&5
25994 echo "${ECHO_T}yes" >&6
25995 else echo "$as_me:25995: result: no" >&5
25996 echo "${ECHO_T}no" >&6
25999 echo "$as_me:25999: checking for bool" >&5
26000 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26001 if test "${ac_cv_type_bool+set}" = set; then
26002 echo $ECHO_N "(cached) $ECHO_C" >&6
26004 cat >"conftest.$ac_ext" <<_ACEOF
26005 #line 26005 "configure"
26006 #include "confdefs.h"
26008 $ac_includes_default
26010 #if defined(__cplusplus)
26012 #ifdef HAVE_GXX_BUILTIN_H
26013 #include <g++/builtin.h>
26014 #elif HAVE_GPP_BUILTIN_H
26015 #include <gpp/builtin.h>
26016 #elif HAVE_BUILTIN_H
26017 #include <builtin.h>
26022 #if $cf_cv_header_stdbool_h
26023 #include <stdbool.h>
26039 rm -f "conftest.$ac_objext"
26040 if { (eval echo "$as_me:26040: \"$ac_compile\"") >&5
26041 (eval $ac_compile) 2>&5
26043 echo "$as_me:26043: \$? = $ac_status" >&5
26044 (exit "$ac_status"); } &&
26045 { ac_try='test -s "conftest.$ac_objext"'
26046 { (eval echo "$as_me:26046: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26049 echo "$as_me:26049: \$? = $ac_status" >&5
26050 (exit "$ac_status"); }; }; then
26051 ac_cv_type_bool=yes
26053 echo "$as_me: failed program was:" >&5
26054 cat "conftest.$ac_ext" >&5
26057 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26059 echo "$as_me:26059: result: $ac_cv_type_bool" >&5
26060 echo "${ECHO_T}$ac_cv_type_bool" >&6
26062 echo "$as_me:26062: checking size of bool" >&5
26063 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26064 if test "${ac_cv_sizeof_bool+set}" = set; then
26065 echo $ECHO_N "(cached) $ECHO_C" >&6
26067 if test "$ac_cv_type_bool" = yes; then
26068 if test "$cross_compiling" = yes; then
26069 # Depending upon the size, compute the lo and hi bounds.
26070 cat >"conftest.$ac_ext" <<_ACEOF
26071 #line 26071 "configure"
26072 #include "confdefs.h"
26074 $ac_includes_default
26076 #if defined(__cplusplus)
26078 #ifdef HAVE_GXX_BUILTIN_H
26079 #include <g++/builtin.h>
26080 #elif HAVE_GPP_BUILTIN_H
26081 #include <gpp/builtin.h>
26082 #elif HAVE_BUILTIN_H
26083 #include <builtin.h>
26088 #if $cf_cv_header_stdbool_h
26089 #include <stdbool.h>
26097 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26102 rm -f "conftest.$ac_objext"
26103 if { (eval echo "$as_me:26103: \"$ac_compile\"") >&5
26104 (eval $ac_compile) 2>&5
26106 echo "$as_me:26106: \$? = $ac_status" >&5
26107 (exit "$ac_status"); } &&
26108 { ac_try='test -s "conftest.$ac_objext"'
26109 { (eval echo "$as_me:26109: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26112 echo "$as_me:26112: \$? = $ac_status" >&5
26113 (exit "$ac_status"); }; }; then
26116 cat >"conftest.$ac_ext" <<_ACEOF
26117 #line 26117 "configure"
26118 #include "confdefs.h"
26120 $ac_includes_default
26122 #if defined(__cplusplus)
26124 #ifdef HAVE_GXX_BUILTIN_H
26125 #include <g++/builtin.h>
26126 #elif HAVE_GPP_BUILTIN_H
26127 #include <gpp/builtin.h>
26128 #elif HAVE_BUILTIN_H
26129 #include <builtin.h>
26134 #if $cf_cv_header_stdbool_h
26135 #include <stdbool.h>
26143 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26148 rm -f "conftest.$ac_objext"
26149 if { (eval echo "$as_me:26149: \"$ac_compile\"") >&5
26150 (eval $ac_compile) 2>&5
26152 echo "$as_me:26152: \$? = $ac_status" >&5
26153 (exit "$ac_status"); } &&
26154 { ac_try='test -s "conftest.$ac_objext"'
26155 { (eval echo "$as_me:26155: \"$ac_try\"") >&5
26156 (eval $ac_try) 2>&5
26158 echo "$as_me:26158: \$? = $ac_status" >&5
26159 (exit "$ac_status"); }; }; then
26160 ac_hi=$ac_mid; break
26162 echo "$as_me: failed program was:" >&5
26163 cat "conftest.$ac_ext" >&5
26164 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26166 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26169 echo "$as_me: failed program was:" >&5
26170 cat "conftest.$ac_ext" >&5
26173 cat >"conftest.$ac_ext" <<_ACEOF
26174 #line 26174 "configure"
26175 #include "confdefs.h"
26177 $ac_includes_default
26179 #if defined(__cplusplus)
26181 #ifdef HAVE_GXX_BUILTIN_H
26182 #include <g++/builtin.h>
26183 #elif HAVE_GPP_BUILTIN_H
26184 #include <gpp/builtin.h>
26185 #elif HAVE_BUILTIN_H
26186 #include <builtin.h>
26191 #if $cf_cv_header_stdbool_h
26192 #include <stdbool.h>
26200 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26205 rm -f "conftest.$ac_objext"
26206 if { (eval echo "$as_me:26206: \"$ac_compile\"") >&5
26207 (eval $ac_compile) 2>&5
26209 echo "$as_me:26209: \$? = $ac_status" >&5
26210 (exit "$ac_status"); } &&
26211 { ac_try='test -s "conftest.$ac_objext"'
26212 { (eval echo "$as_me:26212: \"$ac_try\"") >&5
26213 (eval $ac_try) 2>&5
26215 echo "$as_me:26215: \$? = $ac_status" >&5
26216 (exit "$ac_status"); }; }; then
26217 ac_lo=$ac_mid; break
26219 echo "$as_me: failed program was:" >&5
26220 cat "conftest.$ac_ext" >&5
26221 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26223 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26226 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26227 # Binary search between lo and hi bounds.
26228 while test "x$ac_lo" != "x$ac_hi"; do
26229 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26230 cat >"conftest.$ac_ext" <<_ACEOF
26231 #line 26231 "configure"
26232 #include "confdefs.h"
26234 $ac_includes_default
26236 #if defined(__cplusplus)
26238 #ifdef HAVE_GXX_BUILTIN_H
26239 #include <g++/builtin.h>
26240 #elif HAVE_GPP_BUILTIN_H
26241 #include <gpp/builtin.h>
26242 #elif HAVE_BUILTIN_H
26243 #include <builtin.h>
26248 #if $cf_cv_header_stdbool_h
26249 #include <stdbool.h>
26257 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26262 rm -f "conftest.$ac_objext"
26263 if { (eval echo "$as_me:26263: \"$ac_compile\"") >&5
26264 (eval $ac_compile) 2>&5
26266 echo "$as_me:26266: \$? = $ac_status" >&5
26267 (exit "$ac_status"); } &&
26268 { ac_try='test -s "conftest.$ac_objext"'
26269 { (eval echo "$as_me:26269: \"$ac_try\"") >&5
26270 (eval $ac_try) 2>&5
26272 echo "$as_me:26272: \$? = $ac_status" >&5
26273 (exit "$ac_status"); }; }; then
26276 echo "$as_me: failed program was:" >&5
26277 cat "conftest.$ac_ext" >&5
26278 ac_lo=`expr "$ac_mid" + 1`
26280 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26282 ac_cv_sizeof_bool=$ac_lo
26284 if test "$cross_compiling" = yes; then
26285 { { echo "$as_me:26285: error: cannot run test program while cross compiling" >&5
26286 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26287 { (exit 1); exit 1; }; }
26289 cat >"conftest.$ac_ext" <<_ACEOF
26290 #line 26290 "configure"
26291 #include "confdefs.h"
26293 $ac_includes_default
26295 #if defined(__cplusplus)
26297 #ifdef HAVE_GXX_BUILTIN_H
26298 #include <g++/builtin.h>
26299 #elif HAVE_GPP_BUILTIN_H
26300 #include <gpp/builtin.h>
26301 #elif HAVE_BUILTIN_H
26302 #include <builtin.h>
26307 #if $cf_cv_header_stdbool_h
26308 #include <stdbool.h>
26316 FILE *f = fopen ("conftest.val", "w");
26318 $ac_main_return (1);
26319 fprintf (f, "%ld", (long)(sizeof (bool)));
26325 rm -f "conftest$ac_exeext"
26326 if { (eval echo "$as_me:26326: \"$ac_link\"") >&5
26327 (eval $ac_link) 2>&5
26329 echo "$as_me:26329: \$? = $ac_status" >&5
26330 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26331 { (eval echo "$as_me:26331: \"$ac_try\"") >&5
26332 (eval $ac_try) 2>&5
26334 echo "$as_me:26334: \$? = $ac_status" >&5
26335 (exit "$ac_status"); }; }; then
26336 ac_cv_sizeof_bool=`cat conftest.val`
26338 echo "$as_me: program exited with status $ac_status" >&5
26339 echo "$as_me: failed program was:" >&5
26340 cat "conftest.$ac_ext" >&5
26342 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26347 ac_cv_sizeof_bool=0
26350 echo "$as_me:26350: result: $ac_cv_sizeof_bool" >&5
26351 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26352 cat >>confdefs.h <<EOF
26353 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26356 echo "$as_me:26356: checking for type of bool" >&5
26357 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26358 if test "${cf_cv_type_of_bool+set}" = set; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 if test "$cross_compiling" = yes; then
26365 case x$ac_cv_sizeof_bool in
26366 (x1) cf_cv_type_of_bool="unsigned char";;
26367 (x2) cf_cv_type_of_bool="unsigned short";;
26368 (x4) cf_cv_type_of_bool="unsigned int";;
26369 (x8) cf_cv_type_of_bool="unsigned long";;
26370 (*) cf_cv_type_of_bool=unknown;;
26374 cat >"conftest.$ac_ext" <<_ACEOF
26375 #line 26375 "configure"
26376 #include "confdefs.h"
26378 $ac_includes_default
26380 #if defined(__cplusplus)
26382 #ifdef HAVE_GXX_BUILTIN_H
26383 #include <g++/builtin.h>
26384 #elif HAVE_GPP_BUILTIN_H
26385 #include <gpp/builtin.h>
26386 #elif HAVE_BUILTIN_H
26387 #include <builtin.h>
26392 #if $cf_cv_header_stdbool_h
26393 #include <stdbool.h>
26400 FILE *fp = fopen("cf_test.out", "w");
26403 if ((bool)(-x) >= 0)
26404 fputs("unsigned ", fp);
26405 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26406 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26407 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26408 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26411 ${cf_cv_main_return:-return}(0);
26415 rm -f "conftest$ac_exeext"
26416 if { (eval echo "$as_me:26416: \"$ac_link\"") >&5
26417 (eval $ac_link) 2>&5
26419 echo "$as_me:26419: \$? = $ac_status" >&5
26420 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26421 { (eval echo "$as_me:26421: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26424 echo "$as_me:26424: \$? = $ac_status" >&5
26425 (exit "$ac_status"); }; }; then
26426 cf_cv_type_of_bool=`cat cf_test.out`
26427 if test -z "$cf_cv_type_of_bool"; then
26428 cf_cv_type_of_bool=unknown
26431 echo "$as_me: program exited with status $ac_status" >&5
26432 echo "$as_me: failed program was:" >&5
26433 cat "conftest.$ac_ext" >&5
26434 cf_cv_type_of_bool=unknown
26436 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26441 echo "$as_me:26441: result: $cf_cv_type_of_bool" >&5
26442 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26444 if test "$cf_cv_type_of_bool" = unknown ; then
26445 case .$NCURSES_BOOL in
26446 (.auto|.) NCURSES_BOOL=unsigned;;
26448 { echo "$as_me:26448: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26449 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26450 cf_cv_type_of_bool=$NCURSES_BOOL
26453 echo "$as_me:26453: checking for special defines needed for etip.h" >&5
26454 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26455 cf_save_CXXFLAGS="$CXXFLAGS"
26458 # etip.h includes ncurses.h which includes ncurses_dll.h
26459 # But ncurses_dll.h is generated - fix here.
26460 test -d include || mkdir include
26461 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
26463 for cf_math in "" MATH_H
26465 for cf_excp in "" MATH_EXCEPTION
26467 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26468 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26469 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26470 cat >"conftest.$ac_ext" <<_ACEOF
26471 #line 26471 "configure"
26472 #include "confdefs.h"
26474 #include <etip.h.in>
26484 rm -f "conftest.$ac_objext"
26485 if { (eval echo "$as_me:26485: \"$ac_compile\"") >&5
26486 (eval $ac_compile) 2>&5
26488 echo "$as_me:26488: \$? = $ac_status" >&5
26489 (exit "$ac_status"); } &&
26490 { ac_try='test -s "conftest.$ac_objext"'
26491 { (eval echo "$as_me:26491: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26494 echo "$as_me:26494: \$? = $ac_status" >&5
26495 (exit "$ac_status"); }; }; then
26497 test -n "$cf_math" && cat >>confdefs.h <<EOF
26498 #define ETIP_NEEDS_${cf_math} 1
26501 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26502 #define ETIP_NEEDS_${cf_excp} 1
26505 cf_result="$cf_math $cf_excp"
26509 echo "$as_me: failed program was:" >&5
26510 cat "conftest.$ac_ext" >&5
26512 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26515 echo "$as_me:26515: result: $cf_result" >&5
26516 echo "${ECHO_T}$cf_result" >&6
26517 CXXFLAGS="$cf_save_CXXFLAGS"
26519 if test -n "$CXX"; then
26520 echo "$as_me:26520: checking if $CXX accepts override keyword" >&5
26521 echo $ECHO_N "checking if $CXX accepts override keyword... $ECHO_C" >&6
26522 if test "${cf_cv_cpp_override+set}" = set; then
26523 echo $ECHO_N "(cached) $ECHO_C" >&6
26527 ac_cpp='$CXXCPP $CPPFLAGS'
26528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26529 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26531 ac_main_return="return"
26533 if test "$cross_compiling" = yes; then
26534 cf_cv_cpp_override=unknown
26536 cat >"conftest.$ac_ext" <<_ACEOF
26537 #line 26537 "configure"
26538 #include "confdefs.h"
26543 virtual int foo(float x) = 0;
26546 class derived: public base
26549 int foo(float x) override { return x != 0.0 ? 1 : 0; }
26555 rm -f "conftest$ac_exeext"
26556 if { (eval echo "$as_me:26556: \"$ac_link\"") >&5
26557 (eval $ac_link) 2>&5
26559 echo "$as_me:26559: \$? = $ac_status" >&5
26560 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26561 { (eval echo "$as_me:26561: \"$ac_try\"") >&5
26562 (eval $ac_try) 2>&5
26564 echo "$as_me:26564: \$? = $ac_status" >&5
26565 (exit "$ac_status"); }; }; then
26566 cf_cv_cpp_override=yes
26568 echo "$as_me: program exited with status $ac_status" >&5
26569 echo "$as_me: failed program was:" >&5
26570 cat "conftest.$ac_ext" >&5
26571 cf_cv_cpp_override=no
26573 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26576 ac_cpp='$CXXCPP $CPPFLAGS'
26577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26578 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26580 ac_main_return="return"
26583 echo "$as_me:26583: result: $cf_cv_cpp_override" >&5
26584 echo "${ECHO_T}$cf_cv_cpp_override" >&6
26586 test "$cf_cv_cpp_override" = yes &&
26587 cat >>confdefs.h <<\EOF
26588 #define CPP_HAS_OVERRIDE 1
26591 if test -n "$CXX"; then
26592 echo "$as_me:26592: checking if $CXX accepts parameter initialization" >&5
26593 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26594 if test "${cf_cv_cpp_param_init+set}" = set; then
26595 echo $ECHO_N "(cached) $ECHO_C" >&6
26599 ac_cpp='$CXXCPP $CPPFLAGS'
26600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26601 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26603 ac_main_return="return"
26605 if test "$cross_compiling" = yes; then
26606 cf_cv_cpp_param_init=unknown
26608 cat >"conftest.$ac_ext" <<_ACEOF
26609 #line 26609 "configure"
26610 #include "confdefs.h"
26620 TEST::TEST(int x = 1) // some compilers do not like second initializer
26627 rm -f "conftest$ac_exeext"
26628 if { (eval echo "$as_me:26628: \"$ac_link\"") >&5
26629 (eval $ac_link) 2>&5
26631 echo "$as_me:26631: \$? = $ac_status" >&5
26632 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26633 { (eval echo "$as_me:26633: \"$ac_try\"") >&5
26634 (eval $ac_try) 2>&5
26636 echo "$as_me:26636: \$? = $ac_status" >&5
26637 (exit "$ac_status"); }; }; then
26638 cf_cv_cpp_param_init=yes
26640 echo "$as_me: program exited with status $ac_status" >&5
26641 echo "$as_me: failed program was:" >&5
26642 cat "conftest.$ac_ext" >&5
26643 cf_cv_cpp_param_init=no
26645 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26648 ac_cpp='$CXXCPP $CPPFLAGS'
26649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26650 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26652 ac_main_return="return"
26655 echo "$as_me:26655: result: $cf_cv_cpp_param_init" >&5
26656 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26658 test "$cf_cv_cpp_param_init" = yes &&
26659 cat >>confdefs.h <<\EOF
26660 #define CPP_HAS_PARAM_INIT 1
26663 if test -n "$CXX"; then
26665 echo "$as_me:26665: checking if $CXX accepts static_cast" >&5
26666 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26667 if test "${cf_cv_cpp_static_cast+set}" = set; then
26668 echo $ECHO_N "(cached) $ECHO_C" >&6
26672 ac_cpp='$CXXCPP $CPPFLAGS'
26673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26674 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26676 ac_main_return="return"
26678 cat >"conftest.$ac_ext" <<_ACEOF
26679 #line 26679 "configure"
26680 #include "confdefs.h"
26685 NCursesPanel(int nlines,
26695 template<class T> class NCursesUserPanel : public NCursesPanel
26698 NCursesUserPanel (int nlines,
26702 const T* p_UserData = static_cast<T*>(0))
26703 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26706 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26710 virtual ~NCursesUserPanel() {};
26717 const char* p_UserData = static_cast<char*>(0)
26722 rm -f "conftest.$ac_objext"
26723 if { (eval echo "$as_me:26723: \"$ac_compile\"") >&5
26724 (eval $ac_compile) 2>&5
26726 echo "$as_me:26726: \$? = $ac_status" >&5
26727 (exit "$ac_status"); } &&
26728 { ac_try='test -s "conftest.$ac_objext"'
26729 { (eval echo "$as_me:26729: \"$ac_try\"") >&5
26730 (eval $ac_try) 2>&5
26732 echo "$as_me:26732: \$? = $ac_status" >&5
26733 (exit "$ac_status"); }; }; then
26734 cf_cv_cpp_static_cast=yes
26736 echo "$as_me: failed program was:" >&5
26737 cat "conftest.$ac_ext" >&5
26738 cf_cv_cpp_static_cast=no
26740 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26743 ac_cpp='$CXXCPP $CPPFLAGS'
26744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26745 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26747 ac_main_return="return"
26750 echo "$as_me:26750: result: $cf_cv_cpp_static_cast" >&5
26751 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26755 test "$cf_cv_cpp_static_cast" = yes &&
26756 cat >>confdefs.h <<\EOF
26757 #define CPP_HAS_STATIC_CAST 1
26761 CXX_ARFLAGS='$(ARFLAGS)'
26762 case "$cf_cv_system_name" in
26764 if test "$GXX" != yes ; then
26766 CXX_ARFLAGS='-ar -o'
26770 CXXLDFLAGS="-u main"
26773 if test "$GXX" != yes ; then
26775 CXX_ARFLAGS='-xar -o'
26782 cf_cv_builtin_bool=1
26784 # Just because we are not configuring against C++ right now does not
26785 # mean that a user will not want to use C++. Some distributors disable
26786 # the C++ portion of this configuration as a shortcut (or just to avoid
26787 # compiling the demo in the c++ directory). So we need a reasonable
26788 # default for the 'bool' type.
26790 # Caveat: since the storage of the bool type is not standardized, it
26793 if test "$NCURSES_BOOL" != auto ; then
26794 cf_cv_type_of_bool=$NCURSES_BOOL
26795 cf_cv_header_stdbool_h=0
26797 if test "$cf_cv_header_stdbool_h" = 1 ; then
26799 echo "$as_me:26799: checking for bool" >&5
26800 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26801 if test "${ac_cv_type_bool+set}" = set; then
26802 echo $ECHO_N "(cached) $ECHO_C" >&6
26804 cat >"conftest.$ac_ext" <<_ACEOF
26805 #line 26805 "configure"
26806 #include "confdefs.h"
26808 $ac_includes_default
26810 #if defined(__cplusplus)
26812 #ifdef HAVE_GXX_BUILTIN_H
26813 #include <g++/builtin.h>
26814 #elif HAVE_GPP_BUILTIN_H
26815 #include <gpp/builtin.h>
26816 #elif HAVE_BUILTIN_H
26817 #include <builtin.h>
26822 #if $cf_cv_header_stdbool_h
26823 #include <stdbool.h>
26839 rm -f "conftest.$ac_objext"
26840 if { (eval echo "$as_me:26840: \"$ac_compile\"") >&5
26841 (eval $ac_compile) 2>&5
26843 echo "$as_me:26843: \$? = $ac_status" >&5
26844 (exit "$ac_status"); } &&
26845 { ac_try='test -s "conftest.$ac_objext"'
26846 { (eval echo "$as_me:26846: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26849 echo "$as_me:26849: \$? = $ac_status" >&5
26850 (exit "$ac_status"); }; }; then
26851 ac_cv_type_bool=yes
26853 echo "$as_me: failed program was:" >&5
26854 cat "conftest.$ac_ext" >&5
26857 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26859 echo "$as_me:26859: result: $ac_cv_type_bool" >&5
26860 echo "${ECHO_T}$ac_cv_type_bool" >&6
26862 echo "$as_me:26862: checking size of bool" >&5
26863 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26864 if test "${ac_cv_sizeof_bool+set}" = set; then
26865 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 if test "$ac_cv_type_bool" = yes; then
26868 if test "$cross_compiling" = yes; then
26869 # Depending upon the size, compute the lo and hi bounds.
26870 cat >"conftest.$ac_ext" <<_ACEOF
26871 #line 26871 "configure"
26872 #include "confdefs.h"
26874 $ac_includes_default
26876 #if defined(__cplusplus)
26878 #ifdef HAVE_GXX_BUILTIN_H
26879 #include <g++/builtin.h>
26880 #elif HAVE_GPP_BUILTIN_H
26881 #include <gpp/builtin.h>
26882 #elif HAVE_BUILTIN_H
26883 #include <builtin.h>
26888 #if $cf_cv_header_stdbool_h
26889 #include <stdbool.h>
26897 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26902 rm -f "conftest.$ac_objext"
26903 if { (eval echo "$as_me:26903: \"$ac_compile\"") >&5
26904 (eval $ac_compile) 2>&5
26906 echo "$as_me:26906: \$? = $ac_status" >&5
26907 (exit "$ac_status"); } &&
26908 { ac_try='test -s "conftest.$ac_objext"'
26909 { (eval echo "$as_me:26909: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26912 echo "$as_me:26912: \$? = $ac_status" >&5
26913 (exit "$ac_status"); }; }; then
26916 cat >"conftest.$ac_ext" <<_ACEOF
26917 #line 26917 "configure"
26918 #include "confdefs.h"
26920 $ac_includes_default
26922 #if defined(__cplusplus)
26924 #ifdef HAVE_GXX_BUILTIN_H
26925 #include <g++/builtin.h>
26926 #elif HAVE_GPP_BUILTIN_H
26927 #include <gpp/builtin.h>
26928 #elif HAVE_BUILTIN_H
26929 #include <builtin.h>
26934 #if $cf_cv_header_stdbool_h
26935 #include <stdbool.h>
26943 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26948 rm -f "conftest.$ac_objext"
26949 if { (eval echo "$as_me:26949: \"$ac_compile\"") >&5
26950 (eval $ac_compile) 2>&5
26952 echo "$as_me:26952: \$? = $ac_status" >&5
26953 (exit "$ac_status"); } &&
26954 { ac_try='test -s "conftest.$ac_objext"'
26955 { (eval echo "$as_me:26955: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26958 echo "$as_me:26958: \$? = $ac_status" >&5
26959 (exit "$ac_status"); }; }; then
26960 ac_hi=$ac_mid; break
26962 echo "$as_me: failed program was:" >&5
26963 cat "conftest.$ac_ext" >&5
26964 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26966 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26969 echo "$as_me: failed program was:" >&5
26970 cat "conftest.$ac_ext" >&5
26973 cat >"conftest.$ac_ext" <<_ACEOF
26974 #line 26974 "configure"
26975 #include "confdefs.h"
26977 $ac_includes_default
26979 #if defined(__cplusplus)
26981 #ifdef HAVE_GXX_BUILTIN_H
26982 #include <g++/builtin.h>
26983 #elif HAVE_GPP_BUILTIN_H
26984 #include <gpp/builtin.h>
26985 #elif HAVE_BUILTIN_H
26986 #include <builtin.h>
26991 #if $cf_cv_header_stdbool_h
26992 #include <stdbool.h>
27000 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
27005 rm -f "conftest.$ac_objext"
27006 if { (eval echo "$as_me:27006: \"$ac_compile\"") >&5
27007 (eval $ac_compile) 2>&5
27009 echo "$as_me:27009: \$? = $ac_status" >&5
27010 (exit "$ac_status"); } &&
27011 { ac_try='test -s "conftest.$ac_objext"'
27012 { (eval echo "$as_me:27012: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27015 echo "$as_me:27015: \$? = $ac_status" >&5
27016 (exit "$ac_status"); }; }; then
27017 ac_lo=$ac_mid; break
27019 echo "$as_me: failed program was:" >&5
27020 cat "conftest.$ac_ext" >&5
27021 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27023 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27026 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27027 # Binary search between lo and hi bounds.
27028 while test "x$ac_lo" != "x$ac_hi"; do
27029 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27030 cat >"conftest.$ac_ext" <<_ACEOF
27031 #line 27031 "configure"
27032 #include "confdefs.h"
27034 $ac_includes_default
27036 #if defined(__cplusplus)
27038 #ifdef HAVE_GXX_BUILTIN_H
27039 #include <g++/builtin.h>
27040 #elif HAVE_GPP_BUILTIN_H
27041 #include <gpp/builtin.h>
27042 #elif HAVE_BUILTIN_H
27043 #include <builtin.h>
27048 #if $cf_cv_header_stdbool_h
27049 #include <stdbool.h>
27057 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
27062 rm -f "conftest.$ac_objext"
27063 if { (eval echo "$as_me:27063: \"$ac_compile\"") >&5
27064 (eval $ac_compile) 2>&5
27066 echo "$as_me:27066: \$? = $ac_status" >&5
27067 (exit "$ac_status"); } &&
27068 { ac_try='test -s "conftest.$ac_objext"'
27069 { (eval echo "$as_me:27069: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27072 echo "$as_me:27072: \$? = $ac_status" >&5
27073 (exit "$ac_status"); }; }; then
27076 echo "$as_me: failed program was:" >&5
27077 cat "conftest.$ac_ext" >&5
27078 ac_lo=`expr "$ac_mid" + 1`
27080 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27082 ac_cv_sizeof_bool=$ac_lo
27084 if test "$cross_compiling" = yes; then
27085 { { echo "$as_me:27085: error: cannot run test program while cross compiling" >&5
27086 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27087 { (exit 1); exit 1; }; }
27089 cat >"conftest.$ac_ext" <<_ACEOF
27090 #line 27090 "configure"
27091 #include "confdefs.h"
27093 $ac_includes_default
27095 #if defined(__cplusplus)
27097 #ifdef HAVE_GXX_BUILTIN_H
27098 #include <g++/builtin.h>
27099 #elif HAVE_GPP_BUILTIN_H
27100 #include <gpp/builtin.h>
27101 #elif HAVE_BUILTIN_H
27102 #include <builtin.h>
27107 #if $cf_cv_header_stdbool_h
27108 #include <stdbool.h>
27116 FILE *f = fopen ("conftest.val", "w");
27118 $ac_main_return (1);
27119 fprintf (f, "%ld", (long)(sizeof (bool)));
27125 rm -f "conftest$ac_exeext"
27126 if { (eval echo "$as_me:27126: \"$ac_link\"") >&5
27127 (eval $ac_link) 2>&5
27129 echo "$as_me:27129: \$? = $ac_status" >&5
27130 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27131 { (eval echo "$as_me:27131: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27134 echo "$as_me:27134: \$? = $ac_status" >&5
27135 (exit "$ac_status"); }; }; then
27136 ac_cv_sizeof_bool=`cat conftest.val`
27138 echo "$as_me: program exited with status $ac_status" >&5
27139 echo "$as_me: failed program was:" >&5
27140 cat "conftest.$ac_ext" >&5
27142 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27147 ac_cv_sizeof_bool=0
27150 echo "$as_me:27150: result: $ac_cv_sizeof_bool" >&5
27151 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
27152 cat >>confdefs.h <<EOF
27153 #define SIZEOF_BOOL $ac_cv_sizeof_bool
27156 echo "$as_me:27156: checking for type of bool" >&5
27157 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
27158 if test "${cf_cv_type_of_bool+set}" = set; then
27159 echo $ECHO_N "(cached) $ECHO_C" >&6
27163 if test "$cross_compiling" = yes; then
27165 case x$ac_cv_sizeof_bool in
27166 (x1) cf_cv_type_of_bool="unsigned char";;
27167 (x2) cf_cv_type_of_bool="unsigned short";;
27168 (x4) cf_cv_type_of_bool="unsigned int";;
27169 (x8) cf_cv_type_of_bool="unsigned long";;
27170 (*) cf_cv_type_of_bool=unknown;;
27174 cat >"conftest.$ac_ext" <<_ACEOF
27175 #line 27175 "configure"
27176 #include "confdefs.h"
27178 $ac_includes_default
27180 #if defined(__cplusplus)
27182 #ifdef HAVE_GXX_BUILTIN_H
27183 #include <g++/builtin.h>
27184 #elif HAVE_GPP_BUILTIN_H
27185 #include <gpp/builtin.h>
27186 #elif HAVE_BUILTIN_H
27187 #include <builtin.h>
27192 #if $cf_cv_header_stdbool_h
27193 #include <stdbool.h>
27200 FILE *fp = fopen("cf_test.out", "w");
27203 if ((bool)(-x) >= 0)
27204 fputs("unsigned ", fp);
27205 if (sizeof(x) == sizeof(int)) fputs("int", fp);
27206 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
27207 else if (sizeof(x) == sizeof(short))fputs("short",fp);
27208 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
27211 ${cf_cv_main_return:-return}(0);
27215 rm -f "conftest$ac_exeext"
27216 if { (eval echo "$as_me:27216: \"$ac_link\"") >&5
27217 (eval $ac_link) 2>&5
27219 echo "$as_me:27219: \$? = $ac_status" >&5
27220 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27221 { (eval echo "$as_me:27221: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27224 echo "$as_me:27224: \$? = $ac_status" >&5
27225 (exit "$ac_status"); }; }; then
27226 cf_cv_type_of_bool=`cat cf_test.out`
27227 if test -z "$cf_cv_type_of_bool"; then
27228 cf_cv_type_of_bool=unknown
27231 echo "$as_me: program exited with status $ac_status" >&5
27232 echo "$as_me: failed program was:" >&5
27233 cat "conftest.$ac_ext" >&5
27234 cf_cv_type_of_bool=unknown
27236 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27241 echo "$as_me:27241: result: $cf_cv_type_of_bool" >&5
27242 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27244 if test "$cf_cv_type_of_bool" = unknown ; then
27245 case .$NCURSES_BOOL in
27246 (.auto|.) NCURSES_BOOL=unsigned;;
27248 { echo "$as_me:27248: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
27249 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
27250 cf_cv_type_of_bool=$NCURSES_BOOL
27254 echo "$as_me:27254: checking for fallback type of bool" >&5
27255 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
27256 case "$host_cpu" in
27257 (i?86) cf_cv_type_of_bool=char ;;
27258 (*) cf_cv_type_of_bool=int ;;
27260 echo "$as_me:27260: result: $cf_cv_type_of_bool" >&5
27261 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27266 # If the C compiler did not declare bool, and we did not determine that the C++
27267 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
27268 # ncurses library use the same type as C++ bool. Note that this allows one to
27269 # specify the type of bool in a configure-script option and postpone
27270 # integration with the C++ compiler provided that the types are compatible.
27272 if test "$cf_cv_cc_bool_type" = 1
27274 # oops: C has a bool. Unlikely, but C++ could differ.
27276 elif test "$cf_cv_builtin_bool" = 0
27281 # this is the normal case
27282 USE_CXX_BOOL='defined(__cplusplus)'
27285 if test -f "${srcdir}/Ada95/Makefile.in" ; then
27287 if test "$cf_with_ada" != "no" ; then
27288 if test "$with_libtool" != "no"; then
27289 { echo "$as_me:27289: WARNING: libtool does not support Ada - disabling feature" >&5
27290 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
27295 if test "$cf_with_ada" != "no" ; then
27297 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
27300 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27302 unset ac_cv_path_cf_TEMP_gnat
27304 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
27305 set dummy $cf_prog_gnat; ac_word=$2
27306 echo "$as_me:27306: checking for $ac_word" >&5
27307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27308 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
27309 echo $ECHO_N "(cached) $ECHO_C" >&6
27311 case $cf_TEMP_gnat in
27313 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
27316 ac_save_IFS=$IFS; IFS=$ac_path_separator
27318 for ac_dir in $ac_dummy; do
27320 test -z "$ac_dir" && ac_dir=.
27321 if $as_executable_p "$ac_dir/$ac_word"; then
27322 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
27323 echo "$as_me:27323: found $ac_dir/$ac_word" >&5
27328 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
27332 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
27334 if test -n "$cf_TEMP_gnat"; then
27335 echo "$as_me:27335: result: $cf_TEMP_gnat" >&5
27336 echo "${ECHO_T}$cf_TEMP_gnat" >&6
27338 echo "$as_me:27338: result: no" >&5
27339 echo "${ECHO_T}no" >&6
27342 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
27344 if test "x$cf_TEMP_gnat" != xno; then
27345 unset cf_cv_gnat_version
27348 echo "$as_me:27348: checking for $cf_prog_gnat version" >&5
27349 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
27350 if test "${cf_cv_gnat_version+set}" = set; then
27351 echo $ECHO_N "(cached) $ECHO_C" >&6
27354 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
27355 grep '[0-9].[0-9][0-9]*' |\
27356 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27359 echo "$as_me:27359: result: $cf_cv_gnat_version" >&5
27360 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27361 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27362 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
27365 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
27368 unset cf_cv_gnat_version
27369 unset ac_cv_path_cf_TEMP_gnat
27372 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
27374 cf_cv_prog_gnat_correct=no
27376 cf_ada_make=gnatmake
27377 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
27378 # gprconfig is newer than gnatmake; we can continue...
27381 rm -rf ./conftest* ./*~conftest*
27382 if mkdir conftest.src
27386 for cf_gprconfig in Ada C
27388 echo "$as_me:27388: checking for gprconfig name for $cf_gprconfig" >&5
27389 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
27390 if test "$cf_gprconfig" = C
27392 for cf_gprconfig_param in \
27393 "$cf_gprconfig,,,,GNATGCC" \
27394 "$cf_gprconfig,,,,GCC" \
27397 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27398 test -n "$cf_gprconfig_value" && break
27401 cf_gprconfig_param=$cf_gprconfig
27402 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27404 if test -n "$cf_gprconfig_value"
27406 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
27407 echo "$as_me:27407: result: $cf_gprconfig_value" >&5
27408 echo "${ECHO_T}$cf_gprconfig_value" >&6
27410 echo "$as_me:27410: result: missing" >&5
27411 echo "${ECHO_T}missing" >&6
27417 rm -rf ./conftest* ./*~conftest*
27420 if test "x$cf_ada_config" != "x#"
27423 echo "$as_me:27423: checking for gnat version" >&5
27424 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
27425 if test "${cf_cv_gnat_version+set}" = set; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27429 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
27430 grep '[0-9].[0-9][0-9]*' |\
27431 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27434 echo "$as_me:27434: result: $cf_cv_gnat_version" >&5
27435 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27436 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27438 case "$cf_cv_gnat_version" in
27439 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27440 cf_cv_prog_gnat_correct=yes
27443 { echo "$as_me:27443: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
27444 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
27445 cf_cv_prog_gnat_correct=no
27449 # Extract the first word of "m4", so it can be a program name with args.
27450 set dummy m4; ac_word=$2
27451 echo "$as_me:27451: checking for $ac_word" >&5
27452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27453 if test "${ac_cv_prog_M4_exists+set}" = set; then
27454 echo $ECHO_N "(cached) $ECHO_C" >&6
27456 if test -n "$M4_exists"; then
27457 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
27459 ac_save_IFS=$IFS; IFS=$ac_path_separator
27461 for ac_dir in $ac_dummy; do
27463 test -z "$ac_dir" && ac_dir=.
27464 $as_executable_p "$ac_dir/$ac_word" || continue
27465 ac_cv_prog_M4_exists="yes"
27466 echo "$as_me:27466: found $ac_dir/$ac_word" >&5
27470 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
27473 M4_exists=$ac_cv_prog_M4_exists
27474 if test -n "$M4_exists"; then
27475 echo "$as_me:27475: result: $M4_exists" >&5
27476 echo "${ECHO_T}$M4_exists" >&6
27478 echo "$as_me:27478: result: no" >&5
27479 echo "${ECHO_T}no" >&6
27482 if test "$ac_cv_prog_M4_exists" = no; then
27483 cf_cv_prog_gnat_correct=no
27484 { echo "$as_me:27484: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
27485 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
27487 if test "$cf_cv_prog_gnat_correct" = yes; then
27488 echo "$as_me:27488: checking if GNAT works" >&5
27489 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
27491 rm -rf ./conftest* ./*~conftest*
27492 cat >>conftest.ads <<CF_EOF
27493 procedure conftest;
27495 cat >>conftest.adb <<CF_EOF
27498 procedure conftest is
27500 Text_IO.Put ("Hello World");
27502 GNAT.OS_Lib.OS_Exit (0);
27505 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27506 if ( ./conftest 1>&5 2>&1 ) ; then
27507 cf_cv_prog_gnat_correct=yes
27509 cf_cv_prog_gnat_correct=no
27512 cf_cv_prog_gnat_correct=no
27514 rm -rf ./conftest* ./*~conftest*
27516 echo "$as_me:27516: result: $cf_cv_prog_gnat_correct" >&5
27517 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
27520 cf_cv_prog_gnat_correct=no
27524 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27526 ADAFLAGS="$ADAFLAGS -gnatpn"
27528 echo "$as_me:27528: checking optimization options for ADAFLAGS" >&5
27529 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27533 ADAFLAGS="$ADAFLAGS -g"
27539 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27541 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27545 echo "$as_me:27545: result: $ADAFLAGS" >&5
27546 echo "${ECHO_T}$ADAFLAGS" >&6
27548 echo "$as_me:27548: checking if GNATPREP supports -T option" >&5
27549 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27550 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27551 echo $ECHO_N "(cached) $ECHO_C" >&6
27554 cf_cv_gnatprep_opt_t=no
27555 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27558 echo "$as_me:27558: result: $cf_cv_gnatprep_opt_t" >&5
27559 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27560 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27562 echo "$as_me:27562: checking if GNAT supports generics" >&5
27563 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27564 case "$cf_cv_gnat_version" in
27565 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27566 cf_gnat_generics=yes
27569 cf_gnat_generics=no
27572 echo "$as_me:27572: result: $cf_gnat_generics" >&5
27573 echo "${ECHO_T}$cf_gnat_generics" >&6
27575 if test "$cf_gnat_generics" = yes
27577 cf_compile_generics=generics
27578 cf_generic_objects="\${GENOBJS}"
27580 cf_compile_generics=
27581 cf_generic_objects=
27584 echo "$as_me:27584: checking if GNAT supports SIGINT" >&5
27585 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27586 if test "${cf_cv_gnat_sigint+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
27590 rm -rf ./conftest* ./*~conftest*
27591 cat >>conftest.ads <<CF_EOF
27592 with Ada.Interrupts.Names;
27594 package ConfTest is
27596 pragma Warnings (Off); -- the next pragma exists since 3.11p
27597 pragma Unreserve_All_Interrupts;
27598 pragma Warnings (On);
27600 protected Process is
27602 function Continue return Boolean;
27603 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27605 Done : Boolean := False;
27610 cat >>conftest.adb <<CF_EOF
27611 package body ConfTest is
27612 protected body Process is
27617 function Continue return Boolean is
27624 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27625 cf_cv_gnat_sigint=yes
27627 cf_cv_gnat_sigint=no
27629 rm -rf ./conftest* ./*~conftest*
27632 echo "$as_me:27632: result: $cf_cv_gnat_sigint" >&5
27633 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27635 if test "$cf_cv_gnat_sigint" = yes ; then
27638 USE_GNAT_SIGINT="#"
27641 cf_gnat_libraries=no
27642 cf_gnat_projects=no
27644 if test "$enable_gnat_projects" != no ; then
27645 echo "$as_me:27645: checking if GNAT supports project files" >&5
27646 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27647 case "$cf_cv_gnat_version" in
27651 case "$cf_cv_system_name" in
27655 rm -rf ./conftest* ./*~conftest*
27656 if mkdir conftest.src conftest.bin conftest.lib
27659 rm -rf ./conftest* ./*~conftest*
27660 cat >>library.gpr <<CF_EOF
27662 Kind := External ("LIB_KIND");
27663 for Library_Name use "ConfTest";
27664 for Object_Dir use ".";
27665 for Library_ALI_Dir use External("LIBRARY_DIR");
27666 for Library_Version use External ("SONAME");
27667 for Library_Kind use Kind;
27668 for Library_Dir use External("BUILD_DIR");
27669 Source_Dir := External ("SOURCE_DIR");
27670 for Source_Dirs use (Source_Dir);
27673 cat >>confpackage.ads <<CF_EOF
27674 package ConfPackage is
27675 procedure conftest;
27678 cat >>confpackage.adb <<CF_EOF
27680 package body ConfPackage is
27681 procedure conftest is
27683 Text_IO.Put ("Hello World");
27688 if ( "$cf_ada_make" $ADAFLAGS \
27690 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27691 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27692 -XSOURCE_DIR="`pwd`" \
27693 -XSONAME=libConfTest.so.1 \
27694 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27695 cf_gnat_projects=yes
27699 if test -f conftest.lib/confpackage.ali
27701 cf_gnat_libraries=yes
27703 rm -rf ./conftest* ./*~conftest*
27708 echo "$as_me:27708: result: $cf_gnat_projects" >&5
27709 echo "${ECHO_T}$cf_gnat_projects" >&6
27710 fi # enable_gnat_projects
27712 if test "$cf_gnat_projects" = yes
27714 echo "$as_me:27714: checking if GNAT supports libraries" >&5
27715 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27716 echo "$as_me:27716: result: $cf_gnat_libraries" >&5
27717 echo "${ECHO_T}$cf_gnat_libraries" >&6
27720 USE_OLD_MAKERULES=""
27721 USE_GNAT_PROJECTS="#"
27722 USE_GNAT_MAKE_GPR="#"
27723 USE_GNAT_GPRBUILD="#"
27725 if test "$cf_gnat_projects" = yes
27727 USE_OLD_MAKERULES="#"
27728 USE_GNAT_PROJECTS=""
27729 if test "$cf_cv_VERSION_GPRBUILD" != no
27731 USE_GNAT_GPRBUILD=""
27732 elif test "$cf_cv_VERSION_GNATMAKE" != no
27734 USE_GNAT_MAKE_GPR=""
27736 { echo "$as_me:27736: WARNING: use old makefile rules since tools are missing" >&5
27737 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27741 if test "$cf_gnat_libraries" = yes
27743 USE_GNAT_LIBRARIES=""
27745 USE_GNAT_LIBRARIES="#"
27748 echo "$as_me:27748: checking for ada-compiler" >&5
27749 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27751 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27752 if test "${with_ada_compiler+set}" = set; then
27753 withval="$with_ada_compiler"
27754 cf_ada_compiler=$withval
27756 cf_ada_compiler=gnatmake
27759 echo "$as_me:27759: result: $cf_ada_compiler" >&5
27760 echo "${ECHO_T}$cf_ada_compiler" >&6
27762 cf_ada_package=terminal_interface
27764 echo "$as_me:27764: checking for ada-include" >&5
27765 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27767 # Check whether --with-ada-include or --without-ada-include was given.
27768 if test "${with_ada_include+set}" = set; then
27769 withval="$with_ada_include"
27772 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27773 fi; if test -n "$prefix/share/ada/adainclude" ; then
27775 if test "x$prefix" != xNONE; then
27776 cf_path_syntax="$prefix"
27778 cf_path_syntax="$ac_default_prefix"
27781 case ".$withval" in
27782 (.\$\(*\)*|.\'*\'*)
27786 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27788 (.\$\{*prefix\}*|.\$\{*dir\}*)
27789 eval withval="$withval"
27790 case ".$withval" in
27792 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27797 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27800 { { echo "$as_me:27800: error: expected a pathname, not \"$withval\"" >&5
27801 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27802 { (exit 1); exit 1; }; }
27807 eval ADA_INCLUDE="$withval"
27809 echo "$as_me:27809: result: $ADA_INCLUDE" >&5
27810 echo "${ECHO_T}$ADA_INCLUDE" >&6
27812 echo "$as_me:27812: checking for ada-objects" >&5
27813 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27815 # Check whether --with-ada-objects or --without-ada-objects was given.
27816 if test "${with_ada_objects+set}" = set; then
27817 withval="$with_ada_objects"
27820 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27821 fi; if test -n "$prefix/lib/ada/adalib" ; then
27823 if test "x$prefix" != xNONE; then
27824 cf_path_syntax="$prefix"
27826 cf_path_syntax="$ac_default_prefix"
27829 case ".$withval" in
27830 (.\$\(*\)*|.\'*\'*)
27834 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27836 (.\$\{*prefix\}*|.\$\{*dir\}*)
27837 eval withval="$withval"
27838 case ".$withval" in
27840 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27845 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27848 { { echo "$as_me:27848: error: expected a pathname, not \"$withval\"" >&5
27849 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27850 { (exit 1); exit 1; }; }
27855 eval ADA_OBJECTS="$withval"
27857 echo "$as_me:27857: result: $ADA_OBJECTS" >&5
27858 echo "${ECHO_T}$ADA_OBJECTS" >&6
27860 echo "$as_me:27860: checking if an Ada95 shared-library should be built" >&5
27861 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27863 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27864 if test "${with_ada_sharedlib+set}" = set; then
27865 withval="$with_ada_sharedlib"
27866 with_ada_sharedlib=$withval
27868 with_ada_sharedlib=no
27870 echo "$as_me:27870: result: $with_ada_sharedlib" >&5
27871 echo "${ECHO_T}$with_ada_sharedlib" >&6
27873 if test "x$with_ada_sharedlib" != xno
27875 if test "x$cf_gnat_projects" != xyes
27877 { echo "$as_me:27877: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27878 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27879 with_ada_sharedlib=no
27883 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27884 MAKE_ADA_SHAREDLIB="#"
27886 if test "x$with_ada_sharedlib" != xno
27888 MAKE_ADA_SHAREDLIB=
27889 if test "x$with_ada_sharedlib" != xyes
27891 ADA_SHAREDLIB="$with_ada_sharedlib"
27895 # allow the Ada binding to be renamed
27897 echo "$as_me:27897: checking for ada-libname" >&5
27898 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27900 # Check whether --with-ada-libname or --without-ada-libname was given.
27901 if test "${with_ada_libname+set}" = set; then
27902 withval="$with_ada_libname"
27903 ADA_LIBNAME=$withval
27905 ADA_LIBNAME=AdaCurses
27907 case "x$ADA_LIBNAME" in
27909 ADA_LIBNAME=AdaCurses
27913 echo "$as_me:27913: result: $ADA_LIBNAME" >&5
27914 echo "${ECHO_T}$ADA_LIBNAME" >&6
27922 # do this "late" to avoid conflict with header-checks
27923 if test "x$with_widec" = xyes ; then
27924 echo "$as_me:27924: checking for wchar_t" >&5
27925 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27926 if test "${ac_cv_type_wchar_t+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27929 cat >"conftest.$ac_ext" <<_ACEOF
27930 #line 27930 "configure"
27931 #include "confdefs.h"
27932 $ac_includes_default
27938 if (sizeof (wchar_t))
27944 rm -f "conftest.$ac_objext"
27945 if { (eval echo "$as_me:27945: \"$ac_compile\"") >&5
27946 (eval $ac_compile) 2>&5
27948 echo "$as_me:27948: \$? = $ac_status" >&5
27949 (exit "$ac_status"); } &&
27950 { ac_try='test -s "conftest.$ac_objext"'
27951 { (eval echo "$as_me:27951: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27954 echo "$as_me:27954: \$? = $ac_status" >&5
27955 (exit "$ac_status"); }; }; then
27956 ac_cv_type_wchar_t=yes
27958 echo "$as_me: failed program was:" >&5
27959 cat "conftest.$ac_ext" >&5
27960 ac_cv_type_wchar_t=no
27962 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27964 echo "$as_me:27964: result: $ac_cv_type_wchar_t" >&5
27965 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27967 echo "$as_me:27967: checking size of wchar_t" >&5
27968 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27969 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27970 echo $ECHO_N "(cached) $ECHO_C" >&6
27972 if test "$ac_cv_type_wchar_t" = yes; then
27973 if test "$cross_compiling" = yes; then
27974 # Depending upon the size, compute the lo and hi bounds.
27975 cat >"conftest.$ac_ext" <<_ACEOF
27976 #line 27976 "configure"
27977 #include "confdefs.h"
27978 $ac_includes_default
27982 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27987 rm -f "conftest.$ac_objext"
27988 if { (eval echo "$as_me:27988: \"$ac_compile\"") >&5
27989 (eval $ac_compile) 2>&5
27991 echo "$as_me:27991: \$? = $ac_status" >&5
27992 (exit "$ac_status"); } &&
27993 { ac_try='test -s "conftest.$ac_objext"'
27994 { (eval echo "$as_me:27994: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27997 echo "$as_me:27997: \$? = $ac_status" >&5
27998 (exit "$ac_status"); }; }; then
28001 cat >"conftest.$ac_ext" <<_ACEOF
28002 #line 28002 "configure"
28003 #include "confdefs.h"
28004 $ac_includes_default
28008 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28013 rm -f "conftest.$ac_objext"
28014 if { (eval echo "$as_me:28014: \"$ac_compile\"") >&5
28015 (eval $ac_compile) 2>&5
28017 echo "$as_me:28017: \$? = $ac_status" >&5
28018 (exit "$ac_status"); } &&
28019 { ac_try='test -s "conftest.$ac_objext"'
28020 { (eval echo "$as_me:28020: \"$ac_try\"") >&5
28021 (eval $ac_try) 2>&5
28023 echo "$as_me:28023: \$? = $ac_status" >&5
28024 (exit "$ac_status"); }; }; then
28025 ac_hi=$ac_mid; break
28027 echo "$as_me: failed program was:" >&5
28028 cat "conftest.$ac_ext" >&5
28029 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
28031 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28034 echo "$as_me: failed program was:" >&5
28035 cat "conftest.$ac_ext" >&5
28038 cat >"conftest.$ac_ext" <<_ACEOF
28039 #line 28039 "configure"
28040 #include "confdefs.h"
28041 $ac_includes_default
28045 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
28050 rm -f "conftest.$ac_objext"
28051 if { (eval echo "$as_me:28051: \"$ac_compile\"") >&5
28052 (eval $ac_compile) 2>&5
28054 echo "$as_me:28054: \$? = $ac_status" >&5
28055 (exit "$ac_status"); } &&
28056 { ac_try='test -s "conftest.$ac_objext"'
28057 { (eval echo "$as_me:28057: \"$ac_try\"") >&5
28058 (eval $ac_try) 2>&5
28060 echo "$as_me:28060: \$? = $ac_status" >&5
28061 (exit "$ac_status"); }; }; then
28062 ac_lo=$ac_mid; break
28064 echo "$as_me: failed program was:" >&5
28065 cat "conftest.$ac_ext" >&5
28066 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
28068 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28071 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28072 # Binary search between lo and hi bounds.
28073 while test "x$ac_lo" != "x$ac_hi"; do
28074 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
28075 cat >"conftest.$ac_ext" <<_ACEOF
28076 #line 28076 "configure"
28077 #include "confdefs.h"
28078 $ac_includes_default
28082 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28087 rm -f "conftest.$ac_objext"
28088 if { (eval echo "$as_me:28088: \"$ac_compile\"") >&5
28089 (eval $ac_compile) 2>&5
28091 echo "$as_me:28091: \$? = $ac_status" >&5
28092 (exit "$ac_status"); } &&
28093 { ac_try='test -s "conftest.$ac_objext"'
28094 { (eval echo "$as_me:28094: \"$ac_try\"") >&5
28095 (eval $ac_try) 2>&5
28097 echo "$as_me:28097: \$? = $ac_status" >&5
28098 (exit "$ac_status"); }; }; then
28101 echo "$as_me: failed program was:" >&5
28102 cat "conftest.$ac_ext" >&5
28103 ac_lo=`expr "$ac_mid" + 1`
28105 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28107 ac_cv_sizeof_wchar_t=$ac_lo
28109 if test "$cross_compiling" = yes; then
28110 { { echo "$as_me:28110: error: cannot run test program while cross compiling" >&5
28111 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28112 { (exit 1); exit 1; }; }
28114 cat >"conftest.$ac_ext" <<_ACEOF
28115 #line 28115 "configure"
28116 #include "confdefs.h"
28117 $ac_includes_default
28121 FILE *f = fopen ("conftest.val", "w");
28123 $ac_main_return (1);
28124 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
28130 rm -f "conftest$ac_exeext"
28131 if { (eval echo "$as_me:28131: \"$ac_link\"") >&5
28132 (eval $ac_link) 2>&5
28134 echo "$as_me:28134: \$? = $ac_status" >&5
28135 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
28136 { (eval echo "$as_me:28136: \"$ac_try\"") >&5
28137 (eval $ac_try) 2>&5
28139 echo "$as_me:28139: \$? = $ac_status" >&5
28140 (exit "$ac_status"); }; }; then
28141 ac_cv_sizeof_wchar_t=`cat conftest.val`
28143 echo "$as_me: program exited with status $ac_status" >&5
28144 echo "$as_me: failed program was:" >&5
28145 cat "conftest.$ac_ext" >&5
28147 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
28152 ac_cv_sizeof_wchar_t=0
28155 echo "$as_me:28155: result: $ac_cv_sizeof_wchar_t" >&5
28156 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
28157 cat >>confdefs.h <<EOF
28158 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
28161 # cross-compiling to mingw can run into the problem that attempting to
28162 # link with the regex library fails, causing the test to not set this to
28163 # a number. "recent" autoconf does not address this problem either -TD
28164 if test -z "$ac_cv_sizeof_wchar_t"
28166 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
28168 echo "${as_me:-configure}:28168: testing test failed (assume 2) ..." 1>&5
28170 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
28171 mv confdefs.tmp confdefs.h
28172 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
28176 ### Construct the ncurses library-subsets, if any, from this set of keywords:
28177 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
28179 ### ticlib modules may be a separate library, otherwise contained in termlib.
28180 ### termlib modules may be a separate library, otherwise contained in ncurses.
28182 ### The of "+" or " " between the tokens controls the way the script
28183 ### chooses to split module lists into libraries.
28185 ### (see CF_LIB_RULES).
28186 echo "$as_me:28186: checking for library subsets" >&5
28187 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
28190 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
28191 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
28192 if test "$with_ticlib" != no ; then
28193 LIB_SUBSETS="${LIB_SUBSETS} "
28195 LIB_SUBSETS="${LIB_SUBSETS}+"
28199 LIB_SUBSETS="${LIB_SUBSETS}termlib"
28200 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
28202 if test "$with_termlib" != no ; then
28203 LIB_SUBSETS="${LIB_SUBSETS} "
28205 LIB_SUBSETS="${LIB_SUBSETS}+"
28208 LIB_SUBSETS="${LIB_SUBSETS}base"
28210 # Most term-driver calls are to tinfo, but some like init_pair are to the
28211 # base library (so it resides in base).
28212 if test "$with_term_driver" != no ; then
28213 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
28214 case "$cf_cv_system_name" in
28215 (*mingw32*|*mingw64*)
28216 if test "x$with_exp_win32" = xyes ; then
28217 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
28219 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
28221 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
28224 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
28227 elif test "x$with_exp_win32" = xyes ; then
28228 case "$cf_cv_system_name" in
28229 (*mingw32*|*mingw64*)
28230 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
28237 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
28238 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
28240 echo "$as_me:28240: result: $LIB_SUBSETS" >&5
28241 echo "${ECHO_T}$LIB_SUBSETS" >&6
28243 ### Construct the list of include-directories to be generated
28245 if test "$srcdir" != "."; then
28246 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
28248 CPPFLAGS="-I../include $CPPFLAGS"
28249 if test "$srcdir" != "."; then
28250 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
28252 CPPFLAGS="-I. $CPPFLAGS"
28254 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
28255 if test "$srcdir" != "."; then
28256 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
28258 if test "$GCC" != yes; then
28259 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28260 elif test "$includedir" != "/usr/include"; then
28261 if test "$includedir" = '${prefix}/include' ; then
28262 if test x$prefix != x/usr ; then
28263 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28266 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28270 ### Build up pieces for makefile rules
28271 echo "$as_me:28271: checking default library suffix" >&5
28272 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
28274 case $DFT_LWR_MODEL in
28275 (libtool) DFT_ARG_SUFFIX='' ;;
28276 (normal) DFT_ARG_SUFFIX='' ;;
28277 (debug) DFT_ARG_SUFFIX='_g' ;;
28278 (profile) DFT_ARG_SUFFIX='_p' ;;
28279 (shared) DFT_ARG_SUFFIX='' ;;
28281 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
28282 echo "$as_me:28282: result: $DFT_ARG_SUFFIX" >&5
28283 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
28285 echo "$as_me:28285: checking default library-dependency suffix" >&5
28286 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
28288 case X$DFT_LWR_MODEL in
28290 DFT_LIB_SUFFIX='.la'
28291 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28294 case "$cf_cv_system_name" in
28296 DFT_LIB_SUFFIX='_g.lib'
28299 DFT_LIB_SUFFIX='_g.a'
28302 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28305 case "$cf_cv_system_name" in
28307 DFT_LIB_SUFFIX='_p.lib'
28310 DFT_LIB_SUFFIX='_p.a'
28313 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28316 case "$cf_cv_system_name" in
28318 DFT_LIB_SUFFIX='.so'
28319 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28322 DFT_LIB_SUFFIX='.dll'
28323 DFT_DEP_SUFFIX='.dll.lib'
28325 (cygwin*|msys*|mingw*)
28326 DFT_LIB_SUFFIX='.dll'
28327 DFT_DEP_SUFFIX='.dll.a'
28330 DFT_LIB_SUFFIX='.dylib'
28331 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28336 DFT_LIB_SUFFIX='.so'
28337 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28340 DFT_LIB_SUFFIX='.sl'
28341 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28346 DFT_LIB_SUFFIX='.so'
28347 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28354 DFT_LIB_SUFFIX='.lib'
28357 DFT_LIB_SUFFIX='.a'
28360 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28363 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28365 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28366 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28368 echo "$as_me:28368: result: $DFT_DEP_SUFFIX" >&5
28369 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28371 echo "$as_me:28371: checking default object directory" >&5
28372 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28374 case $DFT_LWR_MODEL in
28375 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28376 (normal) DFT_OBJ_SUBDIR='objects' ;;
28377 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28378 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28380 case "$cf_cv_system_name" in
28382 DFT_OBJ_SUBDIR='objects' ;;
28384 DFT_OBJ_SUBDIR='obj_s' ;;
28387 echo "$as_me:28387: result: $DFT_OBJ_SUBDIR" >&5
28388 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28390 if test "x$cf_with_cxx" = xyes ; then
28391 echo "$as_me:28391: checking c++ library-dependency suffix" >&5
28392 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28393 if test "$with_libtool" != "no"; then
28394 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28395 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28396 elif test "$with_shared_cxx" != "no"; then
28397 # also for g++ users...
28398 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28400 # we normally make a static library because C/C++ library rules differ
28404 CXX_LIB_SUFFIX='.la'
28405 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28408 case "$cf_cv_system_name" in
28410 CXX_LIB_SUFFIX='_g.lib'
28413 CXX_LIB_SUFFIX='_g.a'
28416 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28419 case "$cf_cv_system_name" in
28421 CXX_LIB_SUFFIX='_p.lib'
28424 CXX_LIB_SUFFIX='_p.a'
28427 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28430 case "$cf_cv_system_name" in
28432 CXX_LIB_SUFFIX='.so'
28433 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28436 CXX_LIB_SUFFIX='.dll'
28437 CXX_DEP_SUFFIX='.dll.lib'
28439 (cygwin*|msys*|mingw*)
28440 CXX_LIB_SUFFIX='.dll'
28441 CXX_DEP_SUFFIX='.dll.a'
28444 CXX_LIB_SUFFIX='.dylib'
28445 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28450 CXX_LIB_SUFFIX='.so'
28451 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28454 CXX_LIB_SUFFIX='.sl'
28455 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28460 CXX_LIB_SUFFIX='.so'
28461 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28468 CXX_LIB_SUFFIX='.lib'
28471 CXX_LIB_SUFFIX='.a'
28474 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28477 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28479 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28480 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28484 echo "$as_me:28484: result: $CXX_LIB_SUFFIX" >&5
28485 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28489 # do not want -ldl in build except as needed for -lncurses dependency
28490 if test "x$with_dlsym" = xyes ; then
28491 if test "$DFT_LWR_MODEL" = shared || \
28492 test "$DFT_LWR_MODEL" = libtool ; then
28494 # remove dl library from $LIBS
28495 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28499 ### Set up low-level terminfo dependencies for makefiles.
28501 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28502 # do not need libdl
28504 if test "x$with_dlsym" = xyes ; then
28506 # remove dl library from $SHLIB_LIST
28507 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28511 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28512 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28513 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28514 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28516 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28519 if test "$with_ticlib" != no ; then
28521 if test "x$with_ticlib" != xyes ; then
28522 TICS_NAME=$with_ticlib
28523 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28524 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28525 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28526 TICS_LIB_SUFFIX="${with_ticlib}"
28528 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28529 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28530 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28531 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28533 TICS_LDFLAGS="-L${LIB_DIR}"
28534 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28536 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28537 TICS_LDFLAGS="-L${LIB_DIR}"
28538 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28541 if test "$with_termlib" != no ; then
28543 if test "x$with_termlib" != xyes ; then
28544 TINFO_NAME=$with_termlib
28545 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28546 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28547 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28548 TINFO_LIB_SUFFIX="${with_termlib}"
28550 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28551 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28552 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28553 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28556 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28557 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28558 if test "$DFT_LWR_MODEL" = "libtool"; then
28559 TEST_ARGS="${TEST_DEPS}"
28560 TEST_ARG2="${TEST_DEP2}"
28561 TINFO_LDFLAGS="-L${LIB_DIR}"
28562 TINFO_LIBS="$TEST_ARGS"
28563 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28564 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28566 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28567 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28568 if test "x$with_term_driver" != xno ; then
28569 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28570 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28571 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28573 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28574 TINFO_LIBS="$TEST_ARGS"
28576 TINFO_LDFLAGS="-L${LIB_DIR}"
28577 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28580 # the next lines are needed for linking libtic over libncurses
28581 TINFO_NAME=${LIB_NAME}
28582 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28583 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28584 if test "x$with_tic_depends" = xyes ; then
28585 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28587 TICS_LIST="$SHLIB_LIST"
28590 TINFO_LDFLAGS="-L${LIB_DIR}"
28591 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28594 if test "$DFT_LWR_MODEL" = shared ; then
28595 case "$cf_cv_system_name" in
28597 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28603 if test "x$with_dlsym" = xyes ; then
28605 # remove dl library from $TICS_LIST
28606 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28610 if test "$DFT_LWR_MODEL" = "libtool"; then
28615 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28617 case "$DFT_LWR_MODEL" in
28618 (normal|debug|profile)
28620 if test "$GCC" = yes ; then
28621 case "$cf_cv_system_name" in
28622 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28626 (*) # normally, except when broken
28627 LDFLAGS_STATIC=-static
28628 LDFLAGS_SHARED=-dynamic
28632 case "$cf_cv_system_name" in
28633 (aix[4-7]*) # from ld manpage
28634 LDFLAGS_STATIC=-bstatic
28635 LDFLAGS_SHARED=-bdynamic
28637 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28638 # We could also use just "archive" and "shared".
28639 LDFLAGS_STATIC=-Wl,-a,archive_shared
28640 LDFLAGS_SHARED=-Wl,-a,shared_archive
28642 (irix*) # from ld manpage IRIX64
28643 LDFLAGS_STATIC=-Bstatic
28644 LDFLAGS_SHARED=-Bdynamic
28646 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28647 # alternative "-oldstyle_liblookup" (not in cc manpage)
28648 LDFLAGS_STATIC=-noso
28649 LDFLAGS_SHARED=-so_archive
28652 LDFLAGS_STATIC=-Bstatic
28653 LDFLAGS_SHARED=-Bdynamic
28658 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28660 echo "$as_me:28660: checking if linker supports switching between static/dynamic" >&5
28661 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28663 rm -f libconftest.a
28664 cat >conftest.$ac_ext <<EOF
28665 #line 28665 "configure"
28667 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28669 if { (eval echo "$as_me:28669: \"$ac_compile\"") >&5
28670 (eval $ac_compile) 2>&5
28672 echo "$as_me:28672: \$? = $ac_status" >&5
28673 (exit "$ac_status"); } ; then
28674 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28675 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28679 cf_save_LIBS="$LIBS"
28681 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28682 cat >"conftest.$ac_ext" <<_ACEOF
28683 #line 28683 "configure"
28684 #include "confdefs.h"
28686 #line 28686 "configure"
28688 int cf_ldflags_static(FILE *fp);
28694 return cf_ldflags_static(stdin);
28700 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28701 if { (eval echo "$as_me:28701: \"$ac_link\"") >&5
28702 (eval $ac_link) 2>&5
28704 echo "$as_me:28704: \$? = $ac_status" >&5
28705 (exit "$ac_status"); } &&
28706 { ac_try='test -s "conftest$ac_exeext"'
28707 { (eval echo "$as_me:28707: \"$ac_try\"") >&5
28708 (eval $ac_try) 2>&5
28710 echo "$as_me:28710: \$? = $ac_status" >&5
28711 (exit "$ac_status"); }; }; then
28713 # some linkers simply ignore the -dynamic
28714 case x`file "conftest$ac_exeext" 2>/dev/null` in
28716 cf_ldflags_static=no
28719 cf_ldflags_static=yes
28724 echo "$as_me: failed program was:" >&5
28725 cat "conftest.$ac_ext" >&5
28726 cf_ldflags_static=no
28728 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28730 rm -f libconftest.*
28731 LIBS="$cf_save_LIBS"
28733 echo "$as_me:28733: result: $cf_ldflags_static" >&5
28734 echo "${ECHO_T}$cf_ldflags_static" >&6
28736 if test "$cf_ldflags_static" != yes
28749 echo "$as_me:28749: checking where we will install curses.h" >&5
28750 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28753 if test "$with_overwrite" = no && \
28754 { test "x$includedir" = 'x${prefix}/include' || \
28755 test "x$includedir" = "x${prefix}/include"; }
28757 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28759 echo "$as_me:28759: result: ${includedir}${includesubdir}" >&5
28760 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28762 ### Resolve a conflict between normal and wide-curses by forcing applications
28763 ### that will need libutf8 to add it to their configure script.
28764 if test "$with_overwrite" != no ; then
28765 if test "$NCURSES_LIBUTF8" = 1 ; then
28766 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28767 { echo "$as_me:28767: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28768 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28771 WITH_OVERWRITE=$with_overwrite
28773 ### At least on MinGW a shared library build without libtool
28774 ### requires adding the additional libs to the link list.
28775 case "$cf_cv_system_name" in
28776 (*mingw32*|*mingw64*)
28777 if test "$DFT_LWR_MODEL" != "libtool"; then
28778 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28784 ### predefined stuff for the test programs
28786 cat >>confdefs.h <<\EOF
28787 #define HAVE_SLK_COLOR 1
28790 # pkgsrc uses these
28792 echo "$as_me:28792: checking for desired basename for form library" >&5
28793 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28795 # Check whether --with-form-libname or --without-form-libname was given.
28796 if test "${with_form_libname+set}" = set; then
28797 withval="$with_form_libname"
28798 with_lib_basename=$withval
28800 with_lib_basename=form
28802 FORM_NAME="$with_lib_basename"
28804 case "x$FORM_NAME" in
28812 echo "$as_me:28812: result: $FORM_NAME" >&5
28813 echo "${ECHO_T}$FORM_NAME" >&6
28815 echo "$as_me:28815: checking for desired basename for menu library" >&5
28816 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28818 # Check whether --with-menu-libname or --without-menu-libname was given.
28819 if test "${with_menu_libname+set}" = set; then
28820 withval="$with_menu_libname"
28821 with_lib_basename=$withval
28823 with_lib_basename=menu
28825 MENU_NAME="$with_lib_basename"
28827 case "x$MENU_NAME" in
28835 echo "$as_me:28835: result: $MENU_NAME" >&5
28836 echo "${ECHO_T}$MENU_NAME" >&6
28838 echo "$as_me:28838: checking for desired basename for panel library" >&5
28839 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28841 # Check whether --with-panel-libname or --without-panel-libname was given.
28842 if test "${with_panel_libname+set}" = set; then
28843 withval="$with_panel_libname"
28844 with_lib_basename=$withval
28846 with_lib_basename=panel
28848 PANEL_NAME="$with_lib_basename"
28850 case "x$PANEL_NAME" in
28858 echo "$as_me:28858: result: $PANEL_NAME" >&5
28859 echo "${ECHO_T}$PANEL_NAME" >&6
28861 echo "$as_me:28861: checking for desired basename for cxx library" >&5
28862 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28864 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28865 if test "${with_cxx_libname+set}" = set; then
28866 withval="$with_cxx_libname"
28867 with_lib_basename=$withval
28869 with_lib_basename=ncurses++
28871 CXX_NAME="$with_lib_basename"
28873 case "x$CXX_NAME" in
28881 echo "$as_me:28881: result: $CXX_NAME" >&5
28882 echo "${ECHO_T}$CXX_NAME" >&6
28884 ### Construct the list of subdirectories for which we'll customize makefiles
28885 ### with the appropriate compile-rules.
28887 echo "$as_me:28887: checking for src modules" >&5
28888 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28890 # dependencies and linker-arguments for test-programs
28891 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28892 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28893 if test "$DFT_LWR_MODEL" = "libtool"; then
28894 TEST_ARGS="${TEST_DEPS}"
28895 TEST_ARG2="${TEST_DEP2}"
28897 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28898 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28901 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28903 for cf_dir in $modules_to_build
28905 if test -f "$srcdir/$cf_dir/modules" ; then
28907 if test -z "$cf_cv_src_modules"; then
28908 cf_cv_src_modules=$cf_dir
28910 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28913 # Make the ncurses_cfg.h file record the library interface files as
28914 # well. These are header files that are the same name as their
28915 # directory. Ncurses is the only library that does not follow
28917 if test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28919 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28921 cat >>confdefs.h <<EOF
28922 #define HAVE_${cf_have_include}_H 1
28925 cat >>confdefs.h <<EOF
28926 #define HAVE_LIB${cf_have_include} 1
28929 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28931 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28933 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28934 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28935 if test "$DFT_LWR_MODEL" = "libtool"; then
28936 TEST_ARGS="${TEST_DEPS}"
28937 TEST_ARG2="${TEST_DEP2}"
28939 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28940 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28942 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28946 echo "$as_me:28946: result: $cf_cv_src_modules" >&5
28947 echo "${ECHO_T}$cf_cv_src_modules" >&6
28949 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28950 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28953 if test "x$cf_with_manpages" != xno ; then
28954 SRC_SUBDIRS="$SRC_SUBDIRS man"
28956 SRC_SUBDIRS="$SRC_SUBDIRS include"
28957 for cf_dir in $cf_cv_src_modules
28959 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28961 if test "x$cf_with_tests" != "xno" ; then
28962 SRC_SUBDIRS="$SRC_SUBDIRS test"
28964 # always make this, to install the ncurses-config script
28965 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28966 if test "$cf_with_cxx_binding" != no; then
28967 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28968 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28971 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28972 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28975 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28976 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28977 ADA_SUBDIRS="gen src"
28978 if test "x$cf_with_tests" != "xno" ; then
28979 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28984 for cf_dir in $SRC_SUBDIRS
28986 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28989 if test -n "$ADA_SUBDIRS"; then
28990 for cf_dir in $ADA_SUBDIRS
28992 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28997 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28998 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28999 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
29000 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
29004 for cf_item in $cf_list_models
29008 (libtool) cf_subdir='obj_lo' ;;
29009 (normal) cf_subdir='objects' ;;
29010 (debug) cf_subdir='obj_g' ;;
29011 (profile) cf_subdir='obj_p' ;;
29013 case "$cf_cv_system_name" in
29015 cf_subdir='objects' ;;
29017 cf_subdir='obj_s' ;;
29021 for cf_item2 in $DIRS_TO_MAKE
29023 test "$cf_item2" = "$cf_subdir" && break
29025 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
29027 for cf_dir in $DIRS_TO_MAKE
29029 test ! -d "$cf_dir" && mkdir "$cf_dir"
29032 # symbols that differ when compiling Ada95 by itself.
29033 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
29035 # values to use as strings
29037 cat >>confdefs.h <<EOF
29038 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
29041 cat >>confdefs.h <<EOF
29042 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
29045 ### Define substitutions for header files to avoid name-pollution
29047 if test "x$cf_cv_have_tcgetattr" = xyes ; then
29053 if test "x$ac_cv_header_stdint_h" = xyes ; then
29059 if test "x$ac_cv_header_termio_h" = xyes ; then
29065 if test "x$ac_cv_header_termios_h" = xyes ; then
29071 ################################################################################
29072 test "x$use_database" = xyes && \
29073 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
29075 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
29076 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
29078 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
29079 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
29082 if test "x$cf_with_tests" != xno ; then
29088 ADAHTML_DIR=../../doc/html/ada
29090 # workaround for OS/2 (20151017)
29091 case "$cf_cv_system_name" in
29093 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
29100 # workaround for g++ versus Solaris (20131116)
29101 case "$cf_cv_system_name" in
29103 case "x$CPPFLAGS" in
29104 (*-D_XOPEN_SOURCE_EXTENDED*)
29105 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
29107 echo "${as_me:-configure}:29107: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
29109 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
29110 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
29116 # Help to automatically enable the extended curses features when using either
29117 # the *-config or the ".pc" files by adding defines.
29118 echo "$as_me:29118: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
29119 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
29121 for cf_loop1 in $CPPFLAGS_after_XOPEN
29124 for cf_loop2 in $CPPFLAGS_before_XOPEN
29126 if test "x$cf_loop1" = "x$cf_loop2"
29132 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
29134 echo "$as_me:29134: result: $PKG_CFLAGS" >&5
29135 echo "${ECHO_T}$PKG_CFLAGS" >&6
29137 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
29138 case "x$NCURSES_OSPEED" in
29147 cat >>confdefs.h <<EOF
29148 #define NCURSES_OSPEED_COMPAT $cf_compatible
29151 case "x$cf_cv_typeof_chtype" in
29152 (xshort|xint|xlong)
29153 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
29157 case "x$cf_cv_typeof_mmask_t" in
29158 (xshort|xint|xlong)
29159 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
29163 # substitute into misc/Makefile to suppress
29164 # (un)install.data from the
29165 # (un)install rules.
29166 if test "x$cf_with_db_install" = "xno"; then
29168 MISC_UNINSTALL_DATA=
29170 MISC_INSTALL_DATA=install.data
29171 MISC_UNINSTALL_DATA=uninstall.data
29174 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
29177 MAKE_DATABASE="$MAKE_TERMINFO"
29180 if test -n "$PACKAGE"
29182 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
29184 echo "package: $PACKAGE"
29190 if test -n "$RESULTING_SYMS"
29192 cf_filter_syms=$cf_dft_filter_syms
29193 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_default" 1>&6
29195 echo "${as_me:-configure}:29195: testing will map symbols to ABI=$cf_cv_abi_default ..." 1>&5
29199 if test "x$WILDCARD_SYMS" = xno
29204 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
29206 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
29207 if test "$cf_filter_syms" = yes
29209 RESULTING_SYMS=resulting.map
29212 if test "x$cross_compiling" = xyes ; then
29213 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
29216 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
29220 # This is used for the *-config script and *.pc data files.
29222 echo "$as_me:29222: checking for linker search path" >&5
29223 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
29224 if test "${cf_cv_ld_searchpath+set}" = set; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29228 if test "$cross_compiling" != yes ; then
29230 # GNU binutils' ld does not involve permissions which may stop ldconfig.
29231 cf_pathlist=`${LD:-ld} --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
29233 # The -NX options tell newer versions of Linux ldconfig to not attempt to
29234 # update the cache, which makes it run faster.
29235 test -z "$cf_pathlist" && \
29236 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
29238 test -z "$cf_pathlist" &&
29239 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
29241 # This works with OpenBSD 6.5, which lists only filenames
29242 test -z "$cf_pathlist" &&
29243 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
29245 if test -z "$cf_pathlist"
29247 # dyld default path with MacOS
29248 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
29250 # do this to bypass check
29251 cf_cv_ld_searchpath='$HOME/lib'
29252 cf_pathlist="/usr/local/lib /lib /usr/lib"
29256 if test -z "$cf_pathlist"
29258 # Solaris is "SunOS"
29259 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
29261 case x`(isainfo -b)` in
29263 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
29266 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
29267 cf_pathlist="$cf_pathlist /lib /usr/lib"
29270 { echo "$as_me:29270: WARNING: problem with Solaris architecture" >&5
29271 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
29277 if test -z "$cf_pathlist"
29280 if test x"`uname -s`" = xHP-UX
29282 case x`getconf LONG_BIT` in
29284 cf_pathlist="/usr/lib/hpux64"
29287 cf_pathlist="/usr/lib/hpux32"
29295 # If nothing else, assume it is conventional
29296 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
29298 # Finally, check that this is only directories
29299 for cf_path in $0 $cf_pathlist
29301 if test -d "$cf_path"; then
29302 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29303 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29307 # Ensure that it is nonempty
29308 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29311 echo "$as_me:29311: result: $cf_cv_ld_searchpath" >&5
29312 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29314 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29316 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"
29317 ac_config_commands="$ac_config_commands default"
29318 cat >confcache <<\_ACEOF
29319 # This file is a shell script that caches the results of configure
29320 # tests run on this system so they can be shared between configure
29321 # scripts and configure runs, see configure's option --config-cache.
29322 # It is not useful on other systems. If it contains results you don't
29323 # want to keep, you may remove or edit it.
29325 # config.status only pays attention to the cache file if you give it
29326 # the --recheck option to rerun configure.
29328 # `ac_cv_env_foo' variables (set or unset) will be overriden when
29329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29330 # following values.
29334 # The following way of writing the cache mishandles newlines in values,
29335 # but we know of no workaround that is simple, portable, and efficient.
29336 # So, don't put newlines in cache variables' values.
29337 # Ultrix sh set writes to stderr and can't be redirected directly,
29338 # and sets the high bit in the cache file unless we assign to the vars.
29341 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29343 # `set' does not quote correctly, so add quotes (double-quote
29344 # substitution turns \\\\ into \\, and sed turns \\ into \).
29347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29350 # `set' quotes correctly as required by POSIX, so do not add quotes.
29352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29361 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29363 if cmp -s $cache_file confcache; then :; else
29364 if test -w $cache_file; then
29365 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29366 cat confcache >$cache_file
29368 echo "not updating unwritable cache $cache_file"
29373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29374 # Let make expand exec_prefix.
29375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29377 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29378 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29379 # trailing colons and then remove the whole line if VPATH becomes empty
29380 # (actually we leave an empty line to preserve line numbers).
29381 if test "x$srcdir" = x.; then
29382 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29383 s/:*\$(srcdir):*/:/;
29384 s/:*\${srcdir}:*/:/;
29386 s/^\([^=]*=[ ]*\):*/\1/;
29392 DEFS=-DHAVE_CONFIG_H
29394 : "${CONFIG_STATUS=./config.status}"
29395 ac_clean_files_save=$ac_clean_files
29396 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29397 { echo "$as_me:29397: creating $CONFIG_STATUS" >&5
29398 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29399 cat >"$CONFIG_STATUS" <<_ACEOF
29401 # Generated automatically by configure.
29402 # Run this file to recreate the current configuration.
29403 # Compiler output produced by configure, useful for debugging
29404 # configure, is in config.log if it exists.
29406 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
29409 SHELL=\${CONFIG_SHELL-$SHELL}
29410 ac_cs_invocation="\$0 \$@"
29412 CLICOLOR_FORCE= GREP_OPTIONS=
29413 unset CLICOLOR_FORCE GREP_OPTIONS
29416 cat >>"$CONFIG_STATUS" <<\_ACEOF
29417 # Be Bourne compatible
29418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29421 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29425 # Name of the executable.
29426 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29428 if expr a : '\(a\)' >/dev/null 2>&1; then
29434 rm -f conf$$ conf$$.exe conf$$.file
29436 if ln -s conf$$.file conf$$ 2>/dev/null; then
29437 # We could just check for DJGPP; but this test a) works b) is more generic
29438 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29439 if test -f conf$$.exe; then
29440 # Don't use ln at all; we don't have any links
29445 elif ln conf$$.file conf$$ 2>/dev/null; then
29450 rm -f conf$$ conf$$.exe conf$$.file
29452 as_executable_p="test -f"
29454 # Support unset when possible.
29455 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29462 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29463 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29464 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29465 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29466 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29467 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29468 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29469 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29472 # We need space, tab and new line, in precisely that order.
29478 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29484 # Files that config.status was made for.
29485 if test -n "$ac_config_files"; then
29486 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29489 if test -n "$ac_config_headers"; then
29490 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29493 if test -n "$ac_config_links"; then
29494 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29497 if test -n "$ac_config_commands"; then
29498 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29501 cat >>"$CONFIG_STATUS" <<\EOF
29504 \`$as_me' instantiates files from templates according to the
29505 current configuration.
29507 Usage: $0 [OPTIONS] [FILE]...
29509 -h, --help print this help, then exit
29510 -V, --version print version number, then exit
29511 -d, --debug don't remove temporary files
29512 --recheck update $as_me by reconfiguring in the same conditions
29513 --file=FILE[:TEMPLATE]
29514 instantiate the configuration file FILE
29515 --header=FILE[:TEMPLATE]
29516 instantiate the configuration header FILE
29518 Configuration files:
29521 Configuration headers:
29524 Configuration commands:
29527 Report bugs to <dickey@invisible-island.net>."
29530 cat >>"$CONFIG_STATUS" <<EOF
29533 configured by $0, generated by GNU Autoconf 2.52.20230114,
29534 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29536 Copyright 2003-2022,2023 Thomas E. Dickey
29537 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29538 Free Software Foundation, Inc.
29539 This config.status script is free software; the Free Software Foundation
29540 gives unlimited permission to copy, distribute and modify it."
29545 cat >>"$CONFIG_STATUS" <<\EOF
29546 # If no file are specified by the user, then we need to provide default
29547 # value. By we need to know if files were specified by the user.
29553 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29554 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29556 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29560 *) # This is not an option, so the user has probably given explicit
29562 ac_need_defaults=false;;
29566 # Handling of the options.
29568 cat >>"$CONFIG_STATUS" <<EOF
29569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29570 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29571 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29573 cat >>"$CONFIG_STATUS" <<\EOF
29574 --version | --vers* | -V )
29575 echo "$ac_cs_version"; exit 0 ;;
29577 # Conflict between --help and --header
29578 { { echo "$as_me:29578: error: ambiguous option: $1
29579 Try \`$0 --help' for more information." >&5
29580 echo "$as_me: error: ambiguous option: $1
29581 Try \`$0 --help' for more information." >&2;}
29582 { (exit 1); exit 1; }; };;
29583 --help | --hel | -h )
29584 echo "$ac_cs_usage"; exit 0 ;;
29585 --debug | --d* | -d )
29587 --file | --fil | --fi | --f )
29589 CONFIG_FILES="$CONFIG_FILES $1"
29590 ac_need_defaults=false;;
29591 --header | --heade | --head | --hea )
29593 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29594 ac_need_defaults=false;;
29596 # This is an error.
29597 -*) { { echo "$as_me:29597: error: unrecognized option: $1
29598 Try \`$0 --help' for more information." >&5
29599 echo "$as_me: error: unrecognized option: $1
29600 Try \`$0 --help' for more information." >&2;}
29601 { (exit 1); exit 1; }; } ;;
29603 *) ac_config_targets="$ac_config_targets $1" ;;
29612 ## ----------------------- ##
29613 ## Running config.status. ##
29614 ## ----------------------- ##
29616 This file was extended by $as_me 2.52.20230114, executed with
29617 CONFIG_FILES = $CONFIG_FILES
29618 CONFIG_HEADERS = $CONFIG_HEADERS
29619 CONFIG_LINKS = $CONFIG_LINKS
29620 CONFIG_COMMANDS = $CONFIG_COMMANDS
29621 > "$ac_cs_invocation"
29622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29627 cat >>"$CONFIG_STATUS" <<EOF
29629 # INIT-COMMANDS section.
29632 ### Special initialization commands, used to pass information from the
29633 ### configuration-run into config.status
29635 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29637 CXX_NAME="$CXX_NAME"
29638 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29639 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29641 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29642 FORM_NAME="$FORM_NAME"
29643 LDCONFIG="$LDCONFIG"
29644 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29645 LIB_NAME="$LIB_NAME"
29646 LIB_PREFIX="$LIB_PREFIX"
29647 LIB_SUBSETS="$LIB_SUBSETS"
29648 LIB_SUFFIX="$LIB_SUFFIX"
29649 LIB_TRACING="$LIB_TRACING"
29651 MAKE_TERMINFO="$MAKE_TERMINFO"
29652 MANPAGE_RENAMES="$MANPAGE_RENAMES"
29653 MENU_NAME="$MENU_NAME"
29654 NCURSES_MAJOR="$NCURSES_MAJOR"
29655 NCURSES_MINOR="$NCURSES_MINOR"
29656 NCURSES_OSPEED="$NCURSES_OSPEED"
29657 NCURSES_PATCH="$NCURSES_PATCH"
29658 PANEL_NAME="$PANEL_NAME"
29659 SRC_SUBDIRS="$SRC_SUBDIRS"
29660 TERMINFO="$TERMINFO"
29661 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29662 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29663 TICS_NAME="$TICS_NAME"
29664 TICS_SUFFIX="$TICS_SUFFIX"
29665 TIC_PATH="$TIC_PATH"
29666 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29667 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29668 TINFO_NAME="$TINFO_NAME"
29669 TINFO_SUFFIX="$TINFO_SUFFIX"
29670 UNALTERED_SYMS="$UNALTERED_SYMS"
29671 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29672 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29673 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29674 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29675 WILDCARD_SYMS="$WILDCARD_SYMS"
29676 WITH_CURSES_H="$with_curses_h"
29677 WITH_ECHO="${enable_echo:=yes}"
29678 WITH_OVERWRITE="$with_overwrite"
29679 cf_LIST_MODELS="$cf_list_models"
29680 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29681 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29682 cf_cv_abi_default="$cf_cv_abi_default"
29683 cf_cv_abi_version="$cf_cv_abi_version"
29684 cf_cv_do_relink="$cf_cv_do_relink"
29685 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29686 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29687 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29688 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29689 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29690 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29691 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29692 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29693 cf_cv_rel_version="$cf_cv_rel_version"
29694 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29695 cf_cv_shared_soname='$cf_cv_shared_soname'
29696 cf_cv_shlib_version="$cf_cv_shlib_version"
29697 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29698 cf_cv_system_name="$cf_cv_system_name"
29699 cf_cv_term_driver="$with_term_driver"
29700 cf_with_ada="$cf_with_ada"
29701 cf_with_cxx_binding="$cf_with_cxx_binding"
29702 cf_with_db_install="$cf_with_db_install"
29703 cf_with_manpages="$cf_with_manpages"
29704 cf_with_tests="$cf_with_tests"
29708 with_shared_cxx="$with_shared_cxx"
29712 cat >>"$CONFIG_STATUS" <<\EOF
29713 for ac_config_target in $ac_config_targets
29715 case "$ac_config_target" in
29716 # Handling of arguments.
29717 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29718 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29719 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29720 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29721 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29722 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
29723 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29724 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29725 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29726 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29727 *) { { echo "$as_me:29727: error: invalid argument: $ac_config_target" >&5
29728 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29729 { (exit 1); exit 1; }; };;
29733 # If the user did not use the arguments to specify the items to instantiate,
29734 # then the envvar interface is used. Set only those that are not.
29735 # We use the long form for the default assignment because of an extremely
29736 # bizarre bug on SunOS 4.1.3.
29737 if "$ac_need_defaults"; then
29738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29743 # Create a temporary directory, and hook for its removal unless debugging.
29746 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29747 trap '{ (exit 1); exit 1; }' 1 2 13 15
29750 # Create a (secure) tmp directory for tmp files.
29753 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29754 test -n "$tmp" && test -d "$tmp"
29757 tmp=$TMPDIR/cs$$-$RANDOM
29758 (umask 077 && mkdir "$tmp")
29761 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29762 { (exit 1); exit 1; }
29767 cat >>"$CONFIG_STATUS" <<EOF
29770 # CONFIG_FILES section.
29773 # No need to generate the scripts if there are no CONFIG_FILES.
29774 # This happens for instance when ./config.status config.h
29775 if test -n "\$CONFIG_FILES"; then
29776 # Protect against being on the right side of a sed subst in config.status.
29777 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29778 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
29779 s,@SHELL@,$SHELL,;t t
29780 s,@exec_prefix@,$exec_prefix,;t t
29781 s,@prefix@,$prefix,;t t
29782 s,@program_transform_name@,$program_transform_name,;t t
29783 s,@bindir@,$bindir,;t t
29784 s,@sbindir@,$sbindir,;t t
29785 s,@libexecdir@,$libexecdir,;t t
29786 s,@datarootdir@,$datarootdir,;t t
29787 s,@datadir@,$datadir,;t t
29788 s,@sysconfdir@,$sysconfdir,;t t
29789 s,@sharedstatedir@,$sharedstatedir,;t t
29790 s,@localstatedir@,$localstatedir,;t t
29791 s,@runstatedir@,$runstatedir,;t t
29792 s,@libdir@,$libdir,;t t
29793 s,@includedir@,$includedir,;t t
29794 s,@oldincludedir@,$oldincludedir,;t t
29795 s,@infodir@,$infodir,;t t
29796 s,@mandir@,$mandir,;t t
29797 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29798 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29799 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29800 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29801 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29802 s,@build_alias@,$build_alias,;t t
29803 s,@host_alias@,$host_alias,;t t
29804 s,@target_alias@,$target_alias,;t t
29805 s,@ECHO_C@,$ECHO_C,;t t
29806 s,@ECHO_N@,$ECHO_N,;t t
29807 s,@ECHO_T@,$ECHO_T,;t t
29808 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29809 s,@DEFS@,$DEFS,;t t
29810 s,@LIBS@,$LIBS,;t t
29811 s,@top_builddir@,$top_builddir,;t t
29812 s,@GREP@,$GREP,;t t
29813 s,@EGREP@,$EGREP,;t t
29814 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29815 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29816 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29817 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29818 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29819 s,@cf_cv_abi_default@,$cf_cv_abi_default,;t t
29820 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29821 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29822 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29823 s,@VERSION@,$VERSION,;t t
29824 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29825 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29826 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29827 s,@PACKAGE@,$PACKAGE,;t t
29828 s,@build@,$build,;t t
29829 s,@build_cpu@,$build_cpu,;t t
29830 s,@build_vendor@,$build_vendor,;t t
29831 s,@build_os@,$build_os,;t t
29832 s,@host@,$host,;t t
29833 s,@host_cpu@,$host_cpu,;t t
29834 s,@host_vendor@,$host_vendor,;t t
29835 s,@host_os@,$host_os,;t t
29836 s,@target@,$target,;t t
29837 s,@target_cpu@,$target_cpu,;t t
29838 s,@target_vendor@,$target_vendor,;t t
29839 s,@target_os@,$target_os,;t t
29840 s,@FGREP@,$FGREP,;t t
29842 s,@CFLAGS@,$CFLAGS,;t t
29843 s,@LDFLAGS@,$LDFLAGS,;t t
29844 s,@CPPFLAGS@,$CPPFLAGS,;t t
29845 s,@ac_ct_CC@,$ac_ct_CC,;t t
29846 s,@EXEEXT@,$EXEEXT,;t t
29847 s,@OBJEXT@,$OBJEXT,;t t
29848 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29850 s,@LDCONFIG@,$LDCONFIG,;t t
29852 s,@CXXFLAGS@,$CXXFLAGS,;t t
29853 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29855 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29856 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29857 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29858 s,@LINT@,$LINT,;t t
29859 s,@LINT_OPTS@,$LINT_OPTS,;t t
29860 s,@LINT_LIBS@,$LINT_LIBS,;t t
29861 s,@LN_S@,$LN_S,;t t
29862 s,@cf_config_suffix@,$cf_config_suffix,;t t
29863 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29864 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29865 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29866 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29867 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29868 s,@SET_MAKE@,$SET_MAKE,;t t
29869 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29870 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29871 s,@CTAGS@,$CTAGS,;t t
29872 s,@ETAGS@,$ETAGS,;t t
29873 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29874 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29875 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29876 s,@RANLIB@,$RANLIB,;t t
29877 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29879 s,@ac_ct_LD@,$ac_ct_LD,;t t
29881 s,@ac_ct_AR@,$ac_ct_AR,;t t
29883 s,@ac_ct_NM@,$ac_ct_NM,;t t
29884 s,@ARFLAGS@,$ARFLAGS,;t t
29885 s,@DESTDIR@,$DESTDIR,;t t
29886 s,@BUILD_CC@,$BUILD_CC,;t t
29887 s,@BUILD_CPP@,$BUILD_CPP,;t t
29888 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29889 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29890 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29891 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29892 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29893 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29894 s,@cf_list_models@,$cf_list_models,;t t
29895 s,@ABI_VERSION@,$ABI_VERSION,;t t
29896 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29897 s,@LIBTOOL@,$LIBTOOL,;t t
29898 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29899 s,@LT_UNDEF@,$LT_UNDEF,;t t
29900 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29901 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29902 s,@LIB_CREATE@,$LIB_CREATE,;t t
29903 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29904 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29905 s,@LIB_PREP@,$LIB_PREP,;t t
29906 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29907 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29908 s,@LIB_LINK@,$LIB_LINK,;t t
29909 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29910 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29911 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29912 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29913 s,@TICS_NAME@,$TICS_NAME,;t t
29914 s,@TINFO_NAME@,$TINFO_NAME,;t t
29915 s,@LIB_NAME@,$LIB_NAME,;t t
29916 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29917 s,@CC_G_OPT@,$CC_G_OPT,;t t
29918 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29919 s,@LD_MODEL@,$LD_MODEL,;t t
29920 s,@shlibdir@,$shlibdir,;t t
29921 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29922 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29923 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29924 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29925 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29926 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29927 s,@LINK_PROGS@,$LINK_PROGS,;t t
29928 s,@LINK_TESTS@,$LINK_TESTS,;t t
29929 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29930 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29931 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29932 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29933 s,@RPATH_LIST@,$RPATH_LIST,;t t
29934 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29935 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29936 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29937 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29938 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29939 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29940 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29941 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29942 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29944 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29945 s,@INFOCMP@,$INFOCMP,;t t
29946 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29947 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29948 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29949 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29950 s,@XTERM_KBS@,$XTERM_KBS,;t t
29951 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29952 s,@TERMINFO@,$TERMINFO,;t t
29953 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29954 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29955 s,@TERMPATH@,$TERMPATH,;t t
29956 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29957 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29958 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29959 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29960 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29961 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29962 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29963 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29964 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29965 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29966 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29967 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29968 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29969 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29970 s,@RGB_PATH@,$RGB_PATH,;t t
29971 s,@no_x11_rgb@,$no_x11_rgb,;t t
29972 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29973 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29974 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29975 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29976 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29977 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29978 s,@cf_manpage_format@,$cf_manpage_format,;t t
29979 s,@cf_manpage_inboth@,$cf_manpage_inboth,;t t
29980 s,@cf_manpage_so_strip@,$cf_manpage_so_strip,;t t
29981 s,@cf_manpage_compress@,$cf_manpage_compress,;t t
29982 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29983 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29984 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29985 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29986 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29987 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29988 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29989 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29990 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29991 s,@PTHREAD@,$PTHREAD,;t t
29992 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29993 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29994 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29995 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29996 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29997 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29998 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29999 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
30000 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
30001 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
30002 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
30003 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
30004 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
30005 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
30006 s,@ECHO_LT@,$ECHO_LT,;t t
30007 s,@ECHO_LD@,$ECHO_LD,;t t
30008 s,@RULE_CC@,$RULE_CC,;t t
30009 s,@SHOW_CC@,$SHOW_CC,;t t
30010 s,@ECHO_CC@,$ECHO_CC,;t t
30011 s,@ECHO_LINK@,$ECHO_LINK,;t t
30012 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
30013 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
30014 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
30015 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
30016 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
30017 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
30018 s,@ADAFLAGS@,$ADAFLAGS,;t t
30019 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
30020 s,@ADA_TRACE@,$ADA_TRACE,;t t
30021 s,@MATH_LIB@,$MATH_LIB,;t t
30022 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
30023 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
30024 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
30025 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
30026 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
30027 s,@TEST_LIBS@,$TEST_LIBS,;t t
30028 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
30029 s,@CXXCPP@,$CXXCPP,;t t
30030 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
30031 s,@CXX_AR@,$CXX_AR,;t t
30032 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
30033 s,@CXXLIBS@,$CXXLIBS,;t t
30034 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
30035 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
30036 s,@M4_exists@,$M4_exists,;t t
30037 s,@cf_ada_make@,$cf_ada_make,;t t
30038 s,@cf_ada_config@,$cf_ada_config,;t t
30039 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
30040 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
30041 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
30042 s,@cf_compile_generics@,$cf_compile_generics,;t t
30043 s,@cf_generic_objects@,$cf_generic_objects,;t t
30044 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
30045 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
30046 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
30047 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
30048 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
30049 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
30050 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
30051 s,@cf_ada_package@,$cf_ada_package,;t t
30052 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
30053 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
30054 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
30055 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
30056 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
30057 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
30058 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
30059 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
30060 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
30061 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
30062 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
30063 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
30064 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
30065 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
30066 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
30067 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
30068 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
30069 s,@TICS_LIBS@,$TICS_LIBS,;t t
30070 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
30071 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
30072 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
30073 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
30074 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
30075 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
30076 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
30077 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
30078 s,@includesubdir@,$includesubdir,;t t
30079 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
30080 s,@TICS_LIST@,$TICS_LIST,;t t
30081 s,@TINFO_LIST@,$TINFO_LIST,;t t
30082 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
30083 s,@FORM_NAME@,$FORM_NAME,;t t
30084 s,@MENU_NAME@,$MENU_NAME,;t t
30085 s,@PANEL_NAME@,$PANEL_NAME,;t t
30086 s,@CXX_NAME@,$CXX_NAME,;t t
30087 s,@TEST_ARGS@,$TEST_ARGS,;t t
30088 s,@TEST_DEPS@,$TEST_DEPS,;t t
30089 s,@TEST_ARG2@,$TEST_ARG2,;t t
30090 s,@TEST_DEP2@,$TEST_DEP2,;t t
30091 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
30092 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
30093 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
30094 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
30095 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
30096 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
30097 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
30098 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
30099 s,@cross_compiling@,$cross_compiling,;t t
30100 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
30101 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
30102 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
30103 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
30104 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
30105 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
30106 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
30107 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
30108 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
30109 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
30110 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
30111 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
30116 cat >>"$CONFIG_STATUS" <<\EOF
30117 # Split the substitutions into bite-sized pieces for seds with
30118 # small command number limits, like on Digital OSF/1 and HP-UX.
30119 ac_max_sed_lines=48
30120 ac_sed_frag=1 # Number of current file.
30121 ac_beg=1 # First line for current file.
30122 ac_end=$ac_max_sed_lines # Line after last line for current file.
30125 while "$ac_more_lines"; do
30126 if test "$ac_beg" -gt 1; then
30127 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30129 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30131 if test ! -s "$tmp"/subs.frag; then
30132 ac_more_lines=false
30134 # The purpose of the label and of the branching condition is to
30135 # speed up the sed processing (if there are no `@' at all, there
30136 # is no need to browse any of the substitutions).
30137 # These are the two extra sed commands mentioned above.
30139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
30140 # It is possible to make a multiline substitution using escaped newlines.
30141 # Ensure that we do not split the substitution between script fragments.
30143 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
30144 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
30145 if test -s "$tmp"/subs.next; then
30146 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
30147 if test ! -s "$tmp"/subs.edit; then
30148 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
30149 if test ! -s "$tmp"/subs.edit; then
30150 if test "$ac_beg" -gt 1; then
30151 ac_end=`expr "$ac_end" - 1`
30158 if test -z "$ac_sed_cmds"; then
30159 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30161 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30163 ac_sed_frag=`expr "$ac_sed_frag" + 1`
30165 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
30168 if test -z "$ac_sed_cmds"; then
30171 fi # test -n "$CONFIG_FILES"
30174 cat >>"$CONFIG_STATUS" <<\EOF
30175 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30178 - | *:- | *:-:* ) # input from stdin
30180 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30182 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30184 * ) ac_file_in=$ac_file.in ;;
30187 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30188 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30189 X"$ac_file" : 'X\(//\)[^/]' \| \
30190 X"$ac_file" : 'X\(//\)$' \| \
30191 X"$ac_file" : 'X\(/\)' \| \
30192 . : '\(.\)' 2>/dev/null ||
30194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30196 /^X\(\/\/\)$/{ s//\1/; q; }
30197 /^X\(\/\).*/{ s//\1/; q; }
30199 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30200 { case "$ac_dir" in
30201 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30205 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30206 case $as_mkdir_dir in
30207 # Skip DOS drivespec
30208 ?:) as_incr_dir=$as_mkdir_dir ;;
30210 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30211 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30216 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
30217 # A "../" for each directory in $ac_dir_suffix.
30218 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
30220 ac_dir_suffix= ac_dots=
30225 if test -z "$ac_dots"; then
30228 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
30230 [\\/]* | ?:[\\/]* )
30231 ac_srcdir="$srcdir$ac_dir_suffix";
30232 ac_top_srcdir="$srcdir" ;;
30233 *) # Relative path.
30234 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
30235 ac_top_srcdir="$ac_dots$srcdir" ;;
30239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30240 *) ac_INSTALL=$ac_dots$INSTALL ;;
30243 if test x"$ac_file" != x-; then
30244 { echo "$as_me:30244: creating $ac_file" >&5
30245 echo "$as_me: creating $ac_file" >&6;}
30248 # Let's still pretend it is `configure' which instantiates (i.e., don't
30249 # use $as_me), people would be surprised to read:
30250 # /* config.h. Generated automatically by config.status. */
30251 configure_input="Generated automatically from `echo $ac_file_in |
30252 sed 's,.*/,,'` by configure."
30254 # First look for the input files in the build tree, otherwise in the
30256 ac_file_inputs=`IFS=:
30257 for f in $ac_file_in; do
30259 -) echo "$tmp"/stdin ;;
30261 # Absolute (can't be DOS-style, as IFS=:)
30262 test -f "$f" || { { echo "$as_me:30262: error: cannot find input file: $f" >&5
30263 echo "$as_me: error: cannot find input file: $f" >&2;}
30264 { (exit 1); exit 1; }; }
30267 if test -f "$f"; then
30270 elif test -f "$srcdir/$f"; then
30275 { { echo "$as_me:30275: error: cannot find input file: $f" >&5
30276 echo "$as_me: error: cannot find input file: $f" >&2;}
30277 { (exit 1); exit 1; }; }
30280 done` || { (exit 1); exit 1; }
30282 cat >>"$CONFIG_STATUS" <<\EOF
30283 ac_warn_datarootdir=no
30284 if test x"$ac_file" != x-; then
30285 for ac_item in $ac_file_inputs
30287 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
30288 if test -n "$ac_seen"; then
30289 ac_used=`grep '@datarootdir@' "$ac_item"`
30290 if test -z "$ac_used"; then
30291 { echo "$as_me:30291: WARNING: datarootdir was used implicitly but not set:
30293 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
30295 ac_warn_datarootdir=yes
30298 ac_seen=`grep '${datarootdir}' "$ac_item"`
30299 if test -n "$ac_seen"; then
30300 { echo "$as_me:30300: WARNING: datarootdir was used explicitly but not set:
30302 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
30304 ac_warn_datarootdir=yes
30309 if test "x$ac_warn_datarootdir" = xyes; then
30310 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30314 cat >>"$CONFIG_STATUS" <<EOF
30318 cat >>"$CONFIG_STATUS" <<\EOF
30320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30321 s,@configure_input@,$configure_input,;t t
30322 s,@srcdir@,$ac_srcdir,;t t
30323 s,@top_srcdir@,$ac_top_srcdir,;t t
30324 s,@INSTALL@,$ac_INSTALL,;t t
30325 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
30328 : "${FGREP:=grep -F}"
30329 : "${EGREP:=grep -E}"
30330 cat >>"$CONFIG_STATUS" <<EOF
30331 : "\${FGREP:=$FGREP}"
30332 : "\${EGREP:=$EGREP}"
30334 cat >>"$CONFIG_STATUS" <<\EOF
30335 if test x"$ac_file" != x-; then
30336 cp "$tmp/out" "$ac_file"
30338 for ac_name in prefix exec_prefix datarootdir
30340 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
30341 if test -n "$ac_seen"; then
30342 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30343 if test -z "$ac_init"; then
30344 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
30345 { echo "$as_me:30345: WARNING: Variable $ac_name is used but was not set:
30347 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30352 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
30353 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
30354 if test -s "$tmp"/out; then
30355 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
30356 { echo "$as_me:30356: WARNING: Some variables may not be substituted:
30358 echo "$as_me: WARNING: Some variables may not be substituted:
30368 cat >>"$CONFIG_STATUS" <<\EOF
30371 # CONFIG_HEADER section.
30374 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30375 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30377 # ac_d sets the value in "#define NAME VALUE" lines.
30378 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30379 ac_dB='[ ].*$,\1#\2'
30382 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30383 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30384 ac_iB='\([ ]\),\1#\2define\3'
30387 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30388 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30389 ac_uB='$,\1#\2define\3'
30393 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30394 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30396 - | *:- | *:-:* ) # input from stdin
30398 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30399 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30400 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30402 * ) ac_file_in=$ac_file.in ;;
30405 test x"$ac_file" != x- && { echo "$as_me:30405: creating $ac_file" >&5
30406 echo "$as_me: creating $ac_file" >&6;}
30408 # First look for the input files in the build tree, otherwise in the
30410 ac_file_inputs=`IFS=:
30411 for f in $ac_file_in; do
30413 -) echo "$tmp"/stdin ;;
30415 # Absolute (can't be DOS-style, as IFS=:)
30416 test -f "$f" || { { echo "$as_me:30416: error: cannot find input file: $f" >&5
30417 echo "$as_me: error: cannot find input file: $f" >&2;}
30418 { (exit 1); exit 1; }; }
30421 if test -f "$f"; then
30424 elif test -f "$srcdir/$f"; then
30429 { { echo "$as_me:30429: error: cannot find input file: $f" >&5
30430 echo "$as_me: error: cannot find input file: $f" >&2;}
30431 { (exit 1); exit 1; }; }
30434 done` || { (exit 1); exit 1; }
30435 # Remove the trailing spaces.
30436 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
30440 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30441 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30442 # be either 'cat' or 'sort'.
30443 cat confdefs.h | uniq >conftest.vals
30445 # Break up conftest.vals because some shells have a limit on
30446 # the size of here documents, and old seds have small limits too.
30448 rm -f conftest.tail
30449 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30450 while grep . conftest.vals >/dev/null
30452 # Write chunks of a limited-size here document to conftest.frag.
30453 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30454 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30455 echo 'CEOF' >> "$CONFIG_STATUS"
30456 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30457 rm -f conftest.vals
30458 mv conftest.tail conftest.vals
30460 rm -f conftest.vals
30462 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30464 echo ' cat >> conftest.edit <<CEOF
30465 /@DEFS@/r conftest.frag
30468 sed -f conftest.edit "$tmp"/in > "$tmp"/out
30470 mv "$tmp"/out "$tmp"/in
30471 rm -f conftest.edit conftest.frag
30472 ' >> "$CONFIG_STATUS"
30474 cat >>"$CONFIG_STATUS" <<\EOF
30475 # Let's still pretend it is `configure' which instantiates (i.e., don't
30476 # use $as_me), people would be surprised to read:
30477 # /* config.h. Generated automatically by config.status. */
30478 if test x"$ac_file" = x-; then
30479 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
30481 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
30483 cat "$tmp"/in >>"$tmp"/config.h
30485 if test x"$ac_file" != x-; then
30486 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30487 { echo "$as_me:30487: $ac_file is unchanged" >&5
30488 echo "$as_me: $ac_file is unchanged" >&6;}
30490 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30491 X"$ac_file" : 'X\(//\)[^/]' \| \
30492 X"$ac_file" : 'X\(//\)$' \| \
30493 X"$ac_file" : 'X\(/\)' \| \
30494 . : '\(.\)' 2>/dev/null ||
30496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30498 /^X\(\/\/\)$/{ s//\1/; q; }
30499 /^X\(\/\).*/{ s//\1/; q; }
30501 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30502 { case "$ac_dir" in
30503 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30507 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30508 case $as_mkdir_dir in
30509 # Skip DOS drivespec
30510 ?:) as_incr_dir=$as_mkdir_dir ;;
30512 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30513 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30520 mv "$tmp/config.h" "$ac_file"
30523 cat "$tmp"/config.h
30524 rm -f "$tmp"/config.h
30528 cat >>"$CONFIG_STATUS" <<\EOF
30530 # CONFIG_COMMANDS section.
30532 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30533 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30534 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30538 if test "x$cf_with_tests" != xno ; then
30542 if test ! -d "$srcdir/$cf_dir" ; then
30544 elif test -f "$srcdir/$cf_dir/programs" ; then
30545 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30551 cf_prefix=$LIB_PREFIX
30553 case "$cf_cv_shlib_version" in
30554 (cygdll|msysdll|mingw|msvcdll)
30555 TINFO_NAME=$TINFO_ARG_SUFFIX
30560 if test -n "$TINFO_SUFFIX" ; then
30561 case "$TINFO_SUFFIX" in
30563 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30564 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30567 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30568 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30571 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30572 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30577 for cf_dir in $SRC_SUBDIRS
30579 if test ! -d "$srcdir/$cf_dir" ; then
30581 elif test -f "$srcdir/$cf_dir/modules" ; then
30586 if test -n "${cf_cv_abi_default}" && test "x${cf_cv_abi_default}" != "x5"
30588 cf_awk_program="$cf_awk_program\
30589 /deprecated in ABI${cf_cv_abi_default}/ { next; }\
30590 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_default}\"); }\
30594 if test "x$WILDCARD_SYMS" = xno
30596 cf_awk_program="$cf_awk_program\
30597 /[ ]_\\*;/ { skip=1; next; }\
30601 if test "x$cf_awk_program" != "x"
30603 cat >>$cf_dir/Makefile <<CF_EOF
30605 # Generated by CF_LIB_RULES
30606 resulting.map: $UNALTERED_SYMS
30607 $AWK 'BEGIN { skip = 1; last=""; } \
30609 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30610 skip = 0; last = \$\$0; } \
30611 END { print last; }' < "$UNALTERED_SYMS" >\$@
30614 rm -f resulting.map
30618 for cf_item in $cf_LIST_MODELS
30624 cf_depsuf=$cf_suffix
30627 case "$cf_cv_system_name" in
30635 cf_depsuf=$cf_suffix
30638 case "$cf_cv_system_name" in
30646 cf_depsuf=$cf_suffix
30649 case "$cf_cv_system_name" in
30652 cf_depsuf=$cf_suffix
30656 cf_depsuf='.dll.lib'
30658 (cygwin*|msys*|mingw*)
30664 cf_depsuf=$cf_suffix
30670 cf_depsuf=$cf_suffix
30674 cf_depsuf=$cf_suffix
30680 cf_depsuf=$cf_suffix
30693 cf_depsuf=$cf_suffix
30696 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30698 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30699 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30702 if test "$cf_dir" = "c++"
30705 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30707 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30711 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30713 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30716 test -z "$cf_libname" && cf_libname="$cf_dir"
30717 if test "$cf_item" = shared ; then
30718 if test -n "${LIB_SUFFIX}"
30720 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30722 cf_shared_suffix="$cf_suffix"
30724 if test "$cf_cv_do_symlinks" = yes ; then
30727 case "$cf_cv_shlib_version" in
30729 cf_version_name=REL_VERSION
30732 cf_version_name=ABI_VERSION
30736 if test -n "$cf_version_name"
30738 case "$cf_cv_system_name" in
30741 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30744 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30748 if test -n "${USE_LIB_SUFFIX}"
30750 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30752 cf_shared_suffix="$cf_suffix"
30755 # cygwin needs import library, and has unique naming convention
30756 # use autodetected ${cf_prefix} for import lib and static lib, but
30757 # use 'cyg' prefix for shared lib.
30758 case "$cf_cv_shlib_version" in
30760 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30761 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30764 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30765 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30768 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30769 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30772 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30773 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30779 if test -n "$cf_add_lib"
30781 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30785 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30786 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30789 if test "$cf_dir" = ncurses ; then
30790 cf_subsets="$LIB_SUBSETS"
30791 cf_r_parts="$cf_subsets"
30792 cf_liblist="$Libs_To_Make"
30794 while test -n "$cf_r_parts"
30796 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30797 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30798 if test "$cf_l_parts" != "$cf_r_parts" ; then
30800 case "$cf_l_parts" in
30802 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30805 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30811 if test -n "$cf_add_lib"; then
30812 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30819 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30822 if test "$cf_dir" = c++; then
30823 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30825 for cf_item in $Libs_To_Make
30831 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30834 for cf_test in $cf_list
30836 if test "$cf_test" = "$cf_item"
30838 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30843 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30845 Libs_To_Make="$cf_list"
30849 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30850 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30851 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30852 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30854 $AWK -f "$srcdir/mk-0th.awk" \
30855 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30856 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30858 for cf_subset in $cf_subsets
30861 for cf_item in $cf_LIST_MODELS
30864 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30866 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30869 if test "$CXX_MODEL" = SHARED; then
30870 case "$cf_cv_shlib_version" in
30871 (cygdll|msysdll|mingw|msvcdll)
30872 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30874 echo "${as_me:-configure}:30874: testing overriding CXX_MODEL to SHARED ..." 1>&5
30876 with_shared_cxx=yes
30879 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30887 cf_depsuf=$cf_suffix
30890 case "$cf_cv_system_name" in
30898 cf_depsuf=$cf_suffix
30901 case "$cf_cv_system_name" in
30909 cf_depsuf=$cf_suffix
30912 case "$cf_cv_system_name" in
30915 cf_depsuf=$cf_suffix
30919 cf_depsuf='.dll.lib'
30921 (cygwin*|msys*|mingw*)
30927 cf_depsuf=$cf_suffix
30933 cf_depsuf=$cf_suffix
30937 cf_depsuf=$cf_suffix
30943 cf_depsuf=$cf_suffix
30956 cf_depsuf=$cf_suffix
30959 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30961 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30962 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30966 (libtool) cf_subdir='obj_lo' ;;
30967 (normal) cf_subdir='objects' ;;
30968 (debug) cf_subdir='obj_g' ;;
30969 (profile) cf_subdir='obj_p' ;;
30971 case "$cf_cv_system_name" in
30973 cf_subdir='objects' ;;
30975 cf_subdir='obj_s' ;;
30979 # Test for case where we build libtinfo with a different name.
30981 if test "$cf_dir" = ncurses ; then
30982 case "$cf_subset" in
30984 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30987 cf_libname=$TINFO_LIB_SUFFIX
30990 cf_libname=$TICS_LIB_SUFFIX
30993 elif test "$cf_dir" = c++ ; then
30995 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30997 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30999 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31002 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
31004 eval cf_libname="\$${cf_map_lib_basename}_NAME"
31006 cf_libname=${cf_libname}$USE_LIB_SUFFIX
31008 if test -n "${USE_ARG_SUFFIX}" ; then
31009 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
31010 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
31013 # These dependencies really are for development, not
31014 # builds, but they are useful in porting, too.
31015 cf_depend="../include/ncurses_cfg.h"
31016 if test "$srcdir" = "."; then
31019 cf_reldir="\${srcdir}"
31022 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
31023 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
31024 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
31025 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
31029 old_cf_suffix="$cf_suffix"
31030 if test "$cf_cv_shlib_version_infix" = yes ; then
31031 if test -n "$USE_LIB_SUFFIX" ; then
31032 case "$USE_LIB_SUFFIX" in
31034 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
31035 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
31036 cf_dir_suffix=tw$EXTRA_SUFFIX
31039 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
31040 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
31041 cf_dir_suffix=t$EXTRA_SUFFIX
31044 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
31045 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
31046 cf_dir_suffix=w$EXTRA_SUFFIX
31049 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
31050 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
31051 cf_dir_suffix=$EXTRA_SUFFIX
31057 $AWK -f "$srcdir/mk-1st.awk" \
31058 name=${cf_libname}${cf_dir_suffix} \
31059 traces=$LIB_TRACING \
31061 CXX_MODEL=$CXX_MODEL \
31062 LIB_SUFFIX=$LIB_SUFFIX \
31063 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
31064 make_phony="${cf_cv_make_PHONY:-no}" \
31066 prefix=$cf_prefix \
31067 suffix=$cf_suffix \
31068 subset=$cf_subset \
31069 driver=$cf_cv_term_driver \
31071 TermlibRoot=$TINFO_NAME \
31072 TermlibSuffix=$TINFO_SUFFIX \
31073 ShlibVer=$cf_cv_shlib_version \
31074 ShlibVerInfix=$cf_cv_shlib_version_infix \
31075 ReLink=${cf_cv_do_relink:-no} \
31076 ReRanlib=${cf_cv_do_reranlib:-yes} \
31077 DoLinks=$cf_cv_do_symlinks \
31078 rmSoLocs=$cf_cv_rm_so_locs \
31079 ldconfig="$LDCONFIG" \
31080 overwrite=$WITH_OVERWRITE \
31081 depend="$cf_depend" \
31083 libtool_version="$LIBTOOL_VERSION" \
31084 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31086 cf_suffix="$old_cf_suffix"
31088 for cf_subdir2 in $cf_subdirs lib
31090 test "$cf_subdir" = "$cf_subdir2" && break
31092 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
31093 $AWK -f "$srcdir/mk-2nd.awk" \
31095 traces=$LIB_TRACING \
31098 subset=$cf_subset \
31101 crenames=$cf_cv_prog_CC_c_o \
31102 cxxrenames=$cf_cv_prog_CXX_c_o \
31103 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31104 cf_subdirs="$cf_subdirs $cf_subdir"
31109 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
31113 echo '# generated by CF_LIB_RULES' >> Makefile
31115 if test "x$cf_cv_make_PHONY" = xyes ; then
31116 cat >> Makefile <<-CF_EOF
31120 .PHONY : install.includes
31121 .PHONY : uninstall.includes
31122 .PHONY : install.libs
31123 .PHONY : uninstall.libs
31127 for cf_dir in $SRC_SUBDIRS
31129 if test ! -d "$srcdir/$cf_dir" ; then
31133 if test -f "$cf_dir/Makefile" ; then
31136 echo 'libs \' >> Makefile
31137 echo 'install.libs \' >> Makefile
31138 echo 'uninstall.libs ::' >> Makefile
31139 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
31144 if test -f "$srcdir/$cf_dir/modules" ; then
31146 if test "x$cf_cv_make_PHONY" = xyes ; then
31147 cat >> Makefile <<-CF_EOF
31149 .PHONY : install.$cf_dir
31150 .PHONY : uninstall.$cf_dir
31155 if test -f "$srcdir/$cf_dir/headers" ; then
31156 cat >> Makefile <<CF_EOF
31157 install.includes \\
31158 uninstall.includes \\
31162 cat >> Makefile <<CF_EOF
31169 uninstall.$cf_dir ::
31170 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31172 elif test -f "$srcdir/$cf_dir/headers" ; then
31173 cat >> Makefile <<CF_EOF
31178 install.includes \\
31179 uninstall.includes ::
31180 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31185 if test "x$cf_cv_make_PHONY" = xyes ; then
31186 cat >> Makefile <<-CF_EOF
31188 .PHONY : install.data
31189 .PHONY : uninstall.data
31193 if test "x$cf_with_db_install" = xyes; then
31194 cat >> Makefile <<CF_EOF
31196 install.libs uninstall.libs \\
31197 install.data uninstall.data ::
31198 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31201 cat >> Makefile <<CF_EOF
31203 install.libs uninstall.libs ::
31204 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31208 if test "x$cf_with_manpages" = xyes; then
31210 if test "x$cf_cv_make_PHONY" = xyes ; then
31211 cat >> Makefile <<-CF_EOF
31213 .PHONY : install.man
31214 .PHONY : uninstall.man
31218 cat >> Makefile <<CF_EOF
31222 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
31226 cat >> Makefile <<CF_EOF
31229 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
31230 rm -f headers.sh headers.sed mk_shared_lib.sh
31231 rm -f edit_man.* man_alias.* *.tmp
31232 rm -rf \${DIRS_TO_MAKE}
31235 rm -f headers.sed headers.sh
31237 echo creating headers.sh
31238 cat >headers.sh <<CF_EOF
31240 # This shell script is generated by the 'configure' script. It is invoked in a
31241 # subdirectory of the build tree. It generates a sed-script in the parent
31242 # directory that is used to adjust includes for header files that reside in a
31243 # subdirectory of /usr/include, etc.
31245 while test \$# != 3
31247 PRG="\$PRG \$1"; shift
31252 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
31253 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
31254 echo installing \$SRC in \$DST
31257 if test "$WITH_CURSES_H" = yes; then
31258 cat >>headers.sh <<CF_EOF
31261 END=\`basename \$DST\`
31262 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31264 NAME=\`basename \$i\`
31265 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31269 echo "" >> \$TMPSED
31275 cat >>headers.sh <<CF_EOF
31278 END=\`basename \$DST\`
31279 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31281 NAME=\`basename \$i\`
31282 if test "\$NAME" = "curses.h"
31284 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31287 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31291 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31296 cat >>headers.sh <<CF_EOF
31298 sed -f \$TMPSED \$SRC > \$TMPSRC
31299 NAME=\`basename \$SRC\`
31301 if test "$WITH_CURSES_H" != yes; then
31302 cat >>headers.sh <<CF_EOF
31303 test "\$NAME" = "curses.h" && NAME=ncurses.h
31306 cat >>headers.sh <<CF_EOF
31307 # Just in case someone gzip'd manpages, remove the conflicting copy.
31308 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31310 eval \$PRG \$TMPSRC \$DST/\$NAME
31311 rm -f \$TMPSRC \$TMPSED
31314 chmod 0755 headers.sh
31316 for cf_dir in $SRC_SUBDIRS
31318 if test ! -d "$srcdir/$cf_dir" ; then
31322 if test -f "$srcdir/$cf_dir/headers" ; then
31323 $AWK -f "$srcdir/mk-hdr.awk" \
31324 subset="$LIB_SUBSETS" \
31325 compat="$WITH_CURSES_H" \
31326 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31329 if test -f "$srcdir/$cf_dir/modules" ; then
31330 if test "$cf_dir" != "c++" ; then
31331 if test "x$cf_cv_make_PHONY" = xyes ; then
31332 cat >> $cf_dir/Makefile <<-CF_EOF
31338 cat >>$cf_dir/Makefile <<"CF_EOF"
31339 depend : ${AUTO_SRC}
31340 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31342 # DO NOT DELETE THIS LINE -- make depend depends on it.
31348 if test "$MANPAGE_RENAMES" != no ; then
31349 # Construct a sed-script to perform renaming within man-pages
31350 test -n "$verbose" && echo "creating edit_man.sed"
31351 test ! -d man && mkdir man
31352 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
31355 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31356 if test -z "$USE_OLD_MAKERULES" ; then
31357 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31365 cat >>"$CONFIG_STATUS" <<\EOF
31367 { (exit 0); exit 0; }
31369 chmod +x "$CONFIG_STATUS"
31370 ac_clean_files=$ac_clean_files_save
31372 # configure is writing to config.log, and then calls config.status.
31373 # config.status does its own redirection, appending to config.log.
31374 # Unfortunately, on DOS this fails, as config.log is still kept open
31375 # by configure, so config.status won't be able to write to it; its
31376 # output is simply discarded. So we exec the FD to /dev/null,
31377 # effectively closing config.log, so it can be properly (re)opened and
31378 # appended to by config.status. When coming back to configure, we
31379 # need to make the FD available again.
31380 if test "$no_create" != yes; then
31383 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31386 # would make configure fail if this is the last instruction.
31387 "$ac_cs_success" || { (exit 1); exit 1; }
31389 ${MAKE:-make} preinstall