2 # From configure.in Revision: 1.729 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20210105.
6 # Copyright 2003-2020,2021 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --without-ada suppress check for Ada compiler, don't build demo
720 --without-cxx do not adjust ncurses bool to match C++
721 --without-cxx-binding do not build C++ binding and demo
722 --disable-db-install suppress install of terminal database
723 --without-manpages suppress install of manpages
724 --without-progs suppress build/install with programs (e.g., tic)
725 --without-tack suppress build/install with tack program
726 --without-tests suppress build/install with test-programs
727 --without-curses-h install curses.h as ncurses.h only
728 --with-config-suffix=X suffixes ncursesXX-config file
729 --with-pkg-config{=path} enable/disable use of pkg-config
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix suffixes pc-files
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix prefixes actual install-location ($DESTDIR)
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version=X Specify rel or abi version for shared libs
756 --with-libtool-opts=XXX specify additional libtool options
757 --with-export-syms=XXX limit exported symbols using libtool
758 --with-versioned-syms=X markup versioned symbols using ld
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict environment when running as root
787 --enable-symlinks make tic use symbolic links not hard links
788 --enable-broken_linker compile with broken-linker support code
789 --enable-bsdpad recognize BSD-style prefix padding
790 --enable-widec compile with wide-char/UTF-8 code
791 --disable-lp64 allow chtype to be long (ignore _LP64)
792 --disable-largefile omit support for large files
793 --disable-tparm-varargs compile tparm() without varargs interface
794 --disable-tic-depends link tic library without explicit dependency on ncurses library
795 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
796 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
797 --with-bool=TYPE override fallback type of bool variable
798 --with-caps=alt compile with alternate Caps file
799 --with-chtype=TYPE override type of chtype
800 --with-ospeed=TYPE override type of ospeed variable
801 --with-mmask-t=TYPE override type of mmask_t
802 --with-ccharw-max=XXX override size CCHARW_MAX
803 --enable-signed-char compile using signed Boolean's in term.h
804 --with-tparm-arg=TYPE override parameter type of tparm
805 --with-rcs-ids compile-in RCS identifiers
806 Options to Specify How Manpages are Installed:
807 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
808 optionally formatted/catonly, e.g., gzip,formatted
809 --with-manpage-renames specify manpage-renaming
810 --with-manpage-aliases specify manpage-aliases using .so
811 --with-manpage-symlinks specify manpage-aliases using symlinks
812 --with-manpage-tbl specify manpage processing with tbl
814 --disable-ext-funcs disable function-extensions
815 --enable-sp-funcs enable SCREEN-extensions
816 --enable-term-driver enable terminal-driver
817 --enable-const compile with extra/non-standard const
818 --enable-ext-colors compile for 256-color support
819 --enable-ext-mouse compile for extended mouse-encoding
820 --enable-ext-putwin compile with extended putwin/screendump
821 --enable-no-padding compile with $NCURSES_NO_PADDING code
822 --enable-sigwinch compile with SIGWINCH handler
823 --enable-tcap-names compile with user-definable terminal capabilities
825 --with-pthread use POSIX thread library
826 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
827 --enable-weak-symbols enable weak-symbols for pthreads
828 --enable-reentrant compile with reentrant code
829 --enable-opaque-curses make curses WINDOW, etc., "opaque"
830 --enable-opaque-form make form-library structures "opaque"
831 --enable-opaque-menu make menu-library structures "opaque"
832 --enable-opaque-panel make panel-library structures "opaque"
833 --with-wrap-prefix=XXX override prefix used for public variables
835 --without-develop disable development options
836 --enable-hard-tabs compile with hard-tabs code
837 --enable-xmc-glitch compile with support for xmc (magic-cookie)
839 --disable-assumed-color do not assume anything about default-colors
840 --disable-hashmap compile without hashmap scrolling-optimization
841 --enable-colorfgbg compile-in experimental $COLORFGBG code
842 --enable-fvisibility compile with -fvisibility=hidden
843 --enable-interop compile-in interop bindings
844 --enable-safe-sprintf compile with experimental safe-sprintf code
845 --disable-scroll-hints compile without scroll-hints code
846 --enable-wgetch-events compile with wgetch-events code
847 --enable-exp-win32 compile with experimental-Windows driver
848 Testing/development Options:
849 --disable-echo do not display "compiling" commands
850 --disable-stripping do not strip (debug info) installed executables
851 --enable-warnings test: turn on gcc compiler warnings
852 --enable-string-hacks work around bogus compiler/loader warnings
853 --enable-assertions test: turn on generation of assertion code
854 --with-dmalloc test: use Gray Watson's dmalloc library
855 --with-dbmalloc test: use Conor Cahill's dbmalloc library
856 --with-valgrind test: use valgrind
857 --disable-leaks test: free permanent memory, analyze leaks
858 --enable-expanded test: generate functions for certain macros
859 --disable-macros test: use functions rather than macros
860 --with-trace test: add trace() function to all models of ncurses
861 --disable-gnat-projects test: disable GNAT projects even if usable
863 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
864 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
865 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
866 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
867 --with-ada-libname=XXX override default Ada library-name
868 --with-form-libname=XXX override form basename of library
869 --with-menu-libname=XXX override menu basename of library
870 --with-panel-libname=XXX override panel basename of library
871 --with-cxx-libname=XXX override ncurses++ basename of library
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
881 CXX C++ compiler command
882 CXXFLAGS C++ compiler flags
883 CXXCPP C++ preprocessor
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
896 # A "../" for each directory in /$ac_subdir.
897 ac_dots=`echo "$ac_subdir" |
898 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
901 .) # No --srcdir option. We are building in place.
902 ac_sub_srcdir="$srcdir" ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
906 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f "$ac_sub_srcdir/configure.gnu"; then
912 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
913 elif test -f "$ac_sub_srcdir/configure"; then
915 $SHELL "$ac_sub_srcdir/configure" --help=recursive
916 elif test -f "$ac_sub_srcdir/configure.ac" ||
917 test -f "$ac_sub_srcdir/configure.in"; then
919 "$ac_configure" --help
921 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
927 test -n "$ac_init_help" && exit 0
928 if "$ac_init_version"; then
931 Copyright 2003-2020,2021 Thomas E. Dickey
932 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
933 Free Software Foundation, Inc.
934 This configure script is free software; the Free Software Foundation
935 gives unlimited permission to copy, distribute and modify it.
941 This file contains any messages produced by compilers while
942 running configure, to aid debugging if configure makes a mistake.
944 It was created by $as_me, which was
945 generated by GNU Autoconf 2.52.20210105. Invocation command line was
956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
968 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
985 # Keep a trace of the command line.
986 # Strip out --no-create and --no-recursion so they do not pile up.
987 # Also quote any args containing shell meta-characters.
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c) ;;
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
997 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
998 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
999 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1001 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1004 # Get rid of the leading space.
1007 # When interrupted or exit'd, cleanup temporary files, and complete
1008 # config.log. We remove comments because anyway the quotes in there
1009 # would cause problems or look ugly.
1010 trap 'exit_status=$?
1011 # Save into config.log some information that might help in debugging.
1013 echo "## ----------------- ##" >&5
1014 echo "## Cache variables. ##" >&5
1015 echo "## ----------------- ##" >&5
1017 # The following way of writing the cache mishandles newlines in values,
1020 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1023 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1028 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1032 sed "/^$/d" confdefs.h >conftest.log
1033 if test -s conftest.log; then
1035 echo "## ------------ ##" >&5
1036 echo "## confdefs.h. ##" >&5
1037 echo "## ------------ ##" >&5
1039 cat conftest.log >&5
1042 test "$ac_signal" != 0 &&
1043 echo "$as_me: caught signal $ac_signal" >&5
1044 echo "$as_me: exit $exit_status" >&5
1045 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1048 for ac_signal in 1 2 13 15; do
1049 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1054 rm -rf conftest* confdefs.h
1055 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1058 # Let the site file select an alternate cache file if it wants to.
1059 # Prefer explicitly selected file to automatically selected ones.
1060 if test -z "$CONFIG_SITE"; then
1061 if test "x$prefix" != xNONE; then
1062 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1064 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1067 for ac_site_file in $CONFIG_SITE; do
1068 if test -r "$ac_site_file"; then
1069 { echo "$as_me:1069: loading site script $ac_site_file" >&5
1070 echo "$as_me: loading site script $ac_site_file" >&6;}
1071 cat "$ac_site_file" >&5
1076 if test -r "$cache_file"; then
1077 # Some versions of bash will fail to source /dev/null (special
1078 # files actually), so we avoid doing that.
1079 if test -f "$cache_file"; then
1080 { echo "$as_me:1080: loading cache $cache_file" >&5
1081 echo "$as_me: loading cache $cache_file" >&6;}
1083 [\\/]* | ?:[\\/]* ) . $cache_file;;
1084 *) . ./$cache_file;;
1088 { echo "$as_me:1088: creating cache $cache_file" >&5
1089 echo "$as_me: creating cache $cache_file" >&6;}
1093 # Check that the precious variables saved in the cache have kept the same
1095 ac_cache_corrupted=false
1096 for ac_var in `(set) 2>&1 |
1097 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1098 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1099 eval ac_new_set=\$ac_env_${ac_var}_set
1100 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1101 eval ac_new_val="\$ac_env_${ac_var}_value"
1102 case "$ac_old_set,$ac_new_set" in
1104 { echo "$as_me:1104: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1105 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1106 ac_cache_corrupted=: ;;
1108 { echo "$as_me:1108: error: \`$ac_var' was not set in the previous run" >&5
1109 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1110 ac_cache_corrupted=: ;;
1113 if test "x$ac_old_val" != "x$ac_new_val"; then
1114 { echo "$as_me:1114: error: \`$ac_var' has changed since the previous run:" >&5
1115 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1116 { echo "$as_me:1116: former value: $ac_old_val" >&5
1117 echo "$as_me: former value: $ac_old_val" >&2;}
1118 { echo "$as_me:1118: current value: $ac_new_val" >&5
1119 echo "$as_me: current value: $ac_new_val" >&2;}
1120 ac_cache_corrupted=:
1123 # Pass precious variables to config.status. It doesn't matter if
1124 # we pass some twice (in addition to the command line arguments).
1125 if test "$ac_new_set" = set; then
1126 case "$ac_new_val" in
1127 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1128 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1129 ac_configure_args="$ac_configure_args '$ac_arg'"
1131 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1136 if "$ac_cache_corrupted"; then
1137 { echo "$as_me:1137: error: changes in the environment can compromise the build" >&5
1138 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1139 { { echo "$as_me:1139: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1140 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1141 { (exit 1); exit 1; }; }
1145 ac_cpp='$CPP $CPPFLAGS'
1146 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1147 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1149 ac_main_return="return"
1151 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1153 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1165 echo "#! $SHELL" >conftest.sh
1166 echo "exit 0" >>conftest.sh
1167 chmod +x conftest.sh
1168 if { (echo "$as_me:1168: PATH=\".;.\"; conftest.sh") >&5
1169 (PATH=".;."; conftest.sh) 2>&5
1171 echo "$as_me:1171: \$? = $ac_status" >&5
1172 (exit "$ac_status"); }; then
1173 ac_path_separator=';'
1177 PATH_SEPARATOR="$ac_path_separator"
1180 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1184 for ac_prog in ggrep grep
1186 # Extract the first word of "$ac_prog", so it can be a program name with args.
1187 set dummy $ac_prog; ac_word=$2
1188 echo "$as_me:1188: checking for $ac_word" >&5
1189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1190 if test "${ac_cv_prog_GREP+set}" = set; then
1191 echo $ECHO_N "(cached) $ECHO_C" >&6
1193 if test -n "$GREP"; then
1194 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1196 ac_save_IFS=$IFS; IFS=$ac_path_separator
1198 for ac_dir in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir=.
1201 $as_executable_p "$ac_dir/$ac_word" || continue
1202 ac_cv_prog_GREP="$ac_prog"
1203 echo "$as_me:1203: found $ac_dir/$ac_word" >&5
1209 GREP=$ac_cv_prog_GREP
1210 if test -n "$GREP"; then
1211 echo "$as_me:1211: result: $GREP" >&5
1212 echo "${ECHO_T}$GREP" >&6
1214 echo "$as_me:1214: result: no" >&5
1215 echo "${ECHO_T}no" >&6
1218 test -n "$GREP" && break
1220 test -n "$GREP" || GREP=": "
1222 echo "$as_me:1222: checking for egrep" >&5
1223 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1224 if test "${ac_cv_path_EGREP+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1228 then ac_cv_path_EGREP="$GREP -E"
1230 for ac_prog in gegrep egrep
1232 # Extract the first word of "$ac_prog", so it can be a program name with args.
1233 set dummy $ac_prog; ac_word=$2
1234 echo "$as_me:1234: checking for $ac_word" >&5
1235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1236 if test "${ac_cv_path_EGREP+set}" = set; then
1237 echo $ECHO_N "(cached) $ECHO_C" >&6
1241 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1244 ac_save_IFS=$IFS; IFS=$ac_path_separator
1246 for ac_dir in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir=.
1249 if $as_executable_p "$ac_dir/$ac_word"; then
1250 ac_cv_path_EGREP="$ac_dir/$ac_word"
1251 echo "$as_me:1251: found $ac_dir/$ac_word" >&5
1259 EGREP=$ac_cv_path_EGREP
1261 if test -n "$EGREP"; then
1262 echo "$as_me:1262: result: $EGREP" >&5
1263 echo "${ECHO_T}$EGREP" >&6
1265 echo "$as_me:1265: result: no" >&5
1266 echo "${ECHO_T}no" >&6
1269 test -n "$EGREP" && break
1271 test -n "$EGREP" || EGREP=": "
1273 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1273: error: cannot find workable egrep" >&5
1274 echo "$as_me: error: cannot find workable egrep" >&2;}
1275 { (exit 1); exit 1; }; }
1278 echo "$as_me:1278: result: $ac_cv_path_EGREP" >&5
1279 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1280 EGREP="$ac_cv_path_EGREP"
1282 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1283 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1284 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1285 cf_cv_abi_version=${NCURSES_MAJOR}
1286 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1287 cf_cv_timestamp=`date`
1288 echo "$as_me:1288: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1289 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1291 if test -f "$srcdir/VERSION" ; then
1292 echo "$as_me:1292: checking for package version" >&5
1293 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1295 # if there are not enough fields, cut returns the last one...
1296 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1297 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1298 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1300 # this is how CF_BUNDLED_INTL uses $VERSION:
1301 VERSION="$cf_field1"
1303 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1304 test -z "$VERSION_MAJOR" && { { echo "$as_me:1304: error: missing major-version" >&5
1305 echo "$as_me: error: missing major-version" >&2;}
1306 { (exit 1); exit 1; }; }
1308 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1309 test -z "$VERSION_MINOR" && { { echo "$as_me:1309: error: missing minor-version" >&5
1310 echo "$as_me: error: missing minor-version" >&2;}
1311 { (exit 1); exit 1; }; }
1313 echo "$as_me:1313: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1314 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1316 echo "$as_me:1316: checking for package patch date" >&5
1317 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1318 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1319 case .$VERSION_PATCH in
1321 { { echo "$as_me:1321: error: missing patch-date $VERSION_PATCH" >&5
1322 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1323 { (exit 1); exit 1; }; }
1325 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1328 { { echo "$as_me:1328: error: illegal patch-date $VERSION_PATCH" >&5
1329 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:1333: result: $VERSION_PATCH" >&5
1334 echo "${ECHO_T}$VERSION_PATCH" >&6
1336 { { echo "$as_me:1336: error: did not find $srcdir/VERSION" >&5
1337 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1338 { (exit 1); exit 1; }; }
1341 # show the actual data that we have for versions:
1342 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1344 echo "${as_me:-configure}:1344: testing ABI VERSION $VERSION ..." 1>&5
1346 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1348 echo "${as_me:-configure}:1348: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1350 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1352 echo "${as_me:-configure}:1352: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1354 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1356 echo "${as_me:-configure}:1356: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1361 cat >>confdefs.h <<EOF
1362 #define PACKAGE "$PACKAGE"
1365 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1367 cat >>confdefs.h <<EOF
1368 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1371 cat >>confdefs.h <<EOF
1372 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1375 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1377 # Check whether --with-rel-version or --without-rel-version was given.
1378 if test "${with_rel_version+set}" = set; then
1379 withval="$with_rel_version"
1380 { echo "$as_me:1380: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1381 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1382 cf_cv_rel_version=$withval
1385 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1386 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1388 if test -n "$NCURSES_MAJOR" ; then
1389 case $NCURSES_MAJOR in
1393 { { echo "$as_me:1393: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1394 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1395 { (exit 1); exit 1; }; }
1399 { { echo "$as_me:1399: error: Release major-version value is empty" >&5
1400 echo "$as_me: error: Release major-version value is empty" >&2;}
1401 { (exit 1); exit 1; }; }
1404 if test -n "$NCURSES_MINOR" ; then
1405 case $NCURSES_MINOR in
1409 { { echo "$as_me:1409: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1410 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1411 { (exit 1); exit 1; }; }
1415 { { echo "$as_me:1415: error: Release minor-version value is empty" >&5
1416 echo "$as_me: error: Release minor-version value is empty" >&2;}
1417 { (exit 1); exit 1; }; }
1420 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1422 # Check whether --with-abi-version or --without-abi-version was given.
1423 if test "${with_abi_version+set}" = set; then
1424 withval="$with_abi_version"
1426 if test "x$cf_cv_abi_version" != "x$withval"
1428 { echo "$as_me:1428: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1429 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1430 case "$cf_cv_rel_version" in
1432 cf_cv_rel_version=$withval.0
1435 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1439 cf_cv_abi_version=$withval
1442 if test -n "$cf_cv_abi_version" ; then
1443 case $cf_cv_abi_version in
1447 { { echo "$as_me:1447: error: ABI version is not a number: $cf_cv_abi_version" >&5
1448 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1449 { (exit 1); exit 1; }; }
1453 { { echo "$as_me:1453: error: ABI version value is empty" >&5
1454 echo "$as_me: error: ABI version value is empty" >&2;}
1455 { (exit 1); exit 1; }; }
1458 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1460 case "$cf_cv_rel_version" in
1462 cf_cv_rel_version=$with_abi_version.0
1468 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1469 if test -f "$ac_dir/install-sh"; then
1471 ac_install_sh="$ac_aux_dir/install-sh -c"
1473 elif test -f "$ac_dir/install.sh"; then
1475 ac_install_sh="$ac_aux_dir/install.sh -c"
1477 elif test -f "$ac_dir/shtool"; then
1479 ac_install_sh="$ac_aux_dir/shtool install -c"
1483 if test -z "$ac_aux_dir"; then
1484 { { echo "$as_me:1484: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1485 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1486 { (exit 1); exit 1; }; }
1488 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1489 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1490 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1492 # Make sure we can run config.sub.
1493 $ac_config_sub sun4 >/dev/null 2>&1 ||
1494 { { echo "$as_me:1494: error: cannot run $ac_config_sub" >&5
1495 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1496 { (exit 1); exit 1; }; }
1498 echo "$as_me:1498: checking build system type" >&5
1499 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1500 if test "${ac_cv_build+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 ac_cv_build_alias=$build_alias
1504 test -z "$ac_cv_build_alias" &&
1505 ac_cv_build_alias=`$ac_config_guess`
1506 test -z "$ac_cv_build_alias" &&
1507 { { echo "$as_me:1507: error: cannot guess build type; you must specify one" >&5
1508 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1509 { (exit 1); exit 1; }; }
1510 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1511 { { echo "$as_me:1511: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1513 { (exit 1); exit 1; }; }
1516 echo "$as_me:1516: result: $ac_cv_build" >&5
1517 echo "${ECHO_T}$ac_cv_build" >&6
1519 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1523 echo "$as_me:1523: checking host system type" >&5
1524 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1525 if test "${ac_cv_host+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 ac_cv_host_alias=$host_alias
1529 test -z "$ac_cv_host_alias" &&
1530 ac_cv_host_alias=$ac_cv_build_alias
1531 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1532 { { echo "$as_me:1532: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1533 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1537 echo "$as_me:1537: result: $ac_cv_host" >&5
1538 echo "${ECHO_T}$ac_cv_host" >&6
1540 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1545 echo "$as_me:1545: checking target system type" >&5
1546 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1547 if test "${ac_cv_target+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 ac_cv_target_alias=$target_alias
1551 test "x$ac_cv_target_alias" = "x" &&
1552 ac_cv_target_alias=$ac_cv_host_alias
1553 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1554 { { echo "$as_me:1554: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1559 echo "$as_me:1559: result: $ac_cv_target" >&5
1560 echo "${ECHO_T}$ac_cv_target" >&6
1561 target=$ac_cv_target
1562 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566 # The aliases save the names the user supplied, while $host etc.
1567 # will get canonicalized.
1568 test -n "$target_alias" &&
1569 test "$program_prefix$program_suffix$program_transform_name" = \
1571 program_prefix=${target_alias}-
1572 system_name="$host_os"
1574 system_name="`(uname -s -r) 2>/dev/null`"
1575 if test -z "$system_name" ; then
1576 system_name="`(hostname) 2>/dev/null`"
1579 test -n "$system_name" &&
1580 cat >>confdefs.h <<EOF
1581 #define SYSTEM_NAME "$system_name"
1584 if test "${cf_cv_system_name+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 cf_cv_system_name="$system_name"
1590 test -z "$system_name" && system_name="$cf_cv_system_name"
1591 test -n "$cf_cv_system_name" && echo "$as_me:1591: result: Configuring for $cf_cv_system_name" >&5
1592 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1594 if test ".$system_name" != ".$cf_cv_system_name" ; then
1595 echo "$as_me:1595: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1596 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1597 { { echo "$as_me:1597: error: \"Please remove config.cache and try again.\"" >&5
1598 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1599 { (exit 1); exit 1; }; }
1602 # Check whether --with-system-type or --without-system-type was given.
1603 if test "${with_system_type+set}" = set; then
1604 withval="$with_system_type"
1605 { echo "$as_me:1605: WARNING: overriding system type to $withval" >&5
1606 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1607 cf_cv_system_name=$withval
1612 ### Save the given $CFLAGS to allow user-override.
1613 cf_user_CFLAGS="$CFLAGS"
1615 ### Default install-location
1616 echo "$as_me:1616: checking for fgrep" >&5
1617 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1618 if test "${ac_cv_path_FGREP+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1622 then ac_cv_path_FGREP="$GREP -F"
1624 for ac_prog in gfgrep fgrep
1626 # Extract the first word of "$ac_prog", so it can be a program name with args.
1627 set dummy $ac_prog; ac_word=$2
1628 echo "$as_me:1628: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_path_FGREP+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1638 ac_save_IFS=$IFS; IFS=$ac_path_separator
1640 for ac_dir in $ac_dummy; do
1642 test -z "$ac_dir" && ac_dir=.
1643 if $as_executable_p "$ac_dir/$ac_word"; then
1644 ac_cv_path_FGREP="$ac_dir/$ac_word"
1645 echo "$as_me:1645: found $ac_dir/$ac_word" >&5
1653 FGREP=$ac_cv_path_FGREP
1655 if test -n "$FGREP"; then
1656 echo "$as_me:1656: result: $FGREP" >&5
1657 echo "${ECHO_T}$FGREP" >&6
1659 echo "$as_me:1659: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1663 test -n "$FGREP" && break
1665 test -n "$FGREP" || FGREP=": "
1667 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1667: error: cannot find workable fgrep" >&5
1668 echo "$as_me: error: cannot find workable fgrep" >&2;}
1669 { (exit 1); exit 1; }; }
1672 echo "$as_me:1672: result: $ac_cv_path_FGREP" >&5
1673 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1674 FGREP="$ac_cv_path_FGREP"
1676 echo "$as_me:1676: checking for prefix" >&5
1677 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1678 if test "x$prefix" = "xNONE" ; then
1679 case "$cf_cv_system_name" in
1680 # non-vendor systems don't have a conflict
1681 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1684 (*) prefix=$ac_default_prefix
1688 echo "$as_me:1688: result: $prefix" >&5
1689 echo "${ECHO_T}$prefix" >&6
1691 if test "x$prefix" = "xNONE" ; then
1692 echo "$as_me:1692: checking for default include-directory" >&5
1693 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1694 test -n "$verbose" && echo 1>&6
1697 "$includedir/ncurses" \
1699 "$prefix/include/ncurses" \
1700 /usr/local/include \
1701 /usr/local/include/ncurses \
1703 /usr/include/ncurses
1705 cf_dir=`eval echo "$cf_symbol"`
1706 if test -f "$cf_dir/curses.h" ; then
1707 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1708 includedir="$cf_symbol"
1709 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1713 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1715 echo "$as_me:1715: result: $includedir" >&5
1716 echo "${ECHO_T}$includedir" >&6
1719 ### Defaults for ncurses ABI
1721 case x$cf_cv_abi_version in
1723 cf_dft_ext_colors=yes
1724 cf_dft_ext_const=yes
1725 cf_dft_ext_mouse=yes
1726 cf_dft_ext_putwin=yes
1727 cf_dft_ext_spfuncs=yes
1728 cf_dft_filter_syms=yes
1729 cf_dft_chtype=uint32_t
1730 cf_dft_mmask_t=uint32_t
1732 cf_dft_tparm_arg=intptr_t
1733 cf_dft_with_lp64=yes
1736 cf_dft_ext_colors=no
1739 cf_dft_ext_putwin=no
1740 cf_dft_ext_spfuncs=no
1741 cf_dft_filter_syms=no
1745 cf_dft_tparm_arg=long
1750 ### Checks for programs.
1752 # Check whether --with-ada or --without-ada was given.
1753 if test "${with_ada+set}" = set; then
1755 cf_with_ada=$withval
1760 if test "x$cf_with_ada" = xyes
1762 cf_prog_cc="gnatgcc gcc cc"
1768 ac_cpp='$CPP $CPPFLAGS'
1769 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1770 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772 ac_main_return="return"
1773 if test -n "$ac_tool_prefix"; then
1774 for ac_prog in $cf_prog_cc
1776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1778 echo "$as_me:1778: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 if test -n "$CC"; then
1784 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 ac_save_IFS=$IFS; IFS=$ac_path_separator
1788 for ac_dir in $ac_dummy; do
1790 test -z "$ac_dir" && ac_dir=.
1791 $as_executable_p "$ac_dir/$ac_word" || continue
1792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1793 echo "$as_me:1793: found $ac_dir/$ac_word" >&5
1800 if test -n "$CC"; then
1801 echo "$as_me:1801: result: $CC" >&5
1802 echo "${ECHO_T}$CC" >&6
1804 echo "$as_me:1804: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1808 test -n "$CC" && break
1811 if test -z "$CC"; then
1813 for ac_prog in $cf_prog_cc
1815 # Extract the first word of "$ac_prog", so it can be a program name with args.
1816 set dummy $ac_prog; ac_word=$2
1817 echo "$as_me:1817: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1825 ac_save_IFS=$IFS; IFS=$ac_path_separator
1827 for ac_dir in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir=.
1830 $as_executable_p "$ac_dir/$ac_word" || continue
1831 ac_cv_prog_ac_ct_CC="$ac_prog"
1832 echo "$as_me:1832: found $ac_dir/$ac_word" >&5
1838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1839 if test -n "$ac_ct_CC"; then
1840 echo "$as_me:1840: result: $ac_ct_CC" >&5
1841 echo "${ECHO_T}$ac_ct_CC" >&6
1843 echo "$as_me:1843: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1847 test -n "$ac_ct_CC" && break
1853 test -z "$CC" && { { echo "$as_me:1853: error: no acceptable cc found in \$PATH" >&5
1854 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1855 { (exit 1); exit 1; }; }
1857 # Provide some information about the compiler.
1858 echo "$as_me:1858:" \
1859 "checking for C compiler version" >&5
1860 ac_compiler=`set X $ac_compile; echo "$2"`
1861 { (eval echo "$as_me:1861: \"$ac_compiler --version </dev/null >&5\"") >&5
1862 (eval $ac_compiler --version </dev/null >&5) 2>&5
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit "$ac_status"); }
1866 { (eval echo "$as_me:1866: \"$ac_compiler -v </dev/null >&5\"") >&5
1867 (eval $ac_compiler -v </dev/null >&5) 2>&5
1869 echo "$as_me:1869: \$? = $ac_status" >&5
1870 (exit "$ac_status"); }
1871 { (eval echo "$as_me:1871: \"$ac_compiler -V </dev/null >&5\"") >&5
1872 (eval $ac_compiler -V </dev/null >&5) 2>&5
1874 echo "$as_me:1874: \$? = $ac_status" >&5
1875 (exit "$ac_status"); }
1877 cat >"conftest.$ac_ext" <<_ACEOF
1878 #line 1878 "configure"
1879 #include "confdefs.h"
1889 ac_clean_files_save=$ac_clean_files
1890 ac_clean_files="$ac_clean_files a.out a.exe"
1891 # Try to create an executable without -o first, disregard a.out.
1892 # It will help us diagnose broken compilers, and finding out an intuition
1894 echo "$as_me:1894: checking for C compiler default output" >&5
1895 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1896 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1897 if { (eval echo "$as_me:1897: \"$ac_link_default\"") >&5
1898 (eval $ac_link_default) 2>&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit "$ac_status"); }; then
1902 # Find the output, starting from the most likely. This scheme is
1903 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1905 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1906 ls a.out conftest 2>/dev/null;
1907 ls a.* conftest.* 2>/dev/null`; do
1909 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1910 a.out ) # We found the default executable, but exeext='' is most
1913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1914 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1921 echo "$as_me: failed program was:" >&5
1922 cat "conftest.$ac_ext" >&5
1923 { { echo "$as_me:1923: error: C compiler cannot create executables" >&5
1924 echo "$as_me: error: C compiler cannot create executables" >&2;}
1925 { (exit 77); exit 77; }; }
1928 ac_exeext=$ac_cv_exeext
1929 echo "$as_me:1929: result: $ac_file" >&5
1930 echo "${ECHO_T}$ac_file" >&6
1932 # Check the compiler produces executables we can run. If not, either
1933 # the compiler is broken, or we cross compile.
1934 echo "$as_me:1934: checking whether the C compiler works" >&5
1935 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1936 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1937 # If not cross compiling, check that we can run a simple program.
1938 if test "$cross_compiling" != yes; then
1939 if { ac_try='./$ac_file'
1940 { (eval echo "$as_me:1940: \"$ac_try\"") >&5
1943 echo "$as_me:1943: \$? = $ac_status" >&5
1944 (exit "$ac_status"); }; }; then
1947 if test "$cross_compiling" = maybe; then
1950 { { echo "$as_me:1950: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'." >&2;}
1954 { (exit 1); exit 1; }; }
1958 echo "$as_me:1958: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1961 rm -f a.out a.exe "conftest$ac_cv_exeext"
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run. If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:1965: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:1967: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1970 echo "$as_me:1970: checking for executable suffix" >&5
1971 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1972 if { (eval echo "$as_me:1972: \"$ac_link\"") >&5
1973 (eval $ac_link) 2>&5
1975 echo "$as_me:1975: \$? = $ac_status" >&5
1976 (exit "$ac_status"); }; then
1977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:1991: error: cannot compute EXEEXT: cannot compile and link" >&5
1992 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1993 { (exit 1); exit 1; }; }
1996 rm -f "conftest$ac_cv_exeext"
1997 echo "$as_me:1997: result: $ac_cv_exeext" >&5
1998 echo "${ECHO_T}$ac_cv_exeext" >&6
2000 rm -f "conftest.$ac_ext"
2001 EXEEXT=$ac_cv_exeext
2003 echo "$as_me:2003: checking for object suffix" >&5
2004 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2005 if test "${ac_cv_objext+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 cat >"conftest.$ac_ext" <<_ACEOF
2009 #line 2009 "configure"
2010 #include "confdefs.h"
2020 rm -f conftest.o conftest.obj
2021 if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit "$ac_status"); }; then
2026 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2028 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2034 echo "$as_me: failed program was:" >&5
2035 cat "conftest.$ac_ext" >&5
2036 { { echo "$as_me:2036: error: cannot compute OBJEXT: cannot compile" >&5
2037 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2038 { (exit 1); exit 1; }; }
2041 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2043 echo "$as_me:2043: result: $ac_cv_objext" >&5
2044 echo "${ECHO_T}$ac_cv_objext" >&6
2045 OBJEXT=$ac_cv_objext
2047 echo "$as_me:2047: checking whether we are using the GNU C compiler" >&5
2048 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2049 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 cat >"conftest.$ac_ext" <<_ACEOF
2053 #line 2053 "configure"
2054 #include "confdefs.h"
2067 rm -f "conftest.$ac_objext"
2068 if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit "$ac_status"); } &&
2073 { ac_try='test -s "conftest.$ac_objext"'
2074 { (eval echo "$as_me:2074: \"$ac_try\"") >&5
2077 echo "$as_me:2077: \$? = $ac_status" >&5
2078 (exit "$ac_status"); }; }; then
2081 echo "$as_me: failed program was:" >&5
2082 cat "conftest.$ac_ext" >&5
2085 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2089 echo "$as_me:2089: result: $ac_cv_c_compiler_gnu" >&5
2090 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2091 GCC=`test $ac_compiler_gnu = yes && echo yes`
2092 ac_test_CFLAGS=${CFLAGS+set}
2093 ac_save_CFLAGS=$CFLAGS
2095 echo "$as_me:2095: checking whether $CC accepts -g" >&5
2096 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_g+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 cat >"conftest.$ac_ext" <<_ACEOF
2101 #line 2101 "configure"
2102 #include "confdefs.h"
2112 rm -f "conftest.$ac_objext"
2113 if { (eval echo "$as_me:2113: \"$ac_compile\"") >&5
2114 (eval $ac_compile) 2>&5
2116 echo "$as_me:2116: \$? = $ac_status" >&5
2117 (exit "$ac_status"); } &&
2118 { ac_try='test -s "conftest.$ac_objext"'
2119 { (eval echo "$as_me:2119: \"$ac_try\"") >&5
2122 echo "$as_me:2122: \$? = $ac_status" >&5
2123 (exit "$ac_status"); }; }; then
2126 echo "$as_me: failed program was:" >&5
2127 cat "conftest.$ac_ext" >&5
2130 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2132 echo "$as_me:2132: result: $ac_cv_prog_cc_g" >&5
2133 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2134 if test "$ac_test_CFLAGS" = set; then
2135 CFLAGS=$ac_save_CFLAGS
2136 elif test $ac_cv_prog_cc_g = yes; then
2137 if test "$GCC" = yes; then
2143 if test "$GCC" = yes; then
2149 # Some people use a C++ compiler to compile C. Since we use `exit',
2150 # in C++ we need to declare it. In case someone uses the same compiler
2151 # for both compiling C and C++ we need to have the C++ compiler decide
2152 # the declaration of exit, since it's the most demanding environment.
2153 cat >"conftest.$ac_ext" <<_ACEOF
2158 rm -f "conftest.$ac_objext"
2159 if { (eval echo "$as_me:2159: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>&5
2162 echo "$as_me:2162: \$? = $ac_status" >&5
2163 (exit "$ac_status"); } &&
2164 { ac_try='test -s "conftest.$ac_objext"'
2165 { (eval echo "$as_me:2165: \"$ac_try\"") >&5
2168 echo "$as_me:2168: \$? = $ac_status" >&5
2169 (exit "$ac_status"); }; }; then
2170 for ac_declaration in \
2172 '#include <stdlib.h>' \
2173 'extern "C" void std::exit (int) throw (); using std::exit;' \
2174 'extern "C" void std::exit (int); using std::exit;' \
2175 'extern "C" void exit (int) throw ();' \
2176 'extern "C" void exit (int);' \
2179 cat >"conftest.$ac_ext" <<_ACEOF
2180 #line 2180 "configure"
2181 #include "confdefs.h"
2192 rm -f "conftest.$ac_objext"
2193 if { (eval echo "$as_me:2193: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2196 echo "$as_me:2196: \$? = $ac_status" >&5
2197 (exit "$ac_status"); } &&
2198 { ac_try='test -s "conftest.$ac_objext"'
2199 { (eval echo "$as_me:2199: \"$ac_try\"") >&5
2202 echo "$as_me:2202: \$? = $ac_status" >&5
2203 (exit "$ac_status"); }; }; then
2206 echo "$as_me: failed program was:" >&5
2207 cat "conftest.$ac_ext" >&5
2210 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2211 cat >"conftest.$ac_ext" <<_ACEOF
2212 #line 2212 "configure"
2213 #include "confdefs.h"
2223 rm -f "conftest.$ac_objext"
2224 if { (eval echo "$as_me:2224: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:2227: \$? = $ac_status" >&5
2228 (exit "$ac_status"); } &&
2229 { ac_try='test -s "conftest.$ac_objext"'
2230 { (eval echo "$as_me:2230: \"$ac_try\"") >&5
2233 echo "$as_me:2233: \$? = $ac_status" >&5
2234 (exit "$ac_status"); }; }; then
2237 echo "$as_me: failed program was:" >&5
2238 cat "conftest.$ac_ext" >&5
2240 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2243 if test -n "$ac_declaration"; then
2244 echo '#ifdef __cplusplus' >>confdefs.h
2245 echo "$ac_declaration" >>confdefs.h
2246 echo '#endif' >>confdefs.h
2250 echo "$as_me: failed program was:" >&5
2251 cat "conftest.$ac_ext" >&5
2253 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2257 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259 ac_main_return="return"
2262 if test "$GCC" = yes ; then
2263 echo "$as_me:2263: checking version of $CC" >&5
2264 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2265 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2266 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2267 echo "$as_me:2267: result: $GCC_VERSION" >&5
2268 echo "${ECHO_T}$GCC_VERSION" >&6
2273 if test "$GCC" = yes ; then
2276 echo "$as_me:2276: checking if this is really Intel C compiler" >&5
2277 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2278 cf_save_CFLAGS="$CFLAGS"
2279 CFLAGS="$CFLAGS -no-gcc"
2280 cat >"conftest.$ac_ext" <<_ACEOF
2281 #line 2281 "configure"
2282 #include "confdefs.h"
2288 #ifdef __INTEL_COMPILER
2297 rm -f "conftest.$ac_objext"
2298 if { (eval echo "$as_me:2298: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:2301: \$? = $ac_status" >&5
2302 (exit "$ac_status"); } &&
2303 { ac_try='test -s "conftest.$ac_objext"'
2304 { (eval echo "$as_me:2304: \"$ac_try\"") >&5
2307 echo "$as_me:2307: \$? = $ac_status" >&5
2308 (exit "$ac_status"); }; }; then
2310 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2313 echo "$as_me: failed program was:" >&5
2314 cat "conftest.$ac_ext" >&5
2316 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2317 CFLAGS="$cf_save_CFLAGS"
2318 echo "$as_me:2318: result: $INTEL_COMPILER" >&5
2319 echo "${ECHO_T}$INTEL_COMPILER" >&6
2326 if test "$GCC" = yes ; then
2327 echo "$as_me:2327: checking if this is really Clang C compiler" >&5
2328 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2329 cf_save_CFLAGS="$CFLAGS"
2330 cat >"conftest.$ac_ext" <<_ACEOF
2331 #line 2331 "configure"
2332 #include "confdefs.h"
2347 rm -f "conftest.$ac_objext"
2348 if { (eval echo "$as_me:2348: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:2351: \$? = $ac_status" >&5
2352 (exit "$ac_status"); } &&
2353 { ac_try='test -s "conftest.$ac_objext"'
2354 { (eval echo "$as_me:2354: \"$ac_try\"") >&5
2357 echo "$as_me:2357: \$? = $ac_status" >&5
2358 (exit "$ac_status"); }; }; then
2362 echo "$as_me: failed program was:" >&5
2363 cat "conftest.$ac_ext" >&5
2365 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2366 CFLAGS="$cf_save_CFLAGS"
2367 echo "$as_me:2367: result: $CLANG_COMPILER" >&5
2368 echo "${ECHO_T}$CLANG_COMPILER" >&6
2373 if test "x$CLANG_COMPILER" = "xyes" ; then
2375 (c[1-9][0-9]|*/c[1-9][0-9])
2376 { echo "$as_me:2376: WARNING: replacing broken compiler alias $CC" >&5
2377 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2378 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2383 echo "$as_me:2383: checking version of $CC" >&5
2384 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2385 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.].*//'`"
2386 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2387 echo "$as_me:2387: result: $CLANG_VERSION" >&5
2388 echo "${ECHO_T}$CLANG_VERSION" >&6
2390 for cf_clang_opt in \
2391 -Qunused-arguments \
2392 -Wno-error=implicit-function-declaration
2394 echo "$as_me:2394: checking if option $cf_clang_opt works" >&5
2395 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2396 cf_save_CFLAGS="$CFLAGS"
2397 CFLAGS="$CFLAGS $cf_clang_opt"
2398 cat >"conftest.$ac_ext" <<_ACEOF
2399 #line 2399 "configure"
2400 #include "confdefs.h"
2407 printf("hello!\\n");
2412 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2413 if { (eval echo "$as_me:2413: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>&5
2416 echo "$as_me:2416: \$? = $ac_status" >&5
2417 (exit "$ac_status"); } &&
2418 { ac_try='test -s "conftest$ac_exeext"'
2419 { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2422 echo "$as_me:2422: \$? = $ac_status" >&5
2423 (exit "$ac_status"); }; }; then
2427 echo "$as_me: failed program was:" >&5
2428 cat "conftest.$ac_ext" >&5
2432 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2433 echo "$as_me:2433: result: $cf_clang_optok" >&5
2434 echo "${ECHO_T}$cf_clang_optok" >&6
2435 CFLAGS="$cf_save_CFLAGS"
2436 if test "$cf_clang_optok" = yes; then
2437 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2439 echo "${as_me:-configure}:2439: testing adding option $cf_clang_opt ..." 1>&5
2441 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2442 CFLAGS="${CFLAGS}$cf_clang_opt"
2448 echo "$as_me:2448: checking for $CC option to accept ANSI C" >&5
2449 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2450 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 ac_cv_prog_cc_stdc=no
2455 cat >"conftest.$ac_ext" <<_ACEOF
2456 #line 2456 "configure"
2457 #include "confdefs.h"
2460 #include <sys/types.h>
2461 #include <sys/stat.h>
2462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2463 struct buf { int x; };
2464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2465 static char *e (p, i)
2471 static char *f (char * (*g) (char **, int), char **p, ...)
2476 s = g (p, va_arg (v,int));
2480 int test (int i, double x);
2481 struct s1 {int (*f) (int a);};
2482 struct s2 {int (*f) (double a);};
2483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2494 # Don't try gcc -ansi; that turns off useful extensions and
2495 # breaks some systems' header files.
2496 # AIX -qlanglvl=ansi
2497 # Ultrix and OSF/1 -std1
2498 # HP-UX 10.20 and later -Ae
2499 # HP-UX older versions -Aa -D_HPUX_SOURCE
2500 # SVR4 -Xc -D__EXTENSIONS__
2501 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2503 CC="$ac_save_CC $ac_arg"
2504 rm -f "conftest.$ac_objext"
2505 if { (eval echo "$as_me:2505: \"$ac_compile\"") >&5
2506 (eval $ac_compile) 2>&5
2508 echo "$as_me:2508: \$? = $ac_status" >&5
2509 (exit "$ac_status"); } &&
2510 { ac_try='test -s "conftest.$ac_objext"'
2511 { (eval echo "$as_me:2511: \"$ac_try\"") >&5
2514 echo "$as_me:2514: \$? = $ac_status" >&5
2515 (exit "$ac_status"); }; }; then
2516 ac_cv_prog_cc_stdc=$ac_arg
2519 echo "$as_me: failed program was:" >&5
2520 cat "conftest.$ac_ext" >&5
2522 rm -f "conftest.$ac_objext"
2524 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2529 case "x$ac_cv_prog_cc_stdc" in
2531 echo "$as_me:2531: result: none needed" >&5
2532 echo "${ECHO_T}none needed" >&6 ;;
2534 echo "$as_me:2534: result: $ac_cv_prog_cc_stdc" >&5
2535 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2536 CC="$CC $ac_cv_prog_cc_stdc" ;;
2539 # This should have been defined by AC_PROG_CC
2542 echo "$as_me:2542: checking \$CFLAGS variable" >&5
2543 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2546 echo "$as_me:2546: result: broken" >&5
2547 echo "${ECHO_T}broken" >&6
2548 { echo "$as_me:2548: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2549 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2552 for cf_arg in $cf_flags
2558 cf_new_extra_cppflags=
2560 for cf_add_cflags in $cf_arg
2562 case "$cf_fix_cppflags" in
2564 case "$cf_add_cflags" in
2565 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2566 case "$cf_add_cflags" in
2568 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2570 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2571 && test -z "${cf_tst_cflags}" \
2572 && cf_fix_cppflags=yes
2574 if test "$cf_fix_cppflags" = yes ; then
2576 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2577 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2580 elif test "${cf_tst_cflags}" = "\"'" ; then
2582 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2583 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2593 case "$cf_add_cflags" in
2595 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2597 CPPFLAGS=`echo "$CPPFLAGS" | \
2598 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2599 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2604 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2605 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2612 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2613 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2620 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2621 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2623 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2625 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2626 && test -z "${cf_tst_cflags}" \
2627 && cf_fix_cppflags=no
2632 if test -n "$cf_new_cflags" ; then
2634 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2635 CFLAGS="${CFLAGS}$cf_new_cflags"
2639 if test -n "$cf_new_cppflags" ; then
2641 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2642 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2646 if test -n "$cf_new_extra_cppflags" ; then
2648 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2649 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2656 echo "$as_me:2656: result: ok" >&5
2657 echo "${ECHO_T}ok" >&6
2661 echo "$as_me:2661: checking \$CC variable" >&5
2662 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2665 echo "$as_me:2665: result: broken" >&5
2666 echo "${ECHO_T}broken" >&6
2667 { echo "$as_me:2667: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2668 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2670 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2671 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2673 for cf_arg in $cf_flags
2681 cf_new_extra_cppflags=
2683 for cf_add_cflags in $cf_arg
2685 case "$cf_fix_cppflags" in
2687 case "$cf_add_cflags" in
2688 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2689 case "$cf_add_cflags" in
2691 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2693 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2694 && test -z "${cf_tst_cflags}" \
2695 && cf_fix_cppflags=yes
2697 if test "$cf_fix_cppflags" = yes ; then
2699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2703 elif test "${cf_tst_cflags}" = "\"'" ; then
2705 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2706 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2716 case "$cf_add_cflags" in
2718 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2720 CPPFLAGS=`echo "$CPPFLAGS" | \
2721 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2722 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2727 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2728 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2735 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2736 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2743 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2744 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2746 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2748 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2749 && test -z "${cf_tst_cflags}" \
2750 && cf_fix_cppflags=no
2755 if test -n "$cf_new_cflags" ; then
2757 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2758 CFLAGS="${CFLAGS}$cf_new_cflags"
2762 if test -n "$cf_new_cppflags" ; then
2764 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2765 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2769 if test -n "$cf_new_extra_cppflags" ; then
2771 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2772 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2782 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2784 echo "${as_me:-configure}:2784: testing resulting CC: '$CC' ..." 1>&5
2786 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2788 echo "${as_me:-configure}:2788: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2790 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2792 echo "${as_me:-configure}:2792: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2796 echo "$as_me:2796: result: ok" >&5
2797 echo "${ECHO_T}ok" >&6
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2804 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 ac_main_return="return"
2807 echo "$as_me:2807: checking how to run the C preprocessor" >&5
2808 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2809 # On Suns, sometimes $CPP names a directory.
2810 if test -n "$CPP" && test -d "$CPP"; then
2813 if test -z "$CPP"; then
2814 if test "${ac_cv_prog_CPP+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 # Double quotes because CPP needs to be expanded
2818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2821 for ac_c_preproc_warn_flag in '' yes
2823 # Use a header file that comes with gcc, so configuring glibc
2824 # with a fresh cross-compiler works.
2825 # On the NeXT, cc -E runs the code through the compiler's parser,
2826 # not just through cpp. "Syntax error" is here to catch this case.
2827 cat >"conftest.$ac_ext" <<_ACEOF
2828 #line 2828 "configure"
2829 #include "confdefs.h"
2833 if { (eval echo "$as_me:2833: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2834 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2836 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:2839: \$? = $ac_status" >&5
2840 (exit "$ac_status"); } >/dev/null; then
2841 if test -s conftest.err; then
2842 ac_cpp_err=$ac_c_preproc_warn_flag
2849 if test -z "$ac_cpp_err"; then
2852 echo "$as_me: failed program was:" >&5
2853 cat "conftest.$ac_ext" >&5
2854 # Broken: fails on valid input.
2857 rm -f conftest.err "conftest.$ac_ext"
2859 # OK, works on sane cases. Now check whether non-existent headers
2860 # can be detected and how.
2861 cat >"conftest.$ac_ext" <<_ACEOF
2862 #line 2862 "configure"
2863 #include "confdefs.h"
2864 #include <ac_nonexistent.h>
2866 if { (eval echo "$as_me:2866: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2867 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2869 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:2872: \$? = $ac_status" >&5
2873 (exit "$ac_status"); } >/dev/null; then
2874 if test -s conftest.err; then
2875 ac_cpp_err=$ac_c_preproc_warn_flag
2882 if test -z "$ac_cpp_err"; then
2883 # Broken: success on invalid input.
2886 echo "$as_me: failed program was:" >&5
2887 cat "conftest.$ac_ext" >&5
2888 # Passes both tests.
2892 rm -f conftest.err "conftest.$ac_ext"
2895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2896 rm -f conftest.err "conftest.$ac_ext"
2897 if $ac_preproc_ok; then
2909 echo "$as_me:2909: result: $CPP" >&5
2910 echo "${ECHO_T}$CPP" >&6
2912 for ac_c_preproc_warn_flag in '' yes
2914 # Use a header file that comes with gcc, so configuring glibc
2915 # with a fresh cross-compiler works.
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp. "Syntax error" is here to catch this case.
2918 cat >"conftest.$ac_ext" <<_ACEOF
2919 #line 2919 "configure"
2920 #include "confdefs.h"
2924 if { (eval echo "$as_me:2924: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2925 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2927 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2929 cat conftest.err >&5
2930 echo "$as_me:2930: \$? = $ac_status" >&5
2931 (exit "$ac_status"); } >/dev/null; then
2932 if test -s conftest.err; then
2933 ac_cpp_err=$ac_c_preproc_warn_flag
2940 if test -z "$ac_cpp_err"; then
2943 echo "$as_me: failed program was:" >&5
2944 cat "conftest.$ac_ext" >&5
2945 # Broken: fails on valid input.
2948 rm -f conftest.err "conftest.$ac_ext"
2950 # OK, works on sane cases. Now check whether non-existent headers
2951 # can be detected and how.
2952 cat >"conftest.$ac_ext" <<_ACEOF
2953 #line 2953 "configure"
2954 #include "confdefs.h"
2955 #include <ac_nonexistent.h>
2957 if { (eval echo "$as_me:2957: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2958 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2960 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2962 cat conftest.err >&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit "$ac_status"); } >/dev/null; then
2965 if test -s conftest.err; then
2966 ac_cpp_err=$ac_c_preproc_warn_flag
2973 if test -z "$ac_cpp_err"; then
2974 # Broken: success on invalid input.
2977 echo "$as_me: failed program was:" >&5
2978 cat "conftest.$ac_ext" >&5
2979 # Passes both tests.
2983 rm -f conftest.err "conftest.$ac_ext"
2986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987 rm -f conftest.err "conftest.$ac_ext"
2988 if $ac_preproc_ok; then
2991 { { echo "$as_me:2991: error: C preprocessor \"$CPP\" fails sanity check" >&5
2992 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2993 { (exit 1); exit 1; }; }
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2999 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 ac_main_return="return"
3003 if test $ac_cv_c_compiler_gnu = yes; then
3004 echo "$as_me:3004: checking whether $CC needs -traditional" >&5
3005 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3006 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 ac_pattern="Autoconf.*'x'"
3010 cat >"conftest.$ac_ext" <<_ACEOF
3011 #line 3011 "configure"
3012 #include "confdefs.h"
3014 int Autoconf = TIOCGETP;
3016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3017 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3018 ac_cv_prog_gcc_traditional=yes
3020 ac_cv_prog_gcc_traditional=no
3024 if test $ac_cv_prog_gcc_traditional = no; then
3025 cat >"conftest.$ac_ext" <<_ACEOF
3026 #line 3026 "configure"
3027 #include "confdefs.h"
3029 int Autoconf = TCGETA;
3031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3032 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3033 ac_cv_prog_gcc_traditional=yes
3039 echo "$as_me:3039: result: $ac_cv_prog_gcc_traditional" >&5
3040 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3041 if test $ac_cv_prog_gcc_traditional = yes; then
3042 CC="$CC -traditional"
3046 echo "$as_me:3046: checking whether $CC understands -c and -o together" >&5
3047 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3048 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 cat > conftest.$ac_ext <<CF_EOF
3055 ${cf_cv_main_return:-return}(0);
3058 # We do the test twice because some compilers refuse to overwrite an
3059 # existing .o file with -o, though they will create one.
3060 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3061 if { (eval echo "$as_me:3061: \"$ac_try\"") >&5
3064 echo "$as_me:3064: \$? = $ac_status" >&5
3065 (exit "$ac_status"); } &&
3066 test -f conftest2.$ac_objext && { (eval echo "$as_me:3066: \"$ac_try\"") >&5
3069 echo "$as_me:3069: \$? = $ac_status" >&5
3070 (exit "$ac_status"); };
3072 eval cf_cv_prog_CC_c_o=yes
3074 eval cf_cv_prog_CC_c_o=no
3079 if test "$cf_cv_prog_CC_c_o" = yes; then
3080 echo "$as_me:3080: result: yes" >&5
3081 echo "${ECHO_T}yes" >&6
3083 echo "$as_me:3083: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3087 if test "$cross_compiling" = yes ; then
3090 case "$cf_cv_system_name" in
3091 (dragonfly*|mirbsd*|freebsd*)
3092 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3094 (*) LDPATH=$PATH:/sbin:/usr/sbin
3095 # Extract the first word of "ldconfig", so it can be a program name with args.
3096 set dummy ldconfig; ac_word=$2
3097 echo "$as_me:3097: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3107 ac_save_IFS=$IFS; IFS=$ac_path_separator
3109 for ac_dir in $ac_dummy; do
3111 test -z "$ac_dir" && ac_dir=.
3112 if $as_executable_p "$ac_dir/$ac_word"; then
3113 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3114 echo "$as_me:3114: found $ac_dir/$ac_word" >&5
3122 LDCONFIG=$ac_cv_path_LDCONFIG
3124 if test -n "$LDCONFIG"; then
3125 echo "$as_me:3125: result: $LDCONFIG" >&5
3126 echo "${ECHO_T}$LDCONFIG" >&6
3128 echo "$as_me:3128: result: no" >&5
3129 echo "${ECHO_T}no" >&6
3136 echo "$as_me:3136: checking if you want to ensure bool is consistent with C++" >&5
3137 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3139 # Check whether --with-cxx or --without-cxx was given.
3140 if test "${with_cxx+set}" = set; then
3142 cf_with_cxx=$withval
3146 echo "$as_me:3146: result: $cf_with_cxx" >&5
3147 echo "${ECHO_T}$cf_with_cxx" >&6
3148 if test "X$cf_with_cxx" = Xno ; then
3152 # with autoconf 2.13, we can change the error to a warning:
3154 ac_cpp='$CXXCPP $CPPFLAGS'
3155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3156 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3158 ac_main_return="return"
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164 echo "$as_me:3164: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_CXX+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$CXX"; then
3170 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3172 ac_save_IFS=$IFS; IFS=$ac_path_separator
3174 for ac_dir in $ac_dummy; do
3176 test -z "$ac_dir" && ac_dir=.
3177 $as_executable_p "$ac_dir/$ac_word" || continue
3178 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3179 echo "$as_me:3179: found $ac_dir/$ac_word" >&5
3186 if test -n "$CXX"; then
3187 echo "$as_me:3187: result: $CXX" >&5
3188 echo "${ECHO_T}$CXX" >&6
3190 echo "$as_me:3190: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3194 test -n "$CXX" && break
3197 if test -z "$CXX"; then
3199 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 echo "$as_me:3203: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -n "$ac_ct_CXX"; then
3209 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3211 ac_save_IFS=$IFS; IFS=$ac_path_separator
3213 for ac_dir in $ac_dummy; do
3215 test -z "$ac_dir" && ac_dir=.
3216 $as_executable_p "$ac_dir/$ac_word" || continue
3217 ac_cv_prog_ac_ct_CXX="$ac_prog"
3218 echo "$as_me:3218: found $ac_dir/$ac_word" >&5
3224 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3225 if test -n "$ac_ct_CXX"; then
3226 echo "$as_me:3226: result: $ac_ct_CXX" >&5
3227 echo "${ECHO_T}$ac_ct_CXX" >&6
3229 echo "$as_me:3229: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3233 test -n "$ac_ct_CXX" && break
3235 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3240 # Provide some information about the compiler.
3241 echo "$as_me:3241:" \
3242 "checking for C++ compiler version" >&5
3243 ac_compiler=`set X $ac_compile; echo $2`
3244 { (eval echo "$as_me:3244: \"$ac_compiler --version </dev/null >&5\"") >&5
3245 (eval $ac_compiler --version </dev/null >&5) 2>&5
3247 echo "$as_me:3247: \$? = $ac_status" >&5
3248 (exit "$ac_status"); }
3249 { (eval echo "$as_me:3249: \"$ac_compiler -v </dev/null >&5\"") >&5
3250 (eval $ac_compiler -v </dev/null >&5) 2>&5
3252 echo "$as_me:3252: \$? = $ac_status" >&5
3253 (exit "$ac_status"); }
3254 { (eval echo "$as_me:3254: \"$ac_compiler -V </dev/null >&5\"") >&5
3255 (eval $ac_compiler -V </dev/null >&5) 2>&5
3257 echo "$as_me:3257: \$? = $ac_status" >&5
3258 (exit "$ac_status"); }
3260 echo "$as_me:3260: checking whether we are using the GNU C++ compiler" >&5
3261 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 cat >"conftest.$ac_ext" <<_ACEOF
3266 #line 3266 "configure"
3267 #include "confdefs.h"
3280 rm -f "conftest.$ac_objext"
3281 if { (eval echo "$as_me:3281: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>&5
3284 echo "$as_me:3284: \$? = $ac_status" >&5
3285 (exit "$ac_status"); } &&
3286 { ac_try='test -s "conftest.$ac_objext"'
3287 { (eval echo "$as_me:3287: \"$ac_try\"") >&5
3290 echo "$as_me:3290: \$? = $ac_status" >&5
3291 (exit "$ac_status"); }; }; then
3294 echo "$as_me: failed program was:" >&5
3295 cat "conftest.$ac_ext" >&5
3298 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3302 echo "$as_me:3302: result: $ac_cv_cxx_compiler_gnu" >&5
3303 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3304 GXX=`test $ac_compiler_gnu = yes && echo yes`
3305 ac_test_CXXFLAGS=${CXXFLAGS+set}
3306 ac_save_CXXFLAGS=$CXXFLAGS
3308 echo "$as_me:3308: checking whether $CXX accepts -g" >&5
3309 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3310 if test "${ac_cv_prog_cxx_g+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 cat >"conftest.$ac_ext" <<_ACEOF
3314 #line 3314 "configure"
3315 #include "confdefs.h"
3325 rm -f "conftest.$ac_objext"
3326 if { (eval echo "$as_me:3326: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>&5
3329 echo "$as_me:3329: \$? = $ac_status" >&5
3330 (exit "$ac_status"); } &&
3331 { ac_try='test -s "conftest.$ac_objext"'
3332 { (eval echo "$as_me:3332: \"$ac_try\"") >&5
3335 echo "$as_me:3335: \$? = $ac_status" >&5
3336 (exit "$ac_status"); }; }; then
3337 ac_cv_prog_cxx_g=yes
3339 echo "$as_me: failed program was:" >&5
3340 cat "conftest.$ac_ext" >&5
3343 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3345 echo "$as_me:3345: result: $ac_cv_prog_cxx_g" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3347 if test "$ac_test_CXXFLAGS" = set; then
3348 CXXFLAGS=$ac_save_CXXFLAGS
3349 elif test $ac_cv_prog_cxx_g = yes; then
3350 if test "$GXX" = yes; then
3356 if test "$GXX" = yes; then
3362 for ac_declaration in \
3364 '#include <stdlib.h>' \
3365 'extern "C" void std::exit (int) throw (); using std::exit;' \
3366 'extern "C" void std::exit (int); using std::exit;' \
3367 'extern "C" void exit (int) throw ();' \
3368 'extern "C" void exit (int);' \
3371 cat >"conftest.$ac_ext" <<_ACEOF
3372 #line 3372 "configure"
3373 #include "confdefs.h"
3384 rm -f "conftest.$ac_objext"
3385 if { (eval echo "$as_me:3385: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>&5
3388 echo "$as_me:3388: \$? = $ac_status" >&5
3389 (exit "$ac_status"); } &&
3390 { ac_try='test -s "conftest.$ac_objext"'
3391 { (eval echo "$as_me:3391: \"$ac_try\"") >&5
3394 echo "$as_me:3394: \$? = $ac_status" >&5
3395 (exit "$ac_status"); }; }; then
3398 echo "$as_me: failed program was:" >&5
3399 cat "conftest.$ac_ext" >&5
3402 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3403 cat >"conftest.$ac_ext" <<_ACEOF
3404 #line 3404 "configure"
3405 #include "confdefs.h"
3415 rm -f "conftest.$ac_objext"
3416 if { (eval echo "$as_me:3416: \"$ac_compile\"") >&5
3417 (eval $ac_compile) 2>&5
3419 echo "$as_me:3419: \$? = $ac_status" >&5
3420 (exit "$ac_status"); } &&
3421 { ac_try='test -s "conftest.$ac_objext"'
3422 { (eval echo "$as_me:3422: \"$ac_try\"") >&5
3425 echo "$as_me:3425: \$? = $ac_status" >&5
3426 (exit "$ac_status"); }; }; then
3429 echo "$as_me: failed program was:" >&5
3430 cat "conftest.$ac_ext" >&5
3432 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3435 if test -n "$ac_declaration"; then
3436 echo '#ifdef __cplusplus' >>confdefs.h
3437 echo "$ac_declaration" >>confdefs.h
3438 echo '#endif' >>confdefs.h
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3444 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 ac_main_return="return"
3449 ac_cpp='$CXXCPP $CPPFLAGS'
3450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3451 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3453 ac_main_return="return"
3455 if test "x$cf_with_cxx" != xno
3457 # Several of the C++ configurations do not work, particularly when
3458 # cross-compiling (20140913 -TD)
3459 echo "$as_me:3459: checking if $CXX works" >&5
3460 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3462 save_CPPFLAGS="$CPPFLAGS"
3463 eval cf_includedir=${includedir}
3464 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3466 cat >"conftest.$ac_ext" <<_ACEOF
3467 #line 3467 "configure"
3468 #include "confdefs.h"
3477 printf("Hello world!\n")
3483 rm -f "conftest.$ac_objext"
3484 if { (eval echo "$as_me:3484: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3487 echo "$as_me:3487: \$? = $ac_status" >&5
3488 (exit "$ac_status"); } &&
3489 { ac_try='test -s "conftest.$ac_objext"'
3490 { (eval echo "$as_me:3490: \"$ac_try\"") >&5
3493 echo "$as_me:3493: \$? = $ac_status" >&5
3494 (exit "$ac_status"); }; }; then
3497 echo "$as_me: failed program was:" >&5
3498 cat "conftest.$ac_ext" >&5
3501 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3502 CPPFLAGS="$save_CPPFLAGS"
3504 echo "$as_me:3504: result: $cf_cxx_works" >&5
3505 echo "${ECHO_T}$cf_cxx_works" >&6
3506 if test "x$cf_cxx_works" = xno
3508 { echo "$as_me:3508: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3509 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3510 cf_with_cxx=no; CXX=""; GXX="";
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3516 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 ac_main_return="return"
3520 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3521 if test "$CXX" = "g++" ; then
3522 # Extract the first word of "g++", so it can be a program name with args.
3523 set dummy g++; ac_word=$2
3524 echo "$as_me:3524: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_path_CXX+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3534 ac_save_IFS=$IFS; IFS=$ac_path_separator
3536 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if $as_executable_p "$ac_dir/$ac_word"; then
3540 ac_cv_path_CXX="$ac_dir/$ac_word"
3541 echo "$as_me:3541: found $ac_dir/$ac_word" >&5
3551 if test -n "$CXX"; then
3552 echo "$as_me:3552: result: $CXX" >&5
3553 echo "${ECHO_T}$CXX" >&6
3555 echo "$as_me:3555: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3562 { echo "$as_me:3562: WARNING: You don't have any C++ compiler, too bad" >&5
3563 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3564 cf_with_cxx=no; CXX=""; GXX="";
3570 if test "$GXX" = yes; then
3571 echo "$as_me:3571: checking version of ${CXX:-g++}" >&5
3572 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3573 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3574 if test -z "$GXX_VERSION"
3579 echo "$as_me:3579: result: $GXX_VERSION" >&5
3580 echo "${ECHO_T}$GXX_VERSION" >&6
3583 case "$GXX_VERSION" in
3587 { echo "$as_me:3587: WARNING: templates do not work" >&5
3588 echo "$as_me: WARNING: templates do not work" >&2;}
3592 echo "$as_me:3592: checking if you want to build C++ binding and demo" >&5
3593 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3595 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3596 if test "${with_cxx_binding+set}" = set; then
3597 withval="$with_cxx_binding"
3598 cf_with_cxx_binding=$withval
3600 cf_with_cxx_binding=$cf_with_cxx
3602 echo "$as_me:3602: result: $cf_with_cxx_binding" >&5
3603 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3605 echo "$as_me:3605: checking if you want to build with Ada" >&5
3606 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3607 echo "$as_me:3607: result: $cf_with_ada" >&5
3608 echo "${ECHO_T}$cf_with_ada" >&6
3610 echo "$as_me:3610: checking if you want to install terminal database" >&5
3611 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3613 # Check whether --enable-db-install or --disable-db-install was given.
3614 if test "${enable_db_install+set}" = set; then
3615 enableval="$enable_db_install"
3616 cf_with_db_install=$enableval
3618 cf_with_db_install=yes
3620 echo "$as_me:3620: result: $cf_with_db_install" >&5
3621 echo "${ECHO_T}$cf_with_db_install" >&6
3623 echo "$as_me:3623: checking if you want to install manpages" >&5
3624 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3626 # Check whether --with-manpages or --without-manpages was given.
3627 if test "${with_manpages+set}" = set; then
3628 withval="$with_manpages"
3629 cf_with_manpages=$withval
3631 cf_with_manpages=yes
3633 echo "$as_me:3633: result: $cf_with_manpages" >&5
3634 echo "${ECHO_T}$cf_with_manpages" >&6
3636 echo "$as_me:3636: checking if you want to build programs such as tic" >&5
3637 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3639 # Check whether --with-progs or --without-progs was given.
3640 if test "${with_progs+set}" = set; then
3641 withval="$with_progs"
3642 cf_with_progs=$withval
3646 echo "$as_me:3646: result: $cf_with_progs" >&5
3647 echo "${ECHO_T}$cf_with_progs" >&6
3649 if test -f "$srcdir/tack/tack.h" ; then
3650 if test "x$cross_compiling" = xyes ; then
3651 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3653 echo "${as_me:-configure}:3653: testing ignoring tack because we are cross-compiling ..." 1>&5
3657 echo "$as_me:3657: checking if you want to build the tack program" >&5
3658 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3660 # Check whether --with-tack or --without-tack was given.
3661 if test "${with_tack+set}" = set; then
3662 withval="$with_tack"
3663 cf_with_tack=$withval
3665 cf_with_tack=$cf_with_progs
3667 echo "$as_me:3667: result: $cf_with_tack" >&5
3668 echo "${ECHO_T}$cf_with_tack" >&6
3674 echo "$as_me:3674: checking if you want to build test-programs" >&5
3675 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3677 # Check whether --with-tests or --without-tests was given.
3678 if test "${with_tests+set}" = set; then
3679 withval="$with_tests"
3680 cf_with_tests=$withval
3684 echo "$as_me:3684: result: $cf_with_tests" >&5
3685 echo "${ECHO_T}$cf_with_tests" >&6
3687 echo "$as_me:3687: checking if you wish to install curses.h" >&5
3688 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3690 # Check whether --with-curses-h or --without-curses-h was given.
3691 if test "${with_curses_h+set}" = set; then
3692 withval="$with_curses_h"
3693 with_curses_h=$withval
3697 echo "$as_me:3697: result: $with_curses_h" >&5
3698 echo "${ECHO_T}$with_curses_h" >&6
3700 modules_to_build="ncurses"
3701 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3702 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3703 modules_to_build="$modules_to_build panel menu form"
3705 test "$program_prefix" != NONE &&
3706 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3707 # Use a double $ so make ignores it.
3708 test "$program_suffix" != NONE &&
3709 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3710 # Double any \ or $. echo might interpret backslashes.
3711 # By default was `s,x,x', remove it if useless.
3712 cat <<\_ACEOF >conftest.sed
3713 s/[\\$]/&&/g;s/;s,x,x,$//
3715 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3718 for ac_prog in mawk gawk nawk awk
3720 # Extract the first word of "$ac_prog", so it can be a program name with args.
3721 set dummy $ac_prog; ac_word=$2
3722 echo "$as_me:3722: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3724 if test "${ac_cv_prog_AWK+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 if test -n "$AWK"; then
3728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3730 ac_save_IFS=$IFS; IFS=$ac_path_separator
3732 for ac_dir in $ac_dummy; do
3734 test -z "$ac_dir" && ac_dir=.
3735 $as_executable_p "$ac_dir/$ac_word" || continue
3736 ac_cv_prog_AWK="$ac_prog"
3737 echo "$as_me:3737: found $ac_dir/$ac_word" >&5
3744 if test -n "$AWK"; then
3745 echo "$as_me:3745: result: $AWK" >&5
3746 echo "${ECHO_T}$AWK" >&6
3748 echo "$as_me:3748: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3752 test -n "$AWK" && break
3755 test -z "$AWK" && { { echo "$as_me:3755: error: No awk program found" >&5
3756 echo "$as_me: error: No awk program found" >&2;}
3757 { (exit 1); exit 1; }; }
3759 # Find a good install program. We prefer a C program (faster),
3760 # so one script is as good as another. But avoid the broken or
3761 # incompatible versions:
3762 # SysV /etc/install, /usr/sbin/install
3763 # SunOS /usr/etc/install
3764 # IRIX /sbin/install
3766 # AmigaOS /C/install, which installs bootblocks on floppy discs
3767 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3768 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3769 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3770 # ./install, which can be erroneously created by make from ./install.sh.
3771 echo "$as_me:3771: checking for a BSD compatible install" >&5
3772 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3773 if test -z "$INSTALL"; then
3774 if test "${ac_cv_path_install+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 ac_save_IFS=$IFS; IFS=$ac_path_separator
3778 for ac_dir in $PATH; do
3780 # Account for people who put trailing slashes in PATH elements.
3782 / | ./ | .// | /cC/* \
3783 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3786 # OSF1 and SCO ODT 3.0 have their own names for install.
3787 # Don't use installbsd from OSF since it installs stuff as root
3789 for ac_prog in ginstall scoinst install; do
3790 if $as_executable_p "$ac_dir/$ac_prog"; then
3791 if test $ac_prog = install &&
3792 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3793 # AIX install. It has an incompatible calling convention.
3795 elif test $ac_prog = install &&
3796 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3797 # program-specific install script used by HP pwplus--don't use.
3800 ac_cv_path_install="$ac_dir/$ac_prog -c"
3810 if test "${ac_cv_path_install+set}" = set; then
3811 INSTALL=$ac_cv_path_install
3813 # As a last resort, use the slow shell script. We don't cache a
3814 # path for INSTALL within a source directory, because that will
3815 # break other packages using the cache if that directory is
3816 # removed, or if the path is relative.
3817 INSTALL=$ac_install_sh
3820 echo "$as_me:3820: result: $INSTALL" >&5
3821 echo "${ECHO_T}$INSTALL" >&6
3823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3824 # It thinks the first close brace ends the variable substitution.
3825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3835 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3836 test -z "$cf_dir" && cf_dir=.
3837 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3841 for ac_prog in lint cppcheck splint
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $ac_prog; ac_word=$2
3845 echo "$as_me:3845: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_LINT+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test -n "$LINT"; then
3851 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3853 ac_save_IFS=$IFS; IFS=$ac_path_separator
3855 for ac_dir in $ac_dummy; do
3857 test -z "$ac_dir" && ac_dir=.
3858 $as_executable_p "$ac_dir/$ac_word" || continue
3859 ac_cv_prog_LINT="$ac_prog"
3860 echo "$as_me:3860: found $ac_dir/$ac_word" >&5
3866 LINT=$ac_cv_prog_LINT
3867 if test -n "$LINT"; then
3868 echo "$as_me:3868: result: $LINT" >&5
3869 echo "${ECHO_T}$LINT" >&6
3871 echo "$as_me:3871: result: no" >&5
3872 echo "${ECHO_T}no" >&6
3875 test -n "$LINT" && break
3879 (xcppcheck|x*/cppcheck)
3880 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3884 echo "$as_me:3884: checking whether ln -s works" >&5
3885 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3887 if test "$LN_S" = "ln -s"; then
3888 echo "$as_me:3888: result: yes" >&5
3889 echo "${ECHO_T}yes" >&6
3891 echo "$as_me:3891: result: no, using $LN_S" >&5
3892 echo "${ECHO_T}no, using $LN_S" >&6
3895 echo "$as_me:3895: checking if $LN_S -f options work" >&5
3896 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3898 rm -f conf$$.src conf$$dst
3900 echo first >conf$$.src
3901 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3906 rm -f conf$$.dst conf$$src
3907 echo "$as_me:3907: result: $cf_prog_ln_sf" >&5
3908 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3910 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3912 echo "$as_me:3912: checking for long file names" >&5
3913 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3914 if test "${ac_cv_sys_long_file_names+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 ac_cv_sys_long_file_names=yes
3918 # Test for long file names in all the places we know might matter:
3919 # . the current directory, where building will happen
3920 # $prefix/lib where we will be installing things
3921 # $exec_prefix/lib likewise
3922 # eval it to expand exec_prefix.
3923 # $TMPDIR if set, where it might want to write temporary files
3924 # if $TMPDIR is not set:
3925 # /tmp where it might want to write temporary files
3928 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3931 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3933 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3934 test -d "$ac_dir" || continue
3935 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3936 ac_xdir=$ac_dir/cf$$
3937 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3938 ac_tf1=$ac_xdir/conftest9012345
3939 ac_tf2=$ac_xdir/conftest9012346
3940 (echo 1 >"$ac_tf1") 2>/dev/null
3941 (echo 2 >"$ac_tf2") 2>/dev/null
3942 ac_val=`cat "$ac_tf1" 2>/dev/null`
3943 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3944 ac_cv_sys_long_file_names=no
3945 rm -rf "$ac_xdir" 2>/dev/null
3948 rm -rf "$ac_xdir" 2>/dev/null
3951 echo "$as_me:3951: result: $ac_cv_sys_long_file_names" >&5
3952 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3953 if test "$ac_cv_sys_long_file_names" = yes; then
3955 cat >>confdefs.h <<\EOF
3956 #define HAVE_LONG_FILE_NAMES 1
3961 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3962 # of package conflict.
3965 # Check whether --with-config-suffix or --without-config-suffix was given.
3966 if test "${with_config_suffix+set}" = set; then
3967 withval="$with_config_suffix"
3970 { echo "$as_me:3970: WARNING: expected a value for config-suffix option" >&5
3971 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3973 (*) cf_config_suffix="$withval"
3978 # If we find pkg-config, check if we should install the ".pc" files.
3980 echo "$as_me:3980: checking if you want to use pkg-config" >&5
3981 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3983 # Check whether --with-pkg-config or --without-pkg-config was given.
3984 if test "${with_pkg_config+set}" = set; then
3985 withval="$with_pkg_config"
3986 cf_pkg_config=$withval
3990 echo "$as_me:3990: result: $cf_pkg_config" >&5
3991 echo "${ECHO_T}$cf_pkg_config" >&6
3993 case "$cf_pkg_config" in
3999 if test -n "$ac_tool_prefix"; then
4000 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4001 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4002 echo "$as_me:4002: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4012 ac_save_IFS=$IFS; IFS=$ac_path_separator
4014 for ac_dir in $ac_dummy; do
4016 test -z "$ac_dir" && ac_dir=.
4017 if $as_executable_p "$ac_dir/$ac_word"; then
4018 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4019 echo "$as_me:4019: found $ac_dir/$ac_word" >&5
4027 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4029 if test -n "$PKG_CONFIG"; then
4030 echo "$as_me:4030: result: $PKG_CONFIG" >&5
4031 echo "${ECHO_T}$PKG_CONFIG" >&6
4033 echo "$as_me:4033: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4038 if test -z "$ac_cv_path_PKG_CONFIG"; then
4039 ac_pt_PKG_CONFIG=$PKG_CONFIG
4040 # Extract the first word of "pkg-config", so it can be a program name with args.
4041 set dummy pkg-config; ac_word=$2
4042 echo "$as_me:4042: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 case $ac_pt_PKG_CONFIG in
4049 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4052 ac_save_IFS=$IFS; IFS=$ac_path_separator
4054 for ac_dir in $ac_dummy; do
4056 test -z "$ac_dir" && ac_dir=.
4057 if $as_executable_p "$ac_dir/$ac_word"; then
4058 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4059 echo "$as_me:4059: found $ac_dir/$ac_word" >&5
4064 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4068 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4070 if test -n "$ac_pt_PKG_CONFIG"; then
4071 echo "$as_me:4071: result: $ac_pt_PKG_CONFIG" >&5
4072 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4074 echo "$as_me:4074: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4078 PKG_CONFIG=$ac_pt_PKG_CONFIG
4080 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4089 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4090 if test "$PKG_CONFIG" != none ; then
4092 if test "x$prefix" != xNONE; then
4093 cf_path_syntax="$prefix"
4095 cf_path_syntax="$ac_default_prefix"
4098 case ".$PKG_CONFIG" in
4103 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4105 (.\$\{*prefix\}*|.\$\{*dir\}*)
4106 eval PKG_CONFIG="$PKG_CONFIG"
4107 case ".$PKG_CONFIG" in
4109 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4114 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4117 { { echo "$as_me:4117: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4118 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4119 { (exit 1); exit 1; }; }
4123 elif test "x$cf_pkg_config" != xno ; then
4124 { echo "$as_me:4124: WARNING: pkg-config is not installed" >&5
4125 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4128 case "$PKG_CONFIG" in
4130 echo "$as_me:4130: checking for pkg-config library directory" >&5
4131 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4134 echo "$as_me:4134: checking for $PKG_CONFIG library directory" >&5
4135 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4139 PKG_CONFIG_LIBDIR=no
4141 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4142 if test "${with_pkg_config_libdir+set}" = set; then
4143 withval="$with_pkg_config_libdir"
4144 PKG_CONFIG_LIBDIR=$withval
4146 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
4149 case x$PKG_CONFIG_LIBDIR in
4153 # Look for the library directory using the same prefix as the executable
4154 if test "x$PKG_CONFIG" = xnone
4158 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
4161 # If you don't like using the default architecture, you have to specify the
4162 # intended library directory and corresponding compiler/linker options.
4164 # This case allows for Debian's 2014-flavor of multiarch, along with the
4165 # most common variations before that point. Some other variants spell the
4166 # directory differently, e.g., "pkg-config", and put it in unusual places.
4167 # pkg-config has always been poorly standardized, which is ironic...
4168 case x`(arch) 2>/dev/null` in
4171 $cf_path/lib/*64-linux-gnu \
4179 $cf_path/lib/*-linux-gnu \
4187 test -n "$verbose" && echo " list..." 1>&6
4189 echo "${as_me:-configure}:4189: testing list... ..." 1>&5
4191 for cf_config in $cf_search_path
4193 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
4195 echo "${as_me:-configure}:4195: testing checking $cf_config/pkgconfig ..." 1>&5
4197 if test -d "$cf_config/pkgconfig"
4199 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
4200 echo "$as_me:4200: checking done" >&5
4201 echo $ECHO_N "checking done... $ECHO_C" >&6
4210 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
4211 echo "$as_me:4211: result: $PKG_CONFIG_LIBDIR" >&5
4212 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4215 if test "x$PKG_CONFIG" != xnone
4217 echo "$as_me:4217: checking if we should install .pc files for $PKG_CONFIG" >&5
4218 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4220 echo "$as_me:4220: checking if we should install .pc files" >&5
4221 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4224 # Check whether --enable-pc-files or --disable-pc-files was given.
4225 if test "${enable_pc_files+set}" = set; then
4226 enableval="$enable_pc_files"
4227 enable_pc_files=$enableval
4231 echo "$as_me:4231: result: $enable_pc_files" >&5
4232 echo "${ECHO_T}$enable_pc_files" >&6
4234 if test "x$enable_pc_files" != xno
4237 case "x$PKG_CONFIG_LIBDIR" in
4239 { echo "$as_me:4239: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4240 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4244 if test "x$prefix" != xNONE; then
4245 cf_path_syntax="$prefix"
4247 cf_path_syntax="$ac_default_prefix"
4250 case ".$PKG_CONFIG_LIBDIR" in
4255 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4257 (.\$\{*prefix\}*|.\$\{*dir\}*)
4258 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4259 case ".$PKG_CONFIG_LIBDIR" in
4261 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4266 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4269 { { echo "$as_me:4269: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4270 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4271 { (exit 1); exit 1; }; }
4281 if test -z "$MAKE_PC_FILES"
4283 echo "$as_me:4283: checking for suffix to add to pc-files" >&5
4284 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4286 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4287 if test "${with_pc_suffix+set}" = set; then
4288 withval="$with_pc_suffix"
4293 (*) PC_MODULE_SUFFIX="$withval"
4297 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4298 echo "$as_me:4298: result: $PC_MODULE_SUFFIX" >&5
4299 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4300 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4304 echo "$as_me:4304: checking if we should assume mixed-case filenames" >&5
4305 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4307 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4308 if test "${enable_mixed_case+set}" = set; then
4309 enableval="$enable_mixed_case"
4310 enable_mixedcase=$enableval
4312 enable_mixedcase=auto
4314 echo "$as_me:4314: result: $enable_mixedcase" >&5
4315 echo "${ECHO_T}$enable_mixedcase" >&6
4316 if test "$enable_mixedcase" = "auto" ; then
4318 echo "$as_me:4318: checking if filesystem supports mixed-case filenames" >&5
4319 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4320 if test "${cf_cv_mixedcase+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test "$cross_compiling" = yes ; then
4325 case "$target_alias" in
4326 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4334 rm -f conftest CONFTEST
4336 if test -f CONFTEST ; then
4341 rm -f conftest CONFTEST
4345 echo "$as_me:4345: result: $cf_cv_mixedcase" >&5
4346 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4347 test "$cf_cv_mixedcase" = yes &&
4348 cat >>confdefs.h <<\EOF
4349 #define MIXEDCASE_FILENAMES 1
4353 cf_cv_mixedcase=$enable_mixedcase
4354 if test "x$enable_mixedcase" = "xyes" ; then
4356 cat >>confdefs.h <<\EOF
4357 #define MIXEDCASE_FILENAMES 1
4363 # do this after mixed-case option (tags/TAGS is not as important as tic).
4364 echo "$as_me:4364: checking whether ${MAKE-make} sets \${MAKE}" >&5
4365 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4366 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4367 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 cat >conftest.make <<\EOF
4372 @echo 'ac_maketemp="${MAKE}"'
4374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4375 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4376 if test -n "$ac_maketemp"; then
4377 eval ac_cv_prog_make_${ac_make}_set=yes
4379 eval ac_cv_prog_make_${ac_make}_set=no
4383 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4384 echo "$as_me:4384: result: yes" >&5
4385 echo "${ECHO_T}yes" >&6
4388 echo "$as_me:4388: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4390 SET_MAKE="MAKE=${MAKE-make}"
4393 for ac_prog in exctags ctags
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 echo "$as_me:4397: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_CTAGS+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$CTAGS"; then
4403 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4405 ac_save_IFS=$IFS; IFS=$ac_path_separator
4407 for ac_dir in $ac_dummy; do
4409 test -z "$ac_dir" && ac_dir=.
4410 $as_executable_p "$ac_dir/$ac_word" || continue
4411 ac_cv_prog_CTAGS="$ac_prog"
4412 echo "$as_me:4412: found $ac_dir/$ac_word" >&5
4418 CTAGS=$ac_cv_prog_CTAGS
4419 if test -n "$CTAGS"; then
4420 echo "$as_me:4420: result: $CTAGS" >&5
4421 echo "${ECHO_T}$CTAGS" >&6
4423 echo "$as_me:4423: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4427 test -n "$CTAGS" && break
4430 for ac_prog in exetags etags
4432 # Extract the first word of "$ac_prog", so it can be a program name with args.
4433 set dummy $ac_prog; ac_word=$2
4434 echo "$as_me:4434: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_ETAGS+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$ETAGS"; then
4440 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4442 ac_save_IFS=$IFS; IFS=$ac_path_separator
4444 for ac_dir in $ac_dummy; do
4446 test -z "$ac_dir" && ac_dir=.
4447 $as_executable_p "$ac_dir/$ac_word" || continue
4448 ac_cv_prog_ETAGS="$ac_prog"
4449 echo "$as_me:4449: found $ac_dir/$ac_word" >&5
4455 ETAGS=$ac_cv_prog_ETAGS
4456 if test -n "$ETAGS"; then
4457 echo "$as_me:4457: result: $ETAGS" >&5
4458 echo "${ECHO_T}$ETAGS" >&6
4460 echo "$as_me:4460: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4464 test -n "$ETAGS" && break
4467 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4468 set dummy ${CTAGS:-ctags}; ac_word=$2
4469 echo "$as_me:4469: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if test -n "$MAKE_LOWER_TAGS"; then
4475 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4477 ac_save_IFS=$IFS; IFS=$ac_path_separator
4479 for ac_dir in $ac_dummy; do
4481 test -z "$ac_dir" && ac_dir=.
4482 $as_executable_p "$ac_dir/$ac_word" || continue
4483 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4484 echo "$as_me:4484: found $ac_dir/$ac_word" >&5
4488 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4491 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4492 if test -n "$MAKE_LOWER_TAGS"; then
4493 echo "$as_me:4493: result: $MAKE_LOWER_TAGS" >&5
4494 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4496 echo "$as_me:4496: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4500 if test "$cf_cv_mixedcase" = yes ; then
4501 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4502 set dummy ${ETAGS:-etags}; ac_word=$2
4503 echo "$as_me:4503: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$MAKE_UPPER_TAGS"; then
4509 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4511 ac_save_IFS=$IFS; IFS=$ac_path_separator
4513 for ac_dir in $ac_dummy; do
4515 test -z "$ac_dir" && ac_dir=.
4516 $as_executable_p "$ac_dir/$ac_word" || continue
4517 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4518 echo "$as_me:4518: found $ac_dir/$ac_word" >&5
4522 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4525 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4526 if test -n "$MAKE_UPPER_TAGS"; then
4527 echo "$as_me:4527: result: $MAKE_UPPER_TAGS" >&5
4528 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4530 echo "$as_me:4530: result: no" >&5
4531 echo "${ECHO_T}no" >&6
4538 if test "$MAKE_UPPER_TAGS" = yes ; then
4544 if test "$MAKE_LOWER_TAGS" = yes ; then
4550 echo "$as_me:4550: checking for makeflags variable" >&5
4551 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4552 if test "${cf_cv_makeflags+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4559 cat >cf_makeflags.tmp <<CF_EOF
4562 @ echo '.$cf_option'
4564 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4565 case "$cf_result" in
4567 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4568 case "$cf_result" in
4569 (.*CC=*) cf_cv_makeflags=
4571 (*) cf_cv_makeflags=$cf_option
4580 echo "${as_me:-configure}:4580: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4585 rm -f cf_makeflags.tmp
4588 echo "$as_me:4588: result: $cf_cv_makeflags" >&5
4589 echo "${ECHO_T}$cf_cv_makeflags" >&6
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4594 echo "$as_me:4594: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4596 if test "${ac_cv_prog_RANLIB+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 if test -n "$RANLIB"; then
4600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4602 ac_save_IFS=$IFS; IFS=$ac_path_separator
4604 for ac_dir in $ac_dummy; do
4606 test -z "$ac_dir" && ac_dir=.
4607 $as_executable_p "$ac_dir/$ac_word" || continue
4608 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4609 echo "$as_me:4609: found $ac_dir/$ac_word" >&5
4615 RANLIB=$ac_cv_prog_RANLIB
4616 if test -n "$RANLIB"; then
4617 echo "$as_me:4617: result: $RANLIB" >&5
4618 echo "${ECHO_T}$RANLIB" >&6
4620 echo "$as_me:4620: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4625 if test -z "$ac_cv_prog_RANLIB"; then
4626 ac_ct_RANLIB=$RANLIB
4627 # Extract the first word of "ranlib", so it can be a program name with args.
4628 set dummy ranlib; ac_word=$2
4629 echo "$as_me:4629: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4631 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -n "$ac_ct_RANLIB"; then
4635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4637 ac_save_IFS=$IFS; IFS=$ac_path_separator
4639 for ac_dir in $ac_dummy; do
4641 test -z "$ac_dir" && ac_dir=.
4642 $as_executable_p "$ac_dir/$ac_word" || continue
4643 ac_cv_prog_ac_ct_RANLIB="ranlib"
4644 echo "$as_me:4644: found $ac_dir/$ac_word" >&5
4648 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4651 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4652 if test -n "$ac_ct_RANLIB"; then
4653 echo "$as_me:4653: result: $ac_ct_RANLIB" >&5
4654 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4656 echo "$as_me:4656: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4660 RANLIB=$ac_ct_RANLIB
4662 RANLIB="$ac_cv_prog_RANLIB"
4665 if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}ld; ac_word=$2
4668 echo "$as_me:4668: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4670 if test "${ac_cv_prog_LD+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$LD"; then
4674 ac_cv_prog_LD="$LD" # Let the user override the test.
4676 ac_save_IFS=$IFS; IFS=$ac_path_separator
4678 for ac_dir in $ac_dummy; do
4680 test -z "$ac_dir" && ac_dir=.
4681 $as_executable_p "$ac_dir/$ac_word" || continue
4682 ac_cv_prog_LD="${ac_tool_prefix}ld"
4683 echo "$as_me:4683: found $ac_dir/$ac_word" >&5
4690 if test -n "$LD"; then
4691 echo "$as_me:4691: result: $LD" >&5
4692 echo "${ECHO_T}$LD" >&6
4694 echo "$as_me:4694: result: no" >&5
4695 echo "${ECHO_T}no" >&6
4699 if test -z "$ac_cv_prog_LD"; then
4701 # Extract the first word of "ld", so it can be a program name with args.
4702 set dummy ld; ac_word=$2
4703 echo "$as_me:4703: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 if test -n "$ac_ct_LD"; then
4709 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4711 ac_save_IFS=$IFS; IFS=$ac_path_separator
4713 for ac_dir in $ac_dummy; do
4715 test -z "$ac_dir" && ac_dir=.
4716 $as_executable_p "$ac_dir/$ac_word" || continue
4717 ac_cv_prog_ac_ct_LD="ld"
4718 echo "$as_me:4718: found $ac_dir/$ac_word" >&5
4722 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4725 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4726 if test -n "$ac_ct_LD"; then
4727 echo "$as_me:4727: result: $ac_ct_LD" >&5
4728 echo "${ECHO_T}$ac_ct_LD" >&6
4730 echo "$as_me:4730: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}ar; ac_word=$2
4742 echo "$as_me:4742: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_AR+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 if test -n "$AR"; then
4748 ac_cv_prog_AR="$AR" # Let the user override the test.
4750 ac_save_IFS=$IFS; IFS=$ac_path_separator
4752 for ac_dir in $ac_dummy; do
4754 test -z "$ac_dir" && ac_dir=.
4755 $as_executable_p "$ac_dir/$ac_word" || continue
4756 ac_cv_prog_AR="${ac_tool_prefix}ar"
4757 echo "$as_me:4757: found $ac_dir/$ac_word" >&5
4764 if test -n "$AR"; then
4765 echo "$as_me:4765: result: $AR" >&5
4766 echo "${ECHO_T}$AR" >&6
4768 echo "$as_me:4768: result: no" >&5
4769 echo "${ECHO_T}no" >&6
4773 if test -z "$ac_cv_prog_AR"; then
4775 # Extract the first word of "ar", so it can be a program name with args.
4776 set dummy ar; ac_word=$2
4777 echo "$as_me:4777: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 if test -n "$ac_ct_AR"; then
4783 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4785 ac_save_IFS=$IFS; IFS=$ac_path_separator
4787 for ac_dir in $ac_dummy; do
4789 test -z "$ac_dir" && ac_dir=.
4790 $as_executable_p "$ac_dir/$ac_word" || continue
4791 ac_cv_prog_ac_ct_AR="ar"
4792 echo "$as_me:4792: found $ac_dir/$ac_word" >&5
4796 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4799 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4800 if test -n "$ac_ct_AR"; then
4801 echo "$as_me:4801: result: $ac_ct_AR" >&5
4802 echo "${ECHO_T}$ac_ct_AR" >&6
4804 echo "$as_me:4804: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}nm; ac_word=$2
4816 echo "$as_me:4816: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_prog_NM+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 if test -n "$NM"; then
4822 ac_cv_prog_NM="$NM" # Let the user override the test.
4824 ac_save_IFS=$IFS; IFS=$ac_path_separator
4826 for ac_dir in $ac_dummy; do
4828 test -z "$ac_dir" && ac_dir=.
4829 $as_executable_p "$ac_dir/$ac_word" || continue
4830 ac_cv_prog_NM="${ac_tool_prefix}nm"
4831 echo "$as_me:4831: found $ac_dir/$ac_word" >&5
4838 if test -n "$NM"; then
4839 echo "$as_me:4839: result: $NM" >&5
4840 echo "${ECHO_T}$NM" >&6
4842 echo "$as_me:4842: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4847 if test -z "$ac_cv_prog_NM"; then
4849 # Extract the first word of "nm", so it can be a program name with args.
4850 set dummy nm; ac_word=$2
4851 echo "$as_me:4851: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$ac_ct_NM"; then
4857 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4859 ac_save_IFS=$IFS; IFS=$ac_path_separator
4861 for ac_dir in $ac_dummy; do
4863 test -z "$ac_dir" && ac_dir=.
4864 $as_executable_p "$ac_dir/$ac_word" || continue
4865 ac_cv_prog_ac_ct_NM="nm"
4866 echo "$as_me:4866: found $ac_dir/$ac_word" >&5
4870 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4873 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4874 if test -n "$ac_ct_NM"; then
4875 echo "$as_me:4875: result: $ac_ct_NM" >&5
4876 echo "${ECHO_T}$ac_ct_NM" >&6
4878 echo "$as_me:4878: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}ar; ac_word=$2
4890 echo "$as_me:4890: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892 if test "${ac_cv_prog_AR+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 if test -n "$AR"; then
4896 ac_cv_prog_AR="$AR" # Let the user override the test.
4898 ac_save_IFS=$IFS; IFS=$ac_path_separator
4900 for ac_dir in $ac_dummy; do
4902 test -z "$ac_dir" && ac_dir=.
4903 $as_executable_p "$ac_dir/$ac_word" || continue
4904 ac_cv_prog_AR="${ac_tool_prefix}ar"
4905 echo "$as_me:4905: found $ac_dir/$ac_word" >&5
4912 if test -n "$AR"; then
4913 echo "$as_me:4913: result: $AR" >&5
4914 echo "${ECHO_T}$AR" >&6
4916 echo "$as_me:4916: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4921 if test -z "$ac_cv_prog_AR"; then
4923 # Extract the first word of "ar", so it can be a program name with args.
4924 set dummy ar; ac_word=$2
4925 echo "$as_me:4925: checking for $ac_word" >&5
4926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4927 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 if test -n "$ac_ct_AR"; then
4931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4933 ac_save_IFS=$IFS; IFS=$ac_path_separator
4935 for ac_dir in $ac_dummy; do
4937 test -z "$ac_dir" && ac_dir=.
4938 $as_executable_p "$ac_dir/$ac_word" || continue
4939 ac_cv_prog_ac_ct_AR="ar"
4940 echo "$as_me:4940: found $ac_dir/$ac_word" >&5
4944 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4947 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4948 if test -n "$ac_ct_AR"; then
4949 echo "$as_me:4949: result: $ac_ct_AR" >&5
4950 echo "${ECHO_T}$ac_ct_AR" >&6
4952 echo "$as_me:4952: result: no" >&5
4953 echo "${ECHO_T}no" >&6
4961 echo "$as_me:4961: checking for options to update archives" >&5
4962 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4963 if test "${cf_cv_ar_flags+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 case "$cf_cv_system_name" in
4970 cat >mk_static_lib.sh <<-EOF
4975 exec \$MSVC_BIN -out:"\$out" \$@
4977 chmod +x mk_static_lib.sh
4978 AR=`pwd`/mk_static_lib.sh
4981 cf_cv_ar_flags=unknown
4982 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4985 # check if $ARFLAGS already contains this choice
4986 if test "x$ARFLAGS" != "x" ; then
4987 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4988 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4994 rm -f "conftest.$ac_cv_objext"
4997 cat >"conftest.$ac_ext" <<EOF
4998 #line 4998 "configure"
4999 int testdata[3] = { 123, 456, 789 };
5001 if { (eval echo "$as_me:5001: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>&5
5004 echo "$as_me:5004: \$? = $ac_status" >&5
5005 (exit "$ac_status"); } ; then
5006 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5007 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5008 if test -f conftest.a ; then
5009 cf_cv_ar_flags="$cf_ar_flags"
5013 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5015 echo "${as_me:-configure}:5015: testing cannot compile test-program ..." 1>&5
5020 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5025 echo "$as_me:5025: result: $cf_cv_ar_flags" >&5
5026 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5028 if test -n "$ARFLAGS" ; then
5029 if test -n "$cf_cv_ar_flags" ; then
5030 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5033 ARFLAGS=$cf_cv_ar_flags
5036 echo "$as_me:5036: checking if you have specified an install-prefix" >&5
5037 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5039 # Check whether --with-install-prefix or --without-install-prefix was given.
5040 if test "${with_install_prefix+set}" = set; then
5041 withval="$with_install_prefix"
5045 (*) DESTDIR="$withval"
5049 echo "$as_me:5049: result: $DESTDIR" >&5
5050 echo "${ECHO_T}$DESTDIR" >&6
5052 ###############################################################################
5054 # If we're cross-compiling, allow the user to override the tools and their
5055 # options. The configure script is oriented toward identifying the host
5056 # compiler, etc., but we need a build compiler to generate parts of the source.
5058 case "$cf_cv_system_name" in
5060 LDFLAGS="$LDFLAGS user32.lib"
5065 if test "$cross_compiling" = yes ; then
5067 # defaults that we might want to override
5068 : ${BUILD_CFLAGS:=''}
5069 : ${BUILD_CPPFLAGS:=''}
5070 : ${BUILD_LDFLAGS:=''}
5072 : ${BUILD_EXEEXT:='$x'}
5073 : ${BUILD_OBJEXT:='o'}
5075 # Check whether --with-build-cc or --without-build-cc was given.
5076 if test "${with_build_cc+set}" = set; then
5077 withval="$with_build_cc"
5080 for ac_prog in gcc clang c99 c89 cc cl
5082 # Extract the first word of "$ac_prog", so it can be a program name with args.
5083 set dummy $ac_prog; ac_word=$2
5084 echo "$as_me:5084: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 if test -n "$BUILD_CC"; then
5090 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5092 ac_save_IFS=$IFS; IFS=$ac_path_separator
5094 for ac_dir in $ac_dummy; do
5096 test -z "$ac_dir" && ac_dir=.
5097 $as_executable_p "$ac_dir/$ac_word" || continue
5098 ac_cv_prog_BUILD_CC="$ac_prog"
5099 echo "$as_me:5099: found $ac_dir/$ac_word" >&5
5105 BUILD_CC=$ac_cv_prog_BUILD_CC
5106 if test -n "$BUILD_CC"; then
5107 echo "$as_me:5107: result: $BUILD_CC" >&5
5108 echo "${ECHO_T}$BUILD_CC" >&6
5110 echo "$as_me:5110: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5114 test -n "$BUILD_CC" && break
5116 test -n "$BUILD_CC" || BUILD_CC="none"
5119 echo "$as_me:5119: checking for native build C compiler" >&5
5120 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5121 echo "$as_me:5121: result: $BUILD_CC" >&5
5122 echo "${ECHO_T}$BUILD_CC" >&6
5124 echo "$as_me:5124: checking for native build C preprocessor" >&5
5125 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5127 # Check whether --with-build-cpp or --without-build-cpp was given.
5128 if test "${with_build_cpp+set}" = set; then
5129 withval="$with_build_cpp"
5130 BUILD_CPP="$withval"
5132 BUILD_CPP='${BUILD_CC} -E'
5134 echo "$as_me:5134: result: $BUILD_CPP" >&5
5135 echo "${ECHO_T}$BUILD_CPP" >&6
5137 echo "$as_me:5137: checking for native build C flags" >&5
5138 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5140 # Check whether --with-build-cflags or --without-build-cflags was given.
5141 if test "${with_build_cflags+set}" = set; then
5142 withval="$with_build_cflags"
5143 BUILD_CFLAGS="$withval"
5145 echo "$as_me:5145: result: $BUILD_CFLAGS" >&5
5146 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5148 echo "$as_me:5148: checking for native build C preprocessor-flags" >&5
5149 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5151 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5152 if test "${with_build_cppflags+set}" = set; then
5153 withval="$with_build_cppflags"
5154 BUILD_CPPFLAGS="$withval"
5156 echo "$as_me:5156: result: $BUILD_CPPFLAGS" >&5
5157 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5159 echo "$as_me:5159: checking for native build linker-flags" >&5
5160 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5162 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5163 if test "${with_build_ldflags+set}" = set; then
5164 withval="$with_build_ldflags"
5165 BUILD_LDFLAGS="$withval"
5167 echo "$as_me:5167: result: $BUILD_LDFLAGS" >&5
5168 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5170 echo "$as_me:5170: checking for native build linker-libraries" >&5
5171 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5173 # Check whether --with-build-libs or --without-build-libs was given.
5174 if test "${with_build_libs+set}" = set; then
5175 withval="$with_build_libs"
5176 BUILD_LIBS="$withval"
5178 echo "$as_me:5178: result: $BUILD_LIBS" >&5
5179 echo "${ECHO_T}$BUILD_LIBS" >&6
5181 # this assumes we're on Unix.
5185 : ${BUILD_CC:='${CC}'}
5187 if { test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}'; } ; then
5188 { { echo "$as_me:5188: error: Cross-build requires two compilers.
5189 Use --with-build-cc to specify the native compiler." >&5
5190 echo "$as_me: error: Cross-build requires two compilers.
5191 Use --with-build-cc to specify the native compiler." >&2;}
5192 { (exit 1); exit 1; }; }
5196 : ${BUILD_CC:='${CC}'}
5197 : ${BUILD_CPP:='${CPP}'}
5198 : ${BUILD_CFLAGS:='${CFLAGS}'}
5199 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5200 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5201 : ${BUILD_LIBS:='${LIBS}'}
5202 : ${BUILD_EXEEXT:='$x'}
5203 : ${BUILD_OBJEXT:='o'}
5206 ###############################################################################
5208 ### Options to allow the user to specify the set of libraries which are used.
5209 ### Use "--without-normal --with-shared" to allow the default model to be
5210 ### shared, for example.
5213 echo "$as_me:5213: checking if libtool -version-number should be used" >&5
5214 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5216 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5217 if test "${enable_libtool_version+set}" = set; then
5218 enableval="$enable_libtool_version"
5219 test "$enableval" != no && enableval=yes
5220 if test "$enableval" != "yes" ; then
5221 cf_libtool_version=no
5223 cf_libtool_version=yes
5227 cf_libtool_version=yes
5230 echo "$as_me:5230: result: $cf_libtool_version" >&5
5231 echo "${ECHO_T}$cf_libtool_version" >&6
5233 if test "$cf_libtool_version" = yes ; then
5234 LIBTOOL_VERSION="-version-number"
5236 LIBTOOL_VERSION="-version-info"
5239 { echo "$as_me:5239: WARNING: VERSION was not set" >&5
5240 echo "$as_me: WARNING: VERSION was not set" >&2;}
5243 ABI_VERSION="$VERSION"
5244 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5246 echo "${as_me:-configure}:5246: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5250 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5251 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5253 echo "${as_me:-configure}:5253: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5257 { echo "$as_me:5257: WARNING: unexpected VERSION value: $VERSION" >&5
5258 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5265 # common library maintenance symbols that are convenient for libtool scripts:
5266 LIB_CREATE='${AR} -cr'
5267 LIB_OBJECT='${OBJECTS}'
5271 # symbols used to prop libtool up to enable it to determine what it should be
5279 echo "$as_me:5279: checking if you want to build libraries with libtool" >&5
5280 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5282 # Check whether --with-libtool or --without-libtool was given.
5283 if test "${with_libtool+set}" = set; then
5284 withval="$with_libtool"
5285 with_libtool=$withval
5289 echo "$as_me:5289: result: $with_libtool" >&5
5290 echo "${ECHO_T}$with_libtool" >&6
5291 if test "$with_libtool" != "no"; then
5293 if test "$with_libtool" != "yes" ; then
5295 if test "x$prefix" != xNONE; then
5296 cf_path_syntax="$prefix"
5298 cf_path_syntax="$ac_default_prefix"
5301 case ".$with_libtool" in
5306 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5308 (.\$\{*prefix\}*|.\$\{*dir\}*)
5309 eval with_libtool="$with_libtool"
5310 case ".$with_libtool" in
5312 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5317 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5320 { { echo "$as_me:5320: error: expected a pathname, not \"$with_libtool\"" >&5
5321 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5322 { (exit 1); exit 1; }; }
5326 LIBTOOL=$with_libtool
5328 if test -n "$ac_tool_prefix"; then
5329 for ac_prog in libtool glibtool
5331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5333 echo "$as_me:5333: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 if test -n "$LIBTOOL"; then
5339 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5341 ac_save_IFS=$IFS; IFS=$ac_path_separator
5343 for ac_dir in $ac_dummy; do
5345 test -z "$ac_dir" && ac_dir=.
5346 $as_executable_p "$ac_dir/$ac_word" || continue
5347 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5348 echo "$as_me:5348: found $ac_dir/$ac_word" >&5
5354 LIBTOOL=$ac_cv_prog_LIBTOOL
5355 if test -n "$LIBTOOL"; then
5356 echo "$as_me:5356: result: $LIBTOOL" >&5
5357 echo "${ECHO_T}$LIBTOOL" >&6
5359 echo "$as_me:5359: result: no" >&5
5360 echo "${ECHO_T}no" >&6
5363 test -n "$LIBTOOL" && break
5366 if test -z "$LIBTOOL"; then
5367 ac_ct_LIBTOOL=$LIBTOOL
5368 for ac_prog in libtool glibtool
5370 # Extract the first word of "$ac_prog", so it can be a program name with args.
5371 set dummy $ac_prog; ac_word=$2
5372 echo "$as_me:5372: checking for $ac_word" >&5
5373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5374 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 if test -n "$ac_ct_LIBTOOL"; then
5378 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5380 ac_save_IFS=$IFS; IFS=$ac_path_separator
5382 for ac_dir in $ac_dummy; do
5384 test -z "$ac_dir" && ac_dir=.
5385 $as_executable_p "$ac_dir/$ac_word" || continue
5386 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5387 echo "$as_me:5387: found $ac_dir/$ac_word" >&5
5393 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5394 if test -n "$ac_ct_LIBTOOL"; then
5395 echo "$as_me:5395: result: $ac_ct_LIBTOOL" >&5
5396 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5398 echo "$as_me:5398: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5402 test -n "$ac_ct_LIBTOOL" && break
5404 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5406 LIBTOOL=$ac_ct_LIBTOOL
5409 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5411 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.].*//'`
5413 cf_cv_libtool_version=
5415 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5417 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5420 unset ac_cv_prog_ac_ct_LIBTOOL
5424 if test -n "$ac_tool_prefix"; then
5425 for ac_prog in glibtool
5427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5429 echo "$as_me:5429: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5431 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 if test -n "$LIBTOOL"; then
5435 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5437 ac_save_IFS=$IFS; IFS=$ac_path_separator
5439 for ac_dir in $ac_dummy; do
5441 test -z "$ac_dir" && ac_dir=.
5442 $as_executable_p "$ac_dir/$ac_word" || continue
5443 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5444 echo "$as_me:5444: found $ac_dir/$ac_word" >&5
5450 LIBTOOL=$ac_cv_prog_LIBTOOL
5451 if test -n "$LIBTOOL"; then
5452 echo "$as_me:5452: result: $LIBTOOL" >&5
5453 echo "${ECHO_T}$LIBTOOL" >&6
5455 echo "$as_me:5455: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5459 test -n "$LIBTOOL" && break
5462 if test -z "$LIBTOOL"; then
5463 ac_ct_LIBTOOL=$LIBTOOL
5464 for ac_prog in glibtool
5466 # Extract the first word of "$ac_prog", so it can be a program name with args.
5467 set dummy $ac_prog; ac_word=$2
5468 echo "$as_me:5468: checking for $ac_word" >&5
5469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5470 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 if test -n "$ac_ct_LIBTOOL"; then
5474 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5476 ac_save_IFS=$IFS; IFS=$ac_path_separator
5478 for ac_dir in $ac_dummy; do
5480 test -z "$ac_dir" && ac_dir=.
5481 $as_executable_p "$ac_dir/$ac_word" || continue
5482 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5483 echo "$as_me:5483: found $ac_dir/$ac_word" >&5
5489 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5490 if test -n "$ac_ct_LIBTOOL"; then
5491 echo "$as_me:5491: result: $ac_ct_LIBTOOL" >&5
5492 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5494 echo "$as_me:5494: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5498 test -n "$ac_ct_LIBTOOL" && break
5500 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5502 LIBTOOL=$ac_ct_LIBTOOL
5505 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5507 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.].*//'`
5509 cf_cv_libtool_version=
5511 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5515 if test -z "$LIBTOOL" ; then
5516 { { echo "$as_me:5516: error: Cannot find libtool" >&5
5517 echo "$as_me: error: Cannot find libtool" >&2;}
5518 { (exit 1); exit 1; }; }
5520 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5521 LIB_OBJECT='${OBJECTS:.o=.lo}'
5523 LIB_CLEAN='${LIBTOOL} --mode=clean'
5524 LIB_COMPILE='${LIBTOOL} --mode=compile'
5525 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5526 LIB_INSTALL='${LIBTOOL} --mode=install'
5527 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5530 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5532 echo "$as_me:5532: checking version of $LIBTOOL" >&5
5533 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5535 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5537 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.].*//'`
5539 cf_cv_libtool_version=
5541 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5543 echo "$as_me:5543: result: $cf_cv_libtool_version" >&5
5544 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5545 if test -z "$cf_cv_libtool_version" ; then
5546 { { echo "$as_me:5546: error: This is not GNU libtool" >&5
5547 echo "$as_me: error: This is not GNU libtool" >&2;}
5548 { (exit 1); exit 1; }; }
5551 { { echo "$as_me:5551: error: GNU libtool has not been found" >&5
5552 echo "$as_me: error: GNU libtool has not been found" >&2;}
5553 { (exit 1); exit 1; }; }
5556 # special hack to add -no-undefined (which libtool should do for itself)
5558 case "$cf_cv_system_name" in
5559 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5560 LT_UNDEF=-no-undefined
5564 # special hack to add --tag option for C++ compiler
5565 case "$cf_cv_libtool_version" in
5566 (1.[5-9]*|[2-9].[0-9.a-z]*)
5567 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5568 LIBTOOL="$LIBTOOL --tag=CC"
5571 LIBTOOL_CXX="$LIBTOOL"
5579 test -z "$LIBTOOL" && ECHO_LT=
5581 if test "$with_libtool" != "no" ; then
5583 cf_list_models="$cf_list_models libtool"
5587 echo "$as_me:5587: checking if you want to build shared libraries" >&5
5588 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5590 # Check whether --with-shared or --without-shared was given.
5591 if test "${with_shared+set}" = set; then
5592 withval="$with_shared"
5593 with_shared=$withval
5597 echo "$as_me:5597: result: $with_shared" >&5
5598 echo "${ECHO_T}$with_shared" >&6
5599 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5601 echo "$as_me:5601: checking if you want to build static libraries" >&5
5602 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5604 # Check whether --with-normal or --without-normal was given.
5605 if test "${with_normal+set}" = set; then
5606 withval="$with_normal"
5607 with_normal=$withval
5611 echo "$as_me:5611: result: $with_normal" >&5
5612 echo "${ECHO_T}$with_normal" >&6
5613 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5615 echo "$as_me:5615: checking if you want to build debug libraries" >&5
5616 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5618 # Check whether --with-debug or --without-debug was given.
5619 if test "${with_debug+set}" = set; then
5620 withval="$with_debug"
5625 echo "$as_me:5625: result: $with_debug" >&5
5626 echo "${ECHO_T}$with_debug" >&6
5627 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5629 echo "$as_me:5629: checking if you want to build profiling libraries" >&5
5630 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5632 # Check whether --with-profile or --without-profile was given.
5633 if test "${with_profile+set}" = set; then
5634 withval="$with_profile"
5635 with_profile=$withval
5639 echo "$as_me:5639: result: $with_profile" >&5
5640 echo "${ECHO_T}$with_profile" >&6
5641 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5645 if test "X$cf_with_cxx_binding" != Xno; then
5646 if test "x$with_shared" = "xyes"; then
5647 echo "$as_me:5647: checking if you want to build C++ shared libraries" >&5
5648 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5650 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5651 if test "${with_cxx_shared+set}" = set; then
5652 withval="$with_cxx_shared"
5653 with_shared_cxx=$withval
5657 echo "$as_me:5657: result: $with_shared_cxx" >&5
5658 echo "${ECHO_T}$with_shared_cxx" >&6
5662 ###############################################################################
5664 echo "$as_me:5664: checking for specified models" >&5
5665 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5666 test -z "$cf_list_models" && cf_list_models=normal
5667 test "$with_libtool" != "no" && cf_list_models=libtool
5668 echo "$as_me:5668: result: $cf_list_models" >&5
5669 echo "${ECHO_T}$cf_list_models" >&6
5671 ### Use the first model as the default, and save its suffix for use in building
5672 ### up test-applications.
5673 echo "$as_me:5673: checking for default model" >&5
5674 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5675 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5676 echo "$as_me:5676: result: $DFT_LWR_MODEL" >&5
5677 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5679 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5690 echo "$as_me:5690: checking if you want to have a library-prefix" >&5
5691 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5693 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5694 if test "${with_lib_prefix+set}" = set; then
5695 withval="$with_lib_prefix"
5696 with_lib_prefix=$withval
5698 with_lib_prefix=auto
5700 echo "$as_me:5700: result: $with_lib_prefix" >&5
5701 echo "${ECHO_T}$with_lib_prefix" >&6
5703 if test "$with_lib_prefix" = auto
5706 case "$cf_cv_system_name" in
5708 if test "$DFT_LWR_MODEL" = libtool; then
5717 (*) LIB_PREFIX='lib'
5720 cf_prefix=$LIB_PREFIX
5722 elif test "$with_lib_prefix" = no
5726 LIB_PREFIX=$with_lib_prefix
5731 echo "$as_me:5731: checking for PATH separator" >&5
5732 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5733 case "$cf_cv_system_name" in
5734 (os2*) PATH_SEPARATOR=';' ;;
5735 (*) ${PATH_SEPARATOR:=':'} ;;
5738 echo "$as_me:5738: result: $PATH_SEPARATOR" >&5
5739 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5741 ###############################################################################
5743 echo "$as_me:5743: checking if you want to build a separate terminfo library" >&5
5744 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5746 # Check whether --with-termlib or --without-termlib was given.
5747 if test "${with_termlib+set}" = set; then
5748 withval="$with_termlib"
5749 with_termlib=$withval
5753 echo "$as_me:5753: result: $with_termlib" >&5
5754 echo "${ECHO_T}$with_termlib" >&6
5756 echo "$as_me:5756: checking if you want to build a separate tic library" >&5
5757 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5759 # Check whether --with-ticlib or --without-ticlib was given.
5760 if test "${with_ticlib+set}" = set; then
5761 withval="$with_ticlib"
5762 with_ticlib=$withval
5766 echo "$as_me:5766: result: $with_ticlib" >&5
5767 echo "${ECHO_T}$with_ticlib" >&6
5769 if test X"$CC_G_OPT" = X"" ; then
5771 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5774 if test X"$CXX_G_OPT" = X"" ; then
5776 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5779 echo "$as_me:5779: checking for default loader flags" >&5
5780 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5781 case "$DFT_LWR_MODEL" in
5782 (libtool) LD_MODEL='' ;;
5783 (normal) LD_MODEL='' ;;
5784 (debug) LD_MODEL=$CC_G_OPT ;;
5785 (profile) LD_MODEL='-pg';;
5786 (shared) LD_MODEL='' ;;
5788 echo "$as_me:5788: result: $LD_MODEL" >&5
5789 echo "${ECHO_T}$LD_MODEL" >&6
5791 case "$DFT_LWR_MODEL" in
5794 echo "$as_me:5794: checking if rpath option should be used" >&5
5795 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5797 # Check whether --enable-rpath or --disable-rpath was given.
5798 if test "${enable_rpath+set}" = set; then
5799 enableval="$enable_rpath"
5800 cf_cv_enable_rpath=$enableval
5802 cf_cv_enable_rpath=no
5804 echo "$as_me:5804: result: $cf_cv_enable_rpath" >&5
5805 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5807 echo "$as_me:5807: checking if shared libraries should be relinked during install" >&5
5808 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5810 # Check whether --enable-relink or --disable-relink was given.
5811 if test "${enable_relink+set}" = set; then
5812 enableval="$enable_relink"
5813 cf_cv_do_relink=$enableval
5817 echo "$as_me:5817: result: $cf_cv_do_relink" >&5
5818 echo "${ECHO_T}$cf_cv_do_relink" >&6
5822 # we will build libraries one-level down.
5826 if test "x$cf_cv_enable_rpath" != xno
5828 echo "$as_me:5828: checking for an rpath option" >&5
5829 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5830 case "$cf_cv_system_name" in
5832 if test "$GCC" = yes; then
5833 LD_RPATH_OPT="-Wl,-rpath,"
5835 LD_RPATH_OPT="-rpath "
5838 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5839 LD_RPATH_OPT="-Wl,-rpath,"
5841 (openbsd[2-9].*|mirbsd*)
5842 LD_RPATH_OPT="-Wl,-rpath,"
5845 LD_RPATH_OPT="-rpath "
5848 LD_RPATH_OPT="-Wl,-rpath,"
5851 LD_RPATH_OPT="-rpath "
5859 echo "$as_me:5859: result: $LD_RPATH_OPT" >&5
5860 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5862 case "x$LD_RPATH_OPT" in
5864 echo "$as_me:5864: checking if we need a space after rpath option" >&5
5865 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5866 cf_save_LIBS="$LIBS"
5871 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5873 for cf_add_1lib in $cf_add_0lib; do
5874 for cf_add_2lib in $cf_add_libs; do
5875 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5880 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5884 cat >"conftest.$ac_ext" <<_ACEOF
5885 #line 5885 "configure"
5886 #include "confdefs.h"
5896 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5897 if { (eval echo "$as_me:5897: \"$ac_link\"") >&5
5898 (eval $ac_link) 2>&5
5900 echo "$as_me:5900: \$? = $ac_status" >&5
5901 (exit "$ac_status"); } &&
5902 { ac_try='test -s "conftest$ac_exeext"'
5903 { (eval echo "$as_me:5903: \"$ac_try\"") >&5
5906 echo "$as_me:5906: \$? = $ac_status" >&5
5907 (exit "$ac_status"); }; }; then
5910 echo "$as_me: failed program was:" >&5
5911 cat "conftest.$ac_ext" >&5
5914 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5915 LIBS="$cf_save_LIBS"
5916 echo "$as_me:5916: result: $cf_rpath_space" >&5
5917 echo "${ECHO_T}$cf_rpath_space" >&6
5918 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5927 INSTALL_LIB="-m 644"
5928 : ${rel_builddir:=.}
5934 cf_cv_do_symlinks=no
5936 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5938 echo "$as_me:5938: checking if release/abi version should be used for shared libs" >&5
5939 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5941 # Check whether --with-shlib-version or --without-shlib-version was given.
5942 if test "${with_shlib_version+set}" = set; then
5943 withval="$with_shlib_version"
5944 test -z "$withval" && withval=auto
5947 cf_cv_shlib_version=auto
5950 cf_cv_shlib_version=$withval
5953 echo "$as_me:5953: result: $withval" >&5
5954 echo "${ECHO_T}$withval" >&6
5955 { { echo "$as_me:5955: error: option value must be one of: rel, abi, or auto" >&5
5956 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5957 { (exit 1); exit 1; }; }
5962 cf_cv_shlib_version=auto
5964 echo "$as_me:5964: result: $cf_cv_shlib_version" >&5
5965 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5970 # Some less-capable ports of gcc support only -fpic
5974 if test "$GCC" = yes
5978 case "$cf_cv_system_name" in
5979 (*linux*) # e.g., PGI compiler
5985 if test "$cf_try_fPIC" = yes
5987 echo "$as_me:5987: checking which $CC option to use" >&5
5988 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5989 cf_save_CFLAGS="$CFLAGS"
5990 for CC_SHARED_OPTS in -fPIC -fpic ''
5992 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5993 cat >"conftest.$ac_ext" <<_ACEOF
5994 #line 5994 "configure"
5995 #include "confdefs.h"
6005 rm -f "conftest.$ac_objext"
6006 if { (eval echo "$as_me:6006: \"$ac_compile\"") >&5
6007 (eval $ac_compile) 2>&5
6009 echo "$as_me:6009: \$? = $ac_status" >&5
6010 (exit "$ac_status"); } &&
6011 { ac_try='test -s "conftest.$ac_objext"'
6012 { (eval echo "$as_me:6012: \"$ac_try\"") >&5
6015 echo "$as_me:6015: \$? = $ac_status" >&5
6016 (exit "$ac_status"); }; }; then
6019 echo "$as_me: failed program was:" >&5
6020 cat "conftest.$ac_ext" >&5
6022 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6024 echo "$as_me:6024: result: $CC_SHARED_OPTS" >&5
6025 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6026 CFLAGS="$cf_save_CFLAGS"
6029 cf_cv_shlib_version_infix=no
6031 case "$cf_cv_system_name" in
6032 (aix4.3-9*|aix[5-7]*)
6033 if test "$GCC" = yes; then
6034 CC_SHARED_OPTS='-Wl,-brtl'
6035 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6037 CC_SHARED_OPTS='-brtl'
6038 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6039 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6043 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6047 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6048 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6049 cf_cv_shlib_version=cygdll
6050 cf_cv_shlib_version_infix=cygdll
6053 cat >mk_shared_lib.sh <<-CF_EOF
6056 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6059 Linking shared library
6060 ** SHARED_LIB \$SHARED_LIB
6061 ** IMPORT_LIB \$IMPORT_LIB
6063 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6065 chmod +x mk_shared_lib.sh
6069 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6070 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6071 cf_cv_shlib_version=msysdll
6072 cf_cv_shlib_version_infix=msysdll
6075 cat >mk_shared_lib.sh <<-CF_EOF
6078 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6081 Linking shared library
6082 ** SHARED_LIB \$SHARED_LIB
6083 ** IMPORT_LIB \$IMPORT_LIB
6085 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6087 chmod +x mk_shared_lib.sh
6090 cf_try_cflags="no-cpp-precomp"
6091 CC_SHARED_OPTS="-dynamic"
6092 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6093 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6094 cf_cv_shlib_version_infix=yes
6095 echo "$as_me:6095: checking if ld -search_paths_first works" >&5
6096 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6097 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cf_save_LDFLAGS=$LDFLAGS
6102 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6103 cat >"conftest.$ac_ext" <<_ACEOF
6104 #line 6104 "configure"
6105 #include "confdefs.h"
6115 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6116 if { (eval echo "$as_me:6116: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>&5
6119 echo "$as_me:6119: \$? = $ac_status" >&5
6120 (exit "$ac_status"); } &&
6121 { ac_try='test -s "conftest$ac_exeext"'
6122 { (eval echo "$as_me:6122: \"$ac_try\"") >&5
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 (exit "$ac_status"); }; }; then
6127 cf_cv_ldflags_search_paths_first=yes
6129 echo "$as_me: failed program was:" >&5
6130 cat "conftest.$ac_ext" >&5
6131 cf_cv_ldflags_search_paths_first=no
6133 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6134 LDFLAGS=$cf_save_LDFLAGS
6136 echo "$as_me:6136: result: $cf_cv_ldflags_search_paths_first" >&5
6137 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6138 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6139 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6143 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6144 if test "$GCC" != yes; then
6147 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6148 INSTALL_LIB="-m 555"
6151 # (tested with gcc 2.7.2 -- I don't have c89)
6152 if test "$GCC" = yes; then
6153 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6156 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6158 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6159 # HP-UX shared libraries must be executable, and should be
6160 # readonly to exploit a quirk in the memory manager.
6161 INSTALL_LIB="-m 555"
6164 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6165 if test "$cf_cv_shlib_version" = rel; then
6166 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6168 cf_shared_soname='`basename $@`'
6171 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6174 if test "$cf_cv_enable_rpath" = yes ; then
6175 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6177 # tested with IRIX 5.2 and 'cc'.
6178 if test "$GCC" != yes; then
6179 CC_SHARED_OPTS='-KPIC'
6180 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6182 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6184 cf_cv_rm_so_locs=yes
6186 (linux*|gnu*|k*bsd*-gnu)
6187 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6188 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6189 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6191 if test "$cf_cv_enable_rpath" = yes ; then
6192 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6195 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6196 if test "$cf_cv_shlib_version" = rel; then
6197 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6199 cf_cv_shared_soname='`basename $@`'
6202 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6205 cf_cv_shlib_version=msvcdll
6206 cf_cv_shlib_version_infix=msvcdll
6209 if test "$DFT_LWR_MODEL" = "shared" ; then
6210 LOCAL_LDFLAGS="-link -dll"
6211 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6212 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6215 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6216 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6217 cat >mk_shared_lib.sh <<-CF_EOF
6220 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6225 Linking shared library
6226 ** SHARED LIB \$SHARED_LIB
6227 ** IMPORT_LIB \$IMPORT_LIB
6229 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6230 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6231 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6233 chmod +x mk_shared_lib.sh
6234 cat >mk_prog.sh <<-CF_EOF
6237 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6240 ldopts=("/subsystem:console")
6243 while test \$# -gt 0; do
6246 # ignore -link argument
6249 # ignore runtime-library option
6264 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6267 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6273 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6274 ldopts+=("\${linkarg}")
6282 ldopts+=("-out:\$1")
6291 if [ "\$isdll" -ne 0 ]; then
6292 for lib in \${libs[*]}; do
6293 ldopts+=("\$lib.dll.lib")
6296 for lib in \${libs[*]}; do
6297 ldopts+=("\$lib.lib")
6302 ** ld options: "\${ldopts[@]}"
6304 exec \$LD \${ldopts[@]}
6307 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6308 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6311 cf_cv_shlib_version=mingw
6312 cf_cv_shlib_version_infix=mingw
6315 if test "$DFT_LWR_MODEL" = "shared" ; then
6316 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6317 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6318 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6321 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6322 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6323 cat >mk_shared_lib.sh <<-CF_EOF
6326 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6329 Linking shared library
6330 ** SHARED_LIB \$SHARED_LIB
6331 ** IMPORT_LIB \$IMPORT_LIB
6333 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6335 chmod +x mk_shared_lib.sh
6337 (openbsd[2-9].*|mirbsd*)
6338 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6339 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6340 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6342 if test "$cf_cv_enable_rpath" = yes ; then
6343 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6345 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6347 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6348 if test "$cf_cv_shlib_version" = rel; then
6349 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6351 cf_cv_shared_soname='`basename $@`'
6354 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6358 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6362 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6364 (nto-qnx*|openbsd*|freebsd[12].*)
6365 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6366 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6367 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6369 (dragonfly*|freebsd*)
6370 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6371 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6372 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6373 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6374 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6377 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6378 if test "$cf_cv_shlib_version" = rel; then
6379 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6381 cf_cv_shared_soname='`basename $@`'
6384 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6387 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6388 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6389 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6390 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6391 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6392 if test "$cf_cv_shlib_version" = auto; then
6393 if test -f /usr/libexec/ld.elf_so; then
6394 cf_cv_shlib_version=abi
6396 cf_cv_shlib_version=rel
6400 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6401 if test "$cf_cv_shlib_version" = rel; then
6402 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6404 cf_cv_shared_soname='`basename $@`'
6407 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6409 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6413 # tested with OSF/1 V3.2 and 'cc'
6414 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6415 # link with shared libs).
6416 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6419 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6422 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6423 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6424 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6425 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6427 cf_cv_rm_so_locs=yes
6429 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6430 # tested with osr5.0.5
6431 if test "$GCC" != yes; then
6432 CC_SHARED_OPTS='-belf -KPIC'
6434 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6435 if test "$cf_cv_enable_rpath" = yes ; then
6436 # only way is to set LD_RUN_PATH but no switch for it
6439 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6440 LINK_PROGS='LD_RUN_PATH=${libdir}'
6441 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6444 # tested with SunOS 4.1.1 and gcc 2.7.0
6445 if test "$GCC" != yes; then
6446 CC_SHARED_OPTS='-KPIC'
6448 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6449 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6452 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6453 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6454 if test "$DFT_LWR_MODEL" = "shared" ; then
6455 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6456 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6458 if test "$cf_cv_enable_rpath" = yes ; then
6459 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6462 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6463 if test "$cf_cv_shlib_version" = rel; then
6464 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6466 cf_cv_shared_soname='`basename $@`'
6469 if test "$GCC" != yes; then
6470 cf_save_CFLAGS="$CFLAGS"
6471 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6473 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6474 cat >"conftest.$ac_ext" <<_ACEOF
6475 #line 6475 "configure"
6476 #include "confdefs.h"
6486 rm -f "conftest.$ac_objext"
6487 if { (eval echo "$as_me:6487: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>&5
6490 echo "$as_me:6490: \$? = $ac_status" >&5
6491 (exit "$ac_status"); } &&
6492 { ac_try='test -s "conftest.$ac_objext"'
6493 { (eval echo "$as_me:6493: \"$ac_try\"") >&5
6496 echo "$as_me:6496: \$? = $ac_status" >&5
6497 (exit "$ac_status"); }; }; then
6500 echo "$as_me: failed program was:" >&5
6501 cat "conftest.$ac_ext" >&5
6503 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6505 CFLAGS="$cf_save_CFLAGS"
6506 CC_SHARED_OPTS=$cf_shared_opts
6507 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6509 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6512 (sysv5uw7*|unix_sv*)
6513 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6514 if test "$GCC" != yes; then
6515 CC_SHARED_OPTS='-KPIC'
6517 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6520 CC_SHARED_OPTS='unknown'
6521 MK_SHARED_LIB='echo unknown'
6525 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6526 case "$cf_cv_shlib_version" in
6528 case "$MK_SHARED_LIB" in
6530 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6533 { echo "$as_me:6533: WARNING: ignored --with-shlib-version" >&5
6534 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6540 if test -n "$cf_try_cflags"
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6543 "${as_me:-configure}"
6545 int main(int argc, char *argv[])
6548 return (argv[argc-1] == 0) ;
6551 cf_save_CFLAGS="$CFLAGS"
6552 for cf_opt in $cf_try_cflags
6554 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6555 echo "$as_me:6555: checking if CFLAGS option -$cf_opt works" >&5
6556 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6557 if { (eval echo "$as_me:6557: \"$ac_compile\"") >&5
6558 (eval $ac_compile) 2>&5
6560 echo "$as_me:6560: \$? = $ac_status" >&5
6561 (exit "$ac_status"); }; then
6562 echo "$as_me:6562: result: yes" >&5
6563 echo "${ECHO_T}yes" >&6
6564 cf_save_CFLAGS="$CFLAGS"
6566 echo "$as_me:6566: result: no" >&5
6567 echo "${ECHO_T}no" >&6
6570 CFLAGS="$cf_save_CFLAGS"
6573 # RPATH_LIST is a colon-separated list of directories
6574 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6575 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6577 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6579 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6581 echo "${as_me:-configure}:6581: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6583 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6585 echo "${as_me:-configure}:6585: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6587 for model in $cf_list_models ; do
6591 echo "$as_me:6591: checking for additional libtool options" >&5
6592 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6594 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6595 if test "${with_libtool_opts+set}" = set; then
6596 withval="$with_libtool_opts"
6597 with_libtool_opts=$withval
6599 with_libtool_opts=no
6601 echo "$as_me:6601: result: $with_libtool_opts" >&5
6602 echo "${ECHO_T}$with_libtool_opts" >&6
6604 case .$with_libtool_opts in
6608 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6612 echo "$as_me:6612: checking if exported-symbols file should be used" >&5
6613 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6615 # Check whether --with-export-syms or --without-export-syms was given.
6616 if test "${with_export_syms+set}" = set; then
6617 withval="$with_export_syms"
6618 with_export_syms=$withval
6622 if test "x$with_export_syms" = xyes
6624 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6627 echo "$as_me:6627: result: $with_export_syms" >&5
6628 echo "${ECHO_T}$with_export_syms" >&6
6629 if test "x$with_export_syms" != xno
6631 EXPORT_SYMS="-export-symbols $with_export_syms"
6637 if test "$CC_SHARED_OPTS" = "unknown"; then
6638 { { echo "$as_me:6638: error: Shared libraries are not supported in this version" >&5
6639 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6640 { (exit 1); exit 1; }; }
6642 # workaround for inept transition to PIE vs PIC...
6643 echo "$as_me:6643: checking if current CFLAGS link properly" >&5
6644 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6645 cat >"conftest.$ac_ext" <<_ACEOF
6646 #line 6646 "configure"
6647 #include "confdefs.h"
6652 printf("Hello work\\n");
6657 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6658 if { (eval echo "$as_me:6658: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>&5
6661 echo "$as_me:6661: \$? = $ac_status" >&5
6662 (exit "$ac_status"); } &&
6663 { ac_try='test -s "conftest$ac_exeext"'
6664 { (eval echo "$as_me:6664: \"$ac_try\"") >&5
6667 echo "$as_me:6667: \$? = $ac_status" >&5
6668 (exit "$ac_status"); }; }; then
6671 echo "$as_me: failed program was:" >&5
6672 cat "conftest.$ac_ext" >&5
6675 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6676 echo "$as_me:6676: result: $cf_cflags_work" >&5
6677 echo "${ECHO_T}$cf_cflags_work" >&6
6678 if test "$cf_cflags_work" = no
6680 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6682 echo "${as_me:-configure}:6682: testing try to work around by appending shared-options ..." 1>&5
6684 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6687 echo "$as_me:6687: checking if versioned-symbols file should be used" >&5
6688 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6690 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6691 if test "${with_versioned_syms+set}" = set; then
6692 withval="$with_versioned_syms"
6693 with_versioned_syms=$withval
6695 with_versioned_syms=no
6697 case "x$with_versioned_syms" in
6699 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6705 test -f "$with_versioned_syms" || { { echo "$as_me:6705: error: expected a filename: $with_versioned_syms" >&5
6706 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6707 { (exit 1); exit 1; }; }
6710 test -f "$with_versioned_syms" || { { echo "$as_me:6710: error: expected a filename: $with_versioned_syms" >&5
6711 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6712 { (exit 1); exit 1; }; }
6713 with_versioned_syms=`pwd`/"$with_versioned_syms"
6716 echo "$as_me:6716: result: $with_versioned_syms" >&5
6717 echo "${ECHO_T}$with_versioned_syms" >&6
6723 if test "x$with_versioned_syms" != xno
6725 RESULTING_SYMS=$with_versioned_syms
6726 case "x$MK_SHARED_LIB" in
6728 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6729 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6730 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6732 echo "${as_me:-configure}:6732: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6736 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6737 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6738 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6740 echo "${as_me:-configure}:6740: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6744 { echo "$as_me:6744: WARNING: this system does not support versioned-symbols" >&5
6745 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6749 # Linux ld can selectively override scope, e.g., of symbols beginning with
6750 # "_" by first declaring some as global, and then using a wildcard to
6751 # declare the others as local. Some other loaders cannot do this. Check
6752 # by constructing a (very) simple shared library and inspecting its
6754 if test "x$VERSIONED_SYMS" != "x"
6756 echo "$as_me:6756: checking if wildcards can be used to selectively omit symbols" >&5
6757 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6763 cat >conftest.ver <<EOF
6792 cat >conftest.$ac_ext <<EOF
6793 #line 6793 "configure"
6794 int _ismissing(void) { return 1; }
6795 int _localf1(void) { return 1; }
6796 int _localf2(void) { return 2; }
6797 int globalf1(void) { return 1; }
6798 int globalf2(void) { return 2; }
6799 int _sublocalf1(void) { return 1; }
6800 int _sublocalf2(void) { return 2; }
6801 int subglobalf1(void) { return 1; }
6802 int subglobalf2(void) { return 2; }
6804 cat >conftest.mk <<EOF
6807 CPPFLAGS=${CPPFLAGS}
6810 VERSIONED_SYMS=${VERSIONED_SYMS}
6811 RESULTING_SYMS=conftest.ver
6812 MK_SHARED_LIB=${MK_SHARED_LIB}
6813 conftest.so: conftest.$ac_cv_objext
6814 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6817 # compile source, make library
6818 if make -f conftest.mk 2>&5 >/dev/null
6820 # test for missing symbol in either Data or Text section
6821 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
6822 test -n "$cf_missing" && WILDCARD_SYMS=yes
6824 echo "$as_me:6824: result: $WILDCARD_SYMS" >&5
6825 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6834 ### Checks for special libraries, must be done up-front.
6837 echo "$as_me:6837: checking if you want to link with the GPM mouse library" >&5
6838 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6840 # Check whether --with-gpm or --without-gpm was given.
6841 if test "${with_gpm+set}" = set; then
6847 echo "$as_me:6847: result: $with_gpm" >&5
6848 echo "${ECHO_T}$with_gpm" >&6
6850 if test "$with_gpm" != no ; then
6851 echo "$as_me:6851: checking for gpm.h" >&5
6852 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6853 if test "${ac_cv_header_gpm_h+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 cat >"conftest.$ac_ext" <<_ACEOF
6857 #line 6857 "configure"
6858 #include "confdefs.h"
6861 if { (eval echo "$as_me:6861: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6862 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6864 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:6867: \$? = $ac_status" >&5
6868 (exit "$ac_status"); } >/dev/null; then
6869 if test -s conftest.err; then
6870 ac_cpp_err=$ac_c_preproc_warn_flag
6877 if test -z "$ac_cpp_err"; then
6878 ac_cv_header_gpm_h=yes
6880 echo "$as_me: failed program was:" >&5
6881 cat "conftest.$ac_ext" >&5
6882 ac_cv_header_gpm_h=no
6884 rm -f conftest.err "conftest.$ac_ext"
6886 echo "$as_me:6886: result: $ac_cv_header_gpm_h" >&5
6887 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6888 if test "$ac_cv_header_gpm_h" = yes; then
6890 cat >>confdefs.h <<\EOF
6891 #define HAVE_GPM_H 1
6894 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6895 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6897 echo "${as_me:-configure}:6897: testing assuming we really have GPM library ..." 1>&5
6899 cat >>confdefs.h <<\EOF
6900 #define HAVE_LIBGPM 1
6905 echo "$as_me:6905: checking for Gpm_Open in -lgpm" >&5
6906 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6907 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 ac_check_lib_save_LIBS=$LIBS
6912 cat >"conftest.$ac_ext" <<_ACEOF
6913 #line 6913 "configure"
6914 #include "confdefs.h"
6916 /* Override any gcc2 internal prototype to avoid an error. */
6920 /* We use char because int might match the return type of a gcc2
6921 builtin and then its argument prototype would still apply. */
6931 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6932 if { (eval echo "$as_me:6932: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>&5
6935 echo "$as_me:6935: \$? = $ac_status" >&5
6936 (exit "$ac_status"); } &&
6937 { ac_try='test -s "conftest$ac_exeext"'
6938 { (eval echo "$as_me:6938: \"$ac_try\"") >&5
6941 echo "$as_me:6941: \$? = $ac_status" >&5
6942 (exit "$ac_status"); }; }; then
6943 ac_cv_lib_gpm_Gpm_Open=yes
6945 echo "$as_me: failed program was:" >&5
6946 cat "conftest.$ac_ext" >&5
6947 ac_cv_lib_gpm_Gpm_Open=no
6949 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6950 LIBS=$ac_check_lib_save_LIBS
6952 echo "$as_me:6952: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6953 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6954 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
6958 if test "$with_gpm" = maybe; then
6959 { echo "$as_me:6959: WARNING: Cannot link with GPM library" >&5
6960 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6963 { { echo "$as_me:6963: error: Cannot link with GPM library" >&5
6964 echo "$as_me: error: Cannot link with GPM library" >&2;}
6965 { (exit 1); exit 1; }; }
6974 test "$with_gpm" != maybe && { echo "$as_me:6974: WARNING: Cannot find GPM header" >&5
6975 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6982 if test "$with_gpm" != no ; then
6983 echo "$as_me:6983: checking if you want to load GPM dynamically" >&5
6984 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6986 # Check whether --with-dlsym or --without-dlsym was given.
6987 if test "${with_dlsym+set}" = set; then
6988 withval="$with_dlsym"
6993 echo "$as_me:6993: result: $with_dlsym" >&5
6994 echo "${ECHO_T}$with_dlsym" >&6
6995 if test "x$with_dlsym" = xyes ; then
6998 echo "$as_me:6998: checking for dlsym" >&5
6999 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7000 if test "${ac_cv_func_dlsym+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 cat >"conftest.$ac_ext" <<_ACEOF
7004 #line 7004 "configure"
7005 #include "confdefs.h"
7006 #define dlsym autoconf_temporary
7007 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7022 /* The GNU C library defines stubs for functions which it implements
7023 to always fail with ENOSYS. Some functions are actually named
7024 something starting with __ and the normal name is an alias. */
7025 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7026 #error found stub for dlsym
7034 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7035 if { (eval echo "$as_me:7035: \"$ac_link\"") >&5
7036 (eval $ac_link) 2>&5
7038 echo "$as_me:7038: \$? = $ac_status" >&5
7039 (exit "$ac_status"); } &&
7040 { ac_try='test -s "conftest$ac_exeext"'
7041 { (eval echo "$as_me:7041: \"$ac_try\"") >&5
7044 echo "$as_me:7044: \$? = $ac_status" >&5
7045 (exit "$ac_status"); }; }; then
7046 ac_cv_func_dlsym=yes
7048 echo "$as_me: failed program was:" >&5
7049 cat "conftest.$ac_ext" >&5
7052 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7054 echo "$as_me:7054: result: $ac_cv_func_dlsym" >&5
7055 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7056 if test "$ac_cv_func_dlsym" = yes; then
7061 echo "$as_me:7061: checking for dlsym in -ldl" >&5
7062 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7063 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 ac_check_lib_save_LIBS=$LIBS
7068 cat >"conftest.$ac_ext" <<_ACEOF
7069 #line 7069 "configure"
7070 #include "confdefs.h"
7072 /* Override any gcc2 internal prototype to avoid an error. */
7076 /* We use char because int might match the return type of a gcc2
7077 builtin and then its argument prototype would still apply. */
7087 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7088 if { (eval echo "$as_me:7088: \"$ac_link\"") >&5
7089 (eval $ac_link) 2>&5
7091 echo "$as_me:7091: \$? = $ac_status" >&5
7092 (exit "$ac_status"); } &&
7093 { ac_try='test -s "conftest$ac_exeext"'
7094 { (eval echo "$as_me:7094: \"$ac_try\"") >&5
7097 echo "$as_me:7097: \$? = $ac_status" >&5
7098 (exit "$ac_status"); }; }; then
7099 ac_cv_lib_dl_dlsym=yes
7101 echo "$as_me: failed program was:" >&5
7102 cat "conftest.$ac_ext" >&5
7103 ac_cv_lib_dl_dlsym=no
7105 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7106 LIBS=$ac_check_lib_save_LIBS
7108 echo "$as_me:7108: result: $ac_cv_lib_dl_dlsym" >&5
7109 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7110 if test "$ac_cv_lib_dl_dlsym" = yes; then
7118 if test "$cf_have_dlsym" = yes ; then
7119 test "$cf_have_libdl" = yes && {
7123 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7125 for cf_add_1lib in $cf_add_0lib; do
7126 for cf_add_2lib in $cf_add_libs; do
7127 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7132 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7137 echo "$as_me:7137: checking whether able to link to dl*() functions" >&5
7138 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7139 cat >"conftest.$ac_ext" <<_ACEOF
7140 #line 7140 "configure"
7141 #include "confdefs.h"
7148 if ((obj = dlopen("filename", 0)) != 0) {
7149 if (dlsym(obj, "symbolname") == 0) {
7157 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7158 if { (eval echo "$as_me:7158: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7161 echo "$as_me:7161: \$? = $ac_status" >&5
7162 (exit "$ac_status"); } &&
7163 { ac_try='test -s "conftest$ac_exeext"'
7164 { (eval echo "$as_me:7164: \"$ac_try\"") >&5
7167 echo "$as_me:7167: \$? = $ac_status" >&5
7168 (exit "$ac_status"); }; }; then
7170 cat >>confdefs.h <<\EOF
7171 #define HAVE_LIBDL 1
7175 echo "$as_me: failed program was:" >&5
7176 cat "conftest.$ac_ext" >&5
7178 { { echo "$as_me:7178: error: Cannot link test program for libdl" >&5
7179 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7180 { (exit 1); exit 1; }; }
7182 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7183 echo "$as_me:7183: result: ok" >&5
7184 echo "${ECHO_T}ok" >&6
7186 { { echo "$as_me:7186: error: Cannot find dlsym function" >&5
7187 echo "$as_me: error: Cannot find dlsym function" >&2;}
7188 { (exit 1); exit 1; }; }
7191 if test "x$with_gpm" != xyes ; then
7192 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7194 echo "${as_me:-configure}:7194: testing assuming soname for gpm is $with_gpm ..." 1>&5
7196 cf_cv_gpm_soname="$with_gpm"
7199 echo "$as_me:7199: checking for soname of gpm library" >&5
7200 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7201 if test "${cf_cv_gpm_soname+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cf_cv_gpm_soname=unknown
7206 if test "$cross_compiling" != yes ; then
7207 cat >conftest.$ac_ext <<CF_EOF
7211 if (Gpm_Open(0,0)) Gpm_Close();
7212 ${cf_cv_main_return:-return}(0);
7215 cf_save_LIBS="$LIBS"
7220 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7222 for cf_add_1lib in $cf_add_0lib; do
7223 for cf_add_2lib in $cf_add_libs; do
7224 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7229 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7233 if { (eval echo "$as_me:7233: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>&5
7236 echo "$as_me:7236: \$? = $ac_status" >&5
7237 (exit "$ac_status"); } ; then
7238 if { (eval echo "$as_me:7238: \"$ac_link\"") >&5
7239 (eval $ac_link) 2>&5
7241 echo "$as_me:7241: \$? = $ac_status" >&5
7242 (exit "$ac_status"); } ; then
7243 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7244 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7248 LIBS="$cf_save_LIBS"
7252 echo "$as_me:7252: result: $cf_cv_gpm_soname" >&5
7253 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7256 test "$cf_cv_gpm_soname" != "unknown" &&
7257 cat >>confdefs.h <<EOF
7258 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7261 SHLIB_LIST="-ldl $SHLIB_LIST"
7263 cf_add_libs="$PRIVATE_LIBS"
7266 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7268 for cf_add_1lib in $cf_add_0lib; do
7269 for cf_add_2lib in $cf_add_libs; do
7270 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7275 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7277 PRIVATE_LIBS="$cf_add_libs"
7280 SHLIB_LIST="-lgpm $SHLIB_LIST"
7282 cf_add_libs="$TEST_LIBS"
7285 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7287 for cf_add_1lib in $cf_add_0lib; do
7288 for cf_add_2lib in $cf_add_libs; do
7289 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7294 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7296 TEST_LIBS="$cf_add_libs"
7298 cf_add_libs="$PRIVATE_LIBS"
7301 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7303 for cf_add_1lib in $cf_add_0lib; do
7304 for cf_add_2lib in $cf_add_libs; do
7305 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7310 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7312 PRIVATE_LIBS="$cf_add_libs"
7316 cat >>confdefs.h <<\EOF
7317 #define HAVE_LIBGPM 1
7320 echo "$as_me:7320: checking for Gpm_Wgetch in -lgpm" >&5
7321 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7322 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 ac_check_lib_save_LIBS=$LIBS
7327 cat >"conftest.$ac_ext" <<_ACEOF
7328 #line 7328 "configure"
7329 #include "confdefs.h"
7331 /* Override any gcc2 internal prototype to avoid an error. */
7335 /* We use char because int might match the return type of a gcc2
7336 builtin and then its argument prototype would still apply. */
7346 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7347 if { (eval echo "$as_me:7347: \"$ac_link\"") >&5
7348 (eval $ac_link) 2>&5
7350 echo "$as_me:7350: \$? = $ac_status" >&5
7351 (exit "$ac_status"); } &&
7352 { ac_try='test -s "conftest$ac_exeext"'
7353 { (eval echo "$as_me:7353: \"$ac_try\"") >&5
7356 echo "$as_me:7356: \$? = $ac_status" >&5
7357 (exit "$ac_status"); }; }; then
7358 ac_cv_lib_gpm_Gpm_Wgetch=yes
7360 echo "$as_me: failed program was:" >&5
7361 cat "conftest.$ac_ext" >&5
7362 ac_cv_lib_gpm_Gpm_Wgetch=no
7364 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7365 LIBS=$ac_check_lib_save_LIBS
7367 echo "$as_me:7367: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7368 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7369 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7371 echo "$as_me:7371: checking if GPM is weakly bound to curses library" >&5
7372 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7373 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 cf_cv_check_gpm_wgetch=unknown
7378 if test "$cross_compiling" != yes ; then
7380 cat >conftest.$ac_ext <<CF_EOF
7385 ${cf_cv_main_return:-return}(0);
7389 cf_save_LIBS="$LIBS"
7390 # This only works if we can look at the symbol table. If a shared
7391 # library is stripped for install, we cannot use that. So we're forced
7392 # to rely on the static library, noting that some packagers may not
7394 LIBS="-static -lgpm -dynamic $LIBS"
7395 if { (eval echo "$as_me:7395: \"$ac_compile\"") >&5
7396 (eval $ac_compile) 2>&5
7398 echo "$as_me:7398: \$? = $ac_status" >&5
7399 (exit "$ac_status"); } ; then
7400 if { (eval echo "$as_me:7400: \"$ac_link\"") >&5
7401 (eval $ac_link) 2>&5
7403 echo "$as_me:7403: \$? = $ac_status" >&5
7404 (exit "$ac_status"); } ; then
7405 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
7406 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7407 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7411 LIBS="$cf_save_LIBS"
7415 echo "$as_me:7415: result: $cf_cv_check_gpm_wgetch" >&5
7416 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7418 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7419 { echo "$as_me:7419: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7420 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7427 echo "$as_me:7427: checking if you want to use PCRE2 for regular-expressions" >&5
7428 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7430 # Check whether --with-pcre2 or --without-pcre2 was given.
7431 if test "${with_pcre2+set}" = set; then
7432 withval="$with_pcre2"
7435 test -z "$with_pcre2" && with_pcre2=no
7436 echo "$as_me:7436: result: $with_pcre2" >&5
7437 echo "${ECHO_T}$with_pcre2" >&6
7439 if test "x$with_pcre2" != xno ; then
7441 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre2"; then
7442 test -n "$verbose" && echo " found package libpcre2" 1>&6
7444 echo "${as_me:-configure}:7444: testing found package libpcre2 ..." 1>&5
7446 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre2" 2>/dev/null`"
7447 cf_pkgconfig_libs="`$PKG_CONFIG --libs "libpcre2" 2>/dev/null`"
7448 test -n "$verbose" && echo " package libpcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7450 echo "${as_me:-configure}:7450: testing package libpcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7452 test -n "$verbose" && echo " package libpcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7454 echo "${as_me:-configure}:7454: testing package libpcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7459 cf_new_extra_cppflags=
7461 for cf_add_cflags in $cf_pkgconfig_incs
7463 case "$cf_fix_cppflags" in
7465 case "$cf_add_cflags" in
7466 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7467 case "$cf_add_cflags" in
7469 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7471 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7472 && test -z "${cf_tst_cflags}" \
7473 && cf_fix_cppflags=yes
7475 if test "$cf_fix_cppflags" = yes ; then
7477 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7478 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7481 elif test "${cf_tst_cflags}" = "\"'" ; then
7483 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7484 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7494 case "$cf_add_cflags" in
7496 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7498 CPPFLAGS=`echo "$CPPFLAGS" | \
7499 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7500 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7505 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7506 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7513 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7514 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7521 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7522 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7524 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7526 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7527 && test -z "${cf_tst_cflags}" \
7528 && cf_fix_cppflags=no
7533 if test -n "$cf_new_cflags" ; then
7535 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7536 CFLAGS="${CFLAGS}$cf_new_cflags"
7540 if test -n "$cf_new_cppflags" ; then
7542 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7543 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7547 if test -n "$cf_new_extra_cppflags" ; then
7549 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7550 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7557 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7559 for cf_add_1lib in $cf_add_0lib; do
7560 for cf_add_2lib in $cf_add_libs; do
7561 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7566 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7575 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre"; then
7576 test -n "$verbose" && echo " found package libpcre" 1>&6
7578 echo "${as_me:-configure}:7578: testing found package libpcre ..." 1>&5
7580 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`"
7581 cf_pkgconfig_libs="`$PKG_CONFIG --libs "libpcre" 2>/dev/null`"
7582 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
7584 echo "${as_me:-configure}:7584: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7586 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
7588 echo "${as_me:-configure}:7588: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
7593 cf_new_extra_cppflags=
7595 for cf_add_cflags in $cf_pkgconfig_incs
7597 case "$cf_fix_cppflags" in
7599 case "$cf_add_cflags" in
7600 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7601 case "$cf_add_cflags" in
7603 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7605 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7606 && test -z "${cf_tst_cflags}" \
7607 && cf_fix_cppflags=yes
7609 if test "$cf_fix_cppflags" = yes ; then
7611 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7612 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7615 elif test "${cf_tst_cflags}" = "\"'" ; then
7617 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7618 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7628 case "$cf_add_cflags" in
7630 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7632 CPPFLAGS=`echo "$CPPFLAGS" | \
7633 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7634 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7639 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7640 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7647 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7648 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7655 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7656 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7658 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7660 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7661 && test -z "${cf_tst_cflags}" \
7662 && cf_fix_cppflags=no
7667 if test -n "$cf_new_cflags" ; then
7669 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7670 CFLAGS="${CFLAGS}$cf_new_cflags"
7674 if test -n "$cf_new_cppflags" ; then
7676 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7677 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7681 if test -n "$cf_new_extra_cppflags" ; then
7683 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7684 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7691 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7693 for cf_add_1lib in $cf_add_0lib; do
7694 for cf_add_2lib in $cf_add_libs; do
7695 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7700 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7709 { { echo "$as_me:7709: error: Cannot find PCRE2 library" >&5
7710 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7711 { (exit 1); exit 1; }; }
7716 cat >>confdefs.h <<\EOF
7717 #define HAVE_LIB_PCRE2 1
7720 # if pkgconfig gave no results, look for the libraries directly
7722 (*pcre2-posix*|*pcreposix*)
7725 echo "$as_me:7725: checking for regcomp in -lpcre2-posix" >&5
7726 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7727 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 ac_check_lib_save_LIBS=$LIBS
7731 LIBS="-lpcre2-posix $LIBS"
7732 cat >"conftest.$ac_ext" <<_ACEOF
7733 #line 7733 "configure"
7734 #include "confdefs.h"
7736 /* Override any gcc2 internal prototype to avoid an error. */
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7751 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7752 if { (eval echo "$as_me:7752: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>&5
7755 echo "$as_me:7755: \$? = $ac_status" >&5
7756 (exit "$ac_status"); } &&
7757 { ac_try='test -s "conftest$ac_exeext"'
7758 { (eval echo "$as_me:7758: \"$ac_try\"") >&5
7761 echo "$as_me:7761: \$? = $ac_status" >&5
7762 (exit "$ac_status"); }; }; then
7763 ac_cv_lib_pcre2_posix_regcomp=yes
7765 echo "$as_me: failed program was:" >&5
7766 cat "conftest.$ac_ext" >&5
7767 ac_cv_lib_pcre2_posix_regcomp=no
7769 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7770 LIBS=$ac_check_lib_save_LIBS
7772 echo "$as_me:7772: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7773 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7774 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
7779 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7781 for cf_add_1lib in $cf_add_0lib; do
7782 for cf_add_2lib in $cf_add_libs; do
7783 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7788 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7793 echo "$as_me:7793: checking for regcomp in -lpcreposix" >&5
7794 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7795 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lpcreposix $LIBS"
7800 cat >"conftest.$ac_ext" <<_ACEOF
7801 #line 7801 "configure"
7802 #include "confdefs.h"
7804 /* Override any gcc2 internal prototype to avoid an error. */
7808 /* We use char because int might match the return type of a gcc2
7809 builtin and then its argument prototype would still apply. */
7819 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7820 if { (eval echo "$as_me:7820: \"$ac_link\"") >&5
7821 (eval $ac_link) 2>&5
7823 echo "$as_me:7823: \$? = $ac_status" >&5
7824 (exit "$ac_status"); } &&
7825 { ac_try='test -s "conftest$ac_exeext"'
7826 { (eval echo "$as_me:7826: \"$ac_try\"") >&5
7829 echo "$as_me:7829: \$? = $ac_status" >&5
7830 (exit "$ac_status"); }; }; then
7831 ac_cv_lib_pcreposix_regcomp=yes
7833 echo "$as_me: failed program was:" >&5
7834 cat "conftest.$ac_ext" >&5
7835 ac_cv_lib_pcreposix_regcomp=no
7837 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7838 LIBS=$ac_check_lib_save_LIBS
7840 echo "$as_me:7840: result: $ac_cv_lib_pcreposix_regcomp" >&5
7841 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7842 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
7847 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7849 for cf_add_1lib in $cf_add_0lib; do
7850 for cf_add_2lib in $cf_add_libs; do
7851 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7856 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7861 { { echo "$as_me:7861: error: Cannot find PCRE2 POSIX library" >&5
7862 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7863 { (exit 1); exit 1; }; }
7871 # either way, check for the library header files
7873 for ac_header in pcre2posix.h pcreposix.h
7875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 echo "$as_me:7876: checking for $ac_header" >&5
7877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 cat >"conftest.$ac_ext" <<_ACEOF
7882 #line 7882 "configure"
7883 #include "confdefs.h"
7884 #include <$ac_header>
7886 if { (eval echo "$as_me:7886: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7887 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7889 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7891 cat conftest.err >&5
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit "$ac_status"); } >/dev/null; then
7894 if test -s conftest.err; then
7895 ac_cpp_err=$ac_c_preproc_warn_flag
7902 if test -z "$ac_cpp_err"; then
7903 eval "$as_ac_Header=yes"
7905 echo "$as_me: failed program was:" >&5
7906 cat "conftest.$ac_ext" >&5
7907 eval "$as_ac_Header=no"
7909 rm -f conftest.err "conftest.$ac_ext"
7911 echo "$as_me:7911: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7912 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7913 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7914 cat >>confdefs.h <<EOF
7915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7923 # not everyone has "test -c"
7924 if test -c /dev/sysmouse 2>/dev/null ; then
7925 echo "$as_me:7925: checking if you want to use sysmouse" >&5
7926 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7928 # Check whether --with-sysmouse or --without-sysmouse was given.
7929 if test "${with_sysmouse+set}" = set; then
7930 withval="$with_sysmouse"
7931 cf_with_sysmouse=$withval
7933 cf_with_sysmouse=maybe
7935 if test "$cf_with_sysmouse" != no ; then
7936 cat >"conftest.$ac_ext" <<_ACEOF
7937 #line 7937 "configure"
7938 #include "confdefs.h"
7940 #include <osreldate.h>
7941 #if (__FreeBSD_version >= 400017)
7942 #include <sys/consio.h>
7943 #include <sys/fbio.h>
7945 #include <machine/console.h>
7952 struct mouse_info the_mouse;
7953 ioctl(0, CONS_MOUSECTL, &the_mouse);
7959 rm -f "conftest.$ac_objext"
7960 if { (eval echo "$as_me:7960: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>&5
7963 echo "$as_me:7963: \$? = $ac_status" >&5
7964 (exit "$ac_status"); } &&
7965 { ac_try='test -s "conftest.$ac_objext"'
7966 { (eval echo "$as_me:7966: \"$ac_try\"") >&5
7969 echo "$as_me:7969: \$? = $ac_status" >&5
7970 (exit "$ac_status"); }; }; then
7971 cf_with_sysmouse=yes
7973 echo "$as_me: failed program was:" >&5
7974 cat "conftest.$ac_ext" >&5
7977 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7979 echo "$as_me:7979: result: $cf_with_sysmouse" >&5
7980 echo "${ECHO_T}$cf_with_sysmouse" >&6
7981 test "$cf_with_sysmouse" = yes &&
7982 cat >>confdefs.h <<\EOF
7983 #define USE_SYSMOUSE 1
7988 # pretend that ncurses==ncursesw==ncursest
7989 echo "$as_me:7989: checking if you want to disable library suffixes" >&5
7990 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7992 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7993 if test "${enable_lib_suffixes+set}" = set; then
7994 enableval="$enable_lib_suffixes"
7995 test "$enableval" != no && enableval=yes
7996 if test "$enableval" != "yes" ; then
7997 disable_lib_suffixes=yes
7999 disable_lib_suffixes=no
8003 disable_lib_suffixes=no
8006 echo "$as_me:8006: result: $disable_lib_suffixes" >&5
8007 echo "${ECHO_T}$disable_lib_suffixes" >&6
8009 ### If we're building with rpath, try to link non-standard libs that way too.
8010 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8012 echo "$as_me:8012: checking if rpath-hack should be disabled" >&5
8013 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8015 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8016 if test "${enable_rpath_hack+set}" = set; then
8017 enableval="$enable_rpath_hack"
8018 test "$enableval" != no && enableval=yes
8019 if test "$enableval" != "yes" ; then
8020 enable_rpath_hack=no
8022 enable_rpath_hack=yes
8026 enable_rpath_hack=yes
8029 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8030 echo "$as_me:8030: result: $cf_disable_rpath_hack" >&5
8031 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8033 if test "$enable_rpath_hack" = yes ; then
8035 echo "$as_me:8035: checking for updated LDFLAGS" >&5
8036 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8037 if test -n "$LD_RPATH_OPT" ; then
8038 echo "$as_me:8038: result: maybe" >&5
8039 echo "${ECHO_T}maybe" >&6
8043 # Extract the first word of "$ac_prog", so it can be a program name with args.
8044 set dummy $ac_prog; ac_word=$2
8045 echo "$as_me:8045: checking for $ac_word" >&5
8046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8047 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 if test -n "$cf_ldd_prog"; then
8051 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8053 ac_save_IFS=$IFS; IFS=$ac_path_separator
8055 for ac_dir in $ac_dummy; do
8057 test -z "$ac_dir" && ac_dir=.
8058 $as_executable_p "$ac_dir/$ac_word" || continue
8059 ac_cv_prog_cf_ldd_prog="$ac_prog"
8060 echo "$as_me:8060: found $ac_dir/$ac_word" >&5
8066 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8067 if test -n "$cf_ldd_prog"; then
8068 echo "$as_me:8068: result: $cf_ldd_prog" >&5
8069 echo "${ECHO_T}$cf_ldd_prog" >&6
8071 echo "$as_me:8071: result: no" >&5
8072 echo "${ECHO_T}no" >&6
8075 test -n "$cf_ldd_prog" && break
8077 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8079 cf_rpath_list="/usr/lib /lib"
8080 if test "$cf_ldd_prog" != no
8084 cat >"conftest.$ac_ext" <<_ACEOF
8085 #line 8085 "configure"
8086 #include "confdefs.h"
8096 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8097 if { (eval echo "$as_me:8097: \"$ac_link\"") >&5
8098 (eval $ac_link) 2>&5
8100 echo "$as_me:8100: \$? = $ac_status" >&5
8101 (exit "$ac_status"); } &&
8102 { ac_try='test -s "conftest$ac_exeext"'
8103 { (eval echo "$as_me:8103: \"$ac_try\"") >&5
8106 echo "$as_me:8106: \$? = $ac_status" >&5
8107 (exit "$ac_status"); }; }; then
8108 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8109 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8111 echo "$as_me: failed program was:" >&5
8112 cat "conftest.$ac_ext" >&5
8114 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8116 # If we passed the link-test, but get a "not found" on a given library,
8117 # this could be due to inept reconfiguration of gcc to make it only
8118 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8119 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8120 # /usr/local libraries.
8121 if test -n "$cf_rpath_oops"
8123 for cf_rpath_src in $cf_rpath_oops
8125 for cf_rpath_dir in \
8130 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8132 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8134 echo "${as_me:-configure}:8134: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8136 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8144 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8146 echo "${as_me:-configure}:8146: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8148 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8150 echo "${as_me:-configure}:8150: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8153 for cf_rpath_src in $LDFLAGS
8155 case "$cf_rpath_src" in
8158 # check if this refers to a directory which we will ignore
8160 if test -n "$cf_rpath_list"
8162 for cf_rpath_item in $cf_rpath_list
8164 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8172 if test "$cf_rpath_skip" = no
8174 # transform the option
8175 if test "$LD_RPATH_OPT" = "-R " ; then
8176 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8178 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8181 # if we have not already added this, add it now
8182 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8183 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8185 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8187 echo "${as_me:-configure}:8187: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8189 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8194 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8196 LDFLAGS=$cf_rpath_dst
8198 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8200 echo "${as_me:-configure}:8200: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8202 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8204 echo "${as_me:-configure}:8204: testing ...checking LIBS $LIBS ..." 1>&5
8207 for cf_rpath_src in $LIBS
8209 case "$cf_rpath_src" in
8212 # check if this refers to a directory which we will ignore
8214 if test -n "$cf_rpath_list"
8216 for cf_rpath_item in $cf_rpath_list
8218 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8226 if test "$cf_rpath_skip" = no
8228 # transform the option
8229 if test "$LD_RPATH_OPT" = "-R " ; then
8230 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8232 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8235 # if we have not already added this, add it now
8236 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8237 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8239 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8241 echo "${as_me:-configure}:8241: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8243 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8248 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8252 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8254 echo "${as_me:-configure}:8254: testing ...checked LIBS $LIBS ..." 1>&5
8256 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8258 echo "${as_me:-configure}:8258: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8261 echo "$as_me:8261: result: no" >&5
8262 echo "${ECHO_T}no" >&6
8269 ### Depending on the system, someone may use rpath to build ncurses but not
8270 # want users of the package to rely upon that feature. Give those people an
8271 # option to suppress that detail from EXTRA_LDFLAGS.
8272 EXTRA_PKG_LDFLAGS="$EXTRA_LDFLAGS"
8273 if test -n "$EXTRA_PKG_LDFLAGS"
8275 echo "$as_me:8275: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8276 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8278 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8279 if test "${enable_pkg_ldflags+set}" = set; then
8280 enableval="$enable_pkg_ldflags"
8281 test "$enableval" != no && enableval=yes
8282 if test "$enableval" != "yes" ; then
8283 disable_pkg_ldflags=yes
8285 disable_pkg_ldflags=no
8289 disable_pkg_ldflags=no
8292 echo "$as_me:8292: result: $disable_pkg_ldflags" >&5
8293 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8294 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8297 ###############################################################################
8299 ### use option --with-extra-suffix to append suffix to headers and libraries
8300 echo "$as_me:8300: checking if you wish to append extra suffix to header/library paths" >&5
8301 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8304 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8305 if test "${with_extra_suffix+set}" = set; then
8306 withval="$with_extra_suffix"
8311 EXTRA_SUFFIX=$cf_cv_abi_version
8314 EXTRA_SUFFIX=$withval
8319 echo "$as_me:8319: result: $EXTRA_SUFFIX" >&5
8320 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8322 ### use option --disable-overwrite to leave out the link to -lcurses
8323 echo "$as_me:8323: checking if you wish to install ncurses overwriting curses" >&5
8324 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8326 # Check whether --enable-overwrite or --disable-overwrite was given.
8327 if test "${enable_overwrite+set}" = set; then
8328 enableval="$enable_overwrite"
8329 with_overwrite=$enableval
8331 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8333 echo "$as_me:8333: result: $with_overwrite" >&5
8334 echo "${ECHO_T}$with_overwrite" >&6
8336 echo "$as_me:8336: checking if external terminfo-database is used" >&5
8337 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8339 # Check whether --enable-database or --disable-database was given.
8340 if test "${enable_database+set}" = set; then
8341 enableval="$enable_database"
8342 use_database=$enableval
8346 echo "$as_me:8346: result: $use_database" >&5
8347 echo "${ECHO_T}$use_database" >&6
8351 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8354 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8358 NCURSES_USE_DATABASE=0
8359 if test "$use_database" != no ; then
8360 NCURSES_USE_DATABASE=1
8362 echo "$as_me:8362: checking which terminfo source-file will be installed" >&5
8363 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8365 # Check whether --with-database or --without-database was given.
8366 if test "${with_database+set}" = set; then
8367 withval="$with_database"
8368 TERMINFO_SRC=$withval
8370 echo "$as_me:8370: result: $TERMINFO_SRC" >&5
8371 echo "${ECHO_T}$TERMINFO_SRC" >&6
8373 echo "$as_me:8373: checking whether to use hashed database instead of directory/tree" >&5
8374 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8376 # Check whether --with-hashed-db or --without-hashed-db was given.
8377 if test "${with_hashed_db+set}" = set; then
8378 withval="$with_hashed_db"
8383 echo "$as_me:8383: result: $with_hashed_db" >&5
8384 echo "${ECHO_T}$with_hashed_db" >&6
8389 echo "$as_me:8389: checking for list of fallback descriptions" >&5
8390 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8392 # Check whether --with-fallbacks or --without-fallbacks was given.
8393 if test "${with_fallbacks+set}" = set; then
8394 withval="$with_fallbacks"
8395 with_fallback=$withval
8399 echo "$as_me:8399: result: $with_fallback" >&5
8400 echo "${ECHO_T}$with_fallback" >&6
8402 case ".$with_fallback" in
8407 { echo "$as_me:8407: WARNING: expected a list of terminal descriptions" >&5
8408 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8411 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8415 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8416 # tree for generating the terminal descriptions that will be compiled into the
8417 # library. If your toolchain is old, it may not handle current terminal
8418 # databases. Use configure-options to point to the tools which will be used,
8419 # rather than the first ones found on the $PATH.
8420 if test -n "$ac_tool_prefix"; then
8421 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8422 set dummy ${ac_tool_prefix}tic; ac_word=$2
8423 echo "$as_me:8423: checking for $ac_word" >&5
8424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8425 if test "${ac_cv_prog_TIC+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 if test -n "$TIC"; then
8429 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8431 ac_save_IFS=$IFS; IFS=$ac_path_separator
8433 for ac_dir in $ac_dummy; do
8435 test -z "$ac_dir" && ac_dir=.
8436 $as_executable_p "$ac_dir/$ac_word" || continue
8437 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8438 echo "$as_me:8438: found $ac_dir/$ac_word" >&5
8445 if test -n "$TIC"; then
8446 echo "$as_me:8446: result: $TIC" >&5
8447 echo "${ECHO_T}$TIC" >&6
8449 echo "$as_me:8449: result: no" >&5
8450 echo "${ECHO_T}no" >&6
8454 if test -z "$ac_cv_prog_TIC"; then
8456 # Extract the first word of "tic", so it can be a program name with args.
8457 set dummy tic; ac_word=$2
8458 echo "$as_me:8458: checking for $ac_word" >&5
8459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8460 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 if test -n "$ac_ct_TIC"; then
8464 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8466 ac_save_IFS=$IFS; IFS=$ac_path_separator
8468 for ac_dir in $ac_dummy; do
8470 test -z "$ac_dir" && ac_dir=.
8471 $as_executable_p "$ac_dir/$ac_word" || continue
8472 ac_cv_prog_ac_ct_TIC="tic"
8473 echo "$as_me:8473: found $ac_dir/$ac_word" >&5
8479 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8480 if test -n "$ac_ct_TIC"; then
8481 echo "$as_me:8481: result: $ac_ct_TIC" >&5
8482 echo "${ECHO_T}$ac_ct_TIC" >&6
8484 echo "$as_me:8484: result: no" >&5
8485 echo "${ECHO_T}no" >&6
8490 TIC="$ac_cv_prog_TIC"
8493 if test -n "$ac_tool_prefix"; then
8494 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8495 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8496 echo "$as_me:8496: checking for $ac_word" >&5
8497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8498 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 if test -n "$INFOCMP"; then
8502 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8504 ac_save_IFS=$IFS; IFS=$ac_path_separator
8506 for ac_dir in $ac_dummy; do
8508 test -z "$ac_dir" && ac_dir=.
8509 $as_executable_p "$ac_dir/$ac_word" || continue
8510 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8511 echo "$as_me:8511: found $ac_dir/$ac_word" >&5
8517 INFOCMP=$ac_cv_prog_INFOCMP
8518 if test -n "$INFOCMP"; then
8519 echo "$as_me:8519: result: $INFOCMP" >&5
8520 echo "${ECHO_T}$INFOCMP" >&6
8522 echo "$as_me:8522: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8527 if test -z "$ac_cv_prog_INFOCMP"; then
8528 ac_ct_INFOCMP=$INFOCMP
8529 # Extract the first word of "infocmp", so it can be a program name with args.
8530 set dummy infocmp; ac_word=$2
8531 echo "$as_me:8531: checking for $ac_word" >&5
8532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8533 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 if test -n "$ac_ct_INFOCMP"; then
8537 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8539 ac_save_IFS=$IFS; IFS=$ac_path_separator
8541 for ac_dir in $ac_dummy; do
8543 test -z "$ac_dir" && ac_dir=.
8544 $as_executable_p "$ac_dir/$ac_word" || continue
8545 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8546 echo "$as_me:8546: found $ac_dir/$ac_word" >&5
8552 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8553 if test -n "$ac_ct_INFOCMP"; then
8554 echo "$as_me:8554: result: $ac_ct_INFOCMP" >&5
8555 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8557 echo "$as_me:8557: result: no" >&5
8558 echo "${ECHO_T}no" >&6
8561 INFOCMP=$ac_ct_INFOCMP
8563 INFOCMP="$ac_cv_prog_INFOCMP"
8566 if test -n "$FALLBACK_LIST"
8569 # Check whether --with-tic-path or --without-tic-path was given.
8570 if test "${with_tic_path+set}" = set; then
8571 withval="$with_tic_path"
8572 echo "$as_me:8572: checking for tic program for fallbacks" >&5
8573 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8575 echo "$as_me:8575: result: $TIC" >&5
8576 echo "${ECHO_T}$TIC" >&6
8578 if test "x$prefix" != xNONE; then
8579 cf_path_syntax="$prefix"
8581 cf_path_syntax="$ac_default_prefix"
8589 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8591 (.\$\{*prefix\}*|.\$\{*dir\}*)
8595 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8600 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8603 { { echo "$as_me:8603: error: expected a pathname, not \"$TIC\"" >&5
8604 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8605 { (exit 1); exit 1; }; }
8611 test -z "$TIC" && TIC="tic"
8612 for ac_prog in $TIC tic
8614 # Extract the first word of "$ac_prog", so it can be a program name with args.
8615 set dummy $ac_prog; ac_word=$2
8616 echo "$as_me:8616: checking for $ac_word" >&5
8617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8618 if test "${ac_cv_path_TIC+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8626 ac_save_IFS=$IFS; IFS=$ac_path_separator
8627 ac_dummy="$PATH:/usr/local/ncurses/bin"
8628 for ac_dir in $ac_dummy; do
8630 test -z "$ac_dir" && ac_dir=.
8631 if $as_executable_p "$ac_dir/$ac_word"; then
8632 ac_cv_path_TIC="$ac_dir/$ac_word"
8633 echo "$as_me:8633: found $ac_dir/$ac_word" >&5
8643 if test -n "$TIC"; then
8644 echo "$as_me:8644: result: $TIC" >&5
8645 echo "${ECHO_T}$TIC" >&6
8647 echo "$as_me:8647: result: no" >&5
8648 echo "${ECHO_T}no" >&6
8651 test -n "$TIC" && break
8653 test -n "$TIC" || TIC="$TIC"
8657 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8658 for cf_temp in $ac_cv_path_TIC
8660 if test -z "$cf_path_prog" ; then
8661 if test "$with_full_paths" = yes ; then
8663 if test "x$prefix" != xNONE; then
8664 cf_path_syntax="$prefix"
8666 cf_path_syntax="$ac_default_prefix"
8674 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8676 (.\$\{*prefix\}*|.\$\{*dir\}*)
8677 eval cf_temp="$cf_temp"
8680 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8685 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8692 cf_path_prog="$cf_temp"
8694 cf_path_prog="`basename "$cf_temp"`"
8696 elif test -z "$cf_path_args" ; then
8697 cf_path_args="$cf_temp"
8699 cf_path_args="$cf_path_args $cf_temp"
8704 if test -n "$cf_path_prog" ; then
8706 echo "${as_me:-configure}:8706: testing defining path for ${cf_path_prog} ..." 1>&5
8708 cat >>confdefs.h <<EOF
8709 #define TIC_PATH "$cf_path_prog"
8712 test -n "$cf_path_args" &&
8713 cat >>confdefs.h <<EOF
8714 #define TIC_ARGS "$cf_path_args"
8721 { echo "$as_me:8721: WARNING: no tic program found for fallbacks" >&5
8722 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8727 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8728 if test "${with_infocmp_path+set}" = set; then
8729 withval="$with_infocmp_path"
8730 echo "$as_me:8730: checking for infocmp program for fallbacks" >&5
8731 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8733 echo "$as_me:8733: result: $INFOCMP" >&5
8734 echo "${ECHO_T}$INFOCMP" >&6
8736 if test "x$prefix" != xNONE; then
8737 cf_path_syntax="$prefix"
8739 cf_path_syntax="$ac_default_prefix"
8747 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8749 (.\$\{*prefix\}*|.\$\{*dir\}*)
8750 eval INFOCMP="$INFOCMP"
8753 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8758 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8761 { { echo "$as_me:8761: error: expected a pathname, not \"$INFOCMP\"" >&5
8762 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8763 { (exit 1); exit 1; }; }
8769 test -z "$INFOCMP" && INFOCMP="infocmp"
8770 for ac_prog in $INFOCMP infocmp
8772 # Extract the first word of "$ac_prog", so it can be a program name with args.
8773 set dummy $ac_prog; ac_word=$2
8774 echo "$as_me:8774: checking for $ac_word" >&5
8775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8776 if test "${ac_cv_path_INFOCMP+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8784 ac_save_IFS=$IFS; IFS=$ac_path_separator
8785 ac_dummy="$PATH:/usr/local/ncurses/bin"
8786 for ac_dir in $ac_dummy; do
8788 test -z "$ac_dir" && ac_dir=.
8789 if $as_executable_p "$ac_dir/$ac_word"; then
8790 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8791 echo "$as_me:8791: found $ac_dir/$ac_word" >&5
8799 INFOCMP=$ac_cv_path_INFOCMP
8801 if test -n "$INFOCMP"; then
8802 echo "$as_me:8802: result: $INFOCMP" >&5
8803 echo "${ECHO_T}$INFOCMP" >&6
8805 echo "$as_me:8805: result: no" >&5
8806 echo "${ECHO_T}no" >&6
8809 test -n "$INFOCMP" && break
8811 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8815 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8816 for cf_temp in $ac_cv_path_INFOCMP
8818 if test -z "$cf_path_prog" ; then
8819 if test "$with_full_paths" = yes ; then
8821 if test "x$prefix" != xNONE; then
8822 cf_path_syntax="$prefix"
8824 cf_path_syntax="$ac_default_prefix"
8832 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8834 (.\$\{*prefix\}*|.\$\{*dir\}*)
8835 eval cf_temp="$cf_temp"
8838 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8843 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8850 cf_path_prog="$cf_temp"
8852 cf_path_prog="`basename "$cf_temp"`"
8854 elif test -z "$cf_path_args" ; then
8855 cf_path_args="$cf_temp"
8857 cf_path_args="$cf_path_args $cf_temp"
8862 if test -n "$cf_path_prog" ; then
8864 echo "${as_me:-configure}:8864: testing defining path for ${cf_path_prog} ..." 1>&5
8866 cat >>confdefs.h <<EOF
8867 #define INFOCMP_PATH "$cf_path_prog"
8870 test -n "$cf_path_args" &&
8871 cat >>confdefs.h <<EOF
8872 #define INFOCMP_ARGS "$cf_path_args"
8877 if test -z "$INFOCMP"
8879 { echo "$as_me:8879: WARNING: no infocmp program found for fallbacks" >&5
8880 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8885 test -z "$TIC" && FALLBACK_LIST=
8886 test -z "$INFOCMP" && FALLBACK_LIST=
8887 if test -z "$FALLBACK_LIST"
8889 { echo "$as_me:8889: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8890 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8895 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8897 echo "$as_me:8897: checking if you want modern xterm or antique" >&5
8898 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8900 # Check whether --with-xterm-new or --without-xterm-new was given.
8901 if test "${with_xterm_new+set}" = set; then
8902 withval="$with_xterm_new"
8903 with_xterm_new=$withval
8907 case "$with_xterm_new" in
8908 (no) with_xterm_new=xterm-old;;
8909 (*) with_xterm_new=xterm-new;;
8911 echo "$as_me:8911: result: $with_xterm_new" >&5
8912 echo "${ECHO_T}$with_xterm_new" >&6
8913 WHICH_XTERM=$with_xterm_new
8915 echo "$as_me:8915: checking if xterm backspace sends BS or DEL" >&5
8916 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8918 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8919 if test "${with_xterm_kbs+set}" = set; then
8920 withval="$with_xterm_kbs"
8921 with_xterm_kbs=$withval
8925 case x$with_xterm_kbs in
8926 (xyes|xno|xBS|xbs|x8)
8933 with_xterm_kbs=$withval
8936 echo "$as_me:8936: result: $with_xterm_kbs" >&5
8937 echo "${ECHO_T}$with_xterm_kbs" >&6
8938 XTERM_KBS=$with_xterm_kbs
8941 if test "$use_database" = no ; then
8942 TERMINFO="${datadir}/terminfo"
8946 echo "$as_me:8946: checking for list of terminfo directories" >&5
8947 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8949 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8950 if test "${with_terminfo_dirs+set}" = set; then
8951 withval="$with_terminfo_dirs"
8954 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8956 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8958 for cf_src_path in $withval
8961 if test "x$prefix" != xNONE; then
8962 cf_path_syntax="$prefix"
8964 cf_path_syntax="$ac_default_prefix"
8967 case ".$cf_src_path" in
8972 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8974 (.\$\{*prefix\}*|.\$\{*dir\}*)
8975 eval cf_src_path="$cf_src_path"
8976 case ".$cf_src_path" in
8978 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
8983 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
8986 { { echo "$as_me:8986: error: expected a pathname, not \"$cf_src_path\"" >&5
8987 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8988 { (exit 1); exit 1; }; }
8992 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8993 cf_dst_path="${cf_dst_path}${cf_src_path}"
8997 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8998 # so we have to check/work around. We do prefer the result of "eval"...
8999 eval cf_dst_eval="$cf_dst_path"
9000 case "x$cf_dst_eval" in
9002 TERMINFO_DIRS=$cf_dst_path
9005 TERMINFO_DIRS="$cf_dst_eval"
9009 echo "$as_me:9009: result: $TERMINFO_DIRS" >&5
9010 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9011 test -n "$TERMINFO_DIRS" &&
9012 cat >>confdefs.h <<EOF
9013 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9016 case "x$TERMINFO" in
9018 { echo "$as_me:9018: WARNING: ignoring non-directory/file TERMINFO value" >&5
9019 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9024 echo "$as_me:9024: checking for default terminfo directory" >&5
9025 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9027 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9028 if test "${with_default_terminfo_dir+set}" = set; then
9029 withval="$with_default_terminfo_dir"
9032 withval="${TERMINFO:-${datadir}/terminfo}"
9033 fi; if test -n "${datadir}/terminfo" ; then
9035 if test "x$prefix" != xNONE; then
9036 cf_path_syntax="$prefix"
9038 cf_path_syntax="$ac_default_prefix"
9046 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9048 (.\$\{*prefix\}*|.\$\{*dir\}*)
9049 eval withval="$withval"
9052 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9057 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9060 { { echo "$as_me:9060: error: expected a pathname, not \"$withval\"" >&5
9061 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9062 { (exit 1); exit 1; }; }
9067 eval TERMINFO="$withval"
9069 echo "$as_me:9069: result: $TERMINFO" >&5
9070 echo "${ECHO_T}$TERMINFO" >&6
9072 cat >>confdefs.h <<EOF
9073 #define TERMINFO "$TERMINFO"
9078 ### use option --disable-big-core to make tic run on small machines
9079 ### We need 4Mb, check if we can allocate 50% more than that.
9080 echo "$as_me:9080: checking if big-core option selected" >&5
9081 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9083 # Check whether --enable-big-core or --disable-big-core was given.
9084 if test "${enable_big_core+set}" = set; then
9085 enableval="$enable_big_core"
9086 with_big_core=$enableval
9088 if test "$cross_compiling" = yes; then
9091 cat >"conftest.$ac_ext" <<_ACEOF
9092 #line 9092 "configure"
9093 #include "confdefs.h"
9098 unsigned long n = 6000000L;
9099 char *s = malloc(n);
9102 ${cf_cv_main_return:-return}(s == 0);
9105 rm -f "conftest$ac_exeext"
9106 if { (eval echo "$as_me:9106: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5
9109 echo "$as_me:9109: \$? = $ac_status" >&5
9110 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9111 { (eval echo "$as_me:9111: \"$ac_try\"") >&5
9114 echo "$as_me:9114: \$? = $ac_status" >&5
9115 (exit "$ac_status"); }; }; then
9118 echo "$as_me: program exited with status $ac_status" >&5
9119 echo "$as_me: failed program was:" >&5
9120 cat "conftest.$ac_ext" >&5
9123 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9126 echo "$as_me:9126: result: $with_big_core" >&5
9127 echo "${ECHO_T}$with_big_core" >&6
9128 test "x$with_big_core" = "xyes" &&
9129 cat >>confdefs.h <<\EOF
9130 #define HAVE_BIG_CORE 1
9133 ### ISO C only guarantees 512-char strings, we have tables which load faster
9134 ### when constructed using "big" strings. More than the C compiler, the awk
9135 ### program is a limit on most vendor UNIX systems. Check that we can build.
9136 echo "$as_me:9136: checking if big-strings option selected" >&5
9137 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9139 # Check whether --enable-big-strings or --disable-big-strings was given.
9140 if test "${enable_big_strings+set}" = set; then
9141 enableval="$enable_big_strings"
9142 with_big_strings=$enableval
9147 eval with_big_strings=no
9150 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9151 | $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
9152 eval with_big_strings=yes
9154 eval with_big_strings=no
9160 echo "$as_me:9160: result: $with_big_strings" >&5
9161 echo "${ECHO_T}$with_big_strings" >&6
9164 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9166 ### use option --enable-termcap to compile in the termcap fallback support
9167 echo "$as_me:9167: checking if you want termcap-fallback support" >&5
9168 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9170 # Check whether --enable-termcap or --disable-termcap was given.
9171 if test "${enable_termcap+set}" = set; then
9172 enableval="$enable_termcap"
9173 with_termcap=$enableval
9177 echo "$as_me:9177: result: $with_termcap" >&5
9178 echo "${ECHO_T}$with_termcap" >&6
9180 NCURSES_USE_TERMCAP=0
9181 if test "x$with_termcap" != "xyes" ; then
9182 if test "$use_database" = no ; then
9183 if test -z "$with_fallback" ; then
9184 { { echo "$as_me:9184: error: You have disabled the database w/o specifying fallbacks" >&5
9185 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9186 { (exit 1); exit 1; }; }
9190 cat >>confdefs.h <<\EOF
9191 #define PURE_TERMINFO 1
9196 if test "$with_ticlib" != no ; then
9197 { { echo "$as_me:9197: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9198 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9199 { (exit 1); exit 1; }; }
9202 NCURSES_USE_TERMCAP=1
9203 echo "$as_me:9203: checking for list of termcap files" >&5
9204 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9206 # Check whether --with-termpath or --without-termpath was given.
9207 if test "${with_termpath+set}" = set; then
9208 withval="$with_termpath"
9211 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9213 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9215 for cf_src_path in $withval
9218 if test "x$prefix" != xNONE; then
9219 cf_path_syntax="$prefix"
9221 cf_path_syntax="$ac_default_prefix"
9224 case ".$cf_src_path" in
9229 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9231 (.\$\{*prefix\}*|.\$\{*dir\}*)
9232 eval cf_src_path="$cf_src_path"
9233 case ".$cf_src_path" in
9235 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9240 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9243 { { echo "$as_me:9243: error: expected a pathname, not \"$cf_src_path\"" >&5
9244 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9245 { (exit 1); exit 1; }; }
9249 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9250 cf_dst_path="${cf_dst_path}${cf_src_path}"
9254 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9255 # so we have to check/work around. We do prefer the result of "eval"...
9256 eval cf_dst_eval="$cf_dst_path"
9257 case "x$cf_dst_eval" in
9259 TERMPATH=$cf_dst_path
9262 TERMPATH="$cf_dst_eval"
9266 echo "$as_me:9266: result: $TERMPATH" >&5
9267 echo "${ECHO_T}$TERMPATH" >&6
9268 test -n "$TERMPATH" &&
9269 cat >>confdefs.h <<EOF
9270 #define TERMPATH "$TERMPATH"
9273 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9274 echo "$as_me:9274: checking if fast termcap-loader is needed" >&5
9275 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9277 # Check whether --enable-getcap or --disable-getcap was given.
9278 if test "${enable_getcap+set}" = set; then
9279 enableval="$enable_getcap"
9280 with_getcap=$enableval
9284 echo "$as_me:9284: result: $with_getcap" >&5
9285 echo "${ECHO_T}$with_getcap" >&6
9286 test "x$with_getcap" = "xyes" &&
9287 cat >>confdefs.h <<\EOF
9288 #define USE_GETCAP 1
9291 echo "$as_me:9291: checking if translated termcaps will be cached in ~/.terminfo" >&5
9292 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9294 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9295 if test "${enable_getcap_cache+set}" = set; then
9296 enableval="$enable_getcap_cache"
9297 with_getcap_cache=$enableval
9299 with_getcap_cache=no
9301 echo "$as_me:9301: result: $with_getcap_cache" >&5
9302 echo "${ECHO_T}$with_getcap_cache" >&6
9303 test "x$with_getcap_cache" = "xyes" &&
9304 cat >>confdefs.h <<\EOF
9305 #define USE_GETCAP_CACHE 1
9310 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9311 echo "$as_me:9311: checking if ~/.terminfo is wanted" >&5
9312 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9314 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9315 if test "${enable_home_terminfo+set}" = set; then
9316 enableval="$enable_home_terminfo"
9317 with_home_terminfo=$enableval
9319 with_home_terminfo=yes
9321 echo "$as_me:9321: result: $with_home_terminfo" >&5
9322 echo "${ECHO_T}$with_home_terminfo" >&6
9323 test "x$with_home_terminfo" = "xyes" &&
9324 cat >>confdefs.h <<\EOF
9325 #define USE_HOME_TERMINFO 1
9328 echo "$as_me:9328: checking if you want to use restricted environment when running as root" >&5
9329 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
9331 # Check whether --enable-root-environ or --disable-root-environ was given.
9332 if test "${enable_root_environ+set}" = set; then
9333 enableval="$enable_root_environ"
9334 with_root_environ=$enableval
9336 with_root_environ=yes
9338 echo "$as_me:9338: result: $with_root_environ" >&5
9339 echo "${ECHO_T}$with_root_environ" >&6
9340 test "x$with_root_environ" = xyes &&
9341 cat >>confdefs.h <<\EOF
9342 #define USE_ROOT_ENVIRON 1
9345 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9346 ### to reduce storage requirements for the terminfo database.
9352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 echo "$as_me:9353: checking for $ac_header" >&5
9354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >"conftest.$ac_ext" <<_ACEOF
9359 #line 9359 "configure"
9360 #include "confdefs.h"
9361 #include <$ac_header>
9363 if { (eval echo "$as_me:9363: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9364 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9366 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9368 cat conftest.err >&5
9369 echo "$as_me:9369: \$? = $ac_status" >&5
9370 (exit "$ac_status"); } >/dev/null; then
9371 if test -s conftest.err; then
9372 ac_cpp_err=$ac_c_preproc_warn_flag
9379 if test -z "$ac_cpp_err"; then
9380 eval "$as_ac_Header=yes"
9382 echo "$as_me: failed program was:" >&5
9383 cat "conftest.$ac_ext" >&5
9384 eval "$as_ac_Header=no"
9386 rm -f conftest.err "conftest.$ac_ext"
9388 echo "$as_me:9388: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9389 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9390 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9391 cat >>confdefs.h <<EOF
9392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9403 echo "$as_me:9403: checking for $ac_func" >&5
9404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9405 if eval "test \"\${$as_ac_var+set}\" = set"; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 cat >"conftest.$ac_ext" <<_ACEOF
9409 #line 9409 "configure"
9410 #include "confdefs.h"
9411 #define $ac_func autoconf_temporary
9412 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9419 /* We use char because int might match the return type of a gcc2
9420 builtin and then its argument prototype would still apply. */
9421 char $ac_func (void);
9427 /* The GNU C library defines stubs for functions which it implements
9428 to always fail with ENOSYS. Some functions are actually named
9429 something starting with __ and the normal name is an alias. */
9430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9431 #error found stub for $ac_func
9439 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9440 if { (eval echo "$as_me:9440: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>&5
9443 echo "$as_me:9443: \$? = $ac_status" >&5
9444 (exit "$ac_status"); } &&
9445 { ac_try='test -s "conftest$ac_exeext"'
9446 { (eval echo "$as_me:9446: \"$ac_try\"") >&5
9449 echo "$as_me:9449: \$? = $ac_status" >&5
9450 (exit "$ac_status"); }; }; then
9451 eval "$as_ac_var=yes"
9453 echo "$as_me: failed program was:" >&5
9454 cat "conftest.$ac_ext" >&5
9455 eval "$as_ac_var=no"
9457 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9459 echo "$as_me:9459: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9460 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9461 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9462 cat >>confdefs.h <<EOF
9463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9469 if test "$cross_compiling" = yes ; then
9475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9476 echo "$as_me:9476: checking for $ac_func" >&5
9477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9478 if eval "test \"\${$as_ac_var+set}\" = set"; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 cat >"conftest.$ac_ext" <<_ACEOF
9482 #line 9482 "configure"
9483 #include "confdefs.h"
9484 #define $ac_func autoconf_temporary
9485 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9494 char $ac_func (void);
9500 /* The GNU C library defines stubs for functions which it implements
9501 to always fail with ENOSYS. Some functions are actually named
9502 something starting with __ and the normal name is an alias. */
9503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9504 #error found stub for $ac_func
9512 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9513 if { (eval echo "$as_me:9513: \"$ac_link\"") >&5
9514 (eval $ac_link) 2>&5
9516 echo "$as_me:9516: \$? = $ac_status" >&5
9517 (exit "$ac_status"); } &&
9518 { ac_try='test -s "conftest$ac_exeext"'
9519 { (eval echo "$as_me:9519: \"$ac_try\"") >&5
9522 echo "$as_me:9522: \$? = $ac_status" >&5
9523 (exit "$ac_status"); }; }; then
9524 eval "$as_ac_var=yes"
9526 echo "$as_me: failed program was:" >&5
9527 cat "conftest.$ac_ext" >&5
9528 eval "$as_ac_var=no"
9530 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9532 echo "$as_me:9532: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9533 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9534 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9535 cat >>confdefs.h <<EOF
9536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9543 echo "$as_me:9543: checking if link/symlink functions work" >&5
9544 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9545 if test "${cf_cv_link_funcs+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 for cf_func in link symlink ; do
9551 if test "$cross_compiling" = yes; then
9553 eval 'ac_cv_func_'$cf_func'=error'
9555 cat >"conftest.$ac_ext" <<_ACEOF
9556 #line 9556 "configure"
9557 #include "confdefs.h"
9559 #include <sys/types.h>
9560 #include <sys/stat.h>
9561 #ifdef HAVE_UNISTD_H
9567 char *src = "config.log";
9568 char *dst = "conftest.chk";
9573 fail = ($cf_func("config.log", "conftest.chk") < 0)
9574 || (stat(dst, &dst_sb) < 0)
9575 || (dst_sb.st_mtime != src_sb.st_mtime);
9581 ${cf_cv_main_return:-return} (fail);
9585 rm -f "conftest$ac_exeext"
9586 if { (eval echo "$as_me:9586: \"$ac_link\"") >&5
9587 (eval $ac_link) 2>&5
9589 echo "$as_me:9589: \$? = $ac_status" >&5
9590 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9591 { (eval echo "$as_me:9591: \"$ac_try\"") >&5
9594 echo "$as_me:9594: \$? = $ac_status" >&5
9595 (exit "$ac_status"); }; }; then
9597 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9598 eval 'ac_cv_func_'$cf_func'=yes'
9600 echo "$as_me: program exited with status $ac_status" >&5
9601 echo "$as_me: failed program was:" >&5
9602 cat "conftest.$ac_ext" >&5
9604 eval 'ac_cv_func_'$cf_func'=no'
9606 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9609 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9612 echo "$as_me:9612: result: $cf_cv_link_funcs" >&5
9613 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9614 test "$ac_cv_func_link" = yes &&
9615 cat >>confdefs.h <<\EOF
9619 test "$ac_cv_func_symlink" = yes &&
9620 cat >>confdefs.h <<\EOF
9621 #define HAVE_SYMLINK 1
9629 # soft links (symbolic links) are useful for some systems where hard links do
9630 # not work, or to make it simpler to copy terminfo trees around.
9631 if test "x$ac_cv_func_symlink" = xyes ; then
9632 echo "$as_me:9632: checking if tic should use symbolic links" >&5
9633 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9635 # Check whether --enable-symlinks or --disable-symlinks was given.
9636 if test "${enable_symlinks+set}" = set; then
9637 enableval="$enable_symlinks"
9638 with_symlinks=$enableval
9642 echo "$as_me:9642: result: $with_symlinks" >&5
9643 echo "${ECHO_T}$with_symlinks" >&6
9646 # If we have hard links and did not choose to use soft links instead, there is
9647 # no reason to make this choice optional - use the hard links.
9648 if test "$with_symlinks" = no ; then
9649 echo "$as_me:9649: checking if tic should use hard links" >&5
9650 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9651 if test "x$ac_cv_func_link" = xyes ; then
9656 echo "$as_me:9656: result: $with_links" >&5
9657 echo "${ECHO_T}$with_links" >&6
9660 test "x$with_links" = xyes &&
9661 cat >>confdefs.h <<\EOF
9665 test "x$with_symlinks" = xyes &&
9666 cat >>confdefs.h <<\EOF
9667 #define USE_SYMLINKS 1
9670 ### use option --enable-broken-linker to force on use of broken-linker support
9672 echo "$as_me:9672: checking if you want broken-linker support code" >&5
9673 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9675 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9676 if test "${enable_broken_linker+set}" = set; then
9677 enableval="$enable_broken_linker"
9678 with_broken_linker=$enableval
9680 with_broken_linker=no
9682 echo "$as_me:9682: result: $with_broken_linker" >&5
9683 echo "${ECHO_T}$with_broken_linker" >&6
9685 : "${BROKEN_LINKER:=0}"
9686 if test "x$with_broken_linker" = xyes ; then
9688 cat >>confdefs.h <<\EOF
9689 #define BROKEN_LINKER 1
9695 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9696 echo "$as_me:9696: checking if tputs should process BSD-style prefix padding" >&5
9697 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9699 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9700 if test "${enable_bsdpad+set}" = set; then
9701 enableval="$enable_bsdpad"
9702 with_bsdpad=$enableval
9706 echo "$as_me:9706: result: $with_bsdpad" >&5
9707 echo "${ECHO_T}$with_bsdpad" >&6
9708 test "x$with_bsdpad" = xyes &&
9709 cat >>confdefs.h <<\EOF
9713 ### use option --enable-widec to turn on use of wide-character support
9722 # Check to define _XOPEN_SOURCE "automatically"
9723 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9725 echo "$as_me:9725: checking if the POSIX test-macros are already defined" >&5
9726 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9727 if test "${cf_cv_posix_visible+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 cat >"conftest.$ac_ext" <<_ACEOF
9732 #line 9732 "configure"
9733 #include "confdefs.h"
9739 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9740 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9741 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9742 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9743 #error conflicting symbols found
9750 rm -f "conftest.$ac_objext"
9751 if { (eval echo "$as_me:9751: \"$ac_compile\"") >&5
9752 (eval $ac_compile) 2>&5
9754 echo "$as_me:9754: \$? = $ac_status" >&5
9755 (exit "$ac_status"); } &&
9756 { ac_try='test -s "conftest.$ac_objext"'
9757 { (eval echo "$as_me:9757: \"$ac_try\"") >&5
9760 echo "$as_me:9760: \$? = $ac_status" >&5
9761 (exit "$ac_status"); }; }; then
9762 cf_cv_posix_visible=no
9764 echo "$as_me: failed program was:" >&5
9765 cat "conftest.$ac_ext" >&5
9766 cf_cv_posix_visible=yes
9768 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9771 echo "$as_me:9771: result: $cf_cv_posix_visible" >&5
9772 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9774 if test "$cf_cv_posix_visible" = no; then
9777 cf_POSIX_C_SOURCE=199506L
9782 cf_xopen_source="-D_ALL_SOURCE"
9788 cf_xopen_source="-D_APPLE_C_SOURCE"
9791 cf_xopen_source="-D_DARWIN_C_SOURCE"
9794 (freebsd*|dragonfly*|midnightbsd*)
9795 # 5.x headers associate
9796 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9797 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9798 cf_POSIX_C_SOURCE=200112L
9800 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9803 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9806 cf_xopen_source="-D_HPUX_SOURCE"
9809 cf_xopen_source="-D_SGI_SOURCE"
9812 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9814 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9816 echo "$as_me:9816: checking if this is the GNU C library" >&5
9817 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9818 if test "${cf_cv_gnu_library+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 cat >"conftest.$ac_ext" <<_ACEOF
9823 #line 9823 "configure"
9824 #include "confdefs.h"
9825 #include <sys/types.h>
9830 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9832 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9835 # error not GNU C library
9841 rm -f "conftest.$ac_objext"
9842 if { (eval echo "$as_me:9842: \"$ac_compile\"") >&5
9843 (eval $ac_compile) 2>&5
9845 echo "$as_me:9845: \$? = $ac_status" >&5
9846 (exit "$ac_status"); } &&
9847 { ac_try='test -s "conftest.$ac_objext"'
9848 { (eval echo "$as_me:9848: \"$ac_try\"") >&5
9851 echo "$as_me:9851: \$? = $ac_status" >&5
9852 (exit "$ac_status"); }; }; then
9853 cf_cv_gnu_library=yes
9855 echo "$as_me: failed program was:" >&5
9856 cat "conftest.$ac_ext" >&5
9857 cf_cv_gnu_library=no
9859 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9862 echo "$as_me:9862: result: $cf_cv_gnu_library" >&5
9863 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9865 if test x$cf_cv_gnu_library = xyes; then
9867 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9868 # was changed to help a little. newlib incorporated the change about 4
9870 echo "$as_me:9870: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9871 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9872 if test "${cf_cv_gnu_library_219+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9879 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9881 cat >"conftest.$ac_ext" <<_ACEOF
9882 #line 9882 "configure"
9883 #include "confdefs.h"
9884 #include <sys/types.h>
9889 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9891 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9894 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9900 rm -f "conftest.$ac_objext"
9901 if { (eval echo "$as_me:9901: \"$ac_compile\"") >&5
9902 (eval $ac_compile) 2>&5
9904 echo "$as_me:9904: \$? = $ac_status" >&5
9905 (exit "$ac_status"); } &&
9906 { ac_try='test -s "conftest.$ac_objext"'
9907 { (eval echo "$as_me:9907: \"$ac_try\"") >&5
9910 echo "$as_me:9910: \$? = $ac_status" >&5
9911 (exit "$ac_status"); }; }; then
9912 cf_cv_gnu_library_219=yes
9914 echo "$as_me: failed program was:" >&5
9915 cat "conftest.$ac_ext" >&5
9916 cf_cv_gnu_library_219=no
9918 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9922 echo "$as_me:9922: result: $cf_cv_gnu_library_219" >&5
9923 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9925 if test "x$cf_cv_gnu_library_219" = xyes; then
9927 echo "$as_me:9927: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9928 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9929 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 cf_new_extra_cppflags=
9938 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9940 case "$cf_fix_cppflags" in
9942 case "$cf_add_cflags" in
9943 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9944 case "$cf_add_cflags" in
9946 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9948 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9949 && test -z "${cf_tst_cflags}" \
9950 && cf_fix_cppflags=yes
9952 if test "$cf_fix_cppflags" = yes ; then
9954 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9955 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9958 elif test "${cf_tst_cflags}" = "\"'" ; then
9960 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9961 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9971 case "$cf_add_cflags" in
9973 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9975 CPPFLAGS=`echo "$CPPFLAGS" | \
9976 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9977 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9982 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9983 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9990 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9991 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9998 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9999 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10001 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10003 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10004 && test -z "${cf_tst_cflags}" \
10005 && cf_fix_cppflags=no
10010 if test -n "$cf_new_cflags" ; then
10012 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10013 CFLAGS="${CFLAGS}$cf_new_cflags"
10017 if test -n "$cf_new_cppflags" ; then
10019 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10020 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10024 if test -n "$cf_new_extra_cppflags" ; then
10026 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10027 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10031 cat >"conftest.$ac_ext" <<_ACEOF
10032 #line 10032 "configure"
10033 #include "confdefs.h"
10035 #include <limits.h>
10036 #include <sys/types.h>
10042 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10045 # error GNU C library is too old
10051 rm -f "conftest.$ac_objext"
10052 if { (eval echo "$as_me:10052: \"$ac_compile\"") >&5
10053 (eval $ac_compile) 2>&5
10055 echo "$as_me:10055: \$? = $ac_status" >&5
10056 (exit "$ac_status"); } &&
10057 { ac_try='test -s "conftest.$ac_objext"'
10058 { (eval echo "$as_me:10058: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:10061: \$? = $ac_status" >&5
10062 (exit "$ac_status"); }; }; then
10063 cf_cv_gnu_dftsrc_219=yes
10065 echo "$as_me: failed program was:" >&5
10066 cat "conftest.$ac_ext" >&5
10067 cf_cv_gnu_dftsrc_219=no
10069 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10072 echo "$as_me:10072: result: $cf_cv_gnu_dftsrc_219" >&5
10073 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10074 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10076 cf_cv_gnu_dftsrc_219=maybe
10079 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10081 echo "$as_me:10081: checking if we must define _GNU_SOURCE" >&5
10082 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10083 if test "${cf_cv_gnu_source+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >"conftest.$ac_ext" <<_ACEOF
10088 #line 10088 "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10095 #ifndef _XOPEN_SOURCE
10096 #error expected _XOPEN_SOURCE to be defined
10102 rm -f "conftest.$ac_objext"
10103 if { (eval echo "$as_me:10103: \"$ac_compile\"") >&5
10104 (eval $ac_compile) 2>&5
10106 echo "$as_me:10106: \$? = $ac_status" >&5
10107 (exit "$ac_status"); } &&
10108 { ac_try='test -s "conftest.$ac_objext"'
10109 { (eval echo "$as_me:10109: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:10112: \$? = $ac_status" >&5
10113 (exit "$ac_status"); }; }; then
10114 cf_cv_gnu_source=no
10116 echo "$as_me: failed program was:" >&5
10117 cat "conftest.$ac_ext" >&5
10118 cf_save="$CPPFLAGS"
10123 cf_new_extra_cppflags=
10125 for cf_add_cflags in -D_GNU_SOURCE
10127 case "$cf_fix_cppflags" in
10129 case "$cf_add_cflags" in
10130 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10131 case "$cf_add_cflags" in
10133 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10135 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10136 && test -z "${cf_tst_cflags}" \
10137 && cf_fix_cppflags=yes
10139 if test "$cf_fix_cppflags" = yes ; then
10141 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10142 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10145 elif test "${cf_tst_cflags}" = "\"'" ; then
10147 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10148 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10154 case "$CPPFLAGS" in
10158 case "$cf_add_cflags" in
10160 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10162 CPPFLAGS=`echo "$CPPFLAGS" | \
10163 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10164 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10169 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10170 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10177 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10178 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10185 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10186 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10188 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10190 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10191 && test -z "${cf_tst_cflags}" \
10192 && cf_fix_cppflags=no
10197 if test -n "$cf_new_cflags" ; then
10199 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10200 CFLAGS="${CFLAGS}$cf_new_cflags"
10204 if test -n "$cf_new_cppflags" ; then
10206 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10207 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10211 if test -n "$cf_new_extra_cppflags" ; then
10213 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10214 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10218 cat >"conftest.$ac_ext" <<_ACEOF
10219 #line 10219 "configure"
10220 #include "confdefs.h"
10221 #include <sys/types.h>
10226 #ifdef _XOPEN_SOURCE
10227 #error expected _XOPEN_SOURCE to be undefined
10233 rm -f "conftest.$ac_objext"
10234 if { (eval echo "$as_me:10234: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>&5
10237 echo "$as_me:10237: \$? = $ac_status" >&5
10238 (exit "$ac_status"); } &&
10239 { ac_try='test -s "conftest.$ac_objext"'
10240 { (eval echo "$as_me:10240: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:10243: \$? = $ac_status" >&5
10244 (exit "$ac_status"); }; }; then
10245 cf_cv_gnu_source=no
10247 echo "$as_me: failed program was:" >&5
10248 cat "conftest.$ac_ext" >&5
10249 cf_cv_gnu_source=yes
10251 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10252 CPPFLAGS="$cf_save"
10255 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10258 echo "$as_me:10258: result: $cf_cv_gnu_source" >&5
10259 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10261 if test "$cf_cv_gnu_source" = yes
10263 echo "$as_me:10263: checking if we should also define _DEFAULT_SOURCE" >&5
10264 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10265 if test "${cf_cv_default_source+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10270 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10272 cat >"conftest.$ac_ext" <<_ACEOF
10273 #line 10273 "configure"
10274 #include "confdefs.h"
10275 #include <sys/types.h>
10280 #ifdef _DEFAULT_SOURCE
10281 #error expected _DEFAULT_SOURCE to be undefined
10287 rm -f "conftest.$ac_objext"
10288 if { (eval echo "$as_me:10288: \"$ac_compile\"") >&5
10289 (eval $ac_compile) 2>&5
10291 echo "$as_me:10291: \$? = $ac_status" >&5
10292 (exit "$ac_status"); } &&
10293 { ac_try='test -s "conftest.$ac_objext"'
10294 { (eval echo "$as_me:10294: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:10297: \$? = $ac_status" >&5
10298 (exit "$ac_status"); }; }; then
10299 cf_cv_default_source=no
10301 echo "$as_me: failed program was:" >&5
10302 cat "conftest.$ac_ext" >&5
10303 cf_cv_default_source=yes
10305 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10308 echo "$as_me:10308: result: $cf_cv_default_source" >&5
10309 echo "${ECHO_T}$cf_cv_default_source" >&6
10310 if test "$cf_cv_default_source" = yes
10313 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10314 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10324 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10327 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10330 if test "$cf_cv_posix_visible" = no; then
10332 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10334 cf_save_CFLAGS="$CFLAGS"
10335 cf_save_CPPFLAGS="$CPPFLAGS"
10337 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10338 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10339 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10341 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10342 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10343 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10345 echo "$as_me:10345: checking if we should define _POSIX_C_SOURCE" >&5
10346 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10347 if test "${cf_cv_posix_c_source+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 echo "${as_me:-configure}:10351: testing if the symbol is already defined go no further ..." 1>&5
10353 cat >"conftest.$ac_ext" <<_ACEOF
10354 #line 10354 "configure"
10355 #include "confdefs.h"
10356 #include <sys/types.h>
10361 #ifndef _POSIX_C_SOURCE
10368 rm -f "conftest.$ac_objext"
10369 if { (eval echo "$as_me:10369: \"$ac_compile\"") >&5
10370 (eval $ac_compile) 2>&5
10372 echo "$as_me:10372: \$? = $ac_status" >&5
10373 (exit "$ac_status"); } &&
10374 { ac_try='test -s "conftest.$ac_objext"'
10375 { (eval echo "$as_me:10375: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:10378: \$? = $ac_status" >&5
10379 (exit "$ac_status"); }; }; then
10380 cf_cv_posix_c_source=no
10382 echo "$as_me: failed program was:" >&5
10383 cat "conftest.$ac_ext" >&5
10384 cf_want_posix_source=no
10385 case .$cf_POSIX_C_SOURCE in
10387 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10390 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10391 cf_want_posix_source=yes
10394 cf_want_posix_source=yes
10397 if test "$cf_want_posix_source" = yes ; then
10398 cat >"conftest.$ac_ext" <<_ACEOF
10399 #line 10399 "configure"
10400 #include "confdefs.h"
10401 #include <sys/types.h>
10406 #ifdef _POSIX_SOURCE
10413 rm -f "conftest.$ac_objext"
10414 if { (eval echo "$as_me:10414: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>&5
10417 echo "$as_me:10417: \$? = $ac_status" >&5
10418 (exit "$ac_status"); } &&
10419 { ac_try='test -s "conftest.$ac_objext"'
10420 { (eval echo "$as_me:10420: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10423 echo "$as_me:10423: \$? = $ac_status" >&5
10424 (exit "$ac_status"); }; }; then
10427 echo "$as_me: failed program was:" >&5
10428 cat "conftest.$ac_ext" >&5
10429 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10431 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10434 echo "${as_me:-configure}:10434: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10436 CFLAGS="$cf_trim_CFLAGS"
10437 CPPFLAGS="$cf_trim_CPPFLAGS"
10439 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10440 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10442 echo "${as_me:-configure}:10442: testing if the second compile does not leave our definition intact error ..." 1>&5
10444 cat >"conftest.$ac_ext" <<_ACEOF
10445 #line 10445 "configure"
10446 #include "confdefs.h"
10447 #include <sys/types.h>
10452 #ifndef _POSIX_C_SOURCE
10459 rm -f "conftest.$ac_objext"
10460 if { (eval echo "$as_me:10460: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10463 echo "$as_me:10463: \$? = $ac_status" >&5
10464 (exit "$ac_status"); } &&
10465 { ac_try='test -s "conftest.$ac_objext"'
10466 { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:10469: \$? = $ac_status" >&5
10470 (exit "$ac_status"); }; }; then
10473 echo "$as_me: failed program was:" >&5
10474 cat "conftest.$ac_ext" >&5
10475 cf_cv_posix_c_source=no
10477 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10478 CFLAGS="$cf_save_CFLAGS"
10479 CPPFLAGS="$cf_save_CPPFLAGS"
10482 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10485 echo "$as_me:10485: result: $cf_cv_posix_c_source" >&5
10486 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10488 if test "$cf_cv_posix_c_source" != no ; then
10489 CFLAGS="$cf_trim_CFLAGS"
10490 CPPFLAGS="$cf_trim_CPPFLAGS"
10495 cf_new_extra_cppflags=
10497 for cf_add_cflags in $cf_cv_posix_c_source
10499 case "$cf_fix_cppflags" in
10501 case "$cf_add_cflags" in
10502 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10503 case "$cf_add_cflags" in
10505 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10507 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10508 && test -z "${cf_tst_cflags}" \
10509 && cf_fix_cppflags=yes
10511 if test "$cf_fix_cppflags" = yes ; then
10513 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10514 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10517 elif test "${cf_tst_cflags}" = "\"'" ; then
10519 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10520 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10526 case "$CPPFLAGS" in
10530 case "$cf_add_cflags" in
10532 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10534 CPPFLAGS=`echo "$CPPFLAGS" | \
10535 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10536 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10541 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10542 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10549 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10550 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10557 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10558 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10560 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10562 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10563 && test -z "${cf_tst_cflags}" \
10564 && cf_fix_cppflags=no
10569 if test -n "$cf_new_cflags" ; then
10571 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10572 CFLAGS="${CFLAGS}$cf_new_cflags"
10576 if test -n "$cf_new_cppflags" ; then
10578 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10579 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10583 if test -n "$cf_new_extra_cppflags" ; then
10585 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10586 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10592 fi # cf_cv_posix_visible
10596 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10599 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10600 cf_xopen_source="-D_BSD_SOURCE"
10601 cf_XOPEN_SOURCE=600
10604 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10607 cf_xopen_source="-D_OSF_SOURCE"
10610 cf_xopen_source="-D_QNX_SOURCE"
10613 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10616 cf_xopen_source="-D__EXTENSIONS__"
10617 cf_cv_xopen_source=broken
10619 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10625 echo "$as_me:10625: checking if we should define _XOPEN_SOURCE" >&5
10626 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10627 if test "${cf_cv_xopen_source+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 cat >"conftest.$ac_ext" <<_ACEOF
10632 #line 10632 "configure"
10633 #include "confdefs.h"
10635 #include <stdlib.h>
10636 #include <string.h>
10637 #include <sys/types.h>
10643 #ifndef _XOPEN_SOURCE
10650 rm -f "conftest.$ac_objext"
10651 if { (eval echo "$as_me:10651: \"$ac_compile\"") >&5
10652 (eval $ac_compile) 2>&5
10654 echo "$as_me:10654: \$? = $ac_status" >&5
10655 (exit "$ac_status"); } &&
10656 { ac_try='test -s "conftest.$ac_objext"'
10657 { (eval echo "$as_me:10657: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:10660: \$? = $ac_status" >&5
10661 (exit "$ac_status"); }; }; then
10662 cf_cv_xopen_source=no
10664 echo "$as_me: failed program was:" >&5
10665 cat "conftest.$ac_ext" >&5
10666 cf_save="$CPPFLAGS"
10668 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10669 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10671 cat >"conftest.$ac_ext" <<_ACEOF
10672 #line 10672 "configure"
10673 #include "confdefs.h"
10675 #include <stdlib.h>
10676 #include <string.h>
10677 #include <sys/types.h>
10683 #ifdef _XOPEN_SOURCE
10690 rm -f "conftest.$ac_objext"
10691 if { (eval echo "$as_me:10691: \"$ac_compile\"") >&5
10692 (eval $ac_compile) 2>&5
10694 echo "$as_me:10694: \$? = $ac_status" >&5
10695 (exit "$ac_status"); } &&
10696 { ac_try='test -s "conftest.$ac_objext"'
10697 { (eval echo "$as_me:10697: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10700 echo "$as_me:10700: \$? = $ac_status" >&5
10701 (exit "$ac_status"); }; }; then
10702 cf_cv_xopen_source=no
10704 echo "$as_me: failed program was:" >&5
10705 cat "conftest.$ac_ext" >&5
10706 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10708 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10709 CPPFLAGS="$cf_save"
10712 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10715 echo "$as_me:10715: result: $cf_cv_xopen_source" >&5
10716 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10718 if test "$cf_cv_xopen_source" != no ; then
10720 CFLAGS=`echo "$CFLAGS" | \
10721 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10722 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10724 CPPFLAGS=`echo "$CPPFLAGS" | \
10725 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10726 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10728 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10733 cf_new_extra_cppflags=
10735 for cf_add_cflags in $cf_temp_xopen_source
10737 case "$cf_fix_cppflags" in
10739 case "$cf_add_cflags" in
10740 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10741 case "$cf_add_cflags" in
10743 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10745 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10746 && test -z "${cf_tst_cflags}" \
10747 && cf_fix_cppflags=yes
10749 if test "$cf_fix_cppflags" = yes ; then
10751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10755 elif test "${cf_tst_cflags}" = "\"'" ; then
10757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10764 case "$CPPFLAGS" in
10768 case "$cf_add_cflags" in
10770 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10772 CPPFLAGS=`echo "$CPPFLAGS" | \
10773 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10774 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10779 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10780 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10787 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10788 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10798 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10800 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10801 && test -z "${cf_tst_cflags}" \
10802 && cf_fix_cppflags=no
10807 if test -n "$cf_new_cflags" ; then
10809 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10810 CFLAGS="${CFLAGS}$cf_new_cflags"
10814 if test -n "$cf_new_cppflags" ; then
10816 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10817 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10821 if test -n "$cf_new_extra_cppflags" ; then
10823 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10824 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10830 if test "$cf_cv_posix_visible" = no; then
10832 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10834 cf_save_CFLAGS="$CFLAGS"
10835 cf_save_CPPFLAGS="$CPPFLAGS"
10837 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10838 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10839 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10841 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10842 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10843 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10845 echo "$as_me:10845: checking if we should define _POSIX_C_SOURCE" >&5
10846 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10847 if test "${cf_cv_posix_c_source+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 echo "${as_me:-configure}:10851: testing if the symbol is already defined go no further ..." 1>&5
10853 cat >"conftest.$ac_ext" <<_ACEOF
10854 #line 10854 "configure"
10855 #include "confdefs.h"
10856 #include <sys/types.h>
10861 #ifndef _POSIX_C_SOURCE
10868 rm -f "conftest.$ac_objext"
10869 if { (eval echo "$as_me:10869: \"$ac_compile\"") >&5
10870 (eval $ac_compile) 2>&5
10872 echo "$as_me:10872: \$? = $ac_status" >&5
10873 (exit "$ac_status"); } &&
10874 { ac_try='test -s "conftest.$ac_objext"'
10875 { (eval echo "$as_me:10875: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10878 echo "$as_me:10878: \$? = $ac_status" >&5
10879 (exit "$ac_status"); }; }; then
10880 cf_cv_posix_c_source=no
10882 echo "$as_me: failed program was:" >&5
10883 cat "conftest.$ac_ext" >&5
10884 cf_want_posix_source=no
10885 case .$cf_POSIX_C_SOURCE in
10887 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10890 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10891 cf_want_posix_source=yes
10894 cf_want_posix_source=yes
10897 if test "$cf_want_posix_source" = yes ; then
10898 cat >"conftest.$ac_ext" <<_ACEOF
10899 #line 10899 "configure"
10900 #include "confdefs.h"
10901 #include <sys/types.h>
10906 #ifdef _POSIX_SOURCE
10913 rm -f "conftest.$ac_objext"
10914 if { (eval echo "$as_me:10914: \"$ac_compile\"") >&5
10915 (eval $ac_compile) 2>&5
10917 echo "$as_me:10917: \$? = $ac_status" >&5
10918 (exit "$ac_status"); } &&
10919 { ac_try='test -s "conftest.$ac_objext"'
10920 { (eval echo "$as_me:10920: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:10923: \$? = $ac_status" >&5
10924 (exit "$ac_status"); }; }; then
10927 echo "$as_me: failed program was:" >&5
10928 cat "conftest.$ac_ext" >&5
10929 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10931 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10934 echo "${as_me:-configure}:10934: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10936 CFLAGS="$cf_trim_CFLAGS"
10937 CPPFLAGS="$cf_trim_CPPFLAGS"
10939 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10940 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10942 echo "${as_me:-configure}:10942: testing if the second compile does not leave our definition intact error ..." 1>&5
10944 cat >"conftest.$ac_ext" <<_ACEOF
10945 #line 10945 "configure"
10946 #include "confdefs.h"
10947 #include <sys/types.h>
10952 #ifndef _POSIX_C_SOURCE
10959 rm -f "conftest.$ac_objext"
10960 if { (eval echo "$as_me:10960: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>&5
10963 echo "$as_me:10963: \$? = $ac_status" >&5
10964 (exit "$ac_status"); } &&
10965 { ac_try='test -s "conftest.$ac_objext"'
10966 { (eval echo "$as_me:10966: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:10969: \$? = $ac_status" >&5
10970 (exit "$ac_status"); }; }; then
10973 echo "$as_me: failed program was:" >&5
10974 cat "conftest.$ac_ext" >&5
10975 cf_cv_posix_c_source=no
10977 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10978 CFLAGS="$cf_save_CFLAGS"
10979 CPPFLAGS="$cf_save_CPPFLAGS"
10982 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10985 echo "$as_me:10985: result: $cf_cv_posix_c_source" >&5
10986 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10988 if test "$cf_cv_posix_c_source" != no ; then
10989 CFLAGS="$cf_trim_CFLAGS"
10990 CPPFLAGS="$cf_trim_CPPFLAGS"
10995 cf_new_extra_cppflags=
10997 for cf_add_cflags in $cf_cv_posix_c_source
10999 case "$cf_fix_cppflags" in
11001 case "$cf_add_cflags" in
11002 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11003 case "$cf_add_cflags" in
11005 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11007 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11008 && test -z "${cf_tst_cflags}" \
11009 && cf_fix_cppflags=yes
11011 if test "$cf_fix_cppflags" = yes ; then
11013 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11014 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11017 elif test "${cf_tst_cflags}" = "\"'" ; then
11019 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11020 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11026 case "$CPPFLAGS" in
11030 case "$cf_add_cflags" in
11032 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11034 CPPFLAGS=`echo "$CPPFLAGS" | \
11035 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11036 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11041 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11042 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11049 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11050 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11057 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11058 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11060 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11062 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11063 && test -z "${cf_tst_cflags}" \
11064 && cf_fix_cppflags=no
11069 if test -n "$cf_new_cflags" ; then
11071 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11072 CFLAGS="${CFLAGS}$cf_new_cflags"
11076 if test -n "$cf_new_cppflags" ; then
11078 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11079 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11083 if test -n "$cf_new_extra_cppflags" ; then
11085 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11086 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11092 fi # cf_cv_posix_visible
11097 if test -n "$cf_xopen_source" ; then
11102 cf_new_extra_cppflags=
11104 for cf_add_cflags in $cf_xopen_source
11106 case "$cf_fix_cppflags" in
11108 case "$cf_add_cflags" in
11109 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11110 case "$cf_add_cflags" in
11112 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11114 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11115 && test -z "${cf_tst_cflags}" \
11116 && cf_fix_cppflags=yes
11118 if test "$cf_fix_cppflags" = yes ; then
11120 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11121 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11124 elif test "${cf_tst_cflags}" = "\"'" ; then
11126 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11127 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11133 case "$CPPFLAGS" in
11137 case "$cf_add_cflags" in
11139 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11141 CPPFLAGS=`echo "$CPPFLAGS" | \
11142 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11143 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11148 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11149 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11156 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11157 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11164 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11165 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11167 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11169 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11170 && test -z "${cf_tst_cflags}" \
11171 && cf_fix_cppflags=no
11176 if test -n "$cf_new_cflags" ; then
11177 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11179 echo "${as_me:-configure}:11179: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11181 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11182 CFLAGS="${CFLAGS}$cf_new_cflags"
11186 if test -n "$cf_new_cppflags" ; then
11187 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11189 echo "${as_me:-configure}:11189: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11191 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11192 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11196 if test -n "$cf_new_extra_cppflags" ; then
11197 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11199 echo "${as_me:-configure}:11199: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11201 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11202 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11208 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11209 echo "$as_me:11209: checking if _XOPEN_SOURCE really is set" >&5
11210 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11211 cat >"conftest.$ac_ext" <<_ACEOF
11212 #line 11212 "configure"
11213 #include "confdefs.h"
11214 #include <stdlib.h>
11219 #ifndef _XOPEN_SOURCE
11226 rm -f "conftest.$ac_objext"
11227 if { (eval echo "$as_me:11227: \"$ac_compile\"") >&5
11228 (eval $ac_compile) 2>&5
11230 echo "$as_me:11230: \$? = $ac_status" >&5
11231 (exit "$ac_status"); } &&
11232 { ac_try='test -s "conftest.$ac_objext"'
11233 { (eval echo "$as_me:11233: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:11236: \$? = $ac_status" >&5
11237 (exit "$ac_status"); }; }; then
11238 cf_XOPEN_SOURCE_set=yes
11240 echo "$as_me: failed program was:" >&5
11241 cat "conftest.$ac_ext" >&5
11242 cf_XOPEN_SOURCE_set=no
11244 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11245 echo "$as_me:11245: result: $cf_XOPEN_SOURCE_set" >&5
11246 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11247 if test "$cf_XOPEN_SOURCE_set" = yes
11249 cat >"conftest.$ac_ext" <<_ACEOF
11250 #line 11250 "configure"
11251 #include "confdefs.h"
11252 #include <stdlib.h>
11257 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11264 rm -f "conftest.$ac_objext"
11265 if { (eval echo "$as_me:11265: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>&5
11268 echo "$as_me:11268: \$? = $ac_status" >&5
11269 (exit "$ac_status"); } &&
11270 { ac_try='test -s "conftest.$ac_objext"'
11271 { (eval echo "$as_me:11271: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:11274: \$? = $ac_status" >&5
11275 (exit "$ac_status"); }; }; then
11276 cf_XOPEN_SOURCE_set_ok=yes
11278 echo "$as_me: failed program was:" >&5
11279 cat "conftest.$ac_ext" >&5
11280 cf_XOPEN_SOURCE_set_ok=no
11282 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11283 if test "$cf_XOPEN_SOURCE_set_ok" = no
11285 { echo "$as_me:11285: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11286 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11290 echo "$as_me:11290: checking if we should define _XOPEN_SOURCE" >&5
11291 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11292 if test "${cf_cv_xopen_source+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 cat >"conftest.$ac_ext" <<_ACEOF
11297 #line 11297 "configure"
11298 #include "confdefs.h"
11300 #include <stdlib.h>
11301 #include <string.h>
11302 #include <sys/types.h>
11308 #ifndef _XOPEN_SOURCE
11315 rm -f "conftest.$ac_objext"
11316 if { (eval echo "$as_me:11316: \"$ac_compile\"") >&5
11317 (eval $ac_compile) 2>&5
11319 echo "$as_me:11319: \$? = $ac_status" >&5
11320 (exit "$ac_status"); } &&
11321 { ac_try='test -s "conftest.$ac_objext"'
11322 { (eval echo "$as_me:11322: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:11325: \$? = $ac_status" >&5
11326 (exit "$ac_status"); }; }; then
11327 cf_cv_xopen_source=no
11329 echo "$as_me: failed program was:" >&5
11330 cat "conftest.$ac_ext" >&5
11331 cf_save="$CPPFLAGS"
11333 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11334 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11336 cat >"conftest.$ac_ext" <<_ACEOF
11337 #line 11337 "configure"
11338 #include "confdefs.h"
11340 #include <stdlib.h>
11341 #include <string.h>
11342 #include <sys/types.h>
11348 #ifdef _XOPEN_SOURCE
11355 rm -f "conftest.$ac_objext"
11356 if { (eval echo "$as_me:11356: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>&5
11359 echo "$as_me:11359: \$? = $ac_status" >&5
11360 (exit "$ac_status"); } &&
11361 { ac_try='test -s "conftest.$ac_objext"'
11362 { (eval echo "$as_me:11362: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:11365: \$? = $ac_status" >&5
11366 (exit "$ac_status"); }; }; then
11367 cf_cv_xopen_source=no
11369 echo "$as_me: failed program was:" >&5
11370 cat "conftest.$ac_ext" >&5
11371 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11373 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11374 CPPFLAGS="$cf_save"
11377 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11380 echo "$as_me:11380: result: $cf_cv_xopen_source" >&5
11381 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11383 if test "$cf_cv_xopen_source" != no ; then
11385 CFLAGS=`echo "$CFLAGS" | \
11386 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11387 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11389 CPPFLAGS=`echo "$CPPFLAGS" | \
11390 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11391 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11393 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11398 cf_new_extra_cppflags=
11400 for cf_add_cflags in $cf_temp_xopen_source
11402 case "$cf_fix_cppflags" in
11404 case "$cf_add_cflags" in
11405 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11406 case "$cf_add_cflags" in
11408 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11410 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11411 && test -z "${cf_tst_cflags}" \
11412 && cf_fix_cppflags=yes
11414 if test "$cf_fix_cppflags" = yes ; then
11416 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11417 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11420 elif test "${cf_tst_cflags}" = "\"'" ; then
11422 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11423 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11429 case "$CPPFLAGS" in
11433 case "$cf_add_cflags" in
11435 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11437 CPPFLAGS=`echo "$CPPFLAGS" | \
11438 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11439 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11444 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11445 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11452 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11453 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11460 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11461 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11463 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11465 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11466 && test -z "${cf_tst_cflags}" \
11467 && cf_fix_cppflags=no
11472 if test -n "$cf_new_cflags" ; then
11474 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11475 CFLAGS="${CFLAGS}$cf_new_cflags"
11479 if test -n "$cf_new_cppflags" ; then
11481 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11482 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11486 if test -n "$cf_new_extra_cppflags" ; then
11488 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11489 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11497 fi # cf_cv_posix_visible
11499 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11501 # Work around breakage on OS X
11503 echo "$as_me:11503: checking if SIGWINCH is defined" >&5
11504 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11505 if test "${cf_cv_define_sigwinch+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 cat >"conftest.$ac_ext" <<_ACEOF
11510 #line 11510 "configure"
11511 #include "confdefs.h"
11513 #include <sys/types.h>
11514 #include <sys/signal.h>
11519 int x = SIGWINCH; (void)x
11524 rm -f "conftest.$ac_objext"
11525 if { (eval echo "$as_me:11525: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>&5
11528 echo "$as_me:11528: \$? = $ac_status" >&5
11529 (exit "$ac_status"); } &&
11530 { ac_try='test -s "conftest.$ac_objext"'
11531 { (eval echo "$as_me:11531: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:11534: \$? = $ac_status" >&5
11535 (exit "$ac_status"); }; }; then
11536 cf_cv_define_sigwinch=yes
11538 echo "$as_me: failed program was:" >&5
11539 cat "conftest.$ac_ext" >&5
11540 cat >"conftest.$ac_ext" <<_ACEOF
11541 #line 11541 "configure"
11542 #include "confdefs.h"
11544 #undef _XOPEN_SOURCE
11545 #undef _POSIX_SOURCE
11546 #undef _POSIX_C_SOURCE
11547 #include <sys/types.h>
11548 #include <sys/signal.h>
11553 int x = SIGWINCH; (void)x
11558 rm -f "conftest.$ac_objext"
11559 if { (eval echo "$as_me:11559: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>&5
11562 echo "$as_me:11562: \$? = $ac_status" >&5
11563 (exit "$ac_status"); } &&
11564 { ac_try='test -s "conftest.$ac_objext"'
11565 { (eval echo "$as_me:11565: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:11568: \$? = $ac_status" >&5
11569 (exit "$ac_status"); }; }; then
11570 cf_cv_define_sigwinch=maybe
11572 echo "$as_me: failed program was:" >&5
11573 cat "conftest.$ac_ext" >&5
11574 cf_cv_define_sigwinch=no
11576 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11579 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11582 echo "$as_me:11582: result: $cf_cv_define_sigwinch" >&5
11583 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11585 if test "$cf_cv_define_sigwinch" = maybe ; then
11586 echo "$as_me:11586: checking for actual SIGWINCH definition" >&5
11587 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11588 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 cf_cv_fixup_sigwinch=unknown
11594 while test "$cf_sigwinch" != 1
11596 cat >"conftest.$ac_ext" <<_ACEOF
11597 #line 11597 "configure"
11598 #include "confdefs.h"
11600 #undef _XOPEN_SOURCE
11601 #undef _POSIX_SOURCE
11602 #undef _POSIX_C_SOURCE
11603 #include <sys/types.h>
11604 #include <sys/signal.h>
11610 #if SIGWINCH != $cf_sigwinch
11613 int x = SIGWINCH; (void)x
11618 rm -f "conftest.$ac_objext"
11619 if { (eval echo "$as_me:11619: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>&5
11622 echo "$as_me:11622: \$? = $ac_status" >&5
11623 (exit "$ac_status"); } &&
11624 { ac_try='test -s "conftest.$ac_objext"'
11625 { (eval echo "$as_me:11625: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:11628: \$? = $ac_status" >&5
11629 (exit "$ac_status"); }; }; then
11630 cf_cv_fixup_sigwinch=$cf_sigwinch
11633 echo "$as_me: failed program was:" >&5
11634 cat "conftest.$ac_ext" >&5
11636 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11638 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
11642 echo "$as_me:11642: result: $cf_cv_fixup_sigwinch" >&5
11643 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11645 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11646 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11650 # Checks for CODESET support.
11652 echo "$as_me:11652: checking for nl_langinfo and CODESET" >&5
11653 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11654 if test "${am_cv_langinfo_codeset+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 cat >"conftest.$ac_ext" <<_ACEOF
11658 #line 11658 "configure"
11659 #include "confdefs.h"
11660 #include <langinfo.h>
11664 char* cs = nl_langinfo(CODESET); (void)cs
11669 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11670 if { (eval echo "$as_me:11670: \"$ac_link\"") >&5
11671 (eval $ac_link) 2>&5
11673 echo "$as_me:11673: \$? = $ac_status" >&5
11674 (exit "$ac_status"); } &&
11675 { ac_try='test -s "conftest$ac_exeext"'
11676 { (eval echo "$as_me:11676: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:11679: \$? = $ac_status" >&5
11680 (exit "$ac_status"); }; }; then
11681 am_cv_langinfo_codeset=yes
11683 echo "$as_me: failed program was:" >&5
11684 cat "conftest.$ac_ext" >&5
11685 am_cv_langinfo_codeset=no
11687 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11690 echo "$as_me:11690: result: $am_cv_langinfo_codeset" >&5
11691 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11692 if test "$am_cv_langinfo_codeset" = yes; then
11694 cat >>confdefs.h <<\EOF
11695 #define HAVE_LANGINFO_CODESET 1
11700 # use these variables to work around a defect in gcc's fixincludes.
11701 NCURSES_OK_WCHAR_T=
11704 echo "$as_me:11704: checking if you want wide-character code" >&5
11705 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11707 # Check whether --enable-widec or --disable-widec was given.
11708 if test "${enable_widec+set}" = set; then
11709 enableval="$enable_widec"
11710 with_widec=$enableval
11714 echo "$as_me:11714: result: $with_widec" >&5
11715 echo "${ECHO_T}$with_widec" >&6
11717 NCURSES_WCWIDTH_GRAPHICS=1
11719 if test "x$with_widec" = xyes ; then
11720 if test "x$disable_lib_suffixes" = xno ; then
11721 LIB_SUFFIX="w${LIB_SUFFIX}"
11724 cat >>confdefs.h <<\EOF
11725 #define USE_WIDEC_SUPPORT 1
11728 cat >>confdefs.h <<\EOF
11729 #define NCURSES_WIDECHAR 1
11737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11738 echo "$as_me:11738: checking for $ac_header" >&5
11739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 cat >"conftest.$ac_ext" <<_ACEOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11746 #include <$ac_header>
11748 if { (eval echo "$as_me:11748: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11749 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11751 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11753 cat conftest.err >&5
11754 echo "$as_me:11754: \$? = $ac_status" >&5
11755 (exit "$ac_status"); } >/dev/null; then
11756 if test -s conftest.err; then
11757 ac_cpp_err=$ac_c_preproc_warn_flag
11764 if test -z "$ac_cpp_err"; then
11765 eval "$as_ac_Header=yes"
11767 echo "$as_me: failed program was:" >&5
11768 cat "conftest.$ac_ext" >&5
11769 eval "$as_ac_Header=no"
11771 rm -f conftest.err "conftest.$ac_ext"
11773 echo "$as_me:11773: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11774 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11775 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11776 cat >>confdefs.h <<EOF
11777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11783 echo "$as_me:11783: checking if wchar.h can be used as is" >&5
11784 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11785 if test "${cf_cv_wchar_h_okay+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 cat >"conftest.$ac_ext" <<_ACEOF
11790 #line 11790 "configure"
11791 #include "confdefs.h"
11793 #include <stdlib.h>
11794 #ifdef HAVE_WCHAR_H
11797 #ifdef HAVE_WCTYPE_H
11798 #include <wctype.h>
11806 int bar = iswpunct(foo)
11811 rm -f "conftest.$ac_objext"
11812 if { (eval echo "$as_me:11812: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>&5
11815 echo "$as_me:11815: \$? = $ac_status" >&5
11816 (exit "$ac_status"); } &&
11817 { ac_try='test -s "conftest.$ac_objext"'
11818 { (eval echo "$as_me:11818: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:11821: \$? = $ac_status" >&5
11822 (exit "$ac_status"); }; }; then
11823 cf_cv_wchar_h_okay=yes
11825 echo "$as_me: failed program was:" >&5
11826 cat "conftest.$ac_ext" >&5
11827 cf_cv_wchar_h_okay=no
11829 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11831 echo "$as_me:11831: result: $cf_cv_wchar_h_okay" >&5
11832 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11834 if test "$cf_cv_wchar_h_okay" = no
11837 echo "$as_me:11837: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11838 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11839 cat >"conftest.$ac_ext" <<_ACEOF
11840 #line 11840 "configure"
11841 #include "confdefs.h"
11842 #include <sys/types.h>
11848 #ifndef _XOPEN_SOURCE_EXTENDED
11855 rm -f "conftest.$ac_objext"
11856 if { (eval echo "$as_me:11856: \"$ac_compile\"") >&5
11857 (eval $ac_compile) 2>&5
11859 echo "$as_me:11859: \$? = $ac_status" >&5
11860 (exit "$ac_status"); } &&
11861 { ac_try='test -s "conftest.$ac_objext"'
11862 { (eval echo "$as_me:11862: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11865 echo "$as_me:11865: \$? = $ac_status" >&5
11866 (exit "$ac_status"); }; }; then
11869 echo "$as_me: failed program was:" >&5
11870 cat "conftest.$ac_ext" >&5
11873 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11874 echo "$as_me:11874: result: $cf_result" >&5
11875 echo "${ECHO_T}$cf_result" >&6
11877 if test "$cf_result" = yes ; then
11878 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11879 elif test "x" != "x" ; then
11880 echo "$as_me:11880: checking checking for compatible value versus " >&5
11881 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
11882 cat >"conftest.$ac_ext" <<_ACEOF
11883 #line 11883 "configure"
11884 #include "confdefs.h"
11885 #include <sys/types.h>
11891 #if _XOPEN_SOURCE_EXTENDED- < 0
11898 rm -f "conftest.$ac_objext"
11899 if { (eval echo "$as_me:11899: \"$ac_compile\"") >&5
11900 (eval $ac_compile) 2>&5
11902 echo "$as_me:11902: \$? = $ac_status" >&5
11903 (exit "$ac_status"); } &&
11904 { ac_try='test -s "conftest.$ac_objext"'
11905 { (eval echo "$as_me:11905: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:11908: \$? = $ac_status" >&5
11909 (exit "$ac_status"); }; }; then
11912 echo "$as_me: failed program was:" >&5
11913 cat "conftest.$ac_ext" >&5
11916 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11917 echo "$as_me:11917: result: $cf_result" >&5
11918 echo "${ECHO_T}$cf_result" >&6
11919 if test "$cf_result" = no ; then
11920 # perhaps we can override it - try...
11921 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
11927 echo "$as_me:11927: checking if wcwidth agrees graphics are single-width" >&5
11928 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
11929 if test "${cf_cv_wcwidth_graphics+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 cat >conftest.in <<CF_EOF
11935 0x250c upper left corner
11936 0x2514 lower left corner
11937 0x2510 upper right corner
11938 0x2518 lower right corner
11939 0x251c tee pointing left
11940 0x2524 tee pointing right
11941 0x2534 tee pointing up
11942 0x252c tee pointing down
11943 0x2500 horizontal line
11944 0x2502 vertical line
11945 0x253c large plus or crossover
11949 0x2592 checker board (stipple)
11950 0x00b0 degree symbol
11953 - Teletype 5410v1 symbols
11954 0x2190 arrow pointing left
11955 0x2192 arrow pointing right
11956 0x2193 arrow pointing down
11957 0x2191 arrow pointing up
11958 0x2592 board of squares
11959 0x2603 lantern symbol
11960 0x25ae solid square block
11961 - these defaults were invented for ncurses
11964 0x2264 less-than-or-equal-to
11965 0x2265 greater-than-or-equal-to
11968 0x00a3 pound-sterling symbol
11969 - thick-line-drawing
11970 0x250f upper left corner
11971 0x2517 lower left corner
11972 0x2513 upper right corner
11973 0x251b lower right corner
11974 0x2523 tee pointing left
11975 0x252b tee pointing right
11976 0x253b tee pointing up
11977 0x2533 tee pointing down
11978 0x2501 horizontal line
11979 0x2503 vertical line
11980 0x254b large plus or crossover
11981 - double-line-drawing
11982 0x2554 upper left corner
11983 0x255a lower left corner
11984 0x2557 upper right corner
11985 0x255d lower right corner
11986 0x2563 tee pointing left
11987 0x2560 tee pointing right
11988 0x2569 tee pointing up
11989 0x2566 tee pointing down
11990 0x2550 horizontal line
11991 0x2551 vertical line
11992 0x256c large plus or crossover
11994 if test "$cross_compiling" = yes; then
11995 cf_cv_wcwidth_graphics=unknown
11997 cat >"conftest.$ac_ext" <<_ACEOF
11998 #line 11998 "configure"
11999 #include "confdefs.h"
12001 #include <locale.h>
12012 char buffer[MY_LEN + 1];
12013 char notes[MY_LEN + 1];
12017 if (setlocale(LC_ALL, "en_US.UTF8") ||
12018 setlocale(LC_ALL, "en_US.UTF-8") ||
12019 setlocale(LC_ALL, "en_US.utf8") ||
12020 setlocale(LC_ALL, "en_US.utf-8")) {
12021 if ((fp = fopen("conftest.in", "r")) != 0) {
12022 while (fgets(buffer, MY_LEN, fp) != 0) {
12023 if (*buffer == '-') {
12024 fprintf(stderr, "\\t%s", buffer);
12025 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12027 if (wcwidth(value) == 1)
12029 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12031 fprintf(stderr, "?\\t%s", buffer);
12036 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12037 return (totals == passed) ? 0 : 1;
12041 rm -f "conftest$ac_exeext"
12042 if { (eval echo "$as_me:12042: \"$ac_link\"") >&5
12043 (eval $ac_link) 2>&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12047 { (eval echo "$as_me:12047: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12050 echo "$as_me:12050: \$? = $ac_status" >&5
12051 (exit "$ac_status"); }; }; then
12052 cf_cv_wcwidth_graphics=yes
12054 echo "$as_me: program exited with status $ac_status" >&5
12055 echo "$as_me: failed program was:" >&5
12056 cat "conftest.$ac_ext" >&5
12057 cf_cv_wcwidth_graphics=no
12059 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12063 echo "$as_me:12063: result: $cf_cv_wcwidth_graphics" >&5
12064 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12066 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12068 # with_overwrite=no
12069 NCURSES_CH_T=cchar_t
12071 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12074 echo "$as_me:12074: checking for $ac_func" >&5
12075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12076 if eval "test \"\${$as_ac_var+set}\" = set"; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 cat >"conftest.$ac_ext" <<_ACEOF
12080 #line 12080 "configure"
12081 #include "confdefs.h"
12082 #define $ac_func autoconf_temporary
12083 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12092 char $ac_func (void);
12098 /* The GNU C library defines stubs for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102 #error found stub for $ac_func
12105 return $ac_func ();
12110 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12111 if { (eval echo "$as_me:12111: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>&5
12114 echo "$as_me:12114: \$? = $ac_status" >&5
12115 (exit "$ac_status"); } &&
12116 { ac_try='test -s "conftest$ac_exeext"'
12117 { (eval echo "$as_me:12117: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:12120: \$? = $ac_status" >&5
12121 (exit "$ac_status"); }; }; then
12122 eval "$as_ac_var=yes"
12124 echo "$as_me: failed program was:" >&5
12125 cat "conftest.$ac_ext" >&5
12126 eval "$as_ac_var=no"
12128 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12130 echo "$as_me:12130: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12131 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12132 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12133 cat >>confdefs.h <<EOF
12134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12140 if test "x$ac_cv_func_putwc" != xyes ; then
12142 echo "$as_me:12142: checking for multibyte character support" >&5
12143 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12144 if test "${cf_cv_utf8_lib+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cf_save_LIBS="$LIBS"
12149 cat >"conftest.$ac_ext" <<_ACEOF
12150 #line 12150 "configure"
12151 #include "confdefs.h"
12153 #include <stdlib.h>
12162 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12163 if { (eval echo "$as_me:12163: \"$ac_link\"") >&5
12164 (eval $ac_link) 2>&5
12166 echo "$as_me:12166: \$? = $ac_status" >&5
12167 (exit "$ac_status"); } &&
12168 { ac_try='test -s "conftest$ac_exeext"'
12169 { (eval echo "$as_me:12169: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:12172: \$? = $ac_status" >&5
12173 (exit "$ac_status"); }; }; then
12176 echo "$as_me: failed program was:" >&5
12177 cat "conftest.$ac_ext" >&5
12179 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12180 # will be set on completion of the AC_TRY_LINK below.
12181 cf_cv_header_path_utf8=
12182 cf_cv_library_path_utf8=
12184 echo "${as_me:-configure}:12184: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
12186 cf_save_LIBS="$LIBS"
12188 cat >"conftest.$ac_ext" <<_ACEOF
12189 #line 12189 "configure"
12190 #include "confdefs.h"
12192 #include <libutf8.h>
12201 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12202 if { (eval echo "$as_me:12202: \"$ac_link\"") >&5
12203 (eval $ac_link) 2>&5
12205 echo "$as_me:12205: \$? = $ac_status" >&5
12206 (exit "$ac_status"); } &&
12207 { ac_try='test -s "conftest$ac_exeext"'
12208 { (eval echo "$as_me:12208: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:12211: \$? = $ac_status" >&5
12212 (exit "$ac_status"); }; }; then
12214 cf_cv_find_linkage_utf8=yes
12215 cf_cv_header_path_utf8=/usr/include
12216 cf_cv_library_path_utf8=/usr/lib
12219 echo "$as_me: failed program was:" >&5
12220 cat "conftest.$ac_ext" >&5
12222 LIBS="-lutf8 $cf_save_LIBS"
12224 cat >"conftest.$ac_ext" <<_ACEOF
12225 #line 12225 "configure"
12226 #include "confdefs.h"
12228 #include <libutf8.h>
12237 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12238 if { (eval echo "$as_me:12238: \"$ac_link\"") >&5
12239 (eval $ac_link) 2>&5
12241 echo "$as_me:12241: \$? = $ac_status" >&5
12242 (exit "$ac_status"); } &&
12243 { ac_try='test -s "conftest$ac_exeext"'
12244 { (eval echo "$as_me:12244: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:12247: \$? = $ac_status" >&5
12248 (exit "$ac_status"); }; }; then
12250 cf_cv_find_linkage_utf8=yes
12251 cf_cv_header_path_utf8=/usr/include
12252 cf_cv_library_path_utf8=/usr/lib
12253 cf_cv_library_file_utf8="-lutf8"
12256 echo "$as_me: failed program was:" >&5
12257 cat "conftest.$ac_ext" >&5
12259 cf_cv_find_linkage_utf8=no
12260 LIBS="$cf_save_LIBS"
12262 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12264 echo "${as_me:-configure}:12264: testing find linkage for utf8 library ..." 1>&5
12266 echo "${as_me:-configure}:12266: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12268 cf_save_CPPFLAGS="$CPPFLAGS"
12269 cf_test_CPPFLAGS="$CPPFLAGS"
12273 # collect the current set of include-directories from compiler flags
12274 cf_header_path_list=""
12275 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12276 for cf_header_path in $CPPFLAGS $CFLAGS
12278 case "$cf_header_path" in
12280 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12282 test "x$cf_header_path" != "xNONE" && \
12283 test -d "$cf_header_path" && \
12285 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12286 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
12287 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
12288 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
12289 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
12290 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12293 cf_header_path_list="$cf_header_path_list $cf_search"
12299 # add the variations for the package we are looking for
12303 test "x$prefix" != "xNONE" && \
12304 test -d "$prefix" && \
12306 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12307 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
12308 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
12309 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
12310 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
12311 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
12314 for cf_subdir_prefix in \
12323 test "x$cf_subdir_prefix" != "x$prefix" && \
12324 test -d "$cf_subdir_prefix" && \
12325 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12326 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12327 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
12328 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12329 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12330 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12331 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12336 test "$includedir" != NONE && \
12337 test "$includedir" != "/usr/include" && \
12338 test -d "$includedir" && {
12339 test -d "$includedir" && cf_search="$cf_search $includedir"
12340 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
12343 test "$oldincludedir" != NONE && \
12344 test "$oldincludedir" != "/usr/include" && \
12345 test -d "$oldincludedir" && {
12346 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
12347 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
12350 cf_search="$cf_search $cf_header_path_list"
12352 for cf_cv_header_path_utf8 in $cf_search
12354 if test -d "$cf_cv_header_path_utf8" ; then
12355 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12357 echo "${as_me:-configure}:12357: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12359 CPPFLAGS="$cf_save_CPPFLAGS"
12361 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12362 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12364 cat >"conftest.$ac_ext" <<_ACEOF
12365 #line 12365 "configure"
12366 #include "confdefs.h"
12368 #include <libutf8.h>
12377 rm -f "conftest.$ac_objext"
12378 if { (eval echo "$as_me:12378: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>&5
12381 echo "$as_me:12381: \$? = $ac_status" >&5
12382 (exit "$ac_status"); } &&
12383 { ac_try='test -s "conftest.$ac_objext"'
12384 { (eval echo "$as_me:12384: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:12387: \$? = $ac_status" >&5
12388 (exit "$ac_status"); }; }; then
12390 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12392 echo "${as_me:-configure}:12392: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12394 cf_cv_find_linkage_utf8=maybe
12395 cf_test_CPPFLAGS="$CPPFLAGS"
12398 echo "$as_me: failed program was:" >&5
12399 cat "conftest.$ac_ext" >&5
12401 CPPFLAGS="$cf_save_CPPFLAGS"
12404 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12408 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12410 echo "${as_me:-configure}:12410: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12412 cf_save_LIBS="$LIBS"
12413 cf_save_LDFLAGS="$LDFLAGS"
12415 if test "$cf_cv_find_linkage_utf8" != yes ; then
12418 cf_library_path_list=""
12419 if test -n "${LDFLAGS}${LIBS}" ; then
12420 for cf_library_path in $LDFLAGS $LIBS
12422 case "$cf_library_path" in
12424 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12426 test "x$cf_library_path" != "xNONE" && \
12427 test -d "$cf_library_path" && \
12429 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12430 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12431 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
12432 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12433 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
12434 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12437 cf_library_path_list="$cf_library_path_list $cf_search"
12445 test "x$prefix" != "xNONE" && \
12446 test -d "$prefix" && \
12448 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12449 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12450 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
12451 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
12452 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
12453 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
12456 for cf_subdir_prefix in \
12465 test "x$cf_subdir_prefix" != "x$prefix" && \
12466 test -d "$cf_subdir_prefix" && \
12467 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12468 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12469 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12470 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12471 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12472 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12473 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12478 cf_search="$cf_library_path_list $cf_search"
12480 for cf_cv_library_path_utf8 in $cf_search
12482 if test -d "$cf_cv_library_path_utf8" ; then
12483 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12485 echo "${as_me:-configure}:12485: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12487 CPPFLAGS="$cf_test_CPPFLAGS"
12488 LIBS="-lutf8 $cf_save_LIBS"
12489 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12490 cat >"conftest.$ac_ext" <<_ACEOF
12491 #line 12491 "configure"
12492 #include "confdefs.h"
12494 #include <libutf8.h>
12503 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12504 if { (eval echo "$as_me:12504: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12507 echo "$as_me:12507: \$? = $ac_status" >&5
12508 (exit "$ac_status"); } &&
12509 { ac_try='test -s "conftest$ac_exeext"'
12510 { (eval echo "$as_me:12510: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:12513: \$? = $ac_status" >&5
12514 (exit "$ac_status"); }; }; then
12516 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12518 echo "${as_me:-configure}:12518: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12520 cf_cv_find_linkage_utf8=yes
12521 cf_cv_library_file_utf8="-lutf8"
12524 echo "$as_me: failed program was:" >&5
12525 cat "conftest.$ac_ext" >&5
12527 CPPFLAGS="$cf_save_CPPFLAGS"
12528 LIBS="$cf_save_LIBS"
12529 LDFLAGS="$cf_save_LDFLAGS"
12532 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12535 CPPFLAGS="$cf_save_CPPFLAGS"
12536 LDFLAGS="$cf_save_LDFLAGS"
12540 cf_cv_find_linkage_utf8=no
12544 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12547 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12549 LIBS="$cf_save_LIBS"
12551 if test "$cf_cv_find_linkage_utf8" = yes ; then
12552 cf_cv_utf8_lib=add-on
12558 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12560 echo "$as_me:12560: result: $cf_cv_utf8_lib" >&5
12561 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12563 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12564 # ncurses/ncursesw:
12565 if test "$cf_cv_utf8_lib" = "add-on" ; then
12567 cat >>confdefs.h <<\EOF
12568 #define HAVE_LIBUTF8_H 1
12571 if test -n "$cf_cv_header_path_utf8" ; then
12572 for cf_add_incdir in $cf_cv_header_path_utf8
12574 while test "$cf_add_incdir" != /usr/include
12576 if test -d "$cf_add_incdir"
12579 if test -n "$CFLAGS$CPPFLAGS" ; then
12580 # a loop is needed to ensure we can add subdirs of existing dirs
12581 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12582 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12583 cf_have_incdir=yes; break
12588 if test "$cf_have_incdir" = no ; then
12589 if test "$cf_add_incdir" = /usr/local/include ; then
12590 if test "$GCC" = yes
12592 cf_save_CPPFLAGS=$CPPFLAGS
12594 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12595 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12597 cat >"conftest.$ac_ext" <<_ACEOF
12598 #line 12598 "configure"
12599 #include "confdefs.h"
12609 rm -f "conftest.$ac_objext"
12610 if { (eval echo "$as_me:12610: \"$ac_compile\"") >&5
12611 (eval $ac_compile) 2>&5
12613 echo "$as_me:12613: \$? = $ac_status" >&5
12614 (exit "$ac_status"); } &&
12615 { ac_try='test -s "conftest.$ac_objext"'
12616 { (eval echo "$as_me:12616: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:12619: \$? = $ac_status" >&5
12620 (exit "$ac_status"); }; }; then
12623 echo "$as_me: failed program was:" >&5
12624 cat "conftest.$ac_ext" >&5
12627 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12628 CPPFLAGS=$cf_save_CPPFLAGS
12633 if test "$cf_have_incdir" = no ; then
12634 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12636 echo "${as_me:-configure}:12636: testing adding $cf_add_incdir to include-path ..." 1>&5
12638 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12640 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
12641 test "$cf_top_incdir" = "$cf_add_incdir" && break
12642 cf_add_incdir="$cf_top_incdir"
12653 if test -n "$cf_cv_library_path_utf8" ; then
12654 for cf_add_libdir in $cf_cv_library_path_utf8
12656 if test "$cf_add_libdir" = /usr/lib ; then
12658 elif test -d "$cf_add_libdir"
12661 if test -n "$LDFLAGS$LIBS" ; then
12662 # a loop is needed to ensure we can add subdirs of existing dirs
12663 for cf_test_libdir in $LDFLAGS $LIBS ; do
12664 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12665 cf_have_libdir=yes; break
12669 if test "$cf_have_libdir" = no ; then
12670 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12672 echo "${as_me:-configure}:12672: testing adding $cf_add_libdir to library-path ..." 1>&5
12674 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12680 cf_add_libs="$LIBS"
12683 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12684 # filter duplicates
12685 for cf_add_1lib in $cf_add_0lib; do
12686 for cf_add_2lib in $cf_add_libs; do
12687 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12692 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12694 LIBS="$cf_add_libs"
12698 if test "$cf_cv_utf8_lib" != no ; then
12703 # This is needed on Tru64 5.0 to declare mbstate_t
12704 echo "$as_me:12704: checking if we must include wchar.h to declare mbstate_t" >&5
12705 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12706 if test "${cf_cv_mbstate_t+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 cat >"conftest.$ac_ext" <<_ACEOF
12711 #line 12711 "configure"
12712 #include "confdefs.h"
12714 #include <stdlib.h>
12715 #include <stdarg.h>
12717 #ifdef HAVE_LIBUTF8_H
12718 #include <libutf8.h>
12728 rm -f "conftest.$ac_objext"
12729 if { (eval echo "$as_me:12729: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>&5
12732 echo "$as_me:12732: \$? = $ac_status" >&5
12733 (exit "$ac_status"); } &&
12734 { ac_try='test -s "conftest.$ac_objext"'
12735 { (eval echo "$as_me:12735: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12738 echo "$as_me:12738: \$? = $ac_status" >&5
12739 (exit "$ac_status"); }; }; then
12742 echo "$as_me: failed program was:" >&5
12743 cat "conftest.$ac_ext" >&5
12744 cat >"conftest.$ac_ext" <<_ACEOF
12745 #line 12745 "configure"
12746 #include "confdefs.h"
12748 #include <stdlib.h>
12749 #include <stdarg.h>
12752 #ifdef HAVE_LIBUTF8_H
12753 #include <libutf8.h>
12763 rm -f "conftest.$ac_objext"
12764 if { (eval echo "$as_me:12764: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>&5
12767 echo "$as_me:12767: \$? = $ac_status" >&5
12768 (exit "$ac_status"); } &&
12769 { ac_try='test -s "conftest.$ac_objext"'
12770 { (eval echo "$as_me:12770: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:12773: \$? = $ac_status" >&5
12774 (exit "$ac_status"); }; }; then
12775 cf_cv_mbstate_t=yes
12777 echo "$as_me: failed program was:" >&5
12778 cat "conftest.$ac_ext" >&5
12779 cf_cv_mbstate_t=unknown
12781 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12783 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12785 echo "$as_me:12785: result: $cf_cv_mbstate_t" >&5
12786 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12788 if test "$cf_cv_mbstate_t" = yes ; then
12790 cat >>confdefs.h <<\EOF
12791 #define NEED_WCHAR_H 1
12797 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12798 if test "$cf_cv_mbstate_t" = unknown ; then
12799 NCURSES_MBSTATE_T=1
12802 # This is needed on Tru64 5.0 to declare wchar_t
12803 echo "$as_me:12803: checking if we must include wchar.h to declare wchar_t" >&5
12804 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12805 if test "${cf_cv_wchar_t+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 cat >"conftest.$ac_ext" <<_ACEOF
12810 #line 12810 "configure"
12811 #include "confdefs.h"
12813 #include <stdlib.h>
12814 #include <stdarg.h>
12816 #ifdef HAVE_LIBUTF8_H
12817 #include <libutf8.h>
12827 rm -f "conftest.$ac_objext"
12828 if { (eval echo "$as_me:12828: \"$ac_compile\"") >&5
12829 (eval $ac_compile) 2>&5
12831 echo "$as_me:12831: \$? = $ac_status" >&5
12832 (exit "$ac_status"); } &&
12833 { ac_try='test -s "conftest.$ac_objext"'
12834 { (eval echo "$as_me:12834: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12837 echo "$as_me:12837: \$? = $ac_status" >&5
12838 (exit "$ac_status"); }; }; then
12841 echo "$as_me: failed program was:" >&5
12842 cat "conftest.$ac_ext" >&5
12843 cat >"conftest.$ac_ext" <<_ACEOF
12844 #line 12844 "configure"
12845 #include "confdefs.h"
12847 #include <stdlib.h>
12848 #include <stdarg.h>
12851 #ifdef HAVE_LIBUTF8_H
12852 #include <libutf8.h>
12862 rm -f "conftest.$ac_objext"
12863 if { (eval echo "$as_me:12863: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>&5
12866 echo "$as_me:12866: \$? = $ac_status" >&5
12867 (exit "$ac_status"); } &&
12868 { ac_try='test -s "conftest.$ac_objext"'
12869 { (eval echo "$as_me:12869: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12872 echo "$as_me:12872: \$? = $ac_status" >&5
12873 (exit "$ac_status"); }; }; then
12876 echo "$as_me: failed program was:" >&5
12877 cat "conftest.$ac_ext" >&5
12878 cf_cv_wchar_t=unknown
12880 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12882 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12884 echo "$as_me:12884: result: $cf_cv_wchar_t" >&5
12885 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12887 if test "$cf_cv_wchar_t" = yes ; then
12889 cat >>confdefs.h <<\EOF
12890 #define NEED_WCHAR_H 1
12896 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12897 if test "$cf_cv_wchar_t" = unknown ; then
12901 # if we find wchar_t in either place, use substitution to provide a fallback.
12902 if test "$cf_cv_wchar_t" != unknown ; then
12903 NCURSES_OK_WCHAR_T=1
12906 # This is needed on Tru64 5.0 to declare wint_t
12907 echo "$as_me:12907: checking if we must include wchar.h to declare wint_t" >&5
12908 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12909 if test "${cf_cv_wint_t+set}" = set; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 cat >"conftest.$ac_ext" <<_ACEOF
12914 #line 12914 "configure"
12915 #include "confdefs.h"
12917 #include <stdlib.h>
12918 #include <stdarg.h>
12920 #ifdef HAVE_LIBUTF8_H
12921 #include <libutf8.h>
12931 rm -f "conftest.$ac_objext"
12932 if { (eval echo "$as_me:12932: \"$ac_compile\"") >&5
12933 (eval $ac_compile) 2>&5
12935 echo "$as_me:12935: \$? = $ac_status" >&5
12936 (exit "$ac_status"); } &&
12937 { ac_try='test -s "conftest.$ac_objext"'
12938 { (eval echo "$as_me:12938: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:12941: \$? = $ac_status" >&5
12942 (exit "$ac_status"); }; }; then
12945 echo "$as_me: failed program was:" >&5
12946 cat "conftest.$ac_ext" >&5
12947 cat >"conftest.$ac_ext" <<_ACEOF
12948 #line 12948 "configure"
12949 #include "confdefs.h"
12951 #include <stdlib.h>
12952 #include <stdarg.h>
12955 #ifdef HAVE_LIBUTF8_H
12956 #include <libutf8.h>
12966 rm -f "conftest.$ac_objext"
12967 if { (eval echo "$as_me:12967: \"$ac_compile\"") >&5
12968 (eval $ac_compile) 2>&5
12970 echo "$as_me:12970: \$? = $ac_status" >&5
12971 (exit "$ac_status"); } &&
12972 { ac_try='test -s "conftest.$ac_objext"'
12973 { (eval echo "$as_me:12973: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12976 echo "$as_me:12976: \$? = $ac_status" >&5
12977 (exit "$ac_status"); }; }; then
12980 echo "$as_me: failed program was:" >&5
12981 cat "conftest.$ac_ext" >&5
12982 cf_cv_wint_t=unknown
12984 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12986 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12988 echo "$as_me:12988: result: $cf_cv_wint_t" >&5
12989 echo "${ECHO_T}$cf_cv_wint_t" >&6
12991 if test "$cf_cv_wint_t" = yes ; then
12993 cat >>confdefs.h <<\EOF
12994 #define NEED_WCHAR_H 1
13000 # if we do not find wint_t in either place, use substitution to provide a fallback.
13001 if test "$cf_cv_wint_t" = unknown ; then
13005 # if we find wint_t in either place, use substitution to provide a fallback.
13006 if test "$cf_cv_wint_t" != unknown ; then
13007 NCURSES_OK_WINT_T=1
13010 if test "$NCURSES_MBSTATE_T" != 0; then
13012 cat >>confdefs.h <<\EOF
13013 #define NEED_MBSTATE_T_DEF 1
13019 ### use option --disable-lp64 to allow long chtype
13020 echo "$as_me:13020: checking whether to enable _LP64 definition in curses.h" >&5
13021 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13023 # Check whether --enable-lp64 or --disable-lp64 was given.
13024 if test "${enable_lp64+set}" = set; then
13025 enableval="$enable_lp64"
13026 with_lp64=$enableval
13028 with_lp64=$cf_dft_with_lp64
13030 echo "$as_me:13030: result: $with_lp64" >&5
13031 echo "${ECHO_T}$with_lp64" >&6
13033 if test "x$with_lp64" = xyes ; then
13034 cf_cv_enable_lp64=1
13036 cf_cv_enable_lp64=0
13039 # Check whether --enable-largefile or --disable-largefile was given.
13040 if test "${enable_largefile+set}" = set; then
13041 enableval="$enable_largefile"
13044 if test "$enable_largefile" != no; then
13046 echo "$as_me:13046: checking for special C compiler options needed for large files" >&5
13047 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13048 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 ac_cv_sys_largefile_CC=no
13052 if test "$GCC" != yes; then
13055 # IRIX 6.2 and later do not support large files by default,
13056 # so use the C compiler's -n32 option if that helps.
13057 cat >"conftest.$ac_ext" <<_ACEOF
13058 #line 13058 "configure"
13059 #include "confdefs.h"
13060 #include <sys/types.h>
13061 /* Check that off_t can represent 2**63 - 1 correctly.
13062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13063 since some C++ compilers masquerading as C compilers
13064 incorrectly reject 9223372036854775807. */
13065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13067 && LARGE_OFF_T % 2147483647 == 1)
13077 rm -f "conftest.$ac_objext"
13078 if { (eval echo "$as_me:13078: \"$ac_compile\"") >&5
13079 (eval $ac_compile) 2>&5
13081 echo "$as_me:13081: \$? = $ac_status" >&5
13082 (exit "$ac_status"); } &&
13083 { ac_try='test -s "conftest.$ac_objext"'
13084 { (eval echo "$as_me:13084: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:13087: \$? = $ac_status" >&5
13088 (exit "$ac_status"); }; }; then
13091 echo "$as_me: failed program was:" >&5
13092 cat "conftest.$ac_ext" >&5
13094 rm -f "conftest.$ac_objext"
13096 rm -f "conftest.$ac_objext"
13097 if { (eval echo "$as_me:13097: \"$ac_compile\"") >&5
13098 (eval $ac_compile) 2>&5
13100 echo "$as_me:13100: \$? = $ac_status" >&5
13101 (exit "$ac_status"); } &&
13102 { ac_try='test -s "conftest.$ac_objext"'
13103 { (eval echo "$as_me:13103: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:13106: \$? = $ac_status" >&5
13107 (exit "$ac_status"); }; }; then
13108 ac_cv_sys_largefile_CC=' -n32'; break
13110 echo "$as_me: failed program was:" >&5
13111 cat "conftest.$ac_ext" >&5
13113 rm -f "conftest.$ac_objext"
13117 rm -f "conftest.$ac_ext"
13120 echo "$as_me:13120: result: $ac_cv_sys_largefile_CC" >&5
13121 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13122 if test "$ac_cv_sys_largefile_CC" != no; then
13123 CC=$CC$ac_cv_sys_largefile_CC
13126 echo "$as_me:13126: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13127 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13128 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_cv_sys_file_offset_bits=no
13133 cat >"conftest.$ac_ext" <<_ACEOF
13134 #line 13134 "configure"
13135 #include "confdefs.h"
13136 #include <sys/types.h>
13137 /* Check that off_t can represent 2**63 - 1 correctly.
13138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13139 since some C++ compilers masquerading as C compilers
13140 incorrectly reject 9223372036854775807. */
13141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13143 && LARGE_OFF_T % 2147483647 == 1)
13153 rm -f "conftest.$ac_objext"
13154 if { (eval echo "$as_me:13154: \"$ac_compile\"") >&5
13155 (eval $ac_compile) 2>&5
13157 echo "$as_me:13157: \$? = $ac_status" >&5
13158 (exit "$ac_status"); } &&
13159 { ac_try='test -s "conftest.$ac_objext"'
13160 { (eval echo "$as_me:13160: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:13163: \$? = $ac_status" >&5
13164 (exit "$ac_status"); }; }; then
13167 echo "$as_me: failed program was:" >&5
13168 cat "conftest.$ac_ext" >&5
13170 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13171 cat >"conftest.$ac_ext" <<_ACEOF
13172 #line 13172 "configure"
13173 #include "confdefs.h"
13174 #define _FILE_OFFSET_BITS 64
13175 #include <sys/types.h>
13176 /* Check that off_t can represent 2**63 - 1 correctly.
13177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13178 since some C++ compilers masquerading as C compilers
13179 incorrectly reject 9223372036854775807. */
13180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13182 && LARGE_OFF_T % 2147483647 == 1)
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
13204 ac_cv_sys_file_offset_bits=64; break
13206 echo "$as_me: failed program was:" >&5
13207 cat "conftest.$ac_ext" >&5
13209 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13213 echo "$as_me:13213: result: $ac_cv_sys_file_offset_bits" >&5
13214 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13215 if test "$ac_cv_sys_file_offset_bits" != no; then
13217 cat >>confdefs.h <<EOF
13218 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13223 echo "$as_me:13223: checking for _LARGE_FILES value needed for large files" >&5
13224 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13225 if test "${ac_cv_sys_large_files+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 ac_cv_sys_large_files=no
13230 cat >"conftest.$ac_ext" <<_ACEOF
13231 #line 13231 "configure"
13232 #include "confdefs.h"
13233 #include <sys/types.h>
13234 /* Check that off_t can represent 2**63 - 1 correctly.
13235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13236 since some C++ compilers masquerading as C compilers
13237 incorrectly reject 9223372036854775807. */
13238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13240 && LARGE_OFF_T % 2147483647 == 1)
13250 rm -f "conftest.$ac_objext"
13251 if { (eval echo "$as_me:13251: \"$ac_compile\"") >&5
13252 (eval $ac_compile) 2>&5
13254 echo "$as_me:13254: \$? = $ac_status" >&5
13255 (exit "$ac_status"); } &&
13256 { ac_try='test -s "conftest.$ac_objext"'
13257 { (eval echo "$as_me:13257: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:13260: \$? = $ac_status" >&5
13261 (exit "$ac_status"); }; }; then
13264 echo "$as_me: failed program was:" >&5
13265 cat "conftest.$ac_ext" >&5
13267 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13268 cat >"conftest.$ac_ext" <<_ACEOF
13269 #line 13269 "configure"
13270 #include "confdefs.h"
13271 #define _LARGE_FILES 1
13272 #include <sys/types.h>
13273 /* Check that off_t can represent 2**63 - 1 correctly.
13274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13275 since some C++ compilers masquerading as C compilers
13276 incorrectly reject 9223372036854775807. */
13277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13279 && LARGE_OFF_T % 2147483647 == 1)
13289 rm -f "conftest.$ac_objext"
13290 if { (eval echo "$as_me:13290: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>&5
13293 echo "$as_me:13293: \$? = $ac_status" >&5
13294 (exit "$ac_status"); } &&
13295 { ac_try='test -s "conftest.$ac_objext"'
13296 { (eval echo "$as_me:13296: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:13299: \$? = $ac_status" >&5
13300 (exit "$ac_status"); }; }; then
13301 ac_cv_sys_large_files=1; break
13303 echo "$as_me: failed program was:" >&5
13304 cat "conftest.$ac_ext" >&5
13306 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13310 echo "$as_me:13310: result: $ac_cv_sys_large_files" >&5
13311 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13312 if test "$ac_cv_sys_large_files" != no; then
13314 cat >>confdefs.h <<EOF
13315 #define _LARGE_FILES $ac_cv_sys_large_files
13322 if test "$enable_largefile" != no ; then
13323 echo "$as_me:13323: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13324 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13325 if test "${ac_cv_sys_largefile_source+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 ac_cv_sys_largefile_source=no
13330 cat >"conftest.$ac_ext" <<_ACEOF
13331 #line 13331 "configure"
13332 #include "confdefs.h"
13342 rm -f "conftest.$ac_objext"
13343 if { (eval echo "$as_me:13343: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13346 echo "$as_me:13346: \$? = $ac_status" >&5
13347 (exit "$ac_status"); } &&
13348 { ac_try='test -s "conftest.$ac_objext"'
13349 { (eval echo "$as_me:13349: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:13352: \$? = $ac_status" >&5
13353 (exit "$ac_status"); }; }; then
13356 echo "$as_me: failed program was:" >&5
13357 cat "conftest.$ac_ext" >&5
13359 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13360 cat >"conftest.$ac_ext" <<_ACEOF
13361 #line 13361 "configure"
13362 #include "confdefs.h"
13363 #define _LARGEFILE_SOURCE 1
13373 rm -f "conftest.$ac_objext"
13374 if { (eval echo "$as_me:13374: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>&5
13377 echo "$as_me:13377: \$? = $ac_status" >&5
13378 (exit "$ac_status"); } &&
13379 { ac_try='test -s "conftest.$ac_objext"'
13380 { (eval echo "$as_me:13380: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:13383: \$? = $ac_status" >&5
13384 (exit "$ac_status"); }; }; then
13385 ac_cv_sys_largefile_source=1; break
13387 echo "$as_me: failed program was:" >&5
13388 cat "conftest.$ac_ext" >&5
13390 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13394 echo "$as_me:13394: result: $ac_cv_sys_largefile_source" >&5
13395 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13396 if test "$ac_cv_sys_largefile_source" != no; then
13398 cat >>confdefs.h <<EOF
13399 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13405 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13406 # in glibc 2.1.3, but that breaks too many other things.
13407 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13408 echo "$as_me:13408: checking for fseeko" >&5
13409 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13410 if test "${ac_cv_func_fseeko+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 cat >"conftest.$ac_ext" <<_ACEOF
13414 #line 13414 "configure"
13415 #include "confdefs.h"
13420 return fseeko && fseeko (stdin, 0, 0);
13425 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13426 if { (eval echo "$as_me:13426: \"$ac_link\"") >&5
13427 (eval $ac_link) 2>&5
13429 echo "$as_me:13429: \$? = $ac_status" >&5
13430 (exit "$ac_status"); } &&
13431 { ac_try='test -s "conftest$ac_exeext"'
13432 { (eval echo "$as_me:13432: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13435 echo "$as_me:13435: \$? = $ac_status" >&5
13436 (exit "$ac_status"); }; }; then
13437 ac_cv_func_fseeko=yes
13439 echo "$as_me: failed program was:" >&5
13440 cat "conftest.$ac_ext" >&5
13441 ac_cv_func_fseeko=no
13443 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13445 echo "$as_me:13445: result: $ac_cv_func_fseeko" >&5
13446 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13447 if test $ac_cv_func_fseeko = yes; then
13449 cat >>confdefs.h <<\EOF
13450 #define HAVE_FSEEKO 1
13455 # Normally we would collect these definitions in the config.h,
13456 # but (like _XOPEN_SOURCE), some environments rely on having these
13457 # defined before any of the system headers are included. Another
13458 # case comes up with C++, e.g., on AIX the compiler compiles the
13459 # header files by themselves before looking at the body files it is
13460 # told to compile. For ncurses, those header files do not include
13462 if test "$ac_cv_sys_large_files" != no
13465 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13466 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13469 if test "$ac_cv_sys_largefile_source" != no
13472 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13473 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13476 if test "$ac_cv_sys_file_offset_bits" != no
13479 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13480 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13484 echo "$as_me:13484: checking whether to use struct dirent64" >&5
13485 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13486 if test "${cf_cv_struct_dirent64+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 cat >"conftest.$ac_ext" <<_ACEOF
13491 #line 13491 "configure"
13492 #include "confdefs.h"
13494 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13495 #include <sys/types.h>
13496 #include <dirent.h>
13502 /* if transitional largefile support is setup, this is true */
13503 extern struct dirent64 * readdir(DIR *);
13504 struct dirent64 *x = readdir((DIR *)0);
13505 struct dirent *y = readdir((DIR *)0);
13513 rm -f "conftest.$ac_objext"
13514 if { (eval echo "$as_me:13514: \"$ac_compile\"") >&5
13515 (eval $ac_compile) 2>&5
13517 echo "$as_me:13517: \$? = $ac_status" >&5
13518 (exit "$ac_status"); } &&
13519 { ac_try='test -s "conftest.$ac_objext"'
13520 { (eval echo "$as_me:13520: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:13523: \$? = $ac_status" >&5
13524 (exit "$ac_status"); }; }; then
13525 cf_cv_struct_dirent64=yes
13527 echo "$as_me: failed program was:" >&5
13528 cat "conftest.$ac_ext" >&5
13529 cf_cv_struct_dirent64=no
13531 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13534 echo "$as_me:13534: result: $cf_cv_struct_dirent64" >&5
13535 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13536 test "$cf_cv_struct_dirent64" = yes &&
13537 cat >>confdefs.h <<\EOF
13538 #define HAVE_STRUCT_DIRENT64 1
13543 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13544 echo "$as_me:13544: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13545 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13547 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13548 if test "${enable_tparm_varargs+set}" = set; then
13549 enableval="$enable_tparm_varargs"
13550 with_tparm_varargs=$enableval
13552 with_tparm_varargs=yes
13554 echo "$as_me:13554: result: $with_tparm_varargs" >&5
13555 echo "${ECHO_T}$with_tparm_varargs" >&6
13556 NCURSES_TPARM_VARARGS=0
13557 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13559 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13560 if test "$with_ticlib" != no ; then
13561 echo "$as_me:13561: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13562 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13564 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13565 if test "${enable_tic_depends+set}" = set; then
13566 enableval="$enable_tic_depends"
13567 with_tic_depends=$enableval
13569 with_tic_depends=yes
13571 echo "$as_me:13571: result: $with_tic_depends" >&5
13572 echo "${ECHO_T}$with_tic_depends" >&6
13574 with_tic_depends=no
13577 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
13578 echo "$as_me:13578: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
13579 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
13581 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13582 if test "${enable_wattr_macros+set}" = set; then
13583 enableval="$enable_wattr_macros"
13584 with_wattr_macros=$enableval
13586 with_wattr_macros=yes
13588 if [ "x$with_wattr_macros" != xyes ]; then
13589 NCURSES_WATTR_MACROS=0
13590 echo "$as_me:13590: result: yes" >&5
13591 echo "${ECHO_T}yes" >&6
13593 NCURSES_WATTR_MACROS=1
13594 echo "$as_me:13594: result: no" >&5
13595 echo "${ECHO_T}no" >&6
13598 echo "$as_me:13598: checking for X11 rgb file" >&5
13599 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13601 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13602 if test "${with_x11_rgb+set}" = set; then
13603 withval="$with_x11_rgb"
13609 if test "x$RGB_PATH" = xauto
13611 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13613 /opt/local/share/X11/rgb.txt \
13614 /opt/X11/share/X11/rgb.txt \
13615 /usr/share/X11/rgb.txt \
13616 /usr/X11/share/X11/rgb.txt \
13617 /usr/X11/lib/X11/rgb.txt \
13618 /usr/lib/X11/rgb.txt \
13620 /usr/pkg/lib/X11/rgb.txt \
13621 /usr/X11R7/lib/X11/rgb.txt \
13622 /usr/X11R6/lib/X11/rgb.txt \
13623 /usr/X11R5/lib/X11/rgb.txt \
13624 /usr/X11R4/lib/X11/rgb.txt \
13625 /usr/local/lib/X11/rgb.txt \
13626 /usr/local/share/X11/rgb.txt \
13627 /usr/lib64/X11/rgb.txt
13629 if test -f "$cf_path" ; then
13630 RGB_PATH="$cf_path"
13637 if test "x$prefix" != xNONE; then
13638 cf_path_syntax="$prefix"
13640 cf_path_syntax="$ac_default_prefix"
13643 case ".$cf_path" in
13644 (.\$\(*\)*|.\'*\'*)
13648 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13650 (.\$\{*prefix\}*|.\$\{*dir\}*)
13651 eval cf_path="$cf_path"
13652 case ".$cf_path" in
13654 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13659 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13662 { { echo "$as_me:13662: error: expected a pathname, not \"$cf_path\"" >&5
13663 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13664 { (exit 1); exit 1; }; }
13670 echo "$as_me:13670: result: $RGB_PATH" >&5
13671 echo "${ECHO_T}$RGB_PATH" >&6
13673 cat >>confdefs.h <<EOF
13674 #define RGB_PATH "$cf_path"
13678 if test "$RGB_PATH" = no
13683 ### use option --with-bool to override bool's type
13684 echo "$as_me:13684: checking for type of bool" >&5
13685 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13687 # Check whether --with-bool or --without-bool was given.
13688 if test "${with_bool+set}" = set; then
13689 withval="$with_bool"
13690 NCURSES_BOOL="$withval"
13694 echo "$as_me:13694: result: $NCURSES_BOOL" >&5
13695 echo "${ECHO_T}$NCURSES_BOOL" >&6
13697 echo "$as_me:13697: checking for alternate terminal capabilities file" >&5
13698 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13700 # Check whether --with-caps or --without-caps was given.
13701 if test "${with_caps+set}" = set; then
13702 withval="$with_caps"
13703 TERMINFO_CAPS=Caps.$withval
13707 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13708 echo "$as_me:13708: result: $TERMINFO_CAPS" >&5
13709 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13711 ### use option --with-chtype to override chtype's type
13712 echo "$as_me:13712: checking for type of chtype" >&5
13713 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13715 # Check whether --with-chtype or --without-chtype was given.
13716 if test "${with_chtype+set}" = set; then
13717 withval="$with_chtype"
13718 NCURSES_CHTYPE="$withval"
13720 NCURSES_CHTYPE=$cf_dft_chtype
13722 echo "$as_me:13722: result: $NCURSES_CHTYPE" >&5
13723 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13725 ### use option --with-ospeed to override ospeed's type
13726 echo "$as_me:13726: checking for type of ospeed" >&5
13727 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13729 # Check whether --with-ospeed or --without-ospeed was given.
13730 if test "${with_ospeed+set}" = set; then
13731 withval="$with_ospeed"
13732 NCURSES_OSPEED="$withval"
13734 NCURSES_OSPEED=short
13736 echo "$as_me:13736: result: $NCURSES_OSPEED" >&5
13737 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13739 ### use option --with-mmask-t to override mmask_t's type
13740 echo "$as_me:13740: checking for type of mmask_t" >&5
13741 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13743 # Check whether --with-mmask-t or --without-mmask-t was given.
13744 if test "${with_mmask_t+set}" = set; then
13745 withval="$with_mmask_t"
13746 NCURSES_MMASK_T="$withval"
13748 NCURSES_MMASK_T=$cf_dft_mmask_t
13750 echo "$as_me:13750: result: $NCURSES_MMASK_T" >&5
13751 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13753 ### use option --with-ccharw-max to override CCHARW_MAX size
13754 echo "$as_me:13754: checking for size CCHARW_MAX" >&5
13755 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13757 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13758 if test "${with_ccharw_max+set}" = set; then
13759 withval="$with_ccharw_max"
13760 NCURSES_CCHARW_MAX="$withval"
13762 NCURSES_CCHARW_MAX=5
13764 echo "$as_me:13764: result: $NCURSES_CCHARW_MAX" >&5
13765 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13767 echo "$as_me:13767: checking for ANSI C header files" >&5
13768 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13769 if test "${ac_cv_header_stdc+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 cat >"conftest.$ac_ext" <<_ACEOF
13773 #line 13773 "configure"
13774 #include "confdefs.h"
13775 #include <stdlib.h>
13776 #include <stdarg.h>
13777 #include <string.h>
13781 if { (eval echo "$as_me:13781: \"$ac_cpp "conftest.$ac_ext"\"") >&5
13782 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
13784 $EGREP -v '^ *\+' conftest.er1 >conftest.err
13786 cat conftest.err >&5
13787 echo "$as_me:13787: \$? = $ac_status" >&5
13788 (exit "$ac_status"); } >/dev/null; then
13789 if test -s conftest.err; then
13790 ac_cpp_err=$ac_c_preproc_warn_flag
13797 if test -z "$ac_cpp_err"; then
13798 ac_cv_header_stdc=yes
13800 echo "$as_me: failed program was:" >&5
13801 cat "conftest.$ac_ext" >&5
13802 ac_cv_header_stdc=no
13804 rm -f conftest.err "conftest.$ac_ext"
13806 if test $ac_cv_header_stdc = yes; then
13807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13808 cat >"conftest.$ac_ext" <<_ACEOF
13809 #line 13809 "configure"
13810 #include "confdefs.h"
13811 #include <string.h>
13814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13815 $EGREP "memchr" >/dev/null 2>&1; then
13818 ac_cv_header_stdc=no
13824 if test $ac_cv_header_stdc = yes; then
13825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13826 cat >"conftest.$ac_ext" <<_ACEOF
13827 #line 13827 "configure"
13828 #include "confdefs.h"
13829 #include <stdlib.h>
13832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13833 $EGREP "free" >/dev/null 2>&1; then
13836 ac_cv_header_stdc=no
13842 if test $ac_cv_header_stdc = yes; then
13843 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13844 if test "$cross_compiling" = yes; then
13847 cat >"conftest.$ac_ext" <<_ACEOF
13848 #line 13848 "configure"
13849 #include "confdefs.h"
13851 #if ((' ' & 0x0FF) == 0x020)
13852 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13853 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13855 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13856 || ('j' <= (c) && (c) <= 'r') \
13857 || ('s' <= (c) && (c) <= 'z'))
13858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13866 for (i = 0; i < 256; i++)
13867 if (XOR (islower (i), ISLOWER (i))
13868 || toupper (i) != TOUPPER (i))
13869 $ac_main_return(2);
13870 $ac_main_return (0);
13873 rm -f "conftest$ac_exeext"
13874 if { (eval echo "$as_me:13874: \"$ac_link\"") >&5
13875 (eval $ac_link) 2>&5
13877 echo "$as_me:13877: \$? = $ac_status" >&5
13878 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
13879 { (eval echo "$as_me:13879: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:13882: \$? = $ac_status" >&5
13883 (exit "$ac_status"); }; }; then
13886 echo "$as_me: program exited with status $ac_status" >&5
13887 echo "$as_me: failed program was:" >&5
13888 cat "conftest.$ac_ext" >&5
13889 ac_cv_header_stdc=no
13891 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
13895 echo "$as_me:13895: result: $ac_cv_header_stdc" >&5
13896 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13897 if test $ac_cv_header_stdc = yes; then
13899 cat >>confdefs.h <<\EOF
13900 #define STDC_HEADERS 1
13905 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13907 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13908 inttypes.h stdint.h unistd.h
13910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13911 echo "$as_me:13911: checking for $ac_header" >&5
13912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 cat >"conftest.$ac_ext" <<_ACEOF
13917 #line 13917 "configure"
13918 #include "confdefs.h"
13919 $ac_includes_default
13920 #include <$ac_header>
13922 rm -f "conftest.$ac_objext"
13923 if { (eval echo "$as_me:13923: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13926 echo "$as_me:13926: \$? = $ac_status" >&5
13927 (exit "$ac_status"); } &&
13928 { ac_try='test -s "conftest.$ac_objext"'
13929 { (eval echo "$as_me:13929: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:13932: \$? = $ac_status" >&5
13933 (exit "$ac_status"); }; }; then
13934 eval "$as_ac_Header=yes"
13936 echo "$as_me: failed program was:" >&5
13937 cat "conftest.$ac_ext" >&5
13938 eval "$as_ac_Header=no"
13940 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13942 echo "$as_me:13942: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
13943 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
13944 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
13945 cat >>confdefs.h <<EOF
13946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13952 echo "$as_me:13952: checking for signed char" >&5
13953 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13954 if test "${ac_cv_type_signed_char+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 cat >"conftest.$ac_ext" <<_ACEOF
13958 #line 13958 "configure"
13959 #include "confdefs.h"
13960 $ac_includes_default
13964 if ((signed char *) 0)
13966 if (sizeof (signed char))
13972 rm -f "conftest.$ac_objext"
13973 if { (eval echo "$as_me:13973: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:13976: \$? = $ac_status" >&5
13977 (exit "$ac_status"); } &&
13978 { ac_try='test -s "conftest.$ac_objext"'
13979 { (eval echo "$as_me:13979: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:13982: \$? = $ac_status" >&5
13983 (exit "$ac_status"); }; }; then
13984 ac_cv_type_signed_char=yes
13986 echo "$as_me: failed program was:" >&5
13987 cat "conftest.$ac_ext" >&5
13988 ac_cv_type_signed_char=no
13990 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13992 echo "$as_me:13992: result: $ac_cv_type_signed_char" >&5
13993 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13995 echo "$as_me:13995: checking size of signed char" >&5
13996 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13997 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 if test "$ac_cv_type_signed_char" = yes; then
14001 if test "$cross_compiling" = yes; then
14002 # Depending upon the size, compute the lo and hi bounds.
14003 cat >"conftest.$ac_ext" <<_ACEOF
14004 #line 14004 "configure"
14005 #include "confdefs.h"
14006 $ac_includes_default
14010 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14015 rm -f "conftest.$ac_objext"
14016 if { (eval echo "$as_me:14016: \"$ac_compile\"") >&5
14017 (eval $ac_compile) 2>&5
14019 echo "$as_me:14019: \$? = $ac_status" >&5
14020 (exit "$ac_status"); } &&
14021 { ac_try='test -s "conftest.$ac_objext"'
14022 { (eval echo "$as_me:14022: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14025 echo "$as_me:14025: \$? = $ac_status" >&5
14026 (exit "$ac_status"); }; }; then
14029 cat >"conftest.$ac_ext" <<_ACEOF
14030 #line 14030 "configure"
14031 #include "confdefs.h"
14032 $ac_includes_default
14036 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14041 rm -f "conftest.$ac_objext"
14042 if { (eval echo "$as_me:14042: \"$ac_compile\"") >&5
14043 (eval $ac_compile) 2>&5
14045 echo "$as_me:14045: \$? = $ac_status" >&5
14046 (exit "$ac_status"); } &&
14047 { ac_try='test -s "conftest.$ac_objext"'
14048 { (eval echo "$as_me:14048: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:14051: \$? = $ac_status" >&5
14052 (exit "$ac_status"); }; }; then
14053 ac_hi=$ac_mid; break
14055 echo "$as_me: failed program was:" >&5
14056 cat "conftest.$ac_ext" >&5
14057 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14059 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14062 echo "$as_me: failed program was:" >&5
14063 cat "conftest.$ac_ext" >&5
14066 cat >"conftest.$ac_ext" <<_ACEOF
14067 #line 14067 "configure"
14068 #include "confdefs.h"
14069 $ac_includes_default
14073 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14078 rm -f "conftest.$ac_objext"
14079 if { (eval echo "$as_me:14079: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>&5
14082 echo "$as_me:14082: \$? = $ac_status" >&5
14083 (exit "$ac_status"); } &&
14084 { ac_try='test -s "conftest.$ac_objext"'
14085 { (eval echo "$as_me:14085: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 (exit "$ac_status"); }; }; then
14090 ac_lo=$ac_mid; break
14092 echo "$as_me: failed program was:" >&5
14093 cat "conftest.$ac_ext" >&5
14094 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14096 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14099 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14100 # Binary search between lo and hi bounds.
14101 while test "x$ac_lo" != "x$ac_hi"; do
14102 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14103 cat >"conftest.$ac_ext" <<_ACEOF
14104 #line 14104 "configure"
14105 #include "confdefs.h"
14106 $ac_includes_default
14110 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14115 rm -f "conftest.$ac_objext"
14116 if { (eval echo "$as_me:14116: \"$ac_compile\"") >&5
14117 (eval $ac_compile) 2>&5
14119 echo "$as_me:14119: \$? = $ac_status" >&5
14120 (exit "$ac_status"); } &&
14121 { ac_try='test -s "conftest.$ac_objext"'
14122 { (eval echo "$as_me:14122: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14125 echo "$as_me:14125: \$? = $ac_status" >&5
14126 (exit "$ac_status"); }; }; then
14129 echo "$as_me: failed program was:" >&5
14130 cat "conftest.$ac_ext" >&5
14131 ac_lo=`expr "$ac_mid" + 1`
14133 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14135 ac_cv_sizeof_signed_char=$ac_lo
14137 if test "$cross_compiling" = yes; then
14138 { { echo "$as_me:14138: error: cannot run test program while cross compiling" >&5
14139 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14140 { (exit 1); exit 1; }; }
14142 cat >"conftest.$ac_ext" <<_ACEOF
14143 #line 14143 "configure"
14144 #include "confdefs.h"
14145 $ac_includes_default
14149 FILE *f = fopen ("conftest.val", "w");
14151 $ac_main_return (1);
14152 fprintf (f, "%d", (sizeof (signed char)));
14158 rm -f "conftest$ac_exeext"
14159 if { (eval echo "$as_me:14159: \"$ac_link\"") >&5
14160 (eval $ac_link) 2>&5
14162 echo "$as_me:14162: \$? = $ac_status" >&5
14163 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
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
14169 ac_cv_sizeof_signed_char=`cat conftest.val`
14171 echo "$as_me: program exited with status $ac_status" >&5
14172 echo "$as_me: failed program was:" >&5
14173 cat "conftest.$ac_ext" >&5
14175 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14180 ac_cv_sizeof_signed_char=0
14183 echo "$as_me:14183: result: $ac_cv_sizeof_signed_char" >&5
14184 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14185 cat >>confdefs.h <<EOF
14186 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14189 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14190 NCURSES_SBOOL="signed char"
14192 NCURSES_SBOOL="char"
14194 echo "$as_me:14194: checking if you want to use signed Boolean array in term.h" >&5
14195 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14197 # Check whether --enable-signed-char or --disable-signed-char was given.
14198 if test "${enable_signed_char+set}" = set; then
14199 enableval="$enable_signed_char"
14200 with_signed_char=$enableval
14202 with_signed_char=no
14204 echo "$as_me:14204: result: $with_signed_char" >&5
14205 echo "${ECHO_T}$with_signed_char" >&6
14206 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14208 ### use option --with-tparm-arg to override tparm's argument type
14209 echo "$as_me:14209: checking for type of tparm args" >&5
14210 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14212 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14213 if test "${with_tparm_arg+set}" = set; then
14214 withval="$with_tparm_arg"
14215 NCURSES_TPARM_ARG="$withval"
14217 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14219 echo "$as_me:14219: result: $NCURSES_TPARM_ARG" >&5
14220 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14222 ### Enable compiling-in rcs id's
14223 echo "$as_me:14223: checking if RCS identifiers should be compiled-in" >&5
14224 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14226 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14227 if test "${with_rcs_ids+set}" = set; then
14228 withval="$with_rcs_ids"
14229 with_rcs_ids=$withval
14233 echo "$as_me:14233: result: $with_rcs_ids" >&5
14234 echo "${ECHO_T}$with_rcs_ids" >&6
14235 test "x$with_rcs_ids" = xyes &&
14236 cat >>confdefs.h <<\EOF
14237 #define USE_RCS_IDS 1
14240 ###############################################################################
14242 echo "$as_me:14242: checking format of man-pages" >&5
14243 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14245 # Check whether --with-manpage-format or --without-manpage-format was given.
14246 if test "${with_manpage_format+set}" = set; then
14247 withval="$with_manpage_format"
14248 MANPAGE_FORMAT=$withval
14250 MANPAGE_FORMAT=unknown
14253 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14254 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14258 case "$MANPAGE_FORMAT" in
14260 if test -z "$MANPATH" ; then
14261 MANPATH="/usr/man:/usr/share/man"
14264 # look for the 'date' man-page (it's most likely to be installed!)
14270 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14271 for cf_dir in $MANPATH; do
14272 test -z "$cf_dir" && cf_dir=/usr/man
14273 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
14275 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14276 if test "x$cf_test" = "x$cf_name" ; then
14279 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14280 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14281 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14282 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14296 # if we found a match in either man* or cat*, stop looking
14297 if test -n "$MANPAGE_FORMAT" ; then
14299 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14300 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14306 test "$cf_found" = yes && break
14309 # only check the first directory in $MANPATH where we find manpages
14310 if test -n "$MANPAGE_FORMAT" ; then
14314 # if we did not find the example, just assume it is normal
14315 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14319 for cf_option in $MANPAGE_FORMAT; do
14320 case "$cf_option" in
14321 (gzip|compress|BSDI|normal|formatted|catonly)
14324 cf_unknown="$cf_unknown $cf_option"
14331 echo "$as_me:14331: result: $MANPAGE_FORMAT" >&5
14332 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14333 if test -n "$cf_unknown" ; then
14334 { echo "$as_me:14334: WARNING: Unexpected manpage-format $cf_unknown" >&5
14335 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14338 echo "$as_me:14338: checking for manpage renaming" >&5
14339 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14341 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14342 if test "${with_manpage_renames+set}" = set; then
14343 withval="$with_manpage_renames"
14344 MANPAGE_RENAMES=$withval
14346 MANPAGE_RENAMES=yes
14349 case ".$MANPAGE_RENAMES" in
14353 # Debian 'man' program?
14354 if test -f /etc/debian_version ; then
14355 MANPAGE_RENAMES=`cd "$srcdir" && pwd`/man/man_db.renames
14362 if test "$MANPAGE_RENAMES" != no ; then
14363 if test -f "$srcdir/man/$MANPAGE_RENAMES" ; then
14364 MANPAGE_RENAMES=`cd "$srcdir/man" && pwd`/$MANPAGE_RENAMES
14365 elif test ! -f "$MANPAGE_RENAMES" ; then
14366 { { echo "$as_me:14366: error: not a filename: $MANPAGE_RENAMES" >&5
14367 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14368 { (exit 1); exit 1; }; }
14371 test ! -d man && mkdir man
14373 # Construct a sed-script to perform renaming within man-pages
14374 if test -n "$MANPAGE_RENAMES" ; then
14375 test ! -d man && mkdir man
14376 $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
14380 echo "$as_me:14380: result: $MANPAGE_RENAMES" >&5
14381 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14383 echo "$as_me:14383: checking if manpage aliases will be installed" >&5
14384 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14386 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14387 if test "${with_manpage_aliases+set}" = set; then
14388 withval="$with_manpage_aliases"
14389 MANPAGE_ALIASES=$withval
14391 MANPAGE_ALIASES=yes
14394 echo "$as_me:14394: result: $MANPAGE_ALIASES" >&5
14395 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14399 cf_use_symlinks=yes
14406 MANPAGE_SYMLINKS=no
14407 if test "$MANPAGE_ALIASES" = yes ; then
14408 echo "$as_me:14408: checking if manpage symlinks should be used" >&5
14409 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14411 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14412 if test "${with_manpage_symlinks+set}" = set; then
14413 withval="$with_manpage_symlinks"
14414 MANPAGE_SYMLINKS=$withval
14416 MANPAGE_SYMLINKS=$cf_use_symlinks
14419 if test "$$cf_use_symlinks" = no; then
14420 if test "$MANPAGE_SYMLINKS" = yes ; then
14421 { echo "$as_me:14421: WARNING: cannot make symlinks" >&5
14422 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14423 MANPAGE_SYMLINKS=no
14427 echo "$as_me:14427: result: $MANPAGE_SYMLINKS" >&5
14428 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14431 echo "$as_me:14431: checking for manpage tbl" >&5
14432 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14434 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14435 if test "${with_manpage_tbl+set}" = set; then
14436 withval="$with_manpage_tbl"
14437 MANPAGE_TBL=$withval
14442 echo "$as_me:14442: result: $MANPAGE_TBL" >&5
14443 echo "${ECHO_T}$MANPAGE_TBL" >&6
14445 if test "$prefix" = "NONE" ; then
14446 cf_prefix="$ac_default_prefix"
14448 cf_prefix="$prefix"
14451 case "$MANPAGE_FORMAT" in
14466 test ! -d man && mkdir man
14470 case "$MANPAGE_FORMAT" in
14473 cf_compress=compress
14481 cf_edit_man=./edit_man.sh
14482 cf_man_alias=`pwd`/man_alias.sed
14484 cat >$cf_edit_man <<CF_EOF
14486 # this script is generated by the configure-script CF_MAN_PAGES macro.
14488 prefix="$cf_prefix"
14489 datarootdir="$datarootdir"
14492 NCURSES_MAJOR="$NCURSES_MAJOR"
14493 NCURSES_MINOR="$NCURSES_MINOR"
14494 NCURSES_PATCH="$NCURSES_PATCH"
14496 NCURSES_OSPEED="$NCURSES_OSPEED"
14497 TERMINFO="$TERMINFO"
14500 INSTALL_DATA="$INSTALL_DATA"
14502 transform="$program_transform_name"
14504 TMP=\${TMPDIR:=/tmp}/man\$\$
14505 trap "rm -f \$TMP" 0 1 2 3 15
14517 top_srcdir=\$srcdir/..
14520 if test "\$form" = normal ; then
14521 if test "$cf_format" = yes ; then
14522 if test "$cf_inboth" = no ; then
14523 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14527 cf_subdir=\$mandir/man
14528 cf_tables=$MANPAGE_TBL
14530 cf_subdir=\$mandir/cat
14534 # process the list of source-files
14535 for i in "\$@" ; do
14539 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14540 if test "\$verb" = installing ; then
14541 if test ! -d "\$cf_subdir\${section}" ; then
14542 mkdir -p "\$cf_subdir\$section"
14546 # replace variables in man page
14547 if test ! -f "$cf_man_alias" ; then
14548 cat >>$cf_man_alias <<-CF_EOF2
14549 s,@DATADIR@,\$datadir,g
14550 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14551 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14552 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14553 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14554 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14555 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14558 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14560 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14561 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
14562 cat >>$cf_edit_man <<-CF_EOF
14563 s,@$cf_NAME@,$cf_name,g
14567 cat >>$cf_edit_man <<CF_EOF
14569 echo "...made $cf_man_alias"
14573 cf_source=\`basename "\$i"\`
14574 inalias=\$cf_source
14575 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias"
14576 if test ! -f "\$inalias" ; then
14577 echo ".. skipped \$cf_source"
14582 if test "$MANPAGE_ALIASES" != no ; then
14583 cat >>$cf_edit_man <<CF_EOF
14585 test "$with_curses_h" = yes && nCurses=ncurses.3x
14586 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\`
14590 if test "$MANPAGE_RENAMES" = no ; then
14591 cat >>$cf_edit_man <<CF_EOF
14592 # perform program transformations for section 1 man pages
14593 if test \$section = 1 ; then
14594 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14596 cf_target=\$cf_subdir\${section}/\$cf_source
14600 cat >>$cf_edit_man <<CF_EOF
14601 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14602 if test -z "\$cf_target" ; then
14603 echo "? missing rename for \$cf_source"
14604 cf_target="\$cf_source"
14606 cf_target="\$cf_subdir\${section}/\${cf_target}"
14611 cat >>$cf_edit_man <<CF_EOF
14612 sed -f "$cf_man_alias" \\
14615 if test -f "$MANPAGE_RENAMES" ; then
14616 cat >>$cf_edit_man <<CF_EOF
14617 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
14620 cat >>$cf_edit_man <<CF_EOF
14625 cat >>$cf_edit_man <<CF_EOF
14626 if test \$cf_tables = yes ; then
14627 tbl \$TMP >\$TMP.out
14632 if test "$with_overwrite" != yes ; then
14633 cat >>$cf_edit_man <<CF_EOF
14634 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14639 if test "$with_curses_h" != yes ; then
14640 cat >>$cf_edit_man <<CF_EOF
14641 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14646 cat >>$cf_edit_man <<CF_EOF
14647 if test "\$form" = format ; then
14648 nroff -man \$TMP >\$TMP.out
14653 if test -n "$cf_compress" ; then
14654 cat >>$cf_edit_man <<CF_EOF
14655 if test "\$verb" = installing ; then
14656 if ( "$cf_compress" -f \$TMP )
14658 mv \$TMP.$cf_so_strip \$TMP
14661 cf_target="\$cf_target.$cf_so_strip"
14665 case "$MANPAGE_FORMAT" in
14667 cat >>$cf_edit_man <<CF_EOF
14668 if test "\$form" = format ; then
14669 # BSDI installs only .0 suffixes in the cat directories
14670 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
14676 cat >>$cf_edit_man <<CF_EOF
14677 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
14678 if test "\$verb" = installing ; then
14679 echo "\$verb \$cf_target"
14680 \$INSTALL_DATA \$TMP "\$cf_target"
14681 test -d "\$cf_subdir\${section}" &&
14682 test -n "\$aliases" && (
14683 cd "\$cf_subdir\${section}" && (
14684 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
14685 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\`
14686 cf_target=\`basename "\$cf_target"\`
14687 for cf_alias in \$aliases
14689 if test "\$section" = 1 ; then
14690 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14693 if test "$MANPAGE_SYMLINKS" = yes ; then
14694 if test -f "\$cf_alias\${suffix}" ; then
14695 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
14700 echo ".. \$verb alias \$cf_alias\${suffix}"
14704 cat >>$cf_edit_man <<CF_EOF
14705 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14709 cat >>$cf_edit_man <<CF_EOF
14710 rm -f "\$cf_alias\${suffix}"
14711 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14715 cat >>$cf_edit_man <<CF_EOF
14716 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14717 echo ".so \$cf_source" >\$TMP
14719 if test -n "$cf_compress" ; then
14720 cat >>$cf_edit_man <<CF_EOF
14721 if test -n "$cf_so_strip" ; then
14722 "$cf_compress" -f \$TMP
14723 mv \$TMP.$cf_so_strip \$TMP
14727 cat >>$cf_edit_man <<CF_EOF
14728 echo ".. \$verb alias \$cf_alias\${suffix}"
14729 rm -f "\$cf_alias\${suffix}"
14730 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
14735 elif test "\$verb" = removing ; then
14736 test -f "\$cf_target" && (
14737 echo "\$verb \$cf_target"
14738 rm -f "\$cf_target"
14740 test -d "\$cf_subdir\${section}" &&
14741 test -n "\$aliases" && (
14742 cd "\$cf_subdir\${section}" && (
14743 for cf_alias in \$aliases
14745 if test "\$section" = 1 ; then
14746 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14749 echo ".. \$verb alias \$cf_alias\${suffix}"
14750 rm -f "\$cf_alias\${suffix}"
14762 if test "$cf_inboth" = yes ; then
14763 if test "\$form" != format ; then
14764 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14770 chmod 755 "$cf_edit_man"
14772 ###############################################################################
14774 ### Note that some functions (such as const) are normally disabled anyway.
14775 echo "$as_me:14775: checking if you want to build with function extensions" >&5
14776 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14778 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14779 if test "${enable_ext_funcs+set}" = set; then
14780 enableval="$enable_ext_funcs"
14781 with_ext_funcs=$enableval
14785 echo "$as_me:14785: result: $with_ext_funcs" >&5
14786 echo "${ECHO_T}$with_ext_funcs" >&6
14787 if test "x$with_ext_funcs" = xyes ; then
14788 NCURSES_EXT_FUNCS=1
14790 cat >>confdefs.h <<\EOF
14791 #define NCURSES_EXT_FUNCS 1
14794 cat >>confdefs.h <<\EOF
14795 #define HAVE_ASSUME_DEFAULT_COLORS 1
14798 cat >>confdefs.h <<\EOF
14799 #define HAVE_CURSES_VERSION 1
14802 cat >>confdefs.h <<\EOF
14803 #define HAVE_HAS_KEY 1
14806 cat >>confdefs.h <<\EOF
14807 #define HAVE_RESIZETERM 1
14810 cat >>confdefs.h <<\EOF
14811 #define HAVE_RESIZE_TERM 1
14814 cat >>confdefs.h <<\EOF
14815 #define HAVE_TERM_ENTRY_H 1
14818 cat >>confdefs.h <<\EOF
14819 #define HAVE_USE_DEFAULT_COLORS 1
14822 cat >>confdefs.h <<\EOF
14823 #define HAVE_USE_EXTENDED_NAMES 1
14826 cat >>confdefs.h <<\EOF
14827 #define HAVE_USE_SCREEN 1
14830 cat >>confdefs.h <<\EOF
14831 #define HAVE_USE_WINDOW 1
14834 cat >>confdefs.h <<\EOF
14835 #define HAVE_WRESIZE 1
14838 GENERATED_EXT_FUNCS=generated
14839 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
14841 NCURSES_EXT_FUNCS=0
14842 GENERATED_EXT_FUNCS=
14845 echo "$as_me:14845: checking if you want to build with SCREEN extensions" >&5
14846 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
14848 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
14849 if test "${enable_sp_funcs+set}" = set; then
14850 enableval="$enable_sp_funcs"
14851 with_sp_funcs=$enableval
14853 with_sp_funcs=$cf_dft_ext_spfuncs
14855 echo "$as_me:14855: result: $with_sp_funcs" >&5
14856 echo "${ECHO_T}$with_sp_funcs" >&6
14857 if test "x$with_sp_funcs" = xyes ; then
14860 cat >>confdefs.h <<\EOF
14861 #define NCURSES_SP_FUNCS 1
14864 cat >>confdefs.h <<\EOF
14865 #define HAVE_TPUTS_SP 1
14868 GENERATED_SP_FUNCS=generated
14871 GENERATED_SP_FUNCS=
14874 echo "$as_me:14874: checking if you want to build with terminal-driver" >&5
14875 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
14877 # Check whether --enable-term-driver or --disable-term-driver was given.
14878 if test "${enable_term_driver+set}" = set; then
14879 enableval="$enable_term_driver"
14880 with_term_driver=$enableval
14882 with_term_driver=no
14884 echo "$as_me:14884: result: $with_term_driver" >&5
14885 echo "${ECHO_T}$with_term_driver" >&6
14886 if test "x$with_term_driver" = xyes ; then
14888 cat >>confdefs.h <<\EOF
14889 #define USE_TERM_DRIVER 1
14892 if test "x$with_termlib" != xno ; then
14893 { { echo "$as_me:14893: error: The term-driver option conflicts with the termlib option" >&5
14894 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
14895 { (exit 1); exit 1; }; }
14897 if test "x$with_sp_funcs" != xyes ; then
14898 { { echo "$as_me:14898: error: The term-driver option relies upon sp-funcs" >&5
14899 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
14900 { (exit 1); exit 1; }; }
14904 ### use option --enable-const to turn on use of const beyond that in XSI.
14905 echo "$as_me:14905: checking for extended use of const keyword" >&5
14906 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
14908 # Check whether --enable-const or --disable-const was given.
14909 if test "${enable_const+set}" = set; then
14910 enableval="$enable_const"
14911 with_ext_const=$enableval
14913 with_ext_const=$cf_dft_ext_const
14915 echo "$as_me:14915: result: $with_ext_const" >&5
14916 echo "${ECHO_T}$with_ext_const" >&6
14917 NCURSES_CONST='/*nothing*/'
14918 if test "x$with_ext_const" = xyes ; then
14919 NCURSES_CONST=const
14922 ### use option --enable-ext-colors to turn on use of colors beyond 16.
14923 echo "$as_me:14923: checking if you want to use extended colors" >&5
14924 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
14926 # Check whether --enable-ext-colors or --disable-ext-colors was given.
14927 if test "${enable_ext_colors+set}" = set; then
14928 enableval="$enable_ext_colors"
14929 with_ext_colors=$enableval
14931 with_ext_colors=$cf_dft_ext_colors
14933 echo "$as_me:14933: result: $with_ext_colors" >&5
14934 echo "${ECHO_T}$with_ext_colors" >&6
14935 NCURSES_EXT_COLORS=0
14936 if test "x$with_ext_colors" = xyes ; then
14937 if test "x$with_widec" != xyes ; then
14938 { echo "$as_me:14938: WARNING: This option applies only to wide-character library" >&5
14939 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
14941 # cannot be ABI 5 since it changes sizeof(cchar_t)
14943 if test "${with_abi_version+set}" != set; then
14944 case "$cf_cv_rel_version" in
14946 cf_cv_rel_version=6.0
14947 cf_cv_abi_version=6
14948 { echo "$as_me:14948: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14949 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14954 NCURSES_EXT_COLORS=1
14956 cat >>confdefs.h <<\EOF
14957 #define NCURSES_EXT_COLORS 1
14960 cat >>confdefs.h <<\EOF
14961 #define HAVE_ALLOC_PAIR 1
14964 cat >>confdefs.h <<\EOF
14965 #define HAVE_INIT_EXTENDED_COLOR 1
14968 cat >>confdefs.h <<\EOF
14969 #define HAVE_RESET_COLOR_PAIRS 1
14975 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14976 echo "$as_me:14976: checking if you want to use extended mouse encoding" >&5
14977 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14979 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14980 if test "${enable_ext_mouse+set}" = set; then
14981 enableval="$enable_ext_mouse"
14982 with_ext_mouse=$enableval
14984 with_ext_mouse=$cf_dft_ext_mouse
14986 echo "$as_me:14986: result: $with_ext_mouse" >&5
14987 echo "${ECHO_T}$with_ext_mouse" >&6
14988 NCURSES_MOUSE_VERSION=1
14989 if test "x$with_ext_mouse" = xyes ; then
14990 NCURSES_MOUSE_VERSION=2
14992 if test "${with_abi_version+set}" != set; then
14993 case "$cf_cv_rel_version" in
14995 cf_cv_rel_version=6.0
14996 cf_cv_abi_version=6
14997 { echo "$as_me:14997: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14998 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15005 ### use option --enable-ext-putwin to turn on extended screendumps
15006 echo "$as_me:15006: checking if you want to use extended putwin/screendump" >&5
15007 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15009 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15010 if test "${enable_ext_putwin+set}" = set; then
15011 enableval="$enable_ext_putwin"
15012 with_ext_putwin=$enableval
15014 with_ext_putwin=$cf_dft_ext_putwin
15016 echo "$as_me:15016: result: $with_ext_putwin" >&5
15017 echo "${ECHO_T}$with_ext_putwin" >&6
15018 if test "x$with_ext_putwin" = xyes ; then
15020 cat >>confdefs.h <<\EOF
15021 #define NCURSES_EXT_PUTWIN 1
15026 echo "$as_me:15026: checking if you want \$NCURSES_NO_PADDING code" >&5
15027 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15029 # Check whether --enable-no-padding or --disable-no-padding was given.
15030 if test "${enable_no_padding+set}" = set; then
15031 enableval="$enable_no_padding"
15032 with_no_padding=$enableval
15034 with_no_padding=$with_ext_funcs
15036 echo "$as_me:15036: result: $with_no_padding" >&5
15037 echo "${ECHO_T}$with_no_padding" >&6
15038 test "x$with_no_padding" = xyes &&
15039 cat >>confdefs.h <<\EOF
15040 #define NCURSES_NO_PADDING 1
15043 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15044 echo "$as_me:15044: checking if you want SIGWINCH handler" >&5
15045 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15047 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15048 if test "${enable_sigwinch+set}" = set; then
15049 enableval="$enable_sigwinch"
15050 with_sigwinch=$enableval
15052 with_sigwinch=$with_ext_funcs
15054 echo "$as_me:15054: result: $with_sigwinch" >&5
15055 echo "${ECHO_T}$with_sigwinch" >&6
15056 test "x$with_sigwinch" = xyes &&
15057 cat >>confdefs.h <<\EOF
15058 #define USE_SIGWINCH 1
15061 ### use option --enable-tcap-names to allow user to define new capabilities
15062 echo "$as_me:15062: checking if you want user-definable terminal capabilities like termcap" >&5
15063 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15065 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15066 if test "${enable_tcap_names+set}" = set; then
15067 enableval="$enable_tcap_names"
15068 with_tcap_names=$enableval
15070 with_tcap_names=$with_ext_funcs
15072 echo "$as_me:15072: result: $with_tcap_names" >&5
15073 echo "${ECHO_T}$with_tcap_names" >&6
15075 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
15077 ##############################################################################
15079 echo "$as_me:15079: checking if you want to link with the pthread library" >&5
15080 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15082 # Check whether --with-pthread or --without-pthread was given.
15083 if test "${with_pthread+set}" = set; then
15084 withval="$with_pthread"
15085 with_pthread=$withval
15089 echo "$as_me:15089: result: $with_pthread" >&5
15090 echo "${ECHO_T}$with_pthread" >&6
15092 if test "$with_pthread" != no ; then
15093 echo "$as_me:15093: checking for pthread.h" >&5
15094 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15095 if test "${ac_cv_header_pthread_h+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 cat >"conftest.$ac_ext" <<_ACEOF
15099 #line 15099 "configure"
15100 #include "confdefs.h"
15101 #include <pthread.h>
15103 if { (eval echo "$as_me:15103: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15104 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15106 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15108 cat conftest.err >&5
15109 echo "$as_me:15109: \$? = $ac_status" >&5
15110 (exit "$ac_status"); } >/dev/null; then
15111 if test -s conftest.err; then
15112 ac_cpp_err=$ac_c_preproc_warn_flag
15119 if test -z "$ac_cpp_err"; then
15120 ac_cv_header_pthread_h=yes
15122 echo "$as_me: failed program was:" >&5
15123 cat "conftest.$ac_ext" >&5
15124 ac_cv_header_pthread_h=no
15126 rm -f conftest.err "conftest.$ac_ext"
15128 echo "$as_me:15128: result: $ac_cv_header_pthread_h" >&5
15129 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15130 if test "$ac_cv_header_pthread_h" = yes; then
15132 cat >>confdefs.h <<\EOF
15133 #define HAVE_PTHREADS_H 1
15136 for cf_lib_pthread in pthread c_r
15138 echo "$as_me:15138: checking if we can link with the $cf_lib_pthread library" >&5
15139 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15140 cf_save_LIBS="$LIBS"
15142 cf_add_libs="$LIBS"
15145 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15146 # filter duplicates
15147 for cf_add_1lib in $cf_add_0lib; do
15148 for cf_add_2lib in $cf_add_libs; do
15149 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15154 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15156 LIBS="$cf_add_libs"
15158 cat >"conftest.$ac_ext" <<_ACEOF
15159 #line 15159 "configure"
15160 #include "confdefs.h"
15162 #include <pthread.h>
15168 int rc = pthread_create(0,0,0,0);
15169 int r2 = pthread_mutexattr_settype(0, 0);
15175 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15176 if { (eval echo "$as_me:15176: \"$ac_link\"") >&5
15177 (eval $ac_link) 2>&5
15179 echo "$as_me:15179: \$? = $ac_status" >&5
15180 (exit "$ac_status"); } &&
15181 { ac_try='test -s "conftest$ac_exeext"'
15182 { (eval echo "$as_me:15182: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:15185: \$? = $ac_status" >&5
15186 (exit "$ac_status"); }; }; then
15189 echo "$as_me: failed program was:" >&5
15190 cat "conftest.$ac_ext" >&5
15193 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15194 LIBS="$cf_save_LIBS"
15195 echo "$as_me:15195: result: $with_pthread" >&5
15196 echo "${ECHO_T}$with_pthread" >&6
15197 test "$with_pthread" = yes && break
15200 if test "$with_pthread" = yes ; then
15202 cf_add_libs="$LIBS"
15205 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15206 # filter duplicates
15207 for cf_add_1lib in $cf_add_0lib; do
15208 for cf_add_2lib in $cf_add_libs; do
15209 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15214 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15216 LIBS="$cf_add_libs"
15218 cat >>confdefs.h <<\EOF
15219 #define HAVE_LIBPTHREADS 1
15223 { { echo "$as_me:15223: error: Cannot link with pthread library" >&5
15224 echo "$as_me: error: Cannot link with pthread library" >&2;}
15225 { (exit 1); exit 1; }; }
15232 if test "x$with_pthread" != xno; then
15233 echo "$as_me:15233: checking for pthread_kill" >&5
15234 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15235 if test "${ac_cv_func_pthread_kill+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 cat >"conftest.$ac_ext" <<_ACEOF
15239 #line 15239 "configure"
15240 #include "confdefs.h"
15241 #define pthread_kill autoconf_temporary
15242 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15243 #undef pthread_kill
15249 /* We use char because int might match the return type of a gcc2
15250 builtin and then its argument prototype would still apply. */
15251 char pthread_kill (void);
15257 /* The GNU C library defines stubs for functions which it implements
15258 to always fail with ENOSYS. Some functions are actually named
15259 something starting with __ and the normal name is an alias. */
15260 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15261 #error found stub for pthread_kill
15264 return pthread_kill ();
15269 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15270 if { (eval echo "$as_me:15270: \"$ac_link\"") >&5
15271 (eval $ac_link) 2>&5
15273 echo "$as_me:15273: \$? = $ac_status" >&5
15274 (exit "$ac_status"); } &&
15275 { ac_try='test -s "conftest$ac_exeext"'
15276 { (eval echo "$as_me:15276: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:15279: \$? = $ac_status" >&5
15280 (exit "$ac_status"); }; }; then
15281 ac_cv_func_pthread_kill=yes
15283 echo "$as_me: failed program was:" >&5
15284 cat "conftest.$ac_ext" >&5
15285 ac_cv_func_pthread_kill=no
15287 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15289 echo "$as_me:15289: result: $ac_cv_func_pthread_kill" >&5
15290 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15291 if test "$ac_cv_func_pthread_kill" = yes; then
15293 echo "$as_me:15293: checking if you want to allow EINTR in wgetch with pthreads" >&5
15294 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15296 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15297 if test "${enable_pthreads_eintr+set}" = set; then
15298 enableval="$enable_pthreads_eintr"
15299 use_pthreads_eintr=$enableval
15301 use_pthreads_eintr=no
15303 echo "$as_me:15303: result: $use_pthreads_eintr" >&5
15304 echo "${ECHO_T}$use_pthreads_eintr" >&6
15305 if test "x$use_pthreads_eintr" = xyes ; then
15307 cat >>confdefs.h <<\EOF
15308 #define USE_PTHREADS_EINTR 1
15314 echo "$as_me:15314: checking if you want to use weak-symbols for pthreads" >&5
15315 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15317 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15318 if test "${enable_weak_symbols+set}" = set; then
15319 enableval="$enable_weak_symbols"
15320 use_weak_symbols=$enableval
15322 use_weak_symbols=no
15324 echo "$as_me:15324: result: $use_weak_symbols" >&5
15325 echo "${ECHO_T}$use_weak_symbols" >&6
15326 if test "x$use_weak_symbols" = xyes ; then
15328 echo "$as_me:15328: checking if $CC supports weak symbols" >&5
15329 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15330 if test "${cf_cv_weak_symbols+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 cat >"conftest.$ac_ext" <<_ACEOF
15335 #line 15335 "configure"
15336 #include "confdefs.h"
15343 #if defined(__GNUC__)
15344 # if defined __USE_ISOC99
15345 # define _cat_pragma(exp) _Pragma(#exp)
15346 # define _weak_pragma(exp) _cat_pragma(weak name)
15348 # define _weak_pragma(exp)
15350 # define _declare(name) __extension__ extern __typeof__(name) name
15351 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15354 weak_symbol(fopen);
15360 rm -f "conftest.$ac_objext"
15361 if { (eval echo "$as_me:15361: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>&5
15364 echo "$as_me:15364: \$? = $ac_status" >&5
15365 (exit "$ac_status"); } &&
15366 { ac_try='test -s "conftest.$ac_objext"'
15367 { (eval echo "$as_me:15367: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 echo "$as_me:15370: \$? = $ac_status" >&5
15371 (exit "$ac_status"); }; }; then
15372 cf_cv_weak_symbols=yes
15374 echo "$as_me: failed program was:" >&5
15375 cat "conftest.$ac_ext" >&5
15376 cf_cv_weak_symbols=no
15378 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15381 echo "$as_me:15381: result: $cf_cv_weak_symbols" >&5
15382 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15385 cf_cv_weak_symbols=no
15388 if test "x$cf_cv_weak_symbols" = xyes ; then
15390 cat >>confdefs.h <<\EOF
15391 #define USE_WEAK_SYMBOLS 1
15398 if test "x$with_pthread" = "xyes" ; then
15400 cat >>confdefs.h <<\EOF
15401 #define USE_PTHREADS 1
15404 enable_reentrant=yes
15405 if test "x$cf_cv_weak_symbols" = xyes ; then
15408 cf_add_libs="$PRIVATE_LIBS"
15411 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15412 # filter duplicates
15413 for cf_add_1lib in $cf_add_0lib; do
15414 for cf_add_2lib in $cf_add_libs; do
15415 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15420 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15422 PRIVATE_LIBS="$cf_add_libs"
15427 # Reentrant code has to be opaque; there's little advantage to making ncurses
15428 # opaque outside of that, so there is no --enable-opaque option. We can use
15429 # this option without --with-pthreads, but this will be always set for
15431 echo "$as_me:15431: checking if you want reentrant code" >&5
15432 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15434 # Check whether --enable-reentrant or --disable-reentrant was given.
15435 if test "${enable_reentrant+set}" = set; then
15436 enableval="$enable_reentrant"
15437 with_reentrant=$enableval
15441 echo "$as_me:15441: result: $with_reentrant" >&5
15442 echo "${ECHO_T}$with_reentrant" >&6
15443 if test "x$with_reentrant" = xyes ; then
15444 cf_cv_enable_reentrant=1
15445 cf_cv_enable_opaque="NCURSES_INTERNALS"
15447 if test "x$cf_cv_weak_symbols" = xyes ; then
15449 # remove pthread library from $LIBS
15450 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15452 cf_add_libs="$TEST_LIBS"
15455 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15456 # filter duplicates
15457 for cf_add_1lib in $cf_add_0lib; do
15458 for cf_add_2lib in $cf_add_libs; do
15459 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15464 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15466 TEST_LIBS="$cf_add_libs"
15468 cf_add_libs="$TEST_LIBS2"
15471 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15472 # filter duplicates
15473 for cf_add_1lib in $cf_add_0lib; do
15474 for cf_add_2lib in $cf_add_libs; do
15475 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15480 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15482 TEST_LIBS2="$cf_add_libs"
15484 cf_add_libs="$PRIVATE_LIBS"
15487 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15488 # filter duplicates
15489 for cf_add_1lib in $cf_add_0lib; do
15490 for cf_add_2lib in $cf_add_libs; do
15491 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15496 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15498 PRIVATE_LIBS="$cf_add_libs"
15501 # when not using weak symbols but with_reentrant,
15502 # add 't' to the library suffix on all platforms
15503 # except cygwin, where we only do that if ALSO
15504 # compiling with full thread support.
15506 (*cygwin* | *msys*)
15507 if test "$with_pthread" = "yes" ; then
15508 if test "x$disable_lib_suffixes" = "xno" ; then
15509 LIB_SUFFIX="t${LIB_SUFFIX}"
15513 if test "x$disable_lib_suffixes" = "xno" ; then
15514 LIB_SUFFIX="t${LIB_SUFFIX}"
15520 cat >>confdefs.h <<\EOF
15521 #define USE_REENTRANT 1
15524 if test "${with_abi_version+set}" != set; then
15525 case "$cf_cv_rel_version" in
15527 cf_cv_rel_version=6.0
15528 cf_cv_abi_version=6
15529 { echo "$as_me:15529: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15530 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15536 cf_cv_enable_reentrant=0
15537 cf_cv_enable_opaque="NCURSES_OPAQUE"
15538 NCURSES_SIZE_T=short
15541 echo "$as_me:15541: checking if you want opaque curses-library structures" >&5
15542 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15544 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15545 if test "${enable_opaque_curses+set}" = set; then
15546 enableval="$enable_opaque_curses"
15547 test "$enableval" != yes && enableval=no
15548 if test "$enableval" != "no" ; then
15549 enable_opaque_curses=yes
15552 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15553 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15559 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15560 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15563 echo "$as_me:15563: result: $enable_opaque_curses" >&5
15564 echo "${ECHO_T}$enable_opaque_curses" >&6
15566 test "$cf_cv_enable_reentrant" = 1 && \
15567 test "$enable_opaque_curses" = no && \
15568 { { echo "$as_me:15568: error: reentrant configuration requires opaque library" >&5
15569 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15570 { (exit 1); exit 1; }; }
15572 echo "$as_me:15572: checking if you want opaque form-library structures" >&5
15573 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15575 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15576 if test "${enable_opaque_form+set}" = set; then
15577 enableval="$enable_opaque_form"
15578 enable_opaque_form=yes
15580 enable_opaque_form=no
15582 echo "$as_me:15582: result: $enable_opaque_form" >&5
15583 echo "${ECHO_T}$enable_opaque_form" >&6
15585 echo "$as_me:15585: checking if you want opaque menu-library structures" >&5
15586 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15588 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15589 if test "${enable_opaque_menu+set}" = set; then
15590 enableval="$enable_opaque_menu"
15591 enable_opaque_menu=yes
15593 enable_opaque_menu=no
15595 echo "$as_me:15595: result: $enable_opaque_menu" >&5
15596 echo "${ECHO_T}$enable_opaque_menu" >&6
15598 echo "$as_me:15598: checking if you want opaque panel-library structures" >&5
15599 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15601 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15602 if test "${enable_opaque_panel+set}" = set; then
15603 enableval="$enable_opaque_panel"
15604 enable_opaque_panel=yes
15606 enable_opaque_panel=no
15608 echo "$as_me:15608: result: $enable_opaque_panel" >&5
15609 echo "${ECHO_T}$enable_opaque_panel" >&6
15611 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15612 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15613 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15614 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15616 ### Allow using a different wrap-prefix
15617 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15618 echo "$as_me:15618: checking for prefix used to wrap public variables" >&5
15619 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15621 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15622 if test "${with_wrap_prefix+set}" = set; then
15623 withval="$with_wrap_prefix"
15624 NCURSES_WRAP_PREFIX=$withval
15626 NCURSES_WRAP_PREFIX=_nc_
15628 echo "$as_me:15628: result: $NCURSES_WRAP_PREFIX" >&5
15629 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15631 NCURSES_WRAP_PREFIX=_nc_
15634 cat >>confdefs.h <<EOF
15635 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15638 ###############################################################################
15639 # These options are relatively safe to experiment with.
15641 echo "$as_me:15641: checking if you want all development code" >&5
15642 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15644 # Check whether --with-develop or --without-develop was given.
15645 if test "${with_develop+set}" = set; then
15646 withval="$with_develop"
15647 with_develop=$withval
15651 echo "$as_me:15651: result: $with_develop" >&5
15652 echo "${ECHO_T}$with_develop" >&6
15654 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15655 echo "$as_me:15655: checking if you want hard-tabs code" >&5
15656 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15658 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15659 if test "${enable_hard_tabs+set}" = set; then
15660 enableval="$enable_hard_tabs"
15663 enable_hard_tabs=$with_develop
15665 echo "$as_me:15665: result: $enable_hard_tabs" >&5
15666 echo "${ECHO_T}$enable_hard_tabs" >&6
15667 test "x$enable_hard_tabs" = xyes &&
15668 cat >>confdefs.h <<\EOF
15669 #define USE_HARD_TABS 1
15672 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15673 echo "$as_me:15673: checking if you want limited support for xmc" >&5
15674 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15676 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15677 if test "${enable_xmc_glitch+set}" = set; then
15678 enableval="$enable_xmc_glitch"
15681 enable_xmc_glitch=$with_develop
15683 echo "$as_me:15683: result: $enable_xmc_glitch" >&5
15684 echo "${ECHO_T}$enable_xmc_glitch" >&6
15685 test "x$enable_xmc_glitch" = xyes &&
15686 cat >>confdefs.h <<\EOF
15687 #define USE_XMC_SUPPORT 1
15690 ###############################################################################
15691 # These are just experimental, probably should not be in a package:
15693 echo "$as_me:15693: checking if you do not want to assume colors are white-on-black" >&5
15694 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15696 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15697 if test "${enable_assumed_color+set}" = set; then
15698 enableval="$enable_assumed_color"
15699 with_assumed_color=$enableval
15701 with_assumed_color=yes
15703 echo "$as_me:15703: result: $with_assumed_color" >&5
15704 echo "${ECHO_T}$with_assumed_color" >&6
15705 test "x$with_assumed_color" = xyes &&
15706 cat >>confdefs.h <<\EOF
15707 #define USE_ASSUMED_COLOR 1
15710 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15711 echo "$as_me:15711: checking if you want hashmap scrolling-optimization code" >&5
15712 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15714 # Check whether --enable-hashmap or --disable-hashmap was given.
15715 if test "${enable_hashmap+set}" = set; then
15716 enableval="$enable_hashmap"
15717 with_hashmap=$enableval
15721 echo "$as_me:15721: result: $with_hashmap" >&5
15722 echo "${ECHO_T}$with_hashmap" >&6
15723 test "x$with_hashmap" = xyes &&
15724 cat >>confdefs.h <<\EOF
15725 #define USE_HASHMAP 1
15728 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15729 echo "$as_me:15729: checking if you want colorfgbg code" >&5
15730 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15732 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15733 if test "${enable_colorfgbg+set}" = set; then
15734 enableval="$enable_colorfgbg"
15735 with_colorfgbg=$enableval
15739 echo "$as_me:15739: result: $with_colorfgbg" >&5
15740 echo "${ECHO_T}$with_colorfgbg" >&6
15741 test "x$with_colorfgbg" = xyes &&
15742 cat >>confdefs.h <<\EOF
15743 #define USE_COLORFGBG 1
15746 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15747 echo "$as_me:15747: checking if you want to use gcc -fvisibility option" >&5
15748 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15750 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15751 if test "${enable_fvisibility+set}" = set; then
15752 enableval="$enable_fvisibility"
15753 cf_with_fvisibility=$enableval
15755 cf_with_fvisibility=no
15757 echo "$as_me:15757: result: $cf_with_fvisibility" >&5
15758 echo "${ECHO_T}$cf_with_fvisibility" >&6
15761 NCURSES_CXX_IMPEXP=
15762 if test "x$cf_with_fvisibility" = xyes; then
15764 echo "$as_me:15764: checking if $CC -fvisibility=hidden option works" >&5
15765 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15766 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 cf_save_cflags="$CFLAGS"
15771 CFLAGS="$CFLAGS -fvisibility=hidden"
15772 cat >"conftest.$ac_ext" <<_ACEOF
15773 #line 15773 "configure"
15774 #include "confdefs.h"
15776 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15782 if (somefunc()) return 1;
15788 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15789 if { (eval echo "$as_me:15789: \"$ac_link\"") >&5
15790 (eval $ac_link) 2>&5
15792 echo "$as_me:15792: \$? = $ac_status" >&5
15793 (exit "$ac_status"); } &&
15794 { ac_try='test -s "conftest$ac_exeext"'
15795 { (eval echo "$as_me:15795: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:15798: \$? = $ac_status" >&5
15799 (exit "$ac_status"); }; }; then
15800 cf_cv_fvisibility_hidden=yes
15802 echo "$as_me: failed program was:" >&5
15803 cat "conftest.$ac_ext" >&5
15804 cf_cv_fvisibility_hidden=no
15806 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15807 CFLAGS=$cf_save_cflags
15810 echo "$as_me:15810: result: $cf_cv_fvisibility_hidden" >&5
15811 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
15813 if test "x$cf_cv_fvisibility_hidden" = xyes
15819 cf_new_extra_cppflags=
15821 for cf_add_cflags in -fvisibility=hidden
15823 case "$cf_fix_cppflags" in
15825 case "$cf_add_cflags" in
15826 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15827 case "$cf_add_cflags" in
15829 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15831 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15832 && test -z "${cf_tst_cflags}" \
15833 && cf_fix_cppflags=yes
15835 if test "$cf_fix_cppflags" = yes ; then
15837 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15838 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15841 elif test "${cf_tst_cflags}" = "\"'" ; then
15843 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15844 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15850 case "$CPPFLAGS" in
15854 case "$cf_add_cflags" in
15856 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15858 CPPFLAGS=`echo "$CPPFLAGS" | \
15859 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15860 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15865 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15866 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15873 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15874 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15881 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15882 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15884 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15886 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15887 && test -z "${cf_tst_cflags}" \
15888 && cf_fix_cppflags=no
15893 if test -n "$cf_new_cflags" ; then
15895 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15896 CFLAGS="${CFLAGS}$cf_new_cflags"
15900 if test -n "$cf_new_cppflags" ; then
15902 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15903 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15907 if test -n "$cf_new_extra_cppflags" ; then
15909 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15910 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15914 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
15919 ac_cpp='$CXXCPP $CPPFLAGS'
15920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
15921 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
15922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15923 ac_main_return="return"
15925 echo "$as_me:15925: checking if $CXX -fvisibility=hidden option works" >&5
15926 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
15927 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 cf_save_cflags="$CXXFLAGS"
15932 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
15933 cat >"conftest.$ac_ext" <<_ACEOF
15934 #line 15934 "configure"
15935 #include "confdefs.h"
15937 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15943 if (somefunc()) return 1;
15949 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15950 if { (eval echo "$as_me:15950: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>&5
15953 echo "$as_me:15953: \$? = $ac_status" >&5
15954 (exit "$ac_status"); } &&
15955 { ac_try='test -s "conftest$ac_exeext"'
15956 { (eval echo "$as_me:15956: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 echo "$as_me:15959: \$? = $ac_status" >&5
15960 (exit "$ac_status"); }; }; then
15961 cf_cv_fvisibility_hidden2=yes
15963 echo "$as_me: failed program was:" >&5
15964 cat "conftest.$ac_ext" >&5
15965 cf_cv_fvisibility_hidden2=no
15967 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15968 CXXFLAGS=$cf_save_cflags
15971 echo "$as_me:15971: result: $cf_cv_fvisibility_hidden2" >&5
15972 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
15974 if test "x$cf_cv_fvisibility_hidden2" = xyes
15977 cf_save_CXXFLAGS="$CFLAGS"
15983 cf_new_extra_cppflags=
15985 for cf_add_cflags in -fvisibility=hidden
15987 case "$cf_fix_cppflags" in
15989 case "$cf_add_cflags" in
15990 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15991 case "$cf_add_cflags" in
15993 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15995 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15996 && test -z "${cf_tst_cflags}" \
15997 && cf_fix_cppflags=yes
15999 if test "$cf_fix_cppflags" = yes ; then
16001 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16002 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16005 elif test "${cf_tst_cflags}" = "\"'" ; then
16007 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16008 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16014 case "$CPPFLAGS" in
16018 case "$cf_add_cflags" in
16020 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16022 CPPFLAGS=`echo "$CPPFLAGS" | \
16023 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16024 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16029 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16030 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16037 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16038 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16045 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16046 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16048 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16050 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16051 && test -z "${cf_tst_cflags}" \
16052 && cf_fix_cppflags=no
16057 if test -n "$cf_new_cflags" ; then
16059 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16060 CFLAGS="${CFLAGS}$cf_new_cflags"
16064 if test -n "$cf_new_cppflags" ; then
16066 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16067 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16071 if test -n "$cf_new_extra_cppflags" ; then
16073 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16074 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16079 CFLAGS="$cf_save_CXXFLAGS"
16081 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16084 ac_cpp='$CPP $CPPFLAGS'
16085 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16086 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16088 ac_main_return="return"
16093 ### use option --enable-interop to turn on use of bindings used for interop
16094 echo "$as_me:16094: checking if you want interop bindings" >&5
16095 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16097 # Check whether --enable-interop or --disable-interop was given.
16098 if test "${enable_interop+set}" = set; then
16099 enableval="$enable_interop"
16100 with_exp_interop=$enableval
16102 with_exp_interop=$cf_dft_interop
16104 echo "$as_me:16104: result: $with_exp_interop" >&5
16105 echo "${ECHO_T}$with_exp_interop" >&6
16107 NCURSES_INTEROP_FUNCS=0
16108 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16110 echo "$as_me:16110: checking if you want experimental safe-sprintf code" >&5
16111 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16113 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16114 if test "${enable_safe_sprintf+set}" = set; then
16115 enableval="$enable_safe_sprintf"
16116 with_safe_sprintf=$enableval
16118 with_safe_sprintf=no
16120 echo "$as_me:16120: result: $with_safe_sprintf" >&5
16121 echo "${ECHO_T}$with_safe_sprintf" >&6
16123 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16124 # when hashmap is used scroll hints are useless
16125 if test "$with_hashmap" = no ; then
16126 echo "$as_me:16126: checking if you want to experiment without scrolling-hints code" >&5
16127 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16129 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16130 if test "${enable_scroll_hints+set}" = set; then
16131 enableval="$enable_scroll_hints"
16132 with_scroll_hints=$enableval
16134 with_scroll_hints=yes
16136 echo "$as_me:16136: result: $with_scroll_hints" >&5
16137 echo "${ECHO_T}$with_scroll_hints" >&6
16138 test "x$with_scroll_hints" = xyes &&
16139 cat >>confdefs.h <<\EOF
16140 #define USE_SCROLL_HINTS 1
16145 echo "$as_me:16145: checking if you want wgetch-events code" >&5
16146 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16148 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16149 if test "${enable_wgetch_events+set}" = set; then
16150 enableval="$enable_wgetch_events"
16151 with_wgetch_events=$enableval
16153 with_wgetch_events=no
16155 echo "$as_me:16155: result: $with_wgetch_events" >&5
16156 echo "${ECHO_T}$with_wgetch_events" >&6
16157 if test "x$with_wgetch_events" = xyes ; then
16159 cat >>confdefs.h <<\EOF
16160 #define NCURSES_WGETCH_EVENTS 1
16163 NCURSES_WGETCH_EVENTS=1
16165 NCURSES_WGETCH_EVENTS=0
16168 case "$cf_cv_system_name" in
16169 (*mingw32*|*mingw64*|*-msvc*)
16170 echo "$as_me:16170: checking if you want experimental-Windows driver" >&5
16171 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16173 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16174 if test "${enable_exp_win32+set}" = set; then
16175 enableval="$enable_exp_win32"
16176 with_exp_win32=$enableval
16180 echo "$as_me:16180: result: $with_exp_win32" >&5
16181 echo "${ECHO_T}$with_exp_win32" >&6
16182 if test "x$with_exp_win32" = xyes
16185 cat >>confdefs.h <<\EOF
16186 #define EXP_WIN32_DRIVER 1
16190 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16192 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16202 ###############################################################################
16204 ### use option --disable-echo to suppress full display compiling commands
16206 echo "$as_me:16206: checking if you want to see long compiling messages" >&5
16207 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16209 # Check whether --enable-echo or --disable-echo was given.
16210 if test "${enable_echo+set}" = set; then
16211 enableval="$enable_echo"
16212 test "$enableval" != no && enableval=yes
16213 if test "$enableval" != "yes" ; then
16216 ECHO_LD='@echo linking $@;'
16217 RULE_CC='@echo compiling $<'
16218 SHOW_CC='@echo compiling $@'
16240 echo "$as_me:16240: result: $enableval" >&5
16241 echo "${ECHO_T}$enableval" >&6
16243 if test "x$enable_echo" = xyes; then
16246 ECHO_LINK='@ echo linking $@ ... ;'
16247 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16248 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16251 # --disable-stripping is used for debugging
16253 echo "$as_me:16253: checking if you want to install stripped executables" >&5
16254 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16256 # Check whether --enable-stripping or --disable-stripping was given.
16257 if test "${enable_stripping+set}" = set; then
16258 enableval="$enable_stripping"
16259 test "$enableval" != no && enableval=yes
16260 if test "$enableval" != "yes" ; then
16261 enable_stripping=no
16263 enable_stripping=yes
16267 enable_stripping=yes
16270 echo "$as_me:16270: result: $enable_stripping" >&5
16271 echo "${ECHO_T}$enable_stripping" >&6
16273 if test "$enable_stripping" = yes
16280 : "${INSTALL:=install}"
16281 echo "$as_me:16281: checking if install accepts -p option" >&5
16282 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16283 if test "${cf_cv_install_p+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16293 if test -f conftest.out/conftest.in
16295 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16296 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16297 if test -s conftest.err
16301 cf_cv_install_p=yes
16312 echo "$as_me:16312: result: $cf_cv_install_p" >&5
16313 echo "${ECHO_T}$cf_cv_install_p" >&6
16315 echo "$as_me:16315: checking if install needs to be told about ownership" >&5
16316 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16317 case `$ac_config_guess` in
16326 echo "$as_me:16326: result: $with_install_o" >&5
16327 echo "${ECHO_T}$with_install_o" >&6
16328 if test "x$with_install_o" = xyes
16330 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'`"
16335 # If we're avoiding relinking of shared libraries during install, that is to
16336 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16337 # the install program has "-p" (for preserving timestamps).
16338 cf_cv_do_reranlib=yes
16339 if test "x$cf_cv_install_p" = xyes
16341 if test "x$cf_cv_do_relink" != xyes
16343 cf_cv_do_reranlib=no
16345 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16349 ### use option --enable-warnings to turn on all gcc warnings
16351 if test "$GCC" = yes || test "$GXX" = yes
16354 if test "$GCC" = yes || test "$GXX" = yes
16358 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
16360 echo "${as_me:-configure}:16360: testing repairing CFLAGS: $CFLAGS ..." 1>&5
16363 for cf_temp_scan in $CFLAGS
16365 case "x$cf_temp_scan" in
16368 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16369 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16374 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16375 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16380 CFLAGS="$cf_temp_flags"
16381 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
16383 echo "${as_me:-configure}:16383: testing ... fixed $CFLAGS ..." 1>&5
16385 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16387 echo "${as_me:-configure}:16387: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16393 if test "$GCC" = yes || test "$GXX" = yes
16397 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
16399 echo "${as_me:-configure}:16399: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
16402 for cf_temp_scan in $CPPFLAGS
16404 case "x$cf_temp_scan" in
16407 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16408 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16413 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16414 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16419 CPPFLAGS="$cf_temp_flags"
16420 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
16422 echo "${as_me:-configure}:16422: testing ... fixed $CPPFLAGS ..." 1>&5
16424 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16426 echo "${as_me:-configure}:16426: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16432 if test "$GCC" = yes || test "$GXX" = yes
16436 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
16438 echo "${as_me:-configure}:16438: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
16441 for cf_temp_scan in $LDFLAGS
16443 case "x$cf_temp_scan" in
16446 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16447 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16452 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16453 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16458 LDFLAGS="$cf_temp_flags"
16459 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
16461 echo "${as_me:-configure}:16461: testing ... fixed $LDFLAGS ..." 1>&5
16463 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16465 echo "${as_me:-configure}:16465: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16471 echo "$as_me:16471: checking if you want to turn on gcc warnings" >&5
16472 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16474 # Check whether --enable-warnings or --disable-warnings was given.
16475 if test "${enable_warnings+set}" = set; then
16476 enableval="$enable_warnings"
16477 test "$enableval" != yes && enableval=no
16478 if test "$enableval" != "no" ; then
16479 enable_warnings=yes
16488 echo "$as_me:16488: result: $enable_warnings" >&5
16489 echo "${ECHO_T}$enable_warnings" >&6
16490 if test "$enable_warnings" = "yes"
16493 if test "x$have_x" = xyes; then
16495 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16496 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16497 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16498 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16499 for cf_X_CFLAGS in $X_CFLAGS
16501 case "x$cf_X_CFLAGS" in
16503 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16506 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16511 cat >"conftest.$ac_ext" <<_ACEOF
16512 #line 16512 "configure"
16513 #include "confdefs.h"
16515 #include <stdlib.h>
16516 #include <X11/Intrinsic.h>
16521 String foo = malloc(1); (void)foo
16526 rm -f "conftest.$ac_objext"
16527 if { (eval echo "$as_me:16527: \"$ac_compile\"") >&5
16528 (eval $ac_compile) 2>&5
16530 echo "$as_me:16530: \$? = $ac_status" >&5
16531 (exit "$ac_status"); } &&
16532 { ac_try='test -s "conftest.$ac_objext"'
16533 { (eval echo "$as_me:16533: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16536 echo "$as_me:16536: \$? = $ac_status" >&5
16537 (exit "$ac_status"); }; }; then
16539 echo "$as_me:16539: checking for X11/Xt const-feature" >&5
16540 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16541 if test "${cf_cv_const_x_string+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 cat >"conftest.$ac_ext" <<_ACEOF
16546 #line 16546 "configure"
16547 #include "confdefs.h"
16549 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16550 #undef XTSTRINGDEFINES /* X11R5 and later */
16551 #include <stdlib.h>
16552 #include <X11/Intrinsic.h>
16557 String foo = malloc(1); *foo = 0
16562 rm -f "conftest.$ac_objext"
16563 if { (eval echo "$as_me:16563: \"$ac_compile\"") >&5
16564 (eval $ac_compile) 2>&5
16566 echo "$as_me:16566: \$? = $ac_status" >&5
16567 (exit "$ac_status"); } &&
16568 { ac_try='test -s "conftest.$ac_objext"'
16569 { (eval echo "$as_me:16569: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:16572: \$? = $ac_status" >&5
16573 (exit "$ac_status"); }; }; then
16575 cf_cv_const_x_string=no
16578 echo "$as_me: failed program was:" >&5
16579 cat "conftest.$ac_ext" >&5
16581 cf_cv_const_x_string=yes
16584 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16587 echo "$as_me:16587: result: $cf_cv_const_x_string" >&5
16588 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16590 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16591 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16592 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16594 case "$cf_cv_const_x_string" in
16597 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16598 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16603 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16604 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16610 echo "$as_me: failed program was:" >&5
16611 cat "conftest.$ac_ext" >&5
16613 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16615 cat > "conftest.$ac_ext" <<EOF
16616 #line 16616 "${as_me:-configure}"
16617 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16619 if test "$INTEL_COMPILER" = yes
16621 # The "-wdXXX" options suppress warnings:
16622 # remark #1419: external declaration in primary source file
16623 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16624 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16625 # remark #193: zero used for undefined preprocessing identifier
16626 # remark #593: variable "curs_sb_left_arrow" was set but never used
16627 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16628 # remark #869: parameter "tw" was never referenced
16629 # remark #981: operands are evaluated in unspecified order
16630 # warning #279: controlling expression is constant
16632 { echo "$as_me:16632: checking for $CC warning options..." >&5
16633 echo "$as_me: checking for $CC warning options..." >&6;}
16634 cf_save_CFLAGS="$CFLAGS"
16635 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
16647 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16648 if { (eval echo "$as_me:16648: \"$ac_compile\"") >&5
16649 (eval $ac_compile) 2>&5
16651 echo "$as_me:16651: \$? = $ac_status" >&5
16652 (exit "$ac_status"); }; then
16653 test -n "$verbose" && echo "$as_me:16653: result: ... -$cf_opt" >&5
16654 echo "${ECHO_T}... -$cf_opt" >&6
16655 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16658 CFLAGS="$cf_save_CFLAGS"
16659 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16661 { echo "$as_me:16661: checking for $CC warning options..." >&5
16662 echo "$as_me: checking for $CC warning options..." >&6;}
16663 cf_save_CFLAGS="$CFLAGS"
16665 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16666 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16667 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16668 for cf_opt in W Wall \
16669 Wbad-function-cast \
16672 Wdeclaration-after-statement \
16675 Wmissing-declarations \
16676 Wmissing-prototypes \
16680 Wstrict-prototypes \
16681 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16683 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16684 if { (eval echo "$as_me:16684: \"$ac_compile\"") >&5
16685 (eval $ac_compile) 2>&5
16687 echo "$as_me:16687: \$? = $ac_status" >&5
16688 (exit "$ac_status"); }; then
16689 test -n "$verbose" && echo "$as_me:16689: result: ... -$cf_opt" >&5
16690 echo "${ECHO_T}... -$cf_opt" >&6
16693 case "$GCC_VERSION" in
16695 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16697 echo "${as_me:-configure}:16697: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16703 case "$GCC_VERSION" in
16705 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16707 echo "${as_me:-configure}:16707: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16713 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16716 CFLAGS="$cf_save_CFLAGS"
16722 if test "$GCC" = yes || test "$GXX" = yes
16724 cat > conftest.i <<EOF
16726 #define GCC_PRINTF 0
16729 #define GCC_SCANF 0
16731 #ifndef GCC_NORETURN
16732 #define GCC_NORETURN /* nothing */
16735 #define GCC_UNUSED /* nothing */
16738 if test "$GCC" = yes
16740 { echo "$as_me:16740: checking for $CC __attribute__ directives..." >&5
16741 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16742 cat > "conftest.$ac_ext" <<EOF
16743 #line 16743 "${as_me:-configure}"
16744 #include "confdefs.h"
16745 #include "conftest.h"
16746 #include "conftest.i"
16748 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16750 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16753 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16755 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16757 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16758 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16759 extern void foo(void) GCC_NORETURN;
16760 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
16762 cf_printf_attribute=no
16763 cf_scanf_attribute=no
16764 for cf_attribute in scanf printf unused noreturn
16767 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16769 cf_directive="__attribute__(($cf_attribute))"
16770 echo "checking for $CC $cf_directive" 1>&5
16772 case "$cf_attribute" in
16774 cf_printf_attribute=yes
16775 cat >conftest.h <<EOF
16776 #define GCC_$cf_ATTRIBUTE 1
16780 cf_scanf_attribute=yes
16781 cat >conftest.h <<EOF
16782 #define GCC_$cf_ATTRIBUTE 1
16786 cat >conftest.h <<EOF
16787 #define GCC_$cf_ATTRIBUTE $cf_directive
16792 if { (eval echo "$as_me:16792: \"$ac_compile\"") >&5
16793 (eval $ac_compile) 2>&5
16795 echo "$as_me:16795: \$? = $ac_status" >&5
16796 (exit "$ac_status"); }; then
16797 test -n "$verbose" && echo "$as_me:16797: result: ... $cf_attribute" >&5
16798 echo "${ECHO_T}... $cf_attribute" >&6
16799 cat conftest.h >>confdefs.h
16800 case "$cf_attribute" in
16803 cat >>confdefs.h <<EOF
16804 #define GCC_NORETURN $cf_directive
16809 cf_value='/* nothing */'
16810 if test "$cf_printf_attribute" != no ; then
16811 cf_value='__attribute__((format(printf,fmt,var)))'
16813 cat >>confdefs.h <<\EOF
16814 #define GCC_PRINTF 1
16819 cat >>confdefs.h <<EOF
16820 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16825 cf_value='/* nothing */'
16826 if test "$cf_scanf_attribute" != no ; then
16827 cf_value='__attribute__((format(scanf,fmt,var)))'
16829 cat >>confdefs.h <<\EOF
16830 #define GCC_SCANF 1
16835 cat >>confdefs.h <<EOF
16836 #define GCC_SCANFLIKE(fmt,var) $cf_value
16842 cat >>confdefs.h <<EOF
16843 #define GCC_UNUSED $cf_directive
16851 ${FGREP-fgrep} define conftest.i >>confdefs.h
16858 if test "x$enable_warnings" = "xyes"; then
16860 ADAFLAGS="$ADAFLAGS -gnatg"
16862 if test "x$cf_with_cxx" = xyes ; then
16866 if test "$GCC" = yes ; then
16869 echo "$as_me:16869: checking if this is really Intel C++ compiler" >&5
16870 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
16871 cf_save_CFLAGS="$CXXFLAGS"
16872 CXXFLAGS="$CXXFLAGS -no-gcc"
16873 cat >"conftest.$ac_ext" <<_ACEOF
16874 #line 16874 "configure"
16875 #include "confdefs.h"
16881 #ifdef __INTEL_COMPILER
16890 rm -f "conftest.$ac_objext"
16891 if { (eval echo "$as_me:16891: \"$ac_compile\"") >&5
16892 (eval $ac_compile) 2>&5
16894 echo "$as_me:16894: \$? = $ac_status" >&5
16895 (exit "$ac_status"); } &&
16896 { ac_try='test -s "conftest.$ac_objext"'
16897 { (eval echo "$as_me:16897: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16900 echo "$as_me:16900: \$? = $ac_status" >&5
16901 (exit "$ac_status"); }; }; then
16902 INTEL_CPLUSPLUS=yes
16903 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16906 echo "$as_me: failed program was:" >&5
16907 cat "conftest.$ac_ext" >&5
16909 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16910 CXXFLAGS="$cf_save_CFLAGS"
16911 echo "$as_me:16911: result: $INTEL_CPLUSPLUS" >&5
16912 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
16919 if test "$GCC" = yes ; then
16920 echo "$as_me:16920: checking if this is really Clang C++ compiler" >&5
16921 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
16922 cf_save_CFLAGS="$CXXFLAGS"
16923 cat >"conftest.$ac_ext" <<_ACEOF
16924 #line 16924 "configure"
16925 #include "confdefs.h"
16940 rm -f "conftest.$ac_objext"
16941 if { (eval echo "$as_me:16941: \"$ac_compile\"") >&5
16942 (eval $ac_compile) 2>&5
16944 echo "$as_me:16944: \$? = $ac_status" >&5
16945 (exit "$ac_status"); } &&
16946 { ac_try='test -s "conftest.$ac_objext"'
16947 { (eval echo "$as_me:16947: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16950 echo "$as_me:16950: \$? = $ac_status" >&5
16951 (exit "$ac_status"); }; }; then
16952 CLANG_CPLUSPLUS=yes
16955 echo "$as_me: failed program was:" >&5
16956 cat "conftest.$ac_ext" >&5
16958 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16959 CXXFLAGS="$cf_save_CFLAGS"
16960 echo "$as_me:16960: result: $CLANG_CPLUSPLUS" >&5
16961 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
16966 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
16968 (c[1-9][0-9]|*/c[1-9][0-9])
16969 { echo "$as_me:16969: WARNING: replacing broken compiler alias $CC" >&5
16970 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
16971 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
16976 echo "$as_me:16976: checking version of $CC" >&5
16977 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
16978 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.].*//'`"
16979 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
16980 echo "$as_me:16980: result: $CLANG_VERSION" >&5
16981 echo "${ECHO_T}$CLANG_VERSION" >&6
16983 for cf_clang_opt in \
16984 -Qunused-arguments \
16985 -Wno-error=implicit-function-declaration
16987 echo "$as_me:16987: checking if option $cf_clang_opt works" >&5
16988 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
16989 cf_save_CFLAGS="$CFLAGS"
16990 CFLAGS="$CFLAGS $cf_clang_opt"
16991 cat >"conftest.$ac_ext" <<_ACEOF
16992 #line 16992 "configure"
16993 #include "confdefs.h"
17000 printf("hello!\\n");
17005 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17006 if { (eval echo "$as_me:17006: \"$ac_link\"") >&5
17007 (eval $ac_link) 2>&5
17009 echo "$as_me:17009: \$? = $ac_status" >&5
17010 (exit "$ac_status"); } &&
17011 { ac_try='test -s "conftest$ac_exeext"'
17012 { (eval echo "$as_me:17012: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17015 echo "$as_me:17015: \$? = $ac_status" >&5
17016 (exit "$ac_status"); }; }; then
17020 echo "$as_me: failed program was:" >&5
17021 cat "conftest.$ac_ext" >&5
17025 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17026 echo "$as_me:17026: result: $cf_clang_optok" >&5
17027 echo "${ECHO_T}$cf_clang_optok" >&6
17028 CFLAGS="$cf_save_CFLAGS"
17029 if test "$cf_clang_optok" = yes; then
17030 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17032 echo "${as_me:-configure}:17032: testing adding option $cf_clang_opt ..." 1>&5
17034 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17035 CFLAGS="${CFLAGS}$cf_clang_opt"
17042 ac_cpp='$CXXCPP $CPPFLAGS'
17043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17044 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17046 ac_main_return="return"
17048 cat > conftest.$ac_ext <<EOF
17049 #line 17049 "configure"
17050 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17053 if test "$INTEL_CPLUSPLUS" = yes
17055 # The "-wdXXX" options suppress warnings:
17056 # remark #1419: external declaration in primary source file
17057 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17058 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17059 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17060 # remark #193: zero used for undefined preprocessing identifier
17061 # remark #593: variable "curs_sb_left_arrow" was set but never used
17062 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17063 # remark #869: parameter "tw" was never referenced
17064 # remark #981: operands are evaluated in unspecified order
17065 # warning #269: invalid format string conversion
17067 { echo "$as_me:17067: checking for $CC warning options..." >&5
17068 echo "$as_me: checking for $CC warning options..." >&6;}
17069 cf_save_CXXFLAGS="$CXXFLAGS"
17070 EXTRA_CXXFLAGS="-Wall"
17083 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17084 if { (eval echo "$as_me:17084: \"$ac_compile\"") >&5
17085 (eval $ac_compile) 2>&5
17087 echo "$as_me:17087: \$? = $ac_status" >&5
17088 (exit "$ac_status"); }; then
17089 test -n "$verbose" && echo "$as_me:17089: result: ... -$cf_opt" >&5
17090 echo "${ECHO_T}... -$cf_opt" >&6
17091 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17094 CXXFLAGS="$cf_save_CXXFLAGS"
17096 elif test "$GXX" = yes
17098 { echo "$as_me:17098: checking for $CXX warning options..." >&5
17099 echo "$as_me: checking for $CXX warning options..." >&6;}
17100 cf_save_CXXFLAGS="$CXXFLAGS"
17101 EXTRA_CXXFLAGS="-W -Wall"
17102 cf_gxx_extra_warnings=""
17103 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17104 case "$GXX_VERSION" in
17108 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17115 Wignored-qualifiers \
17117 Woverloaded-virtual \
17125 Wundef $cf_gxx_extra_warnings Wno-unused
17127 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17128 if { (eval echo "$as_me:17128: \"$ac_compile\"") >&5
17129 (eval $ac_compile) 2>&5
17131 echo "$as_me:17131: \$? = $ac_status" >&5
17132 (exit "$ac_status"); }; then
17133 test -n "$verbose" && echo "$as_me:17133: result: ... -$cf_opt" >&5
17134 echo "${ECHO_T}... -$cf_opt" >&6
17135 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17137 test -n "$verbose" && echo "$as_me:17137: result: ... no -$cf_opt" >&5
17138 echo "${ECHO_T}... no -$cf_opt" >&6
17141 CXXFLAGS="$cf_save_CXXFLAGS"
17146 ac_cpp='$CPP $CPPFLAGS'
17147 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17148 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17150 ac_main_return="return"
17155 echo "$as_me:17155: checking if you want to work around bogus compiler/loader warnings" >&5
17156 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17158 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17159 if test "${enable_string_hacks+set}" = set; then
17160 enableval="$enable_string_hacks"
17161 enable_string_hacks=$enableval
17163 enable_string_hacks=no
17165 echo "$as_me:17165: result: $enable_string_hacks" >&5
17166 echo "${ECHO_T}$enable_string_hacks" >&6
17168 if test "x$enable_string_hacks" = "xyes"; then
17170 cat >>confdefs.h <<\EOF
17171 #define USE_STRING_HACKS 1
17174 { echo "$as_me:17174: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17175 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17176 echo "$as_me:17176: checking for strlcat" >&5
17177 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17178 if test "${ac_cv_func_strlcat+set}" = set; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 cat >"conftest.$ac_ext" <<_ACEOF
17182 #line 17182 "configure"
17183 #include "confdefs.h"
17184 #define strlcat autoconf_temporary
17185 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17192 /* We use char because int might match the return type of a gcc2
17193 builtin and then its argument prototype would still apply. */
17194 char strlcat (void);
17200 /* The GNU C library defines stubs for functions which it implements
17201 to always fail with ENOSYS. Some functions are actually named
17202 something starting with __ and the normal name is an alias. */
17203 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17204 #error found stub for strlcat
17212 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17213 if { (eval echo "$as_me:17213: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17216 echo "$as_me:17216: \$? = $ac_status" >&5
17217 (exit "$ac_status"); } &&
17218 { ac_try='test -s "conftest$ac_exeext"'
17219 { (eval echo "$as_me:17219: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:17222: \$? = $ac_status" >&5
17223 (exit "$ac_status"); }; }; then
17224 ac_cv_func_strlcat=yes
17226 echo "$as_me: failed program was:" >&5
17227 cat "conftest.$ac_ext" >&5
17228 ac_cv_func_strlcat=no
17230 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17232 echo "$as_me:17232: result: $ac_cv_func_strlcat" >&5
17233 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
17234 if test "$ac_cv_func_strlcat" = yes; then
17236 cat >>confdefs.h <<\EOF
17237 #define HAVE_STRLCAT 1
17242 echo "$as_me:17242: checking for strlcat in -lbsd" >&5
17243 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
17244 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 ac_check_lib_save_LIBS=$LIBS
17249 cat >"conftest.$ac_ext" <<_ACEOF
17250 #line 17250 "configure"
17251 #include "confdefs.h"
17253 /* Override any gcc2 internal prototype to avoid an error. */
17257 /* We use char because int might match the return type of a gcc2
17258 builtin and then its argument prototype would still apply. */
17268 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17269 if { (eval echo "$as_me:17269: \"$ac_link\"") >&5
17270 (eval $ac_link) 2>&5
17272 echo "$as_me:17272: \$? = $ac_status" >&5
17273 (exit "$ac_status"); } &&
17274 { ac_try='test -s "conftest$ac_exeext"'
17275 { (eval echo "$as_me:17275: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17278 echo "$as_me:17278: \$? = $ac_status" >&5
17279 (exit "$ac_status"); }; }; then
17280 ac_cv_lib_bsd_strlcat=yes
17282 echo "$as_me: failed program was:" >&5
17283 cat "conftest.$ac_ext" >&5
17284 ac_cv_lib_bsd_strlcat=no
17286 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17287 LIBS=$ac_check_lib_save_LIBS
17289 echo "$as_me:17289: result: $ac_cv_lib_bsd_strlcat" >&5
17290 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
17291 if test "$ac_cv_lib_bsd_strlcat" = yes; then
17293 cf_add_libs="$LIBS"
17296 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17297 # filter duplicates
17298 for cf_add_1lib in $cf_add_0lib; do
17299 for cf_add_2lib in $cf_add_libs; do
17300 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17305 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17307 LIBS="$cf_add_libs"
17309 for ac_header in bsd/string.h
17311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17312 echo "$as_me:17312: checking for $ac_header" >&5
17313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 cat >"conftest.$ac_ext" <<_ACEOF
17318 #line 17318 "configure"
17319 #include "confdefs.h"
17320 #include <$ac_header>
17322 if { (eval echo "$as_me:17322: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17323 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17325 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17327 cat conftest.err >&5
17328 echo "$as_me:17328: \$? = $ac_status" >&5
17329 (exit "$ac_status"); } >/dev/null; then
17330 if test -s conftest.err; then
17331 ac_cpp_err=$ac_c_preproc_warn_flag
17338 if test -z "$ac_cpp_err"; then
17339 eval "$as_ac_Header=yes"
17341 echo "$as_me: failed program was:" >&5
17342 cat "conftest.$ac_ext" >&5
17343 eval "$as_ac_Header=no"
17345 rm -f conftest.err "conftest.$ac_ext"
17347 echo "$as_me:17347: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
17348 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
17349 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
17350 cat >>confdefs.h <<EOF
17351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17357 cat >>confdefs.h <<\EOF
17358 #define HAVE_STRLCAT 1
17365 for ac_func in strlcpy snprintf
17367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17368 echo "$as_me:17368: checking for $ac_func" >&5
17369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17370 if eval "test \"\${$as_ac_var+set}\" = set"; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17373 cat >"conftest.$ac_ext" <<_ACEOF
17374 #line 17374 "configure"
17375 #include "confdefs.h"
17376 #define $ac_func autoconf_temporary
17377 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17384 /* We use char because int might match the return type of a gcc2
17385 builtin and then its argument prototype would still apply. */
17386 char $ac_func (void);
17392 /* The GNU C library defines stubs for functions which it implements
17393 to always fail with ENOSYS. Some functions are actually named
17394 something starting with __ and the normal name is an alias. */
17395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17396 #error found stub for $ac_func
17399 return $ac_func ();
17404 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17405 if { (eval echo "$as_me:17405: \"$ac_link\"") >&5
17406 (eval $ac_link) 2>&5
17408 echo "$as_me:17408: \$? = $ac_status" >&5
17409 (exit "$ac_status"); } &&
17410 { ac_try='test -s "conftest$ac_exeext"'
17411 { (eval echo "$as_me:17411: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:17414: \$? = $ac_status" >&5
17415 (exit "$ac_status"); }; }; then
17416 eval "$as_ac_var=yes"
17418 echo "$as_me: failed program was:" >&5
17419 cat "conftest.$ac_ext" >&5
17420 eval "$as_ac_var=no"
17422 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17424 echo "$as_me:17424: result: `eval echo '${'"$as_ac_var"'}'`" >&5
17425 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
17426 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
17427 cat >>confdefs.h <<EOF
17428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17436 ### use option --enable-assertions to turn on generation of assertion code
17437 echo "$as_me:17437: checking if you want to enable runtime assertions" >&5
17438 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17440 # Check whether --enable-assertions or --disable-assertions was given.
17441 if test "${enable_assertions+set}" = set; then
17442 enableval="$enable_assertions"
17443 with_assertions=$enableval
17447 echo "$as_me:17447: result: $with_assertions" >&5
17448 echo "${ECHO_T}$with_assertions" >&6
17451 if test "$with_assertions" = no
17453 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17456 ADAFLAGS="$ADAFLAGS -gnata"
17461 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17463 echo "$as_me:17463: checking if you want to use dmalloc for testing" >&5
17464 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17466 # Check whether --with-dmalloc or --without-dmalloc was given.
17467 if test "${with_dmalloc+set}" = set; then
17468 withval="$with_dmalloc"
17470 cat >>confdefs.h <<EOF
17471 #define USE_DMALLOC 1
17474 : "${with_cflags:=-g}"
17475 : "${enable_leaks:=no}"
17480 echo "$as_me:17480: result: ${with_dmalloc:-no}" >&5
17481 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17483 case ".$with_cflags" in
17493 cf_new_extra_cppflags=
17495 for cf_add_cflags in -g
17497 case "$cf_fix_cppflags" in
17499 case "$cf_add_cflags" in
17500 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17501 case "$cf_add_cflags" in
17503 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17505 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17506 && test -z "${cf_tst_cflags}" \
17507 && cf_fix_cppflags=yes
17509 if test "$cf_fix_cppflags" = yes ; then
17511 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17512 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17515 elif test "${cf_tst_cflags}" = "\"'" ; then
17517 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17518 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17524 case "$CPPFLAGS" in
17528 case "$cf_add_cflags" in
17530 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17532 CPPFLAGS=`echo "$CPPFLAGS" | \
17533 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17534 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17539 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17540 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17547 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17548 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17555 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17556 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17558 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17560 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17561 && test -z "${cf_tst_cflags}" \
17562 && cf_fix_cppflags=no
17567 if test -n "$cf_new_cflags" ; then
17569 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17570 CFLAGS="${CFLAGS}$cf_new_cflags"
17574 if test -n "$cf_new_cppflags" ; then
17576 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17577 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17581 if test -n "$cf_new_extra_cppflags" ; then
17583 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17584 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17593 if test "$with_dmalloc" = yes ; then
17594 echo "$as_me:17594: checking for dmalloc.h" >&5
17595 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17596 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 cat >"conftest.$ac_ext" <<_ACEOF
17600 #line 17600 "configure"
17601 #include "confdefs.h"
17602 #include <dmalloc.h>
17604 if { (eval echo "$as_me:17604: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17605 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17607 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:17610: \$? = $ac_status" >&5
17611 (exit "$ac_status"); } >/dev/null; then
17612 if test -s conftest.err; then
17613 ac_cpp_err=$ac_c_preproc_warn_flag
17620 if test -z "$ac_cpp_err"; then
17621 ac_cv_header_dmalloc_h=yes
17623 echo "$as_me: failed program was:" >&5
17624 cat "conftest.$ac_ext" >&5
17625 ac_cv_header_dmalloc_h=no
17627 rm -f conftest.err "conftest.$ac_ext"
17629 echo "$as_me:17629: result: $ac_cv_header_dmalloc_h" >&5
17630 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17631 if test "$ac_cv_header_dmalloc_h" = yes; then
17633 echo "$as_me:17633: checking for dmalloc_debug in -ldmalloc" >&5
17634 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17635 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 ac_check_lib_save_LIBS=$LIBS
17639 LIBS="-ldmalloc $LIBS"
17640 cat >"conftest.$ac_ext" <<_ACEOF
17641 #line 17641 "configure"
17642 #include "confdefs.h"
17644 /* Override any gcc2 internal prototype to avoid an error. */
17648 /* We use char because int might match the return type of a gcc2
17649 builtin and then its argument prototype would still apply. */
17650 char dmalloc_debug ();
17659 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17660 if { (eval echo "$as_me:17660: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>&5
17663 echo "$as_me:17663: \$? = $ac_status" >&5
17664 (exit "$ac_status"); } &&
17665 { ac_try='test -s "conftest$ac_exeext"'
17666 { (eval echo "$as_me:17666: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17669 echo "$as_me:17669: \$? = $ac_status" >&5
17670 (exit "$ac_status"); }; }; then
17671 ac_cv_lib_dmalloc_dmalloc_debug=yes
17673 echo "$as_me: failed program was:" >&5
17674 cat "conftest.$ac_ext" >&5
17675 ac_cv_lib_dmalloc_dmalloc_debug=no
17677 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17678 LIBS=$ac_check_lib_save_LIBS
17680 echo "$as_me:17680: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17681 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17682 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
17683 cat >>confdefs.h <<EOF
17684 #define HAVE_LIBDMALLOC 1
17687 LIBS="-ldmalloc $LIBS"
17695 echo "$as_me:17695: checking if you want to use dbmalloc for testing" >&5
17696 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17698 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17699 if test "${with_dbmalloc+set}" = set; then
17700 withval="$with_dbmalloc"
17702 cat >>confdefs.h <<EOF
17703 #define USE_DBMALLOC 1
17706 : "${with_cflags:=-g}"
17707 : "${enable_leaks:=no}"
17712 echo "$as_me:17712: result: ${with_dbmalloc:-no}" >&5
17713 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17715 case ".$with_cflags" in
17725 cf_new_extra_cppflags=
17727 for cf_add_cflags in -g
17729 case "$cf_fix_cppflags" in
17731 case "$cf_add_cflags" in
17732 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17733 case "$cf_add_cflags" in
17735 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17737 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17738 && test -z "${cf_tst_cflags}" \
17739 && cf_fix_cppflags=yes
17741 if test "$cf_fix_cppflags" = yes ; then
17743 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17744 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17747 elif test "${cf_tst_cflags}" = "\"'" ; then
17749 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17750 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17756 case "$CPPFLAGS" in
17760 case "$cf_add_cflags" in
17762 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17764 CPPFLAGS=`echo "$CPPFLAGS" | \
17765 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17766 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17771 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17772 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17779 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17780 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17787 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17788 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17790 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17792 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17793 && test -z "${cf_tst_cflags}" \
17794 && cf_fix_cppflags=no
17799 if test -n "$cf_new_cflags" ; then
17801 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17802 CFLAGS="${CFLAGS}$cf_new_cflags"
17806 if test -n "$cf_new_cppflags" ; then
17808 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17809 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17813 if test -n "$cf_new_extra_cppflags" ; then
17815 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17816 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17825 if test "$with_dbmalloc" = yes ; then
17826 echo "$as_me:17826: checking for dbmalloc.h" >&5
17827 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17828 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 cat >"conftest.$ac_ext" <<_ACEOF
17832 #line 17832 "configure"
17833 #include "confdefs.h"
17834 #include <dbmalloc.h>
17836 if { (eval echo "$as_me:17836: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17837 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17839 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17841 cat conftest.err >&5
17842 echo "$as_me:17842: \$? = $ac_status" >&5
17843 (exit "$ac_status"); } >/dev/null; then
17844 if test -s conftest.err; then
17845 ac_cpp_err=$ac_c_preproc_warn_flag
17852 if test -z "$ac_cpp_err"; then
17853 ac_cv_header_dbmalloc_h=yes
17855 echo "$as_me: failed program was:" >&5
17856 cat "conftest.$ac_ext" >&5
17857 ac_cv_header_dbmalloc_h=no
17859 rm -f conftest.err "conftest.$ac_ext"
17861 echo "$as_me:17861: result: $ac_cv_header_dbmalloc_h" >&5
17862 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17863 if test "$ac_cv_header_dbmalloc_h" = yes; then
17865 echo "$as_me:17865: checking for debug_malloc in -ldbmalloc" >&5
17866 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17867 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 ac_check_lib_save_LIBS=$LIBS
17871 LIBS="-ldbmalloc $LIBS"
17872 cat >"conftest.$ac_ext" <<_ACEOF
17873 #line 17873 "configure"
17874 #include "confdefs.h"
17876 /* Override any gcc2 internal prototype to avoid an error. */
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17882 char debug_malloc ();
17891 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17892 if { (eval echo "$as_me:17892: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>&5
17895 echo "$as_me:17895: \$? = $ac_status" >&5
17896 (exit "$ac_status"); } &&
17897 { ac_try='test -s "conftest$ac_exeext"'
17898 { (eval echo "$as_me:17898: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17901 echo "$as_me:17901: \$? = $ac_status" >&5
17902 (exit "$ac_status"); }; }; then
17903 ac_cv_lib_dbmalloc_debug_malloc=yes
17905 echo "$as_me: failed program was:" >&5
17906 cat "conftest.$ac_ext" >&5
17907 ac_cv_lib_dbmalloc_debug_malloc=no
17909 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17910 LIBS=$ac_check_lib_save_LIBS
17912 echo "$as_me:17912: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17913 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17914 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
17915 cat >>confdefs.h <<EOF
17916 #define HAVE_LIBDBMALLOC 1
17919 LIBS="-ldbmalloc $LIBS"
17927 echo "$as_me:17927: checking if you want to use valgrind for testing" >&5
17928 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17930 # Check whether --with-valgrind or --without-valgrind was given.
17931 if test "${with_valgrind+set}" = set; then
17932 withval="$with_valgrind"
17934 cat >>confdefs.h <<EOF
17935 #define USE_VALGRIND 1
17938 : "${with_cflags:=-g}"
17939 : "${enable_leaks:=no}"
17944 echo "$as_me:17944: result: ${with_valgrind:-no}" >&5
17945 echo "${ECHO_T}${with_valgrind:-no}" >&6
17947 case ".$with_cflags" in
17957 cf_new_extra_cppflags=
17959 for cf_add_cflags in -g
17961 case "$cf_fix_cppflags" in
17963 case "$cf_add_cflags" in
17964 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17965 case "$cf_add_cflags" in
17967 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17969 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17970 && test -z "${cf_tst_cflags}" \
17971 && cf_fix_cppflags=yes
17973 if test "$cf_fix_cppflags" = yes ; then
17975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17976 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17979 elif test "${cf_tst_cflags}" = "\"'" ; then
17981 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17982 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17988 case "$CPPFLAGS" in
17992 case "$cf_add_cflags" in
17994 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17996 CPPFLAGS=`echo "$CPPFLAGS" | \
17997 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17998 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18003 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18004 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18011 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18012 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18019 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18020 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18022 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18024 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18025 && test -z "${cf_tst_cflags}" \
18026 && cf_fix_cppflags=no
18031 if test -n "$cf_new_cflags" ; then
18033 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18034 CFLAGS="${CFLAGS}$cf_new_cflags"
18038 if test -n "$cf_new_cppflags" ; then
18040 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18041 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18045 if test -n "$cf_new_extra_cppflags" ; then
18047 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18048 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18057 echo "$as_me:18057: checking if you want to perform memory-leak testing" >&5
18058 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18060 # Check whether --enable-leaks or --disable-leaks was given.
18061 if test "${enable_leaks+set}" = set; then
18062 enableval="$enable_leaks"
18067 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18068 echo "$as_me:18068: result: $with_no_leaks" >&5
18069 echo "${ECHO_T}$with_no_leaks" >&6
18071 if test "$enable_leaks" = no ; then
18073 cat >>confdefs.h <<\EOF
18077 cat >>confdefs.h <<\EOF
18078 #define YY_NO_LEAKS 1
18083 cat >>confdefs.h <<\EOF
18084 #define HAVE_NC_ALLOC_H 1
18087 ### use option --enable-expanded to generate certain macros as functions
18089 # Check whether --enable-expanded or --disable-expanded was given.
18090 if test "${enable_expanded+set}" = set; then
18091 enableval="$enable_expanded"
18092 test "x$enableval" = xyes &&
18093 cat >>confdefs.h <<\EOF
18094 #define NCURSES_EXPANDED 1
18099 ### use option --disable-macros to suppress macros in favor of functions
18101 # Check whether --enable-macros or --disable-macros was given.
18102 if test "${enable_macros+set}" = set; then
18103 enableval="$enable_macros"
18104 test "$enableval" = no &&
18105 cat >>confdefs.h <<\EOF
18106 #define NCURSES_NOMACROS 1
18111 # Normally we only add trace() to the debug-library. Allow this to be
18112 # extended to all models of the ncurses library:
18114 case "$CFLAGS $CPPFLAGS" in
18120 echo "$as_me:18120: checking whether to add trace feature to all models" >&5
18121 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18123 # Check whether --with-trace or --without-trace was given.
18124 if test "${with_trace+set}" = set; then
18125 withval="$with_trace"
18126 cf_with_trace=$withval
18128 cf_with_trace=$cf_all_traces
18130 echo "$as_me:18130: result: $cf_with_trace" >&5
18131 echo "${ECHO_T}$cf_with_trace" >&6
18133 if test "x$cf_with_trace" = xyes ; then
18140 cf_new_extra_cppflags=
18142 for cf_add_cflags in -DTRACE
18144 case "$cf_fix_cppflags" in
18146 case "$cf_add_cflags" in
18147 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18148 case "$cf_add_cflags" in
18150 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18152 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18153 && test -z "${cf_tst_cflags}" \
18154 && cf_fix_cppflags=yes
18156 if test "$cf_fix_cppflags" = yes ; then
18158 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18159 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18162 elif test "${cf_tst_cflags}" = "\"'" ; then
18164 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18165 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18171 case "$CPPFLAGS" in
18175 case "$cf_add_cflags" in
18177 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18179 CPPFLAGS=`echo "$CPPFLAGS" | \
18180 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18181 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18186 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18187 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18194 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18195 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18202 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18203 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18205 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18207 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18208 && test -z "${cf_tst_cflags}" \
18209 && cf_fix_cppflags=no
18214 if test -n "$cf_new_cflags" ; then
18216 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18217 CFLAGS="${CFLAGS}$cf_new_cflags"
18221 if test -n "$cf_new_cppflags" ; then
18223 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18224 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18228 if test -n "$cf_new_extra_cppflags" ; then
18230 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18231 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18235 cat >>confdefs.h <<\EOF
18236 #define HAVE__TRACEF 1
18244 echo "$as_me:18244: checking if we want to use GNAT projects" >&5
18245 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
18247 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
18248 if test "${enable_gnat_projects+set}" = set; then
18249 enableval="$enable_gnat_projects"
18250 test "$enableval" != no && enableval=yes
18251 if test "$enableval" != "yes" ; then
18252 enable_gnat_projects=no
18254 enable_gnat_projects=yes
18258 enable_gnat_projects=yes
18261 echo "$as_me:18261: result: $enable_gnat_projects" >&5
18262 echo "${ECHO_T}$enable_gnat_projects" >&6
18264 ### Checks for libraries.
18265 case "$cf_cv_system_name" in
18266 (*mingw32*|*mingw64*)
18267 if test "x$with_exp_win32" = xyes ; then
18268 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
18270 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
18272 # Note: WINVER may be a problem with Windows 10
18275 echo "$as_me:18275: checking for gettimeofday" >&5
18276 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18277 if test "${ac_cv_func_gettimeofday+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 cat >"conftest.$ac_ext" <<_ACEOF
18281 #line 18281 "configure"
18282 #include "confdefs.h"
18283 #define gettimeofday autoconf_temporary
18284 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18285 #undef gettimeofday
18291 /* We use char because int might match the return type of a gcc2
18292 builtin and then its argument prototype would still apply. */
18293 char gettimeofday (void);
18299 /* The GNU C library defines stubs for functions which it implements
18300 to always fail with ENOSYS. Some functions are actually named
18301 something starting with __ and the normal name is an alias. */
18302 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18303 #error found stub for gettimeofday
18306 return gettimeofday ();
18311 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18312 if { (eval echo "$as_me:18312: \"$ac_link\"") >&5
18313 (eval $ac_link) 2>&5
18315 echo "$as_me:18315: \$? = $ac_status" >&5
18316 (exit "$ac_status"); } &&
18317 { ac_try='test -s "conftest$ac_exeext"'
18318 { (eval echo "$as_me:18318: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18321 echo "$as_me:18321: \$? = $ac_status" >&5
18322 (exit "$ac_status"); }; }; then
18323 ac_cv_func_gettimeofday=yes
18325 echo "$as_me: failed program was:" >&5
18326 cat "conftest.$ac_ext" >&5
18327 ac_cv_func_gettimeofday=no
18329 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18331 echo "$as_me:18331: result: $ac_cv_func_gettimeofday" >&5
18332 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18333 if test "$ac_cv_func_gettimeofday" = yes; then
18335 cat >>confdefs.h <<\EOF
18336 #define HAVE_GETTIMEOFDAY 1
18341 echo "$as_me:18341: checking for gettimeofday in -lbsd" >&5
18342 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18343 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 ac_check_lib_save_LIBS=$LIBS
18348 cat >"conftest.$ac_ext" <<_ACEOF
18349 #line 18349 "configure"
18350 #include "confdefs.h"
18352 /* Override any gcc2 internal prototype to avoid an error. */
18356 /* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
18358 char gettimeofday ();
18367 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18368 if { (eval echo "$as_me:18368: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>&5
18371 echo "$as_me:18371: \$? = $ac_status" >&5
18372 (exit "$ac_status"); } &&
18373 { ac_try='test -s "conftest$ac_exeext"'
18374 { (eval echo "$as_me:18374: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18377 echo "$as_me:18377: \$? = $ac_status" >&5
18378 (exit "$ac_status"); }; }; then
18379 ac_cv_lib_bsd_gettimeofday=yes
18381 echo "$as_me: failed program was:" >&5
18382 cat "conftest.$ac_ext" >&5
18383 ac_cv_lib_bsd_gettimeofday=no
18385 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18386 LIBS=$ac_check_lib_save_LIBS
18388 echo "$as_me:18388: result: $ac_cv_lib_bsd_gettimeofday" >&5
18389 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
18390 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
18392 cat >>confdefs.h <<\EOF
18393 #define HAVE_GETTIMEOFDAY 1
18396 cf_add_libs="$LIBS"
18399 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18400 # filter duplicates
18401 for cf_add_1lib in $cf_add_0lib; do
18402 for cf_add_2lib in $cf_add_libs; do
18403 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18408 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18410 LIBS="$cf_add_libs"
18418 echo "$as_me:18418: checking if -lm needed for math functions" >&5
18419 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
18420 if test "${cf_cv_need_libm+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 cat >"conftest.$ac_ext" <<_ACEOF
18425 #line 18425 "configure"
18426 #include "confdefs.h"
18429 #include <stdlib.h>
18435 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
18440 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18441 if { (eval echo "$as_me:18441: \"$ac_link\"") >&5
18442 (eval $ac_link) 2>&5
18444 echo "$as_me:18444: \$? = $ac_status" >&5
18445 (exit "$ac_status"); } &&
18446 { ac_try='test -s "conftest$ac_exeext"'
18447 { (eval echo "$as_me:18447: \"$ac_try\"") >&5
18448 (eval $ac_try) 2>&5
18450 echo "$as_me:18450: \$? = $ac_status" >&5
18451 (exit "$ac_status"); }; }; then
18454 echo "$as_me: failed program was:" >&5
18455 cat "conftest.$ac_ext" >&5
18456 cf_cv_need_libm=yes
18458 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18460 echo "$as_me:18460: result: $cf_cv_need_libm" >&5
18461 echo "${ECHO_T}$cf_cv_need_libm" >&6
18462 if test "$cf_cv_need_libm" = yes
18467 ### Checks for header files.
18468 echo "$as_me:18468: checking for ANSI C header files" >&5
18469 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18470 if test "${ac_cv_header_stdc+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 cat >"conftest.$ac_ext" <<_ACEOF
18474 #line 18474 "configure"
18475 #include "confdefs.h"
18476 #include <stdlib.h>
18477 #include <stdarg.h>
18478 #include <string.h>
18482 if { (eval echo "$as_me:18482: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18483 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18485 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18487 cat conftest.err >&5
18488 echo "$as_me:18488: \$? = $ac_status" >&5
18489 (exit "$ac_status"); } >/dev/null; then
18490 if test -s conftest.err; then
18491 ac_cpp_err=$ac_c_preproc_warn_flag
18498 if test -z "$ac_cpp_err"; then
18499 ac_cv_header_stdc=yes
18501 echo "$as_me: failed program was:" >&5
18502 cat "conftest.$ac_ext" >&5
18503 ac_cv_header_stdc=no
18505 rm -f conftest.err "conftest.$ac_ext"
18507 if test $ac_cv_header_stdc = yes; then
18508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18509 cat >"conftest.$ac_ext" <<_ACEOF
18510 #line 18510 "configure"
18511 #include "confdefs.h"
18512 #include <string.h>
18515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18516 $EGREP "memchr" >/dev/null 2>&1; then
18519 ac_cv_header_stdc=no
18525 if test $ac_cv_header_stdc = yes; then
18526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18527 cat >"conftest.$ac_ext" <<_ACEOF
18528 #line 18528 "configure"
18529 #include "confdefs.h"
18530 #include <stdlib.h>
18533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18534 $EGREP "free" >/dev/null 2>&1; then
18537 ac_cv_header_stdc=no
18543 if test $ac_cv_header_stdc = yes; then
18544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18545 if test "$cross_compiling" = yes; then
18548 cat >"conftest.$ac_ext" <<_ACEOF
18549 #line 18549 "configure"
18550 #include "confdefs.h"
18552 #if ((' ' & 0x0FF) == 0x020)
18553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18556 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18557 || ('j' <= (c) && (c) <= 'r') \
18558 || ('s' <= (c) && (c) <= 'z'))
18559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18567 for (i = 0; i < 256; i++)
18568 if (XOR (islower (i), ISLOWER (i))
18569 || toupper (i) != TOUPPER (i))
18570 $ac_main_return(2);
18571 $ac_main_return (0);
18574 rm -f "conftest$ac_exeext"
18575 if { (eval echo "$as_me:18575: \"$ac_link\"") >&5
18576 (eval $ac_link) 2>&5
18578 echo "$as_me:18578: \$? = $ac_status" >&5
18579 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18580 { (eval echo "$as_me:18580: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18583 echo "$as_me:18583: \$? = $ac_status" >&5
18584 (exit "$ac_status"); }; }; then
18587 echo "$as_me: program exited with status $ac_status" >&5
18588 echo "$as_me: failed program was:" >&5
18589 cat "conftest.$ac_ext" >&5
18590 ac_cv_header_stdc=no
18592 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18596 echo "$as_me:18596: result: $ac_cv_header_stdc" >&5
18597 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18598 if test $ac_cv_header_stdc = yes; then
18600 cat >>confdefs.h <<\EOF
18601 #define STDC_HEADERS 1
18606 ac_header_dirent=no
18607 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18608 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18609 echo "$as_me:18609: checking for $ac_hdr that defines DIR" >&5
18610 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 cat >"conftest.$ac_ext" <<_ACEOF
18615 #line 18615 "configure"
18616 #include "confdefs.h"
18617 #include <sys/types.h>
18629 rm -f "conftest.$ac_objext"
18630 if { (eval echo "$as_me:18630: \"$ac_compile\"") >&5
18631 (eval $ac_compile) 2>&5
18633 echo "$as_me:18633: \$? = $ac_status" >&5
18634 (exit "$ac_status"); } &&
18635 { ac_try='test -s "conftest.$ac_objext"'
18636 { (eval echo "$as_me:18636: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18639 echo "$as_me:18639: \$? = $ac_status" >&5
18640 (exit "$ac_status"); }; }; then
18641 eval "$as_ac_Header=yes"
18643 echo "$as_me: failed program was:" >&5
18644 cat "conftest.$ac_ext" >&5
18645 eval "$as_ac_Header=no"
18647 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18649 echo "$as_me:18649: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18650 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18651 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18652 cat >>confdefs.h <<EOF
18653 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18656 ac_header_dirent=$ac_hdr; break
18660 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18661 if test $ac_header_dirent = dirent.h; then
18662 echo "$as_me:18662: checking for opendir in -ldir" >&5
18663 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18664 if test "${ac_cv_lib_dir_opendir+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 ac_check_lib_save_LIBS=$LIBS
18669 cat >"conftest.$ac_ext" <<_ACEOF
18670 #line 18670 "configure"
18671 #include "confdefs.h"
18673 /* Override any gcc2 internal prototype to avoid an error. */
18677 /* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18688 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18689 if { (eval echo "$as_me:18689: \"$ac_link\"") >&5
18690 (eval $ac_link) 2>&5
18692 echo "$as_me:18692: \$? = $ac_status" >&5
18693 (exit "$ac_status"); } &&
18694 { ac_try='test -s "conftest$ac_exeext"'
18695 { (eval echo "$as_me:18695: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18698 echo "$as_me:18698: \$? = $ac_status" >&5
18699 (exit "$ac_status"); }; }; then
18700 ac_cv_lib_dir_opendir=yes
18702 echo "$as_me: failed program was:" >&5
18703 cat "conftest.$ac_ext" >&5
18704 ac_cv_lib_dir_opendir=no
18706 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18707 LIBS=$ac_check_lib_save_LIBS
18709 echo "$as_me:18709: result: $ac_cv_lib_dir_opendir" >&5
18710 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
18711 if test "$ac_cv_lib_dir_opendir" = yes; then
18716 echo "$as_me:18716: checking for opendir in -lx" >&5
18717 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
18718 if test "${ac_cv_lib_x_opendir+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 ac_check_lib_save_LIBS=$LIBS
18723 cat >"conftest.$ac_ext" <<_ACEOF
18724 #line 18724 "configure"
18725 #include "confdefs.h"
18727 /* Override any gcc2 internal prototype to avoid an error. */
18731 /* We use char because int might match the return type of a gcc2
18732 builtin and then its argument prototype would still apply. */
18742 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18743 if { (eval echo "$as_me:18743: \"$ac_link\"") >&5
18744 (eval $ac_link) 2>&5
18746 echo "$as_me:18746: \$? = $ac_status" >&5
18747 (exit "$ac_status"); } &&
18748 { ac_try='test -s "conftest$ac_exeext"'
18749 { (eval echo "$as_me:18749: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18752 echo "$as_me:18752: \$? = $ac_status" >&5
18753 (exit "$ac_status"); }; }; then
18754 ac_cv_lib_x_opendir=yes
18756 echo "$as_me: failed program was:" >&5
18757 cat "conftest.$ac_ext" >&5
18758 ac_cv_lib_x_opendir=no
18760 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18761 LIBS=$ac_check_lib_save_LIBS
18763 echo "$as_me:18763: result: $ac_cv_lib_x_opendir" >&5
18764 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
18765 if test "$ac_cv_lib_x_opendir" = yes; then
18771 echo "$as_me:18771: checking whether time.h and sys/time.h may both be included" >&5
18772 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18773 if test "${ac_cv_header_time+set}" = set; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 cat >"conftest.$ac_ext" <<_ACEOF
18777 #line 18777 "configure"
18778 #include "confdefs.h"
18779 #include <sys/types.h>
18780 #include <sys/time.h>
18786 if ((struct tm *) 0)
18792 rm -f "conftest.$ac_objext"
18793 if { (eval echo "$as_me:18793: \"$ac_compile\"") >&5
18794 (eval $ac_compile) 2>&5
18796 echo "$as_me:18796: \$? = $ac_status" >&5
18797 (exit "$ac_status"); } &&
18798 { ac_try='test -s "conftest.$ac_objext"'
18799 { (eval echo "$as_me:18799: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:18802: \$? = $ac_status" >&5
18803 (exit "$ac_status"); }; }; then
18804 ac_cv_header_time=yes
18806 echo "$as_me: failed program was:" >&5
18807 cat "conftest.$ac_ext" >&5
18808 ac_cv_header_time=no
18810 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18812 echo "$as_me:18812: result: $ac_cv_header_time" >&5
18813 echo "${ECHO_T}$ac_cv_header_time" >&6
18814 if test $ac_cv_header_time = yes; then
18816 cat >>confdefs.h <<\EOF
18817 #define TIME_WITH_SYS_TIME 1
18826 # -lsystre -ltre -lintl -liconv
18827 echo "$as_me:18827: checking for regcomp in -lsystre" >&5
18828 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
18829 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 ac_check_lib_save_LIBS=$LIBS
18833 LIBS="-lsystre $LIBS"
18834 cat >"conftest.$ac_ext" <<_ACEOF
18835 #line 18835 "configure"
18836 #include "confdefs.h"
18838 /* Override any gcc2 internal prototype to avoid an error. */
18842 /* We use char because int might match the return type of a gcc2
18843 builtin and then its argument prototype would still apply. */
18853 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18854 if { (eval echo "$as_me:18854: \"$ac_link\"") >&5
18855 (eval $ac_link) 2>&5
18857 echo "$as_me:18857: \$? = $ac_status" >&5
18858 (exit "$ac_status"); } &&
18859 { ac_try='test -s "conftest$ac_exeext"'
18860 { (eval echo "$as_me:18860: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18863 echo "$as_me:18863: \$? = $ac_status" >&5
18864 (exit "$ac_status"); }; }; then
18865 ac_cv_lib_systre_regcomp=yes
18867 echo "$as_me: failed program was:" >&5
18868 cat "conftest.$ac_ext" >&5
18869 ac_cv_lib_systre_regcomp=no
18871 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18872 LIBS=$ac_check_lib_save_LIBS
18874 echo "$as_me:18874: result: $ac_cv_lib_systre_regcomp" >&5
18875 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
18876 if test "$ac_cv_lib_systre_regcomp" = yes; then
18878 echo "$as_me:18878: checking for libiconv_open in -liconv" >&5
18879 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
18880 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 ac_check_lib_save_LIBS=$LIBS
18884 LIBS="-liconv $LIBS"
18885 cat >"conftest.$ac_ext" <<_ACEOF
18886 #line 18886 "configure"
18887 #include "confdefs.h"
18889 /* Override any gcc2 internal prototype to avoid an error. */
18893 /* We use char because int might match the return type of a gcc2
18894 builtin and then its argument prototype would still apply. */
18895 char libiconv_open ();
18904 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18905 if { (eval echo "$as_me:18905: \"$ac_link\"") >&5
18906 (eval $ac_link) 2>&5
18908 echo "$as_me:18908: \$? = $ac_status" >&5
18909 (exit "$ac_status"); } &&
18910 { ac_try='test -s "conftest$ac_exeext"'
18911 { (eval echo "$as_me:18911: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18914 echo "$as_me:18914: \$? = $ac_status" >&5
18915 (exit "$ac_status"); }; }; then
18916 ac_cv_lib_iconv_libiconv_open=yes
18918 echo "$as_me: failed program was:" >&5
18919 cat "conftest.$ac_ext" >&5
18920 ac_cv_lib_iconv_libiconv_open=no
18922 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18923 LIBS=$ac_check_lib_save_LIBS
18925 echo "$as_me:18925: result: $ac_cv_lib_iconv_libiconv_open" >&5
18926 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
18927 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
18929 cf_add_libs="$LIBS"
18932 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18933 # filter duplicates
18934 for cf_add_1lib in $cf_add_0lib; do
18935 for cf_add_2lib in $cf_add_libs; do
18936 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18941 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18943 LIBS="$cf_add_libs"
18947 echo "$as_me:18947: checking for libintl_gettext in -lintl" >&5
18948 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
18949 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 ac_check_lib_save_LIBS=$LIBS
18953 LIBS="-lintl $LIBS"
18954 cat >"conftest.$ac_ext" <<_ACEOF
18955 #line 18955 "configure"
18956 #include "confdefs.h"
18958 /* Override any gcc2 internal prototype to avoid an error. */
18962 /* We use char because int might match the return type of a gcc2
18963 builtin and then its argument prototype would still apply. */
18964 char libintl_gettext ();
18968 libintl_gettext ();
18973 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18974 if { (eval echo "$as_me:18974: \"$ac_link\"") >&5
18975 (eval $ac_link) 2>&5
18977 echo "$as_me:18977: \$? = $ac_status" >&5
18978 (exit "$ac_status"); } &&
18979 { ac_try='test -s "conftest$ac_exeext"'
18980 { (eval echo "$as_me:18980: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18983 echo "$as_me:18983: \$? = $ac_status" >&5
18984 (exit "$ac_status"); }; }; then
18985 ac_cv_lib_intl_libintl_gettext=yes
18987 echo "$as_me: failed program was:" >&5
18988 cat "conftest.$ac_ext" >&5
18989 ac_cv_lib_intl_libintl_gettext=no
18991 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18992 LIBS=$ac_check_lib_save_LIBS
18994 echo "$as_me:18994: result: $ac_cv_lib_intl_libintl_gettext" >&5
18995 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
18996 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
18998 cf_add_libs="$LIBS"
19001 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19002 # filter duplicates
19003 for cf_add_1lib in $cf_add_0lib; do
19004 for cf_add_2lib in $cf_add_libs; do
19005 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19010 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19012 LIBS="$cf_add_libs"
19016 echo "$as_me:19016: checking for tre_regcomp in -ltre" >&5
19017 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19018 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 ac_check_lib_save_LIBS=$LIBS
19023 cat >"conftest.$ac_ext" <<_ACEOF
19024 #line 19024 "configure"
19025 #include "confdefs.h"
19027 /* Override any gcc2 internal prototype to avoid an error. */
19031 /* We use char because int might match the return type of a gcc2
19032 builtin and then its argument prototype would still apply. */
19033 char tre_regcomp ();
19042 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19043 if { (eval echo "$as_me:19043: \"$ac_link\"") >&5
19044 (eval $ac_link) 2>&5
19046 echo "$as_me:19046: \$? = $ac_status" >&5
19047 (exit "$ac_status"); } &&
19048 { ac_try='test -s "conftest$ac_exeext"'
19049 { (eval echo "$as_me:19049: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19052 echo "$as_me:19052: \$? = $ac_status" >&5
19053 (exit "$ac_status"); }; }; then
19054 ac_cv_lib_tre_tre_regcomp=yes
19056 echo "$as_me: failed program was:" >&5
19057 cat "conftest.$ac_ext" >&5
19058 ac_cv_lib_tre_tre_regcomp=no
19060 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19061 LIBS=$ac_check_lib_save_LIBS
19063 echo "$as_me:19063: result: $ac_cv_lib_tre_tre_regcomp" >&5
19064 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19065 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19067 cf_add_libs="$LIBS"
19070 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19071 # filter duplicates
19072 for cf_add_1lib in $cf_add_0lib; do
19073 for cf_add_2lib in $cf_add_libs; do
19074 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19079 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19081 LIBS="$cf_add_libs"
19085 cf_add_libs="$LIBS"
19088 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19089 # filter duplicates
19090 for cf_add_1lib in $cf_add_0lib; do
19091 for cf_add_2lib in $cf_add_libs; do
19092 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19097 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19099 LIBS="$cf_add_libs"
19101 cf_regex_func=regcomp
19105 echo "$as_me:19105: checking for regcomp in -lgnurx" >&5
19106 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19107 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 ac_check_lib_save_LIBS=$LIBS
19111 LIBS="-lgnurx $LIBS"
19112 cat >"conftest.$ac_ext" <<_ACEOF
19113 #line 19113 "configure"
19114 #include "confdefs.h"
19116 /* Override any gcc2 internal prototype to avoid an error. */
19120 /* We use char because int might match the return type of a gcc2
19121 builtin and then its argument prototype would still apply. */
19131 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19132 if { (eval echo "$as_me:19132: \"$ac_link\"") >&5
19133 (eval $ac_link) 2>&5
19135 echo "$as_me:19135: \$? = $ac_status" >&5
19136 (exit "$ac_status"); } &&
19137 { ac_try='test -s "conftest$ac_exeext"'
19138 { (eval echo "$as_me:19138: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19141 echo "$as_me:19141: \$? = $ac_status" >&5
19142 (exit "$ac_status"); }; }; then
19143 ac_cv_lib_gnurx_regcomp=yes
19145 echo "$as_me: failed program was:" >&5
19146 cat "conftest.$ac_ext" >&5
19147 ac_cv_lib_gnurx_regcomp=no
19149 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19150 LIBS=$ac_check_lib_save_LIBS
19152 echo "$as_me:19152: result: $ac_cv_lib_gnurx_regcomp" >&5
19153 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19154 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19156 cf_add_libs="$LIBS"
19159 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19160 # filter duplicates
19161 for cf_add_1lib in $cf_add_0lib; do
19162 for cf_add_2lib in $cf_add_libs; do
19163 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19168 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19170 LIBS="$cf_add_libs"
19172 cf_regex_func=regcomp
19179 cf_regex_libs="regex re"
19180 echo "$as_me:19180: checking for regcomp" >&5
19181 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19182 if test "${ac_cv_func_regcomp+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 cat >"conftest.$ac_ext" <<_ACEOF
19186 #line 19186 "configure"
19187 #include "confdefs.h"
19188 #define regcomp autoconf_temporary
19189 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19196 /* We use char because int might match the return type of a gcc2
19197 builtin and then its argument prototype would still apply. */
19198 char regcomp (void);
19204 /* The GNU C library defines stubs for functions which it implements
19205 to always fail with ENOSYS. Some functions are actually named
19206 something starting with __ and the normal name is an alias. */
19207 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19208 #error found stub for regcomp
19216 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19217 if { (eval echo "$as_me:19217: \"$ac_link\"") >&5
19218 (eval $ac_link) 2>&5
19220 echo "$as_me:19220: \$? = $ac_status" >&5
19221 (exit "$ac_status"); } &&
19222 { ac_try='test -s "conftest$ac_exeext"'
19223 { (eval echo "$as_me:19223: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:19226: \$? = $ac_status" >&5
19227 (exit "$ac_status"); }; }; then
19228 ac_cv_func_regcomp=yes
19230 echo "$as_me: failed program was:" >&5
19231 cat "conftest.$ac_ext" >&5
19232 ac_cv_func_regcomp=no
19234 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19236 echo "$as_me:19236: result: $ac_cv_func_regcomp" >&5
19237 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19238 if test "$ac_cv_func_regcomp" = yes; then
19239 cf_regex_func=regcomp
19242 for cf_regex_lib in $cf_regex_libs
19244 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19245 echo "$as_me:19245: checking for regcomp in -l$cf_regex_lib" >&5
19246 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19247 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 ac_check_lib_save_LIBS=$LIBS
19251 LIBS="-l$cf_regex_lib $LIBS"
19252 cat >"conftest.$ac_ext" <<_ACEOF
19253 #line 19253 "configure"
19254 #include "confdefs.h"
19256 /* Override any gcc2 internal prototype to avoid an error. */
19260 /* We use char because int might match the return type of a gcc2
19261 builtin and then its argument prototype would still apply. */
19271 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19272 if { (eval echo "$as_me:19272: \"$ac_link\"") >&5
19273 (eval $ac_link) 2>&5
19275 echo "$as_me:19275: \$? = $ac_status" >&5
19276 (exit "$ac_status"); } &&
19277 { ac_try='test -s "conftest$ac_exeext"'
19278 { (eval echo "$as_me:19278: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19281 echo "$as_me:19281: \$? = $ac_status" >&5
19282 (exit "$ac_status"); }; }; then
19283 eval "$as_ac_Lib=yes"
19285 echo "$as_me: failed program was:" >&5
19286 cat "conftest.$ac_ext" >&5
19287 eval "$as_ac_Lib=no"
19289 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19290 LIBS=$ac_check_lib_save_LIBS
19292 echo "$as_me:19292: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19293 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19294 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19296 cf_add_libs="$LIBS"
19299 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19300 # filter duplicates
19301 for cf_add_1lib in $cf_add_0lib; do
19302 for cf_add_2lib in $cf_add_libs; do
19303 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19308 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19310 LIBS="$cf_add_libs"
19312 cf_regex_func=regcomp
19323 if test "$cf_regex_func" = no ; then
19324 echo "$as_me:19324: checking for compile" >&5
19325 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19326 if test "${ac_cv_func_compile+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 cat >"conftest.$ac_ext" <<_ACEOF
19330 #line 19330 "configure"
19331 #include "confdefs.h"
19332 #define compile autoconf_temporary
19333 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19340 /* We use char because int might match the return type of a gcc2
19341 builtin and then its argument prototype would still apply. */
19342 char compile (void);
19348 /* The GNU C library defines stubs for functions which it implements
19349 to always fail with ENOSYS. Some functions are actually named
19350 something starting with __ and the normal name is an alias. */
19351 #if defined (__stub_compile) || defined (__stub___compile)
19352 #error found stub for compile
19360 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19361 if { (eval echo "$as_me:19361: \"$ac_link\"") >&5
19362 (eval $ac_link) 2>&5
19364 echo "$as_me:19364: \$? = $ac_status" >&5
19365 (exit "$ac_status"); } &&
19366 { ac_try='test -s "conftest$ac_exeext"'
19367 { (eval echo "$as_me:19367: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:19370: \$? = $ac_status" >&5
19371 (exit "$ac_status"); }; }; then
19372 ac_cv_func_compile=yes
19374 echo "$as_me: failed program was:" >&5
19375 cat "conftest.$ac_ext" >&5
19376 ac_cv_func_compile=no
19378 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19380 echo "$as_me:19380: result: $ac_cv_func_compile" >&5
19381 echo "${ECHO_T}$ac_cv_func_compile" >&6
19382 if test "$ac_cv_func_compile" = yes; then
19383 cf_regex_func=compile
19386 echo "$as_me:19386: checking for compile in -lgen" >&5
19387 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19388 if test "${ac_cv_lib_gen_compile+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 ac_check_lib_save_LIBS=$LIBS
19393 cat >"conftest.$ac_ext" <<_ACEOF
19394 #line 19394 "configure"
19395 #include "confdefs.h"
19397 /* Override any gcc2 internal prototype to avoid an error. */
19401 /* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19412 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19413 if { (eval echo "$as_me:19413: \"$ac_link\"") >&5
19414 (eval $ac_link) 2>&5
19416 echo "$as_me:19416: \$? = $ac_status" >&5
19417 (exit "$ac_status"); } &&
19418 { ac_try='test -s "conftest$ac_exeext"'
19419 { (eval echo "$as_me:19419: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19422 echo "$as_me:19422: \$? = $ac_status" >&5
19423 (exit "$ac_status"); }; }; then
19424 ac_cv_lib_gen_compile=yes
19426 echo "$as_me: failed program was:" >&5
19427 cat "conftest.$ac_ext" >&5
19428 ac_cv_lib_gen_compile=no
19430 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19431 LIBS=$ac_check_lib_save_LIBS
19433 echo "$as_me:19433: result: $ac_cv_lib_gen_compile" >&5
19434 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19435 if test "$ac_cv_lib_gen_compile" = yes; then
19437 cf_add_libs="$LIBS"
19440 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19441 # filter duplicates
19442 for cf_add_1lib in $cf_add_0lib; do
19443 for cf_add_2lib in $cf_add_libs; do
19444 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19449 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19451 LIBS="$cf_add_libs"
19453 cf_regex_func=compile
19460 if test "$cf_regex_func" = no ; then
19461 { echo "$as_me:19461: WARNING: cannot find regular expression library" >&5
19462 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19465 echo "$as_me:19465: checking for regular-expression headers" >&5
19466 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19467 if test "${cf_cv_regex_hdrs+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 cf_cv_regex_hdrs=no
19472 case "$cf_regex_func" in
19474 for cf_regex_hdr in regexp.h regexpr.h
19476 cat >"conftest.$ac_ext" <<_ACEOF
19477 #line 19477 "configure"
19478 #include "confdefs.h"
19479 #include <$cf_regex_hdr>
19484 char *p = compile("", "", "", 0);
19485 int x = step("", "");
19493 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19494 if { (eval echo "$as_me:19494: \"$ac_link\"") >&5
19495 (eval $ac_link) 2>&5
19497 echo "$as_me:19497: \$? = $ac_status" >&5
19498 (exit "$ac_status"); } &&
19499 { ac_try='test -s "conftest$ac_exeext"'
19500 { (eval echo "$as_me:19500: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19503 echo "$as_me:19503: \$? = $ac_status" >&5
19504 (exit "$ac_status"); }; }; then
19506 cf_cv_regex_hdrs=$cf_regex_hdr
19510 echo "$as_me: failed program was:" >&5
19511 cat "conftest.$ac_ext" >&5
19513 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19517 for cf_regex_hdr in regex.h
19519 cat >"conftest.$ac_ext" <<_ACEOF
19520 #line 19520 "configure"
19521 #include "confdefs.h"
19522 #include <sys/types.h>
19523 #include <$cf_regex_hdr>
19529 int x = regcomp(p, "", 0);
19530 int y = regexec(p, "", 0, 0, 0);
19539 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19540 if { (eval echo "$as_me:19540: \"$ac_link\"") >&5
19541 (eval $ac_link) 2>&5
19543 echo "$as_me:19543: \$? = $ac_status" >&5
19544 (exit "$ac_status"); } &&
19545 { ac_try='test -s "conftest$ac_exeext"'
19546 { (eval echo "$as_me:19546: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19549 echo "$as_me:19549: \$? = $ac_status" >&5
19550 (exit "$ac_status"); }; }; then
19552 cf_cv_regex_hdrs=$cf_regex_hdr
19556 echo "$as_me: failed program was:" >&5
19557 cat "conftest.$ac_ext" >&5
19559 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19565 echo "$as_me:19565: result: $cf_cv_regex_hdrs" >&5
19566 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
19568 case "$cf_cv_regex_hdrs" in
19569 (no) { echo "$as_me:19569: WARNING: no regular expression header found" >&5
19570 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
19572 cat >>confdefs.h <<\EOF
19573 #define HAVE_REGEX_H_FUNCS 1
19577 cat >>confdefs.h <<\EOF
19578 #define HAVE_REGEXP_H_FUNCS 1
19582 cat >>confdefs.h <<\EOF
19583 #define HAVE_REGEXPR_H_FUNCS 1
19606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19607 echo "$as_me:19607: checking for $ac_header" >&5
19608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 cat >"conftest.$ac_ext" <<_ACEOF
19613 #line 19613 "configure"
19614 #include "confdefs.h"
19615 #include <$ac_header>
19617 if { (eval echo "$as_me:19617: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19618 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19620 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19622 cat conftest.err >&5
19623 echo "$as_me:19623: \$? = $ac_status" >&5
19624 (exit "$ac_status"); } >/dev/null; then
19625 if test -s conftest.err; then
19626 ac_cpp_err=$ac_c_preproc_warn_flag
19633 if test -z "$ac_cpp_err"; then
19634 eval "$as_ac_Header=yes"
19636 echo "$as_me: failed program was:" >&5
19637 cat "conftest.$ac_ext" >&5
19638 eval "$as_ac_Header=no"
19640 rm -f conftest.err "conftest.$ac_ext"
19642 echo "$as_me:19642: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19643 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19644 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19645 cat >>confdefs.h <<EOF
19646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19652 for ac_header in unistd.h getopt.h
19654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19655 echo "$as_me:19655: checking for $ac_header" >&5
19656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 cat >"conftest.$ac_ext" <<_ACEOF
19661 #line 19661 "configure"
19662 #include "confdefs.h"
19663 #include <$ac_header>
19665 if { (eval echo "$as_me:19665: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19666 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19668 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19670 cat conftest.err >&5
19671 echo "$as_me:19671: \$? = $ac_status" >&5
19672 (exit "$ac_status"); } >/dev/null; then
19673 if test -s conftest.err; then
19674 ac_cpp_err=$ac_c_preproc_warn_flag
19681 if test -z "$ac_cpp_err"; then
19682 eval "$as_ac_Header=yes"
19684 echo "$as_me: failed program was:" >&5
19685 cat "conftest.$ac_ext" >&5
19686 eval "$as_ac_Header=no"
19688 rm -f conftest.err "conftest.$ac_ext"
19690 echo "$as_me:19690: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19691 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19692 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19693 cat >>confdefs.h <<EOF
19694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19700 echo "$as_me:19700: checking for header declaring getopt variables" >&5
19701 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
19702 if test "${cf_cv_getopt_header+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 cf_cv_getopt_header=none
19707 for cf_header in stdio.h stdlib.h unistd.h getopt.h
19709 cat >"conftest.$ac_ext" <<_ACEOF
19710 #line 19710 "configure"
19711 #include "confdefs.h"
19713 #include <$cf_header>
19717 int x = optind; char *y = optarg
19722 rm -f "conftest.$ac_objext"
19723 if { (eval echo "$as_me:19723: \"$ac_compile\"") >&5
19724 (eval $ac_compile) 2>&5
19726 echo "$as_me:19726: \$? = $ac_status" >&5
19727 (exit "$ac_status"); } &&
19728 { ac_try='test -s "conftest.$ac_objext"'
19729 { (eval echo "$as_me:19729: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19732 echo "$as_me:19732: \$? = $ac_status" >&5
19733 (exit "$ac_status"); }; }; then
19734 cf_cv_getopt_header=$cf_header
19737 echo "$as_me: failed program was:" >&5
19738 cat "conftest.$ac_ext" >&5
19740 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19744 echo "$as_me:19744: result: $cf_cv_getopt_header" >&5
19745 echo "${ECHO_T}$cf_cv_getopt_header" >&6
19746 if test "$cf_cv_getopt_header" != none ; then
19748 cat >>confdefs.h <<\EOF
19749 #define HAVE_GETOPT_HEADER 1
19753 if test "$cf_cv_getopt_header" = getopt.h ; then
19755 cat >>confdefs.h <<\EOF
19756 #define NEED_GETOPT_H 1
19761 echo "$as_me:19761: checking if external environ is declared" >&5
19762 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
19763 if test "${cf_cv_dcl_environ+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 cat >"conftest.$ac_ext" <<_ACEOF
19768 #line 19768 "configure"
19769 #include "confdefs.h"
19771 #ifdef HAVE_STDLIB_H
19772 #include <stdlib.h>
19774 #include <unistd.h>
19778 int x = (int) environ
19783 rm -f "conftest.$ac_objext"
19784 if { (eval echo "$as_me:19784: \"$ac_compile\"") >&5
19785 (eval $ac_compile) 2>&5
19787 echo "$as_me:19787: \$? = $ac_status" >&5
19788 (exit "$ac_status"); } &&
19789 { ac_try='test -s "conftest.$ac_objext"'
19790 { (eval echo "$as_me:19790: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19793 echo "$as_me:19793: \$? = $ac_status" >&5
19794 (exit "$ac_status"); }; }; then
19795 cf_cv_dcl_environ=yes
19797 echo "$as_me: failed program was:" >&5
19798 cat "conftest.$ac_ext" >&5
19799 cf_cv_dcl_environ=no
19801 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19804 echo "$as_me:19804: result: $cf_cv_dcl_environ" >&5
19805 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
19807 if test "$cf_cv_dcl_environ" = no ; then
19809 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19811 cat >>confdefs.h <<EOF
19812 #define $cf_result 1
19817 # It's possible (for near-UNIX clones) that the data doesn't exist
19819 echo "$as_me:19819: checking if external environ exists" >&5
19820 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
19821 if test "${cf_cv_have_environ+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 cat >"conftest.$ac_ext" <<_ACEOF
19826 #line 19826 "configure"
19827 #include "confdefs.h"
19830 extern int environ;
19840 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19841 if { (eval echo "$as_me:19841: \"$ac_link\"") >&5
19842 (eval $ac_link) 2>&5
19844 echo "$as_me:19844: \$? = $ac_status" >&5
19845 (exit "$ac_status"); } &&
19846 { ac_try='test -s "conftest$ac_exeext"'
19847 { (eval echo "$as_me:19847: \"$ac_try\"") >&5
19848 (eval $ac_try) 2>&5
19850 echo "$as_me:19850: \$? = $ac_status" >&5
19851 (exit "$ac_status"); }; }; then
19852 cf_cv_have_environ=yes
19854 echo "$as_me: failed program was:" >&5
19855 cat "conftest.$ac_ext" >&5
19856 cf_cv_have_environ=no
19858 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19861 echo "$as_me:19861: result: $cf_cv_have_environ" >&5
19862 echo "${ECHO_T}$cf_cv_have_environ" >&6
19864 if test "$cf_cv_have_environ" = yes ; then
19866 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19868 cat >>confdefs.h <<EOF
19869 #define $cf_result 1
19874 echo "$as_me:19874: checking for getenv" >&5
19875 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
19876 if test "${ac_cv_func_getenv+set}" = set; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 cat >"conftest.$ac_ext" <<_ACEOF
19880 #line 19880 "configure"
19881 #include "confdefs.h"
19882 #define getenv autoconf_temporary
19883 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19890 /* We use char because int might match the return type of a gcc2
19891 builtin and then its argument prototype would still apply. */
19892 char getenv (void);
19898 /* The GNU C library defines stubs for functions which it implements
19899 to always fail with ENOSYS. Some functions are actually named
19900 something starting with __ and the normal name is an alias. */
19901 #if defined (__stub_getenv) || defined (__stub___getenv)
19902 #error found stub for getenv
19910 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19911 if { (eval echo "$as_me:19911: \"$ac_link\"") >&5
19912 (eval $ac_link) 2>&5
19914 echo "$as_me:19914: \$? = $ac_status" >&5
19915 (exit "$ac_status"); } &&
19916 { ac_try='test -s "conftest$ac_exeext"'
19917 { (eval echo "$as_me:19917: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:19920: \$? = $ac_status" >&5
19921 (exit "$ac_status"); }; }; then
19922 ac_cv_func_getenv=yes
19924 echo "$as_me: failed program was:" >&5
19925 cat "conftest.$ac_ext" >&5
19926 ac_cv_func_getenv=no
19928 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19930 echo "$as_me:19930: result: $ac_cv_func_getenv" >&5
19931 echo "${ECHO_T}$ac_cv_func_getenv" >&6
19933 for ac_func in putenv setenv strdup
19935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19936 echo "$as_me:19936: checking for $ac_func" >&5
19937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19938 if eval "test \"\${$as_ac_var+set}\" = set"; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 cat >"conftest.$ac_ext" <<_ACEOF
19942 #line 19942 "configure"
19943 #include "confdefs.h"
19944 #define $ac_func autoconf_temporary
19945 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19952 /* We use char because int might match the return type of a gcc2
19953 builtin and then its argument prototype would still apply. */
19954 char $ac_func (void);
19960 /* The GNU C library defines stubs for functions which it implements
19961 to always fail with ENOSYS. Some functions are actually named
19962 something starting with __ and the normal name is an alias. */
19963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19964 #error found stub for $ac_func
19967 return $ac_func ();
19972 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19973 if { (eval echo "$as_me:19973: \"$ac_link\"") >&5
19974 (eval $ac_link) 2>&5
19976 echo "$as_me:19976: \$? = $ac_status" >&5
19977 (exit "$ac_status"); } &&
19978 { ac_try='test -s "conftest$ac_exeext"'
19979 { (eval echo "$as_me:19979: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19982 echo "$as_me:19982: \$? = $ac_status" >&5
19983 (exit "$ac_status"); }; }; then
19984 eval "$as_ac_var=yes"
19986 echo "$as_me: failed program was:" >&5
19987 cat "conftest.$ac_ext" >&5
19988 eval "$as_ac_var=no"
19990 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19992 echo "$as_me:19992: result: `eval echo '${'"$as_ac_var"'}'`" >&5
19993 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
19994 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
19995 cat >>confdefs.h <<EOF
19996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20002 echo "$as_me:20002: checking if getenv returns consistent values" >&5
20003 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20004 if test "${cf_cv_consistent_getenv+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 if test "$cross_compiling" = yes; then
20009 cf_cv_consistent_getenv=unknown
20011 cat >"conftest.$ac_ext" <<_ACEOF
20012 #line 20012 "configure"
20013 #include "confdefs.h"
20015 #include <stdlib.h>
20016 #include <unistd.h>
20018 #include <string.h>
20019 #include <sys/types.h>
20021 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20022 extern char **environ; /* POSIX, but some systems are not... */
20025 #if defined(HAVE_STRDUP)
20026 #define str_alloc(s) strdup(s)
20028 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20031 static void set_value(const char *name, const char *value)
20033 #if defined(HAVE_SETENV)
20034 setenv(name, value, 1);
20035 #elif defined(HAVE_PUTENV)
20037 sprintf(buffer, "%s=%s", name, value);
20038 putenv(str_alloc(buffer));
20040 #error neither putenv/setenv found
20046 size_t numenv, limit, j;
20051 for (numenv = 0; environ[numenv]; ++numenv) ;
20052 limit = numenv + 10;
20053 mynames = (char **) calloc(limit + 1, sizeof(char *));
20054 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20055 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20056 #if defined(HAVE_ENVIRON)
20057 for (j = 0; environ[j]; ++j) {
20058 mynames[j] = str_alloc(environ[j]);
20059 equals = strchr(mynames[j], '=');
20062 myvalues[j] = str_alloc(equals);
20064 myvalues[j] = str_alloc("");
20068 for (j = numenv; j < limit; ++j) {
20076 sprintf(name, "TERM%lu", (unsigned long) k);
20077 for (jk = 0; jk < j; ++jk) {
20078 if (!strcmp(name, mynames[jk])) {
20085 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20086 set_value(name, value);
20087 mynames[j] = str_alloc(name);
20088 myvalues[j] = str_alloc(value);
20090 for (pass = 0; pass < 3; ++pass) {
20091 for (j = 0; j < limit; ++j) {
20092 char *value = getenv(mynames[j]);
20095 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20096 ${cf_cv_main_return:-return}(1);
20097 } else if (value != mypointer[j]) {
20098 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20099 ${cf_cv_main_return:-return}(1);
20100 } else if (strcmp(value, myvalues[j])) {
20101 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20102 ${cf_cv_main_return:-return}(1);
20106 mypointer[j] = value;
20107 for (k = 0; k < j; ++k) {
20108 if (mypointer[j] == mypointer[k]) {
20109 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20110 ${cf_cv_main_return:-return}(1);
20116 ${cf_cv_main_return:-return}(0);
20120 rm -f "conftest$ac_exeext"
20121 if { (eval echo "$as_me:20121: \"$ac_link\"") >&5
20122 (eval $ac_link) 2>&5
20124 echo "$as_me:20124: \$? = $ac_status" >&5
20125 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20126 { (eval echo "$as_me:20126: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20129 echo "$as_me:20129: \$? = $ac_status" >&5
20130 (exit "$ac_status"); }; }; then
20131 cf_cv_consistent_getenv=yes
20133 echo "$as_me: program exited with status $ac_status" >&5
20134 echo "$as_me: failed program was:" >&5
20135 cat "conftest.$ac_ext" >&5
20136 cf_cv_consistent_getenv=no
20138 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20142 echo "$as_me:20142: result: $cf_cv_consistent_getenv" >&5
20143 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20145 if test "x$cf_cv_consistent_getenv" = xno
20148 cat >>confdefs.h <<\EOF
20149 #define HAVE_CONSISTENT_GETENV 1
20154 if test "x$cf_cv_consistent_getenv" = xno && \
20155 test "x$cf_with_trace" = xyes
20157 { echo "$as_me:20157: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20158 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20161 echo "$as_me:20161: checking if sys/time.h works with sys/select.h" >&5
20162 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20163 if test "${cf_cv_sys_time_select+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 cat >"conftest.$ac_ext" <<_ACEOF
20168 #line 20168 "configure"
20169 #include "confdefs.h"
20171 #include <sys/types.h>
20172 #ifdef HAVE_SYS_TIME_H
20173 #include <sys/time.h>
20175 #ifdef HAVE_SYS_SELECT_H
20176 #include <sys/select.h>
20187 rm -f "conftest.$ac_objext"
20188 if { (eval echo "$as_me:20188: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>&5
20191 echo "$as_me:20191: \$? = $ac_status" >&5
20192 (exit "$ac_status"); } &&
20193 { ac_try='test -s "conftest.$ac_objext"'
20194 { (eval echo "$as_me:20194: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20197 echo "$as_me:20197: \$? = $ac_status" >&5
20198 (exit "$ac_status"); }; }; then
20199 cf_cv_sys_time_select=yes
20201 echo "$as_me: failed program was:" >&5
20202 cat "conftest.$ac_ext" >&5
20203 cf_cv_sys_time_select=no
20205 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20209 echo "$as_me:20209: result: $cf_cv_sys_time_select" >&5
20210 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20211 test "$cf_cv_sys_time_select" = yes &&
20212 cat >>confdefs.h <<\EOF
20213 #define HAVE_SYS_TIME_SELECT 1
20216 ### checks for compiler characteristics
20218 ac_cpp='$CPP $CPPFLAGS'
20219 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20220 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20222 ac_main_return="return"
20224 echo "$as_me:20224: checking for an ANSI C-conforming const" >&5
20225 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20226 if test "${ac_cv_c_const+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 cat >"conftest.$ac_ext" <<_ACEOF
20230 #line 20230 "configure"
20231 #include "confdefs.h"
20236 /* FIXME: Include the comments suggested by Paul. */
20237 #ifndef __cplusplus
20238 /* Ultrix mips cc rejects this. */
20239 typedef int charset[2];
20241 /* SunOS 4.1.1 cc rejects this. */
20242 char const *const *ccp;
20244 /* NEC SVR4.0.2 mips cc rejects this. */
20245 struct point {int x, y;};
20246 static struct point const zero = {0,0};
20247 /* AIX XL C 1.02.0.0 rejects this.
20248 It does not let you subtract one const X* pointer from another in
20249 an arm of an if-expression whose if-part is not a constant
20251 const char *g = "string";
20252 ccp = &g + (g ? g-g : 0);
20253 /* HPUX 7.0 cc rejects these. */
20256 ccp = (char const *const *) p;
20257 { /* SCO 3.2v4 cc rejects this. */
20259 char const *s = 0 ? (char *) 0 : (char const *) 0;
20263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20264 int x[] = {25, 17};
20265 const int *foo = &x[0];
20268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20269 typedef const int *iptr;
20273 { /* AIX XL C 1.02.0.0 rejects this saying
20274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20275 struct s { int j; const int *ap[3]; };
20276 struct s *b; b->j = 5;
20278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20279 const int foo = 10;
20287 rm -f "conftest.$ac_objext"
20288 if { (eval echo "$as_me:20288: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>&5
20291 echo "$as_me:20291: \$? = $ac_status" >&5
20292 (exit "$ac_status"); } &&
20293 { ac_try='test -s "conftest.$ac_objext"'
20294 { (eval echo "$as_me:20294: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 echo "$as_me:20297: \$? = $ac_status" >&5
20298 (exit "$ac_status"); }; }; then
20301 echo "$as_me: failed program was:" >&5
20302 cat "conftest.$ac_ext" >&5
20305 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20307 echo "$as_me:20307: result: $ac_cv_c_const" >&5
20308 echo "${ECHO_T}$ac_cv_c_const" >&6
20309 if test $ac_cv_c_const = no; then
20311 cat >>confdefs.h <<\EOF
20317 echo "$as_me:20317: checking for inline" >&5
20318 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20319 if test "${ac_cv_c_inline+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 for ac_kw in inline __inline__ __inline; do
20324 cat >"conftest.$ac_ext" <<_ACEOF
20325 #line 20325 "configure"
20326 #include "confdefs.h"
20327 #ifndef __cplusplus
20328 static $ac_kw int static_foo () {return 0; }
20329 $ac_kw int foo () {return 0; }
20333 rm -f "conftest.$ac_objext"
20334 if { (eval echo "$as_me:20334: \"$ac_compile\"") >&5
20335 (eval $ac_compile) 2>&5
20337 echo "$as_me:20337: \$? = $ac_status" >&5
20338 (exit "$ac_status"); } &&
20339 { ac_try='test -s "conftest.$ac_objext"'
20340 { (eval echo "$as_me:20340: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:20343: \$? = $ac_status" >&5
20344 (exit "$ac_status"); }; }; then
20345 ac_cv_c_inline=$ac_kw; break
20347 echo "$as_me: failed program was:" >&5
20348 cat "conftest.$ac_ext" >&5
20350 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20354 echo "$as_me:20354: result: $ac_cv_c_inline" >&5
20355 echo "${ECHO_T}$ac_cv_c_inline" >&6
20356 case $ac_cv_c_inline in
20359 cat >>confdefs.h <<\EOF
20363 *) cat >>confdefs.h <<EOF
20364 #define inline $ac_cv_c_inline
20370 if test "$ac_cv_c_inline" != no ; then
20371 NCURSES_INLINE=inline
20372 if test "$INTEL_COMPILER" = yes
20375 elif test "$CLANG_COMPILER" = yes
20378 elif test "$GCC" = yes
20380 echo "$as_me:20380: checking if $CC supports options to tune inlining" >&5
20381 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20382 if test "${cf_cv_gcc_inline+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20386 cf_save_CFLAGS=$CFLAGS
20387 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20388 cat >"conftest.$ac_ext" <<_ACEOF
20389 #line 20389 "configure"
20390 #include "confdefs.h"
20391 inline int foo(void) { return 1; }
20395 ${cf_cv_main_return:-return} foo()
20400 rm -f "conftest.$ac_objext"
20401 if { (eval echo "$as_me:20401: \"$ac_compile\"") >&5
20402 (eval $ac_compile) 2>&5
20404 echo "$as_me:20404: \$? = $ac_status" >&5
20405 (exit "$ac_status"); } &&
20406 { ac_try='test -s "conftest.$ac_objext"'
20407 { (eval echo "$as_me:20407: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20410 echo "$as_me:20410: \$? = $ac_status" >&5
20411 (exit "$ac_status"); }; }; then
20412 cf_cv_gcc_inline=yes
20414 echo "$as_me: failed program was:" >&5
20415 cat "conftest.$ac_ext" >&5
20416 cf_cv_gcc_inline=no
20418 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20419 CFLAGS=$cf_save_CFLAGS
20422 echo "$as_me:20422: result: $cf_cv_gcc_inline" >&5
20423 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20424 if test "$cf_cv_gcc_inline" = yes ; then
20429 cf_new_extra_cppflags=
20431 for cf_add_cflags in --param max-inline-insns-single=1200
20433 case "$cf_fix_cppflags" in
20435 case "$cf_add_cflags" in
20436 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20437 case "$cf_add_cflags" in
20439 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20441 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20442 && test -z "${cf_tst_cflags}" \
20443 && cf_fix_cppflags=yes
20445 if test "$cf_fix_cppflags" = yes ; then
20447 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20448 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20451 elif test "${cf_tst_cflags}" = "\"'" ; then
20453 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20454 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20460 case "$CPPFLAGS" in
20464 case "$cf_add_cflags" in
20466 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20468 CPPFLAGS=`echo "$CPPFLAGS" | \
20469 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20470 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20475 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20476 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20483 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20484 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20491 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20492 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20494 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20496 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20497 && test -z "${cf_tst_cflags}" \
20498 && cf_fix_cppflags=no
20503 if test -n "$cf_new_cflags" ; then
20505 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20506 CFLAGS="${CFLAGS}$cf_new_cflags"
20510 if test -n "$cf_new_cppflags" ; then
20512 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20513 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20517 if test -n "$cf_new_extra_cppflags" ; then
20519 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20520 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20528 echo "$as_me:20528: checking for signal global datatype" >&5
20529 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
20530 if test "${cf_cv_sig_atomic_t+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 "volatile sig_atomic_t" \
20539 cat >"conftest.$ac_ext" <<_ACEOF
20540 #line 20540 "configure"
20541 #include "confdefs.h"
20543 #include <sys/types.h>
20544 #include <signal.h>
20549 static void handler(int sig)
20557 signal(SIGINT, handler);
20563 rm -f "conftest.$ac_objext"
20564 if { (eval echo "$as_me:20564: \"$ac_compile\"") >&5
20565 (eval $ac_compile) 2>&5
20567 echo "$as_me:20567: \$? = $ac_status" >&5
20568 (exit "$ac_status"); } &&
20569 { ac_try='test -s "conftest.$ac_objext"'
20570 { (eval echo "$as_me:20570: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20573 echo "$as_me:20573: \$? = $ac_status" >&5
20574 (exit "$ac_status"); }; }; then
20575 cf_cv_sig_atomic_t=$cf_type
20577 echo "$as_me: failed program was:" >&5
20578 cat "conftest.$ac_ext" >&5
20579 cf_cv_sig_atomic_t=no
20581 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20582 test "$cf_cv_sig_atomic_t" != no && break
20587 echo "$as_me:20587: result: $cf_cv_sig_atomic_t" >&5
20588 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
20589 test "$cf_cv_sig_atomic_t" != no &&
20590 cat >>confdefs.h <<EOF
20591 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
20594 if test "$NCURSES_CHTYPE" = auto ; then
20596 echo "$as_me:20596: checking for type of chtype" >&5
20597 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
20598 if test "${cf_cv_typeof_chtype+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 if test "$cross_compiling" = yes; then
20603 cf_cv_typeof_chtype=long
20605 cat >"conftest.$ac_ext" <<_ACEOF
20606 #line 20606 "configure"
20607 #include "confdefs.h"
20609 #define WANT_BITS 31
20613 FILE *fp = fopen("cf_test.out", "w");
20615 char *result = "long";
20616 if (sizeof(unsigned long) > sizeof(unsigned int)) {
20619 for (n = 0; n < WANT_BITS; n++) {
20622 if (y != 1 || x == 0) {
20628 * If x is nonzero, an int is big enough for the bits
20631 result = (x != 0) ? "int" : "long";
20636 ${cf_cv_main_return:-return}(0);
20640 rm -f "conftest$ac_exeext"
20641 if { (eval echo "$as_me:20641: \"$ac_link\"") >&5
20642 (eval $ac_link) 2>&5
20644 echo "$as_me:20644: \$? = $ac_status" >&5
20645 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20646 { (eval echo "$as_me:20646: \"$ac_try\"") >&5
20647 (eval $ac_try) 2>&5
20649 echo "$as_me:20649: \$? = $ac_status" >&5
20650 (exit "$ac_status"); }; }; then
20651 cf_cv_typeof_chtype=`cat cf_test.out`
20653 echo "$as_me: program exited with status $ac_status" >&5
20654 echo "$as_me: failed program was:" >&5
20655 cat "conftest.$ac_ext" >&5
20656 cf_cv_typeof_chtype=long
20658 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20664 echo "$as_me:20664: result: $cf_cv_typeof_chtype" >&5
20665 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
20667 cat >>confdefs.h <<EOF
20668 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
20672 cf_cv_typeof_chtype=$NCURSES_CHTYPE
20674 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
20676 echo "$as_me:20676: checking if unsigned literals are legal" >&5
20677 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
20678 if test "${cf_cv_unsigned_literals+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 cat >"conftest.$ac_ext" <<_ACEOF
20683 #line 20683 "configure"
20684 #include "confdefs.h"
20689 long x = 1L + 1UL + 1U + 1
20694 rm -f "conftest.$ac_objext"
20695 if { (eval echo "$as_me:20695: \"$ac_compile\"") >&5
20696 (eval $ac_compile) 2>&5
20698 echo "$as_me:20698: \$? = $ac_status" >&5
20699 (exit "$ac_status"); } &&
20700 { ac_try='test -s "conftest.$ac_objext"'
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_unsigned_literals=yes
20708 echo "$as_me: failed program was:" >&5
20709 cat "conftest.$ac_ext" >&5
20710 cf_cv_unsigned_literals=no
20712 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20716 echo "$as_me:20716: result: $cf_cv_unsigned_literals" >&5
20717 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
20720 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
20721 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
20723 if test "$NCURSES_MMASK_T" = auto ; then
20724 cf_cv_typeof_mmask_t=long
20726 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
20728 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
20730 ### Checks for external-data
20732 echo "$as_me:20732: checking if external errno is declared" >&5
20733 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
20734 if test "${cf_cv_dcl_errno+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 cat >"conftest.$ac_ext" <<_ACEOF
20739 #line 20739 "configure"
20740 #include "confdefs.h"
20742 #ifdef HAVE_STDLIB_H
20743 #include <stdlib.h>
20746 #include <sys/types.h>
20751 int x = (int) errno; (void)x
20756 rm -f "conftest.$ac_objext"
20757 if { (eval echo "$as_me:20757: \"$ac_compile\"") >&5
20758 (eval $ac_compile) 2>&5
20760 echo "$as_me:20760: \$? = $ac_status" >&5
20761 (exit "$ac_status"); } &&
20762 { ac_try='test -s "conftest.$ac_objext"'
20763 { (eval echo "$as_me:20763: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20766 echo "$as_me:20766: \$? = $ac_status" >&5
20767 (exit "$ac_status"); }; }; then
20768 cf_cv_dcl_errno=yes
20770 echo "$as_me: failed program was:" >&5
20771 cat "conftest.$ac_ext" >&5
20774 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20777 echo "$as_me:20777: result: $cf_cv_dcl_errno" >&5
20778 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
20780 if test "$cf_cv_dcl_errno" = no ; then
20782 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20784 cat >>confdefs.h <<EOF
20785 #define $cf_result 1
20790 # It's possible (for near-UNIX clones) that the data doesn't exist
20792 echo "$as_me:20792: checking if external errno exists" >&5
20793 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
20794 if test "${cf_cv_have_errno+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 cat >"conftest.$ac_ext" <<_ACEOF
20799 #line 20799 "configure"
20800 #include "confdefs.h"
20813 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20814 if { (eval echo "$as_me:20814: \"$ac_link\"") >&5
20815 (eval $ac_link) 2>&5
20817 echo "$as_me:20817: \$? = $ac_status" >&5
20818 (exit "$ac_status"); } &&
20819 { ac_try='test -s "conftest$ac_exeext"'
20820 { (eval echo "$as_me:20820: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20823 echo "$as_me:20823: \$? = $ac_status" >&5
20824 (exit "$ac_status"); }; }; then
20825 cf_cv_have_errno=yes
20827 echo "$as_me: failed program was:" >&5
20828 cat "conftest.$ac_ext" >&5
20829 cf_cv_have_errno=no
20831 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20834 echo "$as_me:20834: result: $cf_cv_have_errno" >&5
20835 echo "${ECHO_T}$cf_cv_have_errno" >&6
20837 if test "$cf_cv_have_errno" = yes ; then
20839 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20841 cat >>confdefs.h <<EOF
20842 #define $cf_result 1
20847 echo "$as_me:20847: checking if data-only library module links" >&5
20848 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
20849 if test "${cf_cv_link_dataonly+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 cat >conftest.$ac_ext <<EOF
20855 #line 20855 "configure"
20856 int testdata[3] = { 123, 456, 789 };
20858 if { (eval echo "$as_me:20858: \"$ac_compile\"") >&5
20859 (eval $ac_compile) 2>&5
20861 echo "$as_me:20861: \$? = $ac_status" >&5
20862 (exit "$ac_status"); } ; then
20863 mv conftest.o data.o && \
20864 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
20866 rm -f conftest.$ac_ext data.o
20867 cat >conftest.$ac_ext <<EOF
20868 #line 20868 "configure"
20872 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
20874 extern int testdata[3];
20875 return testdata[0] == 123
20876 && testdata[1] == 456
20877 && testdata[2] == 789;
20881 if { (eval echo "$as_me:20881: \"$ac_compile\"") >&5
20882 (eval $ac_compile) 2>&5
20884 echo "$as_me:20884: \$? = $ac_status" >&5
20885 (exit "$ac_status"); }; then
20886 mv conftest.o func.o && \
20887 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
20889 rm -f conftest.$ac_ext func.o
20890 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
20891 cf_saveLIBS="$LIBS"
20892 LIBS="conftest.a $LIBS"
20893 if test "$cross_compiling" = yes; then
20894 cf_cv_link_dataonly=unknown
20896 cat >"conftest.$ac_ext" <<_ACEOF
20897 #line 20897 "configure"
20898 #include "confdefs.h"
20902 extern int testfunc();
20903 ${cf_cv_main_return:-return} (!testfunc());
20907 rm -f "conftest$ac_exeext"
20908 if { (eval echo "$as_me:20908: \"$ac_link\"") >&5
20909 (eval $ac_link) 2>&5
20911 echo "$as_me:20911: \$? = $ac_status" >&5
20912 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20913 { (eval echo "$as_me:20913: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20916 echo "$as_me:20916: \$? = $ac_status" >&5
20917 (exit "$ac_status"); }; }; then
20918 cf_cv_link_dataonly=yes
20920 echo "$as_me: program exited with status $ac_status" >&5
20921 echo "$as_me: failed program was:" >&5
20922 cat "conftest.$ac_ext" >&5
20923 cf_cv_link_dataonly=no
20925 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20927 LIBS="$cf_saveLIBS"
20931 echo "$as_me:20931: result: $cf_cv_link_dataonly" >&5
20932 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
20934 if test "$cf_cv_link_dataonly" = no ; then
20936 cat >>confdefs.h <<\EOF
20937 #define BROKEN_LINKER 1
20943 ### Checks for library functions.
20973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20974 echo "$as_me:20974: checking for $ac_func" >&5
20975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20976 if eval "test \"\${$as_ac_var+set}\" = set"; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 cat >"conftest.$ac_ext" <<_ACEOF
20980 #line 20980 "configure"
20981 #include "confdefs.h"
20982 #define $ac_func autoconf_temporary
20983 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20990 /* We use char because int might match the return type of a gcc2
20991 builtin and then its argument prototype would still apply. */
20992 char $ac_func (void);
20998 /* The GNU C library defines stubs for functions which it implements
20999 to always fail with ENOSYS. Some functions are actually named
21000 something starting with __ and the normal name is an alias. */
21001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21002 #error found stub for $ac_func
21005 return $ac_func ();
21010 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21011 if { (eval echo "$as_me:21011: \"$ac_link\"") >&5
21012 (eval $ac_link) 2>&5
21014 echo "$as_me:21014: \$? = $ac_status" >&5
21015 (exit "$ac_status"); } &&
21016 { ac_try='test -s "conftest$ac_exeext"'
21017 { (eval echo "$as_me:21017: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:21020: \$? = $ac_status" >&5
21021 (exit "$ac_status"); }; }; then
21022 eval "$as_ac_var=yes"
21024 echo "$as_me: failed program was:" >&5
21025 cat "conftest.$ac_ext" >&5
21026 eval "$as_ac_var=no"
21028 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21030 echo "$as_me:21030: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21031 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21032 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21033 cat >>confdefs.h <<EOF
21034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21040 if test "x$ac_cv_func_getopt" = xno && \
21041 test "x$cf_with_progs$cf_with_tests" != xnono; then
21042 { { echo "$as_me:21042: error: getopt is required for building programs" >&5
21043 echo "$as_me: error: getopt is required for building programs" >&2;}
21044 { (exit 1); exit 1; }; }
21047 if test "x$with_safe_sprintf" = xyes
21049 if test "x$ac_cv_func_vsnprintf" = xyes
21051 { echo "$as_me:21051: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21052 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21055 cat >>confdefs.h <<\EOF
21056 #define USE_SAFE_SPRINTF 1
21062 if test "x$with_getcap" = "xyes" ; then
21064 echo "$as_me:21064: checking for terminal-capability database functions" >&5
21065 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21066 if test "${cf_cv_cgetent+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 cat >"conftest.$ac_ext" <<_ACEOF
21071 #line 21071 "configure"
21072 #include "confdefs.h"
21074 #include <stdlib.h>
21081 char *db_array = temp;
21082 cgetent(&buf, &db_array, "vt100");
21083 cgetcap(buf, "tc", '=');
21084 cgetmatch(buf, "tc");
21090 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21091 if { (eval echo "$as_me:21091: \"$ac_link\"") >&5
21092 (eval $ac_link) 2>&5
21094 echo "$as_me:21094: \$? = $ac_status" >&5
21095 (exit "$ac_status"); } &&
21096 { ac_try='test -s "conftest$ac_exeext"'
21097 { (eval echo "$as_me:21097: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21100 echo "$as_me:21100: \$? = $ac_status" >&5
21101 (exit "$ac_status"); }; }; then
21104 echo "$as_me: failed program was:" >&5
21105 cat "conftest.$ac_ext" >&5
21108 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21111 echo "$as_me:21111: result: $cf_cv_cgetent" >&5
21112 echo "${ECHO_T}$cf_cv_cgetent" >&6
21114 if test "$cf_cv_cgetent" = yes
21117 cat >>confdefs.h <<\EOF
21118 #define HAVE_BSD_CGETENT 1
21121 echo "$as_me:21121: checking if cgetent uses const parameter" >&5
21122 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21123 if test "${cf_cv_cgetent_const+set}" = set; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21127 cat >"conftest.$ac_ext" <<_ACEOF
21128 #line 21128 "configure"
21129 #include "confdefs.h"
21131 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21132 #include <stdlib.h>
21139 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
21140 const char *db_array = temp;
21141 cgetent(&buf, &db_array, "vt100");
21143 cgetcap(buf, "tc", '=');
21144 cgetmatch(buf, "tc");
21150 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21151 if { (eval echo "$as_me:21151: \"$ac_link\"") >&5
21152 (eval $ac_link) 2>&5
21154 echo "$as_me:21154: \$? = $ac_status" >&5
21155 (exit "$ac_status"); } &&
21156 { ac_try='test -s "conftest$ac_exeext"'
21157 { (eval echo "$as_me:21157: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21160 echo "$as_me:21160: \$? = $ac_status" >&5
21161 (exit "$ac_status"); }; }; then
21162 cf_cv_cgetent_const=yes
21164 echo "$as_me: failed program was:" >&5
21165 cat "conftest.$ac_ext" >&5
21166 cf_cv_cgetent_const=no
21168 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21171 echo "$as_me:21171: result: $cf_cv_cgetent_const" >&5
21172 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
21173 if test "$cf_cv_cgetent_const" = yes
21176 cat >>confdefs.h <<EOF
21177 #define CGETENT_CONST const
21185 echo "$as_me:21185: checking for isascii" >&5
21186 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
21187 if test "${cf_cv_have_isascii+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 cat >"conftest.$ac_ext" <<_ACEOF
21192 #line 21192 "configure"
21193 #include "confdefs.h"
21198 int x = isascii(' ')
21203 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21204 if { (eval echo "$as_me:21204: \"$ac_link\"") >&5
21205 (eval $ac_link) 2>&5
21207 echo "$as_me:21207: \$? = $ac_status" >&5
21208 (exit "$ac_status"); } &&
21209 { ac_try='test -s "conftest$ac_exeext"'
21210 { (eval echo "$as_me:21210: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:21213: \$? = $ac_status" >&5
21214 (exit "$ac_status"); }; }; then
21215 cf_cv_have_isascii=yes
21217 echo "$as_me: failed program was:" >&5
21218 cat "conftest.$ac_ext" >&5
21219 cf_cv_have_isascii=no
21221 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21224 echo "$as_me:21224: result: $cf_cv_have_isascii" >&5
21225 echo "${ECHO_T}$cf_cv_have_isascii" >&6
21226 test "$cf_cv_have_isascii" = yes &&
21227 cat >>confdefs.h <<\EOF
21228 #define HAVE_ISASCII 1
21231 if test "$ac_cv_func_sigaction" = yes; then
21232 echo "$as_me:21232: checking whether sigaction needs _POSIX_SOURCE" >&5
21233 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
21234 cat >"conftest.$ac_ext" <<_ACEOF
21235 #line 21235 "configure"
21236 #include "confdefs.h"
21238 #include <sys/types.h>
21239 #include <signal.h>
21243 struct sigaction act
21248 rm -f "conftest.$ac_objext"
21249 if { (eval echo "$as_me:21249: \"$ac_compile\"") >&5
21250 (eval $ac_compile) 2>&5
21252 echo "$as_me:21252: \$? = $ac_status" >&5
21253 (exit "$ac_status"); } &&
21254 { ac_try='test -s "conftest.$ac_objext"'
21255 { (eval echo "$as_me:21255: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21258 echo "$as_me:21258: \$? = $ac_status" >&5
21259 (exit "$ac_status"); }; }; then
21262 echo "$as_me: failed program was:" >&5
21263 cat "conftest.$ac_ext" >&5
21265 cat >"conftest.$ac_ext" <<_ACEOF
21266 #line 21266 "configure"
21267 #include "confdefs.h"
21269 #define _POSIX_SOURCE
21270 #include <sys/types.h>
21271 #include <signal.h>
21275 struct sigaction act
21280 rm -f "conftest.$ac_objext"
21281 if { (eval echo "$as_me:21281: \"$ac_compile\"") >&5
21282 (eval $ac_compile) 2>&5
21284 echo "$as_me:21284: \$? = $ac_status" >&5
21285 (exit "$ac_status"); } &&
21286 { ac_try='test -s "conftest.$ac_objext"'
21287 { (eval echo "$as_me:21287: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 echo "$as_me:21290: \$? = $ac_status" >&5
21291 (exit "$ac_status"); }; }; then
21294 cat >>confdefs.h <<\EOF
21295 #define _POSIX_SOURCE 1
21299 echo "$as_me: failed program was:" >&5
21300 cat "conftest.$ac_ext" >&5
21303 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21305 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21306 echo "$as_me:21306: result: $sigact_bad" >&5
21307 echo "${ECHO_T}$sigact_bad" >&6
21310 echo "$as_me:21310: checking if nanosleep really works" >&5
21311 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
21312 if test "${cf_cv_func_nanosleep+set}" = set; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 if test "$cross_compiling" = yes; then
21317 cf_cv_func_nanosleep=unknown
21319 cat >"conftest.$ac_ext" <<_ACEOF
21320 #line 21320 "configure"
21321 #include "confdefs.h"
21327 #ifdef HAVE_SYS_TIME_H
21328 #include <sys/time.h>
21332 struct timespec ts1, ts2;
21335 ts1.tv_nsec = 750000000;
21339 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
21340 ${cf_cv_main_return:-return}(code != 0);
21344 rm -f "conftest$ac_exeext"
21345 if { (eval echo "$as_me:21345: \"$ac_link\"") >&5
21346 (eval $ac_link) 2>&5
21348 echo "$as_me:21348: \$? = $ac_status" >&5
21349 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21350 { (eval echo "$as_me:21350: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21353 echo "$as_me:21353: \$? = $ac_status" >&5
21354 (exit "$ac_status"); }; }; then
21355 cf_cv_func_nanosleep=yes
21357 echo "$as_me: program exited with status $ac_status" >&5
21358 echo "$as_me: failed program was:" >&5
21359 cat "conftest.$ac_ext" >&5
21360 cf_cv_func_nanosleep=no
21362 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21365 echo "$as_me:21365: result: $cf_cv_func_nanosleep" >&5
21366 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
21368 test "$cf_cv_func_nanosleep" = "yes" &&
21369 cat >>confdefs.h <<\EOF
21370 #define HAVE_NANOSLEEP 1
21381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21382 echo "$as_me:21382: checking for $ac_header" >&5
21383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 cat >"conftest.$ac_ext" <<_ACEOF
21388 #line 21388 "configure"
21389 #include "confdefs.h"
21390 #include <$ac_header>
21392 if { (eval echo "$as_me:21392: \"$ac_cpp "conftest.$ac_ext"\"") >&5
21393 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
21395 $EGREP -v '^ *\+' conftest.er1 >conftest.err
21397 cat conftest.err >&5
21398 echo "$as_me:21398: \$? = $ac_status" >&5
21399 (exit "$ac_status"); } >/dev/null; then
21400 if test -s conftest.err; then
21401 ac_cpp_err=$ac_c_preproc_warn_flag
21408 if test -z "$ac_cpp_err"; then
21409 eval "$as_ac_Header=yes"
21411 echo "$as_me: failed program was:" >&5
21412 cat "conftest.$ac_ext" >&5
21413 eval "$as_ac_Header=no"
21415 rm -f conftest.err "conftest.$ac_ext"
21417 echo "$as_me:21417: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
21418 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
21419 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
21420 cat >>confdefs.h <<EOF
21421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21427 if test "$ac_cv_header_termios_h" = yes ; then
21428 case "$CFLAGS $CPPFLAGS" in
21429 (*-D_POSIX_SOURCE*)
21430 termios_bad=dunno ;;
21431 (*) termios_bad=maybe ;;
21433 if test "$termios_bad" = maybe ; then
21434 echo "$as_me:21434: checking whether termios.h needs _POSIX_SOURCE" >&5
21435 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
21436 cat >"conftest.$ac_ext" <<_ACEOF
21437 #line 21437 "configure"
21438 #include "confdefs.h"
21439 #include <termios.h>
21443 struct termios foo; int x = foo.c_iflag = 1; (void)x
21448 rm -f "conftest.$ac_objext"
21449 if { (eval echo "$as_me:21449: \"$ac_compile\"") >&5
21450 (eval $ac_compile) 2>&5
21452 echo "$as_me:21452: \$? = $ac_status" >&5
21453 (exit "$ac_status"); } &&
21454 { ac_try='test -s "conftest.$ac_objext"'
21455 { (eval echo "$as_me:21455: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21458 echo "$as_me:21458: \$? = $ac_status" >&5
21459 (exit "$ac_status"); }; }; then
21462 echo "$as_me: failed program was:" >&5
21463 cat "conftest.$ac_ext" >&5
21465 cat >"conftest.$ac_ext" <<_ACEOF
21466 #line 21466 "configure"
21467 #include "confdefs.h"
21469 #define _POSIX_SOURCE
21470 #include <termios.h>
21474 struct termios foo; int x = foo.c_iflag = 2; (void)x
21479 rm -f "conftest.$ac_objext"
21480 if { (eval echo "$as_me:21480: \"$ac_compile\"") >&5
21481 (eval $ac_compile) 2>&5
21483 echo "$as_me:21483: \$? = $ac_status" >&5
21484 (exit "$ac_status"); } &&
21485 { ac_try='test -s "conftest.$ac_objext"'
21486 { (eval echo "$as_me:21486: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21489 echo "$as_me:21489: \$? = $ac_status" >&5
21490 (exit "$ac_status"); }; }; then
21491 termios_bad=unknown
21493 echo "$as_me: failed program was:" >&5
21494 cat "conftest.$ac_ext" >&5
21496 cat >>confdefs.h <<\EOF
21497 #define _POSIX_SOURCE 1
21501 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21504 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21505 echo "$as_me:21505: result: $termios_bad" >&5
21506 echo "${ECHO_T}$termios_bad" >&6
21510 echo "$as_me:21510: checking for tcgetattr" >&5
21511 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
21512 if test "${cf_cv_have_tcgetattr+set}" = set; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 cat >"conftest.$ac_ext" <<_ACEOF
21517 #line 21517 "configure"
21518 #include "confdefs.h"
21520 #include <sys/types.h>
21521 #ifdef HAVE_UNISTD_H
21522 #include <unistd.h>
21524 #ifdef HAVE_TERMIOS_H
21525 #include <termios.h>
21526 #define TTY struct termios
21528 #ifdef HAVE_TERMIO_H
21529 #include <termio.h>
21530 #define TTY struct termio
21539 tcgetattr(1, &foo);
21544 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21545 if { (eval echo "$as_me:21545: \"$ac_link\"") >&5
21546 (eval $ac_link) 2>&5
21548 echo "$as_me:21548: \$? = $ac_status" >&5
21549 (exit "$ac_status"); } &&
21550 { ac_try='test -s "conftest$ac_exeext"'
21551 { (eval echo "$as_me:21551: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21554 echo "$as_me:21554: \$? = $ac_status" >&5
21555 (exit "$ac_status"); }; }; then
21556 cf_cv_have_tcgetattr=yes
21558 echo "$as_me: failed program was:" >&5
21559 cat "conftest.$ac_ext" >&5
21560 cf_cv_have_tcgetattr=no
21562 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21564 echo "$as_me:21564: result: $cf_cv_have_tcgetattr" >&5
21565 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
21566 test "$cf_cv_have_tcgetattr" = yes &&
21567 cat >>confdefs.h <<\EOF
21568 #define HAVE_TCGETATTR 1
21571 echo "$as_me:21571: checking for vsscanf function or workaround" >&5
21572 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
21573 if test "${cf_cv_func_vsscanf+set}" = set; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 cat >"conftest.$ac_ext" <<_ACEOF
21578 #line 21578 "configure"
21579 #include "confdefs.h"
21581 #include <stdarg.h>
21588 vsscanf("from", "%d", ap)
21593 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21594 if { (eval echo "$as_me:21594: \"$ac_link\"") >&5
21595 (eval $ac_link) 2>&5
21597 echo "$as_me:21597: \$? = $ac_status" >&5
21598 (exit "$ac_status"); } &&
21599 { ac_try='test -s "conftest$ac_exeext"'
21600 { (eval echo "$as_me:21600: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21603 echo "$as_me:21603: \$? = $ac_status" >&5
21604 (exit "$ac_status"); }; }; then
21605 cf_cv_func_vsscanf=vsscanf
21607 echo "$as_me: failed program was:" >&5
21608 cat "conftest.$ac_ext" >&5
21610 cat >"conftest.$ac_ext" <<_ACEOF
21611 #line 21611 "configure"
21612 #include "confdefs.h"
21614 #include <stdarg.h>
21621 char *str = "from";
21623 strbuf._flag = _IOREAD;
21624 strbuf._ptr = strbuf._base = (unsigned char *) str;
21625 strbuf._cnt = strlen(str);
21626 strbuf._file = _NFILE;
21627 return (vfscanf(&strbuf, "%d", ap))
21632 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21633 if { (eval echo "$as_me:21633: \"$ac_link\"") >&5
21634 (eval $ac_link) 2>&5
21636 echo "$as_me:21636: \$? = $ac_status" >&5
21637 (exit "$ac_status"); } &&
21638 { ac_try='test -s "conftest$ac_exeext"'
21639 { (eval echo "$as_me:21639: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21642 echo "$as_me:21642: \$? = $ac_status" >&5
21643 (exit "$ac_status"); }; }; then
21644 cf_cv_func_vsscanf=vfscanf
21646 echo "$as_me: failed program was:" >&5
21647 cat "conftest.$ac_ext" >&5
21649 cat >"conftest.$ac_ext" <<_ACEOF
21650 #line 21650 "configure"
21651 #include "confdefs.h"
21653 #include <stdarg.h>
21660 char *str = "from";
21662 strbuf._flag = _IOREAD;
21663 strbuf._ptr = strbuf._base = (unsigned char *) str;
21664 strbuf._cnt = strlen(str);
21665 strbuf._file = _NFILE;
21666 return (_doscan(&strbuf, "%d", ap))
21671 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21672 if { (eval echo "$as_me:21672: \"$ac_link\"") >&5
21673 (eval $ac_link) 2>&5
21675 echo "$as_me:21675: \$? = $ac_status" >&5
21676 (exit "$ac_status"); } &&
21677 { ac_try='test -s "conftest$ac_exeext"'
21678 { (eval echo "$as_me:21678: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21681 echo "$as_me:21681: \$? = $ac_status" >&5
21682 (exit "$ac_status"); }; }; then
21683 cf_cv_func_vsscanf=_doscan
21685 echo "$as_me: failed program was:" >&5
21686 cat "conftest.$ac_ext" >&5
21688 cf_cv_func_vsscanf=no
21690 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21692 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21694 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21696 echo "$as_me:21696: result: $cf_cv_func_vsscanf" >&5
21697 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
21699 case "$cf_cv_func_vsscanf" in
21701 cat >>confdefs.h <<\EOF
21702 #define HAVE_VSSCANF 1
21706 cat >>confdefs.h <<\EOF
21707 #define HAVE_VFSCANF 1
21711 cat >>confdefs.h <<\EOF
21712 #define HAVE__DOSCAN 1
21721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21722 echo "$as_me:21722: checking for $ac_header" >&5
21723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 cat >"conftest.$ac_ext" <<_ACEOF
21728 #line 21728 "configure"
21729 #include "confdefs.h"
21730 #include <$ac_header>
21732 if { (eval echo "$as_me:21732: \"$ac_cpp "conftest.$ac_ext"\"") >&5
21733 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
21735 $EGREP -v '^ *\+' conftest.er1 >conftest.err
21737 cat conftest.err >&5
21738 echo "$as_me:21738: \$? = $ac_status" >&5
21739 (exit "$ac_status"); } >/dev/null; then
21740 if test -s conftest.err; then
21741 ac_cpp_err=$ac_c_preproc_warn_flag
21748 if test -z "$ac_cpp_err"; then
21749 eval "$as_ac_Header=yes"
21751 echo "$as_me: failed program was:" >&5
21752 cat "conftest.$ac_ext" >&5
21753 eval "$as_ac_Header=no"
21755 rm -f conftest.err "conftest.$ac_ext"
21757 echo "$as_me:21757: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
21758 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
21759 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
21760 cat >>confdefs.h <<EOF
21761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21767 echo "$as_me:21767: checking for working mkstemp" >&5
21768 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
21769 if test "${cf_cv_func_mkstemp+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 if test "$cross_compiling" = yes; then
21775 cf_cv_func_mkstemp=maybe
21777 cat >"conftest.$ac_ext" <<_ACEOF
21778 #line 21778 "configure"
21779 #include "confdefs.h"
21781 #include <sys/types.h>
21782 #ifdef HAVE_UNISTD_H
21783 #include <unistd.h>
21785 #include <stdlib.h>
21787 #include <string.h>
21788 #include <sys/stat.h>
21791 char *tmpl = "conftestXXXXXX";
21799 for (n = 0; n < 2; ++n) {
21800 strcpy(name[n], tmpl);
21801 if ((fd = mkstemp(name[n])) >= 0) {
21802 if (!strcmp(name[n], tmpl)
21803 || stat(name[n], &sb) != 0
21804 || (sb.st_mode & S_IFMT) != S_IFREG
21805 || (sb.st_mode & 077) != 0) {
21812 && !strcmp(name[0], name[1]))
21814 ${cf_cv_main_return:-return}(result);
21818 rm -f "conftest$ac_exeext"
21819 if { (eval echo "$as_me:21819: \"$ac_link\"") >&5
21820 (eval $ac_link) 2>&5
21822 echo "$as_me:21822: \$? = $ac_status" >&5
21823 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21824 { (eval echo "$as_me:21824: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21827 echo "$as_me:21827: \$? = $ac_status" >&5
21828 (exit "$ac_status"); }; }; then
21829 cf_cv_func_mkstemp=yes
21832 echo "$as_me: program exited with status $ac_status" >&5
21833 echo "$as_me: failed program was:" >&5
21834 cat "conftest.$ac_ext" >&5
21835 cf_cv_func_mkstemp=no
21838 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21842 echo "$as_me:21842: result: $cf_cv_func_mkstemp" >&5
21843 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
21844 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
21845 echo "$as_me:21845: checking for mkstemp" >&5
21846 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
21847 if test "${ac_cv_func_mkstemp+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 cat >"conftest.$ac_ext" <<_ACEOF
21851 #line 21851 "configure"
21852 #include "confdefs.h"
21853 #define mkstemp autoconf_temporary
21854 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21861 /* We use char because int might match the return type of a gcc2
21862 builtin and then its argument prototype would still apply. */
21863 char mkstemp (void);
21869 /* The GNU C library defines stubs for functions which it implements
21870 to always fail with ENOSYS. Some functions are actually named
21871 something starting with __ and the normal name is an alias. */
21872 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
21873 #error found stub for mkstemp
21881 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21882 if { (eval echo "$as_me:21882: \"$ac_link\"") >&5
21883 (eval $ac_link) 2>&5
21885 echo "$as_me:21885: \$? = $ac_status" >&5
21886 (exit "$ac_status"); } &&
21887 { ac_try='test -s "conftest$ac_exeext"'
21888 { (eval echo "$as_me:21888: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21891 echo "$as_me:21891: \$? = $ac_status" >&5
21892 (exit "$ac_status"); }; }; then
21893 ac_cv_func_mkstemp=yes
21895 echo "$as_me: failed program was:" >&5
21896 cat "conftest.$ac_ext" >&5
21897 ac_cv_func_mkstemp=no
21899 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21901 echo "$as_me:21901: result: $ac_cv_func_mkstemp" >&5
21902 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21905 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
21907 cat >>confdefs.h <<\EOF
21908 #define HAVE_MKSTEMP 1
21913 # setup for prototype of fallback for vsscanf()
21915 if test "$cf_cv_func_vsscanf" = vsscanf ; then
21921 if test "x$cross_compiling" = xyes ; then
21922 { echo "$as_me:21922: WARNING: cross compiling: assume setvbuf params not reversed" >&5
21923 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
21925 echo "$as_me:21925: checking whether setvbuf arguments are reversed" >&5
21926 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
21927 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 if test "$cross_compiling" = yes; then
21931 { { echo "$as_me:21931: error: cannot run test program while cross compiling" >&5
21932 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21933 { (exit 1); exit 1; }; }
21935 cat >"conftest.$ac_ext" <<_ACEOF
21936 #line 21936 "configure"
21937 #include "confdefs.h"
21939 /* If setvbuf has the reversed format, exit 0. */
21943 /* This call has the arguments reversed.
21944 A reversed system may check and see that the address of main
21945 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
21946 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
21947 $ac_main_return(1);
21948 putc('\r', stdout);
21949 $ac_main_return(0); /* Non-reversed systems segv here. */
21952 rm -f "conftest$ac_exeext"
21953 if { (eval echo "$as_me:21953: \"$ac_link\"") >&5
21954 (eval $ac_link) 2>&5
21956 echo "$as_me:21956: \$? = $ac_status" >&5
21957 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21958 { (eval echo "$as_me:21958: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21961 echo "$as_me:21961: \$? = $ac_status" >&5
21962 (exit "$ac_status"); }; }; then
21963 ac_cv_func_setvbuf_reversed=yes
21965 echo "$as_me: program exited with status $ac_status" >&5
21966 echo "$as_me: failed program was:" >&5
21967 cat "conftest.$ac_ext" >&5
21968 ac_cv_func_setvbuf_reversed=no
21970 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21972 rm -f core ./core.* ./*.core
21974 echo "$as_me:21974: result: $ac_cv_func_setvbuf_reversed" >&5
21975 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
21976 if test $ac_cv_func_setvbuf_reversed = yes; then
21978 cat >>confdefs.h <<\EOF
21979 #define SETVBUF_REVERSED 1
21985 echo "$as_me:21985: checking for intptr_t" >&5
21986 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
21987 if test "${ac_cv_type_intptr_t+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 cat >"conftest.$ac_ext" <<_ACEOF
21991 #line 21991 "configure"
21992 #include "confdefs.h"
21993 $ac_includes_default
21997 if ((intptr_t *) 0)
21999 if (sizeof (intptr_t))
22005 rm -f "conftest.$ac_objext"
22006 if { (eval echo "$as_me:22006: \"$ac_compile\"") >&5
22007 (eval $ac_compile) 2>&5
22009 echo "$as_me:22009: \$? = $ac_status" >&5
22010 (exit "$ac_status"); } &&
22011 { ac_try='test -s "conftest.$ac_objext"'
22012 { (eval echo "$as_me:22012: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22015 echo "$as_me:22015: \$? = $ac_status" >&5
22016 (exit "$ac_status"); }; }; then
22017 ac_cv_type_intptr_t=yes
22019 echo "$as_me: failed program was:" >&5
22020 cat "conftest.$ac_ext" >&5
22021 ac_cv_type_intptr_t=no
22023 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22025 echo "$as_me:22025: result: $ac_cv_type_intptr_t" >&5
22026 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22027 if test "$ac_cv_type_intptr_t" = yes; then
22031 cat >>confdefs.h <<EOF
22032 #define intptr_t long
22037 echo "$as_me:22037: checking for ssize_t" >&5
22038 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22039 if test "${ac_cv_type_ssize_t+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 cat >"conftest.$ac_ext" <<_ACEOF
22043 #line 22043 "configure"
22044 #include "confdefs.h"
22045 $ac_includes_default
22051 if (sizeof (ssize_t))
22057 rm -f "conftest.$ac_objext"
22058 if { (eval echo "$as_me:22058: \"$ac_compile\"") >&5
22059 (eval $ac_compile) 2>&5
22061 echo "$as_me:22061: \$? = $ac_status" >&5
22062 (exit "$ac_status"); } &&
22063 { ac_try='test -s "conftest.$ac_objext"'
22064 { (eval echo "$as_me:22064: \"$ac_try\"") >&5
22065 (eval $ac_try) 2>&5
22067 echo "$as_me:22067: \$? = $ac_status" >&5
22068 (exit "$ac_status"); }; }; then
22069 ac_cv_type_ssize_t=yes
22071 echo "$as_me: failed program was:" >&5
22072 cat "conftest.$ac_ext" >&5
22073 ac_cv_type_ssize_t=no
22075 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22077 echo "$as_me:22077: result: $ac_cv_type_ssize_t" >&5
22078 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22079 if test "$ac_cv_type_ssize_t" = yes; then
22083 cat >>confdefs.h <<EOF
22084 #define ssize_t int
22089 echo "$as_me:22089: checking for type sigaction_t" >&5
22090 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22091 if test "${cf_cv_type_sigaction+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22095 cat >"conftest.$ac_ext" <<_ACEOF
22096 #line 22096 "configure"
22097 #include "confdefs.h"
22099 #include <signal.h>
22108 rm -f "conftest.$ac_objext"
22109 if { (eval echo "$as_me:22109: \"$ac_compile\"") >&5
22110 (eval $ac_compile) 2>&5
22112 echo "$as_me:22112: \$? = $ac_status" >&5
22113 (exit "$ac_status"); } &&
22114 { ac_try='test -s "conftest.$ac_objext"'
22115 { (eval echo "$as_me:22115: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22118 echo "$as_me:22118: \$? = $ac_status" >&5
22119 (exit "$ac_status"); }; }; then
22120 cf_cv_type_sigaction=yes
22122 echo "$as_me: failed program was:" >&5
22123 cat "conftest.$ac_ext" >&5
22124 cf_cv_type_sigaction=no
22126 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22129 echo "$as_me:22129: result: $cf_cv_type_sigaction" >&5
22130 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22131 test "$cf_cv_type_sigaction" = yes &&
22132 cat >>confdefs.h <<\EOF
22133 #define HAVE_TYPE_SIGACTION 1
22136 echo "$as_me:22136: checking declaration of size-change" >&5
22137 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
22138 if test "${cf_cv_sizechange+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22142 cf_cv_sizechange=unknown
22143 cf_save_CPPFLAGS="$CPPFLAGS"
22145 for cf_opts in "" "NEED_PTEM_H"
22148 CPPFLAGS="$cf_save_CPPFLAGS"
22149 if test -n "$cf_opts"
22152 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22153 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
22156 cat >"conftest.$ac_ext" <<_ACEOF
22157 #line 22157 "configure"
22158 #include "confdefs.h"
22159 #include <sys/types.h>
22160 #ifdef HAVE_TERMIOS_H
22161 #include <termios.h>
22163 #ifdef HAVE_TERMIO_H
22164 #include <termio.h>
22169 /* This is a workaround for SCO: they neglected to define struct winsize in
22170 * termios.h -- it's only in termio.h and ptem.h
22172 #include <sys/stream.h>
22173 #include <sys/ptem.h>
22176 #ifdef HAVE_SYS_IOCTL_H
22177 #include <sys/ioctl.h>
22185 struct ttysize win; /* SunOS 3.0... */
22186 int y = win.ts_lines = 2;
22187 int x = win.ts_cols = 1;
22192 struct winsize win; /* everything else */
22193 int y = win.ws_row = 2;
22194 int x = win.ws_col = 1;
22198 no TIOCGSIZE or TIOCGWINSZ
22199 #endif /* TIOCGWINSZ */
22200 #endif /* TIOCGSIZE */
22206 rm -f "conftest.$ac_objext"
22207 if { (eval echo "$as_me:22207: \"$ac_compile\"") >&5
22208 (eval $ac_compile) 2>&5
22210 echo "$as_me:22210: \$? = $ac_status" >&5
22211 (exit "$ac_status"); } &&
22212 { ac_try='test -s "conftest.$ac_objext"'
22213 { (eval echo "$as_me:22213: \"$ac_try\"") >&5
22214 (eval $ac_try) 2>&5
22216 echo "$as_me:22216: \$? = $ac_status" >&5
22217 (exit "$ac_status"); }; }; then
22218 cf_cv_sizechange=yes
22220 echo "$as_me: failed program was:" >&5
22221 cat "conftest.$ac_ext" >&5
22222 cf_cv_sizechange=no
22224 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22226 CPPFLAGS="$cf_save_CPPFLAGS"
22227 if test "$cf_cv_sizechange" = yes ; then
22228 echo "size-change succeeded ($cf_opts)" >&5
22229 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
22235 echo "$as_me:22235: result: $cf_cv_sizechange" >&5
22236 echo "${ECHO_T}$cf_cv_sizechange" >&6
22237 if test "$cf_cv_sizechange" != no ; then
22239 cat >>confdefs.h <<\EOF
22240 #define HAVE_SIZECHANGE 1
22243 case "$cf_cv_sizechange" in
22245 cat >>confdefs.h <<EOF
22246 #define $cf_cv_sizechange 1
22253 echo "$as_me:22253: checking for memmove" >&5
22254 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
22255 if test "${ac_cv_func_memmove+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 cat >"conftest.$ac_ext" <<_ACEOF
22259 #line 22259 "configure"
22260 #include "confdefs.h"
22261 #define memmove autoconf_temporary
22262 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22269 /* We use char because int might match the return type of a gcc2
22270 builtin and then its argument prototype would still apply. */
22271 char memmove (void);
22277 /* The GNU C library defines stubs for functions which it implements
22278 to always fail with ENOSYS. Some functions are actually named
22279 something starting with __ and the normal name is an alias. */
22280 #if defined (__stub_memmove) || defined (__stub___memmove)
22281 #error found stub for memmove
22289 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22290 if { (eval echo "$as_me:22290: \"$ac_link\"") >&5
22291 (eval $ac_link) 2>&5
22293 echo "$as_me:22293: \$? = $ac_status" >&5
22294 (exit "$ac_status"); } &&
22295 { ac_try='test -s "conftest$ac_exeext"'
22296 { (eval echo "$as_me:22296: \"$ac_try\"") >&5
22297 (eval $ac_try) 2>&5
22299 echo "$as_me:22299: \$? = $ac_status" >&5
22300 (exit "$ac_status"); }; }; then
22301 ac_cv_func_memmove=yes
22303 echo "$as_me: failed program was:" >&5
22304 cat "conftest.$ac_ext" >&5
22305 ac_cv_func_memmove=no
22307 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22309 echo "$as_me:22309: result: $ac_cv_func_memmove" >&5
22310 echo "${ECHO_T}$ac_cv_func_memmove" >&6
22311 if test "$ac_cv_func_memmove" = yes; then
22315 echo "$as_me:22315: checking for bcopy" >&5
22316 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
22317 if test "${ac_cv_func_bcopy+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 cat >"conftest.$ac_ext" <<_ACEOF
22321 #line 22321 "configure"
22322 #include "confdefs.h"
22323 #define bcopy autoconf_temporary
22324 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22331 /* We use char because int might match the return type of a gcc2
22332 builtin and then its argument prototype would still apply. */
22339 /* The GNU C library defines stubs for functions which it implements
22340 to always fail with ENOSYS. Some functions are actually named
22341 something starting with __ and the normal name is an alias. */
22342 #if defined (__stub_bcopy) || defined (__stub___bcopy)
22343 #error found stub for bcopy
22351 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22352 if { (eval echo "$as_me:22352: \"$ac_link\"") >&5
22353 (eval $ac_link) 2>&5
22355 echo "$as_me:22355: \$? = $ac_status" >&5
22356 (exit "$ac_status"); } &&
22357 { ac_try='test -s "conftest$ac_exeext"'
22358 { (eval echo "$as_me:22358: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22361 echo "$as_me:22361: \$? = $ac_status" >&5
22362 (exit "$ac_status"); }; }; then
22363 ac_cv_func_bcopy=yes
22365 echo "$as_me: failed program was:" >&5
22366 cat "conftest.$ac_ext" >&5
22367 ac_cv_func_bcopy=no
22369 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22371 echo "$as_me:22371: result: $ac_cv_func_bcopy" >&5
22372 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
22373 if test "$ac_cv_func_bcopy" = yes; then
22375 echo "$as_me:22375: checking if bcopy does overlapping moves" >&5
22376 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
22377 if test "${cf_cv_good_bcopy+set}" = set; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 if test "$cross_compiling" = yes; then
22382 cf_cv_good_bcopy=unknown
22384 cat >"conftest.$ac_ext" <<_ACEOF
22385 #line 22385 "configure"
22386 #include "confdefs.h"
22389 static char data[] = "abcdefghijklmnopqrstuwwxyz";
22391 bcopy(data, temp, sizeof(data));
22392 bcopy(temp+10, temp, 15);
22393 bcopy(temp+5, temp+15, 10);
22394 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
22398 rm -f "conftest$ac_exeext"
22399 if { (eval echo "$as_me:22399: \"$ac_link\"") >&5
22400 (eval $ac_link) 2>&5
22402 echo "$as_me:22402: \$? = $ac_status" >&5
22403 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22404 { (eval echo "$as_me:22404: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22407 echo "$as_me:22407: \$? = $ac_status" >&5
22408 (exit "$ac_status"); }; }; then
22409 cf_cv_good_bcopy=yes
22411 echo "$as_me: program exited with status $ac_status" >&5
22412 echo "$as_me: failed program was:" >&5
22413 cat "conftest.$ac_ext" >&5
22414 cf_cv_good_bcopy=no
22416 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22420 echo "$as_me:22420: result: $cf_cv_good_bcopy" >&5
22421 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
22424 cf_cv_good_bcopy=no
22427 if test "$cf_cv_good_bcopy" = yes ; then
22429 cat >>confdefs.h <<\EOF
22430 #define USE_OK_BCOPY 1
22435 cat >>confdefs.h <<\EOF
22436 #define USE_MY_MEMMOVE 1
22443 tty >/dev/null 2>&1 || {
22444 for ac_func in posix_openpt
22446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22447 echo "$as_me:22447: checking for $ac_func" >&5
22448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22449 if eval "test \"\${$as_ac_var+set}\" = set"; then
22450 echo $ECHO_N "(cached) $ECHO_C" >&6
22452 cat >"conftest.$ac_ext" <<_ACEOF
22453 #line 22453 "configure"
22454 #include "confdefs.h"
22455 #define $ac_func autoconf_temporary
22456 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22463 /* We use char because int might match the return type of a gcc2
22464 builtin and then its argument prototype would still apply. */
22465 char $ac_func (void);
22471 /* The GNU C library defines stubs for functions which it implements
22472 to always fail with ENOSYS. Some functions are actually named
22473 something starting with __ and the normal name is an alias. */
22474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22475 #error found stub for $ac_func
22478 return $ac_func ();
22483 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22484 if { (eval echo "$as_me:22484: \"$ac_link\"") >&5
22485 (eval $ac_link) 2>&5
22487 echo "$as_me:22487: \$? = $ac_status" >&5
22488 (exit "$ac_status"); } &&
22489 { ac_try='test -s "conftest$ac_exeext"'
22490 { (eval echo "$as_me:22490: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22493 echo "$as_me:22493: \$? = $ac_status" >&5
22494 (exit "$ac_status"); }; }; then
22495 eval "$as_ac_var=yes"
22497 echo "$as_me: failed program was:" >&5
22498 cat "conftest.$ac_ext" >&5
22499 eval "$as_ac_var=no"
22501 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22503 echo "$as_me:22503: result: `eval echo '${'"$as_ac_var"'}'`" >&5
22504 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
22505 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
22506 cat >>confdefs.h <<EOF
22507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22513 echo "$as_me:22513: checking if poll really works" >&5
22514 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
22515 if test "${cf_cv_working_poll+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 if test "$cross_compiling" = yes; then
22520 cf_cv_working_poll=unknown
22522 cat >"conftest.$ac_ext" <<_ACEOF
22523 #line 22523 "configure"
22524 #include "confdefs.h"
22526 #include <stdlib.h>
22528 #include <unistd.h>
22533 #include <sys/poll.h>
22536 struct pollfd myfds;
22539 /* check for Darwin bug with respect to "devices" */
22540 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
22543 myfds.events = POLLIN;
22546 ret = poll(&myfds, 1, 100);
22548 if (ret < 0 || (myfds.revents & POLLNVAL)) {
22553 fd = open("/dev/tty", 2); /* O_RDWR */
22555 #ifdef HAVE_POSIX_OPENPT
22557 fd = posix_openpt(O_RDWR);
22562 /* also check with standard input */
22564 myfds.events = POLLIN;
22566 ret = poll(&myfds, 1, 100);
22571 ${cf_cv_main_return:-return}(ret < 0);
22574 rm -f "conftest$ac_exeext"
22575 if { (eval echo "$as_me:22575: \"$ac_link\"") >&5
22576 (eval $ac_link) 2>&5
22578 echo "$as_me:22578: \$? = $ac_status" >&5
22579 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22580 { (eval echo "$as_me:22580: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22583 echo "$as_me:22583: \$? = $ac_status" >&5
22584 (exit "$ac_status"); }; }; then
22585 cf_cv_working_poll=yes
22587 echo "$as_me: program exited with status $ac_status" >&5
22588 echo "$as_me: failed program was:" >&5
22589 cat "conftest.$ac_ext" >&5
22590 cf_cv_working_poll=no
22592 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22595 echo "$as_me:22595: result: $cf_cv_working_poll" >&5
22596 echo "${ECHO_T}$cf_cv_working_poll" >&6
22597 test "$cf_cv_working_poll" = "yes" &&
22598 cat >>confdefs.h <<\EOF
22599 #define HAVE_WORKING_POLL 1
22602 echo "$as_me:22602: checking for va_copy" >&5
22603 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22604 if test "${cf_cv_have_va_copy+set}" = set; then
22605 echo $ECHO_N "(cached) $ECHO_C" >&6
22608 cat >"conftest.$ac_ext" <<_ACEOF
22609 #line 22609 "configure"
22610 #include "confdefs.h"
22612 #include <stdarg.h>
22618 static va_list dst;
22619 static va_list src;
22625 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22626 if { (eval echo "$as_me:22626: \"$ac_link\"") >&5
22627 (eval $ac_link) 2>&5
22629 echo "$as_me:22629: \$? = $ac_status" >&5
22630 (exit "$ac_status"); } &&
22631 { ac_try='test -s "conftest$ac_exeext"'
22632 { (eval echo "$as_me:22632: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 echo "$as_me:22635: \$? = $ac_status" >&5
22636 (exit "$ac_status"); }; }; then
22637 cf_cv_have_va_copy=yes
22639 echo "$as_me: failed program was:" >&5
22640 cat "conftest.$ac_ext" >&5
22641 cf_cv_have_va_copy=no
22643 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22645 echo "$as_me:22645: result: $cf_cv_have_va_copy" >&5
22646 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
22648 if test "$cf_cv_have_va_copy" = yes;
22651 cat >>confdefs.h <<\EOF
22652 #define HAVE_VA_COPY 1
22655 else # !cf_cv_have_va_copy
22657 echo "$as_me:22657: checking for __va_copy" >&5
22658 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
22659 if test "${cf_cv_have___va_copy+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 cat >"conftest.$ac_ext" <<_ACEOF
22664 #line 22664 "configure"
22665 #include "confdefs.h"
22667 #include <stdarg.h>
22673 static va_list dst;
22674 static va_list src;
22675 __va_copy(dst, src)
22680 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22681 if { (eval echo "$as_me:22681: \"$ac_link\"") >&5
22682 (eval $ac_link) 2>&5
22684 echo "$as_me:22684: \$? = $ac_status" >&5
22685 (exit "$ac_status"); } &&
22686 { ac_try='test -s "conftest$ac_exeext"'
22687 { (eval echo "$as_me:22687: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 echo "$as_me:22690: \$? = $ac_status" >&5
22691 (exit "$ac_status"); }; }; then
22692 cf_cv_have___va_copy=yes
22694 echo "$as_me: failed program was:" >&5
22695 cat "conftest.$ac_ext" >&5
22696 cf_cv_have___va_copy=no
22698 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22700 echo "$as_me:22700: result: $cf_cv_have___va_copy" >&5
22701 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
22703 if test "$cf_cv_have___va_copy" = yes
22706 cat >>confdefs.h <<\EOF
22707 #define HAVE___VA_COPY 1
22710 else # !cf_cv_have___va_copy
22712 echo "$as_me:22712: checking for __builtin_va_copy" >&5
22713 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
22714 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 cat >"conftest.$ac_ext" <<_ACEOF
22719 #line 22719 "configure"
22720 #include "confdefs.h"
22722 #include <stdarg.h>
22728 static va_list dst;
22729 static va_list src;
22730 __builtin_va_copy(dst, src)
22735 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22736 if { (eval echo "$as_me:22736: \"$ac_link\"") >&5
22737 (eval $ac_link) 2>&5
22739 echo "$as_me:22739: \$? = $ac_status" >&5
22740 (exit "$ac_status"); } &&
22741 { ac_try='test -s "conftest$ac_exeext"'
22742 { (eval echo "$as_me:22742: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22745 echo "$as_me:22745: \$? = $ac_status" >&5
22746 (exit "$ac_status"); }; }; then
22747 cf_cv_have___builtin_va_copy=yes
22749 echo "$as_me: failed program was:" >&5
22750 cat "conftest.$ac_ext" >&5
22751 cf_cv_have___builtin_va_copy=no
22753 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22755 echo "$as_me:22755: result: $cf_cv_have___builtin_va_copy" >&5
22756 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
22758 test "$cf_cv_have___builtin_va_copy" = yes &&
22760 cat >>confdefs.h <<\EOF
22761 #define HAVE___BUILTIN_VA_COPY 1
22764 fi # cf_cv_have___va_copy
22766 fi # cf_cv_have_va_copy
22768 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
22773 echo "$as_me:22773: checking if we can simply copy va_list" >&5
22774 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
22775 if test "${cf_cv_pointer_va_list+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 cat >"conftest.$ac_ext" <<_ACEOF
22780 #line 22780 "configure"
22781 #include "confdefs.h"
22783 #include <stdarg.h>
22796 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22797 if { (eval echo "$as_me:22797: \"$ac_link\"") >&5
22798 (eval $ac_link) 2>&5
22800 echo "$as_me:22800: \$? = $ac_status" >&5
22801 (exit "$ac_status"); } &&
22802 { ac_try='test -s "conftest$ac_exeext"'
22803 { (eval echo "$as_me:22803: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:22806: \$? = $ac_status" >&5
22807 (exit "$ac_status"); }; }; then
22808 cf_cv_pointer_va_list=yes
22810 echo "$as_me: failed program was:" >&5
22811 cat "conftest.$ac_ext" >&5
22812 cf_cv_pointer_va_list=no
22814 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22816 echo "$as_me:22816: result: $cf_cv_pointer_va_list" >&5
22817 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
22819 if test "$cf_cv_pointer_va_list" = no
22821 echo "$as_me:22821: checking if we can copy va_list indirectly" >&5
22822 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
22823 if test "${cf_cv_array_va_list+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22827 cat >"conftest.$ac_ext" <<_ACEOF
22828 #line 22828 "configure"
22829 #include "confdefs.h"
22831 #include <stdarg.h>
22844 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22845 if { (eval echo "$as_me:22845: \"$ac_link\"") >&5
22846 (eval $ac_link) 2>&5
22848 echo "$as_me:22848: \$? = $ac_status" >&5
22849 (exit "$ac_status"); } &&
22850 { ac_try='test -s "conftest$ac_exeext"'
22851 { (eval echo "$as_me:22851: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22854 echo "$as_me:22854: \$? = $ac_status" >&5
22855 (exit "$ac_status"); }; }; then
22856 cf_cv_array_va_list=yes
22858 echo "$as_me: failed program was:" >&5
22859 cat "conftest.$ac_ext" >&5
22860 cf_cv_array_va_list=no
22862 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22864 echo "$as_me:22864: result: $cf_cv_array_va_list" >&5
22865 echo "${ECHO_T}$cf_cv_array_va_list" >&6
22866 test "$cf_cv_array_va_list" = yes &&
22867 cat >>confdefs.h <<\EOF
22868 #define ARRAY_VA_LIST 1
22875 echo "$as_me:22875: checking for pid_t" >&5
22876 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22877 if test "${ac_cv_type_pid_t+set}" = set; then
22878 echo $ECHO_N "(cached) $ECHO_C" >&6
22880 cat >"conftest.$ac_ext" <<_ACEOF
22881 #line 22881 "configure"
22882 #include "confdefs.h"
22883 $ac_includes_default
22889 if (sizeof (pid_t))
22895 rm -f "conftest.$ac_objext"
22896 if { (eval echo "$as_me:22896: \"$ac_compile\"") >&5
22897 (eval $ac_compile) 2>&5
22899 echo "$as_me:22899: \$? = $ac_status" >&5
22900 (exit "$ac_status"); } &&
22901 { ac_try='test -s "conftest.$ac_objext"'
22902 { (eval echo "$as_me:22902: \"$ac_try\"") >&5
22903 (eval $ac_try) 2>&5
22905 echo "$as_me:22905: \$? = $ac_status" >&5
22906 (exit "$ac_status"); }; }; then
22907 ac_cv_type_pid_t=yes
22909 echo "$as_me: failed program was:" >&5
22910 cat "conftest.$ac_ext" >&5
22911 ac_cv_type_pid_t=no
22913 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22915 echo "$as_me:22915: result: $ac_cv_type_pid_t" >&5
22916 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22917 if test "$ac_cv_type_pid_t" = yes; then
22921 cat >>confdefs.h <<EOF
22927 for ac_header in unistd.h vfork.h
22929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22930 echo "$as_me:22930: checking for $ac_header" >&5
22931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22933 echo $ECHO_N "(cached) $ECHO_C" >&6
22935 cat >"conftest.$ac_ext" <<_ACEOF
22936 #line 22936 "configure"
22937 #include "confdefs.h"
22938 #include <$ac_header>
22940 if { (eval echo "$as_me:22940: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22941 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22943 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22945 cat conftest.err >&5
22946 echo "$as_me:22946: \$? = $ac_status" >&5
22947 (exit "$ac_status"); } >/dev/null; then
22948 if test -s conftest.err; then
22949 ac_cpp_err=$ac_c_preproc_warn_flag
22956 if test -z "$ac_cpp_err"; then
22957 eval "$as_ac_Header=yes"
22959 echo "$as_me: failed program was:" >&5
22960 cat "conftest.$ac_ext" >&5
22961 eval "$as_ac_Header=no"
22963 rm -f conftest.err "conftest.$ac_ext"
22965 echo "$as_me:22965: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22966 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22967 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22968 cat >>confdefs.h <<EOF
22969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22975 for ac_func in fork vfork
22977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22978 echo "$as_me:22978: checking for $ac_func" >&5
22979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22980 if eval "test \"\${$as_ac_var+set}\" = set"; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22983 cat >"conftest.$ac_ext" <<_ACEOF
22984 #line 22984 "configure"
22985 #include "confdefs.h"
22986 #define $ac_func autoconf_temporary
22987 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22994 /* We use char because int might match the return type of a gcc2
22995 builtin and then its argument prototype would still apply. */
22996 char $ac_func (void);
23002 /* The GNU C library defines stubs for functions which it implements
23003 to always fail with ENOSYS. Some functions are actually named
23004 something starting with __ and the normal name is an alias. */
23005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23006 #error found stub for $ac_func
23009 return $ac_func ();
23014 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23015 if { (eval echo "$as_me:23015: \"$ac_link\"") >&5
23016 (eval $ac_link) 2>&5
23018 echo "$as_me:23018: \$? = $ac_status" >&5
23019 (exit "$ac_status"); } &&
23020 { ac_try='test -s "conftest$ac_exeext"'
23021 { (eval echo "$as_me:23021: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23024 echo "$as_me:23024: \$? = $ac_status" >&5
23025 (exit "$ac_status"); }; }; then
23026 eval "$as_ac_var=yes"
23028 echo "$as_me: failed program was:" >&5
23029 cat "conftest.$ac_ext" >&5
23030 eval "$as_ac_var=no"
23032 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23034 echo "$as_me:23034: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23035 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23036 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23037 cat >>confdefs.h <<EOF
23038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23044 ac_cv_func_fork_works=$ac_cv_func_fork
23045 if test "x$ac_cv_func_fork" = xyes; then
23046 echo "$as_me:23046: checking for working fork" >&5
23047 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23048 if test "${ac_cv_func_fork_works+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23051 if test "$cross_compiling" = yes; then
23052 ac_cv_func_fork_works=cross
23054 cat >"conftest.$ac_ext" <<_ACEOF
23055 /* By Rüdiger Kuhlmann. */
23056 #include <sys/types.h>
23058 # include <unistd.h>
23060 /* Some systems only have a dummy stub for fork() */
23064 $ac_main_return (1);
23065 $ac_main_return (0);
23068 rm -f "conftest$ac_exeext"
23069 if { (eval echo "$as_me:23069: \"$ac_link\"") >&5
23070 (eval $ac_link) 2>&5
23072 echo "$as_me:23072: \$? = $ac_status" >&5
23073 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23074 { (eval echo "$as_me:23074: \"$ac_try\"") >&5
23075 (eval $ac_try) 2>&5
23077 echo "$as_me:23077: \$? = $ac_status" >&5
23078 (exit "$ac_status"); }; }; then
23079 ac_cv_func_fork_works=yes
23081 echo "$as_me: program exited with status $ac_status" >&5
23082 echo "$as_me: failed program was:" >&5
23083 cat "conftest.$ac_ext" >&5
23084 ac_cv_func_fork_works=no
23086 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23089 echo "$as_me:23089: result: $ac_cv_func_fork_works" >&5
23090 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23093 if test "x$ac_cv_func_fork_works" = xcross; then
23095 *-*-amigaos* | *-*-msdosdjgpp*)
23096 # Override, as these systems have only a dummy fork() stub
23097 ac_cv_func_fork_works=no
23100 ac_cv_func_fork_works=yes
23103 { echo "$as_me:23103: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23104 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23106 ac_cv_func_vfork_works=$ac_cv_func_vfork
23107 if test "x$ac_cv_func_vfork" = xyes; then
23108 echo "$as_me:23108: checking for working vfork" >&5
23109 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23110 if test "${ac_cv_func_vfork_works+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 if test "$cross_compiling" = yes; then
23114 ac_cv_func_vfork_works=cross
23116 cat >"conftest.$ac_ext" <<_ACEOF
23117 #line 23117 "configure"
23118 #include "confdefs.h"
23119 /* Thanks to Paul Eggert for this test. */
23121 #include <sys/types.h>
23122 #include <sys/stat.h>
23124 # include <unistd.h>
23127 # include <vfork.h>
23129 /* On some sparc systems, changes by the child to local and incoming
23130 argument registers are propagated back to the parent. The compiler
23131 is told about this with #include <vfork.h>, but some compilers
23132 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23133 static variable whose address is put into a register that is
23134 clobbered by the vfork. */
23137 sparc_address_test (int arg)
23139 sparc_address_test (arg) int arg;
23142 static pid_t child;
23160 pid_t parent = getpid ();
23163 sparc_address_test ();
23168 /* Here is another test for sparc vfork register problems. This
23169 test uses lots of local variables, at least as many local
23170 variables as main has allocated so far including compiler
23171 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23172 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23173 reuse the register of parent for one of the local variables,
23174 since it will think that parent can't possibly be used any more
23175 in this routine. Assigning to the local variable will thus
23176 munge parent in the parent process. */
23178 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23179 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23180 /* Convince the compiler that p..p7 are live; otherwise, it might
23181 use the same hardware register for all 8 local variables. */
23182 if (p != p1 || p != p2 || p != p3 || p != p4
23183 || p != p5 || p != p6 || p != p7)
23186 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23187 from child file descriptors. If the child closes a descriptor
23188 before it execs or exits, this munges the parent's descriptor
23189 as well. Test for this by closing stdout in the child. */
23190 _exit(close(fileno(stdout)) != 0);
23195 while (wait(&status) != child)
23198 /* Was there some problem with vforking? */
23201 /* Did the child fail? (This shouldn't happen.) */
23204 /* Did the vfork/compiler bug occur? */
23205 || parent != getpid()
23207 /* Did the file descriptor bug occur? */
23208 || fstat(fileno(stdout), &st) != 0
23213 rm -f "conftest$ac_exeext"
23214 if { (eval echo "$as_me:23214: \"$ac_link\"") >&5
23215 (eval $ac_link) 2>&5
23217 echo "$as_me:23217: \$? = $ac_status" >&5
23218 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23219 { (eval echo "$as_me:23219: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23222 echo "$as_me:23222: \$? = $ac_status" >&5
23223 (exit "$ac_status"); }; }; then
23224 ac_cv_func_vfork_works=yes
23226 echo "$as_me: program exited with status $ac_status" >&5
23227 echo "$as_me: failed program was:" >&5
23228 cat "conftest.$ac_ext" >&5
23229 ac_cv_func_vfork_works=no
23231 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23234 echo "$as_me:23234: result: $ac_cv_func_vfork_works" >&5
23235 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23238 if test "x$ac_cv_func_fork_works" = xcross; then
23239 ac_cv_func_vfork_works=ac_cv_func_vfork
23240 { echo "$as_me:23240: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
23241 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
23244 if test "x$ac_cv_func_vfork_works" = xyes; then
23246 cat >>confdefs.h <<\EOF
23247 #define HAVE_WORKING_VFORK 1
23252 cat >>confdefs.h <<\EOF
23257 if test "x$ac_cv_func_fork_works" = xyes; then
23259 cat >>confdefs.h <<\EOF
23260 #define HAVE_WORKING_FORK 1
23265 echo "$as_me:23265: checking if fopen accepts explicit binary mode" >&5
23266 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
23267 if test "${cf_cv_fopen_bin_r+set}" = set; then
23268 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 if test "$cross_compiling" = yes; then
23272 cf_cv_fopen_bin_r=unknown
23274 cat >"conftest.$ac_ext" <<_ACEOF
23275 #line 23275 "configure"
23276 #include "confdefs.h"
23280 FILE *fp = fopen("conftest.tmp", "wb");
23284 for (p = 0; p < 256; ++p) {
23288 fp = fopen("conftest.tmp", "rb");
23290 for (p = 0; p < 256; ++p) {
23303 ${cf_cv_main_return:-return} (rc);
23307 rm -f "conftest$ac_exeext"
23308 if { (eval echo "$as_me:23308: \"$ac_link\"") >&5
23309 (eval $ac_link) 2>&5
23311 echo "$as_me:23311: \$? = $ac_status" >&5
23312 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23313 { (eval echo "$as_me:23313: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23316 echo "$as_me:23316: \$? = $ac_status" >&5
23317 (exit "$ac_status"); }; }; then
23318 cf_cv_fopen_bin_r=yes
23320 echo "$as_me: program exited with status $ac_status" >&5
23321 echo "$as_me: failed program was:" >&5
23322 cat "conftest.$ac_ext" >&5
23323 cf_cv_fopen_bin_r=no
23325 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23329 echo "$as_me:23329: result: $cf_cv_fopen_bin_r" >&5
23330 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
23331 test "x$cf_cv_fopen_bin_r" != xno &&
23332 cat >>confdefs.h <<\EOF
23333 #define USE_FOPEN_BIN_R 1
23336 # special check for test/ditto.c
23338 echo "$as_me:23338: checking for openpty in -lutil" >&5
23339 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
23340 if test "${ac_cv_lib_util_openpty+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23343 ac_check_lib_save_LIBS=$LIBS
23344 LIBS="-lutil $LIBS"
23345 cat >"conftest.$ac_ext" <<_ACEOF
23346 #line 23346 "configure"
23347 #include "confdefs.h"
23349 /* Override any gcc2 internal prototype to avoid an error. */
23353 /* We use char because int might match the return type of a gcc2
23354 builtin and then its argument prototype would still apply. */
23364 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23365 if { (eval echo "$as_me:23365: \"$ac_link\"") >&5
23366 (eval $ac_link) 2>&5
23368 echo "$as_me:23368: \$? = $ac_status" >&5
23369 (exit "$ac_status"); } &&
23370 { ac_try='test -s "conftest$ac_exeext"'
23371 { (eval echo "$as_me:23371: \"$ac_try\"") >&5
23372 (eval $ac_try) 2>&5
23374 echo "$as_me:23374: \$? = $ac_status" >&5
23375 (exit "$ac_status"); }; }; then
23376 ac_cv_lib_util_openpty=yes
23378 echo "$as_me: failed program was:" >&5
23379 cat "conftest.$ac_ext" >&5
23380 ac_cv_lib_util_openpty=no
23382 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23383 LIBS=$ac_check_lib_save_LIBS
23385 echo "$as_me:23385: result: $ac_cv_lib_util_openpty" >&5
23386 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
23387 if test "$ac_cv_lib_util_openpty" = yes; then
23393 echo "$as_me:23393: checking for openpty header" >&5
23394 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
23395 if test "${cf_cv_func_openpty+set}" = set; then
23396 echo $ECHO_N "(cached) $ECHO_C" >&6
23399 cf_save_LIBS="$LIBS"
23400 test "$cf_cv_lib_util" = yes && {
23401 cf_add_libs="$LIBS"
23404 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23405 # filter duplicates
23406 for cf_add_1lib in $cf_add_0lib; do
23407 for cf_add_2lib in $cf_add_libs; do
23408 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23413 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23415 LIBS="$cf_add_libs"
23417 for cf_header in pty.h libutil.h util.h
23419 cat >"conftest.$ac_ext" <<_ACEOF
23420 #line 23420 "configure"
23421 #include "confdefs.h"
23423 #include <$cf_header>
23429 int x = openpty((int *)0, (int *)0, (char *)0,
23430 (struct termios *)0, (struct winsize *)0);
23436 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23437 if { (eval echo "$as_me:23437: \"$ac_link\"") >&5
23438 (eval $ac_link) 2>&5
23440 echo "$as_me:23440: \$? = $ac_status" >&5
23441 (exit "$ac_status"); } &&
23442 { ac_try='test -s "conftest$ac_exeext"'
23443 { (eval echo "$as_me:23443: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23446 echo "$as_me:23446: \$? = $ac_status" >&5
23447 (exit "$ac_status"); }; }; then
23449 cf_cv_func_openpty=$cf_header
23453 echo "$as_me: failed program was:" >&5
23454 cat "conftest.$ac_ext" >&5
23456 cf_cv_func_openpty=no
23459 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23461 LIBS="$cf_save_LIBS"
23464 echo "$as_me:23464: result: $cf_cv_func_openpty" >&5
23465 echo "${ECHO_T}$cf_cv_func_openpty" >&6
23467 if test "$cf_cv_func_openpty" != no ; then
23469 cat >>confdefs.h <<EOF
23470 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
23473 cat >>confdefs.h <<\EOF
23474 #define USE_XTERM_PTY 1
23477 if test "x$cf_cv_lib_util" = xyes ; then
23479 cf_add_libs="$TEST_LIBS"
23482 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23483 # filter duplicates
23484 for cf_add_1lib in $cf_add_0lib; do
23485 for cf_add_2lib in $cf_add_libs; do
23486 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23491 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23493 TEST_LIBS="$cf_add_libs"
23498 if test "$with_hashed_db" != no ; then
23500 cat >>confdefs.h <<\EOF
23501 #define USE_HASHED_DB 1
23504 case $with_hashed_db in
23508 if test -d "$with_hashed_db" ; then
23510 if test -n "$with_hashed_db/include" ; then
23511 for cf_add_incdir in $with_hashed_db/include
23513 while test "$cf_add_incdir" != /usr/include
23515 if test -d "$cf_add_incdir"
23518 if test -n "$CFLAGS$CPPFLAGS" ; then
23519 # a loop is needed to ensure we can add subdirs of existing dirs
23520 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23521 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23522 cf_have_incdir=yes; break
23527 if test "$cf_have_incdir" = no ; then
23528 if test "$cf_add_incdir" = /usr/local/include ; then
23529 if test "$GCC" = yes
23531 cf_save_CPPFLAGS=$CPPFLAGS
23533 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23534 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23536 cat >"conftest.$ac_ext" <<_ACEOF
23537 #line 23537 "configure"
23538 #include "confdefs.h"
23548 rm -f "conftest.$ac_objext"
23549 if { (eval echo "$as_me:23549: \"$ac_compile\"") >&5
23550 (eval $ac_compile) 2>&5
23552 echo "$as_me:23552: \$? = $ac_status" >&5
23553 (exit "$ac_status"); } &&
23554 { ac_try='test -s "conftest.$ac_objext"'
23555 { (eval echo "$as_me:23555: \"$ac_try\"") >&5
23556 (eval $ac_try) 2>&5
23558 echo "$as_me:23558: \$? = $ac_status" >&5
23559 (exit "$ac_status"); }; }; then
23562 echo "$as_me: failed program was:" >&5
23563 cat "conftest.$ac_ext" >&5
23566 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23567 CPPFLAGS=$cf_save_CPPFLAGS
23572 if test "$cf_have_incdir" = no ; then
23573 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
23575 echo "${as_me:-configure}:23575: testing adding $cf_add_incdir to include-path ..." 1>&5
23577 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
23579 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
23580 test "$cf_top_incdir" = "$cf_add_incdir" && break
23581 cf_add_incdir="$cf_top_incdir"
23592 if test -n "$with_hashed_db/lib" ; then
23593 for cf_add_libdir in $with_hashed_db/lib
23595 if test "$cf_add_libdir" = /usr/lib ; then
23597 elif test -d "$cf_add_libdir"
23600 if test -n "$LDFLAGS$LIBS" ; then
23601 # a loop is needed to ensure we can add subdirs of existing dirs
23602 for cf_test_libdir in $LDFLAGS $LIBS ; do
23603 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
23604 cf_have_libdir=yes; break
23608 if test "$cf_have_libdir" = no ; then
23609 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
23611 echo "${as_me:-configure}:23611: testing adding $cf_add_libdir to library-path ..." 1>&5
23613 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23620 case "$with_hashed_db" in
23622 { echo "$as_me:23622: WARNING: no such directory $with_hashed_db" >&5
23623 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
23629 test "x$prefix" != "xNONE" && \
23630 test -d "$prefix" && \
23632 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
23633 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
23634 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
23635 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
23636 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
23637 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
23640 for cf_subdir_prefix in \
23649 test "x$cf_subdir_prefix" != "x$prefix" && \
23650 test -d "$cf_subdir_prefix" && \
23651 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
23652 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
23653 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
23654 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
23655 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
23656 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
23657 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"
23662 for cf_item in $cf_search
23665 (*/$with_hashed_db)
23667 if test -n "$cf_item" ; then
23668 for cf_add_incdir in $cf_item
23670 while test "$cf_add_incdir" != /usr/include
23672 if test -d "$cf_add_incdir"
23675 if test -n "$CFLAGS$CPPFLAGS" ; then
23676 # a loop is needed to ensure we can add subdirs of existing dirs
23677 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23678 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23679 cf_have_incdir=yes; break
23684 if test "$cf_have_incdir" = no ; then
23685 if test "$cf_add_incdir" = /usr/local/include ; then
23686 if test "$GCC" = yes
23688 cf_save_CPPFLAGS=$CPPFLAGS
23690 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23691 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23693 cat >"conftest.$ac_ext" <<_ACEOF
23694 #line 23694 "configure"
23695 #include "confdefs.h"
23705 rm -f "conftest.$ac_objext"
23706 if { (eval echo "$as_me:23706: \"$ac_compile\"") >&5
23707 (eval $ac_compile) 2>&5
23709 echo "$as_me:23709: \$? = $ac_status" >&5
23710 (exit "$ac_status"); } &&
23711 { ac_try='test -s "conftest.$ac_objext"'
23712 { (eval echo "$as_me:23712: \"$ac_try\"") >&5
23713 (eval $ac_try) 2>&5
23715 echo "$as_me:23715: \$? = $ac_status" >&5
23716 (exit "$ac_status"); }; }; then
23719 echo "$as_me: failed program was:" >&5
23720 cat "conftest.$ac_ext" >&5
23723 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23724 CPPFLAGS=$cf_save_CPPFLAGS
23729 if test "$cf_have_incdir" = no ; then
23730 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
23732 echo "${as_me:-configure}:23732: testing adding $cf_add_incdir to include-path ..." 1>&5
23734 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
23736 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
23737 test "$cf_top_incdir" = "$cf_add_incdir" && break
23738 cf_add_incdir="$cf_top_incdir"
23755 test "x$prefix" != "xNONE" && \
23756 test -d "$prefix" && \
23758 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
23759 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
23760 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
23761 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
23762 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
23763 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
23766 for cf_subdir_prefix in \
23775 test "x$cf_subdir_prefix" != "x$prefix" && \
23776 test -d "$cf_subdir_prefix" && \
23777 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
23778 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
23779 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
23780 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
23781 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
23782 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
23783 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"
23788 for cf_item in $cf_search
23791 (*/$with_hashed_db)
23793 if test -n "$cf_item" ; then
23794 for cf_add_libdir in $cf_item
23796 if test "$cf_add_libdir" = /usr/lib ; then
23798 elif test -d "$cf_add_libdir"
23801 if test -n "$LDFLAGS$LIBS" ; then
23802 # a loop is needed to ensure we can add subdirs of existing dirs
23803 for cf_test_libdir in $LDFLAGS $LIBS ; do
23804 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
23805 cf_have_libdir=yes; break
23809 if test "$cf_have_libdir" = no ; then
23810 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
23812 echo "${as_me:-configure}:23812: testing adding $cf_add_libdir to library-path ..." 1>&5
23814 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23829 echo "$as_me:23829: checking for db.h" >&5
23830 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
23831 if test "${ac_cv_header_db_h+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 cat >"conftest.$ac_ext" <<_ACEOF
23835 #line 23835 "configure"
23836 #include "confdefs.h"
23839 if { (eval echo "$as_me:23839: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23840 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23842 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23844 cat conftest.err >&5
23845 echo "$as_me:23845: \$? = $ac_status" >&5
23846 (exit "$ac_status"); } >/dev/null; then
23847 if test -s conftest.err; then
23848 ac_cpp_err=$ac_c_preproc_warn_flag
23855 if test -z "$ac_cpp_err"; then
23856 ac_cv_header_db_h=yes
23858 echo "$as_me: failed program was:" >&5
23859 cat "conftest.$ac_ext" >&5
23860 ac_cv_header_db_h=no
23862 rm -f conftest.err "conftest.$ac_ext"
23864 echo "$as_me:23864: result: $ac_cv_header_db_h" >&5
23865 echo "${ECHO_T}$ac_cv_header_db_h" >&6
23866 if test "$ac_cv_header_db_h" = yes; then
23868 echo "$as_me:23868: checking for version of db" >&5
23869 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
23870 if test "${cf_cv_hashed_db_version+set}" = set; then
23871 echo $ECHO_N "(cached) $ECHO_C" >&6
23874 cf_cv_hashed_db_version=unknown
23876 for cf_db_version in 1 2 3 4 5 6
23879 echo "${as_me:-configure}:23879: testing checking for db version $cf_db_version ..." 1>&5
23881 cat >"conftest.$ac_ext" <<_ACEOF
23882 #line 23882 "configure"
23883 #include "confdefs.h"
23885 $ac_includes_default
23888 #ifdef DB_VERSION_MAJOR
23889 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
23890 #if $cf_db_version == DB_VERSION_MAJOR
23896 #if $cf_db_version == 1
23897 /* ok: assuming this is DB 1.8.5 */
23911 rm -f "conftest.$ac_objext"
23912 if { (eval echo "$as_me:23912: \"$ac_compile\"") >&5
23913 (eval $ac_compile) 2>&5
23915 echo "$as_me:23915: \$? = $ac_status" >&5
23916 (exit "$ac_status"); } &&
23917 { ac_try='test -s "conftest.$ac_objext"'
23918 { (eval echo "$as_me:23918: \"$ac_try\"") >&5
23919 (eval $ac_try) 2>&5
23921 echo "$as_me:23921: \$? = $ac_status" >&5
23922 (exit "$ac_status"); }; }; then
23924 cf_cv_hashed_db_version=$cf_db_version
23928 echo "$as_me: failed program was:" >&5
23929 cat "conftest.$ac_ext" >&5
23931 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23935 echo "$as_me:23935: result: $cf_cv_hashed_db_version" >&5
23936 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
23938 if test "$cf_cv_hashed_db_version" = unknown ; then
23939 { { echo "$as_me:23939: error: Cannot determine version of db" >&5
23940 echo "$as_me: error: Cannot determine version of db" >&2;}
23941 { (exit 1); exit 1; }; }
23944 echo "$as_me:23944: checking for db libraries" >&5
23945 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
23946 if test "${cf_cv_hashed_db_libs+set}" = set; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23950 cf_cv_hashed_db_libs=unknown
23951 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
23953 cf_save_libs="$LIBS"
23954 if test -n "$cf_db_libs"; then
23956 cf_add_libs="$LIBS"
23959 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23960 # filter duplicates
23961 for cf_add_1lib in $cf_add_0lib; do
23962 for cf_add_2lib in $cf_add_libs; do
23963 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23968 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23970 LIBS="$cf_add_libs"
23974 echo "${as_me:-configure}:23974: testing checking for library $cf_db_libs ..." 1>&5
23976 cat >"conftest.$ac_ext" <<_ACEOF
23977 #line 23977 "configure"
23978 #include "confdefs.h"
23980 $ac_includes_default
23987 char *path = "/tmp/foo";
23988 #ifdef DB_VERSION_MAJOR
23989 #if DB_VERSION_MAJOR >= 4
23991 db_create(&result, NULL, 0);
23992 result->open(result,
23999 #elif DB_VERSION_MAJOR >= 3
24001 db_create(&result, NULL, 0);
24002 result->open(result,
24008 #elif DB_VERSION_MAJOR >= 2
24017 #endif /* DB_VERSION_MAJOR */
24019 DB *result = dbopen(path,
24025 ${cf_cv_main_return:-return}(result != 0)
24031 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24032 if { (eval echo "$as_me:24032: \"$ac_link\"") >&5
24033 (eval $ac_link) 2>&5
24035 echo "$as_me:24035: \$? = $ac_status" >&5
24036 (exit "$ac_status"); } &&
24037 { ac_try='test -s "conftest$ac_exeext"'
24038 { (eval echo "$as_me:24038: \"$ac_try\"") >&5
24039 (eval $ac_try) 2>&5
24041 echo "$as_me:24041: \$? = $ac_status" >&5
24042 (exit "$ac_status"); }; }; then
24044 if test -n "$cf_db_libs" ; then
24045 cf_cv_hashed_db_libs=$cf_db_libs
24047 cf_cv_hashed_db_libs=default
24049 LIBS="$cf_save_libs"
24053 echo "$as_me: failed program was:" >&5
24054 cat "conftest.$ac_ext" >&5
24056 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24057 LIBS="$cf_save_libs"
24061 echo "$as_me:24061: result: $cf_cv_hashed_db_libs" >&5
24062 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24064 if test "$cf_cv_hashed_db_libs" = unknown ; then
24065 { { echo "$as_me:24065: error: Cannot determine library for db" >&5
24066 echo "$as_me: error: Cannot determine library for db" >&2;}
24067 { (exit 1); exit 1; }; }
24068 elif test "$cf_cv_hashed_db_libs" != default ; then
24070 cf_add_libs="$LIBS"
24073 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24074 # filter duplicates
24075 for cf_add_1lib in $cf_add_0lib; do
24076 for cf_add_2lib in $cf_add_libs; do
24077 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24082 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24084 LIBS="$cf_add_libs"
24091 { { echo "$as_me:24091: error: Cannot find db.h" >&5
24092 echo "$as_me: error: Cannot find db.h" >&2;}
24093 { (exit 1); exit 1; }; }
24099 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24100 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24101 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24104 # Just in case, check if the C compiler has a bool type.
24106 echo "$as_me:24106: checking if we should include stdbool.h" >&5
24107 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24109 if test "${cf_cv_header_stdbool_h+set}" = set; then
24110 echo $ECHO_N "(cached) $ECHO_C" >&6
24113 cat >"conftest.$ac_ext" <<_ACEOF
24114 #line 24114 "configure"
24115 #include "confdefs.h"
24125 rm -f "conftest.$ac_objext"
24126 if { (eval echo "$as_me:24126: \"$ac_compile\"") >&5
24127 (eval $ac_compile) 2>&5
24129 echo "$as_me:24129: \$? = $ac_status" >&5
24130 (exit "$ac_status"); } &&
24131 { ac_try='test -s "conftest.$ac_objext"'
24132 { (eval echo "$as_me:24132: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24135 echo "$as_me:24135: \$? = $ac_status" >&5
24136 (exit "$ac_status"); }; }; then
24137 cf_cv_header_stdbool_h=0
24139 echo "$as_me: failed program was:" >&5
24140 cat "conftest.$ac_ext" >&5
24141 cat >"conftest.$ac_ext" <<_ACEOF
24142 #line 24142 "configure"
24143 #include "confdefs.h"
24146 #include <stdbool.h>
24157 rm -f "conftest.$ac_objext"
24158 if { (eval echo "$as_me:24158: \"$ac_compile\"") >&5
24159 (eval $ac_compile) 2>&5
24161 echo "$as_me:24161: \$? = $ac_status" >&5
24162 (exit "$ac_status"); } &&
24163 { ac_try='test -s "conftest.$ac_objext"'
24164 { (eval echo "$as_me:24164: \"$ac_try\"") >&5
24165 (eval $ac_try) 2>&5
24167 echo "$as_me:24167: \$? = $ac_status" >&5
24168 (exit "$ac_status"); }; }; then
24169 cf_cv_header_stdbool_h=1
24171 echo "$as_me: failed program was:" >&5
24172 cat "conftest.$ac_ext" >&5
24173 cf_cv_header_stdbool_h=0
24175 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24177 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24180 if test "$cf_cv_header_stdbool_h" = 1
24181 then echo "$as_me:24181: result: yes" >&5
24182 echo "${ECHO_T}yes" >&6
24183 else echo "$as_me:24183: result: no" >&5
24184 echo "${ECHO_T}no" >&6
24187 echo "$as_me:24187: checking for builtin bool type" >&5
24188 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24190 if test "${cf_cv_cc_bool_type+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24194 cat >"conftest.$ac_ext" <<_ACEOF
24195 #line 24195 "configure"
24196 #include "confdefs.h"
24199 #include <sys/types.h>
24209 rm -f "conftest.$ac_objext"
24210 if { (eval echo "$as_me:24210: \"$ac_compile\"") >&5
24211 (eval $ac_compile) 2>&5
24213 echo "$as_me:24213: \$? = $ac_status" >&5
24214 (exit "$ac_status"); } &&
24215 { ac_try='test -s "conftest.$ac_objext"'
24216 { (eval echo "$as_me:24216: \"$ac_try\"") >&5
24217 (eval $ac_try) 2>&5
24219 echo "$as_me:24219: \$? = $ac_status" >&5
24220 (exit "$ac_status"); }; }; then
24221 cf_cv_cc_bool_type=1
24223 echo "$as_me: failed program was:" >&5
24224 cat "conftest.$ac_ext" >&5
24225 cf_cv_cc_bool_type=0
24227 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24231 if test "$cf_cv_cc_bool_type" = 1
24232 then echo "$as_me:24232: result: yes" >&5
24233 echo "${ECHO_T}yes" >&6
24234 else echo "$as_me:24234: result: no" >&5
24235 echo "${ECHO_T}no" >&6
24238 # Check for C++ compiler characteristics (and ensure that it's there!)
24239 if test -n "$CXX" ; then
24241 ac_cpp='$CXXCPP $CPPFLAGS'
24242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24243 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24245 ac_main_return="return"
24247 if test -n "$GXX" ; then
24250 LIBS="$LIBS $CXXLIBS"
24251 echo "$as_me:24251: checking if we already have C++ library" >&5
24252 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
24253 cat >"conftest.$ac_ext" <<_ACEOF
24254 #line 24254 "configure"
24255 #include "confdefs.h"
24257 #include <iostream>
24262 std::cout << "Hello World!" << std::endl;
24267 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24268 if { (eval echo "$as_me:24268: \"$ac_link\"") >&5
24269 (eval $ac_link) 2>&5
24271 echo "$as_me:24271: \$? = $ac_status" >&5
24272 (exit "$ac_status"); } &&
24273 { ac_try='test -s "conftest$ac_exeext"'
24274 { (eval echo "$as_me:24274: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24277 echo "$as_me:24277: \$? = $ac_status" >&5
24278 (exit "$ac_status"); }; }; then
24279 cf_have_libstdcpp=yes
24281 echo "$as_me: failed program was:" >&5
24282 cat "conftest.$ac_ext" >&5
24283 cf_have_libstdcpp=no
24285 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24286 echo "$as_me:24286: result: $cf_have_libstdcpp" >&5
24287 echo "${ECHO_T}$cf_have_libstdcpp" >&6
24290 if test "$cf_have_libstdcpp" != yes
24292 case "$cf_cv_system_name" in
24294 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
24295 cf_stdcpp_libname=stdcpp
24297 cf_stdcpp_libname=stdc++
24301 cf_stdcpp_libname=stdc++
24305 echo "$as_me:24305: checking for library $cf_stdcpp_libname" >&5
24306 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
24307 if test "${cf_cv_libstdcpp+set}" = set; then
24308 echo $ECHO_N "(cached) $ECHO_C" >&6
24312 LIBS="$LIBS $CXXLIBS"
24314 cf_add_libs="$LIBS"
24317 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24318 # filter duplicates
24319 for cf_add_1lib in $cf_add_0lib; do
24320 for cf_add_2lib in $cf_add_libs; do
24321 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24326 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24328 LIBS="$cf_add_libs"
24330 cat >"conftest.$ac_ext" <<_ACEOF
24331 #line 24331 "configure"
24332 #include "confdefs.h"
24334 #include <iostream>
24339 std::cout << "Hello World!" << std::endl;
24344 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24345 if { (eval echo "$as_me:24345: \"$ac_link\"") >&5
24346 (eval $ac_link) 2>&5
24348 echo "$as_me:24348: \$? = $ac_status" >&5
24349 (exit "$ac_status"); } &&
24350 { ac_try='test -s "conftest$ac_exeext"'
24351 { (eval echo "$as_me:24351: \"$ac_try\"") >&5
24352 (eval $ac_try) 2>&5
24354 echo "$as_me:24354: \$? = $ac_status" >&5
24355 (exit "$ac_status"); }; }; then
24356 cf_cv_libstdcpp=yes
24358 echo "$as_me: failed program was:" >&5
24359 cat "conftest.$ac_ext" >&5
24362 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24366 echo "$as_me:24366: result: $cf_cv_libstdcpp" >&5
24367 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
24368 test "$cf_cv_libstdcpp" = yes && {
24369 cf_add_libs="$CXXLIBS"
24372 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24373 # filter duplicates
24374 for cf_add_1lib in $cf_add_0lib; do
24375 for cf_add_2lib in $cf_add_libs; do
24376 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24381 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24383 CXXLIBS="$cf_add_libs"
24388 echo "$as_me:24388: checking whether $CXX understands -c and -o together" >&5
24389 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
24390 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
24391 echo $ECHO_N "(cached) $ECHO_C" >&6
24394 cat > conftest.$ac_ext <<CF_EOF
24397 ${cf_cv_main_return:-return}(0);
24400 # We do the test twice because some compilers refuse to overwrite an
24401 # existing .o file with -o, though they will create one.
24402 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
24403 if { (eval echo "$as_me:24403: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24406 echo "$as_me:24406: \$? = $ac_status" >&5
24407 (exit "$ac_status"); } &&
24408 test -f conftest2.$ac_objext && { (eval echo "$as_me:24408: \"$ac_try\"") >&5
24409 (eval $ac_try) 2>&5
24411 echo "$as_me:24411: \$? = $ac_status" >&5
24412 (exit "$ac_status"); };
24414 eval cf_cv_prog_CXX_c_o=yes
24416 eval cf_cv_prog_CXX_c_o=no
24421 if test "$cf_cv_prog_CXX_c_o" = yes; then
24422 echo "$as_me:24422: result: yes" >&5
24423 echo "${ECHO_T}yes" >&6
24425 echo "$as_me:24425: result: no" >&5
24426 echo "${ECHO_T}no" >&6
24429 case "$GXX_VERSION" in
24430 (1.*|2.[0-6]*|[1-9][0-9].*)
24435 cf_cxx_library=unknown
24436 case "$cf_cv_system_name" in
24444 if test "$GXX" = yes; then
24445 echo "$as_me:24445: checking for lib$cf_gpp_libname" >&5
24446 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
24449 cf_add_libs="$LIBS"
24452 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24453 # filter duplicates
24454 for cf_add_1lib in $cf_add_0lib; do
24455 for cf_add_2lib in $cf_add_libs; do
24456 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24461 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24463 LIBS="$cf_add_libs"
24465 cat >"conftest.$ac_ext" <<_ACEOF
24466 #line 24466 "configure"
24467 #include "confdefs.h"
24469 #include <$cf_gpp_libname/builtin.h>
24474 two_arg_error_handler_t foo2 = lib_error_handler
24479 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24480 if { (eval echo "$as_me:24480: \"$ac_link\"") >&5
24481 (eval $ac_link) 2>&5
24483 echo "$as_me:24483: \$? = $ac_status" >&5
24484 (exit "$ac_status"); } &&
24485 { ac_try='test -s "conftest$ac_exeext"'
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 cf_add_libs="$CXXLIBS"
24496 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24497 # filter duplicates
24498 for cf_add_1lib in $cf_add_0lib; do
24499 for cf_add_2lib in $cf_add_libs; do
24500 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24505 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24507 CXXLIBS="$cf_add_libs"
24509 if test "$cf_gpp_libname" = cpp ; then
24511 cat >>confdefs.h <<\EOF
24512 #define HAVE_GPP_BUILTIN_H 1
24517 cat >>confdefs.h <<\EOF
24518 #define HAVE_GXX_BUILTIN_H 1
24523 echo "$as_me: failed program was:" >&5
24524 cat "conftest.$ac_ext" >&5
24525 cat >"conftest.$ac_ext" <<_ACEOF
24526 #line 24526 "configure"
24527 #include "confdefs.h"
24529 #include <builtin.h>
24534 two_arg_error_handler_t foo2 = lib_error_handler
24539 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24540 if { (eval echo "$as_me:24540: \"$ac_link\"") >&5
24541 (eval $ac_link) 2>&5
24543 echo "$as_me:24543: \$? = $ac_status" >&5
24544 (exit "$ac_status"); } &&
24545 { ac_try='test -s "conftest$ac_exeext"'
24546 { (eval echo "$as_me:24546: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24549 echo "$as_me:24549: \$? = $ac_status" >&5
24550 (exit "$ac_status"); }; }; then
24553 cf_add_libs="$CXXLIBS"
24556 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24557 # filter duplicates
24558 for cf_add_1lib in $cf_add_0lib; do
24559 for cf_add_2lib in $cf_add_libs; do
24560 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24565 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24567 CXXLIBS="$cf_add_libs"
24569 cat >>confdefs.h <<\EOF
24570 #define HAVE_BUILTIN_H 1
24574 echo "$as_me: failed program was:" >&5
24575 cat "conftest.$ac_ext" >&5
24578 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24580 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24582 echo "$as_me:24582: result: $cf_cxx_library" >&5
24583 echo "${ECHO_T}$cf_cxx_library" >&6
24593 ac_cpp='$CXXCPP $CPPFLAGS'
24594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24595 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24597 ac_main_return="return"
24598 echo "$as_me:24598: checking how to run the C++ preprocessor" >&5
24599 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
24600 if test -z "$CXXCPP"; then
24601 if test "${ac_cv_prog_CXXCPP+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
24604 # Double quotes because CXXCPP needs to be expanded
24605 for CXXCPP in "$CXX -E" "/lib/cpp"
24607 ac_preproc_ok=false
24608 for ac_cxx_preproc_warn_flag in '' yes
24610 # Use a header file that comes with gcc, so configuring glibc
24611 # with a fresh cross-compiler works.
24612 # On the NeXT, cc -E runs the code through the compiler's parser,
24613 # not just through cpp. "Syntax error" is here to catch this case.
24614 cat >"conftest.$ac_ext" <<_ACEOF
24615 #line 24615 "configure"
24616 #include "confdefs.h"
24617 #include <assert.h>
24620 if { (eval echo "$as_me:24620: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24621 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24623 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24625 cat conftest.err >&5
24626 echo "$as_me:24626: \$? = $ac_status" >&5
24627 (exit "$ac_status"); } >/dev/null; then
24628 if test -s conftest.err; then
24629 ac_cpp_err=$ac_cxx_preproc_warn_flag
24636 if test -z "$ac_cpp_err"; then
24639 echo "$as_me: failed program was:" >&5
24640 cat "conftest.$ac_ext" >&5
24641 # Broken: fails on valid input.
24644 rm -f conftest.err "conftest.$ac_ext"
24646 # OK, works on sane cases. Now check whether non-existent headers
24647 # can be detected and how.
24648 cat >"conftest.$ac_ext" <<_ACEOF
24649 #line 24649 "configure"
24650 #include "confdefs.h"
24651 #include <ac_nonexistent.h>
24653 if { (eval echo "$as_me:24653: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24654 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24656 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24658 cat conftest.err >&5
24659 echo "$as_me:24659: \$? = $ac_status" >&5
24660 (exit "$ac_status"); } >/dev/null; then
24661 if test -s conftest.err; then
24662 ac_cpp_err=$ac_cxx_preproc_warn_flag
24669 if test -z "$ac_cpp_err"; then
24670 # Broken: success on invalid input.
24673 echo "$as_me: failed program was:" >&5
24674 cat "conftest.$ac_ext" >&5
24675 # Passes both tests.
24679 rm -f conftest.err "conftest.$ac_ext"
24682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24683 rm -f conftest.err "conftest.$ac_ext"
24684 if $ac_preproc_ok; then
24689 ac_cv_prog_CXXCPP=$CXXCPP
24692 CXXCPP=$ac_cv_prog_CXXCPP
24694 ac_cv_prog_CXXCPP=$CXXCPP
24696 echo "$as_me:24696: result: $CXXCPP" >&5
24697 echo "${ECHO_T}$CXXCPP" >&6
24698 ac_preproc_ok=false
24699 for ac_cxx_preproc_warn_flag in '' yes
24701 # Use a header file that comes with gcc, so configuring glibc
24702 # with a fresh cross-compiler works.
24703 # On the NeXT, cc -E runs the code through the compiler's parser,
24704 # not just through cpp. "Syntax error" is here to catch this case.
24705 cat >"conftest.$ac_ext" <<_ACEOF
24706 #line 24706 "configure"
24707 #include "confdefs.h"
24708 #include <assert.h>
24711 if { (eval echo "$as_me:24711: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24712 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24714 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24716 cat conftest.err >&5
24717 echo "$as_me:24717: \$? = $ac_status" >&5
24718 (exit "$ac_status"); } >/dev/null; then
24719 if test -s conftest.err; then
24720 ac_cpp_err=$ac_cxx_preproc_warn_flag
24727 if test -z "$ac_cpp_err"; then
24730 echo "$as_me: failed program was:" >&5
24731 cat "conftest.$ac_ext" >&5
24732 # Broken: fails on valid input.
24735 rm -f conftest.err "conftest.$ac_ext"
24737 # OK, works on sane cases. Now check whether non-existent headers
24738 # can be detected and how.
24739 cat >"conftest.$ac_ext" <<_ACEOF
24740 #line 24740 "configure"
24741 #include "confdefs.h"
24742 #include <ac_nonexistent.h>
24744 if { (eval echo "$as_me:24744: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24745 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24747 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24749 cat conftest.err >&5
24750 echo "$as_me:24750: \$? = $ac_status" >&5
24751 (exit "$ac_status"); } >/dev/null; then
24752 if test -s conftest.err; then
24753 ac_cpp_err=$ac_cxx_preproc_warn_flag
24760 if test -z "$ac_cpp_err"; then
24761 # Broken: success on invalid input.
24764 echo "$as_me: failed program was:" >&5
24765 cat "conftest.$ac_ext" >&5
24766 # Passes both tests.
24770 rm -f conftest.err "conftest.$ac_ext"
24773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24774 rm -f conftest.err "conftest.$ac_ext"
24775 if $ac_preproc_ok; then
24778 { { echo "$as_me:24778: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
24779 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
24780 { (exit 1); exit 1; }; }
24784 ac_cpp='$CXXCPP $CPPFLAGS'
24785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24786 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24788 ac_main_return="return"
24790 for ac_header in typeinfo
24792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24793 echo "$as_me:24793: checking for $ac_header" >&5
24794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24798 cat >"conftest.$ac_ext" <<_ACEOF
24799 #line 24799 "configure"
24800 #include "confdefs.h"
24801 #include <$ac_header>
24803 if { (eval echo "$as_me:24803: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24804 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24806 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24808 cat conftest.err >&5
24809 echo "$as_me:24809: \$? = $ac_status" >&5
24810 (exit "$ac_status"); } >/dev/null; then
24811 if test -s conftest.err; then
24812 ac_cpp_err=$ac_cxx_preproc_warn_flag
24819 if test -z "$ac_cpp_err"; then
24820 eval "$as_ac_Header=yes"
24822 echo "$as_me: failed program was:" >&5
24823 cat "conftest.$ac_ext" >&5
24824 eval "$as_ac_Header=no"
24826 rm -f conftest.err "conftest.$ac_ext"
24828 echo "$as_me:24828: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
24829 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
24830 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
24831 cat >>confdefs.h <<EOF
24832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24838 for ac_header in iostream
24840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24841 echo "$as_me:24841: checking for $ac_header" >&5
24842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24844 echo $ECHO_N "(cached) $ECHO_C" >&6
24846 cat >"conftest.$ac_ext" <<_ACEOF
24847 #line 24847 "configure"
24848 #include "confdefs.h"
24849 #include <$ac_header>
24851 if { (eval echo "$as_me:24851: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24852 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24854 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24856 cat conftest.err >&5
24857 echo "$as_me:24857: \$? = $ac_status" >&5
24858 (exit "$ac_status"); } >/dev/null; then
24859 if test -s conftest.err; then
24860 ac_cpp_err=$ac_cxx_preproc_warn_flag
24867 if test -z "$ac_cpp_err"; then
24868 eval "$as_ac_Header=yes"
24870 echo "$as_me: failed program was:" >&5
24871 cat "conftest.$ac_ext" >&5
24872 eval "$as_ac_Header=no"
24874 rm -f conftest.err "conftest.$ac_ext"
24876 echo "$as_me:24876: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
24877 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
24878 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
24879 cat >>confdefs.h <<EOF
24880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24886 if test x"$ac_cv_header_iostream" = xyes ; then
24887 echo "$as_me:24887: checking if iostream uses std-namespace" >&5
24888 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
24889 cat >"conftest.$ac_ext" <<_ACEOF
24890 #line 24890 "configure"
24891 #include "confdefs.h"
24893 #include <iostream>
24900 cerr << "testing" << endl;
24906 rm -f "conftest.$ac_objext"
24907 if { (eval echo "$as_me:24907: \"$ac_compile\"") >&5
24908 (eval $ac_compile) 2>&5
24910 echo "$as_me:24910: \$? = $ac_status" >&5
24911 (exit "$ac_status"); } &&
24912 { ac_try='test -s "conftest.$ac_objext"'
24913 { (eval echo "$as_me:24913: \"$ac_try\"") >&5
24914 (eval $ac_try) 2>&5
24916 echo "$as_me:24916: \$? = $ac_status" >&5
24917 (exit "$ac_status"); }; }; then
24918 cf_iostream_namespace=yes
24920 echo "$as_me: failed program was:" >&5
24921 cat "conftest.$ac_ext" >&5
24922 cf_iostream_namespace=no
24924 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24925 echo "$as_me:24925: result: $cf_iostream_namespace" >&5
24926 echo "${ECHO_T}$cf_iostream_namespace" >&6
24927 if test "$cf_iostream_namespace" = yes ; then
24929 cat >>confdefs.h <<\EOF
24930 #define IOSTREAM_NAMESPACE 1
24936 echo "$as_me:24936: checking if we should include stdbool.h" >&5
24937 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24939 if test "${cf_cv_header_stdbool_h+set}" = set; then
24940 echo $ECHO_N "(cached) $ECHO_C" >&6
24943 cat >"conftest.$ac_ext" <<_ACEOF
24944 #line 24944 "configure"
24945 #include "confdefs.h"
24955 rm -f "conftest.$ac_objext"
24956 if { (eval echo "$as_me:24956: \"$ac_compile\"") >&5
24957 (eval $ac_compile) 2>&5
24959 echo "$as_me:24959: \$? = $ac_status" >&5
24960 (exit "$ac_status"); } &&
24961 { ac_try='test -s "conftest.$ac_objext"'
24962 { (eval echo "$as_me:24962: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24965 echo "$as_me:24965: \$? = $ac_status" >&5
24966 (exit "$ac_status"); }; }; then
24967 cf_cv_header_stdbool_h=0
24969 echo "$as_me: failed program was:" >&5
24970 cat "conftest.$ac_ext" >&5
24971 cat >"conftest.$ac_ext" <<_ACEOF
24972 #line 24972 "configure"
24973 #include "confdefs.h"
24976 #include <stdbool.h>
24987 rm -f "conftest.$ac_objext"
24988 if { (eval echo "$as_me:24988: \"$ac_compile\"") >&5
24989 (eval $ac_compile) 2>&5
24991 echo "$as_me:24991: \$? = $ac_status" >&5
24992 (exit "$ac_status"); } &&
24993 { ac_try='test -s "conftest.$ac_objext"'
24994 { (eval echo "$as_me:24994: \"$ac_try\"") >&5
24995 (eval $ac_try) 2>&5
24997 echo "$as_me:24997: \$? = $ac_status" >&5
24998 (exit "$ac_status"); }; }; then
24999 cf_cv_header_stdbool_h=1
25001 echo "$as_me: failed program was:" >&5
25002 cat "conftest.$ac_ext" >&5
25003 cf_cv_header_stdbool_h=0
25005 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25007 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25010 if test "$cf_cv_header_stdbool_h" = 1
25011 then echo "$as_me:25011: result: yes" >&5
25012 echo "${ECHO_T}yes" >&6
25013 else echo "$as_me:25013: result: no" >&5
25014 echo "${ECHO_T}no" >&6
25017 echo "$as_me:25017: checking for builtin bool type" >&5
25018 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25020 if test "${cf_cv_builtin_bool+set}" = set; then
25021 echo $ECHO_N "(cached) $ECHO_C" >&6
25024 cat >"conftest.$ac_ext" <<_ACEOF
25025 #line 25025 "configure"
25026 #include "confdefs.h"
25029 #include <sys/types.h>
25039 rm -f "conftest.$ac_objext"
25040 if { (eval echo "$as_me:25040: \"$ac_compile\"") >&5
25041 (eval $ac_compile) 2>&5
25043 echo "$as_me:25043: \$? = $ac_status" >&5
25044 (exit "$ac_status"); } &&
25045 { ac_try='test -s "conftest.$ac_objext"'
25046 { (eval echo "$as_me:25046: \"$ac_try\"") >&5
25047 (eval $ac_try) 2>&5
25049 echo "$as_me:25049: \$? = $ac_status" >&5
25050 (exit "$ac_status"); }; }; then
25051 cf_cv_builtin_bool=1
25053 echo "$as_me: failed program was:" >&5
25054 cat "conftest.$ac_ext" >&5
25055 cf_cv_builtin_bool=0
25057 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25061 if test "$cf_cv_builtin_bool" = 1
25062 then echo "$as_me:25062: result: yes" >&5
25063 echo "${ECHO_T}yes" >&6
25064 else echo "$as_me:25064: result: no" >&5
25065 echo "${ECHO_T}no" >&6
25068 echo "$as_me:25068: checking for bool" >&5
25069 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25070 if test "${ac_cv_type_bool+set}" = set; then
25071 echo $ECHO_N "(cached) $ECHO_C" >&6
25073 cat >"conftest.$ac_ext" <<_ACEOF
25074 #line 25074 "configure"
25075 #include "confdefs.h"
25077 #include <stdlib.h>
25080 #if defined(__cplusplus)
25082 #ifdef HAVE_GXX_BUILTIN_H
25083 #include <g++/builtin.h>
25084 #elif HAVE_GPP_BUILTIN_H
25085 #include <gpp/builtin.h>
25086 #elif HAVE_BUILTIN_H
25087 #include <builtin.h>
25092 #if $cf_cv_header_stdbool_h
25093 #include <stdbool.h>
25109 rm -f "conftest.$ac_objext"
25110 if { (eval echo "$as_me:25110: \"$ac_compile\"") >&5
25111 (eval $ac_compile) 2>&5
25113 echo "$as_me:25113: \$? = $ac_status" >&5
25114 (exit "$ac_status"); } &&
25115 { ac_try='test -s "conftest.$ac_objext"'
25116 { (eval echo "$as_me:25116: \"$ac_try\"") >&5
25117 (eval $ac_try) 2>&5
25119 echo "$as_me:25119: \$? = $ac_status" >&5
25120 (exit "$ac_status"); }; }; then
25121 ac_cv_type_bool=yes
25123 echo "$as_me: failed program was:" >&5
25124 cat "conftest.$ac_ext" >&5
25127 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25129 echo "$as_me:25129: result: $ac_cv_type_bool" >&5
25130 echo "${ECHO_T}$ac_cv_type_bool" >&6
25132 echo "$as_me:25132: checking size of bool" >&5
25133 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25134 if test "${ac_cv_sizeof_bool+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
25137 if test "$ac_cv_type_bool" = yes; then
25138 if test "$cross_compiling" = yes; then
25139 # Depending upon the size, compute the lo and hi bounds.
25140 cat >"conftest.$ac_ext" <<_ACEOF
25141 #line 25141 "configure"
25142 #include "confdefs.h"
25144 #include <stdlib.h>
25147 #if defined(__cplusplus)
25149 #ifdef HAVE_GXX_BUILTIN_H
25150 #include <g++/builtin.h>
25151 #elif HAVE_GPP_BUILTIN_H
25152 #include <gpp/builtin.h>
25153 #elif HAVE_BUILTIN_H
25154 #include <builtin.h>
25159 #if $cf_cv_header_stdbool_h
25160 #include <stdbool.h>
25168 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
25173 rm -f "conftest.$ac_objext"
25174 if { (eval echo "$as_me:25174: \"$ac_compile\"") >&5
25175 (eval $ac_compile) 2>&5
25177 echo "$as_me:25177: \$? = $ac_status" >&5
25178 (exit "$ac_status"); } &&
25179 { ac_try='test -s "conftest.$ac_objext"'
25180 { (eval echo "$as_me:25180: \"$ac_try\"") >&5
25181 (eval $ac_try) 2>&5
25183 echo "$as_me:25183: \$? = $ac_status" >&5
25184 (exit "$ac_status"); }; }; then
25187 cat >"conftest.$ac_ext" <<_ACEOF
25188 #line 25188 "configure"
25189 #include "confdefs.h"
25191 #include <stdlib.h>
25194 #if defined(__cplusplus)
25196 #ifdef HAVE_GXX_BUILTIN_H
25197 #include <g++/builtin.h>
25198 #elif HAVE_GPP_BUILTIN_H
25199 #include <gpp/builtin.h>
25200 #elif HAVE_BUILTIN_H
25201 #include <builtin.h>
25206 #if $cf_cv_header_stdbool_h
25207 #include <stdbool.h>
25215 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25220 rm -f "conftest.$ac_objext"
25221 if { (eval echo "$as_me:25221: \"$ac_compile\"") >&5
25222 (eval $ac_compile) 2>&5
25224 echo "$as_me:25224: \$? = $ac_status" >&5
25225 (exit "$ac_status"); } &&
25226 { ac_try='test -s "conftest.$ac_objext"'
25227 { (eval echo "$as_me:25227: \"$ac_try\"") >&5
25228 (eval $ac_try) 2>&5
25230 echo "$as_me:25230: \$? = $ac_status" >&5
25231 (exit "$ac_status"); }; }; then
25232 ac_hi=$ac_mid; break
25234 echo "$as_me: failed program was:" >&5
25235 cat "conftest.$ac_ext" >&5
25236 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
25238 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25241 echo "$as_me: failed program was:" >&5
25242 cat "conftest.$ac_ext" >&5
25245 cat >"conftest.$ac_ext" <<_ACEOF
25246 #line 25246 "configure"
25247 #include "confdefs.h"
25249 #include <stdlib.h>
25252 #if defined(__cplusplus)
25254 #ifdef HAVE_GXX_BUILTIN_H
25255 #include <g++/builtin.h>
25256 #elif HAVE_GPP_BUILTIN_H
25257 #include <gpp/builtin.h>
25258 #elif HAVE_BUILTIN_H
25259 #include <builtin.h>
25264 #if $cf_cv_header_stdbool_h
25265 #include <stdbool.h>
25273 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
25278 rm -f "conftest.$ac_objext"
25279 if { (eval echo "$as_me:25279: \"$ac_compile\"") >&5
25280 (eval $ac_compile) 2>&5
25282 echo "$as_me:25282: \$? = $ac_status" >&5
25283 (exit "$ac_status"); } &&
25284 { ac_try='test -s "conftest.$ac_objext"'
25285 { (eval echo "$as_me:25285: \"$ac_try\"") >&5
25286 (eval $ac_try) 2>&5
25288 echo "$as_me:25288: \$? = $ac_status" >&5
25289 (exit "$ac_status"); }; }; then
25290 ac_lo=$ac_mid; break
25292 echo "$as_me: failed program was:" >&5
25293 cat "conftest.$ac_ext" >&5
25294 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
25296 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25299 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25300 # Binary search between lo and hi bounds.
25301 while test "x$ac_lo" != "x$ac_hi"; do
25302 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
25303 cat >"conftest.$ac_ext" <<_ACEOF
25304 #line 25304 "configure"
25305 #include "confdefs.h"
25307 #include <stdlib.h>
25310 #if defined(__cplusplus)
25312 #ifdef HAVE_GXX_BUILTIN_H
25313 #include <g++/builtin.h>
25314 #elif HAVE_GPP_BUILTIN_H
25315 #include <gpp/builtin.h>
25316 #elif HAVE_BUILTIN_H
25317 #include <builtin.h>
25322 #if $cf_cv_header_stdbool_h
25323 #include <stdbool.h>
25331 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25336 rm -f "conftest.$ac_objext"
25337 if { (eval echo "$as_me:25337: \"$ac_compile\"") >&5
25338 (eval $ac_compile) 2>&5
25340 echo "$as_me:25340: \$? = $ac_status" >&5
25341 (exit "$ac_status"); } &&
25342 { ac_try='test -s "conftest.$ac_objext"'
25343 { (eval echo "$as_me:25343: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25346 echo "$as_me:25346: \$? = $ac_status" >&5
25347 (exit "$ac_status"); }; }; then
25350 echo "$as_me: failed program was:" >&5
25351 cat "conftest.$ac_ext" >&5
25352 ac_lo=`expr "$ac_mid" + 1`
25354 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25356 ac_cv_sizeof_bool=$ac_lo
25358 if test "$cross_compiling" = yes; then
25359 { { echo "$as_me:25359: error: cannot run test program while cross compiling" >&5
25360 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
25361 { (exit 1); exit 1; }; }
25363 cat >"conftest.$ac_ext" <<_ACEOF
25364 #line 25364 "configure"
25365 #include "confdefs.h"
25367 #include <stdlib.h>
25370 #if defined(__cplusplus)
25372 #ifdef HAVE_GXX_BUILTIN_H
25373 #include <g++/builtin.h>
25374 #elif HAVE_GPP_BUILTIN_H
25375 #include <gpp/builtin.h>
25376 #elif HAVE_BUILTIN_H
25377 #include <builtin.h>
25382 #if $cf_cv_header_stdbool_h
25383 #include <stdbool.h>
25391 FILE *f = fopen ("conftest.val", "w");
25393 $ac_main_return (1);
25394 fprintf (f, "%d", (sizeof (bool)));
25400 rm -f "conftest$ac_exeext"
25401 if { (eval echo "$as_me:25401: \"$ac_link\"") >&5
25402 (eval $ac_link) 2>&5
25404 echo "$as_me:25404: \$? = $ac_status" >&5
25405 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25406 { (eval echo "$as_me:25406: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25409 echo "$as_me:25409: \$? = $ac_status" >&5
25410 (exit "$ac_status"); }; }; then
25411 ac_cv_sizeof_bool=`cat conftest.val`
25413 echo "$as_me: program exited with status $ac_status" >&5
25414 echo "$as_me: failed program was:" >&5
25415 cat "conftest.$ac_ext" >&5
25417 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25422 ac_cv_sizeof_bool=0
25425 echo "$as_me:25425: result: $ac_cv_sizeof_bool" >&5
25426 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
25427 cat >>confdefs.h <<EOF
25428 #define SIZEOF_BOOL $ac_cv_sizeof_bool
25431 echo "$as_me:25431: checking for type of bool" >&5
25432 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
25433 if test "${cf_cv_type_of_bool+set}" = set; then
25434 echo $ECHO_N "(cached) $ECHO_C" >&6
25438 if test "$cross_compiling" = yes; then
25440 case x$ac_cv_sizeof_bool in
25441 (x1) cf_cv_type_of_bool="unsigned char";;
25442 (x2) cf_cv_type_of_bool="unsigned short";;
25443 (x4) cf_cv_type_of_bool="unsigned int";;
25444 (x8) cf_cv_type_of_bool="unsigned long";;
25445 (*) cf_cv_type_of_bool=unknown;;
25449 cat >"conftest.$ac_ext" <<_ACEOF
25450 #line 25450 "configure"
25451 #include "confdefs.h"
25453 #include <stdlib.h>
25456 #if defined(__cplusplus)
25458 #ifdef HAVE_GXX_BUILTIN_H
25459 #include <g++/builtin.h>
25460 #elif HAVE_GPP_BUILTIN_H
25461 #include <gpp/builtin.h>
25462 #elif HAVE_BUILTIN_H
25463 #include <builtin.h>
25468 #if $cf_cv_header_stdbool_h
25469 #include <stdbool.h>
25476 FILE *fp = fopen("cf_test.out", "w");
25479 if ((bool)(-x) >= 0)
25480 fputs("unsigned ", fp);
25481 if (sizeof(x) == sizeof(int)) fputs("int", fp);
25482 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
25483 else if (sizeof(x) == sizeof(short))fputs("short",fp);
25484 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
25487 ${cf_cv_main_return:-return}(0);
25491 rm -f "conftest$ac_exeext"
25492 if { (eval echo "$as_me:25492: \"$ac_link\"") >&5
25493 (eval $ac_link) 2>&5
25495 echo "$as_me:25495: \$? = $ac_status" >&5
25496 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25497 { (eval echo "$as_me:25497: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25500 echo "$as_me:25500: \$? = $ac_status" >&5
25501 (exit "$ac_status"); }; }; then
25502 cf_cv_type_of_bool=`cat cf_test.out`
25503 if test -z "$cf_cv_type_of_bool"; then
25504 cf_cv_type_of_bool=unknown
25507 echo "$as_me: program exited with status $ac_status" >&5
25508 echo "$as_me: failed program was:" >&5
25509 cat "conftest.$ac_ext" >&5
25510 cf_cv_type_of_bool=unknown
25512 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25517 echo "$as_me:25517: result: $cf_cv_type_of_bool" >&5
25518 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
25520 if test "$cf_cv_type_of_bool" = unknown ; then
25521 case .$NCURSES_BOOL in
25522 (.auto|.) NCURSES_BOOL=unsigned;;
25524 { echo "$as_me:25524: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
25525 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
25526 cf_cv_type_of_bool=$NCURSES_BOOL
25529 echo "$as_me:25529: checking for special defines needed for etip.h" >&5
25530 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
25531 cf_save_CXXFLAGS="$CXXFLAGS"
25534 # etip.h includes ncurses.h which includes ncurses_dll.h
25535 # But ncurses_dll.h is generated - fix here.
25536 test -d include || mkdir include
25537 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
25539 for cf_math in "" MATH_H
25541 for cf_excp in "" MATH_EXCEPTION
25543 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
25544 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
25545 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
25546 cat >"conftest.$ac_ext" <<_ACEOF
25547 #line 25547 "configure"
25548 #include "confdefs.h"
25550 #include <etip.h.in>
25560 rm -f "conftest.$ac_objext"
25561 if { (eval echo "$as_me:25561: \"$ac_compile\"") >&5
25562 (eval $ac_compile) 2>&5
25564 echo "$as_me:25564: \$? = $ac_status" >&5
25565 (exit "$ac_status"); } &&
25566 { ac_try='test -s "conftest.$ac_objext"'
25567 { (eval echo "$as_me:25567: \"$ac_try\"") >&5
25568 (eval $ac_try) 2>&5
25570 echo "$as_me:25570: \$? = $ac_status" >&5
25571 (exit "$ac_status"); }; }; then
25573 test -n "$cf_math" && cat >>confdefs.h <<EOF
25574 #define ETIP_NEEDS_${cf_math} 1
25577 test -n "$cf_excp" && cat >>confdefs.h <<EOF
25578 #define ETIP_NEEDS_${cf_excp} 1
25581 cf_result="$cf_math $cf_excp"
25585 echo "$as_me: failed program was:" >&5
25586 cat "conftest.$ac_ext" >&5
25588 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25591 echo "$as_me:25591: result: $cf_result" >&5
25592 echo "${ECHO_T}$cf_result" >&6
25593 CXXFLAGS="$cf_save_CXXFLAGS"
25595 if test -n "$CXX"; then
25596 echo "$as_me:25596: checking if $CXX accepts parameter initialization" >&5
25597 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
25598 if test "${cf_cv_cpp_param_init+set}" = set; then
25599 echo $ECHO_N "(cached) $ECHO_C" >&6
25603 ac_cpp='$CXXCPP $CPPFLAGS'
25604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25605 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25607 ac_main_return="return"
25609 if test "$cross_compiling" = yes; then
25610 cf_cv_cpp_param_init=unknown
25612 cat >"conftest.$ac_ext" <<_ACEOF
25613 #line 25613 "configure"
25614 #include "confdefs.h"
25624 TEST::TEST(int x = 1) // some compilers do not like second initializer
25631 rm -f "conftest$ac_exeext"
25632 if { (eval echo "$as_me:25632: \"$ac_link\"") >&5
25633 (eval $ac_link) 2>&5
25635 echo "$as_me:25635: \$? = $ac_status" >&5
25636 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25637 { (eval echo "$as_me:25637: \"$ac_try\"") >&5
25638 (eval $ac_try) 2>&5
25640 echo "$as_me:25640: \$? = $ac_status" >&5
25641 (exit "$ac_status"); }; }; then
25642 cf_cv_cpp_param_init=yes
25644 echo "$as_me: program exited with status $ac_status" >&5
25645 echo "$as_me: failed program was:" >&5
25646 cat "conftest.$ac_ext" >&5
25647 cf_cv_cpp_param_init=no
25649 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25652 ac_cpp='$CXXCPP $CPPFLAGS'
25653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25654 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25656 ac_main_return="return"
25659 echo "$as_me:25659: result: $cf_cv_cpp_param_init" >&5
25660 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
25662 test "$cf_cv_cpp_param_init" = yes &&
25663 cat >>confdefs.h <<\EOF
25664 #define CPP_HAS_PARAM_INIT 1
25667 if test -n "$CXX"; then
25669 echo "$as_me:25669: checking if $CXX accepts static_cast" >&5
25670 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
25671 if test "${cf_cv_cpp_static_cast+set}" = set; then
25672 echo $ECHO_N "(cached) $ECHO_C" >&6
25676 ac_cpp='$CXXCPP $CPPFLAGS'
25677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25678 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25680 ac_main_return="return"
25682 cat >"conftest.$ac_ext" <<_ACEOF
25683 #line 25683 "configure"
25684 #include "confdefs.h"
25689 NCursesPanel(int nlines,
25699 template<class T> class NCursesUserPanel : public NCursesPanel
25702 NCursesUserPanel (int nlines,
25706 const T* p_UserData = static_cast<T*>(0))
25707 : NCursesPanel (nlines, ncols, begin_y, begin_x)
25710 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
25714 virtual ~NCursesUserPanel() {};
25721 const char* p_UserData = static_cast<char*>(0)
25726 rm -f "conftest.$ac_objext"
25727 if { (eval echo "$as_me:25727: \"$ac_compile\"") >&5
25728 (eval $ac_compile) 2>&5
25730 echo "$as_me:25730: \$? = $ac_status" >&5
25731 (exit "$ac_status"); } &&
25732 { ac_try='test -s "conftest.$ac_objext"'
25733 { (eval echo "$as_me:25733: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25736 echo "$as_me:25736: \$? = $ac_status" >&5
25737 (exit "$ac_status"); }; }; then
25738 cf_cv_cpp_static_cast=yes
25740 echo "$as_me: failed program was:" >&5
25741 cat "conftest.$ac_ext" >&5
25742 cf_cv_cpp_static_cast=no
25744 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25747 ac_cpp='$CXXCPP $CPPFLAGS'
25748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25749 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25751 ac_main_return="return"
25754 echo "$as_me:25754: result: $cf_cv_cpp_static_cast" >&5
25755 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
25759 test "$cf_cv_cpp_static_cast" = yes &&
25760 cat >>confdefs.h <<\EOF
25761 #define CPP_HAS_STATIC_CAST 1
25765 CXX_ARFLAGS='$(ARFLAGS)'
25766 case "$cf_cv_system_name" in
25768 if test "$GXX" != yes ; then
25770 CXX_ARFLAGS='-ar -o'
25774 CXXLDFLAGS="-u main"
25777 if test "$GXX" != yes ; then
25779 CXX_ARFLAGS='-xar -o'
25786 cf_cv_builtin_bool=1
25788 # Just because we are not configuring against C++ right now does not
25789 # mean that a user will not want to use C++. Some distributors disable
25790 # the C++ portion of this configuration as a shortcut (or just to avoid
25791 # compiling the demo in the c++ directory). So we need a reasonable
25792 # default for the 'bool' type.
25794 # Caveat: since the storage of the bool type is not standardized, it
25797 if test "$NCURSES_BOOL" != auto ; then
25798 cf_cv_type_of_bool=$NCURSES_BOOL
25799 cf_cv_header_stdbool_h=0
25801 if test "$cf_cv_header_stdbool_h" = 1 ; then
25803 echo "$as_me:25803: checking for bool" >&5
25804 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25805 if test "${ac_cv_type_bool+set}" = set; then
25806 echo $ECHO_N "(cached) $ECHO_C" >&6
25808 cat >"conftest.$ac_ext" <<_ACEOF
25809 #line 25809 "configure"
25810 #include "confdefs.h"
25812 #include <stdlib.h>
25815 #if defined(__cplusplus)
25817 #ifdef HAVE_GXX_BUILTIN_H
25818 #include <g++/builtin.h>
25819 #elif HAVE_GPP_BUILTIN_H
25820 #include <gpp/builtin.h>
25821 #elif HAVE_BUILTIN_H
25822 #include <builtin.h>
25827 #if $cf_cv_header_stdbool_h
25828 #include <stdbool.h>
25844 rm -f "conftest.$ac_objext"
25845 if { (eval echo "$as_me:25845: \"$ac_compile\"") >&5
25846 (eval $ac_compile) 2>&5
25848 echo "$as_me:25848: \$? = $ac_status" >&5
25849 (exit "$ac_status"); } &&
25850 { ac_try='test -s "conftest.$ac_objext"'
25851 { (eval echo "$as_me:25851: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25854 echo "$as_me:25854: \$? = $ac_status" >&5
25855 (exit "$ac_status"); }; }; then
25856 ac_cv_type_bool=yes
25858 echo "$as_me: failed program was:" >&5
25859 cat "conftest.$ac_ext" >&5
25862 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25864 echo "$as_me:25864: result: $ac_cv_type_bool" >&5
25865 echo "${ECHO_T}$ac_cv_type_bool" >&6
25867 echo "$as_me:25867: checking size of bool" >&5
25868 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25869 if test "${ac_cv_sizeof_bool+set}" = set; then
25870 echo $ECHO_N "(cached) $ECHO_C" >&6
25872 if test "$ac_cv_type_bool" = yes; then
25873 if test "$cross_compiling" = yes; then
25874 # Depending upon the size, compute the lo and hi bounds.
25875 cat >"conftest.$ac_ext" <<_ACEOF
25876 #line 25876 "configure"
25877 #include "confdefs.h"
25879 #include <stdlib.h>
25882 #if defined(__cplusplus)
25884 #ifdef HAVE_GXX_BUILTIN_H
25885 #include <g++/builtin.h>
25886 #elif HAVE_GPP_BUILTIN_H
25887 #include <gpp/builtin.h>
25888 #elif HAVE_BUILTIN_H
25889 #include <builtin.h>
25894 #if $cf_cv_header_stdbool_h
25895 #include <stdbool.h>
25903 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
25908 rm -f "conftest.$ac_objext"
25909 if { (eval echo "$as_me:25909: \"$ac_compile\"") >&5
25910 (eval $ac_compile) 2>&5
25912 echo "$as_me:25912: \$? = $ac_status" >&5
25913 (exit "$ac_status"); } &&
25914 { ac_try='test -s "conftest.$ac_objext"'
25915 { (eval echo "$as_me:25915: \"$ac_try\"") >&5
25916 (eval $ac_try) 2>&5
25918 echo "$as_me:25918: \$? = $ac_status" >&5
25919 (exit "$ac_status"); }; }; then
25922 cat >"conftest.$ac_ext" <<_ACEOF
25923 #line 25923 "configure"
25924 #include "confdefs.h"
25926 #include <stdlib.h>
25929 #if defined(__cplusplus)
25931 #ifdef HAVE_GXX_BUILTIN_H
25932 #include <g++/builtin.h>
25933 #elif HAVE_GPP_BUILTIN_H
25934 #include <gpp/builtin.h>
25935 #elif HAVE_BUILTIN_H
25936 #include <builtin.h>
25941 #if $cf_cv_header_stdbool_h
25942 #include <stdbool.h>
25950 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25955 rm -f "conftest.$ac_objext"
25956 if { (eval echo "$as_me:25956: \"$ac_compile\"") >&5
25957 (eval $ac_compile) 2>&5
25959 echo "$as_me:25959: \$? = $ac_status" >&5
25960 (exit "$ac_status"); } &&
25961 { ac_try='test -s "conftest.$ac_objext"'
25962 { (eval echo "$as_me:25962: \"$ac_try\"") >&5
25963 (eval $ac_try) 2>&5
25965 echo "$as_me:25965: \$? = $ac_status" >&5
25966 (exit "$ac_status"); }; }; then
25967 ac_hi=$ac_mid; break
25969 echo "$as_me: failed program was:" >&5
25970 cat "conftest.$ac_ext" >&5
25971 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
25973 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25976 echo "$as_me: failed program was:" >&5
25977 cat "conftest.$ac_ext" >&5
25980 cat >"conftest.$ac_ext" <<_ACEOF
25981 #line 25981 "configure"
25982 #include "confdefs.h"
25984 #include <stdlib.h>
25987 #if defined(__cplusplus)
25989 #ifdef HAVE_GXX_BUILTIN_H
25990 #include <g++/builtin.h>
25991 #elif HAVE_GPP_BUILTIN_H
25992 #include <gpp/builtin.h>
25993 #elif HAVE_BUILTIN_H
25994 #include <builtin.h>
25999 #if $cf_cv_header_stdbool_h
26000 #include <stdbool.h>
26008 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26013 rm -f "conftest.$ac_objext"
26014 if { (eval echo "$as_me:26014: \"$ac_compile\"") >&5
26015 (eval $ac_compile) 2>&5
26017 echo "$as_me:26017: \$? = $ac_status" >&5
26018 (exit "$ac_status"); } &&
26019 { ac_try='test -s "conftest.$ac_objext"'
26020 { (eval echo "$as_me:26020: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26023 echo "$as_me:26023: \$? = $ac_status" >&5
26024 (exit "$ac_status"); }; }; then
26025 ac_lo=$ac_mid; break
26027 echo "$as_me: failed program was:" >&5
26028 cat "conftest.$ac_ext" >&5
26029 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26031 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26034 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26035 # Binary search between lo and hi bounds.
26036 while test "x$ac_lo" != "x$ac_hi"; do
26037 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26038 cat >"conftest.$ac_ext" <<_ACEOF
26039 #line 26039 "configure"
26040 #include "confdefs.h"
26042 #include <stdlib.h>
26045 #if defined(__cplusplus)
26047 #ifdef HAVE_GXX_BUILTIN_H
26048 #include <g++/builtin.h>
26049 #elif HAVE_GPP_BUILTIN_H
26050 #include <gpp/builtin.h>
26051 #elif HAVE_BUILTIN_H
26052 #include <builtin.h>
26057 #if $cf_cv_header_stdbool_h
26058 #include <stdbool.h>
26066 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26071 rm -f "conftest.$ac_objext"
26072 if { (eval echo "$as_me:26072: \"$ac_compile\"") >&5
26073 (eval $ac_compile) 2>&5
26075 echo "$as_me:26075: \$? = $ac_status" >&5
26076 (exit "$ac_status"); } &&
26077 { ac_try='test -s "conftest.$ac_objext"'
26078 { (eval echo "$as_me:26078: \"$ac_try\"") >&5
26079 (eval $ac_try) 2>&5
26081 echo "$as_me:26081: \$? = $ac_status" >&5
26082 (exit "$ac_status"); }; }; then
26085 echo "$as_me: failed program was:" >&5
26086 cat "conftest.$ac_ext" >&5
26087 ac_lo=`expr "$ac_mid" + 1`
26089 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26091 ac_cv_sizeof_bool=$ac_lo
26093 if test "$cross_compiling" = yes; then
26094 { { echo "$as_me:26094: error: cannot run test program while cross compiling" >&5
26095 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26096 { (exit 1); exit 1; }; }
26098 cat >"conftest.$ac_ext" <<_ACEOF
26099 #line 26099 "configure"
26100 #include "confdefs.h"
26102 #include <stdlib.h>
26105 #if defined(__cplusplus)
26107 #ifdef HAVE_GXX_BUILTIN_H
26108 #include <g++/builtin.h>
26109 #elif HAVE_GPP_BUILTIN_H
26110 #include <gpp/builtin.h>
26111 #elif HAVE_BUILTIN_H
26112 #include <builtin.h>
26117 #if $cf_cv_header_stdbool_h
26118 #include <stdbool.h>
26126 FILE *f = fopen ("conftest.val", "w");
26128 $ac_main_return (1);
26129 fprintf (f, "%d", (sizeof (bool)));
26135 rm -f "conftest$ac_exeext"
26136 if { (eval echo "$as_me:26136: \"$ac_link\"") >&5
26137 (eval $ac_link) 2>&5
26139 echo "$as_me:26139: \$? = $ac_status" >&5
26140 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26141 { (eval echo "$as_me:26141: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26144 echo "$as_me:26144: \$? = $ac_status" >&5
26145 (exit "$ac_status"); }; }; then
26146 ac_cv_sizeof_bool=`cat conftest.val`
26148 echo "$as_me: program exited with status $ac_status" >&5
26149 echo "$as_me: failed program was:" >&5
26150 cat "conftest.$ac_ext" >&5
26152 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26157 ac_cv_sizeof_bool=0
26160 echo "$as_me:26160: result: $ac_cv_sizeof_bool" >&5
26161 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26162 cat >>confdefs.h <<EOF
26163 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26166 echo "$as_me:26166: checking for type of bool" >&5
26167 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26168 if test "${cf_cv_type_of_bool+set}" = set; then
26169 echo $ECHO_N "(cached) $ECHO_C" >&6
26173 if test "$cross_compiling" = yes; then
26175 case x$ac_cv_sizeof_bool in
26176 (x1) cf_cv_type_of_bool="unsigned char";;
26177 (x2) cf_cv_type_of_bool="unsigned short";;
26178 (x4) cf_cv_type_of_bool="unsigned int";;
26179 (x8) cf_cv_type_of_bool="unsigned long";;
26180 (*) cf_cv_type_of_bool=unknown;;
26184 cat >"conftest.$ac_ext" <<_ACEOF
26185 #line 26185 "configure"
26186 #include "confdefs.h"
26188 #include <stdlib.h>
26191 #if defined(__cplusplus)
26193 #ifdef HAVE_GXX_BUILTIN_H
26194 #include <g++/builtin.h>
26195 #elif HAVE_GPP_BUILTIN_H
26196 #include <gpp/builtin.h>
26197 #elif HAVE_BUILTIN_H
26198 #include <builtin.h>
26203 #if $cf_cv_header_stdbool_h
26204 #include <stdbool.h>
26211 FILE *fp = fopen("cf_test.out", "w");
26214 if ((bool)(-x) >= 0)
26215 fputs("unsigned ", fp);
26216 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26217 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26218 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26219 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26222 ${cf_cv_main_return:-return}(0);
26226 rm -f "conftest$ac_exeext"
26227 if { (eval echo "$as_me:26227: \"$ac_link\"") >&5
26228 (eval $ac_link) 2>&5
26230 echo "$as_me:26230: \$? = $ac_status" >&5
26231 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26232 { (eval echo "$as_me:26232: \"$ac_try\"") >&5
26233 (eval $ac_try) 2>&5
26235 echo "$as_me:26235: \$? = $ac_status" >&5
26236 (exit "$ac_status"); }; }; then
26237 cf_cv_type_of_bool=`cat cf_test.out`
26238 if test -z "$cf_cv_type_of_bool"; then
26239 cf_cv_type_of_bool=unknown
26242 echo "$as_me: program exited with status $ac_status" >&5
26243 echo "$as_me: failed program was:" >&5
26244 cat "conftest.$ac_ext" >&5
26245 cf_cv_type_of_bool=unknown
26247 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26252 echo "$as_me:26252: result: $cf_cv_type_of_bool" >&5
26253 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26255 if test "$cf_cv_type_of_bool" = unknown ; then
26256 case .$NCURSES_BOOL in
26257 (.auto|.) NCURSES_BOOL=unsigned;;
26259 { echo "$as_me:26259: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26260 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26261 cf_cv_type_of_bool=$NCURSES_BOOL
26265 echo "$as_me:26265: checking for fallback type of bool" >&5
26266 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
26267 case "$host_cpu" in
26268 (i?86) cf_cv_type_of_bool=char ;;
26269 (*) cf_cv_type_of_bool=int ;;
26271 echo "$as_me:26271: result: $cf_cv_type_of_bool" >&5
26272 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26277 # If the C compiler did not declare bool, and we did not determine that the C++
26278 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
26279 # ncurses library use the same type as C++ bool. Note that this allows one to
26280 # specify the type of bool in a configure-script option and postpone
26281 # integration with the C++ compiler provided that the types are compatible.
26283 if test "$cf_cv_cc_bool_type" = 1
26285 # oops: C has a bool. Unlikely, but C++ could differ.
26287 elif test "$cf_cv_builtin_bool" = 0
26292 # this is the normal case
26293 USE_CXX_BOOL='defined(__cplusplus)'
26296 if test -f "${srcdir}/Ada95/Makefile.in" ; then
26298 if test "$cf_with_ada" != "no" ; then
26299 if test "$with_libtool" != "no"; then
26300 { echo "$as_me:26300: WARNING: libtool does not support Ada - disabling feature" >&5
26301 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
26306 if test "$cf_with_ada" != "no" ; then
26308 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
26311 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26313 unset ac_cv_path_cf_TEMP_gnat
26315 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
26316 set dummy $cf_prog_gnat; ac_word=$2
26317 echo "$as_me:26317: checking for $ac_word" >&5
26318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26319 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26322 case $cf_TEMP_gnat in
26324 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
26327 ac_save_IFS=$IFS; IFS=$ac_path_separator
26329 for ac_dir in $ac_dummy; do
26331 test -z "$ac_dir" && ac_dir=.
26332 if $as_executable_p "$ac_dir/$ac_word"; then
26333 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
26334 echo "$as_me:26334: found $ac_dir/$ac_word" >&5
26339 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
26343 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
26345 if test -n "$cf_TEMP_gnat"; then
26346 echo "$as_me:26346: result: $cf_TEMP_gnat" >&5
26347 echo "${ECHO_T}$cf_TEMP_gnat" >&6
26349 echo "$as_me:26349: result: no" >&5
26350 echo "${ECHO_T}no" >&6
26353 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
26355 if test "x$cf_TEMP_gnat" != xno; then
26356 unset cf_cv_gnat_version
26359 echo "$as_me:26359: checking for $cf_prog_gnat version" >&5
26360 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
26361 if test "${cf_cv_gnat_version+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26365 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
26366 grep '[0-9].[0-9][0-9]*' |\
26367 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26370 echo "$as_me:26370: result: $cf_cv_gnat_version" >&5
26371 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26372 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26373 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
26376 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
26379 unset cf_cv_gnat_version
26380 unset ac_cv_path_cf_TEMP_gnat
26383 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
26385 cf_cv_prog_gnat_correct=no
26387 cf_ada_make=gnatmake
26388 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
26389 # gprconfig is newer than gnatmake; we can continue...
26392 rm -rf ./conftest* ./*~conftest*
26393 if mkdir conftest.src
26397 for cf_gprconfig in Ada C
26399 echo "$as_me:26399: checking for gprconfig name for $cf_gprconfig" >&5
26400 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
26401 if test "$cf_gprconfig" = C
26403 for cf_gprconfig_param in \
26404 "$cf_gprconfig,,,,GNATGCC" \
26405 "$cf_gprconfig,,,,GCC" \
26408 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26409 test -n "$cf_gprconfig_value" && break
26412 cf_gprconfig_param=$cf_gprconfig
26413 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26415 if test -n "$cf_gprconfig_value"
26417 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
26418 echo "$as_me:26418: result: $cf_gprconfig_value" >&5
26419 echo "${ECHO_T}$cf_gprconfig_value" >&6
26421 echo "$as_me:26421: result: missing" >&5
26422 echo "${ECHO_T}missing" >&6
26428 rm -rf ./conftest* ./*~conftest*
26431 if test "x$cf_ada_config" != "x#"
26434 echo "$as_me:26434: checking for gnat version" >&5
26435 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
26436 if test "${cf_cv_gnat_version+set}" = set; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26440 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
26441 grep '[0-9].[0-9][0-9]*' |\
26442 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26445 echo "$as_me:26445: result: $cf_cv_gnat_version" >&5
26446 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26447 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26449 case "$cf_cv_gnat_version" in
26450 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26451 cf_cv_prog_gnat_correct=yes
26454 { echo "$as_me:26454: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
26455 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
26456 cf_cv_prog_gnat_correct=no
26460 # Extract the first word of "m4", so it can be a program name with args.
26461 set dummy m4; ac_word=$2
26462 echo "$as_me:26462: checking for $ac_word" >&5
26463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26464 if test "${ac_cv_prog_M4_exists+set}" = set; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 if test -n "$M4_exists"; then
26468 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
26470 ac_save_IFS=$IFS; IFS=$ac_path_separator
26472 for ac_dir in $ac_dummy; do
26474 test -z "$ac_dir" && ac_dir=.
26475 $as_executable_p "$ac_dir/$ac_word" || continue
26476 ac_cv_prog_M4_exists="yes"
26477 echo "$as_me:26477: found $ac_dir/$ac_word" >&5
26481 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
26484 M4_exists=$ac_cv_prog_M4_exists
26485 if test -n "$M4_exists"; then
26486 echo "$as_me:26486: result: $M4_exists" >&5
26487 echo "${ECHO_T}$M4_exists" >&6
26489 echo "$as_me:26489: result: no" >&5
26490 echo "${ECHO_T}no" >&6
26493 if test "$ac_cv_prog_M4_exists" = no; then
26494 cf_cv_prog_gnat_correct=no
26495 { echo "$as_me:26495: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
26496 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
26498 if test "$cf_cv_prog_gnat_correct" = yes; then
26499 echo "$as_me:26499: checking if GNAT works" >&5
26500 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
26502 rm -rf ./conftest* ./*~conftest*
26503 cat >>conftest.ads <<CF_EOF
26504 procedure conftest;
26506 cat >>conftest.adb <<CF_EOF
26509 procedure conftest is
26511 Text_IO.Put ("Hello World");
26513 GNAT.OS_Lib.OS_Exit (0);
26516 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26517 if ( ./conftest 1>&5 2>&1 ) ; then
26518 cf_cv_prog_gnat_correct=yes
26520 cf_cv_prog_gnat_correct=no
26523 cf_cv_prog_gnat_correct=no
26525 rm -rf ./conftest* ./*~conftest*
26527 echo "$as_me:26527: result: $cf_cv_prog_gnat_correct" >&5
26528 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
26531 cf_cv_prog_gnat_correct=no
26535 if test "x$cf_cv_prog_gnat_correct" = xyes; then
26537 ADAFLAGS="$ADAFLAGS -gnatpn"
26539 echo "$as_me:26539: checking optimization options for ADAFLAGS" >&5
26540 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
26544 ADAFLAGS="$ADAFLAGS -g"
26550 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
26552 ADAFLAGS="$ADAFLAGS $cf_O_flag"
26556 echo "$as_me:26556: result: $ADAFLAGS" >&5
26557 echo "${ECHO_T}$ADAFLAGS" >&6
26559 echo "$as_me:26559: checking if GNATPREP supports -T option" >&5
26560 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
26561 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
26562 echo $ECHO_N "(cached) $ECHO_C" >&6
26565 cf_cv_gnatprep_opt_t=no
26566 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
26569 echo "$as_me:26569: result: $cf_cv_gnatprep_opt_t" >&5
26570 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
26571 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
26573 echo "$as_me:26573: checking if GNAT supports generics" >&5
26574 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
26575 case "$cf_cv_gnat_version" in
26576 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26577 cf_gnat_generics=yes
26580 cf_gnat_generics=no
26583 echo "$as_me:26583: result: $cf_gnat_generics" >&5
26584 echo "${ECHO_T}$cf_gnat_generics" >&6
26586 if test "$cf_gnat_generics" = yes
26588 cf_compile_generics=generics
26589 cf_generic_objects="\${GENOBJS}"
26591 cf_compile_generics=
26592 cf_generic_objects=
26595 echo "$as_me:26595: checking if GNAT supports SIGINT" >&5
26596 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
26597 if test "${cf_cv_gnat_sigint+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26601 rm -rf ./conftest* ./*~conftest*
26602 cat >>conftest.ads <<CF_EOF
26603 with Ada.Interrupts.Names;
26605 package ConfTest is
26607 pragma Warnings (Off); -- the next pragma exists since 3.11p
26608 pragma Unreserve_All_Interrupts;
26609 pragma Warnings (On);
26611 protected Process is
26613 function Continue return Boolean;
26614 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
26616 Done : Boolean := False;
26621 cat >>conftest.adb <<CF_EOF
26622 package body ConfTest is
26623 protected body Process is
26628 function Continue return Boolean is
26635 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26636 cf_cv_gnat_sigint=yes
26638 cf_cv_gnat_sigint=no
26640 rm -rf ./conftest* ./*~conftest*
26643 echo "$as_me:26643: result: $cf_cv_gnat_sigint" >&5
26644 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
26646 if test "$cf_cv_gnat_sigint" = yes ; then
26649 USE_GNAT_SIGINT="#"
26652 cf_gnat_libraries=no
26653 cf_gnat_projects=no
26655 if test "$enable_gnat_projects" != no ; then
26656 echo "$as_me:26656: checking if GNAT supports project files" >&5
26657 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
26658 case "$cf_cv_gnat_version" in
26662 case "$cf_cv_system_name" in
26666 rm -rf ./conftest* ./*~conftest*
26667 if mkdir conftest.src conftest.bin conftest.lib
26670 rm -rf ./conftest* ./*~conftest*
26671 cat >>library.gpr <<CF_EOF
26673 Kind := External ("LIB_KIND");
26674 for Library_Name use "ConfTest";
26675 for Object_Dir use ".";
26676 for Library_ALI_Dir use External("LIBRARY_DIR");
26677 for Library_Version use External ("SONAME");
26678 for Library_Kind use Kind;
26679 for Library_Dir use External("BUILD_DIR");
26680 Source_Dir := External ("SOURCE_DIR");
26681 for Source_Dirs use (Source_Dir);
26684 cat >>confpackage.ads <<CF_EOF
26685 package ConfPackage is
26686 procedure conftest;
26689 cat >>confpackage.adb <<CF_EOF
26691 package body ConfPackage is
26692 procedure conftest is
26694 Text_IO.Put ("Hello World");
26699 if ( "$cf_ada_make" $ADAFLAGS \
26701 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
26702 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
26703 -XSOURCE_DIR="`pwd`" \
26704 -XSONAME=libConfTest.so.1 \
26705 -XLIB_KIND=static 1>&5 2>&1 ) ; then
26706 cf_gnat_projects=yes
26710 if test -f conftest.lib/confpackage.ali
26712 cf_gnat_libraries=yes
26714 rm -rf ./conftest* ./*~conftest*
26719 echo "$as_me:26719: result: $cf_gnat_projects" >&5
26720 echo "${ECHO_T}$cf_gnat_projects" >&6
26721 fi # enable_gnat_projects
26723 if test "$cf_gnat_projects" = yes
26725 echo "$as_me:26725: checking if GNAT supports libraries" >&5
26726 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
26727 echo "$as_me:26727: result: $cf_gnat_libraries" >&5
26728 echo "${ECHO_T}$cf_gnat_libraries" >&6
26731 USE_OLD_MAKERULES=""
26732 USE_GNAT_PROJECTS="#"
26733 USE_GNAT_MAKE_GPR="#"
26734 USE_GNAT_GPRBUILD="#"
26736 if test "$cf_gnat_projects" = yes
26738 USE_OLD_MAKERULES="#"
26739 USE_GNAT_PROJECTS=""
26740 if test "$cf_cv_VERSION_GPRBUILD" != no
26742 USE_GNAT_GPRBUILD=""
26743 elif test "$cf_cv_VERSION_GNATMAKE" != no
26745 USE_GNAT_MAKE_GPR=""
26747 { echo "$as_me:26747: WARNING: use old makefile rules since tools are missing" >&5
26748 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
26752 if test "$cf_gnat_libraries" = yes
26754 USE_GNAT_LIBRARIES=""
26756 USE_GNAT_LIBRARIES="#"
26759 echo "$as_me:26759: checking for ada-compiler" >&5
26760 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
26762 # Check whether --with-ada-compiler or --without-ada-compiler was given.
26763 if test "${with_ada_compiler+set}" = set; then
26764 withval="$with_ada_compiler"
26765 cf_ada_compiler=$withval
26767 cf_ada_compiler=gnatmake
26770 echo "$as_me:26770: result: $cf_ada_compiler" >&5
26771 echo "${ECHO_T}$cf_ada_compiler" >&6
26773 cf_ada_package=terminal_interface
26775 echo "$as_me:26775: checking for ada-include" >&5
26776 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
26778 # Check whether --with-ada-include or --without-ada-include was given.
26779 if test "${with_ada_include+set}" = set; then
26780 withval="$with_ada_include"
26783 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
26784 fi; if test -n "$prefix/share/ada/adainclude" ; then
26786 if test "x$prefix" != xNONE; then
26787 cf_path_syntax="$prefix"
26789 cf_path_syntax="$ac_default_prefix"
26792 case ".$withval" in
26793 (.\$\(*\)*|.\'*\'*)
26797 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
26799 (.\$\{*prefix\}*|.\$\{*dir\}*)
26800 eval withval="$withval"
26801 case ".$withval" in
26803 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
26808 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
26811 { { echo "$as_me:26811: error: expected a pathname, not \"$withval\"" >&5
26812 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
26813 { (exit 1); exit 1; }; }
26818 eval ADA_INCLUDE="$withval"
26820 echo "$as_me:26820: result: $ADA_INCLUDE" >&5
26821 echo "${ECHO_T}$ADA_INCLUDE" >&6
26823 echo "$as_me:26823: checking for ada-objects" >&5
26824 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
26826 # Check whether --with-ada-objects or --without-ada-objects was given.
26827 if test "${with_ada_objects+set}" = set; then
26828 withval="$with_ada_objects"
26831 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
26832 fi; if test -n "$prefix/lib/ada/adalib" ; then
26834 if test "x$prefix" != xNONE; then
26835 cf_path_syntax="$prefix"
26837 cf_path_syntax="$ac_default_prefix"
26840 case ".$withval" in
26841 (.\$\(*\)*|.\'*\'*)
26845 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
26847 (.\$\{*prefix\}*|.\$\{*dir\}*)
26848 eval withval="$withval"
26849 case ".$withval" in
26851 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
26856 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
26859 { { echo "$as_me:26859: error: expected a pathname, not \"$withval\"" >&5
26860 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
26861 { (exit 1); exit 1; }; }
26866 eval ADA_OBJECTS="$withval"
26868 echo "$as_me:26868: result: $ADA_OBJECTS" >&5
26869 echo "${ECHO_T}$ADA_OBJECTS" >&6
26871 echo "$as_me:26871: checking if an Ada95 shared-library should be built" >&5
26872 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
26874 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
26875 if test "${with_ada_sharedlib+set}" = set; then
26876 withval="$with_ada_sharedlib"
26877 with_ada_sharedlib=$withval
26879 with_ada_sharedlib=no
26881 echo "$as_me:26881: result: $with_ada_sharedlib" >&5
26882 echo "${ECHO_T}$with_ada_sharedlib" >&6
26884 if test "x$with_ada_sharedlib" != xno
26886 if test "x$cf_gnat_projects" != xyes
26888 { echo "$as_me:26888: WARNING: disabling shared-library since GNAT projects are not supported" >&5
26889 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
26890 with_ada_sharedlib=no
26894 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
26895 MAKE_ADA_SHAREDLIB="#"
26897 if test "x$with_ada_sharedlib" != xno
26899 MAKE_ADA_SHAREDLIB=
26900 if test "x$with_ada_sharedlib" != xyes
26902 ADA_SHAREDLIB="$with_ada_sharedlib"
26906 # allow the Ada binding to be renamed
26908 echo "$as_me:26908: checking for ada-libname" >&5
26909 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
26911 # Check whether --with-ada-libname or --without-ada-libname was given.
26912 if test "${with_ada_libname+set}" = set; then
26913 withval="$with_ada_libname"
26914 ADA_LIBNAME=$withval
26916 ADA_LIBNAME=AdaCurses
26918 case "x$ADA_LIBNAME" in
26920 ADA_LIBNAME=AdaCurses
26924 echo "$as_me:26924: result: $ADA_LIBNAME" >&5
26925 echo "${ECHO_T}$ADA_LIBNAME" >&6
26933 # do this "late" to avoid conflict with header-checks
26934 if test "x$with_widec" = xyes ; then
26935 echo "$as_me:26935: checking for wchar_t" >&5
26936 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
26937 if test "${ac_cv_type_wchar_t+set}" = set; then
26938 echo $ECHO_N "(cached) $ECHO_C" >&6
26940 cat >"conftest.$ac_ext" <<_ACEOF
26941 #line 26941 "configure"
26942 #include "confdefs.h"
26943 $ac_includes_default
26949 if (sizeof (wchar_t))
26955 rm -f "conftest.$ac_objext"
26956 if { (eval echo "$as_me:26956: \"$ac_compile\"") >&5
26957 (eval $ac_compile) 2>&5
26959 echo "$as_me:26959: \$? = $ac_status" >&5
26960 (exit "$ac_status"); } &&
26961 { ac_try='test -s "conftest.$ac_objext"'
26962 { (eval echo "$as_me:26962: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26965 echo "$as_me:26965: \$? = $ac_status" >&5
26966 (exit "$ac_status"); }; }; then
26967 ac_cv_type_wchar_t=yes
26969 echo "$as_me: failed program was:" >&5
26970 cat "conftest.$ac_ext" >&5
26971 ac_cv_type_wchar_t=no
26973 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26975 echo "$as_me:26975: result: $ac_cv_type_wchar_t" >&5
26976 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
26978 echo "$as_me:26978: checking size of wchar_t" >&5
26979 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
26980 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26983 if test "$ac_cv_type_wchar_t" = yes; then
26984 if test "$cross_compiling" = yes; then
26985 # Depending upon the size, compute the lo and hi bounds.
26986 cat >"conftest.$ac_ext" <<_ACEOF
26987 #line 26987 "configure"
26988 #include "confdefs.h"
26989 $ac_includes_default
26993 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
26998 rm -f "conftest.$ac_objext"
26999 if { (eval echo "$as_me:26999: \"$ac_compile\"") >&5
27000 (eval $ac_compile) 2>&5
27002 echo "$as_me:27002: \$? = $ac_status" >&5
27003 (exit "$ac_status"); } &&
27004 { ac_try='test -s "conftest.$ac_objext"'
27005 { (eval echo "$as_me:27005: \"$ac_try\"") >&5
27006 (eval $ac_try) 2>&5
27008 echo "$as_me:27008: \$? = $ac_status" >&5
27009 (exit "$ac_status"); }; }; then
27012 cat >"conftest.$ac_ext" <<_ACEOF
27013 #line 27013 "configure"
27014 #include "confdefs.h"
27015 $ac_includes_default
27019 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27024 rm -f "conftest.$ac_objext"
27025 if { (eval echo "$as_me:27025: \"$ac_compile\"") >&5
27026 (eval $ac_compile) 2>&5
27028 echo "$as_me:27028: \$? = $ac_status" >&5
27029 (exit "$ac_status"); } &&
27030 { ac_try='test -s "conftest.$ac_objext"'
27031 { (eval echo "$as_me:27031: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27034 echo "$as_me:27034: \$? = $ac_status" >&5
27035 (exit "$ac_status"); }; }; then
27036 ac_hi=$ac_mid; break
27038 echo "$as_me: failed program was:" >&5
27039 cat "conftest.$ac_ext" >&5
27040 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27042 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27045 echo "$as_me: failed program was:" >&5
27046 cat "conftest.$ac_ext" >&5
27049 cat >"conftest.$ac_ext" <<_ACEOF
27050 #line 27050 "configure"
27051 #include "confdefs.h"
27052 $ac_includes_default
27056 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
27061 rm -f "conftest.$ac_objext"
27062 if { (eval echo "$as_me:27062: \"$ac_compile\"") >&5
27063 (eval $ac_compile) 2>&5
27065 echo "$as_me:27065: \$? = $ac_status" >&5
27066 (exit "$ac_status"); } &&
27067 { ac_try='test -s "conftest.$ac_objext"'
27068 { (eval echo "$as_me:27068: \"$ac_try\"") >&5
27069 (eval $ac_try) 2>&5
27071 echo "$as_me:27071: \$? = $ac_status" >&5
27072 (exit "$ac_status"); }; }; then
27073 ac_lo=$ac_mid; break
27075 echo "$as_me: failed program was:" >&5
27076 cat "conftest.$ac_ext" >&5
27077 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27079 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27082 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27083 # Binary search between lo and hi bounds.
27084 while test "x$ac_lo" != "x$ac_hi"; do
27085 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27086 cat >"conftest.$ac_ext" <<_ACEOF
27087 #line 27087 "configure"
27088 #include "confdefs.h"
27089 $ac_includes_default
27093 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27098 rm -f "conftest.$ac_objext"
27099 if { (eval echo "$as_me:27099: \"$ac_compile\"") >&5
27100 (eval $ac_compile) 2>&5
27102 echo "$as_me:27102: \$? = $ac_status" >&5
27103 (exit "$ac_status"); } &&
27104 { ac_try='test -s "conftest.$ac_objext"'
27105 { (eval echo "$as_me:27105: \"$ac_try\"") >&5
27106 (eval $ac_try) 2>&5
27108 echo "$as_me:27108: \$? = $ac_status" >&5
27109 (exit "$ac_status"); }; }; then
27112 echo "$as_me: failed program was:" >&5
27113 cat "conftest.$ac_ext" >&5
27114 ac_lo=`expr "$ac_mid" + 1`
27116 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27118 ac_cv_sizeof_wchar_t=$ac_lo
27120 if test "$cross_compiling" = yes; then
27121 { { echo "$as_me:27121: error: cannot run test program while cross compiling" >&5
27122 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27123 { (exit 1); exit 1; }; }
27125 cat >"conftest.$ac_ext" <<_ACEOF
27126 #line 27126 "configure"
27127 #include "confdefs.h"
27128 $ac_includes_default
27132 FILE *f = fopen ("conftest.val", "w");
27134 $ac_main_return (1);
27135 fprintf (f, "%d", (sizeof (wchar_t)));
27141 rm -f "conftest$ac_exeext"
27142 if { (eval echo "$as_me:27142: \"$ac_link\"") >&5
27143 (eval $ac_link) 2>&5
27145 echo "$as_me:27145: \$? = $ac_status" >&5
27146 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27147 { (eval echo "$as_me:27147: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27150 echo "$as_me:27150: \$? = $ac_status" >&5
27151 (exit "$ac_status"); }; }; then
27152 ac_cv_sizeof_wchar_t=`cat conftest.val`
27154 echo "$as_me: program exited with status $ac_status" >&5
27155 echo "$as_me: failed program was:" >&5
27156 cat "conftest.$ac_ext" >&5
27158 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27163 ac_cv_sizeof_wchar_t=0
27166 echo "$as_me:27166: result: $ac_cv_sizeof_wchar_t" >&5
27167 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
27168 cat >>confdefs.h <<EOF
27169 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
27172 # cross-compiling to mingw can run into the problem that attempting to
27173 # link with the regex library fails, causing the test to not set this to
27174 # a number. "recent" autoconf does not address this problem either -TD
27175 if test -z "$ac_cv_sizeof_wchar_t"
27177 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
27179 echo "${as_me:-configure}:27179: testing test failed (assume 2) ..." 1>&5
27181 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
27182 mv confdefs.tmp confdefs.h
27183 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
27187 ### Construct the ncurses library-subsets, if any, from this set of keywords:
27188 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
27190 ### ticlib modules may be a separate library, otherwise contained in termlib.
27191 ### termlib modules may be a separate library, otherwise contained in ncurses.
27193 ### The of "+" or " " between the tokens controls the way the script
27194 ### chooses to split module lists into libraries.
27196 ### (see CF_LIB_RULES).
27197 echo "$as_me:27197: checking for library subsets" >&5
27198 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
27201 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
27202 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
27203 if test "$with_ticlib" != no ; then
27204 LIB_SUBSETS="${LIB_SUBSETS} "
27206 LIB_SUBSETS="${LIB_SUBSETS}+"
27210 LIB_SUBSETS="${LIB_SUBSETS}termlib"
27211 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
27213 if test "$with_termlib" != no ; then
27214 LIB_SUBSETS="${LIB_SUBSETS} "
27216 LIB_SUBSETS="${LIB_SUBSETS}+"
27219 LIB_SUBSETS="${LIB_SUBSETS}base"
27221 # Most term-driver calls are to tinfo, but some like init_pair are to the
27222 # base library (so it resides in base).
27223 if test "$with_term_driver" != no ; then
27224 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
27225 case "$cf_cv_system_name" in
27226 (*mingw32*|*mingw64*)
27227 if test "x$with_exp_win32" = xyes ; then
27228 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
27230 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
27232 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
27235 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
27238 elif test "x$with_exp_win32" = xyes ; then
27239 case "$cf_cv_system_name" in
27240 (*mingw32*|*mingw64*)
27241 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
27248 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
27249 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
27251 echo "$as_me:27251: result: $LIB_SUBSETS" >&5
27252 echo "${ECHO_T}$LIB_SUBSETS" >&6
27254 ### Construct the list of include-directories to be generated
27256 if test "$srcdir" != "."; then
27257 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
27259 CPPFLAGS="-I../include $CPPFLAGS"
27260 if test "$srcdir" != "."; then
27261 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
27263 CPPFLAGS="-I. $CPPFLAGS"
27265 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
27266 if test "$srcdir" != "."; then
27267 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
27269 if test "$GCC" != yes; then
27270 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27271 elif test "$includedir" != "/usr/include"; then
27272 if test "$includedir" = '${prefix}/include' ; then
27273 if test x$prefix != x/usr ; then
27274 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27277 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27281 ### Build up pieces for makefile rules
27282 echo "$as_me:27282: checking default library suffix" >&5
27283 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
27285 case $DFT_LWR_MODEL in
27286 (libtool) DFT_ARG_SUFFIX='' ;;
27287 (normal) DFT_ARG_SUFFIX='' ;;
27288 (debug) DFT_ARG_SUFFIX='_g' ;;
27289 (profile) DFT_ARG_SUFFIX='_p' ;;
27290 (shared) DFT_ARG_SUFFIX='' ;;
27292 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
27293 echo "$as_me:27293: result: $DFT_ARG_SUFFIX" >&5
27294 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
27296 echo "$as_me:27296: checking default library-dependency suffix" >&5
27297 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
27299 case X$DFT_LWR_MODEL in
27301 DFT_LIB_SUFFIX='.la'
27302 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27305 case "$cf_cv_system_name" in
27307 DFT_LIB_SUFFIX='_g.lib'
27310 DFT_LIB_SUFFIX='_g.a'
27313 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27316 case "$cf_cv_system_name" in
27318 DFT_LIB_SUFFIX='_p.lib'
27321 DFT_LIB_SUFFIX='_p.a'
27324 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27327 case "$cf_cv_system_name" in
27329 DFT_LIB_SUFFIX='.so'
27330 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27333 DFT_LIB_SUFFIX='.dll'
27334 DFT_DEP_SUFFIX='.dll.lib'
27336 (cygwin*|msys*|mingw*)
27337 DFT_LIB_SUFFIX='.dll'
27338 DFT_DEP_SUFFIX='.dll.a'
27341 DFT_LIB_SUFFIX='.dylib'
27342 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27347 DFT_LIB_SUFFIX='.so'
27348 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27351 DFT_LIB_SUFFIX='.sl'
27352 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27357 DFT_LIB_SUFFIX='.so'
27358 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27365 DFT_LIB_SUFFIX='.lib'
27368 DFT_LIB_SUFFIX='.a'
27371 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27374 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27376 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
27377 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
27379 echo "$as_me:27379: result: $DFT_DEP_SUFFIX" >&5
27380 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
27382 echo "$as_me:27382: checking default object directory" >&5
27383 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
27385 case $DFT_LWR_MODEL in
27386 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
27387 (normal) DFT_OBJ_SUBDIR='objects' ;;
27388 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
27389 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
27391 case "$cf_cv_system_name" in
27393 DFT_OBJ_SUBDIR='objects' ;;
27395 DFT_OBJ_SUBDIR='obj_s' ;;
27398 echo "$as_me:27398: result: $DFT_OBJ_SUBDIR" >&5
27399 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
27401 if test "x$cf_with_cxx" = xyes ; then
27402 echo "$as_me:27402: checking c++ library-dependency suffix" >&5
27403 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
27404 if test "$with_libtool" != "no"; then
27405 # libtool thinks it can make c++ shared libraries (perhaps only g++)
27406 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27407 elif test "$with_shared_cxx" != "no"; then
27408 # also for g++ users...
27409 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27411 # we normally make a static library because C/C++ library rules differ
27415 CXX_LIB_SUFFIX='.la'
27416 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27419 case "$cf_cv_system_name" in
27421 CXX_LIB_SUFFIX='_g.lib'
27424 CXX_LIB_SUFFIX='_g.a'
27427 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27430 case "$cf_cv_system_name" in
27432 CXX_LIB_SUFFIX='_p.lib'
27435 CXX_LIB_SUFFIX='_p.a'
27438 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27441 case "$cf_cv_system_name" in
27443 CXX_LIB_SUFFIX='.so'
27444 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27447 CXX_LIB_SUFFIX='.dll'
27448 CXX_DEP_SUFFIX='.dll.lib'
27450 (cygwin*|msys*|mingw*)
27451 CXX_LIB_SUFFIX='.dll'
27452 CXX_DEP_SUFFIX='.dll.a'
27455 CXX_LIB_SUFFIX='.dylib'
27456 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27461 CXX_LIB_SUFFIX='.so'
27462 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27465 CXX_LIB_SUFFIX='.sl'
27466 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27471 CXX_LIB_SUFFIX='.so'
27472 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27479 CXX_LIB_SUFFIX='.lib'
27482 CXX_LIB_SUFFIX='.a'
27485 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27488 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27490 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
27491 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
27495 echo "$as_me:27495: result: $CXX_LIB_SUFFIX" >&5
27496 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
27500 # do not want -ldl in build except as needed for -lncurses dependency
27501 if test "x$with_dlsym" = xyes ; then
27502 if test "$DFT_LWR_MODEL" = shared || \
27503 test "$DFT_LWR_MODEL" = libtool ; then
27505 # remove dl library from $LIBS
27506 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27510 ### Set up low-level terminfo dependencies for makefiles.
27512 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
27513 # do not need libdl
27515 if test "x$with_dlsym" = xyes ; then
27517 # remove dl library from $SHLIB_LIST
27518 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27522 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
27523 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
27524 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
27525 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
27527 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
27530 if test "$with_ticlib" != no ; then
27532 if test "x$with_ticlib" != xyes ; then
27533 TICS_NAME=$with_ticlib
27534 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27535 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27536 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27537 TICS_LIB_SUFFIX="${with_ticlib}"
27539 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27540 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
27541 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
27542 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
27544 TICS_LDFLAGS="-L${LIB_DIR}"
27545 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
27547 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27548 TICS_LDFLAGS="-L${LIB_DIR}"
27549 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27552 if test "$with_termlib" != no ; then
27554 if test "x$with_termlib" != xyes ; then
27555 TINFO_NAME=$with_termlib
27556 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27557 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27558 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27559 TINFO_LIB_SUFFIX="${with_termlib}"
27561 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27562 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
27563 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
27564 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
27567 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
27568 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
27569 if test "$DFT_LWR_MODEL" = "libtool"; then
27570 TEST_ARGS="${TEST_DEPS}"
27571 TEST_ARG2="${TEST_DEP2}"
27572 TINFO_LDFLAGS="-L${LIB_DIR}"
27573 TINFO_LIBS="$TEST_ARGS"
27574 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
27575 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
27577 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
27578 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
27579 if test "x$with_term_driver" != xno ; then
27580 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
27581 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
27582 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
27584 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
27585 TINFO_LIBS="$TEST_ARGS"
27587 TINFO_LDFLAGS="-L${LIB_DIR}"
27588 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
27591 # the next lines are needed for linking libtic over libncurses
27592 TINFO_NAME=${LIB_NAME}
27593 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27594 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
27595 if test "x$with_tic_depends" = xyes ; then
27596 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
27598 TICS_LIST="$SHLIB_LIST"
27601 TINFO_LDFLAGS="-L${LIB_DIR}"
27602 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27605 if test "$DFT_LWR_MODEL" = shared ; then
27606 case "$cf_cv_system_name" in
27608 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
27614 if test "x$with_dlsym" = xyes ; then
27616 # remove dl library from $TICS_LIST
27617 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27621 if test "$DFT_LWR_MODEL" = "libtool"; then
27626 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
27628 case "$DFT_LWR_MODEL" in
27629 (normal|debug|profile)
27631 if test "$GCC" = yes ; then
27632 case "$cf_cv_system_name" in
27633 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
27637 (*) # normally, except when broken
27638 LDFLAGS_STATIC=-static
27639 LDFLAGS_SHARED=-dynamic
27643 case "$cf_cv_system_name" in
27644 (aix[4-7]*) # from ld manpage
27645 LDFLAGS_STATIC=-bstatic
27646 LDFLAGS_SHARED=-bdynamic
27648 (hpux*) # from ld manpage for hpux10.20, hpux11.11
27649 # We could also use just "archive" and "shared".
27650 LDFLAGS_STATIC=-Wl,-a,archive_shared
27651 LDFLAGS_SHARED=-Wl,-a,shared_archive
27653 (irix*) # from ld manpage IRIX64
27654 LDFLAGS_STATIC=-Bstatic
27655 LDFLAGS_SHARED=-Bdynamic
27657 (osf[45]*) # from ld manpage osf4.0d, osf5.1
27658 # alternative "-oldstyle_liblookup" (not in cc manpage)
27659 LDFLAGS_STATIC=-noso
27660 LDFLAGS_SHARED=-so_archive
27663 LDFLAGS_STATIC=-Bstatic
27664 LDFLAGS_SHARED=-Bdynamic
27669 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
27671 echo "$as_me:27671: checking if linker supports switching between static/dynamic" >&5
27672 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
27674 rm -f libconftest.a
27675 cat >conftest.$ac_ext <<EOF
27676 #line 27676 "configure"
27678 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
27680 if { (eval echo "$as_me:27680: \"$ac_compile\"") >&5
27681 (eval $ac_compile) 2>&5
27683 echo "$as_me:27683: \$? = $ac_status" >&5
27684 (exit "$ac_status"); } ; then
27685 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
27686 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
27690 cf_save_LIBS="$LIBS"
27692 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
27693 cat >"conftest.$ac_ext" <<_ACEOF
27694 #line 27694 "configure"
27695 #include "confdefs.h"
27697 #line 27697 "configure"
27699 int cf_ldflags_static(FILE *fp);
27705 return cf_ldflags_static(stdin);
27711 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
27712 if { (eval echo "$as_me:27712: \"$ac_link\"") >&5
27713 (eval $ac_link) 2>&5
27715 echo "$as_me:27715: \$? = $ac_status" >&5
27716 (exit "$ac_status"); } &&
27717 { ac_try='test -s "conftest$ac_exeext"'
27718 { (eval echo "$as_me:27718: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 echo "$as_me:27721: \$? = $ac_status" >&5
27722 (exit "$ac_status"); }; }; then
27724 # some linkers simply ignore the -dynamic
27725 case x`file "conftest$ac_exeext" 2>/dev/null` in
27727 cf_ldflags_static=no
27730 cf_ldflags_static=yes
27735 echo "$as_me: failed program was:" >&5
27736 cat "conftest.$ac_ext" >&5
27737 cf_ldflags_static=no
27739 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
27741 rm -f libconftest.*
27742 LIBS="$cf_save_LIBS"
27744 echo "$as_me:27744: result: $cf_ldflags_static" >&5
27745 echo "${ECHO_T}$cf_ldflags_static" >&6
27747 if test "$cf_ldflags_static" != yes
27760 echo "$as_me:27760: checking where we will install curses.h" >&5
27761 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
27764 if test "$with_overwrite" = no && \
27765 { test "x$includedir" = 'x${prefix}/include' || \
27766 test "x$includedir" = "x${prefix}/include"; }
27768 includesubdir="/ncurses${USE_LIB_SUFFIX}"
27770 echo "$as_me:27770: result: ${includedir}${includesubdir}" >&5
27771 echo "${ECHO_T}${includedir}${includesubdir}" >&6
27773 ### Resolve a conflict between normal and wide-curses by forcing applications
27774 ### that will need libutf8 to add it to their configure script.
27775 if test "$with_overwrite" != no ; then
27776 if test "$NCURSES_LIBUTF8" = 1 ; then
27777 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
27778 { echo "$as_me:27778: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
27779 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
27782 WITH_OVERWRITE=$with_overwrite
27784 ### At least on MinGW a shared library build without libtool
27785 ### requires adding the additional libs to the link list.
27786 case "$cf_cv_system_name" in
27787 (*mingw32*|*mingw64*)
27788 if test "$DFT_LWR_MODEL" != "libtool"; then
27789 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
27795 # used to separate tack out of the tree
27798 ### predefined stuff for the test programs
27800 cat >>confdefs.h <<\EOF
27801 #define HAVE_SLK_COLOR 1
27804 # pkgsrc uses these
27806 echo "$as_me:27806: checking for desired basename for form library" >&5
27807 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
27809 # Check whether --with-form-libname or --without-form-libname was given.
27810 if test "${with_form_libname+set}" = set; then
27811 withval="$with_form_libname"
27812 with_lib_basename=$withval
27814 with_lib_basename=form
27816 FORM_NAME="$with_lib_basename"
27818 case "x$FORM_NAME" in
27826 echo "$as_me:27826: result: $FORM_NAME" >&5
27827 echo "${ECHO_T}$FORM_NAME" >&6
27829 echo "$as_me:27829: checking for desired basename for menu library" >&5
27830 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
27832 # Check whether --with-menu-libname or --without-menu-libname was given.
27833 if test "${with_menu_libname+set}" = set; then
27834 withval="$with_menu_libname"
27835 with_lib_basename=$withval
27837 with_lib_basename=menu
27839 MENU_NAME="$with_lib_basename"
27841 case "x$MENU_NAME" in
27849 echo "$as_me:27849: result: $MENU_NAME" >&5
27850 echo "${ECHO_T}$MENU_NAME" >&6
27852 echo "$as_me:27852: checking for desired basename for panel library" >&5
27853 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
27855 # Check whether --with-panel-libname or --without-panel-libname was given.
27856 if test "${with_panel_libname+set}" = set; then
27857 withval="$with_panel_libname"
27858 with_lib_basename=$withval
27860 with_lib_basename=panel
27862 PANEL_NAME="$with_lib_basename"
27864 case "x$PANEL_NAME" in
27872 echo "$as_me:27872: result: $PANEL_NAME" >&5
27873 echo "${ECHO_T}$PANEL_NAME" >&6
27875 echo "$as_me:27875: checking for desired basename for cxx library" >&5
27876 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
27878 # Check whether --with-cxx-libname or --without-cxx-libname was given.
27879 if test "${with_cxx_libname+set}" = set; then
27880 withval="$with_cxx_libname"
27881 with_lib_basename=$withval
27883 with_lib_basename=ncurses++
27885 CXX_NAME="$with_lib_basename"
27887 case "x$CXX_NAME" in
27895 echo "$as_me:27895: result: $CXX_NAME" >&5
27896 echo "${ECHO_T}$CXX_NAME" >&6
27898 ### Construct the list of subdirectories for which we'll customize makefiles
27899 ### with the appropriate compile-rules.
27901 echo "$as_me:27901: checking for src modules" >&5
27902 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
27904 # dependencies and linker-arguments for test-programs
27905 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
27906 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
27907 if test "$DFT_LWR_MODEL" = "libtool"; then
27908 TEST_ARGS="${TEST_DEPS}"
27909 TEST_ARG2="${TEST_DEP2}"
27911 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
27912 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
27915 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
27917 for cf_dir in $modules_to_build
27919 if test -f "$srcdir/$cf_dir/modules" ; then
27921 # We may/may not have tack in the distribution, though the
27923 if test "$cf_dir" = tack ; then
27924 if test "x$cf_with_tack" != "xyes"; then
27929 if test -z "$cf_cv_src_modules"; then
27930 cf_cv_src_modules=$cf_dir
27932 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
27935 # Make the ncurses_cfg.h file record the library interface files as
27936 # well. These are header files that are the same name as their
27937 # directory. Ncurses is the only library that does not follow
27939 if test "$cf_dir" = tack ; then
27941 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
27943 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27945 cat >>confdefs.h <<EOF
27946 #define HAVE_${cf_have_include}_H 1
27949 cat >>confdefs.h <<EOF
27950 #define HAVE_LIB${cf_have_include} 1
27953 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27955 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
27957 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
27958 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
27959 if test "$DFT_LWR_MODEL" = "libtool"; then
27960 TEST_ARGS="${TEST_DEPS}"
27961 TEST_ARG2="${TEST_DEP2}"
27963 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
27964 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
27966 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
27970 echo "$as_me:27970: result: $cf_cv_src_modules" >&5
27971 echo "${ECHO_T}$cf_cv_src_modules" >&6
27973 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
27974 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
27977 if test "x$cf_with_manpages" != xno ; then
27978 SRC_SUBDIRS="$SRC_SUBDIRS man"
27980 SRC_SUBDIRS="$SRC_SUBDIRS include"
27981 for cf_dir in $cf_cv_src_modules
27983 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
27985 if test "x$cf_with_tests" != "xno" ; then
27986 SRC_SUBDIRS="$SRC_SUBDIRS test"
27988 # always make this, to install the ncurses-config script
27989 SRC_SUBDIRS="$SRC_SUBDIRS misc"
27990 if test "$cf_with_cxx_binding" != no; then
27991 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
27992 SRC_SUBDIRS="$SRC_SUBDIRS c++"
27995 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
27996 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
27999 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28000 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28001 ADA_SUBDIRS="gen src"
28002 if test "x$cf_with_tests" != "xno" ; then
28003 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28008 for cf_dir in $SRC_SUBDIRS
28010 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28013 if test -n "$ADA_SUBDIRS"; then
28014 for cf_dir in $ADA_SUBDIRS
28016 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28021 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28022 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28023 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28024 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28028 for cf_item in $cf_list_models
28032 (libtool) cf_subdir='obj_lo' ;;
28033 (normal) cf_subdir='objects' ;;
28034 (debug) cf_subdir='obj_g' ;;
28035 (profile) cf_subdir='obj_p' ;;
28037 case "$cf_cv_system_name" in
28039 cf_subdir='objects' ;;
28041 cf_subdir='obj_s' ;;
28045 for cf_item2 in $DIRS_TO_MAKE
28047 test "$cf_item2" = "$cf_subdir" && break
28049 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28051 for cf_dir in $DIRS_TO_MAKE
28053 test ! -d "$cf_dir" && mkdir "$cf_dir"
28056 # symbols that differ when compiling Ada95 by itself.
28057 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28059 # values to use as strings
28061 cat >>confdefs.h <<EOF
28062 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
28065 cat >>confdefs.h <<EOF
28066 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
28069 ### Define substitutions for header files to avoid name-pollution
28071 if test "x$cf_cv_have_tcgetattr" = xyes ; then
28077 if test "x$ac_cv_header_stdint_h" = xyes ; then
28083 if test "x$ac_cv_header_termio_h" = xyes ; then
28089 if test "x$ac_cv_header_termios_h" = xyes ; then
28095 ################################################################################
28096 test "x$use_database" = xyes && \
28097 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
28099 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
28100 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
28102 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
28103 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
28106 if test "x$cf_with_tests" != xno ; then
28112 ADAHTML_DIR=../../doc/html/ada
28114 # workaround for OS/2 (20151017)
28115 case "$cf_cv_system_name" in
28117 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
28124 # workaround for g++ versus Solaris (20131116)
28125 case "$cf_cv_system_name" in
28127 case "x$CPPFLAGS" in
28128 (*-D_XOPEN_SOURCE_EXTENDED*)
28129 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
28131 echo "${as_me:-configure}:28131: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
28133 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
28134 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
28140 # Help to automatically enable the extended curses features when using either
28141 # the *-config or the ".pc" files by adding defines.
28142 echo "$as_me:28142: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
28143 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
28145 for cf_loop1 in $CPPFLAGS_after_XOPEN
28148 for cf_loop2 in $CPPFLAGS_before_XOPEN
28150 if test "x$cf_loop1" = "x$cf_loop2"
28156 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
28158 echo "$as_me:28158: result: $PKG_CFLAGS" >&5
28159 echo "${ECHO_T}$PKG_CFLAGS" >&6
28161 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
28162 case "x$NCURSES_OSPEED" in
28171 cat >>confdefs.h <<EOF
28172 #define NCURSES_OSPEED_COMPAT $cf_compatible
28175 case "x$cf_cv_typeof_chtype" in
28176 (xshort|xint|xlong)
28177 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
28181 case "x$cf_cv_typeof_mmask_t" in
28182 (xshort|xint|xlong)
28183 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
28187 # substitute into misc/Makefile to suppress
28188 # (un)install.data from the
28189 # (un)install rules.
28190 if test "x$cf_with_db_install" = "xno"; then
28192 MISC_UNINSTALL_DATA=
28194 MISC_INSTALL_DATA=install.data
28195 MISC_UNINSTALL_DATA=uninstall.data
28198 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
28201 MAKE_DATABASE="$MAKE_TERMINFO"
28204 if test -n "$PACKAGE"
28206 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
28208 echo "package: $PACKAGE"
28214 if test -n "$RESULTING_SYMS"
28216 cf_filter_syms=$cf_dft_filter_syms
28217 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
28219 echo "${as_me:-configure}:28219: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
28223 if test "x$WILDCARD_SYMS" = xno
28228 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
28230 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
28231 if test "$cf_filter_syms" = yes
28233 RESULTING_SYMS=resulting.map
28236 if test "x$cross_compiling" = xyes ; then
28237 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
28240 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
28244 # This is used for the *-config script and *.pc data files.
28246 echo "$as_me:28246: checking for linker search path" >&5
28247 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
28248 if test "${cf_cv_ld_searchpath+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 if test "$cross_compiling" != yes ; then
28254 # GNU binutils' ld does not involve permissions which may stop ldconfig.
28255 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
28257 # The -NX options tell newer versions of Linux ldconfig to not attempt to
28258 # update the cache, which makes it run faster.
28259 test -z "$cf_pathlist" && \
28260 cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
28262 test -z "$cf_pathlist" &&
28263 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
28265 # This works with OpenBSD 6.5, which lists only filenames
28266 test -z "$cf_pathlist" &&
28267 cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
28269 if test -z "$cf_pathlist"
28271 # dyld default path with MacOS
28272 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
28274 # do this to bypass check
28275 cf_cv_ld_searchpath='$HOME/lib'
28276 cf_pathlist="/usr/local/lib /lib /usr/lib"
28280 if test -z "$cf_pathlist"
28282 # Solaris is hardcoded
28283 if test -d /opt/SUNWspro/lib
28285 cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
28286 elif test -d /usr/ccs/lib
28288 cf_pathlist="/usr/ccs/lib /usr/lib"
28294 # If nothing else, assume it is conventional
28295 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
28297 # Finally, check that this is only directories
28298 for cf_path in $0 $cf_pathlist
28300 if test -d "$cf_path"; then
28301 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
28302 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
28306 # Ensure that it is nonempty
28307 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
28310 echo "$as_me:28310: result: $cf_cv_ld_searchpath" >&5
28311 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
28313 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
28315 cat >>confdefs.h <<\EOF
28316 #define HAVE_CURSES_DATA_BOOLNAMES 1
28319 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
28320 ac_config_commands="$ac_config_commands default"
28321 cat >confcache <<\_ACEOF
28322 # This file is a shell script that caches the results of configure
28323 # tests run on this system so they can be shared between configure
28324 # scripts and configure runs, see configure's option --config-cache.
28325 # It is not useful on other systems. If it contains results you don't
28326 # want to keep, you may remove or edit it.
28328 # config.status only pays attention to the cache file if you give it
28329 # the --recheck option to rerun configure.
28331 # `ac_cv_env_foo' variables (set or unset) will be overriden when
28332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28333 # following values.
28337 # The following way of writing the cache mishandles newlines in values,
28338 # but we know of no workaround that is simple, portable, and efficient.
28339 # So, don't put newlines in cache variables' values.
28340 # Ultrix sh set writes to stderr and can't be redirected directly,
28341 # and sets the high bit in the cache file unless we assign to the vars.
28344 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28346 # `set' does not quote correctly, so add quotes (double-quote
28347 # substitution turns \\\\ into \\, and sed turns \\ into \).
28350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28353 # `set' quotes correctly as required by POSIX, so do not add quotes.
28355 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28364 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28366 if cmp -s $cache_file confcache; then :; else
28367 if test -w $cache_file; then
28368 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28369 cat confcache >$cache_file
28371 echo "not updating unwritable cache $cache_file"
28376 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28377 # Let make expand exec_prefix.
28378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28380 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28381 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28382 # trailing colons and then remove the whole line if VPATH becomes empty
28383 # (actually we leave an empty line to preserve line numbers).
28384 if test "x$srcdir" = x.; then
28385 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28386 s/:*\$(srcdir):*/:/;
28387 s/:*\${srcdir}:*/:/;
28389 s/^\([^=]*=[ ]*\):*/\1/;
28395 DEFS=-DHAVE_CONFIG_H
28397 : "${CONFIG_STATUS=./config.status}"
28398 ac_clean_files_save=$ac_clean_files
28399 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28400 { echo "$as_me:28400: creating $CONFIG_STATUS" >&5
28401 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28402 cat >"$CONFIG_STATUS" <<_ACEOF
28404 # Generated automatically by configure.
28405 # Run this file to recreate the current configuration.
28406 # Compiler output produced by configure, useful for debugging
28407 # configure, is in config.log if it exists.
28410 SHELL=\${CONFIG_SHELL-$SHELL}
28411 ac_cs_invocation="\$0 \$@"
28413 CLICOLOR_FORCE= GREP_OPTIONS=
28414 unset CLICOLOR_FORCE GREP_OPTIONS
28417 cat >>"$CONFIG_STATUS" <<\_ACEOF
28418 # Be Bourne compatible
28419 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28422 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28426 # Name of the executable.
28427 as_me=`echo "$0" |sed 's,.*[\\/],,'`
28429 if expr a : '\(a\)' >/dev/null 2>&1; then
28435 rm -f conf$$ conf$$.exe conf$$.file
28437 if ln -s conf$$.file conf$$ 2>/dev/null; then
28438 # We could just check for DJGPP; but this test a) works b) is more generic
28439 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28440 if test -f conf$$.exe; then
28441 # Don't use ln at all; we don't have any links
28446 elif ln conf$$.file conf$$ 2>/dev/null; then
28451 rm -f conf$$ conf$$.exe conf$$.file
28453 as_executable_p="test -f"
28455 # Support unset when possible.
28456 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28463 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
28464 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
28465 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
28466 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
28467 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
28468 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
28469 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
28470 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
28473 # We need space, tab and new line, in precisely that order.
28479 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
28485 # Files that config.status was made for.
28486 if test -n "$ac_config_files"; then
28487 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
28490 if test -n "$ac_config_headers"; then
28491 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
28494 if test -n "$ac_config_links"; then
28495 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
28498 if test -n "$ac_config_commands"; then
28499 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
28502 cat >>"$CONFIG_STATUS" <<\EOF
28505 \`$as_me' instantiates files from templates according to the
28506 current configuration.
28508 Usage: $0 [OPTIONS] [FILE]...
28510 -h, --help print this help, then exit
28511 -V, --version print version number, then exit
28512 -d, --debug don't remove temporary files
28513 --recheck update $as_me by reconfiguring in the same conditions
28514 --file=FILE[:TEMPLATE]
28515 instantiate the configuration file FILE
28516 --header=FILE[:TEMPLATE]
28517 instantiate the configuration header FILE
28519 Configuration files:
28522 Configuration headers:
28525 Configuration commands:
28528 Report bugs to <dickey@invisible-island.net>."
28531 cat >>"$CONFIG_STATUS" <<EOF
28534 configured by $0, generated by GNU Autoconf 2.52.20210105,
28535 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28537 Copyright 2003-2020,2021 Thomas E. Dickey
28538 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
28539 Free Software Foundation, Inc.
28540 This config.status script is free software; the Free Software Foundation
28541 gives unlimited permission to copy, distribute and modify it."
28546 cat >>"$CONFIG_STATUS" <<\EOF
28547 # If no file are specified by the user, then we need to provide default
28548 # value. By we need to know if files were specified by the user.
28554 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28555 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28557 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
28561 *) # This is not an option, so the user has probably given explicit
28563 ac_need_defaults=false;;
28567 # Handling of the options.
28569 cat >>"$CONFIG_STATUS" <<EOF
28570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28571 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
28572 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
28574 cat >>"$CONFIG_STATUS" <<\EOF
28575 --version | --vers* | -V )
28576 echo "$ac_cs_version"; exit 0 ;;
28578 # Conflict between --help and --header
28579 { { echo "$as_me:28579: error: ambiguous option: $1
28580 Try \`$0 --help' for more information." >&5
28581 echo "$as_me: error: ambiguous option: $1
28582 Try \`$0 --help' for more information." >&2;}
28583 { (exit 1); exit 1; }; };;
28584 --help | --hel | -h )
28585 echo "$ac_cs_usage"; exit 0 ;;
28586 --debug | --d* | -d )
28588 --file | --fil | --fi | --f )
28590 CONFIG_FILES="$CONFIG_FILES $1"
28591 ac_need_defaults=false;;
28592 --header | --heade | --head | --hea )
28594 CONFIG_HEADERS="$CONFIG_HEADERS $1"
28595 ac_need_defaults=false;;
28597 # This is an error.
28598 -*) { { echo "$as_me:28598: error: unrecognized option: $1
28599 Try \`$0 --help' for more information." >&5
28600 echo "$as_me: error: unrecognized option: $1
28601 Try \`$0 --help' for more information." >&2;}
28602 { (exit 1); exit 1; }; } ;;
28604 *) ac_config_targets="$ac_config_targets $1" ;;
28613 ## ----------------------- ##
28614 ## Running config.status. ##
28615 ## ----------------------- ##
28617 This file was extended by $as_me 2.52.20210105, executed with
28618 CONFIG_FILES = $CONFIG_FILES
28619 CONFIG_HEADERS = $CONFIG_HEADERS
28620 CONFIG_LINKS = $CONFIG_LINKS
28621 CONFIG_COMMANDS = $CONFIG_COMMANDS
28622 > "$ac_cs_invocation"
28623 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28628 cat >>"$CONFIG_STATUS" <<EOF
28630 # INIT-COMMANDS section.
28633 ### Special initialization commands, used to pass information from the
28634 ### configuration-run into config.status
28636 ALTERNATE_SYMS="$ALTERNATE_SYMS"
28638 CXX_NAME="$CXX_NAME"
28639 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
28640 DFT_LWR_MODEL="$DFT_LWR_MODEL"
28642 EXTRA_SUFFIX="$EXTRA_SUFFIX"
28643 FORM_NAME="$FORM_NAME"
28644 LDCONFIG="$LDCONFIG"
28645 LIBTOOL_VERSION="$LIBTOOL_VERSION"
28646 LIB_NAME="$LIB_NAME"
28647 LIB_PREFIX="$LIB_PREFIX"
28648 LIB_SUBSETS="$LIB_SUBSETS"
28649 LIB_SUFFIX="$LIB_SUFFIX"
28650 LIB_TRACING="$LIB_TRACING"
28652 MAKE_TERMINFO="$MAKE_TERMINFO"
28653 MENU_NAME="$MENU_NAME"
28654 NCURSES_MAJOR="$NCURSES_MAJOR"
28655 NCURSES_MINOR="$NCURSES_MINOR"
28656 NCURSES_OSPEED="$NCURSES_OSPEED"
28657 NCURSES_PATCH="$NCURSES_PATCH"
28658 PANEL_NAME="$PANEL_NAME"
28659 SRC_SUBDIRS="$SRC_SUBDIRS"
28660 TERMINFO="$TERMINFO"
28661 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
28662 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
28663 TICS_NAME="$TICS_NAME"
28664 TICS_SUFFIX="$TICS_SUFFIX"
28665 TIC_PATH="$TIC_PATH"
28666 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
28667 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
28668 TINFO_NAME="$TINFO_NAME"
28669 TINFO_SUFFIX="$TINFO_SUFFIX"
28670 UNALTERED_SYMS="$UNALTERED_SYMS"
28671 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
28672 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
28673 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
28674 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
28675 WILDCARD_SYMS="$WILDCARD_SYMS"
28676 WITH_CURSES_H="$with_curses_h"
28677 WITH_ECHO="${enable_echo:=yes}"
28678 WITH_OVERWRITE="$with_overwrite"
28679 cf_LIST_MODELS="$cf_list_models"
28680 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
28681 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
28682 cf_cv_abi_version="$cf_cv_abi_version"
28683 cf_cv_do_relink="$cf_cv_do_relink"
28684 cf_cv_do_reranlib="$cf_cv_do_reranlib"
28685 cf_cv_do_symlinks="$cf_cv_do_symlinks"
28686 cf_cv_enable_lp64="$cf_cv_enable_lp64"
28687 cf_cv_enable_opaque="$cf_cv_enable_opaque"
28688 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
28689 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
28690 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
28691 cf_cv_rel_version="$cf_cv_rel_version"
28692 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
28693 cf_cv_shared_soname='$cf_cv_shared_soname'
28694 cf_cv_shlib_version="$cf_cv_shlib_version"
28695 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
28696 cf_cv_system_name="$cf_cv_system_name"
28697 cf_cv_term_driver="$with_term_driver"
28698 cf_with_ada="$cf_with_ada"
28699 cf_with_cxx_binding="$cf_with_cxx_binding"
28700 cf_with_db_install="$cf_with_db_install"
28701 cf_with_manpages="$cf_with_manpages"
28702 cf_with_tests="$cf_with_tests"
28705 with_shared_cxx="$with_shared_cxx"
28709 cat >>"$CONFIG_STATUS" <<\EOF
28710 for ac_config_target in $ac_config_targets
28712 case "$ac_config_target" in
28713 # Handling of arguments.
28714 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
28715 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
28716 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
28717 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
28718 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
28719 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
28720 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28721 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28722 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
28723 *) { { echo "$as_me:28723: error: invalid argument: $ac_config_target" >&5
28724 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28725 { (exit 1); exit 1; }; };;
28729 # If the user did not use the arguments to specify the items to instantiate,
28730 # then the envvar interface is used. Set only those that are not.
28731 # We use the long form for the default assignment because of an extremely
28732 # bizarre bug on SunOS 4.1.3.
28733 if "$ac_need_defaults"; then
28734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28736 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28739 # Create a temporary directory, and hook for its removal unless debugging.
28742 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28743 trap '{ (exit 1); exit 1; }' 1 2 13 15
28746 # Create a (secure) tmp directory for tmp files.
28749 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
28750 test -n "$tmp" && test -d "$tmp"
28753 tmp=$TMPDIR/cs$$-$RANDOM
28754 (umask 077 && mkdir $tmp)
28757 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
28758 { (exit 1); exit 1; }
28763 cat >>"$CONFIG_STATUS" <<EOF
28766 # CONFIG_FILES section.
28769 # No need to generate the scripts if there are no CONFIG_FILES.
28770 # This happens for instance when ./config.status config.h
28771 if test -n "\$CONFIG_FILES"; then
28772 # Protect against being on the right side of a sed subst in config.status.
28773 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28774 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28775 s,@SHELL@,$SHELL,;t t
28776 s,@exec_prefix@,$exec_prefix,;t t
28777 s,@prefix@,$prefix,;t t
28778 s,@program_transform_name@,$program_transform_name,;t t
28779 s,@bindir@,$bindir,;t t
28780 s,@sbindir@,$sbindir,;t t
28781 s,@libexecdir@,$libexecdir,;t t
28782 s,@datarootdir@,$datarootdir,;t t
28783 s,@datadir@,$datadir,;t t
28784 s,@sysconfdir@,$sysconfdir,;t t
28785 s,@sharedstatedir@,$sharedstatedir,;t t
28786 s,@localstatedir@,$localstatedir,;t t
28787 s,@runstatedir@,$runstatedir,;t t
28788 s,@libdir@,$libdir,;t t
28789 s,@includedir@,$includedir,;t t
28790 s,@oldincludedir@,$oldincludedir,;t t
28791 s,@infodir@,$infodir,;t t
28792 s,@mandir@,$mandir,;t t
28793 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28794 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28795 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28796 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28797 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28798 s,@build_alias@,$build_alias,;t t
28799 s,@host_alias@,$host_alias,;t t
28800 s,@target_alias@,$target_alias,;t t
28801 s,@ECHO_C@,$ECHO_C,;t t
28802 s,@ECHO_N@,$ECHO_N,;t t
28803 s,@ECHO_T@,$ECHO_T,;t t
28804 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28805 s,@DEFS@,$DEFS,;t t
28806 s,@LIBS@,$LIBS,;t t
28807 s,@top_builddir@,$top_builddir,;t t
28808 s,@GREP@,$GREP,;t t
28809 s,@EGREP@,$EGREP,;t t
28810 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
28811 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
28812 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
28813 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
28814 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
28815 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
28816 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
28817 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
28818 s,@VERSION@,$VERSION,;t t
28819 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
28820 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
28821 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
28822 s,@PACKAGE@,$PACKAGE,;t t
28823 s,@build@,$build,;t t
28824 s,@build_cpu@,$build_cpu,;t t
28825 s,@build_vendor@,$build_vendor,;t t
28826 s,@build_os@,$build_os,;t t
28827 s,@host@,$host,;t t
28828 s,@host_cpu@,$host_cpu,;t t
28829 s,@host_vendor@,$host_vendor,;t t
28830 s,@host_os@,$host_os,;t t
28831 s,@target@,$target,;t t
28832 s,@target_cpu@,$target_cpu,;t t
28833 s,@target_vendor@,$target_vendor,;t t
28834 s,@target_os@,$target_os,;t t
28835 s,@FGREP@,$FGREP,;t t
28837 s,@CFLAGS@,$CFLAGS,;t t
28838 s,@LDFLAGS@,$LDFLAGS,;t t
28839 s,@CPPFLAGS@,$CPPFLAGS,;t t
28840 s,@ac_ct_CC@,$ac_ct_CC,;t t
28841 s,@EXEEXT@,$EXEEXT,;t t
28842 s,@OBJEXT@,$OBJEXT,;t t
28843 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
28845 s,@LDCONFIG@,$LDCONFIG,;t t
28847 s,@CXXFLAGS@,$CXXFLAGS,;t t
28848 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28850 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28851 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28852 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28853 s,@LINT@,$LINT,;t t
28854 s,@LINT_OPTS@,$LINT_OPTS,;t t
28855 s,@LN_S@,$LN_S,;t t
28856 s,@cf_config_suffix@,$cf_config_suffix,;t t
28857 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
28858 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
28859 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
28860 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
28861 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
28862 s,@SET_MAKE@,$SET_MAKE,;t t
28863 s,@CTAGS@,$CTAGS,;t t
28864 s,@ETAGS@,$ETAGS,;t t
28865 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
28866 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
28867 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
28868 s,@RANLIB@,$RANLIB,;t t
28869 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28871 s,@ac_ct_LD@,$ac_ct_LD,;t t
28873 s,@ac_ct_AR@,$ac_ct_AR,;t t
28875 s,@ac_ct_NM@,$ac_ct_NM,;t t
28876 s,@ARFLAGS@,$ARFLAGS,;t t
28877 s,@DESTDIR@,$DESTDIR,;t t
28878 s,@BUILD_CC@,$BUILD_CC,;t t
28879 s,@BUILD_CPP@,$BUILD_CPP,;t t
28880 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
28881 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
28882 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
28883 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
28884 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
28885 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
28886 s,@cf_list_models@,$cf_list_models,;t t
28887 s,@ABI_VERSION@,$ABI_VERSION,;t t
28888 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
28889 s,@LIBTOOL@,$LIBTOOL,;t t
28890 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
28891 s,@LT_UNDEF@,$LT_UNDEF,;t t
28892 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
28893 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
28894 s,@LIB_CREATE@,$LIB_CREATE,;t t
28895 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
28896 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
28897 s,@LIB_PREP@,$LIB_PREP,;t t
28898 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
28899 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
28900 s,@LIB_LINK@,$LIB_LINK,;t t
28901 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
28902 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
28903 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
28904 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
28905 s,@TICS_NAME@,$TICS_NAME,;t t
28906 s,@TINFO_NAME@,$TINFO_NAME,;t t
28907 s,@LIB_NAME@,$LIB_NAME,;t t
28908 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
28909 s,@CC_G_OPT@,$CC_G_OPT,;t t
28910 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
28911 s,@LD_MODEL@,$LD_MODEL,;t t
28912 s,@shlibdir@,$shlibdir,;t t
28913 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
28914 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
28915 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
28916 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
28917 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
28918 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
28919 s,@LINK_PROGS@,$LINK_PROGS,;t t
28920 s,@LINK_TESTS@,$LINK_TESTS,;t t
28921 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
28922 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
28923 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
28924 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
28925 s,@RPATH_LIST@,$RPATH_LIST,;t t
28926 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
28927 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
28928 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
28929 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
28930 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
28931 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
28932 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
28933 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
28934 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
28936 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
28937 s,@INFOCMP@,$INFOCMP,;t t
28938 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
28939 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
28940 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
28941 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
28942 s,@XTERM_KBS@,$XTERM_KBS,;t t
28943 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
28944 s,@TERMINFO@,$TERMINFO,;t t
28945 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
28946 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
28947 s,@TERMPATH@,$TERMPATH,;t t
28948 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
28949 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
28950 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
28951 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
28952 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
28953 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
28954 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
28955 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
28956 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
28957 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
28958 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
28959 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
28960 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
28961 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
28962 s,@RGB_PATH@,$RGB_PATH,;t t
28963 s,@no_x11_rgb@,$no_x11_rgb,;t t
28964 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
28965 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
28966 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
28967 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
28968 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
28969 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
28970 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
28971 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
28972 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
28973 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
28974 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
28975 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
28976 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
28977 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
28978 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
28979 s,@PTHREAD@,$PTHREAD,;t t
28980 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
28981 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
28982 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
28983 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
28984 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
28985 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
28986 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
28987 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
28988 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
28989 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
28990 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
28991 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
28992 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
28993 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
28994 s,@ECHO_LT@,$ECHO_LT,;t t
28995 s,@ECHO_LD@,$ECHO_LD,;t t
28996 s,@RULE_CC@,$RULE_CC,;t t
28997 s,@SHOW_CC@,$SHOW_CC,;t t
28998 s,@ECHO_CC@,$ECHO_CC,;t t
28999 s,@ECHO_LINK@,$ECHO_LINK,;t t
29000 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29001 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29002 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29003 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29004 s,@ADAFLAGS@,$ADAFLAGS,;t t
29005 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29006 s,@ADA_TRACE@,$ADA_TRACE,;t t
29007 s,@MATH_LIB@,$MATH_LIB,;t t
29008 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29009 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29010 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29011 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29012 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29013 s,@TEST_LIBS@,$TEST_LIBS,;t t
29014 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29015 s,@CXXCPP@,$CXXCPP,;t t
29016 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29017 s,@CXX_AR@,$CXX_AR,;t t
29018 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29019 s,@CXXLIBS@,$CXXLIBS,;t t
29020 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29021 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29022 s,@M4_exists@,$M4_exists,;t t
29023 s,@cf_ada_make@,$cf_ada_make,;t t
29024 s,@cf_ada_config@,$cf_ada_config,;t t
29025 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29026 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
29027 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
29028 s,@cf_compile_generics@,$cf_compile_generics,;t t
29029 s,@cf_generic_objects@,$cf_generic_objects,;t t
29030 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
29031 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
29032 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
29033 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
29034 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
29035 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
29036 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
29037 s,@cf_ada_package@,$cf_ada_package,;t t
29038 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
29039 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
29040 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
29041 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
29042 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
29043 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
29044 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
29045 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
29046 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
29047 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
29048 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
29049 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
29050 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
29051 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
29052 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
29053 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
29054 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
29055 s,@TICS_LIBS@,$TICS_LIBS,;t t
29056 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
29057 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
29058 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
29059 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
29060 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
29061 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
29062 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
29063 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
29064 s,@includesubdir@,$includesubdir,;t t
29065 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
29066 s,@TICS_LIST@,$TICS_LIST,;t t
29067 s,@TINFO_LIST@,$TINFO_LIST,;t t
29068 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
29069 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
29070 s,@FORM_NAME@,$FORM_NAME,;t t
29071 s,@MENU_NAME@,$MENU_NAME,;t t
29072 s,@PANEL_NAME@,$PANEL_NAME,;t t
29073 s,@CXX_NAME@,$CXX_NAME,;t t
29074 s,@TEST_ARGS@,$TEST_ARGS,;t t
29075 s,@TEST_DEPS@,$TEST_DEPS,;t t
29076 s,@TEST_ARG2@,$TEST_ARG2,;t t
29077 s,@TEST_DEP2@,$TEST_DEP2,;t t
29078 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
29079 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
29080 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
29081 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
29082 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
29083 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29084 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
29085 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
29086 s,@cross_compiling@,$cross_compiling,;t t
29087 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
29088 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
29089 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
29090 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
29091 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
29092 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
29093 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
29094 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
29095 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
29096 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
29097 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
29098 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
29103 cat >>"$CONFIG_STATUS" <<\EOF
29104 # Split the substitutions into bite-sized pieces for seds with
29105 # small command number limits, like on Digital OSF/1 and HP-UX.
29106 ac_max_sed_lines=48
29107 ac_sed_frag=1 # Number of current file.
29108 ac_beg=1 # First line for current file.
29109 ac_end=$ac_max_sed_lines # Line after last line for current file.
29112 while "$ac_more_lines"; do
29113 if test "$ac_beg" -gt 1; then
29114 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29116 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29118 if test ! -s $tmp/subs.frag; then
29119 ac_more_lines=false
29121 # The purpose of the label and of the branching condition is to
29122 # speed up the sed processing (if there are no `@' at all, there
29123 # is no need to browse any of the substitutions).
29124 # These are the two extra sed commands mentioned above.
29126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29127 # It is possible to make a multiline substitution using escaped newlines.
29128 # Ensure that we do not split the substitution between script fragments.
29130 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
29131 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
29132 if test -s $tmp/subs.next; then
29133 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
29134 if test ! -s $tmp/subs.edit; then
29135 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
29136 if test ! -s $tmp/subs.edit; then
29137 if test "$ac_beg" -gt 1; then
29138 ac_end=`expr "$ac_end" - 1`
29145 if test -z "$ac_sed_cmds"; then
29146 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29148 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29150 ac_sed_frag=`expr "$ac_sed_frag" + 1`
29152 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
29155 if test -z "$ac_sed_cmds"; then
29158 fi # test -n "$CONFIG_FILES"
29161 cat >>"$CONFIG_STATUS" <<\EOF
29162 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29165 - | *:- | *:-:* ) # input from stdin
29167 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29169 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29171 * ) ac_file_in=$ac_file.in ;;
29174 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29175 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29176 X"$ac_file" : 'X\(//\)[^/]' \| \
29177 X"$ac_file" : 'X\(//\)$' \| \
29178 X"$ac_file" : 'X\(/\)' \| \
29179 . : '\(.\)' 2>/dev/null ||
29181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29183 /^X\(\/\/\)$/{ s//\1/; q; }
29184 /^X\(\/\).*/{ s//\1/; q; }
29186 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29187 { case "$ac_dir" in
29188 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29192 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29193 case $as_mkdir_dir in
29194 # Skip DOS drivespec
29195 ?:) as_incr_dir=$as_mkdir_dir ;;
29197 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29198 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29203 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
29204 # A "../" for each directory in $ac_dir_suffix.
29205 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
29207 ac_dir_suffix= ac_dots=
29212 if test -z "$ac_dots"; then
29215 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
29217 [\\/]* | ?:[\\/]* )
29218 ac_srcdir="$srcdir$ac_dir_suffix";
29219 ac_top_srcdir="$srcdir" ;;
29220 *) # Relative path.
29221 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
29222 ac_top_srcdir="$ac_dots$srcdir" ;;
29226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29227 *) ac_INSTALL=$ac_dots$INSTALL ;;
29230 if test x"$ac_file" != x-; then
29231 { echo "$as_me:29231: creating $ac_file" >&5
29232 echo "$as_me: creating $ac_file" >&6;}
29235 # Let's still pretend it is `configure' which instantiates (i.e., don't
29236 # use $as_me), people would be surprised to read:
29237 # /* config.h. Generated automatically by config.status. */
29238 configure_input="Generated automatically from `echo $ac_file_in |
29239 sed 's,.*/,,'` by configure."
29241 # First look for the input files in the build tree, otherwise in the
29243 ac_file_inputs=`IFS=:
29244 for f in $ac_file_in; do
29246 -) echo $tmp/stdin ;;
29248 # Absolute (can't be DOS-style, as IFS=:)
29249 test -f "$f" || { { echo "$as_me:29249: error: cannot find input file: $f" >&5
29250 echo "$as_me: error: cannot find input file: $f" >&2;}
29251 { (exit 1); exit 1; }; }
29254 if test -f "$f"; then
29257 elif test -f "$srcdir/$f"; then
29262 { { echo "$as_me:29262: error: cannot find input file: $f" >&5
29263 echo "$as_me: error: cannot find input file: $f" >&2;}
29264 { (exit 1); exit 1; }; }
29267 done` || { (exit 1); exit 1; }
29269 cat >>"$CONFIG_STATUS" <<\EOF
29270 ac_warn_datarootdir=no
29271 if test x"$ac_file" != x-; then
29272 for ac_item in $ac_file_inputs
29274 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
29275 if test -n "$ac_seen"; then
29276 ac_used=`grep '@datarootdir@' "$ac_item"`
29277 if test -z "$ac_used"; then
29278 { echo "$as_me:29278: WARNING: datarootdir was used implicitly but not set:
29280 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
29282 ac_warn_datarootdir=yes
29285 ac_seen=`grep '${datarootdir}' "$ac_item"`
29286 if test -n "$ac_seen"; then
29287 { echo "$as_me:29287: WARNING: datarootdir was used explicitly but not set:
29289 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
29291 ac_warn_datarootdir=yes
29296 if test "x$ac_warn_datarootdir" = xyes; then
29297 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
29301 cat >>"$CONFIG_STATUS" <<EOF
29305 cat >>"$CONFIG_STATUS" <<\EOF
29307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29308 s,@configure_input@,$configure_input,;t t
29309 s,@srcdir@,$ac_srcdir,;t t
29310 s,@top_srcdir@,$ac_top_srcdir,;t t
29311 s,@INSTALL@,$ac_INSTALL,;t t
29312 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29314 if test x"$ac_file" != x-; then
29315 cp "$tmp/out" "$ac_file"
29317 for ac_name in prefix exec_prefix datarootdir
29319 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
29320 if test -n "$ac_seen"; then
29321 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
29322 if test -z "$ac_init"; then
29323 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
29324 { echo "$as_me:29324: WARNING: Variable $ac_name is used but was not set:
29326 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
29331 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
29332 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
29333 if test -s $tmp/out; then
29334 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
29335 { echo "$as_me:29335: WARNING: Some variables may not be substituted:
29337 echo "$as_me: WARNING: Some variables may not be substituted:
29347 cat >>"$CONFIG_STATUS" <<\EOF
29350 # CONFIG_HEADER section.
29353 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29354 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29356 # ac_d sets the value in "#define NAME VALUE" lines.
29357 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29358 ac_dB='[ ].*$,\1#\2'
29361 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
29362 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29363 ac_iB='\([ ]\),\1#\2define\3'
29366 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29367 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29368 ac_uB='$,\1#\2define\3'
29372 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29375 - | *:- | *:-:* ) # input from stdin
29377 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29379 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29381 * ) ac_file_in=$ac_file.in ;;
29384 test x"$ac_file" != x- && { echo "$as_me:29384: creating $ac_file" >&5
29385 echo "$as_me: creating $ac_file" >&6;}
29387 # First look for the input files in the build tree, otherwise in the
29389 ac_file_inputs=`IFS=:
29390 for f in $ac_file_in; do
29392 -) echo $tmp/stdin ;;
29394 # Absolute (can't be DOS-style, as IFS=:)
29395 test -f "$f" || { { echo "$as_me:29395: error: cannot find input file: $f" >&5
29396 echo "$as_me: error: cannot find input file: $f" >&2;}
29397 { (exit 1); exit 1; }; }
29400 if test -f "$f"; then
29403 elif test -f "$srcdir/$f"; then
29408 { { echo "$as_me:29408: error: cannot find input file: $f" >&5
29409 echo "$as_me: error: cannot find input file: $f" >&2;}
29410 { (exit 1); exit 1; }; }
29413 done` || { (exit 1); exit 1; }
29414 # Remove the trailing spaces.
29415 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29419 # Transform confdefs.h into a list of #define's. We won't use it as a sed
29420 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
29421 # be either 'cat' or 'sort'.
29422 cat confdefs.h | uniq >conftest.vals
29424 # Break up conftest.vals because some shells have a limit on
29425 # the size of here documents, and old seds have small limits too.
29427 rm -f conftest.tail
29428 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
29429 while grep . conftest.vals >/dev/null
29431 # Write chunks of a limited-size here document to conftest.frag.
29432 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
29433 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
29434 echo 'CEOF' >> "$CONFIG_STATUS"
29435 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
29436 rm -f conftest.vals
29437 mv conftest.tail conftest.vals
29439 rm -f conftest.vals
29441 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
29443 echo ' cat >> conftest.edit <<CEOF
29444 /@DEFS@/r conftest.frag
29447 sed -f conftest.edit $tmp/in > $tmp/out
29449 mv $tmp/out $tmp/in
29450 rm -f conftest.edit conftest.frag
29451 ' >> "$CONFIG_STATUS"
29453 cat >>"$CONFIG_STATUS" <<\EOF
29454 # Let's still pretend it is `configure' which instantiates (i.e., don't
29455 # use $as_me), people would be surprised to read:
29456 # /* config.h. Generated automatically by config.status. */
29457 if test x"$ac_file" = x-; then
29458 echo "/* Generated automatically by configure. */" >$tmp/config.h
29460 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
29462 cat $tmp/in >>$tmp/config.h
29464 if test x"$ac_file" != x-; then
29465 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
29466 { echo "$as_me:29466: $ac_file is unchanged" >&5
29467 echo "$as_me: $ac_file is unchanged" >&6;}
29469 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29470 X"$ac_file" : 'X\(//\)[^/]' \| \
29471 X"$ac_file" : 'X\(//\)$' \| \
29472 X"$ac_file" : 'X\(/\)' \| \
29473 . : '\(.\)' 2>/dev/null ||
29475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29477 /^X\(\/\/\)$/{ s//\1/; q; }
29478 /^X\(\/\).*/{ s//\1/; q; }
29480 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29481 { case "$ac_dir" in
29482 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29486 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29487 case $as_mkdir_dir in
29488 # Skip DOS drivespec
29489 ?:) as_incr_dir=$as_mkdir_dir ;;
29491 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29492 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29499 mv "$tmp/config.h" "$ac_file"
29503 rm -f $tmp/config.h
29507 cat >>"$CONFIG_STATUS" <<\EOF
29509 # CONFIG_COMMANDS section.
29511 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29512 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29513 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29517 if test "x$cf_with_tests" != xno ; then
29521 if test ! -d "$srcdir/$cf_dir" ; then
29523 elif test -f "$srcdir/$cf_dir/programs" ; then
29524 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
29530 cf_prefix=$LIB_PREFIX
29532 case "$cf_cv_shlib_version" in
29533 (cygdll|msysdll|mingw|msvcdll)
29534 TINFO_NAME=$TINFO_ARG_SUFFIX
29539 if test -n "$TINFO_SUFFIX" ; then
29540 case "$TINFO_SUFFIX" in
29542 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
29543 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
29546 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
29547 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
29550 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
29551 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
29556 for cf_dir in $SRC_SUBDIRS
29558 if test ! -d "$srcdir/$cf_dir" ; then
29560 elif test -f "$srcdir/$cf_dir/modules" ; then
29565 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
29567 cf_awk_program="$cf_awk_program\
29568 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
29569 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
29573 if test "x$WILDCARD_SYMS" = xno
29575 cf_awk_program="$cf_awk_program\
29576 /[ ]_\\*;/ { skip=1; next; }\
29580 if test "x$cf_awk_program" != "x"
29582 cat >>$cf_dir/Makefile <<CF_EOF
29584 # Generated by CF_LIB_RULES
29585 resulting.map: $UNALTERED_SYMS
29586 $AWK 'BEGIN { skip = 1; last=""; } \
29588 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
29589 skip = 0; last = \$\$0; } \
29590 END { print last; }' < "$UNALTERED_SYMS" >\$@
29593 rm -f resulting.map
29597 for cf_item in $cf_LIST_MODELS
29603 cf_depsuf=$cf_suffix
29606 case "$cf_cv_system_name" in
29614 cf_depsuf=$cf_suffix
29617 case "$cf_cv_system_name" in
29625 cf_depsuf=$cf_suffix
29628 case "$cf_cv_system_name" in
29631 cf_depsuf=$cf_suffix
29635 cf_depsuf='.dll.lib'
29637 (cygwin*|msys*|mingw*)
29643 cf_depsuf=$cf_suffix
29649 cf_depsuf=$cf_suffix
29653 cf_depsuf=$cf_suffix
29659 cf_depsuf=$cf_suffix
29672 cf_depsuf=$cf_suffix
29675 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
29677 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
29678 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
29681 if test "$cf_dir" = "c++"
29684 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29686 eval cf_libname="\$${cf_map_lib_basename}_NAME"
29690 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29692 eval cf_libname="\$${cf_map_lib_basename}_NAME"
29695 test -z "$cf_libname" && cf_libname="$cf_dir"
29696 if test "$cf_item" = shared ; then
29697 if test -n "${LIB_SUFFIX}"
29699 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
29701 cf_shared_suffix="$cf_suffix"
29703 if test "$cf_cv_do_symlinks" = yes ; then
29706 case "$cf_cv_shlib_version" in
29708 cf_version_name=REL_VERSION
29711 cf_version_name=ABI_VERSION
29715 if test -n "$cf_version_name"
29717 case "$cf_cv_system_name" in
29720 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
29723 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
29727 if test -n "${USE_LIB_SUFFIX}"
29729 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
29731 cf_shared_suffix="$cf_suffix"
29734 # cygwin needs import library, and has unique naming convention
29735 # use autodetected ${cf_prefix} for import lib and static lib, but
29736 # use 'cyg' prefix for shared lib.
29737 case "$cf_cv_shlib_version" in
29739 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
29740 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
29743 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
29744 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
29747 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
29748 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
29751 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
29752 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
29758 if test -n "$cf_add_lib"
29760 Libs_To_Make="$Libs_To_Make $cf_add_lib"
29764 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
29765 Libs_To_Make="$Libs_To_Make $cf_add_lib"
29768 if test "$cf_dir" = ncurses ; then
29769 cf_subsets="$LIB_SUBSETS"
29770 cf_r_parts="$cf_subsets"
29771 cf_liblist="$Libs_To_Make"
29773 while test -n "$cf_r_parts"
29775 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
29776 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
29777 if test "$cf_l_parts" != "$cf_r_parts" ; then
29779 case "$cf_l_parts" in
29781 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
29784 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
29790 if test -n "$cf_add_lib"; then
29791 Libs_To_Make="$cf_add_lib $Libs_To_Make"
29798 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
29801 if test "$cf_dir" = c++; then
29802 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
29804 for cf_item in $Libs_To_Make
29810 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
29813 for cf_test in $cf_list
29815 if test "$cf_test" = "$cf_item"
29817 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
29822 test -n "$cf_item" && cf_list="$cf_list $cf_item"
29824 Libs_To_Make="$cf_list"
29828 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
29829 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
29830 "$cf_dir/Makefile" >$cf_dir/Makefile.out
29831 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
29833 $AWK -f "$srcdir/mk-0th.awk" \
29834 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
29835 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
29837 for cf_subset in $cf_subsets
29840 for cf_item in $cf_LIST_MODELS
29843 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
29845 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29848 if test "$CXX_MODEL" = SHARED; then
29849 case "$cf_cv_shlib_version" in
29850 (cygdll|msysdll|mingw|msvcdll)
29851 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
29853 echo "${as_me:-configure}:29853: testing overriding CXX_MODEL to SHARED ..." 1>&5
29855 with_shared_cxx=yes
29858 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
29866 cf_depsuf=$cf_suffix
29869 case "$cf_cv_system_name" in
29877 cf_depsuf=$cf_suffix
29880 case "$cf_cv_system_name" in
29888 cf_depsuf=$cf_suffix
29891 case "$cf_cv_system_name" in
29894 cf_depsuf=$cf_suffix
29898 cf_depsuf='.dll.lib'
29900 (cygwin*|msys*|mingw*)
29906 cf_depsuf=$cf_suffix
29912 cf_depsuf=$cf_suffix
29916 cf_depsuf=$cf_suffix
29922 cf_depsuf=$cf_suffix
29935 cf_depsuf=$cf_suffix
29938 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
29940 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
29941 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
29945 (libtool) cf_subdir='obj_lo' ;;
29946 (normal) cf_subdir='objects' ;;
29947 (debug) cf_subdir='obj_g' ;;
29948 (profile) cf_subdir='obj_p' ;;
29950 case "$cf_cv_system_name" in
29952 cf_subdir='objects' ;;
29954 cf_subdir='obj_s' ;;
29958 # Test for case where we build libtinfo with a different name.
29960 if test "$cf_dir" = ncurses ; then
29961 case "$cf_subset" in
29963 cf_libname=${cf_libname}$USE_LIB_SUFFIX
29966 cf_libname=$TINFO_LIB_SUFFIX
29969 cf_libname=$TICS_LIB_SUFFIX
29972 elif test "$cf_dir" = c++ ; then
29974 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29976 eval cf_libname="\$${cf_map_lib_basename}_NAME"
29978 cf_libname=${cf_libname}$USE_LIB_SUFFIX
29981 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29983 eval cf_libname="\$${cf_map_lib_basename}_NAME"
29985 cf_libname=${cf_libname}$USE_LIB_SUFFIX
29987 if test -n "${USE_ARG_SUFFIX}" ; then
29988 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
29989 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
29992 # These dependencies really are for development, not
29993 # builds, but they are useful in porting, too.
29994 cf_depend="../include/ncurses_cfg.h"
29995 if test "$srcdir" = "."; then
29998 cf_reldir="\${srcdir}"
30001 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30002 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30003 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30004 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30008 old_cf_suffix="$cf_suffix"
30009 if test "$cf_cv_shlib_version_infix" = yes ; then
30010 if test -n "$USE_LIB_SUFFIX" ; then
30011 case "$USE_LIB_SUFFIX" in
30013 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30014 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30015 cf_dir_suffix=tw$EXTRA_SUFFIX
30018 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30019 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30020 cf_dir_suffix=t$EXTRA_SUFFIX
30023 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30024 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30025 cf_dir_suffix=w$EXTRA_SUFFIX
30028 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
30029 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
30030 cf_dir_suffix=$EXTRA_SUFFIX
30036 $AWK -f "$srcdir/mk-1st.awk" \
30037 name=${cf_libname}${cf_dir_suffix} \
30038 traces=$LIB_TRACING \
30040 CXX_MODEL=$CXX_MODEL \
30042 prefix=$cf_prefix \
30043 suffix=$cf_suffix \
30044 subset=$cf_subset \
30045 driver=$cf_cv_term_driver \
30047 TermlibRoot=$TINFO_NAME \
30048 TermlibSuffix=$TINFO_SUFFIX \
30049 ShlibVer=$cf_cv_shlib_version \
30050 ShlibVerInfix=$cf_cv_shlib_version_infix \
30051 ReLink=${cf_cv_do_relink:-no} \
30052 ReRanlib=${cf_cv_do_reranlib:-yes} \
30053 DoLinks=$cf_cv_do_symlinks \
30054 rmSoLocs=$cf_cv_rm_so_locs \
30055 ldconfig="$LDCONFIG" \
30056 overwrite=$WITH_OVERWRITE \
30057 depend="$cf_depend" \
30059 libtool_version="$LIBTOOL_VERSION" \
30060 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30062 cf_suffix="$old_cf_suffix"
30064 for cf_subdir2 in $cf_subdirs lib
30066 test "$cf_subdir" = "$cf_subdir2" && break
30068 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
30069 $AWK -f "$srcdir/mk-2nd.awk" \
30071 traces=$LIB_TRACING \
30074 subset=$cf_subset \
30077 crenames=$cf_cv_prog_CC_c_o \
30078 cxxrenames=$cf_cv_prog_CXX_c_o \
30079 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30080 cf_subdirs="$cf_subdirs $cf_subdir"
30085 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
30088 for cf_dir in $SRC_SUBDIRS
30090 if test ! -d "$srcdir/$cf_dir" ; then
30094 if test -f "$cf_dir/Makefile" ; then
30097 echo 'libs \' >> Makefile
30098 echo 'install.libs \' >> Makefile
30099 echo 'uninstall.libs ::' >> Makefile
30100 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
30105 if test -f "$srcdir/$cf_dir/modules" ; then
30107 if test -f "$srcdir/$cf_dir/headers" ; then
30108 cat >> Makefile <<CF_EOF
30109 install.includes \\
30110 uninstall.includes \\
30113 if test "$cf_dir" != "c++" ; then
30114 echo 'lint \' >> Makefile
30116 cat >> Makefile <<CF_EOF
30122 uninstall.$cf_dir ::
30123 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30125 elif test -f "$srcdir/$cf_dir/headers" ; then
30126 cat >> Makefile <<CF_EOF
30131 install.includes \\
30132 uninstall.includes ::
30133 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30138 if test "x$cf_with_db_install" = xyes; then
30139 cat >> Makefile <<CF_EOF
30141 install.libs uninstall.libs \\
30142 install.data uninstall.data ::
30143 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30146 cat >> Makefile <<CF_EOF
30148 install.libs uninstall.libs ::
30149 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30153 if test "x$cf_with_manpages" = xyes; then
30154 cat >> Makefile <<CF_EOF
30158 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
30162 cat >> Makefile <<CF_EOF
30165 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
30166 rm -f headers.sh headers.sed mk_shared_lib.sh
30167 rm -f edit_man.* man_alias.*
30168 rm -rf \${DIRS_TO_MAKE}
30171 # Special case: tack's manpage lives in its own directory.
30172 if test "x$cf_with_manpages" = xyes; then
30173 if test "x$cf_with_tack" = "xyes"; then
30174 cat >> Makefile <<CF_EOF
30178 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ )
30183 rm -f headers.sed headers.sh
30185 echo creating headers.sh
30186 cat >headers.sh <<CF_EOF
30188 # This shell script is generated by the 'configure' script. It is invoked in a
30189 # subdirectory of the build tree. It generates a sed-script in the parent
30190 # directory that is used to adjust includes for header files that reside in a
30191 # subdirectory of /usr/include, etc.
30193 while test \$# != 3
30195 PRG="\$PRG \$1"; shift
30200 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
30201 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
30202 echo installing \$SRC in \$DST
30205 if test "$WITH_CURSES_H" = yes; then
30206 cat >>headers.sh <<CF_EOF
30209 END=\`basename \$DST\`
30210 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30212 NAME=\`basename \$i\`
30213 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30217 echo "" >> \$TMPSED
30223 cat >>headers.sh <<CF_EOF
30226 END=\`basename \$DST\`
30227 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30229 NAME=\`basename \$i\`
30230 if test "\$NAME" = "curses.h"
30232 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30235 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30239 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30244 cat >>headers.sh <<CF_EOF
30246 sed -f \$TMPSED \$SRC > \$TMPSRC
30247 NAME=\`basename \$SRC\`
30249 if test "$WITH_CURSES_H" != yes; then
30250 cat >>headers.sh <<CF_EOF
30251 test "\$NAME" = "curses.h" && NAME=ncurses.h
30254 cat >>headers.sh <<CF_EOF
30255 # Just in case someone gzip'd manpages, remove the conflicting copy.
30256 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
30258 eval \$PRG \$TMPSRC \$DST/\$NAME
30259 rm -f \$TMPSRC \$TMPSED
30262 chmod 0755 headers.sh
30264 for cf_dir in $SRC_SUBDIRS
30266 if test ! -d "$srcdir/$cf_dir" ; then
30270 if test -f "$srcdir/$cf_dir/headers" ; then
30271 $AWK -f "$srcdir/mk-hdr.awk" \
30272 subset="$LIB_SUBSETS" \
30273 compat="$WITH_CURSES_H" \
30274 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
30277 if test -f "$srcdir/$cf_dir/modules" ; then
30278 if test "$cf_dir" != "c++" ; then
30279 cat >>$cf_dir/Makefile <<"CF_EOF"
30280 depend : ${AUTO_SRC}
30281 makedepend -- ${CPPFLAGS} -- ${C_SRC}
30283 # DO NOT DELETE THIS LINE -- make depend depends on it.
30289 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
30290 if test -z "$USE_OLD_MAKERULES" ; then
30291 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
30299 cat >>"$CONFIG_STATUS" <<\EOF
30301 { (exit 0); exit 0; }
30303 chmod +x "$CONFIG_STATUS"
30304 ac_clean_files=$ac_clean_files_save
30306 # configure is writing to config.log, and then calls config.status.
30307 # config.status does its own redirection, appending to config.log.
30308 # Unfortunately, on DOS this fails, as config.log is still kept open
30309 # by configure, so config.status won't be able to write to it; its
30310 # output is simply discarded. So we exec the FD to /dev/null,
30311 # effectively closing config.log, so it can be properly (re)opened and
30312 # appended to by config.status. When coming back to configure, we
30313 # need to make the FD available again.
30314 if test "$no_create" != yes; then
30317 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
30319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30320 # would make configure fail if this is the last instruction.
30321 "$ac_cs_success" || { (exit 1); exit 1; }
30323 ${MAKE:-make} preinstall